From 8c8a682bb936613cd0026294dd605390f2f686ea Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Tue, 23 Jan 2024 11:37:21 -0800 Subject: [PATCH 01/35] Update flyteAgent protos Signed-off-by: Haytham Abuelfutuh --- flyteidl/protos/flyteidl/admin/agent.proto | 95 +++++++++++++------- flyteidl/protos/flyteidl/service/agent.proto | 43 +++++++-- 2 files changed, 100 insertions(+), 38 deletions(-) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 601e8b61e6..3ffbe90db1 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -11,14 +11,9 @@ import "flyteidl/core/metrics.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; - -// The state of the execution is used to control its visibility in the UI/CLI. -enum State { - RETRYABLE_FAILURE = 0; - PERMANENT_FAILURE = 1; - PENDING = 2; - RUNNING = 3; - SUCCEEDED = 4; +message TaskOverrides { + core.Resources resources = 1; + core.ExtendedResources extended_resources = 2; } // Represents a subset of runtime task execution metadata that are relevant to external plugins. @@ -35,65 +30,94 @@ message TaskExecutionMetadata { string k8s_service_account = 5; // Environment variables attached to the task execution map environment_variables = 6; + int32 max_attempts = 7; + bool interruptible = 8; + int32 interruptible_failure_threshold = 9; + TaskOverrides overrides = 10; } // Represents a request structure to create task. message CreateTaskRequest { - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - core.LiteralMap inputs = 1; + oneof part { + CreateRequestHeader header = 1; + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + core.LiteralMap inputs = 2; + } +} + +message CreateRequestHeader { // Template of the task that encapsulates all the metadata of the task. - core.TaskTemplate template = 2; + core.TaskTemplate template = 1; // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - string output_prefix = 3; + string output_prefix = 2; // subset of runtime task execution metadata. - TaskExecutionMetadata task_execution_metadata = 4; + TaskExecutionMetadata task_execution_metadata = 3; + // MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + int64 max_dataset_size_bytes = 4; } // Represents a create response structure. message CreateTaskResponse { + // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 1; +} + +message ExecuteTaskSyncRequest { + oneof part { + CreateRequestHeader header = 1; + core.LiteralMap inputs = 2; + } +} + +message ExecuteTaskSyncResponseHeader { + Resource resource = 1; +} + +message ExecuteTaskSyncResponse { // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). // Resource is for synchronous task execution. oneof res { - bytes resource_meta = 1; - Resource resource = 2; + ExecuteTaskSyncResponseHeader header = 1; + core.LiteralMap outputs = 2; } } + // A message used to fetch a job resource from flyte agent server. message GetTaskRequest { // A predefined yet extensible Task type identifier. - string task_type = 1; + TaskType task_type = 1; // Metadata about the resource to be pass to the agent. bytes resource_meta = 2; } // Response to get an individual task resource. message GetTaskResponse { - Resource resource = 1; + oneof part { + GetTaskResponseHeader header = 1; + core.LiteralMap outputs = 2; + } +} - // log information for the task execution - repeated core.TaskLog log_links = 2; +message GetTaskResponseHeader { + Resource resource = 1; } message Resource { // The state of the execution is used to control its visibility in the UI/CLI. - State state = 1; - // The outputs of the execution. It's typically used by sql task. Agent service will create a - // Structured dataset pointing to the query result table. - // +optional - core.LiteralMap outputs = 2; + core.TaskExecution.Phase phase = 1; // A descriptive message for the current state. e.g. waiting for cluster. - string message = 3; + string message = 2; // log information for the task execution. - repeated core.TaskLog log_links = 4; + repeated core.TaskLog log_links = 3; } // A message used to delete a task. message DeleteTaskRequest { // A predefined yet extensible Task type identifier. - string task_type = 1; + TaskType task_type = 1; // Metadata about the resource to be pass to the agent. bytes resource_meta = 2; } @@ -107,7 +131,14 @@ message Agent { string name = 1; // SupportedTaskTypes are the types of the tasks that the agent can handle. - repeated string supported_task_types = 2; + repeated TaskType supported_task_types = 2; +} + +message TaskType { + // The name of the task type. + string name = 1; + // The version of the task type. + int32 version = 2; } // A request to get an agent. @@ -132,7 +163,7 @@ message ListAgentsResponse { // A request to get the metrics from a task execution. message GetTaskMetricsRequest { // A predefined yet extensible Task type identifier. - string task_type = 1; + TaskType task_type = 1; // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). bytes resource_meta = 2; // The metrics to query. If empty, will return a default set of metrics. @@ -155,7 +186,7 @@ message GetTaskMetricsResponse { // A request to get the log from a task execution. message GetTaskLogsRequest { // A predefined yet extensible Task type identifier. - string task_type = 1; + TaskType task_type = 1; // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). bytes resource_meta = 2; // Number of lines to return. diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index 7538c0b819..2a9db3b11e 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -8,22 +8,53 @@ import "flyteidl/admin/agent.proto"; // AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. service AsyncAgentService { - // Send a task create request to the agent server. - rpc CreateTask (flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){}; + // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + rpc ExecuteTaskSync (stream flyteidl.admin.ExecuteTaskSyncRequest) returns (stream flyteidl.admin.ExecuteTaskSyncResponse){ + option (google.api.http) = { + post: "/api/v1/agent/task/stream" + body: "*" + }; + }; + + // CreateTask sends a task create request to the agent service. + rpc CreateTask (stream flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){ + option (google.api.http) = { + post: "/api/v1/agent/task" + body: "*" + }; + }; + // Get job status. - rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){}; + rpc GetTask (flyteidl.admin.GetTaskRequest) returns (stream flyteidl.admin.GetTaskResponse){ + option (google.api.http) = { + get: "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}" + }; + }; + // Delete the task resource. - rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){}; + rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){ + option (google.api.http) = { + delete: "/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}" + }; + }; // GetTaskMetrics returns one or more task execution metrics, if available. // // Errors include // * OutOfRange if metrics are not available for the specified task time range // * various other errors - rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse){}; + rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse){ + option (google.api.http) = { + get: "/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}" + }; + }; // GetTaskLogs returns task execution logs, if available. - rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (flyteidl.admin.GetTaskLogsResponse){}; + rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (stream flyteidl.admin.GetTaskLogsResponse){ + option (google.api.http) = { + get: "/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}" + }; + }; } // AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. From 5e79773f9bc936f298f894a8fe0bb9dd0ce4255d Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Wed, 24 Jan 2024 12:49:22 -0800 Subject: [PATCH 02/35] More updates Signed-off-by: Haytham Abuelfutuh --- flyteidl/protos/flyteidl/admin/agent.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 5c862fbc8d..a5b9c242a2 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -20,6 +20,7 @@ enum State { SUCCEEDED = 4; } +// TaskOverrides is a set of overrides that can be applied to a task. message TaskOverrides { core.Resources resources = 1; core.ExtendedResources extended_resources = 2; From 8317a3d5f7f9e277aa76ba2082ee5f2e4777b6cf Mon Sep 17 00:00:00 2001 From: Haytham Abuelfutuh Date: Wed, 24 Jan 2024 14:00:35 -0800 Subject: [PATCH 03/35] Log streaming Signed-off-by: Haytham Abuelfutuh --- flyteidl/protos/flyteidl/admin/agent.proto | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index a5b9c242a2..d8b59270ec 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -212,11 +212,21 @@ message GetTaskLogsRequest { string token = 4; } -// A response containing the logs for a task execution. -message GetTaskLogsResponse { - // The execution log results. - repeated string results = 1; +message GetTaskLogsResponseHeader { // In the case of multiple pages of results, the server-provided token can be used to fetch the next page // in a query. If there are no more results, this value will be empty. - string token = 2; + string token = 1; +} + +message GetTaskLogsResponseBody { + // The execution log results. + repeated string results = 1; +} + +// A response containing the logs for a task execution. +message GetTaskLogsResponse { + oneof part { + GetTaskLogsResponseHeader header = 1; + GetTaskLogsResponseBody body = 2; + } } \ No newline at end of file From 94bff4d081675279a7ca23e29376e2df7207c428 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 30 Jan 2024 13:01:17 -0800 Subject: [PATCH 04/35] update idl Signed-off-by: Kevin Su --- flyteidl/protos/flyteidl/admin/agent.proto | 48 ++++++++++------------ 1 file changed, 21 insertions(+), 27 deletions(-) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index d8b59270ec..07360af1ab 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -5,6 +5,7 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin import "flyteidl/core/literals.proto"; import "flyteidl/core/tasks.proto"; +import "flyteidl/core/workflow.proto"; import "flyteidl/core/identifier.proto"; import "flyteidl/core/execution.proto"; import "flyteidl/core/metrics.proto"; @@ -20,12 +21,6 @@ enum State { SUCCEEDED = 4; } -// TaskOverrides is a set of overrides that can be applied to a task. -message TaskOverrides { - core.Resources resources = 1; - core.ExtendedResources extended_resources = 2; -} - // Represents a subset of runtime task execution metadata that are relevant to external plugins. message TaskExecutionMetadata { // ID of the task execution @@ -43,18 +38,27 @@ message TaskExecutionMetadata { int32 max_attempts = 7; bool interruptible = 8; int32 interruptible_failure_threshold = 9; - TaskOverrides overrides = 10; + core.TaskNodeOverrides overrides = 10; } // Represents a request structure to create task. message CreateTaskRequest { - oneof part { - CreateRequestHeader header = 1; - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - core.LiteralMap inputs = 2; - } + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + core.LiteralMap inputs = 1; + // Template of the task that encapsulates all the metadata of the task. + core.TaskTemplate template = 2; + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + string output_prefix = 3; + // subset of runtime task execution metadata. + TaskExecutionMetadata task_execution_metadata = 4; +} + +// Represents a create response structure. +message CreateTaskResponse { + // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 1; } message CreateRequestHeader { @@ -68,11 +72,6 @@ message CreateRequestHeader { int64 max_dataset_size_bytes = 4; } -// Represents a create response structure. -message CreateTaskResponse { - // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - bytes resource_meta = 1; -} message ExecuteTaskSyncRequest { oneof part { @@ -94,7 +93,6 @@ message ExecuteTaskSyncResponse { } } - // A message used to fetch a job resource from flyte agent server. message GetTaskRequest { // A predefined yet extensible Task type identifier. @@ -105,14 +103,10 @@ message GetTaskRequest { // Response to get an individual task resource. message GetTaskResponse { - oneof part { - GetTaskResponseHeader header = 1; - core.LiteralMap outputs = 2; - } -} - -message GetTaskResponseHeader { Resource resource = 1; + + // log information for the task execution + repeated core.TaskLog log_links = 2; } message Resource { From 6ee774cc8f67ea62cbeb9d03da8d65ad331308d3 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 6 Feb 2024 17:33:11 -0800 Subject: [PATCH 05/35] Generate code from proto Signed-off-by: Kevin Su --- .../go/admin/mocks/AsyncAgentServiceClient.go | 60 +- .../go/admin/mocks/AsyncAgentServiceServer.go | 59 +- .../AsyncAgentService_CreateTaskClient.go | 296 ++++ .../AsyncAgentService_CreateTaskServer.go | 258 +++ ...AsyncAgentService_ExecuteTaskSyncClient.go | 296 ++++ ...AsyncAgentService_ExecuteTaskSyncServer.go | 258 +++ .../mocks/AsyncAgentService_GetTaskClient.go | 264 +++ .../AsyncAgentService_GetTaskLogsClient.go | 264 +++ .../AsyncAgentService_GetTaskLogsServer.go | 217 +++ .../mocks/AsyncAgentService_GetTaskServer.go | 217 +++ flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 430 ++++- .../pb-es/flyteidl/service/agent_connect.ts | 17 +- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 1365 ++++++++++++---- .../gen/pb-go/flyteidl/service/agent.pb.go | 200 ++- .../pb-go/flyteidl/service/agent_grpc.pb.go | 165 +- .../gateway/flyteidl/service/agent.pb.gw.go | 796 +++++++++ .../flyteidl/service/agent.swagger.json | 475 +++++- flyteidl/gen/pb-js/flyteidl.d.ts | 499 +++++- flyteidl/gen/pb-js/flyteidl.js | 1433 ++++++++++++++--- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 101 +- .../pb_python/flyteidl/admin/agent_pb2.pyi | 101 +- .../pb_python/flyteidl/service/agent_pb2.py | 20 +- .../flyteidl/service/agent_pb2_grpc.py | 42 +- flyteidl/gen/pb_rust/flyteidl.admin.rs | 131 +- flyteidl/gen/pb_rust/flyteidl.core.rs | 386 ++--- flyteidl/protos/flyteidl/service/agent.proto | 4 +- 26 files changed, 7288 insertions(+), 1066 deletions(-) create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskClient.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskServer.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncClient.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncServer.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskClient.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsClient.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsServer.go create mode 100644 flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskServer.go diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go index f11ef1adfe..2eb8c79639 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go @@ -10,6 +10,8 @@ import ( grpc "google.golang.org/grpc" mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" ) // AsyncAgentServiceClient is an autogenerated mock type for the AsyncAgentServiceClient type @@ -113,6 +115,54 @@ func (_m *AsyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.Del return r0, r1 } +type AsyncAgentServiceClient_ExecuteTaskSync struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_ExecuteTaskSync) Return(_a0 service.AsyncAgentService_ExecuteTaskSyncClient, _a1 error) *AsyncAgentServiceClient_ExecuteTaskSync { + return &AsyncAgentServiceClient_ExecuteTaskSync{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) *AsyncAgentServiceClient_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", ctx, opts) + return &AsyncAgentServiceClient_ExecuteTaskSync{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnExecuteTaskSyncMatch(matchers ...interface{}) *AsyncAgentServiceClient_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", matchers...) + return &AsyncAgentServiceClient_ExecuteTaskSync{Call: c_call} +} + +// ExecuteTaskSync provides a mock function with given fields: ctx, opts +func (_m *AsyncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (service.AsyncAgentService_ExecuteTaskSyncClient, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 service.AsyncAgentService_ExecuteTaskSyncClient + if rf, ok := ret.Get(0).(func(context.Context, ...grpc.CallOption) service.AsyncAgentService_ExecuteTaskSyncClient); ok { + r0 = rf(ctx, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(service.AsyncAgentService_ExecuteTaskSyncClient) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, ...grpc.CallOption) error); ok { + r1 = rf(ctx, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + type AsyncAgentServiceClient_GetTask struct { *mock.Call } @@ -165,7 +215,7 @@ type AsyncAgentServiceClient_GetTaskLogs struct { *mock.Call } -func (_m AsyncAgentServiceClient_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskLogs { +func (_m AsyncAgentServiceClient_GetTaskLogs) Return(_a0 service.AsyncAgentService_GetTaskLogsClient, _a1 error) *AsyncAgentServiceClient_GetTaskLogs { return &AsyncAgentServiceClient_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} } @@ -180,7 +230,7 @@ func (_m *AsyncAgentServiceClient) OnGetTaskLogsMatch(matchers ...interface{}) * } // GetTaskLogs provides a mock function with given fields: ctx, in, opts -func (_m *AsyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { +func (_m *AsyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (service.AsyncAgentService_GetTaskLogsClient, error) { _va := make([]interface{}, len(opts)) for _i := range opts { _va[_i] = opts[_i] @@ -190,12 +240,12 @@ func (_m *AsyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.Ge _ca = append(_ca, _va...) ret := _m.Called(_ca...) - var r0 *admin.GetTaskLogsResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) *admin.GetTaskLogsResponse); ok { + var r0 service.AsyncAgentService_GetTaskLogsClient + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) service.AsyncAgentService_GetTaskLogsClient); ok { r0 = rf(ctx, in, opts...) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.GetTaskLogsResponse) + r0 = ret.Get(0).(service.AsyncAgentService_GetTaskLogsClient) } } diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go index 1803e286eb..7f3397fa5e 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go @@ -8,6 +8,8 @@ import ( admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" ) // AsyncAgentServiceServer is an autogenerated mock type for the AsyncAgentServiceServer type @@ -97,6 +99,38 @@ func (_m *AsyncAgentServiceServer) DeleteTask(_a0 context.Context, _a1 *admin.De return r0, r1 } +type AsyncAgentServiceServer_ExecuteTaskSync struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_ExecuteTaskSync) Return(_a0 error) *AsyncAgentServiceServer_ExecuteTaskSync { + return &AsyncAgentServiceServer_ExecuteTaskSync{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentServiceServer) OnExecuteTaskSync(_a0 service.AsyncAgentService_ExecuteTaskSyncServer) *AsyncAgentServiceServer_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", _a0) + return &AsyncAgentServiceServer_ExecuteTaskSync{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnExecuteTaskSyncMatch(matchers ...interface{}) *AsyncAgentServiceServer_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", matchers...) + return &AsyncAgentServiceServer_ExecuteTaskSync{Call: c_call} +} + +// ExecuteTaskSync provides a mock function with given fields: _a0 +func (_m *AsyncAgentServiceServer) ExecuteTaskSync(_a0 service.AsyncAgentService_ExecuteTaskSyncServer) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(service.AsyncAgentService_ExecuteTaskSyncServer) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + type AsyncAgentServiceServer_GetTask struct { *mock.Call } @@ -142,11 +176,11 @@ type AsyncAgentServiceServer_GetTaskLogs struct { *mock.Call } -func (_m AsyncAgentServiceServer_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceServer_GetTaskLogs { - return &AsyncAgentServiceServer_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} +func (_m AsyncAgentServiceServer_GetTaskLogs) Return(_a0 error) *AsyncAgentServiceServer_GetTaskLogs { + return &AsyncAgentServiceServer_GetTaskLogs{Call: _m.Call.Return(_a0)} } -func (_m *AsyncAgentServiceServer) OnGetTaskLogs(_a0 context.Context, _a1 *admin.GetTaskLogsRequest) *AsyncAgentServiceServer_GetTaskLogs { +func (_m *AsyncAgentServiceServer) OnGetTaskLogs(_a0 *admin.GetTaskLogsRequest, _a1 service.AsyncAgentService_GetTaskLogsServer) *AsyncAgentServiceServer_GetTaskLogs { c_call := _m.On("GetTaskLogs", _a0, _a1) return &AsyncAgentServiceServer_GetTaskLogs{Call: c_call} } @@ -157,26 +191,17 @@ func (_m *AsyncAgentServiceServer) OnGetTaskLogsMatch(matchers ...interface{}) * } // GetTaskLogs provides a mock function with given fields: _a0, _a1 -func (_m *AsyncAgentServiceServer) GetTaskLogs(_a0 context.Context, _a1 *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) { +func (_m *AsyncAgentServiceServer) GetTaskLogs(_a0 *admin.GetTaskLogsRequest, _a1 service.AsyncAgentService_GetTaskLogsServer) error { ret := _m.Called(_a0, _a1) - var r0 *admin.GetTaskLogsResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest) *admin.GetTaskLogsResponse); ok { + var r0 error + if rf, ok := ret.Get(0).(func(*admin.GetTaskLogsRequest, service.AsyncAgentService_GetTaskLogsServer) error); ok { r0 = rf(_a0, _a1) } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.GetTaskLogsResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskLogsRequest) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) + r0 = ret.Error(0) } - return r0, r1 + return r0 } type AsyncAgentServiceServer_GetTaskMetrics struct { diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskClient.go new file mode 100644 index 0000000000..52c063d197 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskClient.go @@ -0,0 +1,296 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_CreateTaskClient is an autogenerated mock type for the AsyncAgentService_CreateTaskClient type +type AsyncAgentService_CreateTaskClient struct { + mock.Mock +} + +type AsyncAgentService_CreateTaskClient_CloseAndRecv struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_CloseAndRecv) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AsyncAgentService_CreateTaskClient_CloseAndRecv { + return &AsyncAgentService_CreateTaskClient_CloseAndRecv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnCloseAndRecv() *AsyncAgentService_CreateTaskClient_CloseAndRecv { + c_call := _m.On("CloseAndRecv") + return &AsyncAgentService_CreateTaskClient_CloseAndRecv{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnCloseAndRecvMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_CloseAndRecv { + c_call := _m.On("CloseAndRecv", matchers...) + return &AsyncAgentService_CreateTaskClient_CloseAndRecv{Call: c_call} +} + +// CloseAndRecv provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskClient) CloseAndRecv() (*admin.CreateTaskResponse, error) { + ret := _m.Called() + + var r0 *admin.CreateTaskResponse + if rf, ok := ret.Get(0).(func() *admin.CreateTaskResponse); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.CreateTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_CreateTaskClient_CloseSend struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_CloseSend) Return(_a0 error) *AsyncAgentService_CreateTaskClient_CloseSend { + return &AsyncAgentService_CreateTaskClient_CloseSend{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnCloseSend() *AsyncAgentService_CreateTaskClient_CloseSend { + c_call := _m.On("CloseSend") + return &AsyncAgentService_CreateTaskClient_CloseSend{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnCloseSendMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_CloseSend { + c_call := _m.On("CloseSend", matchers...) + return &AsyncAgentService_CreateTaskClient_CloseSend{Call: c_call} +} + +// CloseSend provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskClient) CloseSend() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskClient_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_Context) Return(_a0 context.Context) *AsyncAgentService_CreateTaskClient_Context { + return &AsyncAgentService_CreateTaskClient_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnContext() *AsyncAgentService_CreateTaskClient_Context { + c_call := _m.On("Context") + return &AsyncAgentService_CreateTaskClient_Context{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnContextMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_CreateTaskClient_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskClient) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_CreateTaskClient_Header struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_Header) Return(_a0 metadata.MD, _a1 error) *AsyncAgentService_CreateTaskClient_Header { + return &AsyncAgentService_CreateTaskClient_Header{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnHeader() *AsyncAgentService_CreateTaskClient_Header { + c_call := _m.On("Header") + return &AsyncAgentService_CreateTaskClient_Header{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnHeaderMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_Header { + c_call := _m.On("Header", matchers...) + return &AsyncAgentService_CreateTaskClient_Header{Call: c_call} +} + +// Header provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskClient) Header() (metadata.MD, error) { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_CreateTaskClient_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_RecvMsg) Return(_a0 error) *AsyncAgentService_CreateTaskClient_RecvMsg { + return &AsyncAgentService_CreateTaskClient_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnRecvMsg(m interface{}) *AsyncAgentService_CreateTaskClient_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_CreateTaskClient_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_CreateTaskClient_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_CreateTaskClient) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskClient_Send struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_Send) Return(_a0 error) *AsyncAgentService_CreateTaskClient_Send { + return &AsyncAgentService_CreateTaskClient_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnSend(_a0 *admin.CreateTaskRequest) *AsyncAgentService_CreateTaskClient_Send { + c_call := _m.On("Send", _a0) + return &AsyncAgentService_CreateTaskClient_Send{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnSendMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_Send { + c_call := _m.On("Send", matchers...) + return &AsyncAgentService_CreateTaskClient_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_CreateTaskClient) Send(_a0 *admin.CreateTaskRequest) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.CreateTaskRequest) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskClient_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_SendMsg) Return(_a0 error) *AsyncAgentService_CreateTaskClient_SendMsg { + return &AsyncAgentService_CreateTaskClient_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnSendMsg(m interface{}) *AsyncAgentService_CreateTaskClient_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_CreateTaskClient_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_CreateTaskClient_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_CreateTaskClient) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskClient_Trailer struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskClient_Trailer) Return(_a0 metadata.MD) *AsyncAgentService_CreateTaskClient_Trailer { + return &AsyncAgentService_CreateTaskClient_Trailer{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnTrailer() *AsyncAgentService_CreateTaskClient_Trailer { + c_call := _m.On("Trailer") + return &AsyncAgentService_CreateTaskClient_Trailer{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskClient) OnTrailerMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskClient_Trailer { + c_call := _m.On("Trailer", matchers...) + return &AsyncAgentService_CreateTaskClient_Trailer{Call: c_call} +} + +// Trailer provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskClient) Trailer() metadata.MD { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskServer.go new file mode 100644 index 0000000000..68268ce939 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_CreateTaskServer.go @@ -0,0 +1,258 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_CreateTaskServer is an autogenerated mock type for the AsyncAgentService_CreateTaskServer type +type AsyncAgentService_CreateTaskServer struct { + mock.Mock +} + +type AsyncAgentService_CreateTaskServer_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_Context) Return(_a0 context.Context) *AsyncAgentService_CreateTaskServer_Context { + return &AsyncAgentService_CreateTaskServer_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnContext() *AsyncAgentService_CreateTaskServer_Context { + c_call := _m.On("Context") + return &AsyncAgentService_CreateTaskServer_Context{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnContextMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_CreateTaskServer_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskServer) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_CreateTaskServer_Recv struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_Recv) Return(_a0 *admin.CreateTaskRequest, _a1 error) *AsyncAgentService_CreateTaskServer_Recv { + return &AsyncAgentService_CreateTaskServer_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnRecv() *AsyncAgentService_CreateTaskServer_Recv { + c_call := _m.On("Recv") + return &AsyncAgentService_CreateTaskServer_Recv{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnRecvMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_Recv { + c_call := _m.On("Recv", matchers...) + return &AsyncAgentService_CreateTaskServer_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *AsyncAgentService_CreateTaskServer) Recv() (*admin.CreateTaskRequest, error) { + ret := _m.Called() + + var r0 *admin.CreateTaskRequest + if rf, ok := ret.Get(0).(func() *admin.CreateTaskRequest); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.CreateTaskRequest) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_CreateTaskServer_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_RecvMsg) Return(_a0 error) *AsyncAgentService_CreateTaskServer_RecvMsg { + return &AsyncAgentService_CreateTaskServer_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnRecvMsg(m interface{}) *AsyncAgentService_CreateTaskServer_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_CreateTaskServer_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_CreateTaskServer_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_CreateTaskServer) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskServer_SendAndClose struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_SendAndClose) Return(_a0 error) *AsyncAgentService_CreateTaskServer_SendAndClose { + return &AsyncAgentService_CreateTaskServer_SendAndClose{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSendAndClose(_a0 *admin.CreateTaskResponse) *AsyncAgentService_CreateTaskServer_SendAndClose { + c_call := _m.On("SendAndClose", _a0) + return &AsyncAgentService_CreateTaskServer_SendAndClose{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSendAndCloseMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_SendAndClose { + c_call := _m.On("SendAndClose", matchers...) + return &AsyncAgentService_CreateTaskServer_SendAndClose{Call: c_call} +} + +// SendAndClose provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_CreateTaskServer) SendAndClose(_a0 *admin.CreateTaskResponse) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.CreateTaskResponse) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskServer_SendHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_SendHeader) Return(_a0 error) *AsyncAgentService_CreateTaskServer_SendHeader { + return &AsyncAgentService_CreateTaskServer_SendHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSendHeader(_a0 metadata.MD) *AsyncAgentService_CreateTaskServer_SendHeader { + c_call := _m.On("SendHeader", _a0) + return &AsyncAgentService_CreateTaskServer_SendHeader{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSendHeaderMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_SendHeader { + c_call := _m.On("SendHeader", matchers...) + return &AsyncAgentService_CreateTaskServer_SendHeader{Call: c_call} +} + +// SendHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_CreateTaskServer) SendHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskServer_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_SendMsg) Return(_a0 error) *AsyncAgentService_CreateTaskServer_SendMsg { + return &AsyncAgentService_CreateTaskServer_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSendMsg(m interface{}) *AsyncAgentService_CreateTaskServer_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_CreateTaskServer_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_CreateTaskServer_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_CreateTaskServer) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_CreateTaskServer_SetHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_CreateTaskServer_SetHeader) Return(_a0 error) *AsyncAgentService_CreateTaskServer_SetHeader { + return &AsyncAgentService_CreateTaskServer_SetHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSetHeader(_a0 metadata.MD) *AsyncAgentService_CreateTaskServer_SetHeader { + c_call := _m.On("SetHeader", _a0) + return &AsyncAgentService_CreateTaskServer_SetHeader{Call: c_call} +} + +func (_m *AsyncAgentService_CreateTaskServer) OnSetHeaderMatch(matchers ...interface{}) *AsyncAgentService_CreateTaskServer_SetHeader { + c_call := _m.On("SetHeader", matchers...) + return &AsyncAgentService_CreateTaskServer_SetHeader{Call: c_call} +} + +// SetHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_CreateTaskServer) SetHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// SetTrailer provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_CreateTaskServer) SetTrailer(_a0 metadata.MD) { + _m.Called(_a0) +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncClient.go new file mode 100644 index 0000000000..d75c24464e --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncClient.go @@ -0,0 +1,296 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_ExecuteTaskSyncClient is an autogenerated mock type for the AsyncAgentService_ExecuteTaskSyncClient type +type AsyncAgentService_ExecuteTaskSyncClient struct { + mock.Mock +} + +type AsyncAgentService_ExecuteTaskSyncClient_CloseSend struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_CloseSend) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncClient_CloseSend { + return &AsyncAgentService_ExecuteTaskSyncClient_CloseSend{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnCloseSend() *AsyncAgentService_ExecuteTaskSyncClient_CloseSend { + c_call := _m.On("CloseSend") + return &AsyncAgentService_ExecuteTaskSyncClient_CloseSend{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnCloseSendMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_CloseSend { + c_call := _m.On("CloseSend", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_CloseSend{Call: c_call} +} + +// CloseSend provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncClient) CloseSend() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncClient_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_Context) Return(_a0 context.Context) *AsyncAgentService_ExecuteTaskSyncClient_Context { + return &AsyncAgentService_ExecuteTaskSyncClient_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnContext() *AsyncAgentService_ExecuteTaskSyncClient_Context { + c_call := _m.On("Context") + return &AsyncAgentService_ExecuteTaskSyncClient_Context{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnContextMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncClient) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncClient_Header struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_Header) Return(_a0 metadata.MD, _a1 error) *AsyncAgentService_ExecuteTaskSyncClient_Header { + return &AsyncAgentService_ExecuteTaskSyncClient_Header{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnHeader() *AsyncAgentService_ExecuteTaskSyncClient_Header { + c_call := _m.On("Header") + return &AsyncAgentService_ExecuteTaskSyncClient_Header{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnHeaderMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_Header { + c_call := _m.On("Header", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_Header{Call: c_call} +} + +// Header provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncClient) Header() (metadata.MD, error) { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_ExecuteTaskSyncClient_Recv struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_Recv) Return(_a0 *admin.ExecuteTaskSyncResponse, _a1 error) *AsyncAgentService_ExecuteTaskSyncClient_Recv { + return &AsyncAgentService_ExecuteTaskSyncClient_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnRecv() *AsyncAgentService_ExecuteTaskSyncClient_Recv { + c_call := _m.On("Recv") + return &AsyncAgentService_ExecuteTaskSyncClient_Recv{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnRecvMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_Recv { + c_call := _m.On("Recv", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { + ret := _m.Called() + + var r0 *admin.ExecuteTaskSyncResponse + if rf, ok := ret.Get(0).(func() *admin.ExecuteTaskSyncResponse); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecuteTaskSyncResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_ExecuteTaskSyncClient_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_RecvMsg) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncClient_RecvMsg { + return &AsyncAgentService_ExecuteTaskSyncClient_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnRecvMsg(m interface{}) *AsyncAgentService_ExecuteTaskSyncClient_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_ExecuteTaskSyncClient_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_ExecuteTaskSyncClient) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncClient_Send struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_Send) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncClient_Send { + return &AsyncAgentService_ExecuteTaskSyncClient_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnSend(_a0 *admin.ExecuteTaskSyncRequest) *AsyncAgentService_ExecuteTaskSyncClient_Send { + c_call := _m.On("Send", _a0) + return &AsyncAgentService_ExecuteTaskSyncClient_Send{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnSendMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_Send { + c_call := _m.On("Send", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_ExecuteTaskSyncClient) Send(_a0 *admin.ExecuteTaskSyncRequest) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.ExecuteTaskSyncRequest) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncClient_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_SendMsg) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncClient_SendMsg { + return &AsyncAgentService_ExecuteTaskSyncClient_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnSendMsg(m interface{}) *AsyncAgentService_ExecuteTaskSyncClient_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_ExecuteTaskSyncClient_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_ExecuteTaskSyncClient) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncClient_Trailer struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncClient_Trailer) Return(_a0 metadata.MD) *AsyncAgentService_ExecuteTaskSyncClient_Trailer { + return &AsyncAgentService_ExecuteTaskSyncClient_Trailer{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnTrailer() *AsyncAgentService_ExecuteTaskSyncClient_Trailer { + c_call := _m.On("Trailer") + return &AsyncAgentService_ExecuteTaskSyncClient_Trailer{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncClient) OnTrailerMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncClient_Trailer { + c_call := _m.On("Trailer", matchers...) + return &AsyncAgentService_ExecuteTaskSyncClient_Trailer{Call: c_call} +} + +// Trailer provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncClient) Trailer() metadata.MD { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncServer.go new file mode 100644 index 0000000000..a42eb507a3 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_ExecuteTaskSyncServer.go @@ -0,0 +1,258 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_ExecuteTaskSyncServer is an autogenerated mock type for the AsyncAgentService_ExecuteTaskSyncServer type +type AsyncAgentService_ExecuteTaskSyncServer struct { + mock.Mock +} + +type AsyncAgentService_ExecuteTaskSyncServer_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_Context) Return(_a0 context.Context) *AsyncAgentService_ExecuteTaskSyncServer_Context { + return &AsyncAgentService_ExecuteTaskSyncServer_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnContext() *AsyncAgentService_ExecuteTaskSyncServer_Context { + c_call := _m.On("Context") + return &AsyncAgentService_ExecuteTaskSyncServer_Context{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnContextMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncServer) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncServer_Recv struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_Recv) Return(_a0 *admin.ExecuteTaskSyncRequest, _a1 error) *AsyncAgentService_ExecuteTaskSyncServer_Recv { + return &AsyncAgentService_ExecuteTaskSyncServer_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnRecv() *AsyncAgentService_ExecuteTaskSyncServer_Recv { + c_call := _m.On("Recv") + return &AsyncAgentService_ExecuteTaskSyncServer_Recv{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnRecvMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_Recv { + c_call := _m.On("Recv", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *AsyncAgentService_ExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { + ret := _m.Called() + + var r0 *admin.ExecuteTaskSyncRequest + if rf, ok := ret.Get(0).(func() *admin.ExecuteTaskSyncRequest); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecuteTaskSyncRequest) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_ExecuteTaskSyncServer_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_RecvMsg) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncServer_RecvMsg { + return &AsyncAgentService_ExecuteTaskSyncServer_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnRecvMsg(m interface{}) *AsyncAgentService_ExecuteTaskSyncServer_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_ExecuteTaskSyncServer_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_ExecuteTaskSyncServer) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncServer_Send struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_Send) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncServer_Send { + return &AsyncAgentService_ExecuteTaskSyncServer_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSend(_a0 *admin.ExecuteTaskSyncResponse) *AsyncAgentService_ExecuteTaskSyncServer_Send { + c_call := _m.On("Send", _a0) + return &AsyncAgentService_ExecuteTaskSyncServer_Send{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSendMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_Send { + c_call := _m.On("Send", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_ExecuteTaskSyncServer) Send(_a0 *admin.ExecuteTaskSyncResponse) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.ExecuteTaskSyncResponse) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncServer_SendHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_SendHeader) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncServer_SendHeader { + return &AsyncAgentService_ExecuteTaskSyncServer_SendHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSendHeader(_a0 metadata.MD) *AsyncAgentService_ExecuteTaskSyncServer_SendHeader { + c_call := _m.On("SendHeader", _a0) + return &AsyncAgentService_ExecuteTaskSyncServer_SendHeader{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSendHeaderMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_SendHeader { + c_call := _m.On("SendHeader", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_SendHeader{Call: c_call} +} + +// SendHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_ExecuteTaskSyncServer) SendHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncServer_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_SendMsg) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncServer_SendMsg { + return &AsyncAgentService_ExecuteTaskSyncServer_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSendMsg(m interface{}) *AsyncAgentService_ExecuteTaskSyncServer_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_ExecuteTaskSyncServer_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_ExecuteTaskSyncServer) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_ExecuteTaskSyncServer_SetHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_ExecuteTaskSyncServer_SetHeader) Return(_a0 error) *AsyncAgentService_ExecuteTaskSyncServer_SetHeader { + return &AsyncAgentService_ExecuteTaskSyncServer_SetHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSetHeader(_a0 metadata.MD) *AsyncAgentService_ExecuteTaskSyncServer_SetHeader { + c_call := _m.On("SetHeader", _a0) + return &AsyncAgentService_ExecuteTaskSyncServer_SetHeader{Call: c_call} +} + +func (_m *AsyncAgentService_ExecuteTaskSyncServer) OnSetHeaderMatch(matchers ...interface{}) *AsyncAgentService_ExecuteTaskSyncServer_SetHeader { + c_call := _m.On("SetHeader", matchers...) + return &AsyncAgentService_ExecuteTaskSyncServer_SetHeader{Call: c_call} +} + +// SetHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_ExecuteTaskSyncServer) SetHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// SetTrailer provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_ExecuteTaskSyncServer) SetTrailer(_a0 metadata.MD) { + _m.Called(_a0) +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskClient.go new file mode 100644 index 0000000000..d163efb098 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskClient.go @@ -0,0 +1,264 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_GetTaskClient is an autogenerated mock type for the AsyncAgentService_GetTaskClient type +type AsyncAgentService_GetTaskClient struct { + mock.Mock +} + +type AsyncAgentService_GetTaskClient_CloseSend struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_CloseSend) Return(_a0 error) *AsyncAgentService_GetTaskClient_CloseSend { + return &AsyncAgentService_GetTaskClient_CloseSend{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnCloseSend() *AsyncAgentService_GetTaskClient_CloseSend { + c_call := _m.On("CloseSend") + return &AsyncAgentService_GetTaskClient_CloseSend{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnCloseSendMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_CloseSend { + c_call := _m.On("CloseSend", matchers...) + return &AsyncAgentService_GetTaskClient_CloseSend{Call: c_call} +} + +// CloseSend provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskClient) CloseSend() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskClient_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_Context) Return(_a0 context.Context) *AsyncAgentService_GetTaskClient_Context { + return &AsyncAgentService_GetTaskClient_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnContext() *AsyncAgentService_GetTaskClient_Context { + c_call := _m.On("Context") + return &AsyncAgentService_GetTaskClient_Context{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnContextMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_GetTaskClient_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskClient) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_GetTaskClient_Header struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_Header) Return(_a0 metadata.MD, _a1 error) *AsyncAgentService_GetTaskClient_Header { + return &AsyncAgentService_GetTaskClient_Header{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnHeader() *AsyncAgentService_GetTaskClient_Header { + c_call := _m.On("Header") + return &AsyncAgentService_GetTaskClient_Header{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnHeaderMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_Header { + c_call := _m.On("Header", matchers...) + return &AsyncAgentService_GetTaskClient_Header{Call: c_call} +} + +// Header provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskClient) Header() (metadata.MD, error) { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_GetTaskClient_Recv struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_Recv) Return(_a0 *admin.GetTaskResponse, _a1 error) *AsyncAgentService_GetTaskClient_Recv { + return &AsyncAgentService_GetTaskClient_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnRecv() *AsyncAgentService_GetTaskClient_Recv { + c_call := _m.On("Recv") + return &AsyncAgentService_GetTaskClient_Recv{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnRecvMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_Recv { + c_call := _m.On("Recv", matchers...) + return &AsyncAgentService_GetTaskClient_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskClient) Recv() (*admin.GetTaskResponse, error) { + ret := _m.Called() + + var r0 *admin.GetTaskResponse + if rf, ok := ret.Get(0).(func() *admin.GetTaskResponse); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_GetTaskClient_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_RecvMsg) Return(_a0 error) *AsyncAgentService_GetTaskClient_RecvMsg { + return &AsyncAgentService_GetTaskClient_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnRecvMsg(m interface{}) *AsyncAgentService_GetTaskClient_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_GetTaskClient_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_GetTaskClient_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskClient) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskClient_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_SendMsg) Return(_a0 error) *AsyncAgentService_GetTaskClient_SendMsg { + return &AsyncAgentService_GetTaskClient_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnSendMsg(m interface{}) *AsyncAgentService_GetTaskClient_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_GetTaskClient_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_GetTaskClient_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskClient) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskClient_Trailer struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskClient_Trailer) Return(_a0 metadata.MD) *AsyncAgentService_GetTaskClient_Trailer { + return &AsyncAgentService_GetTaskClient_Trailer{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskClient) OnTrailer() *AsyncAgentService_GetTaskClient_Trailer { + c_call := _m.On("Trailer") + return &AsyncAgentService_GetTaskClient_Trailer{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskClient) OnTrailerMatch(matchers ...interface{}) *AsyncAgentService_GetTaskClient_Trailer { + c_call := _m.On("Trailer", matchers...) + return &AsyncAgentService_GetTaskClient_Trailer{Call: c_call} +} + +// Trailer provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskClient) Trailer() metadata.MD { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsClient.go new file mode 100644 index 0000000000..a28d4ac497 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsClient.go @@ -0,0 +1,264 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_GetTaskLogsClient is an autogenerated mock type for the AsyncAgentService_GetTaskLogsClient type +type AsyncAgentService_GetTaskLogsClient struct { + mock.Mock +} + +type AsyncAgentService_GetTaskLogsClient_CloseSend struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_CloseSend) Return(_a0 error) *AsyncAgentService_GetTaskLogsClient_CloseSend { + return &AsyncAgentService_GetTaskLogsClient_CloseSend{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnCloseSend() *AsyncAgentService_GetTaskLogsClient_CloseSend { + c_call := _m.On("CloseSend") + return &AsyncAgentService_GetTaskLogsClient_CloseSend{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnCloseSendMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_CloseSend { + c_call := _m.On("CloseSend", matchers...) + return &AsyncAgentService_GetTaskLogsClient_CloseSend{Call: c_call} +} + +// CloseSend provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskLogsClient) CloseSend() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsClient_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_Context) Return(_a0 context.Context) *AsyncAgentService_GetTaskLogsClient_Context { + return &AsyncAgentService_GetTaskLogsClient_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnContext() *AsyncAgentService_GetTaskLogsClient_Context { + c_call := _m.On("Context") + return &AsyncAgentService_GetTaskLogsClient_Context{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnContextMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_GetTaskLogsClient_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskLogsClient) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsClient_Header struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_Header) Return(_a0 metadata.MD, _a1 error) *AsyncAgentService_GetTaskLogsClient_Header { + return &AsyncAgentService_GetTaskLogsClient_Header{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnHeader() *AsyncAgentService_GetTaskLogsClient_Header { + c_call := _m.On("Header") + return &AsyncAgentService_GetTaskLogsClient_Header{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnHeaderMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_Header { + c_call := _m.On("Header", matchers...) + return &AsyncAgentService_GetTaskLogsClient_Header{Call: c_call} +} + +// Header provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskLogsClient) Header() (metadata.MD, error) { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_GetTaskLogsClient_Recv struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_Recv) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentService_GetTaskLogsClient_Recv { + return &AsyncAgentService_GetTaskLogsClient_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnRecv() *AsyncAgentService_GetTaskLogsClient_Recv { + c_call := _m.On("Recv") + return &AsyncAgentService_GetTaskLogsClient_Recv{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnRecvMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_Recv { + c_call := _m.On("Recv", matchers...) + return &AsyncAgentService_GetTaskLogsClient_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskLogsClient) Recv() (*admin.GetTaskLogsResponse, error) { + ret := _m.Called() + + var r0 *admin.GetTaskLogsResponse + if rf, ok := ret.Get(0).(func() *admin.GetTaskLogsResponse); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskLogsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentService_GetTaskLogsClient_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_RecvMsg) Return(_a0 error) *AsyncAgentService_GetTaskLogsClient_RecvMsg { + return &AsyncAgentService_GetTaskLogsClient_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnRecvMsg(m interface{}) *AsyncAgentService_GetTaskLogsClient_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_GetTaskLogsClient_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_GetTaskLogsClient_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskLogsClient) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsClient_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_SendMsg) Return(_a0 error) *AsyncAgentService_GetTaskLogsClient_SendMsg { + return &AsyncAgentService_GetTaskLogsClient_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnSendMsg(m interface{}) *AsyncAgentService_GetTaskLogsClient_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_GetTaskLogsClient_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_GetTaskLogsClient_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskLogsClient) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsClient_Trailer struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsClient_Trailer) Return(_a0 metadata.MD) *AsyncAgentService_GetTaskLogsClient_Trailer { + return &AsyncAgentService_GetTaskLogsClient_Trailer{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnTrailer() *AsyncAgentService_GetTaskLogsClient_Trailer { + c_call := _m.On("Trailer") + return &AsyncAgentService_GetTaskLogsClient_Trailer{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsClient) OnTrailerMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsClient_Trailer { + c_call := _m.On("Trailer", matchers...) + return &AsyncAgentService_GetTaskLogsClient_Trailer{Call: c_call} +} + +// Trailer provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskLogsClient) Trailer() metadata.MD { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsServer.go new file mode 100644 index 0000000000..00d5ad6b48 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskLogsServer.go @@ -0,0 +1,217 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_GetTaskLogsServer is an autogenerated mock type for the AsyncAgentService_GetTaskLogsServer type +type AsyncAgentService_GetTaskLogsServer struct { + mock.Mock +} + +type AsyncAgentService_GetTaskLogsServer_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsServer_Context) Return(_a0 context.Context) *AsyncAgentService_GetTaskLogsServer_Context { + return &AsyncAgentService_GetTaskLogsServer_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnContext() *AsyncAgentService_GetTaskLogsServer_Context { + c_call := _m.On("Context") + return &AsyncAgentService_GetTaskLogsServer_Context{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnContextMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsServer_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_GetTaskLogsServer_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskLogsServer) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsServer_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsServer_RecvMsg) Return(_a0 error) *AsyncAgentService_GetTaskLogsServer_RecvMsg { + return &AsyncAgentService_GetTaskLogsServer_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnRecvMsg(m interface{}) *AsyncAgentService_GetTaskLogsServer_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_GetTaskLogsServer_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsServer_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_GetTaskLogsServer_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskLogsServer) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsServer_Send struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsServer_Send) Return(_a0 error) *AsyncAgentService_GetTaskLogsServer_Send { + return &AsyncAgentService_GetTaskLogsServer_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSend(_a0 *admin.GetTaskLogsResponse) *AsyncAgentService_GetTaskLogsServer_Send { + c_call := _m.On("Send", _a0) + return &AsyncAgentService_GetTaskLogsServer_Send{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSendMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsServer_Send { + c_call := _m.On("Send", matchers...) + return &AsyncAgentService_GetTaskLogsServer_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskLogsServer) Send(_a0 *admin.GetTaskLogsResponse) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.GetTaskLogsResponse) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsServer_SendHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsServer_SendHeader) Return(_a0 error) *AsyncAgentService_GetTaskLogsServer_SendHeader { + return &AsyncAgentService_GetTaskLogsServer_SendHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSendHeader(_a0 metadata.MD) *AsyncAgentService_GetTaskLogsServer_SendHeader { + c_call := _m.On("SendHeader", _a0) + return &AsyncAgentService_GetTaskLogsServer_SendHeader{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSendHeaderMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsServer_SendHeader { + c_call := _m.On("SendHeader", matchers...) + return &AsyncAgentService_GetTaskLogsServer_SendHeader{Call: c_call} +} + +// SendHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskLogsServer) SendHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsServer_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsServer_SendMsg) Return(_a0 error) *AsyncAgentService_GetTaskLogsServer_SendMsg { + return &AsyncAgentService_GetTaskLogsServer_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSendMsg(m interface{}) *AsyncAgentService_GetTaskLogsServer_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_GetTaskLogsServer_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsServer_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_GetTaskLogsServer_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskLogsServer) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskLogsServer_SetHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskLogsServer_SetHeader) Return(_a0 error) *AsyncAgentService_GetTaskLogsServer_SetHeader { + return &AsyncAgentService_GetTaskLogsServer_SetHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSetHeader(_a0 metadata.MD) *AsyncAgentService_GetTaskLogsServer_SetHeader { + c_call := _m.On("SetHeader", _a0) + return &AsyncAgentService_GetTaskLogsServer_SetHeader{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskLogsServer) OnSetHeaderMatch(matchers ...interface{}) *AsyncAgentService_GetTaskLogsServer_SetHeader { + c_call := _m.On("SetHeader", matchers...) + return &AsyncAgentService_GetTaskLogsServer_SetHeader{Call: c_call} +} + +// SetHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskLogsServer) SetHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// SetTrailer provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskLogsServer) SetTrailer(_a0 metadata.MD) { + _m.Called(_a0) +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskServer.go new file mode 100644 index 0000000000..e16fd3591a --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentService_GetTaskServer.go @@ -0,0 +1,217 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// AsyncAgentService_GetTaskServer is an autogenerated mock type for the AsyncAgentService_GetTaskServer type +type AsyncAgentService_GetTaskServer struct { + mock.Mock +} + +type AsyncAgentService_GetTaskServer_Context struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskServer_Context) Return(_a0 context.Context) *AsyncAgentService_GetTaskServer_Context { + return &AsyncAgentService_GetTaskServer_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskServer) OnContext() *AsyncAgentService_GetTaskServer_Context { + c_call := _m.On("Context") + return &AsyncAgentService_GetTaskServer_Context{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskServer) OnContextMatch(matchers ...interface{}) *AsyncAgentService_GetTaskServer_Context { + c_call := _m.On("Context", matchers...) + return &AsyncAgentService_GetTaskServer_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *AsyncAgentService_GetTaskServer) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type AsyncAgentService_GetTaskServer_RecvMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskServer_RecvMsg) Return(_a0 error) *AsyncAgentService_GetTaskServer_RecvMsg { + return &AsyncAgentService_GetTaskServer_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskServer) OnRecvMsg(m interface{}) *AsyncAgentService_GetTaskServer_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &AsyncAgentService_GetTaskServer_RecvMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskServer) OnRecvMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskServer_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &AsyncAgentService_GetTaskServer_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskServer) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskServer_Send struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskServer_Send) Return(_a0 error) *AsyncAgentService_GetTaskServer_Send { + return &AsyncAgentService_GetTaskServer_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSend(_a0 *admin.GetTaskResponse) *AsyncAgentService_GetTaskServer_Send { + c_call := _m.On("Send", _a0) + return &AsyncAgentService_GetTaskServer_Send{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSendMatch(matchers ...interface{}) *AsyncAgentService_GetTaskServer_Send { + c_call := _m.On("Send", matchers...) + return &AsyncAgentService_GetTaskServer_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskServer) Send(_a0 *admin.GetTaskResponse) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.GetTaskResponse) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskServer_SendHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskServer_SendHeader) Return(_a0 error) *AsyncAgentService_GetTaskServer_SendHeader { + return &AsyncAgentService_GetTaskServer_SendHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSendHeader(_a0 metadata.MD) *AsyncAgentService_GetTaskServer_SendHeader { + c_call := _m.On("SendHeader", _a0) + return &AsyncAgentService_GetTaskServer_SendHeader{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSendHeaderMatch(matchers ...interface{}) *AsyncAgentService_GetTaskServer_SendHeader { + c_call := _m.On("SendHeader", matchers...) + return &AsyncAgentService_GetTaskServer_SendHeader{Call: c_call} +} + +// SendHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskServer) SendHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskServer_SendMsg struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskServer_SendMsg) Return(_a0 error) *AsyncAgentService_GetTaskServer_SendMsg { + return &AsyncAgentService_GetTaskServer_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSendMsg(m interface{}) *AsyncAgentService_GetTaskServer_SendMsg { + c_call := _m.On("SendMsg", m) + return &AsyncAgentService_GetTaskServer_SendMsg{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSendMsgMatch(matchers ...interface{}) *AsyncAgentService_GetTaskServer_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &AsyncAgentService_GetTaskServer_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *AsyncAgentService_GetTaskServer) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type AsyncAgentService_GetTaskServer_SetHeader struct { + *mock.Call +} + +func (_m AsyncAgentService_GetTaskServer_SetHeader) Return(_a0 error) *AsyncAgentService_GetTaskServer_SetHeader { + return &AsyncAgentService_GetTaskServer_SetHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSetHeader(_a0 metadata.MD) *AsyncAgentService_GetTaskServer_SetHeader { + c_call := _m.On("SetHeader", _a0) + return &AsyncAgentService_GetTaskServer_SetHeader{Call: c_call} +} + +func (_m *AsyncAgentService_GetTaskServer) OnSetHeaderMatch(matchers ...interface{}) *AsyncAgentService_GetTaskServer_SetHeader { + c_call := _m.On("SetHeader", matchers...) + return &AsyncAgentService_GetTaskServer_SetHeader{Call: c_call} +} + +// SetHeader provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskServer) SetHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// SetTrailer provides a mock function with given fields: _a0 +func (_m *AsyncAgentService_GetTaskServer) SetTrailer(_a0 metadata.MD) { + _m.Called(_a0) +} diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 834197a299..e0e06096fb 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -6,6 +6,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; import { TaskExecutionIdentifier } from "../core/identifier_pb.js"; +import { TaskNodeOverrides } from "../core/workflow_pb.js"; import { LiteralMap } from "../core/literals_pb.js"; import { TaskTemplate } from "../core/tasks_pb.js"; import { TaskExecution_Phase, TaskLog } from "../core/execution_pb.js"; @@ -99,6 +100,26 @@ export class TaskExecutionMetadata extends Message { */ environmentVariables: { [key: string]: string } = {}; + /** + * @generated from field: int32 max_attempts = 7; + */ + maxAttempts = 0; + + /** + * @generated from field: bool interruptible = 8; + */ + interruptible = false; + + /** + * @generated from field: int32 interruptible_failure_threshold = 9; + */ + interruptibleFailureThreshold = 0; + + /** + * @generated from field: flyteidl.core.TaskNodeOverrides overrides = 10; + */ + overrides?: TaskNodeOverrides; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -113,6 +134,10 @@ export class TaskExecutionMetadata extends Message { { no: 4, name: "annotations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, { no: 5, name: "k8s_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 6, name: "environment_variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 7, name: "max_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 8, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "interruptible_failure_threshold", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 10, name: "overrides", kind: "message", T: TaskNodeOverrides }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionMetadata { @@ -206,24 +231,11 @@ export class CreateTaskRequest extends Message { */ export class CreateTaskResponse extends Message { /** - * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - * Resource is for synchronous task execution. + * ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). * - * @generated from oneof flyteidl.admin.CreateTaskResponse.res + * @generated from field: bytes resource_meta = 1; */ - res: { - /** - * @generated from field: bytes resource_meta = 1; - */ - value: Uint8Array; - case: "resourceMeta"; - } | { - /** - * @generated from field: flyteidl.admin.Resource resource = 2; - */ - value: Resource; - case: "resource"; - } | { case: undefined; value?: undefined } = { case: undefined }; + resourceMeta = new Uint8Array(0); constructor(data?: PartialMessage) { super(); @@ -233,8 +245,7 @@ export class CreateTaskResponse extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.CreateTaskResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "res" }, - { no: 2, name: "resource", kind: "message", T: Resource, oneof: "res" }, + { no: 1, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateTaskResponse { @@ -254,6 +265,209 @@ export class CreateTaskResponse extends Message { } } +/** + * @generated from message flyteidl.admin.CreateRequestHeader + */ +export class CreateRequestHeader extends Message { + /** + * Template of the task that encapsulates all the metadata of the task. + * + * @generated from field: flyteidl.core.TaskTemplate template = 1; + */ + template?: TaskTemplate; + + /** + * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + * + * @generated from field: string output_prefix = 2; + */ + outputPrefix = ""; + + /** + * subset of runtime task execution metadata. + * + * @generated from field: flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 3; + */ + taskExecutionMetadata?: TaskExecutionMetadata; + + /** + * MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + * + * @generated from field: int64 max_dataset_size_bytes = 4; + */ + maxDatasetSizeBytes = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.CreateRequestHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: TaskTemplate }, + { no: 2, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "task_execution_metadata", kind: "message", T: TaskExecutionMetadata }, + { no: 4, name: "max_dataset_size_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateRequestHeader { + return new CreateRequestHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateRequestHeader { + return new CreateRequestHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateRequestHeader { + return new CreateRequestHeader().fromJsonString(jsonString, options); + } + + static equals(a: CreateRequestHeader | PlainMessage | undefined, b: CreateRequestHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateRequestHeader, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecuteTaskSyncRequest + */ +export class ExecuteTaskSyncRequest extends Message { + /** + * @generated from oneof flyteidl.admin.ExecuteTaskSyncRequest.part + */ + part: { + /** + * @generated from field: flyteidl.admin.CreateRequestHeader header = 1; + */ + value: CreateRequestHeader; + case: "header"; + } | { + /** + * @generated from field: flyteidl.core.LiteralMap inputs = 2; + */ + value: LiteralMap; + case: "inputs"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecuteTaskSyncRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "header", kind: "message", T: CreateRequestHeader, oneof: "part" }, + { no: 2, name: "inputs", kind: "message", T: LiteralMap, oneof: "part" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncRequest { + return new ExecuteTaskSyncRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncRequest { + return new ExecuteTaskSyncRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncRequest { + return new ExecuteTaskSyncRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteTaskSyncRequest | PlainMessage | undefined, b: ExecuteTaskSyncRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteTaskSyncRequest, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecuteTaskSyncResponseHeader + */ +export class ExecuteTaskSyncResponseHeader extends Message { + /** + * @generated from field: flyteidl.admin.Resource resource = 1; + */ + resource?: Resource; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecuteTaskSyncResponseHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource", kind: "message", T: Resource }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncResponseHeader { + return new ExecuteTaskSyncResponseHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncResponseHeader { + return new ExecuteTaskSyncResponseHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncResponseHeader { + return new ExecuteTaskSyncResponseHeader().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteTaskSyncResponseHeader | PlainMessage | undefined, b: ExecuteTaskSyncResponseHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteTaskSyncResponseHeader, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecuteTaskSyncResponse + */ +export class ExecuteTaskSyncResponse extends Message { + /** + * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + * Resource is for synchronous task execution. + * + * @generated from oneof flyteidl.admin.ExecuteTaskSyncResponse.res + */ + res: { + /** + * @generated from field: flyteidl.admin.ExecuteTaskSyncResponseHeader header = 1; + */ + value: ExecuteTaskSyncResponseHeader; + case: "header"; + } | { + /** + * @generated from field: flyteidl.core.LiteralMap outputs = 2; + */ + value: LiteralMap; + case: "outputs"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecuteTaskSyncResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "header", kind: "message", T: ExecuteTaskSyncResponseHeader, oneof: "res" }, + { no: 2, name: "outputs", kind: "message", T: LiteralMap, oneof: "res" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncResponse { + return new ExecuteTaskSyncResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncResponse { + return new ExecuteTaskSyncResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncResponse { + return new ExecuteTaskSyncResponse().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteTaskSyncResponse | PlainMessage | undefined, b: ExecuteTaskSyncResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteTaskSyncResponse, a, b); + } +} + /** * A message used to fetch a job resource from flyte agent server. * @@ -263,9 +477,9 @@ export class GetTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string task_type = 1; + * @generated from field: flyteidl.admin.TaskType task_type = 1; */ - taskType = ""; + taskType?: TaskType; /** * Metadata about the resource to be pass to the agent. @@ -282,7 +496,7 @@ export class GetTaskRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "message", T: TaskType }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); @@ -433,9 +647,9 @@ export class DeleteTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string task_type = 1; + * @generated from field: flyteidl.admin.TaskType task_type = 1; */ - taskType = ""; + taskType?: TaskType; /** * Metadata about the resource to be pass to the agent. @@ -452,7 +666,7 @@ export class DeleteTaskRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.DeleteTaskRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "message", T: TaskType }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); @@ -522,9 +736,9 @@ export class Agent extends Message { /** * SupportedTaskTypes are the types of the tasks that the agent can handle. * - * @generated from field: repeated string supported_task_types = 2; + * @generated from field: repeated flyteidl.admin.TaskType supported_task_types = 2; */ - supportedTaskTypes: string[] = []; + supportedTaskTypes: TaskType[] = []; constructor(data?: PartialMessage) { super(); @@ -535,7 +749,7 @@ export class Agent extends Message { static readonly typeName = "flyteidl.admin.Agent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "supported_task_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Agent { @@ -555,6 +769,53 @@ export class Agent extends Message { } } +/** + * @generated from message flyteidl.admin.TaskType + */ +export class TaskType extends Message { + /** + * The name of the task type. + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * The version of the task type. + * + * @generated from field: int32 version = 2; + */ + version = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskType { + return new TaskType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskType { + return new TaskType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskType { + return new TaskType().fromJsonString(jsonString, options); + } + + static equals(a: TaskType | PlainMessage | undefined, b: TaskType | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskType, a, b); + } +} + /** * A request to get an agent. * @@ -716,9 +977,9 @@ export class GetTaskMetricsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string task_type = 1; + * @generated from field: flyteidl.admin.TaskType task_type = 1; */ - taskType = ""; + taskType?: TaskType; /** * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). @@ -764,7 +1025,7 @@ export class GetTaskMetricsRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskMetricsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "message", T: TaskType }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "queries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "start_time", kind: "message", T: Timestamp }, @@ -839,9 +1100,9 @@ export class GetTaskLogsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string task_type = 1; + * @generated from field: flyteidl.admin.TaskType task_type = 1; */ - taskType = ""; + taskType?: TaskType; /** * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). @@ -873,7 +1134,7 @@ export class GetTaskLogsRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskLogsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "message", T: TaskType }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "lines", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, @@ -897,11 +1158,49 @@ export class GetTaskLogsRequest extends Message { } /** - * A response containing the logs for a task execution. - * - * @generated from message flyteidl.admin.GetTaskLogsResponse + * @generated from message flyteidl.admin.GetTaskLogsResponseHeader */ -export class GetTaskLogsResponse extends Message { +export class GetTaskLogsResponseHeader extends Message { + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 1; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskLogsResponseHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponseHeader { + return new GetTaskLogsResponseHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponseHeader { + return new GetTaskLogsResponseHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponseHeader { + return new GetTaskLogsResponseHeader().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskLogsResponseHeader | PlainMessage | undefined, b: GetTaskLogsResponseHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskLogsResponseHeader, a, b); + } +} + +/** + * @generated from message flyteidl.admin.GetTaskLogsResponseBody + */ +export class GetTaskLogsResponseBody extends Message { /** * The execution log results. * @@ -909,13 +1208,56 @@ export class GetTaskLogsResponse extends Message { */ results: string[] = []; + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskLogsResponseBody"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "results", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponseBody { + return new GetTaskLogsResponseBody().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponseBody { + return new GetTaskLogsResponseBody().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponseBody { + return new GetTaskLogsResponseBody().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskLogsResponseBody | PlainMessage | undefined, b: GetTaskLogsResponseBody | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskLogsResponseBody, a, b); + } +} + +/** + * A response containing the logs for a task execution. + * + * @generated from message flyteidl.admin.GetTaskLogsResponse + */ +export class GetTaskLogsResponse extends Message { /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; + * @generated from oneof flyteidl.admin.GetTaskLogsResponse.part */ - token = ""; + part: { + /** + * @generated from field: flyteidl.admin.GetTaskLogsResponseHeader header = 1; + */ + value: GetTaskLogsResponseHeader; + case: "header"; + } | { + /** + * @generated from field: flyteidl.admin.GetTaskLogsResponseBody body = 2; + */ + value: GetTaskLogsResponseBody; + case: "body"; + } | { case: undefined; value?: undefined } = { case: undefined }; constructor(data?: PartialMessage) { super(); @@ -925,8 +1267,8 @@ export class GetTaskLogsResponse extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskLogsResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "header", kind: "message", T: GetTaskLogsResponseHeader, oneof: "part" }, + { no: 2, name: "body", kind: "message", T: GetTaskLogsResponseBody, oneof: "part" }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponse { diff --git a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts index 3068a3181a..37b536b8f5 100644 --- a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts +++ b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts @@ -3,7 +3,7 @@ /* eslint-disable */ // @ts-nocheck -import { CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskResponse, GetAgentRequest, GetAgentResponse, GetTaskLogsRequest, GetTaskLogsResponse, GetTaskMetricsRequest, GetTaskMetricsResponse, GetTaskRequest, GetTaskResponse, ListAgentsRequest, ListAgentsResponse } from "../admin/agent_pb.js"; +import { CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskResponse, ExecuteTaskSyncRequest, ExecuteTaskSyncResponse, GetAgentRequest, GetAgentResponse, GetTaskLogsRequest, GetTaskLogsResponse, GetTaskMetricsRequest, GetTaskMetricsResponse, GetTaskRequest, GetTaskResponse, ListAgentsRequest, ListAgentsResponse } from "../admin/agent_pb.js"; import { MethodKind } from "@bufbuild/protobuf"; /** @@ -15,7 +15,18 @@ export const AsyncAgentService = { typeName: "flyteidl.service.AsyncAgentService", methods: { /** - * Send a task create request to the agent server. + * ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + * + * @generated from rpc flyteidl.service.AsyncAgentService.ExecuteTaskSync + */ + executeTaskSync: { + name: "ExecuteTaskSync", + I: ExecuteTaskSyncRequest, + O: ExecuteTaskSyncResponse, + kind: MethodKind.BiDiStreaming, + }, + /** + * CreateTask sends a task create request to the agent service. * * @generated from rpc flyteidl.service.AsyncAgentService.CreateTask */ @@ -71,7 +82,7 @@ export const AsyncAgentService = { name: "GetTaskLogs", I: GetTaskLogsRequest, O: GetTaskLogsResponse, - kind: MethodKind.Unary, + kind: MethodKind.ServerStreaming, }, } } as const; diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index de0a0f0244..0badb46537 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -96,7 +96,11 @@ type TaskExecutionMetadata struct { // k8s service account associated with the task execution K8SServiceAccount string `protobuf:"bytes,5,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` // Environment variables attached to the task execution - EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MaxAttempts int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + InterruptibleFailureThreshold int32 `protobuf:"varint,9,opt,name=interruptible_failure_threshold,json=interruptibleFailureThreshold,proto3" json:"interruptible_failure_threshold,omitempty"` + Overrides *core.TaskNodeOverrides `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"` } func (x *TaskExecutionMetadata) Reset() { @@ -173,6 +177,34 @@ func (x *TaskExecutionMetadata) GetEnvironmentVariables() map[string]string { return nil } +func (x *TaskExecutionMetadata) GetMaxAttempts() int32 { + if x != nil { + return x.MaxAttempts + } + return 0 +} + +func (x *TaskExecutionMetadata) GetInterruptible() bool { + if x != nil { + return x.Interruptible + } + return false +} + +func (x *TaskExecutionMetadata) GetInterruptibleFailureThreshold() int32 { + if x != nil { + return x.InterruptibleFailureThreshold + } + return 0 +} + +func (x *TaskExecutionMetadata) GetOverrides() *core.TaskNodeOverrides { + if x != nil { + return x.Overrides + } + return nil +} + // Represents a request structure to create task. type CreateTaskRequest struct { state protoimpl.MessageState @@ -257,14 +289,8 @@ type CreateTaskResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - // Resource is for synchronous task execution. - // - // Types that are assignable to Res: - // - // *CreateTaskResponse_ResourceMeta - // *CreateTaskResponse_Resource - Res isCreateTaskResponse_Res `protobuf_oneof:"res"` + // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` } func (x *CreateTaskResponse) Reset() { @@ -299,42 +325,299 @@ func (*CreateTaskResponse) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{2} } -func (m *CreateTaskResponse) GetRes() isCreateTaskResponse_Res { +func (x *CreateTaskResponse) GetResourceMeta() []byte { + if x != nil { + return x.ResourceMeta + } + return nil +} + +type CreateRequestHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + OutputPrefix string `protobuf:"bytes,2,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` + // subset of runtime task execution metadata. + TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,3,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` + // MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + MaxDatasetSizeBytes int64 `protobuf:"varint,4,opt,name=max_dataset_size_bytes,json=maxDatasetSizeBytes,proto3" json:"max_dataset_size_bytes,omitempty"` +} + +func (x *CreateRequestHeader) Reset() { + *x = CreateRequestHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateRequestHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRequestHeader) ProtoMessage() {} + +func (x *CreateRequestHeader) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateRequestHeader.ProtoReflect.Descriptor instead. +func (*CreateRequestHeader) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateRequestHeader) GetTemplate() *core.TaskTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *CreateRequestHeader) GetOutputPrefix() string { + if x != nil { + return x.OutputPrefix + } + return "" +} + +func (x *CreateRequestHeader) GetTaskExecutionMetadata() *TaskExecutionMetadata { + if x != nil { + return x.TaskExecutionMetadata + } + return nil +} + +func (x *CreateRequestHeader) GetMaxDatasetSizeBytes() int64 { + if x != nil { + return x.MaxDatasetSizeBytes + } + return 0 +} + +type ExecuteTaskSyncRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Part: + // + // *ExecuteTaskSyncRequest_Header + // *ExecuteTaskSyncRequest_Inputs + Part isExecuteTaskSyncRequest_Part `protobuf_oneof:"part"` +} + +func (x *ExecuteTaskSyncRequest) Reset() { + *x = ExecuteTaskSyncRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteTaskSyncRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteTaskSyncRequest) ProtoMessage() {} + +func (x *ExecuteTaskSyncRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteTaskSyncRequest.ProtoReflect.Descriptor instead. +func (*ExecuteTaskSyncRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{4} +} + +func (m *ExecuteTaskSyncRequest) GetPart() isExecuteTaskSyncRequest_Part { if m != nil { - return m.Res + return m.Part } return nil } -func (x *CreateTaskResponse) GetResourceMeta() []byte { - if x, ok := x.GetRes().(*CreateTaskResponse_ResourceMeta); ok { - return x.ResourceMeta +func (x *ExecuteTaskSyncRequest) GetHeader() *CreateRequestHeader { + if x, ok := x.GetPart().(*ExecuteTaskSyncRequest_Header); ok { + return x.Header } return nil } -func (x *CreateTaskResponse) GetResource() *Resource { - if x, ok := x.GetRes().(*CreateTaskResponse_Resource); ok { +func (x *ExecuteTaskSyncRequest) GetInputs() *core.LiteralMap { + if x, ok := x.GetPart().(*ExecuteTaskSyncRequest_Inputs); ok { + return x.Inputs + } + return nil +} + +type isExecuteTaskSyncRequest_Part interface { + isExecuteTaskSyncRequest_Part() +} + +type ExecuteTaskSyncRequest_Header struct { + Header *CreateRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type ExecuteTaskSyncRequest_Inputs struct { + Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3,oneof"` +} + +func (*ExecuteTaskSyncRequest_Header) isExecuteTaskSyncRequest_Part() {} + +func (*ExecuteTaskSyncRequest_Inputs) isExecuteTaskSyncRequest_Part() {} + +type ExecuteTaskSyncResponseHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *ExecuteTaskSyncResponseHeader) Reset() { + *x = ExecuteTaskSyncResponseHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteTaskSyncResponseHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteTaskSyncResponseHeader) ProtoMessage() {} + +func (x *ExecuteTaskSyncResponseHeader) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteTaskSyncResponseHeader.ProtoReflect.Descriptor instead. +func (*ExecuteTaskSyncResponseHeader) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{5} +} + +func (x *ExecuteTaskSyncResponseHeader) GetResource() *Resource { + if x != nil { return x.Resource } return nil } -type isCreateTaskResponse_Res interface { - isCreateTaskResponse_Res() +type ExecuteTaskSyncResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + // Resource is for synchronous task execution. + // + // Types that are assignable to Res: + // + // *ExecuteTaskSyncResponse_Header + // *ExecuteTaskSyncResponse_Outputs + Res isExecuteTaskSyncResponse_Res `protobuf_oneof:"res"` } -type CreateTaskResponse_ResourceMeta struct { - ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3,oneof"` +func (x *ExecuteTaskSyncResponse) Reset() { + *x = ExecuteTaskSyncResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } -type CreateTaskResponse_Resource struct { - Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3,oneof"` +func (x *ExecuteTaskSyncResponse) String() string { + return protoimpl.X.MessageStringOf(x) } -func (*CreateTaskResponse_ResourceMeta) isCreateTaskResponse_Res() {} +func (*ExecuteTaskSyncResponse) ProtoMessage() {} -func (*CreateTaskResponse_Resource) isCreateTaskResponse_Res() {} +func (x *ExecuteTaskSyncResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteTaskSyncResponse.ProtoReflect.Descriptor instead. +func (*ExecuteTaskSyncResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{6} +} + +func (m *ExecuteTaskSyncResponse) GetRes() isExecuteTaskSyncResponse_Res { + if m != nil { + return m.Res + } + return nil +} + +func (x *ExecuteTaskSyncResponse) GetHeader() *ExecuteTaskSyncResponseHeader { + if x, ok := x.GetRes().(*ExecuteTaskSyncResponse_Header); ok { + return x.Header + } + return nil +} + +func (x *ExecuteTaskSyncResponse) GetOutputs() *core.LiteralMap { + if x, ok := x.GetRes().(*ExecuteTaskSyncResponse_Outputs); ok { + return x.Outputs + } + return nil +} + +type isExecuteTaskSyncResponse_Res interface { + isExecuteTaskSyncResponse_Res() +} + +type ExecuteTaskSyncResponse_Header struct { + Header *ExecuteTaskSyncResponseHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type ExecuteTaskSyncResponse_Outputs struct { + Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3,oneof"` +} + +func (*ExecuteTaskSyncResponse_Header) isExecuteTaskSyncResponse_Res() {} + +func (*ExecuteTaskSyncResponse_Outputs) isExecuteTaskSyncResponse_Res() {} // A message used to fetch a job resource from flyte agent server. type GetTaskRequest struct { @@ -343,7 +626,7 @@ type GetTaskRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata about the resource to be pass to the agent. ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` } @@ -351,7 +634,7 @@ type GetTaskRequest struct { func (x *GetTaskRequest) Reset() { *x = GetTaskRequest{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[3] + mi := &file_flyteidl_admin_agent_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -364,7 +647,7 @@ func (x *GetTaskRequest) String() string { func (*GetTaskRequest) ProtoMessage() {} func (x *GetTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[3] + mi := &file_flyteidl_admin_agent_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -377,14 +660,14 @@ func (x *GetTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead. func (*GetTaskRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{3} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{7} } -func (x *GetTaskRequest) GetTaskType() string { +func (x *GetTaskRequest) GetTaskType() *TaskType { if x != nil { return x.TaskType } - return "" + return nil } func (x *GetTaskRequest) GetResourceMeta() []byte { @@ -408,7 +691,7 @@ type GetTaskResponse struct { func (x *GetTaskResponse) Reset() { *x = GetTaskResponse{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[4] + mi := &file_flyteidl_admin_agent_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -421,7 +704,7 @@ func (x *GetTaskResponse) String() string { func (*GetTaskResponse) ProtoMessage() {} func (x *GetTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[4] + mi := &file_flyteidl_admin_agent_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -434,7 +717,7 @@ func (x *GetTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead. func (*GetTaskResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{4} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{8} } func (x *GetTaskResponse) GetResource() *Resource { @@ -475,7 +758,7 @@ type Resource struct { func (x *Resource) Reset() { *x = Resource{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[5] + mi := &file_flyteidl_admin_agent_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -488,7 +771,7 @@ func (x *Resource) String() string { func (*Resource) ProtoMessage() {} func (x *Resource) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[5] + mi := &file_flyteidl_admin_agent_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -501,7 +784,7 @@ func (x *Resource) ProtoReflect() protoreflect.Message { // Deprecated: Use Resource.ProtoReflect.Descriptor instead. func (*Resource) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{5} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{9} } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. @@ -547,7 +830,7 @@ type DeleteTaskRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata about the resource to be pass to the agent. ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` } @@ -555,7 +838,7 @@ type DeleteTaskRequest struct { func (x *DeleteTaskRequest) Reset() { *x = DeleteTaskRequest{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[6] + mi := &file_flyteidl_admin_agent_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -568,7 +851,7 @@ func (x *DeleteTaskRequest) String() string { func (*DeleteTaskRequest) ProtoMessage() {} func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[6] + mi := &file_flyteidl_admin_agent_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -581,14 +864,14 @@ func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead. func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{6} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{10} } -func (x *DeleteTaskRequest) GetTaskType() string { +func (x *DeleteTaskRequest) GetTaskType() *TaskType { if x != nil { return x.TaskType } - return "" + return nil } func (x *DeleteTaskRequest) GetResourceMeta() []byte { @@ -608,7 +891,7 @@ type DeleteTaskResponse struct { func (x *DeleteTaskResponse) Reset() { *x = DeleteTaskResponse{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[7] + mi := &file_flyteidl_admin_agent_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -621,7 +904,7 @@ func (x *DeleteTaskResponse) String() string { func (*DeleteTaskResponse) ProtoMessage() {} func (x *DeleteTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[7] + mi := &file_flyteidl_admin_agent_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -634,38 +917,95 @@ func (x *DeleteTaskResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteTaskResponse.ProtoReflect.Descriptor instead. func (*DeleteTaskResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{7} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{11} +} + +// A message containing the agent metadata. +type Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name is the developer-assigned name of the agent. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // SupportedTaskTypes are the types of the tasks that the agent can handle. + SupportedTaskTypes []*TaskType `protobuf:"bytes,2,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` +} + +func (x *Agent) Reset() { + *x = Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Agent) ProtoMessage() {} + +func (x *Agent) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Agent.ProtoReflect.Descriptor instead. +func (*Agent) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{12} +} + +func (x *Agent) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Agent) GetSupportedTaskTypes() []*TaskType { + if x != nil { + return x.SupportedTaskTypes + } + return nil } -// A message containing the agent metadata. -type Agent struct { +type TaskType struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // Name is the developer-assigned name of the agent. + // The name of the task type. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // SupportedTaskTypes are the types of the tasks that the agent can handle. - SupportedTaskTypes []string `protobuf:"bytes,2,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` + // The version of the task type. + Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` } -func (x *Agent) Reset() { - *x = Agent{} +func (x *TaskType) Reset() { + *x = TaskType{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[8] + mi := &file_flyteidl_admin_agent_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *Agent) String() string { +func (x *TaskType) String() string { return protoimpl.X.MessageStringOf(x) } -func (*Agent) ProtoMessage() {} +func (*TaskType) ProtoMessage() {} -func (x *Agent) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[8] +func (x *TaskType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -676,23 +1016,23 @@ func (x *Agent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Agent.ProtoReflect.Descriptor instead. -func (*Agent) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{8} +// Deprecated: Use TaskType.ProtoReflect.Descriptor instead. +func (*TaskType) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{13} } -func (x *Agent) GetName() string { +func (x *TaskType) GetName() string { if x != nil { return x.Name } return "" } -func (x *Agent) GetSupportedTaskTypes() []string { +func (x *TaskType) GetVersion() int32 { if x != nil { - return x.SupportedTaskTypes + return x.Version } - return nil + return 0 } // A request to get an agent. @@ -708,7 +1048,7 @@ type GetAgentRequest struct { func (x *GetAgentRequest) Reset() { *x = GetAgentRequest{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[9] + mi := &file_flyteidl_admin_agent_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -721,7 +1061,7 @@ func (x *GetAgentRequest) String() string { func (*GetAgentRequest) ProtoMessage() {} func (x *GetAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[9] + mi := &file_flyteidl_admin_agent_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -734,7 +1074,7 @@ func (x *GetAgentRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead. func (*GetAgentRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{9} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{14} } func (x *GetAgentRequest) GetName() string { @@ -756,7 +1096,7 @@ type GetAgentResponse struct { func (x *GetAgentResponse) Reset() { *x = GetAgentResponse{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[10] + mi := &file_flyteidl_admin_agent_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -769,7 +1109,7 @@ func (x *GetAgentResponse) String() string { func (*GetAgentResponse) ProtoMessage() {} func (x *GetAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[10] + mi := &file_flyteidl_admin_agent_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -782,7 +1122,7 @@ func (x *GetAgentResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetAgentResponse.ProtoReflect.Descriptor instead. func (*GetAgentResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{10} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{15} } func (x *GetAgentResponse) GetAgent() *Agent { @@ -802,7 +1142,7 @@ type ListAgentsRequest struct { func (x *ListAgentsRequest) Reset() { *x = ListAgentsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[11] + mi := &file_flyteidl_admin_agent_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -815,7 +1155,7 @@ func (x *ListAgentsRequest) String() string { func (*ListAgentsRequest) ProtoMessage() {} func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[11] + mi := &file_flyteidl_admin_agent_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -828,7 +1168,7 @@ func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentsRequest.ProtoReflect.Descriptor instead. func (*ListAgentsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{11} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{16} } // A response containing a list of agents. @@ -843,7 +1183,7 @@ type ListAgentsResponse struct { func (x *ListAgentsResponse) Reset() { *x = ListAgentsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[12] + mi := &file_flyteidl_admin_agent_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -856,7 +1196,7 @@ func (x *ListAgentsResponse) String() string { func (*ListAgentsResponse) ProtoMessage() {} func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[12] + mi := &file_flyteidl_admin_agent_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -869,7 +1209,7 @@ func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAgentsResponse.ProtoReflect.Descriptor instead. func (*ListAgentsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{12} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{17} } func (x *ListAgentsResponse) GetAgents() []*Agent { @@ -886,7 +1226,7 @@ type GetTaskMetricsRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // The metrics to query. If empty, will return a default set of metrics. @@ -903,7 +1243,7 @@ type GetTaskMetricsRequest struct { func (x *GetTaskMetricsRequest) Reset() { *x = GetTaskMetricsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[13] + mi := &file_flyteidl_admin_agent_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -916,7 +1256,7 @@ func (x *GetTaskMetricsRequest) String() string { func (*GetTaskMetricsRequest) ProtoMessage() {} func (x *GetTaskMetricsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[13] + mi := &file_flyteidl_admin_agent_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -929,14 +1269,14 @@ func (x *GetTaskMetricsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTaskMetricsRequest.ProtoReflect.Descriptor instead. func (*GetTaskMetricsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{13} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{18} } -func (x *GetTaskMetricsRequest) GetTaskType() string { +func (x *GetTaskMetricsRequest) GetTaskType() *TaskType { if x != nil { return x.TaskType } - return "" + return nil } func (x *GetTaskMetricsRequest) GetResourceMeta() []byte { @@ -987,7 +1327,7 @@ type GetTaskMetricsResponse struct { func (x *GetTaskMetricsResponse) Reset() { *x = GetTaskMetricsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[14] + mi := &file_flyteidl_admin_agent_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1000,7 +1340,7 @@ func (x *GetTaskMetricsResponse) String() string { func (*GetTaskMetricsResponse) ProtoMessage() {} func (x *GetTaskMetricsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[14] + mi := &file_flyteidl_admin_agent_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1013,7 +1353,7 @@ func (x *GetTaskMetricsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTaskMetricsResponse.ProtoReflect.Descriptor instead. func (*GetTaskMetricsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{14} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{19} } func (x *GetTaskMetricsResponse) GetResults() []*core.ExecutionMetricResult { @@ -1030,7 +1370,7 @@ type GetTaskLogsRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // Number of lines to return. @@ -1043,7 +1383,7 @@ type GetTaskLogsRequest struct { func (x *GetTaskLogsRequest) Reset() { *x = GetTaskLogsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[15] + mi := &file_flyteidl_admin_agent_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1056,7 +1396,7 @@ func (x *GetTaskLogsRequest) String() string { func (*GetTaskLogsRequest) ProtoMessage() {} func (x *GetTaskLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[15] + mi := &file_flyteidl_admin_agent_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1069,14 +1409,14 @@ func (x *GetTaskLogsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTaskLogsRequest.ProtoReflect.Descriptor instead. func (*GetTaskLogsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{15} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{20} } -func (x *GetTaskLogsRequest) GetTaskType() string { +func (x *GetTaskLogsRequest) GetTaskType() *TaskType { if x != nil { return x.TaskType } - return "" + return nil } func (x *GetTaskLogsRequest) GetResourceMeta() []byte { @@ -1100,23 +1440,120 @@ func (x *GetTaskLogsRequest) GetToken() string { return "" } -// A response containing the logs for a task execution. -type GetTaskLogsResponse struct { +type GetTaskLogsResponseHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The execution log results. - Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // In the case of multiple pages of results, the server-provided token can be used to fetch the next page // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *GetTaskLogsResponseHeader) Reset() { + *x = GetTaskLogsResponseHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskLogsResponseHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskLogsResponseHeader) ProtoMessage() {} + +func (x *GetTaskLogsResponseHeader) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskLogsResponseHeader.ProtoReflect.Descriptor instead. +func (*GetTaskLogsResponseHeader) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{21} +} + +func (x *GetTaskLogsResponseHeader) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type GetTaskLogsResponseBody struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The execution log results. + Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` +} + +func (x *GetTaskLogsResponseBody) Reset() { + *x = GetTaskLogsResponseBody{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskLogsResponseBody) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskLogsResponseBody) ProtoMessage() {} + +func (x *GetTaskLogsResponseBody) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskLogsResponseBody.ProtoReflect.Descriptor instead. +func (*GetTaskLogsResponseBody) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{22} +} + +func (x *GetTaskLogsResponseBody) GetResults() []string { + if x != nil { + return x.Results + } + return nil +} + +// A response containing the logs for a task execution. +type GetTaskLogsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Part: + // + // *GetTaskLogsResponse_Header + // *GetTaskLogsResponse_Body + Part isGetTaskLogsResponse_Part `protobuf_oneof:"part"` } func (x *GetTaskLogsResponse) Reset() { *x = GetTaskLogsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[16] + mi := &file_flyteidl_admin_agent_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1129,7 +1566,7 @@ func (x *GetTaskLogsResponse) String() string { func (*GetTaskLogsResponse) ProtoMessage() {} func (x *GetTaskLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[16] + mi := &file_flyteidl_admin_agent_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1142,23 +1579,46 @@ func (x *GetTaskLogsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTaskLogsResponse.ProtoReflect.Descriptor instead. func (*GetTaskLogsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{16} + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{23} } -func (x *GetTaskLogsResponse) GetResults() []string { - if x != nil { - return x.Results +func (m *GetTaskLogsResponse) GetPart() isGetTaskLogsResponse_Part { + if m != nil { + return m.Part } return nil } -func (x *GetTaskLogsResponse) GetToken() string { - if x != nil { - return x.Token +func (x *GetTaskLogsResponse) GetHeader() *GetTaskLogsResponseHeader { + if x, ok := x.GetPart().(*GetTaskLogsResponse_Header); ok { + return x.Header } - return "" + return nil +} + +func (x *GetTaskLogsResponse) GetBody() *GetTaskLogsResponseBody { + if x, ok := x.GetPart().(*GetTaskLogsResponse_Body); ok { + return x.Body + } + return nil +} + +type isGetTaskLogsResponse_Part interface { + isGetTaskLogsResponse_Part() +} + +type GetTaskLogsResponse_Header struct { + Header *GetTaskLogsResponseHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type GetTaskLogsResponse_Body struct { + Body *GetTaskLogsResponseBody `protobuf:"bytes,2,opt,name=body,proto3,oneof"` } +func (*GetTaskLogsResponse_Header) isGetTaskLogsResponse_Part() {} + +func (*GetTaskLogsResponse_Body) isGetTaskLogsResponse_Part() {} + var File_flyteidl_admin_agent_proto protoreflect.FileDescriptor var file_flyteidl_admin_agent_proto_rawDesc = []byte{ @@ -1168,189 +1628,266 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x98, 0x05, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x52, 0x0a, 0x11, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x49, - 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x6b, 0x38, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x74, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, - 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x47, 0x0a, 0x19, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xe9, 0x06, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x52, 0x0a, 0x11, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x74, + 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, + 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, + 0x6b, 0x38, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x74, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x3f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x83, 0x02, - 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x79, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, + 0x61, 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x12, 0x46, 0x0a, 0x1f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, + 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x3e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, + 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4e, 0x6f, 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x09, 0x6f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x47, 0x0a, 0x19, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x83, 0x02, 0x0a, + 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x06, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, 0x73, + 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x39, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x87, 0x02, + 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, + 0x66, 0x69, 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, 0x73, + 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x53, 0x69, + 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x06, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x22, 0x55, + 0x0a, 0x1d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, + 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x47, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, + 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x73, 0x42, 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0x6c, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x7c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, + 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, + 0x69, 0x6e, 0x6b, 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x06, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, - 0x65, 0x66, 0x69, 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x22, 0x7a, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, - 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, - 0x12, 0x36, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, + 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, + 0x22, 0x6f, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, + 0x61, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x48, 0x00, 0x52, 0x08, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, - 0x52, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x22, 0x7c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x09, - 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x6b, - 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, - 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x69, - 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x22, 0x55, 0x0a, - 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x0a, 0x05, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x94, 0x02, 0x0a, 0x15, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, - 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, - 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x82, 0x01, 0x0a, - 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, - 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0x45, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x2a, 0x5e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, - 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, - 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, - 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, - 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, - 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, - 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, - 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, + 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, + 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, + 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, + 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, + 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, + 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, + 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, + 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, + 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, + 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, + 0x72, 0x74, 0x2a, 0x5e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, + 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, + 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, + 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, + 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, + 0x10, 0x04, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -1366,64 +1903,86 @@ func file_flyteidl_admin_agent_proto_rawDescGZIP() []byte { } var file_flyteidl_admin_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_admin_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_flyteidl_admin_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 27) var file_flyteidl_admin_agent_proto_goTypes = []interface{}{ - (State)(0), // 0: flyteidl.admin.State - (*TaskExecutionMetadata)(nil), // 1: flyteidl.admin.TaskExecutionMetadata - (*CreateTaskRequest)(nil), // 2: flyteidl.admin.CreateTaskRequest - (*CreateTaskResponse)(nil), // 3: flyteidl.admin.CreateTaskResponse - (*GetTaskRequest)(nil), // 4: flyteidl.admin.GetTaskRequest - (*GetTaskResponse)(nil), // 5: flyteidl.admin.GetTaskResponse - (*Resource)(nil), // 6: flyteidl.admin.Resource - (*DeleteTaskRequest)(nil), // 7: flyteidl.admin.DeleteTaskRequest - (*DeleteTaskResponse)(nil), // 8: flyteidl.admin.DeleteTaskResponse - (*Agent)(nil), // 9: flyteidl.admin.Agent - (*GetAgentRequest)(nil), // 10: flyteidl.admin.GetAgentRequest - (*GetAgentResponse)(nil), // 11: flyteidl.admin.GetAgentResponse - (*ListAgentsRequest)(nil), // 12: flyteidl.admin.ListAgentsRequest - (*ListAgentsResponse)(nil), // 13: flyteidl.admin.ListAgentsResponse - (*GetTaskMetricsRequest)(nil), // 14: flyteidl.admin.GetTaskMetricsRequest - (*GetTaskMetricsResponse)(nil), // 15: flyteidl.admin.GetTaskMetricsResponse - (*GetTaskLogsRequest)(nil), // 16: flyteidl.admin.GetTaskLogsRequest - (*GetTaskLogsResponse)(nil), // 17: flyteidl.admin.GetTaskLogsResponse - nil, // 18: flyteidl.admin.TaskExecutionMetadata.LabelsEntry - nil, // 19: flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry - nil, // 20: flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry - (*core.TaskExecutionIdentifier)(nil), // 21: flyteidl.core.TaskExecutionIdentifier - (*core.LiteralMap)(nil), // 22: flyteidl.core.LiteralMap - (*core.TaskTemplate)(nil), // 23: flyteidl.core.TaskTemplate - (*core.TaskLog)(nil), // 24: flyteidl.core.TaskLog - (core.TaskExecution_Phase)(0), // 25: flyteidl.core.TaskExecution.Phase - (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 27: google.protobuf.Duration - (*core.ExecutionMetricResult)(nil), // 28: flyteidl.core.ExecutionMetricResult + (State)(0), // 0: flyteidl.admin.State + (*TaskExecutionMetadata)(nil), // 1: flyteidl.admin.TaskExecutionMetadata + (*CreateTaskRequest)(nil), // 2: flyteidl.admin.CreateTaskRequest + (*CreateTaskResponse)(nil), // 3: flyteidl.admin.CreateTaskResponse + (*CreateRequestHeader)(nil), // 4: flyteidl.admin.CreateRequestHeader + (*ExecuteTaskSyncRequest)(nil), // 5: flyteidl.admin.ExecuteTaskSyncRequest + (*ExecuteTaskSyncResponseHeader)(nil), // 6: flyteidl.admin.ExecuteTaskSyncResponseHeader + (*ExecuteTaskSyncResponse)(nil), // 7: flyteidl.admin.ExecuteTaskSyncResponse + (*GetTaskRequest)(nil), // 8: flyteidl.admin.GetTaskRequest + (*GetTaskResponse)(nil), // 9: flyteidl.admin.GetTaskResponse + (*Resource)(nil), // 10: flyteidl.admin.Resource + (*DeleteTaskRequest)(nil), // 11: flyteidl.admin.DeleteTaskRequest + (*DeleteTaskResponse)(nil), // 12: flyteidl.admin.DeleteTaskResponse + (*Agent)(nil), // 13: flyteidl.admin.Agent + (*TaskType)(nil), // 14: flyteidl.admin.TaskType + (*GetAgentRequest)(nil), // 15: flyteidl.admin.GetAgentRequest + (*GetAgentResponse)(nil), // 16: flyteidl.admin.GetAgentResponse + (*ListAgentsRequest)(nil), // 17: flyteidl.admin.ListAgentsRequest + (*ListAgentsResponse)(nil), // 18: flyteidl.admin.ListAgentsResponse + (*GetTaskMetricsRequest)(nil), // 19: flyteidl.admin.GetTaskMetricsRequest + (*GetTaskMetricsResponse)(nil), // 20: flyteidl.admin.GetTaskMetricsResponse + (*GetTaskLogsRequest)(nil), // 21: flyteidl.admin.GetTaskLogsRequest + (*GetTaskLogsResponseHeader)(nil), // 22: flyteidl.admin.GetTaskLogsResponseHeader + (*GetTaskLogsResponseBody)(nil), // 23: flyteidl.admin.GetTaskLogsResponseBody + (*GetTaskLogsResponse)(nil), // 24: flyteidl.admin.GetTaskLogsResponse + nil, // 25: flyteidl.admin.TaskExecutionMetadata.LabelsEntry + nil, // 26: flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry + nil, // 27: flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry + (*core.TaskExecutionIdentifier)(nil), // 28: flyteidl.core.TaskExecutionIdentifier + (*core.TaskNodeOverrides)(nil), // 29: flyteidl.core.TaskNodeOverrides + (*core.LiteralMap)(nil), // 30: flyteidl.core.LiteralMap + (*core.TaskTemplate)(nil), // 31: flyteidl.core.TaskTemplate + (*core.TaskLog)(nil), // 32: flyteidl.core.TaskLog + (core.TaskExecution_Phase)(0), // 33: flyteidl.core.TaskExecution.Phase + (*timestamppb.Timestamp)(nil), // 34: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 35: google.protobuf.Duration + (*core.ExecutionMetricResult)(nil), // 36: flyteidl.core.ExecutionMetricResult } var file_flyteidl_admin_agent_proto_depIdxs = []int32{ - 21, // 0: flyteidl.admin.TaskExecutionMetadata.task_execution_id:type_name -> flyteidl.core.TaskExecutionIdentifier - 18, // 1: flyteidl.admin.TaskExecutionMetadata.labels:type_name -> flyteidl.admin.TaskExecutionMetadata.LabelsEntry - 19, // 2: flyteidl.admin.TaskExecutionMetadata.annotations:type_name -> flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry - 20, // 3: flyteidl.admin.TaskExecutionMetadata.environment_variables:type_name -> flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry - 22, // 4: flyteidl.admin.CreateTaskRequest.inputs:type_name -> flyteidl.core.LiteralMap - 23, // 5: flyteidl.admin.CreateTaskRequest.template:type_name -> flyteidl.core.TaskTemplate - 1, // 6: flyteidl.admin.CreateTaskRequest.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata - 6, // 7: flyteidl.admin.CreateTaskResponse.resource:type_name -> flyteidl.admin.Resource - 6, // 8: flyteidl.admin.GetTaskResponse.resource:type_name -> flyteidl.admin.Resource - 24, // 9: flyteidl.admin.GetTaskResponse.log_links:type_name -> flyteidl.core.TaskLog - 0, // 10: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State - 22, // 11: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap - 24, // 12: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog - 25, // 13: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase - 9, // 14: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 9, // 15: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 26, // 16: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp - 26, // 17: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp - 27, // 18: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 28, // 19: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 20, // [20:20] is the sub-list for method output_type - 20, // [20:20] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name + 28, // 0: flyteidl.admin.TaskExecutionMetadata.task_execution_id:type_name -> flyteidl.core.TaskExecutionIdentifier + 25, // 1: flyteidl.admin.TaskExecutionMetadata.labels:type_name -> flyteidl.admin.TaskExecutionMetadata.LabelsEntry + 26, // 2: flyteidl.admin.TaskExecutionMetadata.annotations:type_name -> flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry + 27, // 3: flyteidl.admin.TaskExecutionMetadata.environment_variables:type_name -> flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry + 29, // 4: flyteidl.admin.TaskExecutionMetadata.overrides:type_name -> flyteidl.core.TaskNodeOverrides + 30, // 5: flyteidl.admin.CreateTaskRequest.inputs:type_name -> flyteidl.core.LiteralMap + 31, // 6: flyteidl.admin.CreateTaskRequest.template:type_name -> flyteidl.core.TaskTemplate + 1, // 7: flyteidl.admin.CreateTaskRequest.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata + 31, // 8: flyteidl.admin.CreateRequestHeader.template:type_name -> flyteidl.core.TaskTemplate + 1, // 9: flyteidl.admin.CreateRequestHeader.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata + 4, // 10: flyteidl.admin.ExecuteTaskSyncRequest.header:type_name -> flyteidl.admin.CreateRequestHeader + 30, // 11: flyteidl.admin.ExecuteTaskSyncRequest.inputs:type_name -> flyteidl.core.LiteralMap + 10, // 12: flyteidl.admin.ExecuteTaskSyncResponseHeader.resource:type_name -> flyteidl.admin.Resource + 6, // 13: flyteidl.admin.ExecuteTaskSyncResponse.header:type_name -> flyteidl.admin.ExecuteTaskSyncResponseHeader + 30, // 14: flyteidl.admin.ExecuteTaskSyncResponse.outputs:type_name -> flyteidl.core.LiteralMap + 14, // 15: flyteidl.admin.GetTaskRequest.task_type:type_name -> flyteidl.admin.TaskType + 10, // 16: flyteidl.admin.GetTaskResponse.resource:type_name -> flyteidl.admin.Resource + 32, // 17: flyteidl.admin.GetTaskResponse.log_links:type_name -> flyteidl.core.TaskLog + 0, // 18: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State + 30, // 19: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap + 32, // 20: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog + 33, // 21: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase + 14, // 22: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType + 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent + 14, // 26: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 34, // 27: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp + 34, // 28: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp + 35, // 29: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration + 36, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name } func init() { file_flyteidl_admin_agent_proto_init() } @@ -1469,7 +2028,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskRequest); i { + switch v := v.(*CreateRequestHeader); i { case 0: return &v.state case 1: @@ -1481,7 +2040,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskResponse); i { + switch v := v.(*ExecuteTaskSyncRequest); i { case 0: return &v.state case 1: @@ -1493,7 +2052,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Resource); i { + switch v := v.(*ExecuteTaskSyncResponseHeader); i { case 0: return &v.state case 1: @@ -1505,7 +2064,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskRequest); i { + switch v := v.(*ExecuteTaskSyncResponse); i { case 0: return &v.state case 1: @@ -1517,7 +2076,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskResponse); i { + switch v := v.(*GetTaskRequest); i { case 0: return &v.state case 1: @@ -1529,7 +2088,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Agent); i { + switch v := v.(*GetTaskResponse); i { case 0: return &v.state case 1: @@ -1541,7 +2100,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAgentRequest); i { + switch v := v.(*Resource); i { case 0: return &v.state case 1: @@ -1553,7 +2112,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAgentResponse); i { + switch v := v.(*DeleteTaskRequest); i { case 0: return &v.state case 1: @@ -1565,7 +2124,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAgentsRequest); i { + switch v := v.(*DeleteTaskResponse); i { case 0: return &v.state case 1: @@ -1577,7 +2136,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAgentsResponse); i { + switch v := v.(*Agent); i { case 0: return &v.state case 1: @@ -1589,7 +2148,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskMetricsRequest); i { + switch v := v.(*TaskType); i { case 0: return &v.state case 1: @@ -1601,7 +2160,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskMetricsResponse); i { + switch v := v.(*GetAgentRequest); i { case 0: return &v.state case 1: @@ -1613,7 +2172,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskLogsRequest); i { + switch v := v.(*GetAgentResponse); i { case 0: return &v.state case 1: @@ -1625,6 +2184,90 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAgentsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAgentsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskMetricsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskMetricsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsResponseHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsResponseBody); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetTaskLogsResponse); i { case 0: return &v.state @@ -1637,9 +2280,17 @@ func file_flyteidl_admin_agent_proto_init() { } } } - file_flyteidl_admin_agent_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*CreateTaskResponse_ResourceMeta)(nil), - (*CreateTaskResponse_Resource)(nil), + file_flyteidl_admin_agent_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*ExecuteTaskSyncRequest_Header)(nil), + (*ExecuteTaskSyncRequest_Inputs)(nil), + } + file_flyteidl_admin_agent_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*ExecuteTaskSyncResponse_Header)(nil), + (*ExecuteTaskSyncResponse_Outputs)(nil), + } + file_flyteidl_admin_agent_proto_msgTypes[23].OneofWrappers = []interface{}{ + (*GetTaskLogsResponse_Header)(nil), + (*GetTaskLogsResponse_Body)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -1647,7 +2298,7 @@ func file_flyteidl_admin_agent_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_flyteidl_admin_agent_proto_rawDesc, NumEnums: 1, - NumMessages: 20, + NumMessages: 27, NumExtensions: 0, NumServices: 0, }, diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go index c9ffc4fa68..257c8254a9 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -30,99 +30,135 @@ var file_flyteidl_service_agent_proto_rawDesc = []byte{ 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xcc, 0x03, 0x0a, 0x11, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xd2, 0x07, 0x0a, 0x11, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x55, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x79, 0x6e, 0x63, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, + 0x22, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x12, + 0x72, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x01, 0x2a, 0x22, + 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x7b, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x61, 0x0a, 0x0e, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x58, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x22, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x2a, + 0x52, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, + 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, + 0x6b, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xae, + 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, - 0x6b, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, - 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, - 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, - 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x12, + 0x4c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x30, 0x01, 0x32, + 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, + 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x7b, + 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, + 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_flyteidl_service_agent_proto_goTypes = []interface{}{ - (*admin.CreateTaskRequest)(nil), // 0: flyteidl.admin.CreateTaskRequest - (*admin.GetTaskRequest)(nil), // 1: flyteidl.admin.GetTaskRequest - (*admin.DeleteTaskRequest)(nil), // 2: flyteidl.admin.DeleteTaskRequest - (*admin.GetTaskMetricsRequest)(nil), // 3: flyteidl.admin.GetTaskMetricsRequest - (*admin.GetTaskLogsRequest)(nil), // 4: flyteidl.admin.GetTaskLogsRequest - (*admin.GetAgentRequest)(nil), // 5: flyteidl.admin.GetAgentRequest - (*admin.ListAgentsRequest)(nil), // 6: flyteidl.admin.ListAgentsRequest - (*admin.CreateTaskResponse)(nil), // 7: flyteidl.admin.CreateTaskResponse - (*admin.GetTaskResponse)(nil), // 8: flyteidl.admin.GetTaskResponse - (*admin.DeleteTaskResponse)(nil), // 9: flyteidl.admin.DeleteTaskResponse - (*admin.GetTaskMetricsResponse)(nil), // 10: flyteidl.admin.GetTaskMetricsResponse - (*admin.GetTaskLogsResponse)(nil), // 11: flyteidl.admin.GetTaskLogsResponse - (*admin.GetAgentResponse)(nil), // 12: flyteidl.admin.GetAgentResponse - (*admin.ListAgentsResponse)(nil), // 13: flyteidl.admin.ListAgentsResponse + (*admin.ExecuteTaskSyncRequest)(nil), // 0: flyteidl.admin.ExecuteTaskSyncRequest + (*admin.CreateTaskRequest)(nil), // 1: flyteidl.admin.CreateTaskRequest + (*admin.GetTaskRequest)(nil), // 2: flyteidl.admin.GetTaskRequest + (*admin.DeleteTaskRequest)(nil), // 3: flyteidl.admin.DeleteTaskRequest + (*admin.GetTaskMetricsRequest)(nil), // 4: flyteidl.admin.GetTaskMetricsRequest + (*admin.GetTaskLogsRequest)(nil), // 5: flyteidl.admin.GetTaskLogsRequest + (*admin.GetAgentRequest)(nil), // 6: flyteidl.admin.GetAgentRequest + (*admin.ListAgentsRequest)(nil), // 7: flyteidl.admin.ListAgentsRequest + (*admin.ExecuteTaskSyncResponse)(nil), // 8: flyteidl.admin.ExecuteTaskSyncResponse + (*admin.CreateTaskResponse)(nil), // 9: flyteidl.admin.CreateTaskResponse + (*admin.GetTaskResponse)(nil), // 10: flyteidl.admin.GetTaskResponse + (*admin.DeleteTaskResponse)(nil), // 11: flyteidl.admin.DeleteTaskResponse + (*admin.GetTaskMetricsResponse)(nil), // 12: flyteidl.admin.GetTaskMetricsResponse + (*admin.GetTaskLogsResponse)(nil), // 13: flyteidl.admin.GetTaskLogsResponse + (*admin.GetAgentResponse)(nil), // 14: flyteidl.admin.GetAgentResponse + (*admin.ListAgentsResponse)(nil), // 15: flyteidl.admin.ListAgentsResponse } var file_flyteidl_service_agent_proto_depIdxs = []int32{ - 0, // 0: flyteidl.service.AsyncAgentService.CreateTask:input_type -> flyteidl.admin.CreateTaskRequest - 1, // 1: flyteidl.service.AsyncAgentService.GetTask:input_type -> flyteidl.admin.GetTaskRequest - 2, // 2: flyteidl.service.AsyncAgentService.DeleteTask:input_type -> flyteidl.admin.DeleteTaskRequest - 3, // 3: flyteidl.service.AsyncAgentService.GetTaskMetrics:input_type -> flyteidl.admin.GetTaskMetricsRequest - 4, // 4: flyteidl.service.AsyncAgentService.GetTaskLogs:input_type -> flyteidl.admin.GetTaskLogsRequest - 5, // 5: flyteidl.service.AgentMetadataService.GetAgent:input_type -> flyteidl.admin.GetAgentRequest - 6, // 6: flyteidl.service.AgentMetadataService.ListAgents:input_type -> flyteidl.admin.ListAgentsRequest - 7, // 7: flyteidl.service.AsyncAgentService.CreateTask:output_type -> flyteidl.admin.CreateTaskResponse - 8, // 8: flyteidl.service.AsyncAgentService.GetTask:output_type -> flyteidl.admin.GetTaskResponse - 9, // 9: flyteidl.service.AsyncAgentService.DeleteTask:output_type -> flyteidl.admin.DeleteTaskResponse - 10, // 10: flyteidl.service.AsyncAgentService.GetTaskMetrics:output_type -> flyteidl.admin.GetTaskMetricsResponse - 11, // 11: flyteidl.service.AsyncAgentService.GetTaskLogs:output_type -> flyteidl.admin.GetTaskLogsResponse - 12, // 12: flyteidl.service.AgentMetadataService.GetAgent:output_type -> flyteidl.admin.GetAgentResponse - 13, // 13: flyteidl.service.AgentMetadataService.ListAgents:output_type -> flyteidl.admin.ListAgentsResponse - 7, // [7:14] is the sub-list for method output_type - 0, // [0:7] is the sub-list for method input_type + 0, // 0: flyteidl.service.AsyncAgentService.ExecuteTaskSync:input_type -> flyteidl.admin.ExecuteTaskSyncRequest + 1, // 1: flyteidl.service.AsyncAgentService.CreateTask:input_type -> flyteidl.admin.CreateTaskRequest + 2, // 2: flyteidl.service.AsyncAgentService.GetTask:input_type -> flyteidl.admin.GetTaskRequest + 3, // 3: flyteidl.service.AsyncAgentService.DeleteTask:input_type -> flyteidl.admin.DeleteTaskRequest + 4, // 4: flyteidl.service.AsyncAgentService.GetTaskMetrics:input_type -> flyteidl.admin.GetTaskMetricsRequest + 5, // 5: flyteidl.service.AsyncAgentService.GetTaskLogs:input_type -> flyteidl.admin.GetTaskLogsRequest + 6, // 6: flyteidl.service.AgentMetadataService.GetAgent:input_type -> flyteidl.admin.GetAgentRequest + 7, // 7: flyteidl.service.AgentMetadataService.ListAgents:input_type -> flyteidl.admin.ListAgentsRequest + 8, // 8: flyteidl.service.AsyncAgentService.ExecuteTaskSync:output_type -> flyteidl.admin.ExecuteTaskSyncResponse + 9, // 9: flyteidl.service.AsyncAgentService.CreateTask:output_type -> flyteidl.admin.CreateTaskResponse + 10, // 10: flyteidl.service.AsyncAgentService.GetTask:output_type -> flyteidl.admin.GetTaskResponse + 11, // 11: flyteidl.service.AsyncAgentService.DeleteTask:output_type -> flyteidl.admin.DeleteTaskResponse + 12, // 12: flyteidl.service.AsyncAgentService.GetTaskMetrics:output_type -> flyteidl.admin.GetTaskMetricsResponse + 13, // 13: flyteidl.service.AsyncAgentService.GetTaskLogs:output_type -> flyteidl.admin.GetTaskLogsResponse + 14, // 14: flyteidl.service.AgentMetadataService.GetAgent:output_type -> flyteidl.admin.GetAgentResponse + 15, // 15: flyteidl.service.AgentMetadataService.ListAgents:output_type -> flyteidl.admin.ListAgentsResponse + 8, // [8:16] is the sub-list for method output_type + 0, // [0:8] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go index 67ebe7b012..fa89f0a5e9 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go @@ -20,18 +20,21 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - AsyncAgentService_CreateTask_FullMethodName = "/flyteidl.service.AsyncAgentService/CreateTask" - AsyncAgentService_GetTask_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTask" - AsyncAgentService_DeleteTask_FullMethodName = "/flyteidl.service.AsyncAgentService/DeleteTask" - AsyncAgentService_GetTaskMetrics_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" - AsyncAgentService_GetTaskLogs_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskLogs" + AsyncAgentService_ExecuteTaskSync_FullMethodName = "/flyteidl.service.AsyncAgentService/ExecuteTaskSync" + AsyncAgentService_CreateTask_FullMethodName = "/flyteidl.service.AsyncAgentService/CreateTask" + AsyncAgentService_GetTask_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTask" + AsyncAgentService_DeleteTask_FullMethodName = "/flyteidl.service.AsyncAgentService/DeleteTask" + AsyncAgentService_GetTaskMetrics_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" + AsyncAgentService_GetTaskLogs_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskLogs" ) // AsyncAgentServiceClient is the client API for AsyncAgentService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type AsyncAgentServiceClient interface { - // Send a task create request to the agent server. + // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (AsyncAgentService_ExecuteTaskSyncClient, error) + // CreateTask sends a task create request to the agent service. CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) // Get job status. GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) @@ -44,7 +47,7 @@ type AsyncAgentServiceClient interface { // - various other errors GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) + GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) } type asyncAgentServiceClient struct { @@ -55,6 +58,37 @@ func NewAsyncAgentServiceClient(cc grpc.ClientConnInterface) AsyncAgentServiceCl return &asyncAgentServiceClient{cc} } +func (c *asyncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (AsyncAgentService_ExecuteTaskSyncClient, error) { + stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[0], AsyncAgentService_ExecuteTaskSync_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &asyncAgentServiceExecuteTaskSyncClient{stream} + return x, nil +} + +type AsyncAgentService_ExecuteTaskSyncClient interface { + Send(*admin.ExecuteTaskSyncRequest) error + Recv() (*admin.ExecuteTaskSyncResponse, error) + grpc.ClientStream +} + +type asyncAgentServiceExecuteTaskSyncClient struct { + grpc.ClientStream +} + +func (x *asyncAgentServiceExecuteTaskSyncClient) Send(m *admin.ExecuteTaskSyncRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *asyncAgentServiceExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { + m := new(admin.ExecuteTaskSyncResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { out := new(admin.CreateTaskResponse) err := c.cc.Invoke(ctx, AsyncAgentService_CreateTask_FullMethodName, in, out, opts...) @@ -91,20 +125,45 @@ func (c *asyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin. return out, nil } -func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { - out := new(admin.GetTaskLogsResponse) - err := c.cc.Invoke(ctx, AsyncAgentService_GetTaskLogs_FullMethodName, in, out, opts...) +func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[1], AsyncAgentService_GetTaskLogs_FullMethodName, opts...) if err != nil { return nil, err } - return out, nil + x := &asyncAgentServiceGetTaskLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type AsyncAgentService_GetTaskLogsClient interface { + Recv() (*admin.GetTaskLogsResponse, error) + grpc.ClientStream +} + +type asyncAgentServiceGetTaskLogsClient struct { + grpc.ClientStream +} + +func (x *asyncAgentServiceGetTaskLogsClient) Recv() (*admin.GetTaskLogsResponse, error) { + m := new(admin.GetTaskLogsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil } // AsyncAgentServiceServer is the server API for AsyncAgentService service. // All implementations should embed UnimplementedAsyncAgentServiceServer // for forward compatibility type AsyncAgentServiceServer interface { - // Send a task create request to the agent server. + // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + ExecuteTaskSync(AsyncAgentService_ExecuteTaskSyncServer) error + // CreateTask sends a task create request to the agent service. CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) // Get job status. GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) @@ -117,13 +176,16 @@ type AsyncAgentServiceServer interface { // - various other errors GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(context.Context, *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) + GetTaskLogs(*admin.GetTaskLogsRequest, AsyncAgentService_GetTaskLogsServer) error } // UnimplementedAsyncAgentServiceServer should be embedded to have forward compatible implementations. type UnimplementedAsyncAgentServiceServer struct { } +func (UnimplementedAsyncAgentServiceServer) ExecuteTaskSync(AsyncAgentService_ExecuteTaskSyncServer) error { + return status.Errorf(codes.Unimplemented, "method ExecuteTaskSync not implemented") +} func (UnimplementedAsyncAgentServiceServer) CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") } @@ -136,8 +198,8 @@ func (UnimplementedAsyncAgentServiceServer) DeleteTask(context.Context, *admin.D func (UnimplementedAsyncAgentServiceServer) GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTaskMetrics not implemented") } -func (UnimplementedAsyncAgentServiceServer) GetTaskLogs(context.Context, *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTaskLogs not implemented") +func (UnimplementedAsyncAgentServiceServer) GetTaskLogs(*admin.GetTaskLogsRequest, AsyncAgentService_GetTaskLogsServer) error { + return status.Errorf(codes.Unimplemented, "method GetTaskLogs not implemented") } // UnsafeAsyncAgentServiceServer may be embedded to opt out of forward compatibility for this service. @@ -151,6 +213,32 @@ func RegisterAsyncAgentServiceServer(s grpc.ServiceRegistrar, srv AsyncAgentServ s.RegisterService(&AsyncAgentService_ServiceDesc, srv) } +func _AsyncAgentService_ExecuteTaskSync_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(AsyncAgentServiceServer).ExecuteTaskSync(&asyncAgentServiceExecuteTaskSyncServer{stream}) +} + +type AsyncAgentService_ExecuteTaskSyncServer interface { + Send(*admin.ExecuteTaskSyncResponse) error + Recv() (*admin.ExecuteTaskSyncRequest, error) + grpc.ServerStream +} + +type asyncAgentServiceExecuteTaskSyncServer struct { + grpc.ServerStream +} + +func (x *asyncAgentServiceExecuteTaskSyncServer) Send(m *admin.ExecuteTaskSyncResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *asyncAgentServiceExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { + m := new(admin.ExecuteTaskSyncRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func _AsyncAgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(admin.CreateTaskRequest) if err := dec(in); err != nil { @@ -223,22 +311,25 @@ func _AsyncAgentService_GetTaskMetrics_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _AsyncAgentService_GetTaskLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetTaskLogsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).GetTaskLogs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AsyncAgentService_GetTaskLogs_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).GetTaskLogs(ctx, req.(*admin.GetTaskLogsRequest)) +func _AsyncAgentService_GetTaskLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(admin.GetTaskLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err } - return interceptor(ctx, in, info, handler) + return srv.(AsyncAgentServiceServer).GetTaskLogs(m, &asyncAgentServiceGetTaskLogsServer{stream}) +} + +type AsyncAgentService_GetTaskLogsServer interface { + Send(*admin.GetTaskLogsResponse) error + grpc.ServerStream +} + +type asyncAgentServiceGetTaskLogsServer struct { + grpc.ServerStream +} + +func (x *asyncAgentServiceGetTaskLogsServer) Send(m *admin.GetTaskLogsResponse) error { + return x.ServerStream.SendMsg(m) } // AsyncAgentService_ServiceDesc is the grpc.ServiceDesc for AsyncAgentService service. @@ -264,12 +355,20 @@ var AsyncAgentService_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetTaskMetrics", Handler: _AsyncAgentService_GetTaskMetrics_Handler, }, + }, + Streams: []grpc.StreamDesc{ { - MethodName: "GetTaskLogs", - Handler: _AsyncAgentService_GetTaskLogs_Handler, + StreamName: "ExecuteTaskSync", + Handler: _AsyncAgentService_ExecuteTaskSync_Handler, + ServerStreams: true, + ClientStreams: true, + }, + { + StreamName: "GetTaskLogs", + Handler: _AsyncAgentService_GetTaskLogs_Handler, + ServerStreams: true, }, }, - Streams: []grpc.StreamDesc{}, Metadata: "flyteidl/service/agent.proto", } diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go index a5fec7e0f7..9a1bbf3037 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go @@ -33,6 +33,478 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = metadata.Join +func request_AsyncAgentService_ExecuteTaskSync_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.AsyncAgentService_ExecuteTaskSyncClient, runtime.ServerMetadata, error) { + var metadata runtime.ServerMetadata + stream, err := client.ExecuteTaskSync(ctx) + if err != nil { + grpclog.Infof("Failed to start streaming: %v", err) + return nil, metadata, err + } + dec := marshaler.NewDecoder(req.Body) + handleSend := func() error { + var protoReq extAdmin.ExecuteTaskSyncRequest + err := dec.Decode(&protoReq) + if err == io.EOF { + return err + } + if err != nil { + grpclog.Infof("Failed to decode request: %v", err) + return err + } + if err := stream.Send(&protoReq); err != nil { + grpclog.Infof("Failed to send request: %v", err) + return err + } + return nil + } + go func() { + for { + if err := handleSend(); err != nil { + break + } + } + if err := stream.CloseSend(); err != nil { + grpclog.Infof("Failed to terminate client stream: %v", err) + } + }() + header, err := stream.Header() + if err != nil { + grpclog.Infof("Failed to get header from client: %v", err) + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil +} + +func request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.CreateTaskRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.CreateTaskRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_DeleteTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DeleteTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_DeleteTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DeleteTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_DeleteTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_GetTaskMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTaskMetrics(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_GetTaskLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.AsyncAgentService_GetTaskLogsClient, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskLogsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.GetTaskLogs(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq extAdmin.GetAgentRequest var metadata runtime.ServerMetadata @@ -103,6 +575,129 @@ func local_request_AgentMetadataService_ListAgents_0(ctx context.Context, marsha } +// RegisterAsyncAgentServiceHandlerServer registers the http handlers for service AsyncAgentService to "mux". +// UnaryRPC :call AsyncAgentServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAsyncAgentServiceHandlerFromEndpoint instead. +func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AsyncAgentServiceServer) error { + + mux.Handle("POST", pattern_AsyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/agent/task")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_CreateTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_GetTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AsyncAgentService_DeleteTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_DeleteTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_DeleteTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_GetTaskMetrics_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTaskMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + return nil +} + // RegisterAgentMetadataServiceHandlerServer registers the http handlers for service AgentMetadataService to "mux". // UnaryRPC :call AgentMetadataServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -162,6 +757,207 @@ func RegisterAgentMetadataServiceHandlerServer(ctx context.Context, mux *runtime return nil } +// RegisterAsyncAgentServiceHandlerFromEndpoint is same as RegisterAsyncAgentServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAsyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAsyncAgentServiceHandler(ctx, mux, conn) +} + +// RegisterAsyncAgentServiceHandler registers the http handlers for service AsyncAgentService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAsyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAsyncAgentServiceHandlerClient(ctx, mux, extService.NewAsyncAgentServiceClient(conn)) +} + +// RegisterAsyncAgentServiceHandlerClient registers the http handlers for service AsyncAgentService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AsyncAgentServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AsyncAgentServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.AsyncAgentServiceClient" to call the correct interceptors. +func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AsyncAgentServiceClient) error { + + mux.Handle("POST", pattern_AsyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/ExecuteTaskSync", runtime.WithHTTPPathPattern("/api/v1/agent/task/stream")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_ExecuteTaskSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_ExecuteTaskSync_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/agent/task")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_CreateTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_GetTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AsyncAgentService_DeleteTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_DeleteTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_DeleteTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_GetTaskMetrics_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTaskMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskLogs", runtime.WithHTTPPathPattern("/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_GetTaskLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTaskLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AsyncAgentService_ExecuteTaskSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "agent", "task", "stream"}, "")) + + pattern_AsyncAgentService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "agent", "task"}, "")) + + pattern_AsyncAgentService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task", "task_type.name", "task_type.version", "resource_meta"}, "")) + + pattern_AsyncAgentService_DeleteTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task_executions", "task_type.name", "task_type.version", "resource_meta"}, "")) + + pattern_AsyncAgentService_GetTaskMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "metrics", "task_type.name", "task_type.version", "resource_meta"}, "")) + + pattern_AsyncAgentService_GetTaskLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "logs", "task_type.name", "task_type.version", "resource_meta"}, "")) +) + +var ( + forward_AsyncAgentService_ExecuteTaskSync_0 = runtime.ForwardResponseStream + + forward_AsyncAgentService_CreateTask_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_GetTask_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_DeleteTask_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_GetTaskMetrics_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_GetTaskLogs_0 = runtime.ForwardResponseStream +) + // RegisterAgentMetadataServiceHandlerFromEndpoint is same as RegisterAgentMetadataServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterAgentMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 1a17685ff6..e5e8fe4277 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -19,6 +19,334 @@ "application/json" ], "paths": { + "/api/v1/agent/task": { + "post": { + "summary": "CreateTask sends a task create request to the agent service.", + "operationId": "AsyncAgentService_CreateTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminCreateTaskResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Represents a request structure to create task.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminCreateTaskRequest" + } + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}": { + "get": { + "summary": "GetTaskLogs returns task execution logs, if available.", + "operationId": "AsyncAgentService_GetTaskLogs", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/adminGetTaskLogsResponse" + }, + "error": { + "$ref": "#/definitions/googlerpcStatus" + } + }, + "title": "Stream result of adminGetTaskLogsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + }, + { + "name": "lines", + "description": "Number of lines to return.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}": { + "get": { + "summary": "GetTaskMetrics returns one or more task execution metrics, if available.", + "description": "Errors include\n * OutOfRange if metrics are not available for the specified task time range\n * various other errors", + "operationId": "AsyncAgentService_GetTaskMetrics", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetTaskMetricsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + }, + { + "name": "queries", + "description": "The metrics to query. If empty, will return a default set of metrics.\ne.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "start_time", + "description": "Start timestamp, inclusive.", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "end_time", + "description": "End timestamp, inclusive..", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "step", + "description": "Query resolution step width in duration format or float number of seconds.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/stream": { + "post": { + "summary": "ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.", + "operationId": "AsyncAgentService_ExecuteTaskSync", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/adminExecuteTaskSyncResponse" + }, + "error": { + "$ref": "#/definitions/googlerpcStatus" + } + }, + "title": "Stream result of adminExecuteTaskSyncResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": " (streaming inputs)", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecuteTaskSyncRequest" + } + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}": { + "get": { + "summary": "Get job status.", + "operationId": "AsyncAgentService_GetTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetTaskResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata about the resource to be pass to the agent.", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}": { + "delete": { + "summary": "Delete the task resource.", + "operationId": "AsyncAgentService_DeleteTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDeleteTaskResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata about the resource to be pass to the agent.", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, "/api/v1/agent/{name}": { "get": { "summary": "Fetch a :ref:`ref_flyteidl.admin.Agent` definition.", @@ -242,22 +570,65 @@ "supported_task_types": { "type": "array", "items": { - "type": "string" + "type": "object", + "$ref": "#/definitions/adminTaskType" }, "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." } }, "description": "A message containing the agent metadata." }, + "adminCreateRequestHeader": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + }, + "output_prefix": { + "type": "string", + "title": "Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)" + }, + "task_execution_metadata": { + "$ref": "#/definitions/flyteidladminTaskExecutionMetadata", + "description": "subset of runtime task execution metadata." + }, + "max_dataset_size_bytes": { + "type": "string", + "format": "int64", + "description": "MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task." + } + } + }, + "adminCreateTaskRequest": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" + }, + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + }, + "output_prefix": { + "type": "string", + "title": "Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)" + }, + "task_execution_metadata": { + "$ref": "#/definitions/flyteidladminTaskExecutionMetadata", + "description": "subset of runtime task execution metadata." + } + }, + "description": "Represents a request structure to create task." + }, "adminCreateTaskResponse": { "type": "object", "properties": { "resource_meta": { "type": "string", - "format": "byte" - }, - "resource": { - "$ref": "#/definitions/adminResource" + "format": "byte", + "description": "ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata)." } }, "description": "Represents a create response structure." @@ -266,6 +637,36 @@ "type": "object", "description": "Response to delete a task." }, + "adminExecuteTaskSyncRequest": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/adminCreateRequestHeader" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap" + } + } + }, + "adminExecuteTaskSyncResponse": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/adminExecuteTaskSyncResponseHeader" + }, + "outputs": { + "$ref": "#/definitions/coreLiteralMap" + } + } + }, + "adminExecuteTaskSyncResponseHeader": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/definitions/adminResource" + } + } + }, "adminGetAgentResponse": { "type": "object", "properties": { @@ -276,6 +677,18 @@ "description": "A response containing an agent." }, "adminGetTaskLogsResponse": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/adminGetTaskLogsResponseHeader" + }, + "body": { + "$ref": "#/definitions/adminGetTaskLogsResponseBody" + } + }, + "description": "A response containing the logs for a task execution." + }, + "adminGetTaskLogsResponseBody": { "type": "object", "properties": { "results": { @@ -284,13 +697,17 @@ "type": "string" }, "description": "The execution log results." - }, + } + } + }, + "adminGetTaskLogsResponseHeader": { + "type": "object", + "properties": { "token": { "type": "string", "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." } - }, - "description": "A response containing the logs for a task execution." + } }, "adminGetTaskMetricsResponse": { "type": "object", @@ -365,6 +782,20 @@ } } }, + "adminTaskType": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the task type." + }, + "version": { + "type": "integer", + "format": "int32", + "description": "The version of the task type." + } + } + }, "coreArtifactBindingData": { "type": "object", "properties": { @@ -1301,6 +1732,20 @@ }, "title": "Task Metadata" }, + "coreTaskNodeOverrides": { + "type": "object", + "properties": { + "resources": { + "$ref": "#/definitions/coreResources", + "description": "A customizable interface to convey resources requested for a task container." + }, + "extended_resources": { + "$ref": "#/definitions/coreExtendedResources", + "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + } + }, + "description": "Optional task node overrides that will be applied at task execution time." + }, "coreTaskTemplate": { "type": "object", "properties": { @@ -1536,6 +1981,20 @@ "type": "string" }, "title": "Environment variables attached to the task execution" + }, + "max_attempts": { + "type": "integer", + "format": "int32" + }, + "interruptible": { + "type": "boolean" + }, + "interruptible_failure_threshold": { + "type": "integer", + "format": "int32" + }, + "overrides": { + "$ref": "#/definitions/coreTaskNodeOverrides" } }, "description": "Represents a subset of runtime task execution metadata that are relevant to external plugins." diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 5fe0c697d8..ada9a7638f 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -8857,6 +8857,18 @@ export namespace flyteidl { /** TaskExecutionMetadata environmentVariables */ environmentVariables?: ({ [k: string]: string }|null); + + /** TaskExecutionMetadata maxAttempts */ + maxAttempts?: (number|null); + + /** TaskExecutionMetadata interruptible */ + interruptible?: (boolean|null); + + /** TaskExecutionMetadata interruptibleFailureThreshold */ + interruptibleFailureThreshold?: (number|null); + + /** TaskExecutionMetadata overrides */ + overrides?: (flyteidl.core.ITaskNodeOverrides|null); } /** Represents a TaskExecutionMetadata. */ @@ -8886,6 +8898,18 @@ export namespace flyteidl { /** TaskExecutionMetadata environmentVariables. */ public environmentVariables: { [k: string]: string }; + /** TaskExecutionMetadata maxAttempts. */ + public maxAttempts: number; + + /** TaskExecutionMetadata interruptible. */ + public interruptible: boolean; + + /** TaskExecutionMetadata interruptibleFailureThreshold. */ + public interruptibleFailureThreshold: number; + + /** TaskExecutionMetadata overrides. */ + public overrides?: (flyteidl.core.ITaskNodeOverrides|null); + /** * Creates a new TaskExecutionMetadata instance using the specified properties. * @param [properties] Properties to set @@ -8994,9 +9018,6 @@ export namespace flyteidl { /** CreateTaskResponse resourceMeta */ resourceMeta?: (Uint8Array|null); - - /** CreateTaskResponse resource */ - resource?: (flyteidl.admin.IResource|null); } /** Represents a CreateTaskResponse. */ @@ -9011,12 +9032,6 @@ export namespace flyteidl { /** CreateTaskResponse resourceMeta. */ public resourceMeta: Uint8Array; - /** CreateTaskResponse resource. */ - public resource?: (flyteidl.admin.IResource|null); - - /** CreateTaskResponse res. */ - public res?: ("resourceMeta"|"resource"); - /** * Creates a new CreateTaskResponse instance using the specified properties. * @param [properties] Properties to set @@ -9050,11 +9065,255 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } + /** Properties of a CreateRequestHeader. */ + interface ICreateRequestHeader { + + /** CreateRequestHeader template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateRequestHeader outputPrefix */ + outputPrefix?: (string|null); + + /** CreateRequestHeader taskExecutionMetadata */ + taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + + /** CreateRequestHeader maxDatasetSizeBytes */ + maxDatasetSizeBytes?: (Long|null); + } + + /** Represents a CreateRequestHeader. */ + class CreateRequestHeader implements ICreateRequestHeader { + + /** + * Constructs a new CreateRequestHeader. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateRequestHeader); + + /** CreateRequestHeader template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateRequestHeader outputPrefix. */ + public outputPrefix: string; + + /** CreateRequestHeader taskExecutionMetadata. */ + public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + + /** CreateRequestHeader maxDatasetSizeBytes. */ + public maxDatasetSizeBytes: Long; + + /** + * Creates a new CreateRequestHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateRequestHeader instance + */ + public static create(properties?: flyteidl.admin.ICreateRequestHeader): flyteidl.admin.CreateRequestHeader; + + /** + * Encodes the specified CreateRequestHeader message. Does not implicitly {@link flyteidl.admin.CreateRequestHeader.verify|verify} messages. + * @param message CreateRequestHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateRequestHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateRequestHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateRequestHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateRequestHeader; + + /** + * Verifies a CreateRequestHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecuteTaskSyncRequest. */ + interface IExecuteTaskSyncRequest { + + /** ExecuteTaskSyncRequest header */ + header?: (flyteidl.admin.ICreateRequestHeader|null); + + /** ExecuteTaskSyncRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents an ExecuteTaskSyncRequest. */ + class ExecuteTaskSyncRequest implements IExecuteTaskSyncRequest { + + /** + * Constructs a new ExecuteTaskSyncRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecuteTaskSyncRequest); + + /** ExecuteTaskSyncRequest header. */ + public header?: (flyteidl.admin.ICreateRequestHeader|null); + + /** ExecuteTaskSyncRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecuteTaskSyncRequest part. */ + public part?: ("header"|"inputs"); + + /** + * Creates a new ExecuteTaskSyncRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteTaskSyncRequest instance + */ + public static create(properties?: flyteidl.admin.IExecuteTaskSyncRequest): flyteidl.admin.ExecuteTaskSyncRequest; + + /** + * Encodes the specified ExecuteTaskSyncRequest message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncRequest.verify|verify} messages. + * @param message ExecuteTaskSyncRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecuteTaskSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteTaskSyncRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteTaskSyncRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncRequest; + + /** + * Verifies an ExecuteTaskSyncRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecuteTaskSyncResponseHeader. */ + interface IExecuteTaskSyncResponseHeader { + + /** ExecuteTaskSyncResponseHeader resource */ + resource?: (flyteidl.admin.IResource|null); + } + + /** Represents an ExecuteTaskSyncResponseHeader. */ + class ExecuteTaskSyncResponseHeader implements IExecuteTaskSyncResponseHeader { + + /** + * Constructs a new ExecuteTaskSyncResponseHeader. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecuteTaskSyncResponseHeader); + + /** ExecuteTaskSyncResponseHeader resource. */ + public resource?: (flyteidl.admin.IResource|null); + + /** + * Creates a new ExecuteTaskSyncResponseHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteTaskSyncResponseHeader instance + */ + public static create(properties?: flyteidl.admin.IExecuteTaskSyncResponseHeader): flyteidl.admin.ExecuteTaskSyncResponseHeader; + + /** + * Encodes the specified ExecuteTaskSyncResponseHeader message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponseHeader.verify|verify} messages. + * @param message ExecuteTaskSyncResponseHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecuteTaskSyncResponseHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteTaskSyncResponseHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteTaskSyncResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncResponseHeader; + + /** + * Verifies an ExecuteTaskSyncResponseHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecuteTaskSyncResponse. */ + interface IExecuteTaskSyncResponse { + + /** ExecuteTaskSyncResponse header */ + header?: (flyteidl.admin.IExecuteTaskSyncResponseHeader|null); + + /** ExecuteTaskSyncResponse outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents an ExecuteTaskSyncResponse. */ + class ExecuteTaskSyncResponse implements IExecuteTaskSyncResponse { + + /** + * Constructs a new ExecuteTaskSyncResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecuteTaskSyncResponse); + + /** ExecuteTaskSyncResponse header. */ + public header?: (flyteidl.admin.IExecuteTaskSyncResponseHeader|null); + + /** ExecuteTaskSyncResponse outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecuteTaskSyncResponse res. */ + public res?: ("header"|"outputs"); + + /** + * Creates a new ExecuteTaskSyncResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteTaskSyncResponse instance + */ + public static create(properties?: flyteidl.admin.IExecuteTaskSyncResponse): flyteidl.admin.ExecuteTaskSyncResponse; + + /** + * Encodes the specified ExecuteTaskSyncResponse message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponse.verify|verify} messages. + * @param message ExecuteTaskSyncResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecuteTaskSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteTaskSyncResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteTaskSyncResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncResponse; + + /** + * Verifies an ExecuteTaskSyncResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + /** Properties of a GetTaskRequest. */ interface IGetTaskRequest { /** GetTaskRequest taskType */ - taskType?: (string|null); + taskType?: (flyteidl.admin.ITaskType|null); /** GetTaskRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -9070,7 +9329,7 @@ export namespace flyteidl { constructor(properties?: flyteidl.admin.IGetTaskRequest); /** GetTaskRequest taskType. */ - public taskType: string; + public taskType?: (flyteidl.admin.ITaskType|null); /** GetTaskRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -9246,7 +9505,7 @@ export namespace flyteidl { interface IDeleteTaskRequest { /** DeleteTaskRequest taskType */ - taskType?: (string|null); + taskType?: (flyteidl.admin.ITaskType|null); /** DeleteTaskRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -9262,7 +9521,7 @@ export namespace flyteidl { constructor(properties?: flyteidl.admin.IDeleteTaskRequest); /** DeleteTaskRequest taskType. */ - public taskType: string; + public taskType?: (flyteidl.admin.ITaskType|null); /** DeleteTaskRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -9353,7 +9612,7 @@ export namespace flyteidl { name?: (string|null); /** Agent supportedTaskTypes */ - supportedTaskTypes?: (string[]|null); + supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); } /** Represents an Agent. */ @@ -9369,7 +9628,7 @@ export namespace flyteidl { public name: string; /** Agent supportedTaskTypes. */ - public supportedTaskTypes: string[]; + public supportedTaskTypes: flyteidl.admin.ITaskType[]; /** * Creates a new Agent instance using the specified properties. @@ -9404,6 +9663,64 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } + /** Properties of a TaskType. */ + interface ITaskType { + + /** TaskType name */ + name?: (string|null); + + /** TaskType version */ + version?: (number|null); + } + + /** Represents a TaskType. */ + class TaskType implements ITaskType { + + /** + * Constructs a new TaskType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskType); + + /** TaskType name. */ + public name: string; + + /** TaskType version. */ + public version: number; + + /** + * Creates a new TaskType instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskType instance + */ + public static create(properties?: flyteidl.admin.ITaskType): flyteidl.admin.TaskType; + + /** + * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. + * @param message TaskType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskType; + + /** + * Verifies a TaskType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + /** Properties of a GetAgentRequest. */ interface IGetAgentRequest { @@ -9610,7 +9927,7 @@ export namespace flyteidl { interface IGetTaskMetricsRequest { /** GetTaskMetricsRequest taskType */ - taskType?: (string|null); + taskType?: (flyteidl.admin.ITaskType|null); /** GetTaskMetricsRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -9638,7 +9955,7 @@ export namespace flyteidl { constructor(properties?: flyteidl.admin.IGetTaskMetricsRequest); /** GetTaskMetricsRequest taskType. */ - public taskType: string; + public taskType?: (flyteidl.admin.ITaskType|null); /** GetTaskMetricsRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -9744,7 +10061,7 @@ export namespace flyteidl { interface IGetTaskLogsRequest { /** GetTaskLogsRequest taskType */ - taskType?: (string|null); + taskType?: (flyteidl.admin.ITaskType|null); /** GetTaskLogsRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -9766,7 +10083,7 @@ export namespace flyteidl { constructor(properties?: flyteidl.admin.IGetTaskLogsRequest); /** GetTaskLogsRequest taskType. */ - public taskType: string; + public taskType?: (flyteidl.admin.ITaskType|null); /** GetTaskLogsRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -9810,14 +10127,118 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } + /** Properties of a GetTaskLogsResponseHeader. */ + interface IGetTaskLogsResponseHeader { + + /** GetTaskLogsResponseHeader token */ + token?: (string|null); + } + + /** Represents a GetTaskLogsResponseHeader. */ + class GetTaskLogsResponseHeader implements IGetTaskLogsResponseHeader { + + /** + * Constructs a new GetTaskLogsResponseHeader. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskLogsResponseHeader); + + /** GetTaskLogsResponseHeader token. */ + public token: string; + + /** + * Creates a new GetTaskLogsResponseHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskLogsResponseHeader instance + */ + public static create(properties?: flyteidl.admin.IGetTaskLogsResponseHeader): flyteidl.admin.GetTaskLogsResponseHeader; + + /** + * Encodes the specified GetTaskLogsResponseHeader message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseHeader.verify|verify} messages. + * @param message GetTaskLogsResponseHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskLogsResponseHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskLogsResponseHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskLogsResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponseHeader; + + /** + * Verifies a GetTaskLogsResponseHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskLogsResponseBody. */ + interface IGetTaskLogsResponseBody { + + /** GetTaskLogsResponseBody results */ + results?: (string[]|null); + } + + /** Represents a GetTaskLogsResponseBody. */ + class GetTaskLogsResponseBody implements IGetTaskLogsResponseBody { + + /** + * Constructs a new GetTaskLogsResponseBody. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskLogsResponseBody); + + /** GetTaskLogsResponseBody results. */ + public results: string[]; + + /** + * Creates a new GetTaskLogsResponseBody instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskLogsResponseBody instance + */ + public static create(properties?: flyteidl.admin.IGetTaskLogsResponseBody): flyteidl.admin.GetTaskLogsResponseBody; + + /** + * Encodes the specified GetTaskLogsResponseBody message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseBody.verify|verify} messages. + * @param message GetTaskLogsResponseBody message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskLogsResponseBody, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskLogsResponseBody message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskLogsResponseBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponseBody; + + /** + * Verifies a GetTaskLogsResponseBody message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + /** Properties of a GetTaskLogsResponse. */ interface IGetTaskLogsResponse { - /** GetTaskLogsResponse results */ - results?: (string[]|null); + /** GetTaskLogsResponse header */ + header?: (flyteidl.admin.IGetTaskLogsResponseHeader|null); - /** GetTaskLogsResponse token */ - token?: (string|null); + /** GetTaskLogsResponse body */ + body?: (flyteidl.admin.IGetTaskLogsResponseBody|null); } /** Represents a GetTaskLogsResponse. */ @@ -9829,11 +10250,14 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskLogsResponse); - /** GetTaskLogsResponse results. */ - public results: string[]; + /** GetTaskLogsResponse header. */ + public header?: (flyteidl.admin.IGetTaskLogsResponseHeader|null); - /** GetTaskLogsResponse token. */ - public token: string; + /** GetTaskLogsResponse body. */ + public body?: (flyteidl.admin.IGetTaskLogsResponseBody|null); + + /** GetTaskLogsResponse part. */ + public part?: ("header"|"body"); /** * Creates a new GetTaskLogsResponse instance using the specified properties. @@ -21423,6 +21847,20 @@ export namespace flyteidl { */ public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; + /** + * Calls ExecuteTaskSync. + * @param request ExecuteTaskSyncRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse + */ + public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest, callback: flyteidl.service.AsyncAgentService.ExecuteTaskSyncCallback): void; + + /** + * Calls ExecuteTaskSync. + * @param request ExecuteTaskSyncRequest message or plain object + * @returns Promise + */ + public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest): Promise; + /** * Calls CreateTask. * @param request CreateTaskRequest message or plain object @@ -21496,6 +21934,13 @@ export namespace flyteidl { namespace AsyncAgentService { + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#executeTaskSync}. + * @param error Error, if any + * @param [response] ExecuteTaskSyncResponse + */ + type ExecuteTaskSyncCallback = (error: (Error|null), response?: flyteidl.admin.ExecuteTaskSyncResponse) => void; + /** * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. * @param error Error, if any diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 7a5c668347..96bfeee8be 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -21677,6 +21677,10 @@ * @property {Object.|null} [annotations] TaskExecutionMetadata annotations * @property {string|null} [k8sServiceAccount] TaskExecutionMetadata k8sServiceAccount * @property {Object.|null} [environmentVariables] TaskExecutionMetadata environmentVariables + * @property {number|null} [maxAttempts] TaskExecutionMetadata maxAttempts + * @property {boolean|null} [interruptible] TaskExecutionMetadata interruptible + * @property {number|null} [interruptibleFailureThreshold] TaskExecutionMetadata interruptibleFailureThreshold + * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskExecutionMetadata overrides */ /** @@ -21745,6 +21749,38 @@ */ TaskExecutionMetadata.prototype.environmentVariables = $util.emptyObject; + /** + * TaskExecutionMetadata maxAttempts. + * @member {number} maxAttempts + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.maxAttempts = 0; + + /** + * TaskExecutionMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.interruptible = false; + + /** + * TaskExecutionMetadata interruptibleFailureThreshold. + * @member {number} interruptibleFailureThreshold + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.interruptibleFailureThreshold = 0; + + /** + * TaskExecutionMetadata overrides. + * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.overrides = null; + /** * Creates a new TaskExecutionMetadata instance using the specified properties. * @function create @@ -21784,6 +21820,14 @@ if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i) writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim(); + if (message.maxAttempts != null && message.hasOwnProperty("maxAttempts")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxAttempts); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); + if (message.interruptibleFailureThreshold != null && message.hasOwnProperty("interruptibleFailureThreshold")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.interruptibleFailureThreshold); + if (message.overrides != null && message.hasOwnProperty("overrides")) + $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -21838,6 +21882,18 @@ reader.pos++; message.environmentVariables[key] = reader.string(); break; + case 7: + message.maxAttempts = reader.int32(); + break; + case 8: + message.interruptible = reader.bool(); + break; + case 9: + message.interruptibleFailureThreshold = reader.int32(); + break; + case 10: + message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -21892,6 +21948,20 @@ if (!$util.isString(message.environmentVariables[key[i]])) return "environmentVariables: string{k:string} expected"; } + if (message.maxAttempts != null && message.hasOwnProperty("maxAttempts")) + if (!$util.isInteger(message.maxAttempts)) + return "maxAttempts: integer expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + if (message.interruptibleFailureThreshold != null && message.hasOwnProperty("interruptibleFailureThreshold")) + if (!$util.isInteger(message.interruptibleFailureThreshold)) + return "interruptibleFailureThreshold: integer expected"; + if (message.overrides != null && message.hasOwnProperty("overrides")) { + var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); + if (error) + return "overrides." + error; + } return null; }; @@ -21934,93 +22004,647 @@ CreateTaskRequest.prototype.inputs = null; /** - * CreateTaskRequest template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.CreateTaskRequest - * @instance + * CreateTaskRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.template = null; + + /** + * CreateTaskRequest outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.outputPrefix = ""; + + /** + * CreateTaskRequest taskExecutionMetadata. + * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.taskExecutionMetadata = null; + + /** + * Creates a new CreateTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance + */ + CreateTaskRequest.create = function create(properties) { + return new CreateTaskRequest(properties); + }; + + /** + * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) + $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); + break; + case 4: + message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateTaskRequest message. + * @function verify + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { + var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); + if (error) + return "taskExecutionMetadata." + error; + } + return null; + }; + + return CreateTaskRequest; + })(); + + admin.CreateTaskResponse = (function() { + + /** + * Properties of a CreateTaskResponse. + * @memberof flyteidl.admin + * @interface ICreateTaskResponse + * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta + */ + + /** + * Constructs a new CreateTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a CreateTaskResponse. + * @implements ICreateTaskResponse + * @constructor + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + */ + function CreateTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTaskResponse resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.CreateTaskResponse + * @instance + */ + CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); + + /** + * Creates a new CreateTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance + */ + CreateTaskResponse.create = function create(properties) { + return new CreateTaskResponse(properties); + }; + + /** + * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); + return writer; + }; + + /** + * Decodes a CreateTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceMeta = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateTaskResponse message. + * @function verify + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + return null; + }; + + return CreateTaskResponse; + })(); + + admin.CreateRequestHeader = (function() { + + /** + * Properties of a CreateRequestHeader. + * @memberof flyteidl.admin + * @interface ICreateRequestHeader + * @property {flyteidl.core.ITaskTemplate|null} [template] CreateRequestHeader template + * @property {string|null} [outputPrefix] CreateRequestHeader outputPrefix + * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateRequestHeader taskExecutionMetadata + * @property {Long|null} [maxDatasetSizeBytes] CreateRequestHeader maxDatasetSizeBytes + */ + + /** + * Constructs a new CreateRequestHeader. + * @memberof flyteidl.admin + * @classdesc Represents a CreateRequestHeader. + * @implements ICreateRequestHeader + * @constructor + * @param {flyteidl.admin.ICreateRequestHeader=} [properties] Properties to set + */ + function CreateRequestHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateRequestHeader template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.template = null; + + /** + * CreateRequestHeader outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.outputPrefix = ""; + + /** + * CreateRequestHeader taskExecutionMetadata. + * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.taskExecutionMetadata = null; + + /** + * CreateRequestHeader maxDatasetSizeBytes. + * @member {Long} maxDatasetSizeBytes + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.maxDatasetSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CreateRequestHeader instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {flyteidl.admin.ICreateRequestHeader=} [properties] Properties to set + * @returns {flyteidl.admin.CreateRequestHeader} CreateRequestHeader instance + */ + CreateRequestHeader.create = function create(properties) { + return new CreateRequestHeader(properties); + }; + + /** + * Encodes the specified CreateRequestHeader message. Does not implicitly {@link flyteidl.admin.CreateRequestHeader.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {flyteidl.admin.ICreateRequestHeader} message CreateRequestHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateRequestHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputPrefix); + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) + $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maxDatasetSizeBytes != null && message.hasOwnProperty("maxDatasetSizeBytes")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.maxDatasetSizeBytes); + return writer; + }; + + /** + * Decodes a CreateRequestHeader message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateRequestHeader} CreateRequestHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateRequestHeader.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateRequestHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.outputPrefix = reader.string(); + break; + case 3: + message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.maxDatasetSizeBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateRequestHeader message. + * @function verify + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateRequestHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { + var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); + if (error) + return "taskExecutionMetadata." + error; + } + if (message.maxDatasetSizeBytes != null && message.hasOwnProperty("maxDatasetSizeBytes")) + if (!$util.isInteger(message.maxDatasetSizeBytes) && !(message.maxDatasetSizeBytes && $util.isInteger(message.maxDatasetSizeBytes.low) && $util.isInteger(message.maxDatasetSizeBytes.high))) + return "maxDatasetSizeBytes: integer|Long expected"; + return null; + }; + + return CreateRequestHeader; + })(); + + admin.ExecuteTaskSyncRequest = (function() { + + /** + * Properties of an ExecuteTaskSyncRequest. + * @memberof flyteidl.admin + * @interface IExecuteTaskSyncRequest + * @property {flyteidl.admin.ICreateRequestHeader|null} [header] ExecuteTaskSyncRequest header + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecuteTaskSyncRequest inputs + */ + + /** + * Constructs a new ExecuteTaskSyncRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecuteTaskSyncRequest. + * @implements IExecuteTaskSyncRequest + * @constructor + * @param {flyteidl.admin.IExecuteTaskSyncRequest=} [properties] Properties to set + */ + function ExecuteTaskSyncRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteTaskSyncRequest header. + * @member {flyteidl.admin.ICreateRequestHeader|null|undefined} header + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @instance + */ + ExecuteTaskSyncRequest.prototype.header = null; + + /** + * ExecuteTaskSyncRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @instance + */ + ExecuteTaskSyncRequest.prototype.inputs = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecuteTaskSyncRequest part. + * @member {"header"|"inputs"|undefined} part + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @instance + */ + Object.defineProperty(ExecuteTaskSyncRequest.prototype, "part", { + get: $util.oneOfGetter($oneOfFields = ["header", "inputs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecuteTaskSyncRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {flyteidl.admin.IExecuteTaskSyncRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecuteTaskSyncRequest} ExecuteTaskSyncRequest instance + */ + ExecuteTaskSyncRequest.create = function create(properties) { + return new ExecuteTaskSyncRequest(properties); + }; + + /** + * Encodes the specified ExecuteTaskSyncRequest message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {flyteidl.admin.IExecuteTaskSyncRequest} message ExecuteTaskSyncRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteTaskSyncRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.header != null && message.hasOwnProperty("header")) + $root.flyteidl.admin.CreateRequestHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecuteTaskSyncRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecuteTaskSyncRequest} ExecuteTaskSyncRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteTaskSyncRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = $root.flyteidl.admin.CreateRequestHeader.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecuteTaskSyncRequest message. + * @function verify + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteTaskSyncRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.header != null && message.hasOwnProperty("header")) { + properties.part = 1; + { + var error = $root.flyteidl.admin.CreateRequestHeader.verify(message.header); + if (error) + return "header." + error; + } + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (properties.part === 1) + return "part: multiple values"; + properties.part = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + } + return null; + }; + + return ExecuteTaskSyncRequest; + })(); + + admin.ExecuteTaskSyncResponseHeader = (function() { + + /** + * Properties of an ExecuteTaskSyncResponseHeader. + * @memberof flyteidl.admin + * @interface IExecuteTaskSyncResponseHeader + * @property {flyteidl.admin.IResource|null} [resource] ExecuteTaskSyncResponseHeader resource */ - CreateTaskRequest.prototype.template = null; /** - * CreateTaskRequest outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.admin.CreateTaskRequest - * @instance + * Constructs a new ExecuteTaskSyncResponseHeader. + * @memberof flyteidl.admin + * @classdesc Represents an ExecuteTaskSyncResponseHeader. + * @implements IExecuteTaskSyncResponseHeader + * @constructor + * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader=} [properties] Properties to set */ - CreateTaskRequest.prototype.outputPrefix = ""; + function ExecuteTaskSyncResponseHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * CreateTaskRequest taskExecutionMetadata. - * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata - * @memberof flyteidl.admin.CreateTaskRequest + * ExecuteTaskSyncResponseHeader resource. + * @member {flyteidl.admin.IResource|null|undefined} resource + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader * @instance */ - CreateTaskRequest.prototype.taskExecutionMetadata = null; + ExecuteTaskSyncResponseHeader.prototype.resource = null; /** - * Creates a new CreateTaskRequest instance using the specified properties. + * Creates a new ExecuteTaskSyncResponseHeader instance using the specified properties. * @function create - * @memberof flyteidl.admin.CreateTaskRequest + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader * @static - * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance + * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader=} [properties] Properties to set + * @returns {flyteidl.admin.ExecuteTaskSyncResponseHeader} ExecuteTaskSyncResponseHeader instance */ - CreateTaskRequest.create = function create(properties) { - return new CreateTaskRequest(properties); + ExecuteTaskSyncResponseHeader.create = function create(properties) { + return new ExecuteTaskSyncResponseHeader(properties); }; /** - * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. + * Encodes the specified ExecuteTaskSyncResponseHeader message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponseHeader.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.CreateTaskRequest + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader * @static - * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode + * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader} message ExecuteTaskSyncResponseHeader message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTaskRequest.encode = function encode(message, writer) { + ExecuteTaskSyncResponseHeader.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) - $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.resource != null && message.hasOwnProperty("resource")) + $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Decodes a CreateTaskRequest message from the specified reader or buffer. + * Decodes an ExecuteTaskSyncResponseHeader message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.CreateTaskRequest + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest + * @returns {flyteidl.admin.ExecuteTaskSyncResponseHeader} ExecuteTaskSyncResponseHeader * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTaskRequest.decode = function decode(reader, length) { + ExecuteTaskSyncResponseHeader.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncResponseHeader(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 3: - message.outputPrefix = reader.string(); - break; - case 4: - message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); + message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22031,59 +22655,46 @@ }; /** - * Verifies a CreateTaskRequest message. + * Verifies an ExecuteTaskSyncResponseHeader message. * @function verify - * @memberof flyteidl.admin.CreateTaskRequest + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTaskRequest.verify = function verify(message) { + ExecuteTaskSyncResponseHeader.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { - var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); + if (message.resource != null && message.hasOwnProperty("resource")) { + var error = $root.flyteidl.admin.Resource.verify(message.resource); if (error) - return "taskExecutionMetadata." + error; + return "resource." + error; } return null; }; - return CreateTaskRequest; + return ExecuteTaskSyncResponseHeader; })(); - admin.CreateTaskResponse = (function() { + admin.ExecuteTaskSyncResponse = (function() { /** - * Properties of a CreateTaskResponse. + * Properties of an ExecuteTaskSyncResponse. * @memberof flyteidl.admin - * @interface ICreateTaskResponse - * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta - * @property {flyteidl.admin.IResource|null} [resource] CreateTaskResponse resource + * @interface IExecuteTaskSyncResponse + * @property {flyteidl.admin.IExecuteTaskSyncResponseHeader|null} [header] ExecuteTaskSyncResponse header + * @property {flyteidl.core.ILiteralMap|null} [outputs] ExecuteTaskSyncResponse outputs */ /** - * Constructs a new CreateTaskResponse. + * Constructs a new ExecuteTaskSyncResponse. * @memberof flyteidl.admin - * @classdesc Represents a CreateTaskResponse. - * @implements ICreateTaskResponse + * @classdesc Represents an ExecuteTaskSyncResponse. + * @implements IExecuteTaskSyncResponse * @constructor - * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + * @param {flyteidl.admin.IExecuteTaskSyncResponse=} [properties] Properties to set */ - function CreateTaskResponse(properties) { + function ExecuteTaskSyncResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22091,89 +22702,89 @@ } /** - * CreateTaskResponse resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.CreateTaskResponse + * ExecuteTaskSyncResponse header. + * @member {flyteidl.admin.IExecuteTaskSyncResponseHeader|null|undefined} header + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @instance */ - CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); + ExecuteTaskSyncResponse.prototype.header = null; /** - * CreateTaskResponse resource. - * @member {flyteidl.admin.IResource|null|undefined} resource - * @memberof flyteidl.admin.CreateTaskResponse + * ExecuteTaskSyncResponse outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @instance */ - CreateTaskResponse.prototype.resource = null; + ExecuteTaskSyncResponse.prototype.outputs = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * CreateTaskResponse res. - * @member {"resourceMeta"|"resource"|undefined} res - * @memberof flyteidl.admin.CreateTaskResponse + * ExecuteTaskSyncResponse res. + * @member {"header"|"outputs"|undefined} res + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @instance */ - Object.defineProperty(CreateTaskResponse.prototype, "res", { - get: $util.oneOfGetter($oneOfFields = ["resourceMeta", "resource"]), + Object.defineProperty(ExecuteTaskSyncResponse.prototype, "res", { + get: $util.oneOfGetter($oneOfFields = ["header", "outputs"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new CreateTaskResponse instance using the specified properties. + * Creates a new ExecuteTaskSyncResponse instance using the specified properties. * @function create - * @memberof flyteidl.admin.CreateTaskResponse + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @static - * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance + * @param {flyteidl.admin.IExecuteTaskSyncResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecuteTaskSyncResponse} ExecuteTaskSyncResponse instance */ - CreateTaskResponse.create = function create(properties) { - return new CreateTaskResponse(properties); + ExecuteTaskSyncResponse.create = function create(properties) { + return new ExecuteTaskSyncResponse(properties); }; /** - * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. + * Encodes the specified ExecuteTaskSyncResponse message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponse.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.CreateTaskResponse + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @static - * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode + * @param {flyteidl.admin.IExecuteTaskSyncResponse} message ExecuteTaskSyncResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTaskResponse.encode = function encode(message, writer) { + ExecuteTaskSyncResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); - if (message.resource != null && message.hasOwnProperty("resource")) - $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.header != null && message.hasOwnProperty("header")) + $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Decodes a CreateTaskResponse message from the specified reader or buffer. + * Decodes an ExecuteTaskSyncResponse message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.CreateTaskResponse + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse + * @returns {flyteidl.admin.ExecuteTaskSyncResponse} ExecuteTaskSyncResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTaskResponse.decode = function decode(reader, length) { + ExecuteTaskSyncResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.resourceMeta = reader.bytes(); + message.header = $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.decode(reader, reader.uint32()); break; case 2: - message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -22184,36 +22795,39 @@ }; /** - * Verifies a CreateTaskResponse message. + * Verifies an ExecuteTaskSyncResponse message. * @function verify - * @memberof flyteidl.admin.CreateTaskResponse + * @memberof flyteidl.admin.ExecuteTaskSyncResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTaskResponse.verify = function verify(message) { + ExecuteTaskSyncResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) { + if (message.header != null && message.hasOwnProperty("header")) { properties.res = 1; - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; + { + var error = $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.verify(message.header); + if (error) + return "header." + error; + } } - if (message.resource != null && message.hasOwnProperty("resource")) { + if (message.outputs != null && message.hasOwnProperty("outputs")) { if (properties.res === 1) return "res: multiple values"; properties.res = 1; { - var error = $root.flyteidl.admin.Resource.verify(message.resource); + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); if (error) - return "resource." + error; + return "outputs." + error; } } return null; }; - return CreateTaskResponse; + return ExecuteTaskSyncResponse; })(); admin.GetTaskRequest = (function() { @@ -22222,7 +22836,7 @@ * Properties of a GetTaskRequest. * @memberof flyteidl.admin * @interface IGetTaskRequest - * @property {string|null} [taskType] GetTaskRequest taskType + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskRequest taskType * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta */ @@ -22243,11 +22857,11 @@ /** * GetTaskRequest taskType. - * @member {string} taskType + * @member {flyteidl.admin.ITaskType|null|undefined} taskType * @memberof flyteidl.admin.GetTaskRequest * @instance */ - GetTaskRequest.prototype.taskType = ""; + GetTaskRequest.prototype.taskType = null; /** * GetTaskRequest resourceMeta. @@ -22282,7 +22896,7 @@ if (!writer) writer = $Writer.create(); if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); return writer; @@ -22307,7 +22921,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = reader.string(); + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); break; case 2: message.resourceMeta = reader.bytes(); @@ -22331,9 +22945,11 @@ GetTaskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -22697,7 +23313,7 @@ * Properties of a DeleteTaskRequest. * @memberof flyteidl.admin * @interface IDeleteTaskRequest - * @property {string|null} [taskType] DeleteTaskRequest taskType + * @property {flyteidl.admin.ITaskType|null} [taskType] DeleteTaskRequest taskType * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta */ @@ -22718,11 +23334,11 @@ /** * DeleteTaskRequest taskType. - * @member {string} taskType + * @member {flyteidl.admin.ITaskType|null|undefined} taskType * @memberof flyteidl.admin.DeleteTaskRequest * @instance */ - DeleteTaskRequest.prototype.taskType = ""; + DeleteTaskRequest.prototype.taskType = null; /** * DeleteTaskRequest resourceMeta. @@ -22757,7 +23373,7 @@ if (!writer) writer = $Writer.create(); if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); return writer; @@ -22782,7 +23398,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = reader.string(); + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); break; case 2: message.resourceMeta = reader.bytes(); @@ -22806,9 +23422,11 @@ DeleteTaskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -22918,7 +23536,7 @@ * @memberof flyteidl.admin * @interface IAgent * @property {string|null} [name] Agent name - * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes + * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes */ /** @@ -22947,7 +23565,7 @@ /** * Agent supportedTaskTypes. - * @member {Array.} supportedTaskTypes + * @member {Array.} supportedTaskTypes * @memberof flyteidl.admin.Agent * @instance */ @@ -22981,25 +23599,160 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) for (var i = 0; i < message.supportedTaskTypes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.supportedTaskTypes[i]); + $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** * Decodes an Agent message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.Agent + * @memberof flyteidl.admin.Agent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Agent} Agent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Agent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Agent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) + message.supportedTaskTypes = []; + message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Agent message. + * @function verify + * @memberof flyteidl.admin.Agent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Agent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { + if (!Array.isArray(message.supportedTaskTypes)) + return "supportedTaskTypes: array expected"; + for (var i = 0; i < message.supportedTaskTypes.length; ++i) { + var error = $root.flyteidl.admin.TaskType.verify(message.supportedTaskTypes[i]); + if (error) + return "supportedTaskTypes." + error; + } + } + return null; + }; + + return Agent; + })(); + + admin.TaskType = (function() { + + /** + * Properties of a TaskType. + * @memberof flyteidl.admin + * @interface ITaskType + * @property {string|null} [name] TaskType name + * @property {number|null} [version] TaskType version + */ + + /** + * Constructs a new TaskType. + * @memberof flyteidl.admin + * @classdesc Represents a TaskType. + * @implements ITaskType + * @constructor + * @param {flyteidl.admin.ITaskType=} [properties] Properties to set + */ + function TaskType(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskType name. + * @member {string} name + * @memberof flyteidl.admin.TaskType + * @instance + */ + TaskType.prototype.name = ""; + + /** + * TaskType version. + * @member {number} version + * @memberof flyteidl.admin.TaskType + * @instance + */ + TaskType.prototype.version = 0; + + /** + * Creates a new TaskType instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskType + * @static + * @param {flyteidl.admin.ITaskType=} [properties] Properties to set + * @returns {flyteidl.admin.TaskType} TaskType instance + */ + TaskType.create = function create(properties) { + return new TaskType(properties); + }; + + /** + * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskType + * @static + * @param {flyteidl.admin.ITaskType} message TaskType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Decodes a TaskType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Agent} Agent + * @returns {flyteidl.admin.TaskType} TaskType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Agent.decode = function decode(reader, length) { + TaskType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Agent(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskType(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -23007,9 +23760,7 @@ message.name = reader.string(); break; case 2: - if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) - message.supportedTaskTypes = []; - message.supportedTaskTypes.push(reader.string()); + message.version = reader.int32(); break; default: reader.skipType(tag & 7); @@ -23020,30 +23771,26 @@ }; /** - * Verifies an Agent message. + * Verifies a TaskType message. * @function verify - * @memberof flyteidl.admin.Agent + * @memberof flyteidl.admin.TaskType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Agent.verify = function verify(message) { + TaskType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { - if (!Array.isArray(message.supportedTaskTypes)) - return "supportedTaskTypes: array expected"; - for (var i = 0; i < message.supportedTaskTypes.length; ++i) - if (!$util.isString(message.supportedTaskTypes[i])) - return "supportedTaskTypes: string[] expected"; - } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; return null; }; - return Agent; + return TaskType; })(); admin.GetAgentRequest = (function() { @@ -23487,7 +24234,7 @@ * Properties of a GetTaskMetricsRequest. * @memberof flyteidl.admin * @interface IGetTaskMetricsRequest - * @property {string|null} [taskType] GetTaskMetricsRequest taskType + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskMetricsRequest taskType * @property {Uint8Array|null} [resourceMeta] GetTaskMetricsRequest resourceMeta * @property {Array.|null} [queries] GetTaskMetricsRequest queries * @property {google.protobuf.ITimestamp|null} [startTime] GetTaskMetricsRequest startTime @@ -23513,11 +24260,11 @@ /** * GetTaskMetricsRequest taskType. - * @member {string} taskType + * @member {flyteidl.admin.ITaskType|null|undefined} taskType * @memberof flyteidl.admin.GetTaskMetricsRequest * @instance */ - GetTaskMetricsRequest.prototype.taskType = ""; + GetTaskMetricsRequest.prototype.taskType = null; /** * GetTaskMetricsRequest resourceMeta. @@ -23584,7 +24331,7 @@ if (!writer) writer = $Writer.create(); if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); if (message.queries != null && message.queries.length) @@ -23618,7 +24365,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = reader.string(); + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); break; case 2: message.resourceMeta = reader.bytes(); @@ -23656,9 +24403,11 @@ GetTaskMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -23816,7 +24565,7 @@ * Properties of a GetTaskLogsRequest. * @memberof flyteidl.admin * @interface IGetTaskLogsRequest - * @property {string|null} [taskType] GetTaskLogsRequest taskType + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskLogsRequest taskType * @property {Uint8Array|null} [resourceMeta] GetTaskLogsRequest resourceMeta * @property {Long|null} [lines] GetTaskLogsRequest lines * @property {string|null} [token] GetTaskLogsRequest token @@ -23839,11 +24588,11 @@ /** * GetTaskLogsRequest taskType. - * @member {string} taskType + * @member {flyteidl.admin.ITaskType|null|undefined} taskType * @memberof flyteidl.admin.GetTaskLogsRequest * @instance */ - GetTaskLogsRequest.prototype.taskType = ""; + GetTaskLogsRequest.prototype.taskType = null; /** * GetTaskLogsRequest resourceMeta. @@ -23894,7 +24643,7 @@ if (!writer) writer = $Writer.create(); if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); if (message.lines != null && message.hasOwnProperty("lines")) @@ -23923,7 +24672,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = reader.string(); + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); break; case 2: message.resourceMeta = reader.bytes(); @@ -23953,9 +24702,11 @@ GetTaskLogsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -23971,14 +24722,242 @@ return GetTaskLogsRequest; })(); + admin.GetTaskLogsResponseHeader = (function() { + + /** + * Properties of a GetTaskLogsResponseHeader. + * @memberof flyteidl.admin + * @interface IGetTaskLogsResponseHeader + * @property {string|null} [token] GetTaskLogsResponseHeader token + */ + + /** + * Constructs a new GetTaskLogsResponseHeader. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskLogsResponseHeader. + * @implements IGetTaskLogsResponseHeader + * @constructor + * @param {flyteidl.admin.IGetTaskLogsResponseHeader=} [properties] Properties to set + */ + function GetTaskLogsResponseHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskLogsResponseHeader token. + * @member {string} token + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @instance + */ + GetTaskLogsResponseHeader.prototype.token = ""; + + /** + * Creates a new GetTaskLogsResponseHeader instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseHeader=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsResponseHeader} GetTaskLogsResponseHeader instance + */ + GetTaskLogsResponseHeader.create = function create(properties) { + return new GetTaskLogsResponseHeader(properties); + }; + + /** + * Encodes the specified GetTaskLogsResponseHeader message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseHeader.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseHeader} message GetTaskLogsResponseHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskLogsResponseHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); + return writer; + }; + + /** + * Decodes a GetTaskLogsResponseHeader message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskLogsResponseHeader} GetTaskLogsResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskLogsResponseHeader.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponseHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskLogsResponseHeader message. + * @function verify + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskLogsResponseHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return GetTaskLogsResponseHeader; + })(); + + admin.GetTaskLogsResponseBody = (function() { + + /** + * Properties of a GetTaskLogsResponseBody. + * @memberof flyteidl.admin + * @interface IGetTaskLogsResponseBody + * @property {Array.|null} [results] GetTaskLogsResponseBody results + */ + + /** + * Constructs a new GetTaskLogsResponseBody. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskLogsResponseBody. + * @implements IGetTaskLogsResponseBody + * @constructor + * @param {flyteidl.admin.IGetTaskLogsResponseBody=} [properties] Properties to set + */ + function GetTaskLogsResponseBody(properties) { + this.results = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskLogsResponseBody results. + * @member {Array.} results + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @instance + */ + GetTaskLogsResponseBody.prototype.results = $util.emptyArray; + + /** + * Creates a new GetTaskLogsResponseBody instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseBody=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsResponseBody} GetTaskLogsResponseBody instance + */ + GetTaskLogsResponseBody.create = function create(properties) { + return new GetTaskLogsResponseBody(properties); + }; + + /** + * Encodes the specified GetTaskLogsResponseBody message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseBody.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseBody} message GetTaskLogsResponseBody message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskLogsResponseBody.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + return writer; + }; + + /** + * Decodes a GetTaskLogsResponseBody message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskLogsResponseBody} GetTaskLogsResponseBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskLogsResponseBody.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponseBody(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskLogsResponseBody message. + * @function verify + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskLogsResponseBody.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + return null; + }; + + return GetTaskLogsResponseBody; + })(); + admin.GetTaskLogsResponse = (function() { /** * Properties of a GetTaskLogsResponse. * @memberof flyteidl.admin * @interface IGetTaskLogsResponse - * @property {Array.|null} [results] GetTaskLogsResponse results - * @property {string|null} [token] GetTaskLogsResponse token + * @property {flyteidl.admin.IGetTaskLogsResponseHeader|null} [header] GetTaskLogsResponse header + * @property {flyteidl.admin.IGetTaskLogsResponseBody|null} [body] GetTaskLogsResponse body */ /** @@ -23990,7 +24969,6 @@ * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set */ function GetTaskLogsResponse(properties) { - this.results = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23998,20 +24976,34 @@ } /** - * GetTaskLogsResponse results. - * @member {Array.} results + * GetTaskLogsResponse header. + * @member {flyteidl.admin.IGetTaskLogsResponseHeader|null|undefined} header * @memberof flyteidl.admin.GetTaskLogsResponse * @instance */ - GetTaskLogsResponse.prototype.results = $util.emptyArray; + GetTaskLogsResponse.prototype.header = null; /** - * GetTaskLogsResponse token. - * @member {string} token + * GetTaskLogsResponse body. + * @member {flyteidl.admin.IGetTaskLogsResponseBody|null|undefined} body + * @memberof flyteidl.admin.GetTaskLogsResponse + * @instance + */ + GetTaskLogsResponse.prototype.body = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetTaskLogsResponse part. + * @member {"header"|"body"|undefined} part * @memberof flyteidl.admin.GetTaskLogsResponse * @instance */ - GetTaskLogsResponse.prototype.token = ""; + Object.defineProperty(GetTaskLogsResponse.prototype, "part", { + get: $util.oneOfGetter($oneOfFields = ["header", "body"]), + set: $util.oneOfSetter($oneOfFields) + }); /** * Creates a new GetTaskLogsResponse instance using the specified properties. @@ -24037,11 +25029,10 @@ GetTaskLogsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + if (message.header != null && message.hasOwnProperty("header")) + $root.flyteidl.admin.GetTaskLogsResponseHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.body != null && message.hasOwnProperty("body")) + $root.flyteidl.admin.GetTaskLogsResponseBody.encode(message.body, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -24064,12 +25055,10 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); + message.header = $root.flyteidl.admin.GetTaskLogsResponseHeader.decode(reader, reader.uint32()); break; case 2: - message.token = reader.string(); + message.body = $root.flyteidl.admin.GetTaskLogsResponseBody.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24090,16 +25079,25 @@ GetTaskLogsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; + var properties = {}; + if (message.header != null && message.hasOwnProperty("header")) { + properties.part = 1; + { + var error = $root.flyteidl.admin.GetTaskLogsResponseHeader.verify(message.header); + if (error) + return "header." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) { + if (properties.part === 1) + return "part: multiple values"; + properties.part = 1; + { + var error = $root.flyteidl.admin.GetTaskLogsResponseBody.verify(message.body); + if (error) + return "body." + error; + } } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; return null; }; @@ -50382,6 +51380,39 @@ return new this(rpcImpl, requestDelimited, responseDelimited); }; + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#executeTaskSync}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef ExecuteTaskSyncCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecuteTaskSyncResponse} [response] ExecuteTaskSyncResponse + */ + + /** + * Calls ExecuteTaskSync. + * @function executeTaskSync + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.ExecuteTaskSyncCallback} callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.executeTaskSync = function executeTaskSync(request, callback) { + return this.rpcCall(executeTaskSync, $root.flyteidl.admin.ExecuteTaskSyncRequest, $root.flyteidl.admin.ExecuteTaskSyncResponse, request, callback); + }, "name", { value: "ExecuteTaskSync" }); + + /** + * Calls ExecuteTaskSync. + * @function executeTaskSync + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. * @memberof flyteidl.service.AsyncAgentService diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index f23ad50819..b6edf9069e 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -13,6 +13,7 @@ from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 @@ -20,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x98\x05\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"z\n\x12\x43reateTaskResponse\x12%\n\rresource_meta\x18\x01 \x01(\x0cH\x00R\x0cresourceMeta\x12\x36\n\x08resource\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.ResourceH\x00R\x08resourceB\x05\n\x03res\"R\n\x0eGetTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"U\n\x11\x44\x65leteTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"M\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x30\n\x14supported_task_types\x18\x02 \x03(\tR\x12supportedTaskTypes\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\x94\x02\n\x15GetTaskMetricsRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x82\x01\n\x12GetTaskLogsRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"E\n\x13GetTaskLogsResponse\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"g\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -37,46 +38,60 @@ _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=2730 - _globals['_STATE']._serialized_end=2824 - _globals['_TASKEXECUTIONMETADATA']._serialized_start=261 - _globals['_TASKEXECUTIONMETADATA']._serialized_end=925 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=731 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=788 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=790 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=852 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=854 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=925 - _globals['_CREATETASKREQUEST']._serialized_start=928 - _globals['_CREATETASKREQUEST']._serialized_end=1187 - _globals['_CREATETASKRESPONSE']._serialized_start=1189 - _globals['_CREATETASKRESPONSE']._serialized_end=1311 - _globals['_GETTASKREQUEST']._serialized_start=1313 - _globals['_GETTASKREQUEST']._serialized_end=1395 - _globals['_GETTASKRESPONSE']._serialized_start=1397 - _globals['_GETTASKRESPONSE']._serialized_end=1521 - _globals['_RESOURCE']._serialized_start=1524 - _globals['_RESOURCE']._serialized_end=1773 - _globals['_DELETETASKREQUEST']._serialized_start=1775 - _globals['_DELETETASKREQUEST']._serialized_end=1860 - _globals['_DELETETASKRESPONSE']._serialized_start=1862 - _globals['_DELETETASKRESPONSE']._serialized_end=1882 - _globals['_AGENT']._serialized_start=1884 - _globals['_AGENT']._serialized_end=1961 - _globals['_GETAGENTREQUEST']._serialized_start=1963 - _globals['_GETAGENTREQUEST']._serialized_end=2000 - _globals['_GETAGENTRESPONSE']._serialized_start=2002 - _globals['_GETAGENTRESPONSE']._serialized_end=2065 - _globals['_LISTAGENTSREQUEST']._serialized_start=2067 - _globals['_LISTAGENTSREQUEST']._serialized_end=2086 - _globals['_LISTAGENTSRESPONSE']._serialized_start=2088 - _globals['_LISTAGENTSRESPONSE']._serialized_end=2155 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=2158 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=2434 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=2436 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=2524 - _globals['_GETTASKLOGSREQUEST']._serialized_start=2527 - _globals['_GETTASKLOGSREQUEST']._serialized_end=2657 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=2659 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=2728 + _globals['_STATE']._serialized_start=3956 + _globals['_STATE']._serialized_end=4050 + _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 + _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=1027 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=1029 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=1091 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=1093 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=1164 + _globals['_CREATETASKREQUEST']._serialized_start=1167 + _globals['_CREATETASKREQUEST']._serialized_end=1426 + _globals['_CREATETASKRESPONSE']._serialized_start=1428 + _globals['_CREATETASKRESPONSE']._serialized_end=1485 + _globals['_CREATEREQUESTHEADER']._serialized_start=1488 + _globals['_CREATEREQUESTHEADER']._serialized_end=1751 + _globals['_EXECUTETASKSYNCREQUEST']._serialized_start=1754 + _globals['_EXECUTETASKSYNCREQUEST']._serialized_end=1902 + _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_start=1904 + _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_end=1989 + _globals['_EXECUTETASKSYNCRESPONSE']._serialized_start=1992 + _globals['_EXECUTETASKSYNCRESPONSE']._serialized_end=2152 + _globals['_GETTASKREQUEST']._serialized_start=2154 + _globals['_GETTASKREQUEST']._serialized_end=2262 + _globals['_GETTASKRESPONSE']._serialized_start=2264 + _globals['_GETTASKRESPONSE']._serialized_end=2388 + _globals['_RESOURCE']._serialized_start=2391 + _globals['_RESOURCE']._serialized_end=2640 + _globals['_DELETETASKREQUEST']._serialized_start=2642 + _globals['_DELETETASKREQUEST']._serialized_end=2753 + _globals['_DELETETASKRESPONSE']._serialized_start=2755 + _globals['_DELETETASKRESPONSE']._serialized_end=2775 + _globals['_AGENT']._serialized_start=2777 + _globals['_AGENT']._serialized_end=2880 + _globals['_TASKTYPE']._serialized_start=2882 + _globals['_TASKTYPE']._serialized_end=2938 + _globals['_GETAGENTREQUEST']._serialized_start=2940 + _globals['_GETAGENTREQUEST']._serialized_end=2977 + _globals['_GETAGENTRESPONSE']._serialized_start=2979 + _globals['_GETAGENTRESPONSE']._serialized_end=3042 + _globals['_LISTAGENTSREQUEST']._serialized_start=3044 + _globals['_LISTAGENTSREQUEST']._serialized_end=3063 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3065 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3132 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3135 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3437 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3439 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3527 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3530 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3686 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3688 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3737 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3739 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3790 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=3793 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=3954 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 7b7c6beb07..b6f5504e97 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -1,5 +1,6 @@ from flyteidl.core import literals_pb2 as _literals_pb2 from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 from flyteidl.core import identifier_pb2 as _identifier_pb2 from flyteidl.core import execution_pb2 as _execution_pb2 from flyteidl.core import metrics_pb2 as _metrics_pb2 @@ -27,7 +28,7 @@ RUNNING: State SUCCEEDED: State class TaskExecutionMetadata(_message.Message): - __slots__ = ["task_execution_id", "namespace", "labels", "annotations", "k8s_service_account", "environment_variables"] + __slots__ = ["task_execution_id", "namespace", "labels", "annotations", "k8s_service_account", "environment_variables", "max_attempts", "interruptible", "interruptible_failure_threshold", "overrides"] class LabelsEntry(_message.Message): __slots__ = ["key", "value"] KEY_FIELD_NUMBER: _ClassVar[int] @@ -55,13 +56,21 @@ class TaskExecutionMetadata(_message.Message): ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] ENVIRONMENT_VARIABLES_FIELD_NUMBER: _ClassVar[int] + MAX_ATTEMPTS_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FAILURE_THRESHOLD_FIELD_NUMBER: _ClassVar[int] + OVERRIDES_FIELD_NUMBER: _ClassVar[int] task_execution_id: _identifier_pb2.TaskExecutionIdentifier namespace: str labels: _containers.ScalarMap[str, str] annotations: _containers.ScalarMap[str, str] k8s_service_account: str environment_variables: _containers.ScalarMap[str, str] - def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., namespace: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ..., k8s_service_account: _Optional[str] = ..., environment_variables: _Optional[_Mapping[str, str]] = ...) -> None: ... + max_attempts: int + interruptible: bool + interruptible_failure_threshold: int + overrides: _workflow_pb2.TaskNodeOverrides + def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., namespace: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ..., k8s_service_account: _Optional[str] = ..., environment_variables: _Optional[_Mapping[str, str]] = ..., max_attempts: _Optional[int] = ..., interruptible: bool = ..., interruptible_failure_threshold: _Optional[int] = ..., overrides: _Optional[_Union[_workflow_pb2.TaskNodeOverrides, _Mapping]] = ...) -> None: ... class CreateTaskRequest(_message.Message): __slots__ = ["inputs", "template", "output_prefix", "task_execution_metadata"] @@ -76,20 +85,52 @@ class CreateTaskRequest(_message.Message): def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ...) -> None: ... class CreateTaskResponse(_message.Message): - __slots__ = ["resource_meta", "resource"] + __slots__ = ["resource_meta"] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - RESOURCE_FIELD_NUMBER: _ClassVar[int] resource_meta: bytes + def __init__(self, resource_meta: _Optional[bytes] = ...) -> None: ... + +class CreateRequestHeader(_message.Message): + __slots__ = ["template", "output_prefix", "task_execution_metadata", "max_dataset_size_bytes"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] + TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] + MAX_DATASET_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] + template: _tasks_pb2.TaskTemplate + output_prefix: str + task_execution_metadata: TaskExecutionMetadata + max_dataset_size_bytes: int + def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., max_dataset_size_bytes: _Optional[int] = ...) -> None: ... + +class ExecuteTaskSyncRequest(_message.Message): + __slots__ = ["header", "inputs"] + HEADER_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + header: CreateRequestHeader + inputs: _literals_pb2.LiteralMap + def __init__(self, header: _Optional[_Union[CreateRequestHeader, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class ExecuteTaskSyncResponseHeader(_message.Message): + __slots__ = ["resource"] + RESOURCE_FIELD_NUMBER: _ClassVar[int] resource: Resource - def __init__(self, resource_meta: _Optional[bytes] = ..., resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class ExecuteTaskSyncResponse(_message.Message): + __slots__ = ["header", "outputs"] + HEADER_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + header: ExecuteTaskSyncResponseHeader + outputs: _literals_pb2.LiteralMap + def __init__(self, header: _Optional[_Union[ExecuteTaskSyncResponseHeader, _Mapping]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... class GetTaskRequest(_message.Message): __slots__ = ["task_type", "resource_meta"] TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - task_type: str + task_type: TaskType resource_meta: bytes - def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... class GetTaskResponse(_message.Message): __slots__ = ["resource", "log_links"] @@ -117,9 +158,9 @@ class DeleteTaskRequest(_message.Message): __slots__ = ["task_type", "resource_meta"] TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - task_type: str + task_type: TaskType resource_meta: bytes - def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... class DeleteTaskResponse(_message.Message): __slots__ = [] @@ -130,8 +171,16 @@ class Agent(_message.Message): NAME_FIELD_NUMBER: _ClassVar[int] SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] name: str - supported_task_types: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[str]] = ...) -> None: ... + supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] + def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... + +class TaskType(_message.Message): + __slots__ = ["name", "version"] + NAME_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + name: str + version: int + def __init__(self, name: _Optional[str] = ..., version: _Optional[int] = ...) -> None: ... class GetAgentRequest(_message.Message): __slots__ = ["name"] @@ -163,13 +212,13 @@ class GetTaskMetricsRequest(_message.Message): START_TIME_FIELD_NUMBER: _ClassVar[int] END_TIME_FIELD_NUMBER: _ClassVar[int] STEP_FIELD_NUMBER: _ClassVar[int] - task_type: str + task_type: TaskType resource_meta: bytes queries: _containers.RepeatedScalarFieldContainer[str] start_time: _timestamp_pb2.Timestamp end_time: _timestamp_pb2.Timestamp step: _duration_pb2.Duration - def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... class GetTaskMetricsResponse(_message.Message): __slots__ = ["results"] @@ -183,16 +232,28 @@ class GetTaskLogsRequest(_message.Message): RESOURCE_META_FIELD_NUMBER: _ClassVar[int] LINES_FIELD_NUMBER: _ClassVar[int] TOKEN_FIELD_NUMBER: _ClassVar[int] - task_type: str + task_type: TaskType resource_meta: bytes lines: int token: str - def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ...) -> None: ... + def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ...) -> None: ... -class GetTaskLogsResponse(_message.Message): - __slots__ = ["results", "token"] - RESULTS_FIELD_NUMBER: _ClassVar[int] +class GetTaskLogsResponseHeader(_message.Message): + __slots__ = ["token"] TOKEN_FIELD_NUMBER: _ClassVar[int] - results: _containers.RepeatedScalarFieldContainer[str] token: str - def __init__(self, results: _Optional[_Iterable[str]] = ..., token: _Optional[str] = ...) -> None: ... + def __init__(self, token: _Optional[str] = ...) -> None: ... + +class GetTaskLogsResponseBody(_message.Message): + __slots__ = ["results"] + RESULTS_FIELD_NUMBER: _ClassVar[int] + results: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, results: _Optional[_Iterable[str]] = ...) -> None: ... + +class GetTaskLogsResponse(_message.Message): + __slots__ = ["header", "body"] + HEADER_FIELD_NUMBER: _ClassVar[int] + BODY_FIELD_NUMBER: _ClassVar[int] + header: GetTaskLogsResponseHeader + body: GetTaskLogsResponseBody + def __init__(self, header: _Optional[_Union[GetTaskLogsResponseHeader, _Mapping]] = ..., body: _Optional[_Union[GetTaskLogsResponseBody, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py index 4a1a3d8f70..6c1f0000d4 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -15,7 +15,7 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xcc\x03\n\x11\x41syncAgentService\x12U\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x00\x12L\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"\x00\x12U\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"\x00\x12\x61\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"\x00\x12X\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"\x00\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xd2\x07\n\x11\x41syncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,12 +24,24 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAgentProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _ASYNCAGENTSERVICE.methods_by_name['ExecuteTaskSync']._options = None + _ASYNCAGENTSERVICE.methods_by_name['ExecuteTaskSync']._serialized_options = b'\202\323\344\223\002\036:\001*\"\031/api/v1/agent/task/stream' + _ASYNCAGENTSERVICE.methods_by_name['CreateTask']._options = None + _ASYNCAGENTSERVICE.methods_by_name['CreateTask']._serialized_options = b'\202\323\344\223\002\027:\001*\"\022/api/v1/agent/task' + _ASYNCAGENTSERVICE.methods_by_name['GetTask']._options = None + _ASYNCAGENTSERVICE.methods_by_name['GetTask']._serialized_options = b'\202\323\344\223\002I\022G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['DeleteTask']._options = None + _ASYNCAGENTSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\202\323\344\223\002T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['GetTaskMetrics']._options = None + _ASYNCAGENTSERVICE.methods_by_name['GetTaskMetrics']._serialized_options = b'\202\323\344\223\002Q\022O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._options = None + _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._serialized_options = b'\202\323\344\223\002N\022L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}' _AGENTMETADATASERVICE.methods_by_name['GetAgent']._options = None _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\002\026\022\024/api/v1/agent/{name}' _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None _AGENTMETADATASERVICE.methods_by_name['ListAgents']._serialized_options = b'\202\323\344\223\002\020\022\016/api/v1/agents' _globals['_ASYNCAGENTSERVICE']._serialized_start=109 - _globals['_ASYNCAGENTSERVICE']._serialized_end=569 - _globals['_AGENTMETADATASERVICE']._serialized_start=572 - _globals['_AGENTMETADATASERVICE']._serialized_end=812 + _globals['_ASYNCAGENTSERVICE']._serialized_end=1087 + _globals['_AGENTMETADATASERVICE']._serialized_start=1090 + _globals['_AGENTMETADATASERVICE']._serialized_end=1330 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py index 7d04b0cd33..8257a90ff8 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py @@ -15,6 +15,11 @@ def __init__(self, channel): Args: channel: A grpc.Channel. """ + self.ExecuteTaskSync = channel.stream_stream( + '/flyteidl.service.AsyncAgentService/ExecuteTaskSync', + request_serializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.FromString, + ) self.CreateTask = channel.unary_unary( '/flyteidl.service.AsyncAgentService/CreateTask', request_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, @@ -35,7 +40,7 @@ def __init__(self, channel): request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsRequest.SerializeToString, response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsResponse.FromString, ) - self.GetTaskLogs = channel.unary_unary( + self.GetTaskLogs = channel.unary_stream( '/flyteidl.service.AsyncAgentService/GetTaskLogs', request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsRequest.SerializeToString, response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsResponse.FromString, @@ -46,8 +51,15 @@ class AsyncAgentServiceServicer(object): """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. """ + def ExecuteTaskSync(self, request_iterator, context): + """ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def CreateTask(self, request, context): - """Send a task create request to the agent server. + """CreateTask sends a task create request to the agent service. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -88,6 +100,11 @@ def GetTaskLogs(self, request, context): def add_AsyncAgentServiceServicer_to_server(servicer, server): rpc_method_handlers = { + 'ExecuteTaskSync': grpc.stream_stream_rpc_method_handler( + servicer.ExecuteTaskSync, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.SerializeToString, + ), 'CreateTask': grpc.unary_unary_rpc_method_handler( servicer.CreateTask, request_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.FromString, @@ -108,7 +125,7 @@ def add_AsyncAgentServiceServicer_to_server(servicer, server): request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsRequest.FromString, response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskMetricsResponse.SerializeToString, ), - 'GetTaskLogs': grpc.unary_unary_rpc_method_handler( + 'GetTaskLogs': grpc.unary_stream_rpc_method_handler( servicer.GetTaskLogs, request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsRequest.FromString, response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsResponse.SerializeToString, @@ -124,6 +141,23 @@ class AsyncAgentService(object): """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. """ + @staticmethod + def ExecuteTaskSync(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/flyteidl.service.AsyncAgentService/ExecuteTaskSync', + flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + @staticmethod def CreateTask(request, target, @@ -203,7 +237,7 @@ def GetTaskLogs(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/GetTaskLogs', + return grpc.experimental.unary_stream(request, target, '/flyteidl.service.AsyncAgentService/GetTaskLogs', flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsRequest.SerializeToString, flyteidl_dot_admin_dot_agent__pb2.GetTaskLogsResponse.FromString, options, channel_credentials, diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 4f61389a42..90725a5339 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -21,6 +21,14 @@ pub struct TaskExecutionMetadata { /// Environment variables attached to the task execution #[prost(map="string, string", tag="6")] pub environment_variables: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(int32, tag="7")] + pub max_attempts: i32, + #[prost(bool, tag="8")] + pub interruptible: bool, + #[prost(int32, tag="9")] + pub interruptible_failure_threshold: i32, + #[prost(message, optional, tag="10")] + pub overrides: ::core::option::Option, } /// Represents a request structure to create task. #[allow(clippy::derive_partial_eq_without_eq)] @@ -45,22 +53,68 @@ pub struct CreateTaskRequest { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CreateTaskResponse { + /// ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="1")] + pub resource_meta: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateRequestHeader { + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + #[prost(string, tag="2")] + pub output_prefix: ::prost::alloc::string::String, + /// subset of runtime task execution metadata. + #[prost(message, optional, tag="3")] + pub task_execution_metadata: ::core::option::Option, + /// MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + #[prost(int64, tag="4")] + pub max_dataset_size_bytes: i64, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecuteTaskSyncRequest { + #[prost(oneof="execute_task_sync_request::Part", tags="1, 2")] + pub part: ::core::option::Option, +} +/// Nested message and enum types in `ExecuteTaskSyncRequest`. +pub mod execute_task_sync_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Part { + #[prost(message, tag="1")] + Header(super::CreateRequestHeader), + #[prost(message, tag="2")] + Inputs(super::super::core::LiteralMap), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecuteTaskSyncResponseHeader { + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecuteTaskSyncResponse { /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). /// Resource is for synchronous task execution. - #[prost(oneof="create_task_response::Res", tags="1, 2")] - pub res: ::core::option::Option, + #[prost(oneof="execute_task_sync_response::Res", tags="1, 2")] + pub res: ::core::option::Option, } -/// Nested message and enum types in `CreateTaskResponse`. -pub mod create_task_response { +/// Nested message and enum types in `ExecuteTaskSyncResponse`. +pub mod execute_task_sync_response { /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). /// Resource is for synchronous task execution. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Res { - #[prost(bytes, tag="1")] - ResourceMeta(::prost::alloc::vec::Vec), + #[prost(message, tag="1")] + Header(super::ExecuteTaskSyncResponseHeader), #[prost(message, tag="2")] - Resource(super::Resource), + Outputs(super::super::core::LiteralMap), } } /// A message used to fetch a job resource from flyte agent server. @@ -68,8 +122,8 @@ pub mod create_task_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTaskRequest { /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, + #[prost(message, optional, tag="1")] + pub task_type: ::core::option::Option, /// Metadata about the resource to be pass to the agent. #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -111,8 +165,8 @@ pub struct Resource { #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteTaskRequest { /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, + #[prost(message, optional, tag="1")] + pub task_type: ::core::option::Option, /// Metadata about the resource to be pass to the agent. #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -130,8 +184,18 @@ pub struct Agent { #[prost(string, tag="1")] pub name: ::prost::alloc::string::String, /// SupportedTaskTypes are the types of the tasks that the agent can handle. - #[prost(string, repeated, tag="2")] - pub supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(message, repeated, tag="2")] + pub supported_task_types: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskType { + /// The name of the task type. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The version of the task type. + #[prost(int32, tag="2")] + pub version: i32, } /// A request to get an agent. #[allow(clippy::derive_partial_eq_without_eq)] @@ -165,8 +229,8 @@ pub struct ListAgentsResponse { #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTaskMetricsRequest { /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, + #[prost(message, optional, tag="1")] + pub task_type: ::core::option::Option, /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -197,8 +261,8 @@ pub struct GetTaskMetricsResponse { #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTaskLogsRequest { /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, + #[prost(message, optional, tag="1")] + pub task_type: ::core::option::Option, /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -210,18 +274,39 @@ pub struct GetTaskLogsRequest { #[prost(string, tag="4")] pub token: ::prost::alloc::string::String, } -/// A response containing the logs for a task execution. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskLogsResponse { - /// The execution log results. - #[prost(string, repeated, tag="1")] - pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +pub struct GetTaskLogsResponseHeader { /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] + #[prost(string, tag="1")] pub token: ::prost::alloc::string::String, } +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsResponseBody { + /// The execution log results. + #[prost(string, repeated, tag="1")] + pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// A response containing the logs for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsResponse { + #[prost(oneof="get_task_logs_response::Part", tags="1, 2")] + pub part: ::core::option::Option, +} +/// Nested message and enum types in `GetTaskLogsResponse`. +pub mod get_task_logs_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Part { + #[prost(message, tag="1")] + Header(super::GetTaskLogsResponseHeader), + #[prost(message, tag="2")] + Body(super::GetTaskLogsResponseBody), + } +} /// The state of the execution is used to control its visibility in the UI/CLI. #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs index 64fb26d7d7..ac82aaeceb 100644 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -1701,6 +1701,147 @@ pub mod sql { } } } +/// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +/// Each expression results in a boolean result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ComparisonExpression { + #[prost(enumeration="comparison_expression::Operator", tag="1")] + pub operator: i32, + #[prost(message, optional, tag="2")] + pub left_value: ::core::option::Option, + #[prost(message, optional, tag="3")] + pub right_value: ::core::option::Option, +} +/// Nested message and enum types in `ComparisonExpression`. +pub mod comparison_expression { + /// Binary Operator for each expression + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Operator { + Eq = 0, + Neq = 1, + /// Greater Than + Gt = 2, + Gte = 3, + /// Less Than + Lt = 4, + Lte = 5, + } + impl Operator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Operator::Eq => "EQ", + Operator::Neq => "NEQ", + Operator::Gt => "GT", + Operator::Gte => "GTE", + Operator::Lt => "LT", + Operator::Lte => "LTE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EQ" => Some(Self::Eq), + "NEQ" => Some(Self::Neq), + "GT" => Some(Self::Gt), + "GTE" => Some(Self::Gte), + "LT" => Some(Self::Lt), + "LTE" => Some(Self::Lte), + _ => None, + } + } + } +} +/// Defines an operand to a comparison expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Operand { + #[prost(oneof="operand::Val", tags="1, 2, 3")] + pub val: ::core::option::Option, +} +/// Nested message and enum types in `Operand`. +pub mod operand { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Val { + /// Can be a constant + #[prost(message, tag="1")] + Primitive(super::Primitive), + /// Or one of this node's input variables + #[prost(string, tag="2")] + Var(::prost::alloc::string::String), + /// Replace the primitive field + #[prost(message, tag="3")] + Scalar(super::Scalar), + } +} +/// Defines a boolean expression tree. It can be a simple or a conjunction expression. +/// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BooleanExpression { + #[prost(oneof="boolean_expression::Expr", tags="1, 2")] + pub expr: ::core::option::Option, +} +/// Nested message and enum types in `BooleanExpression`. +pub mod boolean_expression { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Expr { + #[prost(message, tag="1")] + Conjunction(::prost::alloc::boxed::Box), + #[prost(message, tag="2")] + Comparison(super::ComparisonExpression), + } +} +/// Defines a conjunction expression of two boolean expressions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ConjunctionExpression { + #[prost(enumeration="conjunction_expression::LogicalOperator", tag="1")] + pub operator: i32, + #[prost(message, optional, boxed, tag="2")] + pub left_expression: ::core::option::Option<::prost::alloc::boxed::Box>, + #[prost(message, optional, boxed, tag="3")] + pub right_expression: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Nested message and enum types in `ConjunctionExpression`. +pub mod conjunction_expression { + /// Nested conditions. They can be conjoined using AND / OR + /// Order of evaluation is not important as the operators are Commutative + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum LogicalOperator { + /// Conjunction + And = 0, + Or = 1, + } + impl LogicalOperator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LogicalOperator::And => "AND", + LogicalOperator::Or => "OR", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "AND" => Some(Self::And), + "OR" => Some(Self::Or), + _ => None, + } + } + } +} /// Indicates various phases of Workflow Execution #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -2030,199 +2171,6 @@ pub mod quality_of_service { Spec(super::QualityOfServiceSpec), } } -/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation -/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more -/// precise definitions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Span { - /// start_time defines the instance this span began. - #[prost(message, optional, tag="1")] - pub start_time: ::core::option::Option<::prost_types::Timestamp>, - /// end_time defines the instance this span completed. - #[prost(message, optional, tag="2")] - pub end_time: ::core::option::Option<::prost_types::Timestamp>, - /// spans defines a collection of Spans that breakdown this execution. - #[prost(message, repeated, tag="7")] - pub spans: ::prost::alloc::vec::Vec, - #[prost(oneof="span::Id", tags="3, 4, 5, 6")] - pub id: ::core::option::Option, -} -/// Nested message and enum types in `Span`. -pub mod span { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Id { - /// workflow_id is the id of the workflow execution this Span represents. - #[prost(message, tag="3")] - WorkflowId(super::WorkflowExecutionIdentifier), - /// node_id is the id of the node execution this Span represents. - #[prost(message, tag="4")] - NodeId(super::NodeExecutionIdentifier), - /// task_id is the id of the task execution this Span represents. - #[prost(message, tag="5")] - TaskId(super::TaskExecutionIdentifier), - /// operation_id is the id of a unique operation that this Span represents. - #[prost(string, tag="6")] - OperationId(::prost::alloc::string::String), - } -} -/// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionMetricResult { - /// The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. - #[prost(string, tag="1")] - pub metric: ::prost::alloc::string::String, - /// The result data in prometheus range query result format - /// - /// This may include multiple time series, differentiated by their metric labels. - /// Start time is greater of (execution attempt start, 48h ago) - /// End time is lesser of (execution attempt end, now) - #[prost(message, optional, tag="2")] - pub data: ::core::option::Option<::prost_types::Struct>, -} -/// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. -/// Each expression results in a boolean result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ComparisonExpression { - #[prost(enumeration="comparison_expression::Operator", tag="1")] - pub operator: i32, - #[prost(message, optional, tag="2")] - pub left_value: ::core::option::Option, - #[prost(message, optional, tag="3")] - pub right_value: ::core::option::Option, -} -/// Nested message and enum types in `ComparisonExpression`. -pub mod comparison_expression { - /// Binary Operator for each expression - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Operator { - Eq = 0, - Neq = 1, - /// Greater Than - Gt = 2, - Gte = 3, - /// Less Than - Lt = 4, - Lte = 5, - } - impl Operator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Operator::Eq => "EQ", - Operator::Neq => "NEQ", - Operator::Gt => "GT", - Operator::Gte => "GTE", - Operator::Lt => "LT", - Operator::Lte => "LTE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EQ" => Some(Self::Eq), - "NEQ" => Some(Self::Neq), - "GT" => Some(Self::Gt), - "GTE" => Some(Self::Gte), - "LT" => Some(Self::Lt), - "LTE" => Some(Self::Lte), - _ => None, - } - } - } -} -/// Defines an operand to a comparison expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Operand { - #[prost(oneof="operand::Val", tags="1, 2, 3")] - pub val: ::core::option::Option, -} -/// Nested message and enum types in `Operand`. -pub mod operand { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Val { - /// Can be a constant - #[prost(message, tag="1")] - Primitive(super::Primitive), - /// Or one of this node's input variables - #[prost(string, tag="2")] - Var(::prost::alloc::string::String), - /// Replace the primitive field - #[prost(message, tag="3")] - Scalar(super::Scalar), - } -} -/// Defines a boolean expression tree. It can be a simple or a conjunction expression. -/// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BooleanExpression { - #[prost(oneof="boolean_expression::Expr", tags="1, 2")] - pub expr: ::core::option::Option, -} -/// Nested message and enum types in `BooleanExpression`. -pub mod boolean_expression { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Expr { - #[prost(message, tag="1")] - Conjunction(::prost::alloc::boxed::Box), - #[prost(message, tag="2")] - Comparison(super::ComparisonExpression), - } -} -/// Defines a conjunction expression of two boolean expressions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ConjunctionExpression { - #[prost(enumeration="conjunction_expression::LogicalOperator", tag="1")] - pub operator: i32, - #[prost(message, optional, boxed, tag="2")] - pub left_expression: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(message, optional, boxed, tag="3")] - pub right_expression: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Nested message and enum types in `ConjunctionExpression`. -pub mod conjunction_expression { - /// Nested conditions. They can be conjoined using AND / OR - /// Order of evaluation is not important as the operators are Commutative - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum LogicalOperator { - /// Conjunction - And = 0, - Or = 1, - } - impl LogicalOperator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LogicalOperator::And => "AND", - LogicalOperator::Or => "OR", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "AND" => Some(Self::And), - "OR" => Some(Self::Or), - _ => None, - } - } - } -} /// Defines a condition and the execution unit that should be executed if the condition is satisfied. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -2603,6 +2551,58 @@ pub struct TaskNodeOverrides { #[prost(message, optional, tag="2")] pub extended_resources: ::core::option::Option, } +/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +/// precise definitions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Span { + /// start_time defines the instance this span began. + #[prost(message, optional, tag="1")] + pub start_time: ::core::option::Option<::prost_types::Timestamp>, + /// end_time defines the instance this span completed. + #[prost(message, optional, tag="2")] + pub end_time: ::core::option::Option<::prost_types::Timestamp>, + /// spans defines a collection of Spans that breakdown this execution. + #[prost(message, repeated, tag="7")] + pub spans: ::prost::alloc::vec::Vec, + #[prost(oneof="span::Id", tags="3, 4, 5, 6")] + pub id: ::core::option::Option, +} +/// Nested message and enum types in `Span`. +pub mod span { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Id { + /// workflow_id is the id of the workflow execution this Span represents. + #[prost(message, tag="3")] + WorkflowId(super::WorkflowExecutionIdentifier), + /// node_id is the id of the node execution this Span represents. + #[prost(message, tag="4")] + NodeId(super::NodeExecutionIdentifier), + /// task_id is the id of the task execution this Span represents. + #[prost(message, tag="5")] + TaskId(super::TaskExecutionIdentifier), + /// operation_id is the id of a unique operation that this Span represents. + #[prost(string, tag="6")] + OperationId(::prost::alloc::string::String), + } +} +/// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionMetricResult { + /// The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + #[prost(string, tag="1")] + pub metric: ::prost::alloc::string::String, + /// The result data in prometheus range query result format + /// + /// This may include multiple time series, differentiated by their metric labels. + /// Start time is greater of (execution attempt start, 48h ago) + /// End time is lesser of (execution attempt end, now) + #[prost(message, optional, tag="2")] + pub data: ::core::option::Option<::prost_types::Struct>, +} /// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation /// step uses this created ConnectionSet #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index 2a9db3b11e..0545fae932 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -17,7 +17,7 @@ service AsyncAgentService { }; // CreateTask sends a task create request to the agent service. - rpc CreateTask (stream flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){ + rpc CreateTask (flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){ option (google.api.http) = { post: "/api/v1/agent/task" body: "*" @@ -25,7 +25,7 @@ service AsyncAgentService { }; // Get job status. - rpc GetTask (flyteidl.admin.GetTaskRequest) returns (stream flyteidl.admin.GetTaskResponse){ + rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){ option (google.api.http) = { get: "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}" }; From a45de3b083556c066fca6a6d06d65c8de8cf700d Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 7 Feb 2024 22:20:49 -0800 Subject: [PATCH 06/35] wip Signed-off-by: Kevin Su --- flyteidl/protos/flyteidl/admin/agent.proto | 7 +++ .../go/tasks/plugins/webapi/agent/plugin.go | 45 +++++++++---------- 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 07360af1ab..2ace924118 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -142,6 +142,13 @@ message Agent { // SupportedTaskTypes are the types of the tasks that the agent can handle. repeated TaskType supported_task_types = 2; + + // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + // results synchronously when called by propeller. Given that sync agents can affect the performance + // of the system, it's important to enforce strict timeout policies. + // An Async agent, on the other hand, is required to be able to identify jobs by an + // identifier and query for job statuses as jobs progress. + bool is_sync = 3; } message TaskType { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 13115f89b4..00f9a47633 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -29,8 +29,9 @@ type Plugin struct { } type ResourceWrapper struct { - Phase flyteIdl.TaskExecution_Phase - State admin.State // This is deprecated. + Phase flyteIdl.TaskExecution_Phase + // Deprecated: Please Use Phase instead. + State admin.State Outputs *flyteIdl.LiteralMap Message string LogLinks []*flyteIdl.TaskLog @@ -84,9 +85,9 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR agent := getFinalAgent(taskTemplate.Type, p.cfg, p.agentRegistry) - client := p.cs.agentClients[agent.Endpoint] - if client == nil { - return nil, nil, fmt.Errorf("default agent is not connected, please check if endpoint:[%v] is up and running", agent.Endpoint) + client, ok := p.cs.agentClients[agent.Endpoint] + if !ok { + return nil, nil, fmt.Errorf("endpoint [%s] not found in the client set", agent.Endpoint) } finalCtx, cancel := getFinalContext(ctx, "CreateTask", agent) @@ -103,21 +104,6 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR taskTemplate.GetContainer().Args = argTemplate } - // If the agent returned a resource, we assume this is a synchronous task. - // The state should be a terminal state, for example, SUCCEEDED, PERMANENT_FAILURE, or RETRYABLE_FAILURE. - if res.GetResource() != nil { - logger.Infof(ctx, "Agent is executing a synchronous task.") - return nil, - ResourceWrapper{ - Phase: res.GetResource().Phase, - State: res.GetResource().State, - Outputs: res.GetResource().Outputs, - Message: res.GetResource().Message, - LogLinks: res.GetResource().LogLinks, - }, nil - } - - logger.Infof(ctx, "Agent is executing an asynchronous task.") return ResourceMetaWrapper{ OutputPrefix: outputPrefix, AgentResourceMeta: res.GetResourceMeta(), @@ -131,10 +117,15 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba agent := getFinalAgent(metadata.TaskType, p.cfg, p.agentRegistry) client := p.cs.agentClients[agent.Endpoint] + client, ok := p.cs.agentClients[agent.Endpoint] + if !ok { + return nil, fmt.Errorf("endpoint [%s] not found in the client set", agent.Endpoint) + } finalCtx, cancel := getFinalContext(ctx, "GetTask", agent) defer cancel() - res, err := client.GetTask(finalCtx, &admin.GetTaskRequest{TaskType: metadata.TaskType, ResourceMeta: metadata.AgentResourceMeta}) + taskType := &admin.TaskType{Name: metadata.TaskType} + res, err := client.GetTask(finalCtx, &admin.GetTaskRequest{TaskType: taskType, ResourceMeta: metadata.AgentResourceMeta}) if err != nil { return nil, err } @@ -155,11 +146,15 @@ func (p Plugin) Delete(ctx context.Context, taskCtx webapi.DeleteContext) error metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) agent := getFinalAgent(metadata.TaskType, p.cfg, p.agentRegistry) - client := p.cs.agentClients[agent.Endpoint] + client, ok := p.cs.agentClients[agent.Endpoint] + if !ok { + return fmt.Errorf("endpoint [%s] not found in the client set", agent.Endpoint) + } finalCtx, cancel := getFinalContext(ctx, "DeleteTask", agent) defer cancel() - _, err := client.DeleteTask(finalCtx, &admin.DeleteTaskRequest{TaskType: metadata.TaskType, ResourceMeta: metadata.AgentResourceMeta}) + taskType := &admin.TaskType{Name: metadata.TaskType} + _, err := client.DeleteTask(finalCtx, &admin.DeleteTaskRequest{TaskType: taskType, ResourceMeta: metadata.AgentResourceMeta}) return err } @@ -215,6 +210,10 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase return core.PhaseInfoUndefined, pluginErrors.Errorf(core.SystemErrorCode, "unknown execution state [%v].", resource.State) } +func (p Plugin) Do(ctx context.Context, tCtx webapi.TaskExecutionContext) (phase core.PhaseInfo, err error) { + return core.PhaseInfo{}, nil +} + func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, resource ResourceWrapper) error { taskTemplate, err := taskCtx.TaskReader().Read(ctx) if err != nil { From 7803f8ba06f8e4b37a5576137084314cd5103d85 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Thu, 8 Feb 2024 17:00:09 -0800 Subject: [PATCH 07/35] Update task type Signed-off-by: Kevin Su --- .../go/admin/mocks/AsyncAgentServiceClient.go | 48 --- .../go/admin/mocks/AsyncAgentServiceServer.go | 32 -- .../go/admin/mocks/SyncAgentServiceClient.go | 66 ++++ .../go/admin/mocks/SyncAgentServiceServer.go | 45 +++ .../SyncAgentService_ExecuteTaskSyncClient.go | 296 ++++++++++++++++++ .../SyncAgentService_ExecuteTaskSyncServer.go | 258 +++++++++++++++ .../mocks/UnsafeSyncAgentServiceServer.go | 15 + flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 12 + .../pb-es/flyteidl/service/agent_connect.ts | 21 +- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 198 ++++++------ .../gen/pb-go/flyteidl/service/agent.pb.go | 182 +++++------ .../pb-go/flyteidl/service/agent_grpc.pb.go | 193 +++++++----- .../gateway/flyteidl/service/agent.pb.gw.go | 104 ++++-- .../flyteidl/service/agent.swagger.json | 11 +- flyteidl/gen/pb-js/flyteidl.d.ts | 56 +++- flyteidl/gen/pb-js/flyteidl.js | 82 ++++- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 54 ++-- .../pb_python/flyteidl/admin/agent_pb2.pyi | 6 +- .../pb_python/flyteidl/service/agent_pb2.py | 16 +- .../flyteidl/service/agent_pb2_grpc.py | 99 ++++-- flyteidl/gen/pb_rust/flyteidl.admin.rs | 7 + flyteidl/protos/flyteidl/service/agent.proto | 7 +- .../go/tasks/plugins/webapi/agent/client.go | 14 +- .../go/tasks/plugins/webapi/agent/config.go | 7 + .../plugins/webapi/agent/integration_test.go | 22 +- .../agent/mocks/AgentMetadataServiceClient.go | 114 ------- .../agent/mocks/AsyncAgentServiceClient.go | 258 --------------- .../go/tasks/plugins/webapi/agent/plugin.go | 80 +++-- .../tasks/plugins/webapi/agent/plugin_test.go | 21 +- 29 files changed, 1430 insertions(+), 894 deletions(-) create mode 100644 flyteidl/clients/go/admin/mocks/SyncAgentServiceClient.go create mode 100644 flyteidl/clients/go/admin/mocks/SyncAgentServiceServer.go create mode 100644 flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncClient.go create mode 100644 flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncServer.go create mode 100644 flyteidl/clients/go/admin/mocks/UnsafeSyncAgentServiceServer.go delete mode 100644 flyteplugins/go/tasks/plugins/webapi/agent/mocks/AgentMetadataServiceClient.go delete mode 100644 flyteplugins/go/tasks/plugins/webapi/agent/mocks/AsyncAgentServiceClient.go diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go index 2eb8c79639..0103e3f293 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go @@ -115,54 +115,6 @@ func (_m *AsyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.Del return r0, r1 } -type AsyncAgentServiceClient_ExecuteTaskSync struct { - *mock.Call -} - -func (_m AsyncAgentServiceClient_ExecuteTaskSync) Return(_a0 service.AsyncAgentService_ExecuteTaskSyncClient, _a1 error) *AsyncAgentServiceClient_ExecuteTaskSync { - return &AsyncAgentServiceClient_ExecuteTaskSync{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AsyncAgentServiceClient) OnExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) *AsyncAgentServiceClient_ExecuteTaskSync { - c_call := _m.On("ExecuteTaskSync", ctx, opts) - return &AsyncAgentServiceClient_ExecuteTaskSync{Call: c_call} -} - -func (_m *AsyncAgentServiceClient) OnExecuteTaskSyncMatch(matchers ...interface{}) *AsyncAgentServiceClient_ExecuteTaskSync { - c_call := _m.On("ExecuteTaskSync", matchers...) - return &AsyncAgentServiceClient_ExecuteTaskSync{Call: c_call} -} - -// ExecuteTaskSync provides a mock function with given fields: ctx, opts -func (_m *AsyncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (service.AsyncAgentService_ExecuteTaskSyncClient, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 service.AsyncAgentService_ExecuteTaskSyncClient - if rf, ok := ret.Get(0).(func(context.Context, ...grpc.CallOption) service.AsyncAgentService_ExecuteTaskSyncClient); ok { - r0 = rf(ctx, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(service.AsyncAgentService_ExecuteTaskSyncClient) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, ...grpc.CallOption) error); ok { - r1 = rf(ctx, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - type AsyncAgentServiceClient_GetTask struct { *mock.Call } diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go index 7f3397fa5e..76b618f791 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go @@ -99,38 +99,6 @@ func (_m *AsyncAgentServiceServer) DeleteTask(_a0 context.Context, _a1 *admin.De return r0, r1 } -type AsyncAgentServiceServer_ExecuteTaskSync struct { - *mock.Call -} - -func (_m AsyncAgentServiceServer_ExecuteTaskSync) Return(_a0 error) *AsyncAgentServiceServer_ExecuteTaskSync { - return &AsyncAgentServiceServer_ExecuteTaskSync{Call: _m.Call.Return(_a0)} -} - -func (_m *AsyncAgentServiceServer) OnExecuteTaskSync(_a0 service.AsyncAgentService_ExecuteTaskSyncServer) *AsyncAgentServiceServer_ExecuteTaskSync { - c_call := _m.On("ExecuteTaskSync", _a0) - return &AsyncAgentServiceServer_ExecuteTaskSync{Call: c_call} -} - -func (_m *AsyncAgentServiceServer) OnExecuteTaskSyncMatch(matchers ...interface{}) *AsyncAgentServiceServer_ExecuteTaskSync { - c_call := _m.On("ExecuteTaskSync", matchers...) - return &AsyncAgentServiceServer_ExecuteTaskSync{Call: c_call} -} - -// ExecuteTaskSync provides a mock function with given fields: _a0 -func (_m *AsyncAgentServiceServer) ExecuteTaskSync(_a0 service.AsyncAgentService_ExecuteTaskSyncServer) error { - ret := _m.Called(_a0) - - var r0 error - if rf, ok := ret.Get(0).(func(service.AsyncAgentService_ExecuteTaskSyncServer) error); ok { - r0 = rf(_a0) - } else { - r0 = ret.Error(0) - } - - return r0 -} - type AsyncAgentServiceServer_GetTask struct { *mock.Call } diff --git a/flyteidl/clients/go/admin/mocks/SyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/SyncAgentServiceClient.go new file mode 100644 index 0000000000..6faf4c2ad9 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/SyncAgentServiceClient.go @@ -0,0 +1,66 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + grpc "google.golang.org/grpc" + + mock "github.com/stretchr/testify/mock" + + service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" +) + +// SyncAgentServiceClient is an autogenerated mock type for the SyncAgentServiceClient type +type SyncAgentServiceClient struct { + mock.Mock +} + +type SyncAgentServiceClient_ExecuteTaskSync struct { + *mock.Call +} + +func (_m SyncAgentServiceClient_ExecuteTaskSync) Return(_a0 service.SyncAgentService_ExecuteTaskSyncClient, _a1 error) *SyncAgentServiceClient_ExecuteTaskSync { + return &SyncAgentServiceClient_ExecuteTaskSync{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SyncAgentServiceClient) OnExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) *SyncAgentServiceClient_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", ctx, opts) + return &SyncAgentServiceClient_ExecuteTaskSync{Call: c_call} +} + +func (_m *SyncAgentServiceClient) OnExecuteTaskSyncMatch(matchers ...interface{}) *SyncAgentServiceClient_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", matchers...) + return &SyncAgentServiceClient_ExecuteTaskSync{Call: c_call} +} + +// ExecuteTaskSync provides a mock function with given fields: ctx, opts +func (_m *SyncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (service.SyncAgentService_ExecuteTaskSyncClient, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 service.SyncAgentService_ExecuteTaskSyncClient + if rf, ok := ret.Get(0).(func(context.Context, ...grpc.CallOption) service.SyncAgentService_ExecuteTaskSyncClient); ok { + r0 = rf(ctx, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(service.SyncAgentService_ExecuteTaskSyncClient) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, ...grpc.CallOption) error); ok { + r1 = rf(ctx, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/SyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/SyncAgentServiceServer.go new file mode 100644 index 0000000000..ee7b4a78e6 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/SyncAgentServiceServer.go @@ -0,0 +1,45 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + mock "github.com/stretchr/testify/mock" +) + +// SyncAgentServiceServer is an autogenerated mock type for the SyncAgentServiceServer type +type SyncAgentServiceServer struct { + mock.Mock +} + +type SyncAgentServiceServer_ExecuteTaskSync struct { + *mock.Call +} + +func (_m SyncAgentServiceServer_ExecuteTaskSync) Return(_a0 error) *SyncAgentServiceServer_ExecuteTaskSync { + return &SyncAgentServiceServer_ExecuteTaskSync{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentServiceServer) OnExecuteTaskSync(_a0 service.SyncAgentService_ExecuteTaskSyncServer) *SyncAgentServiceServer_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", _a0) + return &SyncAgentServiceServer_ExecuteTaskSync{Call: c_call} +} + +func (_m *SyncAgentServiceServer) OnExecuteTaskSyncMatch(matchers ...interface{}) *SyncAgentServiceServer_ExecuteTaskSync { + c_call := _m.On("ExecuteTaskSync", matchers...) + return &SyncAgentServiceServer_ExecuteTaskSync{Call: c_call} +} + +// ExecuteTaskSync provides a mock function with given fields: _a0 +func (_m *SyncAgentServiceServer) ExecuteTaskSync(_a0 service.SyncAgentService_ExecuteTaskSyncServer) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(service.SyncAgentService_ExecuteTaskSyncServer) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncClient.go b/flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncClient.go new file mode 100644 index 0000000000..c88068293f --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncClient.go @@ -0,0 +1,296 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// SyncAgentService_ExecuteTaskSyncClient is an autogenerated mock type for the SyncAgentService_ExecuteTaskSyncClient type +type SyncAgentService_ExecuteTaskSyncClient struct { + mock.Mock +} + +type SyncAgentService_ExecuteTaskSyncClient_CloseSend struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_CloseSend) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncClient_CloseSend { + return &SyncAgentService_ExecuteTaskSyncClient_CloseSend{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnCloseSend() *SyncAgentService_ExecuteTaskSyncClient_CloseSend { + c_call := _m.On("CloseSend") + return &SyncAgentService_ExecuteTaskSyncClient_CloseSend{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnCloseSendMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_CloseSend { + c_call := _m.On("CloseSend", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_CloseSend{Call: c_call} +} + +// CloseSend provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncClient) CloseSend() error { + ret := _m.Called() + + var r0 error + if rf, ok := ret.Get(0).(func() error); ok { + r0 = rf() + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncClient_Context struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_Context) Return(_a0 context.Context) *SyncAgentService_ExecuteTaskSyncClient_Context { + return &SyncAgentService_ExecuteTaskSyncClient_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnContext() *SyncAgentService_ExecuteTaskSyncClient_Context { + c_call := _m.On("Context") + return &SyncAgentService_ExecuteTaskSyncClient_Context{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnContextMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_Context { + c_call := _m.On("Context", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncClient) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncClient_Header struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_Header) Return(_a0 metadata.MD, _a1 error) *SyncAgentService_ExecuteTaskSyncClient_Header { + return &SyncAgentService_ExecuteTaskSyncClient_Header{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnHeader() *SyncAgentService_ExecuteTaskSyncClient_Header { + c_call := _m.On("Header") + return &SyncAgentService_ExecuteTaskSyncClient_Header{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnHeaderMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_Header { + c_call := _m.On("Header", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_Header{Call: c_call} +} + +// Header provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncClient) Header() (metadata.MD, error) { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SyncAgentService_ExecuteTaskSyncClient_Recv struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_Recv) Return(_a0 *admin.ExecuteTaskSyncResponse, _a1 error) *SyncAgentService_ExecuteTaskSyncClient_Recv { + return &SyncAgentService_ExecuteTaskSyncClient_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnRecv() *SyncAgentService_ExecuteTaskSyncClient_Recv { + c_call := _m.On("Recv") + return &SyncAgentService_ExecuteTaskSyncClient_Recv{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnRecvMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_Recv { + c_call := _m.On("Recv", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { + ret := _m.Called() + + var r0 *admin.ExecuteTaskSyncResponse + if rf, ok := ret.Get(0).(func() *admin.ExecuteTaskSyncResponse); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecuteTaskSyncResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SyncAgentService_ExecuteTaskSyncClient_RecvMsg struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_RecvMsg) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncClient_RecvMsg { + return &SyncAgentService_ExecuteTaskSyncClient_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnRecvMsg(m interface{}) *SyncAgentService_ExecuteTaskSyncClient_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &SyncAgentService_ExecuteTaskSyncClient_RecvMsg{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnRecvMsgMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *SyncAgentService_ExecuteTaskSyncClient) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncClient_Send struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_Send) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncClient_Send { + return &SyncAgentService_ExecuteTaskSyncClient_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnSend(_a0 *admin.ExecuteTaskSyncRequest) *SyncAgentService_ExecuteTaskSyncClient_Send { + c_call := _m.On("Send", _a0) + return &SyncAgentService_ExecuteTaskSyncClient_Send{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnSendMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_Send { + c_call := _m.On("Send", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *SyncAgentService_ExecuteTaskSyncClient) Send(_a0 *admin.ExecuteTaskSyncRequest) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.ExecuteTaskSyncRequest) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncClient_SendMsg struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_SendMsg) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncClient_SendMsg { + return &SyncAgentService_ExecuteTaskSyncClient_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnSendMsg(m interface{}) *SyncAgentService_ExecuteTaskSyncClient_SendMsg { + c_call := _m.On("SendMsg", m) + return &SyncAgentService_ExecuteTaskSyncClient_SendMsg{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnSendMsgMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *SyncAgentService_ExecuteTaskSyncClient) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncClient_Trailer struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncClient_Trailer) Return(_a0 metadata.MD) *SyncAgentService_ExecuteTaskSyncClient_Trailer { + return &SyncAgentService_ExecuteTaskSyncClient_Trailer{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnTrailer() *SyncAgentService_ExecuteTaskSyncClient_Trailer { + c_call := _m.On("Trailer") + return &SyncAgentService_ExecuteTaskSyncClient_Trailer{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncClient) OnTrailerMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncClient_Trailer { + c_call := _m.On("Trailer", matchers...) + return &SyncAgentService_ExecuteTaskSyncClient_Trailer{Call: c_call} +} + +// Trailer provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncClient) Trailer() metadata.MD { + ret := _m.Called() + + var r0 metadata.MD + if rf, ok := ret.Get(0).(func() metadata.MD); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(metadata.MD) + } + } + + return r0 +} diff --git a/flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncServer.go b/flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncServer.go new file mode 100644 index 0000000000..de1579d7a8 --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/SyncAgentService_ExecuteTaskSyncServer.go @@ -0,0 +1,258 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import ( + context "context" + + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + + metadata "google.golang.org/grpc/metadata" + + mock "github.com/stretchr/testify/mock" +) + +// SyncAgentService_ExecuteTaskSyncServer is an autogenerated mock type for the SyncAgentService_ExecuteTaskSyncServer type +type SyncAgentService_ExecuteTaskSyncServer struct { + mock.Mock +} + +type SyncAgentService_ExecuteTaskSyncServer_Context struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_Context) Return(_a0 context.Context) *SyncAgentService_ExecuteTaskSyncServer_Context { + return &SyncAgentService_ExecuteTaskSyncServer_Context{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnContext() *SyncAgentService_ExecuteTaskSyncServer_Context { + c_call := _m.On("Context") + return &SyncAgentService_ExecuteTaskSyncServer_Context{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnContextMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_Context { + c_call := _m.On("Context", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_Context{Call: c_call} +} + +// Context provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncServer) Context() context.Context { + ret := _m.Called() + + var r0 context.Context + if rf, ok := ret.Get(0).(func() context.Context); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(context.Context) + } + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncServer_Recv struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_Recv) Return(_a0 *admin.ExecuteTaskSyncRequest, _a1 error) *SyncAgentService_ExecuteTaskSyncServer_Recv { + return &SyncAgentService_ExecuteTaskSyncServer_Recv{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnRecv() *SyncAgentService_ExecuteTaskSyncServer_Recv { + c_call := _m.On("Recv") + return &SyncAgentService_ExecuteTaskSyncServer_Recv{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnRecvMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_Recv { + c_call := _m.On("Recv", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_Recv{Call: c_call} +} + +// Recv provides a mock function with given fields: +func (_m *SyncAgentService_ExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { + ret := _m.Called() + + var r0 *admin.ExecuteTaskSyncRequest + if rf, ok := ret.Get(0).(func() *admin.ExecuteTaskSyncRequest); ok { + r0 = rf() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.ExecuteTaskSyncRequest) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func() error); ok { + r1 = rf() + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type SyncAgentService_ExecuteTaskSyncServer_RecvMsg struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_RecvMsg) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncServer_RecvMsg { + return &SyncAgentService_ExecuteTaskSyncServer_RecvMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnRecvMsg(m interface{}) *SyncAgentService_ExecuteTaskSyncServer_RecvMsg { + c_call := _m.On("RecvMsg", m) + return &SyncAgentService_ExecuteTaskSyncServer_RecvMsg{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnRecvMsgMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_RecvMsg { + c_call := _m.On("RecvMsg", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_RecvMsg{Call: c_call} +} + +// RecvMsg provides a mock function with given fields: m +func (_m *SyncAgentService_ExecuteTaskSyncServer) RecvMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncServer_Send struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_Send) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncServer_Send { + return &SyncAgentService_ExecuteTaskSyncServer_Send{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSend(_a0 *admin.ExecuteTaskSyncResponse) *SyncAgentService_ExecuteTaskSyncServer_Send { + c_call := _m.On("Send", _a0) + return &SyncAgentService_ExecuteTaskSyncServer_Send{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSendMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_Send { + c_call := _m.On("Send", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_Send{Call: c_call} +} + +// Send provides a mock function with given fields: _a0 +func (_m *SyncAgentService_ExecuteTaskSyncServer) Send(_a0 *admin.ExecuteTaskSyncResponse) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(*admin.ExecuteTaskSyncResponse) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncServer_SendHeader struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_SendHeader) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncServer_SendHeader { + return &SyncAgentService_ExecuteTaskSyncServer_SendHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSendHeader(_a0 metadata.MD) *SyncAgentService_ExecuteTaskSyncServer_SendHeader { + c_call := _m.On("SendHeader", _a0) + return &SyncAgentService_ExecuteTaskSyncServer_SendHeader{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSendHeaderMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_SendHeader { + c_call := _m.On("SendHeader", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_SendHeader{Call: c_call} +} + +// SendHeader provides a mock function with given fields: _a0 +func (_m *SyncAgentService_ExecuteTaskSyncServer) SendHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncServer_SendMsg struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_SendMsg) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncServer_SendMsg { + return &SyncAgentService_ExecuteTaskSyncServer_SendMsg{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSendMsg(m interface{}) *SyncAgentService_ExecuteTaskSyncServer_SendMsg { + c_call := _m.On("SendMsg", m) + return &SyncAgentService_ExecuteTaskSyncServer_SendMsg{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSendMsgMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_SendMsg { + c_call := _m.On("SendMsg", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_SendMsg{Call: c_call} +} + +// SendMsg provides a mock function with given fields: m +func (_m *SyncAgentService_ExecuteTaskSyncServer) SendMsg(m interface{}) error { + ret := _m.Called(m) + + var r0 error + if rf, ok := ret.Get(0).(func(interface{}) error); ok { + r0 = rf(m) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +type SyncAgentService_ExecuteTaskSyncServer_SetHeader struct { + *mock.Call +} + +func (_m SyncAgentService_ExecuteTaskSyncServer_SetHeader) Return(_a0 error) *SyncAgentService_ExecuteTaskSyncServer_SetHeader { + return &SyncAgentService_ExecuteTaskSyncServer_SetHeader{Call: _m.Call.Return(_a0)} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSetHeader(_a0 metadata.MD) *SyncAgentService_ExecuteTaskSyncServer_SetHeader { + c_call := _m.On("SetHeader", _a0) + return &SyncAgentService_ExecuteTaskSyncServer_SetHeader{Call: c_call} +} + +func (_m *SyncAgentService_ExecuteTaskSyncServer) OnSetHeaderMatch(matchers ...interface{}) *SyncAgentService_ExecuteTaskSyncServer_SetHeader { + c_call := _m.On("SetHeader", matchers...) + return &SyncAgentService_ExecuteTaskSyncServer_SetHeader{Call: c_call} +} + +// SetHeader provides a mock function with given fields: _a0 +func (_m *SyncAgentService_ExecuteTaskSyncServer) SetHeader(_a0 metadata.MD) error { + ret := _m.Called(_a0) + + var r0 error + if rf, ok := ret.Get(0).(func(metadata.MD) error); ok { + r0 = rf(_a0) + } else { + r0 = ret.Error(0) + } + + return r0 +} + +// SetTrailer provides a mock function with given fields: _a0 +func (_m *SyncAgentService_ExecuteTaskSyncServer) SetTrailer(_a0 metadata.MD) { + _m.Called(_a0) +} diff --git a/flyteidl/clients/go/admin/mocks/UnsafeSyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/UnsafeSyncAgentServiceServer.go new file mode 100644 index 0000000000..c4f4b4099c --- /dev/null +++ b/flyteidl/clients/go/admin/mocks/UnsafeSyncAgentServiceServer.go @@ -0,0 +1,15 @@ +// Code generated by mockery v1.0.1. DO NOT EDIT. + +package mocks + +import mock "github.com/stretchr/testify/mock" + +// UnsafeSyncAgentServiceServer is an autogenerated mock type for the UnsafeSyncAgentServiceServer type +type UnsafeSyncAgentServiceServer struct { + mock.Mock +} + +// mustEmbedUnimplementedSyncAgentServiceServer provides a mock function with given fields: +func (_m *UnsafeSyncAgentServiceServer) mustEmbedUnimplementedSyncAgentServiceServer() { + _m.Called() +} diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index e0e06096fb..729b13e4ae 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -740,6 +740,17 @@ export class Agent extends Message { */ supportedTaskTypes: TaskType[] = []; + /** + * IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + * results synchronously when called by propeller. Given that sync agents can affect the performance + * of the system, it's important to enforce strict timeout policies. + * An Async agent, on the other hand, is required to be able to identify jobs by an + * identifier and query for job statuses as jobs progress. + * + * @generated from field: bool is_sync = 3; + */ + isSync = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -750,6 +761,7 @@ export class Agent extends Message { static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, + { no: 3, name: "is_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Agent { diff --git a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts index 37b536b8f5..33eb50a044 100644 --- a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts +++ b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts @@ -7,17 +7,17 @@ import { CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskRes import { MethodKind } from "@bufbuild/protobuf"; /** - * AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. + * AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. * - * @generated from service flyteidl.service.AsyncAgentService + * @generated from service flyteidl.service.SyncAgentService */ -export const AsyncAgentService = { - typeName: "flyteidl.service.AsyncAgentService", +export const SyncAgentService = { + typeName: "flyteidl.service.SyncAgentService", methods: { /** * ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. * - * @generated from rpc flyteidl.service.AsyncAgentService.ExecuteTaskSync + * @generated from rpc flyteidl.service.SyncAgentService.ExecuteTaskSync */ executeTaskSync: { name: "ExecuteTaskSync", @@ -25,6 +25,17 @@ export const AsyncAgentService = { O: ExecuteTaskSyncResponse, kind: MethodKind.BiDiStreaming, }, + } +} as const; + +/** + * AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. + * + * @generated from service flyteidl.service.AsyncAgentService + */ +export const AsyncAgentService = { + typeName: "flyteidl.service.AsyncAgentService", + methods: { /** * CreateTask sends a task create request to the agent service. * diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index 0badb46537..ad440d373c 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -930,6 +930,12 @@ type Agent struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // SupportedTaskTypes are the types of the tasks that the agent can handle. SupportedTaskTypes []*TaskType `protobuf:"bytes,2,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` + // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + // results synchronously when called by propeller. Given that sync agents can affect the performance + // of the system, it's important to enforce strict timeout policies. + // An Async agent, on the other hand, is required to be able to identify jobs by an + // identifier and query for job statuses as jobs progress. + IsSync bool `protobuf:"varint,3,opt,name=is_sync,json=isSync,proto3" json:"is_sync,omitempty"` } func (x *Agent) Reset() { @@ -978,6 +984,13 @@ func (x *Agent) GetSupportedTaskTypes() []*TaskType { return nil } +func (x *Agent) GetIsSync() bool { + if x != nil { + return x.IsSync + } + return false +} + type TaskType struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1795,99 +1808,100 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, - 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, - 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, - 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, - 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, - 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, - 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, - 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, - 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, - 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, - 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, + 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, + 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, + 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, + 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, + 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, - 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, - 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, - 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, - 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, - 0x72, 0x74, 0x2a, 0x5e, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, - 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, - 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, - 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, - 0x10, 0x04, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, - 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x5e, 0x0a, 0x05, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, + 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, + 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x42, 0xb6, 0x01, 0x0a, + 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, + 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go index 257c8254a9..a95e0f58e1 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -30,96 +30,98 @@ var file_flyteidl_service_agent_proto_rawDesc = []byte{ 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xd2, 0x07, 0x0a, 0x11, 0x41, - 0x73, 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x53, 0x79, 0x6e, 0x63, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, - 0x22, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x12, - 0x72, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x01, 0x2a, 0x22, - 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, - 0x61, 0x73, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, - 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x7b, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x2a, - 0x52, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xa1, 0x01, 0x0a, 0x10, 0x53, + 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x8c, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, + 0x79, 0x6e, 0x63, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, + 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x32, 0xc3, + 0x06, 0x0a, 0x11, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x17, 0x3a, 0x01, 0x2a, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, + 0x6b, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, + 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x54, 0x2a, 0x52, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, - 0x6b, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xae, - 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x22, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x12, - 0x4c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, - 0x61, 0x73, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x30, 0x01, 0x32, - 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, - 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x7b, - 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0a, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, - 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x61, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x4e, 0x12, 0x4c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, + 0x61, 0x7d, 0x30, 0x01, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, + 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, + 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var file_flyteidl_service_agent_proto_goTypes = []interface{}{ @@ -141,7 +143,7 @@ var file_flyteidl_service_agent_proto_goTypes = []interface{}{ (*admin.ListAgentsResponse)(nil), // 15: flyteidl.admin.ListAgentsResponse } var file_flyteidl_service_agent_proto_depIdxs = []int32{ - 0, // 0: flyteidl.service.AsyncAgentService.ExecuteTaskSync:input_type -> flyteidl.admin.ExecuteTaskSyncRequest + 0, // 0: flyteidl.service.SyncAgentService.ExecuteTaskSync:input_type -> flyteidl.admin.ExecuteTaskSyncRequest 1, // 1: flyteidl.service.AsyncAgentService.CreateTask:input_type -> flyteidl.admin.CreateTaskRequest 2, // 2: flyteidl.service.AsyncAgentService.GetTask:input_type -> flyteidl.admin.GetTaskRequest 3, // 3: flyteidl.service.AsyncAgentService.DeleteTask:input_type -> flyteidl.admin.DeleteTaskRequest @@ -149,7 +151,7 @@ var file_flyteidl_service_agent_proto_depIdxs = []int32{ 5, // 5: flyteidl.service.AsyncAgentService.GetTaskLogs:input_type -> flyteidl.admin.GetTaskLogsRequest 6, // 6: flyteidl.service.AgentMetadataService.GetAgent:input_type -> flyteidl.admin.GetAgentRequest 7, // 7: flyteidl.service.AgentMetadataService.ListAgents:input_type -> flyteidl.admin.ListAgentsRequest - 8, // 8: flyteidl.service.AsyncAgentService.ExecuteTaskSync:output_type -> flyteidl.admin.ExecuteTaskSyncResponse + 8, // 8: flyteidl.service.SyncAgentService.ExecuteTaskSync:output_type -> flyteidl.admin.ExecuteTaskSyncResponse 9, // 9: flyteidl.service.AsyncAgentService.CreateTask:output_type -> flyteidl.admin.CreateTaskResponse 10, // 10: flyteidl.service.AsyncAgentService.GetTask:output_type -> flyteidl.admin.GetTaskResponse 11, // 11: flyteidl.service.AsyncAgentService.DeleteTask:output_type -> flyteidl.admin.DeleteTaskResponse @@ -177,7 +179,7 @@ func file_flyteidl_service_agent_proto_init() { NumEnums: 0, NumMessages: 0, NumExtensions: 0, - NumServices: 2, + NumServices: 3, }, GoTypes: file_flyteidl_service_agent_proto_goTypes, DependencyIndexes: file_flyteidl_service_agent_proto_depIdxs, diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go index fa89f0a5e9..98f057da12 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go @@ -20,68 +20,49 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - AsyncAgentService_ExecuteTaskSync_FullMethodName = "/flyteidl.service.AsyncAgentService/ExecuteTaskSync" - AsyncAgentService_CreateTask_FullMethodName = "/flyteidl.service.AsyncAgentService/CreateTask" - AsyncAgentService_GetTask_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTask" - AsyncAgentService_DeleteTask_FullMethodName = "/flyteidl.service.AsyncAgentService/DeleteTask" - AsyncAgentService_GetTaskMetrics_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" - AsyncAgentService_GetTaskLogs_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskLogs" + SyncAgentService_ExecuteTaskSync_FullMethodName = "/flyteidl.service.SyncAgentService/ExecuteTaskSync" ) -// AsyncAgentServiceClient is the client API for AsyncAgentService service. +// SyncAgentServiceClient is the client API for SyncAgentService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type AsyncAgentServiceClient interface { +type SyncAgentServiceClient interface { // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. - ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (AsyncAgentService_ExecuteTaskSyncClient, error) - // CreateTask sends a task create request to the agent service. - CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) - // Get job status. - GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) - // Delete the task resource. - DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) - // GetTaskMetrics returns one or more task execution metrics, if available. - // - // Errors include - // - OutOfRange if metrics are not available for the specified task time range - // - various other errors - GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) - // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) + ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (SyncAgentService_ExecuteTaskSyncClient, error) } -type asyncAgentServiceClient struct { +type syncAgentServiceClient struct { cc grpc.ClientConnInterface } -func NewAsyncAgentServiceClient(cc grpc.ClientConnInterface) AsyncAgentServiceClient { - return &asyncAgentServiceClient{cc} +func NewSyncAgentServiceClient(cc grpc.ClientConnInterface) SyncAgentServiceClient { + return &syncAgentServiceClient{cc} } -func (c *asyncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (AsyncAgentService_ExecuteTaskSyncClient, error) { - stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[0], AsyncAgentService_ExecuteTaskSync_FullMethodName, opts...) +func (c *syncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (SyncAgentService_ExecuteTaskSyncClient, error) { + stream, err := c.cc.NewStream(ctx, &SyncAgentService_ServiceDesc.Streams[0], SyncAgentService_ExecuteTaskSync_FullMethodName, opts...) if err != nil { return nil, err } - x := &asyncAgentServiceExecuteTaskSyncClient{stream} + x := &syncAgentServiceExecuteTaskSyncClient{stream} return x, nil } -type AsyncAgentService_ExecuteTaskSyncClient interface { +type SyncAgentService_ExecuteTaskSyncClient interface { Send(*admin.ExecuteTaskSyncRequest) error Recv() (*admin.ExecuteTaskSyncResponse, error) grpc.ClientStream } -type asyncAgentServiceExecuteTaskSyncClient struct { +type syncAgentServiceExecuteTaskSyncClient struct { grpc.ClientStream } -func (x *asyncAgentServiceExecuteTaskSyncClient) Send(m *admin.ExecuteTaskSyncRequest) error { +func (x *syncAgentServiceExecuteTaskSyncClient) Send(m *admin.ExecuteTaskSyncRequest) error { return x.ClientStream.SendMsg(m) } -func (x *asyncAgentServiceExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { +func (x *syncAgentServiceExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { m := new(admin.ExecuteTaskSyncResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -89,6 +70,113 @@ func (x *asyncAgentServiceExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncR return m, nil } +// SyncAgentServiceServer is the server API for SyncAgentService service. +// All implementations should embed UnimplementedSyncAgentServiceServer +// for forward compatibility +type SyncAgentServiceServer interface { + // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + ExecuteTaskSync(SyncAgentService_ExecuteTaskSyncServer) error +} + +// UnimplementedSyncAgentServiceServer should be embedded to have forward compatible implementations. +type UnimplementedSyncAgentServiceServer struct { +} + +func (UnimplementedSyncAgentServiceServer) ExecuteTaskSync(SyncAgentService_ExecuteTaskSyncServer) error { + return status.Errorf(codes.Unimplemented, "method ExecuteTaskSync not implemented") +} + +// UnsafeSyncAgentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SyncAgentServiceServer will +// result in compilation errors. +type UnsafeSyncAgentServiceServer interface { + mustEmbedUnimplementedSyncAgentServiceServer() +} + +func RegisterSyncAgentServiceServer(s grpc.ServiceRegistrar, srv SyncAgentServiceServer) { + s.RegisterService(&SyncAgentService_ServiceDesc, srv) +} + +func _SyncAgentService_ExecuteTaskSync_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SyncAgentServiceServer).ExecuteTaskSync(&syncAgentServiceExecuteTaskSyncServer{stream}) +} + +type SyncAgentService_ExecuteTaskSyncServer interface { + Send(*admin.ExecuteTaskSyncResponse) error + Recv() (*admin.ExecuteTaskSyncRequest, error) + grpc.ServerStream +} + +type syncAgentServiceExecuteTaskSyncServer struct { + grpc.ServerStream +} + +func (x *syncAgentServiceExecuteTaskSyncServer) Send(m *admin.ExecuteTaskSyncResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *syncAgentServiceExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { + m := new(admin.ExecuteTaskSyncRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SyncAgentService_ServiceDesc is the grpc.ServiceDesc for SyncAgentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SyncAgentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.SyncAgentService", + HandlerType: (*SyncAgentServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "ExecuteTaskSync", + Handler: _SyncAgentService_ExecuteTaskSync_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "flyteidl/service/agent.proto", +} + +const ( + AsyncAgentService_CreateTask_FullMethodName = "/flyteidl.service.AsyncAgentService/CreateTask" + AsyncAgentService_GetTask_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTask" + AsyncAgentService_DeleteTask_FullMethodName = "/flyteidl.service.AsyncAgentService/DeleteTask" + AsyncAgentService_GetTaskMetrics_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" + AsyncAgentService_GetTaskLogs_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskLogs" +) + +// AsyncAgentServiceClient is the client API for AsyncAgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AsyncAgentServiceClient interface { + // CreateTask sends a task create request to the agent service. + CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) + // Get job status. + GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) + // Delete the task resource. + DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // - OutOfRange if metrics are not available for the specified task time range + // - various other errors + GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) + // GetTaskLogs returns task execution logs, if available. + GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) +} + +type asyncAgentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAsyncAgentServiceClient(cc grpc.ClientConnInterface) AsyncAgentServiceClient { + return &asyncAgentServiceClient{cc} +} + func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { out := new(admin.CreateTaskResponse) err := c.cc.Invoke(ctx, AsyncAgentService_CreateTask_FullMethodName, in, out, opts...) @@ -126,7 +214,7 @@ func (c *asyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin. } func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[1], AsyncAgentService_GetTaskLogs_FullMethodName, opts...) + stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[0], AsyncAgentService_GetTaskLogs_FullMethodName, opts...) if err != nil { return nil, err } @@ -161,8 +249,6 @@ func (x *asyncAgentServiceGetTaskLogsClient) Recv() (*admin.GetTaskLogsResponse, // All implementations should embed UnimplementedAsyncAgentServiceServer // for forward compatibility type AsyncAgentServiceServer interface { - // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. - ExecuteTaskSync(AsyncAgentService_ExecuteTaskSyncServer) error // CreateTask sends a task create request to the agent service. CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) // Get job status. @@ -183,9 +269,6 @@ type AsyncAgentServiceServer interface { type UnimplementedAsyncAgentServiceServer struct { } -func (UnimplementedAsyncAgentServiceServer) ExecuteTaskSync(AsyncAgentService_ExecuteTaskSyncServer) error { - return status.Errorf(codes.Unimplemented, "method ExecuteTaskSync not implemented") -} func (UnimplementedAsyncAgentServiceServer) CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") } @@ -213,32 +296,6 @@ func RegisterAsyncAgentServiceServer(s grpc.ServiceRegistrar, srv AsyncAgentServ s.RegisterService(&AsyncAgentService_ServiceDesc, srv) } -func _AsyncAgentService_ExecuteTaskSync_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(AsyncAgentServiceServer).ExecuteTaskSync(&asyncAgentServiceExecuteTaskSyncServer{stream}) -} - -type AsyncAgentService_ExecuteTaskSyncServer interface { - Send(*admin.ExecuteTaskSyncResponse) error - Recv() (*admin.ExecuteTaskSyncRequest, error) - grpc.ServerStream -} - -type asyncAgentServiceExecuteTaskSyncServer struct { - grpc.ServerStream -} - -func (x *asyncAgentServiceExecuteTaskSyncServer) Send(m *admin.ExecuteTaskSyncResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *asyncAgentServiceExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { - m := new(admin.ExecuteTaskSyncRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - func _AsyncAgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(admin.CreateTaskRequest) if err := dec(in); err != nil { @@ -357,12 +414,6 @@ var AsyncAgentService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{ - { - StreamName: "ExecuteTaskSync", - Handler: _AsyncAgentService_ExecuteTaskSync_Handler, - ServerStreams: true, - ClientStreams: true, - }, { StreamName: "GetTaskLogs", Handler: _AsyncAgentService_GetTaskLogs_Handler, diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go index 9a1bbf3037..2256d6f411 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go @@ -33,7 +33,7 @@ var _ = runtime.String var _ = utilities.NewDoubleArray var _ = metadata.Join -func request_AsyncAgentService_ExecuteTaskSync_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.AsyncAgentService_ExecuteTaskSyncClient, runtime.ServerMetadata, error) { +func request_SyncAgentService_ExecuteTaskSync_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.SyncAgentService_ExecuteTaskSyncClient, runtime.ServerMetadata, error) { var metadata runtime.ServerMetadata stream, err := client.ExecuteTaskSync(ctx) if err != nil { @@ -575,19 +575,28 @@ func local_request_AgentMetadataService_ListAgents_0(ctx context.Context, marsha } -// RegisterAsyncAgentServiceHandlerServer registers the http handlers for service AsyncAgentService to "mux". -// UnaryRPC :call AsyncAgentServiceServer directly. +// RegisterSyncAgentServiceHandlerServer registers the http handlers for service SyncAgentService to "mux". +// UnaryRPC :call SyncAgentServiceServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAsyncAgentServiceHandlerFromEndpoint instead. -func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AsyncAgentServiceServer) error { +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSyncAgentServiceHandlerFromEndpoint instead. +func RegisterSyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.SyncAgentServiceServer) error { - mux.Handle("POST", pattern_AsyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_SyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return }) + return nil +} + +// RegisterAsyncAgentServiceHandlerServer registers the http handlers for service AsyncAgentService to "mux". +// UnaryRPC :call AsyncAgentServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAsyncAgentServiceHandlerFromEndpoint instead. +func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AsyncAgentServiceServer) error { + mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -757,9 +766,9 @@ func RegisterAgentMetadataServiceHandlerServer(ctx context.Context, mux *runtime return nil } -// RegisterAsyncAgentServiceHandlerFromEndpoint is same as RegisterAsyncAgentServiceHandler but +// RegisterSyncAgentServiceHandlerFromEndpoint is same as RegisterSyncAgentServiceHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAsyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { +func RegisterSyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { conn, err := grpc.DialContext(ctx, endpoint, opts...) if err != nil { return err @@ -779,44 +788,93 @@ func RegisterAsyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runt }() }() - return RegisterAsyncAgentServiceHandler(ctx, mux, conn) + return RegisterSyncAgentServiceHandler(ctx, mux, conn) } -// RegisterAsyncAgentServiceHandler registers the http handlers for service AsyncAgentService to "mux". +// RegisterSyncAgentServiceHandler registers the http handlers for service SyncAgentService to "mux". // The handlers forward requests to the grpc endpoint over "conn". -func RegisterAsyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAsyncAgentServiceHandlerClient(ctx, mux, extService.NewAsyncAgentServiceClient(conn)) +func RegisterSyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterSyncAgentServiceHandlerClient(ctx, mux, extService.NewSyncAgentServiceClient(conn)) } -// RegisterAsyncAgentServiceHandlerClient registers the http handlers for service AsyncAgentService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AsyncAgentServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AsyncAgentServiceClient" +// RegisterSyncAgentServiceHandlerClient registers the http handlers for service SyncAgentService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.SyncAgentServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.SyncAgentServiceClient" // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.AsyncAgentServiceClient" to call the correct interceptors. -func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AsyncAgentServiceClient) error { +// "extService.SyncAgentServiceClient" to call the correct interceptors. +func RegisterSyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.SyncAgentServiceClient) error { - mux.Handle("POST", pattern_AsyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("POST", pattern_SyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/ExecuteTaskSync", runtime.WithHTTPPathPattern("/api/v1/agent/task/stream")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SyncAgentService/ExecuteTaskSync", runtime.WithHTTPPathPattern("/api/v1/agent/task/stream")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_AsyncAgentService_ExecuteTaskSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) + resp, md, err := request_SyncAgentService_ExecuteTaskSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) if err != nil { runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) return } - forward_AsyncAgentService_ExecuteTaskSync_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + forward_SyncAgentService_ExecuteTaskSync_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) }) + return nil +} + +var ( + pattern_SyncAgentService_ExecuteTaskSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "agent", "task", "stream"}, "")) +) + +var ( + forward_SyncAgentService_ExecuteTaskSync_0 = runtime.ForwardResponseStream +) + +// RegisterAsyncAgentServiceHandlerFromEndpoint is same as RegisterAsyncAgentServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAsyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAsyncAgentServiceHandler(ctx, mux, conn) +} + +// RegisterAsyncAgentServiceHandler registers the http handlers for service AsyncAgentService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAsyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAsyncAgentServiceHandlerClient(ctx, mux, extService.NewAsyncAgentServiceClient(conn)) +} + +// RegisterAsyncAgentServiceHandlerClient registers the http handlers for service AsyncAgentService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AsyncAgentServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AsyncAgentServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.AsyncAgentServiceClient" to call the correct interceptors. +func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AsyncAgentServiceClient) error { + mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -931,8 +989,6 @@ func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.Se } var ( - pattern_AsyncAgentService_ExecuteTaskSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "agent", "task", "stream"}, "")) - pattern_AsyncAgentService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "agent", "task"}, "")) pattern_AsyncAgentService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task", "task_type.name", "task_type.version", "resource_meta"}, "")) @@ -945,8 +1001,6 @@ var ( ) var ( - forward_AsyncAgentService_ExecuteTaskSync_0 = runtime.ForwardResponseStream - forward_AsyncAgentService_CreateTask_0 = runtime.ForwardResponseMessage forward_AsyncAgentService_GetTask_0 = runtime.ForwardResponseMessage diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index e5e8fe4277..2499181e7c 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -5,6 +5,9 @@ "version": "version not set" }, "tags": [ + { + "name": "SyncAgentService" + }, { "name": "AsyncAgentService" }, @@ -211,7 +214,7 @@ "/api/v1/agent/task/stream": { "post": { "summary": "ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.", - "operationId": "AsyncAgentService_ExecuteTaskSync", + "operationId": "SyncAgentService_ExecuteTaskSync", "responses": { "200": { "description": "A successful response.(streaming responses)", @@ -247,7 +250,7 @@ } ], "tags": [ - "AsyncAgentService" + "SyncAgentService" ] } }, @@ -574,6 +577,10 @@ "$ref": "#/definitions/adminTaskType" }, "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." + }, + "is_sync": { + "type": "boolean", + "description": "IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their\nresults synchronously when called by propeller. Given that sync agents can affect the performance\nof the system, it's important to enforce strict timeout policies.\nAn Async agent, on the other hand, is required to be able to identify jobs by an\nidentifier and query for job statuses as jobs progress." } }, "description": "A message containing the agent metadata." diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index ada9a7638f..8166820ec3 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9613,6 +9613,9 @@ export namespace flyteidl { /** Agent supportedTaskTypes */ supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); + + /** Agent isSync */ + isSync?: (boolean|null); } /** Represents an Agent. */ @@ -9630,6 +9633,9 @@ export namespace flyteidl { /** Agent supportedTaskTypes. */ public supportedTaskTypes: flyteidl.admin.ITaskType[]; + /** Agent isSync. */ + public isSync: boolean; + /** * Creates a new Agent instance using the specified properties. * @param [properties] Properties to set @@ -21827,11 +21833,11 @@ export namespace flyteidl { type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; } - /** Represents an AsyncAgentService */ - class AsyncAgentService extends $protobuf.rpc.Service { + /** Represents a SyncAgentService */ + class SyncAgentService extends $protobuf.rpc.Service { /** - * Constructs a new AsyncAgentService service. + * Constructs a new SyncAgentService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -21839,20 +21845,20 @@ export namespace flyteidl { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new AsyncAgentService service using the specified rpc implementation. + * Creates new SyncAgentService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SyncAgentService; /** * Calls ExecuteTaskSync. * @param request ExecuteTaskSyncRequest message or plain object * @param callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse */ - public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest, callback: flyteidl.service.AsyncAgentService.ExecuteTaskSyncCallback): void; + public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest, callback: flyteidl.service.SyncAgentService.ExecuteTaskSyncCallback): void; /** * Calls ExecuteTaskSync. @@ -21860,6 +21866,37 @@ export namespace flyteidl { * @returns Promise */ public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest): Promise; + } + + namespace SyncAgentService { + + /** + * Callback as used by {@link flyteidl.service.SyncAgentService#executeTaskSync}. + * @param error Error, if any + * @param [response] ExecuteTaskSyncResponse + */ + type ExecuteTaskSyncCallback = (error: (Error|null), response?: flyteidl.admin.ExecuteTaskSyncResponse) => void; + } + + /** Represents an AsyncAgentService */ + class AsyncAgentService extends $protobuf.rpc.Service { + + /** + * Constructs a new AsyncAgentService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AsyncAgentService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; /** * Calls CreateTask. @@ -21934,13 +21971,6 @@ export namespace flyteidl { namespace AsyncAgentService { - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#executeTaskSync}. - * @param error Error, if any - * @param [response] ExecuteTaskSyncResponse - */ - type ExecuteTaskSyncCallback = (error: (Error|null), response?: flyteidl.admin.ExecuteTaskSyncResponse) => void; - /** * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. * @param error Error, if any diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 96bfeee8be..4ef642bbd6 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -23537,6 +23537,7 @@ * @interface IAgent * @property {string|null} [name] Agent name * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes + * @property {boolean|null} [isSync] Agent isSync */ /** @@ -23571,6 +23572,14 @@ */ Agent.prototype.supportedTaskTypes = $util.emptyArray; + /** + * Agent isSync. + * @member {boolean} isSync + * @memberof flyteidl.admin.Agent + * @instance + */ + Agent.prototype.isSync = false; + /** * Creates a new Agent instance using the specified properties. * @function create @@ -23600,6 +23609,8 @@ if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) for (var i = 0; i < message.supportedTaskTypes.length; ++i) $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.isSync != null && message.hasOwnProperty("isSync")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); return writer; }; @@ -23629,6 +23640,9 @@ message.supportedTaskTypes = []; message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); break; + case 3: + message.isSync = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -23660,6 +23674,9 @@ return "supportedTaskTypes." + error; } } + if (message.isSync != null && message.hasOwnProperty("isSync")) + if (typeof message.isSync !== "boolean") + return "isSync: boolean expected"; return null; }; @@ -51348,41 +51365,41 @@ return AdminService; })(); - service.AsyncAgentService = (function() { + service.SyncAgentService = (function() { /** - * Constructs a new AsyncAgentService service. + * Constructs a new SyncAgentService service. * @memberof flyteidl.service - * @classdesc Represents an AsyncAgentService + * @classdesc Represents a SyncAgentService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { + function SyncAgentService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; + (SyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SyncAgentService; /** - * Creates new AsyncAgentService service using the specified rpc implementation. + * Creates new SyncAgentService service using the specified rpc implementation. * @function create - * @memberof flyteidl.service.AsyncAgentService + * @memberof flyteidl.service.SyncAgentService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AsyncAgentService} RPC service. Useful where requests and/or responses are streamed. + * @returns {SyncAgentService} RPC service. Useful where requests and/or responses are streamed. */ - AsyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + SyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#executeTaskSync}. - * @memberof flyteidl.service.AsyncAgentService + * Callback as used by {@link flyteidl.service.SyncAgentService#executeTaskSync}. + * @memberof flyteidl.service.SyncAgentService * @typedef ExecuteTaskSyncCallback * @type {function} * @param {Error|null} error Error, if any @@ -51392,27 +51409,62 @@ /** * Calls ExecuteTaskSync. * @function executeTaskSync - * @memberof flyteidl.service.AsyncAgentService + * @memberof flyteidl.service.SyncAgentService * @instance * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.ExecuteTaskSyncCallback} callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse + * @param {flyteidl.service.SyncAgentService.ExecuteTaskSyncCallback} callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(AsyncAgentService.prototype.executeTaskSync = function executeTaskSync(request, callback) { + Object.defineProperty(SyncAgentService.prototype.executeTaskSync = function executeTaskSync(request, callback) { return this.rpcCall(executeTaskSync, $root.flyteidl.admin.ExecuteTaskSyncRequest, $root.flyteidl.admin.ExecuteTaskSyncResponse, request, callback); }, "name", { value: "ExecuteTaskSync" }); /** * Calls ExecuteTaskSync. * @function executeTaskSync - * @memberof flyteidl.service.AsyncAgentService + * @memberof flyteidl.service.SyncAgentService * @instance * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object * @returns {Promise} Promise * @variation 2 */ + return SyncAgentService; + })(); + + service.AsyncAgentService = (function() { + + /** + * Constructs a new AsyncAgentService service. + * @memberof flyteidl.service + * @classdesc Represents an AsyncAgentService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; + + /** + * Creates new AsyncAgentService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AsyncAgentService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AsyncAgentService} RPC service. Useful where requests and/or responses are streamed. + */ + AsyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + /** * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. * @memberof flyteidl.service.AsyncAgentService diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index b6edf9069e..0946b6af93 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"g\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,8 +38,8 @@ _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=3956 - _globals['_STATE']._serialized_end=4050 + _globals['_STATE']._serialized_start=3982 + _globals['_STATE']._serialized_end=4076 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 @@ -70,28 +70,28 @@ _globals['_DELETETASKREQUEST']._serialized_end=2753 _globals['_DELETETASKRESPONSE']._serialized_start=2755 _globals['_DELETETASKRESPONSE']._serialized_end=2775 - _globals['_AGENT']._serialized_start=2777 - _globals['_AGENT']._serialized_end=2880 - _globals['_TASKTYPE']._serialized_start=2882 - _globals['_TASKTYPE']._serialized_end=2938 - _globals['_GETAGENTREQUEST']._serialized_start=2940 - _globals['_GETAGENTREQUEST']._serialized_end=2977 - _globals['_GETAGENTRESPONSE']._serialized_start=2979 - _globals['_GETAGENTRESPONSE']._serialized_end=3042 - _globals['_LISTAGENTSREQUEST']._serialized_start=3044 - _globals['_LISTAGENTSREQUEST']._serialized_end=3063 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3065 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3132 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3135 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3437 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3439 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3527 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3530 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3686 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3688 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3737 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3739 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3790 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=3793 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=3954 + _globals['_AGENT']._serialized_start=2778 + _globals['_AGENT']._serialized_end=2906 + _globals['_TASKTYPE']._serialized_start=2908 + _globals['_TASKTYPE']._serialized_end=2964 + _globals['_GETAGENTREQUEST']._serialized_start=2966 + _globals['_GETAGENTREQUEST']._serialized_end=3003 + _globals['_GETAGENTRESPONSE']._serialized_start=3005 + _globals['_GETAGENTRESPONSE']._serialized_end=3068 + _globals['_LISTAGENTSREQUEST']._serialized_start=3070 + _globals['_LISTAGENTSREQUEST']._serialized_end=3089 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3091 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3158 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3161 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3463 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3465 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3553 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3556 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3712 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3714 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3763 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3765 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3816 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=3819 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=3980 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index b6f5504e97..230de87c79 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -167,12 +167,14 @@ class DeleteTaskResponse(_message.Message): def __init__(self) -> None: ... class Agent(_message.Message): - __slots__ = ["name", "supported_task_types"] + __slots__ = ["name", "supported_task_types", "is_sync"] NAME_FIELD_NUMBER: _ClassVar[int] SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] + IS_SYNC_FIELD_NUMBER: _ClassVar[int] name: str supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] - def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... + is_sync: bool + def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ..., is_sync: bool = ...) -> None: ... class TaskType(_message.Message): __slots__ = ["name", "version"] diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py index 6c1f0000d4..eca6cb8da8 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -15,7 +15,7 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xd2\x07\n\x11\x41syncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xc3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,8 +24,8 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAgentProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _ASYNCAGENTSERVICE.methods_by_name['ExecuteTaskSync']._options = None - _ASYNCAGENTSERVICE.methods_by_name['ExecuteTaskSync']._serialized_options = b'\202\323\344\223\002\036:\001*\"\031/api/v1/agent/task/stream' + _SYNCAGENTSERVICE.methods_by_name['ExecuteTaskSync']._options = None + _SYNCAGENTSERVICE.methods_by_name['ExecuteTaskSync']._serialized_options = b'\202\323\344\223\002\036:\001*\"\031/api/v1/agent/task/stream' _ASYNCAGENTSERVICE.methods_by_name['CreateTask']._options = None _ASYNCAGENTSERVICE.methods_by_name['CreateTask']._serialized_options = b'\202\323\344\223\002\027:\001*\"\022/api/v1/agent/task' _ASYNCAGENTSERVICE.methods_by_name['GetTask']._options = None @@ -40,8 +40,10 @@ _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\002\026\022\024/api/v1/agent/{name}' _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None _AGENTMETADATASERVICE.methods_by_name['ListAgents']._serialized_options = b'\202\323\344\223\002\020\022\016/api/v1/agents' - _globals['_ASYNCAGENTSERVICE']._serialized_start=109 - _globals['_ASYNCAGENTSERVICE']._serialized_end=1087 - _globals['_AGENTMETADATASERVICE']._serialized_start=1090 - _globals['_AGENTMETADATASERVICE']._serialized_end=1330 + _globals['_SYNCAGENTSERVICE']._serialized_start=109 + _globals['_SYNCAGENTSERVICE']._serialized_end=270 + _globals['_ASYNCAGENTSERVICE']._serialized_start=273 + _globals['_ASYNCAGENTSERVICE']._serialized_end=1108 + _globals['_AGENTMETADATASERVICE']._serialized_start=1111 + _globals['_AGENTMETADATASERVICE']._serialized_end=1351 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py index 8257a90ff8..6c3d46998f 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py @@ -5,8 +5,8 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -class AsyncAgentServiceStub(object): - """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. +class SyncAgentServiceStub(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. """ def __init__(self, channel): @@ -16,10 +16,70 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.ExecuteTaskSync = channel.stream_stream( - '/flyteidl.service.AsyncAgentService/ExecuteTaskSync', + '/flyteidl.service.SyncAgentService/ExecuteTaskSync', request_serializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.SerializeToString, response_deserializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.FromString, ) + + +class SyncAgentServiceServicer(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + """ + + def ExecuteTaskSync(self, request_iterator, context): + """ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SyncAgentServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'ExecuteTaskSync': grpc.stream_stream_rpc_method_handler( + servicer.ExecuteTaskSync, + request_deserializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.SyncAgentService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class SyncAgentService(object): + """AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + """ + + @staticmethod + def ExecuteTaskSync(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/flyteidl.service.SyncAgentService/ExecuteTaskSync', + flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.SerializeToString, + flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + +class AsyncAgentServiceStub(object): + """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ self.CreateTask = channel.unary_unary( '/flyteidl.service.AsyncAgentService/CreateTask', request_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, @@ -48,16 +108,9 @@ def __init__(self, channel): class AsyncAgentServiceServicer(object): - """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. + """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. """ - def ExecuteTaskSync(self, request_iterator, context): - """ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def CreateTask(self, request, context): """CreateTask sends a task create request to the agent service. """ @@ -100,11 +153,6 @@ def GetTaskLogs(self, request, context): def add_AsyncAgentServiceServicer_to_server(servicer, server): rpc_method_handlers = { - 'ExecuteTaskSync': grpc.stream_stream_rpc_method_handler( - servicer.ExecuteTaskSync, - request_deserializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.SerializeToString, - ), 'CreateTask': grpc.unary_unary_rpc_method_handler( servicer.CreateTask, request_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.FromString, @@ -138,26 +186,9 @@ def add_AsyncAgentServiceServicer_to_server(servicer, server): # This class is part of an EXPERIMENTAL API. class AsyncAgentService(object): - """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. + """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. """ - @staticmethod - def ExecuteTaskSync(request_iterator, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/flyteidl.service.AsyncAgentService/ExecuteTaskSync', - flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncRequest.SerializeToString, - flyteidl_dot_admin_dot_agent__pb2.ExecuteTaskSyncResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - @staticmethod def CreateTask(request, target, diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 90725a5339..7be2118618 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -186,6 +186,13 @@ pub struct Agent { /// SupportedTaskTypes are the types of the tasks that the agent can handle. #[prost(message, repeated, tag="2")] pub supported_task_types: ::prost::alloc::vec::Vec, + /// IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + /// results synchronously when called by propeller. Given that sync agents can affect the performance + /// of the system, it's important to enforce strict timeout policies. + /// An Async agent, on the other hand, is required to be able to identify jobs by an + /// identifier and query for job statuses as jobs progress. + #[prost(bool, tag="3")] + pub is_sync: bool, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index 0545fae932..e1300bd08a 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -6,8 +6,8 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/servi import "google/api/annotations.proto"; import "flyteidl/admin/agent.proto"; -// AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. -service AsyncAgentService { +// AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. +service SyncAgentService { // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. rpc ExecuteTaskSync (stream flyteidl.admin.ExecuteTaskSyncRequest) returns (stream flyteidl.admin.ExecuteTaskSyncResponse){ option (google.api.http) = { @@ -15,7 +15,10 @@ service AsyncAgentService { body: "*" }; }; +} +// AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. +service AsyncAgentService { // CreateTask sends a task create request to the agent service. rpc CreateTask (flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){ option (google.api.http) = { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index b118f64596..283686e71f 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -19,9 +19,11 @@ import ( "github.com/flyteorg/flyte/flytestdlib/logger" ) +const defaultTaskTypeVersion = 0 + // ClientSet contains the clients exposed to communicate with various agent services. type ClientSet struct { - agentClients map[string]service.AsyncAgentServiceClient // map[endpoint] => client + asyncAgentClients map[string]service.AsyncAgentServiceClient // map[endpoint] => client agentMetadataClients map[string]service.AgentMetadataServiceClient // map[endpoint] => client } @@ -84,14 +86,14 @@ func getFinalContext(ctx context.Context, operation string, agent *Agent) (conte return context.WithTimeout(ctx, timeout) } -func initializeAgentRegistry(cs *ClientSet) (map[string]*Agent, error) { - agentRegistry := make(map[string]*Agent) +func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) { + agentRegistry := make(map[string]map[int32]*Agent) cfg := GetConfig() var agentDeployments []*Agent // Ensure that the old configuration is backward compatible for taskType, agentID := range cfg.AgentForTaskTypes { - agentRegistry[taskType] = cfg.Agents[agentID] + agentRegistry[taskType] = map[int32]*Agent{0: cfg.Agents[agentID]} } if len(cfg.DefaultAgent.Endpoint) != 0 { @@ -124,7 +126,7 @@ func initializeAgentRegistry(cs *ClientSet) (map[string]*Agent, error) { for _, agent := range agents { supportedTaskTypes := agent.SupportedTaskTypes for _, supportedTaskType := range supportedTaskTypes { - agentRegistry[supportedTaskType] = agentDeployment + agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.Version: agentDeployment} } } } @@ -153,7 +155,7 @@ func initializeClients(ctx context.Context) (*ClientSet, error) { } return &ClientSet{ - agentClients: agentClients, + asyncAgentClients: agentClients, agentMetadataClients: agentMetadataClients, }, nil } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/config.go b/flyteplugins/go/tasks/plugins/webapi/agent/config.go index cb0bd3089f..252ad77de9 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/config.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/config.go @@ -88,6 +88,13 @@ type Agent struct { // DefaultTimeout gives the default RPC timeout if a more specific one is not defined in Timeouts; if neither DefaultTimeout nor Timeouts is defined for an operation, RPC timeout will not be enforced DefaultTimeout config.Duration `json:"defaultTimeout"` + + // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + // results synchronously when called by propeller. Given that sync agents can affect the performance + // of the system, it's important to enforce strict timeout policies. + // An Async agent, on the other hand, is required to be able to identify jobs by an + // identifier and query for job statuses as jobs progress. + IsSync bool `json:"isSync"` } func GetConfig() *Config { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index fe3b45b881..8876a79554 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -13,6 +13,7 @@ import ( "k8s.io/apimachinery/pkg/util/rand" "k8s.io/utils/strings/slices" + agentMocks "github.com/flyteorg/flyte/flyteidl/clients/go/admin/mocks" "github.com/flyteorg/flyte/flyteidl/clients/go/coreutils" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" flyteIdlCore "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" @@ -24,7 +25,6 @@ import ( pluginCoreMocks "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/core/mocks" ioMocks "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/io/mocks" "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/webapi" - agentMocks "github.com/flyteorg/flyte/flyteplugins/go/tasks/plugins/webapi/agent/mocks" "github.com/flyteorg/flyte/flyteplugins/tests" "github.com/flyteorg/flyte/flytestdlib/contextutils" "github.com/flyteorg/flyte/flytestdlib/promutils" @@ -92,7 +92,7 @@ func TestEndToEnd(t *testing.T) { metricScope: iCtx.MetricsScope(), cfg: GetConfig(), cs: &ClientSet{ - agentClients: map[string]service.AsyncAgentServiceClient{}, + asyncAgentClients: map[string]service.AsyncAgentServiceClient{}, agentMetadataClients: map[string]service.AgentMetadataServiceClient{}, }, }, nil @@ -226,24 +226,22 @@ func getTaskContext(t *testing.T) *pluginCoreMocks.TaskExecutionContext { func newMockAgentPlugin() webapi.PluginEntry { - agentClient := new(agentMocks.AsyncAgentServiceClient) + asyncAgentClient := new(agentMocks.AsyncAgentServiceClient) mockCreateRequestMatcher := mock.MatchedBy(func(request *admin.CreateTaskRequest) bool { expectedArgs := []string{"pyflyte-fast-execute", "--output-prefix", "/tmp/123"} return slices.Equal(request.Template.GetContainer().Args, expectedArgs) }) - agentClient.On("CreateTask", mock.Anything, mockCreateRequestMatcher).Return(&admin.CreateTaskResponse{ - Res: &admin.CreateTaskResponse_ResourceMeta{ - ResourceMeta: []byte{1, 2, 3, 4}, - }}, nil) + asyncAgentClient.On("CreateTask", mock.Anything, mockCreateRequestMatcher).Return(&admin.CreateTaskResponse{ + ResourceMeta: []byte{1, 2, 3, 4}}, nil) mockGetRequestMatcher := mock.MatchedBy(func(request *admin.GetTaskRequest) bool { - return request.GetTaskType() == "spark" + return request.GetTaskType().GetName() == "spark" }) - agentClient.On("GetTask", mock.Anything, mockGetRequestMatcher).Return( + asyncAgentClient.On("GetTask", mock.Anything, mockGetRequestMatcher).Return( &admin.GetTaskResponse{Resource: &admin.Resource{State: admin.State_SUCCEEDED}}, nil) - agentClient.On("DeleteTask", mock.Anything, mock.Anything).Return( + asyncAgentClient.On("DeleteTask", mock.Anything, mock.Anything).Return( &admin.DeleteTaskResponse{}, nil) cfg := defaultConfig @@ -257,8 +255,8 @@ func newMockAgentPlugin() webapi.PluginEntry { metricScope: iCtx.MetricsScope(), cfg: &cfg, cs: &ClientSet{ - agentClients: map[string]service.AsyncAgentServiceClient{ - "localhost:8000": agentClient, + asyncAgentClients: map[string]service.AsyncAgentServiceClient{ + defaultAgentEndpoint: asyncAgentClient, }, }, }, nil diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/mocks/AgentMetadataServiceClient.go b/flyteplugins/go/tasks/plugins/webapi/agent/mocks/AgentMetadataServiceClient.go deleted file mode 100644 index d7f40932b7..0000000000 --- a/flyteplugins/go/tasks/plugins/webapi/agent/mocks/AgentMetadataServiceClient.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by mockery v1.0.1. DO NOT EDIT. - -package mocks - -import ( - context "context" - - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - - grpc "google.golang.org/grpc" - - mock "github.com/stretchr/testify/mock" -) - -// AgentMetadataServiceClient is an autogenerated mock type for the AgentMetadataServiceClient type -type AgentMetadataServiceClient struct { - mock.Mock -} - -type AgentMetadataServiceClient_GetAgent struct { - *mock.Call -} - -func (_m AgentMetadataServiceClient_GetAgent) Return(_a0 *admin.GetAgentResponse, _a1 error) *AgentMetadataServiceClient_GetAgent { - return &AgentMetadataServiceClient_GetAgent{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AgentMetadataServiceClient) OnGetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) *AgentMetadataServiceClient_GetAgent { - c_call := _m.On("GetAgent", ctx, in, opts) - return &AgentMetadataServiceClient_GetAgent{Call: c_call} -} - -func (_m *AgentMetadataServiceClient) OnGetAgentMatch(matchers ...interface{}) *AgentMetadataServiceClient_GetAgent { - c_call := _m.On("GetAgent", matchers...) - return &AgentMetadataServiceClient_GetAgent{Call: c_call} -} - -// GetAgent provides a mock function with given fields: ctx, in, opts -func (_m *AgentMetadataServiceClient) GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.GetAgentResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.GetAgentRequest, ...grpc.CallOption) *admin.GetAgentResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.GetAgentResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.GetAgentRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type AgentMetadataServiceClient_ListAgents struct { - *mock.Call -} - -func (_m AgentMetadataServiceClient_ListAgents) Return(_a0 *admin.ListAgentsResponse, _a1 error) *AgentMetadataServiceClient_ListAgents { - return &AgentMetadataServiceClient_ListAgents{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AgentMetadataServiceClient) OnListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) *AgentMetadataServiceClient_ListAgents { - c_call := _m.On("ListAgents", ctx, in, opts) - return &AgentMetadataServiceClient_ListAgents{Call: c_call} -} - -func (_m *AgentMetadataServiceClient) OnListAgentsMatch(matchers ...interface{}) *AgentMetadataServiceClient_ListAgents { - c_call := _m.On("ListAgents", matchers...) - return &AgentMetadataServiceClient_ListAgents{Call: c_call} -} - -// ListAgents provides a mock function with given fields: ctx, in, opts -func (_m *AgentMetadataServiceClient) ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.ListAgentsResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.ListAgentsRequest, ...grpc.CallOption) *admin.ListAgentsResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.ListAgentsResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.ListAgentsRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/mocks/AsyncAgentServiceClient.go b/flyteplugins/go/tasks/plugins/webapi/agent/mocks/AsyncAgentServiceClient.go deleted file mode 100644 index f11ef1adfe..0000000000 --- a/flyteplugins/go/tasks/plugins/webapi/agent/mocks/AsyncAgentServiceClient.go +++ /dev/null @@ -1,258 +0,0 @@ -// Code generated by mockery v1.0.1. DO NOT EDIT. - -package mocks - -import ( - context "context" - - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - - grpc "google.golang.org/grpc" - - mock "github.com/stretchr/testify/mock" -) - -// AsyncAgentServiceClient is an autogenerated mock type for the AsyncAgentServiceClient type -type AsyncAgentServiceClient struct { - mock.Mock -} - -type AsyncAgentServiceClient_CreateTask struct { - *mock.Call -} - -func (_m AsyncAgentServiceClient_CreateTask) Return(_a0 *admin.CreateTaskResponse, _a1 error) *AsyncAgentServiceClient_CreateTask { - return &AsyncAgentServiceClient_CreateTask{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AsyncAgentServiceClient) OnCreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_CreateTask { - c_call := _m.On("CreateTask", ctx, in, opts) - return &AsyncAgentServiceClient_CreateTask{Call: c_call} -} - -func (_m *AsyncAgentServiceClient) OnCreateTaskMatch(matchers ...interface{}) *AsyncAgentServiceClient_CreateTask { - c_call := _m.On("CreateTask", matchers...) - return &AsyncAgentServiceClient_CreateTask{Call: c_call} -} - -// CreateTask provides a mock function with given fields: ctx, in, opts -func (_m *AsyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.CreateTaskResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) *admin.CreateTaskResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.CreateTaskResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.CreateTaskRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type AsyncAgentServiceClient_DeleteTask struct { - *mock.Call -} - -func (_m AsyncAgentServiceClient_DeleteTask) Return(_a0 *admin.DeleteTaskResponse, _a1 error) *AsyncAgentServiceClient_DeleteTask { - return &AsyncAgentServiceClient_DeleteTask{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AsyncAgentServiceClient) OnDeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_DeleteTask { - c_call := _m.On("DeleteTask", ctx, in, opts) - return &AsyncAgentServiceClient_DeleteTask{Call: c_call} -} - -func (_m *AsyncAgentServiceClient) OnDeleteTaskMatch(matchers ...interface{}) *AsyncAgentServiceClient_DeleteTask { - c_call := _m.On("DeleteTask", matchers...) - return &AsyncAgentServiceClient_DeleteTask{Call: c_call} -} - -// DeleteTask provides a mock function with given fields: ctx, in, opts -func (_m *AsyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.DeleteTaskResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) *admin.DeleteTaskResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.DeleteTaskResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.DeleteTaskRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type AsyncAgentServiceClient_GetTask struct { - *mock.Call -} - -func (_m AsyncAgentServiceClient_GetTask) Return(_a0 *admin.GetTaskResponse, _a1 error) *AsyncAgentServiceClient_GetTask { - return &AsyncAgentServiceClient_GetTask{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AsyncAgentServiceClient) OnGetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTask { - c_call := _m.On("GetTask", ctx, in, opts) - return &AsyncAgentServiceClient_GetTask{Call: c_call} -} - -func (_m *AsyncAgentServiceClient) OnGetTaskMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTask { - c_call := _m.On("GetTask", matchers...) - return &AsyncAgentServiceClient_GetTask{Call: c_call} -} - -// GetTask provides a mock function with given fields: ctx, in, opts -func (_m *AsyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.GetTaskResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) *admin.GetTaskResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.GetTaskResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type AsyncAgentServiceClient_GetTaskLogs struct { - *mock.Call -} - -func (_m AsyncAgentServiceClient_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskLogs { - return &AsyncAgentServiceClient_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AsyncAgentServiceClient) OnGetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTaskLogs { - c_call := _m.On("GetTaskLogs", ctx, in, opts) - return &AsyncAgentServiceClient_GetTaskLogs{Call: c_call} -} - -func (_m *AsyncAgentServiceClient) OnGetTaskLogsMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTaskLogs { - c_call := _m.On("GetTaskLogs", matchers...) - return &AsyncAgentServiceClient_GetTaskLogs{Call: c_call} -} - -// GetTaskLogs provides a mock function with given fields: ctx, in, opts -func (_m *AsyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.GetTaskLogsResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) *admin.GetTaskLogsResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.GetTaskLogsResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - -type AsyncAgentServiceClient_GetTaskMetrics struct { - *mock.Call -} - -func (_m AsyncAgentServiceClient_GetTaskMetrics) Return(_a0 *admin.GetTaskMetricsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskMetrics { - return &AsyncAgentServiceClient_GetTaskMetrics{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *AsyncAgentServiceClient) OnGetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTaskMetrics { - c_call := _m.On("GetTaskMetrics", ctx, in, opts) - return &AsyncAgentServiceClient_GetTaskMetrics{Call: c_call} -} - -func (_m *AsyncAgentServiceClient) OnGetTaskMetricsMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTaskMetrics { - c_call := _m.On("GetTaskMetrics", matchers...) - return &AsyncAgentServiceClient_GetTaskMetrics{Call: c_call} -} - -// GetTaskMetrics provides a mock function with given fields: ctx, in, opts -func (_m *AsyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { - _va := make([]interface{}, len(opts)) - for _i := range opts { - _va[_i] = opts[_i] - } - var _ca []interface{} - _ca = append(_ca, ctx, in) - _ca = append(_ca, _va...) - ret := _m.Called(_ca...) - - var r0 *admin.GetTaskMetricsResponse - if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskMetricsRequest, ...grpc.CallOption) *admin.GetTaskMetricsResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*admin.GetTaskMetricsResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskMetricsRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 00f9a47633..0c5f197c82 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -4,6 +4,7 @@ import ( "context" "encoding/gob" "fmt" + "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" "time" "golang.org/x/exp/maps" @@ -25,7 +26,7 @@ type Plugin struct { metricScope promutils.Scope cfg *Config cs *ClientSet - agentRegistry map[string]*Agent // map[taskType] => Agent + agentRegistry map[string]map[int32]*Agent // map[taskTypeName][taskTypeVersion] => Agent } type ResourceWrapper struct { @@ -39,9 +40,8 @@ type ResourceWrapper struct { type ResourceMetaWrapper struct { OutputPrefix string - Token string AgentResourceMeta []byte - TaskType string + TaskType admin.TaskType } func (p Plugin) GetConfig() webapi.PluginConfig { @@ -80,52 +80,60 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR return nil, nil, err } taskTemplate.GetContainer().Args = modifiedArgs + defer func() { + // Restore unrendered template for subsequent renders. + taskTemplate.GetContainer().Args = argTemplate + }() } outputPrefix := taskCtx.OutputWriter().GetOutputPrefixPath().String() - agent := getFinalAgent(taskTemplate.Type, p.cfg, p.agentRegistry) - - client, ok := p.cs.agentClients[agent.Endpoint] - if !ok { - return nil, nil, fmt.Errorf("endpoint [%s] not found in the client set", agent.Endpoint) + taskType := admin.TaskType{Name: taskTemplate.Type, Version: taskTemplate.TaskTypeVersion} + agent := getFinalAgent(&taskType, p.cfg, p.agentRegistry) + client, err := p.getAsyncAgentClient(ctx, agent) + if err != nil { + return nil, nil, err } finalCtx, cancel := getFinalContext(ctx, "CreateTask", agent) defer cancel() + //if agent.IsSync { + // stream, err := client.ExecuteTaskSync(ctx) + // if err != nil { + // return nil, nil, err + // } + // stream + //} + taskExecutionMetadata := buildTaskExecutionMetadata(taskCtx.TaskExecutionMetadata()) res, err := client.CreateTask(finalCtx, &admin.CreateTaskRequest{Inputs: inputs, Template: taskTemplate, OutputPrefix: outputPrefix, TaskExecutionMetadata: &taskExecutionMetadata}) if err != nil { return nil, nil, err } - // Restore unrendered template for subsequent renders. - if taskTemplate.GetContainer() != nil { - taskTemplate.GetContainer().Args = argTemplate - } - return ResourceMetaWrapper{ OutputPrefix: outputPrefix, AgentResourceMeta: res.GetResourceMeta(), - Token: "", - TaskType: taskTemplate.Type, + TaskType: taskType, }, nil, nil } +func (p Plugin) ExecuteTaskSync(ctx context.Context, taskCtx webapi.TaskExecutionContextReader) (webapi.ResourceMeta, webapi.Resource, error) { + return nil, nil, nil +} + func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest webapi.Resource, err error) { metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) - agent := getFinalAgent(metadata.TaskType, p.cfg, p.agentRegistry) + agent := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) - client := p.cs.agentClients[agent.Endpoint] - client, ok := p.cs.agentClients[agent.Endpoint] - if !ok { - return nil, fmt.Errorf("endpoint [%s] not found in the client set", agent.Endpoint) + client, err := p.getAsyncAgentClient(ctx, agent) + if err != nil { + return nil, err } finalCtx, cancel := getFinalContext(ctx, "GetTask", agent) defer cancel() - taskType := &admin.TaskType{Name: metadata.TaskType} - res, err := client.GetTask(finalCtx, &admin.GetTaskRequest{TaskType: taskType, ResourceMeta: metadata.AgentResourceMeta}) + res, err := client.GetTask(finalCtx, &admin.GetTaskRequest{TaskType: &metadata.TaskType, ResourceMeta: metadata.AgentResourceMeta}) if err != nil { return nil, err } @@ -144,17 +152,16 @@ func (p Plugin) Delete(ctx context.Context, taskCtx webapi.DeleteContext) error return nil } metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) - agent := getFinalAgent(metadata.TaskType, p.cfg, p.agentRegistry) + agent := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) - client, ok := p.cs.agentClients[agent.Endpoint] - if !ok { - return fmt.Errorf("endpoint [%s] not found in the client set", agent.Endpoint) + client, err := p.getAsyncAgentClient(ctx, agent) + if err != nil { + return err } finalCtx, cancel := getFinalContext(ctx, "DeleteTask", agent) defer cancel() - taskType := &admin.TaskType{Name: metadata.TaskType} - _, err := client.DeleteTask(finalCtx, &admin.DeleteTaskRequest{TaskType: taskType, ResourceMeta: metadata.AgentResourceMeta}) + _, err = client.DeleteTask(finalCtx, &admin.DeleteTaskRequest{TaskType: &metadata.TaskType, ResourceMeta: metadata.AgentResourceMeta}) return err } @@ -210,8 +217,17 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase return core.PhaseInfoUndefined, pluginErrors.Errorf(core.SystemErrorCode, "unknown execution state [%v].", resource.State) } -func (p Plugin) Do(ctx context.Context, tCtx webapi.TaskExecutionContext) (phase core.PhaseInfo, err error) { - return core.PhaseInfo{}, nil +func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *Agent) (service.AsyncAgentServiceClient, error) { + client, ok := p.cs.asyncAgentClients[agent.Endpoint] + if !ok { + conn, err := getGrpcConnection(ctx, agent) + if err != nil { + return nil, fmt.Errorf("failed to get grpc connection with error: %v", err) + } + client = service.NewAsyncAgentServiceClient(conn) + p.cs.asyncAgentClients[agent.Endpoint] = client + } + return client, nil } func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, resource ResourceWrapper) error { @@ -236,8 +252,8 @@ func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, resource Res return taskCtx.OutputWriter().Put(ctx, opReader) } -func getFinalAgent(taskType string, cfg *Config, agentRegistry map[string]*Agent) *Agent { - if agent, exists := agentRegistry[taskType]; exists { +func getFinalAgent(taskType *admin.TaskType, cfg *Config, agentRegistry map[string]map[int32]*Agent) *Agent { + if agent, exists := agentRegistry[taskType.Name][taskType.Version]; exists { return agent } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go index bddea6869e..68c326c99d 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go @@ -10,6 +10,7 @@ import ( "github.com/stretchr/testify/mock" "golang.org/x/exp/maps" + agentMocks "github.com/flyteorg/flyte/flyteidl/clients/go/admin/mocks" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" flyteIdl "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" flyteIdlCore "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" @@ -17,7 +18,6 @@ import ( pluginsCore "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/core" pluginCoreMocks "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/core/mocks" webapiPlugin "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/webapi/mocks" - agentMocks "github.com/flyteorg/flyte/flyteplugins/go/tasks/plugins/webapi/agent/mocks" "github.com/flyteorg/flyte/flytestdlib/config" "github.com/flyteorg/flyte/flytestdlib/promutils" ) @@ -59,12 +59,15 @@ func TestPlugin(t *testing.T) { }) t.Run("test getFinalAgent", func(t *testing.T) { - agentRegistry := map[string]*Agent{"spark": {Endpoint: "localhost:80"}} - agent := getFinalAgent("spark", &cfg, agentRegistry) + agentRegistry := map[string]map[int32]*Agent{"spark": {defaultTaskTypeVersion: &Agent{Endpoint: "localhost:80"}}} + spark := &admin.TaskType{Name: "spark", Version: defaultTaskTypeVersion} + foo := &admin.TaskType{Name: "foo", Version: defaultTaskTypeVersion} + bar := &admin.TaskType{Name: "bar", Version: defaultTaskTypeVersion} + agent := getFinalAgent(spark, &cfg, agentRegistry) assert.Equal(t, agent.Endpoint, "localhost:80") - agent = getFinalAgent("foo", &cfg, agentRegistry) + agent = getFinalAgent(foo, &cfg, agentRegistry) assert.Equal(t, agent.Endpoint, cfg.DefaultAgent.Endpoint) - agent = getFinalAgent("bar", &cfg, agentRegistry) + agent = getFinalAgent(bar, &cfg, agentRegistry) assert.Equal(t, agent.Endpoint, cfg.DefaultAgent.Endpoint) }) @@ -270,11 +273,15 @@ func TestPlugin(t *testing.T) { func getMockMetadataServiceClient() *agentMocks.AgentMetadataServiceClient { mockMetadataServiceClient := new(agentMocks.AgentMetadataServiceClient) mockRequest := &admin.ListAgentsRequest{} + suppoertedTaskTypes := make([]*admin.TaskType, 3) + suppoertedTaskTypes[0] = &admin.TaskType{Name: "task1", Version: defaultTaskTypeVersion} + suppoertedTaskTypes[1] = &admin.TaskType{Name: "task2", Version: defaultTaskTypeVersion} + suppoertedTaskTypes[2] = &admin.TaskType{Name: "task3", Version: defaultTaskTypeVersion} mockResponse := &admin.ListAgentsResponse{ Agents: []*admin.Agent{ { Name: "test-agent", - SupportedTaskTypes: []string{"task1", "task2", "task3"}, + SupportedTaskTypes: suppoertedTaskTypes, }, }, } @@ -290,7 +297,7 @@ func TestInitializeAgentRegistry(t *testing.T) { agentMetadataClients[defaultAgentEndpoint] = getMockMetadataServiceClient() cs := &ClientSet{ - agentClients: agentClients, + asyncAgentClients: agentClients, agentMetadataClients: agentMetadataClients, } From a5e25d8a09512df18ae88ccb973cf9ac7e9da45e Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 9 Feb 2024 00:41:00 -0800 Subject: [PATCH 08/35] Add ExecuteTaskSync Signed-off-by: Kevin Su --- .../go/tasks/plugins/webapi/agent/client.go | 17 ++- .../go/tasks/plugins/webapi/agent/plugin.go | 114 +++++++++++++++--- 2 files changed, 109 insertions(+), 22 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 283686e71f..14df9327fa 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -23,8 +23,9 @@ const defaultTaskTypeVersion = 0 // ClientSet contains the clients exposed to communicate with various agent services. type ClientSet struct { - asyncAgentClients map[string]service.AsyncAgentServiceClient // map[endpoint] => client - agentMetadataClients map[string]service.AgentMetadataServiceClient // map[endpoint] => client + asyncAgentClients map[string]service.AsyncAgentServiceClient // map[endpoint] => AsyncAgentServiceClient + syncAgentClients map[string]service.SyncAgentServiceClient // map[endpoint] => SyncAgentServiceClient + agentMetadataClients map[string]service.AgentMetadataServiceClient // map[endpoint] => AgentMetadataServiceClient } func getGrpcConnection(ctx context.Context, agent *Agent) (*grpc.ClientConn, error) { @@ -135,7 +136,8 @@ func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) } func initializeClients(ctx context.Context) (*ClientSet, error) { - agentClients := make(map[string]service.AsyncAgentServiceClient) + asyncAgentClients := make(map[string]service.AsyncAgentServiceClient) + syncAgentClients := make(map[string]service.SyncAgentServiceClient) agentMetadataClients := make(map[string]service.AgentMetadataServiceClient) var agentDeployments []*Agent @@ -150,12 +152,17 @@ func initializeClients(ctx context.Context) (*ClientSet, error) { if err != nil { return nil, err } - agentClients[agentDeployment.Endpoint] = service.NewAsyncAgentServiceClient(conn) + if agentDeployment.IsSync { + syncAgentClients[agentDeployment.Endpoint] = service.NewSyncAgentServiceClient(conn) + } else { + asyncAgentClients[agentDeployment.Endpoint] = service.NewAsyncAgentServiceClient(conn) + } agentMetadataClients[agentDeployment.Endpoint] = service.NewAgentMetadataServiceClient(conn) } return &ClientSet{ - asyncAgentClients: agentClients, + syncAgentClients: syncAgentClients, + asyncAgentClients: asyncAgentClients, agentMetadataClients: agentMetadataClients, }, nil } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 0c5f197c82..79aca4c98c 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -5,6 +5,7 @@ import ( "encoding/gob" "fmt" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "io" "time" "golang.org/x/exp/maps" @@ -15,7 +16,7 @@ import ( "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery" "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/core" "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/core/template" - "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/io" + flyteIO "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/io" "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/ioutils" "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/webapi" "github.com/flyteorg/flyte/flytestdlib/logger" @@ -89,24 +90,28 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR taskType := admin.TaskType{Name: taskTemplate.Type, Version: taskTemplate.TaskTypeVersion} agent := getFinalAgent(&taskType, p.cfg, p.agentRegistry) - client, err := p.getAsyncAgentClient(ctx, agent) - if err != nil { - return nil, nil, err - } finalCtx, cancel := getFinalContext(ctx, "CreateTask", agent) defer cancel() - //if agent.IsSync { - // stream, err := client.ExecuteTaskSync(ctx) - // if err != nil { - // return nil, nil, err - // } - // stream - //} - taskExecutionMetadata := buildTaskExecutionMetadata(taskCtx.TaskExecutionMetadata()) - res, err := client.CreateTask(finalCtx, &admin.CreateTaskRequest{Inputs: inputs, Template: taskTemplate, OutputPrefix: outputPrefix, TaskExecutionMetadata: &taskExecutionMetadata}) + + if agent.IsSync { + client, err := p.getSyncAgentClient(ctx, agent) + if err != nil { + return nil, nil, err + } + header := &admin.CreateRequestHeader{Template: taskTemplate, OutputPrefix: outputPrefix, TaskExecutionMetadata: &taskExecutionMetadata} + return p.ExecuteTaskSync(finalCtx, client, header, inputs) + } + + // Use async agent client + client, err := p.getAsyncAgentClient(ctx, agent) + if err != nil { + return nil, nil, err + } + request := &admin.CreateTaskRequest{Inputs: inputs, Template: taskTemplate, OutputPrefix: outputPrefix, TaskExecutionMetadata: &taskExecutionMetadata} + res, err := client.CreateTask(finalCtx, request) if err != nil { return nil, nil, err } @@ -118,8 +123,70 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR }, nil, nil } -func (p Plugin) ExecuteTaskSync(ctx context.Context, taskCtx webapi.TaskExecutionContextReader) (webapi.ResourceMeta, webapi.Resource, error) { - return nil, nil, nil +func (p Plugin) ExecuteTaskSync( + ctx context.Context, + client service.SyncAgentServiceClient, + header *admin.CreateRequestHeader, + inputs *flyteIdl.LiteralMap, +) (webapi.ResourceMeta, webapi.Resource, error) { + stream, err := client.ExecuteTaskSync(ctx) + if err != nil { + return nil, nil, err + } + waitChan := make(chan struct{}) + resourceChan := make(chan *admin.Resource) + + go func() { + in, err := stream.Recv() + if err == io.EOF { + // read done. + close(waitChan) + return + } + if err != nil { + logger.Errorf(ctx, "Error reading from stream: %v", err) + } + header := in.GetHeader() + resource := header.GetResource() + + for { + in, err := stream.Recv() + if err == io.EOF { + // read done. + resourceChan <- resource + close(waitChan) + return + } + if err != nil { + logger.Errorf(ctx, "Error reading from stream: %v", err) + } + literals := in.GetOutputs().GetLiterals() + logger.Infof(ctx, "Got literals: %v", literals) + // TODO: how to combine the literals? + // log.Printf("Got message %s at point(%d, %d)", in.Message, in.Location.Latitude, in.Location.Longitude) + } + }() + headerProto := &admin.ExecuteTaskSyncRequest{ + Part: &admin.ExecuteTaskSyncRequest_Header{ + Header: header, + }, + } + + err = stream.Send(headerProto) + if err == nil { + inputsProto := &admin.ExecuteTaskSyncRequest{ + Part: &admin.ExecuteTaskSyncRequest_Inputs{ + Inputs: inputs, + }, + } + err = stream.Send(inputsProto) + } + + stream.CloseSend() + resource := <-resourceChan + <-waitChan + + return nil, resource, err } func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest webapi.Resource, err error) { @@ -217,6 +284,19 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase return core.PhaseInfoUndefined, pluginErrors.Errorf(core.SystemErrorCode, "unknown execution state [%v].", resource.State) } +func (p Plugin) getSyncAgentClient(ctx context.Context, agent *Agent) (service.SyncAgentServiceClient, error) { + client, ok := p.cs.syncAgentClients[agent.Endpoint] + if !ok { + conn, err := getGrpcConnection(ctx, agent) + if err != nil { + return nil, fmt.Errorf("failed to get grpc connection with error: %v", err) + } + client = service.NewSyncAgentServiceClient(conn) + p.cs.syncAgentClients[agent.Endpoint] = client + } + return client, nil +} + func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *Agent) (service.AsyncAgentServiceClient, error) { client, ok := p.cs.asyncAgentClients[agent.Endpoint] if !ok { @@ -241,7 +321,7 @@ func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, resource Res return nil } - var opReader io.OutputReader + var opReader flyteIO.OutputReader if resource.Outputs != nil { logger.Debugf(ctx, "Agent returned an output.") opReader = ioutils.NewInMemoryOutputReader(resource.Outputs, nil, nil) From e1fa3ec752caaf264b6a6f74ee8e37baf1a3708f Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 9 Feb 2024 10:35:59 -0800 Subject: [PATCH 09/35] Deprecate state Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 1 + flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 31 ++++++++++--------- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 6 ++-- flyteidl/protos/flyteidl/admin/agent.proto | 1 + 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 729b13e4ae..7774be9dcc 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -16,6 +16,7 @@ import { ExecutionMetricResult } from "../core/metrics_pb.js"; * The state of the execution is used to control its visibility in the UI/CLI. * * @generated from enum flyteidl.admin.State + * @deprecated */ export enum State { /** diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index ad440d373c..e65449eeee 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -24,6 +24,8 @@ const ( ) // The state of the execution is used to control its visibility in the UI/CLI. +// +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. type State int32 const ( @@ -1883,25 +1885,26 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x5e, 0x0a, 0x05, + 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, - 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x42, 0xb6, 0x01, 0x0a, - 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, - 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, + 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index 0946b6af93..0e2b74ea12 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -30,6 +30,8 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nAgentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _STATE._options = None + _STATE._serialized_options = b'\030\001' _TASKEXECUTIONMETADATA_LABELSENTRY._options = None _TASKEXECUTIONMETADATA_LABELSENTRY._serialized_options = b'8\001' _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._options = None @@ -39,7 +41,7 @@ _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' _globals['_STATE']._serialized_start=3982 - _globals['_STATE']._serialized_end=4076 + _globals['_STATE']._serialized_end=4080 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 2ace924118..b852ec9bcc 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -14,6 +14,7 @@ import "google/protobuf/timestamp.proto"; // The state of the execution is used to control its visibility in the UI/CLI. enum State { + option deprecated = true; RETRYABLE_FAILURE = 0; PERMANENT_FAILURE = 1; PENDING = 2; From 6513ab59086a50f45d48d3ddb06eb3bd40631a70 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 9 Feb 2024 10:36:41 -0800 Subject: [PATCH 10/35] lint Signed-off-by: Kevin Su --- flyteidl/protos/flyteidl/admin/agent.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index b852ec9bcc..60ddc08949 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -231,4 +231,4 @@ message GetTaskLogsResponse { GetTaskLogsResponseHeader header = 1; GetTaskLogsResponseBody body = 2; } -} \ No newline at end of file +} From 047e576f7ea0e18f7b75811cf9245fb6436a0743 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 12 Feb 2024 17:04:49 -0800 Subject: [PATCH 11/35] wip Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 8 +- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 205 +++++++++--------- .../gen/pb-go/flyteidl/service/agent.pb.go | 58 ++--- .../gateway/flyteidl/service/agent.pb.gw.go | 60 ++++- .../flyteidl/service/agent.swagger.json | 14 +- flyteidl/gen/pb-js/flyteidl.d.ts | 8 +- flyteidl/gen/pb-js/flyteidl.js | 22 +- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 44 ++-- .../pb_python/flyteidl/admin/agent_pb2.pyi | 8 +- .../pb_python/flyteidl/service/agent_pb2.py | 6 +- flyteidl/gen/pb_rust/flyteidl.admin.rs | 6 +- flyteidl/protos/flyteidl/admin/agent.proto | 4 +- flyteidl/protos/flyteidl/service/agent.proto | 2 +- 13 files changed, 249 insertions(+), 196 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 7774be9dcc..738f5816a6 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -836,11 +836,11 @@ export class TaskType extends Message { */ export class GetAgentRequest extends Message { /** - * The name of the agent. + * A predefined yet extensible Task type identifier. * - * @generated from field: string name = 1; + * @generated from field: flyteidl.admin.TaskType task_type = 1; */ - name = ""; + taskType?: TaskType; constructor(data?: PartialMessage) { super(); @@ -850,7 +850,7 @@ export class GetAgentRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetAgentRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "message", T: TaskType }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAgentRequest { diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index e65449eeee..677b23bede 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -1056,8 +1056,8 @@ type GetAgentRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // The name of the agent. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` } func (x *GetAgentRequest) Reset() { @@ -1092,11 +1092,11 @@ func (*GetAgentRequest) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{14} } -func (x *GetAgentRequest) GetName() string { +func (x *GetAgentRequest) GetTaskType() *TaskType { if x != nil { - return x.Name + return x.TaskType } - return "" + return nil } // A response containing an agent. @@ -1822,89 +1822,91 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, - 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3f, + 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, + 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, + 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, + 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, + 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, - 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, - 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, - 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, + 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, + 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, - 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, - 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, - 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, - 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, - 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, + 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, + 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, + 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, + 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, + 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, + 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, + 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1985,21 +1987,22 @@ var file_flyteidl_admin_agent_proto_depIdxs = []int32{ 33, // 21: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase 14, // 22: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType - 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 14, // 26: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType - 34, // 27: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp - 34, // 28: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp - 35, // 29: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 36, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType - 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader - 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody - 34, // [34:34] is the sub-list for method output_type - 34, // [34:34] is the sub-list for method input_type - 34, // [34:34] is the sub-list for extension type_name - 34, // [34:34] is the sub-list for extension extendee - 0, // [0:34] is the sub-list for field type_name + 14, // 24: flyteidl.admin.GetAgentRequest.task_type:type_name -> flyteidl.admin.TaskType + 13, // 25: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 26: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent + 14, // 27: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 34, // 28: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp + 34, // 29: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp + 35, // 30: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration + 36, // 31: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 32: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 33: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 34: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 35, // [35:35] is the sub-list for method output_type + 35, // [35:35] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name } func init() { file_flyteidl_admin_agent_proto_init() } diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go index a95e0f58e1..95fe368f9b 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -93,35 +93,37 @@ var file_flyteidl_service_agent_proto_rawDesc = []byte{ 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, - 0x61, 0x7d, 0x30, 0x01, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, - 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x61, 0x7d, 0x30, 0x01, 0x32, 0x8f, 0x02, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, 0x01, + 0x0a, 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, - 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, - 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, + 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, + 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var file_flyteidl_service_agent_proto_goTypes = []interface{}{ diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go index 2256d6f411..522664f301 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go @@ -505,6 +505,10 @@ func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runt } +var ( + filter_AgentMetadataService_GetAgent_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} +) + func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq extAdmin.GetAgentRequest var metadata runtime.ServerMetadata @@ -516,14 +520,31 @@ func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["name"] + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") } - protoReq.Name, err = runtime.String(val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AgentMetadataService_GetAgent_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -542,14 +563,31 @@ func local_request_AgentMetadataService_GetAgent_0(ctx context.Context, marshale _ = err ) - val, ok = pathParams["name"] + val, ok = pathParams["task_type.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") } - protoReq.Name, err = runtime.String(val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AgentMetadataService_GetAgent_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } msg, err := server.GetAgent(ctx, &protoReq) @@ -721,7 +759,7 @@ func RegisterAgentMetadataServiceHandlerServer(ctx context.Context, mux *runtime inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{task_type.name}/{task_type.version}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1056,7 +1094,7 @@ func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{task_type.name}/{task_type.version}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1098,7 +1136,7 @@ func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime } var ( - pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "agent", "name"}, "")) + pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "agent", "task_type.name", "task_type.version"}, "")) pattern_AgentMetadataService_ListAgents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "agents"}, "")) ) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 2499181e7c..390b528515 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -350,7 +350,7 @@ ] } }, - "/api/v1/agent/{name}": { + "/api/v1/agent/{task_type.name}/{task_type.version}": { "get": { "summary": "Fetch a :ref:`ref_flyteidl.admin.Agent` definition.", "operationId": "AgentMetadataService_GetAgent", @@ -370,11 +370,19 @@ }, "parameters": [ { - "name": "name", - "description": "The name of the agent.", + "name": "task_type.name", + "description": "The name of the task type.", "in": "path", "required": true, "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" } ], "tags": [ diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 8166820ec3..50c665ce6e 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9730,8 +9730,8 @@ export namespace flyteidl { /** Properties of a GetAgentRequest. */ interface IGetAgentRequest { - /** GetAgentRequest name */ - name?: (string|null); + /** GetAgentRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); } /** Represents a GetAgentRequest. */ @@ -9743,8 +9743,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetAgentRequest); - /** GetAgentRequest name. */ - public name: string; + /** GetAgentRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); /** * Creates a new GetAgentRequest instance using the specified properties. diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 4ef642bbd6..bdc963f942 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -23816,7 +23816,7 @@ * Properties of a GetAgentRequest. * @memberof flyteidl.admin * @interface IGetAgentRequest - * @property {string|null} [name] GetAgentRequest name + * @property {flyteidl.admin.ITaskType|null} [taskType] GetAgentRequest taskType */ /** @@ -23835,12 +23835,12 @@ } /** - * GetAgentRequest name. - * @member {string} name + * GetAgentRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType * @memberof flyteidl.admin.GetAgentRequest * @instance */ - GetAgentRequest.prototype.name = ""; + GetAgentRequest.prototype.taskType = null; /** * Creates a new GetAgentRequest instance using the specified properties. @@ -23866,8 +23866,8 @@ GetAgentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; @@ -23890,7 +23890,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23911,9 +23911,11 @@ GetAgentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } return null; }; diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index 0e2b74ea12..f966cdde8b 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"H\n\x0fGetAgentRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -40,8 +40,8 @@ _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=3982 - _globals['_STATE']._serialized_end=4080 + _globals['_STATE']._serialized_start=4017 + _globals['_STATE']._serialized_end=4115 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 @@ -77,23 +77,23 @@ _globals['_TASKTYPE']._serialized_start=2908 _globals['_TASKTYPE']._serialized_end=2964 _globals['_GETAGENTREQUEST']._serialized_start=2966 - _globals['_GETAGENTREQUEST']._serialized_end=3003 - _globals['_GETAGENTRESPONSE']._serialized_start=3005 - _globals['_GETAGENTRESPONSE']._serialized_end=3068 - _globals['_LISTAGENTSREQUEST']._serialized_start=3070 - _globals['_LISTAGENTSREQUEST']._serialized_end=3089 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3091 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3158 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3161 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3463 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3465 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3553 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3556 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3712 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3714 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3763 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3765 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3816 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=3819 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=3980 + _globals['_GETAGENTREQUEST']._serialized_end=3038 + _globals['_GETAGENTRESPONSE']._serialized_start=3040 + _globals['_GETAGENTRESPONSE']._serialized_end=3103 + _globals['_LISTAGENTSREQUEST']._serialized_start=3105 + _globals['_LISTAGENTSREQUEST']._serialized_end=3124 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3126 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3193 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3196 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3498 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3500 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3588 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3591 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3747 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3749 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3798 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3800 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3851 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=3854 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=4015 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 230de87c79..329d7abaf0 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -185,10 +185,10 @@ class TaskType(_message.Message): def __init__(self, name: _Optional[str] = ..., version: _Optional[int] = ...) -> None: ... class GetAgentRequest(_message.Message): - __slots__ = ["name"] - NAME_FIELD_NUMBER: _ClassVar[int] - name: str - def __init__(self, name: _Optional[str] = ...) -> None: ... + __slots__ = ["task_type"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + task_type: TaskType + def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... class GetAgentResponse(_message.Message): __slots__ = ["agent"] diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py index eca6cb8da8..fca7c2fa2a 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -15,7 +15,7 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xc3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xc3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\x8f\x02\n\x14\x41gentMetadataService\x12\x89\x01\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/api/v1/agent/{task_type.name}/{task_type.version}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -37,7 +37,7 @@ _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._options = None _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._serialized_options = b'\202\323\344\223\002N\022L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}' _AGENTMETADATASERVICE.methods_by_name['GetAgent']._options = None - _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\002\026\022\024/api/v1/agent/{name}' + _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\0024\0222/api/v1/agent/{task_type.name}/{task_type.version}' _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None _AGENTMETADATASERVICE.methods_by_name['ListAgents']._serialized_options = b'\202\323\344\223\002\020\022\016/api/v1/agents' _globals['_SYNCAGENTSERVICE']._serialized_start=109 @@ -45,5 +45,5 @@ _globals['_ASYNCAGENTSERVICE']._serialized_start=273 _globals['_ASYNCAGENTSERVICE']._serialized_end=1108 _globals['_AGENTMETADATASERVICE']._serialized_start=1111 - _globals['_AGENTMETADATASERVICE']._serialized_end=1351 + _globals['_AGENTMETADATASERVICE']._serialized_end=1382 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 7be2118618..10f72e2909 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -208,9 +208,9 @@ pub struct TaskType { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAgentRequest { - /// The name of the agent. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="1")] + pub task_type: ::core::option::Option, } /// A response containing an agent. #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 60ddc08949..24e7a46fe9 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -161,8 +161,8 @@ message TaskType { // A request to get an agent. message GetAgentRequest { - // The name of the agent. - string name = 1; + // A predefined yet extensible Task type identifier. + TaskType task_type = 1; } // A response containing an agent. diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index e1300bd08a..2ccd749528 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -66,7 +66,7 @@ service AgentMetadataService { // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. rpc GetAgent (flyteidl.admin.GetAgentRequest) returns (flyteidl.admin.GetAgentResponse){ option (google.api.http) = { - get: "/api/v1/agent/{name}" + get: "/api/v1/agent/{task_type.name}/{task_type.version}" }; }; From adc38cddccc514d20d241d1605bbf1f5c4662f45 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 12 Feb 2024 22:25:12 -0800 Subject: [PATCH 12/35] make generatre Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 14df9327fa..4f7ee0d0e1 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -94,7 +94,7 @@ func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) // Ensure that the old configuration is backward compatible for taskType, agentID := range cfg.AgentForTaskTypes { - agentRegistry[taskType] = map[int32]*Agent{0: cfg.Agents[agentID]} + agentRegistry[taskType] = map[int32]*Agent{defaultTaskTypeVersion: cfg.Agents[agentID]} } if len(cfg.DefaultAgent.Endpoint) != 0 { From f87481d9935d60c86ea5f1ad29a17d637021d121 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 12 Feb 2024 23:44:06 -0800 Subject: [PATCH 13/35] make generatre Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 8 +- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 205 +++++++++--------- .../gen/pb-go/flyteidl/service/agent.pb.go | 58 +++-- .../gateway/flyteidl/service/agent.pb.gw.go | 60 +---- .../flyteidl/service/agent.swagger.json | 14 +- flyteidl/gen/pb-js/flyteidl.d.ts | 8 +- flyteidl/gen/pb-js/flyteidl.js | 22 +- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 44 ++-- .../pb_python/flyteidl/admin/agent_pb2.pyi | 8 +- .../pb_python/flyteidl/service/agent_pb2.py | 6 +- flyteidl/gen/pb_rust/flyteidl.admin.rs | 6 +- flyteidl/protos/flyteidl/admin/agent.proto | 4 +- flyteidl/protos/flyteidl/service/agent.proto | 2 +- 13 files changed, 196 insertions(+), 249 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 738f5816a6..7774be9dcc 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -836,11 +836,11 @@ export class TaskType extends Message { */ export class GetAgentRequest extends Message { /** - * A predefined yet extensible Task type identifier. + * The name of the agent. * - * @generated from field: flyteidl.admin.TaskType task_type = 1; + * @generated from field: string name = 1; */ - taskType?: TaskType; + name = ""; constructor(data?: PartialMessage) { super(); @@ -850,7 +850,7 @@ export class GetAgentRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetAgentRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "message", T: TaskType }, + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetAgentRequest { diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index 677b23bede..e65449eeee 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -1056,8 +1056,8 @@ type GetAgentRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // The name of the agent. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *GetAgentRequest) Reset() { @@ -1092,11 +1092,11 @@ func (*GetAgentRequest) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{14} } -func (x *GetAgentRequest) GetTaskType() *TaskType { +func (x *GetAgentRequest) GetName() string { if x != nil { - return x.TaskType + return x.Name } - return nil + return "" } // A response containing an agent. @@ -1822,91 +1822,89 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x3f, - 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, - 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, - 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, - 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, - 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, - 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, - 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, + 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, - 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, - 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, + 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, + 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, + 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, + 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, - 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, - 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, - 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, - 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, - 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, - 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, - 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, - 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, - 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, - 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, + 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, + 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, + 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -1987,22 +1985,21 @@ var file_flyteidl_admin_agent_proto_depIdxs = []int32{ 33, // 21: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase 14, // 22: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType - 14, // 24: flyteidl.admin.GetAgentRequest.task_type:type_name -> flyteidl.admin.TaskType - 13, // 25: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 13, // 26: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 14, // 27: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType - 34, // 28: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp - 34, // 29: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp - 35, // 30: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 36, // 31: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 32: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType - 22, // 33: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader - 23, // 34: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody - 35, // [35:35] is the sub-list for method output_type - 35, // [35:35] is the sub-list for method input_type - 35, // [35:35] is the sub-list for extension type_name - 35, // [35:35] is the sub-list for extension extendee - 0, // [0:35] is the sub-list for field type_name + 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent + 14, // 26: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 34, // 27: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp + 34, // 28: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp + 35, // 29: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration + 36, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name } func init() { file_flyteidl_admin_agent_proto_init() } diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go index 95fe368f9b..a95e0f58e1 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -93,37 +93,35 @@ var file_flyteidl_service_agent_proto_rawDesc = []byte{ 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, - 0x61, 0x7d, 0x30, 0x01, 0x32, 0x8f, 0x02, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, 0x01, - 0x0a, 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, + 0x61, 0x7d, 0x30, 0x01, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, + 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, - 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x16, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, - 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, - 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, + 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var file_flyteidl_service_agent_proto_goTypes = []interface{}{ diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go index 522664f301..2256d6f411 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go @@ -505,10 +505,6 @@ func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runt } -var ( - filter_AgentMetadataService_GetAgent_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} -) - func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq extAdmin.GetAgentRequest var metadata runtime.ServerMetadata @@ -520,31 +516,14 @@ func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] + val, ok = pathParams["name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + protoReq.Name, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AgentMetadataService_GetAgent_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -563,31 +542,14 @@ func local_request_AgentMetadataService_GetAgent_0(ctx context.Context, marshale _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + protoReq.Name, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AgentMetadataService_GetAgent_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) } msg, err := server.GetAgent(ctx, &protoReq) @@ -759,7 +721,7 @@ func RegisterAgentMetadataServiceHandlerServer(ctx context.Context, mux *runtime inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{task_type.name}/{task_type.version}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1094,7 +1056,7 @@ func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{task_type.name}/{task_type.version}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -1136,7 +1098,7 @@ func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime } var ( - pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "agent", "task_type.name", "task_type.version"}, "")) + pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "agent", "name"}, "")) pattern_AgentMetadataService_ListAgents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "agents"}, "")) ) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 390b528515..2499181e7c 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -350,7 +350,7 @@ ] } }, - "/api/v1/agent/{task_type.name}/{task_type.version}": { + "/api/v1/agent/{name}": { "get": { "summary": "Fetch a :ref:`ref_flyteidl.admin.Agent` definition.", "operationId": "AgentMetadataService_GetAgent", @@ -370,19 +370,11 @@ }, "parameters": [ { - "name": "task_type.name", - "description": "The name of the task type.", + "name": "name", + "description": "The name of the agent.", "in": "path", "required": true, "type": "string" - }, - { - "name": "task_type.version", - "description": "The version of the task type.", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" } ], "tags": [ diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 089c711bab..d38b14dc94 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9873,8 +9873,8 @@ export namespace flyteidl { /** Properties of a GetAgentRequest. */ interface IGetAgentRequest { - /** GetAgentRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetAgentRequest name */ + name?: (string|null); } /** Represents a GetAgentRequest. */ @@ -9886,8 +9886,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetAgentRequest); - /** GetAgentRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetAgentRequest name. */ + public name: string; /** * Creates a new GetAgentRequest instance using the specified properties. diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 90c235e35c..9179d0bd30 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -24176,7 +24176,7 @@ * Properties of a GetAgentRequest. * @memberof flyteidl.admin * @interface IGetAgentRequest - * @property {flyteidl.admin.ITaskType|null} [taskType] GetAgentRequest taskType + * @property {string|null} [name] GetAgentRequest name */ /** @@ -24195,12 +24195,12 @@ } /** - * GetAgentRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetAgentRequest name. + * @member {string} name * @memberof flyteidl.admin.GetAgentRequest * @instance */ - GetAgentRequest.prototype.taskType = null; + GetAgentRequest.prototype.name = ""; /** * Creates a new GetAgentRequest instance using the specified properties. @@ -24226,8 +24226,8 @@ GetAgentRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; @@ -24250,7 +24250,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -24271,11 +24271,9 @@ GetAgentRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index f966cdde8b..0e2b74ea12 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"H\n\x0fGetAgentRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -40,8 +40,8 @@ _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=4017 - _globals['_STATE']._serialized_end=4115 + _globals['_STATE']._serialized_start=3982 + _globals['_STATE']._serialized_end=4080 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 @@ -77,23 +77,23 @@ _globals['_TASKTYPE']._serialized_start=2908 _globals['_TASKTYPE']._serialized_end=2964 _globals['_GETAGENTREQUEST']._serialized_start=2966 - _globals['_GETAGENTREQUEST']._serialized_end=3038 - _globals['_GETAGENTRESPONSE']._serialized_start=3040 - _globals['_GETAGENTRESPONSE']._serialized_end=3103 - _globals['_LISTAGENTSREQUEST']._serialized_start=3105 - _globals['_LISTAGENTSREQUEST']._serialized_end=3124 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3126 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3193 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3196 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3498 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3500 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3588 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3591 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3747 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3749 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3798 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3800 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3851 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=3854 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=4015 + _globals['_GETAGENTREQUEST']._serialized_end=3003 + _globals['_GETAGENTRESPONSE']._serialized_start=3005 + _globals['_GETAGENTRESPONSE']._serialized_end=3068 + _globals['_LISTAGENTSREQUEST']._serialized_start=3070 + _globals['_LISTAGENTSREQUEST']._serialized_end=3089 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3091 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3158 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3161 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3463 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3465 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3553 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3556 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3712 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3714 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3763 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3765 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3816 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=3819 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=3980 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 329d7abaf0..230de87c79 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -185,10 +185,10 @@ class TaskType(_message.Message): def __init__(self, name: _Optional[str] = ..., version: _Optional[int] = ...) -> None: ... class GetAgentRequest(_message.Message): - __slots__ = ["task_type"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - task_type: TaskType - def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + __slots__ = ["name"] + NAME_FIELD_NUMBER: _ClassVar[int] + name: str + def __init__(self, name: _Optional[str] = ...) -> None: ... class GetAgentResponse(_message.Message): __slots__ = ["agent"] diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py index fca7c2fa2a..eca6cb8da8 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -15,7 +15,7 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xc3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\x8f\x02\n\x14\x41gentMetadataService\x12\x89\x01\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/api/v1/agent/{task_type.name}/{task_type.version}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xc3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -37,7 +37,7 @@ _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._options = None _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._serialized_options = b'\202\323\344\223\002N\022L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}' _AGENTMETADATASERVICE.methods_by_name['GetAgent']._options = None - _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\0024\0222/api/v1/agent/{task_type.name}/{task_type.version}' + _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\002\026\022\024/api/v1/agent/{name}' _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None _AGENTMETADATASERVICE.methods_by_name['ListAgents']._serialized_options = b'\202\323\344\223\002\020\022\016/api/v1/agents' _globals['_SYNCAGENTSERVICE']._serialized_start=109 @@ -45,5 +45,5 @@ _globals['_ASYNCAGENTSERVICE']._serialized_start=273 _globals['_ASYNCAGENTSERVICE']._serialized_end=1108 _globals['_AGENTMETADATASERVICE']._serialized_start=1111 - _globals['_AGENTMETADATASERVICE']._serialized_end=1382 + _globals['_AGENTMETADATASERVICE']._serialized_end=1351 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 10f72e2909..7be2118618 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -208,9 +208,9 @@ pub struct TaskType { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetAgentRequest { - /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="1")] - pub task_type: ::core::option::Option, + /// The name of the agent. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, } /// A response containing an agent. #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 24e7a46fe9..60ddc08949 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -161,8 +161,8 @@ message TaskType { // A request to get an agent. message GetAgentRequest { - // A predefined yet extensible Task type identifier. - TaskType task_type = 1; + // The name of the agent. + string name = 1; } // A response containing an agent. diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index 2ccd749528..85245c64c5 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -66,7 +66,7 @@ service AgentMetadataService { // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. rpc GetAgent (flyteidl.admin.GetAgentRequest) returns (flyteidl.admin.GetAgentResponse){ option (google.api.http) = { - get: "/api/v1/agent/{task_type.name}/{task_type.version}" + get: "/api/v1/agent/{name}" }; }; From 3fa96373834e7907e9c7f34f2c5b222c478af456 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 13 Feb 2024 00:53:26 -0800 Subject: [PATCH 14/35] more tests Signed-off-by: Kevin Su --- .../tasks/plugins/webapi/agent/client_test.go | 13 ++++ .../plugins/webapi/agent/integration_test.go | 75 ++++++++++++++++--- .../go/tasks/plugins/webapi/agent/plugin.go | 17 ++++- .../tasks/plugins/webapi/agent/plugin_test.go | 2 +- 4 files changed, 94 insertions(+), 13 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go index d68811d037..7d87e4770b 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go @@ -9,10 +9,23 @@ import ( func TestInitializeClients(t *testing.T) { cfg := defaultConfig + cfg.Agents = map[string]*Agent{ + "x": { + Endpoint: "x", + }, + "y": { + Endpoint: "y", + IsSync: true, + }, + } ctx := context.Background() err := SetConfig(&cfg) assert.NoError(t, err) cs, err := initializeClients(ctx) assert.NoError(t, err) assert.NotNil(t, cs) + _, ok := cs.syncAgentClients["y"] + assert.True(t, ok) + _, ok = cs.asyncAgentClients["x"] + assert.True(t, ok) } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index 8876a79554..7bdafeba0e 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "io" "sync/atomic" "testing" "time" @@ -72,8 +73,8 @@ func TestEndToEnd(t *testing.T) { } basePrefix := storage.DataReference("fake://bucket/prefix/") - t.Run("run a job", func(t *testing.T) { - pluginEntry := pluginmachinery.CreateRemotePlugin(newMockAgentPlugin()) + t.Run("run an async task", func(t *testing.T) { + pluginEntry := pluginmachinery.CreateRemotePlugin(newMockAsyncAgentPlugin()) plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("test1")) assert.NoError(t, err) @@ -85,8 +86,18 @@ func TestEndToEnd(t *testing.T) { assert.Equal(t, true, phase.Phase().IsSuccess()) }) + t.Run("run a sync task", func(t *testing.T) { + pluginEntry := pluginmachinery.CreateRemotePlugin(newMockSyncAgentPlugin()) + plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("test1")) + assert.NoError(t, err) + + template.Type = "openai" + phase := tests.RunPluginEndToEndTest(t, plugin, &template, inputs, nil, nil, iter) + assert.Equal(t, true, phase.Phase().IsSuccess()) + }) + t.Run("failed to create a job", func(t *testing.T) { - agentPlugin := newMockAgentPlugin() + agentPlugin := newMockAsyncAgentPlugin() agentPlugin.PluginLoader = func(ctx context.Context, iCtx webapi.PluginSetupContext) (webapi.AsyncPlugin, error) { return Plugin{ metricScope: iCtx.MetricsScope(), @@ -124,7 +135,7 @@ func TestEndToEnd(t *testing.T) { tr.OnRead(context.Background()).Return(nil, fmt.Errorf("read fail")) tCtx.OnTaskReader().Return(tr) - agentPlugin := newMockAgentPlugin() + agentPlugin := newMockAsyncAgentPlugin() pluginEntry := pluginmachinery.CreateRemotePlugin(agentPlugin) plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("test3")) assert.NoError(t, err) @@ -145,7 +156,7 @@ func TestEndToEnd(t *testing.T) { inputReader.OnGetMatch(mock.Anything).Return(nil, fmt.Errorf("read fail")) tCtx.OnInputReader().Return(inputReader) - agentPlugin := newMockAgentPlugin() + agentPlugin := newMockAsyncAgentPlugin() pluginEntry := pluginmachinery.CreateRemotePlugin(agentPlugin) plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("test4")) assert.NoError(t, err) @@ -224,8 +235,7 @@ func getTaskContext(t *testing.T) *pluginCoreMocks.TaskExecutionContext { return tCtx } -func newMockAgentPlugin() webapi.PluginEntry { - +func newMockAsyncAgentPlugin() webapi.PluginEntry { asyncAgentClient := new(agentMocks.AsyncAgentServiceClient) mockCreateRequestMatcher := mock.MatchedBy(func(request *admin.CreateTaskRequest) bool { @@ -239,7 +249,7 @@ func newMockAgentPlugin() webapi.PluginEntry { return request.GetTaskType().GetName() == "spark" }) asyncAgentClient.On("GetTask", mock.Anything, mockGetRequestMatcher).Return( - &admin.GetTaskResponse{Resource: &admin.Resource{State: admin.State_SUCCEEDED}}, nil) + &admin.GetTaskResponse{Resource: &admin.Resource{Phase: flyteIdlCore.TaskExecution_SUCCEEDED}}, nil) asyncAgentClient.On("DeleteTask", mock.Anything, mock.Anything).Return( &admin.DeleteTaskResponse{}, nil) @@ -249,7 +259,7 @@ func newMockAgentPlugin() webapi.PluginEntry { return webapi.PluginEntry{ ID: "agent-service", - SupportedTaskTypes: []core.TaskType{"bigquery_query_job_task", "spark", "api_task"}, + SupportedTaskTypes: []core.TaskType{"bigquery_query_job_task", "spark"}, PluginLoader: func(ctx context.Context, iCtx webapi.PluginSetupContext) (webapi.AsyncPlugin, error) { return Plugin{ metricScope: iCtx.MetricsScope(), @@ -264,6 +274,53 @@ func newMockAgentPlugin() webapi.PluginEntry { } } +func newMockSyncAgentPlugin() webapi.PluginEntry { + syncAgentClient := new(agentMocks.SyncAgentServiceClient) + resource := &admin.Resource{Phase: flyteIdlCore.TaskExecution_SUCCEEDED} + outputs, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) + + stream := new(agentMocks.SyncAgentService_ExecuteTaskSyncClient) + stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ + Res: &admin.ExecuteTaskSyncResponse_Header{ + Header: &admin.ExecuteTaskSyncResponseHeader{ + Resource: resource, + }, + }, + }, nil).Once() + + stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ + Res: &admin.ExecuteTaskSyncResponse_Outputs{ + Outputs: outputs, + }, + }, nil).Once() + + stream.OnRecv().Return(nil, io.EOF).Once() + stream.OnSendMatch(mock.Anything).Return(nil) + stream.OnCloseSendMatch(mock.Anything).Return(nil) + + syncAgentClient.OnExecuteTaskSyncMatch(mock.Anything).Return(stream, nil) + + cfg := defaultConfig + cfg.DefaultAgent.Endpoint = defaultAgentEndpoint + cfg.DefaultAgent.IsSync = true + + return webapi.PluginEntry{ + ID: "agent-service", + SupportedTaskTypes: []core.TaskType{"openai"}, + PluginLoader: func(ctx context.Context, iCtx webapi.PluginSetupContext) (webapi.AsyncPlugin, error) { + return Plugin{ + metricScope: iCtx.MetricsScope(), + cfg: &cfg, + cs: &ClientSet{ + syncAgentClients: map[string]service.SyncAgentServiceClient{ + defaultAgentEndpoint: syncAgentClient, + }, + }, + }, nil + }, + } +} + func newFakeSetupContext(name string) *pluginCoreMocks.SetupContext { fakeResourceRegistrar := pluginCoreMocks.ResourceRegistrar{} fakeResourceRegistrar.On("RegisterResourceQuota", mock.Anything, mock.Anything, mock.Anything).Return(nil) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 79aca4c98c..37ed1986c0 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -135,6 +135,7 @@ func (p Plugin) ExecuteTaskSync( } waitChan := make(chan struct{}) resourceChan := make(chan *admin.Resource) + outputsChan := make(chan *flyteIdl.LiteralMap) go func() { in, err := stream.Recv() @@ -148,19 +149,21 @@ func (p Plugin) ExecuteTaskSync( } header := in.GetHeader() resource := header.GetResource() + var literals *flyteIdl.LiteralMap for { in, err := stream.Recv() if err == io.EOF { // read done. resourceChan <- resource + outputsChan <- literals close(waitChan) return } if err != nil { logger.Errorf(ctx, "Error reading from stream: %v", err) } - literals := in.GetOutputs().GetLiterals() + literals = in.GetOutputs() logger.Infof(ctx, "Got literals: %v", literals) // TODO: how to combine the literals? // log.Printf("Got message %s at point(%d, %d)", in.Message, in.Location.Latitude, in.Location.Longitude) @@ -182,11 +185,19 @@ func (p Plugin) ExecuteTaskSync( err = stream.Send(inputsProto) } - stream.CloseSend() + if err := stream.CloseSend(); err != nil { + return nil, nil, err + } resource := <-resourceChan + outputs := <-outputsChan <-waitChan - return nil, resource, err + return nil, ResourceWrapper{ + Phase: resource.Phase, + Outputs: outputs, + Message: resource.Message, + LogLinks: resource.LogLinks, + }, err } func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest webapi.Resource, err error) { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go index 68c326c99d..b8f4b9ea39 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go @@ -52,7 +52,7 @@ func TestPlugin(t *testing.T) { }) t.Run("test newAgentPlugin", func(t *testing.T) { - p := newMockAgentPlugin() + p := newMockAsyncAgentPlugin() assert.NotNil(t, p) assert.Equal(t, "agent-service", p.ID) assert.NotNil(t, p.PluginLoader) From 19e63a5efa226ad81c4d6c5a2017b8d52bdc6f03 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 13 Feb 2024 01:22:45 -0800 Subject: [PATCH 15/35] lint Signed-off-by: Kevin Su --- .../plugins/webapi/agent/integration_test.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index 7bdafeba0e..3d32708b9b 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -75,7 +75,7 @@ func TestEndToEnd(t *testing.T) { t.Run("run an async task", func(t *testing.T) { pluginEntry := pluginmachinery.CreateRemotePlugin(newMockAsyncAgentPlugin()) - plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("test1")) + plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("async task")) assert.NoError(t, err) phase := tests.RunPluginEndToEndTest(t, plugin, &template, inputs, nil, nil, iter) @@ -88,11 +88,20 @@ func TestEndToEnd(t *testing.T) { t.Run("run a sync task", func(t *testing.T) { pluginEntry := pluginmachinery.CreateRemotePlugin(newMockSyncAgentPlugin()) - plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("test1")) + plugin, err := pluginEntry.LoadPlugin(context.TODO(), newFakeSetupContext("sync task")) assert.NoError(t, err) template.Type = "openai" - phase := tests.RunPluginEndToEndTest(t, plugin, &template, inputs, nil, nil, iter) + template.Interface = &flyteIdlCore.TypedInterface{ + Outputs: &flyteIdlCore.VariableMap{ + Variables: map[string]*flyteIdlCore.Variable{ + "x": {Type: &flyteIdlCore.LiteralType{Type: &flyteIdlCore.LiteralType_Simple{Simple: flyteIdlCore.SimpleType_INTEGER}}}, + }, + }, + } + expectedOutputs, err := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) + assert.NoError(t, err) + phase := tests.RunPluginEndToEndTest(t, plugin, &template, inputs, expectedOutputs, nil, iter) assert.Equal(t, true, phase.Phase().IsSuccess()) }) From cae27fdd61b940766d049001c002147c6f3db980 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 13 Feb 2024 01:38:39 -0800 Subject: [PATCH 16/35] merged literal Signed-off-by: Kevin Su --- .../plugins/webapi/agent/integration_test.go | 20 ++++++++++++---- .../go/tasks/plugins/webapi/agent/plugin.go | 23 ++++++++++++++----- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index 3d32708b9b..eacb9532d5 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -95,11 +95,16 @@ func TestEndToEnd(t *testing.T) { template.Interface = &flyteIdlCore.TypedInterface{ Outputs: &flyteIdlCore.VariableMap{ Variables: map[string]*flyteIdlCore.Variable{ - "x": {Type: &flyteIdlCore.LiteralType{Type: &flyteIdlCore.LiteralType_Simple{Simple: flyteIdlCore.SimpleType_INTEGER}}}, + "x": {Type: &flyteIdlCore.LiteralType{ + Type: &flyteIdlCore.LiteralType_Simple{ + Simple: flyteIdlCore.SimpleType_INTEGER, + }, + }, + }, }, }, } - expectedOutputs, err := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) + expectedOutputs, err := coreutils.MakeLiteralMap(map[string]interface{}{"x": []interface{}{1, 2}}) assert.NoError(t, err) phase := tests.RunPluginEndToEndTest(t, plugin, &template, inputs, expectedOutputs, nil, iter) assert.Equal(t, true, phase.Phase().IsSuccess()) @@ -286,7 +291,8 @@ func newMockAsyncAgentPlugin() webapi.PluginEntry { func newMockSyncAgentPlugin() webapi.PluginEntry { syncAgentClient := new(agentMocks.SyncAgentServiceClient) resource := &admin.Resource{Phase: flyteIdlCore.TaskExecution_SUCCEEDED} - outputs, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) + output1, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) + output2, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 2}) stream := new(agentMocks.SyncAgentService_ExecuteTaskSyncClient) stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ @@ -299,7 +305,13 @@ func newMockSyncAgentPlugin() webapi.PluginEntry { stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ Res: &admin.ExecuteTaskSyncResponse_Outputs{ - Outputs: outputs, + Outputs: output1, + }, + }, nil).Once() + + stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ + Res: &admin.ExecuteTaskSyncResponse_Outputs{ + Outputs: output2, }, }, nil).Once() diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 37ed1986c0..f6359c24f4 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -149,24 +149,35 @@ func (p Plugin) ExecuteTaskSync( } header := in.GetHeader() resource := header.GetResource() - var literals *flyteIdl.LiteralMap + mergedLiteralMap := &flyteIdl.LiteralMap{Literals: map[string]*flyteIdl.Literal{}} for { in, err := stream.Recv() if err == io.EOF { // read done. resourceChan <- resource - outputsChan <- literals + outputsChan <- mergedLiteralMap close(waitChan) return } if err != nil { logger.Errorf(ctx, "Error reading from stream: %v", err) } - literals = in.GetOutputs() - logger.Infof(ctx, "Got literals: %v", literals) - // TODO: how to combine the literals? - // log.Printf("Got message %s at point(%d, %d)", in.Message, in.Location.Latitude, in.Location.Longitude) + literalMap := in.GetOutputs() + for k, lt := range literalMap.Literals { + _, ok := mergedLiteralMap.Literals[k] + if !ok { + mergedLiteralMap.Literals[k] = &flyteIdl.Literal{ + Value: &flyteIdl.Literal_Collection{ + Collection: &flyteIdl.LiteralCollection{ + Literals: []*flyteIdl.Literal{lt}, + }, + }, + } + } else { + mergedLiteralMap.Literals[k].GetCollection().Literals = append(mergedLiteralMap.Literals[k].GetCollection().Literals, lt) + } + } } }() headerProto := &admin.ExecuteTaskSyncRequest{ From 206b351de0c1f533ea1596d191443826cb77856c Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 13 Feb 2024 16:24:25 -0800 Subject: [PATCH 17/35] nit Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts | 2 +- flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py | 6 +++--- flyteidl/protos/flyteidl/service/agent.proto | 2 +- flyteplugins/go/tasks/plugins/webapi/agent/plugin.go | 3 +++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts index 33eb50a044..cec0c0aabc 100644 --- a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts +++ b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts @@ -7,7 +7,7 @@ import { CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskRes import { MethodKind } from "@bufbuild/protobuf"; /** - * AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + * SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. * * @generated from service flyteidl.service.SyncAgentService */ diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py index 6c3d46998f..8436a9d17f 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py @@ -6,7 +6,7 @@ class SyncAgentServiceStub(object): - """AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + """SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. """ def __init__(self, channel): @@ -23,7 +23,7 @@ def __init__(self, channel): class SyncAgentServiceServicer(object): - """AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + """SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. """ def ExecuteTaskSync(self, request_iterator, context): @@ -49,7 +49,7 @@ def add_SyncAgentServiceServicer_to_server(servicer, server): # This class is part of an EXPERIMENTAL API. class SyncAgentService(object): - """AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + """SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. """ @staticmethod diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index 85245c64c5..91d0ab17e1 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -6,7 +6,7 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/servi import "google/api/annotations.proto"; import "flyteidl/admin/agent.proto"; -// AgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. +// SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. service SyncAgentService { // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. rpc ExecuteTaskSync (stream flyteidl.admin.ExecuteTaskSyncRequest) returns (stream flyteidl.admin.ExecuteTaskSyncResponse){ diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index f6359c24f4..20804ef6f5 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -164,6 +164,9 @@ func (p Plugin) ExecuteTaskSync( logger.Errorf(ctx, "Error reading from stream: %v", err) } literalMap := in.GetOutputs() + if literalMap == nil { + continue + } for k, lt := range literalMap.Literals { _, ok := mergedLiteralMap.Literals[k] if !ok { From c4a5c2bada1548950991e5de83a62f0074267d1b Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Sun, 18 Feb 2024 03:56:56 -0800 Subject: [PATCH 18/35] make generate Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 8 - flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 284 +++++++++--------- .../flyteidl/service/agent.swagger.json | 8 - flyteidl/gen/pb-js/flyteidl.d.ts | 6 - flyteidl/gen/pb-js/flyteidl.js | 27 -- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 68 ++--- .../pb_python/flyteidl/admin/agent_pb2.pyi | 6 +- flyteidl/gen/pb_rust/flyteidl.admin.rs | 3 - flyteidl/gen/pb_rust/flyteidl.core.rs | 4 +- flyteidl/gen/pb_rust/flyteidl.event.rs | 2 +- flyteidl/protos/flyteidl/admin/agent.proto | 3 - 11 files changed, 174 insertions(+), 245 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 7774be9dcc..e9af33c4d2 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -529,13 +529,6 @@ export class GetTaskResponse extends Message { */ resource?: Resource; - /** - * log information for the task execution - * - * @generated from field: repeated flyteidl.core.TaskLog log_links = 2; - */ - logLinks: TaskLog[] = []; - constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -545,7 +538,6 @@ export class GetTaskResponse extends Message { static readonly typeName = "flyteidl.admin.GetTaskResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "resource", kind: "message", T: Resource }, - { no: 2, name: "log_links", kind: "message", T: TaskLog, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskResponse { diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index e65449eeee..b938c006db 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -686,8 +686,6 @@ type GetTaskResponse struct { unknownFields protoimpl.UnknownFields Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` - // log information for the task execution - LogLinks []*core.TaskLog `protobuf:"bytes,2,rep,name=log_links,json=logLinks,proto3" json:"log_links,omitempty"` } func (x *GetTaskResponse) Reset() { @@ -729,13 +727,6 @@ func (x *GetTaskResponse) GetResource() *Resource { return nil } -func (x *GetTaskResponse) GetLogLinks() []*core.TaskLog { - if x != nil { - return x.LogLinks - } - return nil -} - type Resource struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1778,133 +1769,129 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x7c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x47, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, - 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, - 0x69, 0x6e, 0x6b, 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, - 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, - 0x22, 0x6f, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, - 0x61, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, - 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, - 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, - 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, + 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, + 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x09, + 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x6b, + 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, + 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x22, 0x6f, 0x0a, 0x11, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, - 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, - 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, + 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, + 0x73, 0x53, 0x79, 0x6e, 0x63, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, + 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, + 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, + 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, + 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, + 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, + 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, + 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, - 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, - 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, - 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, - 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, - 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, + 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, + 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, + 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, + 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, + 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, + 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, + 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, + 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1978,28 +1965,27 @@ var file_flyteidl_admin_agent_proto_depIdxs = []int32{ 30, // 14: flyteidl.admin.ExecuteTaskSyncResponse.outputs:type_name -> flyteidl.core.LiteralMap 14, // 15: flyteidl.admin.GetTaskRequest.task_type:type_name -> flyteidl.admin.TaskType 10, // 16: flyteidl.admin.GetTaskResponse.resource:type_name -> flyteidl.admin.Resource - 32, // 17: flyteidl.admin.GetTaskResponse.log_links:type_name -> flyteidl.core.TaskLog - 0, // 18: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State - 30, // 19: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap - 32, // 20: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog - 33, // 21: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase - 14, // 22: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType - 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType - 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 14, // 26: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType - 34, // 27: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp - 34, // 28: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp - 35, // 29: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 36, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType - 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader - 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody - 34, // [34:34] is the sub-list for method output_type - 34, // [34:34] is the sub-list for method input_type - 34, // [34:34] is the sub-list for extension type_name - 34, // [34:34] is the sub-list for extension extendee - 0, // [0:34] is the sub-list for field type_name + 0, // 17: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State + 30, // 18: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap + 32, // 19: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog + 33, // 20: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase + 14, // 21: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 22: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType + 13, // 23: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 24: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent + 14, // 25: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 34, // 26: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp + 34, // 27: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp + 35, // 28: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration + 36, // 29: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 30: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 31: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 32: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 33, // [33:33] is the sub-list for method output_type + 33, // [33:33] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name } func init() { file_flyteidl_admin_agent_proto_init() } diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 2499181e7c..b8e1774d40 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -735,14 +735,6 @@ "properties": { "resource": { "$ref": "#/definitions/adminResource" - }, - "log_links": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreTaskLog" - }, - "title": "log information for the task execution" } }, "description": "Response to get an individual task resource." diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index d38b14dc94..9bbeff1ed1 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9515,9 +9515,6 @@ export namespace flyteidl { /** GetTaskResponse resource */ resource?: (flyteidl.admin.IResource|null); - - /** GetTaskResponse logLinks */ - logLinks?: (flyteidl.core.ITaskLog[]|null); } /** Represents a GetTaskResponse. */ @@ -9532,9 +9529,6 @@ export namespace flyteidl { /** GetTaskResponse resource. */ public resource?: (flyteidl.admin.IResource|null); - /** GetTaskResponse logLinks. */ - public logLinks: flyteidl.core.ITaskLog[]; - /** * Creates a new GetTaskResponse instance using the specified properties. * @param [properties] Properties to set diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 9179d0bd30..85db8a926d 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -23326,7 +23326,6 @@ * @memberof flyteidl.admin * @interface IGetTaskResponse * @property {flyteidl.admin.IResource|null} [resource] GetTaskResponse resource - * @property {Array.|null} [logLinks] GetTaskResponse logLinks */ /** @@ -23338,7 +23337,6 @@ * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set */ function GetTaskResponse(properties) { - this.logLinks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23353,14 +23351,6 @@ */ GetTaskResponse.prototype.resource = null; - /** - * GetTaskResponse logLinks. - * @member {Array.} logLinks - * @memberof flyteidl.admin.GetTaskResponse - * @instance - */ - GetTaskResponse.prototype.logLinks = $util.emptyArray; - /** * Creates a new GetTaskResponse instance using the specified properties. * @function create @@ -23387,9 +23377,6 @@ writer = $Writer.create(); if (message.resource != null && message.hasOwnProperty("resource")) $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.logLinks != null && message.logLinks.length) - for (var i = 0; i < message.logLinks.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logLinks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -23414,11 +23401,6 @@ case 1: message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); break; - case 2: - if (!(message.logLinks && message.logLinks.length)) - message.logLinks = []; - message.logLinks.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -23443,15 +23425,6 @@ if (error) return "resource." + error; } - if (message.logLinks != null && message.hasOwnProperty("logLinks")) { - if (!Array.isArray(message.logLinks)) - return "logLinks: array expected"; - for (var i = 0; i < message.logLinks.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logLinks[i]); - if (error) - return "logLinks." + error; - } - } return null; }; diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index 0e2b74ea12..565a8f3c5e 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -40,8 +40,8 @@ _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=3982 - _globals['_STATE']._serialized_end=4080 + _globals['_STATE']._serialized_start=3929 + _globals['_STATE']._serialized_end=4027 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 @@ -65,35 +65,35 @@ _globals['_GETTASKREQUEST']._serialized_start=2154 _globals['_GETTASKREQUEST']._serialized_end=2262 _globals['_GETTASKRESPONSE']._serialized_start=2264 - _globals['_GETTASKRESPONSE']._serialized_end=2388 - _globals['_RESOURCE']._serialized_start=2391 - _globals['_RESOURCE']._serialized_end=2640 - _globals['_DELETETASKREQUEST']._serialized_start=2642 - _globals['_DELETETASKREQUEST']._serialized_end=2753 - _globals['_DELETETASKRESPONSE']._serialized_start=2755 - _globals['_DELETETASKRESPONSE']._serialized_end=2775 - _globals['_AGENT']._serialized_start=2778 - _globals['_AGENT']._serialized_end=2906 - _globals['_TASKTYPE']._serialized_start=2908 - _globals['_TASKTYPE']._serialized_end=2964 - _globals['_GETAGENTREQUEST']._serialized_start=2966 - _globals['_GETAGENTREQUEST']._serialized_end=3003 - _globals['_GETAGENTRESPONSE']._serialized_start=3005 - _globals['_GETAGENTRESPONSE']._serialized_end=3068 - _globals['_LISTAGENTSREQUEST']._serialized_start=3070 - _globals['_LISTAGENTSREQUEST']._serialized_end=3089 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3091 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3158 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3161 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3463 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3465 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3553 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3556 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3712 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3714 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3763 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3765 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3816 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=3819 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=3980 + _globals['_GETTASKRESPONSE']._serialized_end=2335 + _globals['_RESOURCE']._serialized_start=2338 + _globals['_RESOURCE']._serialized_end=2587 + _globals['_DELETETASKREQUEST']._serialized_start=2589 + _globals['_DELETETASKREQUEST']._serialized_end=2700 + _globals['_DELETETASKRESPONSE']._serialized_start=2702 + _globals['_DELETETASKRESPONSE']._serialized_end=2722 + _globals['_AGENT']._serialized_start=2725 + _globals['_AGENT']._serialized_end=2853 + _globals['_TASKTYPE']._serialized_start=2855 + _globals['_TASKTYPE']._serialized_end=2911 + _globals['_GETAGENTREQUEST']._serialized_start=2913 + _globals['_GETAGENTREQUEST']._serialized_end=2950 + _globals['_GETAGENTRESPONSE']._serialized_start=2952 + _globals['_GETAGENTRESPONSE']._serialized_end=3015 + _globals['_LISTAGENTSREQUEST']._serialized_start=3017 + _globals['_LISTAGENTSREQUEST']._serialized_end=3036 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3038 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3105 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3108 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3410 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3412 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3500 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3503 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3659 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3661 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3710 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3712 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3763 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=3766 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=3927 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 230de87c79..8a75f17649 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -133,12 +133,10 @@ class GetTaskRequest(_message.Message): def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... class GetTaskResponse(_message.Message): - __slots__ = ["resource", "log_links"] + __slots__ = ["resource"] RESOURCE_FIELD_NUMBER: _ClassVar[int] - LOG_LINKS_FIELD_NUMBER: _ClassVar[int] resource: Resource - log_links: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... + def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... class Resource(_message.Message): __slots__ = ["state", "outputs", "message", "log_links", "phase"] diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 7be2118618..65ed7ced72 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -134,9 +134,6 @@ pub struct GetTaskRequest { pub struct GetTaskResponse { #[prost(message, optional, tag="1")] pub resource: ::core::option::Option, - /// log information for the task execution - #[prost(message, repeated, tag="2")] - pub log_links: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs index faf3fbd600..4997cbe724 100644 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -259,9 +259,9 @@ pub struct OutputReference { // @workflow // def wf(): // o = t1() -// t2(o.a\["b"][0\]) +// t2(o.a["b"][0]) // ``` -// the output reference t2 binds to has a list of PromiseAttribute ["a", "b", 0] +// the output reference t2 binds to has a list of PromiseAttribute \["a", "b", 0\] #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs index 703e5c9e9c..a9f4b224ae 100644 --- a/flyteidl/gen/pb_rust/flyteidl.event.rs +++ b/flyteidl/gen/pb_rust/flyteidl.event.rs @@ -49,7 +49,7 @@ pub struct NodeExecutionEvent { /// by the executor of the node. #[prost(message, optional, tag="4")] pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// [To be deprecated] Specifies which task (if any) launched this node. + /// \[To be deprecated\] Specifies which task (if any) launched this node. #[prost(message, optional, tag="9")] pub parent_task_metadata: ::core::option::Option, /// Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 60ddc08949..e6e8078b7b 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -105,9 +105,6 @@ message GetTaskRequest { // Response to get an individual task resource. message GetTaskResponse { Resource resource = 1; - - // log information for the task execution - repeated core.TaskLog log_links = 2; } message Resource { From 600896e3cee1b3548e0637ab72701d1fbcb2851b Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 19 Feb 2024 22:16:27 -0800 Subject: [PATCH 19/35] wip Signed-off-by: Kevin Su --- charts/flyte-core/templates/_helpers.tpl | 22 - flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 75 +++- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 393 +++++++++++------- .../flyteidl/service/agent.swagger.json | 38 +- flyteidl/gen/pb-js/flyteidl.d.ts | 70 +++- flyteidl/gen/pb-js/flyteidl.js | 209 +++++++--- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 84 ++-- .../pb_python/flyteidl/admin/agent_pb2.pyi | 50 ++- flyteidl/gen/pb_rust/flyteidl.admin.rs | 38 +- flyteidl/protos/flyteidl/admin/agent.proto | 21 +- .../go/tasks/plugins/webapi/agent/client.go | 49 ++- .../go/tasks/plugins/webapi/agent/plugin.go | 98 ++--- 12 files changed, 719 insertions(+), 428 deletions(-) diff --git a/charts/flyte-core/templates/_helpers.tpl b/charts/flyte-core/templates/_helpers.tpl index 2c3b059841..9fb1b3da80 100755 --- a/charts/flyte-core/templates/_helpers.tpl +++ b/charts/flyte-core/templates/_helpers.tpl @@ -102,28 +102,6 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{- end -}} -{{- define "flyteagent.name" -}} -flyteagent -{{- end -}} - -{{- define "flyteagent.selectorLabels" -}} -app.kubernetes.io/name: {{ template "flyteagent.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end -}} - -{{- define "flyteagent.labels" -}} -{{ include "flyteagent.selectorLabels" . }} -helm.sh/chart: {{ include "flyte.chart" . }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end -}} - -{{- define "flyteagent.podLabels" -}} -{{ include "flyteagent.labels" . }} -{{- with .Values.flyteagent.podLabels }} -{{ toYaml . }} -{{- end }} -{{- end -}} - {{- define "flytepropeller.name" -}} flytepropeller {{- end -}} diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index e9af33c4d2..6d95bdb760 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -478,9 +478,10 @@ export class GetTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 1; + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated */ - taskType?: TaskType; + deprecatedTaskType = ""; /** * Metadata about the resource to be pass to the agent. @@ -489,6 +490,13 @@ export class GetTaskRequest extends Message { */ resourceMeta = new Uint8Array(0); + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 3; + */ + taskType?: TaskType; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -497,8 +505,9 @@ export class GetTaskRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "message", T: TaskType }, + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "task_type", kind: "message", T: TaskType }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskRequest { @@ -640,9 +649,10 @@ export class DeleteTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 1; + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated */ - taskType?: TaskType; + deprecatedTaskType = ""; /** * Metadata about the resource to be pass to the agent. @@ -651,6 +661,13 @@ export class DeleteTaskRequest extends Message { */ resourceMeta = new Uint8Array(0); + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 3; + */ + taskType?: TaskType; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -659,8 +676,9 @@ export class DeleteTaskRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.DeleteTaskRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "message", T: TaskType }, + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "task_type", kind: "message", T: TaskType }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteTaskRequest { @@ -729,9 +747,10 @@ export class Agent extends Message { /** * SupportedTaskTypes are the types of the tasks that the agent can handle. * - * @generated from field: repeated flyteidl.admin.TaskType supported_task_types = 2; + * @generated from field: repeated flyteidl.admin.TaskType deprecated_supported_task_types = 2 [deprecated = true]; + * @deprecated */ - supportedTaskTypes: TaskType[] = []; + deprecatedSupportedTaskTypes: TaskType[] = []; /** * IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their @@ -744,6 +763,13 @@ export class Agent extends Message { */ isSync = false; + /** + * SupportedTaskTypes are the types of the tasks that the agent can handle. + * + * @generated from field: repeated flyteidl.admin.TaskType supported_task_types = 4; + */ + supportedTaskTypes: TaskType[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -753,8 +779,9 @@ export class Agent extends Message { static readonly typeName = "flyteidl.admin.Agent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, + { no: 2, name: "deprecated_supported_task_types", kind: "message", T: TaskType, repeated: true }, { no: 3, name: "is_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Agent { @@ -982,9 +1009,10 @@ export class GetTaskMetricsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 1; + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated */ - taskType?: TaskType; + deprecatedTaskType = ""; /** * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). @@ -1022,6 +1050,13 @@ export class GetTaskMetricsRequest extends Message { */ step?: Duration; + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 7; + */ + taskType?: TaskType; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1030,12 +1065,13 @@ export class GetTaskMetricsRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskMetricsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "message", T: TaskType }, + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "queries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "start_time", kind: "message", T: Timestamp }, { no: 5, name: "end_time", kind: "message", T: Timestamp }, { no: 6, name: "step", kind: "message", T: Duration }, + { no: 7, name: "task_type", kind: "message", T: TaskType }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskMetricsRequest { @@ -1105,9 +1141,10 @@ export class GetTaskLogsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 1; + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated */ - taskType?: TaskType; + deprecatedTaskType = ""; /** * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). @@ -1131,6 +1168,13 @@ export class GetTaskLogsRequest extends Message { */ token = ""; + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 5; + */ + taskType?: TaskType; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -1139,10 +1183,11 @@ export class GetTaskLogsRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskLogsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "message", T: TaskType }, + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "lines", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "task_type", kind: "message", T: TaskType }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsRequest { diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index b938c006db..2f906f9555 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -628,9 +628,13 @@ type GetTaskRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` // Metadata about the resource to be pass to the agent. ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` } func (x *GetTaskRequest) Reset() { @@ -665,11 +669,12 @@ func (*GetTaskRequest) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{7} } -func (x *GetTaskRequest) GetTaskType() *TaskType { +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *GetTaskRequest) GetDeprecatedTaskType() string { if x != nil { - return x.TaskType + return x.DeprecatedTaskType } - return nil + return "" } func (x *GetTaskRequest) GetResourceMeta() []byte { @@ -679,6 +684,13 @@ func (x *GetTaskRequest) GetResourceMeta() []byte { return nil } +func (x *GetTaskRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + // Response to get an individual task resource. type GetTaskResponse struct { state protoimpl.MessageState @@ -823,9 +835,13 @@ type DeleteTaskRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` // Metadata about the resource to be pass to the agent. ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` } func (x *DeleteTaskRequest) Reset() { @@ -860,11 +876,12 @@ func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{10} } -func (x *DeleteTaskRequest) GetTaskType() *TaskType { +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *DeleteTaskRequest) GetDeprecatedTaskType() string { if x != nil { - return x.TaskType + return x.DeprecatedTaskType } - return nil + return "" } func (x *DeleteTaskRequest) GetResourceMeta() []byte { @@ -874,6 +891,13 @@ func (x *DeleteTaskRequest) GetResourceMeta() []byte { return nil } +func (x *DeleteTaskRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + // Response to delete a task. type DeleteTaskResponse struct { state protoimpl.MessageState @@ -922,13 +946,17 @@ type Agent struct { // Name is the developer-assigned name of the agent. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // SupportedTaskTypes are the types of the tasks that the agent can handle. - SupportedTaskTypes []*TaskType `protobuf:"bytes,2,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedSupportedTaskTypes []*TaskType `protobuf:"bytes,2,rep,name=deprecated_supported_task_types,json=deprecatedSupportedTaskTypes,proto3" json:"deprecated_supported_task_types,omitempty"` // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their // results synchronously when called by propeller. Given that sync agents can affect the performance // of the system, it's important to enforce strict timeout policies. // An Async agent, on the other hand, is required to be able to identify jobs by an // identifier and query for job statuses as jobs progress. IsSync bool `protobuf:"varint,3,opt,name=is_sync,json=isSync,proto3" json:"is_sync,omitempty"` + // SupportedTaskTypes are the types of the tasks that the agent can handle. + SupportedTaskTypes []*TaskType `protobuf:"bytes,4,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` } func (x *Agent) Reset() { @@ -970,9 +998,10 @@ func (x *Agent) GetName() string { return "" } -func (x *Agent) GetSupportedTaskTypes() []*TaskType { +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *Agent) GetDeprecatedSupportedTaskTypes() []*TaskType { if x != nil { - return x.SupportedTaskTypes + return x.DeprecatedSupportedTaskTypes } return nil } @@ -984,6 +1013,13 @@ func (x *Agent) GetIsSync() bool { return false } +func (x *Agent) GetSupportedTaskTypes() []*TaskType { + if x != nil { + return x.SupportedTaskTypes + } + return nil +} + type TaskType struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1232,7 +1268,9 @@ type GetTaskMetricsRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // The metrics to query. If empty, will return a default set of metrics. @@ -1244,6 +1282,8 @@ type GetTaskMetricsRequest struct { EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Query resolution step width in duration format or float number of seconds. Step *durationpb.Duration `protobuf:"bytes,6,opt,name=step,proto3" json:"step,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,7,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` } func (x *GetTaskMetricsRequest) Reset() { @@ -1278,11 +1318,12 @@ func (*GetTaskMetricsRequest) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{18} } -func (x *GetTaskMetricsRequest) GetTaskType() *TaskType { +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *GetTaskMetricsRequest) GetDeprecatedTaskType() string { if x != nil { - return x.TaskType + return x.DeprecatedTaskType } - return nil + return "" } func (x *GetTaskMetricsRequest) GetResourceMeta() []byte { @@ -1320,6 +1361,13 @@ func (x *GetTaskMetricsRequest) GetStep() *durationpb.Duration { return nil } +func (x *GetTaskMetricsRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + // A response containing a list of metrics for a task execution. type GetTaskMetricsResponse struct { state protoimpl.MessageState @@ -1376,7 +1424,9 @@ type GetTaskLogsRequest struct { unknownFields protoimpl.UnknownFields // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // Number of lines to return. @@ -1384,6 +1434,8 @@ type GetTaskLogsRequest struct { // In the case of multiple pages of results, the server-provided token can be used to fetch the next page // in a query. If there are no more results, this value will be empty. Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,5,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` } func (x *GetTaskLogsRequest) Reset() { @@ -1418,11 +1470,12 @@ func (*GetTaskLogsRequest) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{20} } -func (x *GetTaskLogsRequest) GetTaskType() *TaskType { +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *GetTaskLogsRequest) GetDeprecatedTaskType() string { if x != nil { - return x.TaskType + return x.DeprecatedTaskType } - return nil + return "" } func (x *GetTaskLogsRequest) GetResourceMeta() []byte { @@ -1446,6 +1499,13 @@ func (x *GetTaskLogsRequest) GetToken() string { return "" } +func (x *GetTaskLogsRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + type GetTaskLogsResponseHeader struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1762,136 +1822,156 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x73, 0x42, 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0x6c, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x73, 0x42, 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, + 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x47, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, - 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, - 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, - 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x09, - 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x6b, - 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, - 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x22, 0x6f, 0x0a, 0x11, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, - 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, - 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, - 0x73, 0x53, 0x79, 0x6e, 0x63, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, - 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x73, 0x22, 0xae, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x47, 0x0a, + 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, + 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, + 0x6c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, + 0x73, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, + 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, + 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, + 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xe5, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x63, + 0x0a, 0x1f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x1c, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x4a, 0x0a, 0x14, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, + 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, + 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, + 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, + 0x73, 0x74, 0x65, 0x70, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x58, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, - 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, - 0x65, 0x70, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, - 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, - 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x31, 0x0a, 0x19, 0x47, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, + 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, - 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, - 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, - 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, - 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, - 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, - 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, - 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, - 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, + 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, + 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, + 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, + 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, + 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, + 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, + 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1970,22 +2050,23 @@ var file_flyteidl_admin_agent_proto_depIdxs = []int32{ 32, // 19: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog 33, // 20: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase 14, // 21: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType - 14, // 22: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType - 13, // 23: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 13, // 24: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 14, // 25: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 22: flyteidl.admin.Agent.deprecated_supported_task_types:type_name -> flyteidl.admin.TaskType + 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType + 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent 34, // 26: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp 34, // 27: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp 35, // 28: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 36, // 29: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 30: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType - 22, // 31: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader - 23, // 32: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody - 33, // [33:33] is the sub-list for method output_type - 33, // [33:33] is the sub-list for method input_type - 33, // [33:33] is the sub-list for extension type_name - 33, // [33:33] is the sub-list for extension extendee - 0, // [0:33] is the sub-list for field type_name + 14, // 29: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 36, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name } func init() { file_flyteidl_admin_agent_proto_init() } diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 145f7dfd7a..7d68b08eff 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -107,6 +107,13 @@ "type": "string", "format": "byte" }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" + }, { "name": "lines", "description": "Number of lines to return.", @@ -171,6 +178,13 @@ "type": "string", "format": "byte" }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" + }, { "name": "queries", "description": "The metrics to query. If empty, will return a default set of metrics.\ne.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG", @@ -295,6 +309,13 @@ "required": true, "type": "string", "format": "byte" + }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -343,6 +364,13 @@ "required": true, "type": "string", "format": "byte" + }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -570,7 +598,7 @@ "type": "string", "description": "Name is the developer-assigned name of the agent." }, - "supported_task_types": { + "deprecated_supported_task_types": { "type": "array", "items": { "type": "object", @@ -581,6 +609,14 @@ "is_sync": { "type": "boolean", "description": "IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their\nresults synchronously when called by propeller. Given that sync agents can affect the performance\nof the system, it's important to enforce strict timeout policies.\nAn Async agent, on the other hand, is required to be able to identify jobs by an\nidentifier and query for job statuses as jobs progress." + }, + "supported_task_types": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminTaskType" + }, + "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." } }, "description": "A message containing the agent metadata." diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index c83b170437..540838e678 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9467,11 +9467,14 @@ export namespace flyteidl { /** Properties of a GetTaskRequest. */ interface IGetTaskRequest { - /** GetTaskRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); /** GetTaskRequest resourceMeta */ resourceMeta?: (Uint8Array|null); + + /** GetTaskRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); } /** Represents a GetTaskRequest. */ @@ -9483,12 +9486,15 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskRequest); - /** GetTaskRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskRequest deprecatedTaskType. */ + public deprecatedTaskType: string; /** GetTaskRequest resourceMeta. */ public resourceMeta: Uint8Array; + /** GetTaskRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + /** * Creates a new GetTaskRequest instance using the specified properties. * @param [properties] Properties to set @@ -9653,11 +9659,14 @@ export namespace flyteidl { /** Properties of a DeleteTaskRequest. */ interface IDeleteTaskRequest { - /** DeleteTaskRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** DeleteTaskRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); /** DeleteTaskRequest resourceMeta */ resourceMeta?: (Uint8Array|null); + + /** DeleteTaskRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); } /** Represents a DeleteTaskRequest. */ @@ -9669,12 +9678,15 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IDeleteTaskRequest); - /** DeleteTaskRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** DeleteTaskRequest deprecatedTaskType. */ + public deprecatedTaskType: string; /** DeleteTaskRequest resourceMeta. */ public resourceMeta: Uint8Array; + /** DeleteTaskRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + /** * Creates a new DeleteTaskRequest instance using the specified properties. * @param [properties] Properties to set @@ -9760,11 +9772,14 @@ export namespace flyteidl { /** Agent name */ name?: (string|null); - /** Agent supportedTaskTypes */ - supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); + /** Agent deprecatedSupportedTaskTypes */ + deprecatedSupportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); /** Agent isSync */ isSync?: (boolean|null); + + /** Agent supportedTaskTypes */ + supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); } /** Represents an Agent. */ @@ -9779,12 +9794,15 @@ export namespace flyteidl { /** Agent name. */ public name: string; - /** Agent supportedTaskTypes. */ - public supportedTaskTypes: flyteidl.admin.ITaskType[]; + /** Agent deprecatedSupportedTaskTypes. */ + public deprecatedSupportedTaskTypes: flyteidl.admin.ITaskType[]; /** Agent isSync. */ public isSync: boolean; + /** Agent supportedTaskTypes. */ + public supportedTaskTypes: flyteidl.admin.ITaskType[]; + /** * Creates a new Agent instance using the specified properties. * @param [properties] Properties to set @@ -10081,8 +10099,8 @@ export namespace flyteidl { /** Properties of a GetTaskMetricsRequest. */ interface IGetTaskMetricsRequest { - /** GetTaskMetricsRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskMetricsRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); /** GetTaskMetricsRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -10098,6 +10116,9 @@ export namespace flyteidl { /** GetTaskMetricsRequest step */ step?: (google.protobuf.IDuration|null); + + /** GetTaskMetricsRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); } /** Represents a GetTaskMetricsRequest. */ @@ -10109,8 +10130,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskMetricsRequest); - /** GetTaskMetricsRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskMetricsRequest deprecatedTaskType. */ + public deprecatedTaskType: string; /** GetTaskMetricsRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -10127,6 +10148,9 @@ export namespace flyteidl { /** GetTaskMetricsRequest step. */ public step?: (google.protobuf.IDuration|null); + /** GetTaskMetricsRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + /** * Creates a new GetTaskMetricsRequest instance using the specified properties. * @param [properties] Properties to set @@ -10215,8 +10239,8 @@ export namespace flyteidl { /** Properties of a GetTaskLogsRequest. */ interface IGetTaskLogsRequest { - /** GetTaskLogsRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskLogsRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); /** GetTaskLogsRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -10226,6 +10250,9 @@ export namespace flyteidl { /** GetTaskLogsRequest token */ token?: (string|null); + + /** GetTaskLogsRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); } /** Represents a GetTaskLogsRequest. */ @@ -10237,8 +10264,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskLogsRequest); - /** GetTaskLogsRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskLogsRequest deprecatedTaskType. */ + public deprecatedTaskType: string; /** GetTaskLogsRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -10249,6 +10276,9 @@ export namespace flyteidl { /** GetTaskLogsRequest token. */ public token: string; + /** GetTaskLogsRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + /** * Creates a new GetTaskLogsRequest instance using the specified properties. * @param [properties] Properties to set diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index fa18984ed7..a56afb88fc 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -23232,8 +23232,9 @@ * Properties of a GetTaskRequest. * @memberof flyteidl.admin * @interface IGetTaskRequest - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskRequest taskType + * @property {string|null} [deprecatedTaskType] GetTaskRequest deprecatedTaskType * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskRequest taskType */ /** @@ -23252,12 +23253,12 @@ } /** - * GetTaskRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetTaskRequest deprecatedTaskType. + * @member {string} deprecatedTaskType * @memberof flyteidl.admin.GetTaskRequest * @instance */ - GetTaskRequest.prototype.taskType = null; + GetTaskRequest.prototype.deprecatedTaskType = ""; /** * GetTaskRequest resourceMeta. @@ -23267,6 +23268,14 @@ */ GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); + /** + * GetTaskRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.taskType = null; + /** * Creates a new GetTaskRequest instance using the specified properties. * @function create @@ -23291,10 +23300,12 @@ GetTaskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23317,11 +23328,14 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.deprecatedTaskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); break; + case 3: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -23341,14 +23355,17 @@ GetTaskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; if (message.taskType != null && message.hasOwnProperty("taskType")) { var error = $root.flyteidl.admin.TaskType.verify(message.taskType); if (error) return "taskType." + error; } - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; return null; }; @@ -23682,8 +23699,9 @@ * Properties of a DeleteTaskRequest. * @memberof flyteidl.admin * @interface IDeleteTaskRequest - * @property {flyteidl.admin.ITaskType|null} [taskType] DeleteTaskRequest taskType + * @property {string|null} [deprecatedTaskType] DeleteTaskRequest deprecatedTaskType * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta + * @property {flyteidl.admin.ITaskType|null} [taskType] DeleteTaskRequest taskType */ /** @@ -23702,12 +23720,12 @@ } /** - * DeleteTaskRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * DeleteTaskRequest deprecatedTaskType. + * @member {string} deprecatedTaskType * @memberof flyteidl.admin.DeleteTaskRequest * @instance */ - DeleteTaskRequest.prototype.taskType = null; + DeleteTaskRequest.prototype.deprecatedTaskType = ""; /** * DeleteTaskRequest resourceMeta. @@ -23717,6 +23735,14 @@ */ DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); + /** + * DeleteTaskRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.DeleteTaskRequest + * @instance + */ + DeleteTaskRequest.prototype.taskType = null; + /** * Creates a new DeleteTaskRequest instance using the specified properties. * @function create @@ -23741,10 +23767,12 @@ DeleteTaskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23767,11 +23795,14 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.deprecatedTaskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); break; + case 3: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -23791,14 +23822,17 @@ DeleteTaskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; if (message.taskType != null && message.hasOwnProperty("taskType")) { var error = $root.flyteidl.admin.TaskType.verify(message.taskType); if (error) return "taskType." + error; } - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; return null; }; @@ -23905,8 +23939,9 @@ * @memberof flyteidl.admin * @interface IAgent * @property {string|null} [name] Agent name - * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes + * @property {Array.|null} [deprecatedSupportedTaskTypes] Agent deprecatedSupportedTaskTypes * @property {boolean|null} [isSync] Agent isSync + * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes */ /** @@ -23918,6 +23953,7 @@ * @param {flyteidl.admin.IAgent=} [properties] Properties to set */ function Agent(properties) { + this.deprecatedSupportedTaskTypes = []; this.supportedTaskTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -23934,12 +23970,12 @@ Agent.prototype.name = ""; /** - * Agent supportedTaskTypes. - * @member {Array.} supportedTaskTypes + * Agent deprecatedSupportedTaskTypes. + * @member {Array.} deprecatedSupportedTaskTypes * @memberof flyteidl.admin.Agent * @instance */ - Agent.prototype.supportedTaskTypes = $util.emptyArray; + Agent.prototype.deprecatedSupportedTaskTypes = $util.emptyArray; /** * Agent isSync. @@ -23949,6 +23985,14 @@ */ Agent.prototype.isSync = false; + /** + * Agent supportedTaskTypes. + * @member {Array.} supportedTaskTypes + * @memberof flyteidl.admin.Agent + * @instance + */ + Agent.prototype.supportedTaskTypes = $util.emptyArray; + /** * Creates a new Agent instance using the specified properties. * @function create @@ -23975,11 +24019,14 @@ writer = $Writer.create(); if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) - for (var i = 0; i < message.supportedTaskTypes.length; ++i) - $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deprecatedSupportedTaskTypes != null && message.deprecatedSupportedTaskTypes.length) + for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) + $root.flyteidl.admin.TaskType.encode(message.deprecatedSupportedTaskTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.isSync != null && message.hasOwnProperty("isSync")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); + if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) + for (var i = 0; i < message.supportedTaskTypes.length; ++i) + $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -24005,13 +24052,18 @@ message.name = reader.string(); break; case 2: - if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) - message.supportedTaskTypes = []; - message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); + if (!(message.deprecatedSupportedTaskTypes && message.deprecatedSupportedTaskTypes.length)) + message.deprecatedSupportedTaskTypes = []; + message.deprecatedSupportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); break; case 3: message.isSync = reader.bool(); break; + case 4: + if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) + message.supportedTaskTypes = []; + message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -24034,6 +24086,18 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.deprecatedSupportedTaskTypes != null && message.hasOwnProperty("deprecatedSupportedTaskTypes")) { + if (!Array.isArray(message.deprecatedSupportedTaskTypes)) + return "deprecatedSupportedTaskTypes: array expected"; + for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) { + var error = $root.flyteidl.admin.TaskType.verify(message.deprecatedSupportedTaskTypes[i]); + if (error) + return "deprecatedSupportedTaskTypes." + error; + } + } + if (message.isSync != null && message.hasOwnProperty("isSync")) + if (typeof message.isSync !== "boolean") + return "isSync: boolean expected"; if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { if (!Array.isArray(message.supportedTaskTypes)) return "supportedTaskTypes: array expected"; @@ -24043,9 +24107,6 @@ return "supportedTaskTypes." + error; } } - if (message.isSync != null && message.hasOwnProperty("isSync")) - if (typeof message.isSync !== "boolean") - return "isSync: boolean expected"; return null; }; @@ -24620,12 +24681,13 @@ * Properties of a GetTaskMetricsRequest. * @memberof flyteidl.admin * @interface IGetTaskMetricsRequest - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskMetricsRequest taskType + * @property {string|null} [deprecatedTaskType] GetTaskMetricsRequest deprecatedTaskType * @property {Uint8Array|null} [resourceMeta] GetTaskMetricsRequest resourceMeta * @property {Array.|null} [queries] GetTaskMetricsRequest queries * @property {google.protobuf.ITimestamp|null} [startTime] GetTaskMetricsRequest startTime * @property {google.protobuf.ITimestamp|null} [endTime] GetTaskMetricsRequest endTime * @property {google.protobuf.IDuration|null} [step] GetTaskMetricsRequest step + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskMetricsRequest taskType */ /** @@ -24645,12 +24707,12 @@ } /** - * GetTaskMetricsRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetTaskMetricsRequest deprecatedTaskType. + * @member {string} deprecatedTaskType * @memberof flyteidl.admin.GetTaskMetricsRequest * @instance */ - GetTaskMetricsRequest.prototype.taskType = null; + GetTaskMetricsRequest.prototype.deprecatedTaskType = ""; /** * GetTaskMetricsRequest resourceMeta. @@ -24692,6 +24754,14 @@ */ GetTaskMetricsRequest.prototype.step = null; + /** + * GetTaskMetricsRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.taskType = null; + /** * Creates a new GetTaskMetricsRequest instance using the specified properties. * @function create @@ -24716,8 +24786,8 @@ GetTaskMetricsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); if (message.queries != null && message.queries.length) @@ -24729,6 +24799,8 @@ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.step != null && message.hasOwnProperty("step")) $root.google.protobuf.Duration.encode(message.step, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -24751,7 +24823,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.deprecatedTaskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); @@ -24770,6 +24842,9 @@ case 6: message.step = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; + case 7: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -24789,11 +24864,9 @@ GetTaskMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -24819,6 +24892,11 @@ if (error) return "step." + error; } + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } return null; }; @@ -24951,10 +25029,11 @@ * Properties of a GetTaskLogsRequest. * @memberof flyteidl.admin * @interface IGetTaskLogsRequest - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskLogsRequest taskType + * @property {string|null} [deprecatedTaskType] GetTaskLogsRequest deprecatedTaskType * @property {Uint8Array|null} [resourceMeta] GetTaskLogsRequest resourceMeta * @property {Long|null} [lines] GetTaskLogsRequest lines * @property {string|null} [token] GetTaskLogsRequest token + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskLogsRequest taskType */ /** @@ -24973,12 +25052,12 @@ } /** - * GetTaskLogsRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetTaskLogsRequest deprecatedTaskType. + * @member {string} deprecatedTaskType * @memberof flyteidl.admin.GetTaskLogsRequest * @instance */ - GetTaskLogsRequest.prototype.taskType = null; + GetTaskLogsRequest.prototype.deprecatedTaskType = ""; /** * GetTaskLogsRequest resourceMeta. @@ -25004,6 +25083,14 @@ */ GetTaskLogsRequest.prototype.token = ""; + /** + * GetTaskLogsRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.taskType = null; + /** * Creates a new GetTaskLogsRequest instance using the specified properties. * @function create @@ -25028,14 +25115,16 @@ GetTaskLogsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); if (message.lines != null && message.hasOwnProperty("lines")) writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.lines); if (message.token != null && message.hasOwnProperty("token")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -25058,7 +25147,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.deprecatedTaskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); @@ -25069,6 +25158,9 @@ case 4: message.token = reader.string(); break; + case 5: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -25088,11 +25180,9 @@ GetTaskLogsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -25102,6 +25192,11 @@ if (message.token != null && message.hasOwnProperty("token")) if (!$util.isString(message.token)) return "token: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } return null; }; diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index 565a8f3c5e..f6a2234de6 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"l\n\x0eGetTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"o\n\x11\x44\x65leteTaskRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"\x80\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12J\n\x14supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xae\x02\n\x15GetTaskMetricsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\x9c\x01\n\x12GetTaskLogsRequest\x12\x35\n\ttask_type\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\xa2\x01\n\x0eGetTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"\xa5\x01\n\x11\x44\x65leteTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"\x14\n\x12\x44\x65leteTaskResponse\"\xe5\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x63\n\x1f\x64\x65precated_supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeB\x02\x18\x01R\x1c\x64\x65precatedSupportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12J\n\x14supported_task_types\x18\x04 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xe4\x02\n\x15GetTaskMetricsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x35\n\ttask_type\x18\x07 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xd2\x01\n\x12GetTaskLogsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x35\n\ttask_type\x18\x05 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,10 +38,20 @@ _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' + _GETTASKREQUEST.fields_by_name['deprecated_task_type']._options = None + _GETTASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=3929 - _globals['_STATE']._serialized_end=4027 + _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._options = None + _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _AGENT.fields_by_name['deprecated_supported_task_types']._options = None + _AGENT.fields_by_name['deprecated_supported_task_types']._serialized_options = b'\030\001' + _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._options = None + _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._options = None + _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _globals['_STATE']._serialized_start=4248 + _globals['_STATE']._serialized_end=4346 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 @@ -62,38 +72,38 @@ _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_end=1989 _globals['_EXECUTETASKSYNCRESPONSE']._serialized_start=1992 _globals['_EXECUTETASKSYNCRESPONSE']._serialized_end=2152 - _globals['_GETTASKREQUEST']._serialized_start=2154 - _globals['_GETTASKREQUEST']._serialized_end=2262 - _globals['_GETTASKRESPONSE']._serialized_start=2264 - _globals['_GETTASKRESPONSE']._serialized_end=2335 - _globals['_RESOURCE']._serialized_start=2338 - _globals['_RESOURCE']._serialized_end=2587 - _globals['_DELETETASKREQUEST']._serialized_start=2589 - _globals['_DELETETASKREQUEST']._serialized_end=2700 - _globals['_DELETETASKRESPONSE']._serialized_start=2702 - _globals['_DELETETASKRESPONSE']._serialized_end=2722 - _globals['_AGENT']._serialized_start=2725 - _globals['_AGENT']._serialized_end=2853 - _globals['_TASKTYPE']._serialized_start=2855 - _globals['_TASKTYPE']._serialized_end=2911 - _globals['_GETAGENTREQUEST']._serialized_start=2913 - _globals['_GETAGENTREQUEST']._serialized_end=2950 - _globals['_GETAGENTRESPONSE']._serialized_start=2952 - _globals['_GETAGENTRESPONSE']._serialized_end=3015 - _globals['_LISTAGENTSREQUEST']._serialized_start=3017 - _globals['_LISTAGENTSREQUEST']._serialized_end=3036 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3038 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3105 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3108 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3410 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3412 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3500 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3503 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3659 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3661 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=3710 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=3712 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=3763 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=3766 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=3927 + _globals['_GETTASKREQUEST']._serialized_start=2155 + _globals['_GETTASKREQUEST']._serialized_end=2317 + _globals['_GETTASKRESPONSE']._serialized_start=2319 + _globals['_GETTASKRESPONSE']._serialized_end=2390 + _globals['_RESOURCE']._serialized_start=2393 + _globals['_RESOURCE']._serialized_end=2642 + _globals['_DELETETASKREQUEST']._serialized_start=2645 + _globals['_DELETETASKREQUEST']._serialized_end=2810 + _globals['_DELETETASKRESPONSE']._serialized_start=2812 + _globals['_DELETETASKRESPONSE']._serialized_end=2832 + _globals['_AGENT']._serialized_start=2835 + _globals['_AGENT']._serialized_end=3064 + _globals['_TASKTYPE']._serialized_start=3066 + _globals['_TASKTYPE']._serialized_end=3122 + _globals['_GETAGENTREQUEST']._serialized_start=3124 + _globals['_GETAGENTREQUEST']._serialized_end=3161 + _globals['_GETAGENTRESPONSE']._serialized_start=3163 + _globals['_GETAGENTRESPONSE']._serialized_end=3226 + _globals['_LISTAGENTSREQUEST']._serialized_start=3228 + _globals['_LISTAGENTSREQUEST']._serialized_end=3247 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3249 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3316 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3319 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3675 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3677 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3765 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3768 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3978 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3980 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4029 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4031 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4082 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=4085 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=4246 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 8a75f17649..9f08318518 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -125,12 +125,14 @@ class ExecuteTaskSyncResponse(_message.Message): def __init__(self, header: _Optional[_Union[ExecuteTaskSyncResponseHeader, _Mapping]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... class GetTaskRequest(_message.Message): - __slots__ = ["task_type", "resource_meta"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - task_type: TaskType + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str resource_meta: bytes - def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... class GetTaskResponse(_message.Message): __slots__ = ["resource"] @@ -153,26 +155,30 @@ class Resource(_message.Message): def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., message: _Optional[str] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ...) -> None: ... class DeleteTaskRequest(_message.Message): - __slots__ = ["task_type", "resource_meta"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - task_type: TaskType + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str resource_meta: bytes - def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... class DeleteTaskResponse(_message.Message): __slots__ = [] def __init__(self) -> None: ... class Agent(_message.Message): - __slots__ = ["name", "supported_task_types", "is_sync"] + __slots__ = ["name", "deprecated_supported_task_types", "is_sync", "supported_task_types"] NAME_FIELD_NUMBER: _ClassVar[int] - SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] + DEPRECATED_SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] IS_SYNC_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] name: str - supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] + deprecated_supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] is_sync: bool - def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ..., is_sync: bool = ...) -> None: ... + supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] + def __init__(self, name: _Optional[str] = ..., deprecated_supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ..., is_sync: bool = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... class TaskType(_message.Message): __slots__ = ["name", "version"] @@ -205,20 +211,22 @@ class ListAgentsResponse(_message.Message): def __init__(self, agents: _Optional[_Iterable[_Union[Agent, _Mapping]]] = ...) -> None: ... class GetTaskMetricsRequest(_message.Message): - __slots__ = ["task_type", "resource_meta", "queries", "start_time", "end_time", "step"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["deprecated_task_type", "resource_meta", "queries", "start_time", "end_time", "step", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] QUERIES_FIELD_NUMBER: _ClassVar[int] START_TIME_FIELD_NUMBER: _ClassVar[int] END_TIME_FIELD_NUMBER: _ClassVar[int] STEP_FIELD_NUMBER: _ClassVar[int] - task_type: TaskType + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str resource_meta: bytes queries: _containers.RepeatedScalarFieldContainer[str] start_time: _timestamp_pb2.Timestamp end_time: _timestamp_pb2.Timestamp step: _duration_pb2.Duration - def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... class GetTaskMetricsResponse(_message.Message): __slots__ = ["results"] @@ -227,16 +235,18 @@ class GetTaskMetricsResponse(_message.Message): def __init__(self, results: _Optional[_Iterable[_Union[_metrics_pb2.ExecutionMetricResult, _Mapping]]] = ...) -> None: ... class GetTaskLogsRequest(_message.Message): - __slots__ = ["task_type", "resource_meta", "lines", "token"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["deprecated_task_type", "resource_meta", "lines", "token", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] LINES_FIELD_NUMBER: _ClassVar[int] TOKEN_FIELD_NUMBER: _ClassVar[int] - task_type: TaskType + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str resource_meta: bytes lines: int token: str - def __init__(self, task_type: _Optional[_Union[TaskType, _Mapping]] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ...) -> None: ... + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... class GetTaskLogsResponseHeader(_message.Message): __slots__ = ["token"] diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 65ed7ced72..c2f5054b9a 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -122,11 +122,15 @@ pub mod execute_task_sync_response { #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTaskRequest { /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="1")] - pub task_type: ::core::option::Option, + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, /// Metadata about the resource to be pass to the agent. #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="3")] + pub task_type: ::core::option::Option, } /// Response to get an individual task resource. #[allow(clippy::derive_partial_eq_without_eq)] @@ -162,11 +166,15 @@ pub struct Resource { #[derive(Clone, PartialEq, ::prost::Message)] pub struct DeleteTaskRequest { /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="1")] - pub task_type: ::core::option::Option, + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, /// Metadata about the resource to be pass to the agent. #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="3")] + pub task_type: ::core::option::Option, } /// Response to delete a task. #[allow(clippy::derive_partial_eq_without_eq)] @@ -181,8 +189,9 @@ pub struct Agent { #[prost(string, tag="1")] pub name: ::prost::alloc::string::String, /// SupportedTaskTypes are the types of the tasks that the agent can handle. + #[deprecated] #[prost(message, repeated, tag="2")] - pub supported_task_types: ::prost::alloc::vec::Vec, + pub deprecated_supported_task_types: ::prost::alloc::vec::Vec, /// IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their /// results synchronously when called by propeller. Given that sync agents can affect the performance /// of the system, it's important to enforce strict timeout policies. @@ -190,6 +199,9 @@ pub struct Agent { /// identifier and query for job statuses as jobs progress. #[prost(bool, tag="3")] pub is_sync: bool, + /// SupportedTaskTypes are the types of the tasks that the agent can handle. + #[prost(message, repeated, tag="4")] + pub supported_task_types: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -233,8 +245,9 @@ pub struct ListAgentsResponse { #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTaskMetricsRequest { /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="1")] - pub task_type: ::core::option::Option, + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -251,6 +264,9 @@ pub struct GetTaskMetricsRequest { /// Query resolution step width in duration format or float number of seconds. #[prost(message, optional, tag="6")] pub step: ::core::option::Option<::prost_types::Duration>, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="7")] + pub task_type: ::core::option::Option, } /// A response containing a list of metrics for a task execution. #[allow(clippy::derive_partial_eq_without_eq)] @@ -265,8 +281,9 @@ pub struct GetTaskMetricsResponse { #[derive(Clone, PartialEq, ::prost::Message)] pub struct GetTaskLogsRequest { /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="1")] - pub task_type: ::core::option::Option, + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -277,6 +294,9 @@ pub struct GetTaskLogsRequest { /// in a query. If there are no more results, this value will be empty. #[prost(string, tag="4")] pub token: ::prost::alloc::string::String, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="5")] + pub task_type: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index e6e8078b7b..3fd54c94f3 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -97,9 +97,11 @@ message ExecuteTaskSyncResponse { // A message used to fetch a job resource from flyte agent server. message GetTaskRequest { // A predefined yet extensible Task type identifier. - TaskType task_type = 1; + string deprecated_task_type = 1 [deprecated = true]; // Metadata about the resource to be pass to the agent. bytes resource_meta = 2; + // A predefined yet extensible Task type identifier. + TaskType task_type = 3; } // Response to get an individual task resource. @@ -125,9 +127,11 @@ message Resource { // A message used to delete a task. message DeleteTaskRequest { // A predefined yet extensible Task type identifier. - TaskType task_type = 1; + string deprecated_task_type = 1 [deprecated = true]; // Metadata about the resource to be pass to the agent. bytes resource_meta = 2; + // A predefined yet extensible Task type identifier. + TaskType task_type = 3; } // Response to delete a task. @@ -139,7 +143,7 @@ message Agent { string name = 1; // SupportedTaskTypes are the types of the tasks that the agent can handle. - repeated TaskType supported_task_types = 2; + repeated TaskType deprecated_supported_task_types = 2 [deprecated = true]; // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their // results synchronously when called by propeller. Given that sync agents can affect the performance @@ -147,6 +151,9 @@ message Agent { // An Async agent, on the other hand, is required to be able to identify jobs by an // identifier and query for job statuses as jobs progress. bool is_sync = 3; + + // SupportedTaskTypes are the types of the tasks that the agent can handle. + repeated TaskType supported_task_types = 4; } message TaskType { @@ -178,7 +185,7 @@ message ListAgentsResponse { // A request to get the metrics from a task execution. message GetTaskMetricsRequest { // A predefined yet extensible Task type identifier. - TaskType task_type = 1; + string deprecated_task_type = 1 [deprecated = true]; // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). bytes resource_meta = 2; // The metrics to query. If empty, will return a default set of metrics. @@ -190,6 +197,8 @@ message GetTaskMetricsRequest { google.protobuf.Timestamp end_time = 5; // Query resolution step width in duration format or float number of seconds. google.protobuf.Duration step = 6; + // A predefined yet extensible Task type identifier. + TaskType task_type = 7; } // A response containing a list of metrics for a task execution. @@ -201,7 +210,7 @@ message GetTaskMetricsResponse { // A request to get the log from a task execution. message GetTaskLogsRequest { // A predefined yet extensible Task type identifier. - TaskType task_type = 1; + string deprecated_task_type = 1 [deprecated = true]; // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). bytes resource_meta = 2; // Number of lines to return. @@ -209,6 +218,8 @@ message GetTaskLogsRequest { // In the case of multiple pages of results, the server-provided token can be used to fetch the next page // in a query. If there are no more results, this value will be empty. string token = 4; + // A predefined yet extensible Task type identifier. + TaskType task_type = 5; } message GetTaskLogsResponseHeader { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 4f7ee0d0e1..ce0e6c8a69 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -90,7 +90,7 @@ func getFinalContext(ctx context.Context, operation string, agent *Agent) (conte func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) { agentRegistry := make(map[string]map[int32]*Agent) cfg := GetConfig() - var agentDeployments []*Agent + var agentServices []*Agent // Ensure that the old configuration is backward compatible for taskType, agentID := range cfg.AgentForTaskTypes { @@ -98,13 +98,13 @@ func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) } if len(cfg.DefaultAgent.Endpoint) != 0 { - agentDeployments = append(agentDeployments, &cfg.DefaultAgent) + agentServices = append(agentServices, &cfg.DefaultAgent) } - agentDeployments = append(agentDeployments, maps.Values(cfg.Agents)...) - for _, agentDeployment := range agentDeployments { - client := cs.agentMetadataClients[agentDeployment.Endpoint] + agentServices = append(agentServices, maps.Values(cfg.Agents)...) + for i := 0; i < len(agentServices); i++ { + client := cs.agentMetadataClients[agentServices[i].Endpoint] - finalCtx, cancel := getFinalContext(context.Background(), "ListAgents", agentDeployment) + finalCtx, cancel := getFinalContext(context.Background(), "ListAgents", agentServices[i]) defer cancel() res, err := client.ListAgents(finalCtx, &admin.ListAgentsRequest{}) @@ -112,26 +112,32 @@ func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) grpcStatus, ok := status.FromError(err) if grpcStatus.Code() == codes.Unimplemented { // we should not panic here, as we want to continue to support old agent settings - logger.Infof(context.Background(), "list agent method not implemented for agent: [%v]", agentDeployment) + logger.Infof(context.Background(), "list agent method not implemented for agent: [%v]", agentServices[i]) continue } if !ok { - return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentDeployment, err) + return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentServices[i], err) } - return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentDeployment, err) + return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentServices[i], err) } agents := res.GetAgents() - for _, agent := range agents { - supportedTaskTypes := agent.SupportedTaskTypes + for j := 0; j < len(agents); j++ { + supportedTaskTypes := agents[j].SupportedTaskTypes for _, supportedTaskType := range supportedTaskTypes { - agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.Version: agentDeployment} + finalAgent := agentServices[i] + finalAgent.IsSync = true + agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.Version: finalAgent} } + logger.Infof(context.Background(), "[%v] Agent is a sync agent: [%v]", agents[j].Name, agents[j].IsSync) + logger.Infof(context.Background(), "[%v] Agent supports task types: [%v]", agents[j].Name, supportedTaskTypes) } } + logger.Infof(context.Background(), "Agent registry initialized: [%v]", agentRegistry["mock_openai"][0]) + return agentRegistry, nil } @@ -140,24 +146,21 @@ func initializeClients(ctx context.Context) (*ClientSet, error) { syncAgentClients := make(map[string]service.SyncAgentServiceClient) agentMetadataClients := make(map[string]service.AgentMetadataServiceClient) - var agentDeployments []*Agent + var agentServices []*Agent cfg := GetConfig() if len(cfg.DefaultAgent.Endpoint) != 0 { - agentDeployments = append(agentDeployments, &cfg.DefaultAgent) + agentServices = append(agentServices, &cfg.DefaultAgent) } - agentDeployments = append(agentDeployments, maps.Values(cfg.Agents)...) - for _, agentDeployment := range agentDeployments { - conn, err := getGrpcConnection(ctx, agentDeployment) + agentServices = append(agentServices, maps.Values(cfg.Agents)...) + for _, agentService := range agentServices { + conn, err := getGrpcConnection(ctx, agentService) if err != nil { return nil, err } - if agentDeployment.IsSync { - syncAgentClients[agentDeployment.Endpoint] = service.NewSyncAgentServiceClient(conn) - } else { - asyncAgentClients[agentDeployment.Endpoint] = service.NewAsyncAgentServiceClient(conn) - } - agentMetadataClients[agentDeployment.Endpoint] = service.NewAgentMetadataServiceClient(conn) + syncAgentClients[agentService.Endpoint] = service.NewSyncAgentServiceClient(conn) + asyncAgentClients[agentService.Endpoint] = service.NewAsyncAgentServiceClient(conn) + agentMetadataClients[agentService.Endpoint] = service.NewAgentMetadataServiceClient(conn) } return &ClientSet{ diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 20804ef6f5..5d865edff6 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -96,6 +96,7 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR taskExecutionMetadata := buildTaskExecutionMetadata(taskCtx.TaskExecutionMetadata()) + logger.Infof(ctx, "hello [%v] is a sync agent: [%v]", agent.Endpoint, agent.IsSync) if agent.IsSync { client, err := p.getSyncAgentClient(ctx, agent) if err != nil { @@ -133,56 +134,7 @@ func (p Plugin) ExecuteTaskSync( if err != nil { return nil, nil, err } - waitChan := make(chan struct{}) - resourceChan := make(chan *admin.Resource) - outputsChan := make(chan *flyteIdl.LiteralMap) - - go func() { - in, err := stream.Recv() - if err == io.EOF { - // read done. - close(waitChan) - return - } - if err != nil { - logger.Errorf(ctx, "Error reading from stream: %v", err) - } - header := in.GetHeader() - resource := header.GetResource() - mergedLiteralMap := &flyteIdl.LiteralMap{Literals: map[string]*flyteIdl.Literal{}} - - for { - in, err := stream.Recv() - if err == io.EOF { - // read done. - resourceChan <- resource - outputsChan <- mergedLiteralMap - close(waitChan) - return - } - if err != nil { - logger.Errorf(ctx, "Error reading from stream: %v", err) - } - literalMap := in.GetOutputs() - if literalMap == nil { - continue - } - for k, lt := range literalMap.Literals { - _, ok := mergedLiteralMap.Literals[k] - if !ok { - mergedLiteralMap.Literals[k] = &flyteIdl.Literal{ - Value: &flyteIdl.Literal_Collection{ - Collection: &flyteIdl.LiteralCollection{ - Literals: []*flyteIdl.Literal{lt}, - }, - }, - } - } else { - mergedLiteralMap.Literals[k].GetCollection().Literals = append(mergedLiteralMap.Literals[k].GetCollection().Literals, lt) - } - } - } - }() + headerProto := &admin.ExecuteTaskSyncRequest{ Part: &admin.ExecuteTaskSyncRequest_Header{ Header: header, @@ -199,16 +151,26 @@ func (p Plugin) ExecuteTaskSync( err = stream.Send(inputsProto) } + in, err := stream.Recv() + if err != nil && err != io.EOF { + return nil, nil, err + } + // TODO: Read the streaming output from the agent, and merge it into the final output. + // For now, Propeller assumes that the output is always in the header. + resource := in.GetHeader().GetResource() + if err := stream.CloseSend(); err != nil { return nil, nil, err } - resource := <-resourceChan - outputs := <-outputsChan - <-waitChan + + if err != nil { + logger.Errorf(ctx, "Failed to write output with err %s", err.Error()) + return nil, nil, err + } return nil, ResourceWrapper{ Phase: resource.Phase, - Outputs: outputs, + Outputs: resource.Outputs, Message: resource.Message, LogLinks: resource.LogLinks, }, err @@ -225,7 +187,12 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba finalCtx, cancel := getFinalContext(ctx, "GetTask", agent) defer cancel() - res, err := client.GetTask(finalCtx, &admin.GetTaskRequest{TaskType: &metadata.TaskType, ResourceMeta: metadata.AgentResourceMeta}) + request := &admin.GetTaskRequest{ + DeprecatedTaskType: metadata.TaskType.Name, + TaskType: &metadata.TaskType, + ResourceMeta: metadata.AgentResourceMeta, + } + res, err := client.GetTask(finalCtx, request) if err != nil { return nil, err } @@ -235,7 +202,7 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba State: res.Resource.State, Outputs: res.Resource.Outputs, Message: res.Resource.Message, - LogLinks: res.LogLinks, + LogLinks: res.Resource.LogLinks, }, nil } @@ -253,7 +220,12 @@ func (p Plugin) Delete(ctx context.Context, taskCtx webapi.DeleteContext) error finalCtx, cancel := getFinalContext(ctx, "DeleteTask", agent) defer cancel() - _, err = client.DeleteTask(finalCtx, &admin.DeleteTaskRequest{TaskType: &metadata.TaskType, ResourceMeta: metadata.AgentResourceMeta}) + request := &admin.DeleteTaskRequest{ + DeprecatedTaskType: metadata.TaskType.Name, + TaskType: &metadata.TaskType, + ResourceMeta: metadata.AgentResourceMeta, + } + _, err = client.DeleteTask(finalCtx, request) return err } @@ -271,7 +243,7 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase case flyteIdl.TaskExecution_RUNNING: return core.PhaseInfoRunning(core.DefaultPhaseVersion, taskInfo), nil case flyteIdl.TaskExecution_SUCCEEDED: - err = writeOutput(ctx, taskCtx, resource) + err = writeOutput(ctx, taskCtx, resource.Outputs) if err != nil { logger.Errorf(ctx, "Failed to write output with err %s", err.Error()) return core.PhaseInfoUndefined, err @@ -299,7 +271,7 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase case admin.State_RETRYABLE_FAILURE: return core.PhaseInfoRetryableFailure(pluginErrors.TaskFailedWithError, "failed to run the job", taskInfo), nil case admin.State_SUCCEEDED: - err = writeOutput(ctx, taskCtx, resource) + err = writeOutput(ctx, taskCtx, resource.Outputs) if err != nil { logger.Errorf(ctx, "Failed to write output with err %s", err.Error()) return core.PhaseInfoUndefined, err @@ -335,7 +307,7 @@ func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *Agent) (service. return client, nil } -func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, resource ResourceWrapper) error { +func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, outputs *flyteIdl.LiteralMap) error { taskTemplate, err := taskCtx.TaskReader().Read(ctx) if err != nil { return err @@ -347,9 +319,9 @@ func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, resource Res } var opReader flyteIO.OutputReader - if resource.Outputs != nil { + if outputs != nil { logger.Debugf(ctx, "Agent returned an output.") - opReader = ioutils.NewInMemoryOutputReader(resource.Outputs, nil, nil) + opReader = ioutils.NewInMemoryOutputReader(outputs, nil, nil) } else { logger.Debugf(ctx, "Agent didn't return any output, assuming file based outputs.") opReader = ioutils.NewRemoteFileOutputReader(ctx, taskCtx.DataStore(), taskCtx.OutputWriter(), taskCtx.MaxDatasetSizeBytes()) @@ -391,7 +363,7 @@ func newAgentPlugin() webapi.PluginEntry { cfg := GetConfig() supportedTaskTypes := append(maps.Keys(agentRegistry), cfg.SupportedTaskTypes...) - logger.Infof(context.Background(), "Agent supports task types: %v", supportedTaskTypes) + logger.Infof(context.Background(), "Agent service supports task types: %v", supportedTaskTypes) return webapi.PluginEntry{ ID: "agent-service", From 0d064ca1f134bc981d55610889341261eb2a1b28 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 19 Feb 2024 22:22:37 -0800 Subject: [PATCH 20/35] deprecated_supported_task_types Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 6 +- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 246 +++++++++--------- .../flyteidl/service/agent.swagger.json | 3 +- flyteidl/gen/pb-js/flyteidl.d.ts | 4 +- flyteidl/gen/pb-js/flyteidl.js | 16 +- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 52 ++-- .../pb_python/flyteidl/admin/agent_pb2.pyi | 4 +- flyteidl/gen/pb_rust/flyteidl.admin.rs | 4 +- flyteidl/protos/flyteidl/admin/agent.proto | 2 +- 9 files changed, 166 insertions(+), 171 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 6d95bdb760..a1686210ad 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -747,10 +747,10 @@ export class Agent extends Message { /** * SupportedTaskTypes are the types of the tasks that the agent can handle. * - * @generated from field: repeated flyteidl.admin.TaskType deprecated_supported_task_types = 2 [deprecated = true]; + * @generated from field: repeated string deprecated_supported_task_types = 2 [deprecated = true]; * @deprecated */ - deprecatedSupportedTaskTypes: TaskType[] = []; + deprecatedSupportedTaskTypes: string[] = []; /** * IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their @@ -779,7 +779,7 @@ export class Agent extends Message { static readonly typeName = "flyteidl.admin.Agent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deprecated_supported_task_types", kind: "message", T: TaskType, repeated: true }, + { no: 2, name: "deprecated_supported_task_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "is_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, ]); diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index 2f906f9555..ed275ca1e1 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -948,7 +948,7 @@ type Agent struct { // SupportedTaskTypes are the types of the tasks that the agent can handle. // // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedSupportedTaskTypes []*TaskType `protobuf:"bytes,2,rep,name=deprecated_supported_task_types,json=deprecatedSupportedTaskTypes,proto3" json:"deprecated_supported_task_types,omitempty"` + DeprecatedSupportedTaskTypes []string `protobuf:"bytes,2,rep,name=deprecated_supported_task_types,json=deprecatedSupportedTaskTypes,proto3" json:"deprecated_supported_task_types,omitempty"` // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their // results synchronously when called by propeller. Given that sync agents can affect the performance // of the system, it's important to enforce strict timeout policies. @@ -999,7 +999,7 @@ func (x *Agent) GetName() string { } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *Agent) GetDeprecatedSupportedTaskTypes() []*TaskType { +func (x *Agent) GetDeprecatedSupportedTaskTypes() []string { if x != nil { return x.DeprecatedSupportedTaskTypes } @@ -1865,113 +1865,112 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xe5, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x63, + 0x22, 0xcb, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x1f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x1c, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x4a, 0x0a, 0x14, - 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, - 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, - 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, - 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, - 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, - 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, - 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, - 0x73, 0x74, 0x65, 0x70, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x58, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, - 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, - 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, - 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, - 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, - 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, - 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, - 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, - 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, - 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, - 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, - 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x1c, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, + 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, + 0x6e, 0x63, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x38, + 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, + 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, + 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, + 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, + 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, + 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, + 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, + 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, + 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, + 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, + 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, + 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -2050,23 +2049,22 @@ var file_flyteidl_admin_agent_proto_depIdxs = []int32{ 32, // 19: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog 33, // 20: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase 14, // 21: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType - 14, // 22: flyteidl.admin.Agent.deprecated_supported_task_types:type_name -> flyteidl.admin.TaskType - 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType - 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 34, // 26: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp - 34, // 27: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp - 35, // 28: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 14, // 29: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType - 36, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType - 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader - 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody - 34, // [34:34] is the sub-list for method output_type - 34, // [34:34] is the sub-list for method input_type - 34, // [34:34] is the sub-list for extension type_name - 34, // [34:34] is the sub-list for extension extendee - 0, // [0:34] is the sub-list for field type_name + 14, // 22: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType + 13, // 23: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 24: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent + 34, // 25: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp + 34, // 26: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp + 35, // 27: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration + 14, // 28: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 36, // 29: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 30: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 31: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 32: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 33, // [33:33] is the sub-list for method output_type + 33, // [33:33] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name } func init() { file_flyteidl_admin_agent_proto_init() } diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 7d68b08eff..d9c5f9ffd8 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -601,8 +601,7 @@ "deprecated_supported_task_types": { "type": "array", "items": { - "type": "object", - "$ref": "#/definitions/adminTaskType" + "type": "string" }, "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." }, diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 540838e678..0dcb2095a3 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9773,7 +9773,7 @@ export namespace flyteidl { name?: (string|null); /** Agent deprecatedSupportedTaskTypes */ - deprecatedSupportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); + deprecatedSupportedTaskTypes?: (string[]|null); /** Agent isSync */ isSync?: (boolean|null); @@ -9795,7 +9795,7 @@ export namespace flyteidl { public name: string; /** Agent deprecatedSupportedTaskTypes. */ - public deprecatedSupportedTaskTypes: flyteidl.admin.ITaskType[]; + public deprecatedSupportedTaskTypes: string[]; /** Agent isSync. */ public isSync: boolean; diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index a56afb88fc..178a525f62 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -23939,7 +23939,7 @@ * @memberof flyteidl.admin * @interface IAgent * @property {string|null} [name] Agent name - * @property {Array.|null} [deprecatedSupportedTaskTypes] Agent deprecatedSupportedTaskTypes + * @property {Array.|null} [deprecatedSupportedTaskTypes] Agent deprecatedSupportedTaskTypes * @property {boolean|null} [isSync] Agent isSync * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes */ @@ -23971,7 +23971,7 @@ /** * Agent deprecatedSupportedTaskTypes. - * @member {Array.} deprecatedSupportedTaskTypes + * @member {Array.} deprecatedSupportedTaskTypes * @memberof flyteidl.admin.Agent * @instance */ @@ -24021,7 +24021,7 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.deprecatedSupportedTaskTypes != null && message.deprecatedSupportedTaskTypes.length) for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) - $root.flyteidl.admin.TaskType.encode(message.deprecatedSupportedTaskTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deprecatedSupportedTaskTypes[i]); if (message.isSync != null && message.hasOwnProperty("isSync")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) @@ -24054,7 +24054,7 @@ case 2: if (!(message.deprecatedSupportedTaskTypes && message.deprecatedSupportedTaskTypes.length)) message.deprecatedSupportedTaskTypes = []; - message.deprecatedSupportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); + message.deprecatedSupportedTaskTypes.push(reader.string()); break; case 3: message.isSync = reader.bool(); @@ -24089,11 +24089,9 @@ if (message.deprecatedSupportedTaskTypes != null && message.hasOwnProperty("deprecatedSupportedTaskTypes")) { if (!Array.isArray(message.deprecatedSupportedTaskTypes)) return "deprecatedSupportedTaskTypes: array expected"; - for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) { - var error = $root.flyteidl.admin.TaskType.verify(message.deprecatedSupportedTaskTypes[i]); - if (error) - return "deprecatedSupportedTaskTypes." + error; - } + for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) + if (!$util.isString(message.deprecatedSupportedTaskTypes[i])) + return "deprecatedSupportedTaskTypes: string[] expected"; } if (message.isSync != null && message.hasOwnProperty("isSync")) if (typeof message.isSync !== "boolean") diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index f6a2234de6..d95e6571ac 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -21,7 +21,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\xa2\x01\n\x0eGetTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"\xa5\x01\n\x11\x44\x65leteTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"\x14\n\x12\x44\x65leteTaskResponse\"\xe5\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x63\n\x1f\x64\x65precated_supported_task_types\x18\x02 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeB\x02\x18\x01R\x1c\x64\x65precatedSupportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12J\n\x14supported_task_types\x18\x04 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xe4\x02\n\x15GetTaskMetricsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x35\n\ttask_type\x18\x07 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xd2\x01\n\x12GetTaskLogsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x35\n\ttask_type\x18\x05 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\xa2\x01\n\x0eGetTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"\xa5\x01\n\x11\x44\x65leteTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"\x14\n\x12\x44\x65leteTaskResponse\"\xcb\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12I\n\x1f\x64\x65precated_supported_task_types\x18\x02 \x03(\tB\x02\x18\x01R\x1c\x64\x65precatedSupportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12J\n\x14supported_task_types\x18\x04 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xe4\x02\n\x15GetTaskMetricsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x35\n\ttask_type\x18\x07 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xd2\x01\n\x12GetTaskLogsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x35\n\ttask_type\x18\x05 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -50,8 +50,8 @@ _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._options = None _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=4248 - _globals['_STATE']._serialized_end=4346 + _globals['_STATE']._serialized_start=4222 + _globals['_STATE']._serialized_end=4320 _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 @@ -83,27 +83,27 @@ _globals['_DELETETASKRESPONSE']._serialized_start=2812 _globals['_DELETETASKRESPONSE']._serialized_end=2832 _globals['_AGENT']._serialized_start=2835 - _globals['_AGENT']._serialized_end=3064 - _globals['_TASKTYPE']._serialized_start=3066 - _globals['_TASKTYPE']._serialized_end=3122 - _globals['_GETAGENTREQUEST']._serialized_start=3124 - _globals['_GETAGENTREQUEST']._serialized_end=3161 - _globals['_GETAGENTRESPONSE']._serialized_start=3163 - _globals['_GETAGENTRESPONSE']._serialized_end=3226 - _globals['_LISTAGENTSREQUEST']._serialized_start=3228 - _globals['_LISTAGENTSREQUEST']._serialized_end=3247 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3249 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3316 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3319 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3675 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3677 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3765 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3768 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3978 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3980 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4029 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4031 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4082 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=4085 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=4246 + _globals['_AGENT']._serialized_end=3038 + _globals['_TASKTYPE']._serialized_start=3040 + _globals['_TASKTYPE']._serialized_end=3096 + _globals['_GETAGENTREQUEST']._serialized_start=3098 + _globals['_GETAGENTREQUEST']._serialized_end=3135 + _globals['_GETAGENTRESPONSE']._serialized_start=3137 + _globals['_GETAGENTRESPONSE']._serialized_end=3200 + _globals['_LISTAGENTSREQUEST']._serialized_start=3202 + _globals['_LISTAGENTSREQUEST']._serialized_end=3221 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3223 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3290 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3293 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3649 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3651 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3739 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3742 + _globals['_GETTASKLOGSREQUEST']._serialized_end=3952 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3954 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4003 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4005 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4056 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=4059 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=4220 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 9f08318518..680c4427e8 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -175,10 +175,10 @@ class Agent(_message.Message): IS_SYNC_FIELD_NUMBER: _ClassVar[int] SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] name: str - deprecated_supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] + deprecated_supported_task_types: _containers.RepeatedScalarFieldContainer[str] is_sync: bool supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] - def __init__(self, name: _Optional[str] = ..., deprecated_supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ..., is_sync: bool = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... + def __init__(self, name: _Optional[str] = ..., deprecated_supported_task_types: _Optional[_Iterable[str]] = ..., is_sync: bool = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... class TaskType(_message.Message): __slots__ = ["name", "version"] diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index c2f5054b9a..4175e52561 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -190,8 +190,8 @@ pub struct Agent { pub name: ::prost::alloc::string::String, /// SupportedTaskTypes are the types of the tasks that the agent can handle. #[deprecated] - #[prost(message, repeated, tag="2")] - pub deprecated_supported_task_types: ::prost::alloc::vec::Vec, + #[prost(string, repeated, tag="2")] + pub deprecated_supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their /// results synchronously when called by propeller. Given that sync agents can affect the performance /// of the system, it's important to enforce strict timeout policies. diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 3fd54c94f3..9d16e2d926 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -143,7 +143,7 @@ message Agent { string name = 1; // SupportedTaskTypes are the types of the tasks that the agent can handle. - repeated TaskType deprecated_supported_task_types = 2 [deprecated = true]; + repeated string deprecated_supported_task_types = 2 [deprecated = true]; // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their // results synchronously when called by propeller. Given that sync agents can affect the performance From a5f8368ae8b4a9dd7531ba6808cc227c1720c139 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Mon, 19 Feb 2024 23:51:23 -0800 Subject: [PATCH 21/35] lint Signed-off-by: Kevin Su --- .../go/tasks/plugins/webapi/agent/client.go | 63 +++++++++++-------- .../tasks/plugins/webapi/agent/client_test.go | 2 +- .../go/tasks/plugins/webapi/agent/config.go | 19 ++---- .../tasks/plugins/webapi/agent/config_test.go | 2 +- .../go/tasks/plugins/webapi/agent/plugin.go | 29 ++++----- .../tasks/plugins/webapi/agent/plugin_test.go | 29 ++++----- 6 files changed, 75 insertions(+), 69 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index ce0e6c8a69..0f72ce60e5 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -21,6 +21,17 @@ import ( const defaultTaskTypeVersion = 0 +type Agent struct { + // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + // results synchronously when called by propeller. Given that sync agents can affect the performance + // of the system, it's important to enforce strict timeout policies. + // An Async agent, on the other hand, is required to be able to identify jobs by an + // identifier and query for job statuses as jobs progress. + IsSync bool + // AgentDeployment is the agent deployment where this agent is running. + AgentDeployment *AgentDeployment +} + // ClientSet contains the clients exposed to communicate with various agent services. type ClientSet struct { asyncAgentClients map[string]service.AsyncAgentServiceClient // map[endpoint] => AsyncAgentServiceClient @@ -28,7 +39,7 @@ type ClientSet struct { agentMetadataClients map[string]service.AgentMetadataServiceClient // map[endpoint] => AgentMetadataServiceClient } -func getGrpcConnection(ctx context.Context, agent *Agent) (*grpc.ClientConn, error) { +func getGrpcConnection(ctx context.Context, agent *AgentDeployment) (*grpc.ClientConn, error) { var opts []grpc.DialOption if agent.Insecure { @@ -70,7 +81,7 @@ func getGrpcConnection(ctx context.Context, agent *Agent) (*grpc.ClientConn, err return conn, nil } -func getFinalTimeout(operation string, agent *Agent) config.Duration { +func getFinalTimeout(operation string, agent *AgentDeployment) config.Duration { if t, exists := agent.Timeouts[operation]; exists { return t } @@ -78,7 +89,7 @@ func getFinalTimeout(operation string, agent *Agent) config.Duration { return agent.DefaultTimeout } -func getFinalContext(ctx context.Context, operation string, agent *Agent) (context.Context, context.CancelFunc) { +func getFinalContext(ctx context.Context, operation string, agent *AgentDeployment) (context.Context, context.CancelFunc) { timeout := getFinalTimeout(operation, agent).Duration if timeout == 0 { return ctx, func() {} @@ -87,24 +98,25 @@ func getFinalContext(ctx context.Context, operation string, agent *Agent) (conte return context.WithTimeout(ctx, timeout) } -func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) { - agentRegistry := make(map[string]map[int32]*Agent) +func initializeAgentRegistry(cs *ClientSet) (Registry, error) { + agentRegistry := make(Registry) cfg := GetConfig() - var agentServices []*Agent + var agentDeployments []*AgentDeployment // Ensure that the old configuration is backward compatible - for taskType, agentID := range cfg.AgentForTaskTypes { - agentRegistry[taskType] = map[int32]*Agent{defaultTaskTypeVersion: cfg.Agents[agentID]} + for taskType, agentDeploymentId := range cfg.AgentForTaskTypes { + agent := Agent{AgentDeployment: cfg.AgentDeployments[agentDeploymentId], IsSync: false} + agentRegistry[taskType] = map[int32]*Agent{defaultTaskTypeVersion: &agent} } if len(cfg.DefaultAgent.Endpoint) != 0 { - agentServices = append(agentServices, &cfg.DefaultAgent) + agentDeployments = append(agentDeployments, &cfg.DefaultAgent) } - agentServices = append(agentServices, maps.Values(cfg.Agents)...) - for i := 0; i < len(agentServices); i++ { - client := cs.agentMetadataClients[agentServices[i].Endpoint] + agentDeployments = append(agentDeployments, maps.Values(cfg.AgentDeployments)...) + for i := 0; i < len(agentDeployments); i++ { + client := cs.agentMetadataClients[agentDeployments[i].Endpoint] - finalCtx, cancel := getFinalContext(context.Background(), "ListAgents", agentServices[i]) + finalCtx, cancel := getFinalContext(context.Background(), "ListAgents", agentDeployments[i]) defer cancel() res, err := client.ListAgents(finalCtx, &admin.ListAgentsRequest{}) @@ -112,31 +124,30 @@ func initializeAgentRegistry(cs *ClientSet) (map[string]map[int32]*Agent, error) grpcStatus, ok := status.FromError(err) if grpcStatus.Code() == codes.Unimplemented { // we should not panic here, as we want to continue to support old agent settings - logger.Infof(context.Background(), "list agent method not implemented for agent: [%v]", agentServices[i]) + logger.Infof(context.Background(), "list agent method not implemented for agent: [%v]", agentDeployments[i]) continue } if !ok { - return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentServices[i], err) + return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentDeployments[i], err) } - return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentServices[i], err) + return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentDeployments[i], err) } agents := res.GetAgents() for j := 0; j < len(agents); j++ { supportedTaskTypes := agents[j].SupportedTaskTypes for _, supportedTaskType := range supportedTaskTypes { - finalAgent := agentServices[i] - finalAgent.IsSync = true - agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.Version: finalAgent} + agent := &Agent{AgentDeployment: agentDeployments[i], IsSync: agents[j].IsSync} + agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.GetVersion(): agent} } - logger.Infof(context.Background(), "[%v] Agent is a sync agent: [%v]", agents[j].Name, agents[j].IsSync) - logger.Infof(context.Background(), "[%v] Agent supports task types: [%v]", agents[j].Name, supportedTaskTypes) + logger.Infof(context.Background(), "[%v] AgentDeployment is a sync agent: [%v]", agents[j].Name, agents[j].IsSync) + logger.Infof(context.Background(), "[%v] AgentDeployment supports task types: [%v]", agents[j].Name, supportedTaskTypes) } } - logger.Infof(context.Background(), "Agent registry initialized: [%v]", agentRegistry["mock_openai"][0]) + logger.Infof(context.Background(), "AgentDeployment registry initialized: [%v]", agentRegistry["mock_openai"][0]) return agentRegistry, nil } @@ -146,14 +157,14 @@ func initializeClients(ctx context.Context) (*ClientSet, error) { syncAgentClients := make(map[string]service.SyncAgentServiceClient) agentMetadataClients := make(map[string]service.AgentMetadataServiceClient) - var agentServices []*Agent + var agentDeployments []*AgentDeployment cfg := GetConfig() if len(cfg.DefaultAgent.Endpoint) != 0 { - agentServices = append(agentServices, &cfg.DefaultAgent) + agentDeployments = append(agentDeployments, &cfg.DefaultAgent) } - agentServices = append(agentServices, maps.Values(cfg.Agents)...) - for _, agentService := range agentServices { + agentDeployments = append(agentDeployments, maps.Values(cfg.AgentDeployments)...) + for _, agentService := range agentDeployments { conn, err := getGrpcConnection(ctx, agentService) if err != nil { return nil, err diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go index 7d87e4770b..ee77b315dc 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go @@ -9,7 +9,7 @@ import ( func TestInitializeClients(t *testing.T) { cfg := defaultConfig - cfg.Agents = map[string]*Agent{ + cfg.AgentDeployments = map[string]*AgentDeployment{ "x": { Endpoint: "x", }, diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/config.go b/flyteplugins/go/tasks/plugins/webapi/agent/config.go index 252ad77de9..a935cd89d3 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/config.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/config.go @@ -39,7 +39,7 @@ var ( Value: 50, }, }, - DefaultAgent: Agent{ + DefaultAgent: AgentDeployment{ Endpoint: "", Insecure: true, DefaultTimeout: config.Duration{Duration: 10 * time.Second}, @@ -61,19 +61,19 @@ type Config struct { ResourceConstraints core.ResourceConstraintsSpec `json:"resourceConstraints" pflag:"-,Defines resource constraints on how many executions to be created per project/overall at any given time."` // The default agent if there does not exist a more specific matching against task types - DefaultAgent Agent `json:"defaultAgent" pflag:",The default agent."` + DefaultAgent AgentDeployment `json:"defaultAgent" pflag:",The default agent."` - // The agents used to match against specific task types. {AgentId: Agent} - Agents map[string]*Agent `json:"agents" pflag:",The agents."` + // The agents used to match against specific task types. {AgentDeploymentId: AgentDeployment} + AgentDeployments map[string]*AgentDeployment `json:"agents" pflag:",The agents."` - // Maps task types to their agents. {TaskType: AgentId} + // Maps task types to their agents. {TaskType: AgentDeploymentId} AgentForTaskTypes map[string]string `json:"agentForTaskTypes" pflag:"-,"` // SupportedTaskTypes is a list of task types that are supported by this plugin. SupportedTaskTypes []string `json:"supportedTaskTypes" pflag:"-,Defines a list of task types that are supported by this plugin."` } -type Agent struct { +type AgentDeployment struct { // Endpoint points to an agent gRPC endpoint Endpoint string `json:"endpoint"` @@ -88,13 +88,6 @@ type Agent struct { // DefaultTimeout gives the default RPC timeout if a more specific one is not defined in Timeouts; if neither DefaultTimeout nor Timeouts is defined for an operation, RPC timeout will not be enforced DefaultTimeout config.Duration `json:"defaultTimeout"` - - // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their - // results synchronously when called by propeller. Given that sync agents can affect the performance - // of the system, it's important to enforce strict timeout policies. - // An Async agent, on the other hand, is required to be able to identify jobs by an - // identifier and query for job statuses as jobs progress. - IsSync bool `json:"isSync"` } func GetConfig() *Config { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go index a3e6d69d66..2c0be1fb0b 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go @@ -27,7 +27,7 @@ func TestGetAndSetConfig(t *testing.T) { }, } cfg.DefaultAgent.DefaultTimeout = config.Duration{Duration: 10 * time.Second} - cfg.Agents = map[string]*Agent{ + cfg.AgentDeployments = map[string]*AgentDeployment{ "agent_1": { Insecure: cfg.DefaultAgent.Insecure, DefaultServiceConfig: cfg.DefaultAgent.DefaultServiceConfig, diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 5d865edff6..5546f5ce2b 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -23,11 +23,13 @@ import ( "github.com/flyteorg/flyte/flytestdlib/promutils" ) +type Registry map[string]map[int32]*Agent // map[taskTypeName][taskTypeVersion] => AgentDeployment + type Plugin struct { metricScope promutils.Scope cfg *Config cs *ClientSet - agentRegistry map[string]map[int32]*Agent // map[taskTypeName][taskTypeVersion] => Agent + agentRegistry Registry } type ResourceWrapper struct { @@ -89,15 +91,14 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR outputPrefix := taskCtx.OutputWriter().GetOutputPrefixPath().String() taskType := admin.TaskType{Name: taskTemplate.Type, Version: taskTemplate.TaskTypeVersion} - agent := getFinalAgent(&taskType, p.cfg, p.agentRegistry) + agent, isSync := getFinalAgent(&taskType, p.cfg, p.agentRegistry) finalCtx, cancel := getFinalContext(ctx, "CreateTask", agent) defer cancel() taskExecutionMetadata := buildTaskExecutionMetadata(taskCtx.TaskExecutionMetadata()) - logger.Infof(ctx, "hello [%v] is a sync agent: [%v]", agent.Endpoint, agent.IsSync) - if agent.IsSync { + if isSync { client, err := p.getSyncAgentClient(ctx, agent) if err != nil { return nil, nil, err @@ -178,7 +179,7 @@ func (p Plugin) ExecuteTaskSync( func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest webapi.Resource, err error) { metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) - agent := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) + agent, _ := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) client, err := p.getAsyncAgentClient(ctx, agent) if err != nil { @@ -211,7 +212,7 @@ func (p Plugin) Delete(ctx context.Context, taskCtx webapi.DeleteContext) error return nil } metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) - agent := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) + agent, _ := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) client, err := p.getAsyncAgentClient(ctx, agent) if err != nil { @@ -281,7 +282,7 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase return core.PhaseInfoUndefined, pluginErrors.Errorf(core.SystemErrorCode, "unknown execution state [%v].", resource.State) } -func (p Plugin) getSyncAgentClient(ctx context.Context, agent *Agent) (service.SyncAgentServiceClient, error) { +func (p Plugin) getSyncAgentClient(ctx context.Context, agent *AgentDeployment) (service.SyncAgentServiceClient, error) { client, ok := p.cs.syncAgentClients[agent.Endpoint] if !ok { conn, err := getGrpcConnection(ctx, agent) @@ -294,7 +295,7 @@ func (p Plugin) getSyncAgentClient(ctx context.Context, agent *Agent) (service.S return client, nil } -func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *Agent) (service.AsyncAgentServiceClient, error) { +func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *AgentDeployment) (service.AsyncAgentServiceClient, error) { client, ok := p.cs.asyncAgentClients[agent.Endpoint] if !ok { conn, err := getGrpcConnection(ctx, agent) @@ -320,21 +321,21 @@ func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, outputs *fly var opReader flyteIO.OutputReader if outputs != nil { - logger.Debugf(ctx, "Agent returned an output.") + logger.Debugf(ctx, "AgentDeployment returned an output.") opReader = ioutils.NewInMemoryOutputReader(outputs, nil, nil) } else { - logger.Debugf(ctx, "Agent didn't return any output, assuming file based outputs.") + logger.Debugf(ctx, "AgentDeployment didn't return any output, assuming file based outputs.") opReader = ioutils.NewRemoteFileOutputReader(ctx, taskCtx.DataStore(), taskCtx.OutputWriter(), taskCtx.MaxDatasetSizeBytes()) } return taskCtx.OutputWriter().Put(ctx, opReader) } -func getFinalAgent(taskType *admin.TaskType, cfg *Config, agentRegistry map[string]map[int32]*Agent) *Agent { +func getFinalAgent(taskType *admin.TaskType, cfg *Config, agentRegistry Registry) (*AgentDeployment, bool) { if agent, exists := agentRegistry[taskType.Name][taskType.Version]; exists { - return agent + return agent.AgentDeployment, agent.IsSync } - return &cfg.DefaultAgent + return &cfg.DefaultAgent, false } func buildTaskExecutionMetadata(taskExecutionMetadata core.TaskExecutionMetadata) admin.TaskExecutionMetadata { @@ -363,7 +364,7 @@ func newAgentPlugin() webapi.PluginEntry { cfg := GetConfig() supportedTaskTypes := append(maps.Keys(agentRegistry), cfg.SupportedTaskTypes...) - logger.Infof(context.Background(), "Agent service supports task types: %v", supportedTaskTypes) + logger.Infof(context.Background(), "AgentDeployment service supports task types: %v", supportedTaskTypes) return webapi.PluginEntry{ ID: "agent-service", diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go index b8f4b9ea39..48e0dc3b18 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go @@ -31,8 +31,8 @@ func TestPlugin(t *testing.T) { cfg := defaultConfig cfg.WebAPI.Caching.Workers = 1 cfg.WebAPI.Caching.ResyncInterval.Duration = 5 * time.Second - cfg.DefaultAgent = Agent{Endpoint: "test-agent.flyte.svc.cluster.local:80"} - cfg.Agents = map[string]*Agent{"spark_agent": {Endpoint: "localhost:80"}} + cfg.DefaultAgent = AgentDeployment{Endpoint: "test-agent.flyte.svc.cluster.local:80"} + cfg.AgentDeployments = map[string]*AgentDeployment{"spark_agent": {Endpoint: "localhost:80"}} cfg.AgentForTaskTypes = map[string]string{"spark": "spark_agent", "bar": "bar_agent"} plugin := Plugin{ @@ -59,30 +59,31 @@ func TestPlugin(t *testing.T) { }) t.Run("test getFinalAgent", func(t *testing.T) { - agentRegistry := map[string]map[int32]*Agent{"spark": {defaultTaskTypeVersion: &Agent{Endpoint: "localhost:80"}}} + agent := &Agent{AgentDeployment: &AgentDeployment{Endpoint: "localhost:80"}} + agentRegistry := Registry{"spark": {defaultTaskTypeVersion: agent}} spark := &admin.TaskType{Name: "spark", Version: defaultTaskTypeVersion} foo := &admin.TaskType{Name: "foo", Version: defaultTaskTypeVersion} bar := &admin.TaskType{Name: "bar", Version: defaultTaskTypeVersion} - agent := getFinalAgent(spark, &cfg, agentRegistry) - assert.Equal(t, agent.Endpoint, "localhost:80") - agent = getFinalAgent(foo, &cfg, agentRegistry) - assert.Equal(t, agent.Endpoint, cfg.DefaultAgent.Endpoint) - agent = getFinalAgent(bar, &cfg, agentRegistry) - assert.Equal(t, agent.Endpoint, cfg.DefaultAgent.Endpoint) + agentDeployment, _ := getFinalAgent(spark, &cfg, agentRegistry) + assert.Equal(t, agentDeployment.Endpoint, "localhost:80") + agentDeployment, _ = getFinalAgent(foo, &cfg, agentRegistry) + assert.Equal(t, agentDeployment.Endpoint, cfg.DefaultAgent.Endpoint) + agentDeployment, _ = getFinalAgent(bar, &cfg, agentRegistry) + assert.Equal(t, agentDeployment.Endpoint, cfg.DefaultAgent.Endpoint) }) t.Run("test getFinalTimeout", func(t *testing.T) { - timeout := getFinalTimeout("CreateTask", &Agent{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) + timeout := getFinalTimeout("CreateTask", &AgentDeployment{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) assert.Equal(t, 1*time.Millisecond, timeout.Duration) - timeout = getFinalTimeout("DeleteTask", &Agent{Endpoint: "localhost:8080", DefaultTimeout: config.Duration{Duration: 10 * time.Second}}) + timeout = getFinalTimeout("DeleteTask", &AgentDeployment{Endpoint: "localhost:8080", DefaultTimeout: config.Duration{Duration: 10 * time.Second}}) assert.Equal(t, 10*time.Second, timeout.Duration) }) t.Run("test getFinalContext", func(t *testing.T) { - ctx, _ := getFinalContext(context.TODO(), "DeleteTask", &Agent{}) + ctx, _ := getFinalContext(context.TODO(), "DeleteTask", &AgentDeployment{}) assert.Equal(t, context.TODO(), ctx) - ctx, _ = getFinalContext(context.TODO(), "CreateTask", &Agent{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) + ctx, _ = getFinalContext(context.TODO(), "CreateTask", &AgentDeployment{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) assert.NotEqual(t, context.TODO(), ctx) }) @@ -302,7 +303,7 @@ func TestInitializeAgentRegistry(t *testing.T) { } cfg := defaultConfig - cfg.Agents = map[string]*Agent{"custom_agent": {Endpoint: defaultAgentEndpoint}} + cfg.AgentDeployments = map[string]*AgentDeployment{"custom_agent": {Endpoint: defaultAgentEndpoint}} cfg.AgentForTaskTypes = map[string]string{"task1": "agent-deployment-1", "task2": "agent-deployment-2"} err := SetConfig(&cfg) assert.NoError(t, err) From 779b336b3915c58d067a5d1c6090343d07788ade Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 00:15:29 -0800 Subject: [PATCH 22/35] fix tests Signed-off-by: Kevin Su --- .../go/tasks/plugins/webapi/agent/client.go | 25 ++++++++----------- .../tasks/plugins/webapi/agent/client_test.go | 1 - .../plugins/webapi/agent/integration_test.go | 21 +++------------- 3 files changed, 15 insertions(+), 32 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 0f72ce60e5..9d807e794a 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -113,10 +113,10 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) { agentDeployments = append(agentDeployments, &cfg.DefaultAgent) } agentDeployments = append(agentDeployments, maps.Values(cfg.AgentDeployments)...) - for i := 0; i < len(agentDeployments); i++ { - client := cs.agentMetadataClients[agentDeployments[i].Endpoint] + for _, agentDeployment := range agentDeployments { + client := cs.agentMetadataClients[agentDeployment.Endpoint] - finalCtx, cancel := getFinalContext(context.Background(), "ListAgents", agentDeployments[i]) + finalCtx, cancel := getFinalContext(context.Background(), "ListAgents", agentDeployment) defer cancel() res, err := client.ListAgents(finalCtx, &admin.ListAgentsRequest{}) @@ -124,31 +124,28 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) { grpcStatus, ok := status.FromError(err) if grpcStatus.Code() == codes.Unimplemented { // we should not panic here, as we want to continue to support old agent settings - logger.Infof(context.Background(), "list agent method not implemented for agent: [%v]", agentDeployments[i]) + logger.Infof(context.Background(), "list agent method not implemented for agent: [%v]", agentDeployment) continue } if !ok { - return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentDeployments[i], err) + return nil, fmt.Errorf("failed to list agent: [%v] with a non-gRPC error: [%v]", agentDeployment, err) } - return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentDeployments[i], err) + return nil, fmt.Errorf("failed to list agent: [%v] with error: [%v]", agentDeployment, err) } - agents := res.GetAgents() - for j := 0; j < len(agents); j++ { - supportedTaskTypes := agents[j].SupportedTaskTypes + for _, agent := range res.GetAgents() { + supportedTaskTypes := agent.SupportedTaskTypes for _, supportedTaskType := range supportedTaskTypes { - agent := &Agent{AgentDeployment: agentDeployments[i], IsSync: agents[j].IsSync} + agent := &Agent{AgentDeployment: agentDeployment, IsSync: agent.IsSync} agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.GetVersion(): agent} } - logger.Infof(context.Background(), "[%v] AgentDeployment is a sync agent: [%v]", agents[j].Name, agents[j].IsSync) - logger.Infof(context.Background(), "[%v] AgentDeployment supports task types: [%v]", agents[j].Name, supportedTaskTypes) + logger.Infof(context.Background(), "[%v] is a sync agent: [%v]", agent.Name, agent.IsSync) + logger.Infof(context.Background(), "[%v] supports task types: [%v]", agent.Name, supportedTaskTypes) } } - logger.Infof(context.Background(), "AgentDeployment registry initialized: [%v]", agentRegistry["mock_openai"][0]) - return agentRegistry, nil } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go index ee77b315dc..44fee38e99 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go @@ -15,7 +15,6 @@ func TestInitializeClients(t *testing.T) { }, "y": { Endpoint: "y", - IsSync: true, }, } ctx := context.Background() diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index eacb9532d5..349b1d65a0 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -104,7 +104,7 @@ func TestEndToEnd(t *testing.T) { }, }, } - expectedOutputs, err := coreutils.MakeLiteralMap(map[string]interface{}{"x": []interface{}{1, 2}}) + expectedOutputs, err := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) assert.NoError(t, err) phase := tests.RunPluginEndToEndTest(t, plugin, &template, inputs, expectedOutputs, nil, iter) assert.Equal(t, true, phase.Phase().IsSuccess()) @@ -290,9 +290,8 @@ func newMockAsyncAgentPlugin() webapi.PluginEntry { func newMockSyncAgentPlugin() webapi.PluginEntry { syncAgentClient := new(agentMocks.SyncAgentServiceClient) - resource := &admin.Resource{Phase: flyteIdlCore.TaskExecution_SUCCEEDED} - output1, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) - output2, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 2}) + output, _ := coreutils.MakeLiteralMap(map[string]interface{}{"x": 1}) + resource := &admin.Resource{Phase: flyteIdlCore.TaskExecution_SUCCEEDED, Outputs: output} stream := new(agentMocks.SyncAgentService_ExecuteTaskSyncClient) stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ @@ -303,18 +302,6 @@ func newMockSyncAgentPlugin() webapi.PluginEntry { }, }, nil).Once() - stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ - Res: &admin.ExecuteTaskSyncResponse_Outputs{ - Outputs: output1, - }, - }, nil).Once() - - stream.OnRecv().Return(&admin.ExecuteTaskSyncResponse{ - Res: &admin.ExecuteTaskSyncResponse_Outputs{ - Outputs: output2, - }, - }, nil).Once() - stream.OnRecv().Return(nil, io.EOF).Once() stream.OnSendMatch(mock.Anything).Return(nil) stream.OnCloseSendMatch(mock.Anything).Return(nil) @@ -323,7 +310,6 @@ func newMockSyncAgentPlugin() webapi.PluginEntry { cfg := defaultConfig cfg.DefaultAgent.Endpoint = defaultAgentEndpoint - cfg.DefaultAgent.IsSync = true return webapi.PluginEntry{ ID: "agent-service", @@ -337,6 +323,7 @@ func newMockSyncAgentPlugin() webapi.PluginEntry { defaultAgentEndpoint: syncAgentClient, }, }, + agentRegistry: Registry{"openai": {defaultTaskTypeVersion: {AgentDeployment: &AgentDeployment{Endpoint: defaultAgentEndpoint}, IsSync: true}}}, }, nil }, } From a46196d42e80f055efc9a013cb95c20342c72622 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 00:27:55 -0800 Subject: [PATCH 23/35] nit Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 9d807e794a..ad63f500d2 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -136,6 +136,12 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) { } for _, agent := range res.GetAgents() { + deprecatedSupportedTaskTypes := agent.DeprecatedSupportedTaskTypes + for _, supportedTaskType := range deprecatedSupportedTaskTypes { + agent := &Agent{AgentDeployment: agentDeployment, IsSync: agent.IsSync} + agentRegistry[supportedTaskType] = map[int32]*Agent{defaultTaskTypeVersion: agent} + } + supportedTaskTypes := agent.SupportedTaskTypes for _, supportedTaskType := range supportedTaskTypes { agent := &Agent{AgentDeployment: agentDeployment, IsSync: agent.IsSync} From c448de692ca64da623b22fac17e611186e406114 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 01:57:33 -0800 Subject: [PATCH 24/35] lint Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/client.go | 4 ++-- flyteplugins/go/tasks/plugins/webapi/agent/config.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index ad63f500d2..b436225fbd 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -104,8 +104,8 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) { var agentDeployments []*AgentDeployment // Ensure that the old configuration is backward compatible - for taskType, agentDeploymentId := range cfg.AgentForTaskTypes { - agent := Agent{AgentDeployment: cfg.AgentDeployments[agentDeploymentId], IsSync: false} + for taskType, agentDeploymentID := range cfg.AgentForTaskTypes { + agent := Agent{AgentDeployment: cfg.AgentDeployments[agentDeploymentID], IsSync: false} agentRegistry[taskType] = map[int32]*Agent{defaultTaskTypeVersion: &agent} } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/config.go b/flyteplugins/go/tasks/plugins/webapi/agent/config.go index a935cd89d3..8cc25962d4 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/config.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/config.go @@ -63,10 +63,10 @@ type Config struct { // The default agent if there does not exist a more specific matching against task types DefaultAgent AgentDeployment `json:"defaultAgent" pflag:",The default agent."` - // The agents used to match against specific task types. {AgentDeploymentId: AgentDeployment} + // The agents used to match against specific task types. {agentDeploymentID: AgentDeployment} AgentDeployments map[string]*AgentDeployment `json:"agents" pflag:",The agents."` - // Maps task types to their agents. {TaskType: AgentDeploymentId} + // Maps task types to their agents. {TaskType: agentDeploymentID} AgentForTaskTypes map[string]string `json:"agentForTaskTypes" pflag:"-,"` // SupportedTaskTypes is a list of task types that are supported by this plugin. From 10c311666dc507574d917fd962c6d54eb97d2d88 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 11:44:15 -0800 Subject: [PATCH 25/35] lint Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/plugin.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 5546f5ce2b..703a5c9d92 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -150,6 +150,9 @@ func (p Plugin) ExecuteTaskSync( }, } err = stream.Send(inputsProto) + if err != nil { + return nil, nil, err + } } in, err := stream.Recv() From bd4da2a04ef42a973c22dc2d651146e4d2156a0e Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 12:04:14 -0800 Subject: [PATCH 26/35] lint Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 1340 - .../flyteidl/admin/cluster_assignment_pb.ts | 47 - .../gen/pb-es/flyteidl/admin/common_pb.ts | 1388 - .../flyteidl/admin/description_entity_pb.ts | 375 - flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts | 395 - .../gen/pb-es/flyteidl/admin/execution_pb.ts | 1574 - .../pb-es/flyteidl/admin/launch_plan_pb.ts | 805 - .../flyteidl/admin/matchable_resource_pb.ts | 794 - .../pb-es/flyteidl/admin/node_execution_pb.ts | 926 - .../pb-es/flyteidl/admin/notification_pb.ts | 80 - .../flyteidl/admin/project_attributes_pb.ts | 333 - .../admin/project_domain_attributes_pb.ts | 359 - .../gen/pb-es/flyteidl/admin/project_pb.ts | 414 - .../gen/pb-es/flyteidl/admin/schedule_pb.ts | 204 - .../gen/pb-es/flyteidl/admin/signal_pb.ts | 339 - .../pb-es/flyteidl/admin/task_execution_pb.ts | 592 - flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts | 308 - .../gen/pb-es/flyteidl/admin/version_pb.ts | 140 - .../flyteidl/admin/workflow_attributes_pb.ts | 382 - .../gen/pb-es/flyteidl/admin/workflow_pb.ts | 445 - .../gen/pb-es/flyteidl/core/artifact_id_pb.ts | 488 - .../gen/pb-es/flyteidl/core/catalog_pb.ts | 276 - .../gen/pb-es/flyteidl/core/compiler_pb.ts | 301 - .../gen/pb-es/flyteidl/core/condition_pb.ts | 306 - .../gen/pb-es/flyteidl/core/dynamic_job_pb.ts | 89 - flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts | 139 - .../gen/pb-es/flyteidl/core/execution_pb.ts | 613 - .../gen/pb-es/flyteidl/core/identifier_pb.ts | 345 - .../gen/pb-es/flyteidl/core/interface_pb.ts | 286 - .../gen/pb-es/flyteidl/core/literals_pb.ts | 1032 - .../gen/pb-es/flyteidl/core/metrics_pb.ts | 162 - .../gen/pb-es/flyteidl/core/security_pb.ts | 406 - flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts | 1264 - flyteidl/gen/pb-es/flyteidl/core/types_pb.ts | 875 - .../flyteidl/core/workflow_closure_pb.ts | 60 - .../gen/pb-es/flyteidl/core/workflow_pb.ts | 1209 - .../datacatalog/datacatalog_connect.ts | 145 - .../flyteidl/datacatalog/datacatalog_pb.ts | 1940 - .../pb-es/flyteidl/event/cloudevents_pb.ts | 281 - flyteidl/gen/pb-es/flyteidl/event/event_pb.ts | 1088 - .../pb-es/flyteidl/plugins/array_job_pb.ts | 88 - .../gen/pb-es/flyteidl/plugins/dask_pb.ts | 166 - .../flyteidl/plugins/kubeflow/common_pb.ts | 124 - .../pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts | 150 - .../flyteidl/plugins/kubeflow/pytorch_pb.ts | 204 - .../plugins/kubeflow/tensorflow_pb.ts | 148 - flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts | 68 - .../gen/pb-es/flyteidl/plugins/presto_pb.ts | 66 - .../gen/pb-es/flyteidl/plugins/pytorch_pb.ts | 122 - .../gen/pb-es/flyteidl/plugins/qubole_pb.ts | 157 - flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts | 247 - .../gen/pb-es/flyteidl/plugins/spark_pb.ts | 169 - .../pb-es/flyteidl/plugins/tensorflow_pb.ts | 74 - .../gen/pb-es/flyteidl/plugins/waitable_pb.ts | 61 - .../pb-es/flyteidl/service/admin_connect.ts | 632 - .../pb-es/flyteidl/service/agent_connect.ts | 134 - .../pb-es/flyteidl/service/auth_connect.ts | 44 - .../gen/pb-es/flyteidl/service/auth_pb.ts | 272 - .../flyteidl/service/dataproxy_connect.ts | 62 - .../pb-es/flyteidl/service/dataproxy_pb.ts | 570 - .../external_plugin_service_connect.ts | 55 - .../service/external_plugin_service_pb.ts | 337 - .../flyteidl/service/identity_connect.ts | 30 - .../gen/pb-es/flyteidl/service/identity_pb.ts | 137 - .../pb-es/flyteidl/service/signal_connect.ts | 52 - flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 2396 - .../flyteidl/admin/cluster_assignment.pb.go | 159 - .../gen/pb-go/flyteidl/admin/common.pb.go | 2331 - .../flyteidl/admin/description_entity.pb.go | 701 - flyteidl/gen/pb-go/flyteidl/admin/event.pb.go | 749 - .../gen/pb-go/flyteidl/admin/execution.pb.go | 2757 - .../pb-go/flyteidl/admin/launch_plan.pb.go | 1429 - .../flyteidl/admin/matchable_resource.pb.go | 1492 - .../pb-go/flyteidl/admin/node_execution.pb.go | 1663 - .../pb-go/flyteidl/admin/notification.pb.go | 198 - .../gen/pb-go/flyteidl/admin/project.pb.go | 735 - .../flyteidl/admin/project_attributes.pb.go | 623 - .../admin/project_domain_attributes.pb.go | 661 - .../gen/pb-go/flyteidl/admin/schedule.pb.go | 447 - .../gen/pb-go/flyteidl/admin/signal.pb.go | 620 - flyteidl/gen/pb-go/flyteidl/admin/task.pb.go | 582 - .../pb-go/flyteidl/admin/task_execution.pb.go | 1083 - .../gen/pb-go/flyteidl/admin/version.pb.go | 301 - .../gen/pb-go/flyteidl/admin/workflow.pb.go | 855 - .../flyteidl/admin/workflow_attributes.pb.go | 690 - .../gen/pb-go/flyteidl/core/artifact_id.pb.go | 1007 - .../gen/pb-go/flyteidl/core/catalog.pb.go | 506 - .../gen/pb-go/flyteidl/core/compiler.pb.go | 605 - .../gen/pb-go/flyteidl/core/condition.pb.go | 651 - .../gen/pb-go/flyteidl/core/dynamic_job.pb.go | 228 - flyteidl/gen/pb-go/flyteidl/core/errors.pb.go | 320 - .../gen/pb-go/flyteidl/core/execution.pb.go | 1040 - .../gen/pb-go/flyteidl/core/identifier.pb.go | 627 - .../gen/pb-go/flyteidl/core/interface.pb.go | 609 - .../gen/pb-go/flyteidl/core/literals.pb.go | 2004 - .../gen/pb-go/flyteidl/core/metrics.pb.go | 381 - .../gen/pb-go/flyteidl/core/security.pb.go | 727 - flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go | 2215 - flyteidl/gen/pb-go/flyteidl/core/types.pb.go | 1559 - .../gen/pb-go/flyteidl/core/workflow.pb.go | 2259 - .../flyteidl/core/workflow_closure.pb.go | 182 - .../flyteidl/datacatalog/datacatalog.pb.go | 3524 - .../datacatalog/datacatalog_grpc.pb.go | 486 - .../pb-go/flyteidl/event/cloudevents.pb.go | 589 - flyteidl/gen/pb-go/flyteidl/event/event.pb.go | 2025 - .../pb-go/flyteidl/plugins/array_job.pb.go | 230 - .../gen/pb-go/flyteidl/plugins/dask.pb.go | 348 - .../flyteidl/plugins/kubeflow/common.pb.go | 317 - .../pb-go/flyteidl/plugins/kubeflow/mpi.pb.go | 336 - .../flyteidl/plugins/kubeflow/pytorch.pb.go | 436 - .../plugins/kubeflow/tensorflow.pb.go | 350 - flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go | 184 - .../gen/pb-go/flyteidl/plugins/presto.pb.go | 187 - .../gen/pb-go/flyteidl/plugins/pytorch.pb.go | 279 - .../gen/pb-go/flyteidl/plugins/qubole.pb.go | 346 - flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go | 490 - .../gen/pb-go/flyteidl/plugins/spark.pb.go | 383 - .../pb-go/flyteidl/plugins/tensorflow.pb.go | 194 - .../gen/pb-go/flyteidl/plugins/waitable.pb.go | 190 - .../gen/pb-go/flyteidl/service/admin.pb.go | 1230 - .../pb-go/flyteidl/service/admin_grpc.pb.go | 2187 - .../gen/pb-go/flyteidl/service/agent.pb.go | 191 - .../pb-go/flyteidl/service/agent_grpc.pb.go | 553 - .../gen/pb-go/flyteidl/service/auth.pb.go | 549 - .../pb-go/flyteidl/service/auth_grpc.pb.go | 150 - .../pb-go/flyteidl/service/dataproxy.pb.go | 1135 - .../flyteidl/service/dataproxy_grpc.pb.go | 227 - .../service/external_plugin_service.pb.go | 651 - .../external_plugin_service_grpc.pb.go | 196 - .../gen/pb-go/flyteidl/service/identity.pb.go | 313 - .../flyteidl/service/identity_grpc.pb.go | 109 - .../gen/pb-go/flyteidl/service/signal.pb.go | 144 - .../pb-go/flyteidl/service/signal_grpc.pb.go | 188 - .../gateway/flyteidl/admin/agent.swagger.json | 46 - .../admin/cluster_assignment.swagger.json | 46 - .../flyteidl/admin/common.swagger.json | 46 - .../admin/description_entity.swagger.json | 46 - .../gateway/flyteidl/admin/event.swagger.json | 46 - .../flyteidl/admin/execution.swagger.json | 46 - .../flyteidl/admin/launch_plan.swagger.json | 46 - .../admin/matchable_resource.swagger.json | 46 - .../admin/node_execution.swagger.json | 46 - .../flyteidl/admin/notification.swagger.json | 46 - .../flyteidl/admin/project.swagger.json | 46 - .../admin/project_attributes.swagger.json | 46 - .../project_domain_attributes.swagger.json | 46 - .../flyteidl/admin/schedule.swagger.json | 46 - .../flyteidl/admin/signal.swagger.json | 46 - .../gateway/flyteidl/admin/task.swagger.json | 46 - .../admin/task_execution.swagger.json | 46 - .../flyteidl/admin/version.swagger.json | 46 - .../flyteidl/admin/workflow.swagger.json | 46 - .../admin/workflow_attributes.swagger.json | 46 - .../flyteidl/core/artifact_id.swagger.json | 46 - .../flyteidl/core/catalog.swagger.json | 46 - .../flyteidl/core/compiler.swagger.json | 46 - .../flyteidl/core/condition.swagger.json | 46 - .../flyteidl/core/dynamic_job.swagger.json | 46 - .../gateway/flyteidl/core/errors.swagger.json | 46 - .../flyteidl/core/execution.swagger.json | 46 - .../flyteidl/core/identifier.swagger.json | 46 - .../flyteidl/core/interface.swagger.json | 46 - .../flyteidl/core/literals.swagger.json | 46 - .../flyteidl/core/metrics.swagger.json | 46 - .../flyteidl/core/security.swagger.json | 46 - .../gateway/flyteidl/core/tasks.swagger.json | 46 - .../gateway/flyteidl/core/types.swagger.json | 46 - .../flyteidl/core/workflow.swagger.json | 46 - .../core/workflow_closure.swagger.json | 46 - .../datacatalog/datacatalog.swagger.json | 908 - .../flyteidl/event/cloudevents.swagger.json | 46 - .../gateway/flyteidl/event/event.swagger.json | 46 - .../flyteidl/plugins/array_job.swagger.json | 46 - .../flyteidl/plugins/dask.swagger.json | 46 - .../plugins/kubeflow/common.swagger.json | 46 - .../plugins/kubeflow/mpi.swagger.json | 46 - .../plugins/kubeflow/pytorch.swagger.json | 46 - .../plugins/kubeflow/tensorflow.swagger.json | 46 - .../gateway/flyteidl/plugins/mpi.swagger.json | 46 - .../flyteidl/plugins/presto.swagger.json | 46 - .../flyteidl/plugins/pytorch.swagger.json | 46 - .../flyteidl/plugins/qubole.swagger.json | 46 - .../gateway/flyteidl/plugins/ray.swagger.json | 46 - .../flyteidl/plugins/spark.swagger.json | 46 - .../flyteidl/plugins/tensorflow.swagger.json | 46 - .../flyteidl/plugins/waitable.swagger.json | 46 - .../gateway/flyteidl/service/admin.pb.gw.go | 8691 --- .../flyteidl/service/admin.swagger.json | 8976 --- .../gateway/flyteidl/service/agent.pb.gw.go | 1110 - .../flyteidl/service/agent.swagger.json | 2117 - .../gateway/flyteidl/service/auth.pb.gw.go | 225 - .../flyteidl/service/auth.swagger.json | 194 - .../flyteidl/service/dataproxy.pb.gw.go | 431 - .../flyteidl/service/dataproxy.swagger.json | 809 - .../external_plugin_service.swagger.json | 1314 - .../flyteidl/service/identity.pb.gw.go | 156 - .../flyteidl/service/identity.swagger.json | 122 - .../gateway/flyteidl/service/signal.pb.gw.go | 334 - .../flyteidl/service/signal.swagger.json | 739 - flyteidl/gen/pb-js/flyteidl.d.ts | 26940 ------- flyteidl/gen/pb-js/flyteidl.js | 63157 ---------------- flyteidl/gen/pb_python/__init__.py | 0 flyteidl/gen/pb_python/flyteidl/__init__.py | 0 .../gen/pb_python/flyteidl/admin/__init__.py | 0 .../gen/pb_python/flyteidl/admin/agent_pb2.py | 109 - .../pb_python/flyteidl/admin/agent_pb2.pyi | 269 - .../flyteidl/admin/agent_pb2_grpc.py | 4 - .../flyteidl/admin/cluster_assignment_pb2.py | 27 - .../flyteidl/admin/cluster_assignment_pb2.pyi | 11 - .../admin/cluster_assignment_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/common_pb2.py | 93 - .../pb_python/flyteidl/admin/common_pb2.pyi | 254 - .../flyteidl/admin/common_pb2_grpc.py | 4 - .../flyteidl/admin/description_entity_pb2.py | 39 - .../flyteidl/admin/description_entity_pb2.pyi | 76 - .../admin/description_entity_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/admin/event_pb2.py | 44 - .../pb_python/flyteidl/admin/event_pb2.pyi | 62 - .../flyteidl/admin/event_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/execution_pb2.py | 104 - .../flyteidl/admin/execution_pb2.pyi | 291 - .../flyteidl/admin/execution_pb2_grpc.py | 4 - .../flyteidl/admin/launch_plan_pb2.py | 69 - .../flyteidl/admin/launch_plan_pb2.pyi | 156 - .../flyteidl/admin/launch_plan_pb2_grpc.py | 4 - .../flyteidl/admin/matchable_resource_pb2.py | 62 - .../flyteidl/admin/matchable_resource_pb2.pyi | 170 - .../admin/matchable_resource_pb2_grpc.py | 4 - .../flyteidl/admin/node_execution_pb2.py | 69 - .../flyteidl/admin/node_execution_pb2.pyi | 172 - .../flyteidl/admin/node_execution_pb2_grpc.py | 4 - .../flyteidl/admin/notification_pb2.py | 27 - .../flyteidl/admin/notification_pb2.pyi | 18 - .../flyteidl/admin/notification_pb2_grpc.py | 4 - .../flyteidl/admin/project_attributes_pb2.py | 40 - .../flyteidl/admin/project_attributes_pb2.pyi | 56 - .../admin/project_attributes_pb2_grpc.py | 4 - .../admin/project_domain_attributes_pb2.py | 40 - .../admin/project_domain_attributes_pb2.pyi | 62 - .../project_domain_attributes_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/project_pb2.py | 42 - .../pb_python/flyteidl/admin/project_pb2.pyi | 78 - .../flyteidl/admin/project_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/schedule_pb2.py | 35 - .../pb_python/flyteidl/admin/schedule_pb2.pyi | 43 - .../flyteidl/admin/schedule_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/signal_pb2.py | 41 - .../pb_python/flyteidl/admin/signal_pb2.pyi | 62 - .../flyteidl/admin/signal_pb2_grpc.py | 4 - .../flyteidl/admin/task_execution_pb2.py | 57 - .../flyteidl/admin/task_execution_pb2.pyi | 116 - .../flyteidl/admin/task_execution_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/admin/task_pb2.py | 42 - .../gen/pb_python/flyteidl/admin/task_pb2.pyi | 57 - .../pb_python/flyteidl/admin/task_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/version_pb2.py | 31 - .../pb_python/flyteidl/admin/version_pb2.pyi | 25 - .../flyteidl/admin/version_pb2_grpc.py | 4 - .../flyteidl/admin/workflow_attributes_pb2.py | 40 - .../admin/workflow_attributes_pb2.pyi | 68 - .../admin/workflow_attributes_pb2_grpc.py | 4 - .../pb_python/flyteidl/admin/workflow_pb2.py | 48 - .../pb_python/flyteidl/admin/workflow_pb2.pyi | 79 - .../flyteidl/admin/workflow_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/core/__init__.py | 0 .../flyteidl/core/artifact_id_pb2.py | 49 - .../flyteidl/core/artifact_id_pb2.pyi | 101 - .../flyteidl/core/artifact_id_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/catalog_pb2.py | 36 - .../pb_python/flyteidl/core/catalog_pb2.pyi | 60 - .../flyteidl/core/catalog_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/compiler_pb2.py | 49 - .../pb_python/flyteidl/core/compiler_pb2.pyi | 69 - .../flyteidl/core/compiler_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/condition_pb2.py | 40 - .../pb_python/flyteidl/core/condition_pb2.pyi | 65 - .../flyteidl/core/condition_pb2_grpc.py | 4 - .../flyteidl/core/dynamic_job_pb2.py | 30 - .../flyteidl/core/dynamic_job_pb2.pyi | 23 - .../flyteidl/core/dynamic_job_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/core/errors_pb2.py | 32 - .../pb_python/flyteidl/core/errors_pb2.pyi | 31 - .../flyteidl/core/errors_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/execution_pb2.py | 52 - .../pb_python/flyteidl/core/execution_pb2.pyi | 147 - .../flyteidl/core/execution_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/identifier_pb2.py | 37 - .../flyteidl/core/identifier_pb2.pyi | 73 - .../flyteidl/core/identifier_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/interface_pb2.py | 46 - .../pb_python/flyteidl/core/interface_pb2.pyi | 69 - .../flyteidl/core/interface_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/literals_pb2.py | 81 - .../pb_python/flyteidl/core/literals_pb2.pyi | 205 - .../flyteidl/core/literals_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/metrics_pb2.py | 32 - .../pb_python/flyteidl/core/metrics_pb2.pyi | 35 - .../flyteidl/core/metrics_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/security_pb2.py | 39 - .../pb_python/flyteidl/core/security_pb2.pyi | 75 - .../flyteidl/core/security_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/core/tasks_pb2.py | 91 - .../gen/pb_python/flyteidl/core/tasks_pb2.pyi | 280 - .../pb_python/flyteidl/core/tasks_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/core/types_pb2.py | 62 - .../gen/pb_python/flyteidl/core/types_pb2.pyi | 176 - .../pb_python/flyteidl/core/types_pb2_grpc.py | 4 - .../flyteidl/core/workflow_closure_pb2.py | 29 - .../flyteidl/core/workflow_closure_pb2.pyi | 16 - .../core/workflow_closure_pb2_grpc.py | 4 - .../pb_python/flyteidl/core/workflow_pb2.py | 76 - .../pb_python/flyteidl/core/workflow_pb2.pyi | 217 - .../flyteidl/core/workflow_pb2_grpc.py | 4 - .../flyteidl/datacatalog/__init__.py | 0 .../flyteidl/datacatalog/datacatalog_pb2.py | 114 - .../flyteidl/datacatalog/datacatalog_pb2.pyi | 341 - .../datacatalog/datacatalog_pb2_grpc.py | 398 - .../gen/pb_python/flyteidl/event/__init__.py | 0 .../flyteidl/event/cloudevents_pb2.py | 39 - .../flyteidl/event/cloudevents_pb2.pyi | 66 - .../flyteidl/event/cloudevents_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/event/event_pb2.py | 60 - .../pb_python/flyteidl/event/event_pb2.pyi | 218 - .../flyteidl/event/event_pb2_grpc.py | 4 - .../pb_python/flyteidl/plugins/__init__.py | 0 .../flyteidl/plugins/array_job_pb2.py | 27 - .../flyteidl/plugins/array_job_pb2.pyi | 17 - .../flyteidl/plugins/array_job_pb2_grpc.py | 4 - .../pb_python/flyteidl/plugins/dask_pb2.py | 32 - .../pb_python/flyteidl/plugins/dask_pb2.pyi | 32 - .../flyteidl/plugins/dask_pb2_grpc.py | 4 - .../flyteidl/plugins/kubeflow/__init__.py | 0 .../flyteidl/plugins/kubeflow/common_pb2.py | 31 - .../flyteidl/plugins/kubeflow/common_pb2.pyi | 36 - .../plugins/kubeflow/common_pb2_grpc.py | 4 - .../flyteidl/plugins/kubeflow/mpi_pb2.py | 31 - .../flyteidl/plugins/kubeflow/mpi_pb2.pyi | 34 - .../flyteidl/plugins/kubeflow/mpi_pb2_grpc.py | 4 - .../flyteidl/plugins/kubeflow/pytorch_pb2.py | 33 - .../flyteidl/plugins/kubeflow/pytorch_pb2.pyi | 45 - .../plugins/kubeflow/pytorch_pb2_grpc.py | 4 - .../plugins/kubeflow/tensorflow_pb2.py | 31 - .../plugins/kubeflow/tensorflow_pb2.pyi | 33 - .../plugins/kubeflow/tensorflow_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/plugins/mpi_pb2.py | 27 - .../pb_python/flyteidl/plugins/mpi_pb2.pyi | 15 - .../flyteidl/plugins/mpi_pb2_grpc.py | 4 - .../pb_python/flyteidl/plugins/presto_pb2.py | 27 - .../pb_python/flyteidl/plugins/presto_pb2.pyi | 17 - .../flyteidl/plugins/presto_pb2_grpc.py | 4 - .../pb_python/flyteidl/plugins/pytorch_pb2.py | 29 - .../flyteidl/plugins/pytorch_pb2.pyi | 27 - .../flyteidl/plugins/pytorch_pb2_grpc.py | 4 - .../pb_python/flyteidl/plugins/qubole_pb2.py | 33 - .../pb_python/flyteidl/plugins/qubole_pb2.pyi | 34 - .../flyteidl/plugins/qubole_pb2_grpc.py | 4 - .../gen/pb_python/flyteidl/plugins/ray_pb2.py | 41 - .../pb_python/flyteidl/plugins/ray_pb2.pyi | 62 - .../flyteidl/plugins/ray_pb2_grpc.py | 4 - .../pb_python/flyteidl/plugins/spark_pb2.py | 40 - .../pb_python/flyteidl/plugins/spark_pb2.pyi | 58 - .../flyteidl/plugins/spark_pb2_grpc.py | 4 - .../flyteidl/plugins/tensorflow_pb2.py | 27 - .../flyteidl/plugins/tensorflow_pb2.pyi | 17 - .../flyteidl/plugins/tensorflow_pb2_grpc.py | 4 - .../flyteidl/plugins/waitable_pb2.py | 29 - .../flyteidl/plugins/waitable_pb2.pyi | 17 - .../flyteidl/plugins/waitable_pb2_grpc.py | 4 - .../pb_python/flyteidl/service/__init__.py | 0 .../pb_python/flyteidl/service/admin_pb2.py | 152 - .../pb_python/flyteidl/service/admin_pb2.pyi | 21 - .../flyteidl/service/admin_pb2_grpc.py | 1894 - .../pb_python/flyteidl/service/agent_pb2.py | 49 - .../pb_python/flyteidl/service/agent_pb2.pyi | 6 - .../flyteidl/service/agent_pb2_grpc.py | 377 - .../pb_python/flyteidl/service/auth_pb2.py | 41 - .../pb_python/flyteidl/service/auth_pb2.pyi | 56 - .../flyteidl/service/auth_pb2_grpc.py | 111 - .../flyteidl/service/dataproxy_pb2.py | 69 - .../flyteidl/service/dataproxy_pb2.pyi | 106 - .../flyteidl/service/dataproxy_pb2_grpc.py | 171 - .../service/external_plugin_service_pb2.py | 63 - .../service/external_plugin_service_pb2.pyi | 65 - .../external_plugin_service_pb2_grpc.py | 138 - .../flyteidl/service/identity_pb2.py | 36 - .../flyteidl/service/identity_pb2.pyi | 32 - .../flyteidl/service/identity_pb2_grpc.py | 70 - .../pb_python/flyteidl/service/signal_pb2.py | 36 - .../pb_python/flyteidl/service/signal_pb2.pyi | 7 - .../flyteidl/service/signal_pb2_grpc.py | 138 - flyteidl/gen/pb_rust/datacatalog.rs | 565 - flyteidl/gen/pb_rust/flyteidl.admin.rs | 3291 - flyteidl/gen/pb_rust/flyteidl.core.rs | 2955 - flyteidl/gen/pb_rust/flyteidl.event.rs | 461 - .../gen/pb_rust/flyteidl.plugins.kubeflow.rs | 205 - flyteidl/gen/pb_rust/flyteidl.plugins.rs | 327 - flyteidl/gen/pb_rust/flyteidl.service.rs | 400 - flyteidl/protos/flyteidl/admin/agent.proto | 2 + .../go/tasks/plugins/webapi/agent/client.go | 12 +- .../tasks/plugins/webapi/agent/client_test.go | 2 +- .../go/tasks/plugins/webapi/agent/config.go | 8 +- .../tasks/plugins/webapi/agent/config_test.go | 2 +- .../plugins/webapi/agent/integration_test.go | 2 +- .../go/tasks/plugins/webapi/agent/plugin.go | 6 +- .../tasks/plugins/webapi/agent/plugin_test.go | 16 +- 405 files changed, 26 insertions(+), 219237 deletions(-) delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/security_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/types_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/event/event_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts delete mode 100644 flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/common.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/event.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/version.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/condition.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/errors.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/execution.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/interface.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/literals.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/security.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/types.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/event/event.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/agent.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/auth.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/identity.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/signal.pb.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go delete mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json delete mode 100644 flyteidl/gen/pb-js/flyteidl.d.ts delete mode 100644 flyteidl/gen/pb-js/flyteidl.js delete mode 100644 flyteidl/gen/pb_python/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/security_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/__init__.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi delete mode 100644 flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py delete mode 100644 flyteidl/gen/pb_rust/datacatalog.rs delete mode 100644 flyteidl/gen/pb_rust/flyteidl.admin.rs delete mode 100644 flyteidl/gen/pb_rust/flyteidl.core.rs delete mode 100644 flyteidl/gen/pb_rust/flyteidl.event.rs delete mode 100644 flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs delete mode 100644 flyteidl/gen/pb_rust/flyteidl.plugins.rs delete mode 100644 flyteidl/gen/pb_rust/flyteidl.service.rs diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts deleted file mode 100644 index a1686210ad..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ /dev/null @@ -1,1340 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/agent.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf"; -import { TaskExecutionIdentifier } from "../core/identifier_pb.js"; -import { TaskNodeOverrides } from "../core/workflow_pb.js"; -import { LiteralMap } from "../core/literals_pb.js"; -import { TaskTemplate } from "../core/tasks_pb.js"; -import { TaskExecution_Phase, TaskLog } from "../core/execution_pb.js"; -import { ExecutionMetricResult } from "../core/metrics_pb.js"; - -/** - * The state of the execution is used to control its visibility in the UI/CLI. - * - * @generated from enum flyteidl.admin.State - * @deprecated - */ -export enum State { - /** - * @generated from enum value: RETRYABLE_FAILURE = 0; - */ - RETRYABLE_FAILURE = 0, - - /** - * @generated from enum value: PERMANENT_FAILURE = 1; - */ - PERMANENT_FAILURE = 1, - - /** - * @generated from enum value: PENDING = 2; - */ - PENDING = 2, - - /** - * @generated from enum value: RUNNING = 3; - */ - RUNNING = 3, - - /** - * @generated from enum value: SUCCEEDED = 4; - */ - SUCCEEDED = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(State) -proto3.util.setEnumType(State, "flyteidl.admin.State", [ - { no: 0, name: "RETRYABLE_FAILURE" }, - { no: 1, name: "PERMANENT_FAILURE" }, - { no: 2, name: "PENDING" }, - { no: 3, name: "RUNNING" }, - { no: 4, name: "SUCCEEDED" }, -]); - -/** - * Represents a subset of runtime task execution metadata that are relevant to external plugins. - * - * @generated from message flyteidl.admin.TaskExecutionMetadata - */ -export class TaskExecutionMetadata extends Message { - /** - * ID of the task execution - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - taskExecutionId?: TaskExecutionIdentifier; - - /** - * k8s namespace where the task is executed in - * - * @generated from field: string namespace = 2; - */ - namespace = ""; - - /** - * Labels attached to the task execution - * - * @generated from field: map labels = 3; - */ - labels: { [key: string]: string } = {}; - - /** - * Annotations attached to the task execution - * - * @generated from field: map annotations = 4; - */ - annotations: { [key: string]: string } = {}; - - /** - * k8s service account associated with the task execution - * - * @generated from field: string k8s_service_account = 5; - */ - k8sServiceAccount = ""; - - /** - * Environment variables attached to the task execution - * - * @generated from field: map environment_variables = 6; - */ - environmentVariables: { [key: string]: string } = {}; - - /** - * @generated from field: int32 max_attempts = 7; - */ - maxAttempts = 0; - - /** - * @generated from field: bool interruptible = 8; - */ - interruptible = false; - - /** - * @generated from field: int32 interruptible_failure_threshold = 9; - */ - interruptibleFailureThreshold = 0; - - /** - * @generated from field: flyteidl.core.TaskNodeOverrides overrides = 10; - */ - overrides?: TaskNodeOverrides; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_execution_id", kind: "message", T: TaskExecutionIdentifier }, - { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 4, name: "annotations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 5, name: "k8s_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "environment_variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 7, name: "max_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 9, name: "interruptible_failure_threshold", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 10, name: "overrides", kind: "message", T: TaskNodeOverrides }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionMetadata { - return new TaskExecutionMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionMetadata { - return new TaskExecutionMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionMetadata { - return new TaskExecutionMetadata().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionMetadata | PlainMessage | undefined, b: TaskExecutionMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionMetadata, a, b); - } -} - -/** - * Represents a request structure to create task. - * - * @generated from message flyteidl.admin.CreateTaskRequest - */ -export class CreateTaskRequest extends Message { - /** - * The inputs required to start the execution. All required inputs must be - * included in this map. If not required and not provided, defaults apply. - * +optional - * - * @generated from field: flyteidl.core.LiteralMap inputs = 1; - */ - inputs?: LiteralMap; - - /** - * Template of the task that encapsulates all the metadata of the task. - * - * @generated from field: flyteidl.core.TaskTemplate template = 2; - */ - template?: TaskTemplate; - - /** - * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - * - * @generated from field: string output_prefix = 3; - */ - outputPrefix = ""; - - /** - * subset of runtime task execution metadata. - * - * @generated from field: flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - taskExecutionMetadata?: TaskExecutionMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.CreateTaskRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "message", T: LiteralMap }, - { no: 2, name: "template", kind: "message", T: TaskTemplate }, - { no: 3, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "task_execution_metadata", kind: "message", T: TaskExecutionMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateTaskRequest { - return new CreateTaskRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateTaskRequest { - return new CreateTaskRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateTaskRequest { - return new CreateTaskRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateTaskRequest | PlainMessage | undefined, b: CreateTaskRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateTaskRequest, a, b); - } -} - -/** - * Represents a create response structure. - * - * @generated from message flyteidl.admin.CreateTaskResponse - */ -export class CreateTaskResponse extends Message { - /** - * ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - * - * @generated from field: bytes resource_meta = 1; - */ - resourceMeta = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.CreateTaskResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateTaskResponse { - return new CreateTaskResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateTaskResponse { - return new CreateTaskResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateTaskResponse { - return new CreateTaskResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateTaskResponse | PlainMessage | undefined, b: CreateTaskResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateTaskResponse, a, b); - } -} - -/** - * @generated from message flyteidl.admin.CreateRequestHeader - */ -export class CreateRequestHeader extends Message { - /** - * Template of the task that encapsulates all the metadata of the task. - * - * @generated from field: flyteidl.core.TaskTemplate template = 1; - */ - template?: TaskTemplate; - - /** - * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - * - * @generated from field: string output_prefix = 2; - */ - outputPrefix = ""; - - /** - * subset of runtime task execution metadata. - * - * @generated from field: flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 3; - */ - taskExecutionMetadata?: TaskExecutionMetadata; - - /** - * MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. - * - * @generated from field: int64 max_dataset_size_bytes = 4; - */ - maxDatasetSizeBytes = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.CreateRequestHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "template", kind: "message", T: TaskTemplate }, - { no: 2, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "task_execution_metadata", kind: "message", T: TaskExecutionMetadata }, - { no: 4, name: "max_dataset_size_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateRequestHeader { - return new CreateRequestHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateRequestHeader { - return new CreateRequestHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateRequestHeader { - return new CreateRequestHeader().fromJsonString(jsonString, options); - } - - static equals(a: CreateRequestHeader | PlainMessage | undefined, b: CreateRequestHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateRequestHeader, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecuteTaskSyncRequest - */ -export class ExecuteTaskSyncRequest extends Message { - /** - * @generated from oneof flyteidl.admin.ExecuteTaskSyncRequest.part - */ - part: { - /** - * @generated from field: flyteidl.admin.CreateRequestHeader header = 1; - */ - value: CreateRequestHeader; - case: "header"; - } | { - /** - * @generated from field: flyteidl.core.LiteralMap inputs = 2; - */ - value: LiteralMap; - case: "inputs"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecuteTaskSyncRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: CreateRequestHeader, oneof: "part" }, - { no: 2, name: "inputs", kind: "message", T: LiteralMap, oneof: "part" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncRequest { - return new ExecuteTaskSyncRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncRequest { - return new ExecuteTaskSyncRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncRequest { - return new ExecuteTaskSyncRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExecuteTaskSyncRequest | PlainMessage | undefined, b: ExecuteTaskSyncRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecuteTaskSyncRequest, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecuteTaskSyncResponseHeader - */ -export class ExecuteTaskSyncResponseHeader extends Message { - /** - * @generated from field: flyteidl.admin.Resource resource = 1; - */ - resource?: Resource; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecuteTaskSyncResponseHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource", kind: "message", T: Resource }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncResponseHeader { - return new ExecuteTaskSyncResponseHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncResponseHeader { - return new ExecuteTaskSyncResponseHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncResponseHeader { - return new ExecuteTaskSyncResponseHeader().fromJsonString(jsonString, options); - } - - static equals(a: ExecuteTaskSyncResponseHeader | PlainMessage | undefined, b: ExecuteTaskSyncResponseHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecuteTaskSyncResponseHeader, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecuteTaskSyncResponse - */ -export class ExecuteTaskSyncResponse extends Message { - /** - * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - * Resource is for synchronous task execution. - * - * @generated from oneof flyteidl.admin.ExecuteTaskSyncResponse.res - */ - res: { - /** - * @generated from field: flyteidl.admin.ExecuteTaskSyncResponseHeader header = 1; - */ - value: ExecuteTaskSyncResponseHeader; - case: "header"; - } | { - /** - * @generated from field: flyteidl.core.LiteralMap outputs = 2; - */ - value: LiteralMap; - case: "outputs"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecuteTaskSyncResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: ExecuteTaskSyncResponseHeader, oneof: "res" }, - { no: 2, name: "outputs", kind: "message", T: LiteralMap, oneof: "res" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncResponse { - return new ExecuteTaskSyncResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncResponse { - return new ExecuteTaskSyncResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncResponse { - return new ExecuteTaskSyncResponse().fromJsonString(jsonString, options); - } - - static equals(a: ExecuteTaskSyncResponse | PlainMessage | undefined, b: ExecuteTaskSyncResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecuteTaskSyncResponse, a, b); - } -} - -/** - * A message used to fetch a job resource from flyte agent server. - * - * @generated from message flyteidl.admin.GetTaskRequest - */ -export class GetTaskRequest extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; - * @deprecated - */ - deprecatedTaskType = ""; - - /** - * Metadata about the resource to be pass to the agent. - * - * @generated from field: bytes resource_meta = 2; - */ - resourceMeta = new Uint8Array(0); - - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: flyteidl.admin.TaskType task_type = 3; - */ - taskType?: TaskType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "task_type", kind: "message", T: TaskType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskRequest { - return new GetTaskRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskRequest { - return new GetTaskRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskRequest { - return new GetTaskRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskRequest | PlainMessage | undefined, b: GetTaskRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskRequest, a, b); - } -} - -/** - * Response to get an individual task resource. - * - * @generated from message flyteidl.admin.GetTaskResponse - */ -export class GetTaskResponse extends Message { - /** - * @generated from field: flyteidl.admin.Resource resource = 1; - */ - resource?: Resource; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource", kind: "message", T: Resource }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskResponse { - return new GetTaskResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskResponse { - return new GetTaskResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskResponse { - return new GetTaskResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskResponse | PlainMessage | undefined, b: GetTaskResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskResponse, a, b); - } -} - -/** - * @generated from message flyteidl.admin.Resource - */ -export class Resource extends Message { - /** - * DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI. - * - * @generated from field: flyteidl.admin.State state = 1 [deprecated = true]; - * @deprecated - */ - state = State.RETRYABLE_FAILURE; - - /** - * The outputs of the execution. It's typically used by sql task. Agent service will create a - * Structured dataset pointing to the query result table. - * +optional - * - * @generated from field: flyteidl.core.LiteralMap outputs = 2; - */ - outputs?: LiteralMap; - - /** - * A descriptive message for the current state. e.g. waiting for cluster. - * - * @generated from field: string message = 3; - */ - message = ""; - - /** - * log information for the task execution. - * - * @generated from field: repeated flyteidl.core.TaskLog log_links = 4; - */ - logLinks: TaskLog[] = []; - - /** - * The phase of the execution is used to determine the phase of the plugin's execution. - * - * @generated from field: flyteidl.core.TaskExecution.Phase phase = 5; - */ - phase = TaskExecution_Phase.UNDEFINED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Resource"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 2, name: "outputs", kind: "message", T: LiteralMap }, - { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "log_links", kind: "message", T: TaskLog, repeated: true }, - { no: 5, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Resource { - return new Resource().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Resource { - return new Resource().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Resource { - return new Resource().fromJsonString(jsonString, options); - } - - static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean { - return proto3.util.equals(Resource, a, b); - } -} - -/** - * A message used to delete a task. - * - * @generated from message flyteidl.admin.DeleteTaskRequest - */ -export class DeleteTaskRequest extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; - * @deprecated - */ - deprecatedTaskType = ""; - - /** - * Metadata about the resource to be pass to the agent. - * - * @generated from field: bytes resource_meta = 2; - */ - resourceMeta = new Uint8Array(0); - - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: flyteidl.admin.TaskType task_type = 3; - */ - taskType?: TaskType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DeleteTaskRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "task_type", kind: "message", T: TaskType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteTaskRequest { - return new DeleteTaskRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteTaskRequest { - return new DeleteTaskRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteTaskRequest { - return new DeleteTaskRequest().fromJsonString(jsonString, options); - } - - static equals(a: DeleteTaskRequest | PlainMessage | undefined, b: DeleteTaskRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteTaskRequest, a, b); - } -} - -/** - * Response to delete a task. - * - * @generated from message flyteidl.admin.DeleteTaskResponse - */ -export class DeleteTaskResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DeleteTaskResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DeleteTaskResponse { - return new DeleteTaskResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DeleteTaskResponse { - return new DeleteTaskResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DeleteTaskResponse { - return new DeleteTaskResponse().fromJsonString(jsonString, options); - } - - static equals(a: DeleteTaskResponse | PlainMessage | undefined, b: DeleteTaskResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DeleteTaskResponse, a, b); - } -} - -/** - * A message containing the agent metadata. - * - * @generated from message flyteidl.admin.Agent - */ -export class Agent extends Message { - /** - * Name is the developer-assigned name of the agent. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * SupportedTaskTypes are the types of the tasks that the agent can handle. - * - * @generated from field: repeated string deprecated_supported_task_types = 2 [deprecated = true]; - * @deprecated - */ - deprecatedSupportedTaskTypes: string[] = []; - - /** - * IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their - * results synchronously when called by propeller. Given that sync agents can affect the performance - * of the system, it's important to enforce strict timeout policies. - * An Async agent, on the other hand, is required to be able to identify jobs by an - * identifier and query for job statuses as jobs progress. - * - * @generated from field: bool is_sync = 3; - */ - isSync = false; - - /** - * SupportedTaskTypes are the types of the tasks that the agent can handle. - * - * @generated from field: repeated flyteidl.admin.TaskType supported_task_types = 4; - */ - supportedTaskTypes: TaskType[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Agent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deprecated_supported_task_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "is_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Agent { - return new Agent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Agent { - return new Agent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Agent { - return new Agent().fromJsonString(jsonString, options); - } - - static equals(a: Agent | PlainMessage | undefined, b: Agent | PlainMessage | undefined): boolean { - return proto3.util.equals(Agent, a, b); - } -} - -/** - * @generated from message flyteidl.admin.TaskType - */ -export class TaskType extends Message { - /** - * The name of the task type. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * The version of the task type. - * - * @generated from field: int32 version = 2; - */ - version = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskType { - return new TaskType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskType { - return new TaskType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskType { - return new TaskType().fromJsonString(jsonString, options); - } - - static equals(a: TaskType | PlainMessage | undefined, b: TaskType | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskType, a, b); - } -} - -/** - * A request to get an agent. - * - * @generated from message flyteidl.admin.GetAgentRequest - */ -export class GetAgentRequest extends Message { - /** - * The name of the agent. - * - * @generated from field: string name = 1; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetAgentRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAgentRequest { - return new GetAgentRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAgentRequest { - return new GetAgentRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAgentRequest { - return new GetAgentRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetAgentRequest | PlainMessage | undefined, b: GetAgentRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAgentRequest, a, b); - } -} - -/** - * A response containing an agent. - * - * @generated from message flyteidl.admin.GetAgentResponse - */ -export class GetAgentResponse extends Message { - /** - * @generated from field: flyteidl.admin.Agent agent = 1; - */ - agent?: Agent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetAgentResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "agent", kind: "message", T: Agent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetAgentResponse { - return new GetAgentResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetAgentResponse { - return new GetAgentResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetAgentResponse { - return new GetAgentResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetAgentResponse | PlainMessage | undefined, b: GetAgentResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetAgentResponse, a, b); - } -} - -/** - * A request to list all agents. - * - * @generated from message flyteidl.admin.ListAgentsRequest - */ -export class ListAgentsRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ListAgentsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAgentsRequest { - return new ListAgentsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAgentsRequest { - return new ListAgentsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAgentsRequest { - return new ListAgentsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListAgentsRequest | PlainMessage | undefined, b: ListAgentsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAgentsRequest, a, b); - } -} - -/** - * A response containing a list of agents. - * - * @generated from message flyteidl.admin.ListAgentsResponse - */ -export class ListAgentsResponse extends Message { - /** - * @generated from field: repeated flyteidl.admin.Agent agents = 1; - */ - agents: Agent[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ListAgentsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "agents", kind: "message", T: Agent, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListAgentsResponse { - return new ListAgentsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListAgentsResponse { - return new ListAgentsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListAgentsResponse { - return new ListAgentsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListAgentsResponse | PlainMessage | undefined, b: ListAgentsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListAgentsResponse, a, b); - } -} - -/** - * A request to get the metrics from a task execution. - * - * @generated from message flyteidl.admin.GetTaskMetricsRequest - */ -export class GetTaskMetricsRequest extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; - * @deprecated - */ - deprecatedTaskType = ""; - - /** - * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - * - * @generated from field: bytes resource_meta = 2; - */ - resourceMeta = new Uint8Array(0); - - /** - * The metrics to query. If empty, will return a default set of metrics. - * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG - * - * @generated from field: repeated string queries = 3; - */ - queries: string[] = []; - - /** - * Start timestamp, inclusive. - * - * @generated from field: google.protobuf.Timestamp start_time = 4; - */ - startTime?: Timestamp; - - /** - * End timestamp, inclusive.. - * - * @generated from field: google.protobuf.Timestamp end_time = 5; - */ - endTime?: Timestamp; - - /** - * Query resolution step width in duration format or float number of seconds. - * - * @generated from field: google.protobuf.Duration step = 6; - */ - step?: Duration; - - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: flyteidl.admin.TaskType task_type = 7; - */ - taskType?: TaskType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskMetricsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "queries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "start_time", kind: "message", T: Timestamp }, - { no: 5, name: "end_time", kind: "message", T: Timestamp }, - { no: 6, name: "step", kind: "message", T: Duration }, - { no: 7, name: "task_type", kind: "message", T: TaskType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskMetricsRequest { - return new GetTaskMetricsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskMetricsRequest { - return new GetTaskMetricsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskMetricsRequest { - return new GetTaskMetricsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskMetricsRequest | PlainMessage | undefined, b: GetTaskMetricsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskMetricsRequest, a, b); - } -} - -/** - * A response containing a list of metrics for a task execution. - * - * @generated from message flyteidl.admin.GetTaskMetricsResponse - */ -export class GetTaskMetricsResponse extends Message { - /** - * The execution metric results. - * - * @generated from field: repeated flyteidl.core.ExecutionMetricResult results = 1; - */ - results: ExecutionMetricResult[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskMetricsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "message", T: ExecutionMetricResult, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskMetricsResponse { - return new GetTaskMetricsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskMetricsResponse { - return new GetTaskMetricsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskMetricsResponse { - return new GetTaskMetricsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskMetricsResponse | PlainMessage | undefined, b: GetTaskMetricsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskMetricsResponse, a, b); - } -} - -/** - * A request to get the log from a task execution. - * - * @generated from message flyteidl.admin.GetTaskLogsRequest - */ -export class GetTaskLogsRequest extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; - * @deprecated - */ - deprecatedTaskType = ""; - - /** - * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - * - * @generated from field: bytes resource_meta = 2; - */ - resourceMeta = new Uint8Array(0); - - /** - * Number of lines to return. - * - * @generated from field: uint64 lines = 3; - */ - lines = protoInt64.zero; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 4; - */ - token = ""; - - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: flyteidl.admin.TaskType task_type = 5; - */ - taskType?: TaskType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskLogsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "lines", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, - { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "task_type", kind: "message", T: TaskType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsRequest { - return new GetTaskLogsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsRequest { - return new GetTaskLogsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsRequest { - return new GetTaskLogsRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskLogsRequest | PlainMessage | undefined, b: GetTaskLogsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskLogsRequest, a, b); - } -} - -/** - * @generated from message flyteidl.admin.GetTaskLogsResponseHeader - */ -export class GetTaskLogsResponseHeader extends Message { - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 1; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskLogsResponseHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponseHeader { - return new GetTaskLogsResponseHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponseHeader { - return new GetTaskLogsResponseHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponseHeader { - return new GetTaskLogsResponseHeader().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskLogsResponseHeader | PlainMessage | undefined, b: GetTaskLogsResponseHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskLogsResponseHeader, a, b); - } -} - -/** - * @generated from message flyteidl.admin.GetTaskLogsResponseBody - */ -export class GetTaskLogsResponseBody extends Message { - /** - * The execution log results. - * - * @generated from field: repeated string results = 1; - */ - results: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskLogsResponseBody"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "results", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponseBody { - return new GetTaskLogsResponseBody().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponseBody { - return new GetTaskLogsResponseBody().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponseBody { - return new GetTaskLogsResponseBody().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskLogsResponseBody | PlainMessage | undefined, b: GetTaskLogsResponseBody | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskLogsResponseBody, a, b); - } -} - -/** - * A response containing the logs for a task execution. - * - * @generated from message flyteidl.admin.GetTaskLogsResponse - */ -export class GetTaskLogsResponse extends Message { - /** - * @generated from oneof flyteidl.admin.GetTaskLogsResponse.part - */ - part: { - /** - * @generated from field: flyteidl.admin.GetTaskLogsResponseHeader header = 1; - */ - value: GetTaskLogsResponseHeader; - case: "header"; - } | { - /** - * @generated from field: flyteidl.admin.GetTaskLogsResponseBody body = 2; - */ - value: GetTaskLogsResponseBody; - case: "body"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetTaskLogsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "header", kind: "message", T: GetTaskLogsResponseHeader, oneof: "part" }, - { no: 2, name: "body", kind: "message", T: GetTaskLogsResponseBody, oneof: "part" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponse { - return new GetTaskLogsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponse { - return new GetTaskLogsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponse { - return new GetTaskLogsResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetTaskLogsResponse | PlainMessage | undefined, b: GetTaskLogsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetTaskLogsResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts deleted file mode 100644 index 257f644343..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts +++ /dev/null @@ -1,47 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/cluster_assignment.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Encapsulates specifications for routing an execution onto a specific cluster. - * - * @generated from message flyteidl.admin.ClusterAssignment - */ -export class ClusterAssignment extends Message { - /** - * @generated from field: string cluster_pool_name = 3; - */ - clusterPoolName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ClusterAssignment"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "cluster_pool_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClusterAssignment { - return new ClusterAssignment().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClusterAssignment { - return new ClusterAssignment().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClusterAssignment { - return new ClusterAssignment().fromJsonString(jsonString, options); - } - - static equals(a: ClusterAssignment | PlainMessage | undefined, b: ClusterAssignment | PlainMessage | undefined): boolean { - return proto3.util.equals(ClusterAssignment, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts deleted file mode 100644 index 52ee165d36..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts +++ /dev/null @@ -1,1388 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/common.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Identifier, ResourceType } from "../core/identifier_pb.js"; -import { WorkflowExecution_Phase } from "../core/execution_pb.js"; -import { KeyValuePair } from "../core/literals_pb.js"; - -/** - * The status of the named entity is used to control its visibility in the UI. - * - * @generated from enum flyteidl.admin.NamedEntityState - */ -export enum NamedEntityState { - /** - * By default, all named entities are considered active and under development. - * - * @generated from enum value: NAMED_ENTITY_ACTIVE = 0; - */ - NAMED_ENTITY_ACTIVE = 0, - - /** - * Archived named entities are no longer visible in the UI. - * - * @generated from enum value: NAMED_ENTITY_ARCHIVED = 1; - */ - NAMED_ENTITY_ARCHIVED = 1, - - /** - * System generated entities that aren't explicitly created or managed by a user. - * - * @generated from enum value: SYSTEM_GENERATED = 2; - */ - SYSTEM_GENERATED = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(NamedEntityState) -proto3.util.setEnumType(NamedEntityState, "flyteidl.admin.NamedEntityState", [ - { no: 0, name: "NAMED_ENTITY_ACTIVE" }, - { no: 1, name: "NAMED_ENTITY_ARCHIVED" }, - { no: 2, name: "SYSTEM_GENERATED" }, -]); - -/** - * Encapsulation of fields that identifies a Flyte resource. - * A Flyte resource can be a task, workflow or launch plan. - * A resource can internally have multiple versions and is uniquely identified - * by project, domain, and name. - * - * @generated from message flyteidl.admin.NamedEntityIdentifier - */ -export class NamedEntityIdentifier extends Message { - /** - * Name of the project the resource belongs to. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Name of the domain the resource belongs to. - * A domain can be considered as a subset within a specific project. - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * User provided value for the resource. - * The combination of project + domain + name uniquely identifies the resource. - * +optional - in certain contexts - like 'List API', 'Launch plans' - * - * @generated from field: string name = 3; - */ - name = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 4; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityIdentifier"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityIdentifier { - return new NamedEntityIdentifier().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityIdentifier { - return new NamedEntityIdentifier().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityIdentifier { - return new NamedEntityIdentifier().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityIdentifier | PlainMessage | undefined, b: NamedEntityIdentifier | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityIdentifier, a, b); - } -} - -/** - * Additional metadata around a named entity. - * - * @generated from message flyteidl.admin.NamedEntityMetadata - */ -export class NamedEntityMetadata extends Message { - /** - * Common description across all versions of the entity - * +optional - * - * @generated from field: string description = 1; - */ - description = ""; - - /** - * Shared state across all version of the entity - * At this point in time, only workflow entities can have their state archived. - * - * @generated from field: flyteidl.admin.NamedEntityState state = 2; - */ - state = NamedEntityState.NAMED_ENTITY_ACTIVE; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(NamedEntityState) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityMetadata { - return new NamedEntityMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityMetadata { - return new NamedEntityMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityMetadata { - return new NamedEntityMetadata().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityMetadata | PlainMessage | undefined, b: NamedEntityMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityMetadata, a, b); - } -} - -/** - * Encapsulates information common to a NamedEntity, a Flyte resource such as a task, - * workflow or launch plan. A NamedEntity is exclusively identified by its resource type - * and identifier. - * - * @generated from message flyteidl.admin.NamedEntity - */ -export class NamedEntity extends Message { - /** - * Resource type of the named entity. One of Task, Workflow or LaunchPlan. - * - * @generated from field: flyteidl.core.ResourceType resource_type = 1; - */ - resourceType = ResourceType.UNSPECIFIED; - - /** - * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; - */ - id?: NamedEntityIdentifier; - - /** - * Additional metadata around a named entity. - * - * @generated from field: flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - metadata?: NamedEntityMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntity"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, - { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, - { no: 3, name: "metadata", kind: "message", T: NamedEntityMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntity { - return new NamedEntity().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntity { - return new NamedEntity().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntity { - return new NamedEntity().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntity | PlainMessage | undefined, b: NamedEntity | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntity, a, b); - } -} - -/** - * Specifies sort ordering in a list request. - * - * @generated from message flyteidl.admin.Sort - */ -export class Sort extends Message { - /** - * Indicates an attribute to sort the response values. - * +required - * - * @generated from field: string key = 1; - */ - key = ""; - - /** - * Indicates the direction to apply sort key for response values. - * +optional - * - * @generated from field: flyteidl.admin.Sort.Direction direction = 2; - */ - direction = Sort_Direction.DESCENDING; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Sort"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "direction", kind: "enum", T: proto3.getEnumType(Sort_Direction) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Sort { - return new Sort().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Sort { - return new Sort().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Sort { - return new Sort().fromJsonString(jsonString, options); - } - - static equals(a: Sort | PlainMessage | undefined, b: Sort | PlainMessage | undefined): boolean { - return proto3.util.equals(Sort, a, b); - } -} - -/** - * @generated from enum flyteidl.admin.Sort.Direction - */ -export enum Sort_Direction { - /** - * By default, fields are sorted in descending order. - * - * @generated from enum value: DESCENDING = 0; - */ - DESCENDING = 0, - - /** - * @generated from enum value: ASCENDING = 1; - */ - ASCENDING = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(Sort_Direction) -proto3.util.setEnumType(Sort_Direction, "flyteidl.admin.Sort.Direction", [ - { no: 0, name: "DESCENDING" }, - { no: 1, name: "ASCENDING" }, -]); - -/** - * Represents a request structure to list NamedEntityIdentifiers. - * - * @generated from message flyteidl.admin.NamedEntityIdentifierListRequest - */ -export class NamedEntityIdentifierListRequest extends Message { - /** - * Name of the project that contains the identifiers. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Name of the domain the identifiers belongs to within the project. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 3; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 4; - */ - token = ""; - - /** - * Specifies how listed entities should be sorted in the response. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - /** - * Indicates a list of filters passed as string. - * +optional - * - * @generated from field: string filters = 6; - */ - filters = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 7; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityIdentifierListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - { no: 6, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityIdentifierListRequest { - return new NamedEntityIdentifierListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityIdentifierListRequest { - return new NamedEntityIdentifierListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityIdentifierListRequest { - return new NamedEntityIdentifierListRequest().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityIdentifierListRequest | PlainMessage | undefined, b: NamedEntityIdentifierListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityIdentifierListRequest, a, b); - } -} - -/** - * Represents a request structure to list NamedEntity objects - * - * @generated from message flyteidl.admin.NamedEntityListRequest - */ -export class NamedEntityListRequest extends Message { - /** - * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. - * +required - * - * @generated from field: flyteidl.core.ResourceType resource_type = 1; - */ - resourceType = ResourceType.UNSPECIFIED; - - /** - * Name of the project that contains the identifiers. - * +required - * - * @generated from field: string project = 2; - */ - project = ""; - - /** - * Name of the domain the identifiers belongs to within the project. - * - * @generated from field: string domain = 3; - */ - domain = ""; - - /** - * Indicates the number of resources to be returned. - * - * @generated from field: uint32 limit = 4; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 5; - */ - token = ""; - - /** - * Specifies how listed entities should be sorted in the response. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 6; - */ - sortBy?: Sort; - - /** - * Indicates a list of filters passed as string. - * +optional - * - * @generated from field: string filters = 7; - */ - filters = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 8; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, - { no: 2, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 5, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "sort_by", kind: "message", T: Sort }, - { no: 7, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityListRequest { - return new NamedEntityListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityListRequest { - return new NamedEntityListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityListRequest { - return new NamedEntityListRequest().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityListRequest | PlainMessage | undefined, b: NamedEntityListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityListRequest, a, b); - } -} - -/** - * Represents a list of NamedEntityIdentifiers. - * - * @generated from message flyteidl.admin.NamedEntityIdentifierList - */ -export class NamedEntityIdentifierList extends Message { - /** - * A list of identifiers. - * - * @generated from field: repeated flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - entities: NamedEntityIdentifier[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityIdentifierList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "entities", kind: "message", T: NamedEntityIdentifier, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityIdentifierList { - return new NamedEntityIdentifierList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityIdentifierList { - return new NamedEntityIdentifierList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityIdentifierList { - return new NamedEntityIdentifierList().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityIdentifierList | PlainMessage | undefined, b: NamedEntityIdentifierList | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityIdentifierList, a, b); - } -} - -/** - * Represents a list of NamedEntityIdentifiers. - * - * @generated from message flyteidl.admin.NamedEntityList - */ -export class NamedEntityList extends Message { - /** - * A list of NamedEntity objects - * - * @generated from field: repeated flyteidl.admin.NamedEntity entities = 1; - */ - entities: NamedEntity[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "entities", kind: "message", T: NamedEntity, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityList { - return new NamedEntityList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityList { - return new NamedEntityList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityList { - return new NamedEntityList().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityList | PlainMessage | undefined, b: NamedEntityList | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityList, a, b); - } -} - -/** - * A request to retrieve the metadata associated with a NamedEntityIdentifier - * - * @generated from message flyteidl.admin.NamedEntityGetRequest - */ -export class NamedEntityGetRequest extends Message { - /** - * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. - * +required - * - * @generated from field: flyteidl.core.ResourceType resource_type = 1; - */ - resourceType = ResourceType.UNSPECIFIED; - - /** - * The identifier for the named entity for which to fetch metadata. - * +required - * - * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; - */ - id?: NamedEntityIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, - { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityGetRequest { - return new NamedEntityGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityGetRequest { - return new NamedEntityGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityGetRequest { - return new NamedEntityGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityGetRequest | PlainMessage | undefined, b: NamedEntityGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityGetRequest, a, b); - } -} - -/** - * Request to set the referenced named entity state to the configured value. - * - * @generated from message flyteidl.admin.NamedEntityUpdateRequest - */ -export class NamedEntityUpdateRequest extends Message { - /** - * Resource type of the metadata to update - * +required - * - * @generated from field: flyteidl.core.ResourceType resource_type = 1; - */ - resourceType = ResourceType.UNSPECIFIED; - - /** - * Identifier of the metadata to update - * +required - * - * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; - */ - id?: NamedEntityIdentifier; - - /** - * Metadata object to set as the new value - * +required - * - * @generated from field: flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - metadata?: NamedEntityMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityUpdateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, - { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, - { no: 3, name: "metadata", kind: "message", T: NamedEntityMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityUpdateRequest { - return new NamedEntityUpdateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityUpdateRequest { - return new NamedEntityUpdateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityUpdateRequest { - return new NamedEntityUpdateRequest().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityUpdateRequest | PlainMessage | undefined, b: NamedEntityUpdateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityUpdateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.NamedEntityUpdateResponse - */ -export class NamedEntityUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NamedEntityUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityUpdateResponse { - return new NamedEntityUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityUpdateResponse { - return new NamedEntityUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NamedEntityUpdateResponse { - return new NamedEntityUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: NamedEntityUpdateResponse | PlainMessage | undefined, b: NamedEntityUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NamedEntityUpdateResponse, a, b); - } -} - -/** - * Shared request structure to fetch a single resource. - * Resources include: Task, Workflow, LaunchPlan - * - * @generated from message flyteidl.admin.ObjectGetRequest - */ -export class ObjectGetRequest extends Message { - /** - * Indicates a unique version of resource. - * +required - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ObjectGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ObjectGetRequest { - return new ObjectGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ObjectGetRequest { - return new ObjectGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ObjectGetRequest { - return new ObjectGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: ObjectGetRequest | PlainMessage | undefined, b: ObjectGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ObjectGetRequest, a, b); - } -} - -/** - * Shared request structure to retrieve a list of resources. - * Resources include: Task, Workflow, LaunchPlan - * - * @generated from message flyteidl.admin.ResourceListRequest - */ -export class ResourceListRequest extends Message { - /** - * id represents the unique identifier of the resource. - * +required - * - * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 1; - */ - id?: NamedEntityIdentifier; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 2; - */ - limit = 0; - - /** - * In the case of multiple pages of results, this server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 3; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * More info on constructing filters : - * +optional - * - * @generated from field: string filters = 4; - */ - filters = ""; - - /** - * Sort ordering. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ResourceListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NamedEntityIdentifier }, - { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResourceListRequest { - return new ResourceListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResourceListRequest { - return new ResourceListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResourceListRequest { - return new ResourceListRequest().fromJsonString(jsonString, options); - } - - static equals(a: ResourceListRequest | PlainMessage | undefined, b: ResourceListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ResourceListRequest, a, b); - } -} - -/** - * Defines an email notification specification. - * - * @generated from message flyteidl.admin.EmailNotification - */ -export class EmailNotification extends Message { - /** - * The list of email addresses recipients for this notification. - * +required - * - * @generated from field: repeated string recipients_email = 1; - */ - recipientsEmail: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.EmailNotification"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EmailNotification { - return new EmailNotification().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EmailNotification { - return new EmailNotification().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EmailNotification { - return new EmailNotification().fromJsonString(jsonString, options); - } - - static equals(a: EmailNotification | PlainMessage | undefined, b: EmailNotification | PlainMessage | undefined): boolean { - return proto3.util.equals(EmailNotification, a, b); - } -} - -/** - * Defines a pager duty notification specification. - * - * @generated from message flyteidl.admin.PagerDutyNotification - */ -export class PagerDutyNotification extends Message { - /** - * Currently, PagerDuty notifications leverage email to trigger a notification. - * +required - * - * @generated from field: repeated string recipients_email = 1; - */ - recipientsEmail: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.PagerDutyNotification"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PagerDutyNotification { - return new PagerDutyNotification().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PagerDutyNotification { - return new PagerDutyNotification().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PagerDutyNotification { - return new PagerDutyNotification().fromJsonString(jsonString, options); - } - - static equals(a: PagerDutyNotification | PlainMessage | undefined, b: PagerDutyNotification | PlainMessage | undefined): boolean { - return proto3.util.equals(PagerDutyNotification, a, b); - } -} - -/** - * Defines a slack notification specification. - * - * @generated from message flyteidl.admin.SlackNotification - */ -export class SlackNotification extends Message { - /** - * Currently, Slack notifications leverage email to trigger a notification. - * +required - * - * @generated from field: repeated string recipients_email = 1; - */ - recipientsEmail: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SlackNotification"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SlackNotification { - return new SlackNotification().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SlackNotification { - return new SlackNotification().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SlackNotification { - return new SlackNotification().fromJsonString(jsonString, options); - } - - static equals(a: SlackNotification | PlainMessage | undefined, b: SlackNotification | PlainMessage | undefined): boolean { - return proto3.util.equals(SlackNotification, a, b); - } -} - -/** - * Represents a structure for notifications based on execution status. - * The notification content is configured within flyte admin but can be templatized. - * Future iterations could expose configuring notifications with custom content. - * - * @generated from message flyteidl.admin.Notification - */ -export class Notification extends Message { - /** - * A list of phases to which users can associate the notifications to. - * +required - * - * @generated from field: repeated flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - phases: WorkflowExecution_Phase[] = []; - - /** - * The type of notification to trigger. - * +required - * - * @generated from oneof flyteidl.admin.Notification.type - */ - type: { - /** - * @generated from field: flyteidl.admin.EmailNotification email = 2; - */ - value: EmailNotification; - case: "email"; - } | { - /** - * @generated from field: flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - value: PagerDutyNotification; - case: "pagerDuty"; - } | { - /** - * @generated from field: flyteidl.admin.SlackNotification slack = 4; - */ - value: SlackNotification; - case: "slack"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Notification"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "phases", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase), repeated: true }, - { no: 2, name: "email", kind: "message", T: EmailNotification, oneof: "type" }, - { no: 3, name: "pager_duty", kind: "message", T: PagerDutyNotification, oneof: "type" }, - { no: 4, name: "slack", kind: "message", T: SlackNotification, oneof: "type" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Notification { - return new Notification().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Notification { - return new Notification().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Notification { - return new Notification().fromJsonString(jsonString, options); - } - - static equals(a: Notification | PlainMessage | undefined, b: Notification | PlainMessage | undefined): boolean { - return proto3.util.equals(Notification, a, b); - } -} - -/** - * Represents a string url and associated metadata used throughout the platform. - * - * @generated from message flyteidl.admin.UrlBlob - * @deprecated - */ -export class UrlBlob extends Message { - /** - * Actual url value. - * - * @generated from field: string url = 1; - */ - url = ""; - - /** - * Represents the size of the file accessible at the above url. - * - * @generated from field: int64 bytes = 2; - */ - bytes = protoInt64.zero; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.UrlBlob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UrlBlob { - return new UrlBlob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UrlBlob { - return new UrlBlob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UrlBlob { - return new UrlBlob().fromJsonString(jsonString, options); - } - - static equals(a: UrlBlob | PlainMessage | undefined, b: UrlBlob | PlainMessage | undefined): boolean { - return proto3.util.equals(UrlBlob, a, b); - } -} - -/** - * Label values to be applied to an execution resource. - * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined - * to specify how to merge labels defined at registration and execution time. - * - * @generated from message flyteidl.admin.Labels - */ -export class Labels extends Message { - /** - * Map of custom labels to be applied to the execution resource. - * - * @generated from field: map values = 1; - */ - values: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Labels"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Labels { - return new Labels().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Labels { - return new Labels().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Labels { - return new Labels().fromJsonString(jsonString, options); - } - - static equals(a: Labels | PlainMessage | undefined, b: Labels | PlainMessage | undefined): boolean { - return proto3.util.equals(Labels, a, b); - } -} - -/** - * Annotation values to be applied to an execution resource. - * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined - * to specify how to merge annotations defined at registration and execution time. - * - * @generated from message flyteidl.admin.Annotations - */ -export class Annotations extends Message { - /** - * Map of custom annotations to be applied to the execution resource. - * - * @generated from field: map values = 1; - */ - values: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Annotations"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Annotations { - return new Annotations().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Annotations { - return new Annotations().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Annotations { - return new Annotations().fromJsonString(jsonString, options); - } - - static equals(a: Annotations | PlainMessage | undefined, b: Annotations | PlainMessage | undefined): boolean { - return proto3.util.equals(Annotations, a, b); - } -} - -/** - * Environment variable values to be applied to an execution resource. - * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined - * to specify how to merge environment variables defined at registration and execution time. - * - * @generated from message flyteidl.admin.Envs - */ -export class Envs extends Message { - /** - * Map of custom environment variables to be applied to the execution resource. - * - * @generated from field: repeated flyteidl.core.KeyValuePair values = 1; - */ - values: KeyValuePair[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Envs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "values", kind: "message", T: KeyValuePair, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Envs { - return new Envs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Envs { - return new Envs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Envs { - return new Envs().fromJsonString(jsonString, options); - } - - static equals(a: Envs | PlainMessage | undefined, b: Envs | PlainMessage | undefined): boolean { - return proto3.util.equals(Envs, a, b); - } -} - -/** - * Defines permissions associated with executions created by this launch plan spec. - * Use either of these roles when they have permissions required by your workflow execution. - * Deprecated. - * - * @generated from message flyteidl.admin.AuthRole - * @deprecated - */ -export class AuthRole extends Message { - /** - * Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - * - * @generated from field: string assumable_iam_role = 1; - */ - assumableIamRole = ""; - - /** - * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - * - * @generated from field: string kubernetes_service_account = 2; - */ - kubernetesServiceAccount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.AuthRole"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "assumable_iam_role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "kubernetes_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AuthRole { - return new AuthRole().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AuthRole { - return new AuthRole().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AuthRole { - return new AuthRole().fromJsonString(jsonString, options); - } - - static equals(a: AuthRole | PlainMessage | undefined, b: AuthRole | PlainMessage | undefined): boolean { - return proto3.util.equals(AuthRole, a, b); - } -} - -/** - * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - * See https://github.com/flyteorg/flyte/issues/211 for more background information. - * - * @generated from message flyteidl.admin.RawOutputDataConfig - */ -export class RawOutputDataConfig extends Message { - /** - * Prefix for where offloaded data from user workflows will be written - * e.g. s3://bucket/key or s3://bucket/ - * - * @generated from field: string output_location_prefix = 1; - */ - outputLocationPrefix = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.RawOutputDataConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "output_location_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RawOutputDataConfig { - return new RawOutputDataConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RawOutputDataConfig { - return new RawOutputDataConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RawOutputDataConfig { - return new RawOutputDataConfig().fromJsonString(jsonString, options); - } - - static equals(a: RawOutputDataConfig | PlainMessage | undefined, b: RawOutputDataConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(RawOutputDataConfig, a, b); - } -} - -/** - * These URLs are returned as part of node and task execution data requests. - * - * @generated from message flyteidl.admin.FlyteURLs - */ -export class FlyteURLs extends Message { - /** - * @generated from field: string inputs = 1; - */ - inputs = ""; - - /** - * @generated from field: string outputs = 2; - */ - outputs = ""; - - /** - * @generated from field: string deck = 3; - */ - deck = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.FlyteURLs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "outputs", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "deck", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FlyteURLs { - return new FlyteURLs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FlyteURLs { - return new FlyteURLs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FlyteURLs { - return new FlyteURLs().fromJsonString(jsonString, options); - } - - static equals(a: FlyteURLs | PlainMessage | undefined, b: FlyteURLs | PlainMessage | undefined): boolean { - return proto3.util.equals(FlyteURLs, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts deleted file mode 100644 index fe20c24152..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts +++ /dev/null @@ -1,375 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/description_entity.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Identifier, ResourceType } from "../core/identifier_pb.js"; -import { NamedEntityIdentifier, Sort } from "./common_pb.js"; - -/** - * The format of the long description - * - * @generated from enum flyteidl.admin.DescriptionFormat - */ -export enum DescriptionFormat { - /** - * @generated from enum value: DESCRIPTION_FORMAT_UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: DESCRIPTION_FORMAT_MARKDOWN = 1; - */ - MARKDOWN = 1, - - /** - * @generated from enum value: DESCRIPTION_FORMAT_HTML = 2; - */ - HTML = 2, - - /** - * python default documentation - comments is rst - * - * @generated from enum value: DESCRIPTION_FORMAT_RST = 3; - */ - RST = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(DescriptionFormat) -proto3.util.setEnumType(DescriptionFormat, "flyteidl.admin.DescriptionFormat", [ - { no: 0, name: "DESCRIPTION_FORMAT_UNKNOWN" }, - { no: 1, name: "DESCRIPTION_FORMAT_MARKDOWN" }, - { no: 2, name: "DESCRIPTION_FORMAT_HTML" }, - { no: 3, name: "DESCRIPTION_FORMAT_RST" }, -]); - -/** - * DescriptionEntity contains detailed description for the task/workflow. - * Documentation could provide insight into the algorithms, business use case, etc. - * - * @generated from message flyteidl.admin.DescriptionEntity - */ -export class DescriptionEntity extends Message { - /** - * id represents the unique identifier of the description entity. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * One-liner overview of the entity. - * - * @generated from field: string short_description = 2; - */ - shortDescription = ""; - - /** - * Full user description with formatting preserved. - * - * @generated from field: flyteidl.admin.Description long_description = 3; - */ - longDescription?: Description; - - /** - * Optional link to source code used to define this entity. - * - * @generated from field: flyteidl.admin.SourceCode source_code = 4; - */ - sourceCode?: SourceCode; - - /** - * User-specified tags. These are arbitrary and can be used for searching - * filtering and discovering tasks. - * - * @generated from field: repeated string tags = 5; - */ - tags: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DescriptionEntity"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "short_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "long_description", kind: "message", T: Description }, - { no: 4, name: "source_code", kind: "message", T: SourceCode }, - { no: 5, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DescriptionEntity { - return new DescriptionEntity().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DescriptionEntity { - return new DescriptionEntity().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DescriptionEntity { - return new DescriptionEntity().fromJsonString(jsonString, options); - } - - static equals(a: DescriptionEntity | PlainMessage | undefined, b: DescriptionEntity | PlainMessage | undefined): boolean { - return proto3.util.equals(DescriptionEntity, a, b); - } -} - -/** - * Full user description with formatting preserved. This can be rendered - * by clients, such as the console or command line tools with in-tact - * formatting. - * - * @generated from message flyteidl.admin.Description - */ -export class Description extends Message { - /** - * @generated from oneof flyteidl.admin.Description.content - */ - content: { - /** - * long description - no more than 4KB - * - * @generated from field: string value = 1; - */ - value: string; - case: "value"; - } | { - /** - * if the description sizes exceed some threshold we can offload the entire - * description proto altogether to an external data store, like S3 rather than store inline in the db - * - * @generated from field: string uri = 2; - */ - value: string; - case: "uri"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Format of the long description - * - * @generated from field: flyteidl.admin.DescriptionFormat format = 3; - */ - format = DescriptionFormat.UNKNOWN; - - /** - * Optional link to an icon for the entity - * - * @generated from field: string icon_link = 4; - */ - iconLink = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Description"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "content" }, - { no: 2, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "content" }, - { no: 3, name: "format", kind: "enum", T: proto3.getEnumType(DescriptionFormat) }, - { no: 4, name: "icon_link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Description { - return new Description().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Description { - return new Description().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Description { - return new Description().fromJsonString(jsonString, options); - } - - static equals(a: Description | PlainMessage | undefined, b: Description | PlainMessage | undefined): boolean { - return proto3.util.equals(Description, a, b); - } -} - -/** - * Link to source code used to define this entity - * - * @generated from message flyteidl.admin.SourceCode - */ -export class SourceCode extends Message { - /** - * @generated from field: string link = 1; - */ - link = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SourceCode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SourceCode { - return new SourceCode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SourceCode { - return new SourceCode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SourceCode { - return new SourceCode().fromJsonString(jsonString, options); - } - - static equals(a: SourceCode | PlainMessage | undefined, b: SourceCode | PlainMessage | undefined): boolean { - return proto3.util.equals(SourceCode, a, b); - } -} - -/** - * Represents a list of DescriptionEntities returned from the admin. - * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details - * - * @generated from message flyteidl.admin.DescriptionEntityList - */ -export class DescriptionEntityList extends Message { - /** - * A list of DescriptionEntities returned based on the request. - * - * @generated from field: repeated flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - descriptionEntities: DescriptionEntity[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DescriptionEntityList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "descriptionEntities", kind: "message", T: DescriptionEntity, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DescriptionEntityList { - return new DescriptionEntityList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DescriptionEntityList { - return new DescriptionEntityList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DescriptionEntityList { - return new DescriptionEntityList().fromJsonString(jsonString, options); - } - - static equals(a: DescriptionEntityList | PlainMessage | undefined, b: DescriptionEntityList | PlainMessage | undefined): boolean { - return proto3.util.equals(DescriptionEntityList, a, b); - } -} - -/** - * Represents a request structure to retrieve a list of DescriptionEntities. - * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details - * - * @generated from message flyteidl.admin.DescriptionEntityListRequest - */ -export class DescriptionEntityListRequest extends Message { - /** - * Identifies the specific type of resource that this identifier corresponds to. - * - * @generated from field: flyteidl.core.ResourceType resource_type = 1; - */ - resourceType = ResourceType.UNSPECIFIED; - - /** - * The identifier for the description entity. - * +required - * - * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; - */ - id?: NamedEntityIdentifier; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 3; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 4; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * More info on constructing filters : - * +optional - * - * @generated from field: string filters = 5; - */ - filters = ""; - - /** - * Sort ordering for returned list. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 6; - */ - sortBy?: Sort; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DescriptionEntityListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, - { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, - { no: 3, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "sort_by", kind: "message", T: Sort }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DescriptionEntityListRequest { - return new DescriptionEntityListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DescriptionEntityListRequest { - return new DescriptionEntityListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DescriptionEntityListRequest { - return new DescriptionEntityListRequest().fromJsonString(jsonString, options); - } - - static equals(a: DescriptionEntityListRequest | PlainMessage | undefined, b: DescriptionEntityListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(DescriptionEntityListRequest, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts deleted file mode 100644 index 080d93f570..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts +++ /dev/null @@ -1,395 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/event.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { NodeExecutionEvent, TaskExecutionEvent, WorkflowExecutionEvent } from "../event/event_pb.js"; - -/** - * Indicates that a sent event was not used to update execution state due to - * the referenced execution already being terminated (and therefore ineligible - * for further state transitions). - * - * @generated from message flyteidl.admin.EventErrorAlreadyInTerminalState - */ -export class EventErrorAlreadyInTerminalState extends Message { - /** - * +required - * - * @generated from field: string current_phase = 1; - */ - currentPhase = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.EventErrorAlreadyInTerminalState"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "current_phase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventErrorAlreadyInTerminalState { - return new EventErrorAlreadyInTerminalState().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventErrorAlreadyInTerminalState { - return new EventErrorAlreadyInTerminalState().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventErrorAlreadyInTerminalState { - return new EventErrorAlreadyInTerminalState().fromJsonString(jsonString, options); - } - - static equals(a: EventErrorAlreadyInTerminalState | PlainMessage | undefined, b: EventErrorAlreadyInTerminalState | PlainMessage | undefined): boolean { - return proto3.util.equals(EventErrorAlreadyInTerminalState, a, b); - } -} - -/** - * Indicates an event was rejected because it came from a different cluster than - * is on record as running the execution. - * - * @generated from message flyteidl.admin.EventErrorIncompatibleCluster - */ -export class EventErrorIncompatibleCluster extends Message { - /** - * The cluster which has been recorded as processing the execution. - * +required - * - * @generated from field: string cluster = 1; - */ - cluster = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.EventErrorIncompatibleCluster"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cluster", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventErrorIncompatibleCluster { - return new EventErrorIncompatibleCluster().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventErrorIncompatibleCluster { - return new EventErrorIncompatibleCluster().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventErrorIncompatibleCluster { - return new EventErrorIncompatibleCluster().fromJsonString(jsonString, options); - } - - static equals(a: EventErrorIncompatibleCluster | PlainMessage | undefined, b: EventErrorIncompatibleCluster | PlainMessage | undefined): boolean { - return proto3.util.equals(EventErrorIncompatibleCluster, a, b); - } -} - -/** - * Indicates why a sent event was not used to update execution. - * - * @generated from message flyteidl.admin.EventFailureReason - */ -export class EventFailureReason extends Message { - /** - * +required - * - * @generated from oneof flyteidl.admin.EventFailureReason.reason - */ - reason: { - /** - * @generated from field: flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - value: EventErrorAlreadyInTerminalState; - case: "alreadyInTerminalState"; - } | { - /** - * @generated from field: flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - value: EventErrorIncompatibleCluster; - case: "incompatibleCluster"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.EventFailureReason"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "already_in_terminal_state", kind: "message", T: EventErrorAlreadyInTerminalState, oneof: "reason" }, - { no: 2, name: "incompatible_cluster", kind: "message", T: EventErrorIncompatibleCluster, oneof: "reason" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventFailureReason { - return new EventFailureReason().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventFailureReason { - return new EventFailureReason().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventFailureReason { - return new EventFailureReason().fromJsonString(jsonString, options); - } - - static equals(a: EventFailureReason | PlainMessage | undefined, b: EventFailureReason | PlainMessage | undefined): boolean { - return proto3.util.equals(EventFailureReason, a, b); - } -} - -/** - * Request to send a notification that a workflow execution event has occurred. - * - * @generated from message flyteidl.admin.WorkflowExecutionEventRequest - */ -export class WorkflowExecutionEventRequest extends Message { - /** - * Unique ID for this request that can be traced between services - * - * @generated from field: string request_id = 1; - */ - requestId = ""; - - /** - * Details about the event that occurred. - * - * @generated from field: flyteidl.event.WorkflowExecutionEvent event = 2; - */ - event?: WorkflowExecutionEvent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionEventRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "event", kind: "message", T: WorkflowExecutionEvent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionEventRequest { - return new WorkflowExecutionEventRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionEventRequest { - return new WorkflowExecutionEventRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionEventRequest { - return new WorkflowExecutionEventRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionEventRequest | PlainMessage | undefined, b: WorkflowExecutionEventRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionEventRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.WorkflowExecutionEventResponse - */ -export class WorkflowExecutionEventResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionEventResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionEventResponse { - return new WorkflowExecutionEventResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionEventResponse { - return new WorkflowExecutionEventResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionEventResponse { - return new WorkflowExecutionEventResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionEventResponse | PlainMessage | undefined, b: WorkflowExecutionEventResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionEventResponse, a, b); - } -} - -/** - * Request to send a notification that a node execution event has occurred. - * - * @generated from message flyteidl.admin.NodeExecutionEventRequest - */ -export class NodeExecutionEventRequest extends Message { - /** - * Unique ID for this request that can be traced between services - * - * @generated from field: string request_id = 1; - */ - requestId = ""; - - /** - * Details about the event that occurred. - * - * @generated from field: flyteidl.event.NodeExecutionEvent event = 2; - */ - event?: NodeExecutionEvent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionEventRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "event", kind: "message", T: NodeExecutionEvent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionEventRequest { - return new NodeExecutionEventRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionEventRequest { - return new NodeExecutionEventRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionEventRequest { - return new NodeExecutionEventRequest().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionEventRequest | PlainMessage | undefined, b: NodeExecutionEventRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionEventRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.NodeExecutionEventResponse - */ -export class NodeExecutionEventResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionEventResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionEventResponse { - return new NodeExecutionEventResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionEventResponse { - return new NodeExecutionEventResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionEventResponse { - return new NodeExecutionEventResponse().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionEventResponse | PlainMessage | undefined, b: NodeExecutionEventResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionEventResponse, a, b); - } -} - -/** - * Request to send a notification that a task execution event has occurred. - * - * @generated from message flyteidl.admin.TaskExecutionEventRequest - */ -export class TaskExecutionEventRequest extends Message { - /** - * Unique ID for this request that can be traced between services - * - * @generated from field: string request_id = 1; - */ - requestId = ""; - - /** - * Details about the event that occurred. - * - * @generated from field: flyteidl.event.TaskExecutionEvent event = 2; - */ - event?: TaskExecutionEvent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionEventRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "event", kind: "message", T: TaskExecutionEvent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionEventRequest { - return new TaskExecutionEventRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionEventRequest { - return new TaskExecutionEventRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionEventRequest { - return new TaskExecutionEventRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionEventRequest | PlainMessage | undefined, b: TaskExecutionEventRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionEventRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.TaskExecutionEventResponse - */ -export class TaskExecutionEventResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionEventResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionEventResponse { - return new TaskExecutionEventResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionEventResponse { - return new TaskExecutionEventResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionEventResponse { - return new TaskExecutionEventResponse().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionEventResponse | PlainMessage | undefined, b: TaskExecutionEventResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionEventResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts deleted file mode 100644 index 409a27d96f..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts +++ /dev/null @@ -1,1574 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/execution.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { BoolValue, Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { LiteralMap } from "../core/literals_pb.js"; -import { Identifier, NodeExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; -import { ExecutionError, QualityOfService, WorkflowExecution_Phase } from "../core/execution_pb.js"; -import { Annotations, AuthRole, Envs, Labels, Notification, RawOutputDataConfig, UrlBlob } from "./common_pb.js"; -import { ArtifactID } from "../core/artifact_id_pb.js"; -import { SecurityContext } from "../core/security_pb.js"; -import { ClusterAssignment } from "./cluster_assignment_pb.js"; -import { Span } from "../core/metrics_pb.js"; - -/** - * The state of the execution is used to control its visibility in the UI/CLI. - * - * @generated from enum flyteidl.admin.ExecutionState - */ -export enum ExecutionState { - /** - * By default, all executions are considered active. - * - * @generated from enum value: EXECUTION_ACTIVE = 0; - */ - EXECUTION_ACTIVE = 0, - - /** - * Archived executions are no longer visible in the UI. - * - * @generated from enum value: EXECUTION_ARCHIVED = 1; - */ - EXECUTION_ARCHIVED = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(ExecutionState) -proto3.util.setEnumType(ExecutionState, "flyteidl.admin.ExecutionState", [ - { no: 0, name: "EXECUTION_ACTIVE" }, - { no: 1, name: "EXECUTION_ARCHIVED" }, -]); - -/** - * Request to launch an execution with the given project, domain and optionally-assigned name. - * - * @generated from message flyteidl.admin.ExecutionCreateRequest - */ -export class ExecutionCreateRequest extends Message { - /** - * Name of the project the execution belongs to. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Name of the domain the execution belongs to. - * A domain can be considered as a subset within a specific project. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * User provided value for the resource. - * If none is provided the system will generate a unique string. - * +optional - * - * @generated from field: string name = 3; - */ - name = ""; - - /** - * Additional fields necessary to launch the execution. - * +optional - * - * @generated from field: flyteidl.admin.ExecutionSpec spec = 4; - */ - spec?: ExecutionSpec; - - /** - * The inputs required to start the execution. All required inputs must be - * included in this map. If not required and not provided, defaults apply. - * +optional - * - * @generated from field: flyteidl.core.LiteralMap inputs = 5; - */ - inputs?: LiteralMap; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 6; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionCreateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "spec", kind: "message", T: ExecutionSpec }, - { no: 5, name: "inputs", kind: "message", T: LiteralMap }, - { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionCreateRequest { - return new ExecutionCreateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionCreateRequest { - return new ExecutionCreateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionCreateRequest { - return new ExecutionCreateRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionCreateRequest | PlainMessage | undefined, b: ExecutionCreateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionCreateRequest, a, b); - } -} - -/** - * Request to relaunch the referenced execution. - * - * @generated from message flyteidl.admin.ExecutionRelaunchRequest - */ -export class ExecutionRelaunchRequest extends Message { - /** - * Identifier of the workflow execution to relaunch. - * +required - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - /** - * User provided value for the relaunched execution. - * If none is provided the system will generate a unique string. - * +optional - * - * @generated from field: string name = 3; - */ - name = ""; - - /** - * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - * If enabled, all calculations are performed even if cached results would be available, overwriting the stored - * data once execution finishes successfully. - * - * @generated from field: bool overwrite_cache = 4; - */ - overwriteCache = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionRelaunchRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionRelaunchRequest { - return new ExecutionRelaunchRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionRelaunchRequest { - return new ExecutionRelaunchRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionRelaunchRequest { - return new ExecutionRelaunchRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionRelaunchRequest | PlainMessage | undefined, b: ExecutionRelaunchRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionRelaunchRequest, a, b); - } -} - -/** - * Request to recover the referenced execution. - * - * @generated from message flyteidl.admin.ExecutionRecoverRequest - */ -export class ExecutionRecoverRequest extends Message { - /** - * Identifier of the workflow execution to recover. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - /** - * User provided value for the recovered execution. - * If none is provided the system will generate a unique string. - * +optional - * - * @generated from field: string name = 2; - */ - name = ""; - - /** - * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. - * - * @generated from field: flyteidl.admin.ExecutionMetadata metadata = 3; - */ - metadata?: ExecutionMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionRecoverRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "message", T: ExecutionMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionRecoverRequest { - return new ExecutionRecoverRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionRecoverRequest { - return new ExecutionRecoverRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionRecoverRequest { - return new ExecutionRecoverRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionRecoverRequest | PlainMessage | undefined, b: ExecutionRecoverRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionRecoverRequest, a, b); - } -} - -/** - * The unique identifier for a successfully created execution. - * If the name was *not* specified in the create request, this identifier will include a generated name. - * - * @generated from message flyteidl.admin.ExecutionCreateResponse - */ -export class ExecutionCreateResponse extends Message { - /** - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionCreateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionCreateResponse { - return new ExecutionCreateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionCreateResponse { - return new ExecutionCreateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionCreateResponse { - return new ExecutionCreateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionCreateResponse | PlainMessage | undefined, b: ExecutionCreateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionCreateResponse, a, b); - } -} - -/** - * A message used to fetch a single workflow execution entity. - * See :ref:`ref_flyteidl.admin.Execution` for more details - * - * @generated from message flyteidl.admin.WorkflowExecutionGetRequest - */ -export class WorkflowExecutionGetRequest extends Message { - /** - * Uniquely identifies an individual workflow execution. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetRequest { - return new WorkflowExecutionGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetRequest { - return new WorkflowExecutionGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetRequest { - return new WorkflowExecutionGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionGetRequest | PlainMessage | undefined, b: WorkflowExecutionGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionGetRequest, a, b); - } -} - -/** - * A workflow execution represents an instantiated workflow, including all inputs and additional - * metadata as well as computed results included state, outputs, and duration-based attributes. - * Used as a response object used in Get and List execution requests. - * - * @generated from message flyteidl.admin.Execution - */ -export class Execution extends Message { - /** - * Unique identifier of the workflow execution. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - /** - * User-provided configuration and inputs for launching the execution. - * - * @generated from field: flyteidl.admin.ExecutionSpec spec = 2; - */ - spec?: ExecutionSpec; - - /** - * Execution results. - * - * @generated from field: flyteidl.admin.ExecutionClosure closure = 3; - */ - closure?: ExecutionClosure; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Execution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "spec", kind: "message", T: ExecutionSpec }, - { no: 3, name: "closure", kind: "message", T: ExecutionClosure }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Execution { - return new Execution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Execution { - return new Execution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Execution { - return new Execution().fromJsonString(jsonString, options); - } - - static equals(a: Execution | PlainMessage | undefined, b: Execution | PlainMessage | undefined): boolean { - return proto3.util.equals(Execution, a, b); - } -} - -/** - * Used as a response for request to list executions. - * See :ref:`ref_flyteidl.admin.Execution` for more details - * - * @generated from message flyteidl.admin.ExecutionList - */ -export class ExecutionList extends Message { - /** - * @generated from field: repeated flyteidl.admin.Execution executions = 1; - */ - executions: Execution[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "executions", kind: "message", T: Execution, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionList { - return new ExecutionList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionList { - return new ExecutionList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionList { - return new ExecutionList().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionList | PlainMessage | undefined, b: ExecutionList | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionList, a, b); - } -} - -/** - * Input/output data can represented by actual values or a link to where values are stored - * - * @generated from message flyteidl.admin.LiteralMapBlob - */ -export class LiteralMapBlob extends Message { - /** - * @generated from oneof flyteidl.admin.LiteralMapBlob.data - */ - data: { - /** - * Data in LiteralMap format - * - * @generated from field: flyteidl.core.LiteralMap values = 1 [deprecated = true]; - * @deprecated - */ - value: LiteralMap; - case: "values"; - } | { - /** - * In the event that the map is too large, we return a uri to the data - * - * @generated from field: string uri = 2; - */ - value: string; - case: "uri"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LiteralMapBlob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "values", kind: "message", T: LiteralMap, oneof: "data" }, - { no: 2, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "data" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiteralMapBlob { - return new LiteralMapBlob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiteralMapBlob { - return new LiteralMapBlob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiteralMapBlob { - return new LiteralMapBlob().fromJsonString(jsonString, options); - } - - static equals(a: LiteralMapBlob | PlainMessage | undefined, b: LiteralMapBlob | PlainMessage | undefined): boolean { - return proto3.util.equals(LiteralMapBlob, a, b); - } -} - -/** - * Specifies metadata around an aborted workflow execution. - * - * @generated from message flyteidl.admin.AbortMetadata - */ -export class AbortMetadata extends Message { - /** - * In the case of a user-specified abort, this will pass along the user-supplied cause. - * - * @generated from field: string cause = 1; - */ - cause = ""; - - /** - * Identifies the entity (if any) responsible for terminating the execution - * - * @generated from field: string principal = 2; - */ - principal = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.AbortMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cause", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AbortMetadata { - return new AbortMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AbortMetadata { - return new AbortMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AbortMetadata { - return new AbortMetadata().fromJsonString(jsonString, options); - } - - static equals(a: AbortMetadata | PlainMessage | undefined, b: AbortMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(AbortMetadata, a, b); - } -} - -/** - * Encapsulates the results of the Execution - * - * @generated from message flyteidl.admin.ExecutionClosure - */ -export class ExecutionClosure extends Message { - /** - * A result produced by a terminated execution. - * A pending (non-terminal) execution will not have any output result. - * - * @generated from oneof flyteidl.admin.ExecutionClosure.output_result - */ - outputResult: { - /** - * Output URI in the case of a successful execution. - * DEPRECATED. Use GetExecutionData to fetch output data instead. - * - * @generated from field: flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - * @deprecated - */ - value: LiteralMapBlob; - case: "outputs"; - } | { - /** - * Error information in the case of a failed execution. - * - * @generated from field: flyteidl.core.ExecutionError error = 2; - */ - value: ExecutionError; - case: "error"; - } | { - /** - * In the case of a user-specified abort, this will pass along the user-supplied cause. - * - * @generated from field: string abort_cause = 10 [deprecated = true]; - * @deprecated - */ - value: string; - case: "abortCause"; - } | { - /** - * In the case of a user-specified abort, this will pass along the user and their supplied cause. - * - * @generated from field: flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - value: AbortMetadata; - case: "abortMetadata"; - } | { - /** - * Raw output data produced by this execution. - * DEPRECATED. Use GetExecutionData to fetch output data instead. - * - * @generated from field: flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - * @deprecated - */ - value: LiteralMap; - case: "outputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Inputs computed and passed for execution. - * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan - * - * @generated from field: flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - * @deprecated - */ - computedInputs?: LiteralMap; - - /** - * Most recent recorded phase for the execution. - * - * @generated from field: flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - phase = WorkflowExecution_Phase.UNDEFINED; - - /** - * Reported time at which the execution began running. - * - * @generated from field: google.protobuf.Timestamp started_at = 5; - */ - startedAt?: Timestamp; - - /** - * The amount of time the execution spent running. - * - * @generated from field: google.protobuf.Duration duration = 6; - */ - duration?: Duration; - - /** - * Reported time at which the execution was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 7; - */ - createdAt?: Timestamp; - - /** - * Reported time at which the execution was last updated. - * - * @generated from field: google.protobuf.Timestamp updated_at = 8; - */ - updatedAt?: Timestamp; - - /** - * The notification settings to use after merging the CreateExecutionRequest and the launch plan - * notification settings. An execution launched with notifications will always prefer that definition - * to notifications defined statically in a launch plan. - * - * @generated from field: repeated flyteidl.admin.Notification notifications = 9; - */ - notifications: Notification[] = []; - - /** - * Identifies the workflow definition for this execution. - * - * @generated from field: flyteidl.core.Identifier workflow_id = 11; - */ - workflowId?: Identifier; - - /** - * Provides the details of the last stage change - * - * @generated from field: flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - stateChangeDetails?: ExecutionStateChangeDetails; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "outputs", kind: "message", T: LiteralMapBlob, oneof: "output_result" }, - { no: 2, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, - { no: 10, name: "abort_cause", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, - { no: 12, name: "abort_metadata", kind: "message", T: AbortMetadata, oneof: "output_result" }, - { no: 13, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, - { no: 3, name: "computed_inputs", kind: "message", T: LiteralMap }, - { no: 4, name: "phase", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase) }, - { no: 5, name: "started_at", kind: "message", T: Timestamp }, - { no: 6, name: "duration", kind: "message", T: Duration }, - { no: 7, name: "created_at", kind: "message", T: Timestamp }, - { no: 8, name: "updated_at", kind: "message", T: Timestamp }, - { no: 9, name: "notifications", kind: "message", T: Notification, repeated: true }, - { no: 11, name: "workflow_id", kind: "message", T: Identifier }, - { no: 14, name: "state_change_details", kind: "message", T: ExecutionStateChangeDetails }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionClosure { - return new ExecutionClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionClosure { - return new ExecutionClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionClosure { - return new ExecutionClosure().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionClosure | PlainMessage | undefined, b: ExecutionClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionClosure, a, b); - } -} - -/** - * Represents system, rather than user-facing, metadata about an execution. - * - * @generated from message flyteidl.admin.SystemMetadata - */ -export class SystemMetadata extends Message { - /** - * Which execution cluster this execution ran on. - * - * @generated from field: string execution_cluster = 1; - */ - executionCluster = ""; - - /** - * Which kubernetes namespace the execution ran under. - * - * @generated from field: string namespace = 2; - */ - namespace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SystemMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "execution_cluster", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SystemMetadata { - return new SystemMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SystemMetadata { - return new SystemMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SystemMetadata { - return new SystemMetadata().fromJsonString(jsonString, options); - } - - static equals(a: SystemMetadata | PlainMessage | undefined, b: SystemMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(SystemMetadata, a, b); - } -} - -/** - * Represents attributes about an execution which are not required to launch the execution but are useful to record. - * These attributes are assigned at launch time and do not change. - * - * @generated from message flyteidl.admin.ExecutionMetadata - */ -export class ExecutionMetadata extends Message { - /** - * @generated from field: flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - mode = ExecutionMetadata_ExecutionMode.MANUAL; - - /** - * Identifier of the entity that triggered this execution. - * For systems using back-end authentication any value set here will be discarded in favor of the - * authenticated user context. - * - * @generated from field: string principal = 2; - */ - principal = ""; - - /** - * Indicates the nestedness of this execution. - * If a user launches a workflow execution, the default nesting is 0. - * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 - * Generally, if workflow at nesting level k launches a workflow then the child workflow will have - * nesting = k + 1. - * - * @generated from field: uint32 nesting = 3; - */ - nesting = 0; - - /** - * For scheduled executions, the requested time for execution for this specific schedule invocation. - * - * @generated from field: google.protobuf.Timestamp scheduled_at = 4; - */ - scheduledAt?: Timestamp; - - /** - * Which subworkflow node (if any) launched this execution - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - parentNodeExecution?: NodeExecutionIdentifier; - - /** - * Optional, a reference workflow execution related to this execution. - * In the case of a relaunch, this references the original workflow execution. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - referenceExecution?: WorkflowExecutionIdentifier; - - /** - * Optional, platform-specific metadata about the execution. - * In this the future this may be gated behind an ACL or some sort of authorization. - * - * @generated from field: flyteidl.admin.SystemMetadata system_metadata = 17; - */ - systemMetadata?: SystemMetadata; - - /** - * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping - * since we don't have a structure to handle nested ones anyways. - * - * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 18; - */ - artifactIds: ArtifactID[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "mode", kind: "enum", T: proto3.getEnumType(ExecutionMetadata_ExecutionMode) }, - { no: 2, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "nesting", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "scheduled_at", kind: "message", T: Timestamp }, - { no: 5, name: "parent_node_execution", kind: "message", T: NodeExecutionIdentifier }, - { no: 16, name: "reference_execution", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 17, name: "system_metadata", kind: "message", T: SystemMetadata }, - { no: 18, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionMetadata { - return new ExecutionMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionMetadata { - return new ExecutionMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionMetadata { - return new ExecutionMetadata().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionMetadata | PlainMessage | undefined, b: ExecutionMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionMetadata, a, b); - } -} - -/** - * The method by which this execution was launched. - * - * @generated from enum flyteidl.admin.ExecutionMetadata.ExecutionMode - */ -export enum ExecutionMetadata_ExecutionMode { - /** - * The default execution mode, MANUAL implies that an execution was launched by an individual. - * - * @generated from enum value: MANUAL = 0; - */ - MANUAL = 0, - - /** - * A schedule triggered this execution launch. - * - * @generated from enum value: SCHEDULED = 1; - */ - SCHEDULED = 1, - - /** - * A system process was responsible for launching this execution rather an individual. - * - * @generated from enum value: SYSTEM = 2; - */ - SYSTEM = 2, - - /** - * This execution was launched with identical inputs as a previous execution. - * - * @generated from enum value: RELAUNCH = 3; - */ - RELAUNCH = 3, - - /** - * This execution was triggered by another execution. - * - * @generated from enum value: CHILD_WORKFLOW = 4; - */ - CHILD_WORKFLOW = 4, - - /** - * This execution was recovered from another execution. - * - * @generated from enum value: RECOVERED = 5; - */ - RECOVERED = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ExecutionMetadata_ExecutionMode) -proto3.util.setEnumType(ExecutionMetadata_ExecutionMode, "flyteidl.admin.ExecutionMetadata.ExecutionMode", [ - { no: 0, name: "MANUAL" }, - { no: 1, name: "SCHEDULED" }, - { no: 2, name: "SYSTEM" }, - { no: 3, name: "RELAUNCH" }, - { no: 4, name: "CHILD_WORKFLOW" }, - { no: 5, name: "RECOVERED" }, -]); - -/** - * @generated from message flyteidl.admin.NotificationList - */ -export class NotificationList extends Message { - /** - * @generated from field: repeated flyteidl.admin.Notification notifications = 1; - */ - notifications: Notification[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NotificationList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "notifications", kind: "message", T: Notification, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NotificationList { - return new NotificationList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NotificationList { - return new NotificationList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NotificationList { - return new NotificationList().fromJsonString(jsonString, options); - } - - static equals(a: NotificationList | PlainMessage | undefined, b: NotificationList | PlainMessage | undefined): boolean { - return proto3.util.equals(NotificationList, a, b); - } -} - -/** - * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime - * of an execution as it progresses across phase changes. - * - * @generated from message flyteidl.admin.ExecutionSpec - */ -export class ExecutionSpec extends Message { - /** - * Launch plan to be executed - * - * @generated from field: flyteidl.core.Identifier launch_plan = 1; - */ - launchPlan?: Identifier; - - /** - * Input values to be passed for the execution - * - * @generated from field: flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - * @deprecated - */ - inputs?: LiteralMap; - - /** - * Metadata for the execution - * - * @generated from field: flyteidl.admin.ExecutionMetadata metadata = 3; - */ - metadata?: ExecutionMetadata; - - /** - * @generated from oneof flyteidl.admin.ExecutionSpec.notification_overrides - */ - notificationOverrides: { - /** - * List of notifications based on Execution status transitions - * When this list is not empty it is used rather than any notifications defined in the referenced launch plan. - * When this list is empty, the notifications defined for the launch plan will be applied. - * - * @generated from field: flyteidl.admin.NotificationList notifications = 5; - */ - value: NotificationList; - case: "notifications"; - } | { - /** - * This should be set to true if all notifications are intended to be disabled for this execution. - * - * @generated from field: bool disable_all = 6; - */ - value: boolean; - case: "disableAll"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Labels to apply to the execution resource. - * - * @generated from field: flyteidl.admin.Labels labels = 7; - */ - labels?: Labels; - - /** - * Annotations to apply to the execution resource. - * - * @generated from field: flyteidl.admin.Annotations annotations = 8; - */ - annotations?: Annotations; - - /** - * Optional: security context override to apply this execution. - * - * @generated from field: flyteidl.core.SecurityContext security_context = 10; - */ - securityContext?: SecurityContext; - - /** - * Optional: auth override to apply this execution. - * - * @generated from field: flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - * @deprecated - */ - authRole?: AuthRole; - - /** - * Indicates the runtime priority of the execution. - * - * @generated from field: flyteidl.core.QualityOfService quality_of_service = 17; - */ - qualityOfService?: QualityOfService; - - /** - * Controls the maximum number of task nodes that can be run in parallel for the entire workflow. - * This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - * and parallelism/concurrency of MapTasks is independent from this. - * - * @generated from field: int32 max_parallelism = 18; - */ - maxParallelism = 0; - - /** - * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). - * This should be a prefix like s3://my-bucket/my-data - * - * @generated from field: flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - rawOutputDataConfig?: RawOutputDataConfig; - - /** - * Controls how to select an available cluster on which this execution should run. - * - * @generated from field: flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - clusterAssignment?: ClusterAssignment; - - /** - * Allows for the interruptible flag of a workflow to be overwritten for a single execution. - * Omitting this field uses the workflow's value as a default. - * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - * around the bool field. - * - * @generated from field: google.protobuf.BoolValue interruptible = 21; - */ - interruptible?: boolean; - - /** - * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - * If enabled, all calculations are performed even if cached results would be available, overwriting the stored - * data once execution finishes successfully. - * - * @generated from field: bool overwrite_cache = 22; - */ - overwriteCache = false; - - /** - * Environment variables to be set for the execution. - * - * @generated from field: flyteidl.admin.Envs envs = 23; - */ - envs?: Envs; - - /** - * Tags to be set for the execution. - * - * @generated from field: repeated string tags = 24; - */ - tags: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "launch_plan", kind: "message", T: Identifier }, - { no: 2, name: "inputs", kind: "message", T: LiteralMap }, - { no: 3, name: "metadata", kind: "message", T: ExecutionMetadata }, - { no: 5, name: "notifications", kind: "message", T: NotificationList, oneof: "notification_overrides" }, - { no: 6, name: "disable_all", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "notification_overrides" }, - { no: 7, name: "labels", kind: "message", T: Labels }, - { no: 8, name: "annotations", kind: "message", T: Annotations }, - { no: 10, name: "security_context", kind: "message", T: SecurityContext }, - { no: 16, name: "auth_role", kind: "message", T: AuthRole }, - { no: 17, name: "quality_of_service", kind: "message", T: QualityOfService }, - { no: 18, name: "max_parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 19, name: "raw_output_data_config", kind: "message", T: RawOutputDataConfig }, - { no: 20, name: "cluster_assignment", kind: "message", T: ClusterAssignment }, - { no: 21, name: "interruptible", kind: "message", T: BoolValue }, - { no: 22, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 23, name: "envs", kind: "message", T: Envs }, - { no: 24, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionSpec { - return new ExecutionSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionSpec { - return new ExecutionSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionSpec { - return new ExecutionSpec().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionSpec | PlainMessage | undefined, b: ExecutionSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionSpec, a, b); - } -} - -/** - * Request to terminate an in-progress execution. This action is irreversible. - * If an execution is already terminated, this request will simply be a no-op. - * This request will fail if it references a non-existent execution. - * If the request succeeds the phase "ABORTED" will be recorded for the termination - * with the optional cause added to the output_result. - * - * @generated from message flyteidl.admin.ExecutionTerminateRequest - */ -export class ExecutionTerminateRequest extends Message { - /** - * Uniquely identifies the individual workflow execution to be terminated. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - /** - * Optional reason for aborting. - * - * @generated from field: string cause = 2; - */ - cause = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionTerminateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "cause", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionTerminateRequest { - return new ExecutionTerminateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionTerminateRequest { - return new ExecutionTerminateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionTerminateRequest { - return new ExecutionTerminateRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionTerminateRequest | PlainMessage | undefined, b: ExecutionTerminateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionTerminateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.ExecutionTerminateResponse - */ -export class ExecutionTerminateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionTerminateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionTerminateResponse { - return new ExecutionTerminateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionTerminateResponse { - return new ExecutionTerminateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionTerminateResponse { - return new ExecutionTerminateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionTerminateResponse | PlainMessage | undefined, b: ExecutionTerminateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionTerminateResponse, a, b); - } -} - -/** - * Request structure to fetch inputs, output and other data produced by an execution. - * By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` - * - * @generated from message flyteidl.admin.WorkflowExecutionGetDataRequest - */ -export class WorkflowExecutionGetDataRequest extends Message { - /** - * The identifier of the execution for which to fetch inputs and outputs. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionGetDataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetDataRequest { - return new WorkflowExecutionGetDataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetDataRequest { - return new WorkflowExecutionGetDataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetDataRequest { - return new WorkflowExecutionGetDataRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionGetDataRequest | PlainMessage | undefined, b: WorkflowExecutionGetDataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionGetDataRequest, a, b); - } -} - -/** - * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. - * - * @generated from message flyteidl.admin.WorkflowExecutionGetDataResponse - */ -export class WorkflowExecutionGetDataResponse extends Message { - /** - * Signed url to fetch a core.LiteralMap of execution outputs. - * Deprecated: Please use full_outputs instead. - * - * @generated from field: flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - * @deprecated - */ - outputs?: UrlBlob; - - /** - * Signed url to fetch a core.LiteralMap of execution inputs. - * Deprecated: Please use full_inputs instead. - * - * @generated from field: flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - * @deprecated - */ - inputs?: UrlBlob; - - /** - * Full_inputs will only be populated if they are under a configured size threshold. - * - * @generated from field: flyteidl.core.LiteralMap full_inputs = 3; - */ - fullInputs?: LiteralMap; - - /** - * Full_outputs will only be populated if they are under a configured size threshold. - * - * @generated from field: flyteidl.core.LiteralMap full_outputs = 4; - */ - fullOutputs?: LiteralMap; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionGetDataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "outputs", kind: "message", T: UrlBlob }, - { no: 2, name: "inputs", kind: "message", T: UrlBlob }, - { no: 3, name: "full_inputs", kind: "message", T: LiteralMap }, - { no: 4, name: "full_outputs", kind: "message", T: LiteralMap }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetDataResponse { - return new WorkflowExecutionGetDataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetDataResponse { - return new WorkflowExecutionGetDataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetDataResponse { - return new WorkflowExecutionGetDataResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionGetDataResponse | PlainMessage | undefined, b: WorkflowExecutionGetDataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionGetDataResponse, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecutionUpdateRequest - */ -export class ExecutionUpdateRequest extends Message { - /** - * Identifier of the execution to update - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - /** - * State to set as the new value active/archive - * - * @generated from field: flyteidl.admin.ExecutionState state = 2; - */ - state = ExecutionState.EXECUTION_ACTIVE; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionUpdateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(ExecutionState) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionUpdateRequest { - return new ExecutionUpdateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionUpdateRequest { - return new ExecutionUpdateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionUpdateRequest { - return new ExecutionUpdateRequest().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionUpdateRequest | PlainMessage | undefined, b: ExecutionUpdateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionUpdateRequest, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecutionStateChangeDetails - */ -export class ExecutionStateChangeDetails extends Message { - /** - * The state of the execution is used to control its visibility in the UI/CLI. - * - * @generated from field: flyteidl.admin.ExecutionState state = 1; - */ - state = ExecutionState.EXECUTION_ACTIVE; - - /** - * This timestamp represents when the state changed. - * - * @generated from field: google.protobuf.Timestamp occurred_at = 2; - */ - occurredAt?: Timestamp; - - /** - * Identifies the entity (if any) responsible for causing the state change of the execution - * - * @generated from field: string principal = 3; - */ - principal = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionStateChangeDetails"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(ExecutionState) }, - { no: 2, name: "occurred_at", kind: "message", T: Timestamp }, - { no: 3, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionStateChangeDetails { - return new ExecutionStateChangeDetails().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionStateChangeDetails { - return new ExecutionStateChangeDetails().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionStateChangeDetails { - return new ExecutionStateChangeDetails().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionStateChangeDetails | PlainMessage | undefined, b: ExecutionStateChangeDetails | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionStateChangeDetails, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecutionUpdateResponse - */ -export class ExecutionUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionUpdateResponse { - return new ExecutionUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionUpdateResponse { - return new ExecutionUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionUpdateResponse { - return new ExecutionUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionUpdateResponse | PlainMessage | undefined, b: ExecutionUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionUpdateResponse, a, b); - } -} - -/** - * WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. - * - * @generated from message flyteidl.admin.WorkflowExecutionGetMetricsRequest - */ -export class WorkflowExecutionGetMetricsRequest extends Message { - /** - * id defines the workflow execution to query for. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - id?: WorkflowExecutionIdentifier; - - /** - * depth defines the number of Flyte entity levels to traverse when breaking down execution details. - * - * @generated from field: int32 depth = 2; - */ - depth = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionGetMetricsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetMetricsRequest { - return new WorkflowExecutionGetMetricsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetMetricsRequest { - return new WorkflowExecutionGetMetricsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetMetricsRequest { - return new WorkflowExecutionGetMetricsRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionGetMetricsRequest | PlainMessage | undefined, b: WorkflowExecutionGetMetricsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionGetMetricsRequest, a, b); - } -} - -/** - * WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. - * - * @generated from message flyteidl.admin.WorkflowExecutionGetMetricsResponse - */ -export class WorkflowExecutionGetMetricsResponse extends Message { - /** - * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a - * hierarchical structure using Flyte entity references. - * - * @generated from field: flyteidl.core.Span span = 1; - */ - span?: Span; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionGetMetricsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "span", kind: "message", T: Span }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetMetricsResponse { - return new WorkflowExecutionGetMetricsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetMetricsResponse { - return new WorkflowExecutionGetMetricsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetMetricsResponse { - return new WorkflowExecutionGetMetricsResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionGetMetricsResponse | PlainMessage | undefined, b: WorkflowExecutionGetMetricsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionGetMetricsResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts deleted file mode 100644 index ee8c14bdcd..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts +++ /dev/null @@ -1,805 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/launch_plan.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Any, BoolValue, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Identifier } from "../core/identifier_pb.js"; -import { ParameterMap, VariableMap } from "../core/interface_pb.js"; -import { LiteralMap } from "../core/literals_pb.js"; -import { Annotations, AuthRole, Envs, Labels, NamedEntityIdentifier, Notification, RawOutputDataConfig, Sort } from "./common_pb.js"; -import { SecurityContext } from "../core/security_pb.js"; -import { QualityOfService } from "../core/execution_pb.js"; -import { Schedule } from "./schedule_pb.js"; - -/** - * By default any launch plan regardless of state can be used to launch a workflow execution. - * However, at most one version of a launch plan - * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be - * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier - * group will be observed and trigger executions at a defined cadence. - * - * @generated from enum flyteidl.admin.LaunchPlanState - */ -export enum LaunchPlanState { - /** - * @generated from enum value: INACTIVE = 0; - */ - INACTIVE = 0, - - /** - * @generated from enum value: ACTIVE = 1; - */ - ACTIVE = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(LaunchPlanState) -proto3.util.setEnumType(LaunchPlanState, "flyteidl.admin.LaunchPlanState", [ - { no: 0, name: "INACTIVE" }, - { no: 1, name: "ACTIVE" }, -]); - -/** - * Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required - * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to - * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. - * - * @generated from message flyteidl.admin.LaunchPlanCreateRequest - */ -export class LaunchPlanCreateRequest extends Message { - /** - * Uniquely identifies a launch plan entity. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * User-provided launch plan details, including reference workflow, inputs and other metadata. - * - * @generated from field: flyteidl.admin.LaunchPlanSpec spec = 2; - */ - spec?: LaunchPlanSpec; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanCreateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "spec", kind: "message", T: LaunchPlanSpec }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanCreateRequest { - return new LaunchPlanCreateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanCreateRequest { - return new LaunchPlanCreateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanCreateRequest { - return new LaunchPlanCreateRequest().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanCreateRequest | PlainMessage | undefined, b: LaunchPlanCreateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanCreateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.LaunchPlanCreateResponse - */ -export class LaunchPlanCreateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanCreateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanCreateResponse { - return new LaunchPlanCreateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanCreateResponse { - return new LaunchPlanCreateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanCreateResponse { - return new LaunchPlanCreateResponse().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanCreateResponse | PlainMessage | undefined, b: LaunchPlanCreateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanCreateResponse, a, b); - } -} - -/** - * A LaunchPlan provides the capability to templatize workflow executions. - * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. - * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow - * definition doesn't necessarily have a default value for said input. - * - * @generated from message flyteidl.admin.LaunchPlan - */ -export class LaunchPlan extends Message { - /** - * Uniquely identifies a launch plan entity. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * User-provided launch plan details, including reference workflow, inputs and other metadata. - * - * @generated from field: flyteidl.admin.LaunchPlanSpec spec = 2; - */ - spec?: LaunchPlanSpec; - - /** - * Values computed by the flyte platform after launch plan registration. - * - * @generated from field: flyteidl.admin.LaunchPlanClosure closure = 3; - */ - closure?: LaunchPlanClosure; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlan"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "spec", kind: "message", T: LaunchPlanSpec }, - { no: 3, name: "closure", kind: "message", T: LaunchPlanClosure }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlan { - return new LaunchPlan().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlan { - return new LaunchPlan().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlan { - return new LaunchPlan().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlan | PlainMessage | undefined, b: LaunchPlan | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlan, a, b); - } -} - -/** - * Response object for list launch plan requests. - * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details - * - * @generated from message flyteidl.admin.LaunchPlanList - */ -export class LaunchPlanList extends Message { - /** - * @generated from field: repeated flyteidl.admin.LaunchPlan launch_plans = 1; - */ - launchPlans: LaunchPlan[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "launch_plans", kind: "message", T: LaunchPlan, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanList { - return new LaunchPlanList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanList { - return new LaunchPlanList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanList { - return new LaunchPlanList().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanList | PlainMessage | undefined, b: LaunchPlanList | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanList, a, b); - } -} - -/** - * Defines permissions associated with executions created by this launch plan spec. - * Use either of these roles when they have permissions required by your workflow execution. - * Deprecated. - * - * @generated from message flyteidl.admin.Auth - * @deprecated - */ -export class Auth extends Message { - /** - * Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - * - * @generated from field: string assumable_iam_role = 1; - */ - assumableIamRole = ""; - - /** - * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - * - * @generated from field: string kubernetes_service_account = 2; - */ - kubernetesServiceAccount = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Auth"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "assumable_iam_role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "kubernetes_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Auth { - return new Auth().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Auth { - return new Auth().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Auth { - return new Auth().fromJsonString(jsonString, options); - } - - static equals(a: Auth | PlainMessage | undefined, b: Auth | PlainMessage | undefined): boolean { - return proto3.util.equals(Auth, a, b); - } -} - -/** - * User-provided launch plan definition and configuration values. - * - * @generated from message flyteidl.admin.LaunchPlanSpec - */ -export class LaunchPlanSpec extends Message { - /** - * Reference to the Workflow template that the launch plan references - * - * @generated from field: flyteidl.core.Identifier workflow_id = 1; - */ - workflowId?: Identifier; - - /** - * Metadata for the Launch Plan - * - * @generated from field: flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - entityMetadata?: LaunchPlanMetadata; - - /** - * Input values to be passed for the execution. - * These can be overridden when an execution is created with this launch plan. - * - * @generated from field: flyteidl.core.ParameterMap default_inputs = 3; - */ - defaultInputs?: ParameterMap; - - /** - * Fixed, non-overridable inputs for the Launch Plan. - * These can not be overridden when an execution is created with this launch plan. - * - * @generated from field: flyteidl.core.LiteralMap fixed_inputs = 4; - */ - fixedInputs?: LiteralMap; - - /** - * String to indicate the role to use to execute the workflow underneath - * - * @generated from field: string role = 5 [deprecated = true]; - * @deprecated - */ - role = ""; - - /** - * Custom labels to be applied to the execution resource. - * - * @generated from field: flyteidl.admin.Labels labels = 6; - */ - labels?: Labels; - - /** - * Custom annotations to be applied to the execution resource. - * - * @generated from field: flyteidl.admin.Annotations annotations = 7; - */ - annotations?: Annotations; - - /** - * Indicates the permission associated with workflow executions triggered with this launch plan. - * - * @generated from field: flyteidl.admin.Auth auth = 8 [deprecated = true]; - * @deprecated - */ - auth?: Auth; - - /** - * @generated from field: flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - * @deprecated - */ - authRole?: AuthRole; - - /** - * Indicates security context for permissions triggered with this launch plan - * - * @generated from field: flyteidl.core.SecurityContext security_context = 10; - */ - securityContext?: SecurityContext; - - /** - * Indicates the runtime priority of the execution. - * - * @generated from field: flyteidl.core.QualityOfService quality_of_service = 16; - */ - qualityOfService?: QualityOfService; - - /** - * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - * - * @generated from field: flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - rawOutputDataConfig?: RawOutputDataConfig; - - /** - * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. - * This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - * and parallelism/concurrency of MapTasks is independent from this. - * - * @generated from field: int32 max_parallelism = 18; - */ - maxParallelism = 0; - - /** - * Allows for the interruptible flag of a workflow to be overwritten for a single execution. - * Omitting this field uses the workflow's value as a default. - * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - * around the bool field. - * - * @generated from field: google.protobuf.BoolValue interruptible = 19; - */ - interruptible?: boolean; - - /** - * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - * If enabled, all calculations are performed even if cached results would be available, overwriting the stored - * data once execution finishes successfully. - * - * @generated from field: bool overwrite_cache = 20; - */ - overwriteCache = false; - - /** - * Environment variables to be set for the execution. - * - * @generated from field: flyteidl.admin.Envs envs = 21; - */ - envs?: Envs; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workflow_id", kind: "message", T: Identifier }, - { no: 2, name: "entity_metadata", kind: "message", T: LaunchPlanMetadata }, - { no: 3, name: "default_inputs", kind: "message", T: ParameterMap }, - { no: 4, name: "fixed_inputs", kind: "message", T: LiteralMap }, - { no: 5, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "labels", kind: "message", T: Labels }, - { no: 7, name: "annotations", kind: "message", T: Annotations }, - { no: 8, name: "auth", kind: "message", T: Auth }, - { no: 9, name: "auth_role", kind: "message", T: AuthRole }, - { no: 10, name: "security_context", kind: "message", T: SecurityContext }, - { no: 16, name: "quality_of_service", kind: "message", T: QualityOfService }, - { no: 17, name: "raw_output_data_config", kind: "message", T: RawOutputDataConfig }, - { no: 18, name: "max_parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 19, name: "interruptible", kind: "message", T: BoolValue }, - { no: 20, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 21, name: "envs", kind: "message", T: Envs }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanSpec { - return new LaunchPlanSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanSpec { - return new LaunchPlanSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanSpec { - return new LaunchPlanSpec().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanSpec | PlainMessage | undefined, b: LaunchPlanSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanSpec, a, b); - } -} - -/** - * Values computed by the flyte platform after launch plan registration. - * These include expected_inputs required to be present in a CreateExecutionRequest - * to launch the reference workflow as well timestamp values associated with the launch plan. - * - * @generated from message flyteidl.admin.LaunchPlanClosure - */ -export class LaunchPlanClosure extends Message { - /** - * Indicate the Launch plan state. - * - * @generated from field: flyteidl.admin.LaunchPlanState state = 1; - */ - state = LaunchPlanState.INACTIVE; - - /** - * Indicates the set of inputs expected when creating an execution with the Launch plan - * - * @generated from field: flyteidl.core.ParameterMap expected_inputs = 2; - */ - expectedInputs?: ParameterMap; - - /** - * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan - * - * @generated from field: flyteidl.core.VariableMap expected_outputs = 3; - */ - expectedOutputs?: VariableMap; - - /** - * Time at which the launch plan was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 4; - */ - createdAt?: Timestamp; - - /** - * Time at which the launch plan was last updated. - * - * @generated from field: google.protobuf.Timestamp updated_at = 5; - */ - updatedAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(LaunchPlanState) }, - { no: 2, name: "expected_inputs", kind: "message", T: ParameterMap }, - { no: 3, name: "expected_outputs", kind: "message", T: VariableMap }, - { no: 4, name: "created_at", kind: "message", T: Timestamp }, - { no: 5, name: "updated_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanClosure { - return new LaunchPlanClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanClosure { - return new LaunchPlanClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanClosure { - return new LaunchPlanClosure().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanClosure | PlainMessage | undefined, b: LaunchPlanClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanClosure, a, b); - } -} - -/** - * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch - * the reference workflow. - * - * @generated from message flyteidl.admin.LaunchPlanMetadata - */ -export class LaunchPlanMetadata extends Message { - /** - * Schedule to execute the Launch Plan - * - * @generated from field: flyteidl.admin.Schedule schedule = 1; - */ - schedule?: Schedule; - - /** - * List of notifications based on Execution status transitions - * - * @generated from field: repeated flyteidl.admin.Notification notifications = 2; - */ - notifications: Notification[] = []; - - /** - * Additional metadata for how to launch the launch plan - * - * @generated from field: google.protobuf.Any launch_conditions = 3; - */ - launchConditions?: Any; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "schedule", kind: "message", T: Schedule }, - { no: 2, name: "notifications", kind: "message", T: Notification, repeated: true }, - { no: 3, name: "launch_conditions", kind: "message", T: Any }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanMetadata { - return new LaunchPlanMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanMetadata { - return new LaunchPlanMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanMetadata { - return new LaunchPlanMetadata().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanMetadata | PlainMessage | undefined, b: LaunchPlanMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanMetadata, a, b); - } -} - -/** - * Request to set the referenced launch plan state to the configured value. - * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details - * - * @generated from message flyteidl.admin.LaunchPlanUpdateRequest - */ -export class LaunchPlanUpdateRequest extends Message { - /** - * Identifier of launch plan for which to change state. - * +required. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * Desired state to apply to the launch plan. - * +required. - * - * @generated from field: flyteidl.admin.LaunchPlanState state = 2; - */ - state = LaunchPlanState.INACTIVE; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanUpdateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(LaunchPlanState) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanUpdateRequest { - return new LaunchPlanUpdateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanUpdateRequest { - return new LaunchPlanUpdateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanUpdateRequest { - return new LaunchPlanUpdateRequest().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanUpdateRequest | PlainMessage | undefined, b: LaunchPlanUpdateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanUpdateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.LaunchPlanUpdateResponse - */ -export class LaunchPlanUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.LaunchPlanUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanUpdateResponse { - return new LaunchPlanUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanUpdateResponse { - return new LaunchPlanUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanUpdateResponse { - return new LaunchPlanUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanUpdateResponse | PlainMessage | undefined, b: LaunchPlanUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanUpdateResponse, a, b); - } -} - -/** - * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier - * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details - * - * @generated from message flyteidl.admin.ActiveLaunchPlanRequest - */ -export class ActiveLaunchPlanRequest extends Message { - /** - * +required. - * - * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 1; - */ - id?: NamedEntityIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ActiveLaunchPlanRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NamedEntityIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveLaunchPlanRequest { - return new ActiveLaunchPlanRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveLaunchPlanRequest { - return new ActiveLaunchPlanRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveLaunchPlanRequest { - return new ActiveLaunchPlanRequest().fromJsonString(jsonString, options); - } - - static equals(a: ActiveLaunchPlanRequest | PlainMessage | undefined, b: ActiveLaunchPlanRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveLaunchPlanRequest, a, b); - } -} - -/** - * Represents a request structure to list active launch plans within a project/domain and optional org. - * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details - * - * @generated from message flyteidl.admin.ActiveLaunchPlanListRequest - */ -export class ActiveLaunchPlanListRequest extends Message { - /** - * Name of the project that contains the identifiers. - * +required. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Name of the domain the identifiers belongs to within the project. - * +required. - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Indicates the number of resources to be returned. - * +required. - * - * @generated from field: uint32 limit = 3; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 4; - */ - token = ""; - - /** - * Sort ordering. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 6; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ActiveLaunchPlanListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ActiveLaunchPlanListRequest { - return new ActiveLaunchPlanListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ActiveLaunchPlanListRequest { - return new ActiveLaunchPlanListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ActiveLaunchPlanListRequest { - return new ActiveLaunchPlanListRequest().fromJsonString(jsonString, options); - } - - static equals(a: ActiveLaunchPlanListRequest | PlainMessage | undefined, b: ActiveLaunchPlanListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ActiveLaunchPlanListRequest, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts deleted file mode 100644 index 421358694a..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts +++ /dev/null @@ -1,794 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/matchable_resource.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { BoolValue, Message, proto3 } from "@bufbuild/protobuf"; -import { SecurityContext } from "../core/security_pb.js"; -import { Annotations, Envs, Labels, RawOutputDataConfig } from "./common_pb.js"; -import { QualityOfService } from "../core/execution_pb.js"; -import { ClusterAssignment } from "./cluster_assignment_pb.js"; - -/** - * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes - * based on matching tags. - * - * @generated from enum flyteidl.admin.MatchableResource - */ -export enum MatchableResource { - /** - * Applies to customizable task resource requests and limits. - * - * @generated from enum value: TASK_RESOURCE = 0; - */ - TASK_RESOURCE = 0, - - /** - * Applies to configuring templated kubernetes cluster resources. - * - * @generated from enum value: CLUSTER_RESOURCE = 1; - */ - CLUSTER_RESOURCE = 1, - - /** - * Configures task and dynamic task execution queue assignment. - * - * @generated from enum value: EXECUTION_QUEUE = 2; - */ - EXECUTION_QUEUE = 2, - - /** - * Configures the K8s cluster label to be used for execution to be run - * - * @generated from enum value: EXECUTION_CLUSTER_LABEL = 3; - */ - EXECUTION_CLUSTER_LABEL = 3, - - /** - * Configures default quality of service when undefined in an execution spec. - * - * @generated from enum value: QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - QUALITY_OF_SERVICE_SPECIFICATION = 4, - - /** - * Selects configurable plugin implementation behavior for a given task type. - * - * @generated from enum value: PLUGIN_OVERRIDE = 5; - */ - PLUGIN_OVERRIDE = 5, - - /** - * Adds defaults for customizable workflow-execution specifications and overrides. - * - * @generated from enum value: WORKFLOW_EXECUTION_CONFIG = 6; - */ - WORKFLOW_EXECUTION_CONFIG = 6, - - /** - * Controls how to select an available cluster on which this execution should run. - * - * @generated from enum value: CLUSTER_ASSIGNMENT = 7; - */ - CLUSTER_ASSIGNMENT = 7, -} -// Retrieve enum metadata with: proto3.getEnumType(MatchableResource) -proto3.util.setEnumType(MatchableResource, "flyteidl.admin.MatchableResource", [ - { no: 0, name: "TASK_RESOURCE" }, - { no: 1, name: "CLUSTER_RESOURCE" }, - { no: 2, name: "EXECUTION_QUEUE" }, - { no: 3, name: "EXECUTION_CLUSTER_LABEL" }, - { no: 4, name: "QUALITY_OF_SERVICE_SPECIFICATION" }, - { no: 5, name: "PLUGIN_OVERRIDE" }, - { no: 6, name: "WORKFLOW_EXECUTION_CONFIG" }, - { no: 7, name: "CLUSTER_ASSIGNMENT" }, -]); - -/** - * Defines a set of overridable task resource attributes set during task registration. - * - * @generated from message flyteidl.admin.TaskResourceSpec - */ -export class TaskResourceSpec extends Message { - /** - * @generated from field: string cpu = 1; - */ - cpu = ""; - - /** - * @generated from field: string gpu = 2; - */ - gpu = ""; - - /** - * @generated from field: string memory = 3; - */ - memory = ""; - - /** - * @generated from field: string storage = 4; - */ - storage = ""; - - /** - * @generated from field: string ephemeral_storage = 5; - */ - ephemeralStorage = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskResourceSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cpu", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "gpu", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "memory", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "storage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "ephemeral_storage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskResourceSpec { - return new TaskResourceSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskResourceSpec { - return new TaskResourceSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskResourceSpec { - return new TaskResourceSpec().fromJsonString(jsonString, options); - } - - static equals(a: TaskResourceSpec | PlainMessage | undefined, b: TaskResourceSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskResourceSpec, a, b); - } -} - -/** - * Defines task resource defaults and limits that will be applied at task registration. - * - * @generated from message flyteidl.admin.TaskResourceAttributes - */ -export class TaskResourceAttributes extends Message { - /** - * @generated from field: flyteidl.admin.TaskResourceSpec defaults = 1; - */ - defaults?: TaskResourceSpec; - - /** - * @generated from field: flyteidl.admin.TaskResourceSpec limits = 2; - */ - limits?: TaskResourceSpec; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskResourceAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "defaults", kind: "message", T: TaskResourceSpec }, - { no: 2, name: "limits", kind: "message", T: TaskResourceSpec }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskResourceAttributes { - return new TaskResourceAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskResourceAttributes { - return new TaskResourceAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskResourceAttributes { - return new TaskResourceAttributes().fromJsonString(jsonString, options); - } - - static equals(a: TaskResourceAttributes | PlainMessage | undefined, b: TaskResourceAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskResourceAttributes, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ClusterResourceAttributes - */ -export class ClusterResourceAttributes extends Message { - /** - * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). - * Map keys are the *case-sensitive* names of variables in templatized resource files. - * Map values should be the custom values which get substituted during resource creation. - * - * @generated from field: map attributes = 1; - */ - attributes: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ClusterResourceAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ClusterResourceAttributes { - return new ClusterResourceAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ClusterResourceAttributes { - return new ClusterResourceAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ClusterResourceAttributes { - return new ClusterResourceAttributes().fromJsonString(jsonString, options); - } - - static equals(a: ClusterResourceAttributes | PlainMessage | undefined, b: ClusterResourceAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(ClusterResourceAttributes, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecutionQueueAttributes - */ -export class ExecutionQueueAttributes extends Message { - /** - * Tags used for assigning execution queues for tasks defined within this project. - * - * @generated from field: repeated string tags = 1; - */ - tags: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionQueueAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionQueueAttributes { - return new ExecutionQueueAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionQueueAttributes { - return new ExecutionQueueAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionQueueAttributes { - return new ExecutionQueueAttributes().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionQueueAttributes | PlainMessage | undefined, b: ExecutionQueueAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionQueueAttributes, a, b); - } -} - -/** - * @generated from message flyteidl.admin.ExecutionClusterLabel - */ -export class ExecutionClusterLabel extends Message { - /** - * Label value to determine where the execution will be run - * - * @generated from field: string value = 1; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ExecutionClusterLabel"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionClusterLabel { - return new ExecutionClusterLabel().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionClusterLabel { - return new ExecutionClusterLabel().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionClusterLabel { - return new ExecutionClusterLabel().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionClusterLabel | PlainMessage | undefined, b: ExecutionClusterLabel | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionClusterLabel, a, b); - } -} - -/** - * This MatchableAttribute configures selecting alternate plugin implementations for a given task type. - * In addition to an override implementation a selection of fallbacks can be provided or other modes - * for handling cases where the desired plugin override is not enabled in a given Flyte deployment. - * - * @generated from message flyteidl.admin.PluginOverride - */ -export class PluginOverride extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string task_type = 1; - */ - taskType = ""; - - /** - * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. - * - * @generated from field: repeated string plugin_id = 2; - */ - pluginId: string[] = []; - - /** - * Defines the behavior when no plugin from the plugin_id list is not found. - * - * @generated from field: flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - missingPluginBehavior = PluginOverride_MissingPluginBehavior.FAIL; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.PluginOverride"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "plugin_id", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "missing_plugin_behavior", kind: "enum", T: proto3.getEnumType(PluginOverride_MissingPluginBehavior) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PluginOverride { - return new PluginOverride().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PluginOverride { - return new PluginOverride().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PluginOverride { - return new PluginOverride().fromJsonString(jsonString, options); - } - - static equals(a: PluginOverride | PlainMessage | undefined, b: PluginOverride | PlainMessage | undefined): boolean { - return proto3.util.equals(PluginOverride, a, b); - } -} - -/** - * @generated from enum flyteidl.admin.PluginOverride.MissingPluginBehavior - */ -export enum PluginOverride_MissingPluginBehavior { - /** - * By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - * - * @generated from enum value: FAIL = 0; - */ - FAIL = 0, - - /** - * Uses the system-configured default implementation. - * - * @generated from enum value: USE_DEFAULT = 1; - */ - USE_DEFAULT = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(PluginOverride_MissingPluginBehavior) -proto3.util.setEnumType(PluginOverride_MissingPluginBehavior, "flyteidl.admin.PluginOverride.MissingPluginBehavior", [ - { no: 0, name: "FAIL" }, - { no: 1, name: "USE_DEFAULT" }, -]); - -/** - * @generated from message flyteidl.admin.PluginOverrides - */ -export class PluginOverrides extends Message { - /** - * @generated from field: repeated flyteidl.admin.PluginOverride overrides = 1; - */ - overrides: PluginOverride[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.PluginOverrides"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "overrides", kind: "message", T: PluginOverride, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PluginOverrides { - return new PluginOverrides().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PluginOverrides { - return new PluginOverrides().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PluginOverrides { - return new PluginOverrides().fromJsonString(jsonString, options); - } - - static equals(a: PluginOverrides | PlainMessage | undefined, b: PluginOverrides | PlainMessage | undefined): boolean { - return proto3.util.equals(PluginOverrides, a, b); - } -} - -/** - * Adds defaults for customizable workflow-execution specifications and overrides. - * - * @generated from message flyteidl.admin.WorkflowExecutionConfig - */ -export class WorkflowExecutionConfig extends Message { - /** - * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. - * - * @generated from field: int32 max_parallelism = 1; - */ - maxParallelism = 0; - - /** - * Indicates security context permissions for executions triggered with this matchable attribute. - * - * @generated from field: flyteidl.core.SecurityContext security_context = 2; - */ - securityContext?: SecurityContext; - - /** - * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - * - * @generated from field: flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - rawOutputDataConfig?: RawOutputDataConfig; - - /** - * Custom labels to be applied to a triggered execution resource. - * - * @generated from field: flyteidl.admin.Labels labels = 4; - */ - labels?: Labels; - - /** - * Custom annotations to be applied to a triggered execution resource. - * - * @generated from field: flyteidl.admin.Annotations annotations = 5; - */ - annotations?: Annotations; - - /** - * Allows for the interruptible flag of a workflow to be overwritten for a single execution. - * Omitting this field uses the workflow's value as a default. - * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - * around the bool field. - * - * @generated from field: google.protobuf.BoolValue interruptible = 6; - */ - interruptible?: boolean; - - /** - * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - * If enabled, all calculations are performed even if cached results would be available, overwriting the stored - * data once execution finishes successfully. - * - * @generated from field: bool overwrite_cache = 7; - */ - overwriteCache = false; - - /** - * Environment variables to be set for the execution. - * - * @generated from field: flyteidl.admin.Envs envs = 8; - */ - envs?: Envs; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowExecutionConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "max_parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "security_context", kind: "message", T: SecurityContext }, - { no: 3, name: "raw_output_data_config", kind: "message", T: RawOutputDataConfig }, - { no: 4, name: "labels", kind: "message", T: Labels }, - { no: 5, name: "annotations", kind: "message", T: Annotations }, - { no: 6, name: "interruptible", kind: "message", T: BoolValue }, - { no: 7, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 8, name: "envs", kind: "message", T: Envs }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionConfig { - return new WorkflowExecutionConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionConfig { - return new WorkflowExecutionConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionConfig { - return new WorkflowExecutionConfig().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionConfig | PlainMessage | undefined, b: WorkflowExecutionConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionConfig, a, b); - } -} - -/** - * Generic container for encapsulating all types of the above attributes messages. - * - * @generated from message flyteidl.admin.MatchingAttributes - */ -export class MatchingAttributes extends Message { - /** - * @generated from oneof flyteidl.admin.MatchingAttributes.target - */ - target: { - /** - * @generated from field: flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - value: TaskResourceAttributes; - case: "taskResourceAttributes"; - } | { - /** - * @generated from field: flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - value: ClusterResourceAttributes; - case: "clusterResourceAttributes"; - } | { - /** - * @generated from field: flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - value: ExecutionQueueAttributes; - case: "executionQueueAttributes"; - } | { - /** - * @generated from field: flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - value: ExecutionClusterLabel; - case: "executionClusterLabel"; - } | { - /** - * @generated from field: flyteidl.core.QualityOfService quality_of_service = 5; - */ - value: QualityOfService; - case: "qualityOfService"; - } | { - /** - * @generated from field: flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - value: PluginOverrides; - case: "pluginOverrides"; - } | { - /** - * @generated from field: flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - value: WorkflowExecutionConfig; - case: "workflowExecutionConfig"; - } | { - /** - * @generated from field: flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - value: ClusterAssignment; - case: "clusterAssignment"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.MatchingAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_resource_attributes", kind: "message", T: TaskResourceAttributes, oneof: "target" }, - { no: 2, name: "cluster_resource_attributes", kind: "message", T: ClusterResourceAttributes, oneof: "target" }, - { no: 3, name: "execution_queue_attributes", kind: "message", T: ExecutionQueueAttributes, oneof: "target" }, - { no: 4, name: "execution_cluster_label", kind: "message", T: ExecutionClusterLabel, oneof: "target" }, - { no: 5, name: "quality_of_service", kind: "message", T: QualityOfService, oneof: "target" }, - { no: 6, name: "plugin_overrides", kind: "message", T: PluginOverrides, oneof: "target" }, - { no: 7, name: "workflow_execution_config", kind: "message", T: WorkflowExecutionConfig, oneof: "target" }, - { no: 8, name: "cluster_assignment", kind: "message", T: ClusterAssignment, oneof: "target" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MatchingAttributes { - return new MatchingAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MatchingAttributes { - return new MatchingAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MatchingAttributes { - return new MatchingAttributes().fromJsonString(jsonString, options); - } - - static equals(a: MatchingAttributes | PlainMessage | undefined, b: MatchingAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(MatchingAttributes, a, b); - } -} - -/** - * Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org); - * or domain, project and workflow name (and optional org). - * These are used to override system level defaults for kubernetes cluster resource management, - * default execution values, and more all across different levels of specificity. - * - * @generated from message flyteidl.admin.MatchableAttributesConfiguration - */ -export class MatchableAttributesConfiguration extends Message { - /** - * @generated from field: flyteidl.admin.MatchingAttributes attributes = 1; - */ - attributes?: MatchingAttributes; - - /** - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * @generated from field: string project = 3; - */ - project = ""; - - /** - * @generated from field: string workflow = 4; - */ - workflow = ""; - - /** - * @generated from field: string launch_plan = 5; - */ - launchPlan = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 6; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.MatchableAttributesConfiguration"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: MatchingAttributes }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "launch_plan", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): MatchableAttributesConfiguration { - return new MatchableAttributesConfiguration().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): MatchableAttributesConfiguration { - return new MatchableAttributesConfiguration().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): MatchableAttributesConfiguration { - return new MatchableAttributesConfiguration().fromJsonString(jsonString, options); - } - - static equals(a: MatchableAttributesConfiguration | PlainMessage | undefined, b: MatchableAttributesConfiguration | PlainMessage | undefined): boolean { - return proto3.util.equals(MatchableAttributesConfiguration, a, b); - } -} - -/** - * Request all matching resource attributes for a resource type. - * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details - * - * @generated from message flyteidl.admin.ListMatchableAttributesRequest - */ -export class ListMatchableAttributesRequest extends Message { - /** - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 1; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org filter applied to list project requests. - * - * @generated from field: string org = 2; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ListMatchableAttributesRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 2, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListMatchableAttributesRequest { - return new ListMatchableAttributesRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListMatchableAttributesRequest { - return new ListMatchableAttributesRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListMatchableAttributesRequest { - return new ListMatchableAttributesRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListMatchableAttributesRequest | PlainMessage | undefined, b: ListMatchableAttributesRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListMatchableAttributesRequest, a, b); - } -} - -/** - * Response for a request for all matching resource attributes for a resource type. - * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details - * - * @generated from message flyteidl.admin.ListMatchableAttributesResponse - */ -export class ListMatchableAttributesResponse extends Message { - /** - * @generated from field: repeated flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - configurations: MatchableAttributesConfiguration[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ListMatchableAttributesResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "configurations", kind: "message", T: MatchableAttributesConfiguration, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListMatchableAttributesResponse { - return new ListMatchableAttributesResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListMatchableAttributesResponse { - return new ListMatchableAttributesResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListMatchableAttributesResponse { - return new ListMatchableAttributesResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListMatchableAttributesResponse | PlainMessage | undefined, b: ListMatchableAttributesResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListMatchableAttributesResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts deleted file mode 100644 index 97b89426fe..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts +++ /dev/null @@ -1,926 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/node_execution.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Identifier, NodeExecutionIdentifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; -import { FlyteURLs, Sort, UrlBlob } from "./common_pb.js"; -import { ExecutionError, NodeExecution_Phase } from "../core/execution_pb.js"; -import { LiteralMap } from "../core/literals_pb.js"; -import { CatalogCacheStatus, CatalogMetadata } from "../core/catalog_pb.js"; -import { CompiledWorkflowClosure } from "../core/compiler_pb.js"; - -/** - * A message used to fetch a single node execution entity. - * See :ref:`ref_flyteidl.admin.NodeExecution` for more details - * - * @generated from message flyteidl.admin.NodeExecutionGetRequest - */ -export class NodeExecutionGetRequest extends Message { - /** - * Uniquely identifies an individual node execution. - * +required - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; - */ - id?: NodeExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionGetRequest { - return new NodeExecutionGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionGetRequest { - return new NodeExecutionGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionGetRequest { - return new NodeExecutionGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionGetRequest | PlainMessage | undefined, b: NodeExecutionGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionGetRequest, a, b); - } -} - -/** - * Represents a request structure to retrieve a list of node execution entities. - * See :ref:`ref_flyteidl.admin.NodeExecution` for more details - * - * @generated from message flyteidl.admin.NodeExecutionListRequest - */ -export class NodeExecutionListRequest extends Message { - /** - * Indicates the workflow execution to filter by. - * +required - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - workflowExecutionId?: WorkflowExecutionIdentifier; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 2; - */ - limit = 0; - - /** - * @generated from field: string token = 3; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * More info on constructing filters : - * +optional - * - * @generated from field: string filters = 4; - */ - filters = ""; - - /** - * Sort ordering. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - /** - * Unique identifier of the parent node in the execution - * +optional - * - * @generated from field: string unique_parent_id = 6; - */ - uniqueParentId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workflow_execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - { no: 6, name: "unique_parent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionListRequest { - return new NodeExecutionListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionListRequest { - return new NodeExecutionListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionListRequest { - return new NodeExecutionListRequest().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionListRequest | PlainMessage | undefined, b: NodeExecutionListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionListRequest, a, b); - } -} - -/** - * Represents a request structure to retrieve a list of node execution entities launched by a specific task. - * This can arise when a task yields a subworkflow. - * - * @generated from message flyteidl.admin.NodeExecutionForTaskListRequest - */ -export class NodeExecutionForTaskListRequest extends Message { - /** - * Indicates the node execution to filter by. - * +required - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - taskExecutionId?: TaskExecutionIdentifier; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 2; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 3; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * More info on constructing filters : - * +optional - * - * @generated from field: string filters = 4; - */ - filters = ""; - - /** - * Sort ordering. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionForTaskListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_execution_id", kind: "message", T: TaskExecutionIdentifier }, - { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionForTaskListRequest { - return new NodeExecutionForTaskListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionForTaskListRequest { - return new NodeExecutionForTaskListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionForTaskListRequest { - return new NodeExecutionForTaskListRequest().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionForTaskListRequest | PlainMessage | undefined, b: NodeExecutionForTaskListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionForTaskListRequest, a, b); - } -} - -/** - * Encapsulates all details for a single node execution entity. - * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested - * sub-workflow, or even a separate child-workflow execution. - * The same task can be called repeatedly in a single workflow but each node is unique. - * - * @generated from message flyteidl.admin.NodeExecution - */ -export class NodeExecution extends Message { - /** - * Uniquely identifies an individual node execution. - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; - */ - id?: NodeExecutionIdentifier; - - /** - * Path to remote data store where input blob is stored. - * - * @generated from field: string input_uri = 2; - */ - inputUri = ""; - - /** - * Computed results associated with this node execution. - * - * @generated from field: flyteidl.admin.NodeExecutionClosure closure = 3; - */ - closure?: NodeExecutionClosure; - - /** - * Metadata for Node Execution - * - * @generated from field: flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - metadata?: NodeExecutionMetaData; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, - { no: 2, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "closure", kind: "message", T: NodeExecutionClosure }, - { no: 4, name: "metadata", kind: "message", T: NodeExecutionMetaData }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecution { - return new NodeExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecution { - return new NodeExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecution { - return new NodeExecution().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecution | PlainMessage | undefined, b: NodeExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecution, a, b); - } -} - -/** - * Represents additional attributes related to a Node Execution - * - * @generated from message flyteidl.admin.NodeExecutionMetaData - */ -export class NodeExecutionMetaData extends Message { - /** - * Node executions are grouped depending on retries of the parent - * Retry group is unique within the context of a parent node. - * - * @generated from field: string retry_group = 1; - */ - retryGroup = ""; - - /** - * Boolean flag indicating if the node has child nodes under it - * This can be true when a node contains a dynamic workflow which then produces - * child nodes. - * - * @generated from field: bool is_parent_node = 2; - */ - isParentNode = false; - - /** - * Node id of the node in the original workflow - * This maps to value of WorkflowTemplate.nodes[X].id - * - * @generated from field: string spec_node_id = 3; - */ - specNodeId = ""; - - /** - * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. - * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. - * - * @generated from field: bool is_dynamic = 4; - */ - isDynamic = false; - - /** - * Boolean flag indicating if the node is an array node. This is intended to uniquely identify - * array nodes from other nodes which can have is_parent_node as true. - * - * @generated from field: bool is_array = 5; - */ - isArray = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionMetaData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "retry_group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "is_parent_node", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 3, name: "spec_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "is_dynamic", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 5, name: "is_array", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionMetaData { - return new NodeExecutionMetaData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionMetaData { - return new NodeExecutionMetaData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionMetaData { - return new NodeExecutionMetaData().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionMetaData | PlainMessage | undefined, b: NodeExecutionMetaData | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionMetaData, a, b); - } -} - -/** - * Request structure to retrieve a list of node execution entities. - * See :ref:`ref_flyteidl.admin.NodeExecution` for more details - * - * @generated from message flyteidl.admin.NodeExecutionList - */ -export class NodeExecutionList extends Message { - /** - * @generated from field: repeated flyteidl.admin.NodeExecution node_executions = 1; - */ - nodeExecutions: NodeExecution[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "node_executions", kind: "message", T: NodeExecution, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionList { - return new NodeExecutionList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionList { - return new NodeExecutionList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionList { - return new NodeExecutionList().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionList | PlainMessage | undefined, b: NodeExecutionList | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionList, a, b); - } -} - -/** - * Container for node execution details and results. - * - * @generated from message flyteidl.admin.NodeExecutionClosure - */ -export class NodeExecutionClosure extends Message { - /** - * Only a node in a terminal state will have a non-empty output_result. - * - * @generated from oneof flyteidl.admin.NodeExecutionClosure.output_result - */ - outputResult: { - /** - * Links to a remotely stored, serialized core.LiteralMap of node execution outputs. - * DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - * - * @generated from field: string output_uri = 1 [deprecated = true]; - * @deprecated - */ - value: string; - case: "outputUri"; - } | { - /** - * Error information for the Node - * - * @generated from field: flyteidl.core.ExecutionError error = 2; - */ - value: ExecutionError; - case: "error"; - } | { - /** - * Raw output data produced by this node execution. - * DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - * - * @generated from field: flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - * @deprecated - */ - value: LiteralMap; - case: "outputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * The last recorded phase for this node execution. - * - * @generated from field: flyteidl.core.NodeExecution.Phase phase = 3; - */ - phase = NodeExecution_Phase.UNDEFINED; - - /** - * Time at which the node execution began running. - * - * @generated from field: google.protobuf.Timestamp started_at = 4; - */ - startedAt?: Timestamp; - - /** - * The amount of time the node execution spent running. - * - * @generated from field: google.protobuf.Duration duration = 5; - */ - duration?: Duration; - - /** - * Time at which the node execution was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 6; - */ - createdAt?: Timestamp; - - /** - * Time at which the node execution was last updated. - * - * @generated from field: google.protobuf.Timestamp updated_at = 7; - */ - updatedAt?: Timestamp; - - /** - * Store metadata for what the node launched. - * for ex: if this is a workflow node, we store information for the launched workflow. - * - * @generated from oneof flyteidl.admin.NodeExecutionClosure.target_metadata - */ - targetMetadata: { - /** - * @generated from field: flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - value: WorkflowNodeMetadata; - case: "workflowNodeMetadata"; - } | { - /** - * @generated from field: flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - value: TaskNodeMetadata; - case: "taskNodeMetadata"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * String location uniquely identifying where the deck HTML file is. - * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - * - * @generated from field: string deck_uri = 11; - */ - deckUri = ""; - - /** - * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required - * to correctly recover partially completed executions where the subworkflow has already been compiled. - * - * @generated from field: string dynamic_job_spec_uri = 12; - */ - dynamicJobSpecUri = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, - { no: 2, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, - { no: 10, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, - { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(NodeExecution_Phase) }, - { no: 4, name: "started_at", kind: "message", T: Timestamp }, - { no: 5, name: "duration", kind: "message", T: Duration }, - { no: 6, name: "created_at", kind: "message", T: Timestamp }, - { no: 7, name: "updated_at", kind: "message", T: Timestamp }, - { no: 8, name: "workflow_node_metadata", kind: "message", T: WorkflowNodeMetadata, oneof: "target_metadata" }, - { no: 9, name: "task_node_metadata", kind: "message", T: TaskNodeMetadata, oneof: "target_metadata" }, - { no: 11, name: "deck_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "dynamic_job_spec_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionClosure { - return new NodeExecutionClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionClosure { - return new NodeExecutionClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionClosure { - return new NodeExecutionClosure().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionClosure | PlainMessage | undefined, b: NodeExecutionClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionClosure, a, b); - } -} - -/** - * Metadata for a WorkflowNode - * - * @generated from message flyteidl.admin.WorkflowNodeMetadata - */ -export class WorkflowNodeMetadata extends Message { - /** - * The identifier for a workflow execution launched by a node. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - executionId?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowNodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "executionId", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowNodeMetadata { - return new WorkflowNodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowNodeMetadata { - return new WorkflowNodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowNodeMetadata { - return new WorkflowNodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowNodeMetadata | PlainMessage | undefined, b: WorkflowNodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowNodeMetadata, a, b); - } -} - -/** - * Metadata for the case in which the node is a TaskNode - * - * @generated from message flyteidl.admin.TaskNodeMetadata - */ -export class TaskNodeMetadata extends Message { - /** - * Captures the status of caching for this execution. - * - * @generated from field: flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - cacheStatus = CatalogCacheStatus.CACHE_DISABLED; - - /** - * This structure carries the catalog artifact information - * - * @generated from field: flyteidl.core.CatalogMetadata catalog_key = 2; - */ - catalogKey?: CatalogMetadata; - - /** - * The latest checkpoint location - * - * @generated from field: string checkpoint_uri = 4; - */ - checkpointUri = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskNodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cache_status", kind: "enum", T: proto3.getEnumType(CatalogCacheStatus) }, - { no: 2, name: "catalog_key", kind: "message", T: CatalogMetadata }, - { no: 4, name: "checkpoint_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskNodeMetadata { - return new TaskNodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskNodeMetadata { - return new TaskNodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskNodeMetadata { - return new TaskNodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: TaskNodeMetadata | PlainMessage | undefined, b: TaskNodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskNodeMetadata, a, b); - } -} - -/** - * For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. - * - * @generated from message flyteidl.admin.DynamicWorkflowNodeMetadata - */ -export class DynamicWorkflowNodeMetadata extends Message { - /** - * id represents the unique identifier of the workflow. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * Represents the compiled representation of the embedded dynamic workflow. - * - * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - compiledWorkflow?: CompiledWorkflowClosure; - - /** - * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - * required to correctly recover partially completed executions where the subworkflow has already been compiled. - * - * @generated from field: string dynamic_job_spec_uri = 3; - */ - dynamicJobSpecUri = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DynamicWorkflowNodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, - { no: 3, name: "dynamic_job_spec_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DynamicWorkflowNodeMetadata { - return new DynamicWorkflowNodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DynamicWorkflowNodeMetadata { - return new DynamicWorkflowNodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DynamicWorkflowNodeMetadata { - return new DynamicWorkflowNodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: DynamicWorkflowNodeMetadata | PlainMessage | undefined, b: DynamicWorkflowNodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(DynamicWorkflowNodeMetadata, a, b); - } -} - -/** - * Request structure to fetch inputs and output for a node execution. - * By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` - * - * @generated from message flyteidl.admin.NodeExecutionGetDataRequest - */ -export class NodeExecutionGetDataRequest extends Message { - /** - * The identifier of the node execution for which to fetch inputs and outputs. - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; - */ - id?: NodeExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionGetDataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionGetDataRequest { - return new NodeExecutionGetDataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionGetDataRequest { - return new NodeExecutionGetDataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionGetDataRequest { - return new NodeExecutionGetDataRequest().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionGetDataRequest | PlainMessage | undefined, b: NodeExecutionGetDataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionGetDataRequest, a, b); - } -} - -/** - * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. - * - * @generated from message flyteidl.admin.NodeExecutionGetDataResponse - */ -export class NodeExecutionGetDataResponse extends Message { - /** - * Signed url to fetch a core.LiteralMap of node execution inputs. - * Deprecated: Please use full_inputs instead. - * - * @generated from field: flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - * @deprecated - */ - inputs?: UrlBlob; - - /** - * Signed url to fetch a core.LiteralMap of node execution outputs. - * Deprecated: Please use full_outputs instead. - * - * @generated from field: flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - * @deprecated - */ - outputs?: UrlBlob; - - /** - * Full_inputs will only be populated if they are under a configured size threshold. - * - * @generated from field: flyteidl.core.LiteralMap full_inputs = 3; - */ - fullInputs?: LiteralMap; - - /** - * Full_outputs will only be populated if they are under a configured size threshold. - * - * @generated from field: flyteidl.core.LiteralMap full_outputs = 4; - */ - fullOutputs?: LiteralMap; - - /** - * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. - * - * @generated from field: flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - dynamicWorkflow?: DynamicWorkflowNodeMetadata; - - /** - * @generated from field: flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - flyteUrls?: FlyteURLs; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.NodeExecutionGetDataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "message", T: UrlBlob }, - { no: 2, name: "outputs", kind: "message", T: UrlBlob }, - { no: 3, name: "full_inputs", kind: "message", T: LiteralMap }, - { no: 4, name: "full_outputs", kind: "message", T: LiteralMap }, - { no: 16, name: "dynamic_workflow", kind: "message", T: DynamicWorkflowNodeMetadata }, - { no: 17, name: "flyte_urls", kind: "message", T: FlyteURLs }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionGetDataResponse { - return new NodeExecutionGetDataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionGetDataResponse { - return new NodeExecutionGetDataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionGetDataResponse { - return new NodeExecutionGetDataResponse().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionGetDataResponse | PlainMessage | undefined, b: NodeExecutionGetDataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionGetDataResponse, a, b); - } -} - -/** - * @generated from message flyteidl.admin.GetDynamicNodeWorkflowRequest - */ -export class GetDynamicNodeWorkflowRequest extends Message { - /** - * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; - */ - id?: NodeExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetDynamicNodeWorkflowRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDynamicNodeWorkflowRequest { - return new GetDynamicNodeWorkflowRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDynamicNodeWorkflowRequest { - return new GetDynamicNodeWorkflowRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDynamicNodeWorkflowRequest { - return new GetDynamicNodeWorkflowRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetDynamicNodeWorkflowRequest | PlainMessage | undefined, b: GetDynamicNodeWorkflowRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDynamicNodeWorkflowRequest, a, b); - } -} - -/** - * @generated from message flyteidl.admin.DynamicNodeWorkflowResponse - */ -export class DynamicNodeWorkflowResponse extends Message { - /** - * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - compiledWorkflow?: CompiledWorkflowClosure; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.DynamicNodeWorkflowResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DynamicNodeWorkflowResponse { - return new DynamicNodeWorkflowResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DynamicNodeWorkflowResponse { - return new DynamicNodeWorkflowResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DynamicNodeWorkflowResponse { - return new DynamicNodeWorkflowResponse().fromJsonString(jsonString, options); - } - - static equals(a: DynamicNodeWorkflowResponse | PlainMessage | undefined, b: DynamicNodeWorkflowResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(DynamicNodeWorkflowResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts deleted file mode 100644 index ff8e3527da..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts +++ /dev/null @@ -1,80 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/notification.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Represents the Email object that is sent to a publisher/subscriber - * to forward the notification. - * Note: This is internal to Admin and doesn't need to be exposed to other components. - * - * @generated from message flyteidl.admin.EmailMessage - */ -export class EmailMessage extends Message { - /** - * The list of email addresses to receive an email with the content populated in the other fields. - * Currently, each email recipient will receive its own email. - * This populates the TO field. - * - * @generated from field: repeated string recipients_email = 1; - */ - recipientsEmail: string[] = []; - - /** - * The email of the sender. - * This populates the FROM field. - * - * @generated from field: string sender_email = 2; - */ - senderEmail = ""; - - /** - * The content of the subject line. - * This populates the SUBJECT field. - * - * @generated from field: string subject_line = 3; - */ - subjectLine = ""; - - /** - * The content of the email body. - * This populates the BODY field. - * - * @generated from field: string body = 4; - */ - body = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.EmailMessage"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "subject_line", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EmailMessage { - return new EmailMessage().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EmailMessage { - return new EmailMessage().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EmailMessage { - return new EmailMessage().fromJsonString(jsonString, options); - } - - static equals(a: EmailMessage | PlainMessage | undefined, b: EmailMessage | PlainMessage | undefined): boolean { - return proto3.util.equals(EmailMessage, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts deleted file mode 100644 index 8fc85a0874..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts +++ /dev/null @@ -1,333 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/project_attributes.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { MatchableResource, MatchingAttributes } from "./matchable_resource_pb.js"; - -/** - * Defines a set of custom matching attributes at the project level. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectAttributes - */ -export class ProjectAttributes extends Message { - /** - * Unique project id for which this set of attributes will be applied. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * @generated from field: flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - matchingAttributes?: MatchingAttributes; - - /** - * Optional, org key applied to the project. - * - * @generated from field: string org = 3; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "matching_attributes", kind: "message", T: MatchingAttributes }, - { no: 3, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributes { - return new ProjectAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributes { - return new ProjectAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributes { - return new ProjectAttributes().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributes | PlainMessage | undefined, b: ProjectAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributes, a, b); - } -} - -/** - * Sets custom attributes for a project - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectAttributesUpdateRequest - */ -export class ProjectAttributesUpdateRequest extends Message { - /** - * +required - * - * @generated from field: flyteidl.admin.ProjectAttributes attributes = 1; - */ - attributes?: ProjectAttributes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributesUpdateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: ProjectAttributes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesUpdateRequest { - return new ProjectAttributesUpdateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesUpdateRequest { - return new ProjectAttributesUpdateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesUpdateRequest { - return new ProjectAttributesUpdateRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributesUpdateRequest | PlainMessage | undefined, b: ProjectAttributesUpdateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributesUpdateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.ProjectAttributesUpdateResponse - */ -export class ProjectAttributesUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributesUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesUpdateResponse { - return new ProjectAttributesUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesUpdateResponse { - return new ProjectAttributesUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesUpdateResponse { - return new ProjectAttributesUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributesUpdateResponse | PlainMessage | undefined, b: ProjectAttributesUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributesUpdateResponse, a, b); - } -} - -/** - * Request to get an individual project level attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectAttributesGetRequest - */ -export class ProjectAttributesGetRequest extends Message { - /** - * Unique project id which this set of attributes references. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Which type of matchable attributes to return. - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 2; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org key applied to the project. - * - * @generated from field: string org = 3; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributesGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 3, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesGetRequest { - return new ProjectAttributesGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesGetRequest { - return new ProjectAttributesGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesGetRequest { - return new ProjectAttributesGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributesGetRequest | PlainMessage | undefined, b: ProjectAttributesGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributesGetRequest, a, b); - } -} - -/** - * Response to get an individual project level attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectAttributesGetResponse - */ -export class ProjectAttributesGetResponse extends Message { - /** - * @generated from field: flyteidl.admin.ProjectAttributes attributes = 1; - */ - attributes?: ProjectAttributes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributesGetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: ProjectAttributes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesGetResponse { - return new ProjectAttributesGetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesGetResponse { - return new ProjectAttributesGetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesGetResponse { - return new ProjectAttributesGetResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributesGetResponse | PlainMessage | undefined, b: ProjectAttributesGetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributesGetResponse, a, b); - } -} - -/** - * Request to delete a set matchable project level attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectAttributesDeleteRequest - */ -export class ProjectAttributesDeleteRequest extends Message { - /** - * Unique project id which this set of attributes references. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Which type of matchable attributes to delete. - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 2; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org key applied to the project. - * - * @generated from field: string org = 3; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributesDeleteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 3, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesDeleteRequest { - return new ProjectAttributesDeleteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesDeleteRequest { - return new ProjectAttributesDeleteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesDeleteRequest { - return new ProjectAttributesDeleteRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributesDeleteRequest | PlainMessage | undefined, b: ProjectAttributesDeleteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributesDeleteRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.ProjectAttributesDeleteResponse - */ -export class ProjectAttributesDeleteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectAttributesDeleteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesDeleteResponse { - return new ProjectAttributesDeleteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesDeleteResponse { - return new ProjectAttributesDeleteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesDeleteResponse { - return new ProjectAttributesDeleteResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectAttributesDeleteResponse | PlainMessage | undefined, b: ProjectAttributesDeleteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectAttributesDeleteResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts deleted file mode 100644 index ee43f17890..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts +++ /dev/null @@ -1,359 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/project_domain_attributes.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { MatchableResource, MatchingAttributes } from "./matchable_resource_pb.js"; - -/** - * Defines a set of custom matching attributes which defines resource defaults for a project and domain. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectDomainAttributes - */ -export class ProjectDomainAttributes extends Message { - /** - * Unique project id for which this set of attributes will be applied. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Unique domain id for which this set of attributes will be applied. - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * @generated from field: flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - matchingAttributes?: MatchingAttributes; - - /** - * Optional, org key applied to the attributes. - * - * @generated from field: string org = 4; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "matching_attributes", kind: "message", T: MatchingAttributes }, - { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributes { - return new ProjectDomainAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributes { - return new ProjectDomainAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributes { - return new ProjectDomainAttributes().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributes | PlainMessage | undefined, b: ProjectDomainAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributes, a, b); - } -} - -/** - * Sets custom attributes for a project-domain combination. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectDomainAttributesUpdateRequest - */ -export class ProjectDomainAttributesUpdateRequest extends Message { - /** - * +required - * - * @generated from field: flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - attributes?: ProjectDomainAttributes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributesUpdateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: ProjectDomainAttributes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesUpdateRequest { - return new ProjectDomainAttributesUpdateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesUpdateRequest { - return new ProjectDomainAttributesUpdateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesUpdateRequest { - return new ProjectDomainAttributesUpdateRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributesUpdateRequest | PlainMessage | undefined, b: ProjectDomainAttributesUpdateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributesUpdateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.ProjectDomainAttributesUpdateResponse - */ -export class ProjectDomainAttributesUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributesUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesUpdateResponse { - return new ProjectDomainAttributesUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesUpdateResponse { - return new ProjectDomainAttributesUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesUpdateResponse { - return new ProjectDomainAttributesUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributesUpdateResponse | PlainMessage | undefined, b: ProjectDomainAttributesUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributesUpdateResponse, a, b); - } -} - -/** - * Request to get an individual project domain attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectDomainAttributesGetRequest - */ -export class ProjectDomainAttributesGetRequest extends Message { - /** - * Unique project id which this set of attributes references. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Unique domain id which this set of attributes references. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Which type of matchable attributes to return. - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 3; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org key applied to the attributes. - * - * @generated from field: string org = 4; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributesGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesGetRequest { - return new ProjectDomainAttributesGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesGetRequest { - return new ProjectDomainAttributesGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesGetRequest { - return new ProjectDomainAttributesGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributesGetRequest | PlainMessage | undefined, b: ProjectDomainAttributesGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributesGetRequest, a, b); - } -} - -/** - * Response to get an individual project domain attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectDomainAttributesGetResponse - */ -export class ProjectDomainAttributesGetResponse extends Message { - /** - * @generated from field: flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - attributes?: ProjectDomainAttributes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributesGetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: ProjectDomainAttributes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesGetResponse { - return new ProjectDomainAttributesGetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesGetResponse { - return new ProjectDomainAttributesGetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesGetResponse { - return new ProjectDomainAttributesGetResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributesGetResponse | PlainMessage | undefined, b: ProjectDomainAttributesGetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributesGetResponse, a, b); - } -} - -/** - * Request to delete a set matchable project domain attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.ProjectDomainAttributesDeleteRequest - */ -export class ProjectDomainAttributesDeleteRequest extends Message { - /** - * Unique project id which this set of attributes references. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Unique domain id which this set of attributes references. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Which type of matchable attributes to delete. - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 3; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org key applied to the attributes. - * - * @generated from field: string org = 4; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributesDeleteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesDeleteRequest { - return new ProjectDomainAttributesDeleteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesDeleteRequest { - return new ProjectDomainAttributesDeleteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesDeleteRequest { - return new ProjectDomainAttributesDeleteRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributesDeleteRequest | PlainMessage | undefined, b: ProjectDomainAttributesDeleteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributesDeleteRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.ProjectDomainAttributesDeleteResponse - */ -export class ProjectDomainAttributesDeleteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectDomainAttributesDeleteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesDeleteResponse { - return new ProjectDomainAttributesDeleteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesDeleteResponse { - return new ProjectDomainAttributesDeleteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesDeleteResponse { - return new ProjectDomainAttributesDeleteResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectDomainAttributesDeleteResponse | PlainMessage | undefined, b: ProjectDomainAttributesDeleteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectDomainAttributesDeleteResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts deleted file mode 100644 index 647a12c84e..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts +++ /dev/null @@ -1,414 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/project.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Labels, Sort } from "./common_pb.js"; - -/** - * Namespace within a project commonly used to differentiate between different service instances. - * e.g. "production", "development", etc. - * - * @generated from message flyteidl.admin.Domain - */ -export class Domain extends Message { - /** - * Globally unique domain name. - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * Display name. - * - * @generated from field: string name = 2; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Domain"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Domain { - return new Domain().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Domain { - return new Domain().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Domain { - return new Domain().fromJsonString(jsonString, options); - } - - static equals(a: Domain | PlainMessage | undefined, b: Domain | PlainMessage | undefined): boolean { - return proto3.util.equals(Domain, a, b); - } -} - -/** - * Top-level namespace used to classify different entities like workflows and executions. - * - * @generated from message flyteidl.admin.Project - */ -export class Project extends Message { - /** - * Globally unique project name. - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * Display name. - * - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: repeated flyteidl.admin.Domain domains = 3; - */ - domains: Domain[] = []; - - /** - * @generated from field: string description = 4; - */ - description = ""; - - /** - * Leverage Labels from flyteidl.admin.common.proto to - * tag projects with ownership information. - * - * @generated from field: flyteidl.admin.Labels labels = 5; - */ - labels?: Labels; - - /** - * @generated from field: flyteidl.admin.Project.ProjectState state = 6; - */ - state = Project_ProjectState.ACTIVE; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 7; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Project"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "domains", kind: "message", T: Domain, repeated: true }, - { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "labels", kind: "message", T: Labels }, - { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(Project_ProjectState) }, - { no: 7, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Project { - return new Project().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Project { - return new Project().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Project { - return new Project().fromJsonString(jsonString, options); - } - - static equals(a: Project | PlainMessage | undefined, b: Project | PlainMessage | undefined): boolean { - return proto3.util.equals(Project, a, b); - } -} - -/** - * The state of the project is used to control its visibility in the UI and validity. - * - * @generated from enum flyteidl.admin.Project.ProjectState - */ -export enum Project_ProjectState { - /** - * By default, all projects are considered active. - * - * @generated from enum value: ACTIVE = 0; - */ - ACTIVE = 0, - - /** - * Archived projects are no longer visible in the UI and no longer valid. - * - * @generated from enum value: ARCHIVED = 1; - */ - ARCHIVED = 1, - - /** - * System generated projects that aren't explicitly created or managed by a user. - * - * @generated from enum value: SYSTEM_GENERATED = 2; - */ - SYSTEM_GENERATED = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(Project_ProjectState) -proto3.util.setEnumType(Project_ProjectState, "flyteidl.admin.Project.ProjectState", [ - { no: 0, name: "ACTIVE" }, - { no: 1, name: "ARCHIVED" }, - { no: 2, name: "SYSTEM_GENERATED" }, -]); - -/** - * Represents a list of projects. - * See :ref:`ref_flyteidl.admin.Project` for more details - * - * @generated from message flyteidl.admin.Projects - */ -export class Projects extends Message { - /** - * @generated from field: repeated flyteidl.admin.Project projects = 1; - */ - projects: Project[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Projects"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "projects", kind: "message", T: Project, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Projects { - return new Projects().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Projects { - return new Projects().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Projects { - return new Projects().fromJsonString(jsonString, options); - } - - static equals(a: Projects | PlainMessage | undefined, b: Projects | PlainMessage | undefined): boolean { - return proto3.util.equals(Projects, a, b); - } -} - -/** - * Request to retrieve a list of projects matching specified filters. - * See :ref:`ref_flyteidl.admin.Project` for more details - * - * @generated from message flyteidl.admin.ProjectListRequest - */ -export class ProjectListRequest extends Message { - /** - * Indicates the number of projects to be returned. - * +required - * - * @generated from field: uint32 limit = 1; - */ - limit = 0; - - /** - * In the case of multiple pages of results, this server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 2; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * More info on constructing filters : - * +optional - * - * @generated from field: string filters = 3; - */ - filters = ""; - - /** - * Sort ordering. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 4; - */ - sortBy?: Sort; - - /** - * Optional, org filter applied to list project requests. - * - * @generated from field: string org = 5; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sort_by", kind: "message", T: Sort }, - { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectListRequest { - return new ProjectListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectListRequest { - return new ProjectListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectListRequest { - return new ProjectListRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectListRequest | PlainMessage | undefined, b: ProjectListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectListRequest, a, b); - } -} - -/** - * Adds a new user-project within the Flyte deployment. - * See :ref:`ref_flyteidl.admin.Project` for more details - * - * @generated from message flyteidl.admin.ProjectRegisterRequest - */ -export class ProjectRegisterRequest extends Message { - /** - * +required - * - * @generated from field: flyteidl.admin.Project project = 1; - */ - project?: Project; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectRegisterRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "message", T: Project }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectRegisterRequest { - return new ProjectRegisterRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectRegisterRequest { - return new ProjectRegisterRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectRegisterRequest { - return new ProjectRegisterRequest().fromJsonString(jsonString, options); - } - - static equals(a: ProjectRegisterRequest | PlainMessage | undefined, b: ProjectRegisterRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectRegisterRequest, a, b); - } -} - -/** - * Purposefully empty, may be updated in the future. - * - * @generated from message flyteidl.admin.ProjectRegisterResponse - */ -export class ProjectRegisterResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectRegisterResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectRegisterResponse { - return new ProjectRegisterResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectRegisterResponse { - return new ProjectRegisterResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectRegisterResponse { - return new ProjectRegisterResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectRegisterResponse | PlainMessage | undefined, b: ProjectRegisterResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectRegisterResponse, a, b); - } -} - -/** - * Purposefully empty, may be updated in the future. - * - * @generated from message flyteidl.admin.ProjectUpdateResponse - */ -export class ProjectUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.ProjectUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ProjectUpdateResponse { - return new ProjectUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ProjectUpdateResponse { - return new ProjectUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ProjectUpdateResponse { - return new ProjectUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: ProjectUpdateResponse | PlainMessage | undefined, b: ProjectUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ProjectUpdateResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts deleted file mode 100644 index b691123586..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts +++ /dev/null @@ -1,204 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/schedule.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Represents a frequency at which to run a schedule. - * - * @generated from enum flyteidl.admin.FixedRateUnit - */ -export enum FixedRateUnit { - /** - * @generated from enum value: MINUTE = 0; - */ - MINUTE = 0, - - /** - * @generated from enum value: HOUR = 1; - */ - HOUR = 1, - - /** - * @generated from enum value: DAY = 2; - */ - DAY = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(FixedRateUnit) -proto3.util.setEnumType(FixedRateUnit, "flyteidl.admin.FixedRateUnit", [ - { no: 0, name: "MINUTE" }, - { no: 1, name: "HOUR" }, - { no: 2, name: "DAY" }, -]); - -/** - * Option for schedules run at a certain frequency e.g. every 2 minutes. - * - * @generated from message flyteidl.admin.FixedRate - */ -export class FixedRate extends Message { - /** - * @generated from field: uint32 value = 1; - */ - value = 0; - - /** - * @generated from field: flyteidl.admin.FixedRateUnit unit = 2; - */ - unit = FixedRateUnit.MINUTE; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.FixedRate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "unit", kind: "enum", T: proto3.getEnumType(FixedRateUnit) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FixedRate { - return new FixedRate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FixedRate { - return new FixedRate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FixedRate { - return new FixedRate().fromJsonString(jsonString, options); - } - - static equals(a: FixedRate | PlainMessage | undefined, b: FixedRate | PlainMessage | undefined): boolean { - return proto3.util.equals(FixedRate, a, b); - } -} - -/** - * Options for schedules to run according to a cron expression. - * - * @generated from message flyteidl.admin.CronSchedule - */ -export class CronSchedule extends Message { - /** - * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; - * Also supports nonstandard predefined scheduling definitions - * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions - * except @reboot - * - * @generated from field: string schedule = 1; - */ - schedule = ""; - - /** - * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations - * - * @generated from field: string offset = 2; - */ - offset = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.CronSchedule"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "schedule", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "offset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CronSchedule { - return new CronSchedule().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CronSchedule { - return new CronSchedule().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CronSchedule { - return new CronSchedule().fromJsonString(jsonString, options); - } - - static equals(a: CronSchedule | PlainMessage | undefined, b: CronSchedule | PlainMessage | undefined): boolean { - return proto3.util.equals(CronSchedule, a, b); - } -} - -/** - * Defines complete set of information required to trigger an execution on a schedule. - * - * @generated from message flyteidl.admin.Schedule - */ -export class Schedule extends Message { - /** - * @generated from oneof flyteidl.admin.Schedule.ScheduleExpression - */ - ScheduleExpression: { - /** - * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year - * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * - * - * @generated from field: string cron_expression = 1 [deprecated = true]; - * @deprecated - */ - value: string; - case: "cronExpression"; - } | { - /** - * @generated from field: flyteidl.admin.FixedRate rate = 2; - */ - value: FixedRate; - case: "rate"; - } | { - /** - * @generated from field: flyteidl.admin.CronSchedule cron_schedule = 4; - */ - value: CronSchedule; - case: "cronSchedule"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. - * - * @generated from field: string kickoff_time_input_arg = 3; - */ - kickoffTimeInputArg = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Schedule"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cron_expression", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "ScheduleExpression" }, - { no: 2, name: "rate", kind: "message", T: FixedRate, oneof: "ScheduleExpression" }, - { no: 4, name: "cron_schedule", kind: "message", T: CronSchedule, oneof: "ScheduleExpression" }, - { no: 3, name: "kickoff_time_input_arg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Schedule { - return new Schedule().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Schedule { - return new Schedule().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Schedule { - return new Schedule().fromJsonString(jsonString, options); - } - - static equals(a: Schedule | PlainMessage | undefined, b: Schedule | PlainMessage | undefined): boolean { - return proto3.util.equals(Schedule, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts deleted file mode 100644 index 6bb89c82b5..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts +++ /dev/null @@ -1,339 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/signal.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { SignalIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; -import { LiteralType } from "../core/types_pb.js"; -import { Sort } from "./common_pb.js"; -import { Literal } from "../core/literals_pb.js"; - -/** - * SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. - * See :ref:`ref_flyteidl.admin.Signal` for more details - * - * @generated from message flyteidl.admin.SignalGetOrCreateRequest - */ -export class SignalGetOrCreateRequest extends Message { - /** - * A unique identifier for the requested signal. - * - * @generated from field: flyteidl.core.SignalIdentifier id = 1; - */ - id?: SignalIdentifier; - - /** - * A type denoting the required value type for this signal. - * - * @generated from field: flyteidl.core.LiteralType type = 2; - */ - type?: LiteralType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SignalGetOrCreateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: SignalIdentifier }, - { no: 2, name: "type", kind: "message", T: LiteralType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalGetOrCreateRequest { - return new SignalGetOrCreateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalGetOrCreateRequest { - return new SignalGetOrCreateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalGetOrCreateRequest { - return new SignalGetOrCreateRequest().fromJsonString(jsonString, options); - } - - static equals(a: SignalGetOrCreateRequest | PlainMessage | undefined, b: SignalGetOrCreateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalGetOrCreateRequest, a, b); - } -} - -/** - * SignalListRequest represents a request structure to retrieve a collection of signals. - * See :ref:`ref_flyteidl.admin.Signal` for more details - * - * @generated from message flyteidl.admin.SignalListRequest - */ -export class SignalListRequest extends Message { - /** - * Indicates the workflow execution to filter by. - * +required - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - workflowExecutionId?: WorkflowExecutionIdentifier; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 2; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 3; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * +optional - * - * @generated from field: string filters = 4; - */ - filters = ""; - - /** - * Sort ordering. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SignalListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workflow_execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalListRequest { - return new SignalListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalListRequest { - return new SignalListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalListRequest { - return new SignalListRequest().fromJsonString(jsonString, options); - } - - static equals(a: SignalListRequest | PlainMessage | undefined, b: SignalListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalListRequest, a, b); - } -} - -/** - * SignalList represents collection of signals along with the token of the last result. - * See :ref:`ref_flyteidl.admin.Signal` for more details - * - * @generated from message flyteidl.admin.SignalList - */ -export class SignalList extends Message { - /** - * A list of signals matching the input filters. - * - * @generated from field: repeated flyteidl.admin.Signal signals = 1; - */ - signals: Signal[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SignalList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signals", kind: "message", T: Signal, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalList { - return new SignalList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalList { - return new SignalList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalList { - return new SignalList().fromJsonString(jsonString, options); - } - - static equals(a: SignalList | PlainMessage | undefined, b: SignalList | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalList, a, b); - } -} - -/** - * SignalSetRequest represents a request structure to set the value on a signal. Setting a signal - * effetively satisfies the signal condition within a Flyte workflow. - * See :ref:`ref_flyteidl.admin.Signal` for more details - * - * @generated from message flyteidl.admin.SignalSetRequest - */ -export class SignalSetRequest extends Message { - /** - * A unique identifier for the requested signal. - * - * @generated from field: flyteidl.core.SignalIdentifier id = 1; - */ - id?: SignalIdentifier; - - /** - * The value of this signal, must match the defining signal type. - * - * @generated from field: flyteidl.core.Literal value = 2; - */ - value?: Literal; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SignalSetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: SignalIdentifier }, - { no: 2, name: "value", kind: "message", T: Literal }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalSetRequest { - return new SignalSetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalSetRequest { - return new SignalSetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalSetRequest { - return new SignalSetRequest().fromJsonString(jsonString, options); - } - - static equals(a: SignalSetRequest | PlainMessage | undefined, b: SignalSetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalSetRequest, a, b); - } -} - -/** - * SignalSetResponse represents a response structure if signal setting succeeds. - * - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.SignalSetResponse - */ -export class SignalSetResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.SignalSetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalSetResponse { - return new SignalSetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalSetResponse { - return new SignalSetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalSetResponse { - return new SignalSetResponse().fromJsonString(jsonString, options); - } - - static equals(a: SignalSetResponse | PlainMessage | undefined, b: SignalSetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalSetResponse, a, b); - } -} - -/** - * Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte - * signal. Signals may exist either without a set value (representing a signal request) or with a - * populated value (indicating the signal has been given). - * - * @generated from message flyteidl.admin.Signal - */ -export class Signal extends Message { - /** - * A unique identifier for the requested signal. - * - * @generated from field: flyteidl.core.SignalIdentifier id = 1; - */ - id?: SignalIdentifier; - - /** - * A type denoting the required value type for this signal. - * - * @generated from field: flyteidl.core.LiteralType type = 2; - */ - type?: LiteralType; - - /** - * The value of the signal. This is only available if the signal has been "set" and must match - * the defined the type. - * - * @generated from field: flyteidl.core.Literal value = 3; - */ - value?: Literal; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Signal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: SignalIdentifier }, - { no: 2, name: "type", kind: "message", T: LiteralType }, - { no: 3, name: "value", kind: "message", T: Literal }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Signal { - return new Signal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Signal { - return new Signal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Signal { - return new Signal().fromJsonString(jsonString, options); - } - - static equals(a: Signal | PlainMessage | undefined, b: Signal | PlainMessage | undefined): boolean { - return proto3.util.equals(Signal, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts deleted file mode 100644 index 539810b38b..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts +++ /dev/null @@ -1,592 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/task_execution.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; -import { NodeExecutionIdentifier, TaskExecutionIdentifier } from "../core/identifier_pb.js"; -import { FlyteURLs, Sort, UrlBlob } from "./common_pb.js"; -import { ExecutionError, TaskExecution_Phase, TaskLog } from "../core/execution_pb.js"; -import { LiteralMap } from "../core/literals_pb.js"; -import { TaskExecutionMetadata } from "../event/event_pb.js"; - -/** - * A message used to fetch a single task execution entity. - * See :ref:`ref_flyteidl.admin.TaskExecution` for more details - * - * @generated from message flyteidl.admin.TaskExecutionGetRequest - */ -export class TaskExecutionGetRequest extends Message { - /** - * Unique identifier for the task execution. - * +required - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; - */ - id?: TaskExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionGetRequest { - return new TaskExecutionGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionGetRequest { - return new TaskExecutionGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionGetRequest { - return new TaskExecutionGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionGetRequest | PlainMessage | undefined, b: TaskExecutionGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionGetRequest, a, b); - } -} - -/** - * Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. - * See :ref:`ref_flyteidl.admin.TaskExecution` for more details - * - * @generated from message flyteidl.admin.TaskExecutionListRequest - */ -export class TaskExecutionListRequest extends Message { - /** - * Indicates the node execution to filter by. - * +required - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - nodeExecutionId?: NodeExecutionIdentifier; - - /** - * Indicates the number of resources to be returned. - * +required - * - * @generated from field: uint32 limit = 2; - */ - limit = 0; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. - * +optional - * - * @generated from field: string token = 3; - */ - token = ""; - - /** - * Indicates a list of filters passed as string. - * More info on constructing filters : - * +optional - * - * @generated from field: string filters = 4; - */ - filters = ""; - - /** - * Sort ordering for returned list. - * +optional - * - * @generated from field: flyteidl.admin.Sort sort_by = 5; - */ - sortBy?: Sort; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionListRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "node_execution_id", kind: "message", T: NodeExecutionIdentifier }, - { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "sort_by", kind: "message", T: Sort }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionListRequest { - return new TaskExecutionListRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionListRequest { - return new TaskExecutionListRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionListRequest { - return new TaskExecutionListRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionListRequest | PlainMessage | undefined, b: TaskExecutionListRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionListRequest, a, b); - } -} - -/** - * Encapsulates all details for a single task execution entity. - * A task execution represents an instantiated task, including all inputs and additional - * metadata as well as computed results included state, outputs, and duration-based attributes. - * - * @generated from message flyteidl.admin.TaskExecution - */ -export class TaskExecution extends Message { - /** - * Unique identifier for the task execution. - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; - */ - id?: TaskExecutionIdentifier; - - /** - * Path to remote data store where input blob is stored. - * - * @generated from field: string input_uri = 2; - */ - inputUri = ""; - - /** - * Task execution details and results. - * - * @generated from field: flyteidl.admin.TaskExecutionClosure closure = 3; - */ - closure?: TaskExecutionClosure; - - /** - * Whether this task spawned nodes. - * - * @generated from field: bool is_parent = 4; - */ - isParent = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, - { no: 2, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "closure", kind: "message", T: TaskExecutionClosure }, - { no: 4, name: "is_parent", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecution { - return new TaskExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecution { - return new TaskExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecution { - return new TaskExecution().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecution | PlainMessage | undefined, b: TaskExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecution, a, b); - } -} - -/** - * Response structure for a query to list of task execution entities. - * See :ref:`ref_flyteidl.admin.TaskExecution` for more details - * - * @generated from message flyteidl.admin.TaskExecutionList - */ -export class TaskExecutionList extends Message { - /** - * @generated from field: repeated flyteidl.admin.TaskExecution task_executions = 1; - */ - taskExecutions: TaskExecution[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_executions", kind: "message", T: TaskExecution, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionList { - return new TaskExecutionList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionList { - return new TaskExecutionList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionList { - return new TaskExecutionList().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionList | PlainMessage | undefined, b: TaskExecutionList | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionList, a, b); - } -} - -/** - * Container for task execution details and results. - * - * @generated from message flyteidl.admin.TaskExecutionClosure - */ -export class TaskExecutionClosure extends Message { - /** - * @generated from oneof flyteidl.admin.TaskExecutionClosure.output_result - */ - outputResult: { - /** - * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). - * DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - * - * @generated from field: string output_uri = 1 [deprecated = true]; - * @deprecated - */ - value: string; - case: "outputUri"; - } | { - /** - * Error information for the task execution. Populated if the execution failed. - * - * @generated from field: flyteidl.core.ExecutionError error = 2; - */ - value: ExecutionError; - case: "error"; - } | { - /** - * Raw output data produced by this task execution. - * DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - * - * @generated from field: flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - * @deprecated - */ - value: LiteralMap; - case: "outputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * The last recorded phase for this task execution. - * - * @generated from field: flyteidl.core.TaskExecution.Phase phase = 3; - */ - phase = TaskExecution_Phase.UNDEFINED; - - /** - * Detailed log information output by the task execution. - * - * @generated from field: repeated flyteidl.core.TaskLog logs = 4; - */ - logs: TaskLog[] = []; - - /** - * Time at which the task execution began running. - * - * @generated from field: google.protobuf.Timestamp started_at = 5; - */ - startedAt?: Timestamp; - - /** - * The amount of time the task execution spent running. - * - * @generated from field: google.protobuf.Duration duration = 6; - */ - duration?: Duration; - - /** - * Time at which the task execution was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 7; - */ - createdAt?: Timestamp; - - /** - * Time at which the task execution was last updated. - * - * @generated from field: google.protobuf.Timestamp updated_at = 8; - */ - updatedAt?: Timestamp; - - /** - * Custom data specific to the task plugin. - * - * @generated from field: google.protobuf.Struct custom_info = 9; - */ - customInfo?: Struct; - - /** - * If there is an explanation for the most recent phase transition, the reason will capture it. - * - * @generated from field: string reason = 10; - */ - reason = ""; - - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string task_type = 11; - */ - taskType = ""; - - /** - * Metadata around how a task was executed. - * - * @generated from field: flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - metadata?: TaskExecutionMetadata; - - /** - * The event version is used to indicate versioned changes in how data is maintained using this - * proto message. For example, event_verison > 0 means that maps tasks logs use the - * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - * in this message. - * - * @generated from field: int32 event_version = 17; - */ - eventVersion = 0; - - /** - * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason - * as previously done, is much more valuable in visualizing and understanding historical evaluations. - * - * @generated from field: repeated flyteidl.admin.Reason reasons = 18; - */ - reasons: Reason[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, - { no: 2, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, - { no: 12, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, - { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, - { no: 4, name: "logs", kind: "message", T: TaskLog, repeated: true }, - { no: 5, name: "started_at", kind: "message", T: Timestamp }, - { no: 6, name: "duration", kind: "message", T: Duration }, - { no: 7, name: "created_at", kind: "message", T: Timestamp }, - { no: 8, name: "updated_at", kind: "message", T: Timestamp }, - { no: 9, name: "custom_info", kind: "message", T: Struct }, - { no: 10, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 11, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "metadata", kind: "message", T: TaskExecutionMetadata }, - { no: 17, name: "event_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 18, name: "reasons", kind: "message", T: Reason, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionClosure { - return new TaskExecutionClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionClosure { - return new TaskExecutionClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionClosure { - return new TaskExecutionClosure().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionClosure | PlainMessage | undefined, b: TaskExecutionClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionClosure, a, b); - } -} - -/** - * Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. - * - * @generated from message flyteidl.admin.Reason - */ -export class Reason extends Message { - /** - * occurred_at is the timestamp indicating the instant that this reason happened. - * - * @generated from field: google.protobuf.Timestamp occurred_at = 1; - */ - occurredAt?: Timestamp; - - /** - * message is the explanation for the most recent phase transition or status update. - * - * @generated from field: string message = 2; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Reason"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "occurred_at", kind: "message", T: Timestamp }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Reason { - return new Reason().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Reason { - return new Reason().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Reason { - return new Reason().fromJsonString(jsonString, options); - } - - static equals(a: Reason | PlainMessage | undefined, b: Reason | PlainMessage | undefined): boolean { - return proto3.util.equals(Reason, a, b); - } -} - -/** - * Request structure to fetch inputs and output for a task execution. - * By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` - * - * @generated from message flyteidl.admin.TaskExecutionGetDataRequest - */ -export class TaskExecutionGetDataRequest extends Message { - /** - * The identifier of the task execution for which to fetch inputs and outputs. - * +required - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; - */ - id?: TaskExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionGetDataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionGetDataRequest { - return new TaskExecutionGetDataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionGetDataRequest { - return new TaskExecutionGetDataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionGetDataRequest { - return new TaskExecutionGetDataRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionGetDataRequest | PlainMessage | undefined, b: TaskExecutionGetDataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionGetDataRequest, a, b); - } -} - -/** - * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. - * - * @generated from message flyteidl.admin.TaskExecutionGetDataResponse - */ -export class TaskExecutionGetDataResponse extends Message { - /** - * Signed url to fetch a core.LiteralMap of task execution inputs. - * Deprecated: Please use full_inputs instead. - * - * @generated from field: flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - * @deprecated - */ - inputs?: UrlBlob; - - /** - * Signed url to fetch a core.LiteralMap of task execution outputs. - * Deprecated: Please use full_outputs instead. - * - * @generated from field: flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - * @deprecated - */ - outputs?: UrlBlob; - - /** - * Full_inputs will only be populated if they are under a configured size threshold. - * - * @generated from field: flyteidl.core.LiteralMap full_inputs = 3; - */ - fullInputs?: LiteralMap; - - /** - * Full_outputs will only be populated if they are under a configured size threshold. - * - * @generated from field: flyteidl.core.LiteralMap full_outputs = 4; - */ - fullOutputs?: LiteralMap; - - /** - * flyte tiny url to fetch a core.LiteralMap of task execution's IO - * Deck will be empty for task - * - * @generated from field: flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - flyteUrls?: FlyteURLs; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskExecutionGetDataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "message", T: UrlBlob }, - { no: 2, name: "outputs", kind: "message", T: UrlBlob }, - { no: 3, name: "full_inputs", kind: "message", T: LiteralMap }, - { no: 4, name: "full_outputs", kind: "message", T: LiteralMap }, - { no: 5, name: "flyte_urls", kind: "message", T: FlyteURLs }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionGetDataResponse { - return new TaskExecutionGetDataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionGetDataResponse { - return new TaskExecutionGetDataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionGetDataResponse { - return new TaskExecutionGetDataResponse().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionGetDataResponse | PlainMessage | undefined, b: TaskExecutionGetDataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionGetDataResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts deleted file mode 100644 index f4b22f068f..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts +++ /dev/null @@ -1,308 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/task.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Identifier } from "../core/identifier_pb.js"; -import { TaskTemplate } from "../core/tasks_pb.js"; -import { DescriptionEntity } from "./description_entity_pb.js"; -import { CompiledTask } from "../core/compiler_pb.js"; - -/** - * Represents a request structure to create a revision of a task. - * See :ref:`ref_flyteidl.admin.Task` for more details - * - * @generated from message flyteidl.admin.TaskCreateRequest - */ -export class TaskCreateRequest extends Message { - /** - * id represents the unique identifier of the task. - * +required - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * Represents the specification for task. - * +required - * - * @generated from field: flyteidl.admin.TaskSpec spec = 2; - */ - spec?: TaskSpec; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskCreateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "spec", kind: "message", T: TaskSpec }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateRequest { - return new TaskCreateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateRequest { - return new TaskCreateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskCreateRequest { - return new TaskCreateRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskCreateRequest | PlainMessage | undefined, b: TaskCreateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskCreateRequest, a, b); - } -} - -/** - * Represents a response structure if task creation succeeds. - * - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.TaskCreateResponse - */ -export class TaskCreateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskCreateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateResponse { - return new TaskCreateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateResponse { - return new TaskCreateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskCreateResponse { - return new TaskCreateResponse().fromJsonString(jsonString, options); - } - - static equals(a: TaskCreateResponse | PlainMessage | undefined, b: TaskCreateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskCreateResponse, a, b); - } -} - -/** - * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks - * arranged to process workflow inputs and produce a deterministic set of outputs. - * Tasks can come in many varieties tuned for specialized behavior. - * - * @generated from message flyteidl.admin.Task - */ -export class Task extends Message { - /** - * id represents the unique identifier of the task. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * closure encapsulates all the fields that maps to a compiled version of the task. - * - * @generated from field: flyteidl.admin.TaskClosure closure = 2; - */ - closure?: TaskClosure; - - /** - * One-liner overview of the entity. - * - * @generated from field: string short_description = 3; - */ - shortDescription = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Task"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "closure", kind: "message", T: TaskClosure }, - { no: 3, name: "short_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Task { - return new Task().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Task { - return new Task().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Task { - return new Task().fromJsonString(jsonString, options); - } - - static equals(a: Task | PlainMessage | undefined, b: Task | PlainMessage | undefined): boolean { - return proto3.util.equals(Task, a, b); - } -} - -/** - * Represents a list of tasks returned from the admin. - * See :ref:`ref_flyteidl.admin.Task` for more details - * - * @generated from message flyteidl.admin.TaskList - */ -export class TaskList extends Message { - /** - * A list of tasks returned based on the request. - * - * @generated from field: repeated flyteidl.admin.Task tasks = 1; - */ - tasks: Task[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tasks", kind: "message", T: Task, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskList { - return new TaskList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskList { - return new TaskList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskList { - return new TaskList().fromJsonString(jsonString, options); - } - - static equals(a: TaskList | PlainMessage | undefined, b: TaskList | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskList, a, b); - } -} - -/** - * Represents a structure that encapsulates the user-configured specification of the task. - * - * @generated from message flyteidl.admin.TaskSpec - */ -export class TaskSpec extends Message { - /** - * Template of the task that encapsulates all the metadata of the task. - * - * @generated from field: flyteidl.core.TaskTemplate template = 1; - */ - template?: TaskTemplate; - - /** - * Represents the specification for description entity. - * - * @generated from field: flyteidl.admin.DescriptionEntity description = 2; - */ - description?: DescriptionEntity; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "template", kind: "message", T: TaskTemplate }, - { no: 2, name: "description", kind: "message", T: DescriptionEntity }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskSpec { - return new TaskSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskSpec { - return new TaskSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskSpec { - return new TaskSpec().fromJsonString(jsonString, options); - } - - static equals(a: TaskSpec | PlainMessage | undefined, b: TaskSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskSpec, a, b); - } -} - -/** - * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data - * and task metadata. - * - * @generated from message flyteidl.admin.TaskClosure - */ -export class TaskClosure extends Message { - /** - * Represents the compiled representation of the task from the specification provided. - * - * @generated from field: flyteidl.core.CompiledTask compiled_task = 1; - */ - compiledTask?: CompiledTask; - - /** - * Time at which the task was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 2; - */ - createdAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "compiled_task", kind: "message", T: CompiledTask }, - { no: 2, name: "created_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskClosure { - return new TaskClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskClosure { - return new TaskClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskClosure { - return new TaskClosure().fromJsonString(jsonString, options); - } - - static equals(a: TaskClosure | PlainMessage | undefined, b: TaskClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskClosure, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts deleted file mode 100644 index 0069dc1aa8..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts +++ /dev/null @@ -1,140 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/version.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Response for the GetVersion API - * - * @generated from message flyteidl.admin.GetVersionResponse - */ -export class GetVersionResponse extends Message { - /** - * The control plane version information. FlyteAdmin and related components - * form the control plane of Flyte - * - * @generated from field: flyteidl.admin.Version control_plane_version = 1; - */ - controlPlaneVersion?: Version; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetVersionResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "control_plane_version", kind: "message", T: Version }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetVersionResponse { - return new GetVersionResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetVersionResponse { - return new GetVersionResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetVersionResponse { - return new GetVersionResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetVersionResponse | PlainMessage | undefined, b: GetVersionResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetVersionResponse, a, b); - } -} - -/** - * Provides Version information for a component - * - * @generated from message flyteidl.admin.Version - */ -export class Version extends Message { - /** - * Specifies the GIT sha of the build - * - * @generated from field: string Build = 1; - */ - Build = ""; - - /** - * Version for the build, should follow a semver - * - * @generated from field: string Version = 2; - */ - Version = ""; - - /** - * Build timestamp - * - * @generated from field: string BuildTime = 3; - */ - BuildTime = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Version"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "Build", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "Version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "BuildTime", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Version { - return new Version().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Version { - return new Version().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Version { - return new Version().fromJsonString(jsonString, options); - } - - static equals(a: Version | PlainMessage | undefined, b: Version | PlainMessage | undefined): boolean { - return proto3.util.equals(Version, a, b); - } -} - -/** - * Empty request for GetVersion - * - * @generated from message flyteidl.admin.GetVersionRequest - */ -export class GetVersionRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.GetVersionRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetVersionRequest { - return new GetVersionRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetVersionRequest { - return new GetVersionRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetVersionRequest { - return new GetVersionRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetVersionRequest | PlainMessage | undefined, b: GetVersionRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetVersionRequest, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts deleted file mode 100644 index 9f7e48d00b..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts +++ /dev/null @@ -1,382 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/workflow_attributes.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { MatchableResource, MatchingAttributes } from "./matchable_resource_pb.js"; - -/** - * Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.WorkflowAttributes - */ -export class WorkflowAttributes extends Message { - /** - * Unique project id for which this set of attributes will be applied. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Unique domain id for which this set of attributes will be applied. - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Workflow name for which this set of attributes will be applied. - * - * @generated from field: string workflow = 3; - */ - workflow = ""; - - /** - * @generated from field: flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - matchingAttributes?: MatchingAttributes; - - /** - * Optional, org key applied to the attributes. - * - * @generated from field: string org = 5; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributes"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "matching_attributes", kind: "message", T: MatchingAttributes }, - { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributes { - return new WorkflowAttributes().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributes { - return new WorkflowAttributes().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributes { - return new WorkflowAttributes().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributes | PlainMessage | undefined, b: WorkflowAttributes | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributes, a, b); - } -} - -/** - * Sets custom attributes for a project, domain and workflow combination. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.WorkflowAttributesUpdateRequest - */ -export class WorkflowAttributesUpdateRequest extends Message { - /** - * @generated from field: flyteidl.admin.WorkflowAttributes attributes = 1; - */ - attributes?: WorkflowAttributes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributesUpdateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: WorkflowAttributes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesUpdateRequest { - return new WorkflowAttributesUpdateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesUpdateRequest { - return new WorkflowAttributesUpdateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesUpdateRequest { - return new WorkflowAttributesUpdateRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributesUpdateRequest | PlainMessage | undefined, b: WorkflowAttributesUpdateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributesUpdateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.WorkflowAttributesUpdateResponse - */ -export class WorkflowAttributesUpdateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributesUpdateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesUpdateResponse { - return new WorkflowAttributesUpdateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesUpdateResponse { - return new WorkflowAttributesUpdateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesUpdateResponse { - return new WorkflowAttributesUpdateResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributesUpdateResponse | PlainMessage | undefined, b: WorkflowAttributesUpdateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributesUpdateResponse, a, b); - } -} - -/** - * Request to get an individual workflow attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.WorkflowAttributesGetRequest - */ -export class WorkflowAttributesGetRequest extends Message { - /** - * Unique project id which this set of attributes references. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Unique domain id which this set of attributes references. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Workflow name which this set of attributes references. - * +required - * - * @generated from field: string workflow = 3; - */ - workflow = ""; - - /** - * Which type of matchable attributes to return. - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 4; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org key applied to the attributes. - * - * @generated from field: string org = 5; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributesGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesGetRequest { - return new WorkflowAttributesGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesGetRequest { - return new WorkflowAttributesGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesGetRequest { - return new WorkflowAttributesGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributesGetRequest | PlainMessage | undefined, b: WorkflowAttributesGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributesGetRequest, a, b); - } -} - -/** - * Response to get an individual workflow attribute override. - * - * @generated from message flyteidl.admin.WorkflowAttributesGetResponse - */ -export class WorkflowAttributesGetResponse extends Message { - /** - * @generated from field: flyteidl.admin.WorkflowAttributes attributes = 1; - */ - attributes?: WorkflowAttributes; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributesGetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "attributes", kind: "message", T: WorkflowAttributes }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesGetResponse { - return new WorkflowAttributesGetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesGetResponse { - return new WorkflowAttributesGetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesGetResponse { - return new WorkflowAttributesGetResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributesGetResponse | PlainMessage | undefined, b: WorkflowAttributesGetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributesGetResponse, a, b); - } -} - -/** - * Request to delete a set matchable workflow attribute override. - * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` - * - * @generated from message flyteidl.admin.WorkflowAttributesDeleteRequest - */ -export class WorkflowAttributesDeleteRequest extends Message { - /** - * Unique project id which this set of attributes references. - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Unique domain id which this set of attributes references. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Workflow name which this set of attributes references. - * +required - * - * @generated from field: string workflow = 3; - */ - workflow = ""; - - /** - * Which type of matchable attributes to delete. - * +required - * - * @generated from field: flyteidl.admin.MatchableResource resource_type = 4; - */ - resourceType = MatchableResource.TASK_RESOURCE; - - /** - * Optional, org key applied to the attributes. - * - * @generated from field: string org = 5; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributesDeleteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, - { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesDeleteRequest { - return new WorkflowAttributesDeleteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesDeleteRequest { - return new WorkflowAttributesDeleteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesDeleteRequest { - return new WorkflowAttributesDeleteRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributesDeleteRequest | PlainMessage | undefined, b: WorkflowAttributesDeleteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributesDeleteRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.WorkflowAttributesDeleteResponse - */ -export class WorkflowAttributesDeleteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowAttributesDeleteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesDeleteResponse { - return new WorkflowAttributesDeleteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesDeleteResponse { - return new WorkflowAttributesDeleteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesDeleteResponse { - return new WorkflowAttributesDeleteResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowAttributesDeleteResponse | PlainMessage | undefined, b: WorkflowAttributesDeleteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowAttributesDeleteResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts deleted file mode 100644 index 4238ebce9d..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts +++ /dev/null @@ -1,445 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/admin/workflow.proto (package flyteidl.admin, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Identifier } from "../core/identifier_pb.js"; -import { WorkflowTemplate } from "../core/workflow_pb.js"; -import { DescriptionEntity } from "./description_entity_pb.js"; -import { CompiledWorkflowClosure } from "../core/compiler_pb.js"; - -/** - * Represents a request structure to create a revision of a workflow. - * See :ref:`ref_flyteidl.admin.Workflow` for more details - * - * @generated from message flyteidl.admin.WorkflowCreateRequest - */ -export class WorkflowCreateRequest extends Message { - /** - * id represents the unique identifier of the workflow. - * +required - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * Represents the specification for workflow. - * +required - * - * @generated from field: flyteidl.admin.WorkflowSpec spec = 2; - */ - spec?: WorkflowSpec; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowCreateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "spec", kind: "message", T: WorkflowSpec }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowCreateRequest { - return new WorkflowCreateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowCreateRequest { - return new WorkflowCreateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowCreateRequest { - return new WorkflowCreateRequest().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowCreateRequest | PlainMessage | undefined, b: WorkflowCreateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowCreateRequest, a, b); - } -} - -/** - * Purposefully empty, may be populated in the future. - * - * @generated from message flyteidl.admin.WorkflowCreateResponse - */ -export class WorkflowCreateResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowCreateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowCreateResponse { - return new WorkflowCreateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowCreateResponse { - return new WorkflowCreateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowCreateResponse { - return new WorkflowCreateResponse().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowCreateResponse | PlainMessage | undefined, b: WorkflowCreateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowCreateResponse, a, b); - } -} - -/** - * Represents the workflow structure stored in the Admin - * A workflow is created by ordering tasks and associating outputs to inputs - * in order to produce a directed-acyclic execution graph. - * - * @generated from message flyteidl.admin.Workflow - */ -export class Workflow extends Message { - /** - * id represents the unique identifier of the workflow. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * closure encapsulates all the fields that maps to a compiled version of the workflow. - * - * @generated from field: flyteidl.admin.WorkflowClosure closure = 2; - */ - closure?: WorkflowClosure; - - /** - * One-liner overview of the entity. - * - * @generated from field: string short_description = 3; - */ - shortDescription = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.Workflow"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "closure", kind: "message", T: WorkflowClosure }, - { no: 3, name: "short_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Workflow { - return new Workflow().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Workflow { - return new Workflow().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Workflow { - return new Workflow().fromJsonString(jsonString, options); - } - - static equals(a: Workflow | PlainMessage | undefined, b: Workflow | PlainMessage | undefined): boolean { - return proto3.util.equals(Workflow, a, b); - } -} - -/** - * Represents a list of workflows returned from the admin. - * See :ref:`ref_flyteidl.admin.Workflow` for more details - * - * @generated from message flyteidl.admin.WorkflowList - */ -export class WorkflowList extends Message { - /** - * A list of workflows returned based on the request. - * - * @generated from field: repeated flyteidl.admin.Workflow workflows = 1; - */ - workflows: Workflow[] = []; - - /** - * In the case of multiple pages of results, the server-provided token can be used to fetch the next page - * in a query. If there are no more results, this value will be empty. - * - * @generated from field: string token = 2; - */ - token = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workflows", kind: "message", T: Workflow, repeated: true }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowList { - return new WorkflowList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowList { - return new WorkflowList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowList { - return new WorkflowList().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowList | PlainMessage | undefined, b: WorkflowList | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowList, a, b); - } -} - -/** - * Represents a structure that encapsulates the specification of the workflow. - * - * @generated from message flyteidl.admin.WorkflowSpec - */ -export class WorkflowSpec extends Message { - /** - * Template of the task that encapsulates all the metadata of the workflow. - * - * @generated from field: flyteidl.core.WorkflowTemplate template = 1; - */ - template?: WorkflowTemplate; - - /** - * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the - * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out - * to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. - * - * @generated from field: repeated flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - subWorkflows: WorkflowTemplate[] = []; - - /** - * Represents the specification for description entity. - * - * @generated from field: flyteidl.admin.DescriptionEntity description = 3; - */ - description?: DescriptionEntity; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "template", kind: "message", T: WorkflowTemplate }, - { no: 2, name: "sub_workflows", kind: "message", T: WorkflowTemplate, repeated: true }, - { no: 3, name: "description", kind: "message", T: DescriptionEntity }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowSpec { - return new WorkflowSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowSpec { - return new WorkflowSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowSpec { - return new WorkflowSpec().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowSpec | PlainMessage | undefined, b: WorkflowSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowSpec, a, b); - } -} - -/** - * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. - * - * @generated from message flyteidl.admin.WorkflowClosure - */ -export class WorkflowClosure extends Message { - /** - * Represents the compiled representation of the workflow from the specification provided. - * - * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - compiledWorkflow?: CompiledWorkflowClosure; - - /** - * Time at which the workflow was created. - * - * @generated from field: google.protobuf.Timestamp created_at = 2; - */ - createdAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, - { no: 2, name: "created_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowClosure { - return new WorkflowClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowClosure { - return new WorkflowClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowClosure { - return new WorkflowClosure().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowClosure | PlainMessage | undefined, b: WorkflowClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowClosure, a, b); - } -} - -/** - * The workflow id is already used and the structure is different - * - * @generated from message flyteidl.admin.WorkflowErrorExistsDifferentStructure - */ -export class WorkflowErrorExistsDifferentStructure extends Message { - /** - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowErrorExistsDifferentStructure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowErrorExistsDifferentStructure { - return new WorkflowErrorExistsDifferentStructure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowErrorExistsDifferentStructure { - return new WorkflowErrorExistsDifferentStructure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowErrorExistsDifferentStructure { - return new WorkflowErrorExistsDifferentStructure().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowErrorExistsDifferentStructure | PlainMessage | undefined, b: WorkflowErrorExistsDifferentStructure | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowErrorExistsDifferentStructure, a, b); - } -} - -/** - * The workflow id is already used with an identical sctructure - * - * @generated from message flyteidl.admin.WorkflowErrorExistsIdenticalStructure - */ -export class WorkflowErrorExistsIdenticalStructure extends Message { - /** - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.WorkflowErrorExistsIdenticalStructure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowErrorExistsIdenticalStructure { - return new WorkflowErrorExistsIdenticalStructure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowErrorExistsIdenticalStructure { - return new WorkflowErrorExistsIdenticalStructure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowErrorExistsIdenticalStructure { - return new WorkflowErrorExistsIdenticalStructure().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowErrorExistsIdenticalStructure | PlainMessage | undefined, b: WorkflowErrorExistsIdenticalStructure | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowErrorExistsIdenticalStructure, a, b); - } -} - -/** - * When a CreateWorkflowRequest fails due to matching id - * - * @generated from message flyteidl.admin.CreateWorkflowFailureReason - */ -export class CreateWorkflowFailureReason extends Message { - /** - * @generated from oneof flyteidl.admin.CreateWorkflowFailureReason.reason - */ - reason: { - /** - * @generated from field: flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; - */ - value: WorkflowErrorExistsDifferentStructure; - case: "existsDifferentStructure"; - } | { - /** - * @generated from field: flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; - */ - value: WorkflowErrorExistsIdenticalStructure; - case: "existsIdenticalStructure"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.CreateWorkflowFailureReason"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "exists_different_structure", kind: "message", T: WorkflowErrorExistsDifferentStructure, oneof: "reason" }, - { no: 2, name: "exists_identical_structure", kind: "message", T: WorkflowErrorExistsIdenticalStructure, oneof: "reason" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateWorkflowFailureReason { - return new CreateWorkflowFailureReason().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateWorkflowFailureReason { - return new CreateWorkflowFailureReason().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateWorkflowFailureReason { - return new CreateWorkflowFailureReason().fromJsonString(jsonString, options); - } - - static equals(a: CreateWorkflowFailureReason | PlainMessage | undefined, b: CreateWorkflowFailureReason | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateWorkflowFailureReason, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts deleted file mode 100644 index 2e03e3916f..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts +++ /dev/null @@ -1,488 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/artifact_id.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; - -/** - * @generated from message flyteidl.core.ArtifactKey - */ -export class ArtifactKey extends Message { - /** - * Project and domain and suffix needs to be unique across a given artifact store. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * @generated from field: string name = 3; - */ - name = ""; - - /** - * @generated from field: string org = 4; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ArtifactKey"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactKey { - return new ArtifactKey().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactKey { - return new ArtifactKey().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactKey { - return new ArtifactKey().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactKey | PlainMessage | undefined, b: ArtifactKey | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactKey, a, b); - } -} - -/** - * Only valid for triggers - * - * @generated from message flyteidl.core.ArtifactBindingData - */ -export class ArtifactBindingData extends Message { - /** - * @generated from field: uint32 index = 1; - */ - index = 0; - - /** - * These two fields are only relevant in the partition value case - * - * @generated from oneof flyteidl.core.ArtifactBindingData.partition_data - */ - partitionData: { - /** - * @generated from field: string partition_key = 2; - */ - value: string; - case: "partitionKey"; - } | { - /** - * @generated from field: bool bind_to_time_partition = 3; - */ - value: boolean; - case: "bindToTimePartition"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * This is only relevant in the time partition case - * - * @generated from field: string transform = 4; - */ - transform = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ArtifactBindingData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "partition_key", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "partition_data" }, - { no: 3, name: "bind_to_time_partition", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "partition_data" }, - { no: 4, name: "transform", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactBindingData { - return new ArtifactBindingData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactBindingData { - return new ArtifactBindingData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactBindingData { - return new ArtifactBindingData().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactBindingData | PlainMessage | undefined, b: ArtifactBindingData | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactBindingData, a, b); - } -} - -/** - * @generated from message flyteidl.core.InputBindingData - */ -export class InputBindingData extends Message { - /** - * @generated from field: string var = 1; - */ - var = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.InputBindingData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): InputBindingData { - return new InputBindingData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): InputBindingData { - return new InputBindingData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): InputBindingData { - return new InputBindingData().fromJsonString(jsonString, options); - } - - static equals(a: InputBindingData | PlainMessage | undefined, b: InputBindingData | PlainMessage | undefined): boolean { - return proto3.util.equals(InputBindingData, a, b); - } -} - -/** - * @generated from message flyteidl.core.LabelValue - */ -export class LabelValue extends Message { - /** - * @generated from oneof flyteidl.core.LabelValue.value - */ - value: { - /** - * The string static value is for use in the Partitions object - * - * @generated from field: string static_value = 1; - */ - value: string; - case: "staticValue"; - } | { - /** - * The time value is for use in the TimePartition case - * - * @generated from field: google.protobuf.Timestamp time_value = 2; - */ - value: Timestamp; - case: "timeValue"; - } | { - /** - * @generated from field: flyteidl.core.ArtifactBindingData triggered_binding = 3; - */ - value: ArtifactBindingData; - case: "triggeredBinding"; - } | { - /** - * @generated from field: flyteidl.core.InputBindingData input_binding = 4; - */ - value: InputBindingData; - case: "inputBinding"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.LabelValue"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "static_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, - { no: 2, name: "time_value", kind: "message", T: Timestamp, oneof: "value" }, - { no: 3, name: "triggered_binding", kind: "message", T: ArtifactBindingData, oneof: "value" }, - { no: 4, name: "input_binding", kind: "message", T: InputBindingData, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LabelValue { - return new LabelValue().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LabelValue { - return new LabelValue().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LabelValue { - return new LabelValue().fromJsonString(jsonString, options); - } - - static equals(a: LabelValue | PlainMessage | undefined, b: LabelValue | PlainMessage | undefined): boolean { - return proto3.util.equals(LabelValue, a, b); - } -} - -/** - * @generated from message flyteidl.core.Partitions - */ -export class Partitions extends Message { - /** - * @generated from field: map value = 1; - */ - value: { [key: string]: LabelValue } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Partitions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: LabelValue} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Partitions { - return new Partitions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Partitions { - return new Partitions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Partitions { - return new Partitions().fromJsonString(jsonString, options); - } - - static equals(a: Partitions | PlainMessage | undefined, b: Partitions | PlainMessage | undefined): boolean { - return proto3.util.equals(Partitions, a, b); - } -} - -/** - * @generated from message flyteidl.core.TimePartition - */ -export class TimePartition extends Message { - /** - * @generated from field: flyteidl.core.LabelValue value = 1; - */ - value?: LabelValue; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TimePartition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "message", T: LabelValue }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TimePartition { - return new TimePartition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TimePartition { - return new TimePartition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TimePartition { - return new TimePartition().fromJsonString(jsonString, options); - } - - static equals(a: TimePartition | PlainMessage | undefined, b: TimePartition | PlainMessage | undefined): boolean { - return proto3.util.equals(TimePartition, a, b); - } -} - -/** - * @generated from message flyteidl.core.ArtifactID - */ -export class ArtifactID extends Message { - /** - * @generated from field: flyteidl.core.ArtifactKey artifact_key = 1; - */ - artifactKey?: ArtifactKey; - - /** - * @generated from field: string version = 2; - */ - version = ""; - - /** - * Think of a partition as a tag on an Artifact, except it's a key-value pair. - * Different partitions naturally have different versions (execution ids). - * - * @generated from field: flyteidl.core.Partitions partitions = 3; - */ - partitions?: Partitions; - - /** - * There is no such thing as an empty time partition - if it's not set, then there is no time partition. - * - * @generated from field: flyteidl.core.TimePartition time_partition = 4; - */ - timePartition?: TimePartition; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ArtifactID"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_key", kind: "message", T: ArtifactKey }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "partitions", kind: "message", T: Partitions }, - { no: 4, name: "time_partition", kind: "message", T: TimePartition }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactID { - return new ArtifactID().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactID { - return new ArtifactID().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactID { - return new ArtifactID().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactID | PlainMessage | undefined, b: ArtifactID | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactID, a, b); - } -} - -/** - * @generated from message flyteidl.core.ArtifactTag - */ -export class ArtifactTag extends Message { - /** - * @generated from field: flyteidl.core.ArtifactKey artifact_key = 1; - */ - artifactKey?: ArtifactKey; - - /** - * @generated from field: flyteidl.core.LabelValue value = 2; - */ - value?: LabelValue; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ArtifactTag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_key", kind: "message", T: ArtifactKey }, - { no: 2, name: "value", kind: "message", T: LabelValue }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactTag { - return new ArtifactTag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactTag { - return new ArtifactTag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactTag { - return new ArtifactTag().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactTag | PlainMessage | undefined, b: ArtifactTag | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactTag, a, b); - } -} - -/** - * Uniqueness constraints for Artifacts - * - project, domain, name, version, partitions - * Option 2 (tags are standalone, point to an individual artifact id): - * - project, domain, name, alias (points to one partition if partitioned) - * - project, domain, name, partition key, partition value - * - * @generated from message flyteidl.core.ArtifactQuery - */ -export class ArtifactQuery extends Message { - /** - * @generated from oneof flyteidl.core.ArtifactQuery.identifier - */ - identifier: { - /** - * @generated from field: flyteidl.core.ArtifactID artifact_id = 1; - */ - value: ArtifactID; - case: "artifactId"; - } | { - /** - * @generated from field: flyteidl.core.ArtifactTag artifact_tag = 2; - */ - value: ArtifactTag; - case: "artifactTag"; - } | { - /** - * @generated from field: string uri = 3; - */ - value: string; - case: "uri"; - } | { - /** - * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering - * artifacts, or a partition value derived from a triggering artifact. - * - * @generated from field: flyteidl.core.ArtifactBindingData binding = 4; - */ - value: ArtifactBindingData; - case: "binding"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ArtifactQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_id", kind: "message", T: ArtifactID, oneof: "identifier" }, - { no: 2, name: "artifact_tag", kind: "message", T: ArtifactTag, oneof: "identifier" }, - { no: 3, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identifier" }, - { no: 4, name: "binding", kind: "message", T: ArtifactBindingData, oneof: "identifier" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactQuery { - return new ArtifactQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactQuery { - return new ArtifactQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactQuery { - return new ArtifactQuery().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactQuery | PlainMessage | undefined, b: ArtifactQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactQuery, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts deleted file mode 100644 index dd3eab6c4f..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts +++ /dev/null @@ -1,276 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/catalog.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Identifier, TaskExecutionIdentifier } from "./identifier_pb.js"; - -/** - * Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future - * - * @generated from enum flyteidl.core.CatalogCacheStatus - */ -export enum CatalogCacheStatus { - /** - * Used to indicate that caching was disabled - * - * @generated from enum value: CACHE_DISABLED = 0; - */ - CACHE_DISABLED = 0, - - /** - * Used to indicate that the cache lookup resulted in no matches - * - * @generated from enum value: CACHE_MISS = 1; - */ - CACHE_MISS = 1, - - /** - * used to indicate that the associated artifact was a result of a previous execution - * - * @generated from enum value: CACHE_HIT = 2; - */ - CACHE_HIT = 2, - - /** - * used to indicate that the resultant artifact was added to the cache - * - * @generated from enum value: CACHE_POPULATED = 3; - */ - CACHE_POPULATED = 3, - - /** - * Used to indicate that cache lookup failed because of an error - * - * @generated from enum value: CACHE_LOOKUP_FAILURE = 4; - */ - CACHE_LOOKUP_FAILURE = 4, - - /** - * Used to indicate that cache lookup failed because of an error - * - * @generated from enum value: CACHE_PUT_FAILURE = 5; - */ - CACHE_PUT_FAILURE = 5, - - /** - * Used to indicate the cache lookup was skipped - * - * @generated from enum value: CACHE_SKIPPED = 6; - */ - CACHE_SKIPPED = 6, - - /** - * Used to indicate that the cache was evicted - * - * @generated from enum value: CACHE_EVICTED = 7; - */ - CACHE_EVICTED = 7, -} -// Retrieve enum metadata with: proto3.getEnumType(CatalogCacheStatus) -proto3.util.setEnumType(CatalogCacheStatus, "flyteidl.core.CatalogCacheStatus", [ - { no: 0, name: "CACHE_DISABLED" }, - { no: 1, name: "CACHE_MISS" }, - { no: 2, name: "CACHE_HIT" }, - { no: 3, name: "CACHE_POPULATED" }, - { no: 4, name: "CACHE_LOOKUP_FAILURE" }, - { no: 5, name: "CACHE_PUT_FAILURE" }, - { no: 6, name: "CACHE_SKIPPED" }, - { no: 7, name: "CACHE_EVICTED" }, -]); - -/** - * @generated from message flyteidl.core.CatalogArtifactTag - */ -export class CatalogArtifactTag extends Message { - /** - * Artifact ID is generated name - * - * @generated from field: string artifact_id = 1; - */ - artifactId = ""; - - /** - * Flyte computes the tag automatically, as the hash of the values - * - * @generated from field: string name = 2; - */ - name = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CatalogArtifactTag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CatalogArtifactTag { - return new CatalogArtifactTag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CatalogArtifactTag { - return new CatalogArtifactTag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CatalogArtifactTag { - return new CatalogArtifactTag().fromJsonString(jsonString, options); - } - - static equals(a: CatalogArtifactTag | PlainMessage | undefined, b: CatalogArtifactTag | PlainMessage | undefined): boolean { - return proto3.util.equals(CatalogArtifactTag, a, b); - } -} - -/** - * Catalog artifact information with specific metadata - * - * @generated from message flyteidl.core.CatalogMetadata - */ -export class CatalogMetadata extends Message { - /** - * Dataset ID in the catalog - * - * @generated from field: flyteidl.core.Identifier dataset_id = 1; - */ - datasetId?: Identifier; - - /** - * Artifact tag in the catalog - * - * @generated from field: flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - artifactTag?: CatalogArtifactTag; - - /** - * Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - * - * @generated from oneof flyteidl.core.CatalogMetadata.source_execution - */ - sourceExecution: { - /** - * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - value: TaskExecutionIdentifier; - case: "sourceTaskExecution"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CatalogMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset_id", kind: "message", T: Identifier }, - { no: 2, name: "artifact_tag", kind: "message", T: CatalogArtifactTag }, - { no: 3, name: "source_task_execution", kind: "message", T: TaskExecutionIdentifier, oneof: "source_execution" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CatalogMetadata { - return new CatalogMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CatalogMetadata { - return new CatalogMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CatalogMetadata { - return new CatalogMetadata().fromJsonString(jsonString, options); - } - - static equals(a: CatalogMetadata | PlainMessage | undefined, b: CatalogMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(CatalogMetadata, a, b); - } -} - -/** - * @generated from message flyteidl.core.CatalogReservation - */ -export class CatalogReservation extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CatalogReservation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CatalogReservation { - return new CatalogReservation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CatalogReservation { - return new CatalogReservation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CatalogReservation { - return new CatalogReservation().fromJsonString(jsonString, options); - } - - static equals(a: CatalogReservation | PlainMessage | undefined, b: CatalogReservation | PlainMessage | undefined): boolean { - return proto3.util.equals(CatalogReservation, a, b); - } -} - -/** - * Indicates the status of a catalog reservation operation. - * - * @generated from enum flyteidl.core.CatalogReservation.Status - */ -export enum CatalogReservation_Status { - /** - * Used to indicate that reservations are disabled - * - * @generated from enum value: RESERVATION_DISABLED = 0; - */ - RESERVATION_DISABLED = 0, - - /** - * Used to indicate that a reservation was successfully acquired or extended - * - * @generated from enum value: RESERVATION_ACQUIRED = 1; - */ - RESERVATION_ACQUIRED = 1, - - /** - * Used to indicate that an active reservation currently exists - * - * @generated from enum value: RESERVATION_EXISTS = 2; - */ - RESERVATION_EXISTS = 2, - - /** - * Used to indicate that the reservation has been successfully released - * - * @generated from enum value: RESERVATION_RELEASED = 3; - */ - RESERVATION_RELEASED = 3, - - /** - * Used to indicate that a reservation operation resulted in failure - * - * @generated from enum value: RESERVATION_FAILURE = 4; - */ - RESERVATION_FAILURE = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(CatalogReservation_Status) -proto3.util.setEnumType(CatalogReservation_Status, "flyteidl.core.CatalogReservation.Status", [ - { no: 0, name: "RESERVATION_DISABLED" }, - { no: 1, name: "RESERVATION_ACQUIRED" }, - { no: 2, name: "RESERVATION_EXISTS" }, - { no: 3, name: "RESERVATION_RELEASED" }, - { no: 4, name: "RESERVATION_FAILURE" }, -]); - diff --git a/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts deleted file mode 100644 index 7078e7451e..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts +++ /dev/null @@ -1,301 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/compiler.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { LaunchPlanTemplate, WorkflowTemplate } from "./workflow_pb.js"; -import { TaskTemplate } from "./tasks_pb.js"; - -/** - * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation - * step uses this created ConnectionSet - * - * @generated from message flyteidl.core.ConnectionSet - */ -export class ConnectionSet extends Message { - /** - * A list of all the node ids that are downstream from a given node id - * - * @generated from field: map downstream = 7; - */ - downstream: { [key: string]: ConnectionSet_IdList } = {}; - - /** - * A list of all the node ids, that are upstream of this node id - * - * @generated from field: map upstream = 8; - */ - upstream: { [key: string]: ConnectionSet_IdList } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ConnectionSet"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 7, name: "downstream", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ConnectionSet_IdList} }, - { no: 8, name: "upstream", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ConnectionSet_IdList} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionSet { - return new ConnectionSet().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionSet { - return new ConnectionSet().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectionSet { - return new ConnectionSet().fromJsonString(jsonString, options); - } - - static equals(a: ConnectionSet | PlainMessage | undefined, b: ConnectionSet | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectionSet, a, b); - } -} - -/** - * @generated from message flyteidl.core.ConnectionSet.IdList - */ -export class ConnectionSet_IdList extends Message { - /** - * @generated from field: repeated string ids = 1; - */ - ids: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ConnectionSet.IdList"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionSet_IdList { - return new ConnectionSet_IdList().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionSet_IdList { - return new ConnectionSet_IdList().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConnectionSet_IdList { - return new ConnectionSet_IdList().fromJsonString(jsonString, options); - } - - static equals(a: ConnectionSet_IdList | PlainMessage | undefined, b: ConnectionSet_IdList | PlainMessage | undefined): boolean { - return proto3.util.equals(ConnectionSet_IdList, a, b); - } -} - -/** - * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer - * - * @generated from message flyteidl.core.CompiledWorkflow - */ -export class CompiledWorkflow extends Message { - /** - * Completely contained Workflow Template - * - * @generated from field: flyteidl.core.WorkflowTemplate template = 1; - */ - template?: WorkflowTemplate; - - /** - * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. - * - * @generated from field: flyteidl.core.ConnectionSet connections = 2; - */ - connections?: ConnectionSet; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CompiledWorkflow"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "template", kind: "message", T: WorkflowTemplate }, - { no: 2, name: "connections", kind: "message", T: ConnectionSet }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompiledWorkflow { - return new CompiledWorkflow().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompiledWorkflow { - return new CompiledWorkflow().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompiledWorkflow { - return new CompiledWorkflow().fromJsonString(jsonString, options); - } - - static equals(a: CompiledWorkflow | PlainMessage | undefined, b: CompiledWorkflow | PlainMessage | undefined): boolean { - return proto3.util.equals(CompiledWorkflow, a, b); - } -} - -/** - * Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer - * - * @generated from message flyteidl.core.CompiledLaunchPlan - */ -export class CompiledLaunchPlan extends Message { - /** - * Completely contained LaunchPlan Template - * - * @generated from field: flyteidl.core.LaunchPlanTemplate template = 1; - */ - template?: LaunchPlanTemplate; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CompiledLaunchPlan"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "template", kind: "message", T: LaunchPlanTemplate }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompiledLaunchPlan { - return new CompiledLaunchPlan().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompiledLaunchPlan { - return new CompiledLaunchPlan().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompiledLaunchPlan { - return new CompiledLaunchPlan().fromJsonString(jsonString, options); - } - - static equals(a: CompiledLaunchPlan | PlainMessage | undefined, b: CompiledLaunchPlan | PlainMessage | undefined): boolean { - return proto3.util.equals(CompiledLaunchPlan, a, b); - } -} - -/** - * Output of the Compilation step. This object represent one Task. We store more metadata at this layer - * - * @generated from message flyteidl.core.CompiledTask - */ -export class CompiledTask extends Message { - /** - * Completely contained TaskTemplate - * - * @generated from field: flyteidl.core.TaskTemplate template = 1; - */ - template?: TaskTemplate; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CompiledTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "template", kind: "message", T: TaskTemplate }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompiledTask { - return new CompiledTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompiledTask { - return new CompiledTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompiledTask { - return new CompiledTask().fromJsonString(jsonString, options); - } - - static equals(a: CompiledTask | PlainMessage | undefined, b: CompiledTask | PlainMessage | undefined): boolean { - return proto3.util.equals(CompiledTask, a, b); - } -} - -/** - * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow - * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that - * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of - * compiled subworkflows. - * - * @generated from message flyteidl.core.CompiledWorkflowClosure - */ -export class CompiledWorkflowClosure extends Message { - /** - * +required - * - * @generated from field: flyteidl.core.CompiledWorkflow primary = 1; - */ - primary?: CompiledWorkflow; - - /** - * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a - * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow - * as an inlined workflow - * +optional - * - * @generated from field: repeated flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - subWorkflows: CompiledWorkflow[] = []; - - /** - * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id - * +required (at least 1) - * - * @generated from field: repeated flyteidl.core.CompiledTask tasks = 3; - */ - tasks: CompiledTask[] = []; - - /** - * A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan - * with a given id, i.e., every launch plan has a unique id. - * - * @generated from field: repeated flyteidl.core.CompiledLaunchPlan launch_plans = 4; - */ - launchPlans: CompiledLaunchPlan[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.CompiledWorkflowClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "primary", kind: "message", T: CompiledWorkflow }, - { no: 2, name: "sub_workflows", kind: "message", T: CompiledWorkflow, repeated: true }, - { no: 3, name: "tasks", kind: "message", T: CompiledTask, repeated: true }, - { no: 4, name: "launch_plans", kind: "message", T: CompiledLaunchPlan, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CompiledWorkflowClosure { - return new CompiledWorkflowClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CompiledWorkflowClosure { - return new CompiledWorkflowClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CompiledWorkflowClosure { - return new CompiledWorkflowClosure().fromJsonString(jsonString, options); - } - - static equals(a: CompiledWorkflowClosure | PlainMessage | undefined, b: CompiledWorkflowClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(CompiledWorkflowClosure, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts deleted file mode 100644 index ba682eb7c5..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts +++ /dev/null @@ -1,306 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/condition.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Primitive, Scalar } from "./literals_pb.js"; - -/** - * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. - * Each expression results in a boolean result. - * - * @generated from message flyteidl.core.ComparisonExpression - */ -export class ComparisonExpression extends Message { - /** - * @generated from field: flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - operator = ComparisonExpression_Operator.EQ; - - /** - * @generated from field: flyteidl.core.Operand left_value = 2; - */ - leftValue?: Operand; - - /** - * @generated from field: flyteidl.core.Operand right_value = 3; - */ - rightValue?: Operand; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ComparisonExpression"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "operator", kind: "enum", T: proto3.getEnumType(ComparisonExpression_Operator) }, - { no: 2, name: "left_value", kind: "message", T: Operand }, - { no: 3, name: "right_value", kind: "message", T: Operand }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ComparisonExpression { - return new ComparisonExpression().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ComparisonExpression { - return new ComparisonExpression().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ComparisonExpression { - return new ComparisonExpression().fromJsonString(jsonString, options); - } - - static equals(a: ComparisonExpression | PlainMessage | undefined, b: ComparisonExpression | PlainMessage | undefined): boolean { - return proto3.util.equals(ComparisonExpression, a, b); - } -} - -/** - * Binary Operator for each expression - * - * @generated from enum flyteidl.core.ComparisonExpression.Operator - */ -export enum ComparisonExpression_Operator { - /** - * @generated from enum value: EQ = 0; - */ - EQ = 0, - - /** - * @generated from enum value: NEQ = 1; - */ - NEQ = 1, - - /** - * Greater Than - * - * @generated from enum value: GT = 2; - */ - GT = 2, - - /** - * @generated from enum value: GTE = 3; - */ - GTE = 3, - - /** - * Less Than - * - * @generated from enum value: LT = 4; - */ - LT = 4, - - /** - * @generated from enum value: LTE = 5; - */ - LTE = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(ComparisonExpression_Operator) -proto3.util.setEnumType(ComparisonExpression_Operator, "flyteidl.core.ComparisonExpression.Operator", [ - { no: 0, name: "EQ" }, - { no: 1, name: "NEQ" }, - { no: 2, name: "GT" }, - { no: 3, name: "GTE" }, - { no: 4, name: "LT" }, - { no: 5, name: "LTE" }, -]); - -/** - * Defines an operand to a comparison expression. - * - * @generated from message flyteidl.core.Operand - */ -export class Operand extends Message { - /** - * @generated from oneof flyteidl.core.Operand.val - */ - val: { - /** - * Can be a constant - * - * @generated from field: flyteidl.core.Primitive primitive = 1 [deprecated = true]; - * @deprecated - */ - value: Primitive; - case: "primitive"; - } | { - /** - * Or one of this node's input variables - * - * @generated from field: string var = 2; - */ - value: string; - case: "var"; - } | { - /** - * Replace the primitive field - * - * @generated from field: flyteidl.core.Scalar scalar = 3; - */ - value: Scalar; - case: "scalar"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Operand"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "primitive", kind: "message", T: Primitive, oneof: "val" }, - { no: 2, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "val" }, - { no: 3, name: "scalar", kind: "message", T: Scalar, oneof: "val" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Operand { - return new Operand().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Operand { - return new Operand().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Operand { - return new Operand().fromJsonString(jsonString, options); - } - - static equals(a: Operand | PlainMessage | undefined, b: Operand | PlainMessage | undefined): boolean { - return proto3.util.equals(Operand, a, b); - } -} - -/** - * Defines a boolean expression tree. It can be a simple or a conjunction expression. - * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. - * - * @generated from message flyteidl.core.BooleanExpression - */ -export class BooleanExpression extends Message { - /** - * @generated from oneof flyteidl.core.BooleanExpression.expr - */ - expr: { - /** - * @generated from field: flyteidl.core.ConjunctionExpression conjunction = 1; - */ - value: ConjunctionExpression; - case: "conjunction"; - } | { - /** - * @generated from field: flyteidl.core.ComparisonExpression comparison = 2; - */ - value: ComparisonExpression; - case: "comparison"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BooleanExpression"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "conjunction", kind: "message", T: ConjunctionExpression, oneof: "expr" }, - { no: 2, name: "comparison", kind: "message", T: ComparisonExpression, oneof: "expr" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BooleanExpression { - return new BooleanExpression().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BooleanExpression { - return new BooleanExpression().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BooleanExpression { - return new BooleanExpression().fromJsonString(jsonString, options); - } - - static equals(a: BooleanExpression | PlainMessage | undefined, b: BooleanExpression | PlainMessage | undefined): boolean { - return proto3.util.equals(BooleanExpression, a, b); - } -} - -/** - * Defines a conjunction expression of two boolean expressions. - * - * @generated from message flyteidl.core.ConjunctionExpression - */ -export class ConjunctionExpression extends Message { - /** - * @generated from field: flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - operator = ConjunctionExpression_LogicalOperator.AND; - - /** - * @generated from field: flyteidl.core.BooleanExpression left_expression = 2; - */ - leftExpression?: BooleanExpression; - - /** - * @generated from field: flyteidl.core.BooleanExpression right_expression = 3; - */ - rightExpression?: BooleanExpression; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ConjunctionExpression"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "operator", kind: "enum", T: proto3.getEnumType(ConjunctionExpression_LogicalOperator) }, - { no: 2, name: "left_expression", kind: "message", T: BooleanExpression }, - { no: 3, name: "right_expression", kind: "message", T: BooleanExpression }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ConjunctionExpression { - return new ConjunctionExpression().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ConjunctionExpression { - return new ConjunctionExpression().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ConjunctionExpression { - return new ConjunctionExpression().fromJsonString(jsonString, options); - } - - static equals(a: ConjunctionExpression | PlainMessage | undefined, b: ConjunctionExpression | PlainMessage | undefined): boolean { - return proto3.util.equals(ConjunctionExpression, a, b); - } -} - -/** - * Nested conditions. They can be conjoined using AND / OR - * Order of evaluation is not important as the operators are Commutative - * - * @generated from enum flyteidl.core.ConjunctionExpression.LogicalOperator - */ -export enum ConjunctionExpression_LogicalOperator { - /** - * Conjunction - * - * @generated from enum value: AND = 0; - */ - AND = 0, - - /** - * @generated from enum value: OR = 1; - */ - OR = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(ConjunctionExpression_LogicalOperator) -proto3.util.setEnumType(ConjunctionExpression_LogicalOperator, "flyteidl.core.ConjunctionExpression.LogicalOperator", [ - { no: 0, name: "AND" }, - { no: 1, name: "OR" }, -]); - diff --git a/flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts deleted file mode 100644 index a3a396ab7d..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts +++ /dev/null @@ -1,89 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/dynamic_job.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; -import { Node, WorkflowTemplate } from "./workflow_pb.js"; -import { Binding } from "./literals_pb.js"; -import { TaskTemplate } from "./tasks_pb.js"; - -/** - * Describes a set of tasks to execute and how the final outputs are produced. - * - * @generated from message flyteidl.core.DynamicJobSpec - */ -export class DynamicJobSpec extends Message { - /** - * A collection of nodes to execute. - * - * @generated from field: repeated flyteidl.core.Node nodes = 1; - */ - nodes: Node[] = []; - - /** - * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this - * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number - * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < - * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not - * specified, is the count of nodes repeated field. - * - * @generated from field: int64 min_successes = 2; - */ - minSuccesses = protoInt64.zero; - - /** - * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids - * in bindings should have the generated id for the subtask. - * - * @generated from field: repeated flyteidl.core.Binding outputs = 3; - */ - outputs: Binding[] = []; - - /** - * [Optional] A complete list of task specs referenced in nodes. - * - * @generated from field: repeated flyteidl.core.TaskTemplate tasks = 4; - */ - tasks: TaskTemplate[] = []; - - /** - * [Optional] A complete list of task specs referenced in nodes. - * - * @generated from field: repeated flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - subworkflows: WorkflowTemplate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.DynamicJobSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "nodes", kind: "message", T: Node, repeated: true }, - { no: 2, name: "min_successes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "outputs", kind: "message", T: Binding, repeated: true }, - { no: 4, name: "tasks", kind: "message", T: TaskTemplate, repeated: true }, - { no: 5, name: "subworkflows", kind: "message", T: WorkflowTemplate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DynamicJobSpec { - return new DynamicJobSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DynamicJobSpec { - return new DynamicJobSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DynamicJobSpec { - return new DynamicJobSpec().fromJsonString(jsonString, options); - } - - static equals(a: DynamicJobSpec | PlainMessage | undefined, b: DynamicJobSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(DynamicJobSpec, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts deleted file mode 100644 index 42b70dec5b..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts +++ /dev/null @@ -1,139 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/errors.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { ExecutionError_ErrorKind } from "./execution_pb.js"; - -/** - * Error message to propagate detailed errors from container executions to the execution - * engine. - * - * @generated from message flyteidl.core.ContainerError - */ -export class ContainerError extends Message { - /** - * A simplified code for errors, so that we can provide a glossary of all possible errors. - * - * @generated from field: string code = 1; - */ - code = ""; - - /** - * A detailed error message. - * - * @generated from field: string message = 2; - */ - message = ""; - - /** - * An abstract error kind for this error. Defaults to Non_Recoverable if not specified. - * - * @generated from field: flyteidl.core.ContainerError.Kind kind = 3; - */ - kind = ContainerError_Kind.NON_RECOVERABLE; - - /** - * Defines the origin of the error (system, user, unknown). - * - * @generated from field: flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - origin = ExecutionError_ErrorKind.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ContainerError"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(ContainerError_Kind) }, - { no: 4, name: "origin", kind: "enum", T: proto3.getEnumType(ExecutionError_ErrorKind) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContainerError { - return new ContainerError().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContainerError { - return new ContainerError().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContainerError { - return new ContainerError().fromJsonString(jsonString, options); - } - - static equals(a: ContainerError | PlainMessage | undefined, b: ContainerError | PlainMessage | undefined): boolean { - return proto3.util.equals(ContainerError, a, b); - } -} - -/** - * Defines a generic error type that dictates the behavior of the retry strategy. - * - * @generated from enum flyteidl.core.ContainerError.Kind - */ -export enum ContainerError_Kind { - /** - * @generated from enum value: NON_RECOVERABLE = 0; - */ - NON_RECOVERABLE = 0, - - /** - * @generated from enum value: RECOVERABLE = 1; - */ - RECOVERABLE = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(ContainerError_Kind) -proto3.util.setEnumType(ContainerError_Kind, "flyteidl.core.ContainerError.Kind", [ - { no: 0, name: "NON_RECOVERABLE" }, - { no: 1, name: "RECOVERABLE" }, -]); - -/** - * Defines the errors.pb file format the container can produce to communicate - * failure reasons to the execution engine. - * - * @generated from message flyteidl.core.ErrorDocument - */ -export class ErrorDocument extends Message { - /** - * The error raised during execution. - * - * @generated from field: flyteidl.core.ContainerError error = 1; - */ - error?: ContainerError; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ErrorDocument"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "error", kind: "message", T: ContainerError }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ErrorDocument { - return new ErrorDocument().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ErrorDocument { - return new ErrorDocument().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ErrorDocument { - return new ErrorDocument().fromJsonString(jsonString, options); - } - - static equals(a: ErrorDocument | PlainMessage | undefined, b: ErrorDocument | PlainMessage | undefined): boolean { - return proto3.util.equals(ErrorDocument, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts deleted file mode 100644 index e931e1a789..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts +++ /dev/null @@ -1,613 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/execution.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Indicates various phases of Workflow Execution - * - * @generated from message flyteidl.core.WorkflowExecution - */ -export class WorkflowExecution extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecution { - return new WorkflowExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecution { - return new WorkflowExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecution { - return new WorkflowExecution().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecution | PlainMessage | undefined, b: WorkflowExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecution, a, b); - } -} - -/** - * @generated from enum flyteidl.core.WorkflowExecution.Phase - */ -export enum WorkflowExecution_Phase { - /** - * @generated from enum value: UNDEFINED = 0; - */ - UNDEFINED = 0, - - /** - * @generated from enum value: QUEUED = 1; - */ - QUEUED = 1, - - /** - * @generated from enum value: RUNNING = 2; - */ - RUNNING = 2, - - /** - * @generated from enum value: SUCCEEDING = 3; - */ - SUCCEEDING = 3, - - /** - * @generated from enum value: SUCCEEDED = 4; - */ - SUCCEEDED = 4, - - /** - * @generated from enum value: FAILING = 5; - */ - FAILING = 5, - - /** - * @generated from enum value: FAILED = 6; - */ - FAILED = 6, - - /** - * @generated from enum value: ABORTED = 7; - */ - ABORTED = 7, - - /** - * @generated from enum value: TIMED_OUT = 8; - */ - TIMED_OUT = 8, - - /** - * @generated from enum value: ABORTING = 9; - */ - ABORTING = 9, -} -// Retrieve enum metadata with: proto3.getEnumType(WorkflowExecution_Phase) -proto3.util.setEnumType(WorkflowExecution_Phase, "flyteidl.core.WorkflowExecution.Phase", [ - { no: 0, name: "UNDEFINED" }, - { no: 1, name: "QUEUED" }, - { no: 2, name: "RUNNING" }, - { no: 3, name: "SUCCEEDING" }, - { no: 4, name: "SUCCEEDED" }, - { no: 5, name: "FAILING" }, - { no: 6, name: "FAILED" }, - { no: 7, name: "ABORTED" }, - { no: 8, name: "TIMED_OUT" }, - { no: 9, name: "ABORTING" }, -]); - -/** - * Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows - * - * @generated from message flyteidl.core.NodeExecution - */ -export class NodeExecution extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.NodeExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecution { - return new NodeExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecution { - return new NodeExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecution { - return new NodeExecution().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecution | PlainMessage | undefined, b: NodeExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecution, a, b); - } -} - -/** - * @generated from enum flyteidl.core.NodeExecution.Phase - */ -export enum NodeExecution_Phase { - /** - * @generated from enum value: UNDEFINED = 0; - */ - UNDEFINED = 0, - - /** - * @generated from enum value: QUEUED = 1; - */ - QUEUED = 1, - - /** - * @generated from enum value: RUNNING = 2; - */ - RUNNING = 2, - - /** - * @generated from enum value: SUCCEEDED = 3; - */ - SUCCEEDED = 3, - - /** - * @generated from enum value: FAILING = 4; - */ - FAILING = 4, - - /** - * @generated from enum value: FAILED = 5; - */ - FAILED = 5, - - /** - * @generated from enum value: ABORTED = 6; - */ - ABORTED = 6, - - /** - * @generated from enum value: SKIPPED = 7; - */ - SKIPPED = 7, - - /** - * @generated from enum value: TIMED_OUT = 8; - */ - TIMED_OUT = 8, - - /** - * @generated from enum value: DYNAMIC_RUNNING = 9; - */ - DYNAMIC_RUNNING = 9, - - /** - * @generated from enum value: RECOVERED = 10; - */ - RECOVERED = 10, -} -// Retrieve enum metadata with: proto3.getEnumType(NodeExecution_Phase) -proto3.util.setEnumType(NodeExecution_Phase, "flyteidl.core.NodeExecution.Phase", [ - { no: 0, name: "UNDEFINED" }, - { no: 1, name: "QUEUED" }, - { no: 2, name: "RUNNING" }, - { no: 3, name: "SUCCEEDED" }, - { no: 4, name: "FAILING" }, - { no: 5, name: "FAILED" }, - { no: 6, name: "ABORTED" }, - { no: 7, name: "SKIPPED" }, - { no: 8, name: "TIMED_OUT" }, - { no: 9, name: "DYNAMIC_RUNNING" }, - { no: 10, name: "RECOVERED" }, -]); - -/** - * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, - * but this is the cumulative list that customers may want to know about for their task. - * - * @generated from message flyteidl.core.TaskExecution - */ -export class TaskExecution extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecution { - return new TaskExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecution { - return new TaskExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecution { - return new TaskExecution().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecution | PlainMessage | undefined, b: TaskExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecution, a, b); - } -} - -/** - * @generated from enum flyteidl.core.TaskExecution.Phase - */ -export enum TaskExecution_Phase { - /** - * @generated from enum value: UNDEFINED = 0; - */ - UNDEFINED = 0, - - /** - * @generated from enum value: QUEUED = 1; - */ - QUEUED = 1, - - /** - * @generated from enum value: RUNNING = 2; - */ - RUNNING = 2, - - /** - * @generated from enum value: SUCCEEDED = 3; - */ - SUCCEEDED = 3, - - /** - * @generated from enum value: ABORTED = 4; - */ - ABORTED = 4, - - /** - * @generated from enum value: FAILED = 5; - */ - FAILED = 5, - - /** - * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing - * - * @generated from enum value: INITIALIZING = 6; - */ - INITIALIZING = 6, - - /** - * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded - * - * @generated from enum value: WAITING_FOR_RESOURCES = 7; - */ - WAITING_FOR_RESOURCES = 7, -} -// Retrieve enum metadata with: proto3.getEnumType(TaskExecution_Phase) -proto3.util.setEnumType(TaskExecution_Phase, "flyteidl.core.TaskExecution.Phase", [ - { no: 0, name: "UNDEFINED" }, - { no: 1, name: "QUEUED" }, - { no: 2, name: "RUNNING" }, - { no: 3, name: "SUCCEEDED" }, - { no: 4, name: "ABORTED" }, - { no: 5, name: "FAILED" }, - { no: 6, name: "INITIALIZING" }, - { no: 7, name: "WAITING_FOR_RESOURCES" }, -]); - -/** - * Represents the error message from the execution. - * - * @generated from message flyteidl.core.ExecutionError - */ -export class ExecutionError extends Message { - /** - * Error code indicates a grouping of a type of error. - * More Info: - * - * @generated from field: string code = 1; - */ - code = ""; - - /** - * Detailed description of the error - including stack trace. - * - * @generated from field: string message = 2; - */ - message = ""; - - /** - * Full error contents accessible via a URI - * - * @generated from field: string error_uri = 3; - */ - errorUri = ""; - - /** - * @generated from field: flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - kind = ExecutionError_ErrorKind.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ExecutionError"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "error_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "kind", kind: "enum", T: proto3.getEnumType(ExecutionError_ErrorKind) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionError { - return new ExecutionError().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionError { - return new ExecutionError().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionError { - return new ExecutionError().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionError | PlainMessage | undefined, b: ExecutionError | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionError, a, b); - } -} - -/** - * Error type: System or User - * - * @generated from enum flyteidl.core.ExecutionError.ErrorKind - */ -export enum ExecutionError_ErrorKind { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: USER = 1; - */ - USER = 1, - - /** - * @generated from enum value: SYSTEM = 2; - */ - SYSTEM = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(ExecutionError_ErrorKind) -proto3.util.setEnumType(ExecutionError_ErrorKind, "flyteidl.core.ExecutionError.ErrorKind", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "USER" }, - { no: 2, name: "SYSTEM" }, -]); - -/** - * Log information for the task that is specific to a log sink - * When our log story is flushed out, we may have more metadata here like log link expiry - * - * @generated from message flyteidl.core.TaskLog - */ -export class TaskLog extends Message { - /** - * @generated from field: string uri = 1; - */ - uri = ""; - - /** - * @generated from field: string name = 2; - */ - name = ""; - - /** - * @generated from field: flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - messageFormat = TaskLog_MessageFormat.UNKNOWN; - - /** - * @generated from field: google.protobuf.Duration ttl = 4; - */ - ttl?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskLog"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "message_format", kind: "enum", T: proto3.getEnumType(TaskLog_MessageFormat) }, - { no: 4, name: "ttl", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskLog { - return new TaskLog().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskLog { - return new TaskLog().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskLog { - return new TaskLog().fromJsonString(jsonString, options); - } - - static equals(a: TaskLog | PlainMessage | undefined, b: TaskLog | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskLog, a, b); - } -} - -/** - * @generated from enum flyteidl.core.TaskLog.MessageFormat - */ -export enum TaskLog_MessageFormat { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: CSV = 1; - */ - CSV = 1, - - /** - * @generated from enum value: JSON = 2; - */ - JSON = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(TaskLog_MessageFormat) -proto3.util.setEnumType(TaskLog_MessageFormat, "flyteidl.core.TaskLog.MessageFormat", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "CSV" }, - { no: 2, name: "JSON" }, -]); - -/** - * Represents customized execution run-time attributes. - * - * @generated from message flyteidl.core.QualityOfServiceSpec - */ -export class QualityOfServiceSpec extends Message { - /** - * Indicates how much queueing delay an execution can tolerate. - * - * @generated from field: google.protobuf.Duration queueing_budget = 1; - */ - queueingBudget?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.QualityOfServiceSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "queueing_budget", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QualityOfServiceSpec { - return new QualityOfServiceSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QualityOfServiceSpec { - return new QualityOfServiceSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QualityOfServiceSpec { - return new QualityOfServiceSpec().fromJsonString(jsonString, options); - } - - static equals(a: QualityOfServiceSpec | PlainMessage | undefined, b: QualityOfServiceSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(QualityOfServiceSpec, a, b); - } -} - -/** - * Indicates the priority of an execution. - * - * @generated from message flyteidl.core.QualityOfService - */ -export class QualityOfService extends Message { - /** - * @generated from oneof flyteidl.core.QualityOfService.designation - */ - designation: { - /** - * @generated from field: flyteidl.core.QualityOfService.Tier tier = 1; - */ - value: QualityOfService_Tier; - case: "tier"; - } | { - /** - * @generated from field: flyteidl.core.QualityOfServiceSpec spec = 2; - */ - value: QualityOfServiceSpec; - case: "spec"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.QualityOfService"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tier", kind: "enum", T: proto3.getEnumType(QualityOfService_Tier), oneof: "designation" }, - { no: 2, name: "spec", kind: "message", T: QualityOfServiceSpec, oneof: "designation" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QualityOfService { - return new QualityOfService().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QualityOfService { - return new QualityOfService().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QualityOfService { - return new QualityOfService().fromJsonString(jsonString, options); - } - - static equals(a: QualityOfService | PlainMessage | undefined, b: QualityOfService | PlainMessage | undefined): boolean { - return proto3.util.equals(QualityOfService, a, b); - } -} - -/** - * @generated from enum flyteidl.core.QualityOfService.Tier - */ -export enum QualityOfService_Tier { - /** - * Default: no quality of service specified. - * - * @generated from enum value: UNDEFINED = 0; - */ - UNDEFINED = 0, - - /** - * @generated from enum value: HIGH = 1; - */ - HIGH = 1, - - /** - * @generated from enum value: MEDIUM = 2; - */ - MEDIUM = 2, - - /** - * @generated from enum value: LOW = 3; - */ - LOW = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(QualityOfService_Tier) -proto3.util.setEnumType(QualityOfService_Tier, "flyteidl.core.QualityOfService.Tier", [ - { no: 0, name: "UNDEFINED" }, - { no: 1, name: "HIGH" }, - { no: 2, name: "MEDIUM" }, - { no: 3, name: "LOW" }, -]); - diff --git a/flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts deleted file mode 100644 index aacfa6c97d..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts +++ /dev/null @@ -1,345 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/identifier.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Indicates a resource type within Flyte. - * - * @generated from enum flyteidl.core.ResourceType - */ -export enum ResourceType { - /** - * @generated from enum value: UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: TASK = 1; - */ - TASK = 1, - - /** - * @generated from enum value: WORKFLOW = 2; - */ - WORKFLOW = 2, - - /** - * @generated from enum value: LAUNCH_PLAN = 3; - */ - LAUNCH_PLAN = 3, - - /** - * A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. - * Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects - * in a similar manner to other Flyte objects - * - * @generated from enum value: DATASET = 4; - */ - DATASET = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(ResourceType) -proto3.util.setEnumType(ResourceType, "flyteidl.core.ResourceType", [ - { no: 0, name: "UNSPECIFIED" }, - { no: 1, name: "TASK" }, - { no: 2, name: "WORKFLOW" }, - { no: 3, name: "LAUNCH_PLAN" }, - { no: 4, name: "DATASET" }, -]); - -/** - * Encapsulation of fields that uniquely identifies a Flyte resource. - * - * @generated from message flyteidl.core.Identifier - */ -export class Identifier extends Message { - /** - * Identifies the specific type of resource that this identifier corresponds to. - * - * @generated from field: flyteidl.core.ResourceType resource_type = 1; - */ - resourceType = ResourceType.UNSPECIFIED; - - /** - * Name of the project the resource belongs to. - * - * @generated from field: string project = 2; - */ - project = ""; - - /** - * Name of the domain the resource belongs to. - * A domain can be considered as a subset within a specific project. - * - * @generated from field: string domain = 3; - */ - domain = ""; - - /** - * User provided value for the resource. - * - * @generated from field: string name = 4; - */ - name = ""; - - /** - * Specific version of the resource. - * - * @generated from field: string version = 5; - */ - version = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 6; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Identifier"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, - { no: 2, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Identifier { - return new Identifier().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Identifier { - return new Identifier().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Identifier { - return new Identifier().fromJsonString(jsonString, options); - } - - static equals(a: Identifier | PlainMessage | undefined, b: Identifier | PlainMessage | undefined): boolean { - return proto3.util.equals(Identifier, a, b); - } -} - -/** - * Encapsulation of fields that uniquely identifies a Flyte workflow execution - * - * @generated from message flyteidl.core.WorkflowExecutionIdentifier - */ -export class WorkflowExecutionIdentifier extends Message { - /** - * Name of the project the resource belongs to. - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Name of the domain the resource belongs to. - * A domain can be considered as a subset within a specific project. - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * User or system provided value for the resource. - * - * @generated from field: string name = 4; - */ - name = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 5; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowExecutionIdentifier"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionIdentifier { - return new WorkflowExecutionIdentifier().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionIdentifier { - return new WorkflowExecutionIdentifier().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionIdentifier { - return new WorkflowExecutionIdentifier().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionIdentifier | PlainMessage | undefined, b: WorkflowExecutionIdentifier | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionIdentifier, a, b); - } -} - -/** - * Encapsulation of fields that identify a Flyte node execution entity. - * - * @generated from message flyteidl.core.NodeExecutionIdentifier - */ -export class NodeExecutionIdentifier extends Message { - /** - * @generated from field: string node_id = 1; - */ - nodeId = ""; - - /** - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - executionId?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.NodeExecutionIdentifier"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionIdentifier { - return new NodeExecutionIdentifier().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionIdentifier { - return new NodeExecutionIdentifier().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionIdentifier { - return new NodeExecutionIdentifier().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionIdentifier | PlainMessage | undefined, b: NodeExecutionIdentifier | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionIdentifier, a, b); - } -} - -/** - * Encapsulation of fields that identify a Flyte task execution entity. - * - * @generated from message flyteidl.core.TaskExecutionIdentifier - */ -export class TaskExecutionIdentifier extends Message { - /** - * @generated from field: flyteidl.core.Identifier task_id = 1; - */ - taskId?: Identifier; - - /** - * @generated from field: flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - nodeExecutionId?: NodeExecutionIdentifier; - - /** - * @generated from field: uint32 retry_attempt = 3; - */ - retryAttempt = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskExecutionIdentifier"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_id", kind: "message", T: Identifier }, - { no: 2, name: "node_execution_id", kind: "message", T: NodeExecutionIdentifier }, - { no: 3, name: "retry_attempt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionIdentifier { - return new TaskExecutionIdentifier().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionIdentifier { - return new TaskExecutionIdentifier().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionIdentifier { - return new TaskExecutionIdentifier().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionIdentifier | PlainMessage | undefined, b: TaskExecutionIdentifier | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionIdentifier, a, b); - } -} - -/** - * Encapsulation of fields the uniquely identify a signal. - * - * @generated from message flyteidl.core.SignalIdentifier - */ -export class SignalIdentifier extends Message { - /** - * Unique identifier for a signal. - * - * @generated from field: string signal_id = 1; - */ - signalId = ""; - - /** - * Identifies the Flyte workflow execution this signal belongs to. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - executionId?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.SignalIdentifier"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalIdentifier { - return new SignalIdentifier().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalIdentifier { - return new SignalIdentifier().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalIdentifier { - return new SignalIdentifier().fromJsonString(jsonString, options); - } - - static equals(a: SignalIdentifier | PlainMessage | undefined, b: SignalIdentifier | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalIdentifier, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts deleted file mode 100644 index d8e15d2487..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts +++ /dev/null @@ -1,286 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/interface.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { LiteralType } from "./types_pb.js"; -import { ArtifactID, ArtifactQuery, ArtifactTag } from "./artifact_id_pb.js"; -import { Literal } from "./literals_pb.js"; - -/** - * Defines a strongly typed variable. - * - * @generated from message flyteidl.core.Variable - */ -export class Variable extends Message { - /** - * Variable literal type. - * - * @generated from field: flyteidl.core.LiteralType type = 1; - */ - type?: LiteralType; - - /** - * +optional string describing input variable - * - * @generated from field: string description = 2; - */ - description = ""; - - /** - * +optional This object allows the user to specify how Artifacts are created. - * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. - * - * @generated from field: flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - artifactPartialId?: ArtifactID; - - /** - * @generated from field: flyteidl.core.ArtifactTag artifact_tag = 4; - */ - artifactTag?: ArtifactTag; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Variable"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "message", T: LiteralType }, - { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "artifact_partial_id", kind: "message", T: ArtifactID }, - { no: 4, name: "artifact_tag", kind: "message", T: ArtifactTag }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Variable { - return new Variable().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Variable { - return new Variable().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Variable { - return new Variable().fromJsonString(jsonString, options); - } - - static equals(a: Variable | PlainMessage | undefined, b: Variable | PlainMessage | undefined): boolean { - return proto3.util.equals(Variable, a, b); - } -} - -/** - * A map of Variables - * - * @generated from message flyteidl.core.VariableMap - */ -export class VariableMap extends Message { - /** - * Defines a map of variable names to variables. - * - * @generated from field: map variables = 1; - */ - variables: { [key: string]: Variable } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.VariableMap"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Variable} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): VariableMap { - return new VariableMap().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): VariableMap { - return new VariableMap().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): VariableMap { - return new VariableMap().fromJsonString(jsonString, options); - } - - static equals(a: VariableMap | PlainMessage | undefined, b: VariableMap | PlainMessage | undefined): boolean { - return proto3.util.equals(VariableMap, a, b); - } -} - -/** - * Defines strongly typed inputs and outputs. - * - * @generated from message flyteidl.core.TypedInterface - */ -export class TypedInterface extends Message { - /** - * @generated from field: flyteidl.core.VariableMap inputs = 1; - */ - inputs?: VariableMap; - - /** - * @generated from field: flyteidl.core.VariableMap outputs = 2; - */ - outputs?: VariableMap; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TypedInterface"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "message", T: VariableMap }, - { no: 2, name: "outputs", kind: "message", T: VariableMap }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TypedInterface { - return new TypedInterface().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TypedInterface { - return new TypedInterface().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TypedInterface { - return new TypedInterface().fromJsonString(jsonString, options); - } - - static equals(a: TypedInterface | PlainMessage | undefined, b: TypedInterface | PlainMessage | undefined): boolean { - return proto3.util.equals(TypedInterface, a, b); - } -} - -/** - * A parameter is used as input to a launch plan and has - * the special ability to have a default value or mark itself as required. - * - * @generated from message flyteidl.core.Parameter - */ -export class Parameter extends Message { - /** - * +required Variable. Defines the type of the variable backing this parameter. - * - * @generated from field: flyteidl.core.Variable var = 1; - */ - var?: Variable; - - /** - * +optional - * - * @generated from oneof flyteidl.core.Parameter.behavior - */ - behavior: { - /** - * Defines a default value that has to match the variable type defined. - * - * @generated from field: flyteidl.core.Literal default = 2; - */ - value: Literal; - case: "default"; - } | { - /** - * +optional, is this value required to be filled. - * - * @generated from field: bool required = 3; - */ - value: boolean; - case: "required"; - } | { - /** - * This is an execution time search basically that should result in exactly one Artifact with a Type that - * matches the type of the variable. - * - * @generated from field: flyteidl.core.ArtifactQuery artifact_query = 4; - */ - value: ArtifactQuery; - case: "artifactQuery"; - } | { - /** - * @generated from field: flyteidl.core.ArtifactID artifact_id = 5; - */ - value: ArtifactID; - case: "artifactId"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Parameter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "var", kind: "message", T: Variable }, - { no: 2, name: "default", kind: "message", T: Literal, oneof: "behavior" }, - { no: 3, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "behavior" }, - { no: 4, name: "artifact_query", kind: "message", T: ArtifactQuery, oneof: "behavior" }, - { no: 5, name: "artifact_id", kind: "message", T: ArtifactID, oneof: "behavior" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Parameter { - return new Parameter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Parameter { - return new Parameter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Parameter { - return new Parameter().fromJsonString(jsonString, options); - } - - static equals(a: Parameter | PlainMessage | undefined, b: Parameter | PlainMessage | undefined): boolean { - return proto3.util.equals(Parameter, a, b); - } -} - -/** - * A map of Parameters. - * - * @generated from message flyteidl.core.ParameterMap - */ -export class ParameterMap extends Message { - /** - * Defines a map of parameter names to parameters. - * - * @generated from field: map parameters = 1; - */ - parameters: { [key: string]: Parameter } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ParameterMap"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "parameters", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Parameter} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParameterMap { - return new ParameterMap().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParameterMap { - return new ParameterMap().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParameterMap { - return new ParameterMap().fromJsonString(jsonString, options); - } - - static equals(a: ParameterMap | PlainMessage | undefined, b: ParameterMap | PlainMessage | undefined): boolean { - return proto3.util.equals(ParameterMap, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts deleted file mode 100644 index 6cf6b07ca2..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts +++ /dev/null @@ -1,1032 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/literals.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; -import { BlobType, Error, LiteralType, OutputReference, SchemaType, StructuredDatasetType } from "./types_pb.js"; - -/** - * Primitive Types - * - * @generated from message flyteidl.core.Primitive - */ -export class Primitive extends Message { - /** - * Defines one of simple primitive types. These types will get translated into different programming languages as - * described in https://developers.google.com/protocol-buffers/docs/proto#scalar. - * - * @generated from oneof flyteidl.core.Primitive.value - */ - value: { - /** - * @generated from field: int64 integer = 1; - */ - value: bigint; - case: "integer"; - } | { - /** - * @generated from field: double float_value = 2; - */ - value: number; - case: "floatValue"; - } | { - /** - * @generated from field: string string_value = 3; - */ - value: string; - case: "stringValue"; - } | { - /** - * @generated from field: bool boolean = 4; - */ - value: boolean; - case: "boolean"; - } | { - /** - * @generated from field: google.protobuf.Timestamp datetime = 5; - */ - value: Timestamp; - case: "datetime"; - } | { - /** - * @generated from field: google.protobuf.Duration duration = 6; - */ - value: Duration; - case: "duration"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Primitive"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "integer", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "value" }, - { no: 2, name: "float_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "value" }, - { no: 3, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, - { no: 4, name: "boolean", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" }, - { no: 5, name: "datetime", kind: "message", T: Timestamp, oneof: "value" }, - { no: 6, name: "duration", kind: "message", T: Duration, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Primitive { - return new Primitive().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Primitive { - return new Primitive().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Primitive { - return new Primitive().fromJsonString(jsonString, options); - } - - static equals(a: Primitive | PlainMessage | undefined, b: Primitive | PlainMessage | undefined): boolean { - return proto3.util.equals(Primitive, a, b); - } -} - -/** - * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally - * undefined since it can be assigned to a scalar of any LiteralType. - * - * @generated from message flyteidl.core.Void - */ -export class Void extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Void"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Void { - return new Void().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Void { - return new Void().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Void { - return new Void().fromJsonString(jsonString, options); - } - - static equals(a: Void | PlainMessage | undefined, b: Void | PlainMessage | undefined): boolean { - return proto3.util.equals(Void, a, b); - } -} - -/** - * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. - * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. - * - * @generated from message flyteidl.core.Blob - */ -export class Blob extends Message { - /** - * @generated from field: flyteidl.core.BlobMetadata metadata = 1; - */ - metadata?: BlobMetadata; - - /** - * @generated from field: string uri = 3; - */ - uri = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Blob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: BlobMetadata }, - { no: 3, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Blob { - return new Blob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Blob { - return new Blob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Blob { - return new Blob().fromJsonString(jsonString, options); - } - - static equals(a: Blob | PlainMessage | undefined, b: Blob | PlainMessage | undefined): boolean { - return proto3.util.equals(Blob, a, b); - } -} - -/** - * @generated from message flyteidl.core.BlobMetadata - */ -export class BlobMetadata extends Message { - /** - * @generated from field: flyteidl.core.BlobType type = 1; - */ - type?: BlobType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BlobMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "message", T: BlobType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlobMetadata { - return new BlobMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlobMetadata { - return new BlobMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlobMetadata { - return new BlobMetadata().fromJsonString(jsonString, options); - } - - static equals(a: BlobMetadata | PlainMessage | undefined, b: BlobMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(BlobMetadata, a, b); - } -} - -/** - * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. - * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. - * - * @generated from message flyteidl.core.Binary - */ -export class Binary extends Message { - /** - * @generated from field: bytes value = 1; - */ - value = new Uint8Array(0); - - /** - * @generated from field: string tag = 2; - */ - tag = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Binary"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 2, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Binary { - return new Binary().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Binary { - return new Binary().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Binary { - return new Binary().fromJsonString(jsonString, options); - } - - static equals(a: Binary | PlainMessage | undefined, b: Binary | PlainMessage | undefined): boolean { - return proto3.util.equals(Binary, a, b); - } -} - -/** - * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. - * - * @generated from message flyteidl.core.Schema - */ -export class Schema extends Message { - /** - * @generated from field: string uri = 1; - */ - uri = ""; - - /** - * @generated from field: flyteidl.core.SchemaType type = 3; - */ - type?: SchemaType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Schema"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "type", kind: "message", T: SchemaType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Schema { - return new Schema().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Schema { - return new Schema().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Schema { - return new Schema().fromJsonString(jsonString, options); - } - - static equals(a: Schema | PlainMessage | undefined, b: Schema | PlainMessage | undefined): boolean { - return proto3.util.equals(Schema, a, b); - } -} - -/** - * The runtime representation of a tagged union value. See `UnionType` for more details. - * - * @generated from message flyteidl.core.Union - */ -export class Union extends Message { - /** - * @generated from field: flyteidl.core.Literal value = 1; - */ - value?: Literal; - - /** - * @generated from field: flyteidl.core.LiteralType type = 2; - */ - type?: LiteralType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Union"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "value", kind: "message", T: Literal }, - { no: 2, name: "type", kind: "message", T: LiteralType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Union { - return new Union().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Union { - return new Union().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Union { - return new Union().fromJsonString(jsonString, options); - } - - static equals(a: Union | PlainMessage | undefined, b: Union | PlainMessage | undefined): boolean { - return proto3.util.equals(Union, a, b); - } -} - -/** - * @generated from message flyteidl.core.StructuredDatasetMetadata - */ -export class StructuredDatasetMetadata extends Message { - /** - * Bundle the type information along with the literal. - * This is here because StructuredDatasets can often be more defined at run time than at compile time. - * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, - * without any column information, but at run time, you might have that column information. - * flytekit python will copy this type information into the literal, from the type information, if not provided by - * the various plugins (encoders). - * Since this field is run time generated, it's not used for any type checking. - * - * @generated from field: flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - structuredDatasetType?: StructuredDatasetType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.StructuredDatasetMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "structured_dataset_type", kind: "message", T: StructuredDatasetType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDatasetMetadata { - return new StructuredDatasetMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDatasetMetadata { - return new StructuredDatasetMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StructuredDatasetMetadata { - return new StructuredDatasetMetadata().fromJsonString(jsonString, options); - } - - static equals(a: StructuredDatasetMetadata | PlainMessage | undefined, b: StructuredDatasetMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(StructuredDatasetMetadata, a, b); - } -} - -/** - * @generated from message flyteidl.core.StructuredDataset - */ -export class StructuredDataset extends Message { - /** - * String location uniquely identifying where the data is. - * Should start with the storage location (e.g. s3://, gs://, bq://, etc.) - * - * @generated from field: string uri = 1; - */ - uri = ""; - - /** - * @generated from field: flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - metadata?: StructuredDatasetMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.StructuredDataset"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "metadata", kind: "message", T: StructuredDatasetMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDataset { - return new StructuredDataset().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDataset { - return new StructuredDataset().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StructuredDataset { - return new StructuredDataset().fromJsonString(jsonString, options); - } - - static equals(a: StructuredDataset | PlainMessage | undefined, b: StructuredDataset | PlainMessage | undefined): boolean { - return proto3.util.equals(StructuredDataset, a, b); - } -} - -/** - * @generated from message flyteidl.core.Scalar - */ -export class Scalar extends Message { - /** - * @generated from oneof flyteidl.core.Scalar.value - */ - value: { - /** - * @generated from field: flyteidl.core.Primitive primitive = 1; - */ - value: Primitive; - case: "primitive"; - } | { - /** - * @generated from field: flyteidl.core.Blob blob = 2; - */ - value: Blob; - case: "blob"; - } | { - /** - * @generated from field: flyteidl.core.Binary binary = 3; - */ - value: Binary; - case: "binary"; - } | { - /** - * @generated from field: flyteidl.core.Schema schema = 4; - */ - value: Schema; - case: "schema"; - } | { - /** - * @generated from field: flyteidl.core.Void none_type = 5; - */ - value: Void; - case: "noneType"; - } | { - /** - * @generated from field: flyteidl.core.Error error = 6; - */ - value: Error; - case: "error"; - } | { - /** - * @generated from field: google.protobuf.Struct generic = 7; - */ - value: Struct; - case: "generic"; - } | { - /** - * @generated from field: flyteidl.core.StructuredDataset structured_dataset = 8; - */ - value: StructuredDataset; - case: "structuredDataset"; - } | { - /** - * @generated from field: flyteidl.core.Union union = 9; - */ - value: Union; - case: "union"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Scalar"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "primitive", kind: "message", T: Primitive, oneof: "value" }, - { no: 2, name: "blob", kind: "message", T: Blob, oneof: "value" }, - { no: 3, name: "binary", kind: "message", T: Binary, oneof: "value" }, - { no: 4, name: "schema", kind: "message", T: Schema, oneof: "value" }, - { no: 5, name: "none_type", kind: "message", T: Void, oneof: "value" }, - { no: 6, name: "error", kind: "message", T: Error, oneof: "value" }, - { no: 7, name: "generic", kind: "message", T: Struct, oneof: "value" }, - { no: 8, name: "structured_dataset", kind: "message", T: StructuredDataset, oneof: "value" }, - { no: 9, name: "union", kind: "message", T: Union, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Scalar { - return new Scalar().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Scalar { - return new Scalar().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Scalar { - return new Scalar().fromJsonString(jsonString, options); - } - - static equals(a: Scalar | PlainMessage | undefined, b: Scalar | PlainMessage | undefined): boolean { - return proto3.util.equals(Scalar, a, b); - } -} - -/** - * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. - * - * @generated from message flyteidl.core.Literal - */ -export class Literal extends Message { - /** - * @generated from oneof flyteidl.core.Literal.value - */ - value: { - /** - * A simple value. - * - * @generated from field: flyteidl.core.Scalar scalar = 1; - */ - value: Scalar; - case: "scalar"; - } | { - /** - * A collection of literals to allow nesting. - * - * @generated from field: flyteidl.core.LiteralCollection collection = 2; - */ - value: LiteralCollection; - case: "collection"; - } | { - /** - * A map of strings to literals. - * - * @generated from field: flyteidl.core.LiteralMap map = 3; - */ - value: LiteralMap; - case: "map"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * A hash representing this literal. - * This is used for caching purposes. For more details refer to RFC 1893 - * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) - * - * @generated from field: string hash = 4; - */ - hash = ""; - - /** - * Additional metadata for literals. - * - * @generated from field: map metadata = 5; - */ - metadata: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Literal"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "scalar", kind: "message", T: Scalar, oneof: "value" }, - { no: 2, name: "collection", kind: "message", T: LiteralCollection, oneof: "value" }, - { no: 3, name: "map", kind: "message", T: LiteralMap, oneof: "value" }, - { no: 4, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Literal { - return new Literal().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Literal { - return new Literal().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Literal { - return new Literal().fromJsonString(jsonString, options); - } - - static equals(a: Literal | PlainMessage | undefined, b: Literal | PlainMessage | undefined): boolean { - return proto3.util.equals(Literal, a, b); - } -} - -/** - * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. - * - * @generated from message flyteidl.core.LiteralCollection - */ -export class LiteralCollection extends Message { - /** - * @generated from field: repeated flyteidl.core.Literal literals = 1; - */ - literals: Literal[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.LiteralCollection"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "literals", kind: "message", T: Literal, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiteralCollection { - return new LiteralCollection().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiteralCollection { - return new LiteralCollection().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiteralCollection { - return new LiteralCollection().fromJsonString(jsonString, options); - } - - static equals(a: LiteralCollection | PlainMessage | undefined, b: LiteralCollection | PlainMessage | undefined): boolean { - return proto3.util.equals(LiteralCollection, a, b); - } -} - -/** - * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. - * - * @generated from message flyteidl.core.LiteralMap - */ -export class LiteralMap extends Message { - /** - * @generated from field: map literals = 1; - */ - literals: { [key: string]: Literal } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.LiteralMap"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "literals", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Literal} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiteralMap { - return new LiteralMap().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiteralMap { - return new LiteralMap().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiteralMap { - return new LiteralMap().fromJsonString(jsonString, options); - } - - static equals(a: LiteralMap | PlainMessage | undefined, b: LiteralMap | PlainMessage | undefined): boolean { - return proto3.util.equals(LiteralMap, a, b); - } -} - -/** - * A collection of BindingData items. - * - * @generated from message flyteidl.core.BindingDataCollection - */ -export class BindingDataCollection extends Message { - /** - * @generated from field: repeated flyteidl.core.BindingData bindings = 1; - */ - bindings: BindingData[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BindingDataCollection"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bindings", kind: "message", T: BindingData, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BindingDataCollection { - return new BindingDataCollection().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BindingDataCollection { - return new BindingDataCollection().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BindingDataCollection { - return new BindingDataCollection().fromJsonString(jsonString, options); - } - - static equals(a: BindingDataCollection | PlainMessage | undefined, b: BindingDataCollection | PlainMessage | undefined): boolean { - return proto3.util.equals(BindingDataCollection, a, b); - } -} - -/** - * A map of BindingData items. - * - * @generated from message flyteidl.core.BindingDataMap - */ -export class BindingDataMap extends Message { - /** - * @generated from field: map bindings = 1; - */ - bindings: { [key: string]: BindingData } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BindingDataMap"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "bindings", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: BindingData} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BindingDataMap { - return new BindingDataMap().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BindingDataMap { - return new BindingDataMap().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BindingDataMap { - return new BindingDataMap().fromJsonString(jsonString, options); - } - - static equals(a: BindingDataMap | PlainMessage | undefined, b: BindingDataMap | PlainMessage | undefined): boolean { - return proto3.util.equals(BindingDataMap, a, b); - } -} - -/** - * @generated from message flyteidl.core.UnionInfo - */ -export class UnionInfo extends Message { - /** - * @generated from field: flyteidl.core.LiteralType targetType = 1; - */ - targetType?: LiteralType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.UnionInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "targetType", kind: "message", T: LiteralType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UnionInfo { - return new UnionInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UnionInfo { - return new UnionInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UnionInfo { - return new UnionInfo().fromJsonString(jsonString, options); - } - - static equals(a: UnionInfo | PlainMessage | undefined, b: UnionInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(UnionInfo, a, b); - } -} - -/** - * Specifies either a simple value or a reference to another output. - * - * @generated from message flyteidl.core.BindingData - */ -export class BindingData extends Message { - /** - * @generated from oneof flyteidl.core.BindingData.value - */ - value: { - /** - * A simple scalar value. - * - * @generated from field: flyteidl.core.Scalar scalar = 1; - */ - value: Scalar; - case: "scalar"; - } | { - /** - * A collection of binding data. This allows nesting of binding data to any number - * of levels. - * - * @generated from field: flyteidl.core.BindingDataCollection collection = 2; - */ - value: BindingDataCollection; - case: "collection"; - } | { - /** - * References an output promised by another node. - * - * @generated from field: flyteidl.core.OutputReference promise = 3; - */ - value: OutputReference; - case: "promise"; - } | { - /** - * A map of bindings. The key is always a string. - * - * @generated from field: flyteidl.core.BindingDataMap map = 4; - */ - value: BindingDataMap; - case: "map"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * @generated from field: flyteidl.core.UnionInfo union = 5; - */ - union?: UnionInfo; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BindingData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "scalar", kind: "message", T: Scalar, oneof: "value" }, - { no: 2, name: "collection", kind: "message", T: BindingDataCollection, oneof: "value" }, - { no: 3, name: "promise", kind: "message", T: OutputReference, oneof: "value" }, - { no: 4, name: "map", kind: "message", T: BindingDataMap, oneof: "value" }, - { no: 5, name: "union", kind: "message", T: UnionInfo }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BindingData { - return new BindingData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BindingData { - return new BindingData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BindingData { - return new BindingData().fromJsonString(jsonString, options); - } - - static equals(a: BindingData | PlainMessage | undefined, b: BindingData | PlainMessage | undefined): boolean { - return proto3.util.equals(BindingData, a, b); - } -} - -/** - * An input/output binding of a variable to either static value or a node output. - * - * @generated from message flyteidl.core.Binding - */ -export class Binding extends Message { - /** - * Variable name must match an input/output variable of the node. - * - * @generated from field: string var = 1; - */ - var = ""; - - /** - * Data to use to bind this variable. - * - * @generated from field: flyteidl.core.BindingData binding = 2; - */ - binding?: BindingData; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Binding"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "binding", kind: "message", T: BindingData }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Binding { - return new Binding().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Binding { - return new Binding().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Binding { - return new Binding().fromJsonString(jsonString, options); - } - - static equals(a: Binding | PlainMessage | undefined, b: Binding | PlainMessage | undefined): boolean { - return proto3.util.equals(Binding, a, b); - } -} - -/** - * A generic key value pair. - * - * @generated from message flyteidl.core.KeyValuePair - */ -export class KeyValuePair extends Message { - /** - * required. - * - * @generated from field: string key = 1; - */ - key = ""; - - /** - * +optional. - * - * @generated from field: string value = 2; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.KeyValuePair"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): KeyValuePair { - return new KeyValuePair().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): KeyValuePair { - return new KeyValuePair().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): KeyValuePair { - return new KeyValuePair().fromJsonString(jsonString, options); - } - - static equals(a: KeyValuePair | PlainMessage | undefined, b: KeyValuePair | PlainMessage | undefined): boolean { - return proto3.util.equals(KeyValuePair, a, b); - } -} - -/** - * Retry strategy associated with an executable unit. - * - * @generated from message flyteidl.core.RetryStrategy - */ -export class RetryStrategy extends Message { - /** - * Number of retries. Retries will be consumed when the job fails with a recoverable error. - * The number of retries must be less than or equals to 10. - * - * @generated from field: uint32 retries = 5; - */ - retries = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.RetryStrategy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 5, name: "retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RetryStrategy { - return new RetryStrategy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RetryStrategy { - return new RetryStrategy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RetryStrategy { - return new RetryStrategy().fromJsonString(jsonString, options); - } - - static equals(a: RetryStrategy | PlainMessage | undefined, b: RetryStrategy | PlainMessage | undefined): boolean { - return proto3.util.equals(RetryStrategy, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts deleted file mode 100644 index e45994727e..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts +++ /dev/null @@ -1,162 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/metrics.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; -import { NodeExecutionIdentifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "./identifier_pb.js"; - -/** - * Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation - * which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more - * precise definitions. - * - * @generated from message flyteidl.core.Span - */ -export class Span extends Message { - /** - * start_time defines the instance this span began. - * - * @generated from field: google.protobuf.Timestamp start_time = 1; - */ - startTime?: Timestamp; - - /** - * end_time defines the instance this span completed. - * - * @generated from field: google.protobuf.Timestamp end_time = 2; - */ - endTime?: Timestamp; - - /** - * @generated from oneof flyteidl.core.Span.id - */ - id: { - /** - * workflow_id is the id of the workflow execution this Span represents. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - value: WorkflowExecutionIdentifier; - case: "workflowId"; - } | { - /** - * node_id is the id of the node execution this Span represents. - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - value: NodeExecutionIdentifier; - case: "nodeId"; - } | { - /** - * task_id is the id of the task execution this Span represents. - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - value: TaskExecutionIdentifier; - case: "taskId"; - } | { - /** - * operation_id is the id of a unique operation that this Span represents. - * - * @generated from field: string operation_id = 6; - */ - value: string; - case: "operationId"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * spans defines a collection of Spans that breakdown this execution. - * - * @generated from field: repeated flyteidl.core.Span spans = 7; - */ - spans: Span[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Span"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "start_time", kind: "message", T: Timestamp }, - { no: 2, name: "end_time", kind: "message", T: Timestamp }, - { no: 3, name: "workflow_id", kind: "message", T: WorkflowExecutionIdentifier, oneof: "id" }, - { no: 4, name: "node_id", kind: "message", T: NodeExecutionIdentifier, oneof: "id" }, - { no: 5, name: "task_id", kind: "message", T: TaskExecutionIdentifier, oneof: "id" }, - { no: 6, name: "operation_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "id" }, - { no: 7, name: "spans", kind: "message", T: Span, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Span { - return new Span().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Span { - return new Span().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Span { - return new Span().fromJsonString(jsonString, options); - } - - static equals(a: Span | PlainMessage | undefined, b: Span | PlainMessage | undefined): boolean { - return proto3.util.equals(Span, a, b); - } -} - -/** - * ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. - * - * @generated from message flyteidl.core.ExecutionMetricResult - */ -export class ExecutionMetricResult extends Message { - /** - * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. - * - * @generated from field: string metric = 1; - */ - metric = ""; - - /** - * The result data in prometheus range query result format - * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats. - * This may include multiple time series, differentiated by their metric labels. - * Start time is greater of (execution attempt start, 48h ago) - * End time is lesser of (execution attempt end, now) - * - * @generated from field: google.protobuf.Struct data = 2; - */ - data?: Struct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ExecutionMetricResult"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metric", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "data", kind: "message", T: Struct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionMetricResult { - return new ExecutionMetricResult().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionMetricResult { - return new ExecutionMetricResult().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExecutionMetricResult { - return new ExecutionMetricResult().fromJsonString(jsonString, options); - } - - static equals(a: ExecutionMetricResult | PlainMessage | undefined, b: ExecutionMetricResult | PlainMessage | undefined): boolean { - return proto3.util.equals(ExecutionMetricResult, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/security_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/security_pb.ts deleted file mode 100644 index 7d1ca8bbac..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/security_pb.ts +++ /dev/null @@ -1,406 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/security.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Secret encapsulates information about the secret a task needs to proceed. An environment variable - * FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if - * secrets are passed through environment variables. - * FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets - * are passed through file mounts. - * - * @generated from message flyteidl.core.Secret - */ -export class Secret extends Message { - /** - * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of - * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. - * For AWS Secret Manager, this should be the name of the secret. - * +required - * - * @generated from field: string group = 1; - */ - group = ""; - - /** - * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones - * that do not support it. - * +optional - * - * @generated from field: string group_version = 2; - */ - groupVersion = ""; - - /** - * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation - * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should - * match one of the keys inside the secret. For AWS Secret Manager, it's ignored. - * +optional - * - * @generated from field: string key = 3; - */ - key = ""; - - /** - * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail - * if the underlying key management system cannot satisfy that requirement. If not provided, the default location - * will depend on the key management system. - * +optional - * - * @generated from field: flyteidl.core.Secret.MountType mount_requirement = 4; - */ - mountRequirement = Secret_MountType.ANY; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Secret"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "group_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "mount_requirement", kind: "enum", T: proto3.getEnumType(Secret_MountType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Secret { - return new Secret().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Secret { - return new Secret().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Secret { - return new Secret().fromJsonString(jsonString, options); - } - - static equals(a: Secret | PlainMessage | undefined, b: Secret | PlainMessage | undefined): boolean { - return proto3.util.equals(Secret, a, b); - } -} - -/** - * @generated from enum flyteidl.core.Secret.MountType - */ -export enum Secret_MountType { - /** - * Default case, indicates the client can tolerate either mounting options. - * - * @generated from enum value: ANY = 0; - */ - ANY = 0, - - /** - * ENV_VAR indicates the secret needs to be mounted as an environment variable. - * - * @generated from enum value: ENV_VAR = 1; - */ - ENV_VAR = 1, - - /** - * FILE indicates the secret needs to be mounted as a file. - * - * @generated from enum value: FILE = 2; - */ - FILE = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(Secret_MountType) -proto3.util.setEnumType(Secret_MountType, "flyteidl.core.Secret.MountType", [ - { no: 0, name: "ANY" }, - { no: 1, name: "ENV_VAR" }, - { no: 2, name: "FILE" }, -]); - -/** - * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. - * - * @generated from message flyteidl.core.OAuth2Client - */ -export class OAuth2Client extends Message { - /** - * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the - * secret requested matches the client_id indicated here. - * +required - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * client_secret is a reference to the secret used to authenticate the OAuth2 client. - * +required - * - * @generated from field: flyteidl.core.Secret client_secret = 2; - */ - clientSecret?: Secret; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.OAuth2Client"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "client_secret", kind: "message", T: Secret }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2Client { - return new OAuth2Client().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2Client { - return new OAuth2Client().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OAuth2Client { - return new OAuth2Client().fromJsonString(jsonString, options); - } - - static equals(a: OAuth2Client | PlainMessage | undefined, b: OAuth2Client | PlainMessage | undefined): boolean { - return proto3.util.equals(OAuth2Client, a, b); - } -} - -/** - * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the - * right identity for the execution environment. - * - * @generated from message flyteidl.core.Identity - */ -export class Identity extends Message { - /** - * iam_role references the fully qualified name of Identity & Access Management role to impersonate. - * - * @generated from field: string iam_role = 1; - */ - iamRole = ""; - - /** - * k8s_service_account references a kubernetes service account to impersonate. - * - * @generated from field: string k8s_service_account = 2; - */ - k8sServiceAccount = ""; - - /** - * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when - * making external calls. - * - * @generated from field: flyteidl.core.OAuth2Client oauth2_client = 3; - */ - oauth2Client?: OAuth2Client; - - /** - * execution_identity references the subject who makes the execution - * - * @generated from field: string execution_identity = 4; - */ - executionIdentity = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Identity"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "iam_role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "k8s_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "oauth2_client", kind: "message", T: OAuth2Client }, - { no: 4, name: "execution_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Identity { - return new Identity().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Identity { - return new Identity().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Identity { - return new Identity().fromJsonString(jsonString, options); - } - - static equals(a: Identity | PlainMessage | undefined, b: Identity | PlainMessage | undefined): boolean { - return proto3.util.equals(Identity, a, b); - } -} - -/** - * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. - * FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if - * tokens are passed through environment variables. - * FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens - * are passed through file mounts. - * - * @generated from message flyteidl.core.OAuth2TokenRequest - */ -export class OAuth2TokenRequest extends Message { - /** - * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for - * environment variables and as a filename for mounting tokens as files. - * +required - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. - * +required - * - * @generated from field: flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - type = OAuth2TokenRequest_Type.CLIENT_CREDENTIALS; - - /** - * client references the client_id/secret to use to request the OAuth2 token. - * +required - * - * @generated from field: flyteidl.core.OAuth2Client client = 3; - */ - client?: OAuth2Client; - - /** - * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related - * information. - * +optional - * - * @generated from field: string idp_discovery_endpoint = 4; - */ - idpDiscoveryEndpoint = ""; - - /** - * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is - * mandatory. - * +optional - * - * @generated from field: string token_endpoint = 5; - */ - tokenEndpoint = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.OAuth2TokenRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(OAuth2TokenRequest_Type) }, - { no: 3, name: "client", kind: "message", T: OAuth2Client }, - { no: 4, name: "idp_discovery_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "token_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2TokenRequest { - return new OAuth2TokenRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2TokenRequest { - return new OAuth2TokenRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OAuth2TokenRequest { - return new OAuth2TokenRequest().fromJsonString(jsonString, options); - } - - static equals(a: OAuth2TokenRequest | PlainMessage | undefined, b: OAuth2TokenRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(OAuth2TokenRequest, a, b); - } -} - -/** - * Type of the token requested. - * - * @generated from enum flyteidl.core.OAuth2TokenRequest.Type - */ -export enum OAuth2TokenRequest_Type { - /** - * CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. - * - * @generated from enum value: CLIENT_CREDENTIALS = 0; - */ - CLIENT_CREDENTIALS = 0, -} -// Retrieve enum metadata with: proto3.getEnumType(OAuth2TokenRequest_Type) -proto3.util.setEnumType(OAuth2TokenRequest_Type, "flyteidl.core.OAuth2TokenRequest.Type", [ - { no: 0, name: "CLIENT_CREDENTIALS" }, -]); - -/** - * SecurityContext holds security attributes that apply to tasks. - * - * @generated from message flyteidl.core.SecurityContext - */ -export class SecurityContext extends Message { - /** - * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the - * backend plugin to choose the appropriate identity for the execution engine the task will run on. - * - * @generated from field: flyteidl.core.Identity run_as = 1; - */ - runAs?: Identity; - - /** - * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the - * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - * to the secret) and to pass it to the remote execution engine. - * - * @generated from field: repeated flyteidl.core.Secret secrets = 2; - */ - secrets: Secret[] = []; - - /** - * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the - * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - * to the secret) and to pass it to the remote execution engine. - * - * @generated from field: repeated flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - tokens: OAuth2TokenRequest[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.SecurityContext"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "run_as", kind: "message", T: Identity }, - { no: 2, name: "secrets", kind: "message", T: Secret, repeated: true }, - { no: 3, name: "tokens", kind: "message", T: OAuth2TokenRequest, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SecurityContext { - return new SecurityContext().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SecurityContext { - return new SecurityContext().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SecurityContext { - return new SecurityContext().fromJsonString(jsonString, options); - } - - static equals(a: SecurityContext | PlainMessage | undefined, b: SecurityContext | PlainMessage | undefined): boolean { - return proto3.util.equals(SecurityContext, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts deleted file mode 100644 index afd4e5f98b..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts +++ /dev/null @@ -1,1264 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/tasks.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Struct } from "@bufbuild/protobuf"; -import { KeyValuePair, RetryStrategy } from "./literals_pb.js"; -import { Identifier } from "./identifier_pb.js"; -import { TypedInterface } from "./interface_pb.js"; -import { SecurityContext } from "./security_pb.js"; - -/** - * A customizable interface to convey resources requested for a container. This can be interpreted differently for different - * container engines. - * - * @generated from message flyteidl.core.Resources - */ -export class Resources extends Message { - /** - * The desired set of resources requested. ResourceNames must be unique within the list. - * - * @generated from field: repeated flyteidl.core.Resources.ResourceEntry requests = 1; - */ - requests: Resources_ResourceEntry[] = []; - - /** - * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique - * within the list. - * - * @generated from field: repeated flyteidl.core.Resources.ResourceEntry limits = 2; - */ - limits: Resources_ResourceEntry[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Resources"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "requests", kind: "message", T: Resources_ResourceEntry, repeated: true }, - { no: 2, name: "limits", kind: "message", T: Resources_ResourceEntry, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Resources { - return new Resources().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Resources { - return new Resources().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Resources { - return new Resources().fromJsonString(jsonString, options); - } - - static equals(a: Resources | PlainMessage | undefined, b: Resources | PlainMessage | undefined): boolean { - return proto3.util.equals(Resources, a, b); - } -} - -/** - * Known resource names. - * - * @generated from enum flyteidl.core.Resources.ResourceName - */ -export enum Resources_ResourceName { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: CPU = 1; - */ - CPU = 1, - - /** - * @generated from enum value: GPU = 2; - */ - GPU = 2, - - /** - * @generated from enum value: MEMORY = 3; - */ - MEMORY = 3, - - /** - * @generated from enum value: STORAGE = 4; - */ - STORAGE = 4, - - /** - * For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. - * - * @generated from enum value: EPHEMERAL_STORAGE = 5; - */ - EPHEMERAL_STORAGE = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(Resources_ResourceName) -proto3.util.setEnumType(Resources_ResourceName, "flyteidl.core.Resources.ResourceName", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "CPU" }, - { no: 2, name: "GPU" }, - { no: 3, name: "MEMORY" }, - { no: 4, name: "STORAGE" }, - { no: 5, name: "EPHEMERAL_STORAGE" }, -]); - -/** - * Encapsulates a resource name and value. - * - * @generated from message flyteidl.core.Resources.ResourceEntry - */ -export class Resources_ResourceEntry extends Message { - /** - * Resource name. - * - * @generated from field: flyteidl.core.Resources.ResourceName name = 1; - */ - name = Resources_ResourceName.UNKNOWN; - - /** - * Value must be a valid k8s quantity. See - * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 - * - * @generated from field: string value = 2; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Resources.ResourceEntry"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "enum", T: proto3.getEnumType(Resources_ResourceName) }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Resources_ResourceEntry { - return new Resources_ResourceEntry().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Resources_ResourceEntry { - return new Resources_ResourceEntry().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Resources_ResourceEntry { - return new Resources_ResourceEntry().fromJsonString(jsonString, options); - } - - static equals(a: Resources_ResourceEntry | PlainMessage | undefined, b: Resources_ResourceEntry | PlainMessage | undefined): boolean { - return proto3.util.equals(Resources_ResourceEntry, a, b); - } -} - -/** - * Metadata associated with the GPU accelerator to allocate to a task. Contains - * information about device type, and for multi-instance GPUs, the partition size to - * use. - * - * @generated from message flyteidl.core.GPUAccelerator - */ -export class GPUAccelerator extends Message { - /** - * This can be any arbitrary string, and should be informed by the labels or taints - * associated with the nodes in question. Default cloud provider labels typically - * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. - * - * @generated from field: string device = 1; - */ - device = ""; - - /** - * @generated from oneof flyteidl.core.GPUAccelerator.partition_size_value - */ - partitionSizeValue: { - /** - * @generated from field: bool unpartitioned = 2; - */ - value: boolean; - case: "unpartitioned"; - } | { - /** - * Like `device`, this can be any arbitrary string, and should be informed by - * the labels or taints associated with the nodes in question. Default cloud - * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. - * - * @generated from field: string partition_size = 3; - */ - value: string; - case: "partitionSize"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.GPUAccelerator"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "device", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "unpartitioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "partition_size_value" }, - { no: 3, name: "partition_size", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "partition_size_value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GPUAccelerator { - return new GPUAccelerator().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GPUAccelerator { - return new GPUAccelerator().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GPUAccelerator { - return new GPUAccelerator().fromJsonString(jsonString, options); - } - - static equals(a: GPUAccelerator | PlainMessage | undefined, b: GPUAccelerator | PlainMessage | undefined): boolean { - return proto3.util.equals(GPUAccelerator, a, b); - } -} - -/** - * Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to - * allocate to a task. - * - * @generated from message flyteidl.core.ExtendedResources - */ -export class ExtendedResources extends Message { - /** - * GPU accelerator to select for task. Contains information about device type, and - * for multi-instance GPUs, the partition size to use. - * - * @generated from field: flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - gpuAccelerator?: GPUAccelerator; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ExtendedResources"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "gpu_accelerator", kind: "message", T: GPUAccelerator }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedResources { - return new ExtendedResources().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedResources { - return new ExtendedResources().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExtendedResources { - return new ExtendedResources().fromJsonString(jsonString, options); - } - - static equals(a: ExtendedResources | PlainMessage | undefined, b: ExtendedResources | PlainMessage | undefined): boolean { - return proto3.util.equals(ExtendedResources, a, b); - } -} - -/** - * Runtime information. This is loosely defined to allow for extensibility. - * - * @generated from message flyteidl.core.RuntimeMetadata - */ -export class RuntimeMetadata extends Message { - /** - * Type of runtime. - * - * @generated from field: flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - type = RuntimeMetadata_RuntimeType.OTHER; - - /** - * Version of the runtime. All versions should be backward compatible. However, certain cases call for version - * checks to ensure tighter validation or setting expectations. - * - * @generated from field: string version = 2; - */ - version = ""; - - /** - * +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). - * - * @generated from field: string flavor = 3; - */ - flavor = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.RuntimeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(RuntimeMetadata_RuntimeType) }, - { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "flavor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RuntimeMetadata { - return new RuntimeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RuntimeMetadata { - return new RuntimeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RuntimeMetadata { - return new RuntimeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: RuntimeMetadata | PlainMessage | undefined, b: RuntimeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(RuntimeMetadata, a, b); - } -} - -/** - * @generated from enum flyteidl.core.RuntimeMetadata.RuntimeType - */ -export enum RuntimeMetadata_RuntimeType { - /** - * @generated from enum value: OTHER = 0; - */ - OTHER = 0, - - /** - * @generated from enum value: FLYTE_SDK = 1; - */ - FLYTE_SDK = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(RuntimeMetadata_RuntimeType) -proto3.util.setEnumType(RuntimeMetadata_RuntimeType, "flyteidl.core.RuntimeMetadata.RuntimeType", [ - { no: 0, name: "OTHER" }, - { no: 1, name: "FLYTE_SDK" }, -]); - -/** - * Task Metadata - * - * @generated from message flyteidl.core.TaskMetadata - */ -export class TaskMetadata extends Message { - /** - * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. - * - * @generated from field: bool discoverable = 1; - */ - discoverable = false; - - /** - * Runtime information about the task. - * - * @generated from field: flyteidl.core.RuntimeMetadata runtime = 2; - */ - runtime?: RuntimeMetadata; - - /** - * The overall timeout of a task including user-triggered retries. - * - * @generated from field: google.protobuf.Duration timeout = 4; - */ - timeout?: Duration; - - /** - * Number of retries per task. - * - * @generated from field: flyteidl.core.RetryStrategy retries = 5; - */ - retries?: RetryStrategy; - - /** - * Indicates a logical version to apply to this task for the purpose of discovery. - * - * @generated from field: string discovery_version = 6; - */ - discoveryVersion = ""; - - /** - * If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers - * of the ending of support for a given task. - * - * @generated from field: string deprecated_error_message = 7; - */ - deprecatedErrorMessage = ""; - - /** - * Identify whether task is interruptible - * - * @generated from oneof flyteidl.core.TaskMetadata.interruptible_value - */ - interruptibleValue: { - /** - * @generated from field: bool interruptible = 8; - */ - value: boolean; - case: "interruptible"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work - * - * @generated from field: bool cache_serializable = 9; - */ - cacheSerializable = false; - - /** - * Indicates whether the task will generate a Deck URI when it finishes executing. - * - * @generated from field: bool generates_deck = 10; - */ - generatesDeck = false; - - /** - * Arbitrary tags that allow users and the platform to store small but arbitrary labels - * - * @generated from field: map tags = 11; - */ - tags: { [key: string]: string } = {}; - - /** - * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this - * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied - * identically as, the default PodTemplate configured in FlytePropeller. - * - * @generated from field: string pod_template_name = 12; - */ - podTemplateName = ""; - - /** - * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. - * - * @generated from field: repeated string cache_ignore_input_vars = 13; - */ - cacheIgnoreInputVars: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "discoverable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "runtime", kind: "message", T: RuntimeMetadata }, - { no: 4, name: "timeout", kind: "message", T: Duration }, - { no: 5, name: "retries", kind: "message", T: RetryStrategy }, - { no: 6, name: "discovery_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "deprecated_error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "interruptible_value" }, - { no: 9, name: "cache_serializable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 10, name: "generates_deck", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 11, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 12, name: "pod_template_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "cache_ignore_input_vars", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskMetadata { - return new TaskMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskMetadata { - return new TaskMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskMetadata { - return new TaskMetadata().fromJsonString(jsonString, options); - } - - static equals(a: TaskMetadata | PlainMessage | undefined, b: TaskMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskMetadata, a, b); - } -} - -/** - * A Task structure that uniquely identifies a task in the system - * Tasks are registered as a first step in the system. - * - * @generated from message flyteidl.core.TaskTemplate - */ -export class TaskTemplate extends Message { - /** - * Auto generated taskId by the system. Task Id uniquely identifies this task globally. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no - * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the - * implementation registered for the TaskCategory. - * - * @generated from field: string type = 2; - */ - type = ""; - - /** - * Extra metadata about the task. - * - * @generated from field: flyteidl.core.TaskMetadata metadata = 3; - */ - metadata?: TaskMetadata; - - /** - * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees - * compile-time validation of the workflow to avoid costly runtime failures. - * - * @generated from field: flyteidl.core.TypedInterface interface = 4; - */ - interface?: TypedInterface; - - /** - * Custom data about the task. This is extensible to allow various plugins in the system. - * - * @generated from field: google.protobuf.Struct custom = 5; - */ - custom?: Struct; - - /** - * Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - * If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - * handlers. - * - * @generated from oneof flyteidl.core.TaskTemplate.target - */ - target: { - /** - * @generated from field: flyteidl.core.Container container = 6; - */ - value: Container; - case: "container"; - } | { - /** - * @generated from field: flyteidl.core.K8sPod k8s_pod = 17; - */ - value: K8sPod; - case: "k8sPod"; - } | { - /** - * @generated from field: flyteidl.core.Sql sql = 18; - */ - value: Sql; - case: "sql"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * This can be used to customize task handling at execution time for the same task type. - * - * @generated from field: int32 task_type_version = 7; - */ - taskTypeVersion = 0; - - /** - * security_context encapsulates security attributes requested to run this task. - * - * @generated from field: flyteidl.core.SecurityContext security_context = 8; - */ - securityContext?: SecurityContext; - - /** - * Encapsulates all non-standard resources, not captured by - * v1.ResourceRequirements, to allocate to a task. - * - * @generated from field: flyteidl.core.ExtendedResources extended_resources = 9; - */ - extendedResources?: ExtendedResources; - - /** - * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system - * to use as required. - * reserve the field numbers 1 through 15 for very frequently occurring message elements - * - * @generated from field: map config = 16; - */ - config: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskTemplate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "metadata", kind: "message", T: TaskMetadata }, - { no: 4, name: "interface", kind: "message", T: TypedInterface }, - { no: 5, name: "custom", kind: "message", T: Struct }, - { no: 6, name: "container", kind: "message", T: Container, oneof: "target" }, - { no: 17, name: "k8s_pod", kind: "message", T: K8sPod, oneof: "target" }, - { no: 18, name: "sql", kind: "message", T: Sql, oneof: "target" }, - { no: 7, name: "task_type_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 8, name: "security_context", kind: "message", T: SecurityContext }, - { no: 9, name: "extended_resources", kind: "message", T: ExtendedResources }, - { no: 16, name: "config", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskTemplate { - return new TaskTemplate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskTemplate { - return new TaskTemplate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskTemplate { - return new TaskTemplate().fromJsonString(jsonString, options); - } - - static equals(a: TaskTemplate | PlainMessage | undefined, b: TaskTemplate | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskTemplate, a, b); - } -} - -/** - * Defines port properties for a container. - * - * @generated from message flyteidl.core.ContainerPort - */ -export class ContainerPort extends Message { - /** - * Number of port to expose on the pod's IP address. - * This must be a valid port number, 0 < x < 65536. - * - * @generated from field: uint32 container_port = 1; - */ - containerPort = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ContainerPort"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "container_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ContainerPort { - return new ContainerPort().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ContainerPort { - return new ContainerPort().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ContainerPort { - return new ContainerPort().fromJsonString(jsonString, options); - } - - static equals(a: ContainerPort | PlainMessage | undefined, b: ContainerPort | PlainMessage | undefined): boolean { - return proto3.util.equals(ContainerPort, a, b); - } -} - -/** - * @generated from message flyteidl.core.Container - */ -export class Container extends Message { - /** - * Container image url. Eg: docker/redis:latest - * - * @generated from field: string image = 1; - */ - image = ""; - - /** - * Command to be executed, if not provided, the default entrypoint in the container image will be used. - * - * @generated from field: repeated string command = 2; - */ - command: string[] = []; - - /** - * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still - * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the - * system will populate these before executing the container. - * - * @generated from field: repeated string args = 3; - */ - args: string[] = []; - - /** - * Container resources requirement as specified by the container engine. - * - * @generated from field: flyteidl.core.Resources resources = 4; - */ - resources?: Resources; - - /** - * Environment variables will be set as the container is starting up. - * - * @generated from field: repeated flyteidl.core.KeyValuePair env = 5; - */ - env: KeyValuePair[] = []; - - /** - * Allows extra configs to be available for the container. - * TODO: elaborate on how configs will become available. - * Deprecated, please use TaskTemplate.config instead. - * - * @generated from field: repeated flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - * @deprecated - */ - config: KeyValuePair[] = []; - - /** - * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but - * not supported on AWS Batch) - * Only K8s - * - * @generated from field: repeated flyteidl.core.ContainerPort ports = 7; - */ - ports: ContainerPort[] = []; - - /** - * BETA: Optional configuration for DataLoading. If not specified, then default values are used. - * This makes it possible to to run a completely portable container, that uses inputs and outputs - * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. - * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - * to understand the default paths. - * Only K8s - * - * @generated from field: flyteidl.core.DataLoadingConfig data_config = 9; - */ - dataConfig?: DataLoadingConfig; - - /** - * @generated from field: flyteidl.core.Container.Architecture architecture = 10; - */ - architecture = Container_Architecture.UNKNOWN; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Container"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 3, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "resources", kind: "message", T: Resources }, - { no: 5, name: "env", kind: "message", T: KeyValuePair, repeated: true }, - { no: 6, name: "config", kind: "message", T: KeyValuePair, repeated: true }, - { no: 7, name: "ports", kind: "message", T: ContainerPort, repeated: true }, - { no: 9, name: "data_config", kind: "message", T: DataLoadingConfig }, - { no: 10, name: "architecture", kind: "enum", T: proto3.getEnumType(Container_Architecture) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Container { - return new Container().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Container { - return new Container().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Container { - return new Container().fromJsonString(jsonString, options); - } - - static equals(a: Container | PlainMessage | undefined, b: Container | PlainMessage | undefined): boolean { - return proto3.util.equals(Container, a, b); - } -} - -/** - * Architecture-type the container image supports. - * - * @generated from enum flyteidl.core.Container.Architecture - */ -export enum Container_Architecture { - /** - * @generated from enum value: UNKNOWN = 0; - */ - UNKNOWN = 0, - - /** - * @generated from enum value: AMD64 = 1; - */ - AMD64 = 1, - - /** - * @generated from enum value: ARM64 = 2; - */ - ARM64 = 2, - - /** - * @generated from enum value: ARM_V6 = 3; - */ - ARM_V6 = 3, - - /** - * @generated from enum value: ARM_V7 = 4; - */ - ARM_V7 = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(Container_Architecture) -proto3.util.setEnumType(Container_Architecture, "flyteidl.core.Container.Architecture", [ - { no: 0, name: "UNKNOWN" }, - { no: 1, name: "AMD64" }, - { no: 2, name: "ARM64" }, - { no: 3, name: "ARM_V6" }, - { no: 4, name: "ARM_V7" }, -]); - -/** - * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) - * - * @generated from message flyteidl.core.IOStrategy - */ -export class IOStrategy extends Message { - /** - * Mode to use to manage downloads - * - * @generated from field: flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - downloadMode = IOStrategy_DownloadMode.DOWNLOAD_EAGER; - - /** - * Mode to use to manage uploads - * - * @generated from field: flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - uploadMode = IOStrategy_UploadMode.UPLOAD_ON_EXIT; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.IOStrategy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "download_mode", kind: "enum", T: proto3.getEnumType(IOStrategy_DownloadMode) }, - { no: 2, name: "upload_mode", kind: "enum", T: proto3.getEnumType(IOStrategy_UploadMode) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IOStrategy { - return new IOStrategy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IOStrategy { - return new IOStrategy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IOStrategy { - return new IOStrategy().fromJsonString(jsonString, options); - } - - static equals(a: IOStrategy | PlainMessage | undefined, b: IOStrategy | PlainMessage | undefined): boolean { - return proto3.util.equals(IOStrategy, a, b); - } -} - -/** - * Mode to use for downloading - * - * @generated from enum flyteidl.core.IOStrategy.DownloadMode - */ -export enum IOStrategy_DownloadMode { - /** - * All data will be downloaded before the main container is executed - * - * @generated from enum value: DOWNLOAD_EAGER = 0; - */ - DOWNLOAD_EAGER = 0, - - /** - * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - * - * @generated from enum value: DOWNLOAD_STREAM = 1; - */ - DOWNLOAD_STREAM = 1, - - /** - * Large objects (offloaded) will not be downloaded - * - * @generated from enum value: DO_NOT_DOWNLOAD = 2; - */ - DO_NOT_DOWNLOAD = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(IOStrategy_DownloadMode) -proto3.util.setEnumType(IOStrategy_DownloadMode, "flyteidl.core.IOStrategy.DownloadMode", [ - { no: 0, name: "DOWNLOAD_EAGER" }, - { no: 1, name: "DOWNLOAD_STREAM" }, - { no: 2, name: "DO_NOT_DOWNLOAD" }, -]); - -/** - * Mode to use for uploading - * - * @generated from enum flyteidl.core.IOStrategy.UploadMode - */ -export enum IOStrategy_UploadMode { - /** - * All data will be uploaded after the main container exits - * - * @generated from enum value: UPLOAD_ON_EXIT = 0; - */ - UPLOAD_ON_EXIT = 0, - - /** - * Data will be uploaded as it appears. Refer to protocol specification for details - * - * @generated from enum value: UPLOAD_EAGER = 1; - */ - UPLOAD_EAGER = 1, - - /** - * Data will not be uploaded, only references will be written - * - * @generated from enum value: DO_NOT_UPLOAD = 2; - */ - DO_NOT_UPLOAD = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(IOStrategy_UploadMode) -proto3.util.setEnumType(IOStrategy_UploadMode, "flyteidl.core.IOStrategy.UploadMode", [ - { no: 0, name: "UPLOAD_ON_EXIT" }, - { no: 1, name: "UPLOAD_EAGER" }, - { no: 2, name: "DO_NOT_UPLOAD" }, -]); - -/** - * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. - * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path - * Any outputs generated by the user container - within output_path are automatically uploaded. - * - * @generated from message flyteidl.core.DataLoadingConfig - */ -export class DataLoadingConfig extends Message { - /** - * Flag enables DataLoading Config. If this is not set, data loading will not be used! - * - * @generated from field: bool enabled = 1; - */ - enabled = false; - - /** - * File system path (start at root). This folder will contain all the inputs exploded to a separate file. - * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like - * /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations - * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format - * /var/flyte/inputs/y -> Y is a file in Binary format - * /var/flyte/inputs/z/... -> Note Z itself is a directory - * More information about the protocol - refer to docs #TODO reference docs here - * - * @generated from field: string input_path = 2; - */ - inputPath = ""; - - /** - * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file - * - * @generated from field: string output_path = 3; - */ - outputPath = ""; - - /** - * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. - * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding - * - * @generated from field: flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - format = DataLoadingConfig_LiteralMapFormat.JSON; - - /** - * @generated from field: flyteidl.core.IOStrategy io_strategy = 5; - */ - ioStrategy?: IOStrategy; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.DataLoadingConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 2, name: "input_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "output_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "format", kind: "enum", T: proto3.getEnumType(DataLoadingConfig_LiteralMapFormat) }, - { no: 5, name: "io_strategy", kind: "message", T: IOStrategy }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DataLoadingConfig { - return new DataLoadingConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DataLoadingConfig { - return new DataLoadingConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DataLoadingConfig { - return new DataLoadingConfig().fromJsonString(jsonString, options); - } - - static equals(a: DataLoadingConfig | PlainMessage | undefined, b: DataLoadingConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(DataLoadingConfig, a, b); - } -} - -/** - * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. - * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. - * JSON and YAML do not need any protobuf definitions to read it - * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) - * - * @generated from enum flyteidl.core.DataLoadingConfig.LiteralMapFormat - */ -export enum DataLoadingConfig_LiteralMapFormat { - /** - * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html - * - * @generated from enum value: JSON = 0; - */ - JSON = 0, - - /** - * @generated from enum value: YAML = 1; - */ - YAML = 1, - - /** - * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core - * - * @generated from enum value: PROTO = 2; - */ - PROTO = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(DataLoadingConfig_LiteralMapFormat) -proto3.util.setEnumType(DataLoadingConfig_LiteralMapFormat, "flyteidl.core.DataLoadingConfig.LiteralMapFormat", [ - { no: 0, name: "JSON" }, - { no: 1, name: "YAML" }, - { no: 2, name: "PROTO" }, -]); - -/** - * Defines a pod spec and additional pod metadata that is created when a task is executed. - * - * @generated from message flyteidl.core.K8sPod - */ -export class K8sPod extends Message { - /** - * Contains additional metadata for building a kubernetes pod. - * - * @generated from field: flyteidl.core.K8sObjectMetadata metadata = 1; - */ - metadata?: K8sObjectMetadata; - - /** - * Defines the primary pod spec created when a task is executed. - * This should be a JSON-marshalled pod spec, which can be defined in - * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 - * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py - * - * @generated from field: google.protobuf.Struct pod_spec = 2; - */ - podSpec?: Struct; - - /** - * BETA: Optional configuration for DataLoading. If not specified, then default values are used. - * This makes it possible to to run a completely portable container, that uses inputs and outputs - * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. - * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - * to understand the default paths. - * Only K8s - * - * @generated from field: flyteidl.core.DataLoadingConfig data_config = 3; - */ - dataConfig?: DataLoadingConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.K8sPod"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "metadata", kind: "message", T: K8sObjectMetadata }, - { no: 2, name: "pod_spec", kind: "message", T: Struct }, - { no: 3, name: "data_config", kind: "message", T: DataLoadingConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): K8sPod { - return new K8sPod().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): K8sPod { - return new K8sPod().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): K8sPod { - return new K8sPod().fromJsonString(jsonString, options); - } - - static equals(a: K8sPod | PlainMessage | undefined, b: K8sPod | PlainMessage | undefined): boolean { - return proto3.util.equals(K8sPod, a, b); - } -} - -/** - * Metadata for building a kubernetes object when a task is executed. - * - * @generated from message flyteidl.core.K8sObjectMetadata - */ -export class K8sObjectMetadata extends Message { - /** - * Optional labels to add to the pod definition. - * - * @generated from field: map labels = 1; - */ - labels: { [key: string]: string } = {}; - - /** - * Optional annotations to add to the pod definition. - * - * @generated from field: map annotations = 2; - */ - annotations: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.K8sObjectMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 2, name: "annotations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): K8sObjectMetadata { - return new K8sObjectMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): K8sObjectMetadata { - return new K8sObjectMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): K8sObjectMetadata { - return new K8sObjectMetadata().fromJsonString(jsonString, options); - } - - static equals(a: K8sObjectMetadata | PlainMessage | undefined, b: K8sObjectMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(K8sObjectMetadata, a, b); - } -} - -/** - * Sql represents a generic sql workload with a statement and dialect. - * - * @generated from message flyteidl.core.Sql - */ -export class Sql extends Message { - /** - * The actual query to run, the query can have templated parameters. - * We use Flyte's Golang templating format for Query templating. - * Refer to the templating documentation. - * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py - * For example, - * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet - * select * - * from my_table - * where ds = '{{ .Inputs.ds }}' - * - * @generated from field: string statement = 1; - */ - statement = ""; - - /** - * @generated from field: flyteidl.core.Sql.Dialect dialect = 2; - */ - dialect = Sql_Dialect.UNDEFINED; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Sql"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "statement", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "dialect", kind: "enum", T: proto3.getEnumType(Sql_Dialect) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Sql { - return new Sql().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Sql { - return new Sql().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Sql { - return new Sql().fromJsonString(jsonString, options); - } - - static equals(a: Sql | PlainMessage | undefined, b: Sql | PlainMessage | undefined): boolean { - return proto3.util.equals(Sql, a, b); - } -} - -/** - * The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid - * expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. - * We support the following dialect: ansi, hive. - * - * @generated from enum flyteidl.core.Sql.Dialect - */ -export enum Sql_Dialect { - /** - * @generated from enum value: UNDEFINED = 0; - */ - UNDEFINED = 0, - - /** - * @generated from enum value: ANSI = 1; - */ - ANSI = 1, - - /** - * @generated from enum value: HIVE = 2; - */ - HIVE = 2, - - /** - * @generated from enum value: OTHER = 3; - */ - OTHER = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(Sql_Dialect) -proto3.util.setEnumType(Sql_Dialect, "flyteidl.core.Sql.Dialect", [ - { no: 0, name: "UNDEFINED" }, - { no: 1, name: "ANSI" }, - { no: 2, name: "HIVE" }, - { no: 3, name: "OTHER" }, -]); - diff --git a/flyteidl/gen/pb-es/flyteidl/core/types_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/types_pb.ts deleted file mode 100644 index f311fa0692..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/types_pb.ts +++ /dev/null @@ -1,875 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/types.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Struct } from "@bufbuild/protobuf"; - -/** - * Define a set of simple types. - * - * @generated from enum flyteidl.core.SimpleType - */ -export enum SimpleType { - /** - * @generated from enum value: NONE = 0; - */ - NONE = 0, - - /** - * @generated from enum value: INTEGER = 1; - */ - INTEGER = 1, - - /** - * @generated from enum value: FLOAT = 2; - */ - FLOAT = 2, - - /** - * @generated from enum value: STRING = 3; - */ - STRING = 3, - - /** - * @generated from enum value: BOOLEAN = 4; - */ - BOOLEAN = 4, - - /** - * @generated from enum value: DATETIME = 5; - */ - DATETIME = 5, - - /** - * @generated from enum value: DURATION = 6; - */ - DURATION = 6, - - /** - * @generated from enum value: BINARY = 7; - */ - BINARY = 7, - - /** - * @generated from enum value: ERROR = 8; - */ - ERROR = 8, - - /** - * @generated from enum value: STRUCT = 9; - */ - STRUCT = 9, -} -// Retrieve enum metadata with: proto3.getEnumType(SimpleType) -proto3.util.setEnumType(SimpleType, "flyteidl.core.SimpleType", [ - { no: 0, name: "NONE" }, - { no: 1, name: "INTEGER" }, - { no: 2, name: "FLOAT" }, - { no: 3, name: "STRING" }, - { no: 4, name: "BOOLEAN" }, - { no: 5, name: "DATETIME" }, - { no: 6, name: "DURATION" }, - { no: 7, name: "BINARY" }, - { no: 8, name: "ERROR" }, - { no: 9, name: "STRUCT" }, -]); - -/** - * Defines schema columns and types to strongly type-validate schemas interoperability. - * - * @generated from message flyteidl.core.SchemaType - */ -export class SchemaType extends Message { - /** - * A list of ordered columns this schema comprises of. - * - * @generated from field: repeated flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - columns: SchemaType_SchemaColumn[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.SchemaType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 3, name: "columns", kind: "message", T: SchemaType_SchemaColumn, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SchemaType { - return new SchemaType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SchemaType { - return new SchemaType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SchemaType { - return new SchemaType().fromJsonString(jsonString, options); - } - - static equals(a: SchemaType | PlainMessage | undefined, b: SchemaType | PlainMessage | undefined): boolean { - return proto3.util.equals(SchemaType, a, b); - } -} - -/** - * @generated from message flyteidl.core.SchemaType.SchemaColumn - */ -export class SchemaType_SchemaColumn extends Message { - /** - * A unique name -within the schema type- for the column - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * The column type. This allows a limited set of types currently. - * - * @generated from field: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - type = SchemaType_SchemaColumn_SchemaColumnType.INTEGER; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.SchemaType.SchemaColumn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(SchemaType_SchemaColumn_SchemaColumnType) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SchemaType_SchemaColumn { - return new SchemaType_SchemaColumn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SchemaType_SchemaColumn { - return new SchemaType_SchemaColumn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SchemaType_SchemaColumn { - return new SchemaType_SchemaColumn().fromJsonString(jsonString, options); - } - - static equals(a: SchemaType_SchemaColumn | PlainMessage | undefined, b: SchemaType_SchemaColumn | PlainMessage | undefined): boolean { - return proto3.util.equals(SchemaType_SchemaColumn, a, b); - } -} - -/** - * @generated from enum flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType - */ -export enum SchemaType_SchemaColumn_SchemaColumnType { - /** - * @generated from enum value: INTEGER = 0; - */ - INTEGER = 0, - - /** - * @generated from enum value: FLOAT = 1; - */ - FLOAT = 1, - - /** - * @generated from enum value: STRING = 2; - */ - STRING = 2, - - /** - * @generated from enum value: BOOLEAN = 3; - */ - BOOLEAN = 3, - - /** - * @generated from enum value: DATETIME = 4; - */ - DATETIME = 4, - - /** - * @generated from enum value: DURATION = 5; - */ - DURATION = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(SchemaType_SchemaColumn_SchemaColumnType) -proto3.util.setEnumType(SchemaType_SchemaColumn_SchemaColumnType, "flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType", [ - { no: 0, name: "INTEGER" }, - { no: 1, name: "FLOAT" }, - { no: 2, name: "STRING" }, - { no: 3, name: "BOOLEAN" }, - { no: 4, name: "DATETIME" }, - { no: 5, name: "DURATION" }, -]); - -/** - * @generated from message flyteidl.core.StructuredDatasetType - */ -export class StructuredDatasetType extends Message { - /** - * A list of ordered columns this schema comprises of. - * - * @generated from field: repeated flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - columns: StructuredDatasetType_DatasetColumn[] = []; - - /** - * This is the storage format, the format of the bits at rest - * parquet, feather, csv, etc. - * For two types to be compatible, the format will need to be an exact match. - * - * @generated from field: string format = 2; - */ - format = ""; - - /** - * This is a string representing the type that the bytes in external_schema_bytes are formatted in. - * This is an optional field that will not be used for type checking. - * - * @generated from field: string external_schema_type = 3; - */ - externalSchemaType = ""; - - /** - * The serialized bytes of a third-party schema library like Arrow. - * This is an optional field that will not be used for type checking. - * - * @generated from field: bytes external_schema_bytes = 4; - */ - externalSchemaBytes = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.StructuredDatasetType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "columns", kind: "message", T: StructuredDatasetType_DatasetColumn, repeated: true }, - { no: 2, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "external_schema_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "external_schema_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDatasetType { - return new StructuredDatasetType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDatasetType { - return new StructuredDatasetType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StructuredDatasetType { - return new StructuredDatasetType().fromJsonString(jsonString, options); - } - - static equals(a: StructuredDatasetType | PlainMessage | undefined, b: StructuredDatasetType | PlainMessage | undefined): boolean { - return proto3.util.equals(StructuredDatasetType, a, b); - } -} - -/** - * @generated from message flyteidl.core.StructuredDatasetType.DatasetColumn - */ -export class StructuredDatasetType_DatasetColumn extends Message { - /** - * A unique name within the schema type for the column. - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * The column type. - * - * @generated from field: flyteidl.core.LiteralType literal_type = 2; - */ - literalType?: LiteralType; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.StructuredDatasetType.DatasetColumn"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "literal_type", kind: "message", T: LiteralType }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDatasetType_DatasetColumn { - return new StructuredDatasetType_DatasetColumn().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDatasetType_DatasetColumn { - return new StructuredDatasetType_DatasetColumn().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): StructuredDatasetType_DatasetColumn { - return new StructuredDatasetType_DatasetColumn().fromJsonString(jsonString, options); - } - - static equals(a: StructuredDatasetType_DatasetColumn | PlainMessage | undefined, b: StructuredDatasetType_DatasetColumn | PlainMessage | undefined): boolean { - return proto3.util.equals(StructuredDatasetType_DatasetColumn, a, b); - } -} - -/** - * Defines type behavior for blob objects - * - * @generated from message flyteidl.core.BlobType - */ -export class BlobType extends Message { - /** - * Format can be a free form string understood by SDK/UI etc like - * csv, parquet etc - * - * @generated from field: string format = 1; - */ - format = ""; - - /** - * @generated from field: flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - dimensionality = BlobType_BlobDimensionality.SINGLE; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BlobType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "dimensionality", kind: "enum", T: proto3.getEnumType(BlobType_BlobDimensionality) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BlobType { - return new BlobType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BlobType { - return new BlobType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BlobType { - return new BlobType().fromJsonString(jsonString, options); - } - - static equals(a: BlobType | PlainMessage | undefined, b: BlobType | PlainMessage | undefined): boolean { - return proto3.util.equals(BlobType, a, b); - } -} - -/** - * @generated from enum flyteidl.core.BlobType.BlobDimensionality - */ -export enum BlobType_BlobDimensionality { - /** - * @generated from enum value: SINGLE = 0; - */ - SINGLE = 0, - - /** - * @generated from enum value: MULTIPART = 1; - */ - MULTIPART = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(BlobType_BlobDimensionality) -proto3.util.setEnumType(BlobType_BlobDimensionality, "flyteidl.core.BlobType.BlobDimensionality", [ - { no: 0, name: "SINGLE" }, - { no: 1, name: "MULTIPART" }, -]); - -/** - * Enables declaring enum types, with predefined string values - * For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish - * To provide no defaults, make the first value as undefined. - * - * @generated from message flyteidl.core.EnumType - */ -export class EnumType extends Message { - /** - * Predefined set of enum values. - * - * @generated from field: repeated string values = 1; - */ - values: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.EnumType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EnumType { - return new EnumType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EnumType { - return new EnumType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EnumType { - return new EnumType().fromJsonString(jsonString, options); - } - - static equals(a: EnumType | PlainMessage | undefined, b: EnumType | PlainMessage | undefined): boolean { - return proto3.util.equals(EnumType, a, b); - } -} - -/** - * Defines a tagged union type, also known as a variant (and formally as the sum type). - * - * A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag - * A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by - * storing the varaint's tag with the literal value and can be examined in runtime. - * - * Type S is typically written as - * S := Apple A | Banana B | Cantaloupe C | ... - * - * Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: - * Optional X := X | Null - * - * See also: https://en.wikipedia.org/wiki/Tagged_union - * - * @generated from message flyteidl.core.UnionType - */ -export class UnionType extends Message { - /** - * Predefined set of variants in union. - * - * @generated from field: repeated flyteidl.core.LiteralType variants = 1; - */ - variants: LiteralType[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.UnionType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "variants", kind: "message", T: LiteralType, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UnionType { - return new UnionType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UnionType { - return new UnionType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UnionType { - return new UnionType().fromJsonString(jsonString, options); - } - - static equals(a: UnionType | PlainMessage | undefined, b: UnionType | PlainMessage | undefined): boolean { - return proto3.util.equals(UnionType, a, b); - } -} - -/** - * Hints to improve type matching - * e.g. allows distinguishing output from custom type transformers - * even if the underlying IDL serialization matches. - * - * @generated from message flyteidl.core.TypeStructure - */ -export class TypeStructure extends Message { - /** - * Must exactly match for types to be castable - * - * @generated from field: string tag = 1; - */ - tag = ""; - - /** - * dataclass_type only exists for dataclasses. - * This is used to resolve the type of the fields of dataclass - * The key is the field name, and the value is the literal type of the field - * e.g. For dataclass Foo, with fields a, and a is a string - * Foo.a will be resolved as a literal type of string from dataclass_type - * - * @generated from field: map dataclass_type = 2; - */ - dataclassType: { [key: string]: LiteralType } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TypeStructure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "dataclass_type", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: LiteralType} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TypeStructure { - return new TypeStructure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TypeStructure { - return new TypeStructure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TypeStructure { - return new TypeStructure().fromJsonString(jsonString, options); - } - - static equals(a: TypeStructure | PlainMessage | undefined, b: TypeStructure | PlainMessage | undefined): boolean { - return proto3.util.equals(TypeStructure, a, b); - } -} - -/** - * TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. - * - * @generated from message flyteidl.core.TypeAnnotation - */ -export class TypeAnnotation extends Message { - /** - * A arbitrary JSON payload to describe a type. - * - * @generated from field: google.protobuf.Struct annotations = 1; - */ - annotations?: Struct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TypeAnnotation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "annotations", kind: "message", T: Struct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TypeAnnotation { - return new TypeAnnotation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TypeAnnotation { - return new TypeAnnotation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TypeAnnotation { - return new TypeAnnotation().fromJsonString(jsonString, options); - } - - static equals(a: TypeAnnotation | PlainMessage | undefined, b: TypeAnnotation | PlainMessage | undefined): boolean { - return proto3.util.equals(TypeAnnotation, a, b); - } -} - -/** - * Defines a strong type to allow type checking between interfaces. - * - * @generated from message flyteidl.core.LiteralType - */ -export class LiteralType extends Message { - /** - * @generated from oneof flyteidl.core.LiteralType.type - */ - type: { - /** - * A simple type that can be compared one-to-one with another. - * - * @generated from field: flyteidl.core.SimpleType simple = 1; - */ - value: SimpleType; - case: "simple"; - } | { - /** - * A complex type that requires matching of inner fields. - * - * @generated from field: flyteidl.core.SchemaType schema = 2; - */ - value: SchemaType; - case: "schema"; - } | { - /** - * Defines the type of the value of a collection. Only homogeneous collections are allowed. - * - * @generated from field: flyteidl.core.LiteralType collection_type = 3; - */ - value: LiteralType; - case: "collectionType"; - } | { - /** - * Defines the type of the value of a map type. The type of the key is always a string. - * - * @generated from field: flyteidl.core.LiteralType map_value_type = 4; - */ - value: LiteralType; - case: "mapValueType"; - } | { - /** - * A blob might have specialized implementation details depending on associated metadata. - * - * @generated from field: flyteidl.core.BlobType blob = 5; - */ - value: BlobType; - case: "blob"; - } | { - /** - * Defines an enum with pre-defined string values. - * - * @generated from field: flyteidl.core.EnumType enum_type = 7; - */ - value: EnumType; - case: "enumType"; - } | { - /** - * Generalized schema support - * - * @generated from field: flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - value: StructuredDatasetType; - case: "structuredDatasetType"; - } | { - /** - * Defines an union type with pre-defined LiteralTypes. - * - * @generated from field: flyteidl.core.UnionType union_type = 10; - */ - value: UnionType; - case: "unionType"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by - * consumers to identify special behavior or display extended information for the type. - * - * @generated from field: google.protobuf.Struct metadata = 6; - */ - metadata?: Struct; - - /** - * This field contains arbitrary data that might have special semantic - * meaning for the client but does not effect internal flyte behavior. - * - * @generated from field: flyteidl.core.TypeAnnotation annotation = 9; - */ - annotation?: TypeAnnotation; - - /** - * Hints to improve type matching. - * - * @generated from field: flyteidl.core.TypeStructure structure = 11; - */ - structure?: TypeStructure; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.LiteralType"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "simple", kind: "enum", T: proto3.getEnumType(SimpleType), oneof: "type" }, - { no: 2, name: "schema", kind: "message", T: SchemaType, oneof: "type" }, - { no: 3, name: "collection_type", kind: "message", T: LiteralType, oneof: "type" }, - { no: 4, name: "map_value_type", kind: "message", T: LiteralType, oneof: "type" }, - { no: 5, name: "blob", kind: "message", T: BlobType, oneof: "type" }, - { no: 7, name: "enum_type", kind: "message", T: EnumType, oneof: "type" }, - { no: 8, name: "structured_dataset_type", kind: "message", T: StructuredDatasetType, oneof: "type" }, - { no: 10, name: "union_type", kind: "message", T: UnionType, oneof: "type" }, - { no: 6, name: "metadata", kind: "message", T: Struct }, - { no: 9, name: "annotation", kind: "message", T: TypeAnnotation }, - { no: 11, name: "structure", kind: "message", T: TypeStructure }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LiteralType { - return new LiteralType().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LiteralType { - return new LiteralType().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LiteralType { - return new LiteralType().fromJsonString(jsonString, options); - } - - static equals(a: LiteralType | PlainMessage | undefined, b: LiteralType | PlainMessage | undefined): boolean { - return proto3.util.equals(LiteralType, a, b); - } -} - -/** - * A reference to an output produced by a node. The type can be retrieved -and validated- from - * the underlying interface of the node. - * - * @generated from message flyteidl.core.OutputReference - */ -export class OutputReference extends Message { - /** - * Node id must exist at the graph layer. - * - * @generated from field: string node_id = 1; - */ - nodeId = ""; - - /** - * Variable name must refer to an output variable for the node. - * - * @generated from field: string var = 2; - */ - var = ""; - - /** - * @generated from field: repeated flyteidl.core.PromiseAttribute attr_path = 3; - */ - attrPath: PromiseAttribute[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.OutputReference"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "attr_path", kind: "message", T: PromiseAttribute, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OutputReference { - return new OutputReference().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OutputReference { - return new OutputReference().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OutputReference { - return new OutputReference().fromJsonString(jsonString, options); - } - - static equals(a: OutputReference | PlainMessage | undefined, b: OutputReference | PlainMessage | undefined): boolean { - return proto3.util.equals(OutputReference, a, b); - } -} - -/** - * @generated from message flyteidl.core.PromiseAttribute - */ -export class PromiseAttribute extends Message { - /** - * @generated from oneof flyteidl.core.PromiseAttribute.value - */ - value: { - /** - * @generated from field: string string_value = 1; - */ - value: string; - case: "stringValue"; - } | { - /** - * @generated from field: int32 int_value = 2; - */ - value: number; - case: "intValue"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.PromiseAttribute"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, - { no: 2, name: "int_value", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PromiseAttribute { - return new PromiseAttribute().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PromiseAttribute { - return new PromiseAttribute().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PromiseAttribute { - return new PromiseAttribute().fromJsonString(jsonString, options); - } - - static equals(a: PromiseAttribute | PlainMessage | undefined, b: PromiseAttribute | PlainMessage | undefined): boolean { - return proto3.util.equals(PromiseAttribute, a, b); - } -} - -/** - * Represents an error thrown from a node. - * - * @generated from message flyteidl.core.Error - */ -export class Error extends Message { - /** - * The node id that threw the error. - * - * @generated from field: string failed_node_id = 1; - */ - failedNodeId = ""; - - /** - * Error message thrown. - * - * @generated from field: string message = 2; - */ - message = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Error"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "failed_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Error { - return new Error().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Error { - return new Error().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Error { - return new Error().fromJsonString(jsonString, options); - } - - static equals(a: Error | PlainMessage | undefined, b: Error | PlainMessage | undefined): boolean { - return proto3.util.equals(Error, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts deleted file mode 100644 index 7a550181f0..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts +++ /dev/null @@ -1,60 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/workflow_closure.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { WorkflowTemplate } from "./workflow_pb.js"; -import { TaskTemplate } from "./tasks_pb.js"; - -/** - * Defines an enclosed package of workflow and tasks it references. - * - * @generated from message flyteidl.core.WorkflowClosure - */ -export class WorkflowClosure extends Message { - /** - * required. Workflow template. - * - * @generated from field: flyteidl.core.WorkflowTemplate workflow = 1; - */ - workflow?: WorkflowTemplate; - - /** - * optional. A collection of tasks referenced by the workflow. Only needed if the workflow - * references tasks. - * - * @generated from field: repeated flyteidl.core.TaskTemplate tasks = 2; - */ - tasks: TaskTemplate[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowClosure"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workflow", kind: "message", T: WorkflowTemplate }, - { no: 2, name: "tasks", kind: "message", T: TaskTemplate, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowClosure { - return new WorkflowClosure().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowClosure { - return new WorkflowClosure().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowClosure { - return new WorkflowClosure().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowClosure | PlainMessage | undefined, b: WorkflowClosure | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowClosure, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts deleted file mode 100644 index 644f792e63..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts +++ /dev/null @@ -1,1209 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/core/workflow.proto (package flyteidl.core, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3 } from "@bufbuild/protobuf"; -import { BooleanExpression } from "./condition_pb.js"; -import { Error, LiteralType } from "./types_pb.js"; -import { Identifier } from "./identifier_pb.js"; -import { Binding, LiteralMap, RetryStrategy } from "./literals_pb.js"; -import { QualityOfService } from "./execution_pb.js"; -import { TypedInterface } from "./interface_pb.js"; -import { ExtendedResources, Resources } from "./tasks_pb.js"; - -/** - * Defines a condition and the execution unit that should be executed if the condition is satisfied. - * - * @generated from message flyteidl.core.IfBlock - */ -export class IfBlock extends Message { - /** - * @generated from field: flyteidl.core.BooleanExpression condition = 1; - */ - condition?: BooleanExpression; - - /** - * @generated from field: flyteidl.core.Node then_node = 2; - */ - thenNode?: Node; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.IfBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "condition", kind: "message", T: BooleanExpression }, - { no: 2, name: "then_node", kind: "message", T: Node }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IfBlock { - return new IfBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IfBlock { - return new IfBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IfBlock { - return new IfBlock().fromJsonString(jsonString, options); - } - - static equals(a: IfBlock | PlainMessage | undefined, b: IfBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(IfBlock, a, b); - } -} - -/** - * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. - * If no conditions were satisfied, the else_node or the error will execute. - * - * @generated from message flyteidl.core.IfElseBlock - */ -export class IfElseBlock extends Message { - /** - * +required. First condition to evaluate. - * - * @generated from field: flyteidl.core.IfBlock case = 1; - */ - case?: IfBlock; - - /** - * +optional. Additional branches to evaluate. - * - * @generated from field: repeated flyteidl.core.IfBlock other = 2; - */ - other: IfBlock[] = []; - - /** - * +required. - * - * @generated from oneof flyteidl.core.IfElseBlock.default - */ - default: { - /** - * The node to execute in case none of the branches were taken. - * - * @generated from field: flyteidl.core.Node else_node = 3; - */ - value: Node; - case: "elseNode"; - } | { - /** - * An error to throw in case none of the branches were taken. - * - * @generated from field: flyteidl.core.Error error = 4; - */ - value: Error; - case: "error"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.IfElseBlock"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "case", kind: "message", T: IfBlock }, - { no: 2, name: "other", kind: "message", T: IfBlock, repeated: true }, - { no: 3, name: "else_node", kind: "message", T: Node, oneof: "default" }, - { no: 4, name: "error", kind: "message", T: Error, oneof: "default" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): IfElseBlock { - return new IfElseBlock().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): IfElseBlock { - return new IfElseBlock().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): IfElseBlock { - return new IfElseBlock().fromJsonString(jsonString, options); - } - - static equals(a: IfElseBlock | PlainMessage | undefined, b: IfElseBlock | PlainMessage | undefined): boolean { - return proto3.util.equals(IfElseBlock, a, b); - } -} - -/** - * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at - * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). - * - * @generated from message flyteidl.core.BranchNode - */ -export class BranchNode extends Message { - /** - * +required - * - * @generated from field: flyteidl.core.IfElseBlock if_else = 1; - */ - ifElse?: IfElseBlock; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.BranchNode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "if_else", kind: "message", T: IfElseBlock }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): BranchNode { - return new BranchNode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): BranchNode { - return new BranchNode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): BranchNode { - return new BranchNode().fromJsonString(jsonString, options); - } - - static equals(a: BranchNode | PlainMessage | undefined, b: BranchNode | PlainMessage | undefined): boolean { - return proto3.util.equals(BranchNode, a, b); - } -} - -/** - * Refers to the task that the Node is to execute. - * - * @generated from message flyteidl.core.TaskNode - */ -export class TaskNode extends Message { - /** - * @generated from oneof flyteidl.core.TaskNode.reference - */ - reference: { - /** - * A globally unique identifier for the task. - * - * @generated from field: flyteidl.core.Identifier reference_id = 1; - */ - value: Identifier; - case: "referenceId"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Optional overrides applied at task execution time. - * - * @generated from field: flyteidl.core.TaskNodeOverrides overrides = 2; - */ - overrides?: TaskNodeOverrides; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskNode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reference_id", kind: "message", T: Identifier, oneof: "reference" }, - { no: 2, name: "overrides", kind: "message", T: TaskNodeOverrides }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskNode { - return new TaskNode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskNode { - return new TaskNode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskNode { - return new TaskNode().fromJsonString(jsonString, options); - } - - static equals(a: TaskNode | PlainMessage | undefined, b: TaskNode | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskNode, a, b); - } -} - -/** - * Refers to a the workflow the node is to execute. - * - * @generated from message flyteidl.core.WorkflowNode - */ -export class WorkflowNode extends Message { - /** - * @generated from oneof flyteidl.core.WorkflowNode.reference - */ - reference: { - /** - * A globally unique identifier for the launch plan. - * - * @generated from field: flyteidl.core.Identifier launchplan_ref = 1; - */ - value: Identifier; - case: "launchplanRef"; - } | { - /** - * Reference to a subworkflow, that should be defined with the compiler context - * - * @generated from field: flyteidl.core.Identifier sub_workflow_ref = 2; - */ - value: Identifier; - case: "subWorkflowRef"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowNode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "launchplan_ref", kind: "message", T: Identifier, oneof: "reference" }, - { no: 2, name: "sub_workflow_ref", kind: "message", T: Identifier, oneof: "reference" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowNode { - return new WorkflowNode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowNode { - return new WorkflowNode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowNode { - return new WorkflowNode().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowNode | PlainMessage | undefined, b: WorkflowNode | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowNode, a, b); - } -} - -/** - * ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean - * signal with the provided signal_id. - * - * @generated from message flyteidl.core.ApproveCondition - */ -export class ApproveCondition extends Message { - /** - * A unique identifier for the requested boolean signal. - * - * @generated from field: string signal_id = 1; - */ - signalId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ApproveCondition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ApproveCondition { - return new ApproveCondition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ApproveCondition { - return new ApproveCondition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ApproveCondition { - return new ApproveCondition().fromJsonString(jsonString, options); - } - - static equals(a: ApproveCondition | PlainMessage | undefined, b: ApproveCondition | PlainMessage | undefined): boolean { - return proto3.util.equals(ApproveCondition, a, b); - } -} - -/** - * SignalCondition represents a dependency on an signal. - * - * @generated from message flyteidl.core.SignalCondition - */ -export class SignalCondition extends Message { - /** - * A unique identifier for the requested signal. - * - * @generated from field: string signal_id = 1; - */ - signalId = ""; - - /** - * A type denoting the required value type for this signal. - * - * @generated from field: flyteidl.core.LiteralType type = 2; - */ - type?: LiteralType; - - /** - * The variable name for the signal value in this nodes outputs. - * - * @generated from field: string output_variable_name = 3; - */ - outputVariableName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.SignalCondition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "type", kind: "message", T: LiteralType }, - { no: 3, name: "output_variable_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SignalCondition { - return new SignalCondition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SignalCondition { - return new SignalCondition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SignalCondition { - return new SignalCondition().fromJsonString(jsonString, options); - } - - static equals(a: SignalCondition | PlainMessage | undefined, b: SignalCondition | PlainMessage | undefined): boolean { - return proto3.util.equals(SignalCondition, a, b); - } -} - -/** - * SleepCondition represents a dependency on waiting for the specified duration. - * - * @generated from message flyteidl.core.SleepCondition - */ -export class SleepCondition extends Message { - /** - * The overall duration for this sleep. - * - * @generated from field: google.protobuf.Duration duration = 1; - */ - duration?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.SleepCondition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "duration", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SleepCondition { - return new SleepCondition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SleepCondition { - return new SleepCondition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SleepCondition { - return new SleepCondition().fromJsonString(jsonString, options); - } - - static equals(a: SleepCondition | PlainMessage | undefined, b: SleepCondition | PlainMessage | undefined): boolean { - return proto3.util.equals(SleepCondition, a, b); - } -} - -/** - * GateNode refers to the condition that is required for the gate to successfully complete. - * - * @generated from message flyteidl.core.GateNode - */ -export class GateNode extends Message { - /** - * @generated from oneof flyteidl.core.GateNode.condition - */ - condition: { - /** - * ApproveCondition represents a dependency on an external approval provided by a boolean signal. - * - * @generated from field: flyteidl.core.ApproveCondition approve = 1; - */ - value: ApproveCondition; - case: "approve"; - } | { - /** - * SignalCondition represents a dependency on an signal. - * - * @generated from field: flyteidl.core.SignalCondition signal = 2; - */ - value: SignalCondition; - case: "signal"; - } | { - /** - * SleepCondition represents a dependency on waiting for the specified duration. - * - * @generated from field: flyteidl.core.SleepCondition sleep = 3; - */ - value: SleepCondition; - case: "sleep"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.GateNode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "approve", kind: "message", T: ApproveCondition, oneof: "condition" }, - { no: 2, name: "signal", kind: "message", T: SignalCondition, oneof: "condition" }, - { no: 3, name: "sleep", kind: "message", T: SleepCondition, oneof: "condition" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GateNode { - return new GateNode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GateNode { - return new GateNode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GateNode { - return new GateNode().fromJsonString(jsonString, options); - } - - static equals(a: GateNode | PlainMessage | undefined, b: GateNode | PlainMessage | undefined): boolean { - return proto3.util.equals(GateNode, a, b); - } -} - -/** - * ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input - * values. An ArrayNode can be executed with configurable parallelism (separate from the parent - * workflow) and can be configured to succeed when a certain number of sub-nodes succeed. - * - * @generated from message flyteidl.core.ArrayNode - */ -export class ArrayNode extends Message { - /** - * node is the sub-node that will be executed for each element in the array. - * - * @generated from field: flyteidl.core.Node node = 1; - */ - node?: Node; - - /** - * parallelism defines the minimum number of instances to bring up concurrently at any given - * point. Note that this is an optimistic restriction and that, due to network partitioning or - * other failures, the actual number of currently running instances might be more. This has to - * be a positive number if assigned. Default value is size. - * - * @generated from field: uint32 parallelism = 2; - */ - parallelism = 0; - - /** - * @generated from oneof flyteidl.core.ArrayNode.success_criteria - */ - successCriteria: { - /** - * min_successes is an absolute number of the minimum number of successful completions of - * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful - * and outputs will be computed. This has to be a non-negative number if assigned. Default - * value is size (if specified). - * - * @generated from field: uint32 min_successes = 3; - */ - value: number; - case: "minSuccesses"; - } | { - /** - * If the array job size is not known beforehand, the min_success_ratio can instead be used - * to determine when an ArrayNode can be marked successful. - * - * @generated from field: float min_success_ratio = 4; - */ - value: number; - case: "minSuccessRatio"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.ArrayNode"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "node", kind: "message", T: Node }, - { no: 2, name: "parallelism", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "min_successes", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "success_criteria" }, - { no: 4, name: "min_success_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "success_criteria" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArrayNode { - return new ArrayNode().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArrayNode { - return new ArrayNode().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArrayNode { - return new ArrayNode().fromJsonString(jsonString, options); - } - - static equals(a: ArrayNode | PlainMessage | undefined, b: ArrayNode | PlainMessage | undefined): boolean { - return proto3.util.equals(ArrayNode, a, b); - } -} - -/** - * Defines extra information about the Node. - * - * @generated from message flyteidl.core.NodeMetadata - */ -export class NodeMetadata extends Message { - /** - * A friendly name for the Node - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * The overall timeout of a task. - * - * @generated from field: google.protobuf.Duration timeout = 4; - */ - timeout?: Duration; - - /** - * Number of retries per task. - * - * @generated from field: flyteidl.core.RetryStrategy retries = 5; - */ - retries?: RetryStrategy; - - /** - * Identify whether node is interruptible - * - * @generated from oneof flyteidl.core.NodeMetadata.interruptible_value - */ - interruptibleValue: { - /** - * @generated from field: bool interruptible = 6; - */ - value: boolean; - case: "interruptible"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Identify whether a node should have it's outputs cached. - * - * @generated from oneof flyteidl.core.NodeMetadata.cacheable_value - */ - cacheableValue: { - /** - * @generated from field: bool cacheable = 7; - */ - value: boolean; - case: "cacheable"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * The version of the cache to use. - * - * @generated from oneof flyteidl.core.NodeMetadata.cache_version_value - */ - cacheVersionValue: { - /** - * @generated from field: string cache_version = 8; - */ - value: string; - case: "cacheVersion"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Identify whether caching operations involving this node should be serialized. - * - * @generated from oneof flyteidl.core.NodeMetadata.cache_serializable_value - */ - cacheSerializableValue: { - /** - * @generated from field: bool cache_serializable = 9; - */ - value: boolean; - case: "cacheSerializable"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.NodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "timeout", kind: "message", T: Duration }, - { no: 5, name: "retries", kind: "message", T: RetryStrategy }, - { no: 6, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "interruptible_value" }, - { no: 7, name: "cacheable", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "cacheable_value" }, - { no: 8, name: "cache_version", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "cache_version_value" }, - { no: 9, name: "cache_serializable", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "cache_serializable_value" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeMetadata { - return new NodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeMetadata { - return new NodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeMetadata { - return new NodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: NodeMetadata | PlainMessage | undefined, b: NodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeMetadata, a, b); - } -} - -/** - * Links a variable to an alias. - * - * @generated from message flyteidl.core.Alias - */ -export class Alias extends Message { - /** - * Must match one of the output variable names on a node. - * - * @generated from field: string var = 1; - */ - var = ""; - - /** - * A workflow-level unique alias that downstream nodes can refer to in their input. - * - * @generated from field: string alias = 2; - */ - alias = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Alias"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "alias", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Alias { - return new Alias().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Alias { - return new Alias().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Alias { - return new Alias().fromJsonString(jsonString, options); - } - - static equals(a: Alias | PlainMessage | undefined, b: Alias | PlainMessage | undefined): boolean { - return proto3.util.equals(Alias, a, b); - } -} - -/** - * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch - * node. - * - * @generated from message flyteidl.core.Node - */ -export class Node extends Message { - /** - * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved - * node ids that cannot be used by other nodes. - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * Extra metadata about the node. - * - * @generated from field: flyteidl.core.NodeMetadata metadata = 2; - */ - metadata?: NodeMetadata; - - /** - * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface - * must be fulfilled. - * - * @generated from field: repeated flyteidl.core.Binding inputs = 3; - */ - inputs: Binding[] = []; - - /** - * +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its - * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs - * field. - * - * @generated from field: repeated string upstream_node_ids = 4; - */ - upstreamNodeIds: string[] = []; - - /** - * +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes - * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this - * nodes outputs using the alias if one's specified. - * - * @generated from field: repeated flyteidl.core.Alias output_aliases = 5; - */ - outputAliases: Alias[] = []; - - /** - * Information about the target to execute in this node. - * - * @generated from oneof flyteidl.core.Node.target - */ - target: { - /** - * Information about the Task to execute in this node. - * - * @generated from field: flyteidl.core.TaskNode task_node = 6; - */ - value: TaskNode; - case: "taskNode"; - } | { - /** - * Information about the Workflow to execute in this mode. - * - * @generated from field: flyteidl.core.WorkflowNode workflow_node = 7; - */ - value: WorkflowNode; - case: "workflowNode"; - } | { - /** - * Information about the branch node to evaluate in this node. - * - * @generated from field: flyteidl.core.BranchNode branch_node = 8; - */ - value: BranchNode; - case: "branchNode"; - } | { - /** - * Information about the condition to evaluate in this node. - * - * @generated from field: flyteidl.core.GateNode gate_node = 9; - */ - value: GateNode; - case: "gateNode"; - } | { - /** - * Information about the sub-node executions for each value in the list of this nodes - * inputs values. - * - * @generated from field: flyteidl.core.ArrayNode array_node = 10; - */ - value: ArrayNode; - case: "arrayNode"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.Node"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "metadata", kind: "message", T: NodeMetadata }, - { no: 3, name: "inputs", kind: "message", T: Binding, repeated: true }, - { no: 4, name: "upstream_node_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "output_aliases", kind: "message", T: Alias, repeated: true }, - { no: 6, name: "task_node", kind: "message", T: TaskNode, oneof: "target" }, - { no: 7, name: "workflow_node", kind: "message", T: WorkflowNode, oneof: "target" }, - { no: 8, name: "branch_node", kind: "message", T: BranchNode, oneof: "target" }, - { no: 9, name: "gate_node", kind: "message", T: GateNode, oneof: "target" }, - { no: 10, name: "array_node", kind: "message", T: ArrayNode, oneof: "target" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Node { - return new Node().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Node { - return new Node().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Node { - return new Node().fromJsonString(jsonString, options); - } - - static equals(a: Node | PlainMessage | undefined, b: Node | PlainMessage | undefined): boolean { - return proto3.util.equals(Node, a, b); - } -} - -/** - * This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not - * percolate down to child entities (like tasks) launched by the workflow. - * - * @generated from message flyteidl.core.WorkflowMetadata - */ -export class WorkflowMetadata extends Message { - /** - * Indicates the runtime priority of workflow executions. - * - * @generated from field: flyteidl.core.QualityOfService quality_of_service = 1; - */ - qualityOfService?: QualityOfService; - - /** - * Defines how the system should behave when a failure is detected in the workflow execution. - * - * @generated from field: flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - onFailure = WorkflowMetadata_OnFailurePolicy.FAIL_IMMEDIATELY; - - /** - * Arbitrary tags that allow users and the platform to store small but arbitrary labels - * - * @generated from field: map tags = 3; - */ - tags: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "quality_of_service", kind: "message", T: QualityOfService }, - { no: 2, name: "on_failure", kind: "enum", T: proto3.getEnumType(WorkflowMetadata_OnFailurePolicy) }, - { no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowMetadata { - return new WorkflowMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowMetadata { - return new WorkflowMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowMetadata { - return new WorkflowMetadata().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowMetadata | PlainMessage | undefined, b: WorkflowMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowMetadata, a, b); - } -} - -/** - * Failure Handling Strategy - * - * @generated from enum flyteidl.core.WorkflowMetadata.OnFailurePolicy - */ -export enum WorkflowMetadata_OnFailurePolicy { - /** - * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically - * abort all currently running nodes and clean up resources before finally marking the workflow executions as - * failed. - * - * @generated from enum value: FAIL_IMMEDIATELY = 0; - */ - FAIL_IMMEDIATELY = 0, - - /** - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will - * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. - * Other nodes that will be executed to completion before cleaning up resources and marking the workflow - * execution as failed. - * - * @generated from enum value: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(WorkflowMetadata_OnFailurePolicy) -proto3.util.setEnumType(WorkflowMetadata_OnFailurePolicy, "flyteidl.core.WorkflowMetadata.OnFailurePolicy", [ - { no: 0, name: "FAIL_IMMEDIATELY" }, - { no: 1, name: "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" }, -]); - -/** - * The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to - * a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it - * is only relevant when a task executes. The settings here are the defaults that are passed to all nodes - * unless explicitly overridden at the node layer. - * If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be - * added to both this object and the WorkflowMetadata object above. - * - * @generated from message flyteidl.core.WorkflowMetadataDefaults - */ -export class WorkflowMetadataDefaults extends Message { - /** - * Whether child nodes of the workflow are interruptible. - * - * @generated from field: bool interruptible = 1; - */ - interruptible = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowMetadataDefaults"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowMetadataDefaults { - return new WorkflowMetadataDefaults().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowMetadataDefaults { - return new WorkflowMetadataDefaults().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowMetadataDefaults { - return new WorkflowMetadataDefaults().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowMetadataDefaults | PlainMessage | undefined, b: WorkflowMetadataDefaults | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowMetadataDefaults, a, b); - } -} - -/** - * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, - * directed acyclic graph. - * - * @generated from message flyteidl.core.WorkflowTemplate - */ -export class WorkflowTemplate extends Message { - /** - * A globally unique identifier for the workflow. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * Extra metadata about the workflow. - * - * @generated from field: flyteidl.core.WorkflowMetadata metadata = 2; - */ - metadata?: WorkflowMetadata; - - /** - * Defines a strongly typed interface for the Workflow. This can include some optional parameters. - * - * @generated from field: flyteidl.core.TypedInterface interface = 3; - */ - interface?: TypedInterface; - - /** - * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. - * - * @generated from field: repeated flyteidl.core.Node nodes = 4; - */ - nodes: Node[] = []; - - /** - * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or - * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow - * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to - * bind final outputs. - * Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can - * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling - * outputs from the output of a task. - * - * @generated from field: repeated flyteidl.core.Binding outputs = 5; - */ - outputs: Binding[] = []; - - /** - * +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. - * The interface of this node must match the Workflow interface with an additional input named 'error' of type - * pb.lyft.flyte.core.Error. - * - * @generated from field: flyteidl.core.Node failure_node = 6; - */ - failureNode?: Node; - - /** - * workflow defaults - * - * @generated from field: flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - metadataDefaults?: WorkflowMetadataDefaults; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.WorkflowTemplate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "metadata", kind: "message", T: WorkflowMetadata }, - { no: 3, name: "interface", kind: "message", T: TypedInterface }, - { no: 4, name: "nodes", kind: "message", T: Node, repeated: true }, - { no: 5, name: "outputs", kind: "message", T: Binding, repeated: true }, - { no: 6, name: "failure_node", kind: "message", T: Node }, - { no: 7, name: "metadata_defaults", kind: "message", T: WorkflowMetadataDefaults }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowTemplate { - return new WorkflowTemplate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowTemplate { - return new WorkflowTemplate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowTemplate { - return new WorkflowTemplate().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowTemplate | PlainMessage | undefined, b: WorkflowTemplate | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowTemplate, a, b); - } -} - -/** - * Optional task node overrides that will be applied at task execution time. - * - * @generated from message flyteidl.core.TaskNodeOverrides - */ -export class TaskNodeOverrides extends Message { - /** - * A customizable interface to convey resources requested for a task container. - * - * @generated from field: flyteidl.core.Resources resources = 1; - */ - resources?: Resources; - - /** - * Overrides for all non-standard resources, not captured by - * v1.ResourceRequirements, to allocate to a task. - * - * @generated from field: flyteidl.core.ExtendedResources extended_resources = 2; - */ - extendedResources?: ExtendedResources; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.TaskNodeOverrides"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "resources", kind: "message", T: Resources }, - { no: 2, name: "extended_resources", kind: "message", T: ExtendedResources }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskNodeOverrides { - return new TaskNodeOverrides().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskNodeOverrides { - return new TaskNodeOverrides().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskNodeOverrides { - return new TaskNodeOverrides().fromJsonString(jsonString, options); - } - - static equals(a: TaskNodeOverrides | PlainMessage | undefined, b: TaskNodeOverrides | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskNodeOverrides, a, b); - } -} - -/** - * A structure that uniquely identifies a launch plan in the system. - * - * @generated from message flyteidl.core.LaunchPlanTemplate - */ -export class LaunchPlanTemplate extends Message { - /** - * A globally unique identifier for the launch plan. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * The input and output interface for the launch plan - * - * @generated from field: flyteidl.core.TypedInterface interface = 2; - */ - interface?: TypedInterface; - - /** - * A collection of input literals that are fixed for the launch plan - * - * @generated from field: flyteidl.core.LiteralMap fixed_inputs = 3; - */ - fixedInputs?: LiteralMap; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.core.LaunchPlanTemplate"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "interface", kind: "message", T: TypedInterface }, - { no: 3, name: "fixed_inputs", kind: "message", T: LiteralMap }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanTemplate { - return new LaunchPlanTemplate().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanTemplate { - return new LaunchPlanTemplate().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): LaunchPlanTemplate { - return new LaunchPlanTemplate().fromJsonString(jsonString, options); - } - - static equals(a: LaunchPlanTemplate | PlainMessage | undefined, b: LaunchPlanTemplate | PlainMessage | undefined): boolean { - return proto3.util.equals(LaunchPlanTemplate, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts b/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts deleted file mode 100644 index 932436b45d..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts +++ /dev/null @@ -1,145 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/datacatalog/datacatalog.proto (package datacatalog, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { AddTagRequest, AddTagResponse, CreateArtifactRequest, CreateArtifactResponse, CreateDatasetRequest, CreateDatasetResponse, GetArtifactRequest, GetArtifactResponse, GetDatasetRequest, GetDatasetResponse, GetOrExtendReservationRequest, GetOrExtendReservationResponse, ListArtifactsRequest, ListArtifactsResponse, ListDatasetsRequest, ListDatasetsResponse, ReleaseReservationRequest, ReleaseReservationResponse, UpdateArtifactRequest, UpdateArtifactResponse } from "./datacatalog_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * - * Data Catalog service definition - * Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - * Artifacts are associated with a Dataset, and can be tagged for retrieval. - * - * @generated from service datacatalog.DataCatalog - */ -export const DataCatalog = { - typeName: "datacatalog.DataCatalog", - methods: { - /** - * Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - * Each dataset can have one or more artifacts - * - * @generated from rpc datacatalog.DataCatalog.CreateDataset - */ - createDataset: { - name: "CreateDataset", - I: CreateDatasetRequest, - O: CreateDatasetResponse, - kind: MethodKind.Unary, - }, - /** - * Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - * - * @generated from rpc datacatalog.DataCatalog.GetDataset - */ - getDataset: { - name: "GetDataset", - I: GetDatasetRequest, - O: GetDatasetResponse, - kind: MethodKind.Unary, - }, - /** - * Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - * files or data values - * - * @generated from rpc datacatalog.DataCatalog.CreateArtifact - */ - createArtifact: { - name: "CreateArtifact", - I: CreateArtifactRequest, - O: CreateArtifactResponse, - kind: MethodKind.Unary, - }, - /** - * Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - * - * @generated from rpc datacatalog.DataCatalog.GetArtifact - */ - getArtifact: { - name: "GetArtifact", - I: GetArtifactRequest, - O: GetArtifactResponse, - kind: MethodKind.Unary, - }, - /** - * Associate a tag with an artifact. Tags are unique within a Dataset. - * - * @generated from rpc datacatalog.DataCatalog.AddTag - */ - addTag: { - name: "AddTag", - I: AddTagRequest, - O: AddTagResponse, - kind: MethodKind.Unary, - }, - /** - * Return a paginated list of artifacts - * - * @generated from rpc datacatalog.DataCatalog.ListArtifacts - */ - listArtifacts: { - name: "ListArtifacts", - I: ListArtifactsRequest, - O: ListArtifactsResponse, - kind: MethodKind.Unary, - }, - /** - * Return a paginated list of datasets - * - * @generated from rpc datacatalog.DataCatalog.ListDatasets - */ - listDatasets: { - name: "ListDatasets", - I: ListDatasetsRequest, - O: ListDatasetsResponse, - kind: MethodKind.Unary, - }, - /** - * Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - * - * @generated from rpc datacatalog.DataCatalog.UpdateArtifact - */ - updateArtifact: { - name: "UpdateArtifact", - I: UpdateArtifactRequest, - O: UpdateArtifactResponse, - kind: MethodKind.Unary, - }, - /** - * Attempts to get or extend a reservation for the corresponding artifact. If one already exists - * (ie. another entity owns the reservation) then that reservation is retrieved. - * Once you acquire a reservation, you need to periodically extend the reservation with an - * identical call. If the reservation is not extended before the defined expiration, it may be - * acquired by another task. - * Note: We may have multiple concurrent tasks with the same signature and the same input that - * try to populate the same artifact at the same time. Thus with reservation, only one task can - * run at a time, until the reservation expires. - * Note: If task A does not extend the reservation in time and the reservation expires, another - * task B may take over the reservation, resulting in two tasks A and B running in parallel. So - * a third task C may get the Artifact from A or B, whichever writes last. - * - * @generated from rpc datacatalog.DataCatalog.GetOrExtendReservation - */ - getOrExtendReservation: { - name: "GetOrExtendReservation", - I: GetOrExtendReservationRequest, - O: GetOrExtendReservationResponse, - kind: MethodKind.Unary, - }, - /** - * Release the reservation when the task holding the spot fails so that the other tasks - * can grab the spot. - * - * @generated from rpc datacatalog.DataCatalog.ReleaseReservation - */ - releaseReservation: { - name: "ReleaseReservation", - I: ReleaseReservationRequest, - O: ReleaseReservationResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts b/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts deleted file mode 100644 index 4e1cb2ed41..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts +++ /dev/null @@ -1,1940 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/datacatalog/datacatalog.proto (package datacatalog, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { Literal } from "../core/literals_pb.js"; - -/** - * - * Request message for creating a Dataset. - * - * @generated from message datacatalog.CreateDatasetRequest - */ -export class CreateDatasetRequest extends Message { - /** - * @generated from field: datacatalog.Dataset dataset = 1; - */ - dataset?: Dataset; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.CreateDatasetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset", kind: "message", T: Dataset }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateDatasetRequest { - return new CreateDatasetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateDatasetRequest { - return new CreateDatasetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateDatasetRequest { - return new CreateDatasetRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateDatasetRequest | PlainMessage | undefined, b: CreateDatasetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateDatasetRequest, a, b); - } -} - -/** - * - * Response message for creating a Dataset - * - * @generated from message datacatalog.CreateDatasetResponse - */ -export class CreateDatasetResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.CreateDatasetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateDatasetResponse { - return new CreateDatasetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateDatasetResponse { - return new CreateDatasetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateDatasetResponse { - return new CreateDatasetResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateDatasetResponse | PlainMessage | undefined, b: CreateDatasetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateDatasetResponse, a, b); - } -} - -/** - * - * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier - * which is a combination of several fields. - * - * @generated from message datacatalog.GetDatasetRequest - */ -export class GetDatasetRequest extends Message { - /** - * @generated from field: datacatalog.DatasetID dataset = 1; - */ - dataset?: DatasetID; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.GetDatasetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset", kind: "message", T: DatasetID }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDatasetRequest { - return new GetDatasetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDatasetRequest { - return new GetDatasetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDatasetRequest { - return new GetDatasetRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetDatasetRequest | PlainMessage | undefined, b: GetDatasetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDatasetRequest, a, b); - } -} - -/** - * - * Response message for retrieving a Dataset. The response will include the metadata for the - * Dataset. - * - * @generated from message datacatalog.GetDatasetResponse - */ -export class GetDatasetResponse extends Message { - /** - * @generated from field: datacatalog.Dataset dataset = 1; - */ - dataset?: Dataset; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.GetDatasetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset", kind: "message", T: Dataset }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDatasetResponse { - return new GetDatasetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDatasetResponse { - return new GetDatasetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDatasetResponse { - return new GetDatasetResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetDatasetResponse | PlainMessage | undefined, b: GetDatasetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDatasetResponse, a, b); - } -} - -/** - * - * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that - * can be one of artifact_id or tag. The result returned will include the artifact data and metadata - * associated with the artifact. - * - * @generated from message datacatalog.GetArtifactRequest - */ -export class GetArtifactRequest extends Message { - /** - * @generated from field: datacatalog.DatasetID dataset = 1; - */ - dataset?: DatasetID; - - /** - * @generated from oneof datacatalog.GetArtifactRequest.query_handle - */ - queryHandle: { - /** - * @generated from field: string artifact_id = 2; - */ - value: string; - case: "artifactId"; - } | { - /** - * @generated from field: string tag_name = 3; - */ - value: string; - case: "tagName"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.GetArtifactRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset", kind: "message", T: DatasetID }, - { no: 2, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, - { no: 3, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetArtifactRequest { - return new GetArtifactRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetArtifactRequest { - return new GetArtifactRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetArtifactRequest { - return new GetArtifactRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetArtifactRequest | PlainMessage | undefined, b: GetArtifactRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetArtifactRequest, a, b); - } -} - -/** - * - * Response message for retrieving an Artifact. The result returned will include the artifact data - * and metadata associated with the artifact. - * - * @generated from message datacatalog.GetArtifactResponse - */ -export class GetArtifactResponse extends Message { - /** - * @generated from field: datacatalog.Artifact artifact = 1; - */ - artifact?: Artifact; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.GetArtifactResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact", kind: "message", T: Artifact }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetArtifactResponse { - return new GetArtifactResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetArtifactResponse { - return new GetArtifactResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetArtifactResponse { - return new GetArtifactResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetArtifactResponse | PlainMessage | undefined, b: GetArtifactResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetArtifactResponse, a, b); - } -} - -/** - * - * Request message for creating an Artifact and its associated artifact Data. - * - * @generated from message datacatalog.CreateArtifactRequest - */ -export class CreateArtifactRequest extends Message { - /** - * @generated from field: datacatalog.Artifact artifact = 1; - */ - artifact?: Artifact; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.CreateArtifactRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact", kind: "message", T: Artifact }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateArtifactRequest { - return new CreateArtifactRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateArtifactRequest { - return new CreateArtifactRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateArtifactRequest { - return new CreateArtifactRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateArtifactRequest | PlainMessage | undefined, b: CreateArtifactRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateArtifactRequest, a, b); - } -} - -/** - * - * Response message for creating an Artifact. - * - * @generated from message datacatalog.CreateArtifactResponse - */ -export class CreateArtifactResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.CreateArtifactResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateArtifactResponse { - return new CreateArtifactResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateArtifactResponse { - return new CreateArtifactResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateArtifactResponse { - return new CreateArtifactResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateArtifactResponse | PlainMessage | undefined, b: CreateArtifactResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateArtifactResponse, a, b); - } -} - -/** - * - * Request message for tagging an Artifact. - * - * @generated from message datacatalog.AddTagRequest - */ -export class AddTagRequest extends Message { - /** - * @generated from field: datacatalog.Tag tag = 1; - */ - tag?: Tag; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.AddTagRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tag", kind: "message", T: Tag }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AddTagRequest { - return new AddTagRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AddTagRequest { - return new AddTagRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AddTagRequest { - return new AddTagRequest().fromJsonString(jsonString, options); - } - - static equals(a: AddTagRequest | PlainMessage | undefined, b: AddTagRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(AddTagRequest, a, b); - } -} - -/** - * - * Response message for tagging an Artifact. - * - * @generated from message datacatalog.AddTagResponse - */ -export class AddTagResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.AddTagResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): AddTagResponse { - return new AddTagResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): AddTagResponse { - return new AddTagResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): AddTagResponse { - return new AddTagResponse().fromJsonString(jsonString, options); - } - - static equals(a: AddTagResponse | PlainMessage | undefined, b: AddTagResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(AddTagResponse, a, b); - } -} - -/** - * List the artifacts that belong to the Dataset, optionally filtered using filtered expression. - * - * @generated from message datacatalog.ListArtifactsRequest - */ -export class ListArtifactsRequest extends Message { - /** - * Use a datasetID for which you want to retrieve the artifacts - * - * @generated from field: datacatalog.DatasetID dataset = 1; - */ - dataset?: DatasetID; - - /** - * Apply the filter expression to this query - * - * @generated from field: datacatalog.FilterExpression filter = 2; - */ - filter?: FilterExpression; - - /** - * Pagination options to get a page of artifacts - * - * @generated from field: datacatalog.PaginationOptions pagination = 3; - */ - pagination?: PaginationOptions; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ListArtifactsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset", kind: "message", T: DatasetID }, - { no: 2, name: "filter", kind: "message", T: FilterExpression }, - { no: 3, name: "pagination", kind: "message", T: PaginationOptions }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListArtifactsRequest { - return new ListArtifactsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListArtifactsRequest { - return new ListArtifactsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListArtifactsRequest { - return new ListArtifactsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListArtifactsRequest | PlainMessage | undefined, b: ListArtifactsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListArtifactsRequest, a, b); - } -} - -/** - * Response to list artifacts - * - * @generated from message datacatalog.ListArtifactsResponse - */ -export class ListArtifactsResponse extends Message { - /** - * The list of artifacts - * - * @generated from field: repeated datacatalog.Artifact artifacts = 1; - */ - artifacts: Artifact[] = []; - - /** - * Token to use to request the next page, pass this into the next requests PaginationOptions - * - * @generated from field: string next_token = 2; - */ - nextToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ListArtifactsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifacts", kind: "message", T: Artifact, repeated: true }, - { no: 2, name: "next_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListArtifactsResponse { - return new ListArtifactsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListArtifactsResponse { - return new ListArtifactsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListArtifactsResponse { - return new ListArtifactsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListArtifactsResponse | PlainMessage | undefined, b: ListArtifactsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListArtifactsResponse, a, b); - } -} - -/** - * List the datasets for the given query - * - * @generated from message datacatalog.ListDatasetsRequest - */ -export class ListDatasetsRequest extends Message { - /** - * Apply the filter expression to this query - * - * @generated from field: datacatalog.FilterExpression filter = 1; - */ - filter?: FilterExpression; - - /** - * Pagination options to get a page of datasets - * - * @generated from field: datacatalog.PaginationOptions pagination = 2; - */ - pagination?: PaginationOptions; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ListDatasetsRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "filter", kind: "message", T: FilterExpression }, - { no: 2, name: "pagination", kind: "message", T: PaginationOptions }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListDatasetsRequest { - return new ListDatasetsRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListDatasetsRequest { - return new ListDatasetsRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListDatasetsRequest { - return new ListDatasetsRequest().fromJsonString(jsonString, options); - } - - static equals(a: ListDatasetsRequest | PlainMessage | undefined, b: ListDatasetsRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ListDatasetsRequest, a, b); - } -} - -/** - * List the datasets response with token for next pagination - * - * @generated from message datacatalog.ListDatasetsResponse - */ -export class ListDatasetsResponse extends Message { - /** - * The list of datasets - * - * @generated from field: repeated datacatalog.Dataset datasets = 1; - */ - datasets: Dataset[] = []; - - /** - * Token to use to request the next page, pass this into the next requests PaginationOptions - * - * @generated from field: string next_token = 2; - */ - nextToken = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ListDatasetsResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "datasets", kind: "message", T: Dataset, repeated: true }, - { no: 2, name: "next_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ListDatasetsResponse { - return new ListDatasetsResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ListDatasetsResponse { - return new ListDatasetsResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ListDatasetsResponse { - return new ListDatasetsResponse().fromJsonString(jsonString, options); - } - - static equals(a: ListDatasetsResponse | PlainMessage | undefined, b: ListDatasetsResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ListDatasetsResponse, a, b); - } -} - -/** - * - * Request message for updating an Artifact and overwriting its associated ArtifactData. - * - * @generated from message datacatalog.UpdateArtifactRequest - */ -export class UpdateArtifactRequest extends Message { - /** - * ID of dataset the artifact is associated with - * - * @generated from field: datacatalog.DatasetID dataset = 1; - */ - dataset?: DatasetID; - - /** - * Either ID of artifact or name of tag to retrieve existing artifact from - * - * @generated from oneof datacatalog.UpdateArtifactRequest.query_handle - */ - queryHandle: { - /** - * @generated from field: string artifact_id = 2; - */ - value: string; - case: "artifactId"; - } | { - /** - * @generated from field: string tag_name = 3; - */ - value: string; - case: "tagName"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing - * ArtifactData entries will be removed from the underlying blob storage and database. - * - * @generated from field: repeated datacatalog.ArtifactData data = 4; - */ - data: ArtifactData[] = []; - - /** - * Update execution metadata(including execution domain, name, node, project data) when overwriting cache - * - * @generated from field: datacatalog.Metadata metadata = 5; - */ - metadata?: Metadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.UpdateArtifactRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset", kind: "message", T: DatasetID }, - { no: 2, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, - { no: 3, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, - { no: 4, name: "data", kind: "message", T: ArtifactData, repeated: true }, - { no: 5, name: "metadata", kind: "message", T: Metadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateArtifactRequest { - return new UpdateArtifactRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateArtifactRequest { - return new UpdateArtifactRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateArtifactRequest { - return new UpdateArtifactRequest().fromJsonString(jsonString, options); - } - - static equals(a: UpdateArtifactRequest | PlainMessage | undefined, b: UpdateArtifactRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateArtifactRequest, a, b); - } -} - -/** - * - * Response message for updating an Artifact. - * - * @generated from message datacatalog.UpdateArtifactResponse - */ -export class UpdateArtifactResponse extends Message { - /** - * The unique ID of the artifact updated - * - * @generated from field: string artifact_id = 1; - */ - artifactId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.UpdateArtifactResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UpdateArtifactResponse { - return new UpdateArtifactResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UpdateArtifactResponse { - return new UpdateArtifactResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UpdateArtifactResponse { - return new UpdateArtifactResponse().fromJsonString(jsonString, options); - } - - static equals(a: UpdateArtifactResponse | PlainMessage | undefined, b: UpdateArtifactResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UpdateArtifactResponse, a, b); - } -} - -/** - * - * ReservationID message that is composed of several string fields. - * - * @generated from message datacatalog.ReservationID - */ -export class ReservationID extends Message { - /** - * The unique ID for the reserved dataset - * - * @generated from field: datacatalog.DatasetID dataset_id = 1; - */ - datasetId?: DatasetID; - - /** - * The specific artifact tag for the reservation - * - * @generated from field: string tag_name = 2; - */ - tagName = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ReservationID"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "dataset_id", kind: "message", T: DatasetID }, - { no: 2, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ReservationID { - return new ReservationID().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ReservationID { - return new ReservationID().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ReservationID { - return new ReservationID().fromJsonString(jsonString, options); - } - - static equals(a: ReservationID | PlainMessage | undefined, b: ReservationID | PlainMessage | undefined): boolean { - return proto3.util.equals(ReservationID, a, b); - } -} - -/** - * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. - * - * @generated from message datacatalog.GetOrExtendReservationRequest - */ -export class GetOrExtendReservationRequest extends Message { - /** - * The unique ID for the reservation - * - * @generated from field: datacatalog.ReservationID reservation_id = 1; - */ - reservationId?: ReservationID; - - /** - * The unique ID of the owner for the reservation - * - * @generated from field: string owner_id = 2; - */ - ownerId = ""; - - /** - * Requested reservation extension heartbeat interval - * - * @generated from field: google.protobuf.Duration heartbeat_interval = 3; - */ - heartbeatInterval?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.GetOrExtendReservationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reservation_id", kind: "message", T: ReservationID }, - { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "heartbeat_interval", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetOrExtendReservationRequest { - return new GetOrExtendReservationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetOrExtendReservationRequest { - return new GetOrExtendReservationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetOrExtendReservationRequest { - return new GetOrExtendReservationRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetOrExtendReservationRequest | PlainMessage | undefined, b: GetOrExtendReservationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetOrExtendReservationRequest, a, b); - } -} - -/** - * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. - * - * @generated from message datacatalog.Reservation - */ -export class Reservation extends Message { - /** - * The unique ID for the reservation - * - * @generated from field: datacatalog.ReservationID reservation_id = 1; - */ - reservationId?: ReservationID; - - /** - * The unique ID of the owner for the reservation - * - * @generated from field: string owner_id = 2; - */ - ownerId = ""; - - /** - * Recommended heartbeat interval to extend reservation - * - * @generated from field: google.protobuf.Duration heartbeat_interval = 3; - */ - heartbeatInterval?: Duration; - - /** - * Expiration timestamp of this reservation - * - * @generated from field: google.protobuf.Timestamp expires_at = 4; - */ - expiresAt?: Timestamp; - - /** - * Free-form metadata associated with the artifact - * - * @generated from field: datacatalog.Metadata metadata = 6; - */ - metadata?: Metadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.Reservation"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reservation_id", kind: "message", T: ReservationID }, - { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "heartbeat_interval", kind: "message", T: Duration }, - { no: 4, name: "expires_at", kind: "message", T: Timestamp }, - { no: 6, name: "metadata", kind: "message", T: Metadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Reservation { - return new Reservation().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Reservation { - return new Reservation().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Reservation { - return new Reservation().fromJsonString(jsonString, options); - } - - static equals(a: Reservation | PlainMessage | undefined, b: Reservation | PlainMessage | undefined): boolean { - return proto3.util.equals(Reservation, a, b); - } -} - -/** - * Response including either a newly minted reservation or the existing reservation - * - * @generated from message datacatalog.GetOrExtendReservationResponse - */ -export class GetOrExtendReservationResponse extends Message { - /** - * The reservation to be acquired or extended - * - * @generated from field: datacatalog.Reservation reservation = 1; - */ - reservation?: Reservation; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.GetOrExtendReservationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reservation", kind: "message", T: Reservation }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetOrExtendReservationResponse { - return new GetOrExtendReservationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetOrExtendReservationResponse { - return new GetOrExtendReservationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetOrExtendReservationResponse { - return new GetOrExtendReservationResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetOrExtendReservationResponse | PlainMessage | undefined, b: GetOrExtendReservationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetOrExtendReservationResponse, a, b); - } -} - -/** - * Request to release reservation - * - * @generated from message datacatalog.ReleaseReservationRequest - */ -export class ReleaseReservationRequest extends Message { - /** - * The unique ID for the reservation - * - * @generated from field: datacatalog.ReservationID reservation_id = 1; - */ - reservationId?: ReservationID; - - /** - * The unique ID of the owner for the reservation - * - * @generated from field: string owner_id = 2; - */ - ownerId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ReleaseReservationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reservation_id", kind: "message", T: ReservationID }, - { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ReleaseReservationRequest { - return new ReleaseReservationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ReleaseReservationRequest { - return new ReleaseReservationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ReleaseReservationRequest { - return new ReleaseReservationRequest().fromJsonString(jsonString, options); - } - - static equals(a: ReleaseReservationRequest | PlainMessage | undefined, b: ReleaseReservationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(ReleaseReservationRequest, a, b); - } -} - -/** - * Response to release reservation - * - * @generated from message datacatalog.ReleaseReservationResponse - */ -export class ReleaseReservationResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ReleaseReservationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ReleaseReservationResponse { - return new ReleaseReservationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ReleaseReservationResponse { - return new ReleaseReservationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ReleaseReservationResponse { - return new ReleaseReservationResponse().fromJsonString(jsonString, options); - } - - static equals(a: ReleaseReservationResponse | PlainMessage | undefined, b: ReleaseReservationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(ReleaseReservationResponse, a, b); - } -} - -/** - * - * Dataset message. It is uniquely identified by DatasetID. - * - * @generated from message datacatalog.Dataset - */ -export class Dataset extends Message { - /** - * @generated from field: datacatalog.DatasetID id = 1; - */ - id?: DatasetID; - - /** - * @generated from field: datacatalog.Metadata metadata = 2; - */ - metadata?: Metadata; - - /** - * @generated from field: repeated string partitionKeys = 3; - */ - partitionKeys: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.Dataset"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: DatasetID }, - { no: 2, name: "metadata", kind: "message", T: Metadata }, - { no: 3, name: "partitionKeys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Dataset { - return new Dataset().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Dataset { - return new Dataset().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Dataset { - return new Dataset().fromJsonString(jsonString, options); - } - - static equals(a: Dataset | PlainMessage | undefined, b: Dataset | PlainMessage | undefined): boolean { - return proto3.util.equals(Dataset, a, b); - } -} - -/** - * - * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair - * - * @generated from message datacatalog.Partition - */ -export class Partition extends Message { - /** - * @generated from field: string key = 1; - */ - key = ""; - - /** - * @generated from field: string value = 2; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.Partition"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Partition { - return new Partition().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Partition { - return new Partition().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Partition { - return new Partition().fromJsonString(jsonString, options); - } - - static equals(a: Partition | PlainMessage | undefined, b: Partition | PlainMessage | undefined): boolean { - return proto3.util.equals(Partition, a, b); - } -} - -/** - * - * DatasetID message that is composed of several string fields. - * - * @generated from message datacatalog.DatasetID - */ -export class DatasetID extends Message { - /** - * The name of the project - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * The name of the dataset - * - * @generated from field: string name = 2; - */ - name = ""; - - /** - * The domain (eg. environment) - * - * @generated from field: string domain = 3; - */ - domain = ""; - - /** - * Version of the data schema - * - * @generated from field: string version = 4; - */ - version = ""; - - /** - * UUID for the dataset (if set the above fields are optional) - * - * @generated from field: string UUID = 5; - */ - UUID = ""; - - /** - * Optional, org key applied to the resource. - * - * @generated from field: string org = 6; - */ - org = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.DatasetID"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "UUID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DatasetID { - return new DatasetID().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DatasetID { - return new DatasetID().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DatasetID { - return new DatasetID().fromJsonString(jsonString, options); - } - - static equals(a: DatasetID | PlainMessage | undefined, b: DatasetID | PlainMessage | undefined): boolean { - return proto3.util.equals(DatasetID, a, b); - } -} - -/** - * - * Artifact message. It is composed of several string fields. - * - * @generated from message datacatalog.Artifact - */ -export class Artifact extends Message { - /** - * The unique ID of the artifact - * - * @generated from field: string id = 1; - */ - id = ""; - - /** - * The Dataset that the artifact belongs to - * - * @generated from field: datacatalog.DatasetID dataset = 2; - */ - dataset?: DatasetID; - - /** - * A list of data that is associated with the artifact - * - * @generated from field: repeated datacatalog.ArtifactData data = 3; - */ - data: ArtifactData[] = []; - - /** - * Free-form metadata associated with the artifact - * - * @generated from field: datacatalog.Metadata metadata = 4; - */ - metadata?: Metadata; - - /** - * @generated from field: repeated datacatalog.Partition partitions = 5; - */ - partitions: Partition[] = []; - - /** - * @generated from field: repeated datacatalog.Tag tags = 6; - */ - tags: Tag[] = []; - - /** - * creation timestamp of artifact, autogenerated by service - * - * @generated from field: google.protobuf.Timestamp created_at = 7; - */ - createdAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.Artifact"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "dataset", kind: "message", T: DatasetID }, - { no: 3, name: "data", kind: "message", T: ArtifactData, repeated: true }, - { no: 4, name: "metadata", kind: "message", T: Metadata }, - { no: 5, name: "partitions", kind: "message", T: Partition, repeated: true }, - { no: 6, name: "tags", kind: "message", T: Tag, repeated: true }, - { no: 7, name: "created_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Artifact { - return new Artifact().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Artifact { - return new Artifact().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Artifact { - return new Artifact().fromJsonString(jsonString, options); - } - - static equals(a: Artifact | PlainMessage | undefined, b: Artifact | PlainMessage | undefined): boolean { - return proto3.util.equals(Artifact, a, b); - } -} - -/** - * - * ArtifactData that belongs to an artifact - * - * @generated from message datacatalog.ArtifactData - */ -export class ArtifactData extends Message { - /** - * @generated from field: string name = 1; - */ - name = ""; - - /** - * @generated from field: flyteidl.core.Literal value = 2; - */ - value?: Literal; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ArtifactData"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "message", T: Literal }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactData { - return new ArtifactData().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactData { - return new ArtifactData().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactData { - return new ArtifactData().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactData | PlainMessage | undefined, b: ArtifactData | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactData, a, b); - } -} - -/** - * - * Tag message that is unique to a Dataset. It is associated to a single artifact and - * can be retrieved by name later. - * - * @generated from message datacatalog.Tag - */ -export class Tag extends Message { - /** - * Name of tag - * - * @generated from field: string name = 1; - */ - name = ""; - - /** - * The tagged artifact - * - * @generated from field: string artifact_id = 2; - */ - artifactId = ""; - - /** - * The Dataset that this tag belongs to - * - * @generated from field: datacatalog.DatasetID dataset = 3; - */ - dataset?: DatasetID; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.Tag"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "dataset", kind: "message", T: DatasetID }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Tag { - return new Tag().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Tag { - return new Tag().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Tag { - return new Tag().fromJsonString(jsonString, options); - } - - static equals(a: Tag | PlainMessage | undefined, b: Tag | PlainMessage | undefined): boolean { - return proto3.util.equals(Tag, a, b); - } -} - -/** - * - * Metadata representation for artifacts and datasets - * - * @generated from message datacatalog.Metadata - */ -export class Metadata extends Message { - /** - * key map is a dictionary of key/val strings that represent metadata - * - * @generated from field: map key_map = 1; - */ - keyMap: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.Metadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key_map", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { - return new Metadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { - return new Metadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Metadata { - return new Metadata().fromJsonString(jsonString, options); - } - - static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { - return proto3.util.equals(Metadata, a, b); - } -} - -/** - * Filter expression that is composed of a combination of single filters - * - * @generated from message datacatalog.FilterExpression - */ -export class FilterExpression extends Message { - /** - * @generated from field: repeated datacatalog.SinglePropertyFilter filters = 1; - */ - filters: SinglePropertyFilter[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.FilterExpression"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "filters", kind: "message", T: SinglePropertyFilter, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): FilterExpression { - return new FilterExpression().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): FilterExpression { - return new FilterExpression().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): FilterExpression { - return new FilterExpression().fromJsonString(jsonString, options); - } - - static equals(a: FilterExpression | PlainMessage | undefined, b: FilterExpression | PlainMessage | undefined): boolean { - return proto3.util.equals(FilterExpression, a, b); - } -} - -/** - * A single property to filter on. - * - * @generated from message datacatalog.SinglePropertyFilter - */ -export class SinglePropertyFilter extends Message { - /** - * @generated from oneof datacatalog.SinglePropertyFilter.property_filter - */ - propertyFilter: { - /** - * @generated from field: datacatalog.TagPropertyFilter tag_filter = 1; - */ - value: TagPropertyFilter; - case: "tagFilter"; - } | { - /** - * @generated from field: datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - value: PartitionPropertyFilter; - case: "partitionFilter"; - } | { - /** - * @generated from field: datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - value: ArtifactPropertyFilter; - case: "artifactFilter"; - } | { - /** - * @generated from field: datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - value: DatasetPropertyFilter; - case: "datasetFilter"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * field 10 in case we add more entities to query - * - * @generated from field: datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - operator = SinglePropertyFilter_ComparisonOperator.EQUALS; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.SinglePropertyFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tag_filter", kind: "message", T: TagPropertyFilter, oneof: "property_filter" }, - { no: 2, name: "partition_filter", kind: "message", T: PartitionPropertyFilter, oneof: "property_filter" }, - { no: 3, name: "artifact_filter", kind: "message", T: ArtifactPropertyFilter, oneof: "property_filter" }, - { no: 4, name: "dataset_filter", kind: "message", T: DatasetPropertyFilter, oneof: "property_filter" }, - { no: 10, name: "operator", kind: "enum", T: proto3.getEnumType(SinglePropertyFilter_ComparisonOperator) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SinglePropertyFilter { - return new SinglePropertyFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SinglePropertyFilter { - return new SinglePropertyFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SinglePropertyFilter { - return new SinglePropertyFilter().fromJsonString(jsonString, options); - } - - static equals(a: SinglePropertyFilter | PlainMessage | undefined, b: SinglePropertyFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(SinglePropertyFilter, a, b); - } -} - -/** - * as use-cases come up we can add more operators, ex: gte, like, not eq etc. - * - * @generated from enum datacatalog.SinglePropertyFilter.ComparisonOperator - */ -export enum SinglePropertyFilter_ComparisonOperator { - /** - * @generated from enum value: EQUALS = 0; - */ - EQUALS = 0, -} -// Retrieve enum metadata with: proto3.getEnumType(SinglePropertyFilter_ComparisonOperator) -proto3.util.setEnumType(SinglePropertyFilter_ComparisonOperator, "datacatalog.SinglePropertyFilter.ComparisonOperator", [ - { no: 0, name: "EQUALS" }, -]); - -/** - * Artifact properties we can filter by - * - * @generated from message datacatalog.ArtifactPropertyFilter - */ -export class ArtifactPropertyFilter extends Message { - /** - * oneof because we can add more properties in the future - * - * @generated from oneof datacatalog.ArtifactPropertyFilter.property - */ - property: { - /** - * @generated from field: string artifact_id = 1; - */ - value: string; - case: "artifactId"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.ArtifactPropertyFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactPropertyFilter { - return new ArtifactPropertyFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactPropertyFilter { - return new ArtifactPropertyFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArtifactPropertyFilter { - return new ArtifactPropertyFilter().fromJsonString(jsonString, options); - } - - static equals(a: ArtifactPropertyFilter | PlainMessage | undefined, b: ArtifactPropertyFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(ArtifactPropertyFilter, a, b); - } -} - -/** - * Tag properties we can filter by - * - * @generated from message datacatalog.TagPropertyFilter - */ -export class TagPropertyFilter extends Message { - /** - * @generated from oneof datacatalog.TagPropertyFilter.property - */ - property: { - /** - * @generated from field: string tag_name = 1; - */ - value: string; - case: "tagName"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.TagPropertyFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TagPropertyFilter { - return new TagPropertyFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TagPropertyFilter { - return new TagPropertyFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TagPropertyFilter { - return new TagPropertyFilter().fromJsonString(jsonString, options); - } - - static equals(a: TagPropertyFilter | PlainMessage | undefined, b: TagPropertyFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(TagPropertyFilter, a, b); - } -} - -/** - * Partition properties we can filter by - * - * @generated from message datacatalog.PartitionPropertyFilter - */ -export class PartitionPropertyFilter extends Message { - /** - * @generated from oneof datacatalog.PartitionPropertyFilter.property - */ - property: { - /** - * @generated from field: datacatalog.KeyValuePair key_val = 1; - */ - value: KeyValuePair; - case: "keyVal"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.PartitionPropertyFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key_val", kind: "message", T: KeyValuePair, oneof: "property" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PartitionPropertyFilter { - return new PartitionPropertyFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PartitionPropertyFilter { - return new PartitionPropertyFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PartitionPropertyFilter { - return new PartitionPropertyFilter().fromJsonString(jsonString, options); - } - - static equals(a: PartitionPropertyFilter | PlainMessage | undefined, b: PartitionPropertyFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(PartitionPropertyFilter, a, b); - } -} - -/** - * @generated from message datacatalog.KeyValuePair - */ -export class KeyValuePair extends Message { - /** - * @generated from field: string key = 1; - */ - key = ""; - - /** - * @generated from field: string value = 2; - */ - value = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.KeyValuePair"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): KeyValuePair { - return new KeyValuePair().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): KeyValuePair { - return new KeyValuePair().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): KeyValuePair { - return new KeyValuePair().fromJsonString(jsonString, options); - } - - static equals(a: KeyValuePair | PlainMessage | undefined, b: KeyValuePair | PlainMessage | undefined): boolean { - return proto3.util.equals(KeyValuePair, a, b); - } -} - -/** - * Dataset properties we can filter by - * - * @generated from message datacatalog.DatasetPropertyFilter - */ -export class DatasetPropertyFilter extends Message { - /** - * @generated from oneof datacatalog.DatasetPropertyFilter.property - */ - property: { - /** - * @generated from field: string project = 1; - */ - value: string; - case: "project"; - } | { - /** - * @generated from field: string name = 2; - */ - value: string; - case: "name"; - } | { - /** - * @generated from field: string domain = 3; - */ - value: string; - case: "domain"; - } | { - /** - * @generated from field: string version = 4; - */ - value: string; - case: "version"; - } | { - /** - * Optional, org key applied to the dataset. - * - * @generated from field: string org = 5; - */ - value: string; - case: "org"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.DatasetPropertyFilter"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DatasetPropertyFilter { - return new DatasetPropertyFilter().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DatasetPropertyFilter { - return new DatasetPropertyFilter().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DatasetPropertyFilter { - return new DatasetPropertyFilter().fromJsonString(jsonString, options); - } - - static equals(a: DatasetPropertyFilter | PlainMessage | undefined, b: DatasetPropertyFilter | PlainMessage | undefined): boolean { - return proto3.util.equals(DatasetPropertyFilter, a, b); - } -} - -/** - * Pagination options for making list requests - * - * @generated from message datacatalog.PaginationOptions - */ -export class PaginationOptions extends Message { - /** - * the max number of results to return - * - * @generated from field: uint32 limit = 1; - */ - limit = 0; - - /** - * the token to pass to fetch the next page - * - * @generated from field: string token = 2; - */ - token = ""; - - /** - * the property that we want to sort the results by - * - * @generated from field: datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - sortKey = PaginationOptions_SortKey.CREATION_TIME; - - /** - * the sort order of the results - * - * @generated from field: datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - sortOrder = PaginationOptions_SortOrder.DESCENDING; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "datacatalog.PaginationOptions"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "sortKey", kind: "enum", T: proto3.getEnumType(PaginationOptions_SortKey) }, - { no: 4, name: "sortOrder", kind: "enum", T: proto3.getEnumType(PaginationOptions_SortOrder) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PaginationOptions { - return new PaginationOptions().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PaginationOptions { - return new PaginationOptions().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PaginationOptions { - return new PaginationOptions().fromJsonString(jsonString, options); - } - - static equals(a: PaginationOptions | PlainMessage | undefined, b: PaginationOptions | PlainMessage | undefined): boolean { - return proto3.util.equals(PaginationOptions, a, b); - } -} - -/** - * @generated from enum datacatalog.PaginationOptions.SortOrder - */ -export enum PaginationOptions_SortOrder { - /** - * @generated from enum value: DESCENDING = 0; - */ - DESCENDING = 0, - - /** - * @generated from enum value: ASCENDING = 1; - */ - ASCENDING = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(PaginationOptions_SortOrder) -proto3.util.setEnumType(PaginationOptions_SortOrder, "datacatalog.PaginationOptions.SortOrder", [ - { no: 0, name: "DESCENDING" }, - { no: 1, name: "ASCENDING" }, -]); - -/** - * @generated from enum datacatalog.PaginationOptions.SortKey - */ -export enum PaginationOptions_SortKey { - /** - * @generated from enum value: CREATION_TIME = 0; - */ - CREATION_TIME = 0, -} -// Retrieve enum metadata with: proto3.getEnumType(PaginationOptions_SortKey) -proto3.util.setEnumType(PaginationOptions_SortKey, "datacatalog.PaginationOptions.SortKey", [ - { no: 0, name: "CREATION_TIME" }, -]); - diff --git a/flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts b/flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts deleted file mode 100644 index 295930930a..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts +++ /dev/null @@ -1,281 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/event/cloudevents.proto (package flyteidl.event, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { NodeExecutionEvent, TaskExecutionEvent, WorkflowExecutionEvent } from "./event_pb.js"; -import { TypedInterface } from "../core/interface_pb.js"; -import { ArtifactID } from "../core/artifact_id_pb.js"; -import { Identifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; - -/** - * This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional - * information that downstream consumers may find useful. - * - * @generated from message flyteidl.event.CloudEventWorkflowExecution - */ -export class CloudEventWorkflowExecution extends Message { - /** - * @generated from field: flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - rawEvent?: WorkflowExecutionEvent; - - /** - * @generated from field: flyteidl.core.TypedInterface output_interface = 2; - */ - outputInterface?: TypedInterface; - - /** - * The following are ExecutionMetadata fields - * We can't have the ExecutionMetadata object directly because of import cycle - * - * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 3; - */ - artifactIds: ArtifactID[] = []; - - /** - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier reference_execution = 4; - */ - referenceExecution?: WorkflowExecutionIdentifier; - - /** - * @generated from field: string principal = 5; - */ - principal = ""; - - /** - * The ID of the LP that generated the execution that generated the Artifact. - * Here for provenance information. - * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - * - * @generated from field: flyteidl.core.Identifier launch_plan_id = 6; - */ - launchPlanId?: Identifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.CloudEventWorkflowExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_event", kind: "message", T: WorkflowExecutionEvent }, - { no: 2, name: "output_interface", kind: "message", T: TypedInterface }, - { no: 3, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, - { no: 4, name: "reference_execution", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 5, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "launch_plan_id", kind: "message", T: Identifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventWorkflowExecution { - return new CloudEventWorkflowExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventWorkflowExecution { - return new CloudEventWorkflowExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CloudEventWorkflowExecution { - return new CloudEventWorkflowExecution().fromJsonString(jsonString, options); - } - - static equals(a: CloudEventWorkflowExecution | PlainMessage | undefined, b: CloudEventWorkflowExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(CloudEventWorkflowExecution, a, b); - } -} - -/** - * @generated from message flyteidl.event.CloudEventNodeExecution - */ -export class CloudEventNodeExecution extends Message { - /** - * @generated from field: flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - rawEvent?: NodeExecutionEvent; - - /** - * The relevant task execution if applicable - * - * @generated from field: flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - taskExecId?: TaskExecutionIdentifier; - - /** - * The typed interface for the task that produced the event. - * - * @generated from field: flyteidl.core.TypedInterface output_interface = 3; - */ - outputInterface?: TypedInterface; - - /** - * The following are ExecutionMetadata fields - * We can't have the ExecutionMetadata object directly because of import cycle - * - * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 4; - */ - artifactIds: ArtifactID[] = []; - - /** - * @generated from field: string principal = 5; - */ - principal = ""; - - /** - * The ID of the LP that generated the execution that generated the Artifact. - * Here for provenance information. - * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - * - * @generated from field: flyteidl.core.Identifier launch_plan_id = 6; - */ - launchPlanId?: Identifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.CloudEventNodeExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_event", kind: "message", T: NodeExecutionEvent }, - { no: 2, name: "task_exec_id", kind: "message", T: TaskExecutionIdentifier }, - { no: 3, name: "output_interface", kind: "message", T: TypedInterface }, - { no: 4, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, - { no: 5, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "launch_plan_id", kind: "message", T: Identifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventNodeExecution { - return new CloudEventNodeExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventNodeExecution { - return new CloudEventNodeExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CloudEventNodeExecution { - return new CloudEventNodeExecution().fromJsonString(jsonString, options); - } - - static equals(a: CloudEventNodeExecution | PlainMessage | undefined, b: CloudEventNodeExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(CloudEventNodeExecution, a, b); - } -} - -/** - * @generated from message flyteidl.event.CloudEventTaskExecution - */ -export class CloudEventTaskExecution extends Message { - /** - * @generated from field: flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - rawEvent?: TaskExecutionEvent; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.CloudEventTaskExecution"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "raw_event", kind: "message", T: TaskExecutionEvent }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventTaskExecution { - return new CloudEventTaskExecution().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventTaskExecution { - return new CloudEventTaskExecution().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CloudEventTaskExecution { - return new CloudEventTaskExecution().fromJsonString(jsonString, options); - } - - static equals(a: CloudEventTaskExecution | PlainMessage | undefined, b: CloudEventTaskExecution | PlainMessage | undefined): boolean { - return proto3.util.equals(CloudEventTaskExecution, a, b); - } -} - -/** - * This event is to be sent by Admin after it creates an execution. - * - * @generated from message flyteidl.event.CloudEventExecutionStart - */ -export class CloudEventExecutionStart extends Message { - /** - * The execution created. - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - executionId?: WorkflowExecutionIdentifier; - - /** - * The launch plan used. - * - * @generated from field: flyteidl.core.Identifier launch_plan_id = 2; - */ - launchPlanId?: Identifier; - - /** - * @generated from field: flyteidl.core.Identifier workflow_id = 3; - */ - workflowId?: Identifier; - - /** - * Artifact inputs to the workflow execution for which we have the full Artifact ID. These are likely the result of artifact queries that are run. - * - * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 4; - */ - artifactIds: ArtifactID[] = []; - - /** - * Artifact inputs to the workflow execution for which we only have the tracking bit that's installed into the Literal's metadata by the Artifact service. - * - * @generated from field: repeated string artifact_trackers = 5; - */ - artifactTrackers: string[] = []; - - /** - * @generated from field: string principal = 6; - */ - principal = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.CloudEventExecutionStart"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "launch_plan_id", kind: "message", T: Identifier }, - { no: 3, name: "workflow_id", kind: "message", T: Identifier }, - { no: 4, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, - { no: 5, name: "artifact_trackers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventExecutionStart { - return new CloudEventExecutionStart().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventExecutionStart { - return new CloudEventExecutionStart().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CloudEventExecutionStart { - return new CloudEventExecutionStart().fromJsonString(jsonString, options); - } - - static equals(a: CloudEventExecutionStart | PlainMessage | undefined, b: CloudEventExecutionStart | PlainMessage | undefined): boolean { - return proto3.util.equals(CloudEventExecutionStart, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/event/event_pb.ts b/flyteidl/gen/pb-es/flyteidl/event/event_pb.ts deleted file mode 100644 index 1e7b274df8..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/event/event_pb.ts +++ /dev/null @@ -1,1088 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/event/event.proto (package flyteidl.event, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; -import { Identifier, NodeExecutionIdentifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; -import { ExecutionError, NodeExecution_Phase, TaskExecution_Phase, TaskLog, WorkflowExecution_Phase } from "../core/execution_pb.js"; -import { LiteralMap } from "../core/literals_pb.js"; -import { CatalogCacheStatus, CatalogMetadata, CatalogReservation_Status } from "../core/catalog_pb.js"; -import { CompiledWorkflowClosure } from "../core/compiler_pb.js"; - -/** - * @generated from message flyteidl.event.WorkflowExecutionEvent - */ -export class WorkflowExecutionEvent extends Message { - /** - * Workflow execution id - * - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - executionId?: WorkflowExecutionIdentifier; - - /** - * the id of the originator (Propeller) of the event - * - * @generated from field: string producer_id = 2; - */ - producerId = ""; - - /** - * @generated from field: flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - phase = WorkflowExecution_Phase.UNDEFINED; - - /** - * This timestamp represents when the original event occurred, it is generated - * by the executor of the workflow. - * - * @generated from field: google.protobuf.Timestamp occurred_at = 4; - */ - occurredAt?: Timestamp; - - /** - * @generated from oneof flyteidl.event.WorkflowExecutionEvent.output_result - */ - outputResult: { - /** - * URL to the output of the execution, it encodes all the information - * including Cloud source provider. ie., s3://... - * - * @generated from field: string output_uri = 5; - */ - value: string; - case: "outputUri"; - } | { - /** - * Error information for the execution - * - * @generated from field: flyteidl.core.ExecutionError error = 6; - */ - value: ExecutionError; - case: "error"; - } | { - /** - * Raw output data produced by this workflow execution. - * - * @generated from field: flyteidl.core.LiteralMap output_data = 7; - */ - value: LiteralMap; - case: "outputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.WorkflowExecutionEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "producer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase) }, - { no: 4, name: "occurred_at", kind: "message", T: Timestamp }, - { no: 5, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, - { no: 6, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, - { no: 7, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionEvent { - return new WorkflowExecutionEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionEvent { - return new WorkflowExecutionEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionEvent { - return new WorkflowExecutionEvent().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowExecutionEvent | PlainMessage | undefined, b: WorkflowExecutionEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowExecutionEvent, a, b); - } -} - -/** - * @generated from message flyteidl.event.NodeExecutionEvent - */ -export class NodeExecutionEvent extends Message { - /** - * Unique identifier for this node execution - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; - */ - id?: NodeExecutionIdentifier; - - /** - * the id of the originator (Propeller) of the event - * - * @generated from field: string producer_id = 2; - */ - producerId = ""; - - /** - * @generated from field: flyteidl.core.NodeExecution.Phase phase = 3; - */ - phase = NodeExecution_Phase.UNDEFINED; - - /** - * This timestamp represents when the original event occurred, it is generated - * by the executor of the node. - * - * @generated from field: google.protobuf.Timestamp occurred_at = 4; - */ - occurredAt?: Timestamp; - - /** - * @generated from oneof flyteidl.event.NodeExecutionEvent.input_value - */ - inputValue: { - /** - * @generated from field: string input_uri = 5; - */ - value: string; - case: "inputUri"; - } | { - /** - * Raw input data consumed by this node execution. - * - * @generated from field: flyteidl.core.LiteralMap input_data = 20; - */ - value: LiteralMap; - case: "inputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * @generated from oneof flyteidl.event.NodeExecutionEvent.output_result - */ - outputResult: { - /** - * URL to the output of the execution, it encodes all the information - * including Cloud source provider. ie., s3://... - * - * @generated from field: string output_uri = 6; - */ - value: string; - case: "outputUri"; - } | { - /** - * Error information for the execution - * - * @generated from field: flyteidl.core.ExecutionError error = 7; - */ - value: ExecutionError; - case: "error"; - } | { - /** - * Raw output data produced by this node execution. - * - * @generated from field: flyteidl.core.LiteralMap output_data = 15; - */ - value: LiteralMap; - case: "outputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Additional metadata to do with this event's node target based - * on the node type - * - * @generated from oneof flyteidl.event.NodeExecutionEvent.target_metadata - */ - targetMetadata: { - /** - * @generated from field: flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - value: WorkflowNodeMetadata; - case: "workflowNodeMetadata"; - } | { - /** - * @generated from field: flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - value: TaskNodeMetadata; - case: "taskNodeMetadata"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * [To be deprecated] Specifies which task (if any) launched this node. - * - * @generated from field: flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - parentTaskMetadata?: ParentTaskExecutionMetadata; - - /** - * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. - * - * @generated from field: flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - parentNodeMetadata?: ParentNodeExecutionMetadata; - - /** - * Retry group to indicate grouping of nodes by retries - * - * @generated from field: string retry_group = 11; - */ - retryGroup = ""; - - /** - * Identifier of the node in the original workflow/graph - * This maps to value of WorkflowTemplate.nodes[X].id - * - * @generated from field: string spec_node_id = 12; - */ - specNodeId = ""; - - /** - * Friendly readable name for the node - * - * @generated from field: string node_name = 13; - */ - nodeName = ""; - - /** - * @generated from field: int32 event_version = 16; - */ - eventVersion = 0; - - /** - * Whether this node launched a subworkflow. - * - * @generated from field: bool is_parent = 17; - */ - isParent = false; - - /** - * Whether this node yielded a dynamic workflow. - * - * @generated from field: bool is_dynamic = 18; - */ - isDynamic = false; - - /** - * String location uniquely identifying where the deck HTML file is - * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - * - * @generated from field: string deck_uri = 19; - */ - deckUri = ""; - - /** - * This timestamp represents the instant when the event was reported by the executing framework. For example, - * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when - * literal inputs are initially copied. The event however will not be sent until after the copy completes. - * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - * - * @generated from field: google.protobuf.Timestamp reported_at = 21; - */ - reportedAt?: Timestamp; - - /** - * Indicates if this node is an ArrayNode. - * - * @generated from field: bool is_array = 22; - */ - isArray = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.NodeExecutionEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, - { no: 2, name: "producer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(NodeExecution_Phase) }, - { no: 4, name: "occurred_at", kind: "message", T: Timestamp }, - { no: 5, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input_value" }, - { no: 20, name: "input_data", kind: "message", T: LiteralMap, oneof: "input_value" }, - { no: 6, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, - { no: 7, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, - { no: 15, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, - { no: 8, name: "workflow_node_metadata", kind: "message", T: WorkflowNodeMetadata, oneof: "target_metadata" }, - { no: 14, name: "task_node_metadata", kind: "message", T: TaskNodeMetadata, oneof: "target_metadata" }, - { no: 9, name: "parent_task_metadata", kind: "message", T: ParentTaskExecutionMetadata }, - { no: 10, name: "parent_node_metadata", kind: "message", T: ParentNodeExecutionMetadata }, - { no: 11, name: "retry_group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 12, name: "spec_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 13, name: "node_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "event_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 17, name: "is_parent", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 18, name: "is_dynamic", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 19, name: "deck_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 21, name: "reported_at", kind: "message", T: Timestamp }, - { no: 22, name: "is_array", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionEvent { - return new NodeExecutionEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionEvent { - return new NodeExecutionEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): NodeExecutionEvent { - return new NodeExecutionEvent().fromJsonString(jsonString, options); - } - - static equals(a: NodeExecutionEvent | PlainMessage | undefined, b: NodeExecutionEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(NodeExecutionEvent, a, b); - } -} - -/** - * For Workflow Nodes we need to send information about the workflow that's launched - * - * @generated from message flyteidl.event.WorkflowNodeMetadata - */ -export class WorkflowNodeMetadata extends Message { - /** - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - executionId?: WorkflowExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.WorkflowNodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowNodeMetadata { - return new WorkflowNodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowNodeMetadata { - return new WorkflowNodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkflowNodeMetadata { - return new WorkflowNodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: WorkflowNodeMetadata | PlainMessage | undefined, b: WorkflowNodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkflowNodeMetadata, a, b); - } -} - -/** - * @generated from message flyteidl.event.TaskNodeMetadata - */ -export class TaskNodeMetadata extends Message { - /** - * Captures the status of caching for this execution. - * - * @generated from field: flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - cacheStatus = CatalogCacheStatus.CACHE_DISABLED; - - /** - * This structure carries the catalog artifact information - * - * @generated from field: flyteidl.core.CatalogMetadata catalog_key = 2; - */ - catalogKey?: CatalogMetadata; - - /** - * Captures the status of cache reservations for this execution. - * - * @generated from field: flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - reservationStatus = CatalogReservation_Status.RESERVATION_DISABLED; - - /** - * The latest checkpoint location - * - * @generated from field: string checkpoint_uri = 4; - */ - checkpointUri = ""; - - /** - * In the case this task launched a dynamic workflow we capture its structure here. - * - * @generated from field: flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - dynamicWorkflow?: DynamicWorkflowNodeMetadata; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.TaskNodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cache_status", kind: "enum", T: proto3.getEnumType(CatalogCacheStatus) }, - { no: 2, name: "catalog_key", kind: "message", T: CatalogMetadata }, - { no: 3, name: "reservation_status", kind: "enum", T: proto3.getEnumType(CatalogReservation_Status) }, - { no: 4, name: "checkpoint_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "dynamic_workflow", kind: "message", T: DynamicWorkflowNodeMetadata }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskNodeMetadata { - return new TaskNodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskNodeMetadata { - return new TaskNodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskNodeMetadata { - return new TaskNodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: TaskNodeMetadata | PlainMessage | undefined, b: TaskNodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskNodeMetadata, a, b); - } -} - -/** - * For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. - * - * @generated from message flyteidl.event.DynamicWorkflowNodeMetadata - */ -export class DynamicWorkflowNodeMetadata extends Message { - /** - * id represents the unique identifier of the workflow. - * - * @generated from field: flyteidl.core.Identifier id = 1; - */ - id?: Identifier; - - /** - * Represents the compiled representation of the embedded dynamic workflow. - * - * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - compiledWorkflow?: CompiledWorkflowClosure; - - /** - * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - * required to correctly recover partially completed executions where the workflow has already been compiled. - * - * @generated from field: string dynamic_job_spec_uri = 3; - */ - dynamicJobSpecUri = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.DynamicWorkflowNodeMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: Identifier }, - { no: 2, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, - { no: 3, name: "dynamic_job_spec_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DynamicWorkflowNodeMetadata { - return new DynamicWorkflowNodeMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DynamicWorkflowNodeMetadata { - return new DynamicWorkflowNodeMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DynamicWorkflowNodeMetadata { - return new DynamicWorkflowNodeMetadata().fromJsonString(jsonString, options); - } - - static equals(a: DynamicWorkflowNodeMetadata | PlainMessage | undefined, b: DynamicWorkflowNodeMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(DynamicWorkflowNodeMetadata, a, b); - } -} - -/** - * @generated from message flyteidl.event.ParentTaskExecutionMetadata - */ -export class ParentTaskExecutionMetadata extends Message { - /** - * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; - */ - id?: TaskExecutionIdentifier; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.ParentTaskExecutionMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParentTaskExecutionMetadata { - return new ParentTaskExecutionMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParentTaskExecutionMetadata { - return new ParentTaskExecutionMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParentTaskExecutionMetadata { - return new ParentTaskExecutionMetadata().fromJsonString(jsonString, options); - } - - static equals(a: ParentTaskExecutionMetadata | PlainMessage | undefined, b: ParentTaskExecutionMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ParentTaskExecutionMetadata, a, b); - } -} - -/** - * @generated from message flyteidl.event.ParentNodeExecutionMetadata - */ -export class ParentNodeExecutionMetadata extends Message { - /** - * Unique identifier of the parent node id within the execution - * This is value of core.NodeExecutionIdentifier.node_id of the parent node - * - * @generated from field: string node_id = 1; - */ - nodeId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.ParentNodeExecutionMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ParentNodeExecutionMetadata { - return new ParentNodeExecutionMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ParentNodeExecutionMetadata { - return new ParentNodeExecutionMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ParentNodeExecutionMetadata { - return new ParentNodeExecutionMetadata().fromJsonString(jsonString, options); - } - - static equals(a: ParentNodeExecutionMetadata | PlainMessage | undefined, b: ParentNodeExecutionMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(ParentNodeExecutionMetadata, a, b); - } -} - -/** - * @generated from message flyteidl.event.EventReason - */ -export class EventReason extends Message { - /** - * An explanation for this event - * - * @generated from field: string reason = 1; - */ - reason = ""; - - /** - * The time this reason occurred - * - * @generated from field: google.protobuf.Timestamp occurred_at = 2; - */ - occurredAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.EventReason"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "occurred_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): EventReason { - return new EventReason().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): EventReason { - return new EventReason().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): EventReason { - return new EventReason().fromJsonString(jsonString, options); - } - - static equals(a: EventReason | PlainMessage | undefined, b: EventReason | PlainMessage | undefined): boolean { - return proto3.util.equals(EventReason, a, b); - } -} - -/** - * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. - * - * @generated from message flyteidl.event.TaskExecutionEvent - */ -export class TaskExecutionEvent extends Message { - /** - * ID of the task. In combination with the retryAttempt this will indicate - * the task execution uniquely for a given parent node execution. - * - * @generated from field: flyteidl.core.Identifier task_id = 1; - */ - taskId?: Identifier; - - /** - * A task execution is always kicked off by a node execution, the event consumer - * will use the parent_id to relate the task to it's parent node execution - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - parentNodeExecutionId?: NodeExecutionIdentifier; - - /** - * retry attempt number for this task, ie., 2 for the second attempt - * - * @generated from field: uint32 retry_attempt = 3; - */ - retryAttempt = 0; - - /** - * Phase associated with the event - * - * @generated from field: flyteidl.core.TaskExecution.Phase phase = 4; - */ - phase = TaskExecution_Phase.UNDEFINED; - - /** - * id of the process that sent this event, mainly for trace debugging - * - * @generated from field: string producer_id = 5; - */ - producerId = ""; - - /** - * log information for the task execution - * - * @generated from field: repeated flyteidl.core.TaskLog logs = 6; - */ - logs: TaskLog[] = []; - - /** - * This timestamp represents when the original event occurred, it is generated - * by the executor of the task. - * - * @generated from field: google.protobuf.Timestamp occurred_at = 7; - */ - occurredAt?: Timestamp; - - /** - * @generated from oneof flyteidl.event.TaskExecutionEvent.input_value - */ - inputValue: { - /** - * URI of the input file, it encodes all the information - * including Cloud source provider. ie., s3://... - * - * @generated from field: string input_uri = 8; - */ - value: string; - case: "inputUri"; - } | { - /** - * Raw input data consumed by this task execution. - * - * @generated from field: flyteidl.core.LiteralMap input_data = 19; - */ - value: LiteralMap; - case: "inputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * @generated from oneof flyteidl.event.TaskExecutionEvent.output_result - */ - outputResult: { - /** - * URI to the output of the execution, it will be in a format that encodes all the information - * including Cloud source provider. ie., s3://... - * - * @generated from field: string output_uri = 9; - */ - value: string; - case: "outputUri"; - } | { - /** - * Error information for the execution - * - * @generated from field: flyteidl.core.ExecutionError error = 10; - */ - value: ExecutionError; - case: "error"; - } | { - /** - * Raw output data produced by this task execution. - * - * @generated from field: flyteidl.core.LiteralMap output_data = 17; - */ - value: LiteralMap; - case: "outputData"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - /** - * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. - * - * @generated from field: google.protobuf.Struct custom_info = 11; - */ - customInfo?: Struct; - - /** - * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) - * that should be recorded regardless of the lack of phase change. - * The version field should be incremented when metadata changes across the duration of an individual phase. - * - * @generated from field: uint32 phase_version = 12; - */ - phaseVersion = 0; - - /** - * An optional explanation for the phase transition. - * Deprecated: Use reasons instead. - * - * @generated from field: string reason = 13 [deprecated = true]; - * @deprecated - */ - reason = ""; - - /** - * An optional list of explanations for the phase transition. - * - * @generated from field: repeated flyteidl.event.EventReason reasons = 21; - */ - reasons: EventReason[] = []; - - /** - * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin - * this type will be identical, but not all task executions necessarily use pre-registered definitions and this - * type is useful to render the task in the UI, filter task executions, etc. - * - * @generated from field: string task_type = 14; - */ - taskType = ""; - - /** - * Metadata around how a task was executed. - * - * @generated from field: flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - metadata?: TaskExecutionMetadata; - - /** - * The event version is used to indicate versioned changes in how data is reported using this - * proto message. For example, event_verison > 0 means that maps tasks report logs using the - * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - * in this message. - * - * @generated from field: int32 event_version = 18; - */ - eventVersion = 0; - - /** - * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s - * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, - * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps - * facilitates a more accurate portrayal of the evaluation time-series. - * - * @generated from field: google.protobuf.Timestamp reported_at = 20; - */ - reportedAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.TaskExecutionEvent"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_id", kind: "message", T: Identifier }, - { no: 2, name: "parent_node_execution_id", kind: "message", T: NodeExecutionIdentifier }, - { no: 3, name: "retry_attempt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, - { no: 5, name: "producer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "logs", kind: "message", T: TaskLog, repeated: true }, - { no: 7, name: "occurred_at", kind: "message", T: Timestamp }, - { no: 8, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input_value" }, - { no: 19, name: "input_data", kind: "message", T: LiteralMap, oneof: "input_value" }, - { no: 9, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, - { no: 10, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, - { no: 17, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, - { no: 11, name: "custom_info", kind: "message", T: Struct }, - { no: 12, name: "phase_version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 13, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 21, name: "reasons", kind: "message", T: EventReason, repeated: true }, - { no: 14, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "metadata", kind: "message", T: TaskExecutionMetadata }, - { no: 18, name: "event_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 20, name: "reported_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionEvent { - return new TaskExecutionEvent().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionEvent { - return new TaskExecutionEvent().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionEvent { - return new TaskExecutionEvent().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionEvent | PlainMessage | undefined, b: TaskExecutionEvent | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionEvent, a, b); - } -} - -/** - * This message contains metadata about external resources produced or used by a specific task execution. - * - * @generated from message flyteidl.event.ExternalResourceInfo - */ -export class ExternalResourceInfo extends Message { - /** - * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. - * - * @generated from field: string external_id = 1; - */ - externalId = ""; - - /** - * A unique index for the external resource with respect to all external resources for this task. Although the - * identifier may change between task reporting events or retries, this will remain the same to enable aggregating - * information from multiple reports. - * - * @generated from field: uint32 index = 2; - */ - index = 0; - - /** - * Retry attempt number for this external resource, ie., 2 for the second attempt - * - * @generated from field: uint32 retry_attempt = 3; - */ - retryAttempt = 0; - - /** - * Phase associated with the external resource - * - * @generated from field: flyteidl.core.TaskExecution.Phase phase = 4; - */ - phase = TaskExecution_Phase.UNDEFINED; - - /** - * Captures the status of caching for this external resource execution. - * - * @generated from field: flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - cacheStatus = CatalogCacheStatus.CACHE_DISABLED; - - /** - * log information for the external resource execution - * - * @generated from field: repeated flyteidl.core.TaskLog logs = 6; - */ - logs: TaskLog[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.ExternalResourceInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "retry_attempt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 4, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, - { no: 5, name: "cache_status", kind: "enum", T: proto3.getEnumType(CatalogCacheStatus) }, - { no: 6, name: "logs", kind: "message", T: TaskLog, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ExternalResourceInfo { - return new ExternalResourceInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ExternalResourceInfo { - return new ExternalResourceInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ExternalResourceInfo { - return new ExternalResourceInfo().fromJsonString(jsonString, options); - } - - static equals(a: ExternalResourceInfo | PlainMessage | undefined, b: ExternalResourceInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ExternalResourceInfo, a, b); - } -} - -/** - * This message holds task execution metadata specific to resource allocation used to manage concurrent - * executions for a project namespace. - * - * @generated from message flyteidl.event.ResourcePoolInfo - */ -export class ResourcePoolInfo extends Message { - /** - * Unique resource ID used to identify this execution when allocating a token. - * - * @generated from field: string allocation_token = 1; - */ - allocationToken = ""; - - /** - * Namespace under which this task execution requested an allocation token. - * - * @generated from field: string namespace = 2; - */ - namespace = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.ResourcePoolInfo"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "allocation_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ResourcePoolInfo { - return new ResourcePoolInfo().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ResourcePoolInfo { - return new ResourcePoolInfo().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ResourcePoolInfo { - return new ResourcePoolInfo().fromJsonString(jsonString, options); - } - - static equals(a: ResourcePoolInfo | PlainMessage | undefined, b: ResourcePoolInfo | PlainMessage | undefined): boolean { - return proto3.util.equals(ResourcePoolInfo, a, b); - } -} - -/** - * Holds metadata around how a task was executed. - * As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, - * and more may grow in size but not change necessarily based on the phase transition that sparked the event update. - * Metadata is a container for these attributes across the task execution lifecycle. - * - * @generated from message flyteidl.event.TaskExecutionMetadata - */ -export class TaskExecutionMetadata extends Message { - /** - * Unique, generated name for this task execution used by the backend. - * - * @generated from field: string generated_name = 1; - */ - generatedName = ""; - - /** - * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. - * - * @generated from field: repeated flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - externalResources: ExternalResourceInfo[] = []; - - /** - * Includes additional data on concurrent resource management used during execution.. - * This is a repeated field because a plugin can request multiple resource allocations during execution. - * - * @generated from field: repeated flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - resourcePoolInfo: ResourcePoolInfo[] = []; - - /** - * The identifier of the plugin used to execute this task. - * - * @generated from field: string plugin_identifier = 4; - */ - pluginIdentifier = ""; - - /** - * @generated from field: flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - instanceClass = TaskExecutionMetadata_InstanceClass.DEFAULT; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.event.TaskExecutionMetadata"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "generated_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "external_resources", kind: "message", T: ExternalResourceInfo, repeated: true }, - { no: 3, name: "resource_pool_info", kind: "message", T: ResourcePoolInfo, repeated: true }, - { no: 4, name: "plugin_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 16, name: "instance_class", kind: "enum", T: proto3.getEnumType(TaskExecutionMetadata_InstanceClass) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionMetadata { - return new TaskExecutionMetadata().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionMetadata { - return new TaskExecutionMetadata().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskExecutionMetadata { - return new TaskExecutionMetadata().fromJsonString(jsonString, options); - } - - static equals(a: TaskExecutionMetadata | PlainMessage | undefined, b: TaskExecutionMetadata | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskExecutionMetadata, a, b); - } -} - -/** - * Includes the broad category of machine used for this specific task execution. - * - * @generated from enum flyteidl.event.TaskExecutionMetadata.InstanceClass - */ -export enum TaskExecutionMetadata_InstanceClass { - /** - * The default instance class configured for the flyte application platform. - * - * @generated from enum value: DEFAULT = 0; - */ - DEFAULT = 0, - - /** - * The instance class configured for interruptible tasks. - * - * @generated from enum value: INTERRUPTIBLE = 1; - */ - INTERRUPTIBLE = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(TaskExecutionMetadata_InstanceClass) -proto3.util.setEnumType(TaskExecutionMetadata_InstanceClass, "flyteidl.event.TaskExecutionMetadata.InstanceClass", [ - { no: 0, name: "DEFAULT" }, - { no: 1, name: "INTERRUPTIBLE" }, -]); - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts deleted file mode 100644 index dba83463f0..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts +++ /dev/null @@ -1,88 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/array_job.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component - * will be executed concurrently. - * - * @generated from message flyteidl.plugins.ArrayJob - */ -export class ArrayJob extends Message { - /** - * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an - * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently - * running instances might be more. This has to be a positive number if assigned. Default value is size. - * - * @generated from field: int64 parallelism = 1; - */ - parallelism = protoInt64.zero; - - /** - * Defines the number of instances to launch at most. This number should match the size of the input if the job - * requires processing of all input data. This has to be a positive number. - * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. - * - * @generated from field: int64 size = 2; - */ - size = protoInt64.zero; - - /** - * @generated from oneof flyteidl.plugins.ArrayJob.success_criteria - */ - successCriteria: { - /** - * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, - * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if - * assigned. Default value is size (if specified). - * - * @generated from field: int64 min_successes = 3; - */ - value: bigint; - case: "minSuccesses"; - } | { - /** - * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array - * job can be marked successful. - * - * @generated from field: float min_success_ratio = 4; - */ - value: number; - case: "minSuccessRatio"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.ArrayJob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "parallelism", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 2, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, - { no: 3, name: "min_successes", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "success_criteria" }, - { no: 4, name: "min_success_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "success_criteria" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ArrayJob { - return new ArrayJob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ArrayJob { - return new ArrayJob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ArrayJob { - return new ArrayJob().fromJsonString(jsonString, options); - } - - static equals(a: ArrayJob | PlainMessage | undefined, b: ArrayJob | PlainMessage | undefined): boolean { - return proto3.util.equals(ArrayJob, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts deleted file mode 100644 index 536e2ef8d8..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts +++ /dev/null @@ -1,166 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/dask.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { Resources } from "../core/tasks_pb.js"; - -/** - * Custom Proto for Dask Plugin. - * - * @generated from message flyteidl.plugins.DaskJob - */ -export class DaskJob extends Message { - /** - * Spec for the scheduler pod. - * - * @generated from field: flyteidl.plugins.DaskScheduler scheduler = 1; - */ - scheduler?: DaskScheduler; - - /** - * Spec of the default worker group. - * - * @generated from field: flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - workers?: DaskWorkerGroup; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.DaskJob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "scheduler", kind: "message", T: DaskScheduler }, - { no: 2, name: "workers", kind: "message", T: DaskWorkerGroup }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DaskJob { - return new DaskJob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DaskJob { - return new DaskJob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DaskJob { - return new DaskJob().fromJsonString(jsonString, options); - } - - static equals(a: DaskJob | PlainMessage | undefined, b: DaskJob | PlainMessage | undefined): boolean { - return proto3.util.equals(DaskJob, a, b); - } -} - -/** - * Specification for the scheduler pod. - * - * @generated from message flyteidl.plugins.DaskScheduler - */ -export class DaskScheduler extends Message { - /** - * Optional image to use. If unset, will use the default image. - * - * @generated from field: string image = 1; - */ - image = ""; - - /** - * Resources assigned to the scheduler pod. - * - * @generated from field: flyteidl.core.Resources resources = 2; - */ - resources?: Resources; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.DaskScheduler"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "resources", kind: "message", T: Resources }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DaskScheduler { - return new DaskScheduler().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DaskScheduler { - return new DaskScheduler().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DaskScheduler { - return new DaskScheduler().fromJsonString(jsonString, options); - } - - static equals(a: DaskScheduler | PlainMessage | undefined, b: DaskScheduler | PlainMessage | undefined): boolean { - return proto3.util.equals(DaskScheduler, a, b); - } -} - -/** - * @generated from message flyteidl.plugins.DaskWorkerGroup - */ -export class DaskWorkerGroup extends Message { - /** - * Number of workers in the group. - * - * @generated from field: uint32 number_of_workers = 1; - */ - numberOfWorkers = 0; - - /** - * Optional image to use for the pods of the worker group. If unset, will use the default image. - * - * @generated from field: string image = 2; - */ - image = ""; - - /** - * Resources assigned to the all pods of the worker group. - * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices - * it is advised to only set limits. If requests are not explicitly set, the plugin will make - * sure to set requests==limits. - * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. - * - * @generated from field: flyteidl.core.Resources resources = 3; - */ - resources?: Resources; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.DaskWorkerGroup"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "number_of_workers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "resources", kind: "message", T: Resources }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DaskWorkerGroup { - return new DaskWorkerGroup().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DaskWorkerGroup { - return new DaskWorkerGroup().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DaskWorkerGroup { - return new DaskWorkerGroup().fromJsonString(jsonString, options); - } - - static equals(a: DaskWorkerGroup | PlainMessage | undefined, b: DaskWorkerGroup | PlainMessage | undefined): boolean { - return proto3.util.equals(DaskWorkerGroup, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts deleted file mode 100644 index aec23a4da5..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts +++ /dev/null @@ -1,124 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/kubeflow/common.proto (package flyteidl.plugins.kubeflow, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from enum flyteidl.plugins.kubeflow.RestartPolicy - */ -export enum RestartPolicy { - /** - * @generated from enum value: RESTART_POLICY_NEVER = 0; - */ - NEVER = 0, - - /** - * @generated from enum value: RESTART_POLICY_ON_FAILURE = 1; - */ - ON_FAILURE = 1, - - /** - * @generated from enum value: RESTART_POLICY_ALWAYS = 2; - */ - ALWAYS = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(RestartPolicy) -proto3.util.setEnumType(RestartPolicy, "flyteidl.plugins.kubeflow.RestartPolicy", [ - { no: 0, name: "RESTART_POLICY_NEVER" }, - { no: 1, name: "RESTART_POLICY_ON_FAILURE" }, - { no: 2, name: "RESTART_POLICY_ALWAYS" }, -]); - -/** - * @generated from enum flyteidl.plugins.kubeflow.CleanPodPolicy - */ -export enum CleanPodPolicy { - /** - * @generated from enum value: CLEANPOD_POLICY_NONE = 0; - */ - CLEANPOD_POLICY_NONE = 0, - - /** - * @generated from enum value: CLEANPOD_POLICY_RUNNING = 1; - */ - CLEANPOD_POLICY_RUNNING = 1, - - /** - * @generated from enum value: CLEANPOD_POLICY_ALL = 2; - */ - CLEANPOD_POLICY_ALL = 2, -} -// Retrieve enum metadata with: proto3.getEnumType(CleanPodPolicy) -proto3.util.setEnumType(CleanPodPolicy, "flyteidl.plugins.kubeflow.CleanPodPolicy", [ - { no: 0, name: "CLEANPOD_POLICY_NONE" }, - { no: 1, name: "CLEANPOD_POLICY_RUNNING" }, - { no: 2, name: "CLEANPOD_POLICY_ALL" }, -]); - -/** - * @generated from message flyteidl.plugins.kubeflow.RunPolicy - */ -export class RunPolicy extends Message { - /** - * Defines the policy to kill pods after the job completes. Default to None. - * - * @generated from field: flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - cleanPodPolicy = CleanPodPolicy.CLEANPOD_POLICY_NONE; - - /** - * TTL to clean up jobs. Default to infinite. - * - * @generated from field: int32 ttl_seconds_after_finished = 2; - */ - ttlSecondsAfterFinished = 0; - - /** - * Specifies the duration in seconds relative to the startTime that the job may be active - * before the system tries to terminate it; value must be positive integer. - * - * @generated from field: int32 active_deadline_seconds = 3; - */ - activeDeadlineSeconds = 0; - - /** - * Number of retries before marking this job failed. - * - * @generated from field: int32 backoff_limit = 4; - */ - backoffLimit = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.RunPolicy"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "clean_pod_policy", kind: "enum", T: proto3.getEnumType(CleanPodPolicy) }, - { no: 2, name: "ttl_seconds_after_finished", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "active_deadline_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "backoff_limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RunPolicy { - return new RunPolicy().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RunPolicy { - return new RunPolicy().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RunPolicy { - return new RunPolicy().fromJsonString(jsonString, options); - } - - static equals(a: RunPolicy | PlainMessage | undefined, b: RunPolicy | PlainMessage | undefined): boolean { - return proto3.util.equals(RunPolicy, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts deleted file mode 100644 index 89ff16b82b..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts +++ /dev/null @@ -1,150 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/kubeflow/mpi.proto (package flyteidl.plugins.kubeflow, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { RestartPolicy, RunPolicy } from "./common_pb.js"; -import { Resources } from "../../core/tasks_pb.js"; - -/** - * Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator - * - * @generated from message flyteidl.plugins.kubeflow.DistributedMPITrainingTask - */ -export class DistributedMPITrainingTask extends Message { - /** - * Worker replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - workerReplicas?: DistributedMPITrainingReplicaSpec; - - /** - * Master replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - launcherReplicas?: DistributedMPITrainingReplicaSpec; - - /** - * RunPolicy encapsulates various runtime policies of the distributed training - * job, for example how to clean up resources and how long the job can stay - * active. - * - * @generated from field: flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - runPolicy?: RunPolicy; - - /** - * Number of slots per worker - * - * @generated from field: int32 slots = 4; - */ - slots = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.DistributedMPITrainingTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "worker_replicas", kind: "message", T: DistributedMPITrainingReplicaSpec }, - { no: 2, name: "launcher_replicas", kind: "message", T: DistributedMPITrainingReplicaSpec }, - { no: 3, name: "run_policy", kind: "message", T: RunPolicy }, - { no: 4, name: "slots", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedMPITrainingTask { - return new DistributedMPITrainingTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedMPITrainingTask { - return new DistributedMPITrainingTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedMPITrainingTask { - return new DistributedMPITrainingTask().fromJsonString(jsonString, options); - } - - static equals(a: DistributedMPITrainingTask | PlainMessage | undefined, b: DistributedMPITrainingTask | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedMPITrainingTask, a, b); - } -} - -/** - * Replica specification for distributed MPI training - * - * @generated from message flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec - */ -export class DistributedMPITrainingReplicaSpec extends Message { - /** - * Number of replicas - * - * @generated from field: int32 replicas = 1; - */ - replicas = 0; - - /** - * Image used for the replica group - * - * @generated from field: string image = 2; - */ - image = ""; - - /** - * Resources required for the replica group - * - * @generated from field: flyteidl.core.Resources resources = 3; - */ - resources?: Resources; - - /** - * Restart policy determines whether pods will be restarted when they exit - * - * @generated from field: flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - restartPolicy = RestartPolicy.NEVER; - - /** - * MPI sometimes requires different command set for different replica groups - * - * @generated from field: repeated string command = 5; - */ - command: string[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "resources", kind: "message", T: Resources }, - { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) }, - { no: 5, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedMPITrainingReplicaSpec { - return new DistributedMPITrainingReplicaSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedMPITrainingReplicaSpec { - return new DistributedMPITrainingReplicaSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedMPITrainingReplicaSpec { - return new DistributedMPITrainingReplicaSpec().fromJsonString(jsonString, options); - } - - static equals(a: DistributedMPITrainingReplicaSpec | PlainMessage | undefined, b: DistributedMPITrainingReplicaSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedMPITrainingReplicaSpec, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts deleted file mode 100644 index 2dd38a56ba..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts +++ /dev/null @@ -1,204 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/kubeflow/pytorch.proto (package flyteidl.plugins.kubeflow, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { RestartPolicy, RunPolicy } from "./common_pb.js"; -import { Resources } from "../../core/tasks_pb.js"; - -/** - * Custom proto for torch elastic config for distributed training using - * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go - * - * @generated from message flyteidl.plugins.kubeflow.ElasticConfig - */ -export class ElasticConfig extends Message { - /** - * @generated from field: string rdzv_backend = 1; - */ - rdzvBackend = ""; - - /** - * @generated from field: int32 min_replicas = 2; - */ - minReplicas = 0; - - /** - * @generated from field: int32 max_replicas = 3; - */ - maxReplicas = 0; - - /** - * @generated from field: int32 nproc_per_node = 4; - */ - nprocPerNode = 0; - - /** - * @generated from field: int32 max_restarts = 5; - */ - maxRestarts = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.ElasticConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rdzv_backend", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "nproc_per_node", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "max_restarts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ElasticConfig { - return new ElasticConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ElasticConfig { - return new ElasticConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ElasticConfig { - return new ElasticConfig().fromJsonString(jsonString, options); - } - - static equals(a: ElasticConfig | PlainMessage | undefined, b: ElasticConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(ElasticConfig, a, b); - } -} - -/** - * Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator - * - * @generated from message flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask - */ -export class DistributedPyTorchTrainingTask extends Message { - /** - * Worker replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - workerReplicas?: DistributedPyTorchTrainingReplicaSpec; - - /** - * Master replicas spec, master replicas can only have 1 replica - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - masterReplicas?: DistributedPyTorchTrainingReplicaSpec; - - /** - * RunPolicy encapsulates various runtime policies of the distributed training - * job, for example how to clean up resources and how long the job can stay - * active. - * - * @generated from field: flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - runPolicy?: RunPolicy; - - /** - * config for an elastic pytorch job - * - * @generated from field: flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - elasticConfig?: ElasticConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "worker_replicas", kind: "message", T: DistributedPyTorchTrainingReplicaSpec }, - { no: 2, name: "master_replicas", kind: "message", T: DistributedPyTorchTrainingReplicaSpec }, - { no: 3, name: "run_policy", kind: "message", T: RunPolicy }, - { no: 4, name: "elastic_config", kind: "message", T: ElasticConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedPyTorchTrainingTask { - return new DistributedPyTorchTrainingTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedPyTorchTrainingTask { - return new DistributedPyTorchTrainingTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedPyTorchTrainingTask { - return new DistributedPyTorchTrainingTask().fromJsonString(jsonString, options); - } - - static equals(a: DistributedPyTorchTrainingTask | PlainMessage | undefined, b: DistributedPyTorchTrainingTask | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedPyTorchTrainingTask, a, b); - } -} - -/** - * @generated from message flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec - */ -export class DistributedPyTorchTrainingReplicaSpec extends Message { - /** - * Number of replicas - * - * @generated from field: int32 replicas = 1; - */ - replicas = 0; - - /** - * Image used for the replica group - * - * @generated from field: string image = 2; - */ - image = ""; - - /** - * Resources required for the replica group - * - * @generated from field: flyteidl.core.Resources resources = 3; - */ - resources?: Resources; - - /** - * RestartPolicy determines whether pods will be restarted when they exit - * - * @generated from field: flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - restartPolicy = RestartPolicy.NEVER; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "resources", kind: "message", T: Resources }, - { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedPyTorchTrainingReplicaSpec { - return new DistributedPyTorchTrainingReplicaSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedPyTorchTrainingReplicaSpec { - return new DistributedPyTorchTrainingReplicaSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedPyTorchTrainingReplicaSpec { - return new DistributedPyTorchTrainingReplicaSpec().fromJsonString(jsonString, options); - } - - static equals(a: DistributedPyTorchTrainingReplicaSpec | PlainMessage | undefined, b: DistributedPyTorchTrainingReplicaSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedPyTorchTrainingReplicaSpec, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts deleted file mode 100644 index 356385d858..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts +++ /dev/null @@ -1,148 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/kubeflow/tensorflow.proto (package flyteidl.plugins.kubeflow, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { RestartPolicy, RunPolicy } from "./common_pb.js"; -import { Resources } from "../../core/tasks_pb.js"; - -/** - * Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator - * - * @generated from message flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask - */ -export class DistributedTensorflowTrainingTask extends Message { - /** - * Worker replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - workerReplicas?: DistributedTensorflowTrainingReplicaSpec; - - /** - * Parameter server replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - psReplicas?: DistributedTensorflowTrainingReplicaSpec; - - /** - * Chief replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - chiefReplicas?: DistributedTensorflowTrainingReplicaSpec; - - /** - * RunPolicy encapsulates various runtime policies of the distributed training - * job, for example how to clean up resources and how long the job can stay - * active. - * - * @generated from field: flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - runPolicy?: RunPolicy; - - /** - * Evaluator replicas spec - * - * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - evaluatorReplicas?: DistributedTensorflowTrainingReplicaSpec; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "worker_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, - { no: 2, name: "ps_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, - { no: 3, name: "chief_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, - { no: 4, name: "run_policy", kind: "message", T: RunPolicy }, - { no: 5, name: "evaluator_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedTensorflowTrainingTask { - return new DistributedTensorflowTrainingTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedTensorflowTrainingTask { - return new DistributedTensorflowTrainingTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedTensorflowTrainingTask { - return new DistributedTensorflowTrainingTask().fromJsonString(jsonString, options); - } - - static equals(a: DistributedTensorflowTrainingTask | PlainMessage | undefined, b: DistributedTensorflowTrainingTask | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedTensorflowTrainingTask, a, b); - } -} - -/** - * @generated from message flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec - */ -export class DistributedTensorflowTrainingReplicaSpec extends Message { - /** - * Number of replicas - * - * @generated from field: int32 replicas = 1; - */ - replicas = 0; - - /** - * Image used for the replica group - * - * @generated from field: string image = 2; - */ - image = ""; - - /** - * Resources required for the replica group - * - * @generated from field: flyteidl.core.Resources resources = 3; - */ - resources?: Resources; - - /** - * RestartPolicy Determines whether pods will be restarted when they exit - * - * @generated from field: flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - restartPolicy = RestartPolicy.NEVER; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "resources", kind: "message", T: Resources }, - { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedTensorflowTrainingReplicaSpec { - return new DistributedTensorflowTrainingReplicaSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedTensorflowTrainingReplicaSpec { - return new DistributedTensorflowTrainingReplicaSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedTensorflowTrainingReplicaSpec { - return new DistributedTensorflowTrainingReplicaSpec().fromJsonString(jsonString, options); - } - - static equals(a: DistributedTensorflowTrainingReplicaSpec | PlainMessage | undefined, b: DistributedTensorflowTrainingReplicaSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedTensorflowTrainingReplicaSpec, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts deleted file mode 100644 index d96ef7fd6a..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts +++ /dev/null @@ -1,68 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/mpi.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md - * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator - * - * @generated from message flyteidl.plugins.DistributedMPITrainingTask - */ -export class DistributedMPITrainingTask extends Message { - /** - * number of worker spawned in the cluster for this job - * - * @generated from field: int32 num_workers = 1; - */ - numWorkers = 0; - - /** - * number of launcher replicas spawned in the cluster for this job - * The launcher pod invokes mpirun and communicates with worker pods through MPI. - * - * @generated from field: int32 num_launcher_replicas = 2; - */ - numLauncherReplicas = 0; - - /** - * number of slots per worker used in hostfile. - * The available slots (GPUs) in each pod. - * - * @generated from field: int32 slots = 3; - */ - slots = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.DistributedMPITrainingTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "num_workers", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "num_launcher_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "slots", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedMPITrainingTask { - return new DistributedMPITrainingTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedMPITrainingTask { - return new DistributedMPITrainingTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedMPITrainingTask { - return new DistributedMPITrainingTask().fromJsonString(jsonString, options); - } - - static equals(a: DistributedMPITrainingTask | PlainMessage | undefined, b: DistributedMPITrainingTask | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedMPITrainingTask, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts deleted file mode 100644 index 17de1bef47..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts +++ /dev/null @@ -1,66 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/presto.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field - * of a Presto task's TaskTemplate - * - * @generated from message flyteidl.plugins.PrestoQuery - */ -export class PrestoQuery extends Message { - /** - * @generated from field: string routing_group = 1; - */ - routingGroup = ""; - - /** - * @generated from field: string catalog = 2; - */ - catalog = ""; - - /** - * @generated from field: string schema = 3; - */ - schema = ""; - - /** - * @generated from field: string statement = 4; - */ - statement = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.PrestoQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "routing_group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "catalog", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "statement", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PrestoQuery { - return new PrestoQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PrestoQuery { - return new PrestoQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PrestoQuery { - return new PrestoQuery().fromJsonString(jsonString, options); - } - - static equals(a: PrestoQuery | PlainMessage | undefined, b: PrestoQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(PrestoQuery, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts deleted file mode 100644 index df12d51991..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts +++ /dev/null @@ -1,122 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/pytorch.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Custom proto for torch elastic config for distributed training using - * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go - * - * @generated from message flyteidl.plugins.ElasticConfig - */ -export class ElasticConfig extends Message { - /** - * @generated from field: string rdzv_backend = 1; - */ - rdzvBackend = ""; - - /** - * @generated from field: int32 min_replicas = 2; - */ - minReplicas = 0; - - /** - * @generated from field: int32 max_replicas = 3; - */ - maxReplicas = 0; - - /** - * @generated from field: int32 nproc_per_node = 4; - */ - nprocPerNode = 0; - - /** - * @generated from field: int32 max_restarts = 5; - */ - maxRestarts = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.ElasticConfig"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "rdzv_backend", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "nproc_per_node", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "max_restarts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): ElasticConfig { - return new ElasticConfig().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): ElasticConfig { - return new ElasticConfig().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): ElasticConfig { - return new ElasticConfig().fromJsonString(jsonString, options); - } - - static equals(a: ElasticConfig | PlainMessage | undefined, b: ElasticConfig | PlainMessage | undefined): boolean { - return proto3.util.equals(ElasticConfig, a, b); - } -} - -/** - * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator - * - * @generated from message flyteidl.plugins.DistributedPyTorchTrainingTask - */ -export class DistributedPyTorchTrainingTask extends Message { - /** - * number of worker replicas spawned in the cluster for this job - * - * @generated from field: int32 workers = 1; - */ - workers = 0; - - /** - * config for an elastic pytorch job - * - * - * @generated from field: flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - elasticConfig?: ElasticConfig; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.DistributedPyTorchTrainingTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workers", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "elastic_config", kind: "message", T: ElasticConfig }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedPyTorchTrainingTask { - return new DistributedPyTorchTrainingTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedPyTorchTrainingTask { - return new DistributedPyTorchTrainingTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedPyTorchTrainingTask { - return new DistributedPyTorchTrainingTask().fromJsonString(jsonString, options); - } - - static equals(a: DistributedPyTorchTrainingTask | PlainMessage | undefined, b: DistributedPyTorchTrainingTask | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedPyTorchTrainingTask, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts deleted file mode 100644 index 10f740a5ac..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts +++ /dev/null @@ -1,157 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/qubole.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Defines a query to execute on a hive cluster. - * - * @generated from message flyteidl.plugins.HiveQuery - */ -export class HiveQuery extends Message { - /** - * @generated from field: string query = 1; - */ - query = ""; - - /** - * @generated from field: uint32 timeout_sec = 2; - */ - timeoutSec = 0; - - /** - * @generated from field: uint32 retryCount = 3; - */ - retryCount = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.HiveQuery"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "timeout_sec", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - { no: 3, name: "retryCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HiveQuery { - return new HiveQuery().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HiveQuery { - return new HiveQuery().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HiveQuery { - return new HiveQuery().fromJsonString(jsonString, options); - } - - static equals(a: HiveQuery | PlainMessage | undefined, b: HiveQuery | PlainMessage | undefined): boolean { - return proto3.util.equals(HiveQuery, a, b); - } -} - -/** - * Defines a collection of hive queries. - * - * @generated from message flyteidl.plugins.HiveQueryCollection - */ -export class HiveQueryCollection extends Message { - /** - * @generated from field: repeated flyteidl.plugins.HiveQuery queries = 2; - */ - queries: HiveQuery[] = []; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.HiveQueryCollection"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 2, name: "queries", kind: "message", T: HiveQuery, repeated: true }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HiveQueryCollection { - return new HiveQueryCollection().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HiveQueryCollection { - return new HiveQueryCollection().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HiveQueryCollection { - return new HiveQueryCollection().fromJsonString(jsonString, options); - } - - static equals(a: HiveQueryCollection | PlainMessage | undefined, b: HiveQueryCollection | PlainMessage | undefined): boolean { - return proto3.util.equals(HiveQueryCollection, a, b); - } -} - -/** - * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field - * of a hive task's TaskTemplate - * - * @generated from message flyteidl.plugins.QuboleHiveJob - */ -export class QuboleHiveJob extends Message { - /** - * @generated from field: string cluster_label = 1; - */ - clusterLabel = ""; - - /** - * @generated from field: flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - * @deprecated - */ - queryCollection?: HiveQueryCollection; - - /** - * @generated from field: repeated string tags = 3; - */ - tags: string[] = []; - - /** - * @generated from field: flyteidl.plugins.HiveQuery query = 4; - */ - query?: HiveQuery; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.QuboleHiveJob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "cluster_label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "query_collection", kind: "message", T: HiveQueryCollection }, - { no: 3, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "query", kind: "message", T: HiveQuery }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): QuboleHiveJob { - return new QuboleHiveJob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): QuboleHiveJob { - return new QuboleHiveJob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): QuboleHiveJob { - return new QuboleHiveJob().fromJsonString(jsonString, options); - } - - static equals(a: QuboleHiveJob | PlainMessage | undefined, b: QuboleHiveJob | PlainMessage | undefined): boolean { - return proto3.util.equals(QuboleHiveJob, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts deleted file mode 100644 index 289b24404c..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts +++ /dev/null @@ -1,247 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/ray.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * RayJobSpec defines the desired state of RayJob - * - * @generated from message flyteidl.plugins.RayJob - */ -export class RayJob extends Message { - /** - * RayClusterSpec is the cluster template to run the job - * - * @generated from field: flyteidl.plugins.RayCluster ray_cluster = 1; - */ - rayCluster?: RayCluster; - - /** - * runtime_env is base64 encoded. - * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments - * - * @generated from field: string runtime_env = 2; - */ - runtimeEnv = ""; - - /** - * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. - * - * @generated from field: bool shutdown_after_job_finishes = 3; - */ - shutdownAfterJobFinishes = false; - - /** - * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. - * - * @generated from field: int32 ttl_seconds_after_finished = 4; - */ - ttlSecondsAfterFinished = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.RayJob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ray_cluster", kind: "message", T: RayCluster }, - { no: 2, name: "runtime_env", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "shutdown_after_job_finishes", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "ttl_seconds_after_finished", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RayJob { - return new RayJob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RayJob { - return new RayJob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RayJob { - return new RayJob().fromJsonString(jsonString, options); - } - - static equals(a: RayJob | PlainMessage | undefined, b: RayJob | PlainMessage | undefined): boolean { - return proto3.util.equals(RayJob, a, b); - } -} - -/** - * Define Ray cluster defines the desired state of RayCluster - * - * @generated from message flyteidl.plugins.RayCluster - */ -export class RayCluster extends Message { - /** - * HeadGroupSpecs are the spec for the head pod - * - * @generated from field: flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - headGroupSpec?: HeadGroupSpec; - - /** - * WorkerGroupSpecs are the specs for the worker pods - * - * @generated from field: repeated flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - workerGroupSpec: WorkerGroupSpec[] = []; - - /** - * Whether to enable autoscaling. - * - * @generated from field: bool enable_autoscaling = 3; - */ - enableAutoscaling = false; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.RayCluster"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "head_group_spec", kind: "message", T: HeadGroupSpec }, - { no: 2, name: "worker_group_spec", kind: "message", T: WorkerGroupSpec, repeated: true }, - { no: 3, name: "enable_autoscaling", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): RayCluster { - return new RayCluster().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): RayCluster { - return new RayCluster().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): RayCluster { - return new RayCluster().fromJsonString(jsonString, options); - } - - static equals(a: RayCluster | PlainMessage | undefined, b: RayCluster | PlainMessage | undefined): boolean { - return proto3.util.equals(RayCluster, a, b); - } -} - -/** - * HeadGroupSpec are the spec for the head pod - * - * @generated from message flyteidl.plugins.HeadGroupSpec - */ -export class HeadGroupSpec extends Message { - /** - * Optional. RayStartParams are the params of the start command: address, object-store-memory. - * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start - * - * @generated from field: map ray_start_params = 1; - */ - rayStartParams: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.HeadGroupSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "ray_start_params", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): HeadGroupSpec { - return new HeadGroupSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): HeadGroupSpec { - return new HeadGroupSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): HeadGroupSpec { - return new HeadGroupSpec().fromJsonString(jsonString, options); - } - - static equals(a: HeadGroupSpec | PlainMessage | undefined, b: HeadGroupSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(HeadGroupSpec, a, b); - } -} - -/** - * WorkerGroupSpec are the specs for the worker pods - * - * @generated from message flyteidl.plugins.WorkerGroupSpec - */ -export class WorkerGroupSpec extends Message { - /** - * Required. RayCluster can have multiple worker groups, and it distinguishes them by name - * - * @generated from field: string group_name = 1; - */ - groupName = ""; - - /** - * Required. Desired replicas of the worker group. Defaults to 1. - * - * @generated from field: int32 replicas = 2; - */ - replicas = 0; - - /** - * Optional. Min replicas of the worker group. MinReplicas defaults to 1. - * - * @generated from field: int32 min_replicas = 3; - */ - minReplicas = 0; - - /** - * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 - * - * @generated from field: int32 max_replicas = 4; - */ - maxReplicas = 0; - - /** - * Optional. RayStartParams are the params of the start command: address, object-store-memory. - * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start - * - * @generated from field: map ray_start_params = 5; - */ - rayStartParams: { [key: string]: string } = {}; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.WorkerGroupSpec"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "group_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 5, name: "ray_start_params", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): WorkerGroupSpec { - return new WorkerGroupSpec().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): WorkerGroupSpec { - return new WorkerGroupSpec().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): WorkerGroupSpec { - return new WorkerGroupSpec().fromJsonString(jsonString, options); - } - - static equals(a: WorkerGroupSpec | PlainMessage | undefined, b: WorkerGroupSpec | PlainMessage | undefined): boolean { - return proto3.util.equals(WorkerGroupSpec, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts deleted file mode 100644 index 20a5463cbb..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts +++ /dev/null @@ -1,169 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/spark.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Struct } from "@bufbuild/protobuf"; - -/** - * @generated from message flyteidl.plugins.SparkApplication - */ -export class SparkApplication extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.SparkApplication"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SparkApplication { - return new SparkApplication().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SparkApplication { - return new SparkApplication().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SparkApplication { - return new SparkApplication().fromJsonString(jsonString, options); - } - - static equals(a: SparkApplication | PlainMessage | undefined, b: SparkApplication | PlainMessage | undefined): boolean { - return proto3.util.equals(SparkApplication, a, b); - } -} - -/** - * @generated from enum flyteidl.plugins.SparkApplication.Type - */ -export enum SparkApplication_Type { - /** - * @generated from enum value: PYTHON = 0; - */ - PYTHON = 0, - - /** - * @generated from enum value: JAVA = 1; - */ - JAVA = 1, - - /** - * @generated from enum value: SCALA = 2; - */ - SCALA = 2, - - /** - * @generated from enum value: R = 3; - */ - R = 3, -} -// Retrieve enum metadata with: proto3.getEnumType(SparkApplication_Type) -proto3.util.setEnumType(SparkApplication_Type, "flyteidl.plugins.SparkApplication.Type", [ - { no: 0, name: "PYTHON" }, - { no: 1, name: "JAVA" }, - { no: 2, name: "SCALA" }, - { no: 3, name: "R" }, -]); - -/** - * Custom Proto for Spark Plugin. - * - * @generated from message flyteidl.plugins.SparkJob - */ -export class SparkJob extends Message { - /** - * @generated from field: flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - applicationType = SparkApplication_Type.PYTHON; - - /** - * @generated from field: string mainApplicationFile = 2; - */ - mainApplicationFile = ""; - - /** - * @generated from field: string mainClass = 3; - */ - mainClass = ""; - - /** - * @generated from field: map sparkConf = 4; - */ - sparkConf: { [key: string]: string } = {}; - - /** - * @generated from field: map hadoopConf = 5; - */ - hadoopConf: { [key: string]: string } = {}; - - /** - * Executor path for Python jobs. - * - * @generated from field: string executorPath = 6; - */ - executorPath = ""; - - /** - * Databricks job configuration. - * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. - * - * @generated from field: google.protobuf.Struct databricksConf = 7; - */ - databricksConf?: Struct; - - /** - * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html - * This token can be set in either flytepropeller or flytekit. - * - * @generated from field: string databricksToken = 8; - */ - databricksToken = ""; - - /** - * Domain name of your deployment. Use the form .cloud.databricks.com. - * This instance name can be set in either flytepropeller or flytekit. - * - * @generated from field: string databricksInstance = 9; - */ - databricksInstance = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.SparkJob"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "applicationType", kind: "enum", T: proto3.getEnumType(SparkApplication_Type) }, - { no: 2, name: "mainApplicationFile", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "mainClass", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "sparkConf", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 5, name: "hadoopConf", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, - { no: 6, name: "executorPath", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "databricksConf", kind: "message", T: Struct }, - { no: 8, name: "databricksToken", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 9, name: "databricksInstance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): SparkJob { - return new SparkJob().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): SparkJob { - return new SparkJob().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): SparkJob { - return new SparkJob().fromJsonString(jsonString, options); - } - - static equals(a: SparkJob | PlainMessage | undefined, b: SparkJob | PlainMessage | undefined): boolean { - return proto3.util.equals(SparkJob, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts deleted file mode 100644 index a2e1b9129b..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts +++ /dev/null @@ -1,74 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/tensorflow.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator - * - * @generated from message flyteidl.plugins.DistributedTensorflowTrainingTask - */ -export class DistributedTensorflowTrainingTask extends Message { - /** - * number of worker replicas spawned in the cluster for this job - * - * @generated from field: int32 workers = 1; - */ - workers = 0; - - /** - * PS -> Parameter server - * number of ps replicas spawned in the cluster for this job - * - * @generated from field: int32 ps_replicas = 2; - */ - psReplicas = 0; - - /** - * number of chief replicas spawned in the cluster for this job - * - * @generated from field: int32 chief_replicas = 3; - */ - chiefReplicas = 0; - - /** - * number of evaluator replicas spawned in the cluster for this job - * - * @generated from field: int32 evaluator_replicas = 4; - */ - evaluatorReplicas = 0; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.DistributedTensorflowTrainingTask"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "workers", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 2, name: "ps_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 3, name: "chief_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - { no: 4, name: "evaluator_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): DistributedTensorflowTrainingTask { - return new DistributedTensorflowTrainingTask().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): DistributedTensorflowTrainingTask { - return new DistributedTensorflowTrainingTask().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): DistributedTensorflowTrainingTask { - return new DistributedTensorflowTrainingTask().fromJsonString(jsonString, options); - } - - static equals(a: DistributedTensorflowTrainingTask | PlainMessage | undefined, b: DistributedTensorflowTrainingTask | PlainMessage | undefined): boolean { - return proto3.util.equals(DistributedTensorflowTrainingTask, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts deleted file mode 100644 index 3c55163722..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts +++ /dev/null @@ -1,61 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/plugins/waitable.proto (package flyteidl.plugins, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; -import { WorkflowExecution_Phase } from "../core/execution_pb.js"; - -/** - * Represents an Execution that was launched and could be waited on. - * - * @generated from message flyteidl.plugins.Waitable - */ -export class Waitable extends Message { - /** - * @generated from field: flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - wfExecId?: WorkflowExecutionIdentifier; - - /** - * @generated from field: flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - phase = WorkflowExecution_Phase.UNDEFINED; - - /** - * @generated from field: string workflow_id = 3; - */ - workflowId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.plugins.Waitable"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "wf_exec_id", kind: "message", T: WorkflowExecutionIdentifier }, - { no: 2, name: "phase", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase) }, - { no: 3, name: "workflow_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): Waitable { - return new Waitable().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): Waitable { - return new Waitable().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): Waitable { - return new Waitable().fromJsonString(jsonString, options); - } - - static equals(a: Waitable | PlainMessage | undefined, b: Waitable | PlainMessage | undefined): boolean { - return proto3.util.equals(Waitable, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts deleted file mode 100644 index 3a174aeffc..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts +++ /dev/null @@ -1,632 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/admin.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { Task, TaskCreateRequest, TaskCreateResponse, TaskList } from "../admin/task_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; -import { NamedEntity, NamedEntityGetRequest, NamedEntityIdentifierList, NamedEntityIdentifierListRequest, NamedEntityList, NamedEntityListRequest, NamedEntityUpdateRequest, NamedEntityUpdateResponse, ObjectGetRequest, ResourceListRequest } from "../admin/common_pb.js"; -import { Workflow, WorkflowCreateRequest, WorkflowCreateResponse, WorkflowList } from "../admin/workflow_pb.js"; -import { ActiveLaunchPlanListRequest, ActiveLaunchPlanRequest, LaunchPlan, LaunchPlanCreateRequest, LaunchPlanCreateResponse, LaunchPlanList, LaunchPlanUpdateRequest, LaunchPlanUpdateResponse } from "../admin/launch_plan_pb.js"; -import { Execution, ExecutionCreateRequest, ExecutionCreateResponse, ExecutionList, ExecutionRecoverRequest, ExecutionRelaunchRequest, ExecutionTerminateRequest, ExecutionTerminateResponse, ExecutionUpdateRequest, ExecutionUpdateResponse, WorkflowExecutionGetDataRequest, WorkflowExecutionGetDataResponse, WorkflowExecutionGetMetricsRequest, WorkflowExecutionGetMetricsResponse, WorkflowExecutionGetRequest } from "../admin/execution_pb.js"; -import { DynamicNodeWorkflowResponse, GetDynamicNodeWorkflowRequest, NodeExecution, NodeExecutionForTaskListRequest, NodeExecutionGetDataRequest, NodeExecutionGetDataResponse, NodeExecutionGetRequest, NodeExecutionList, NodeExecutionListRequest } from "../admin/node_execution_pb.js"; -import { Project, ProjectListRequest, ProjectRegisterRequest, ProjectRegisterResponse, Projects, ProjectUpdateResponse } from "../admin/project_pb.js"; -import { NodeExecutionEventRequest, NodeExecutionEventResponse, TaskExecutionEventRequest, TaskExecutionEventResponse, WorkflowExecutionEventRequest, WorkflowExecutionEventResponse } from "../admin/event_pb.js"; -import { TaskExecution, TaskExecutionGetDataRequest, TaskExecutionGetDataResponse, TaskExecutionGetRequest, TaskExecutionList, TaskExecutionListRequest } from "../admin/task_execution_pb.js"; -import { ProjectDomainAttributesDeleteRequest, ProjectDomainAttributesDeleteResponse, ProjectDomainAttributesGetRequest, ProjectDomainAttributesGetResponse, ProjectDomainAttributesUpdateRequest, ProjectDomainAttributesUpdateResponse } from "../admin/project_domain_attributes_pb.js"; -import { ProjectAttributesDeleteRequest, ProjectAttributesDeleteResponse, ProjectAttributesGetRequest, ProjectAttributesGetResponse, ProjectAttributesUpdateRequest, ProjectAttributesUpdateResponse } from "../admin/project_attributes_pb.js"; -import { WorkflowAttributesDeleteRequest, WorkflowAttributesDeleteResponse, WorkflowAttributesGetRequest, WorkflowAttributesGetResponse, WorkflowAttributesUpdateRequest, WorkflowAttributesUpdateResponse } from "../admin/workflow_attributes_pb.js"; -import { ListMatchableAttributesRequest, ListMatchableAttributesResponse } from "../admin/matchable_resource_pb.js"; -import { GetVersionRequest, GetVersionResponse } from "../admin/version_pb.js"; -import { DescriptionEntity, DescriptionEntityList, DescriptionEntityListRequest } from "../admin/description_entity_pb.js"; - -/** - * The following defines an RPC service that is also served over HTTP via grpc-gateway. - * Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - * - * @generated from service flyteidl.service.AdminService - */ -export const AdminService = { - typeName: "flyteidl.service.AdminService", - methods: { - /** - * Create and upload a :ref:`ref_flyteidl.admin.Task` definition - * - * @generated from rpc flyteidl.service.AdminService.CreateTask - */ - createTask: { - name: "CreateTask", - I: TaskCreateRequest, - O: TaskCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a :ref:`ref_flyteidl.admin.Task` definition. - * - * @generated from rpc flyteidl.service.AdminService.GetTask - */ - getTask: { - name: "GetTask", - I: ObjectGetRequest, - O: Task, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - * - * @generated from rpc flyteidl.service.AdminService.ListTaskIds - */ - listTaskIds: { - name: "ListTaskIds", - I: NamedEntityIdentifierListRequest, - O: NamedEntityIdentifierList, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - * - * @generated from rpc flyteidl.service.AdminService.ListTasks - */ - listTasks: { - name: "ListTasks", - I: ResourceListRequest, - O: TaskList, - kind: MethodKind.Unary, - }, - /** - * Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - * - * @generated from rpc flyteidl.service.AdminService.CreateWorkflow - */ - createWorkflow: { - name: "CreateWorkflow", - I: WorkflowCreateRequest, - O: WorkflowCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - * - * @generated from rpc flyteidl.service.AdminService.GetWorkflow - */ - getWorkflow: { - name: "GetWorkflow", - I: ObjectGetRequest, - O: Workflow, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - * - * @generated from rpc flyteidl.service.AdminService.ListWorkflowIds - */ - listWorkflowIds: { - name: "ListWorkflowIds", - I: NamedEntityIdentifierListRequest, - O: NamedEntityIdentifierList, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - * - * @generated from rpc flyteidl.service.AdminService.ListWorkflows - */ - listWorkflows: { - name: "ListWorkflows", - I: ResourceListRequest, - O: WorkflowList, - kind: MethodKind.Unary, - }, - /** - * Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - * - * @generated from rpc flyteidl.service.AdminService.CreateLaunchPlan - */ - createLaunchPlan: { - name: "CreateLaunchPlan", - I: LaunchPlanCreateRequest, - O: LaunchPlanCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - * - * @generated from rpc flyteidl.service.AdminService.GetLaunchPlan - */ - getLaunchPlan: { - name: "GetLaunchPlan", - I: ObjectGetRequest, - O: LaunchPlan, - kind: MethodKind.Unary, - }, - /** - * Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - * - * @generated from rpc flyteidl.service.AdminService.GetActiveLaunchPlan - */ - getActiveLaunchPlan: { - name: "GetActiveLaunchPlan", - I: ActiveLaunchPlanRequest, - O: LaunchPlan, - kind: MethodKind.Unary, - }, - /** - * List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - * - * @generated from rpc flyteidl.service.AdminService.ListActiveLaunchPlans - */ - listActiveLaunchPlans: { - name: "ListActiveLaunchPlans", - I: ActiveLaunchPlanListRequest, - O: LaunchPlanList, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - * - * @generated from rpc flyteidl.service.AdminService.ListLaunchPlanIds - */ - listLaunchPlanIds: { - name: "ListLaunchPlanIds", - I: NamedEntityIdentifierListRequest, - O: NamedEntityIdentifierList, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - * - * @generated from rpc flyteidl.service.AdminService.ListLaunchPlans - */ - listLaunchPlans: { - name: "ListLaunchPlans", - I: ResourceListRequest, - O: LaunchPlanList, - kind: MethodKind.Unary, - }, - /** - * Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - * - * @generated from rpc flyteidl.service.AdminService.UpdateLaunchPlan - */ - updateLaunchPlan: { - name: "UpdateLaunchPlan", - I: LaunchPlanUpdateRequest, - O: LaunchPlanUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - * - * @generated from rpc flyteidl.service.AdminService.CreateExecution - */ - createExecution: { - name: "CreateExecution", - I: ExecutionCreateRequest, - O: ExecutionCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - * - * @generated from rpc flyteidl.service.AdminService.RelaunchExecution - */ - relaunchExecution: { - name: "RelaunchExecution", - I: ExecutionRelaunchRequest, - O: ExecutionCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Recreates a previously-run workflow execution that will only start executing from the last known failure point. - * In Recover mode, users cannot change any input parameters or update the version of the execution. - * This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - * downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - * See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - * - * @generated from rpc flyteidl.service.AdminService.RecoverExecution - */ - recoverExecution: { - name: "RecoverExecution", - I: ExecutionRecoverRequest, - O: ExecutionCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches a :ref:`ref_flyteidl.admin.Execution`. - * - * @generated from rpc flyteidl.service.AdminService.GetExecution - */ - getExecution: { - name: "GetExecution", - I: WorkflowExecutionGetRequest, - O: Execution, - kind: MethodKind.Unary, - }, - /** - * Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - * - * @generated from rpc flyteidl.service.AdminService.UpdateExecution - */ - updateExecution: { - name: "UpdateExecution", - I: ExecutionUpdateRequest, - O: ExecutionUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - * - * @generated from rpc flyteidl.service.AdminService.GetExecutionData - */ - getExecutionData: { - name: "GetExecutionData", - I: WorkflowExecutionGetDataRequest, - O: WorkflowExecutionGetDataResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - * - * @generated from rpc flyteidl.service.AdminService.ListExecutions - */ - listExecutions: { - name: "ListExecutions", - I: ResourceListRequest, - O: ExecutionList, - kind: MethodKind.Unary, - }, - /** - * Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - * - * @generated from rpc flyteidl.service.AdminService.TerminateExecution - */ - terminateExecution: { - name: "TerminateExecution", - I: ExecutionTerminateRequest, - O: ExecutionTerminateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - * - * @generated from rpc flyteidl.service.AdminService.GetNodeExecution - */ - getNodeExecution: { - name: "GetNodeExecution", - I: NodeExecutionGetRequest, - O: NodeExecution, - kind: MethodKind.Unary, - }, - /** - * Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. - * - * @generated from rpc flyteidl.service.AdminService.GetDynamicNodeWorkflow - */ - getDynamicNodeWorkflow: { - name: "GetDynamicNodeWorkflow", - I: GetDynamicNodeWorkflowRequest, - O: DynamicNodeWorkflowResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - * - * @generated from rpc flyteidl.service.AdminService.ListNodeExecutions - */ - listNodeExecutions: { - name: "ListNodeExecutions", - I: NodeExecutionListRequest, - O: NodeExecutionList, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - * - * @generated from rpc flyteidl.service.AdminService.ListNodeExecutionsForTask - */ - listNodeExecutionsForTask: { - name: "ListNodeExecutionsForTask", - I: NodeExecutionForTaskListRequest, - O: NodeExecutionList, - kind: MethodKind.Unary, - }, - /** - * Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - * - * @generated from rpc flyteidl.service.AdminService.GetNodeExecutionData - */ - getNodeExecutionData: { - name: "GetNodeExecutionData", - I: NodeExecutionGetDataRequest, - O: NodeExecutionGetDataResponse, - kind: MethodKind.Unary, - }, - /** - * Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - * - * @generated from rpc flyteidl.service.AdminService.RegisterProject - */ - registerProject: { - name: "RegisterProject", - I: ProjectRegisterRequest, - O: ProjectRegisterResponse, - kind: MethodKind.Unary, - }, - /** - * Updates an existing :ref:`ref_flyteidl.admin.Project` - * flyteidl.admin.Project should be passed but the domains property should be empty; - * it will be ignored in the handler as domains cannot be updated via this API. - * - * @generated from rpc flyteidl.service.AdminService.UpdateProject - */ - updateProject: { - name: "UpdateProject", - I: Project, - O: ProjectUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches a list of :ref:`ref_flyteidl.admin.Project` - * - * @generated from rpc flyteidl.service.AdminService.ListProjects - */ - listProjects: { - name: "ListProjects", - I: ProjectListRequest, - O: Projects, - kind: MethodKind.Unary, - }, - /** - * Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - * - * @generated from rpc flyteidl.service.AdminService.CreateWorkflowEvent - */ - createWorkflowEvent: { - name: "CreateWorkflowEvent", - I: WorkflowExecutionEventRequest, - O: WorkflowExecutionEventResponse, - kind: MethodKind.Unary, - }, - /** - * Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - * - * @generated from rpc flyteidl.service.AdminService.CreateNodeEvent - */ - createNodeEvent: { - name: "CreateNodeEvent", - I: NodeExecutionEventRequest, - O: NodeExecutionEventResponse, - kind: MethodKind.Unary, - }, - /** - * Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - * - * @generated from rpc flyteidl.service.AdminService.CreateTaskEvent - */ - createTaskEvent: { - name: "CreateTaskEvent", - I: TaskExecutionEventRequest, - O: TaskExecutionEventResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - * - * @generated from rpc flyteidl.service.AdminService.GetTaskExecution - */ - getTaskExecution: { - name: "GetTaskExecution", - I: TaskExecutionGetRequest, - O: TaskExecution, - kind: MethodKind.Unary, - }, - /** - * Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - * - * @generated from rpc flyteidl.service.AdminService.ListTaskExecutions - */ - listTaskExecutions: { - name: "ListTaskExecutions", - I: TaskExecutionListRequest, - O: TaskExecutionList, - kind: MethodKind.Unary, - }, - /** - * Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - * - * @generated from rpc flyteidl.service.AdminService.GetTaskExecutionData - */ - getTaskExecutionData: { - name: "GetTaskExecutionData", - I: TaskExecutionGetDataRequest, - O: TaskExecutionGetDataResponse, - kind: MethodKind.Unary, - }, - /** - * Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * - * @generated from rpc flyteidl.service.AdminService.UpdateProjectDomainAttributes - */ - updateProjectDomainAttributes: { - name: "UpdateProjectDomainAttributes", - I: ProjectDomainAttributesUpdateRequest, - O: ProjectDomainAttributesUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * - * @generated from rpc flyteidl.service.AdminService.GetProjectDomainAttributes - */ - getProjectDomainAttributes: { - name: "GetProjectDomainAttributes", - I: ProjectDomainAttributesGetRequest, - O: ProjectDomainAttributesGetResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * - * @generated from rpc flyteidl.service.AdminService.DeleteProjectDomainAttributes - */ - deleteProjectDomainAttributes: { - name: "DeleteProjectDomainAttributes", - I: ProjectDomainAttributesDeleteRequest, - O: ProjectDomainAttributesDeleteResponse, - kind: MethodKind.Unary, - }, - /** - * Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - * - * @generated from rpc flyteidl.service.AdminService.UpdateProjectAttributes - */ - updateProjectAttributes: { - name: "UpdateProjectAttributes", - I: ProjectAttributesUpdateRequest, - O: ProjectAttributesUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * - * @generated from rpc flyteidl.service.AdminService.GetProjectAttributes - */ - getProjectAttributes: { - name: "GetProjectAttributes", - I: ProjectAttributesGetRequest, - O: ProjectAttributesGetResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * - * @generated from rpc flyteidl.service.AdminService.DeleteProjectAttributes - */ - deleteProjectAttributes: { - name: "DeleteProjectAttributes", - I: ProjectAttributesDeleteRequest, - O: ProjectAttributesDeleteResponse, - kind: MethodKind.Unary, - }, - /** - * Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - * - * @generated from rpc flyteidl.service.AdminService.UpdateWorkflowAttributes - */ - updateWorkflowAttributes: { - name: "UpdateWorkflowAttributes", - I: WorkflowAttributesUpdateRequest, - O: WorkflowAttributesUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - * - * @generated from rpc flyteidl.service.AdminService.GetWorkflowAttributes - */ - getWorkflowAttributes: { - name: "GetWorkflowAttributes", - I: WorkflowAttributesGetRequest, - O: WorkflowAttributesGetResponse, - kind: MethodKind.Unary, - }, - /** - * Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - * - * @generated from rpc flyteidl.service.AdminService.DeleteWorkflowAttributes - */ - deleteWorkflowAttributes: { - name: "DeleteWorkflowAttributes", - I: WorkflowAttributesDeleteRequest, - O: WorkflowAttributesDeleteResponse, - kind: MethodKind.Unary, - }, - /** - * Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - * - * @generated from rpc flyteidl.service.AdminService.ListMatchableAttributes - */ - listMatchableAttributes: { - name: "ListMatchableAttributes", - I: ListMatchableAttributesRequest, - O: ListMatchableAttributesResponse, - kind: MethodKind.Unary, - }, - /** - * Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - * - * @generated from rpc flyteidl.service.AdminService.ListNamedEntities - */ - listNamedEntities: { - name: "ListNamedEntities", - I: NamedEntityListRequest, - O: NamedEntityList, - kind: MethodKind.Unary, - }, - /** - * Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - * - * @generated from rpc flyteidl.service.AdminService.GetNamedEntity - */ - getNamedEntity: { - name: "GetNamedEntity", - I: NamedEntityGetRequest, - O: NamedEntity, - kind: MethodKind.Unary, - }, - /** - * Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - * - * @generated from rpc flyteidl.service.AdminService.UpdateNamedEntity - */ - updateNamedEntity: { - name: "UpdateNamedEntity", - I: NamedEntityUpdateRequest, - O: NamedEntityUpdateResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc flyteidl.service.AdminService.GetVersion - */ - getVersion: { - name: "GetVersion", - I: GetVersionRequest, - O: GetVersionResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - * - * @generated from rpc flyteidl.service.AdminService.GetDescriptionEntity - */ - getDescriptionEntity: { - name: "GetDescriptionEntity", - I: ObjectGetRequest, - O: DescriptionEntity, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - * - * @generated from rpc flyteidl.service.AdminService.ListDescriptionEntities - */ - listDescriptionEntities: { - name: "ListDescriptionEntities", - I: DescriptionEntityListRequest, - O: DescriptionEntityList, - kind: MethodKind.Unary, - }, - /** - * Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - * - * @generated from rpc flyteidl.service.AdminService.GetExecutionMetrics - */ - getExecutionMetrics: { - name: "GetExecutionMetrics", - I: WorkflowExecutionGetMetricsRequest, - O: WorkflowExecutionGetMetricsResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts deleted file mode 100644 index cec0c0aabc..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts +++ /dev/null @@ -1,134 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/agent.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskResponse, ExecuteTaskSyncRequest, ExecuteTaskSyncResponse, GetAgentRequest, GetAgentResponse, GetTaskLogsRequest, GetTaskLogsResponse, GetTaskMetricsRequest, GetTaskMetricsResponse, GetTaskRequest, GetTaskResponse, ListAgentsRequest, ListAgentsResponse } from "../admin/agent_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. - * - * @generated from service flyteidl.service.SyncAgentService - */ -export const SyncAgentService = { - typeName: "flyteidl.service.SyncAgentService", - methods: { - /** - * ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. - * - * @generated from rpc flyteidl.service.SyncAgentService.ExecuteTaskSync - */ - executeTaskSync: { - name: "ExecuteTaskSync", - I: ExecuteTaskSyncRequest, - O: ExecuteTaskSyncResponse, - kind: MethodKind.BiDiStreaming, - }, - } -} as const; - -/** - * AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. - * - * @generated from service flyteidl.service.AsyncAgentService - */ -export const AsyncAgentService = { - typeName: "flyteidl.service.AsyncAgentService", - methods: { - /** - * CreateTask sends a task create request to the agent service. - * - * @generated from rpc flyteidl.service.AsyncAgentService.CreateTask - */ - createTask: { - name: "CreateTask", - I: CreateTaskRequest, - O: CreateTaskResponse, - kind: MethodKind.Unary, - }, - /** - * Get job status. - * - * @generated from rpc flyteidl.service.AsyncAgentService.GetTask - */ - getTask: { - name: "GetTask", - I: GetTaskRequest, - O: GetTaskResponse, - kind: MethodKind.Unary, - }, - /** - * Delete the task resource. - * - * @generated from rpc flyteidl.service.AsyncAgentService.DeleteTask - */ - deleteTask: { - name: "DeleteTask", - I: DeleteTaskRequest, - O: DeleteTaskResponse, - kind: MethodKind.Unary, - }, - /** - * GetTaskMetrics returns one or more task execution metrics, if available. - * - * Errors include - * * OutOfRange if metrics are not available for the specified task time range - * * various other errors - * - * @generated from rpc flyteidl.service.AsyncAgentService.GetTaskMetrics - */ - getTaskMetrics: { - name: "GetTaskMetrics", - I: GetTaskMetricsRequest, - O: GetTaskMetricsResponse, - kind: MethodKind.Unary, - }, - /** - * GetTaskLogs returns task execution logs, if available. - * - * @generated from rpc flyteidl.service.AsyncAgentService.GetTaskLogs - */ - getTaskLogs: { - name: "GetTaskLogs", - I: GetTaskLogsRequest, - O: GetTaskLogsResponse, - kind: MethodKind.ServerStreaming, - }, - } -} as const; - -/** - * AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. - * This service allows propeller or users to get the metadata of agents. - * - * @generated from service flyteidl.service.AgentMetadataService - */ -export const AgentMetadataService = { - typeName: "flyteidl.service.AgentMetadataService", - methods: { - /** - * Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - * - * @generated from rpc flyteidl.service.AgentMetadataService.GetAgent - */ - getAgent: { - name: "GetAgent", - I: GetAgentRequest, - O: GetAgentResponse, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - * - * @generated from rpc flyteidl.service.AgentMetadataService.ListAgents - */ - listAgents: { - name: "ListAgents", - I: ListAgentsRequest, - O: ListAgentsResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts deleted file mode 100644 index e87fa92712..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts +++ /dev/null @@ -1,44 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/auth.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { OAuth2MetadataRequest, OAuth2MetadataResponse, PublicClientAuthConfigRequest, PublicClientAuthConfigResponse } from "./auth_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * The following defines an RPC service that is also served over HTTP via grpc-gateway. - * Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - * RPCs defined in this service must be anonymously accessible. - * - * @generated from service flyteidl.service.AuthMetadataService - */ -export const AuthMetadataService = { - typeName: "flyteidl.service.AuthMetadataService", - methods: { - /** - * Anonymously accessible. Retrieves local or external oauth authorization server metadata. - * - * @generated from rpc flyteidl.service.AuthMetadataService.GetOAuth2Metadata - */ - getOAuth2Metadata: { - name: "GetOAuth2Metadata", - I: OAuth2MetadataRequest, - O: OAuth2MetadataResponse, - kind: MethodKind.Unary, - }, - /** - * Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - * requests. - * - * @generated from rpc flyteidl.service.AuthMetadataService.GetPublicClientConfig - */ - getPublicClientConfig: { - name: "GetPublicClientConfig", - I: PublicClientAuthConfigRequest, - O: PublicClientAuthConfigResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts deleted file mode 100644 index 589a209162..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts +++ /dev/null @@ -1,272 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/service/auth.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; - -/** - * @generated from message flyteidl.service.OAuth2MetadataRequest - */ -export class OAuth2MetadataRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.OAuth2MetadataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2MetadataRequest { - return new OAuth2MetadataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2MetadataRequest { - return new OAuth2MetadataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OAuth2MetadataRequest { - return new OAuth2MetadataRequest().fromJsonString(jsonString, options); - } - - static equals(a: OAuth2MetadataRequest | PlainMessage | undefined, b: OAuth2MetadataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(OAuth2MetadataRequest, a, b); - } -} - -/** - * OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata - * as defined in https://tools.ietf.org/html/rfc8414 - * - * @generated from message flyteidl.service.OAuth2MetadataResponse - */ -export class OAuth2MetadataResponse extends Message { - /** - * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external - * issuer. - * - * @generated from field: string issuer = 1; - */ - issuer = ""; - - /** - * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are - * supported that use the authorization endpoint. - * - * @generated from field: string authorization_endpoint = 2; - */ - authorizationEndpoint = ""; - - /** - * URL of the authorization server's token endpoint [RFC6749]. - * - * @generated from field: string token_endpoint = 3; - */ - tokenEndpoint = ""; - - /** - * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. - * - * @generated from field: repeated string response_types_supported = 4; - */ - responseTypesSupported: string[] = []; - - /** - * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. - * - * @generated from field: repeated string scopes_supported = 5; - */ - scopesSupported: string[] = []; - - /** - * JSON array containing a list of client authentication methods supported by this token endpoint. - * - * @generated from field: repeated string token_endpoint_auth_methods_supported = 6; - */ - tokenEndpointAuthMethodsSupported: string[] = []; - - /** - * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the - * client uses to validate signatures from the authorization server. - * - * @generated from field: string jwks_uri = 7; - */ - jwksUri = ""; - - /** - * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by - * this authorization server. - * - * @generated from field: repeated string code_challenge_methods_supported = 8; - */ - codeChallengeMethodsSupported: string[] = []; - - /** - * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. - * - * @generated from field: repeated string grant_types_supported = 9; - */ - grantTypesSupported: string[] = []; - - /** - * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] - * - * @generated from field: string device_authorization_endpoint = 10; - */ - deviceAuthorizationEndpoint = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.OAuth2MetadataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "authorization_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "token_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "response_types_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 5, name: "scopes_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 6, name: "token_endpoint_auth_methods_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 7, name: "jwks_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "code_challenge_methods_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 9, name: "grant_types_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 10, name: "device_authorization_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2MetadataResponse { - return new OAuth2MetadataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2MetadataResponse { - return new OAuth2MetadataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): OAuth2MetadataResponse { - return new OAuth2MetadataResponse().fromJsonString(jsonString, options); - } - - static equals(a: OAuth2MetadataResponse | PlainMessage | undefined, b: OAuth2MetadataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(OAuth2MetadataResponse, a, b); - } -} - -/** - * @generated from message flyteidl.service.PublicClientAuthConfigRequest - */ -export class PublicClientAuthConfigRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.PublicClientAuthConfigRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PublicClientAuthConfigRequest { - return new PublicClientAuthConfigRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PublicClientAuthConfigRequest { - return new PublicClientAuthConfigRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PublicClientAuthConfigRequest { - return new PublicClientAuthConfigRequest().fromJsonString(jsonString, options); - } - - static equals(a: PublicClientAuthConfigRequest | PlainMessage | undefined, b: PublicClientAuthConfigRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(PublicClientAuthConfigRequest, a, b); - } -} - -/** - * FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. - * - * @generated from message flyteidl.service.PublicClientAuthConfigResponse - */ -export class PublicClientAuthConfigResponse extends Message { - /** - * client_id to use when initiating OAuth2 authorization requests. - * - * @generated from field: string client_id = 1; - */ - clientId = ""; - - /** - * redirect uri to use when initiating OAuth2 authorization requests. - * - * @generated from field: string redirect_uri = 2; - */ - redirectUri = ""; - - /** - * scopes to request when initiating OAuth2 authorization requests. - * - * @generated from field: repeated string scopes = 3; - */ - scopes: string[] = []; - - /** - * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the - * default http `Authorization` header. - * - * @generated from field: string authorization_metadata_key = 4; - */ - authorizationMetadataKey = ""; - - /** - * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used - * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between - * SSL or no SSL connections. - * - * @generated from field: string service_http_endpoint = 5; - */ - serviceHttpEndpoint = ""; - - /** - * audience to use when initiating OAuth2 authorization requests. - * - * @generated from field: string audience = 6; - */ - audience = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.PublicClientAuthConfigResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 4, name: "authorization_metadata_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "service_http_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "audience", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PublicClientAuthConfigResponse { - return new PublicClientAuthConfigResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PublicClientAuthConfigResponse { - return new PublicClientAuthConfigResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PublicClientAuthConfigResponse { - return new PublicClientAuthConfigResponse().fromJsonString(jsonString, options); - } - - static equals(a: PublicClientAuthConfigResponse | PlainMessage | undefined, b: PublicClientAuthConfigResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(PublicClientAuthConfigResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts deleted file mode 100644 index 56489fb5b0..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts +++ /dev/null @@ -1,62 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/dataproxy.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { CreateDownloadLinkRequest, CreateDownloadLinkResponse, CreateDownloadLocationRequest, CreateDownloadLocationResponse, CreateUploadLocationRequest, CreateUploadLocationResponse, GetDataRequest, GetDataResponse } from "./dataproxy_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - * - * @generated from service flyteidl.service.DataProxyService - */ -export const DataProxyService = { - typeName: "flyteidl.service.DataProxyService", - methods: { - /** - * CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - * - * @generated from rpc flyteidl.service.DataProxyService.CreateUploadLocation - */ - createUploadLocation: { - name: "CreateUploadLocation", - I: CreateUploadLocationRequest, - O: CreateUploadLocationResponse, - kind: MethodKind.Unary, - }, - /** - * CreateDownloadLocation creates a signed url to download artifacts. - * - * @generated from rpc flyteidl.service.DataProxyService.CreateDownloadLocation - * @deprecated - */ - createDownloadLocation: { - name: "CreateDownloadLocation", - I: CreateDownloadLocationRequest, - O: CreateDownloadLocationResponse, - kind: MethodKind.Unary, - }, - /** - * CreateDownloadLocation creates a signed url to download artifacts. - * - * @generated from rpc flyteidl.service.DataProxyService.CreateDownloadLink - */ - createDownloadLink: { - name: "CreateDownloadLink", - I: CreateDownloadLinkRequest, - O: CreateDownloadLinkResponse, - kind: MethodKind.Unary, - }, - /** - * @generated from rpc flyteidl.service.DataProxyService.GetData - */ - getData: { - name: "GetData", - I: GetDataRequest, - O: GetDataResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts deleted file mode 100644 index 2b4cf829ab..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts +++ /dev/null @@ -1,570 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/service/dataproxy.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; -import { NodeExecutionIdentifier } from "../core/identifier_pb.js"; -import { Literal, LiteralMap } from "../core/literals_pb.js"; - -/** - * ArtifactType - * - * @generated from enum flyteidl.service.ArtifactType - */ -export enum ArtifactType { - /** - * ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. - * - * @generated from enum value: ARTIFACT_TYPE_UNDEFINED = 0; - */ - UNDEFINED = 0, - - /** - * ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan - * finishes executing. - * - * @generated from enum value: ARTIFACT_TYPE_DECK = 1; - */ - DECK = 1, -} -// Retrieve enum metadata with: proto3.getEnumType(ArtifactType) -proto3.util.setEnumType(ArtifactType, "flyteidl.service.ArtifactType", [ - { no: 0, name: "ARTIFACT_TYPE_UNDEFINED" }, - { no: 1, name: "ARTIFACT_TYPE_DECK" }, -]); - -/** - * @generated from message flyteidl.service.CreateUploadLocationResponse - */ -export class CreateUploadLocationResponse extends Message { - /** - * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - * - * @generated from field: string signed_url = 1; - */ - signedUrl = ""; - - /** - * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - * - * @generated from field: string native_url = 2; - */ - nativeUrl = ""; - - /** - * ExpiresAt defines when will the signed URL expires. - * - * @generated from field: google.protobuf.Timestamp expires_at = 3; - */ - expiresAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.CreateUploadLocationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "native_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "expires_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateUploadLocationResponse { - return new CreateUploadLocationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateUploadLocationResponse { - return new CreateUploadLocationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateUploadLocationResponse { - return new CreateUploadLocationResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateUploadLocationResponse | PlainMessage | undefined, b: CreateUploadLocationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateUploadLocationResponse, a, b); - } -} - -/** - * CreateUploadLocationRequest specified request for the CreateUploadLocation API. - * The implementation in data proxy service will create the s3 location with some server side configured prefixes, - * and then: - * - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR - * - project/domain/filename_root (if present)/filename (if present). - * - * @generated from message flyteidl.service.CreateUploadLocationRequest - */ -export class CreateUploadLocationRequest extends Message { - /** - * Project to create the upload location for - * +required - * - * @generated from field: string project = 1; - */ - project = ""; - - /** - * Domain to create the upload location for. - * +required - * - * @generated from field: string domain = 2; - */ - domain = ""; - - /** - * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. - * +optional. By default, the service will generate a consistent name based on the provided parameters. - * - * @generated from field: string filename = 3; - */ - filename = ""; - - /** - * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - * exceeds the platform allowed max. - * +optional. The default value comes from a global config. - * - * @generated from field: google.protobuf.Duration expires_in = 4; - */ - expiresIn?: Duration; - - /** - * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the - * generated path. - * +required - * - * @generated from field: bytes content_md5 = 5; - */ - contentMd5 = new Uint8Array(0); - - /** - * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included - * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix - * in data proxy config. This option is useful when uploading multiple files. - * +optional - * - * @generated from field: string filename_root = 6; - */ - filenameRoot = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.CreateUploadLocationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "expires_in", kind: "message", T: Duration }, - { no: 5, name: "content_md5", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 6, name: "filename_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateUploadLocationRequest { - return new CreateUploadLocationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateUploadLocationRequest { - return new CreateUploadLocationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateUploadLocationRequest { - return new CreateUploadLocationRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateUploadLocationRequest | PlainMessage | undefined, b: CreateUploadLocationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateUploadLocationRequest, a, b); - } -} - -/** - * CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. - * - * @generated from message flyteidl.service.CreateDownloadLocationRequest - * @deprecated - */ -export class CreateDownloadLocationRequest extends Message { - /** - * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - * - * @generated from field: string native_url = 1; - */ - nativeUrl = ""; - - /** - * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - * exceeds the platform allowed max. - * +optional. The default value comes from a global config. - * - * @generated from field: google.protobuf.Duration expires_in = 2; - */ - expiresIn?: Duration; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.CreateDownloadLocationRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "native_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "expires_in", kind: "message", T: Duration }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLocationRequest { - return new CreateDownloadLocationRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLocationRequest { - return new CreateDownloadLocationRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLocationRequest { - return new CreateDownloadLocationRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateDownloadLocationRequest | PlainMessage | undefined, b: CreateDownloadLocationRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateDownloadLocationRequest, a, b); - } -} - -/** - * @generated from message flyteidl.service.CreateDownloadLocationResponse - * @deprecated - */ -export class CreateDownloadLocationResponse extends Message { - /** - * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - * - * @generated from field: string signed_url = 1; - */ - signedUrl = ""; - - /** - * ExpiresAt defines when will the signed URL expires. - * - * @generated from field: google.protobuf.Timestamp expires_at = 2; - */ - expiresAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.CreateDownloadLocationResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "expires_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLocationResponse { - return new CreateDownloadLocationResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLocationResponse { - return new CreateDownloadLocationResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLocationResponse { - return new CreateDownloadLocationResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateDownloadLocationResponse | PlainMessage | undefined, b: CreateDownloadLocationResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateDownloadLocationResponse, a, b); - } -} - -/** - * CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) - * - * @generated from message flyteidl.service.CreateDownloadLinkRequest - */ -export class CreateDownloadLinkRequest extends Message { - /** - * ArtifactType of the artifact requested. - * - * @generated from field: flyteidl.service.ArtifactType artifact_type = 1; - */ - artifactType = ArtifactType.UNDEFINED; - - /** - * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - * exceeds the platform allowed max. - * +optional. The default value comes from a global config. - * - * @generated from field: google.protobuf.Duration expires_in = 2; - */ - expiresIn?: Duration; - - /** - * @generated from oneof flyteidl.service.CreateDownloadLinkRequest.source - */ - source: { - /** - * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the - * most recent attempt of the task. - * - * @generated from field: flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - value: NodeExecutionIdentifier; - case: "nodeExecutionId"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.CreateDownloadLinkRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "artifact_type", kind: "enum", T: proto3.getEnumType(ArtifactType) }, - { no: 2, name: "expires_in", kind: "message", T: Duration }, - { no: 3, name: "node_execution_id", kind: "message", T: NodeExecutionIdentifier, oneof: "source" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLinkRequest { - return new CreateDownloadLinkRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLinkRequest { - return new CreateDownloadLinkRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLinkRequest { - return new CreateDownloadLinkRequest().fromJsonString(jsonString, options); - } - - static equals(a: CreateDownloadLinkRequest | PlainMessage | undefined, b: CreateDownloadLinkRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateDownloadLinkRequest, a, b); - } -} - -/** - * CreateDownloadLinkResponse defines the response for the generated links - * - * @generated from message flyteidl.service.CreateDownloadLinkResponse - */ -export class CreateDownloadLinkResponse extends Message { - /** - * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - * - * @generated from field: repeated string signed_url = 1 [deprecated = true]; - * @deprecated - */ - signedUrl: string[] = []; - - /** - * ExpiresAt defines when will the signed URL expire. - * - * @generated from field: google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - * @deprecated - */ - expiresAt?: Timestamp; - - /** - * New wrapper object containing the signed urls and expiration time - * - * @generated from field: flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - preSignedUrls?: PreSignedURLs; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.CreateDownloadLinkResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "expires_at", kind: "message", T: Timestamp }, - { no: 3, name: "pre_signed_urls", kind: "message", T: PreSignedURLs }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLinkResponse { - return new CreateDownloadLinkResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLinkResponse { - return new CreateDownloadLinkResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLinkResponse { - return new CreateDownloadLinkResponse().fromJsonString(jsonString, options); - } - - static equals(a: CreateDownloadLinkResponse | PlainMessage | undefined, b: CreateDownloadLinkResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(CreateDownloadLinkResponse, a, b); - } -} - -/** - * Wrapper object since the message is shared across this and the GetDataResponse - * - * @generated from message flyteidl.service.PreSignedURLs - */ -export class PreSignedURLs extends Message { - /** - * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - * - * @generated from field: repeated string signed_url = 1; - */ - signedUrl: string[] = []; - - /** - * ExpiresAt defines when will the signed URL expire. - * - * @generated from field: google.protobuf.Timestamp expires_at = 2; - */ - expiresAt?: Timestamp; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.PreSignedURLs"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, - { no: 2, name: "expires_at", kind: "message", T: Timestamp }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): PreSignedURLs { - return new PreSignedURLs().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): PreSignedURLs { - return new PreSignedURLs().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): PreSignedURLs { - return new PreSignedURLs().fromJsonString(jsonString, options); - } - - static equals(a: PreSignedURLs | PlainMessage | undefined, b: PreSignedURLs | PlainMessage | undefined): boolean { - return proto3.util.equals(PreSignedURLs, a, b); - } -} - -/** - * General request artifact to retrieve data from a Flyte artifact url. - * - * @generated from message flyteidl.service.GetDataRequest - */ -export class GetDataRequest extends Message { - /** - * A unique identifier in the form of flyte:// that uniquely, for a given Flyte - * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.). - * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) - * flyte://v1/proj/development/execid/n2/i (for node execution input) - * flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) - * - * @generated from field: string flyte_url = 1; - */ - flyteUrl = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.GetDataRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "flyte_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDataRequest { - return new GetDataRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDataRequest { - return new GetDataRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDataRequest { - return new GetDataRequest().fromJsonString(jsonString, options); - } - - static equals(a: GetDataRequest | PlainMessage | undefined, b: GetDataRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDataRequest, a, b); - } -} - -/** - * @generated from message flyteidl.service.GetDataResponse - */ -export class GetDataResponse extends Message { - /** - * @generated from oneof flyteidl.service.GetDataResponse.data - */ - data: { - /** - * literal map data will be returned - * - * @generated from field: flyteidl.core.LiteralMap literal_map = 1; - */ - value: LiteralMap; - case: "literalMap"; - } | { - /** - * Flyte deck html will be returned as a signed url users can download - * - * @generated from field: flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - value: PreSignedURLs; - case: "preSignedUrls"; - } | { - /** - * Single literal will be returned. This is returned when the user/url requests a specific output or input - * by name. See the o3 example above. - * - * @generated from field: flyteidl.core.Literal literal = 3; - */ - value: Literal; - case: "literal"; - } | { case: undefined; value?: undefined } = { case: undefined }; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.GetDataResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "literal_map", kind: "message", T: LiteralMap, oneof: "data" }, - { no: 2, name: "pre_signed_urls", kind: "message", T: PreSignedURLs, oneof: "data" }, - { no: 3, name: "literal", kind: "message", T: Literal, oneof: "data" }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): GetDataResponse { - return new GetDataResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): GetDataResponse { - return new GetDataResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): GetDataResponse { - return new GetDataResponse().fromJsonString(jsonString, options); - } - - static equals(a: GetDataResponse | PlainMessage | undefined, b: GetDataResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(GetDataResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts deleted file mode 100644 index a1abb14ae9..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts +++ /dev/null @@ -1,55 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/external_plugin_service.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { TaskCreateRequest, TaskCreateResponse, TaskDeleteRequest, TaskDeleteResponse, TaskGetRequest, TaskGetResponse } from "./external_plugin_service_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - * - * @generated from service flyteidl.service.ExternalPluginService - */ -export const ExternalPluginService = { - typeName: "flyteidl.service.ExternalPluginService", - methods: { - /** - * Send a task create request to the backend plugin server. - * - * @generated from rpc flyteidl.service.ExternalPluginService.CreateTask - * @deprecated - */ - createTask: { - name: "CreateTask", - I: TaskCreateRequest, - O: TaskCreateResponse, - kind: MethodKind.Unary, - }, - /** - * Get job status. - * - * @generated from rpc flyteidl.service.ExternalPluginService.GetTask - * @deprecated - */ - getTask: { - name: "GetTask", - I: TaskGetRequest, - O: TaskGetResponse, - kind: MethodKind.Unary, - }, - /** - * Delete the task resource. - * - * @generated from rpc flyteidl.service.ExternalPluginService.DeleteTask - * @deprecated - */ - deleteTask: { - name: "DeleteTask", - I: TaskDeleteRequest, - O: TaskDeleteResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts deleted file mode 100644 index 2a3e022be7..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts +++ /dev/null @@ -1,337 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/service/external_plugin_service.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3 } from "@bufbuild/protobuf"; -import { LiteralMap } from "../core/literals_pb.js"; -import { TaskTemplate } from "../core/tasks_pb.js"; - -/** - * The state of the execution is used to control its visibility in the UI/CLI. - * - * @generated from enum flyteidl.service.State - * @deprecated - */ -export enum State { - /** - * @generated from enum value: RETRYABLE_FAILURE = 0; - */ - RETRYABLE_FAILURE = 0, - - /** - * @generated from enum value: PERMANENT_FAILURE = 1; - */ - PERMANENT_FAILURE = 1, - - /** - * @generated from enum value: PENDING = 2; - */ - PENDING = 2, - - /** - * @generated from enum value: RUNNING = 3; - */ - RUNNING = 3, - - /** - * @generated from enum value: SUCCEEDED = 4; - */ - SUCCEEDED = 4, -} -// Retrieve enum metadata with: proto3.getEnumType(State) -proto3.util.setEnumType(State, "flyteidl.service.State", [ - { no: 0, name: "RETRYABLE_FAILURE" }, - { no: 1, name: "PERMANENT_FAILURE" }, - { no: 2, name: "PENDING" }, - { no: 3, name: "RUNNING" }, - { no: 4, name: "SUCCEEDED" }, -]); - -/** - * Represents a request structure to create task. - * - * @generated from message flyteidl.service.TaskCreateRequest - * @deprecated - */ -export class TaskCreateRequest extends Message { - /** - * The inputs required to start the execution. All required inputs must be - * included in this map. If not required and not provided, defaults apply. - * +optional - * - * @generated from field: flyteidl.core.LiteralMap inputs = 1; - */ - inputs?: LiteralMap; - - /** - * Template of the task that encapsulates all the metadata of the task. - * - * @generated from field: flyteidl.core.TaskTemplate template = 2; - */ - template?: TaskTemplate; - - /** - * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - * - * @generated from field: string output_prefix = 3; - */ - outputPrefix = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.TaskCreateRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "inputs", kind: "message", T: LiteralMap }, - { no: 2, name: "template", kind: "message", T: TaskTemplate }, - { no: 3, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateRequest { - return new TaskCreateRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateRequest { - return new TaskCreateRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskCreateRequest { - return new TaskCreateRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskCreateRequest | PlainMessage | undefined, b: TaskCreateRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskCreateRequest, a, b); - } -} - -/** - * Represents a create response structure. - * - * @generated from message flyteidl.service.TaskCreateResponse - * @deprecated - */ -export class TaskCreateResponse extends Message { - /** - * @generated from field: string job_id = 1; - */ - jobId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.TaskCreateResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateResponse { - return new TaskCreateResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateResponse { - return new TaskCreateResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskCreateResponse { - return new TaskCreateResponse().fromJsonString(jsonString, options); - } - - static equals(a: TaskCreateResponse | PlainMessage | undefined, b: TaskCreateResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskCreateResponse, a, b); - } -} - -/** - * A message used to fetch a job state from backend plugin server. - * - * @generated from message flyteidl.service.TaskGetRequest - * @deprecated - */ -export class TaskGetRequest extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string task_type = 1; - */ - taskType = ""; - - /** - * The unique id identifying the job. - * - * @generated from field: string job_id = 2; - */ - jobId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.TaskGetRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskGetRequest { - return new TaskGetRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskGetRequest { - return new TaskGetRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskGetRequest { - return new TaskGetRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskGetRequest | PlainMessage | undefined, b: TaskGetRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskGetRequest, a, b); - } -} - -/** - * Response to get an individual task state. - * - * @generated from message flyteidl.service.TaskGetResponse - * @deprecated - */ -export class TaskGetResponse extends Message { - /** - * The state of the execution is used to control its visibility in the UI/CLI. - * - * @generated from field: flyteidl.service.State state = 1; - */ - state = State.RETRYABLE_FAILURE; - - /** - * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a - * Structured dataset pointing to the query result table. - * +optional - * - * @generated from field: flyteidl.core.LiteralMap outputs = 2; - */ - outputs?: LiteralMap; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.TaskGetResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, - { no: 2, name: "outputs", kind: "message", T: LiteralMap }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskGetResponse { - return new TaskGetResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskGetResponse { - return new TaskGetResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskGetResponse { - return new TaskGetResponse().fromJsonString(jsonString, options); - } - - static equals(a: TaskGetResponse | PlainMessage | undefined, b: TaskGetResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskGetResponse, a, b); - } -} - -/** - * A message used to delete a task. - * - * @generated from message flyteidl.service.TaskDeleteRequest - * @deprecated - */ -export class TaskDeleteRequest extends Message { - /** - * A predefined yet extensible Task type identifier. - * - * @generated from field: string task_type = 1; - */ - taskType = ""; - - /** - * The unique id identifying the job. - * - * @generated from field: string job_id = 2; - */ - jobId = ""; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.TaskDeleteRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskDeleteRequest { - return new TaskDeleteRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskDeleteRequest { - return new TaskDeleteRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskDeleteRequest { - return new TaskDeleteRequest().fromJsonString(jsonString, options); - } - - static equals(a: TaskDeleteRequest | PlainMessage | undefined, b: TaskDeleteRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskDeleteRequest, a, b); - } -} - -/** - * Response to delete a task. - * - * @generated from message flyteidl.service.TaskDeleteResponse - * @deprecated - */ -export class TaskDeleteResponse extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.TaskDeleteResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): TaskDeleteResponse { - return new TaskDeleteResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): TaskDeleteResponse { - return new TaskDeleteResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): TaskDeleteResponse { - return new TaskDeleteResponse().fromJsonString(jsonString, options); - } - - static equals(a: TaskDeleteResponse | PlainMessage | undefined, b: TaskDeleteResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskDeleteResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts deleted file mode 100644 index 0094996c35..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts +++ /dev/null @@ -1,30 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/identity.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { UserInfoRequest, UserInfoResponse } from "./identity_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * IdentityService defines an RPC Service that interacts with user/app identities. - * - * @generated from service flyteidl.service.IdentityService - */ -export const IdentityService = { - typeName: "flyteidl.service.IdentityService", - methods: { - /** - * Retrieves user information about the currently logged in user. - * - * @generated from rpc flyteidl.service.IdentityService.UserInfo - */ - userInfo: { - name: "UserInfo", - I: UserInfoRequest, - O: UserInfoResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts deleted file mode 100644 index 7b75d327bc..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts +++ /dev/null @@ -1,137 +0,0 @@ -// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" -// @generated from file flyteidl/service/identity.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; -import { Message, proto3, Struct } from "@bufbuild/protobuf"; - -/** - * @generated from message flyteidl.service.UserInfoRequest - */ -export class UserInfoRequest extends Message { - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.UserInfoRequest"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserInfoRequest { - return new UserInfoRequest().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserInfoRequest { - return new UserInfoRequest().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserInfoRequest { - return new UserInfoRequest().fromJsonString(jsonString, options); - } - - static equals(a: UserInfoRequest | PlainMessage | undefined, b: UserInfoRequest | PlainMessage | undefined): boolean { - return proto3.util.equals(UserInfoRequest, a, b); - } -} - -/** - * See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. - * - * @generated from message flyteidl.service.UserInfoResponse - */ -export class UserInfoResponse extends Message { - /** - * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed - * by the Client. - * - * @generated from field: string subject = 1; - */ - subject = ""; - - /** - * Full name - * - * @generated from field: string name = 2; - */ - name = ""; - - /** - * Shorthand name by which the End-User wishes to be referred to - * - * @generated from field: string preferred_username = 3; - */ - preferredUsername = ""; - - /** - * Given name(s) or first name(s) - * - * @generated from field: string given_name = 4; - */ - givenName = ""; - - /** - * Surname(s) or last name(s) - * - * @generated from field: string family_name = 5; - */ - familyName = ""; - - /** - * Preferred e-mail address - * - * @generated from field: string email = 6; - */ - email = ""; - - /** - * Profile picture URL - * - * @generated from field: string picture = 7; - */ - picture = ""; - - /** - * Additional claims - * - * @generated from field: google.protobuf.Struct additional_claims = 8; - */ - additionalClaims?: Struct; - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.service.UserInfoResponse"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 3, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 4, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 6, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 7, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 8, name: "additional_claims", kind: "message", T: Struct }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): UserInfoResponse { - return new UserInfoResponse().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): UserInfoResponse { - return new UserInfoResponse().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): UserInfoResponse { - return new UserInfoResponse().fromJsonString(jsonString, options); - } - - static equals(a: UserInfoResponse | PlainMessage | undefined, b: UserInfoResponse | PlainMessage | undefined): boolean { - return proto3.util.equals(UserInfoResponse, a, b); - } -} - diff --git a/flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts deleted file mode 100644 index 2bde50661a..0000000000 --- a/flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts +++ /dev/null @@ -1,52 +0,0 @@ -// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" -// @generated from file flyteidl/service/signal.proto (package flyteidl.service, syntax proto3) -/* eslint-disable */ -// @ts-nocheck - -import { Signal, SignalGetOrCreateRequest, SignalList, SignalListRequest, SignalSetRequest, SignalSetResponse } from "../admin/signal_pb.js"; -import { MethodKind } from "@bufbuild/protobuf"; - -/** - * SignalService defines an RPC Service that may create, update, and retrieve signal(s). - * - * @generated from service flyteidl.service.SignalService - */ -export const SignalService = { - typeName: "flyteidl.service.SignalService", - methods: { - /** - * Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - * - * @generated from rpc flyteidl.service.SignalService.GetOrCreateSignal - */ - getOrCreateSignal: { - name: "GetOrCreateSignal", - I: SignalGetOrCreateRequest, - O: Signal, - kind: MethodKind.Unary, - }, - /** - * Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - * - * @generated from rpc flyteidl.service.SignalService.ListSignals - */ - listSignals: { - name: "ListSignals", - I: SignalListRequest, - O: SignalList, - kind: MethodKind.Unary, - }, - /** - * Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - * - * @generated from rpc flyteidl.service.SignalService.SetSignal - */ - setSignal: { - name: "SetSignal", - I: SignalSetRequest, - O: SignalSetResponse, - kind: MethodKind.Unary, - }, - } -} as const; - diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go deleted file mode 100644 index ed275ca1e1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ /dev/null @@ -1,2396 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/agent.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The state of the execution is used to control its visibility in the UI/CLI. -// -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -type State int32 - -const ( - State_RETRYABLE_FAILURE State = 0 - State_PERMANENT_FAILURE State = 1 - State_PENDING State = 2 - State_RUNNING State = 3 - State_SUCCEEDED State = 4 -) - -// Enum value maps for State. -var ( - State_name = map[int32]string{ - 0: "RETRYABLE_FAILURE", - 1: "PERMANENT_FAILURE", - 2: "PENDING", - 3: "RUNNING", - 4: "SUCCEEDED", - } - State_value = map[string]int32{ - "RETRYABLE_FAILURE": 0, - "PERMANENT_FAILURE": 1, - "PENDING": 2, - "RUNNING": 3, - "SUCCEEDED": 4, - } -) - -func (x State) Enum() *State { - p := new(State) - *p = x - return p -} - -func (x State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (State) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_agent_proto_enumTypes[0].Descriptor() -} - -func (State) Type() protoreflect.EnumType { - return &file_flyteidl_admin_agent_proto_enumTypes[0] -} - -func (x State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use State.Descriptor instead. -func (State) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{0} -} - -// Represents a subset of runtime task execution metadata that are relevant to external plugins. -type TaskExecutionMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ID of the task execution - TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` - // k8s namespace where the task is executed in - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - // Labels attached to the task execution - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Annotations attached to the task execution - Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // k8s service account associated with the task execution - K8SServiceAccount string `protobuf:"bytes,5,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` - // Environment variables attached to the task execution - EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - MaxAttempts int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - InterruptibleFailureThreshold int32 `protobuf:"varint,9,opt,name=interruptible_failure_threshold,json=interruptibleFailureThreshold,proto3" json:"interruptible_failure_threshold,omitempty"` - Overrides *core.TaskNodeOverrides `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"` -} - -func (x *TaskExecutionMetadata) Reset() { - *x = TaskExecutionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionMetadata) ProtoMessage() {} - -func (x *TaskExecutionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionMetadata.ProtoReflect.Descriptor instead. -func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{0} -} - -func (x *TaskExecutionMetadata) GetTaskExecutionId() *core.TaskExecutionIdentifier { - if x != nil { - return x.TaskExecutionId - } - return nil -} - -func (x *TaskExecutionMetadata) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -func (x *TaskExecutionMetadata) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *TaskExecutionMetadata) GetAnnotations() map[string]string { - if x != nil { - return x.Annotations - } - return nil -} - -func (x *TaskExecutionMetadata) GetK8SServiceAccount() string { - if x != nil { - return x.K8SServiceAccount - } - return "" -} - -func (x *TaskExecutionMetadata) GetEnvironmentVariables() map[string]string { - if x != nil { - return x.EnvironmentVariables - } - return nil -} - -func (x *TaskExecutionMetadata) GetMaxAttempts() int32 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *TaskExecutionMetadata) GetInterruptible() bool { - if x != nil { - return x.Interruptible - } - return false -} - -func (x *TaskExecutionMetadata) GetInterruptibleFailureThreshold() int32 { - if x != nil { - return x.InterruptibleFailureThreshold - } - return 0 -} - -func (x *TaskExecutionMetadata) GetOverrides() *core.TaskNodeOverrides { - if x != nil { - return x.Overrides - } - return nil -} - -// Represents a request structure to create task. -type CreateTaskRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` - // subset of runtime task execution metadata. - TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,4,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` -} - -func (x *CreateTaskRequest) Reset() { - *x = CreateTaskRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTaskRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTaskRequest) ProtoMessage() {} - -func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead. -func (*CreateTaskRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateTaskRequest) GetInputs() *core.LiteralMap { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *CreateTaskRequest) GetTemplate() *core.TaskTemplate { - if x != nil { - return x.Template - } - return nil -} - -func (x *CreateTaskRequest) GetOutputPrefix() string { - if x != nil { - return x.OutputPrefix - } - return "" -} - -func (x *CreateTaskRequest) GetTaskExecutionMetadata() *TaskExecutionMetadata { - if x != nil { - return x.TaskExecutionMetadata - } - return nil -} - -// Represents a create response structure. -type CreateTaskResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` -} - -func (x *CreateTaskResponse) Reset() { - *x = CreateTaskResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTaskResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTaskResponse) ProtoMessage() {} - -func (x *CreateTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTaskResponse.ProtoReflect.Descriptor instead. -func (*CreateTaskResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{2} -} - -func (x *CreateTaskResponse) GetResourceMeta() []byte { - if x != nil { - return x.ResourceMeta - } - return nil -} - -type CreateRequestHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - OutputPrefix string `protobuf:"bytes,2,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` - // subset of runtime task execution metadata. - TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,3,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` - // MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. - MaxDatasetSizeBytes int64 `protobuf:"varint,4,opt,name=max_dataset_size_bytes,json=maxDatasetSizeBytes,proto3" json:"max_dataset_size_bytes,omitempty"` -} - -func (x *CreateRequestHeader) Reset() { - *x = CreateRequestHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRequestHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRequestHeader) ProtoMessage() {} - -func (x *CreateRequestHeader) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateRequestHeader.ProtoReflect.Descriptor instead. -func (*CreateRequestHeader) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateRequestHeader) GetTemplate() *core.TaskTemplate { - if x != nil { - return x.Template - } - return nil -} - -func (x *CreateRequestHeader) GetOutputPrefix() string { - if x != nil { - return x.OutputPrefix - } - return "" -} - -func (x *CreateRequestHeader) GetTaskExecutionMetadata() *TaskExecutionMetadata { - if x != nil { - return x.TaskExecutionMetadata - } - return nil -} - -func (x *CreateRequestHeader) GetMaxDatasetSizeBytes() int64 { - if x != nil { - return x.MaxDatasetSizeBytes - } - return 0 -} - -type ExecuteTaskSyncRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Part: - // - // *ExecuteTaskSyncRequest_Header - // *ExecuteTaskSyncRequest_Inputs - Part isExecuteTaskSyncRequest_Part `protobuf_oneof:"part"` -} - -func (x *ExecuteTaskSyncRequest) Reset() { - *x = ExecuteTaskSyncRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecuteTaskSyncRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecuteTaskSyncRequest) ProtoMessage() {} - -func (x *ExecuteTaskSyncRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecuteTaskSyncRequest.ProtoReflect.Descriptor instead. -func (*ExecuteTaskSyncRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{4} -} - -func (m *ExecuteTaskSyncRequest) GetPart() isExecuteTaskSyncRequest_Part { - if m != nil { - return m.Part - } - return nil -} - -func (x *ExecuteTaskSyncRequest) GetHeader() *CreateRequestHeader { - if x, ok := x.GetPart().(*ExecuteTaskSyncRequest_Header); ok { - return x.Header - } - return nil -} - -func (x *ExecuteTaskSyncRequest) GetInputs() *core.LiteralMap { - if x, ok := x.GetPart().(*ExecuteTaskSyncRequest_Inputs); ok { - return x.Inputs - } - return nil -} - -type isExecuteTaskSyncRequest_Part interface { - isExecuteTaskSyncRequest_Part() -} - -type ExecuteTaskSyncRequest_Header struct { - Header *CreateRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` -} - -type ExecuteTaskSyncRequest_Inputs struct { - Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3,oneof"` -} - -func (*ExecuteTaskSyncRequest_Header) isExecuteTaskSyncRequest_Part() {} - -func (*ExecuteTaskSyncRequest_Inputs) isExecuteTaskSyncRequest_Part() {} - -type ExecuteTaskSyncResponseHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` -} - -func (x *ExecuteTaskSyncResponseHeader) Reset() { - *x = ExecuteTaskSyncResponseHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecuteTaskSyncResponseHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecuteTaskSyncResponseHeader) ProtoMessage() {} - -func (x *ExecuteTaskSyncResponseHeader) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecuteTaskSyncResponseHeader.ProtoReflect.Descriptor instead. -func (*ExecuteTaskSyncResponseHeader) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{5} -} - -func (x *ExecuteTaskSyncResponseHeader) GetResource() *Resource { - if x != nil { - return x.Resource - } - return nil -} - -type ExecuteTaskSyncResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - // Resource is for synchronous task execution. - // - // Types that are assignable to Res: - // - // *ExecuteTaskSyncResponse_Header - // *ExecuteTaskSyncResponse_Outputs - Res isExecuteTaskSyncResponse_Res `protobuf_oneof:"res"` -} - -func (x *ExecuteTaskSyncResponse) Reset() { - *x = ExecuteTaskSyncResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecuteTaskSyncResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecuteTaskSyncResponse) ProtoMessage() {} - -func (x *ExecuteTaskSyncResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecuteTaskSyncResponse.ProtoReflect.Descriptor instead. -func (*ExecuteTaskSyncResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{6} -} - -func (m *ExecuteTaskSyncResponse) GetRes() isExecuteTaskSyncResponse_Res { - if m != nil { - return m.Res - } - return nil -} - -func (x *ExecuteTaskSyncResponse) GetHeader() *ExecuteTaskSyncResponseHeader { - if x, ok := x.GetRes().(*ExecuteTaskSyncResponse_Header); ok { - return x.Header - } - return nil -} - -func (x *ExecuteTaskSyncResponse) GetOutputs() *core.LiteralMap { - if x, ok := x.GetRes().(*ExecuteTaskSyncResponse_Outputs); ok { - return x.Outputs - } - return nil -} - -type isExecuteTaskSyncResponse_Res interface { - isExecuteTaskSyncResponse_Res() -} - -type ExecuteTaskSyncResponse_Header struct { - Header *ExecuteTaskSyncResponseHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` -} - -type ExecuteTaskSyncResponse_Outputs struct { - Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3,oneof"` -} - -func (*ExecuteTaskSyncResponse_Header) isExecuteTaskSyncResponse_Res() {} - -func (*ExecuteTaskSyncResponse_Outputs) isExecuteTaskSyncResponse_Res() {} - -// A message used to fetch a job resource from flyte agent server. -type GetTaskRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - // - // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` - // Metadata about the resource to be pass to the agent. - ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` -} - -func (x *GetTaskRequest) Reset() { - *x = GetTaskRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskRequest) ProtoMessage() {} - -func (x *GetTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead. -func (*GetTaskRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{7} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *GetTaskRequest) GetDeprecatedTaskType() string { - if x != nil { - return x.DeprecatedTaskType - } - return "" -} - -func (x *GetTaskRequest) GetResourceMeta() []byte { - if x != nil { - return x.ResourceMeta - } - return nil -} - -func (x *GetTaskRequest) GetTaskType() *TaskType { - if x != nil { - return x.TaskType - } - return nil -} - -// Response to get an individual task resource. -type GetTaskResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` -} - -func (x *GetTaskResponse) Reset() { - *x = GetTaskResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskResponse) ProtoMessage() {} - -func (x *GetTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead. -func (*GetTaskResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{8} -} - -func (x *GetTaskResponse) GetResource() *Resource { - if x != nil { - return x.Resource - } - return nil -} - -type Resource struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI. - // - // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.State" json:"state,omitempty"` - // The outputs of the execution. It's typically used by sql task. Agent service will create a - // Structured dataset pointing to the query result table. - // +optional - Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - // A descriptive message for the current state. e.g. waiting for cluster. - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - // log information for the task execution. - LogLinks []*core.TaskLog `protobuf:"bytes,4,rep,name=log_links,json=logLinks,proto3" json:"log_links,omitempty"` - // The phase of the execution is used to determine the phase of the plugin's execution. - Phase core.TaskExecution_Phase `protobuf:"varint,5,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` -} - -func (x *Resource) Reset() { - *x = Resource{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Resource) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Resource) ProtoMessage() {} - -func (x *Resource) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Resource.ProtoReflect.Descriptor instead. -func (*Resource) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{9} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *Resource) GetState() State { - if x != nil { - return x.State - } - return State_RETRYABLE_FAILURE -} - -func (x *Resource) GetOutputs() *core.LiteralMap { - if x != nil { - return x.Outputs - } - return nil -} - -func (x *Resource) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *Resource) GetLogLinks() []*core.TaskLog { - if x != nil { - return x.LogLinks - } - return nil -} - -func (x *Resource) GetPhase() core.TaskExecution_Phase { - if x != nil { - return x.Phase - } - return core.TaskExecution_Phase(0) -} - -// A message used to delete a task. -type DeleteTaskRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - // - // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` - // Metadata about the resource to be pass to the agent. - ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` -} - -func (x *DeleteTaskRequest) Reset() { - *x = DeleteTaskRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTaskRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTaskRequest) ProtoMessage() {} - -func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead. -func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{10} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *DeleteTaskRequest) GetDeprecatedTaskType() string { - if x != nil { - return x.DeprecatedTaskType - } - return "" -} - -func (x *DeleteTaskRequest) GetResourceMeta() []byte { - if x != nil { - return x.ResourceMeta - } - return nil -} - -func (x *DeleteTaskRequest) GetTaskType() *TaskType { - if x != nil { - return x.TaskType - } - return nil -} - -// Response to delete a task. -type DeleteTaskResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DeleteTaskResponse) Reset() { - *x = DeleteTaskResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTaskResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTaskResponse) ProtoMessage() {} - -func (x *DeleteTaskResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTaskResponse.ProtoReflect.Descriptor instead. -func (*DeleteTaskResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{11} -} - -// A message containing the agent metadata. -type Agent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name is the developer-assigned name of the agent. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // SupportedTaskTypes are the types of the tasks that the agent can handle. - // - // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedSupportedTaskTypes []string `protobuf:"bytes,2,rep,name=deprecated_supported_task_types,json=deprecatedSupportedTaskTypes,proto3" json:"deprecated_supported_task_types,omitempty"` - // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their - // results synchronously when called by propeller. Given that sync agents can affect the performance - // of the system, it's important to enforce strict timeout policies. - // An Async agent, on the other hand, is required to be able to identify jobs by an - // identifier and query for job statuses as jobs progress. - IsSync bool `protobuf:"varint,3,opt,name=is_sync,json=isSync,proto3" json:"is_sync,omitempty"` - // SupportedTaskTypes are the types of the tasks that the agent can handle. - SupportedTaskTypes []*TaskType `protobuf:"bytes,4,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` -} - -func (x *Agent) Reset() { - *x = Agent{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Agent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Agent) ProtoMessage() {} - -func (x *Agent) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Agent.ProtoReflect.Descriptor instead. -func (*Agent) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{12} -} - -func (x *Agent) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *Agent) GetDeprecatedSupportedTaskTypes() []string { - if x != nil { - return x.DeprecatedSupportedTaskTypes - } - return nil -} - -func (x *Agent) GetIsSync() bool { - if x != nil { - return x.IsSync - } - return false -} - -func (x *Agent) GetSupportedTaskTypes() []*TaskType { - if x != nil { - return x.SupportedTaskTypes - } - return nil -} - -type TaskType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the task type. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The version of the task type. - Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *TaskType) Reset() { - *x = TaskType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskType) ProtoMessage() {} - -func (x *TaskType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskType.ProtoReflect.Descriptor instead. -func (*TaskType) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{13} -} - -func (x *TaskType) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TaskType) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -// A request to get an agent. -type GetAgentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the agent. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetAgentRequest) Reset() { - *x = GetAgentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAgentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAgentRequest) ProtoMessage() {} - -func (x *GetAgentRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead. -func (*GetAgentRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{14} -} - -func (x *GetAgentRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// A response containing an agent. -type GetAgentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Agent *Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` -} - -func (x *GetAgentResponse) Reset() { - *x = GetAgentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAgentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAgentResponse) ProtoMessage() {} - -func (x *GetAgentResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAgentResponse.ProtoReflect.Descriptor instead. -func (*GetAgentResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{15} -} - -func (x *GetAgentResponse) GetAgent() *Agent { - if x != nil { - return x.Agent - } - return nil -} - -// A request to list all agents. -type ListAgentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ListAgentsRequest) Reset() { - *x = ListAgentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAgentsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAgentsRequest) ProtoMessage() {} - -func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListAgentsRequest.ProtoReflect.Descriptor instead. -func (*ListAgentsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{16} -} - -// A response containing a list of agents. -type ListAgentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` -} - -func (x *ListAgentsResponse) Reset() { - *x = ListAgentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListAgentsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListAgentsResponse) ProtoMessage() {} - -func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListAgentsResponse.ProtoReflect.Descriptor instead. -func (*ListAgentsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{17} -} - -func (x *ListAgentsResponse) GetAgents() []*Agent { - if x != nil { - return x.Agents - } - return nil -} - -// A request to get the metrics from a task execution. -type GetTaskMetricsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - // - // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` - // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` - // The metrics to query. If empty, will return a default set of metrics. - // e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG - Queries []string `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - // Start timestamp, inclusive. - StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // End timestamp, inclusive.. - EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Query resolution step width in duration format or float number of seconds. - Step *durationpb.Duration `protobuf:"bytes,6,opt,name=step,proto3" json:"step,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,7,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` -} - -func (x *GetTaskMetricsRequest) Reset() { - *x = GetTaskMetricsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskMetricsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskMetricsRequest) ProtoMessage() {} - -func (x *GetTaskMetricsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskMetricsRequest.ProtoReflect.Descriptor instead. -func (*GetTaskMetricsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{18} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *GetTaskMetricsRequest) GetDeprecatedTaskType() string { - if x != nil { - return x.DeprecatedTaskType - } - return "" -} - -func (x *GetTaskMetricsRequest) GetResourceMeta() []byte { - if x != nil { - return x.ResourceMeta - } - return nil -} - -func (x *GetTaskMetricsRequest) GetQueries() []string { - if x != nil { - return x.Queries - } - return nil -} - -func (x *GetTaskMetricsRequest) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *GetTaskMetricsRequest) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *GetTaskMetricsRequest) GetStep() *durationpb.Duration { - if x != nil { - return x.Step - } - return nil -} - -func (x *GetTaskMetricsRequest) GetTaskType() *TaskType { - if x != nil { - return x.TaskType - } - return nil -} - -// A response containing a list of metrics for a task execution. -type GetTaskMetricsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The execution metric results. - Results []*core.ExecutionMetricResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` -} - -func (x *GetTaskMetricsResponse) Reset() { - *x = GetTaskMetricsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskMetricsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskMetricsResponse) ProtoMessage() {} - -func (x *GetTaskMetricsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskMetricsResponse.ProtoReflect.Descriptor instead. -func (*GetTaskMetricsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{19} -} - -func (x *GetTaskMetricsResponse) GetResults() []*core.ExecutionMetricResult { - if x != nil { - return x.Results - } - return nil -} - -// A request to get the log from a task execution. -type GetTaskLogsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - // - // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` - // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` - // Number of lines to return. - Lines uint64 `protobuf:"varint,3,opt,name=lines,proto3" json:"lines,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,5,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` -} - -func (x *GetTaskLogsRequest) Reset() { - *x = GetTaskLogsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskLogsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskLogsRequest) ProtoMessage() {} - -func (x *GetTaskLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskLogsRequest.ProtoReflect.Descriptor instead. -func (*GetTaskLogsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{20} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *GetTaskLogsRequest) GetDeprecatedTaskType() string { - if x != nil { - return x.DeprecatedTaskType - } - return "" -} - -func (x *GetTaskLogsRequest) GetResourceMeta() []byte { - if x != nil { - return x.ResourceMeta - } - return nil -} - -func (x *GetTaskLogsRequest) GetLines() uint64 { - if x != nil { - return x.Lines - } - return 0 -} - -func (x *GetTaskLogsRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *GetTaskLogsRequest) GetTaskType() *TaskType { - if x != nil { - return x.TaskType - } - return nil -} - -type GetTaskLogsResponseHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *GetTaskLogsResponseHeader) Reset() { - *x = GetTaskLogsResponseHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskLogsResponseHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskLogsResponseHeader) ProtoMessage() {} - -func (x *GetTaskLogsResponseHeader) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskLogsResponseHeader.ProtoReflect.Descriptor instead. -func (*GetTaskLogsResponseHeader) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{21} -} - -func (x *GetTaskLogsResponseHeader) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -type GetTaskLogsResponseBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The execution log results. - Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` -} - -func (x *GetTaskLogsResponseBody) Reset() { - *x = GetTaskLogsResponseBody{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskLogsResponseBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskLogsResponseBody) ProtoMessage() {} - -func (x *GetTaskLogsResponseBody) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskLogsResponseBody.ProtoReflect.Descriptor instead. -func (*GetTaskLogsResponseBody) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{22} -} - -func (x *GetTaskLogsResponseBody) GetResults() []string { - if x != nil { - return x.Results - } - return nil -} - -// A response containing the logs for a task execution. -type GetTaskLogsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Part: - // - // *GetTaskLogsResponse_Header - // *GetTaskLogsResponse_Body - Part isGetTaskLogsResponse_Part `protobuf_oneof:"part"` -} - -func (x *GetTaskLogsResponse) Reset() { - *x = GetTaskLogsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_agent_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTaskLogsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTaskLogsResponse) ProtoMessage() {} - -func (x *GetTaskLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_agent_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTaskLogsResponse.ProtoReflect.Descriptor instead. -func (*GetTaskLogsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{23} -} - -func (m *GetTaskLogsResponse) GetPart() isGetTaskLogsResponse_Part { - if m != nil { - return m.Part - } - return nil -} - -func (x *GetTaskLogsResponse) GetHeader() *GetTaskLogsResponseHeader { - if x, ok := x.GetPart().(*GetTaskLogsResponse_Header); ok { - return x.Header - } - return nil -} - -func (x *GetTaskLogsResponse) GetBody() *GetTaskLogsResponseBody { - if x, ok := x.GetPart().(*GetTaskLogsResponse_Body); ok { - return x.Body - } - return nil -} - -type isGetTaskLogsResponse_Part interface { - isGetTaskLogsResponse_Part() -} - -type GetTaskLogsResponse_Header struct { - Header *GetTaskLogsResponseHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` -} - -type GetTaskLogsResponse_Body struct { - Body *GetTaskLogsResponseBody `protobuf:"bytes,2,opt,name=body,proto3,oneof"` -} - -func (*GetTaskLogsResponse_Header) isGetTaskLogsResponse_Part() {} - -func (*GetTaskLogsResponse_Body) isGetTaskLogsResponse_Part() {} - -var File_flyteidl_admin_agent_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_agent_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1c, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xe9, 0x06, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x52, 0x0a, 0x11, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x74, - 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, - 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x06, - 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, - 0x6b, 0x38, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x74, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x3f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, - 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, - 0x61, 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x12, 0x46, 0x0a, 0x1f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, - 0x65, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, - 0x6f, 0x6c, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, - 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x3e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, - 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x4e, 0x6f, 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x09, 0x6f, - 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x47, 0x0a, 0x19, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x83, 0x02, 0x0a, - 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x06, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, - 0x66, 0x69, 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, 0x73, - 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x39, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x87, 0x02, - 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, - 0x66, 0x69, 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, 0x73, - 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x53, 0x69, - 0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x12, 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x06, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x22, 0x55, - 0x0a, 0x1d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, - 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, - 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x47, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, - 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x73, 0x42, 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, - 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, - 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x47, 0x0a, - 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, - 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, - 0x6c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, - 0x73, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, - 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, - 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xcb, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, - 0x0a, 0x1f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x1c, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, - 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, - 0x6e, 0x63, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x38, - 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, - 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, - 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, - 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, - 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, - 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, - 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, - 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, - 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, - 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, - 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_flyteidl_admin_agent_proto_rawDescOnce sync.Once - file_flyteidl_admin_agent_proto_rawDescData = file_flyteidl_admin_agent_proto_rawDesc -) - -func file_flyteidl_admin_agent_proto_rawDescGZIP() []byte { - file_flyteidl_admin_agent_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_agent_proto_rawDescData) - }) - return file_flyteidl_admin_agent_proto_rawDescData -} - -var file_flyteidl_admin_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_admin_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 27) -var file_flyteidl_admin_agent_proto_goTypes = []interface{}{ - (State)(0), // 0: flyteidl.admin.State - (*TaskExecutionMetadata)(nil), // 1: flyteidl.admin.TaskExecutionMetadata - (*CreateTaskRequest)(nil), // 2: flyteidl.admin.CreateTaskRequest - (*CreateTaskResponse)(nil), // 3: flyteidl.admin.CreateTaskResponse - (*CreateRequestHeader)(nil), // 4: flyteidl.admin.CreateRequestHeader - (*ExecuteTaskSyncRequest)(nil), // 5: flyteidl.admin.ExecuteTaskSyncRequest - (*ExecuteTaskSyncResponseHeader)(nil), // 6: flyteidl.admin.ExecuteTaskSyncResponseHeader - (*ExecuteTaskSyncResponse)(nil), // 7: flyteidl.admin.ExecuteTaskSyncResponse - (*GetTaskRequest)(nil), // 8: flyteidl.admin.GetTaskRequest - (*GetTaskResponse)(nil), // 9: flyteidl.admin.GetTaskResponse - (*Resource)(nil), // 10: flyteidl.admin.Resource - (*DeleteTaskRequest)(nil), // 11: flyteidl.admin.DeleteTaskRequest - (*DeleteTaskResponse)(nil), // 12: flyteidl.admin.DeleteTaskResponse - (*Agent)(nil), // 13: flyteidl.admin.Agent - (*TaskType)(nil), // 14: flyteidl.admin.TaskType - (*GetAgentRequest)(nil), // 15: flyteidl.admin.GetAgentRequest - (*GetAgentResponse)(nil), // 16: flyteidl.admin.GetAgentResponse - (*ListAgentsRequest)(nil), // 17: flyteidl.admin.ListAgentsRequest - (*ListAgentsResponse)(nil), // 18: flyteidl.admin.ListAgentsResponse - (*GetTaskMetricsRequest)(nil), // 19: flyteidl.admin.GetTaskMetricsRequest - (*GetTaskMetricsResponse)(nil), // 20: flyteidl.admin.GetTaskMetricsResponse - (*GetTaskLogsRequest)(nil), // 21: flyteidl.admin.GetTaskLogsRequest - (*GetTaskLogsResponseHeader)(nil), // 22: flyteidl.admin.GetTaskLogsResponseHeader - (*GetTaskLogsResponseBody)(nil), // 23: flyteidl.admin.GetTaskLogsResponseBody - (*GetTaskLogsResponse)(nil), // 24: flyteidl.admin.GetTaskLogsResponse - nil, // 25: flyteidl.admin.TaskExecutionMetadata.LabelsEntry - nil, // 26: flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry - nil, // 27: flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry - (*core.TaskExecutionIdentifier)(nil), // 28: flyteidl.core.TaskExecutionIdentifier - (*core.TaskNodeOverrides)(nil), // 29: flyteidl.core.TaskNodeOverrides - (*core.LiteralMap)(nil), // 30: flyteidl.core.LiteralMap - (*core.TaskTemplate)(nil), // 31: flyteidl.core.TaskTemplate - (*core.TaskLog)(nil), // 32: flyteidl.core.TaskLog - (core.TaskExecution_Phase)(0), // 33: flyteidl.core.TaskExecution.Phase - (*timestamppb.Timestamp)(nil), // 34: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 35: google.protobuf.Duration - (*core.ExecutionMetricResult)(nil), // 36: flyteidl.core.ExecutionMetricResult -} -var file_flyteidl_admin_agent_proto_depIdxs = []int32{ - 28, // 0: flyteidl.admin.TaskExecutionMetadata.task_execution_id:type_name -> flyteidl.core.TaskExecutionIdentifier - 25, // 1: flyteidl.admin.TaskExecutionMetadata.labels:type_name -> flyteidl.admin.TaskExecutionMetadata.LabelsEntry - 26, // 2: flyteidl.admin.TaskExecutionMetadata.annotations:type_name -> flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry - 27, // 3: flyteidl.admin.TaskExecutionMetadata.environment_variables:type_name -> flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry - 29, // 4: flyteidl.admin.TaskExecutionMetadata.overrides:type_name -> flyteidl.core.TaskNodeOverrides - 30, // 5: flyteidl.admin.CreateTaskRequest.inputs:type_name -> flyteidl.core.LiteralMap - 31, // 6: flyteidl.admin.CreateTaskRequest.template:type_name -> flyteidl.core.TaskTemplate - 1, // 7: flyteidl.admin.CreateTaskRequest.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata - 31, // 8: flyteidl.admin.CreateRequestHeader.template:type_name -> flyteidl.core.TaskTemplate - 1, // 9: flyteidl.admin.CreateRequestHeader.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata - 4, // 10: flyteidl.admin.ExecuteTaskSyncRequest.header:type_name -> flyteidl.admin.CreateRequestHeader - 30, // 11: flyteidl.admin.ExecuteTaskSyncRequest.inputs:type_name -> flyteidl.core.LiteralMap - 10, // 12: flyteidl.admin.ExecuteTaskSyncResponseHeader.resource:type_name -> flyteidl.admin.Resource - 6, // 13: flyteidl.admin.ExecuteTaskSyncResponse.header:type_name -> flyteidl.admin.ExecuteTaskSyncResponseHeader - 30, // 14: flyteidl.admin.ExecuteTaskSyncResponse.outputs:type_name -> flyteidl.core.LiteralMap - 14, // 15: flyteidl.admin.GetTaskRequest.task_type:type_name -> flyteidl.admin.TaskType - 10, // 16: flyteidl.admin.GetTaskResponse.resource:type_name -> flyteidl.admin.Resource - 0, // 17: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State - 30, // 18: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap - 32, // 19: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog - 33, // 20: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase - 14, // 21: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType - 14, // 22: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType - 13, // 23: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent - 13, // 24: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent - 34, // 25: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp - 34, // 26: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp - 35, // 27: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 14, // 28: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType - 36, // 29: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 30: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType - 22, // 31: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader - 23, // 32: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody - 33, // [33:33] is the sub-list for method output_type - 33, // [33:33] is the sub-list for method input_type - 33, // [33:33] is the sub-list for extension type_name - 33, // [33:33] is the sub-list for extension extendee - 0, // [0:33] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_agent_proto_init() } -func file_flyteidl_admin_agent_proto_init() { - if File_flyteidl_admin_agent_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTaskResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRequestHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteTaskSyncRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteTaskSyncResponseHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteTaskSyncResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Resource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTaskResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Agent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAgentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAgentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAgentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAgentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskMetricsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskMetricsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskLogsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskLogsResponseHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskLogsResponseBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTaskLogsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_agent_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*ExecuteTaskSyncRequest_Header)(nil), - (*ExecuteTaskSyncRequest_Inputs)(nil), - } - file_flyteidl_admin_agent_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*ExecuteTaskSyncResponse_Header)(nil), - (*ExecuteTaskSyncResponse_Outputs)(nil), - } - file_flyteidl_admin_agent_proto_msgTypes[23].OneofWrappers = []interface{}{ - (*GetTaskLogsResponse_Header)(nil), - (*GetTaskLogsResponse_Body)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_agent_proto_rawDesc, - NumEnums: 1, - NumMessages: 27, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_agent_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_agent_proto_depIdxs, - EnumInfos: file_flyteidl_admin_agent_proto_enumTypes, - MessageInfos: file_flyteidl_admin_agent_proto_msgTypes, - }.Build() - File_flyteidl_admin_agent_proto = out.File - file_flyteidl_admin_agent_proto_rawDesc = nil - file_flyteidl_admin_agent_proto_goTypes = nil - file_flyteidl_admin_agent_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go deleted file mode 100644 index 2f4337cb62..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/cluster_assignment.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Encapsulates specifications for routing an execution onto a specific cluster. -type ClusterAssignment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClusterPoolName string `protobuf:"bytes,3,opt,name=cluster_pool_name,json=clusterPoolName,proto3" json:"cluster_pool_name,omitempty"` -} - -func (x *ClusterAssignment) Reset() { - *x = ClusterAssignment{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_cluster_assignment_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClusterAssignment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterAssignment) ProtoMessage() {} - -func (x *ClusterAssignment) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_cluster_assignment_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterAssignment.ProtoReflect.Descriptor instead. -func (*ClusterAssignment) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_cluster_assignment_proto_rawDescGZIP(), []int{0} -} - -func (x *ClusterAssignment) GetClusterPoolName() string { - if x != nil { - return x.ClusterPoolName - } - return "" -} - -var File_flyteidl_admin_cluster_assignment_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_cluster_assignment_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x4b, 0x0a, 0x11, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, - 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x50, 0x6f, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, - 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x16, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, - 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_cluster_assignment_proto_rawDescOnce sync.Once - file_flyteidl_admin_cluster_assignment_proto_rawDescData = file_flyteidl_admin_cluster_assignment_proto_rawDesc -) - -func file_flyteidl_admin_cluster_assignment_proto_rawDescGZIP() []byte { - file_flyteidl_admin_cluster_assignment_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_cluster_assignment_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_cluster_assignment_proto_rawDescData) - }) - return file_flyteidl_admin_cluster_assignment_proto_rawDescData -} - -var file_flyteidl_admin_cluster_assignment_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_admin_cluster_assignment_proto_goTypes = []interface{}{ - (*ClusterAssignment)(nil), // 0: flyteidl.admin.ClusterAssignment -} -var file_flyteidl_admin_cluster_assignment_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_cluster_assignment_proto_init() } -func file_flyteidl_admin_cluster_assignment_proto_init() { - if File_flyteidl_admin_cluster_assignment_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_cluster_assignment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterAssignment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_cluster_assignment_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_cluster_assignment_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_cluster_assignment_proto_depIdxs, - MessageInfos: file_flyteidl_admin_cluster_assignment_proto_msgTypes, - }.Build() - File_flyteidl_admin_cluster_assignment_proto = out.File - file_flyteidl_admin_cluster_assignment_proto_rawDesc = nil - file_flyteidl_admin_cluster_assignment_proto_goTypes = nil - file_flyteidl_admin_cluster_assignment_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go deleted file mode 100644 index a20233700b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go +++ /dev/null @@ -1,2331 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/common.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The status of the named entity is used to control its visibility in the UI. -type NamedEntityState int32 - -const ( - // By default, all named entities are considered active and under development. - NamedEntityState_NAMED_ENTITY_ACTIVE NamedEntityState = 0 - // Archived named entities are no longer visible in the UI. - NamedEntityState_NAMED_ENTITY_ARCHIVED NamedEntityState = 1 - // System generated entities that aren't explicitly created or managed by a user. - NamedEntityState_SYSTEM_GENERATED NamedEntityState = 2 -) - -// Enum value maps for NamedEntityState. -var ( - NamedEntityState_name = map[int32]string{ - 0: "NAMED_ENTITY_ACTIVE", - 1: "NAMED_ENTITY_ARCHIVED", - 2: "SYSTEM_GENERATED", - } - NamedEntityState_value = map[string]int32{ - "NAMED_ENTITY_ACTIVE": 0, - "NAMED_ENTITY_ARCHIVED": 1, - "SYSTEM_GENERATED": 2, - } -) - -func (x NamedEntityState) Enum() *NamedEntityState { - p := new(NamedEntityState) - *p = x - return p -} - -func (x NamedEntityState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NamedEntityState) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_common_proto_enumTypes[0].Descriptor() -} - -func (NamedEntityState) Type() protoreflect.EnumType { - return &file_flyteidl_admin_common_proto_enumTypes[0] -} - -func (x NamedEntityState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NamedEntityState.Descriptor instead. -func (NamedEntityState) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{0} -} - -type Sort_Direction int32 - -const ( - // By default, fields are sorted in descending order. - Sort_DESCENDING Sort_Direction = 0 - Sort_ASCENDING Sort_Direction = 1 -) - -// Enum value maps for Sort_Direction. -var ( - Sort_Direction_name = map[int32]string{ - 0: "DESCENDING", - 1: "ASCENDING", - } - Sort_Direction_value = map[string]int32{ - "DESCENDING": 0, - "ASCENDING": 1, - } -) - -func (x Sort_Direction) Enum() *Sort_Direction { - p := new(Sort_Direction) - *p = x - return p -} - -func (x Sort_Direction) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Sort_Direction) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_common_proto_enumTypes[1].Descriptor() -} - -func (Sort_Direction) Type() protoreflect.EnumType { - return &file_flyteidl_admin_common_proto_enumTypes[1] -} - -func (x Sort_Direction) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Sort_Direction.Descriptor instead. -func (Sort_Direction) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{3, 0} -} - -// Encapsulation of fields that identifies a Flyte resource. -// A Flyte resource can be a task, workflow or launch plan. -// A resource can internally have multiple versions and is uniquely identified -// by project, domain, and name. -type NamedEntityIdentifier struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of the project the resource belongs to. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the resource belongs to. - // A domain can be considered as a subset within a specific project. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // User provided value for the resource. - // The combination of project + domain + name uniquely identifies the resource. - // +optional - in certain contexts - like 'List API', 'Launch plans' - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *NamedEntityIdentifier) Reset() { - *x = NamedEntityIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityIdentifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityIdentifier) ProtoMessage() {} - -func (x *NamedEntityIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityIdentifier.ProtoReflect.Descriptor instead. -func (*NamedEntityIdentifier) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{0} -} - -func (x *NamedEntityIdentifier) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *NamedEntityIdentifier) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *NamedEntityIdentifier) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *NamedEntityIdentifier) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Additional metadata around a named entity. -type NamedEntityMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Common description across all versions of the entity - // +optional - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - // Shared state across all version of the entity - // At this point in time, only workflow entities can have their state archived. - State NamedEntityState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.NamedEntityState" json:"state,omitempty"` -} - -func (x *NamedEntityMetadata) Reset() { - *x = NamedEntityMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityMetadata) ProtoMessage() {} - -func (x *NamedEntityMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityMetadata.ProtoReflect.Descriptor instead. -func (*NamedEntityMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{1} -} - -func (x *NamedEntityMetadata) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *NamedEntityMetadata) GetState() NamedEntityState { - if x != nil { - return x.State - } - return NamedEntityState_NAMED_ENTITY_ACTIVE -} - -// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, -// workflow or launch plan. A NamedEntity is exclusively identified by its resource type -// and identifier. -type NamedEntity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource type of the named entity. One of Task, Workflow or LaunchPlan. - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // Additional metadata around a named entity. - Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *NamedEntity) Reset() { - *x = NamedEntity{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntity) ProtoMessage() {} - -func (x *NamedEntity) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntity.ProtoReflect.Descriptor instead. -func (*NamedEntity) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{2} -} - -func (x *NamedEntity) GetResourceType() core.ResourceType { - if x != nil { - return x.ResourceType - } - return core.ResourceType(0) -} - -func (x *NamedEntity) GetId() *NamedEntityIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *NamedEntity) GetMetadata() *NamedEntityMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -// Specifies sort ordering in a list request. -type Sort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates an attribute to sort the response values. - // +required - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // Indicates the direction to apply sort key for response values. - // +optional - Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.admin.Sort_Direction" json:"direction,omitempty"` -} - -func (x *Sort) Reset() { - *x = Sort{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Sort) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Sort) ProtoMessage() {} - -func (x *Sort) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Sort.ProtoReflect.Descriptor instead. -func (*Sort) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{3} -} - -func (x *Sort) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *Sort) GetDirection() Sort_Direction { - if x != nil { - return x.Direction - } - return Sort_DESCENDING -} - -// Represents a request structure to list NamedEntityIdentifiers. -type NamedEntityIdentifierListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of the project that contains the identifiers. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the identifiers belongs to within the project. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // Specifies how listed entities should be sorted in the response. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Indicates a list of filters passed as string. - // +optional - Filters string `protobuf:"bytes,6,opt,name=filters,proto3" json:"filters,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,7,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *NamedEntityIdentifierListRequest) Reset() { - *x = NamedEntityIdentifierListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityIdentifierListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityIdentifierListRequest) ProtoMessage() {} - -func (x *NamedEntityIdentifierListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityIdentifierListRequest.ProtoReflect.Descriptor instead. -func (*NamedEntityIdentifierListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{4} -} - -func (x *NamedEntityIdentifierListRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *NamedEntityIdentifierListRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *NamedEntityIdentifierListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *NamedEntityIdentifierListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *NamedEntityIdentifierListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -func (x *NamedEntityIdentifierListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *NamedEntityIdentifierListRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Represents a request structure to list NamedEntity objects -type NamedEntityListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. - // +required - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // Name of the project that contains the identifiers. - // +required - Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the identifiers belongs to within the project. - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - // Indicates the number of resources to be returned. - Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` - // Specifies how listed entities should be sorted in the response. - // +optional - SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Indicates a list of filters passed as string. - // +optional - Filters string `protobuf:"bytes,7,opt,name=filters,proto3" json:"filters,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,8,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *NamedEntityListRequest) Reset() { - *x = NamedEntityListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityListRequest) ProtoMessage() {} - -func (x *NamedEntityListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityListRequest.ProtoReflect.Descriptor instead. -func (*NamedEntityListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{5} -} - -func (x *NamedEntityListRequest) GetResourceType() core.ResourceType { - if x != nil { - return x.ResourceType - } - return core.ResourceType(0) -} - -func (x *NamedEntityListRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *NamedEntityListRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *NamedEntityListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *NamedEntityListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *NamedEntityListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -func (x *NamedEntityListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *NamedEntityListRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Represents a list of NamedEntityIdentifiers. -type NamedEntityIdentifierList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of identifiers. - Entities []*NamedEntityIdentifier `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *NamedEntityIdentifierList) Reset() { - *x = NamedEntityIdentifierList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityIdentifierList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityIdentifierList) ProtoMessage() {} - -func (x *NamedEntityIdentifierList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityIdentifierList.ProtoReflect.Descriptor instead. -func (*NamedEntityIdentifierList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{6} -} - -func (x *NamedEntityIdentifierList) GetEntities() []*NamedEntityIdentifier { - if x != nil { - return x.Entities - } - return nil -} - -func (x *NamedEntityIdentifierList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Represents a list of NamedEntityIdentifiers. -type NamedEntityList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of NamedEntity objects - Entities []*NamedEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *NamedEntityList) Reset() { - *x = NamedEntityList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityList) ProtoMessage() {} - -func (x *NamedEntityList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityList.ProtoReflect.Descriptor instead. -func (*NamedEntityList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{7} -} - -func (x *NamedEntityList) GetEntities() []*NamedEntity { - if x != nil { - return x.Entities - } - return nil -} - -func (x *NamedEntityList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// A request to retrieve the metadata associated with a NamedEntityIdentifier -type NamedEntityGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. - // +required - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // The identifier for the named entity for which to fetch metadata. - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *NamedEntityGetRequest) Reset() { - *x = NamedEntityGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityGetRequest) ProtoMessage() {} - -func (x *NamedEntityGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityGetRequest.ProtoReflect.Descriptor instead. -func (*NamedEntityGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{8} -} - -func (x *NamedEntityGetRequest) GetResourceType() core.ResourceType { - if x != nil { - return x.ResourceType - } - return core.ResourceType(0) -} - -func (x *NamedEntityGetRequest) GetId() *NamedEntityIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Request to set the referenced named entity state to the configured value. -type NamedEntityUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource type of the metadata to update - // +required - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // Identifier of the metadata to update - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // Metadata object to set as the new value - // +required - Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *NamedEntityUpdateRequest) Reset() { - *x = NamedEntityUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityUpdateRequest) ProtoMessage() {} - -func (x *NamedEntityUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityUpdateRequest.ProtoReflect.Descriptor instead. -func (*NamedEntityUpdateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{9} -} - -func (x *NamedEntityUpdateRequest) GetResourceType() core.ResourceType { - if x != nil { - return x.ResourceType - } - return core.ResourceType(0) -} - -func (x *NamedEntityUpdateRequest) GetId() *NamedEntityIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *NamedEntityUpdateRequest) GetMetadata() *NamedEntityMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -// Purposefully empty, may be populated in the future. -type NamedEntityUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NamedEntityUpdateResponse) Reset() { - *x = NamedEntityUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NamedEntityUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NamedEntityUpdateResponse) ProtoMessage() {} - -func (x *NamedEntityUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NamedEntityUpdateResponse.ProtoReflect.Descriptor instead. -func (*NamedEntityUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{10} -} - -// Shared request structure to fetch a single resource. -// Resources include: Task, Workflow, LaunchPlan -type ObjectGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates a unique version of resource. - // +required - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ObjectGetRequest) Reset() { - *x = ObjectGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ObjectGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ObjectGetRequest) ProtoMessage() {} - -func (x *ObjectGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ObjectGetRequest.ProtoReflect.Descriptor instead. -func (*ObjectGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{11} -} - -func (x *ObjectGetRequest) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -// Shared request structure to retrieve a list of resources. -// Resources include: Task, Workflow, LaunchPlan -type ResourceListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the resource. - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, this server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` -} - -func (x *ResourceListRequest) Reset() { - *x = ResourceListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourceListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourceListRequest) ProtoMessage() {} - -func (x *ResourceListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResourceListRequest.ProtoReflect.Descriptor instead. -func (*ResourceListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{12} -} - -func (x *ResourceListRequest) GetId() *NamedEntityIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *ResourceListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ResourceListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *ResourceListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *ResourceListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -// Defines an email notification specification. -type EmailNotification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of email addresses recipients for this notification. - // +required - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` -} - -func (x *EmailNotification) Reset() { - *x = EmailNotification{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmailNotification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmailNotification) ProtoMessage() {} - -func (x *EmailNotification) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EmailNotification.ProtoReflect.Descriptor instead. -func (*EmailNotification) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{13} -} - -func (x *EmailNotification) GetRecipientsEmail() []string { - if x != nil { - return x.RecipientsEmail - } - return nil -} - -// Defines a pager duty notification specification. -type PagerDutyNotification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Currently, PagerDuty notifications leverage email to trigger a notification. - // +required - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` -} - -func (x *PagerDutyNotification) Reset() { - *x = PagerDutyNotification{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PagerDutyNotification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PagerDutyNotification) ProtoMessage() {} - -func (x *PagerDutyNotification) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PagerDutyNotification.ProtoReflect.Descriptor instead. -func (*PagerDutyNotification) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{14} -} - -func (x *PagerDutyNotification) GetRecipientsEmail() []string { - if x != nil { - return x.RecipientsEmail - } - return nil -} - -// Defines a slack notification specification. -type SlackNotification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Currently, Slack notifications leverage email to trigger a notification. - // +required - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` -} - -func (x *SlackNotification) Reset() { - *x = SlackNotification{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SlackNotification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SlackNotification) ProtoMessage() {} - -func (x *SlackNotification) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SlackNotification.ProtoReflect.Descriptor instead. -func (*SlackNotification) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{15} -} - -func (x *SlackNotification) GetRecipientsEmail() []string { - if x != nil { - return x.RecipientsEmail - } - return nil -} - -// Represents a structure for notifications based on execution status. -// The notification content is configured within flyte admin but can be templatized. -// Future iterations could expose configuring notifications with custom content. -type Notification struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of phases to which users can associate the notifications to. - // +required - Phases []core.WorkflowExecution_Phase `protobuf:"varint,1,rep,packed,name=phases,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phases,omitempty"` - // The type of notification to trigger. - // +required - // - // Types that are assignable to Type: - // - // *Notification_Email - // *Notification_PagerDuty - // *Notification_Slack - Type isNotification_Type `protobuf_oneof:"type"` -} - -func (x *Notification) Reset() { - *x = Notification{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Notification) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Notification) ProtoMessage() {} - -func (x *Notification) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Notification.ProtoReflect.Descriptor instead. -func (*Notification) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{16} -} - -func (x *Notification) GetPhases() []core.WorkflowExecution_Phase { - if x != nil { - return x.Phases - } - return nil -} - -func (m *Notification) GetType() isNotification_Type { - if m != nil { - return m.Type - } - return nil -} - -func (x *Notification) GetEmail() *EmailNotification { - if x, ok := x.GetType().(*Notification_Email); ok { - return x.Email - } - return nil -} - -func (x *Notification) GetPagerDuty() *PagerDutyNotification { - if x, ok := x.GetType().(*Notification_PagerDuty); ok { - return x.PagerDuty - } - return nil -} - -func (x *Notification) GetSlack() *SlackNotification { - if x, ok := x.GetType().(*Notification_Slack); ok { - return x.Slack - } - return nil -} - -type isNotification_Type interface { - isNotification_Type() -} - -type Notification_Email struct { - Email *EmailNotification `protobuf:"bytes,2,opt,name=email,proto3,oneof"` -} - -type Notification_PagerDuty struct { - PagerDuty *PagerDutyNotification `protobuf:"bytes,3,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` -} - -type Notification_Slack struct { - Slack *SlackNotification `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` -} - -func (*Notification_Email) isNotification_Type() {} - -func (*Notification_PagerDuty) isNotification_Type() {} - -func (*Notification_Slack) isNotification_Type() {} - -// Represents a string url and associated metadata used throughout the platform. -// -// Deprecated: Marked as deprecated in flyteidl/admin/common.proto. -type UrlBlob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Actual url value. - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - // Represents the size of the file accessible at the above url. - Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` -} - -func (x *UrlBlob) Reset() { - *x = UrlBlob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UrlBlob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UrlBlob) ProtoMessage() {} - -func (x *UrlBlob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UrlBlob.ProtoReflect.Descriptor instead. -func (*UrlBlob) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{17} -} - -func (x *UrlBlob) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *UrlBlob) GetBytes() int64 { - if x != nil { - return x.Bytes - } - return 0 -} - -// Label values to be applied to an execution resource. -// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -// to specify how to merge labels defined at registration and execution time. -type Labels struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Map of custom labels to be applied to the execution resource. - Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Labels) Reset() { - *x = Labels{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Labels) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Labels) ProtoMessage() {} - -func (x *Labels) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Labels.ProtoReflect.Descriptor instead. -func (*Labels) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{18} -} - -func (x *Labels) GetValues() map[string]string { - if x != nil { - return x.Values - } - return nil -} - -// Annotation values to be applied to an execution resource. -// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -// to specify how to merge annotations defined at registration and execution time. -type Annotations struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Map of custom annotations to be applied to the execution resource. - Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Annotations) Reset() { - *x = Annotations{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Annotations) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Annotations) ProtoMessage() {} - -func (x *Annotations) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Annotations.ProtoReflect.Descriptor instead. -func (*Annotations) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{19} -} - -func (x *Annotations) GetValues() map[string]string { - if x != nil { - return x.Values - } - return nil -} - -// Environment variable values to be applied to an execution resource. -// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -// to specify how to merge environment variables defined at registration and execution time. -type Envs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Map of custom environment variables to be applied to the execution resource. - Values []*core.KeyValuePair `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` -} - -func (x *Envs) Reset() { - *x = Envs{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Envs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Envs) ProtoMessage() {} - -func (x *Envs) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Envs.ProtoReflect.Descriptor instead. -func (*Envs) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{20} -} - -func (x *Envs) GetValues() []*core.KeyValuePair { - if x != nil { - return x.Values - } - return nil -} - -// Defines permissions associated with executions created by this launch plan spec. -// Use either of these roles when they have permissions required by your workflow execution. -// Deprecated. -// -// Deprecated: Marked as deprecated in flyteidl/admin/common.proto. -type AuthRole struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` - // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` -} - -func (x *AuthRole) Reset() { - *x = AuthRole{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AuthRole) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthRole) ProtoMessage() {} - -func (x *AuthRole) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthRole.ProtoReflect.Descriptor instead. -func (*AuthRole) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{21} -} - -func (x *AuthRole) GetAssumableIamRole() string { - if x != nil { - return x.AssumableIamRole - } - return "" -} - -func (x *AuthRole) GetKubernetesServiceAccount() string { - if x != nil { - return x.KubernetesServiceAccount - } - return "" -} - -// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). -// See https://github.com/flyteorg/flyte/issues/211 for more background information. -type RawOutputDataConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Prefix for where offloaded data from user workflows will be written - // e.g. s3://bucket/key or s3://bucket/ - OutputLocationPrefix string `protobuf:"bytes,1,opt,name=output_location_prefix,json=outputLocationPrefix,proto3" json:"output_location_prefix,omitempty"` -} - -func (x *RawOutputDataConfig) Reset() { - *x = RawOutputDataConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RawOutputDataConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RawOutputDataConfig) ProtoMessage() {} - -func (x *RawOutputDataConfig) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RawOutputDataConfig.ProtoReflect.Descriptor instead. -func (*RawOutputDataConfig) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{22} -} - -func (x *RawOutputDataConfig) GetOutputLocationPrefix() string { - if x != nil { - return x.OutputLocationPrefix - } - return "" -} - -// These URLs are returned as part of node and task execution data requests. -type FlyteURLs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Inputs string `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - Outputs string `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - Deck string `protobuf:"bytes,3,opt,name=deck,proto3" json:"deck,omitempty"` -} - -func (x *FlyteURLs) Reset() { - *x = FlyteURLs{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_common_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FlyteURLs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FlyteURLs) ProtoMessage() {} - -func (x *FlyteURLs) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_common_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FlyteURLs.ProtoReflect.Descriptor instead. -func (*FlyteURLs) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{23} -} - -func (x *FlyteURLs) GetInputs() string { - if x != nil { - return x.Inputs - } - return "" -} - -func (x *FlyteURLs) GetOutputs() string { - if x != nil { - return x.Outputs - } - return "" -} - -func (x *FlyteURLs) GetDeck() string { - if x != nil { - return x.Deck - } - return "" -} - -var File_flyteidl_admin_common_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_common_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1d, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x15, 0x4e, - 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, - 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x6f, 0x0a, 0x13, - 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xc7, 0x01, - 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x40, 0x0a, - 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, - 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x82, 0x01, 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x2e, 0x44, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x2a, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, - 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x0d, 0x0a, - 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x22, 0xdb, 0x01, 0x0a, - 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, - 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x18, - 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x93, 0x02, 0x0a, 0x16, 0x4e, - 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, - 0x72, 0x74, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x10, - 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, - 0x22, 0x74, 0x0a, 0x19, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x41, 0x0a, - 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x0f, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, - 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, - 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x90, 0x01, 0x0a, 0x15, 0x4e, 0x61, 0x6d, - 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd4, 0x01, 0x0a, 0x18, - 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x1b, 0x0a, 0x19, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3d, 0x0a, 0x10, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0xc1, - 0x01, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, - 0x42, 0x79, 0x22, 0x3e, 0x0a, 0x11, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, - 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6d, 0x61, - 0x69, 0x6c, 0x22, 0x42, 0x0a, 0x15, 0x50, 0x61, 0x67, 0x65, 0x72, 0x44, 0x75, 0x74, 0x79, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, - 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x3e, 0x0a, 0x11, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, - 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, - 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x94, 0x02, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, - 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x64, 0x75, 0x74, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x72, 0x44, 0x75, 0x74, - 0x79, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x09, 0x70, 0x61, 0x67, 0x65, 0x72, 0x44, 0x75, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x6c, - 0x61, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, - 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, - 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x35, 0x0a, - 0x07, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, - 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x3a, 0x02, 0x18, 0x01, 0x22, 0x7f, 0x0a, 0x06, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, - 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x0b, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x3b, 0x0a, 0x04, 0x45, 0x6e, 0x76, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x7a, - 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x73, - 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x61, 0x6d, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x6b, 0x75, 0x62, 0x65, - 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, - 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x4b, 0x0a, 0x13, 0x52, 0x61, - 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x34, 0x0a, 0x16, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x14, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x51, 0x0a, 0x09, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x55, 0x52, 0x4c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x63, 0x6b, 0x2a, 0x5c, 0x0a, 0x10, 0x4e, 0x61, - 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, - 0x0a, 0x13, 0x4e, 0x41, 0x4d, 0x45, 0x44, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x41, 0x4d, 0x45, 0x44, - 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, - 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x47, 0x45, 0x4e, - 0x45, 0x52, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x42, 0xb7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, - 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, - 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_common_proto_rawDescOnce sync.Once - file_flyteidl_admin_common_proto_rawDescData = file_flyteidl_admin_common_proto_rawDesc -) - -func file_flyteidl_admin_common_proto_rawDescGZIP() []byte { - file_flyteidl_admin_common_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_common_proto_rawDescData) - }) - return file_flyteidl_admin_common_proto_rawDescData -} - -var file_flyteidl_admin_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_admin_common_proto_msgTypes = make([]protoimpl.MessageInfo, 26) -var file_flyteidl_admin_common_proto_goTypes = []interface{}{ - (NamedEntityState)(0), // 0: flyteidl.admin.NamedEntityState - (Sort_Direction)(0), // 1: flyteidl.admin.Sort.Direction - (*NamedEntityIdentifier)(nil), // 2: flyteidl.admin.NamedEntityIdentifier - (*NamedEntityMetadata)(nil), // 3: flyteidl.admin.NamedEntityMetadata - (*NamedEntity)(nil), // 4: flyteidl.admin.NamedEntity - (*Sort)(nil), // 5: flyteidl.admin.Sort - (*NamedEntityIdentifierListRequest)(nil), // 6: flyteidl.admin.NamedEntityIdentifierListRequest - (*NamedEntityListRequest)(nil), // 7: flyteidl.admin.NamedEntityListRequest - (*NamedEntityIdentifierList)(nil), // 8: flyteidl.admin.NamedEntityIdentifierList - (*NamedEntityList)(nil), // 9: flyteidl.admin.NamedEntityList - (*NamedEntityGetRequest)(nil), // 10: flyteidl.admin.NamedEntityGetRequest - (*NamedEntityUpdateRequest)(nil), // 11: flyteidl.admin.NamedEntityUpdateRequest - (*NamedEntityUpdateResponse)(nil), // 12: flyteidl.admin.NamedEntityUpdateResponse - (*ObjectGetRequest)(nil), // 13: flyteidl.admin.ObjectGetRequest - (*ResourceListRequest)(nil), // 14: flyteidl.admin.ResourceListRequest - (*EmailNotification)(nil), // 15: flyteidl.admin.EmailNotification - (*PagerDutyNotification)(nil), // 16: flyteidl.admin.PagerDutyNotification - (*SlackNotification)(nil), // 17: flyteidl.admin.SlackNotification - (*Notification)(nil), // 18: flyteidl.admin.Notification - (*UrlBlob)(nil), // 19: flyteidl.admin.UrlBlob - (*Labels)(nil), // 20: flyteidl.admin.Labels - (*Annotations)(nil), // 21: flyteidl.admin.Annotations - (*Envs)(nil), // 22: flyteidl.admin.Envs - (*AuthRole)(nil), // 23: flyteidl.admin.AuthRole - (*RawOutputDataConfig)(nil), // 24: flyteidl.admin.RawOutputDataConfig - (*FlyteURLs)(nil), // 25: flyteidl.admin.FlyteURLs - nil, // 26: flyteidl.admin.Labels.ValuesEntry - nil, // 27: flyteidl.admin.Annotations.ValuesEntry - (core.ResourceType)(0), // 28: flyteidl.core.ResourceType - (*core.Identifier)(nil), // 29: flyteidl.core.Identifier - (core.WorkflowExecution_Phase)(0), // 30: flyteidl.core.WorkflowExecution.Phase - (*core.KeyValuePair)(nil), // 31: flyteidl.core.KeyValuePair -} -var file_flyteidl_admin_common_proto_depIdxs = []int32{ - 0, // 0: flyteidl.admin.NamedEntityMetadata.state:type_name -> flyteidl.admin.NamedEntityState - 28, // 1: flyteidl.admin.NamedEntity.resource_type:type_name -> flyteidl.core.ResourceType - 2, // 2: flyteidl.admin.NamedEntity.id:type_name -> flyteidl.admin.NamedEntityIdentifier - 3, // 3: flyteidl.admin.NamedEntity.metadata:type_name -> flyteidl.admin.NamedEntityMetadata - 1, // 4: flyteidl.admin.Sort.direction:type_name -> flyteidl.admin.Sort.Direction - 5, // 5: flyteidl.admin.NamedEntityIdentifierListRequest.sort_by:type_name -> flyteidl.admin.Sort - 28, // 6: flyteidl.admin.NamedEntityListRequest.resource_type:type_name -> flyteidl.core.ResourceType - 5, // 7: flyteidl.admin.NamedEntityListRequest.sort_by:type_name -> flyteidl.admin.Sort - 2, // 8: flyteidl.admin.NamedEntityIdentifierList.entities:type_name -> flyteidl.admin.NamedEntityIdentifier - 4, // 9: flyteidl.admin.NamedEntityList.entities:type_name -> flyteidl.admin.NamedEntity - 28, // 10: flyteidl.admin.NamedEntityGetRequest.resource_type:type_name -> flyteidl.core.ResourceType - 2, // 11: flyteidl.admin.NamedEntityGetRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier - 28, // 12: flyteidl.admin.NamedEntityUpdateRequest.resource_type:type_name -> flyteidl.core.ResourceType - 2, // 13: flyteidl.admin.NamedEntityUpdateRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier - 3, // 14: flyteidl.admin.NamedEntityUpdateRequest.metadata:type_name -> flyteidl.admin.NamedEntityMetadata - 29, // 15: flyteidl.admin.ObjectGetRequest.id:type_name -> flyteidl.core.Identifier - 2, // 16: flyteidl.admin.ResourceListRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier - 5, // 17: flyteidl.admin.ResourceListRequest.sort_by:type_name -> flyteidl.admin.Sort - 30, // 18: flyteidl.admin.Notification.phases:type_name -> flyteidl.core.WorkflowExecution.Phase - 15, // 19: flyteidl.admin.Notification.email:type_name -> flyteidl.admin.EmailNotification - 16, // 20: flyteidl.admin.Notification.pager_duty:type_name -> flyteidl.admin.PagerDutyNotification - 17, // 21: flyteidl.admin.Notification.slack:type_name -> flyteidl.admin.SlackNotification - 26, // 22: flyteidl.admin.Labels.values:type_name -> flyteidl.admin.Labels.ValuesEntry - 27, // 23: flyteidl.admin.Annotations.values:type_name -> flyteidl.admin.Annotations.ValuesEntry - 31, // 24: flyteidl.admin.Envs.values:type_name -> flyteidl.core.KeyValuePair - 25, // [25:25] is the sub-list for method output_type - 25, // [25:25] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_common_proto_init() } -func file_flyteidl_admin_common_proto_init() { - if File_flyteidl_admin_common_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityIdentifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sort); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityIdentifierListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityIdentifierList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NamedEntityUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ObjectGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourceListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmailNotification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PagerDutyNotification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SlackNotification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Notification); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UrlBlob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Labels); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Annotations); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Envs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AuthRole); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RawOutputDataConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_common_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlyteURLs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_common_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*Notification_Email)(nil), - (*Notification_PagerDuty)(nil), - (*Notification_Slack)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_common_proto_rawDesc, - NumEnums: 2, - NumMessages: 26, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_common_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_common_proto_depIdxs, - EnumInfos: file_flyteidl_admin_common_proto_enumTypes, - MessageInfos: file_flyteidl_admin_common_proto_msgTypes, - }.Build() - File_flyteidl_admin_common_proto = out.File - file_flyteidl_admin_common_proto_rawDesc = nil - file_flyteidl_admin_common_proto_goTypes = nil - file_flyteidl_admin_common_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go deleted file mode 100644 index 22fe5db9f1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go +++ /dev/null @@ -1,701 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/description_entity.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The format of the long description -type DescriptionFormat int32 - -const ( - DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN DescriptionFormat = 0 - DescriptionFormat_DESCRIPTION_FORMAT_MARKDOWN DescriptionFormat = 1 - DescriptionFormat_DESCRIPTION_FORMAT_HTML DescriptionFormat = 2 - // python default documentation - comments is rst - DescriptionFormat_DESCRIPTION_FORMAT_RST DescriptionFormat = 3 -) - -// Enum value maps for DescriptionFormat. -var ( - DescriptionFormat_name = map[int32]string{ - 0: "DESCRIPTION_FORMAT_UNKNOWN", - 1: "DESCRIPTION_FORMAT_MARKDOWN", - 2: "DESCRIPTION_FORMAT_HTML", - 3: "DESCRIPTION_FORMAT_RST", - } - DescriptionFormat_value = map[string]int32{ - "DESCRIPTION_FORMAT_UNKNOWN": 0, - "DESCRIPTION_FORMAT_MARKDOWN": 1, - "DESCRIPTION_FORMAT_HTML": 2, - "DESCRIPTION_FORMAT_RST": 3, - } -) - -func (x DescriptionFormat) Enum() *DescriptionFormat { - p := new(DescriptionFormat) - *p = x - return p -} - -func (x DescriptionFormat) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DescriptionFormat) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_description_entity_proto_enumTypes[0].Descriptor() -} - -func (DescriptionFormat) Type() protoreflect.EnumType { - return &file_flyteidl_admin_description_entity_proto_enumTypes[0] -} - -func (x DescriptionFormat) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DescriptionFormat.Descriptor instead. -func (DescriptionFormat) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{0} -} - -// DescriptionEntity contains detailed description for the task/workflow. -// Documentation could provide insight into the algorithms, business use case, etc. -type DescriptionEntity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the description entity. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // One-liner overview of the entity. - ShortDescription string `protobuf:"bytes,2,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` - // Full user description with formatting preserved. - LongDescription *Description `protobuf:"bytes,3,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"` - // Optional link to source code used to define this entity. - SourceCode *SourceCode `protobuf:"bytes,4,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"` - // User-specified tags. These are arbitrary and can be used for searching - // filtering and discovering tasks. - Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` -} - -func (x *DescriptionEntity) Reset() { - *x = DescriptionEntity{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DescriptionEntity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DescriptionEntity) ProtoMessage() {} - -func (x *DescriptionEntity) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DescriptionEntity.ProtoReflect.Descriptor instead. -func (*DescriptionEntity) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{0} -} - -func (x *DescriptionEntity) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *DescriptionEntity) GetShortDescription() string { - if x != nil { - return x.ShortDescription - } - return "" -} - -func (x *DescriptionEntity) GetLongDescription() *Description { - if x != nil { - return x.LongDescription - } - return nil -} - -func (x *DescriptionEntity) GetSourceCode() *SourceCode { - if x != nil { - return x.SourceCode - } - return nil -} - -func (x *DescriptionEntity) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -// Full user description with formatting preserved. This can be rendered -// by clients, such as the console or command line tools with in-tact -// formatting. -type Description struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Content: - // - // *Description_Value - // *Description_Uri - Content isDescription_Content `protobuf_oneof:"content"` - // Format of the long description - Format DescriptionFormat `protobuf:"varint,3,opt,name=format,proto3,enum=flyteidl.admin.DescriptionFormat" json:"format,omitempty"` - // Optional link to an icon for the entity - IconLink string `protobuf:"bytes,4,opt,name=icon_link,json=iconLink,proto3" json:"icon_link,omitempty"` -} - -func (x *Description) Reset() { - *x = Description{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Description) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Description) ProtoMessage() {} - -func (x *Description) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Description.ProtoReflect.Descriptor instead. -func (*Description) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{1} -} - -func (m *Description) GetContent() isDescription_Content { - if m != nil { - return m.Content - } - return nil -} - -func (x *Description) GetValue() string { - if x, ok := x.GetContent().(*Description_Value); ok { - return x.Value - } - return "" -} - -func (x *Description) GetUri() string { - if x, ok := x.GetContent().(*Description_Uri); ok { - return x.Uri - } - return "" -} - -func (x *Description) GetFormat() DescriptionFormat { - if x != nil { - return x.Format - } - return DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN -} - -func (x *Description) GetIconLink() string { - if x != nil { - return x.IconLink - } - return "" -} - -type isDescription_Content interface { - isDescription_Content() -} - -type Description_Value struct { - // long description - no more than 4KB - Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"` -} - -type Description_Uri struct { - // if the description sizes exceed some threshold we can offload the entire - // description proto altogether to an external data store, like S3 rather than store inline in the db - Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` -} - -func (*Description_Value) isDescription_Content() {} - -func (*Description_Uri) isDescription_Content() {} - -// Link to source code used to define this entity -type SourceCode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` -} - -func (x *SourceCode) Reset() { - *x = SourceCode{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SourceCode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SourceCode) ProtoMessage() {} - -func (x *SourceCode) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SourceCode.ProtoReflect.Descriptor instead. -func (*SourceCode) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{2} -} - -func (x *SourceCode) GetLink() string { - if x != nil { - return x.Link - } - return "" -} - -// Represents a list of DescriptionEntities returned from the admin. -// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -type DescriptionEntityList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of DescriptionEntities returned based on the request. - DescriptionEntities []*DescriptionEntity `protobuf:"bytes,1,rep,name=descriptionEntities,proto3" json:"descriptionEntities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *DescriptionEntityList) Reset() { - *x = DescriptionEntityList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DescriptionEntityList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DescriptionEntityList) ProtoMessage() {} - -func (x *DescriptionEntityList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DescriptionEntityList.ProtoReflect.Descriptor instead. -func (*DescriptionEntityList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{3} -} - -func (x *DescriptionEntityList) GetDescriptionEntities() []*DescriptionEntity { - if x != nil { - return x.DescriptionEntities - } - return nil -} - -func (x *DescriptionEntityList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Represents a request structure to retrieve a list of DescriptionEntities. -// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -type DescriptionEntityListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifies the specific type of resource that this identifier corresponds to. - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // The identifier for the description entity. - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,5,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering for returned list. - // +optional - SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` -} - -func (x *DescriptionEntityListRequest) Reset() { - *x = DescriptionEntityListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DescriptionEntityListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DescriptionEntityListRequest) ProtoMessage() {} - -func (x *DescriptionEntityListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_description_entity_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DescriptionEntityListRequest.ProtoReflect.Descriptor instead. -func (*DescriptionEntityListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{4} -} - -func (x *DescriptionEntityListRequest) GetResourceType() core.ResourceType { - if x != nil { - return x.ResourceType - } - return core.ResourceType(0) -} - -func (x *DescriptionEntityListRequest) GetId() *NamedEntityIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *DescriptionEntityListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *DescriptionEntityListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *DescriptionEntityListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *DescriptionEntityListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -var File_flyteidl_admin_description_entity_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_description_entity_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x02, 0x0a, 0x11, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x68, 0x6f, 0x72, 0x74, - 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x10, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x10, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x6c, 0x6f, 0x6e, - 0x67, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x9c, 0x01, - 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x39, 0x0a, 0x06, 0x66, 0x6f, 0x72, - 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6e, - 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69, 0x6e, - 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x20, 0x0a, 0x0a, - 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, - 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, 0x82, - 0x01, 0x0a, 0x15, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x13, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0x8c, 0x02, 0x0a, 0x1c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, - 0x42, 0x79, 0x2a, 0x8d, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x45, 0x53, 0x43, - 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x45, 0x53, 0x43, - 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4d, - 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x45, 0x53, - 0x43, 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, - 0x48, 0x54, 0x4d, 0x4c, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, 0x53, 0x43, 0x52, 0x49, - 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x52, 0x53, 0x54, - 0x10, 0x03, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x16, 0x44, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, - 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_description_entity_proto_rawDescOnce sync.Once - file_flyteidl_admin_description_entity_proto_rawDescData = file_flyteidl_admin_description_entity_proto_rawDesc -) - -func file_flyteidl_admin_description_entity_proto_rawDescGZIP() []byte { - file_flyteidl_admin_description_entity_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_description_entity_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_description_entity_proto_rawDescData) - }) - return file_flyteidl_admin_description_entity_proto_rawDescData -} - -var file_flyteidl_admin_description_entity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_admin_description_entity_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_flyteidl_admin_description_entity_proto_goTypes = []interface{}{ - (DescriptionFormat)(0), // 0: flyteidl.admin.DescriptionFormat - (*DescriptionEntity)(nil), // 1: flyteidl.admin.DescriptionEntity - (*Description)(nil), // 2: flyteidl.admin.Description - (*SourceCode)(nil), // 3: flyteidl.admin.SourceCode - (*DescriptionEntityList)(nil), // 4: flyteidl.admin.DescriptionEntityList - (*DescriptionEntityListRequest)(nil), // 5: flyteidl.admin.DescriptionEntityListRequest - (*core.Identifier)(nil), // 6: flyteidl.core.Identifier - (core.ResourceType)(0), // 7: flyteidl.core.ResourceType - (*NamedEntityIdentifier)(nil), // 8: flyteidl.admin.NamedEntityIdentifier - (*Sort)(nil), // 9: flyteidl.admin.Sort -} -var file_flyteidl_admin_description_entity_proto_depIdxs = []int32{ - 6, // 0: flyteidl.admin.DescriptionEntity.id:type_name -> flyteidl.core.Identifier - 2, // 1: flyteidl.admin.DescriptionEntity.long_description:type_name -> flyteidl.admin.Description - 3, // 2: flyteidl.admin.DescriptionEntity.source_code:type_name -> flyteidl.admin.SourceCode - 0, // 3: flyteidl.admin.Description.format:type_name -> flyteidl.admin.DescriptionFormat - 1, // 4: flyteidl.admin.DescriptionEntityList.descriptionEntities:type_name -> flyteidl.admin.DescriptionEntity - 7, // 5: flyteidl.admin.DescriptionEntityListRequest.resource_type:type_name -> flyteidl.core.ResourceType - 8, // 6: flyteidl.admin.DescriptionEntityListRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier - 9, // 7: flyteidl.admin.DescriptionEntityListRequest.sort_by:type_name -> flyteidl.admin.Sort - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_description_entity_proto_init() } -func file_flyteidl_admin_description_entity_proto_init() { - if File_flyteidl_admin_description_entity_proto != nil { - return - } - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_description_entity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DescriptionEntity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_description_entity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Description); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_description_entity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SourceCode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_description_entity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DescriptionEntityList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_description_entity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DescriptionEntityListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_description_entity_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*Description_Value)(nil), - (*Description_Uri)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_description_entity_proto_rawDesc, - NumEnums: 1, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_description_entity_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_description_entity_proto_depIdxs, - EnumInfos: file_flyteidl_admin_description_entity_proto_enumTypes, - MessageInfos: file_flyteidl_admin_description_entity_proto_msgTypes, - }.Build() - File_flyteidl_admin_description_entity_proto = out.File - file_flyteidl_admin_description_entity_proto_rawDesc = nil - file_flyteidl_admin_description_entity_proto_goTypes = nil - file_flyteidl_admin_description_entity_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go deleted file mode 100644 index 1777ffeddf..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go +++ /dev/null @@ -1,749 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/event.proto - -package admin - -import ( - event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Indicates that a sent event was not used to update execution state due to -// the referenced execution already being terminated (and therefore ineligible -// for further state transitions). -type EventErrorAlreadyInTerminalState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - CurrentPhase string `protobuf:"bytes,1,opt,name=current_phase,json=currentPhase,proto3" json:"current_phase,omitempty"` -} - -func (x *EventErrorAlreadyInTerminalState) Reset() { - *x = EventErrorAlreadyInTerminalState{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventErrorAlreadyInTerminalState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventErrorAlreadyInTerminalState) ProtoMessage() {} - -func (x *EventErrorAlreadyInTerminalState) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EventErrorAlreadyInTerminalState.ProtoReflect.Descriptor instead. -func (*EventErrorAlreadyInTerminalState) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{0} -} - -func (x *EventErrorAlreadyInTerminalState) GetCurrentPhase() string { - if x != nil { - return x.CurrentPhase - } - return "" -} - -// Indicates an event was rejected because it came from a different cluster than -// is on record as running the execution. -type EventErrorIncompatibleCluster struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The cluster which has been recorded as processing the execution. - // +required - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` -} - -func (x *EventErrorIncompatibleCluster) Reset() { - *x = EventErrorIncompatibleCluster{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventErrorIncompatibleCluster) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventErrorIncompatibleCluster) ProtoMessage() {} - -func (x *EventErrorIncompatibleCluster) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EventErrorIncompatibleCluster.ProtoReflect.Descriptor instead. -func (*EventErrorIncompatibleCluster) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{1} -} - -func (x *EventErrorIncompatibleCluster) GetCluster() string { - if x != nil { - return x.Cluster - } - return "" -} - -// Indicates why a sent event was not used to update execution. -type EventFailureReason struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - // - // Types that are assignable to Reason: - // - // *EventFailureReason_AlreadyInTerminalState - // *EventFailureReason_IncompatibleCluster - Reason isEventFailureReason_Reason `protobuf_oneof:"reason"` -} - -func (x *EventFailureReason) Reset() { - *x = EventFailureReason{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventFailureReason) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventFailureReason) ProtoMessage() {} - -func (x *EventFailureReason) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EventFailureReason.ProtoReflect.Descriptor instead. -func (*EventFailureReason) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{2} -} - -func (m *EventFailureReason) GetReason() isEventFailureReason_Reason { - if m != nil { - return m.Reason - } - return nil -} - -func (x *EventFailureReason) GetAlreadyInTerminalState() *EventErrorAlreadyInTerminalState { - if x, ok := x.GetReason().(*EventFailureReason_AlreadyInTerminalState); ok { - return x.AlreadyInTerminalState - } - return nil -} - -func (x *EventFailureReason) GetIncompatibleCluster() *EventErrorIncompatibleCluster { - if x, ok := x.GetReason().(*EventFailureReason_IncompatibleCluster); ok { - return x.IncompatibleCluster - } - return nil -} - -type isEventFailureReason_Reason interface { - isEventFailureReason_Reason() -} - -type EventFailureReason_AlreadyInTerminalState struct { - AlreadyInTerminalState *EventErrorAlreadyInTerminalState `protobuf:"bytes,1,opt,name=already_in_terminal_state,json=alreadyInTerminalState,proto3,oneof"` -} - -type EventFailureReason_IncompatibleCluster struct { - IncompatibleCluster *EventErrorIncompatibleCluster `protobuf:"bytes,2,opt,name=incompatible_cluster,json=incompatibleCluster,proto3,oneof"` -} - -func (*EventFailureReason_AlreadyInTerminalState) isEventFailureReason_Reason() {} - -func (*EventFailureReason_IncompatibleCluster) isEventFailureReason_Reason() {} - -// Request to send a notification that a workflow execution event has occurred. -type WorkflowExecutionEventRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique ID for this request that can be traced between services - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Details about the event that occurred. - Event *event.WorkflowExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (x *WorkflowExecutionEventRequest) Reset() { - *x = WorkflowExecutionEventRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionEventRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionEventRequest) ProtoMessage() {} - -func (x *WorkflowExecutionEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionEventRequest.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionEventRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{3} -} - -func (x *WorkflowExecutionEventRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -func (x *WorkflowExecutionEventRequest) GetEvent() *event.WorkflowExecutionEvent { - if x != nil { - return x.Event - } - return nil -} - -type WorkflowExecutionEventResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *WorkflowExecutionEventResponse) Reset() { - *x = WorkflowExecutionEventResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionEventResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionEventResponse) ProtoMessage() {} - -func (x *WorkflowExecutionEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionEventResponse.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionEventResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{4} -} - -// Request to send a notification that a node execution event has occurred. -type NodeExecutionEventRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique ID for this request that can be traced between services - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Details about the event that occurred. - Event *event.NodeExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (x *NodeExecutionEventRequest) Reset() { - *x = NodeExecutionEventRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionEventRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionEventRequest) ProtoMessage() {} - -func (x *NodeExecutionEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionEventRequest.ProtoReflect.Descriptor instead. -func (*NodeExecutionEventRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{5} -} - -func (x *NodeExecutionEventRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -func (x *NodeExecutionEventRequest) GetEvent() *event.NodeExecutionEvent { - if x != nil { - return x.Event - } - return nil -} - -type NodeExecutionEventResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NodeExecutionEventResponse) Reset() { - *x = NodeExecutionEventResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionEventResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionEventResponse) ProtoMessage() {} - -func (x *NodeExecutionEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionEventResponse.ProtoReflect.Descriptor instead. -func (*NodeExecutionEventResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{6} -} - -// Request to send a notification that a task execution event has occurred. -type TaskExecutionEventRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique ID for this request that can be traced between services - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Details about the event that occurred. - Event *event.TaskExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` -} - -func (x *TaskExecutionEventRequest) Reset() { - *x = TaskExecutionEventRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionEventRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionEventRequest) ProtoMessage() {} - -func (x *TaskExecutionEventRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionEventRequest.ProtoReflect.Descriptor instead. -func (*TaskExecutionEventRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{7} -} - -func (x *TaskExecutionEventRequest) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -func (x *TaskExecutionEventRequest) GetEvent() *event.TaskExecutionEvent { - if x != nil { - return x.Event - } - return nil -} - -type TaskExecutionEventResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TaskExecutionEventResponse) Reset() { - *x = TaskExecutionEventResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_event_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionEventResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionEventResponse) ProtoMessage() {} - -func (x *TaskExecutionEventResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_event_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionEventResponse.ProtoReflect.Descriptor instead. -func (*TaskExecutionEventResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{8} -} - -var File_flyteidl_admin_event_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_event_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1a, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x20, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, 0x6e, 0x54, - 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x68, 0x61, 0x73, - 0x65, 0x22, 0x39, 0x0a, 0x1d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, - 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xf1, 0x01, 0x0a, - 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x19, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x69, - 0x6e, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, - 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x16, 0x61, 0x6c, 0x72, 0x65, - 0x61, 0x64, 0x79, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x62, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, - 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, - 0x00, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x22, 0x7c, 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, - 0x12, 0x3c, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x20, - 0x0a, 0x1e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x74, 0x0a, 0x19, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, - 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x05, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x74, 0x0a, 0x19, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, - 0x12, 0x38, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, - 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, - 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_event_proto_rawDescOnce sync.Once - file_flyteidl_admin_event_proto_rawDescData = file_flyteidl_admin_event_proto_rawDesc -) - -func file_flyteidl_admin_event_proto_rawDescGZIP() []byte { - file_flyteidl_admin_event_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_event_proto_rawDescData) - }) - return file_flyteidl_admin_event_proto_rawDescData -} - -var file_flyteidl_admin_event_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_flyteidl_admin_event_proto_goTypes = []interface{}{ - (*EventErrorAlreadyInTerminalState)(nil), // 0: flyteidl.admin.EventErrorAlreadyInTerminalState - (*EventErrorIncompatibleCluster)(nil), // 1: flyteidl.admin.EventErrorIncompatibleCluster - (*EventFailureReason)(nil), // 2: flyteidl.admin.EventFailureReason - (*WorkflowExecutionEventRequest)(nil), // 3: flyteidl.admin.WorkflowExecutionEventRequest - (*WorkflowExecutionEventResponse)(nil), // 4: flyteidl.admin.WorkflowExecutionEventResponse - (*NodeExecutionEventRequest)(nil), // 5: flyteidl.admin.NodeExecutionEventRequest - (*NodeExecutionEventResponse)(nil), // 6: flyteidl.admin.NodeExecutionEventResponse - (*TaskExecutionEventRequest)(nil), // 7: flyteidl.admin.TaskExecutionEventRequest - (*TaskExecutionEventResponse)(nil), // 8: flyteidl.admin.TaskExecutionEventResponse - (*event.WorkflowExecutionEvent)(nil), // 9: flyteidl.event.WorkflowExecutionEvent - (*event.NodeExecutionEvent)(nil), // 10: flyteidl.event.NodeExecutionEvent - (*event.TaskExecutionEvent)(nil), // 11: flyteidl.event.TaskExecutionEvent -} -var file_flyteidl_admin_event_proto_depIdxs = []int32{ - 0, // 0: flyteidl.admin.EventFailureReason.already_in_terminal_state:type_name -> flyteidl.admin.EventErrorAlreadyInTerminalState - 1, // 1: flyteidl.admin.EventFailureReason.incompatible_cluster:type_name -> flyteidl.admin.EventErrorIncompatibleCluster - 9, // 2: flyteidl.admin.WorkflowExecutionEventRequest.event:type_name -> flyteidl.event.WorkflowExecutionEvent - 10, // 3: flyteidl.admin.NodeExecutionEventRequest.event:type_name -> flyteidl.event.NodeExecutionEvent - 11, // 4: flyteidl.admin.TaskExecutionEventRequest.event:type_name -> flyteidl.event.TaskExecutionEvent - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_event_proto_init() } -func file_flyteidl_admin_event_proto_init() { - if File_flyteidl_admin_event_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventErrorAlreadyInTerminalState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventErrorIncompatibleCluster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventFailureReason); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionEventRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionEventResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionEventRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionEventResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionEventRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionEventResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_event_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*EventFailureReason_AlreadyInTerminalState)(nil), - (*EventFailureReason_IncompatibleCluster)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_event_proto_rawDesc, - NumEnums: 0, - NumMessages: 9, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_event_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_event_proto_depIdxs, - MessageInfos: file_flyteidl_admin_event_proto_msgTypes, - }.Build() - File_flyteidl_admin_event_proto = out.File - file_flyteidl_admin_event_proto_rawDesc = nil - file_flyteidl_admin_event_proto_goTypes = nil - file_flyteidl_admin_event_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go deleted file mode 100644 index 205ea0f303..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go +++ /dev/null @@ -1,2757 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/execution.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The state of the execution is used to control its visibility in the UI/CLI. -type ExecutionState int32 - -const ( - // By default, all executions are considered active. - ExecutionState_EXECUTION_ACTIVE ExecutionState = 0 - // Archived executions are no longer visible in the UI. - ExecutionState_EXECUTION_ARCHIVED ExecutionState = 1 -) - -// Enum value maps for ExecutionState. -var ( - ExecutionState_name = map[int32]string{ - 0: "EXECUTION_ACTIVE", - 1: "EXECUTION_ARCHIVED", - } - ExecutionState_value = map[string]int32{ - "EXECUTION_ACTIVE": 0, - "EXECUTION_ARCHIVED": 1, - } -) - -func (x ExecutionState) Enum() *ExecutionState { - p := new(ExecutionState) - *p = x - return p -} - -func (x ExecutionState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ExecutionState) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_execution_proto_enumTypes[0].Descriptor() -} - -func (ExecutionState) Type() protoreflect.EnumType { - return &file_flyteidl_admin_execution_proto_enumTypes[0] -} - -func (x ExecutionState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ExecutionState.Descriptor instead. -func (ExecutionState) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{0} -} - -// The method by which this execution was launched. -type ExecutionMetadata_ExecutionMode int32 - -const ( - // The default execution mode, MANUAL implies that an execution was launched by an individual. - ExecutionMetadata_MANUAL ExecutionMetadata_ExecutionMode = 0 - // A schedule triggered this execution launch. - ExecutionMetadata_SCHEDULED ExecutionMetadata_ExecutionMode = 1 - // A system process was responsible for launching this execution rather an individual. - ExecutionMetadata_SYSTEM ExecutionMetadata_ExecutionMode = 2 - // This execution was launched with identical inputs as a previous execution. - ExecutionMetadata_RELAUNCH ExecutionMetadata_ExecutionMode = 3 - // This execution was triggered by another execution. - ExecutionMetadata_CHILD_WORKFLOW ExecutionMetadata_ExecutionMode = 4 - // This execution was recovered from another execution. - ExecutionMetadata_RECOVERED ExecutionMetadata_ExecutionMode = 5 -) - -// Enum value maps for ExecutionMetadata_ExecutionMode. -var ( - ExecutionMetadata_ExecutionMode_name = map[int32]string{ - 0: "MANUAL", - 1: "SCHEDULED", - 2: "SYSTEM", - 3: "RELAUNCH", - 4: "CHILD_WORKFLOW", - 5: "RECOVERED", - } - ExecutionMetadata_ExecutionMode_value = map[string]int32{ - "MANUAL": 0, - "SCHEDULED": 1, - "SYSTEM": 2, - "RELAUNCH": 3, - "CHILD_WORKFLOW": 4, - "RECOVERED": 5, - } -) - -func (x ExecutionMetadata_ExecutionMode) Enum() *ExecutionMetadata_ExecutionMode { - p := new(ExecutionMetadata_ExecutionMode) - *p = x - return p -} - -func (x ExecutionMetadata_ExecutionMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ExecutionMetadata_ExecutionMode) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_execution_proto_enumTypes[1].Descriptor() -} - -func (ExecutionMetadata_ExecutionMode) Type() protoreflect.EnumType { - return &file_flyteidl_admin_execution_proto_enumTypes[1] -} - -func (x ExecutionMetadata_ExecutionMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ExecutionMetadata_ExecutionMode.Descriptor instead. -func (ExecutionMetadata_ExecutionMode) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{11, 0} -} - -// Request to launch an execution with the given project, domain and optionally-assigned name. -type ExecutionCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of the project the execution belongs to. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the execution belongs to. - // A domain can be considered as a subset within a specific project. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // User provided value for the resource. - // If none is provided the system will generate a unique string. - // +optional - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Additional fields necessary to launch the execution. - // +optional - Spec *ExecutionSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - Inputs *core.LiteralMap `protobuf:"bytes,5,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ExecutionCreateRequest) Reset() { - *x = ExecutionCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionCreateRequest) ProtoMessage() {} - -func (x *ExecutionCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionCreateRequest.ProtoReflect.Descriptor instead. -func (*ExecutionCreateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{0} -} - -func (x *ExecutionCreateRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ExecutionCreateRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ExecutionCreateRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExecutionCreateRequest) GetSpec() *ExecutionSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *ExecutionCreateRequest) GetInputs() *core.LiteralMap { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *ExecutionCreateRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Request to relaunch the referenced execution. -type ExecutionRelaunchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifier of the workflow execution to relaunch. - // +required - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User provided value for the relaunched execution. - // If none is provided the system will generate a unique string. - // +optional - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,4,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` -} - -func (x *ExecutionRelaunchRequest) Reset() { - *x = ExecutionRelaunchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionRelaunchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionRelaunchRequest) ProtoMessage() {} - -func (x *ExecutionRelaunchRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionRelaunchRequest.ProtoReflect.Descriptor instead. -func (*ExecutionRelaunchRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{1} -} - -func (x *ExecutionRelaunchRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *ExecutionRelaunchRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExecutionRelaunchRequest) GetOverwriteCache() bool { - if x != nil { - return x.OverwriteCache - } - return false -} - -// Request to recover the referenced execution. -type ExecutionRecoverRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifier of the workflow execution to recover. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User provided value for the recovered execution. - // If none is provided the system will generate a unique string. - // +optional - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. - Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *ExecutionRecoverRequest) Reset() { - *x = ExecutionRecoverRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionRecoverRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionRecoverRequest) ProtoMessage() {} - -func (x *ExecutionRecoverRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionRecoverRequest.ProtoReflect.Descriptor instead. -func (*ExecutionRecoverRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{2} -} - -func (x *ExecutionRecoverRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *ExecutionRecoverRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ExecutionRecoverRequest) GetMetadata() *ExecutionMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -// The unique identifier for a successfully created execution. -// If the name was *not* specified in the create request, this identifier will include a generated name. -type ExecutionCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ExecutionCreateResponse) Reset() { - *x = ExecutionCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionCreateResponse) ProtoMessage() {} - -func (x *ExecutionCreateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionCreateResponse.ProtoReflect.Descriptor instead. -func (*ExecutionCreateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{3} -} - -func (x *ExecutionCreateResponse) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// A message used to fetch a single workflow execution entity. -// See :ref:`ref_flyteidl.admin.Execution` for more details -type WorkflowExecutionGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Uniquely identifies an individual workflow execution. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *WorkflowExecutionGetRequest) Reset() { - *x = WorkflowExecutionGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionGetRequest) ProtoMessage() {} - -func (x *WorkflowExecutionGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionGetRequest.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{4} -} - -func (x *WorkflowExecutionGetRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// A workflow execution represents an instantiated workflow, including all inputs and additional -// metadata as well as computed results included state, outputs, and duration-based attributes. -// Used as a response object used in Get and List execution requests. -type Execution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique identifier of the workflow execution. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User-provided configuration and inputs for launching the execution. - Spec *ExecutionSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // Execution results. - Closure *ExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` -} - -func (x *Execution) Reset() { - *x = Execution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Execution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Execution) ProtoMessage() {} - -func (x *Execution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Execution.ProtoReflect.Descriptor instead. -func (*Execution) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{5} -} - -func (x *Execution) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *Execution) GetSpec() *ExecutionSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *Execution) GetClosure() *ExecutionClosure { - if x != nil { - return x.Closure - } - return nil -} - -// Used as a response for request to list executions. -// See :ref:`ref_flyteidl.admin.Execution` for more details -type ExecutionList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *ExecutionList) Reset() { - *x = ExecutionList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionList) ProtoMessage() {} - -func (x *ExecutionList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionList.ProtoReflect.Descriptor instead. -func (*ExecutionList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{6} -} - -func (x *ExecutionList) GetExecutions() []*Execution { - if x != nil { - return x.Executions - } - return nil -} - -func (x *ExecutionList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Input/output data can represented by actual values or a link to where values are stored -type LiteralMapBlob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: - // - // *LiteralMapBlob_Values - // *LiteralMapBlob_Uri - Data isLiteralMapBlob_Data `protobuf_oneof:"data"` -} - -func (x *LiteralMapBlob) Reset() { - *x = LiteralMapBlob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LiteralMapBlob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LiteralMapBlob) ProtoMessage() {} - -func (x *LiteralMapBlob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LiteralMapBlob.ProtoReflect.Descriptor instead. -func (*LiteralMapBlob) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{7} -} - -func (m *LiteralMapBlob) GetData() isLiteralMapBlob_Data { - if m != nil { - return m.Data - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *LiteralMapBlob) GetValues() *core.LiteralMap { - if x, ok := x.GetData().(*LiteralMapBlob_Values); ok { - return x.Values - } - return nil -} - -func (x *LiteralMapBlob) GetUri() string { - if x, ok := x.GetData().(*LiteralMapBlob_Uri); ok { - return x.Uri - } - return "" -} - -type isLiteralMapBlob_Data interface { - isLiteralMapBlob_Data() -} - -type LiteralMapBlob_Values struct { - // Data in LiteralMap format - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - Values *core.LiteralMap `protobuf:"bytes,1,opt,name=values,proto3,oneof"` -} - -type LiteralMapBlob_Uri struct { - // In the event that the map is too large, we return a uri to the data - Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` -} - -func (*LiteralMapBlob_Values) isLiteralMapBlob_Data() {} - -func (*LiteralMapBlob_Uri) isLiteralMapBlob_Data() {} - -// Specifies metadata around an aborted workflow execution. -type AbortMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // In the case of a user-specified abort, this will pass along the user-supplied cause. - Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` - // Identifies the entity (if any) responsible for terminating the execution - Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` -} - -func (x *AbortMetadata) Reset() { - *x = AbortMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AbortMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AbortMetadata) ProtoMessage() {} - -func (x *AbortMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AbortMetadata.ProtoReflect.Descriptor instead. -func (*AbortMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{8} -} - -func (x *AbortMetadata) GetCause() string { - if x != nil { - return x.Cause - } - return "" -} - -func (x *AbortMetadata) GetPrincipal() string { - if x != nil { - return x.Principal - } - return "" -} - -// Encapsulates the results of the Execution -type ExecutionClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A result produced by a terminated execution. - // A pending (non-terminal) execution will not have any output result. - // - // Types that are assignable to OutputResult: - // - // *ExecutionClosure_Outputs - // *ExecutionClosure_Error - // *ExecutionClosure_AbortCause - // *ExecutionClosure_AbortMetadata - // *ExecutionClosure_OutputData - OutputResult isExecutionClosure_OutputResult `protobuf_oneof:"output_result"` - // Inputs computed and passed for execution. - // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - ComputedInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=computed_inputs,json=computedInputs,proto3" json:"computed_inputs,omitempty"` - // Most recent recorded phase for the execution. - Phase core.WorkflowExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` - // Reported time at which the execution began running. - StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - // The amount of time the execution spent running. - Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` - // Reported time at which the execution was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Reported time at which the execution was last updated. - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // The notification settings to use after merging the CreateExecutionRequest and the launch plan - // notification settings. An execution launched with notifications will always prefer that definition - // to notifications defined statically in a launch plan. - Notifications []*Notification `protobuf:"bytes,9,rep,name=notifications,proto3" json:"notifications,omitempty"` - // Identifies the workflow definition for this execution. - WorkflowId *core.Identifier `protobuf:"bytes,11,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - // Provides the details of the last stage change - StateChangeDetails *ExecutionStateChangeDetails `protobuf:"bytes,14,opt,name=state_change_details,json=stateChangeDetails,proto3" json:"state_change_details,omitempty"` -} - -func (x *ExecutionClosure) Reset() { - *x = ExecutionClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionClosure) ProtoMessage() {} - -func (x *ExecutionClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionClosure.ProtoReflect.Descriptor instead. -func (*ExecutionClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{9} -} - -func (m *ExecutionClosure) GetOutputResult() isExecutionClosure_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *ExecutionClosure) GetOutputs() *LiteralMapBlob { - if x, ok := x.GetOutputResult().(*ExecutionClosure_Outputs); ok { - return x.Outputs - } - return nil -} - -func (x *ExecutionClosure) GetError() *core.ExecutionError { - if x, ok := x.GetOutputResult().(*ExecutionClosure_Error); ok { - return x.Error - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *ExecutionClosure) GetAbortCause() string { - if x, ok := x.GetOutputResult().(*ExecutionClosure_AbortCause); ok { - return x.AbortCause - } - return "" -} - -func (x *ExecutionClosure) GetAbortMetadata() *AbortMetadata { - if x, ok := x.GetOutputResult().(*ExecutionClosure_AbortMetadata); ok { - return x.AbortMetadata - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *ExecutionClosure) GetOutputData() *core.LiteralMap { - if x, ok := x.GetOutputResult().(*ExecutionClosure_OutputData); ok { - return x.OutputData - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *ExecutionClosure) GetComputedInputs() *core.LiteralMap { - if x != nil { - return x.ComputedInputs - } - return nil -} - -func (x *ExecutionClosure) GetPhase() core.WorkflowExecution_Phase { - if x != nil { - return x.Phase - } - return core.WorkflowExecution_Phase(0) -} - -func (x *ExecutionClosure) GetStartedAt() *timestamppb.Timestamp { - if x != nil { - return x.StartedAt - } - return nil -} - -func (x *ExecutionClosure) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -func (x *ExecutionClosure) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *ExecutionClosure) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -func (x *ExecutionClosure) GetNotifications() []*Notification { - if x != nil { - return x.Notifications - } - return nil -} - -func (x *ExecutionClosure) GetWorkflowId() *core.Identifier { - if x != nil { - return x.WorkflowId - } - return nil -} - -func (x *ExecutionClosure) GetStateChangeDetails() *ExecutionStateChangeDetails { - if x != nil { - return x.StateChangeDetails - } - return nil -} - -type isExecutionClosure_OutputResult interface { - isExecutionClosure_OutputResult() -} - -type ExecutionClosure_Outputs struct { - // Output URI in the case of a successful execution. - // DEPRECATED. Use GetExecutionData to fetch output data instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - Outputs *LiteralMapBlob `protobuf:"bytes,1,opt,name=outputs,proto3,oneof"` -} - -type ExecutionClosure_Error struct { - // Error information in the case of a failed execution. - Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -type ExecutionClosure_AbortCause struct { - // In the case of a user-specified abort, this will pass along the user-supplied cause. - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - AbortCause string `protobuf:"bytes,10,opt,name=abort_cause,json=abortCause,proto3,oneof"` -} - -type ExecutionClosure_AbortMetadata struct { - // In the case of a user-specified abort, this will pass along the user and their supplied cause. - AbortMetadata *AbortMetadata `protobuf:"bytes,12,opt,name=abort_metadata,json=abortMetadata,proto3,oneof"` -} - -type ExecutionClosure_OutputData struct { - // Raw output data produced by this execution. - // DEPRECATED. Use GetExecutionData to fetch output data instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - OutputData *core.LiteralMap `protobuf:"bytes,13,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*ExecutionClosure_Outputs) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_Error) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_AbortCause) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_AbortMetadata) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_OutputData) isExecutionClosure_OutputResult() {} - -// Represents system, rather than user-facing, metadata about an execution. -type SystemMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Which execution cluster this execution ran on. - ExecutionCluster string `protobuf:"bytes,1,opt,name=execution_cluster,json=executionCluster,proto3" json:"execution_cluster,omitempty"` - // Which kubernetes namespace the execution ran under. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` -} - -func (x *SystemMetadata) Reset() { - *x = SystemMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SystemMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SystemMetadata) ProtoMessage() {} - -func (x *SystemMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SystemMetadata.ProtoReflect.Descriptor instead. -func (*SystemMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{10} -} - -func (x *SystemMetadata) GetExecutionCluster() string { - if x != nil { - return x.ExecutionCluster - } - return "" -} - -func (x *SystemMetadata) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -// Represents attributes about an execution which are not required to launch the execution but are useful to record. -// These attributes are assigned at launch time and do not change. -type ExecutionMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Mode ExecutionMetadata_ExecutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=flyteidl.admin.ExecutionMetadata_ExecutionMode" json:"mode,omitempty"` - // Identifier of the entity that triggered this execution. - // For systems using back-end authentication any value set here will be discarded in favor of the - // authenticated user context. - Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` - // Indicates the nestedness of this execution. - // If a user launches a workflow execution, the default nesting is 0. - // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 - // Generally, if workflow at nesting level k launches a workflow then the child workflow will have - // nesting = k + 1. - Nesting uint32 `protobuf:"varint,3,opt,name=nesting,proto3" json:"nesting,omitempty"` - // For scheduled executions, the requested time for execution for this specific schedule invocation. - ScheduledAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` - // Which subworkflow node (if any) launched this execution - ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,5,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` - // Optional, a reference workflow execution related to this execution. - // In the case of a relaunch, this references the original workflow execution. - ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,16,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` - // Optional, platform-specific metadata about the execution. - // In this the future this may be gated behind an ACL or some sort of authorization. - SystemMetadata *SystemMetadata `protobuf:"bytes,17,opt,name=system_metadata,json=systemMetadata,proto3" json:"system_metadata,omitempty"` - // Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping - // since we don't have a structure to handle nested ones anyways. - ArtifactIds []*core.ArtifactID `protobuf:"bytes,18,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` -} - -func (x *ExecutionMetadata) Reset() { - *x = ExecutionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionMetadata) ProtoMessage() {} - -func (x *ExecutionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionMetadata.ProtoReflect.Descriptor instead. -func (*ExecutionMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{11} -} - -func (x *ExecutionMetadata) GetMode() ExecutionMetadata_ExecutionMode { - if x != nil { - return x.Mode - } - return ExecutionMetadata_MANUAL -} - -func (x *ExecutionMetadata) GetPrincipal() string { - if x != nil { - return x.Principal - } - return "" -} - -func (x *ExecutionMetadata) GetNesting() uint32 { - if x != nil { - return x.Nesting - } - return 0 -} - -func (x *ExecutionMetadata) GetScheduledAt() *timestamppb.Timestamp { - if x != nil { - return x.ScheduledAt - } - return nil -} - -func (x *ExecutionMetadata) GetParentNodeExecution() *core.NodeExecutionIdentifier { - if x != nil { - return x.ParentNodeExecution - } - return nil -} - -func (x *ExecutionMetadata) GetReferenceExecution() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.ReferenceExecution - } - return nil -} - -func (x *ExecutionMetadata) GetSystemMetadata() *SystemMetadata { - if x != nil { - return x.SystemMetadata - } - return nil -} - -func (x *ExecutionMetadata) GetArtifactIds() []*core.ArtifactID { - if x != nil { - return x.ArtifactIds - } - return nil -} - -type NotificationList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` -} - -func (x *NotificationList) Reset() { - *x = NotificationList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NotificationList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NotificationList) ProtoMessage() {} - -func (x *NotificationList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NotificationList.ProtoReflect.Descriptor instead. -func (*NotificationList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{12} -} - -func (x *NotificationList) GetNotifications() []*Notification { - if x != nil { - return x.Notifications - } - return nil -} - -// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime -// of an execution as it progresses across phase changes. -type ExecutionSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Launch plan to be executed - LaunchPlan *core.Identifier `protobuf:"bytes,1,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` - // Input values to be passed for the execution - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Metadata for the execution - Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Types that are assignable to NotificationOverrides: - // - // *ExecutionSpec_Notifications - // *ExecutionSpec_DisableAll - NotificationOverrides isExecutionSpec_NotificationOverrides `protobuf_oneof:"notification_overrides"` - // Labels to apply to the execution resource. - Labels *Labels `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` - // Annotations to apply to the execution resource. - Annotations *Annotations `protobuf:"bytes,8,opt,name=annotations,proto3" json:"annotations,omitempty"` - // Optional: security context override to apply this execution. - SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Optional: auth override to apply this execution. - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - AuthRole *AuthRole `protobuf:"bytes,16,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` - // Indicates the runtime priority of the execution. - QualityOfService *core.QualityOfService `protobuf:"bytes,17,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` - // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. - // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - // and parallelism/concurrency of MapTasks is independent from this. - MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` - // User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). - // This should be a prefix like s3://my-bucket/my-data - RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,19,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` - // Controls how to select an available cluster on which this execution should run. - ClusterAssignment *ClusterAssignment `protobuf:"bytes,20,opt,name=cluster_assignment,json=clusterAssignment,proto3" json:"cluster_assignment,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. - // Omitting this field uses the workflow's value as a default. - // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - // around the bool field. - Interruptible *wrapperspb.BoolValue `protobuf:"bytes,21,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,22,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *Envs `protobuf:"bytes,23,opt,name=envs,proto3" json:"envs,omitempty"` - // Tags to be set for the execution. - Tags []string `protobuf:"bytes,24,rep,name=tags,proto3" json:"tags,omitempty"` -} - -func (x *ExecutionSpec) Reset() { - *x = ExecutionSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionSpec) ProtoMessage() {} - -func (x *ExecutionSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionSpec.ProtoReflect.Descriptor instead. -func (*ExecutionSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{13} -} - -func (x *ExecutionSpec) GetLaunchPlan() *core.Identifier { - if x != nil { - return x.LaunchPlan - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *ExecutionSpec) GetInputs() *core.LiteralMap { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *ExecutionSpec) GetMetadata() *ExecutionMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (m *ExecutionSpec) GetNotificationOverrides() isExecutionSpec_NotificationOverrides { - if m != nil { - return m.NotificationOverrides - } - return nil -} - -func (x *ExecutionSpec) GetNotifications() *NotificationList { - if x, ok := x.GetNotificationOverrides().(*ExecutionSpec_Notifications); ok { - return x.Notifications - } - return nil -} - -func (x *ExecutionSpec) GetDisableAll() bool { - if x, ok := x.GetNotificationOverrides().(*ExecutionSpec_DisableAll); ok { - return x.DisableAll - } - return false -} - -func (x *ExecutionSpec) GetLabels() *Labels { - if x != nil { - return x.Labels - } - return nil -} - -func (x *ExecutionSpec) GetAnnotations() *Annotations { - if x != nil { - return x.Annotations - } - return nil -} - -func (x *ExecutionSpec) GetSecurityContext() *core.SecurityContext { - if x != nil { - return x.SecurityContext - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *ExecutionSpec) GetAuthRole() *AuthRole { - if x != nil { - return x.AuthRole - } - return nil -} - -func (x *ExecutionSpec) GetQualityOfService() *core.QualityOfService { - if x != nil { - return x.QualityOfService - } - return nil -} - -func (x *ExecutionSpec) GetMaxParallelism() int32 { - if x != nil { - return x.MaxParallelism - } - return 0 -} - -func (x *ExecutionSpec) GetRawOutputDataConfig() *RawOutputDataConfig { - if x != nil { - return x.RawOutputDataConfig - } - return nil -} - -func (x *ExecutionSpec) GetClusterAssignment() *ClusterAssignment { - if x != nil { - return x.ClusterAssignment - } - return nil -} - -func (x *ExecutionSpec) GetInterruptible() *wrapperspb.BoolValue { - if x != nil { - return x.Interruptible - } - return nil -} - -func (x *ExecutionSpec) GetOverwriteCache() bool { - if x != nil { - return x.OverwriteCache - } - return false -} - -func (x *ExecutionSpec) GetEnvs() *Envs { - if x != nil { - return x.Envs - } - return nil -} - -func (x *ExecutionSpec) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -type isExecutionSpec_NotificationOverrides interface { - isExecutionSpec_NotificationOverrides() -} - -type ExecutionSpec_Notifications struct { - // List of notifications based on Execution status transitions - // When this list is not empty it is used rather than any notifications defined in the referenced launch plan. - // When this list is empty, the notifications defined for the launch plan will be applied. - Notifications *NotificationList `protobuf:"bytes,5,opt,name=notifications,proto3,oneof"` -} - -type ExecutionSpec_DisableAll struct { - // This should be set to true if all notifications are intended to be disabled for this execution. - DisableAll bool `protobuf:"varint,6,opt,name=disable_all,json=disableAll,proto3,oneof"` -} - -func (*ExecutionSpec_Notifications) isExecutionSpec_NotificationOverrides() {} - -func (*ExecutionSpec_DisableAll) isExecutionSpec_NotificationOverrides() {} - -// Request to terminate an in-progress execution. This action is irreversible. -// If an execution is already terminated, this request will simply be a no-op. -// This request will fail if it references a non-existent execution. -// If the request succeeds the phase "ABORTED" will be recorded for the termination -// with the optional cause added to the output_result. -type ExecutionTerminateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Uniquely identifies the individual workflow execution to be terminated. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Optional reason for aborting. - Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` -} - -func (x *ExecutionTerminateRequest) Reset() { - *x = ExecutionTerminateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionTerminateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionTerminateRequest) ProtoMessage() {} - -func (x *ExecutionTerminateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionTerminateRequest.ProtoReflect.Descriptor instead. -func (*ExecutionTerminateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{14} -} - -func (x *ExecutionTerminateRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *ExecutionTerminateRequest) GetCause() string { - if x != nil { - return x.Cause - } - return "" -} - -type ExecutionTerminateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ExecutionTerminateResponse) Reset() { - *x = ExecutionTerminateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionTerminateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionTerminateResponse) ProtoMessage() {} - -func (x *ExecutionTerminateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionTerminateResponse.ProtoReflect.Descriptor instead. -func (*ExecutionTerminateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{15} -} - -// Request structure to fetch inputs, output and other data produced by an execution. -// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` -type WorkflowExecutionGetDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier of the execution for which to fetch inputs and outputs. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *WorkflowExecutionGetDataRequest) Reset() { - *x = WorkflowExecutionGetDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionGetDataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionGetDataRequest) ProtoMessage() {} - -func (x *WorkflowExecutionGetDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionGetDataRequest.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionGetDataRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{16} -} - -func (x *WorkflowExecutionGetDataRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. -type WorkflowExecutionGetDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Signed url to fetch a core.LiteralMap of execution outputs. - // Deprecated: Please use full_outputs instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - Outputs *UrlBlob `protobuf:"bytes,1,opt,name=outputs,proto3" json:"outputs,omitempty"` - // Signed url to fetch a core.LiteralMap of execution inputs. - // Deprecated: Please use full_inputs instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. - Inputs *UrlBlob `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` -} - -func (x *WorkflowExecutionGetDataResponse) Reset() { - *x = WorkflowExecutionGetDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionGetDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionGetDataResponse) ProtoMessage() {} - -func (x *WorkflowExecutionGetDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionGetDataResponse.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionGetDataResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{17} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *WorkflowExecutionGetDataResponse) GetOutputs() *UrlBlob { - if x != nil { - return x.Outputs - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. -func (x *WorkflowExecutionGetDataResponse) GetInputs() *UrlBlob { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *WorkflowExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { - if x != nil { - return x.FullInputs - } - return nil -} - -func (x *WorkflowExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { - if x != nil { - return x.FullOutputs - } - return nil -} - -type ExecutionUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifier of the execution to update - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // State to set as the new value active/archive - State ExecutionState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` -} - -func (x *ExecutionUpdateRequest) Reset() { - *x = ExecutionUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionUpdateRequest) ProtoMessage() {} - -func (x *ExecutionUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionUpdateRequest.ProtoReflect.Descriptor instead. -func (*ExecutionUpdateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{18} -} - -func (x *ExecutionUpdateRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *ExecutionUpdateRequest) GetState() ExecutionState { - if x != nil { - return x.State - } - return ExecutionState_EXECUTION_ACTIVE -} - -type ExecutionStateChangeDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The state of the execution is used to control its visibility in the UI/CLI. - State ExecutionState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` - // This timestamp represents when the state changed. - OccurredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Identifies the entity (if any) responsible for causing the state change of the execution - Principal string `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` -} - -func (x *ExecutionStateChangeDetails) Reset() { - *x = ExecutionStateChangeDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionStateChangeDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionStateChangeDetails) ProtoMessage() {} - -func (x *ExecutionStateChangeDetails) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionStateChangeDetails.ProtoReflect.Descriptor instead. -func (*ExecutionStateChangeDetails) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{19} -} - -func (x *ExecutionStateChangeDetails) GetState() ExecutionState { - if x != nil { - return x.State - } - return ExecutionState_EXECUTION_ACTIVE -} - -func (x *ExecutionStateChangeDetails) GetOccurredAt() *timestamppb.Timestamp { - if x != nil { - return x.OccurredAt - } - return nil -} - -func (x *ExecutionStateChangeDetails) GetPrincipal() string { - if x != nil { - return x.Principal - } - return "" -} - -type ExecutionUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ExecutionUpdateResponse) Reset() { - *x = ExecutionUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionUpdateResponse) ProtoMessage() {} - -func (x *ExecutionUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionUpdateResponse.ProtoReflect.Descriptor instead. -func (*ExecutionUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{20} -} - -// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. -type WorkflowExecutionGetMetricsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id defines the workflow execution to query for. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // depth defines the number of Flyte entity levels to traverse when breaking down execution details. - Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` -} - -func (x *WorkflowExecutionGetMetricsRequest) Reset() { - *x = WorkflowExecutionGetMetricsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionGetMetricsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionGetMetricsRequest) ProtoMessage() {} - -func (x *WorkflowExecutionGetMetricsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionGetMetricsRequest.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionGetMetricsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{21} -} - -func (x *WorkflowExecutionGetMetricsRequest) GetId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *WorkflowExecutionGetMetricsRequest) GetDepth() int32 { - if x != nil { - return x.Depth - } - return 0 -} - -// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. -type WorkflowExecutionGetMetricsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a - // hierarchical structure using Flyte entity references. - Span *core.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"` -} - -func (x *WorkflowExecutionGetMetricsResponse) Reset() { - *x = WorkflowExecutionGetMetricsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_execution_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionGetMetricsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionGetMetricsResponse) ProtoMessage() {} - -func (x *WorkflowExecutionGetMetricsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_execution_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionGetMetricsResponse.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionGetMetricsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{22} -} - -func (x *WorkflowExecutionGetMetricsResponse) GetSpan() *core.Span { - if x != nil { - return x.Span - } - return nil -} - -var File_flyteidl_admin_execution_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_execution_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0xd6, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, - 0x73, 0x70, 0x65, 0x63, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, - 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x99, 0x01, 0x0a, 0x18, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4a, - 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xa8, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x55, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x59, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, - 0x69, 0x64, 0x22, 0xb6, 0x01, 0x0a, 0x09, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x31, 0x0a, 0x04, - 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, - 0x3a, 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, - 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x22, 0x60, 0x0a, 0x0d, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0a, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x65, 0x0a, - 0x0e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x6c, 0x6f, 0x62, 0x12, - 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, - 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x42, 0x06, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x43, 0x0a, 0x0d, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, - 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0x98, 0x07, 0x0a, 0x10, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x3e, - 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x6c, 0x6f, 0x62, 0x42, - 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x35, - 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0b, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x5f, 0x63, - 0x61, 0x75, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, - 0x52, 0x0a, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0e, - 0x61, 0x62, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, - 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, - 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, - 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0a, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x49, 0x64, 0x12, 0x5d, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x12, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5b, 0x0a, 0x0e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x22, 0xf8, 0x04, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6e, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x5a, 0x0a, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x13, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x5b, 0x0a, 0x13, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0f, - 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, - 0x49, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x00, - 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, - 0x0a, 0x0a, 0x06, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, - 0x45, 0x4c, 0x41, 0x55, 0x4e, 0x43, 0x48, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x48, 0x49, - 0x4c, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x0d, 0x0a, - 0x09, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x45, 0x44, 0x10, 0x05, 0x22, 0x56, 0x0a, 0x10, - 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, - 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x90, 0x08, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3a, 0x0a, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, - 0x61, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, - 0x01, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6c, - 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x61, 0x62, - 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, - 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, - 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, - 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, - 0x39, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x4d, 0x0a, 0x12, 0x71, 0x75, - 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, - 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, - 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, - 0x73, 0x6d, 0x12, 0x58, 0x0a, 0x16, 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x13, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x72, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x12, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x11, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, - 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, - 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x61, - 0x63, 0x68, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6e, 0x76, - 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x76, 0x73, 0x52, 0x04, 0x65, - 0x6e, 0x76, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0x18, 0x0a, 0x16, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, - 0x73, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x6d, 0x0a, 0x19, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x1f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x88, 0x02, 0x0a, 0x20, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, - 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, - 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x70, - 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, - 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, - 0x70, 0x52, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x22, 0x8a, - 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x1b, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, - 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0x19, 0x0a, 0x17, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x76, 0x0a, 0x22, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, - 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x70, - 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68, 0x22, - 0x4e, 0x0a, 0x23, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x2a, - 0x3e, 0x0a, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x58, 0x45, 0x43, 0x55, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, 0x10, 0x01, 0x42, - 0xba, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_execution_proto_rawDescOnce sync.Once - file_flyteidl_admin_execution_proto_rawDescData = file_flyteidl_admin_execution_proto_rawDesc -) - -func file_flyteidl_admin_execution_proto_rawDescGZIP() []byte { - file_flyteidl_admin_execution_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_execution_proto_rawDescData) - }) - return file_flyteidl_admin_execution_proto_rawDescData -} - -var file_flyteidl_admin_execution_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_admin_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 23) -var file_flyteidl_admin_execution_proto_goTypes = []interface{}{ - (ExecutionState)(0), // 0: flyteidl.admin.ExecutionState - (ExecutionMetadata_ExecutionMode)(0), // 1: flyteidl.admin.ExecutionMetadata.ExecutionMode - (*ExecutionCreateRequest)(nil), // 2: flyteidl.admin.ExecutionCreateRequest - (*ExecutionRelaunchRequest)(nil), // 3: flyteidl.admin.ExecutionRelaunchRequest - (*ExecutionRecoverRequest)(nil), // 4: flyteidl.admin.ExecutionRecoverRequest - (*ExecutionCreateResponse)(nil), // 5: flyteidl.admin.ExecutionCreateResponse - (*WorkflowExecutionGetRequest)(nil), // 6: flyteidl.admin.WorkflowExecutionGetRequest - (*Execution)(nil), // 7: flyteidl.admin.Execution - (*ExecutionList)(nil), // 8: flyteidl.admin.ExecutionList - (*LiteralMapBlob)(nil), // 9: flyteidl.admin.LiteralMapBlob - (*AbortMetadata)(nil), // 10: flyteidl.admin.AbortMetadata - (*ExecutionClosure)(nil), // 11: flyteidl.admin.ExecutionClosure - (*SystemMetadata)(nil), // 12: flyteidl.admin.SystemMetadata - (*ExecutionMetadata)(nil), // 13: flyteidl.admin.ExecutionMetadata - (*NotificationList)(nil), // 14: flyteidl.admin.NotificationList - (*ExecutionSpec)(nil), // 15: flyteidl.admin.ExecutionSpec - (*ExecutionTerminateRequest)(nil), // 16: flyteidl.admin.ExecutionTerminateRequest - (*ExecutionTerminateResponse)(nil), // 17: flyteidl.admin.ExecutionTerminateResponse - (*WorkflowExecutionGetDataRequest)(nil), // 18: flyteidl.admin.WorkflowExecutionGetDataRequest - (*WorkflowExecutionGetDataResponse)(nil), // 19: flyteidl.admin.WorkflowExecutionGetDataResponse - (*ExecutionUpdateRequest)(nil), // 20: flyteidl.admin.ExecutionUpdateRequest - (*ExecutionStateChangeDetails)(nil), // 21: flyteidl.admin.ExecutionStateChangeDetails - (*ExecutionUpdateResponse)(nil), // 22: flyteidl.admin.ExecutionUpdateResponse - (*WorkflowExecutionGetMetricsRequest)(nil), // 23: flyteidl.admin.WorkflowExecutionGetMetricsRequest - (*WorkflowExecutionGetMetricsResponse)(nil), // 24: flyteidl.admin.WorkflowExecutionGetMetricsResponse - (*core.LiteralMap)(nil), // 25: flyteidl.core.LiteralMap - (*core.WorkflowExecutionIdentifier)(nil), // 26: flyteidl.core.WorkflowExecutionIdentifier - (*core.ExecutionError)(nil), // 27: flyteidl.core.ExecutionError - (core.WorkflowExecution_Phase)(0), // 28: flyteidl.core.WorkflowExecution.Phase - (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 30: google.protobuf.Duration - (*Notification)(nil), // 31: flyteidl.admin.Notification - (*core.Identifier)(nil), // 32: flyteidl.core.Identifier - (*core.NodeExecutionIdentifier)(nil), // 33: flyteidl.core.NodeExecutionIdentifier - (*core.ArtifactID)(nil), // 34: flyteidl.core.ArtifactID - (*Labels)(nil), // 35: flyteidl.admin.Labels - (*Annotations)(nil), // 36: flyteidl.admin.Annotations - (*core.SecurityContext)(nil), // 37: flyteidl.core.SecurityContext - (*AuthRole)(nil), // 38: flyteidl.admin.AuthRole - (*core.QualityOfService)(nil), // 39: flyteidl.core.QualityOfService - (*RawOutputDataConfig)(nil), // 40: flyteidl.admin.RawOutputDataConfig - (*ClusterAssignment)(nil), // 41: flyteidl.admin.ClusterAssignment - (*wrapperspb.BoolValue)(nil), // 42: google.protobuf.BoolValue - (*Envs)(nil), // 43: flyteidl.admin.Envs - (*UrlBlob)(nil), // 44: flyteidl.admin.UrlBlob - (*core.Span)(nil), // 45: flyteidl.core.Span -} -var file_flyteidl_admin_execution_proto_depIdxs = []int32{ - 15, // 0: flyteidl.admin.ExecutionCreateRequest.spec:type_name -> flyteidl.admin.ExecutionSpec - 25, // 1: flyteidl.admin.ExecutionCreateRequest.inputs:type_name -> flyteidl.core.LiteralMap - 26, // 2: flyteidl.admin.ExecutionRelaunchRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 26, // 3: flyteidl.admin.ExecutionRecoverRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 13, // 4: flyteidl.admin.ExecutionRecoverRequest.metadata:type_name -> flyteidl.admin.ExecutionMetadata - 26, // 5: flyteidl.admin.ExecutionCreateResponse.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 26, // 6: flyteidl.admin.WorkflowExecutionGetRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 26, // 7: flyteidl.admin.Execution.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 15, // 8: flyteidl.admin.Execution.spec:type_name -> flyteidl.admin.ExecutionSpec - 11, // 9: flyteidl.admin.Execution.closure:type_name -> flyteidl.admin.ExecutionClosure - 7, // 10: flyteidl.admin.ExecutionList.executions:type_name -> flyteidl.admin.Execution - 25, // 11: flyteidl.admin.LiteralMapBlob.values:type_name -> flyteidl.core.LiteralMap - 9, // 12: flyteidl.admin.ExecutionClosure.outputs:type_name -> flyteidl.admin.LiteralMapBlob - 27, // 13: flyteidl.admin.ExecutionClosure.error:type_name -> flyteidl.core.ExecutionError - 10, // 14: flyteidl.admin.ExecutionClosure.abort_metadata:type_name -> flyteidl.admin.AbortMetadata - 25, // 15: flyteidl.admin.ExecutionClosure.output_data:type_name -> flyteidl.core.LiteralMap - 25, // 16: flyteidl.admin.ExecutionClosure.computed_inputs:type_name -> flyteidl.core.LiteralMap - 28, // 17: flyteidl.admin.ExecutionClosure.phase:type_name -> flyteidl.core.WorkflowExecution.Phase - 29, // 18: flyteidl.admin.ExecutionClosure.started_at:type_name -> google.protobuf.Timestamp - 30, // 19: flyteidl.admin.ExecutionClosure.duration:type_name -> google.protobuf.Duration - 29, // 20: flyteidl.admin.ExecutionClosure.created_at:type_name -> google.protobuf.Timestamp - 29, // 21: flyteidl.admin.ExecutionClosure.updated_at:type_name -> google.protobuf.Timestamp - 31, // 22: flyteidl.admin.ExecutionClosure.notifications:type_name -> flyteidl.admin.Notification - 32, // 23: flyteidl.admin.ExecutionClosure.workflow_id:type_name -> flyteidl.core.Identifier - 21, // 24: flyteidl.admin.ExecutionClosure.state_change_details:type_name -> flyteidl.admin.ExecutionStateChangeDetails - 1, // 25: flyteidl.admin.ExecutionMetadata.mode:type_name -> flyteidl.admin.ExecutionMetadata.ExecutionMode - 29, // 26: flyteidl.admin.ExecutionMetadata.scheduled_at:type_name -> google.protobuf.Timestamp - 33, // 27: flyteidl.admin.ExecutionMetadata.parent_node_execution:type_name -> flyteidl.core.NodeExecutionIdentifier - 26, // 28: flyteidl.admin.ExecutionMetadata.reference_execution:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 12, // 29: flyteidl.admin.ExecutionMetadata.system_metadata:type_name -> flyteidl.admin.SystemMetadata - 34, // 30: flyteidl.admin.ExecutionMetadata.artifact_ids:type_name -> flyteidl.core.ArtifactID - 31, // 31: flyteidl.admin.NotificationList.notifications:type_name -> flyteidl.admin.Notification - 32, // 32: flyteidl.admin.ExecutionSpec.launch_plan:type_name -> flyteidl.core.Identifier - 25, // 33: flyteidl.admin.ExecutionSpec.inputs:type_name -> flyteidl.core.LiteralMap - 13, // 34: flyteidl.admin.ExecutionSpec.metadata:type_name -> flyteidl.admin.ExecutionMetadata - 14, // 35: flyteidl.admin.ExecutionSpec.notifications:type_name -> flyteidl.admin.NotificationList - 35, // 36: flyteidl.admin.ExecutionSpec.labels:type_name -> flyteidl.admin.Labels - 36, // 37: flyteidl.admin.ExecutionSpec.annotations:type_name -> flyteidl.admin.Annotations - 37, // 38: flyteidl.admin.ExecutionSpec.security_context:type_name -> flyteidl.core.SecurityContext - 38, // 39: flyteidl.admin.ExecutionSpec.auth_role:type_name -> flyteidl.admin.AuthRole - 39, // 40: flyteidl.admin.ExecutionSpec.quality_of_service:type_name -> flyteidl.core.QualityOfService - 40, // 41: flyteidl.admin.ExecutionSpec.raw_output_data_config:type_name -> flyteidl.admin.RawOutputDataConfig - 41, // 42: flyteidl.admin.ExecutionSpec.cluster_assignment:type_name -> flyteidl.admin.ClusterAssignment - 42, // 43: flyteidl.admin.ExecutionSpec.interruptible:type_name -> google.protobuf.BoolValue - 43, // 44: flyteidl.admin.ExecutionSpec.envs:type_name -> flyteidl.admin.Envs - 26, // 45: flyteidl.admin.ExecutionTerminateRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 26, // 46: flyteidl.admin.WorkflowExecutionGetDataRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 44, // 47: flyteidl.admin.WorkflowExecutionGetDataResponse.outputs:type_name -> flyteidl.admin.UrlBlob - 44, // 48: flyteidl.admin.WorkflowExecutionGetDataResponse.inputs:type_name -> flyteidl.admin.UrlBlob - 25, // 49: flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs:type_name -> flyteidl.core.LiteralMap - 25, // 50: flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs:type_name -> flyteidl.core.LiteralMap - 26, // 51: flyteidl.admin.ExecutionUpdateRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 0, // 52: flyteidl.admin.ExecutionUpdateRequest.state:type_name -> flyteidl.admin.ExecutionState - 0, // 53: flyteidl.admin.ExecutionStateChangeDetails.state:type_name -> flyteidl.admin.ExecutionState - 29, // 54: flyteidl.admin.ExecutionStateChangeDetails.occurred_at:type_name -> google.protobuf.Timestamp - 26, // 55: flyteidl.admin.WorkflowExecutionGetMetricsRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 45, // 56: flyteidl.admin.WorkflowExecutionGetMetricsResponse.span:type_name -> flyteidl.core.Span - 57, // [57:57] is the sub-list for method output_type - 57, // [57:57] is the sub-list for method input_type - 57, // [57:57] is the sub-list for extension type_name - 57, // [57:57] is the sub-list for extension extendee - 0, // [0:57] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_execution_proto_init() } -func file_flyteidl_admin_execution_proto_init() { - if File_flyteidl_admin_execution_proto != nil { - return - } - file_flyteidl_admin_cluster_assignment_proto_init() - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionRelaunchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionRecoverRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Execution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiteralMapBlob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AbortMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SystemMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NotificationList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionTerminateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionTerminateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionGetDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionGetDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionStateChangeDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionGetMetricsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_execution_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionGetMetricsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_execution_proto_msgTypes[7].OneofWrappers = []interface{}{ - (*LiteralMapBlob_Values)(nil), - (*LiteralMapBlob_Uri)(nil), - } - file_flyteidl_admin_execution_proto_msgTypes[9].OneofWrappers = []interface{}{ - (*ExecutionClosure_Outputs)(nil), - (*ExecutionClosure_Error)(nil), - (*ExecutionClosure_AbortCause)(nil), - (*ExecutionClosure_AbortMetadata)(nil), - (*ExecutionClosure_OutputData)(nil), - } - file_flyteidl_admin_execution_proto_msgTypes[13].OneofWrappers = []interface{}{ - (*ExecutionSpec_Notifications)(nil), - (*ExecutionSpec_DisableAll)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_execution_proto_rawDesc, - NumEnums: 2, - NumMessages: 23, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_execution_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_execution_proto_depIdxs, - EnumInfos: file_flyteidl_admin_execution_proto_enumTypes, - MessageInfos: file_flyteidl_admin_execution_proto_msgTypes, - }.Build() - File_flyteidl_admin_execution_proto = out.File - file_flyteidl_admin_execution_proto_rawDesc = nil - file_flyteidl_admin_execution_proto_goTypes = nil - file_flyteidl_admin_execution_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go deleted file mode 100644 index 1bbd7a29e1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go +++ /dev/null @@ -1,1429 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/launch_plan.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - anypb "google.golang.org/protobuf/types/known/anypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// By default any launch plan regardless of state can be used to launch a workflow execution. -// However, at most one version of a launch plan -// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be -// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier -// group will be observed and trigger executions at a defined cadence. -type LaunchPlanState int32 - -const ( - LaunchPlanState_INACTIVE LaunchPlanState = 0 - LaunchPlanState_ACTIVE LaunchPlanState = 1 -) - -// Enum value maps for LaunchPlanState. -var ( - LaunchPlanState_name = map[int32]string{ - 0: "INACTIVE", - 1: "ACTIVE", - } - LaunchPlanState_value = map[string]int32{ - "INACTIVE": 0, - "ACTIVE": 1, - } -) - -func (x LaunchPlanState) Enum() *LaunchPlanState { - p := new(LaunchPlanState) - *p = x - return p -} - -func (x LaunchPlanState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (LaunchPlanState) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_launch_plan_proto_enumTypes[0].Descriptor() -} - -func (LaunchPlanState) Type() protoreflect.EnumType { - return &file_flyteidl_admin_launch_plan_proto_enumTypes[0] -} - -func (x LaunchPlanState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use LaunchPlanState.Descriptor instead. -func (LaunchPlanState) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{0} -} - -// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required -// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to -// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. -type LaunchPlanCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Uniquely identifies a launch plan entity. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User-provided launch plan details, including reference workflow, inputs and other metadata. - Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` -} - -func (x *LaunchPlanCreateRequest) Reset() { - *x = LaunchPlanCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanCreateRequest) ProtoMessage() {} - -func (x *LaunchPlanCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanCreateRequest.ProtoReflect.Descriptor instead. -func (*LaunchPlanCreateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{0} -} - -func (x *LaunchPlanCreateRequest) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *LaunchPlanCreateRequest) GetSpec() *LaunchPlanSpec { - if x != nil { - return x.Spec - } - return nil -} - -type LaunchPlanCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *LaunchPlanCreateResponse) Reset() { - *x = LaunchPlanCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanCreateResponse) ProtoMessage() {} - -func (x *LaunchPlanCreateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanCreateResponse.ProtoReflect.Descriptor instead. -func (*LaunchPlanCreateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{1} -} - -// A LaunchPlan provides the capability to templatize workflow executions. -// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. -// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow -// definition doesn't necessarily have a default value for said input. -type LaunchPlan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Uniquely identifies a launch plan entity. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User-provided launch plan details, including reference workflow, inputs and other metadata. - Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // Values computed by the flyte platform after launch plan registration. - Closure *LaunchPlanClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` -} - -func (x *LaunchPlan) Reset() { - *x = LaunchPlan{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlan) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlan) ProtoMessage() {} - -func (x *LaunchPlan) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlan.ProtoReflect.Descriptor instead. -func (*LaunchPlan) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{2} -} - -func (x *LaunchPlan) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *LaunchPlan) GetSpec() *LaunchPlanSpec { - if x != nil { - return x.Spec - } - return nil -} - -func (x *LaunchPlan) GetClosure() *LaunchPlanClosure { - if x != nil { - return x.Closure - } - return nil -} - -// Response object for list launch plan requests. -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type LaunchPlanList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LaunchPlans []*LaunchPlan `protobuf:"bytes,1,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *LaunchPlanList) Reset() { - *x = LaunchPlanList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanList) ProtoMessage() {} - -func (x *LaunchPlanList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanList.ProtoReflect.Descriptor instead. -func (*LaunchPlanList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{3} -} - -func (x *LaunchPlanList) GetLaunchPlans() []*LaunchPlan { - if x != nil { - return x.LaunchPlans - } - return nil -} - -func (x *LaunchPlanList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Defines permissions associated with executions created by this launch plan spec. -// Use either of these roles when they have permissions required by your workflow execution. -// Deprecated. -// -// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. -type Auth struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` - // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` -} - -func (x *Auth) Reset() { - *x = Auth{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Auth) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Auth) ProtoMessage() {} - -func (x *Auth) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Auth.ProtoReflect.Descriptor instead. -func (*Auth) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{4} -} - -func (x *Auth) GetAssumableIamRole() string { - if x != nil { - return x.AssumableIamRole - } - return "" -} - -func (x *Auth) GetKubernetesServiceAccount() string { - if x != nil { - return x.KubernetesServiceAccount - } - return "" -} - -// User-provided launch plan definition and configuration values. -type LaunchPlanSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Reference to the Workflow template that the launch plan references - WorkflowId *core.Identifier `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - // Metadata for the Launch Plan - EntityMetadata *LaunchPlanMetadata `protobuf:"bytes,2,opt,name=entity_metadata,json=entityMetadata,proto3" json:"entity_metadata,omitempty"` - // Input values to be passed for the execution. - // These can be overridden when an execution is created with this launch plan. - DefaultInputs *core.ParameterMap `protobuf:"bytes,3,opt,name=default_inputs,json=defaultInputs,proto3" json:"default_inputs,omitempty"` - // Fixed, non-overridable inputs for the Launch Plan. - // These can not be overridden when an execution is created with this launch plan. - FixedInputs *core.LiteralMap `protobuf:"bytes,4,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` - // String to indicate the role to use to execute the workflow underneath - // - // Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. - Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` - // Custom labels to be applied to the execution resource. - Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` - // Custom annotations to be applied to the execution resource. - Annotations *Annotations `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"` - // Indicates the permission associated with workflow executions triggered with this launch plan. - // - // Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. - Auth *Auth `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"` - // Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. - AuthRole *AuthRole `protobuf:"bytes,9,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` - // Indicates security context for permissions triggered with this launch plan - SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Indicates the runtime priority of the execution. - QualityOfService *core.QualityOfService `protobuf:"bytes,16,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` - // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,17,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` - // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. - // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - // and parallelism/concurrency of MapTasks is independent from this. - MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. - // Omitting this field uses the workflow's value as a default. - // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - // around the bool field. - Interruptible *wrapperspb.BoolValue `protobuf:"bytes,19,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,20,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *Envs `protobuf:"bytes,21,opt,name=envs,proto3" json:"envs,omitempty"` -} - -func (x *LaunchPlanSpec) Reset() { - *x = LaunchPlanSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanSpec) ProtoMessage() {} - -func (x *LaunchPlanSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanSpec.ProtoReflect.Descriptor instead. -func (*LaunchPlanSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{5} -} - -func (x *LaunchPlanSpec) GetWorkflowId() *core.Identifier { - if x != nil { - return x.WorkflowId - } - return nil -} - -func (x *LaunchPlanSpec) GetEntityMetadata() *LaunchPlanMetadata { - if x != nil { - return x.EntityMetadata - } - return nil -} - -func (x *LaunchPlanSpec) GetDefaultInputs() *core.ParameterMap { - if x != nil { - return x.DefaultInputs - } - return nil -} - -func (x *LaunchPlanSpec) GetFixedInputs() *core.LiteralMap { - if x != nil { - return x.FixedInputs - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. -func (x *LaunchPlanSpec) GetRole() string { - if x != nil { - return x.Role - } - return "" -} - -func (x *LaunchPlanSpec) GetLabels() *Labels { - if x != nil { - return x.Labels - } - return nil -} - -func (x *LaunchPlanSpec) GetAnnotations() *Annotations { - if x != nil { - return x.Annotations - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. -func (x *LaunchPlanSpec) GetAuth() *Auth { - if x != nil { - return x.Auth - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. -func (x *LaunchPlanSpec) GetAuthRole() *AuthRole { - if x != nil { - return x.AuthRole - } - return nil -} - -func (x *LaunchPlanSpec) GetSecurityContext() *core.SecurityContext { - if x != nil { - return x.SecurityContext - } - return nil -} - -func (x *LaunchPlanSpec) GetQualityOfService() *core.QualityOfService { - if x != nil { - return x.QualityOfService - } - return nil -} - -func (x *LaunchPlanSpec) GetRawOutputDataConfig() *RawOutputDataConfig { - if x != nil { - return x.RawOutputDataConfig - } - return nil -} - -func (x *LaunchPlanSpec) GetMaxParallelism() int32 { - if x != nil { - return x.MaxParallelism - } - return 0 -} - -func (x *LaunchPlanSpec) GetInterruptible() *wrapperspb.BoolValue { - if x != nil { - return x.Interruptible - } - return nil -} - -func (x *LaunchPlanSpec) GetOverwriteCache() bool { - if x != nil { - return x.OverwriteCache - } - return false -} - -func (x *LaunchPlanSpec) GetEnvs() *Envs { - if x != nil { - return x.Envs - } - return nil -} - -// Values computed by the flyte platform after launch plan registration. -// These include expected_inputs required to be present in a CreateExecutionRequest -// to launch the reference workflow as well timestamp values associated with the launch plan. -type LaunchPlanClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicate the Launch plan state. - State LaunchPlanState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` - // Indicates the set of inputs expected when creating an execution with the Launch plan - ExpectedInputs *core.ParameterMap `protobuf:"bytes,2,opt,name=expected_inputs,json=expectedInputs,proto3" json:"expected_inputs,omitempty"` - // Indicates the set of outputs expected to be produced by creating an execution with the Launch plan - ExpectedOutputs *core.VariableMap `protobuf:"bytes,3,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"` - // Time at which the launch plan was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Time at which the launch plan was last updated. - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *LaunchPlanClosure) Reset() { - *x = LaunchPlanClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanClosure) ProtoMessage() {} - -func (x *LaunchPlanClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanClosure.ProtoReflect.Descriptor instead. -func (*LaunchPlanClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{6} -} - -func (x *LaunchPlanClosure) GetState() LaunchPlanState { - if x != nil { - return x.State - } - return LaunchPlanState_INACTIVE -} - -func (x *LaunchPlanClosure) GetExpectedInputs() *core.ParameterMap { - if x != nil { - return x.ExpectedInputs - } - return nil -} - -func (x *LaunchPlanClosure) GetExpectedOutputs() *core.VariableMap { - if x != nil { - return x.ExpectedOutputs - } - return nil -} - -func (x *LaunchPlanClosure) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *LaunchPlanClosure) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch -// the reference workflow. -type LaunchPlanMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Schedule to execute the Launch Plan - Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` - // List of notifications based on Execution status transitions - Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` - // Additional metadata for how to launch the launch plan - LaunchConditions *anypb.Any `protobuf:"bytes,3,opt,name=launch_conditions,json=launchConditions,proto3" json:"launch_conditions,omitempty"` -} - -func (x *LaunchPlanMetadata) Reset() { - *x = LaunchPlanMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanMetadata) ProtoMessage() {} - -func (x *LaunchPlanMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanMetadata.ProtoReflect.Descriptor instead. -func (*LaunchPlanMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{7} -} - -func (x *LaunchPlanMetadata) GetSchedule() *Schedule { - if x != nil { - return x.Schedule - } - return nil -} - -func (x *LaunchPlanMetadata) GetNotifications() []*Notification { - if x != nil { - return x.Notifications - } - return nil -} - -func (x *LaunchPlanMetadata) GetLaunchConditions() *anypb.Any { - if x != nil { - return x.LaunchConditions - } - return nil -} - -// Request to set the referenced launch plan state to the configured value. -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type LaunchPlanUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifier of launch plan for which to change state. - // +required. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Desired state to apply to the launch plan. - // +required. - State LaunchPlanState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` -} - -func (x *LaunchPlanUpdateRequest) Reset() { - *x = LaunchPlanUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanUpdateRequest) ProtoMessage() {} - -func (x *LaunchPlanUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanUpdateRequest.ProtoReflect.Descriptor instead. -func (*LaunchPlanUpdateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{8} -} - -func (x *LaunchPlanUpdateRequest) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *LaunchPlanUpdateRequest) GetState() LaunchPlanState { - if x != nil { - return x.State - } - return LaunchPlanState_INACTIVE -} - -// Purposefully empty, may be populated in the future. -type LaunchPlanUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *LaunchPlanUpdateResponse) Reset() { - *x = LaunchPlanUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanUpdateResponse) ProtoMessage() {} - -func (x *LaunchPlanUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanUpdateResponse.ProtoReflect.Descriptor instead. -func (*LaunchPlanUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{9} -} - -// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type ActiveLaunchPlanRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required. - Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ActiveLaunchPlanRequest) Reset() { - *x = ActiveLaunchPlanRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActiveLaunchPlanRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActiveLaunchPlanRequest) ProtoMessage() {} - -func (x *ActiveLaunchPlanRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActiveLaunchPlanRequest.ProtoReflect.Descriptor instead. -func (*ActiveLaunchPlanRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{10} -} - -func (x *ActiveLaunchPlanRequest) GetId() *NamedEntityIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Represents a request structure to list active launch plans within a project/domain and optional org. -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type ActiveLaunchPlanListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of the project that contains the identifiers. - // +required. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the identifiers belongs to within the project. - // +required. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Indicates the number of resources to be returned. - // +required. - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ActiveLaunchPlanListRequest) Reset() { - *x = ActiveLaunchPlanListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ActiveLaunchPlanListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActiveLaunchPlanListRequest) ProtoMessage() {} - -func (x *ActiveLaunchPlanListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ActiveLaunchPlanListRequest.ProtoReflect.Descriptor instead. -func (*ActiveLaunchPlanListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{11} -} - -func (x *ActiveLaunchPlanListRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ActiveLaunchPlanListRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ActiveLaunchPlanListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ActiveLaunchPlanListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *ActiveLaunchPlanListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -func (x *ActiveLaunchPlanListRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -var File_flyteidl_admin_launch_plan_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_launch_plan_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, - 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x78, 0x0a, 0x17, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, - 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x73, 0x70, - 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x1a, - 0x0a, 0x18, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x0a, 0x4c, - 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x70, - 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, - 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, - 0x6f, 0x73, 0x75, 0x72, 0x65, 0x22, 0x65, 0x0a, 0x0e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, - 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, - 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x76, 0x0a, 0x04, - 0x41, 0x75, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x10, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x61, 0x6d, 0x52, 0x6f, - 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, - 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x3a, 0x02, 0x18, 0x01, 0x22, 0xbd, 0x07, 0x0a, 0x0e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, - 0x6c, 0x61, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3a, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x0f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, - 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0x42, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, - 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x69, 0x78, 0x65, 0x64, 0x49, 0x6e, 0x70, 0x75, - 0x74, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x61, 0x75, 0x74, - 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, - 0x01, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x39, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, - 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, - 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x52, 0x6f, - 0x6c, 0x65, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, - 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, 0x73, 0x65, - 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4d, 0x0a, - 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, - 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, - 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x16, - 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x61, - 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x52, 0x13, 0x72, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x61, - 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x12, - 0x40, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, - 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, - 0x61, 0x63, 0x68, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6e, - 0x76, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x76, 0x73, 0x52, 0x04, - 0x65, 0x6e, 0x76, 0x73, 0x22, 0xcd, 0x02, 0x0a, 0x11, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, - 0x6c, 0x61, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, - 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x45, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x65, 0x63, - 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x0f, 0x65, - 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x39, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x22, 0xd1, 0x01, 0x0a, 0x12, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, - 0x6c, 0x61, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x08, 0x73, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x43, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x17, 0x4c, 0x61, 0x75, 0x6e, - 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, - 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, - 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, - 0x6c, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x50, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x02, 0x69, 0x64, 0x22, 0xbc, 0x01, 0x0a, 0x1b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, - 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, - 0x72, 0x67, 0x2a, 0x2b, 0x0a, 0x0f, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, - 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x42, - 0xbb, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0f, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, - 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, - 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_launch_plan_proto_rawDescOnce sync.Once - file_flyteidl_admin_launch_plan_proto_rawDescData = file_flyteidl_admin_launch_plan_proto_rawDesc -) - -func file_flyteidl_admin_launch_plan_proto_rawDescGZIP() []byte { - file_flyteidl_admin_launch_plan_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_launch_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_launch_plan_proto_rawDescData) - }) - return file_flyteidl_admin_launch_plan_proto_rawDescData -} - -var file_flyteidl_admin_launch_plan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_admin_launch_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_flyteidl_admin_launch_plan_proto_goTypes = []interface{}{ - (LaunchPlanState)(0), // 0: flyteidl.admin.LaunchPlanState - (*LaunchPlanCreateRequest)(nil), // 1: flyteidl.admin.LaunchPlanCreateRequest - (*LaunchPlanCreateResponse)(nil), // 2: flyteidl.admin.LaunchPlanCreateResponse - (*LaunchPlan)(nil), // 3: flyteidl.admin.LaunchPlan - (*LaunchPlanList)(nil), // 4: flyteidl.admin.LaunchPlanList - (*Auth)(nil), // 5: flyteidl.admin.Auth - (*LaunchPlanSpec)(nil), // 6: flyteidl.admin.LaunchPlanSpec - (*LaunchPlanClosure)(nil), // 7: flyteidl.admin.LaunchPlanClosure - (*LaunchPlanMetadata)(nil), // 8: flyteidl.admin.LaunchPlanMetadata - (*LaunchPlanUpdateRequest)(nil), // 9: flyteidl.admin.LaunchPlanUpdateRequest - (*LaunchPlanUpdateResponse)(nil), // 10: flyteidl.admin.LaunchPlanUpdateResponse - (*ActiveLaunchPlanRequest)(nil), // 11: flyteidl.admin.ActiveLaunchPlanRequest - (*ActiveLaunchPlanListRequest)(nil), // 12: flyteidl.admin.ActiveLaunchPlanListRequest - (*core.Identifier)(nil), // 13: flyteidl.core.Identifier - (*core.ParameterMap)(nil), // 14: flyteidl.core.ParameterMap - (*core.LiteralMap)(nil), // 15: flyteidl.core.LiteralMap - (*Labels)(nil), // 16: flyteidl.admin.Labels - (*Annotations)(nil), // 17: flyteidl.admin.Annotations - (*AuthRole)(nil), // 18: flyteidl.admin.AuthRole - (*core.SecurityContext)(nil), // 19: flyteidl.core.SecurityContext - (*core.QualityOfService)(nil), // 20: flyteidl.core.QualityOfService - (*RawOutputDataConfig)(nil), // 21: flyteidl.admin.RawOutputDataConfig - (*wrapperspb.BoolValue)(nil), // 22: google.protobuf.BoolValue - (*Envs)(nil), // 23: flyteidl.admin.Envs - (*core.VariableMap)(nil), // 24: flyteidl.core.VariableMap - (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp - (*Schedule)(nil), // 26: flyteidl.admin.Schedule - (*Notification)(nil), // 27: flyteidl.admin.Notification - (*anypb.Any)(nil), // 28: google.protobuf.Any - (*NamedEntityIdentifier)(nil), // 29: flyteidl.admin.NamedEntityIdentifier - (*Sort)(nil), // 30: flyteidl.admin.Sort -} -var file_flyteidl_admin_launch_plan_proto_depIdxs = []int32{ - 13, // 0: flyteidl.admin.LaunchPlanCreateRequest.id:type_name -> flyteidl.core.Identifier - 6, // 1: flyteidl.admin.LaunchPlanCreateRequest.spec:type_name -> flyteidl.admin.LaunchPlanSpec - 13, // 2: flyteidl.admin.LaunchPlan.id:type_name -> flyteidl.core.Identifier - 6, // 3: flyteidl.admin.LaunchPlan.spec:type_name -> flyteidl.admin.LaunchPlanSpec - 7, // 4: flyteidl.admin.LaunchPlan.closure:type_name -> flyteidl.admin.LaunchPlanClosure - 3, // 5: flyteidl.admin.LaunchPlanList.launch_plans:type_name -> flyteidl.admin.LaunchPlan - 13, // 6: flyteidl.admin.LaunchPlanSpec.workflow_id:type_name -> flyteidl.core.Identifier - 8, // 7: flyteidl.admin.LaunchPlanSpec.entity_metadata:type_name -> flyteidl.admin.LaunchPlanMetadata - 14, // 8: flyteidl.admin.LaunchPlanSpec.default_inputs:type_name -> flyteidl.core.ParameterMap - 15, // 9: flyteidl.admin.LaunchPlanSpec.fixed_inputs:type_name -> flyteidl.core.LiteralMap - 16, // 10: flyteidl.admin.LaunchPlanSpec.labels:type_name -> flyteidl.admin.Labels - 17, // 11: flyteidl.admin.LaunchPlanSpec.annotations:type_name -> flyteidl.admin.Annotations - 5, // 12: flyteidl.admin.LaunchPlanSpec.auth:type_name -> flyteidl.admin.Auth - 18, // 13: flyteidl.admin.LaunchPlanSpec.auth_role:type_name -> flyteidl.admin.AuthRole - 19, // 14: flyteidl.admin.LaunchPlanSpec.security_context:type_name -> flyteidl.core.SecurityContext - 20, // 15: flyteidl.admin.LaunchPlanSpec.quality_of_service:type_name -> flyteidl.core.QualityOfService - 21, // 16: flyteidl.admin.LaunchPlanSpec.raw_output_data_config:type_name -> flyteidl.admin.RawOutputDataConfig - 22, // 17: flyteidl.admin.LaunchPlanSpec.interruptible:type_name -> google.protobuf.BoolValue - 23, // 18: flyteidl.admin.LaunchPlanSpec.envs:type_name -> flyteidl.admin.Envs - 0, // 19: flyteidl.admin.LaunchPlanClosure.state:type_name -> flyteidl.admin.LaunchPlanState - 14, // 20: flyteidl.admin.LaunchPlanClosure.expected_inputs:type_name -> flyteidl.core.ParameterMap - 24, // 21: flyteidl.admin.LaunchPlanClosure.expected_outputs:type_name -> flyteidl.core.VariableMap - 25, // 22: flyteidl.admin.LaunchPlanClosure.created_at:type_name -> google.protobuf.Timestamp - 25, // 23: flyteidl.admin.LaunchPlanClosure.updated_at:type_name -> google.protobuf.Timestamp - 26, // 24: flyteidl.admin.LaunchPlanMetadata.schedule:type_name -> flyteidl.admin.Schedule - 27, // 25: flyteidl.admin.LaunchPlanMetadata.notifications:type_name -> flyteidl.admin.Notification - 28, // 26: flyteidl.admin.LaunchPlanMetadata.launch_conditions:type_name -> google.protobuf.Any - 13, // 27: flyteidl.admin.LaunchPlanUpdateRequest.id:type_name -> flyteidl.core.Identifier - 0, // 28: flyteidl.admin.LaunchPlanUpdateRequest.state:type_name -> flyteidl.admin.LaunchPlanState - 29, // 29: flyteidl.admin.ActiveLaunchPlanRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier - 30, // 30: flyteidl.admin.ActiveLaunchPlanListRequest.sort_by:type_name -> flyteidl.admin.Sort - 31, // [31:31] is the sub-list for method output_type - 31, // [31:31] is the sub-list for method input_type - 31, // [31:31] is the sub-list for extension type_name - 31, // [31:31] is the sub-list for extension extendee - 0, // [0:31] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_launch_plan_proto_init() } -func file_flyteidl_admin_launch_plan_proto_init() { - if File_flyteidl_admin_launch_plan_proto != nil { - return - } - file_flyteidl_admin_schedule_proto_init() - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_launch_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Auth); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActiveLaunchPlanRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_launch_plan_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ActiveLaunchPlanListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_launch_plan_proto_rawDesc, - NumEnums: 1, - NumMessages: 12, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_launch_plan_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_launch_plan_proto_depIdxs, - EnumInfos: file_flyteidl_admin_launch_plan_proto_enumTypes, - MessageInfos: file_flyteidl_admin_launch_plan_proto_msgTypes, - }.Build() - File_flyteidl_admin_launch_plan_proto = out.File - file_flyteidl_admin_launch_plan_proto_rawDesc = nil - file_flyteidl_admin_launch_plan_proto_goTypes = nil - file_flyteidl_admin_launch_plan_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go deleted file mode 100644 index 2b712042d9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go +++ /dev/null @@ -1,1492 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/matchable_resource.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes -// based on matching tags. -type MatchableResource int32 - -const ( - // Applies to customizable task resource requests and limits. - MatchableResource_TASK_RESOURCE MatchableResource = 0 - // Applies to configuring templated kubernetes cluster resources. - MatchableResource_CLUSTER_RESOURCE MatchableResource = 1 - // Configures task and dynamic task execution queue assignment. - MatchableResource_EXECUTION_QUEUE MatchableResource = 2 - // Configures the K8s cluster label to be used for execution to be run - MatchableResource_EXECUTION_CLUSTER_LABEL MatchableResource = 3 - // Configures default quality of service when undefined in an execution spec. - MatchableResource_QUALITY_OF_SERVICE_SPECIFICATION MatchableResource = 4 - // Selects configurable plugin implementation behavior for a given task type. - MatchableResource_PLUGIN_OVERRIDE MatchableResource = 5 - // Adds defaults for customizable workflow-execution specifications and overrides. - MatchableResource_WORKFLOW_EXECUTION_CONFIG MatchableResource = 6 - // Controls how to select an available cluster on which this execution should run. - MatchableResource_CLUSTER_ASSIGNMENT MatchableResource = 7 -) - -// Enum value maps for MatchableResource. -var ( - MatchableResource_name = map[int32]string{ - 0: "TASK_RESOURCE", - 1: "CLUSTER_RESOURCE", - 2: "EXECUTION_QUEUE", - 3: "EXECUTION_CLUSTER_LABEL", - 4: "QUALITY_OF_SERVICE_SPECIFICATION", - 5: "PLUGIN_OVERRIDE", - 6: "WORKFLOW_EXECUTION_CONFIG", - 7: "CLUSTER_ASSIGNMENT", - } - MatchableResource_value = map[string]int32{ - "TASK_RESOURCE": 0, - "CLUSTER_RESOURCE": 1, - "EXECUTION_QUEUE": 2, - "EXECUTION_CLUSTER_LABEL": 3, - "QUALITY_OF_SERVICE_SPECIFICATION": 4, - "PLUGIN_OVERRIDE": 5, - "WORKFLOW_EXECUTION_CONFIG": 6, - "CLUSTER_ASSIGNMENT": 7, - } -) - -func (x MatchableResource) Enum() *MatchableResource { - p := new(MatchableResource) - *p = x - return p -} - -func (x MatchableResource) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MatchableResource) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_matchable_resource_proto_enumTypes[0].Descriptor() -} - -func (MatchableResource) Type() protoreflect.EnumType { - return &file_flyteidl_admin_matchable_resource_proto_enumTypes[0] -} - -func (x MatchableResource) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MatchableResource.Descriptor instead. -func (MatchableResource) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{0} -} - -type PluginOverride_MissingPluginBehavior int32 - -const ( - // By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - PluginOverride_FAIL PluginOverride_MissingPluginBehavior = 0 - // Uses the system-configured default implementation. - PluginOverride_USE_DEFAULT PluginOverride_MissingPluginBehavior = 1 -) - -// Enum value maps for PluginOverride_MissingPluginBehavior. -var ( - PluginOverride_MissingPluginBehavior_name = map[int32]string{ - 0: "FAIL", - 1: "USE_DEFAULT", - } - PluginOverride_MissingPluginBehavior_value = map[string]int32{ - "FAIL": 0, - "USE_DEFAULT": 1, - } -) - -func (x PluginOverride_MissingPluginBehavior) Enum() *PluginOverride_MissingPluginBehavior { - p := new(PluginOverride_MissingPluginBehavior) - *p = x - return p -} - -func (x PluginOverride_MissingPluginBehavior) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PluginOverride_MissingPluginBehavior) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_matchable_resource_proto_enumTypes[1].Descriptor() -} - -func (PluginOverride_MissingPluginBehavior) Type() protoreflect.EnumType { - return &file_flyteidl_admin_matchable_resource_proto_enumTypes[1] -} - -func (x PluginOverride_MissingPluginBehavior) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PluginOverride_MissingPluginBehavior.Descriptor instead. -func (PluginOverride_MissingPluginBehavior) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{5, 0} -} - -// Defines a set of overridable task resource attributes set during task registration. -type TaskResourceSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` - Gpu string `protobuf:"bytes,2,opt,name=gpu,proto3" json:"gpu,omitempty"` - Memory string `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"` - Storage string `protobuf:"bytes,4,opt,name=storage,proto3" json:"storage,omitempty"` - EphemeralStorage string `protobuf:"bytes,5,opt,name=ephemeral_storage,json=ephemeralStorage,proto3" json:"ephemeral_storage,omitempty"` -} - -func (x *TaskResourceSpec) Reset() { - *x = TaskResourceSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskResourceSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskResourceSpec) ProtoMessage() {} - -func (x *TaskResourceSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskResourceSpec.ProtoReflect.Descriptor instead. -func (*TaskResourceSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{0} -} - -func (x *TaskResourceSpec) GetCpu() string { - if x != nil { - return x.Cpu - } - return "" -} - -func (x *TaskResourceSpec) GetGpu() string { - if x != nil { - return x.Gpu - } - return "" -} - -func (x *TaskResourceSpec) GetMemory() string { - if x != nil { - return x.Memory - } - return "" -} - -func (x *TaskResourceSpec) GetStorage() string { - if x != nil { - return x.Storage - } - return "" -} - -func (x *TaskResourceSpec) GetEphemeralStorage() string { - if x != nil { - return x.EphemeralStorage - } - return "" -} - -// Defines task resource defaults and limits that will be applied at task registration. -type TaskResourceAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Defaults *TaskResourceSpec `protobuf:"bytes,1,opt,name=defaults,proto3" json:"defaults,omitempty"` - Limits *TaskResourceSpec `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"` -} - -func (x *TaskResourceAttributes) Reset() { - *x = TaskResourceAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskResourceAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskResourceAttributes) ProtoMessage() {} - -func (x *TaskResourceAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskResourceAttributes.ProtoReflect.Descriptor instead. -func (*TaskResourceAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{1} -} - -func (x *TaskResourceAttributes) GetDefaults() *TaskResourceSpec { - if x != nil { - return x.Defaults - } - return nil -} - -func (x *TaskResourceAttributes) GetLimits() *TaskResourceSpec { - if x != nil { - return x.Limits - } - return nil -} - -type ClusterResourceAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). - // Map keys are the *case-sensitive* names of variables in templatized resource files. - // Map values should be the custom values which get substituted during resource creation. - Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ClusterResourceAttributes) Reset() { - *x = ClusterResourceAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ClusterResourceAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterResourceAttributes) ProtoMessage() {} - -func (x *ClusterResourceAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterResourceAttributes.ProtoReflect.Descriptor instead. -func (*ClusterResourceAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{2} -} - -func (x *ClusterResourceAttributes) GetAttributes() map[string]string { - if x != nil { - return x.Attributes - } - return nil -} - -type ExecutionQueueAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Tags used for assigning execution queues for tasks defined within this project. - Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` -} - -func (x *ExecutionQueueAttributes) Reset() { - *x = ExecutionQueueAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionQueueAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionQueueAttributes) ProtoMessage() {} - -func (x *ExecutionQueueAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionQueueAttributes.ProtoReflect.Descriptor instead. -func (*ExecutionQueueAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{3} -} - -func (x *ExecutionQueueAttributes) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -type ExecutionClusterLabel struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Label value to determine where the execution will be run - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ExecutionClusterLabel) Reset() { - *x = ExecutionClusterLabel{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionClusterLabel) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionClusterLabel) ProtoMessage() {} - -func (x *ExecutionClusterLabel) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionClusterLabel.ProtoReflect.Descriptor instead. -func (*ExecutionClusterLabel) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{4} -} - -func (x *ExecutionClusterLabel) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. -// In addition to an override implementation a selection of fallbacks can be provided or other modes -// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. -type PluginOverride struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. - PluginId []string `protobuf:"bytes,2,rep,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` - // Defines the behavior when no plugin from the plugin_id list is not found. - MissingPluginBehavior PluginOverride_MissingPluginBehavior `protobuf:"varint,4,opt,name=missing_plugin_behavior,json=missingPluginBehavior,proto3,enum=flyteidl.admin.PluginOverride_MissingPluginBehavior" json:"missing_plugin_behavior,omitempty"` -} - -func (x *PluginOverride) Reset() { - *x = PluginOverride{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PluginOverride) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PluginOverride) ProtoMessage() {} - -func (x *PluginOverride) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PluginOverride.ProtoReflect.Descriptor instead. -func (*PluginOverride) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{5} -} - -func (x *PluginOverride) GetTaskType() string { - if x != nil { - return x.TaskType - } - return "" -} - -func (x *PluginOverride) GetPluginId() []string { - if x != nil { - return x.PluginId - } - return nil -} - -func (x *PluginOverride) GetMissingPluginBehavior() PluginOverride_MissingPluginBehavior { - if x != nil { - return x.MissingPluginBehavior - } - return PluginOverride_FAIL -} - -type PluginOverrides struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Overrides []*PluginOverride `protobuf:"bytes,1,rep,name=overrides,proto3" json:"overrides,omitempty"` -} - -func (x *PluginOverrides) Reset() { - *x = PluginOverrides{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PluginOverrides) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PluginOverrides) ProtoMessage() {} - -func (x *PluginOverrides) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PluginOverrides.ProtoReflect.Descriptor instead. -func (*PluginOverrides) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{6} -} - -func (x *PluginOverrides) GetOverrides() []*PluginOverride { - if x != nil { - return x.Overrides - } - return nil -} - -// Adds defaults for customizable workflow-execution specifications and overrides. -type WorkflowExecutionConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. - MaxParallelism int32 `protobuf:"varint,1,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` - // Indicates security context permissions for executions triggered with this matchable attribute. - SecurityContext *core.SecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,3,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` - // Custom labels to be applied to a triggered execution resource. - Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3" json:"labels,omitempty"` - // Custom annotations to be applied to a triggered execution resource. - Annotations *Annotations `protobuf:"bytes,5,opt,name=annotations,proto3" json:"annotations,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. - // Omitting this field uses the workflow's value as a default. - // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - // around the bool field. - Interruptible *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,7,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *Envs `protobuf:"bytes,8,opt,name=envs,proto3" json:"envs,omitempty"` -} - -func (x *WorkflowExecutionConfig) Reset() { - *x = WorkflowExecutionConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionConfig) ProtoMessage() {} - -func (x *WorkflowExecutionConfig) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionConfig.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionConfig) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{7} -} - -func (x *WorkflowExecutionConfig) GetMaxParallelism() int32 { - if x != nil { - return x.MaxParallelism - } - return 0 -} - -func (x *WorkflowExecutionConfig) GetSecurityContext() *core.SecurityContext { - if x != nil { - return x.SecurityContext - } - return nil -} - -func (x *WorkflowExecutionConfig) GetRawOutputDataConfig() *RawOutputDataConfig { - if x != nil { - return x.RawOutputDataConfig - } - return nil -} - -func (x *WorkflowExecutionConfig) GetLabels() *Labels { - if x != nil { - return x.Labels - } - return nil -} - -func (x *WorkflowExecutionConfig) GetAnnotations() *Annotations { - if x != nil { - return x.Annotations - } - return nil -} - -func (x *WorkflowExecutionConfig) GetInterruptible() *wrapperspb.BoolValue { - if x != nil { - return x.Interruptible - } - return nil -} - -func (x *WorkflowExecutionConfig) GetOverwriteCache() bool { - if x != nil { - return x.OverwriteCache - } - return false -} - -func (x *WorkflowExecutionConfig) GetEnvs() *Envs { - if x != nil { - return x.Envs - } - return nil -} - -// Generic container for encapsulating all types of the above attributes messages. -type MatchingAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Target: - // - // *MatchingAttributes_TaskResourceAttributes - // *MatchingAttributes_ClusterResourceAttributes - // *MatchingAttributes_ExecutionQueueAttributes - // *MatchingAttributes_ExecutionClusterLabel - // *MatchingAttributes_QualityOfService - // *MatchingAttributes_PluginOverrides - // *MatchingAttributes_WorkflowExecutionConfig - // *MatchingAttributes_ClusterAssignment - Target isMatchingAttributes_Target `protobuf_oneof:"target"` -} - -func (x *MatchingAttributes) Reset() { - *x = MatchingAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MatchingAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MatchingAttributes) ProtoMessage() {} - -func (x *MatchingAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MatchingAttributes.ProtoReflect.Descriptor instead. -func (*MatchingAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{8} -} - -func (m *MatchingAttributes) GetTarget() isMatchingAttributes_Target { - if m != nil { - return m.Target - } - return nil -} - -func (x *MatchingAttributes) GetTaskResourceAttributes() *TaskResourceAttributes { - if x, ok := x.GetTarget().(*MatchingAttributes_TaskResourceAttributes); ok { - return x.TaskResourceAttributes - } - return nil -} - -func (x *MatchingAttributes) GetClusterResourceAttributes() *ClusterResourceAttributes { - if x, ok := x.GetTarget().(*MatchingAttributes_ClusterResourceAttributes); ok { - return x.ClusterResourceAttributes - } - return nil -} - -func (x *MatchingAttributes) GetExecutionQueueAttributes() *ExecutionQueueAttributes { - if x, ok := x.GetTarget().(*MatchingAttributes_ExecutionQueueAttributes); ok { - return x.ExecutionQueueAttributes - } - return nil -} - -func (x *MatchingAttributes) GetExecutionClusterLabel() *ExecutionClusterLabel { - if x, ok := x.GetTarget().(*MatchingAttributes_ExecutionClusterLabel); ok { - return x.ExecutionClusterLabel - } - return nil -} - -func (x *MatchingAttributes) GetQualityOfService() *core.QualityOfService { - if x, ok := x.GetTarget().(*MatchingAttributes_QualityOfService); ok { - return x.QualityOfService - } - return nil -} - -func (x *MatchingAttributes) GetPluginOverrides() *PluginOverrides { - if x, ok := x.GetTarget().(*MatchingAttributes_PluginOverrides); ok { - return x.PluginOverrides - } - return nil -} - -func (x *MatchingAttributes) GetWorkflowExecutionConfig() *WorkflowExecutionConfig { - if x, ok := x.GetTarget().(*MatchingAttributes_WorkflowExecutionConfig); ok { - return x.WorkflowExecutionConfig - } - return nil -} - -func (x *MatchingAttributes) GetClusterAssignment() *ClusterAssignment { - if x, ok := x.GetTarget().(*MatchingAttributes_ClusterAssignment); ok { - return x.ClusterAssignment - } - return nil -} - -type isMatchingAttributes_Target interface { - isMatchingAttributes_Target() -} - -type MatchingAttributes_TaskResourceAttributes struct { - TaskResourceAttributes *TaskResourceAttributes `protobuf:"bytes,1,opt,name=task_resource_attributes,json=taskResourceAttributes,proto3,oneof"` -} - -type MatchingAttributes_ClusterResourceAttributes struct { - ClusterResourceAttributes *ClusterResourceAttributes `protobuf:"bytes,2,opt,name=cluster_resource_attributes,json=clusterResourceAttributes,proto3,oneof"` -} - -type MatchingAttributes_ExecutionQueueAttributes struct { - ExecutionQueueAttributes *ExecutionQueueAttributes `protobuf:"bytes,3,opt,name=execution_queue_attributes,json=executionQueueAttributes,proto3,oneof"` -} - -type MatchingAttributes_ExecutionClusterLabel struct { - ExecutionClusterLabel *ExecutionClusterLabel `protobuf:"bytes,4,opt,name=execution_cluster_label,json=executionClusterLabel,proto3,oneof"` -} - -type MatchingAttributes_QualityOfService struct { - QualityOfService *core.QualityOfService `protobuf:"bytes,5,opt,name=quality_of_service,json=qualityOfService,proto3,oneof"` -} - -type MatchingAttributes_PluginOverrides struct { - PluginOverrides *PluginOverrides `protobuf:"bytes,6,opt,name=plugin_overrides,json=pluginOverrides,proto3,oneof"` -} - -type MatchingAttributes_WorkflowExecutionConfig struct { - WorkflowExecutionConfig *WorkflowExecutionConfig `protobuf:"bytes,7,opt,name=workflow_execution_config,json=workflowExecutionConfig,proto3,oneof"` -} - -type MatchingAttributes_ClusterAssignment struct { - ClusterAssignment *ClusterAssignment `protobuf:"bytes,8,opt,name=cluster_assignment,json=clusterAssignment,proto3,oneof"` -} - -func (*MatchingAttributes_TaskResourceAttributes) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ClusterResourceAttributes) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ExecutionQueueAttributes) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ExecutionClusterLabel) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_QualityOfService) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_PluginOverrides) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_WorkflowExecutionConfig) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ClusterAssignment) isMatchingAttributes_Target() {} - -// Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org); -// or domain, project and workflow name (and optional org). -// These are used to override system level defaults for kubernetes cluster resource management, -// default execution values, and more all across different levels of specificity. -type MatchableAttributesConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes *MatchingAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` - Workflow string `protobuf:"bytes,4,opt,name=workflow,proto3" json:"workflow,omitempty"` - LaunchPlan string `protobuf:"bytes,5,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *MatchableAttributesConfiguration) Reset() { - *x = MatchableAttributesConfiguration{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MatchableAttributesConfiguration) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MatchableAttributesConfiguration) ProtoMessage() {} - -func (x *MatchableAttributesConfiguration) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MatchableAttributesConfiguration.ProtoReflect.Descriptor instead. -func (*MatchableAttributesConfiguration) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{9} -} - -func (x *MatchableAttributesConfiguration) GetAttributes() *MatchingAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -func (x *MatchableAttributesConfiguration) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *MatchableAttributesConfiguration) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *MatchableAttributesConfiguration) GetWorkflow() string { - if x != nil { - return x.Workflow - } - return "" -} - -func (x *MatchableAttributesConfiguration) GetLaunchPlan() string { - if x != nil { - return x.LaunchPlan - } - return "" -} - -func (x *MatchableAttributesConfiguration) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Request all matching resource attributes for a resource type. -// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -type ListMatchableAttributesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - ResourceType MatchableResource `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org filter applied to list project requests. - Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ListMatchableAttributesRequest) Reset() { - *x = ListMatchableAttributesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListMatchableAttributesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListMatchableAttributesRequest) ProtoMessage() {} - -func (x *ListMatchableAttributesRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListMatchableAttributesRequest.ProtoReflect.Descriptor instead. -func (*ListMatchableAttributesRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{10} -} - -func (x *ListMatchableAttributesRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *ListMatchableAttributesRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Response for a request for all matching resource attributes for a resource type. -// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -type ListMatchableAttributesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Configurations []*MatchableAttributesConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"` -} - -func (x *ListMatchableAttributesResponse) Reset() { - *x = ListMatchableAttributesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListMatchableAttributesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListMatchableAttributesResponse) ProtoMessage() {} - -func (x *ListMatchableAttributesResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListMatchableAttributesResponse.ProtoReflect.Descriptor instead. -func (*ListMatchableAttributesResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{11} -} - -func (x *ListMatchableAttributesResponse) GetConfigurations() []*MatchableAttributesConfiguration { - if x != nil { - return x.Configurations - } - return nil -} - -var File_flyteidl_admin_matchable_resource_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_matchable_resource_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, - 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, - 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, - 0x10, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x70, 0x65, - 0x63, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x63, 0x70, 0x75, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x70, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x67, 0x70, 0x75, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, - 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x70, 0x68, 0x65, 0x6d, - 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x10, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x16, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, - 0x3c, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, - 0x70, 0x65, 0x63, 0x52, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x38, 0x0a, - 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, - 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x19, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x2e, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, - 0x2d, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xec, - 0x01, 0x0a, 0x0e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x6c, 0x0a, 0x17, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x62, 0x65, - 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x2e, 0x4d, 0x69, 0x73, - 0x73, 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, - 0x6f, 0x72, 0x52, 0x15, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x15, 0x4d, 0x69, 0x73, - 0x73, 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, - 0x6f, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, - 0x55, 0x53, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x22, 0x4f, 0x0a, - 0x0f, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, - 0x12, 0x3c, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, - 0x69, 0x64, 0x65, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x22, 0xeb, - 0x03, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, - 0x78, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, - 0x69, 0x73, 0x6d, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, - 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, - 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, 0x73, - 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x58, - 0x0a, 0x16, 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x52, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x13, 0x72, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x40, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, - 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x45, 0x6e, 0x76, 0x73, 0x52, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x22, 0x94, 0x06, 0x0a, - 0x12, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x12, 0x62, 0x0a, 0x18, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, - 0x16, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x6b, 0x0a, 0x1b, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x19, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x12, 0x68, 0x0a, 0x1a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, - 0x75, 0x65, 0x75, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x5f, - 0x0a, 0x17, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x15, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, - 0x4f, 0x0a, 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, - 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x10, - 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, - 0x69, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x65, - 0x0a, 0x19, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x17, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, - 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x22, 0xe7, 0x01, 0x0a, 0x20, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, - 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6f, - 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x7a, 0x0a, - 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x7b, 0x0a, 0x1f, 0x4c, 0x69, 0x73, - 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0xe0, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x74, 0x63, 0x68, - 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x11, 0x0a, 0x0d, - 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x00, 0x12, - 0x14, 0x0a, 0x10, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, - 0x52, 0x43, 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x58, - 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, - 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x10, 0x03, 0x12, 0x24, 0x0a, 0x20, 0x51, 0x55, 0x41, 0x4c, 0x49, - 0x54, 0x59, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, - 0x0f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x52, 0x49, 0x44, 0x45, - 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, - 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x10, - 0x06, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x53, - 0x49, 0x47, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x07, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, - 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x42, 0x16, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, - 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, - 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_matchable_resource_proto_rawDescOnce sync.Once - file_flyteidl_admin_matchable_resource_proto_rawDescData = file_flyteidl_admin_matchable_resource_proto_rawDesc -) - -func file_flyteidl_admin_matchable_resource_proto_rawDescGZIP() []byte { - file_flyteidl_admin_matchable_resource_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_matchable_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_matchable_resource_proto_rawDescData) - }) - return file_flyteidl_admin_matchable_resource_proto_rawDescData -} - -var file_flyteidl_admin_matchable_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_admin_matchable_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_flyteidl_admin_matchable_resource_proto_goTypes = []interface{}{ - (MatchableResource)(0), // 0: flyteidl.admin.MatchableResource - (PluginOverride_MissingPluginBehavior)(0), // 1: flyteidl.admin.PluginOverride.MissingPluginBehavior - (*TaskResourceSpec)(nil), // 2: flyteidl.admin.TaskResourceSpec - (*TaskResourceAttributes)(nil), // 3: flyteidl.admin.TaskResourceAttributes - (*ClusterResourceAttributes)(nil), // 4: flyteidl.admin.ClusterResourceAttributes - (*ExecutionQueueAttributes)(nil), // 5: flyteidl.admin.ExecutionQueueAttributes - (*ExecutionClusterLabel)(nil), // 6: flyteidl.admin.ExecutionClusterLabel - (*PluginOverride)(nil), // 7: flyteidl.admin.PluginOverride - (*PluginOverrides)(nil), // 8: flyteidl.admin.PluginOverrides - (*WorkflowExecutionConfig)(nil), // 9: flyteidl.admin.WorkflowExecutionConfig - (*MatchingAttributes)(nil), // 10: flyteidl.admin.MatchingAttributes - (*MatchableAttributesConfiguration)(nil), // 11: flyteidl.admin.MatchableAttributesConfiguration - (*ListMatchableAttributesRequest)(nil), // 12: flyteidl.admin.ListMatchableAttributesRequest - (*ListMatchableAttributesResponse)(nil), // 13: flyteidl.admin.ListMatchableAttributesResponse - nil, // 14: flyteidl.admin.ClusterResourceAttributes.AttributesEntry - (*core.SecurityContext)(nil), // 15: flyteidl.core.SecurityContext - (*RawOutputDataConfig)(nil), // 16: flyteidl.admin.RawOutputDataConfig - (*Labels)(nil), // 17: flyteidl.admin.Labels - (*Annotations)(nil), // 18: flyteidl.admin.Annotations - (*wrapperspb.BoolValue)(nil), // 19: google.protobuf.BoolValue - (*Envs)(nil), // 20: flyteidl.admin.Envs - (*core.QualityOfService)(nil), // 21: flyteidl.core.QualityOfService - (*ClusterAssignment)(nil), // 22: flyteidl.admin.ClusterAssignment -} -var file_flyteidl_admin_matchable_resource_proto_depIdxs = []int32{ - 2, // 0: flyteidl.admin.TaskResourceAttributes.defaults:type_name -> flyteidl.admin.TaskResourceSpec - 2, // 1: flyteidl.admin.TaskResourceAttributes.limits:type_name -> flyteidl.admin.TaskResourceSpec - 14, // 2: flyteidl.admin.ClusterResourceAttributes.attributes:type_name -> flyteidl.admin.ClusterResourceAttributes.AttributesEntry - 1, // 3: flyteidl.admin.PluginOverride.missing_plugin_behavior:type_name -> flyteidl.admin.PluginOverride.MissingPluginBehavior - 7, // 4: flyteidl.admin.PluginOverrides.overrides:type_name -> flyteidl.admin.PluginOverride - 15, // 5: flyteidl.admin.WorkflowExecutionConfig.security_context:type_name -> flyteidl.core.SecurityContext - 16, // 6: flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config:type_name -> flyteidl.admin.RawOutputDataConfig - 17, // 7: flyteidl.admin.WorkflowExecutionConfig.labels:type_name -> flyteidl.admin.Labels - 18, // 8: flyteidl.admin.WorkflowExecutionConfig.annotations:type_name -> flyteidl.admin.Annotations - 19, // 9: flyteidl.admin.WorkflowExecutionConfig.interruptible:type_name -> google.protobuf.BoolValue - 20, // 10: flyteidl.admin.WorkflowExecutionConfig.envs:type_name -> flyteidl.admin.Envs - 3, // 11: flyteidl.admin.MatchingAttributes.task_resource_attributes:type_name -> flyteidl.admin.TaskResourceAttributes - 4, // 12: flyteidl.admin.MatchingAttributes.cluster_resource_attributes:type_name -> flyteidl.admin.ClusterResourceAttributes - 5, // 13: flyteidl.admin.MatchingAttributes.execution_queue_attributes:type_name -> flyteidl.admin.ExecutionQueueAttributes - 6, // 14: flyteidl.admin.MatchingAttributes.execution_cluster_label:type_name -> flyteidl.admin.ExecutionClusterLabel - 21, // 15: flyteidl.admin.MatchingAttributes.quality_of_service:type_name -> flyteidl.core.QualityOfService - 8, // 16: flyteidl.admin.MatchingAttributes.plugin_overrides:type_name -> flyteidl.admin.PluginOverrides - 9, // 17: flyteidl.admin.MatchingAttributes.workflow_execution_config:type_name -> flyteidl.admin.WorkflowExecutionConfig - 22, // 18: flyteidl.admin.MatchingAttributes.cluster_assignment:type_name -> flyteidl.admin.ClusterAssignment - 10, // 19: flyteidl.admin.MatchableAttributesConfiguration.attributes:type_name -> flyteidl.admin.MatchingAttributes - 0, // 20: flyteidl.admin.ListMatchableAttributesRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 11, // 21: flyteidl.admin.ListMatchableAttributesResponse.configurations:type_name -> flyteidl.admin.MatchableAttributesConfiguration - 22, // [22:22] is the sub-list for method output_type - 22, // [22:22] is the sub-list for method input_type - 22, // [22:22] is the sub-list for extension type_name - 22, // [22:22] is the sub-list for extension extendee - 0, // [0:22] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_matchable_resource_proto_init() } -func file_flyteidl_admin_matchable_resource_proto_init() { - if File_flyteidl_admin_matchable_resource_proto != nil { - return - } - file_flyteidl_admin_common_proto_init() - file_flyteidl_admin_cluster_assignment_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_matchable_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskResourceSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskResourceAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterResourceAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionQueueAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionClusterLabel); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginOverride); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginOverrides); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MatchingAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MatchableAttributesConfiguration); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListMatchableAttributesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListMatchableAttributesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_matchable_resource_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*MatchingAttributes_TaskResourceAttributes)(nil), - (*MatchingAttributes_ClusterResourceAttributes)(nil), - (*MatchingAttributes_ExecutionQueueAttributes)(nil), - (*MatchingAttributes_ExecutionClusterLabel)(nil), - (*MatchingAttributes_QualityOfService)(nil), - (*MatchingAttributes_PluginOverrides)(nil), - (*MatchingAttributes_WorkflowExecutionConfig)(nil), - (*MatchingAttributes_ClusterAssignment)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_matchable_resource_proto_rawDesc, - NumEnums: 2, - NumMessages: 13, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_matchable_resource_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_matchable_resource_proto_depIdxs, - EnumInfos: file_flyteidl_admin_matchable_resource_proto_enumTypes, - MessageInfos: file_flyteidl_admin_matchable_resource_proto_msgTypes, - }.Build() - File_flyteidl_admin_matchable_resource_proto = out.File - file_flyteidl_admin_matchable_resource_proto_rawDesc = nil - file_flyteidl_admin_matchable_resource_proto_goTypes = nil - file_flyteidl_admin_matchable_resource_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go deleted file mode 100644 index b4d9cb8c89..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go +++ /dev/null @@ -1,1663 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/node_execution.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A message used to fetch a single node execution entity. -// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -type NodeExecutionGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Uniquely identifies an individual node execution. - // +required - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *NodeExecutionGetRequest) Reset() { - *x = NodeExecutionGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionGetRequest) ProtoMessage() {} - -func (x *NodeExecutionGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionGetRequest.ProtoReflect.Descriptor instead. -func (*NodeExecutionGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{0} -} - -func (x *NodeExecutionGetRequest) GetId() *core.NodeExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Represents a request structure to retrieve a list of node execution entities. -// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -type NodeExecutionListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates the workflow execution to filter by. - // +required - WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Unique identifier of the parent node in the execution - // +optional - UniqueParentId string `protobuf:"bytes,6,opt,name=unique_parent_id,json=uniqueParentId,proto3" json:"unique_parent_id,omitempty"` -} - -func (x *NodeExecutionListRequest) Reset() { - *x = NodeExecutionListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionListRequest) ProtoMessage() {} - -func (x *NodeExecutionListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionListRequest.ProtoReflect.Descriptor instead. -func (*NodeExecutionListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{1} -} - -func (x *NodeExecutionListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.WorkflowExecutionId - } - return nil -} - -func (x *NodeExecutionListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *NodeExecutionListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *NodeExecutionListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *NodeExecutionListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -func (x *NodeExecutionListRequest) GetUniqueParentId() string { - if x != nil { - return x.UniqueParentId - } - return "" -} - -// Represents a request structure to retrieve a list of node execution entities launched by a specific task. -// This can arise when a task yields a subworkflow. -type NodeExecutionForTaskListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates the node execution to filter by. - // +required - TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` -} - -func (x *NodeExecutionForTaskListRequest) Reset() { - *x = NodeExecutionForTaskListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionForTaskListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionForTaskListRequest) ProtoMessage() {} - -func (x *NodeExecutionForTaskListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionForTaskListRequest.ProtoReflect.Descriptor instead. -func (*NodeExecutionForTaskListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{2} -} - -func (x *NodeExecutionForTaskListRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { - if x != nil { - return x.TaskExecutionId - } - return nil -} - -func (x *NodeExecutionForTaskListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *NodeExecutionForTaskListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *NodeExecutionForTaskListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *NodeExecutionForTaskListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -// Encapsulates all details for a single node execution entity. -// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested -// sub-workflow, or even a separate child-workflow execution. -// The same task can be called repeatedly in a single workflow but each node is unique. -type NodeExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Uniquely identifies an individual node execution. - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Path to remote data store where input blob is stored. - InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` - // Computed results associated with this node execution. - Closure *NodeExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` - // Metadata for Node Execution - Metadata *NodeExecutionMetaData `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *NodeExecution) Reset() { - *x = NodeExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecution) ProtoMessage() {} - -func (x *NodeExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecution.ProtoReflect.Descriptor instead. -func (*NodeExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{3} -} - -func (x *NodeExecution) GetId() *core.NodeExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *NodeExecution) GetInputUri() string { - if x != nil { - return x.InputUri - } - return "" -} - -func (x *NodeExecution) GetClosure() *NodeExecutionClosure { - if x != nil { - return x.Closure - } - return nil -} - -func (x *NodeExecution) GetMetadata() *NodeExecutionMetaData { - if x != nil { - return x.Metadata - } - return nil -} - -// Represents additional attributes related to a Node Execution -type NodeExecutionMetaData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Node executions are grouped depending on retries of the parent - // Retry group is unique within the context of a parent node. - RetryGroup string `protobuf:"bytes,1,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` - // Boolean flag indicating if the node has child nodes under it - // This can be true when a node contains a dynamic workflow which then produces - // child nodes. - IsParentNode bool `protobuf:"varint,2,opt,name=is_parent_node,json=isParentNode,proto3" json:"is_parent_node,omitempty"` - // Node id of the node in the original workflow - // This maps to value of WorkflowTemplate.nodes[X].id - SpecNodeId string `protobuf:"bytes,3,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` - // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. - // This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. - IsDynamic bool `protobuf:"varint,4,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` - // Boolean flag indicating if the node is an array node. This is intended to uniquely identify - // array nodes from other nodes which can have is_parent_node as true. - IsArray bool `protobuf:"varint,5,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` -} - -func (x *NodeExecutionMetaData) Reset() { - *x = NodeExecutionMetaData{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionMetaData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionMetaData) ProtoMessage() {} - -func (x *NodeExecutionMetaData) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionMetaData.ProtoReflect.Descriptor instead. -func (*NodeExecutionMetaData) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{4} -} - -func (x *NodeExecutionMetaData) GetRetryGroup() string { - if x != nil { - return x.RetryGroup - } - return "" -} - -func (x *NodeExecutionMetaData) GetIsParentNode() bool { - if x != nil { - return x.IsParentNode - } - return false -} - -func (x *NodeExecutionMetaData) GetSpecNodeId() string { - if x != nil { - return x.SpecNodeId - } - return "" -} - -func (x *NodeExecutionMetaData) GetIsDynamic() bool { - if x != nil { - return x.IsDynamic - } - return false -} - -func (x *NodeExecutionMetaData) GetIsArray() bool { - if x != nil { - return x.IsArray - } - return false -} - -// Request structure to retrieve a list of node execution entities. -// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -type NodeExecutionList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NodeExecutions []*NodeExecution `protobuf:"bytes,1,rep,name=node_executions,json=nodeExecutions,proto3" json:"node_executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *NodeExecutionList) Reset() { - *x = NodeExecutionList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionList) ProtoMessage() {} - -func (x *NodeExecutionList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionList.ProtoReflect.Descriptor instead. -func (*NodeExecutionList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{5} -} - -func (x *NodeExecutionList) GetNodeExecutions() []*NodeExecution { - if x != nil { - return x.NodeExecutions - } - return nil -} - -func (x *NodeExecutionList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Container for node execution details and results. -type NodeExecutionClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Only a node in a terminal state will have a non-empty output_result. - // - // Types that are assignable to OutputResult: - // - // *NodeExecutionClosure_OutputUri - // *NodeExecutionClosure_Error - // *NodeExecutionClosure_OutputData - OutputResult isNodeExecutionClosure_OutputResult `protobuf_oneof:"output_result"` - // The last recorded phase for this node execution. - Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` - // Time at which the node execution began running. - StartedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - // The amount of time the node execution spent running. - Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` - // Time at which the node execution was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Time at which the node execution was last updated. - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // Store metadata for what the node launched. - // for ex: if this is a workflow node, we store information for the launched workflow. - // - // Types that are assignable to TargetMetadata: - // - // *NodeExecutionClosure_WorkflowNodeMetadata - // *NodeExecutionClosure_TaskNodeMetadata - TargetMetadata isNodeExecutionClosure_TargetMetadata `protobuf_oneof:"target_metadata"` - // String location uniquely identifying where the deck HTML file is. - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - DeckUri string `protobuf:"bytes,11,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required - // to correctly recover partially completed executions where the subworkflow has already been compiled. - DynamicJobSpecUri string `protobuf:"bytes,12,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` -} - -func (x *NodeExecutionClosure) Reset() { - *x = NodeExecutionClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionClosure) ProtoMessage() {} - -func (x *NodeExecutionClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionClosure.ProtoReflect.Descriptor instead. -func (*NodeExecutionClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{6} -} - -func (m *NodeExecutionClosure) GetOutputResult() isNodeExecutionClosure_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. -func (x *NodeExecutionClosure) GetOutputUri() string { - if x, ok := x.GetOutputResult().(*NodeExecutionClosure_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (x *NodeExecutionClosure) GetError() *core.ExecutionError { - if x, ok := x.GetOutputResult().(*NodeExecutionClosure_Error); ok { - return x.Error - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. -func (x *NodeExecutionClosure) GetOutputData() *core.LiteralMap { - if x, ok := x.GetOutputResult().(*NodeExecutionClosure_OutputData); ok { - return x.OutputData - } - return nil -} - -func (x *NodeExecutionClosure) GetPhase() core.NodeExecution_Phase { - if x != nil { - return x.Phase - } - return core.NodeExecution_Phase(0) -} - -func (x *NodeExecutionClosure) GetStartedAt() *timestamppb.Timestamp { - if x != nil { - return x.StartedAt - } - return nil -} - -func (x *NodeExecutionClosure) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -func (x *NodeExecutionClosure) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *NodeExecutionClosure) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -func (m *NodeExecutionClosure) GetTargetMetadata() isNodeExecutionClosure_TargetMetadata { - if m != nil { - return m.TargetMetadata - } - return nil -} - -func (x *NodeExecutionClosure) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { - if x, ok := x.GetTargetMetadata().(*NodeExecutionClosure_WorkflowNodeMetadata); ok { - return x.WorkflowNodeMetadata - } - return nil -} - -func (x *NodeExecutionClosure) GetTaskNodeMetadata() *TaskNodeMetadata { - if x, ok := x.GetTargetMetadata().(*NodeExecutionClosure_TaskNodeMetadata); ok { - return x.TaskNodeMetadata - } - return nil -} - -func (x *NodeExecutionClosure) GetDeckUri() string { - if x != nil { - return x.DeckUri - } - return "" -} - -func (x *NodeExecutionClosure) GetDynamicJobSpecUri() string { - if x != nil { - return x.DynamicJobSpecUri - } - return "" -} - -type isNodeExecutionClosure_OutputResult interface { - isNodeExecutionClosure_OutputResult() -} - -type NodeExecutionClosure_OutputUri struct { - // Links to a remotely stored, serialized core.LiteralMap of node execution outputs. - // DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. - OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type NodeExecutionClosure_Error struct { - // Error information for the Node - Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -type NodeExecutionClosure_OutputData struct { - // Raw output data produced by this node execution. - // DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. - OutputData *core.LiteralMap `protobuf:"bytes,10,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*NodeExecutionClosure_OutputUri) isNodeExecutionClosure_OutputResult() {} - -func (*NodeExecutionClosure_Error) isNodeExecutionClosure_OutputResult() {} - -func (*NodeExecutionClosure_OutputData) isNodeExecutionClosure_OutputResult() {} - -type isNodeExecutionClosure_TargetMetadata interface { - isNodeExecutionClosure_TargetMetadata() -} - -type NodeExecutionClosure_WorkflowNodeMetadata struct { - WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` -} - -type NodeExecutionClosure_TaskNodeMetadata struct { - TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,9,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` -} - -func (*NodeExecutionClosure_WorkflowNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} - -func (*NodeExecutionClosure_TaskNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} - -// Metadata for a WorkflowNode -type WorkflowNodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier for a workflow execution launched by a node. - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=executionId,proto3" json:"executionId,omitempty"` -} - -func (x *WorkflowNodeMetadata) Reset() { - *x = WorkflowNodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowNodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowNodeMetadata) ProtoMessage() {} - -func (x *WorkflowNodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowNodeMetadata.ProtoReflect.Descriptor instead. -func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{7} -} - -func (x *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.ExecutionId - } - return nil -} - -// Metadata for the case in which the node is a TaskNode -type TaskNodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Captures the status of caching for this execution. - CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` - // This structure carries the catalog artifact information - CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` - // The latest checkpoint location - CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` -} - -func (x *TaskNodeMetadata) Reset() { - *x = TaskNodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskNodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskNodeMetadata) ProtoMessage() {} - -func (x *TaskNodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskNodeMetadata.ProtoReflect.Descriptor instead. -func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{8} -} - -func (x *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { - if x != nil { - return x.CacheStatus - } - return core.CatalogCacheStatus(0) -} - -func (x *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { - if x != nil { - return x.CatalogKey - } - return nil -} - -func (x *TaskNodeMetadata) GetCheckpointUri() string { - if x != nil { - return x.CheckpointUri - } - return "" -} - -// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. -type DynamicWorkflowNodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the workflow. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the compiled representation of the embedded dynamic workflow. - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - // required to correctly recover partially completed executions where the subworkflow has already been compiled. - DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` -} - -func (x *DynamicWorkflowNodeMetadata) Reset() { - *x = DynamicWorkflowNodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicWorkflowNodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} - -func (x *DynamicWorkflowNodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicWorkflowNodeMetadata.ProtoReflect.Descriptor instead. -func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{9} -} - -func (x *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if x != nil { - return x.CompiledWorkflow - } - return nil -} - -func (x *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { - if x != nil { - return x.DynamicJobSpecUri - } - return "" -} - -// Request structure to fetch inputs and output for a node execution. -// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` -type NodeExecutionGetDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier of the node execution for which to fetch inputs and outputs. - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *NodeExecutionGetDataRequest) Reset() { - *x = NodeExecutionGetDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionGetDataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionGetDataRequest) ProtoMessage() {} - -func (x *NodeExecutionGetDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionGetDataRequest.ProtoReflect.Descriptor instead. -func (*NodeExecutionGetDataRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{10} -} - -func (x *NodeExecutionGetDataRequest) GetId() *core.NodeExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. -type NodeExecutionGetDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Signed url to fetch a core.LiteralMap of node execution inputs. - // Deprecated: Please use full_inputs instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. - Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Signed url to fetch a core.LiteralMap of node execution outputs. - // Deprecated: Please use full_outputs instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. - Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` - // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. - DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` - FlyteUrls *FlyteURLs `protobuf:"bytes,17,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` -} - -func (x *NodeExecutionGetDataResponse) Reset() { - *x = NodeExecutionGetDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionGetDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionGetDataResponse) ProtoMessage() {} - -func (x *NodeExecutionGetDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionGetDataResponse.ProtoReflect.Descriptor instead. -func (*NodeExecutionGetDataResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{11} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. -func (x *NodeExecutionGetDataResponse) GetInputs() *UrlBlob { - if x != nil { - return x.Inputs - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. -func (x *NodeExecutionGetDataResponse) GetOutputs() *UrlBlob { - if x != nil { - return x.Outputs - } - return nil -} - -func (x *NodeExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { - if x != nil { - return x.FullInputs - } - return nil -} - -func (x *NodeExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { - if x != nil { - return x.FullOutputs - } - return nil -} - -func (x *NodeExecutionGetDataResponse) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { - if x != nil { - return x.DynamicWorkflow - } - return nil -} - -func (x *NodeExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { - if x != nil { - return x.FlyteUrls - } - return nil -} - -type GetDynamicNodeWorkflowRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *GetDynamicNodeWorkflowRequest) Reset() { - *x = GetDynamicNodeWorkflowRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDynamicNodeWorkflowRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDynamicNodeWorkflowRequest) ProtoMessage() {} - -func (x *GetDynamicNodeWorkflowRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDynamicNodeWorkflowRequest.ProtoReflect.Descriptor instead. -func (*GetDynamicNodeWorkflowRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{12} -} - -func (x *GetDynamicNodeWorkflowRequest) GetId() *core.NodeExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -type DynamicNodeWorkflowResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` -} - -func (x *DynamicNodeWorkflowResponse) Reset() { - *x = DynamicNodeWorkflowResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicNodeWorkflowResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicNodeWorkflowResponse) ProtoMessage() {} - -func (x *DynamicNodeWorkflowResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_node_execution_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicNodeWorkflowResponse.ProtoReflect.Descriptor instead. -func (*DynamicNodeWorkflowResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{13} -} - -func (x *DynamicNodeWorkflowResponse) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if x != nil { - return x.CompiledWorkflow - } - return nil -} - -var File_flyteidl_admin_node_execution_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_node_execution_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, - 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x17, 0x4e, - 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x99, - 0x02, 0x0a, 0x18, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x15, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, - 0x12, 0x28, 0x0a, 0x10, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x6e, 0x69, 0x71, - 0x75, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xea, 0x01, 0x0a, 0x1f, 0x4e, - 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x54, - 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, - 0x0a, 0x11, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x52, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, - 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, - 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, - 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x22, 0xe7, 0x01, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x3e, - 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, - 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x41, - 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x22, 0xba, 0x01, 0x0a, 0x15, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x72, - 0x65, 0x74, 0x72, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x0a, 0x0e, - 0x69, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x22, 0x71, - 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6e, 0x6f, 0x64, - 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0xf6, 0x05, 0x0a, 0x14, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, - 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, - 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, - 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x35, 0x0a, - 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, - 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x5c, 0x0a, 0x16, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x48, 0x01, 0x52, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x01, 0x52, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, - 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, - 0x63, 0x6b, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, - 0x63, 0x6b, 0x55, 0x72, 0x69, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x53, - 0x70, 0x65, 0x63, 0x55, 0x72, 0x69, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x64, 0x0a, 0x14, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x4c, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x22, 0xc0, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, - 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, - 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x55, 0x72, 0x69, 0x22, 0xce, 0x01, 0x0a, 0x1b, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x53, - 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, - 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6a, - 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, - 0x63, 0x55, 0x72, 0x69, 0x22, 0x55, 0x0a, 0x1b, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x96, 0x03, 0x0a, 0x1c, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, - 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, - 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x73, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x66, 0x75, 0x6c, 0x6c, - 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, - 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x49, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, - 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x73, 0x12, 0x56, 0x0a, 0x10, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x79, - 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, - 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x64, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x38, 0x0a, 0x0a, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x09, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x55, 0x72, 0x6c, 0x73, 0x22, 0x57, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, - 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x72, 0x0a, - 0x1b, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, - 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x42, 0xbe, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x12, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, - 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_node_execution_proto_rawDescOnce sync.Once - file_flyteidl_admin_node_execution_proto_rawDescData = file_flyteidl_admin_node_execution_proto_rawDesc -) - -func file_flyteidl_admin_node_execution_proto_rawDescGZIP() []byte { - file_flyteidl_admin_node_execution_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_node_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_node_execution_proto_rawDescData) - }) - return file_flyteidl_admin_node_execution_proto_rawDescData -} - -var file_flyteidl_admin_node_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_flyteidl_admin_node_execution_proto_goTypes = []interface{}{ - (*NodeExecutionGetRequest)(nil), // 0: flyteidl.admin.NodeExecutionGetRequest - (*NodeExecutionListRequest)(nil), // 1: flyteidl.admin.NodeExecutionListRequest - (*NodeExecutionForTaskListRequest)(nil), // 2: flyteidl.admin.NodeExecutionForTaskListRequest - (*NodeExecution)(nil), // 3: flyteidl.admin.NodeExecution - (*NodeExecutionMetaData)(nil), // 4: flyteidl.admin.NodeExecutionMetaData - (*NodeExecutionList)(nil), // 5: flyteidl.admin.NodeExecutionList - (*NodeExecutionClosure)(nil), // 6: flyteidl.admin.NodeExecutionClosure - (*WorkflowNodeMetadata)(nil), // 7: flyteidl.admin.WorkflowNodeMetadata - (*TaskNodeMetadata)(nil), // 8: flyteidl.admin.TaskNodeMetadata - (*DynamicWorkflowNodeMetadata)(nil), // 9: flyteidl.admin.DynamicWorkflowNodeMetadata - (*NodeExecutionGetDataRequest)(nil), // 10: flyteidl.admin.NodeExecutionGetDataRequest - (*NodeExecutionGetDataResponse)(nil), // 11: flyteidl.admin.NodeExecutionGetDataResponse - (*GetDynamicNodeWorkflowRequest)(nil), // 12: flyteidl.admin.GetDynamicNodeWorkflowRequest - (*DynamicNodeWorkflowResponse)(nil), // 13: flyteidl.admin.DynamicNodeWorkflowResponse - (*core.NodeExecutionIdentifier)(nil), // 14: flyteidl.core.NodeExecutionIdentifier - (*core.WorkflowExecutionIdentifier)(nil), // 15: flyteidl.core.WorkflowExecutionIdentifier - (*Sort)(nil), // 16: flyteidl.admin.Sort - (*core.TaskExecutionIdentifier)(nil), // 17: flyteidl.core.TaskExecutionIdentifier - (*core.ExecutionError)(nil), // 18: flyteidl.core.ExecutionError - (*core.LiteralMap)(nil), // 19: flyteidl.core.LiteralMap - (core.NodeExecution_Phase)(0), // 20: flyteidl.core.NodeExecution.Phase - (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 22: google.protobuf.Duration - (core.CatalogCacheStatus)(0), // 23: flyteidl.core.CatalogCacheStatus - (*core.CatalogMetadata)(nil), // 24: flyteidl.core.CatalogMetadata - (*core.Identifier)(nil), // 25: flyteidl.core.Identifier - (*core.CompiledWorkflowClosure)(nil), // 26: flyteidl.core.CompiledWorkflowClosure - (*UrlBlob)(nil), // 27: flyteidl.admin.UrlBlob - (*FlyteURLs)(nil), // 28: flyteidl.admin.FlyteURLs -} -var file_flyteidl_admin_node_execution_proto_depIdxs = []int32{ - 14, // 0: flyteidl.admin.NodeExecutionGetRequest.id:type_name -> flyteidl.core.NodeExecutionIdentifier - 15, // 1: flyteidl.admin.NodeExecutionListRequest.workflow_execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 16, // 2: flyteidl.admin.NodeExecutionListRequest.sort_by:type_name -> flyteidl.admin.Sort - 17, // 3: flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id:type_name -> flyteidl.core.TaskExecutionIdentifier - 16, // 4: flyteidl.admin.NodeExecutionForTaskListRequest.sort_by:type_name -> flyteidl.admin.Sort - 14, // 5: flyteidl.admin.NodeExecution.id:type_name -> flyteidl.core.NodeExecutionIdentifier - 6, // 6: flyteidl.admin.NodeExecution.closure:type_name -> flyteidl.admin.NodeExecutionClosure - 4, // 7: flyteidl.admin.NodeExecution.metadata:type_name -> flyteidl.admin.NodeExecutionMetaData - 3, // 8: flyteidl.admin.NodeExecutionList.node_executions:type_name -> flyteidl.admin.NodeExecution - 18, // 9: flyteidl.admin.NodeExecutionClosure.error:type_name -> flyteidl.core.ExecutionError - 19, // 10: flyteidl.admin.NodeExecutionClosure.output_data:type_name -> flyteidl.core.LiteralMap - 20, // 11: flyteidl.admin.NodeExecutionClosure.phase:type_name -> flyteidl.core.NodeExecution.Phase - 21, // 12: flyteidl.admin.NodeExecutionClosure.started_at:type_name -> google.protobuf.Timestamp - 22, // 13: flyteidl.admin.NodeExecutionClosure.duration:type_name -> google.protobuf.Duration - 21, // 14: flyteidl.admin.NodeExecutionClosure.created_at:type_name -> google.protobuf.Timestamp - 21, // 15: flyteidl.admin.NodeExecutionClosure.updated_at:type_name -> google.protobuf.Timestamp - 7, // 16: flyteidl.admin.NodeExecutionClosure.workflow_node_metadata:type_name -> flyteidl.admin.WorkflowNodeMetadata - 8, // 17: flyteidl.admin.NodeExecutionClosure.task_node_metadata:type_name -> flyteidl.admin.TaskNodeMetadata - 15, // 18: flyteidl.admin.WorkflowNodeMetadata.executionId:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 23, // 19: flyteidl.admin.TaskNodeMetadata.cache_status:type_name -> flyteidl.core.CatalogCacheStatus - 24, // 20: flyteidl.admin.TaskNodeMetadata.catalog_key:type_name -> flyteidl.core.CatalogMetadata - 25, // 21: flyteidl.admin.DynamicWorkflowNodeMetadata.id:type_name -> flyteidl.core.Identifier - 26, // 22: flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure - 14, // 23: flyteidl.admin.NodeExecutionGetDataRequest.id:type_name -> flyteidl.core.NodeExecutionIdentifier - 27, // 24: flyteidl.admin.NodeExecutionGetDataResponse.inputs:type_name -> flyteidl.admin.UrlBlob - 27, // 25: flyteidl.admin.NodeExecutionGetDataResponse.outputs:type_name -> flyteidl.admin.UrlBlob - 19, // 26: flyteidl.admin.NodeExecutionGetDataResponse.full_inputs:type_name -> flyteidl.core.LiteralMap - 19, // 27: flyteidl.admin.NodeExecutionGetDataResponse.full_outputs:type_name -> flyteidl.core.LiteralMap - 9, // 28: flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow:type_name -> flyteidl.admin.DynamicWorkflowNodeMetadata - 28, // 29: flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls:type_name -> flyteidl.admin.FlyteURLs - 14, // 30: flyteidl.admin.GetDynamicNodeWorkflowRequest.id:type_name -> flyteidl.core.NodeExecutionIdentifier - 26, // 31: flyteidl.admin.DynamicNodeWorkflowResponse.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure - 32, // [32:32] is the sub-list for method output_type - 32, // [32:32] is the sub-list for method input_type - 32, // [32:32] is the sub-list for extension type_name - 32, // [32:32] is the sub-list for extension extendee - 0, // [0:32] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_node_execution_proto_init() } -func file_flyteidl_admin_node_execution_proto_init() { - if File_flyteidl_admin_node_execution_proto != nil { - return - } - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_node_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionForTaskListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionMetaData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowNodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskNodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicWorkflowNodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionGetDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionGetDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDynamicNodeWorkflowRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicNodeWorkflowResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_node_execution_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*NodeExecutionClosure_OutputUri)(nil), - (*NodeExecutionClosure_Error)(nil), - (*NodeExecutionClosure_OutputData)(nil), - (*NodeExecutionClosure_WorkflowNodeMetadata)(nil), - (*NodeExecutionClosure_TaskNodeMetadata)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_node_execution_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_node_execution_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_node_execution_proto_depIdxs, - MessageInfos: file_flyteidl_admin_node_execution_proto_msgTypes, - }.Build() - File_flyteidl_admin_node_execution_proto = out.File - file_flyteidl_admin_node_execution_proto_rawDesc = nil - file_flyteidl_admin_node_execution_proto_goTypes = nil - file_flyteidl_admin_node_execution_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go deleted file mode 100644 index a31f660b11..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/notification.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Represents the Email object that is sent to a publisher/subscriber -// to forward the notification. -// Note: This is internal to Admin and doesn't need to be exposed to other components. -type EmailMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of email addresses to receive an email with the content populated in the other fields. - // Currently, each email recipient will receive its own email. - // This populates the TO field. - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` - // The email of the sender. - // This populates the FROM field. - SenderEmail string `protobuf:"bytes,2,opt,name=sender_email,json=senderEmail,proto3" json:"sender_email,omitempty"` - // The content of the subject line. - // This populates the SUBJECT field. - SubjectLine string `protobuf:"bytes,3,opt,name=subject_line,json=subjectLine,proto3" json:"subject_line,omitempty"` - // The content of the email body. - // This populates the BODY field. - Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` -} - -func (x *EmailMessage) Reset() { - *x = EmailMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_notification_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EmailMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EmailMessage) ProtoMessage() {} - -func (x *EmailMessage) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_notification_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EmailMessage.ProtoReflect.Descriptor instead. -func (*EmailMessage) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_notification_proto_rawDescGZIP(), []int{0} -} - -func (x *EmailMessage) GetRecipientsEmail() []string { - if x != nil { - return x.RecipientsEmail - } - return nil -} - -func (x *EmailMessage) GetSenderEmail() string { - if x != nil { - return x.SenderEmail - } - return "" -} - -func (x *EmailMessage) GetSubjectLine() string { - if x != nil { - return x.SubjectLine - } - return "" -} - -func (x *EmailMessage) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -var File_flyteidl_admin_notification_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_notification_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x0c, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, - 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, - 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, - 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x45, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6c, 0x69, - 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0xbd, 0x01, 0x0a, 0x12, 0x63, 0x6f, - 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x42, 0x11, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_flyteidl_admin_notification_proto_rawDescOnce sync.Once - file_flyteidl_admin_notification_proto_rawDescData = file_flyteidl_admin_notification_proto_rawDesc -) - -func file_flyteidl_admin_notification_proto_rawDescGZIP() []byte { - file_flyteidl_admin_notification_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_notification_proto_rawDescData) - }) - return file_flyteidl_admin_notification_proto_rawDescData -} - -var file_flyteidl_admin_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_admin_notification_proto_goTypes = []interface{}{ - (*EmailMessage)(nil), // 0: flyteidl.admin.EmailMessage -} -var file_flyteidl_admin_notification_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_notification_proto_init() } -func file_flyteidl_admin_notification_proto_init() { - if File_flyteidl_admin_notification_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_notification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EmailMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_notification_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_notification_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_notification_proto_depIdxs, - MessageInfos: file_flyteidl_admin_notification_proto_msgTypes, - }.Build() - File_flyteidl_admin_notification_proto = out.File - file_flyteidl_admin_notification_proto_rawDesc = nil - file_flyteidl_admin_notification_proto_goTypes = nil - file_flyteidl_admin_notification_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go deleted file mode 100644 index e8a4a70689..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go +++ /dev/null @@ -1,735 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/project.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The state of the project is used to control its visibility in the UI and validity. -type Project_ProjectState int32 - -const ( - // By default, all projects are considered active. - Project_ACTIVE Project_ProjectState = 0 - // Archived projects are no longer visible in the UI and no longer valid. - Project_ARCHIVED Project_ProjectState = 1 - // System generated projects that aren't explicitly created or managed by a user. - Project_SYSTEM_GENERATED Project_ProjectState = 2 -) - -// Enum value maps for Project_ProjectState. -var ( - Project_ProjectState_name = map[int32]string{ - 0: "ACTIVE", - 1: "ARCHIVED", - 2: "SYSTEM_GENERATED", - } - Project_ProjectState_value = map[string]int32{ - "ACTIVE": 0, - "ARCHIVED": 1, - "SYSTEM_GENERATED": 2, - } -) - -func (x Project_ProjectState) Enum() *Project_ProjectState { - p := new(Project_ProjectState) - *p = x - return p -} - -func (x Project_ProjectState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Project_ProjectState) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_project_proto_enumTypes[0].Descriptor() -} - -func (Project_ProjectState) Type() protoreflect.EnumType { - return &file_flyteidl_admin_project_proto_enumTypes[0] -} - -func (x Project_ProjectState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Project_ProjectState.Descriptor instead. -func (Project_ProjectState) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{1, 0} -} - -// Namespace within a project commonly used to differentiate between different service instances. -// e.g. "production", "development", etc. -type Domain struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Globally unique domain name. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Display name. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *Domain) Reset() { - *x = Domain{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Domain) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Domain) ProtoMessage() {} - -func (x *Domain) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Domain.ProtoReflect.Descriptor instead. -func (*Domain) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{0} -} - -func (x *Domain) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Domain) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Top-level namespace used to classify different entities like workflows and executions. -type Project struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Globally unique project name. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Display name. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Domains []*Domain `protobuf:"bytes,3,rep,name=domains,proto3" json:"domains,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // Leverage Labels from flyteidl.admin.common.proto to - // tag projects with ownership information. - Labels *Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` - State Project_ProjectState `protobuf:"varint,6,opt,name=state,proto3,enum=flyteidl.admin.Project_ProjectState" json:"state,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,7,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *Project) Reset() { - *x = Project{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Project) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Project) ProtoMessage() {} - -func (x *Project) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Project.ProtoReflect.Descriptor instead. -func (*Project) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{1} -} - -func (x *Project) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Project) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Project) GetDomains() []*Domain { - if x != nil { - return x.Domains - } - return nil -} - -func (x *Project) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *Project) GetLabels() *Labels { - if x != nil { - return x.Labels - } - return nil -} - -func (x *Project) GetState() Project_ProjectState { - if x != nil { - return x.State - } - return Project_ACTIVE -} - -func (x *Project) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Represents a list of projects. -// See :ref:`ref_flyteidl.admin.Project` for more details -type Projects struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *Projects) Reset() { - *x = Projects{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Projects) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Projects) ProtoMessage() {} - -func (x *Projects) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Projects.ProtoReflect.Descriptor instead. -func (*Projects) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{2} -} - -func (x *Projects) GetProjects() []*Project { - if x != nil { - return x.Projects - } - return nil -} - -func (x *Projects) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Request to retrieve a list of projects matching specified filters. -// See :ref:`ref_flyteidl.admin.Project` for more details -type ProjectListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates the number of projects to be returned. - // +required - Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, this server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,3,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,4,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Optional, org filter applied to list project requests. - Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectListRequest) Reset() { - *x = ProjectListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectListRequest) ProtoMessage() {} - -func (x *ProjectListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectListRequest.ProtoReflect.Descriptor instead. -func (*ProjectListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{3} -} - -func (x *ProjectListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ProjectListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *ProjectListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *ProjectListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -func (x *ProjectListRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Adds a new user-project within the Flyte deployment. -// See :ref:`ref_flyteidl.admin.Project` for more details -type ProjectRegisterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` -} - -func (x *ProjectRegisterRequest) Reset() { - *x = ProjectRegisterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRegisterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRegisterRequest) ProtoMessage() {} - -func (x *ProjectRegisterRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectRegisterRequest.ProtoReflect.Descriptor instead. -func (*ProjectRegisterRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{4} -} - -func (x *ProjectRegisterRequest) GetProject() *Project { - if x != nil { - return x.Project - } - return nil -} - -// Purposefully empty, may be updated in the future. -type ProjectRegisterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProjectRegisterResponse) Reset() { - *x = ProjectRegisterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectRegisterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectRegisterResponse) ProtoMessage() {} - -func (x *ProjectRegisterResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectRegisterResponse.ProtoReflect.Descriptor instead. -func (*ProjectRegisterResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{5} -} - -// Purposefully empty, may be updated in the future. -type ProjectUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProjectUpdateResponse) Reset() { - *x = ProjectUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectUpdateResponse) ProtoMessage() {} - -func (x *ProjectUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectUpdateResponse.ProtoReflect.Descriptor instead. -func (*ProjectUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{6} -} - -var File_flyteidl_admin_project_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_project_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x06, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xbf, 0x02, 0x0a, 0x07, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x3e, 0x0a, 0x0c, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x52, 0x43, 0x48, 0x49, - 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, - 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x55, 0x0a, 0x08, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, - 0x22, 0x4b, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x19, 0x0a, - 0x17, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0xb8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_project_proto_rawDescOnce sync.Once - file_flyteidl_admin_project_proto_rawDescData = file_flyteidl_admin_project_proto_rawDesc -) - -func file_flyteidl_admin_project_proto_rawDescGZIP() []byte { - file_flyteidl_admin_project_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_project_proto_rawDescData) - }) - return file_flyteidl_admin_project_proto_rawDescData -} - -var file_flyteidl_admin_project_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_admin_project_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_flyteidl_admin_project_proto_goTypes = []interface{}{ - (Project_ProjectState)(0), // 0: flyteidl.admin.Project.ProjectState - (*Domain)(nil), // 1: flyteidl.admin.Domain - (*Project)(nil), // 2: flyteidl.admin.Project - (*Projects)(nil), // 3: flyteidl.admin.Projects - (*ProjectListRequest)(nil), // 4: flyteidl.admin.ProjectListRequest - (*ProjectRegisterRequest)(nil), // 5: flyteidl.admin.ProjectRegisterRequest - (*ProjectRegisterResponse)(nil), // 6: flyteidl.admin.ProjectRegisterResponse - (*ProjectUpdateResponse)(nil), // 7: flyteidl.admin.ProjectUpdateResponse - (*Labels)(nil), // 8: flyteidl.admin.Labels - (*Sort)(nil), // 9: flyteidl.admin.Sort -} -var file_flyteidl_admin_project_proto_depIdxs = []int32{ - 1, // 0: flyteidl.admin.Project.domains:type_name -> flyteidl.admin.Domain - 8, // 1: flyteidl.admin.Project.labels:type_name -> flyteidl.admin.Labels - 0, // 2: flyteidl.admin.Project.state:type_name -> flyteidl.admin.Project.ProjectState - 2, // 3: flyteidl.admin.Projects.projects:type_name -> flyteidl.admin.Project - 9, // 4: flyteidl.admin.ProjectListRequest.sort_by:type_name -> flyteidl.admin.Sort - 2, // 5: flyteidl.admin.ProjectRegisterRequest.project:type_name -> flyteidl.admin.Project - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_project_proto_init() } -func file_flyteidl_admin_project_proto_init() { - if File_flyteidl_admin_project_proto != nil { - return - } - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Domain); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Project); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Projects); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRegisterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectRegisterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_project_proto_rawDesc, - NumEnums: 1, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_project_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_project_proto_depIdxs, - EnumInfos: file_flyteidl_admin_project_proto_enumTypes, - MessageInfos: file_flyteidl_admin_project_proto_msgTypes, - }.Build() - File_flyteidl_admin_project_proto = out.File - file_flyteidl_admin_project_proto_rawDesc = nil - file_flyteidl_admin_project_proto_goTypes = nil - file_flyteidl_admin_project_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go deleted file mode 100644 index 3d9c12c3b0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go +++ /dev/null @@ -1,623 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/project_attributes.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a set of custom matching attributes at the project level. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id for which this set of attributes will be applied. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - MatchingAttributes *MatchingAttributes `protobuf:"bytes,2,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` - // Optional, org key applied to the project. - Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectAttributes) Reset() { - *x = ProjectAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributes) ProtoMessage() {} - -func (x *ProjectAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributes.ProtoReflect.Descriptor instead. -func (*ProjectAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{0} -} - -func (x *ProjectAttributes) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ProjectAttributes) GetMatchingAttributes() *MatchingAttributes { - if x != nil { - return x.MatchingAttributes - } - return nil -} - -func (x *ProjectAttributes) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Sets custom attributes for a project -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (x *ProjectAttributesUpdateRequest) Reset() { - *x = ProjectAttributesUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributesUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributesUpdateRequest) ProtoMessage() {} - -func (x *ProjectAttributesUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributesUpdateRequest.ProtoReflect.Descriptor instead. -func (*ProjectAttributesUpdateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{1} -} - -func (x *ProjectAttributesUpdateRequest) GetAttributes() *ProjectAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -// Purposefully empty, may be populated in the future. -type ProjectAttributesUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProjectAttributesUpdateResponse) Reset() { - *x = ProjectAttributesUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributesUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributesUpdateResponse) ProtoMessage() {} - -func (x *ProjectAttributesUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributesUpdateResponse.ProtoReflect.Descriptor instead. -func (*ProjectAttributesUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{2} -} - -// Request to get an individual project level attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Which type of matchable attributes to return. - // +required - ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org key applied to the project. - Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectAttributesGetRequest) Reset() { - *x = ProjectAttributesGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributesGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributesGetRequest) ProtoMessage() {} - -func (x *ProjectAttributesGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributesGetRequest.ProtoReflect.Descriptor instead. -func (*ProjectAttributesGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{3} -} - -func (x *ProjectAttributesGetRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ProjectAttributesGetRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *ProjectAttributesGetRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Response to get an individual project level attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesGetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (x *ProjectAttributesGetResponse) Reset() { - *x = ProjectAttributesGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributesGetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributesGetResponse) ProtoMessage() {} - -func (x *ProjectAttributesGetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributesGetResponse.ProtoReflect.Descriptor instead. -func (*ProjectAttributesGetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{4} -} - -func (x *ProjectAttributesGetResponse) GetAttributes() *ProjectAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -// Request to delete a set matchable project level attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Which type of matchable attributes to delete. - // +required - ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org key applied to the project. - Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectAttributesDeleteRequest) Reset() { - *x = ProjectAttributesDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributesDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributesDeleteRequest) ProtoMessage() {} - -func (x *ProjectAttributesDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributesDeleteRequest.ProtoReflect.Descriptor instead. -func (*ProjectAttributesDeleteRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{5} -} - -func (x *ProjectAttributesDeleteRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ProjectAttributesDeleteRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *ProjectAttributesDeleteRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Purposefully empty, may be populated in the future. -type ProjectAttributesDeleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProjectAttributesDeleteResponse) Reset() { - *x = ProjectAttributesDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectAttributesDeleteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectAttributesDeleteResponse) ProtoMessage() {} - -func (x *ProjectAttributesDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectAttributesDeleteResponse.ProtoReflect.Descriptor instead. -func (*ProjectAttributesDeleteResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{6} -} - -var File_flyteidl_admin_project_attributes_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_project_attributes_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x12, 0x53, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x63, 0x0a, 0x1e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0a, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x21, - 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x91, 0x01, 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x46, 0x0a, 0x0d, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x61, 0x0a, 0x1c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x1e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x6f, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, - 0x21, 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, - 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_project_attributes_proto_rawDescOnce sync.Once - file_flyteidl_admin_project_attributes_proto_rawDescData = file_flyteidl_admin_project_attributes_proto_rawDesc -) - -func file_flyteidl_admin_project_attributes_proto_rawDescGZIP() []byte { - file_flyteidl_admin_project_attributes_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_project_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_project_attributes_proto_rawDescData) - }) - return file_flyteidl_admin_project_attributes_proto_rawDescData -} - -var file_flyteidl_admin_project_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_flyteidl_admin_project_attributes_proto_goTypes = []interface{}{ - (*ProjectAttributes)(nil), // 0: flyteidl.admin.ProjectAttributes - (*ProjectAttributesUpdateRequest)(nil), // 1: flyteidl.admin.ProjectAttributesUpdateRequest - (*ProjectAttributesUpdateResponse)(nil), // 2: flyteidl.admin.ProjectAttributesUpdateResponse - (*ProjectAttributesGetRequest)(nil), // 3: flyteidl.admin.ProjectAttributesGetRequest - (*ProjectAttributesGetResponse)(nil), // 4: flyteidl.admin.ProjectAttributesGetResponse - (*ProjectAttributesDeleteRequest)(nil), // 5: flyteidl.admin.ProjectAttributesDeleteRequest - (*ProjectAttributesDeleteResponse)(nil), // 6: flyteidl.admin.ProjectAttributesDeleteResponse - (*MatchingAttributes)(nil), // 7: flyteidl.admin.MatchingAttributes - (MatchableResource)(0), // 8: flyteidl.admin.MatchableResource -} -var file_flyteidl_admin_project_attributes_proto_depIdxs = []int32{ - 7, // 0: flyteidl.admin.ProjectAttributes.matching_attributes:type_name -> flyteidl.admin.MatchingAttributes - 0, // 1: flyteidl.admin.ProjectAttributesUpdateRequest.attributes:type_name -> flyteidl.admin.ProjectAttributes - 8, // 2: flyteidl.admin.ProjectAttributesGetRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 0, // 3: flyteidl.admin.ProjectAttributesGetResponse.attributes:type_name -> flyteidl.admin.ProjectAttributes - 8, // 4: flyteidl.admin.ProjectAttributesDeleteRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_project_attributes_proto_init() } -func file_flyteidl_admin_project_attributes_proto_init() { - if File_flyteidl_admin_project_attributes_proto != nil { - return - } - file_flyteidl_admin_matchable_resource_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_project_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributesUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributesUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributesGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributesGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributesDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectAttributesDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_project_attributes_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_project_attributes_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_project_attributes_proto_depIdxs, - MessageInfos: file_flyteidl_admin_project_attributes_proto_msgTypes, - }.Build() - File_flyteidl_admin_project_attributes_proto = out.File - file_flyteidl_admin_project_attributes_proto_rawDesc = nil - file_flyteidl_admin_project_attributes_proto_goTypes = nil - file_flyteidl_admin_project_attributes_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go deleted file mode 100644 index fe3a9c34d7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go +++ /dev/null @@ -1,661 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/project_domain_attributes.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a set of custom matching attributes which defines resource defaults for a project and domain. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id for which this set of attributes will be applied. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id for which this set of attributes will be applied. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - MatchingAttributes *MatchingAttributes `protobuf:"bytes,3,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` - // Optional, org key applied to the attributes. - Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectDomainAttributes) Reset() { - *x = ProjectDomainAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributes) ProtoMessage() {} - -func (x *ProjectDomainAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributes.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{0} -} - -func (x *ProjectDomainAttributes) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ProjectDomainAttributes) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ProjectDomainAttributes) GetMatchingAttributes() *MatchingAttributes { - if x != nil { - return x.MatchingAttributes - } - return nil -} - -func (x *ProjectDomainAttributes) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Sets custom attributes for a project-domain combination. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (x *ProjectDomainAttributesUpdateRequest) Reset() { - *x = ProjectDomainAttributesUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributesUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributesUpdateRequest) ProtoMessage() {} - -func (x *ProjectDomainAttributesUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributesUpdateRequest.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributesUpdateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{1} -} - -func (x *ProjectDomainAttributesUpdateRequest) GetAttributes() *ProjectDomainAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -// Purposefully empty, may be populated in the future. -type ProjectDomainAttributesUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProjectDomainAttributesUpdateResponse) Reset() { - *x = ProjectDomainAttributesUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributesUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributesUpdateResponse) ProtoMessage() {} - -func (x *ProjectDomainAttributesUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributesUpdateResponse.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributesUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{2} -} - -// Request to get an individual project domain attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Which type of matchable attributes to return. - // +required - ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org key applied to the attributes. - Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectDomainAttributesGetRequest) Reset() { - *x = ProjectDomainAttributesGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributesGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributesGetRequest) ProtoMessage() {} - -func (x *ProjectDomainAttributesGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributesGetRequest.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributesGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{3} -} - -func (x *ProjectDomainAttributesGetRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ProjectDomainAttributesGetRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ProjectDomainAttributesGetRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *ProjectDomainAttributesGetRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Response to get an individual project domain attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesGetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (x *ProjectDomainAttributesGetResponse) Reset() { - *x = ProjectDomainAttributesGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributesGetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributesGetResponse) ProtoMessage() {} - -func (x *ProjectDomainAttributesGetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributesGetResponse.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributesGetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{4} -} - -func (x *ProjectDomainAttributesGetResponse) GetAttributes() *ProjectDomainAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -// Request to delete a set matchable project domain attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Which type of matchable attributes to delete. - // +required - ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org key applied to the attributes. - Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ProjectDomainAttributesDeleteRequest) Reset() { - *x = ProjectDomainAttributesDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributesDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributesDeleteRequest) ProtoMessage() {} - -func (x *ProjectDomainAttributesDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributesDeleteRequest.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributesDeleteRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{5} -} - -func (x *ProjectDomainAttributesDeleteRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ProjectDomainAttributesDeleteRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ProjectDomainAttributesDeleteRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *ProjectDomainAttributesDeleteRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Purposefully empty, may be populated in the future. -type ProjectDomainAttributesDeleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ProjectDomainAttributesDeleteResponse) Reset() { - *x = ProjectDomainAttributesDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ProjectDomainAttributesDeleteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ProjectDomainAttributesDeleteResponse) ProtoMessage() {} - -func (x *ProjectDomainAttributesDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ProjectDomainAttributesDeleteResponse.ProtoReflect.Descriptor instead. -func (*ProjectDomainAttributesDeleteResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{6} -} - -var File_flyteidl_admin_project_domain_attributes_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_project_domain_attributes_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, - 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x53, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, - 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, - 0x6f, 0x72, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x6f, - 0x0a, 0x24, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, - 0x27, 0x0a, 0x25, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x01, 0x0a, 0x21, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x6d, 0x0a, 0x22, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x24, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, - 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x6f, 0x72, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x27, - 0x0a, 0x25, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xc8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x1c, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, - 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_project_domain_attributes_proto_rawDescOnce sync.Once - file_flyteidl_admin_project_domain_attributes_proto_rawDescData = file_flyteidl_admin_project_domain_attributes_proto_rawDesc -) - -func file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP() []byte { - file_flyteidl_admin_project_domain_attributes_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_project_domain_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_project_domain_attributes_proto_rawDescData) - }) - return file_flyteidl_admin_project_domain_attributes_proto_rawDescData -} - -var file_flyteidl_admin_project_domain_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_flyteidl_admin_project_domain_attributes_proto_goTypes = []interface{}{ - (*ProjectDomainAttributes)(nil), // 0: flyteidl.admin.ProjectDomainAttributes - (*ProjectDomainAttributesUpdateRequest)(nil), // 1: flyteidl.admin.ProjectDomainAttributesUpdateRequest - (*ProjectDomainAttributesUpdateResponse)(nil), // 2: flyteidl.admin.ProjectDomainAttributesUpdateResponse - (*ProjectDomainAttributesGetRequest)(nil), // 3: flyteidl.admin.ProjectDomainAttributesGetRequest - (*ProjectDomainAttributesGetResponse)(nil), // 4: flyteidl.admin.ProjectDomainAttributesGetResponse - (*ProjectDomainAttributesDeleteRequest)(nil), // 5: flyteidl.admin.ProjectDomainAttributesDeleteRequest - (*ProjectDomainAttributesDeleteResponse)(nil), // 6: flyteidl.admin.ProjectDomainAttributesDeleteResponse - (*MatchingAttributes)(nil), // 7: flyteidl.admin.MatchingAttributes - (MatchableResource)(0), // 8: flyteidl.admin.MatchableResource -} -var file_flyteidl_admin_project_domain_attributes_proto_depIdxs = []int32{ - 7, // 0: flyteidl.admin.ProjectDomainAttributes.matching_attributes:type_name -> flyteidl.admin.MatchingAttributes - 0, // 1: flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes:type_name -> flyteidl.admin.ProjectDomainAttributes - 8, // 2: flyteidl.admin.ProjectDomainAttributesGetRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 0, // 3: flyteidl.admin.ProjectDomainAttributesGetResponse.attributes:type_name -> flyteidl.admin.ProjectDomainAttributes - 8, // 4: flyteidl.admin.ProjectDomainAttributesDeleteRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_project_domain_attributes_proto_init() } -func file_flyteidl_admin_project_domain_attributes_proto_init() { - if File_flyteidl_admin_project_domain_attributes_proto != nil { - return - } - file_flyteidl_admin_matchable_resource_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributesUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributesUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributesGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributesGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributesDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_project_domain_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectDomainAttributesDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_project_domain_attributes_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_project_domain_attributes_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_project_domain_attributes_proto_depIdxs, - MessageInfos: file_flyteidl_admin_project_domain_attributes_proto_msgTypes, - }.Build() - File_flyteidl_admin_project_domain_attributes_proto = out.File - file_flyteidl_admin_project_domain_attributes_proto_rawDesc = nil - file_flyteidl_admin_project_domain_attributes_proto_goTypes = nil - file_flyteidl_admin_project_domain_attributes_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go deleted file mode 100644 index d3a99e7a89..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go +++ /dev/null @@ -1,447 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/schedule.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Represents a frequency at which to run a schedule. -type FixedRateUnit int32 - -const ( - FixedRateUnit_MINUTE FixedRateUnit = 0 - FixedRateUnit_HOUR FixedRateUnit = 1 - FixedRateUnit_DAY FixedRateUnit = 2 -) - -// Enum value maps for FixedRateUnit. -var ( - FixedRateUnit_name = map[int32]string{ - 0: "MINUTE", - 1: "HOUR", - 2: "DAY", - } - FixedRateUnit_value = map[string]int32{ - "MINUTE": 0, - "HOUR": 1, - "DAY": 2, - } -) - -func (x FixedRateUnit) Enum() *FixedRateUnit { - p := new(FixedRateUnit) - *p = x - return p -} - -func (x FixedRateUnit) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (FixedRateUnit) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_admin_schedule_proto_enumTypes[0].Descriptor() -} - -func (FixedRateUnit) Type() protoreflect.EnumType { - return &file_flyteidl_admin_schedule_proto_enumTypes[0] -} - -func (x FixedRateUnit) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use FixedRateUnit.Descriptor instead. -func (FixedRateUnit) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{0} -} - -// Option for schedules run at a certain frequency e.g. every 2 minutes. -type FixedRate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - Unit FixedRateUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=flyteidl.admin.FixedRateUnit" json:"unit,omitempty"` -} - -func (x *FixedRate) Reset() { - *x = FixedRate{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_schedule_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FixedRate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FixedRate) ProtoMessage() {} - -func (x *FixedRate) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_schedule_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FixedRate.ProtoReflect.Descriptor instead. -func (*FixedRate) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{0} -} - -func (x *FixedRate) GetValue() uint32 { - if x != nil { - return x.Value - } - return 0 -} - -func (x *FixedRate) GetUnit() FixedRateUnit { - if x != nil { - return x.Unit - } - return FixedRateUnit_MINUTE -} - -// Options for schedules to run according to a cron expression. -type CronSchedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; - // Also supports nonstandard predefined scheduling definitions - // as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions - // except @reboot - Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` - // ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations - Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *CronSchedule) Reset() { - *x = CronSchedule{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_schedule_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CronSchedule) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CronSchedule) ProtoMessage() {} - -func (x *CronSchedule) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_schedule_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CronSchedule.ProtoReflect.Descriptor instead. -func (*CronSchedule) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{1} -} - -func (x *CronSchedule) GetSchedule() string { - if x != nil { - return x.Schedule - } - return "" -} - -func (x *CronSchedule) GetOffset() string { - if x != nil { - return x.Offset - } - return "" -} - -// Defines complete set of information required to trigger an execution on a schedule. -type Schedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to ScheduleExpression: - // - // *Schedule_CronExpression - // *Schedule_Rate - // *Schedule_CronSchedule - ScheduleExpression isSchedule_ScheduleExpression `protobuf_oneof:"ScheduleExpression"` - // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. - KickoffTimeInputArg string `protobuf:"bytes,3,opt,name=kickoff_time_input_arg,json=kickoffTimeInputArg,proto3" json:"kickoff_time_input_arg,omitempty"` -} - -func (x *Schedule) Reset() { - *x = Schedule{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_schedule_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schedule) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schedule) ProtoMessage() {} - -func (x *Schedule) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_schedule_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schedule.ProtoReflect.Descriptor instead. -func (*Schedule) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{2} -} - -func (m *Schedule) GetScheduleExpression() isSchedule_ScheduleExpression { - if m != nil { - return m.ScheduleExpression - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/schedule.proto. -func (x *Schedule) GetCronExpression() string { - if x, ok := x.GetScheduleExpression().(*Schedule_CronExpression); ok { - return x.CronExpression - } - return "" -} - -func (x *Schedule) GetRate() *FixedRate { - if x, ok := x.GetScheduleExpression().(*Schedule_Rate); ok { - return x.Rate - } - return nil -} - -func (x *Schedule) GetCronSchedule() *CronSchedule { - if x, ok := x.GetScheduleExpression().(*Schedule_CronSchedule); ok { - return x.CronSchedule - } - return nil -} - -func (x *Schedule) GetKickoffTimeInputArg() string { - if x != nil { - return x.KickoffTimeInputArg - } - return "" -} - -type isSchedule_ScheduleExpression interface { - isSchedule_ScheduleExpression() -} - -type Schedule_CronExpression struct { - // Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year - // e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * - // - // Deprecated: Marked as deprecated in flyteidl/admin/schedule.proto. - CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3,oneof"` -} - -type Schedule_Rate struct { - Rate *FixedRate `protobuf:"bytes,2,opt,name=rate,proto3,oneof"` -} - -type Schedule_CronSchedule struct { - CronSchedule *CronSchedule `protobuf:"bytes,4,opt,name=cron_schedule,json=cronSchedule,proto3,oneof"` -} - -func (*Schedule_CronExpression) isSchedule_ScheduleExpression() {} - -func (*Schedule_Rate) isSchedule_ScheduleExpression() {} - -func (*Schedule_CronSchedule) isSchedule_ScheduleExpression() {} - -var File_flyteidl_admin_schedule_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_schedule_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, - 0x54, 0x0a, 0x09, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x52, - 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x42, 0x0a, 0x0c, 0x43, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, - 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0xfa, 0x01, 0x0a, 0x08, 0x53, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x0f, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x65, - 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, 0x61, 0x74, 0x65, 0x48, 0x00, - 0x52, 0x04, 0x72, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, - 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, - 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6b, - 0x69, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x5f, 0x61, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6b, 0x69, 0x63, - 0x6b, 0x6f, 0x66, 0x66, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x41, 0x72, 0x67, - 0x42, 0x14, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x2e, 0x0a, 0x0d, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, - 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x49, 0x4e, 0x55, 0x54, - 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x55, 0x52, 0x10, 0x01, 0x12, 0x07, 0x0a, - 0x03, 0x44, 0x41, 0x59, 0x10, 0x02, 0x42, 0xb9, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0d, 0x53, - 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, - 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_schedule_proto_rawDescOnce sync.Once - file_flyteidl_admin_schedule_proto_rawDescData = file_flyteidl_admin_schedule_proto_rawDesc -) - -func file_flyteidl_admin_schedule_proto_rawDescGZIP() []byte { - file_flyteidl_admin_schedule_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_schedule_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_schedule_proto_rawDescData) - }) - return file_flyteidl_admin_schedule_proto_rawDescData -} - -var file_flyteidl_admin_schedule_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_admin_schedule_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_flyteidl_admin_schedule_proto_goTypes = []interface{}{ - (FixedRateUnit)(0), // 0: flyteidl.admin.FixedRateUnit - (*FixedRate)(nil), // 1: flyteidl.admin.FixedRate - (*CronSchedule)(nil), // 2: flyteidl.admin.CronSchedule - (*Schedule)(nil), // 3: flyteidl.admin.Schedule -} -var file_flyteidl_admin_schedule_proto_depIdxs = []int32{ - 0, // 0: flyteidl.admin.FixedRate.unit:type_name -> flyteidl.admin.FixedRateUnit - 1, // 1: flyteidl.admin.Schedule.rate:type_name -> flyteidl.admin.FixedRate - 2, // 2: flyteidl.admin.Schedule.cron_schedule:type_name -> flyteidl.admin.CronSchedule - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_schedule_proto_init() } -func file_flyteidl_admin_schedule_proto_init() { - if File_flyteidl_admin_schedule_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_schedule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FixedRate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_schedule_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CronSchedule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_schedule_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schedule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_schedule_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*Schedule_CronExpression)(nil), - (*Schedule_Rate)(nil), - (*Schedule_CronSchedule)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_schedule_proto_rawDesc, - NumEnums: 1, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_schedule_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_schedule_proto_depIdxs, - EnumInfos: file_flyteidl_admin_schedule_proto_enumTypes, - MessageInfos: file_flyteidl_admin_schedule_proto_msgTypes, - }.Build() - File_flyteidl_admin_schedule_proto = out.File - file_flyteidl_admin_schedule_proto_rawDesc = nil - file_flyteidl_admin_schedule_proto_goTypes = nil - file_flyteidl_admin_schedule_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go deleted file mode 100644 index c5e2b634df..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go +++ /dev/null @@ -1,620 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/signal.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalGetOrCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique identifier for the requested signal. - Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // A type denoting the required value type for this signal. - Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *SignalGetOrCreateRequest) Reset() { - *x = SignalGetOrCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_signal_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalGetOrCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalGetOrCreateRequest) ProtoMessage() {} - -func (x *SignalGetOrCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_signal_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalGetOrCreateRequest.ProtoReflect.Descriptor instead. -func (*SignalGetOrCreateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{0} -} - -func (x *SignalGetOrCreateRequest) GetId() *core.SignalIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *SignalGetOrCreateRequest) GetType() *core.LiteralType { - if x != nil { - return x.Type - } - return nil -} - -// SignalListRequest represents a request structure to retrieve a collection of signals. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates the workflow execution to filter by. - // +required - WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` -} - -func (x *SignalListRequest) Reset() { - *x = SignalListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_signal_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalListRequest) ProtoMessage() {} - -func (x *SignalListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_signal_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalListRequest.ProtoReflect.Descriptor instead. -func (*SignalListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{1} -} - -func (x *SignalListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.WorkflowExecutionId - } - return nil -} - -func (x *SignalListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *SignalListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *SignalListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *SignalListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -// SignalList represents collection of signals along with the token of the last result. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of signals matching the input filters. - Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *SignalList) Reset() { - *x = SignalList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_signal_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalList) ProtoMessage() {} - -func (x *SignalList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_signal_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalList.ProtoReflect.Descriptor instead. -func (*SignalList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{2} -} - -func (x *SignalList) GetSignals() []*Signal { - if x != nil { - return x.Signals - } - return nil -} - -func (x *SignalList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal -// effetively satisfies the signal condition within a Flyte workflow. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalSetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique identifier for the requested signal. - Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The value of this signal, must match the defining signal type. - Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *SignalSetRequest) Reset() { - *x = SignalSetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_signal_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalSetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalSetRequest) ProtoMessage() {} - -func (x *SignalSetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_signal_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalSetRequest.ProtoReflect.Descriptor instead. -func (*SignalSetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{3} -} - -func (x *SignalSetRequest) GetId() *core.SignalIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *SignalSetRequest) GetValue() *core.Literal { - if x != nil { - return x.Value - } - return nil -} - -// SignalSetResponse represents a response structure if signal setting succeeds. -type SignalSetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SignalSetResponse) Reset() { - *x = SignalSetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_signal_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalSetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalSetResponse) ProtoMessage() {} - -func (x *SignalSetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_signal_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalSetResponse.ProtoReflect.Descriptor instead. -func (*SignalSetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{4} -} - -// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte -// signal. Signals may exist either without a set value (representing a signal request) or with a -// populated value (indicating the signal has been given). -type Signal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique identifier for the requested signal. - Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // A type denoting the required value type for this signal. - Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // The value of the signal. This is only available if the signal has been "set" and must match - // the defined the type. - Value *core.Literal `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *Signal) Reset() { - *x = Signal{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_signal_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Signal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Signal) ProtoMessage() {} - -func (x *Signal) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_signal_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Signal.ProtoReflect.Descriptor instead. -func (*Signal) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{5} -} - -func (x *Signal) GetId() *core.SignalIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *Signal) GetType() *core.LiteralType { - if x != nil { - return x.Type - } - return nil -} - -func (x *Signal) GetValue() *core.Literal { - if x != nil { - return x.Value - } - return nil -} - -var File_flyteidl_admin_signal_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_signal_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x18, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, - 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, - 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x22, 0xe8, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x52, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, - 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, - 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x22, 0x54, 0x0a, 0x0a, 0x53, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0x71, 0x0a, 0x10, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x06, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x42, 0xb7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0b, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, - 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_signal_proto_rawDescOnce sync.Once - file_flyteidl_admin_signal_proto_rawDescData = file_flyteidl_admin_signal_proto_rawDesc -) - -func file_flyteidl_admin_signal_proto_rawDescGZIP() []byte { - file_flyteidl_admin_signal_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_signal_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_signal_proto_rawDescData) - }) - return file_flyteidl_admin_signal_proto_rawDescData -} - -var file_flyteidl_admin_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_flyteidl_admin_signal_proto_goTypes = []interface{}{ - (*SignalGetOrCreateRequest)(nil), // 0: flyteidl.admin.SignalGetOrCreateRequest - (*SignalListRequest)(nil), // 1: flyteidl.admin.SignalListRequest - (*SignalList)(nil), // 2: flyteidl.admin.SignalList - (*SignalSetRequest)(nil), // 3: flyteidl.admin.SignalSetRequest - (*SignalSetResponse)(nil), // 4: flyteidl.admin.SignalSetResponse - (*Signal)(nil), // 5: flyteidl.admin.Signal - (*core.SignalIdentifier)(nil), // 6: flyteidl.core.SignalIdentifier - (*core.LiteralType)(nil), // 7: flyteidl.core.LiteralType - (*core.WorkflowExecutionIdentifier)(nil), // 8: flyteidl.core.WorkflowExecutionIdentifier - (*Sort)(nil), // 9: flyteidl.admin.Sort - (*core.Literal)(nil), // 10: flyteidl.core.Literal -} -var file_flyteidl_admin_signal_proto_depIdxs = []int32{ - 6, // 0: flyteidl.admin.SignalGetOrCreateRequest.id:type_name -> flyteidl.core.SignalIdentifier - 7, // 1: flyteidl.admin.SignalGetOrCreateRequest.type:type_name -> flyteidl.core.LiteralType - 8, // 2: flyteidl.admin.SignalListRequest.workflow_execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 9, // 3: flyteidl.admin.SignalListRequest.sort_by:type_name -> flyteidl.admin.Sort - 5, // 4: flyteidl.admin.SignalList.signals:type_name -> flyteidl.admin.Signal - 6, // 5: flyteidl.admin.SignalSetRequest.id:type_name -> flyteidl.core.SignalIdentifier - 10, // 6: flyteidl.admin.SignalSetRequest.value:type_name -> flyteidl.core.Literal - 6, // 7: flyteidl.admin.Signal.id:type_name -> flyteidl.core.SignalIdentifier - 7, // 8: flyteidl.admin.Signal.type:type_name -> flyteidl.core.LiteralType - 10, // 9: flyteidl.admin.Signal.value:type_name -> flyteidl.core.Literal - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_signal_proto_init() } -func file_flyteidl_admin_signal_proto_init() { - if File_flyteidl_admin_signal_proto != nil { - return - } - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_signal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalGetOrCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_signal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_signal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_signal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalSetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_signal_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalSetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_signal_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Signal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_signal_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_signal_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_signal_proto_depIdxs, - MessageInfos: file_flyteidl_admin_signal_proto_msgTypes, - }.Build() - File_flyteidl_admin_signal_proto = out.File - file_flyteidl_admin_signal_proto_rawDesc = nil - file_flyteidl_admin_signal_proto_goTypes = nil - file_flyteidl_admin_signal_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go deleted file mode 100644 index e2f74db35d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go +++ /dev/null @@ -1,582 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/task.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Represents a request structure to create a revision of a task. -// See :ref:`ref_flyteidl.admin.Task` for more details -type TaskCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the task. - // +required - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the specification for task. - // +required - Spec *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` -} - -func (x *TaskCreateRequest) Reset() { - *x = TaskCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskCreateRequest) ProtoMessage() {} - -func (x *TaskCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskCreateRequest.ProtoReflect.Descriptor instead. -func (*TaskCreateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{0} -} - -func (x *TaskCreateRequest) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *TaskCreateRequest) GetSpec() *TaskSpec { - if x != nil { - return x.Spec - } - return nil -} - -// Represents a response structure if task creation succeeds. -type TaskCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TaskCreateResponse) Reset() { - *x = TaskCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskCreateResponse) ProtoMessage() {} - -func (x *TaskCreateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskCreateResponse.ProtoReflect.Descriptor instead. -func (*TaskCreateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{1} -} - -// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks -// arranged to process workflow inputs and produce a deterministic set of outputs. -// Tasks can come in many varieties tuned for specialized behavior. -type Task struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the task. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // closure encapsulates all the fields that maps to a compiled version of the task. - Closure *TaskClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` - // One-liner overview of the entity. - ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` -} - -func (x *Task) Reset() { - *x = Task{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Task) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Task) ProtoMessage() {} - -func (x *Task) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Task.ProtoReflect.Descriptor instead. -func (*Task) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{2} -} - -func (x *Task) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *Task) GetClosure() *TaskClosure { - if x != nil { - return x.Closure - } - return nil -} - -func (x *Task) GetShortDescription() string { - if x != nil { - return x.ShortDescription - } - return "" -} - -// Represents a list of tasks returned from the admin. -// See :ref:`ref_flyteidl.admin.Task` for more details -type TaskList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of tasks returned based on the request. - Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *TaskList) Reset() { - *x = TaskList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskList) ProtoMessage() {} - -func (x *TaskList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskList.ProtoReflect.Descriptor instead. -func (*TaskList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{3} -} - -func (x *TaskList) GetTasks() []*Task { - if x != nil { - return x.Tasks - } - return nil -} - -func (x *TaskList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Represents a structure that encapsulates the user-configured specification of the task. -type TaskSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // Represents the specification for description entity. - Description *DescriptionEntity `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *TaskSpec) Reset() { - *x = TaskSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskSpec) ProtoMessage() {} - -func (x *TaskSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskSpec.ProtoReflect.Descriptor instead. -func (*TaskSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{4} -} - -func (x *TaskSpec) GetTemplate() *core.TaskTemplate { - if x != nil { - return x.Template - } - return nil -} - -func (x *TaskSpec) GetDescription() *DescriptionEntity { - if x != nil { - return x.Description - } - return nil -} - -// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data -// and task metadata. -type TaskClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Represents the compiled representation of the task from the specification provided. - CompiledTask *core.CompiledTask `protobuf:"bytes,1,opt,name=compiled_task,json=compiledTask,proto3" json:"compiled_task,omitempty"` - // Time at which the task was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` -} - -func (x *TaskClosure) Reset() { - *x = TaskClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskClosure) ProtoMessage() {} - -func (x *TaskClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskClosure.ProtoReflect.Descriptor instead. -func (*TaskClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{5} -} - -func (x *TaskClosure) GetCompiledTask() *core.CompiledTask { - if x != nil { - return x.CompiledTask - } - return nil -} - -func (x *TaskClosure) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -var File_flyteidl_admin_task_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_task_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, - 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, - 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x14, 0x0a, 0x12, - 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x29, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6c, 0x6f, - 0x73, 0x75, 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, - 0x11, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x44, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4c, 0x0a, 0x08, 0x54, 0x61, - 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x88, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, - 0x6b, 0x53, 0x70, 0x65, 0x63, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x43, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6c, 0x6f, 0x73, - 0x75, 0x72, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, - 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, - 0x6c, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, - 0x64, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, - 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_task_proto_rawDescOnce sync.Once - file_flyteidl_admin_task_proto_rawDescData = file_flyteidl_admin_task_proto_rawDesc -) - -func file_flyteidl_admin_task_proto_rawDescGZIP() []byte { - file_flyteidl_admin_task_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_task_proto_rawDescData) - }) - return file_flyteidl_admin_task_proto_rawDescData -} - -var file_flyteidl_admin_task_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_flyteidl_admin_task_proto_goTypes = []interface{}{ - (*TaskCreateRequest)(nil), // 0: flyteidl.admin.TaskCreateRequest - (*TaskCreateResponse)(nil), // 1: flyteidl.admin.TaskCreateResponse - (*Task)(nil), // 2: flyteidl.admin.Task - (*TaskList)(nil), // 3: flyteidl.admin.TaskList - (*TaskSpec)(nil), // 4: flyteidl.admin.TaskSpec - (*TaskClosure)(nil), // 5: flyteidl.admin.TaskClosure - (*core.Identifier)(nil), // 6: flyteidl.core.Identifier - (*core.TaskTemplate)(nil), // 7: flyteidl.core.TaskTemplate - (*DescriptionEntity)(nil), // 8: flyteidl.admin.DescriptionEntity - (*core.CompiledTask)(nil), // 9: flyteidl.core.CompiledTask - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp -} -var file_flyteidl_admin_task_proto_depIdxs = []int32{ - 6, // 0: flyteidl.admin.TaskCreateRequest.id:type_name -> flyteidl.core.Identifier - 4, // 1: flyteidl.admin.TaskCreateRequest.spec:type_name -> flyteidl.admin.TaskSpec - 6, // 2: flyteidl.admin.Task.id:type_name -> flyteidl.core.Identifier - 5, // 3: flyteidl.admin.Task.closure:type_name -> flyteidl.admin.TaskClosure - 2, // 4: flyteidl.admin.TaskList.tasks:type_name -> flyteidl.admin.Task - 7, // 5: flyteidl.admin.TaskSpec.template:type_name -> flyteidl.core.TaskTemplate - 8, // 6: flyteidl.admin.TaskSpec.description:type_name -> flyteidl.admin.DescriptionEntity - 9, // 7: flyteidl.admin.TaskClosure.compiled_task:type_name -> flyteidl.core.CompiledTask - 10, // 8: flyteidl.admin.TaskClosure.created_at:type_name -> google.protobuf.Timestamp - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_task_proto_init() } -func file_flyteidl_admin_task_proto_init() { - if File_flyteidl_admin_task_proto != nil { - return - } - file_flyteidl_admin_description_entity_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Task); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_task_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_task_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_task_proto_depIdxs, - MessageInfos: file_flyteidl_admin_task_proto_msgTypes, - }.Build() - File_flyteidl_admin_task_proto = out.File - file_flyteidl_admin_task_proto_rawDesc = nil - file_flyteidl_admin_task_proto_goTypes = nil - file_flyteidl_admin_task_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go deleted file mode 100644 index f32269ae0f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go +++ /dev/null @@ -1,1083 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/task_execution.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A message used to fetch a single task execution entity. -// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -type TaskExecutionGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique identifier for the task execution. - // +required - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *TaskExecutionGetRequest) Reset() { - *x = TaskExecutionGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionGetRequest) ProtoMessage() {} - -func (x *TaskExecutionGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionGetRequest.ProtoReflect.Descriptor instead. -func (*TaskExecutionGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{0} -} - -func (x *TaskExecutionGetRequest) GetId() *core.TaskExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. -// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -type TaskExecutionListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates the node execution to filter by. - // +required - NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering for returned list. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` -} - -func (x *TaskExecutionListRequest) Reset() { - *x = TaskExecutionListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionListRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionListRequest) ProtoMessage() {} - -func (x *TaskExecutionListRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionListRequest.ProtoReflect.Descriptor instead. -func (*TaskExecutionListRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{1} -} - -func (x *TaskExecutionListRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { - if x != nil { - return x.NodeExecutionId - } - return nil -} - -func (x *TaskExecutionListRequest) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *TaskExecutionListRequest) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *TaskExecutionListRequest) GetFilters() string { - if x != nil { - return x.Filters - } - return "" -} - -func (x *TaskExecutionListRequest) GetSortBy() *Sort { - if x != nil { - return x.SortBy - } - return nil -} - -// Encapsulates all details for a single task execution entity. -// A task execution represents an instantiated task, including all inputs and additional -// metadata as well as computed results included state, outputs, and duration-based attributes. -type TaskExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique identifier for the task execution. - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Path to remote data store where input blob is stored. - InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` - // Task execution details and results. - Closure *TaskExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` - // Whether this task spawned nodes. - IsParent bool `protobuf:"varint,4,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` -} - -func (x *TaskExecution) Reset() { - *x = TaskExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecution) ProtoMessage() {} - -func (x *TaskExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecution.ProtoReflect.Descriptor instead. -func (*TaskExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{2} -} - -func (x *TaskExecution) GetId() *core.TaskExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *TaskExecution) GetInputUri() string { - if x != nil { - return x.InputUri - } - return "" -} - -func (x *TaskExecution) GetClosure() *TaskExecutionClosure { - if x != nil { - return x.Closure - } - return nil -} - -func (x *TaskExecution) GetIsParent() bool { - if x != nil { - return x.IsParent - } - return false -} - -// Response structure for a query to list of task execution entities. -// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -type TaskExecutionList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TaskExecutions []*TaskExecution `protobuf:"bytes,1,rep,name=task_executions,json=taskExecutions,proto3" json:"task_executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *TaskExecutionList) Reset() { - *x = TaskExecutionList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionList) ProtoMessage() {} - -func (x *TaskExecutionList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionList.ProtoReflect.Descriptor instead. -func (*TaskExecutionList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{3} -} - -func (x *TaskExecutionList) GetTaskExecutions() []*TaskExecution { - if x != nil { - return x.TaskExecutions - } - return nil -} - -func (x *TaskExecutionList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Container for task execution details and results. -type TaskExecutionClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to OutputResult: - // - // *TaskExecutionClosure_OutputUri - // *TaskExecutionClosure_Error - // *TaskExecutionClosure_OutputData - OutputResult isTaskExecutionClosure_OutputResult `protobuf_oneof:"output_result"` - // The last recorded phase for this task execution. - Phase core.TaskExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` - // Detailed log information output by the task execution. - Logs []*core.TaskLog `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"` - // Time at which the task execution began running. - StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - // The amount of time the task execution spent running. - Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` - // Time at which the task execution was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Time at which the task execution was last updated. - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // Custom data specific to the task plugin. - CustomInfo *structpb.Struct `protobuf:"bytes,9,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` - // If there is an explanation for the most recent phase transition, the reason will capture it. - Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,11,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // Metadata around how a task was executed. - Metadata *event.TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` - // The event version is used to indicate versioned changes in how data is maintained using this - // proto message. For example, event_verison > 0 means that maps tasks logs use the - // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - // in this message. - EventVersion int32 `protobuf:"varint,17,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` - // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason - // as previously done, is much more valuable in visualizing and understanding historical evaluations. - Reasons []*Reason `protobuf:"bytes,18,rep,name=reasons,proto3" json:"reasons,omitempty"` -} - -func (x *TaskExecutionClosure) Reset() { - *x = TaskExecutionClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionClosure) ProtoMessage() {} - -func (x *TaskExecutionClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionClosure.ProtoReflect.Descriptor instead. -func (*TaskExecutionClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{4} -} - -func (m *TaskExecutionClosure) GetOutputResult() isTaskExecutionClosure_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. -func (x *TaskExecutionClosure) GetOutputUri() string { - if x, ok := x.GetOutputResult().(*TaskExecutionClosure_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (x *TaskExecutionClosure) GetError() *core.ExecutionError { - if x, ok := x.GetOutputResult().(*TaskExecutionClosure_Error); ok { - return x.Error - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. -func (x *TaskExecutionClosure) GetOutputData() *core.LiteralMap { - if x, ok := x.GetOutputResult().(*TaskExecutionClosure_OutputData); ok { - return x.OutputData - } - return nil -} - -func (x *TaskExecutionClosure) GetPhase() core.TaskExecution_Phase { - if x != nil { - return x.Phase - } - return core.TaskExecution_Phase(0) -} - -func (x *TaskExecutionClosure) GetLogs() []*core.TaskLog { - if x != nil { - return x.Logs - } - return nil -} - -func (x *TaskExecutionClosure) GetStartedAt() *timestamppb.Timestamp { - if x != nil { - return x.StartedAt - } - return nil -} - -func (x *TaskExecutionClosure) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -func (x *TaskExecutionClosure) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *TaskExecutionClosure) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -func (x *TaskExecutionClosure) GetCustomInfo() *structpb.Struct { - if x != nil { - return x.CustomInfo - } - return nil -} - -func (x *TaskExecutionClosure) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -func (x *TaskExecutionClosure) GetTaskType() string { - if x != nil { - return x.TaskType - } - return "" -} - -func (x *TaskExecutionClosure) GetMetadata() *event.TaskExecutionMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *TaskExecutionClosure) GetEventVersion() int32 { - if x != nil { - return x.EventVersion - } - return 0 -} - -func (x *TaskExecutionClosure) GetReasons() []*Reason { - if x != nil { - return x.Reasons - } - return nil -} - -type isTaskExecutionClosure_OutputResult interface { - isTaskExecutionClosure_OutputResult() -} - -type TaskExecutionClosure_OutputUri struct { - // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). - // DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. - OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type TaskExecutionClosure_Error struct { - // Error information for the task execution. Populated if the execution failed. - Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -type TaskExecutionClosure_OutputData struct { - // Raw output data produced by this task execution. - // DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. - OutputData *core.LiteralMap `protobuf:"bytes,12,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*TaskExecutionClosure_OutputUri) isTaskExecutionClosure_OutputResult() {} - -func (*TaskExecutionClosure_Error) isTaskExecutionClosure_OutputResult() {} - -func (*TaskExecutionClosure_OutputData) isTaskExecutionClosure_OutputResult() {} - -// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. -type Reason struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // occurred_at is the timestamp indicating the instant that this reason happened. - OccurredAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // message is the explanation for the most recent phase transition or status update. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *Reason) Reset() { - *x = Reason{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Reason) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Reason) ProtoMessage() {} - -func (x *Reason) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Reason.ProtoReflect.Descriptor instead. -func (*Reason) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{5} -} - -func (x *Reason) GetOccurredAt() *timestamppb.Timestamp { - if x != nil { - return x.OccurredAt - } - return nil -} - -func (x *Reason) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -// Request structure to fetch inputs and output for a task execution. -// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` -type TaskExecutionGetDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The identifier of the task execution for which to fetch inputs and outputs. - // +required - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *TaskExecutionGetDataRequest) Reset() { - *x = TaskExecutionGetDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionGetDataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionGetDataRequest) ProtoMessage() {} - -func (x *TaskExecutionGetDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionGetDataRequest.ProtoReflect.Descriptor instead. -func (*TaskExecutionGetDataRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{6} -} - -func (x *TaskExecutionGetDataRequest) GetId() *core.TaskExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. -type TaskExecutionGetDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Signed url to fetch a core.LiteralMap of task execution inputs. - // Deprecated: Please use full_inputs instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. - Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Signed url to fetch a core.LiteralMap of task execution outputs. - // Deprecated: Please use full_outputs instead. - // - // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. - Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` - // flyte tiny url to fetch a core.LiteralMap of task execution's IO - // Deck will be empty for task - FlyteUrls *FlyteURLs `protobuf:"bytes,5,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` -} - -func (x *TaskExecutionGetDataResponse) Reset() { - *x = TaskExecutionGetDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionGetDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionGetDataResponse) ProtoMessage() {} - -func (x *TaskExecutionGetDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_task_execution_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionGetDataResponse.ProtoReflect.Descriptor instead. -func (*TaskExecutionGetDataResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{7} -} - -// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. -func (x *TaskExecutionGetDataResponse) GetInputs() *UrlBlob { - if x != nil { - return x.Inputs - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. -func (x *TaskExecutionGetDataResponse) GetOutputs() *UrlBlob { - if x != nil { - return x.Outputs - } - return nil -} - -func (x *TaskExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { - if x != nil { - return x.FullInputs - } - return nil -} - -func (x *TaskExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { - if x != nil { - return x.FullOutputs - } - return nil -} - -func (x *TaskExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { - if x != nil { - return x.FlyteUrls - } - return nil -} - -var File_flyteidl_admin_task_execution_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_task_execution_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x17, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe3, 0x01, - 0x0a, 0x18, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x11, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x6e, - 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, - 0x74, 0x42, 0x79, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6c, - 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, - 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, - 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, - 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9c, 0x06, 0x0a, 0x14, 0x54, - 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, - 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, - 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x6f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, - 0x40, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, - 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, - 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6c, - 0x6f, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, - 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, - 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, - 0x07, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5f, 0x0a, 0x06, 0x52, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x55, 0x0a, 0x1b, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, - 0x64, 0x22, 0xbe, 0x02, 0x0a, 0x1c, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, - 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3a, - 0x0a, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0a, - 0x66, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x75, - 0x6c, 0x6c, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x75, 0x6c, - 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x0a, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x09, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x55, 0x72, - 0x6c, 0x73, 0x42, 0xbe, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, - 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_task_execution_proto_rawDescOnce sync.Once - file_flyteidl_admin_task_execution_proto_rawDescData = file_flyteidl_admin_task_execution_proto_rawDesc -) - -func file_flyteidl_admin_task_execution_proto_rawDescGZIP() []byte { - file_flyteidl_admin_task_execution_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_task_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_task_execution_proto_rawDescData) - }) - return file_flyteidl_admin_task_execution_proto_rawDescData -} - -var file_flyteidl_admin_task_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_flyteidl_admin_task_execution_proto_goTypes = []interface{}{ - (*TaskExecutionGetRequest)(nil), // 0: flyteidl.admin.TaskExecutionGetRequest - (*TaskExecutionListRequest)(nil), // 1: flyteidl.admin.TaskExecutionListRequest - (*TaskExecution)(nil), // 2: flyteidl.admin.TaskExecution - (*TaskExecutionList)(nil), // 3: flyteidl.admin.TaskExecutionList - (*TaskExecutionClosure)(nil), // 4: flyteidl.admin.TaskExecutionClosure - (*Reason)(nil), // 5: flyteidl.admin.Reason - (*TaskExecutionGetDataRequest)(nil), // 6: flyteidl.admin.TaskExecutionGetDataRequest - (*TaskExecutionGetDataResponse)(nil), // 7: flyteidl.admin.TaskExecutionGetDataResponse - (*core.TaskExecutionIdentifier)(nil), // 8: flyteidl.core.TaskExecutionIdentifier - (*core.NodeExecutionIdentifier)(nil), // 9: flyteidl.core.NodeExecutionIdentifier - (*Sort)(nil), // 10: flyteidl.admin.Sort - (*core.ExecutionError)(nil), // 11: flyteidl.core.ExecutionError - (*core.LiteralMap)(nil), // 12: flyteidl.core.LiteralMap - (core.TaskExecution_Phase)(0), // 13: flyteidl.core.TaskExecution.Phase - (*core.TaskLog)(nil), // 14: flyteidl.core.TaskLog - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 16: google.protobuf.Duration - (*structpb.Struct)(nil), // 17: google.protobuf.Struct - (*event.TaskExecutionMetadata)(nil), // 18: flyteidl.event.TaskExecutionMetadata - (*UrlBlob)(nil), // 19: flyteidl.admin.UrlBlob - (*FlyteURLs)(nil), // 20: flyteidl.admin.FlyteURLs -} -var file_flyteidl_admin_task_execution_proto_depIdxs = []int32{ - 8, // 0: flyteidl.admin.TaskExecutionGetRequest.id:type_name -> flyteidl.core.TaskExecutionIdentifier - 9, // 1: flyteidl.admin.TaskExecutionListRequest.node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier - 10, // 2: flyteidl.admin.TaskExecutionListRequest.sort_by:type_name -> flyteidl.admin.Sort - 8, // 3: flyteidl.admin.TaskExecution.id:type_name -> flyteidl.core.TaskExecutionIdentifier - 4, // 4: flyteidl.admin.TaskExecution.closure:type_name -> flyteidl.admin.TaskExecutionClosure - 2, // 5: flyteidl.admin.TaskExecutionList.task_executions:type_name -> flyteidl.admin.TaskExecution - 11, // 6: flyteidl.admin.TaskExecutionClosure.error:type_name -> flyteidl.core.ExecutionError - 12, // 7: flyteidl.admin.TaskExecutionClosure.output_data:type_name -> flyteidl.core.LiteralMap - 13, // 8: flyteidl.admin.TaskExecutionClosure.phase:type_name -> flyteidl.core.TaskExecution.Phase - 14, // 9: flyteidl.admin.TaskExecutionClosure.logs:type_name -> flyteidl.core.TaskLog - 15, // 10: flyteidl.admin.TaskExecutionClosure.started_at:type_name -> google.protobuf.Timestamp - 16, // 11: flyteidl.admin.TaskExecutionClosure.duration:type_name -> google.protobuf.Duration - 15, // 12: flyteidl.admin.TaskExecutionClosure.created_at:type_name -> google.protobuf.Timestamp - 15, // 13: flyteidl.admin.TaskExecutionClosure.updated_at:type_name -> google.protobuf.Timestamp - 17, // 14: flyteidl.admin.TaskExecutionClosure.custom_info:type_name -> google.protobuf.Struct - 18, // 15: flyteidl.admin.TaskExecutionClosure.metadata:type_name -> flyteidl.event.TaskExecutionMetadata - 5, // 16: flyteidl.admin.TaskExecutionClosure.reasons:type_name -> flyteidl.admin.Reason - 15, // 17: flyteidl.admin.Reason.occurred_at:type_name -> google.protobuf.Timestamp - 8, // 18: flyteidl.admin.TaskExecutionGetDataRequest.id:type_name -> flyteidl.core.TaskExecutionIdentifier - 19, // 19: flyteidl.admin.TaskExecutionGetDataResponse.inputs:type_name -> flyteidl.admin.UrlBlob - 19, // 20: flyteidl.admin.TaskExecutionGetDataResponse.outputs:type_name -> flyteidl.admin.UrlBlob - 12, // 21: flyteidl.admin.TaskExecutionGetDataResponse.full_inputs:type_name -> flyteidl.core.LiteralMap - 12, // 22: flyteidl.admin.TaskExecutionGetDataResponse.full_outputs:type_name -> flyteidl.core.LiteralMap - 20, // 23: flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls:type_name -> flyteidl.admin.FlyteURLs - 24, // [24:24] is the sub-list for method output_type - 24, // [24:24] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_task_execution_proto_init() } -func file_flyteidl_admin_task_execution_proto_init() { - if File_flyteidl_admin_task_execution_proto != nil { - return - } - file_flyteidl_admin_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_task_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Reason); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionGetDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionGetDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_task_execution_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*TaskExecutionClosure_OutputUri)(nil), - (*TaskExecutionClosure_Error)(nil), - (*TaskExecutionClosure_OutputData)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_task_execution_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_task_execution_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_task_execution_proto_depIdxs, - MessageInfos: file_flyteidl_admin_task_execution_proto_msgTypes, - }.Build() - File_flyteidl_admin_task_execution_proto = out.File - file_flyteidl_admin_task_execution_proto_rawDesc = nil - file_flyteidl_admin_task_execution_proto_goTypes = nil - file_flyteidl_admin_task_execution_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go deleted file mode 100644 index aad3315217..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go +++ /dev/null @@ -1,301 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/version.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Response for the GetVersion API -type GetVersionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The control plane version information. FlyteAdmin and related components - // form the control plane of Flyte - ControlPlaneVersion *Version `protobuf:"bytes,1,opt,name=control_plane_version,json=controlPlaneVersion,proto3" json:"control_plane_version,omitempty"` -} - -func (x *GetVersionResponse) Reset() { - *x = GetVersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_version_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVersionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVersionResponse) ProtoMessage() {} - -func (x *GetVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_version_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead. -func (*GetVersionResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_version_proto_rawDescGZIP(), []int{0} -} - -func (x *GetVersionResponse) GetControlPlaneVersion() *Version { - if x != nil { - return x.ControlPlaneVersion - } - return nil -} - -// Provides Version information for a component -type Version struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Specifies the GIT sha of the build - Build string `protobuf:"bytes,1,opt,name=Build,proto3" json:"Build,omitempty"` - // Version for the build, should follow a semver - Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` - // Build timestamp - BuildTime string `protobuf:"bytes,3,opt,name=BuildTime,proto3" json:"BuildTime,omitempty"` -} - -func (x *Version) Reset() { - *x = Version{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_version_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Version) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Version) ProtoMessage() {} - -func (x *Version) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_version_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Version.ProtoReflect.Descriptor instead. -func (*Version) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_version_proto_rawDescGZIP(), []int{1} -} - -func (x *Version) GetBuild() string { - if x != nil { - return x.Build - } - return "" -} - -func (x *Version) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Version) GetBuildTime() string { - if x != nil { - return x.BuildTime - } - return "" -} - -// Empty request for GetVersion -type GetVersionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *GetVersionRequest) Reset() { - *x = GetVersionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_version_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetVersionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetVersionRequest) ProtoMessage() {} - -func (x *GetVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_version_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead. -func (*GetVersionRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_version_proto_rawDescGZIP(), []int{2} -} - -var File_flyteidl_admin_version_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_version_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x61, - 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, - 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x63, 0x6f, - 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x22, 0x57, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x42, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x42, 0x75, 0x69, - 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, - 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, - 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, - 0xb8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, - 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_version_proto_rawDescOnce sync.Once - file_flyteidl_admin_version_proto_rawDescData = file_flyteidl_admin_version_proto_rawDesc -) - -func file_flyteidl_admin_version_proto_rawDescGZIP() []byte { - file_flyteidl_admin_version_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_version_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_version_proto_rawDescData) - }) - return file_flyteidl_admin_version_proto_rawDescData -} - -var file_flyteidl_admin_version_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_flyteidl_admin_version_proto_goTypes = []interface{}{ - (*GetVersionResponse)(nil), // 0: flyteidl.admin.GetVersionResponse - (*Version)(nil), // 1: flyteidl.admin.Version - (*GetVersionRequest)(nil), // 2: flyteidl.admin.GetVersionRequest -} -var file_flyteidl_admin_version_proto_depIdxs = []int32{ - 1, // 0: flyteidl.admin.GetVersionResponse.control_plane_version:type_name -> flyteidl.admin.Version - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_version_proto_init() } -func file_flyteidl_admin_version_proto_init() { - if File_flyteidl_admin_version_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_version_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_version_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Version); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_version_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetVersionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_version_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_version_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_version_proto_depIdxs, - MessageInfos: file_flyteidl_admin_version_proto_msgTypes, - }.Build() - File_flyteidl_admin_version_proto = out.File - file_flyteidl_admin_version_proto_rawDesc = nil - file_flyteidl_admin_version_proto_goTypes = nil - file_flyteidl_admin_version_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go deleted file mode 100644 index 0b55096581..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go +++ /dev/null @@ -1,855 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/workflow.proto - -package admin - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Represents a request structure to create a revision of a workflow. -// See :ref:`ref_flyteidl.admin.Workflow` for more details -type WorkflowCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the workflow. - // +required - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the specification for workflow. - // +required - Spec *WorkflowSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` -} - -func (x *WorkflowCreateRequest) Reset() { - *x = WorkflowCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowCreateRequest) ProtoMessage() {} - -func (x *WorkflowCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowCreateRequest.ProtoReflect.Descriptor instead. -func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{0} -} - -func (x *WorkflowCreateRequest) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *WorkflowCreateRequest) GetSpec() *WorkflowSpec { - if x != nil { - return x.Spec - } - return nil -} - -type WorkflowCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *WorkflowCreateResponse) Reset() { - *x = WorkflowCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowCreateResponse) ProtoMessage() {} - -func (x *WorkflowCreateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowCreateResponse.ProtoReflect.Descriptor instead. -func (*WorkflowCreateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{1} -} - -// Represents the workflow structure stored in the Admin -// A workflow is created by ordering tasks and associating outputs to inputs -// in order to produce a directed-acyclic execution graph. -type Workflow struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the workflow. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // closure encapsulates all the fields that maps to a compiled version of the workflow. - Closure *WorkflowClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` - // One-liner overview of the entity. - ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` -} - -func (x *Workflow) Reset() { - *x = Workflow{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Workflow) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Workflow) ProtoMessage() {} - -func (x *Workflow) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Workflow.ProtoReflect.Descriptor instead. -func (*Workflow) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{2} -} - -func (x *Workflow) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *Workflow) GetClosure() *WorkflowClosure { - if x != nil { - return x.Closure - } - return nil -} - -func (x *Workflow) GetShortDescription() string { - if x != nil { - return x.ShortDescription - } - return "" -} - -// Represents a list of workflows returned from the admin. -// See :ref:`ref_flyteidl.admin.Workflow` for more details -type WorkflowList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of workflows returned based on the request. - Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *WorkflowList) Reset() { - *x = WorkflowList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowList) ProtoMessage() {} - -func (x *WorkflowList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowList.ProtoReflect.Descriptor instead. -func (*WorkflowList) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{3} -} - -func (x *WorkflowList) GetWorkflows() []*Workflow { - if x != nil { - return x.Workflows - } - return nil -} - -func (x *WorkflowList) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -// Represents a structure that encapsulates the specification of the workflow. -type WorkflowSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Template of the task that encapsulates all the metadata of the workflow. - Template *core.WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the - // propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out - // to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. - SubWorkflows []*core.WorkflowTemplate `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` - // Represents the specification for description entity. - Description *DescriptionEntity `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *WorkflowSpec) Reset() { - *x = WorkflowSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowSpec) ProtoMessage() {} - -func (x *WorkflowSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowSpec.ProtoReflect.Descriptor instead. -func (*WorkflowSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{4} -} - -func (x *WorkflowSpec) GetTemplate() *core.WorkflowTemplate { - if x != nil { - return x.Template - } - return nil -} - -func (x *WorkflowSpec) GetSubWorkflows() []*core.WorkflowTemplate { - if x != nil { - return x.SubWorkflows - } - return nil -} - -func (x *WorkflowSpec) GetDescription() *DescriptionEntity { - if x != nil { - return x.Description - } - return nil -} - -// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. -type WorkflowClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Represents the compiled representation of the workflow from the specification provided. - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` - // Time at which the workflow was created. - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` -} - -func (x *WorkflowClosure) Reset() { - *x = WorkflowClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowClosure) ProtoMessage() {} - -func (x *WorkflowClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowClosure.ProtoReflect.Descriptor instead. -func (*WorkflowClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{5} -} - -func (x *WorkflowClosure) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if x != nil { - return x.CompiledWorkflow - } - return nil -} - -func (x *WorkflowClosure) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -// The workflow id is already used and the structure is different -type WorkflowErrorExistsDifferentStructure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *WorkflowErrorExistsDifferentStructure) Reset() { - *x = WorkflowErrorExistsDifferentStructure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowErrorExistsDifferentStructure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowErrorExistsDifferentStructure) ProtoMessage() {} - -func (x *WorkflowErrorExistsDifferentStructure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowErrorExistsDifferentStructure.ProtoReflect.Descriptor instead. -func (*WorkflowErrorExistsDifferentStructure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{6} -} - -func (x *WorkflowErrorExistsDifferentStructure) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -// The workflow id is already used with an identical sctructure -type WorkflowErrorExistsIdenticalStructure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *WorkflowErrorExistsIdenticalStructure) Reset() { - *x = WorkflowErrorExistsIdenticalStructure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowErrorExistsIdenticalStructure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowErrorExistsIdenticalStructure) ProtoMessage() {} - -func (x *WorkflowErrorExistsIdenticalStructure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowErrorExistsIdenticalStructure.ProtoReflect.Descriptor instead. -func (*WorkflowErrorExistsIdenticalStructure) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{7} -} - -func (x *WorkflowErrorExistsIdenticalStructure) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -// When a CreateWorkflowRequest fails due to matching id -type CreateWorkflowFailureReason struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Reason: - // - // *CreateWorkflowFailureReason_ExistsDifferentStructure - // *CreateWorkflowFailureReason_ExistsIdenticalStructure - Reason isCreateWorkflowFailureReason_Reason `protobuf_oneof:"reason"` -} - -func (x *CreateWorkflowFailureReason) Reset() { - *x = CreateWorkflowFailureReason{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateWorkflowFailureReason) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateWorkflowFailureReason) ProtoMessage() {} - -func (x *CreateWorkflowFailureReason) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateWorkflowFailureReason.ProtoReflect.Descriptor instead. -func (*CreateWorkflowFailureReason) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{8} -} - -func (m *CreateWorkflowFailureReason) GetReason() isCreateWorkflowFailureReason_Reason { - if m != nil { - return m.Reason - } - return nil -} - -func (x *CreateWorkflowFailureReason) GetExistsDifferentStructure() *WorkflowErrorExistsDifferentStructure { - if x, ok := x.GetReason().(*CreateWorkflowFailureReason_ExistsDifferentStructure); ok { - return x.ExistsDifferentStructure - } - return nil -} - -func (x *CreateWorkflowFailureReason) GetExistsIdenticalStructure() *WorkflowErrorExistsIdenticalStructure { - if x, ok := x.GetReason().(*CreateWorkflowFailureReason_ExistsIdenticalStructure); ok { - return x.ExistsIdenticalStructure - } - return nil -} - -type isCreateWorkflowFailureReason_Reason interface { - isCreateWorkflowFailureReason_Reason() -} - -type CreateWorkflowFailureReason_ExistsDifferentStructure struct { - ExistsDifferentStructure *WorkflowErrorExistsDifferentStructure `protobuf:"bytes,1,opt,name=exists_different_structure,json=existsDifferentStructure,proto3,oneof"` -} - -type CreateWorkflowFailureReason_ExistsIdenticalStructure struct { - ExistsIdenticalStructure *WorkflowErrorExistsIdenticalStructure `protobuf:"bytes,2,opt,name=exists_identical_structure,json=existsIdenticalStructure,proto3,oneof"` -} - -func (*CreateWorkflowFailureReason_ExistsDifferentStructure) isCreateWorkflowFailureReason_Reason() {} - -func (*CreateWorkflowFailureReason_ExistsIdenticalStructure) isCreateWorkflowFailureReason_Reason() {} - -var File_flyteidl_admin_workflow_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_workflow_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, - 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, - 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x70, 0x65, - 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x18, 0x0a, 0x16, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, - 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, - 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x68, 0x6f, 0x72, - 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5c, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x22, 0xd6, 0x01, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x53, 0x70, 0x65, 0x63, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x43, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x01, 0x0a, - 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, - 0x12, 0x53, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, - 0x75, 0x72, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x22, 0x52, 0x0a, 0x25, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, - 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x52, 0x02, 0x69, 0x64, 0x22, 0x52, 0x0a, 0x25, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x95, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x46, 0x61, 0x69, 0x6c, 0x75, - 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x75, 0x0a, 0x1a, 0x65, 0x78, 0x69, 0x73, - 0x74, 0x73, 0x5f, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, - 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x18, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x44, 0x69, 0x66, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, - 0x75, 0x0a, 0x1a, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x6c, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x18, 0x65, 0x78, - 0x69, 0x73, 0x74, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x42, 0xb9, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_workflow_proto_rawDescOnce sync.Once - file_flyteidl_admin_workflow_proto_rawDescData = file_flyteidl_admin_workflow_proto_rawDesc -) - -func file_flyteidl_admin_workflow_proto_rawDescGZIP() []byte { - file_flyteidl_admin_workflow_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_workflow_proto_rawDescData) - }) - return file_flyteidl_admin_workflow_proto_rawDescData -} - -var file_flyteidl_admin_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_flyteidl_admin_workflow_proto_goTypes = []interface{}{ - (*WorkflowCreateRequest)(nil), // 0: flyteidl.admin.WorkflowCreateRequest - (*WorkflowCreateResponse)(nil), // 1: flyteidl.admin.WorkflowCreateResponse - (*Workflow)(nil), // 2: flyteidl.admin.Workflow - (*WorkflowList)(nil), // 3: flyteidl.admin.WorkflowList - (*WorkflowSpec)(nil), // 4: flyteidl.admin.WorkflowSpec - (*WorkflowClosure)(nil), // 5: flyteidl.admin.WorkflowClosure - (*WorkflowErrorExistsDifferentStructure)(nil), // 6: flyteidl.admin.WorkflowErrorExistsDifferentStructure - (*WorkflowErrorExistsIdenticalStructure)(nil), // 7: flyteidl.admin.WorkflowErrorExistsIdenticalStructure - (*CreateWorkflowFailureReason)(nil), // 8: flyteidl.admin.CreateWorkflowFailureReason - (*core.Identifier)(nil), // 9: flyteidl.core.Identifier - (*core.WorkflowTemplate)(nil), // 10: flyteidl.core.WorkflowTemplate - (*DescriptionEntity)(nil), // 11: flyteidl.admin.DescriptionEntity - (*core.CompiledWorkflowClosure)(nil), // 12: flyteidl.core.CompiledWorkflowClosure - (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp -} -var file_flyteidl_admin_workflow_proto_depIdxs = []int32{ - 9, // 0: flyteidl.admin.WorkflowCreateRequest.id:type_name -> flyteidl.core.Identifier - 4, // 1: flyteidl.admin.WorkflowCreateRequest.spec:type_name -> flyteidl.admin.WorkflowSpec - 9, // 2: flyteidl.admin.Workflow.id:type_name -> flyteidl.core.Identifier - 5, // 3: flyteidl.admin.Workflow.closure:type_name -> flyteidl.admin.WorkflowClosure - 2, // 4: flyteidl.admin.WorkflowList.workflows:type_name -> flyteidl.admin.Workflow - 10, // 5: flyteidl.admin.WorkflowSpec.template:type_name -> flyteidl.core.WorkflowTemplate - 10, // 6: flyteidl.admin.WorkflowSpec.sub_workflows:type_name -> flyteidl.core.WorkflowTemplate - 11, // 7: flyteidl.admin.WorkflowSpec.description:type_name -> flyteidl.admin.DescriptionEntity - 12, // 8: flyteidl.admin.WorkflowClosure.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure - 13, // 9: flyteidl.admin.WorkflowClosure.created_at:type_name -> google.protobuf.Timestamp - 9, // 10: flyteidl.admin.WorkflowErrorExistsDifferentStructure.id:type_name -> flyteidl.core.Identifier - 9, // 11: flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id:type_name -> flyteidl.core.Identifier - 6, // 12: flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure:type_name -> flyteidl.admin.WorkflowErrorExistsDifferentStructure - 7, // 13: flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure:type_name -> flyteidl.admin.WorkflowErrorExistsIdenticalStructure - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_workflow_proto_init() } -func file_flyteidl_admin_workflow_proto_init() { - if File_flyteidl_admin_workflow_proto != nil { - return - } - file_flyteidl_admin_description_entity_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Workflow); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowErrorExistsDifferentStructure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowErrorExistsIdenticalStructure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateWorkflowFailureReason); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_admin_workflow_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*CreateWorkflowFailureReason_ExistsDifferentStructure)(nil), - (*CreateWorkflowFailureReason_ExistsIdenticalStructure)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_workflow_proto_rawDesc, - NumEnums: 0, - NumMessages: 9, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_workflow_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_workflow_proto_depIdxs, - MessageInfos: file_flyteidl_admin_workflow_proto_msgTypes, - }.Build() - File_flyteidl_admin_workflow_proto = out.File - file_flyteidl_admin_workflow_proto_rawDesc = nil - file_flyteidl_admin_workflow_proto_goTypes = nil - file_flyteidl_admin_workflow_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go deleted file mode 100644 index fcebfd85e7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go +++ /dev/null @@ -1,690 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/admin/workflow_attributes.proto - -package admin - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id for which this set of attributes will be applied. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id for which this set of attributes will be applied. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Workflow name for which this set of attributes will be applied. - Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` - MatchingAttributes *MatchingAttributes `protobuf:"bytes,4,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` - // Optional, org key applied to the attributes. - Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *WorkflowAttributes) Reset() { - *x = WorkflowAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributes) ProtoMessage() {} - -func (x *WorkflowAttributes) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributes.ProtoReflect.Descriptor instead. -func (*WorkflowAttributes) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{0} -} - -func (x *WorkflowAttributes) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *WorkflowAttributes) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *WorkflowAttributes) GetWorkflow() string { - if x != nil { - return x.Workflow - } - return "" -} - -func (x *WorkflowAttributes) GetMatchingAttributes() *MatchingAttributes { - if x != nil { - return x.MatchingAttributes - } - return nil -} - -func (x *WorkflowAttributes) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Sets custom attributes for a project, domain and workflow combination. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributesUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (x *WorkflowAttributesUpdateRequest) Reset() { - *x = WorkflowAttributesUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributesUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributesUpdateRequest) ProtoMessage() {} - -func (x *WorkflowAttributesUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributesUpdateRequest.ProtoReflect.Descriptor instead. -func (*WorkflowAttributesUpdateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{1} -} - -func (x *WorkflowAttributesUpdateRequest) GetAttributes() *WorkflowAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -// Purposefully empty, may be populated in the future. -type WorkflowAttributesUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *WorkflowAttributesUpdateResponse) Reset() { - *x = WorkflowAttributesUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributesUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributesUpdateResponse) ProtoMessage() {} - -func (x *WorkflowAttributesUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributesUpdateResponse.ProtoReflect.Descriptor instead. -func (*WorkflowAttributesUpdateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{2} -} - -// Request to get an individual workflow attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributesGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Workflow name which this set of attributes references. - // +required - Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` - // Which type of matchable attributes to return. - // +required - ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org key applied to the attributes. - Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *WorkflowAttributesGetRequest) Reset() { - *x = WorkflowAttributesGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributesGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributesGetRequest) ProtoMessage() {} - -func (x *WorkflowAttributesGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributesGetRequest.ProtoReflect.Descriptor instead. -func (*WorkflowAttributesGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{3} -} - -func (x *WorkflowAttributesGetRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *WorkflowAttributesGetRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *WorkflowAttributesGetRequest) GetWorkflow() string { - if x != nil { - return x.Workflow - } - return "" -} - -func (x *WorkflowAttributesGetRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *WorkflowAttributesGetRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Response to get an individual workflow attribute override. -type WorkflowAttributesGetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` -} - -func (x *WorkflowAttributesGetResponse) Reset() { - *x = WorkflowAttributesGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributesGetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributesGetResponse) ProtoMessage() {} - -func (x *WorkflowAttributesGetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributesGetResponse.ProtoReflect.Descriptor instead. -func (*WorkflowAttributesGetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{4} -} - -func (x *WorkflowAttributesGetResponse) GetAttributes() *WorkflowAttributes { - if x != nil { - return x.Attributes - } - return nil -} - -// Request to delete a set matchable workflow attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributesDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Workflow name which this set of attributes references. - // +required - Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` - // Which type of matchable attributes to delete. - // +required - ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - // Optional, org key applied to the attributes. - Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *WorkflowAttributesDeleteRequest) Reset() { - *x = WorkflowAttributesDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributesDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributesDeleteRequest) ProtoMessage() {} - -func (x *WorkflowAttributesDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributesDeleteRequest.ProtoReflect.Descriptor instead. -func (*WorkflowAttributesDeleteRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{5} -} - -func (x *WorkflowAttributesDeleteRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *WorkflowAttributesDeleteRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *WorkflowAttributesDeleteRequest) GetWorkflow() string { - if x != nil { - return x.Workflow - } - return "" -} - -func (x *WorkflowAttributesDeleteRequest) GetResourceType() MatchableResource { - if x != nil { - return x.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -func (x *WorkflowAttributesDeleteRequest) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Purposefully empty, may be populated in the future. -type WorkflowAttributesDeleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *WorkflowAttributesDeleteResponse) Reset() { - *x = WorkflowAttributesDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowAttributesDeleteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowAttributesDeleteResponse) ProtoMessage() {} - -func (x *WorkflowAttributesDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowAttributesDeleteResponse.ProtoReflect.Descriptor instead. -func (*WorkflowAttributesDeleteResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{6} -} - -var File_flyteidl_admin_workflow_attributes_proto protoreflect.FileDescriptor - -var file_flyteidl_admin_workflow_attributes_proto_rawDesc = []byte{ - 0x0a, 0x28, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x01, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x53, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, - 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, - 0x65, 0x0a, 0x1f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x20, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x1c, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6f, 0x72, 0x67, 0x22, 0x63, 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x1f, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, - 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6f, 0x72, 0x67, 0x22, 0x22, 0x0a, 0x20, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xc3, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, - 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, - 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, - 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_admin_workflow_attributes_proto_rawDescOnce sync.Once - file_flyteidl_admin_workflow_attributes_proto_rawDescData = file_flyteidl_admin_workflow_attributes_proto_rawDesc -) - -func file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP() []byte { - file_flyteidl_admin_workflow_attributes_proto_rawDescOnce.Do(func() { - file_flyteidl_admin_workflow_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_workflow_attributes_proto_rawDescData) - }) - return file_flyteidl_admin_workflow_attributes_proto_rawDescData -} - -var file_flyteidl_admin_workflow_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_flyteidl_admin_workflow_attributes_proto_goTypes = []interface{}{ - (*WorkflowAttributes)(nil), // 0: flyteidl.admin.WorkflowAttributes - (*WorkflowAttributesUpdateRequest)(nil), // 1: flyteidl.admin.WorkflowAttributesUpdateRequest - (*WorkflowAttributesUpdateResponse)(nil), // 2: flyteidl.admin.WorkflowAttributesUpdateResponse - (*WorkflowAttributesGetRequest)(nil), // 3: flyteidl.admin.WorkflowAttributesGetRequest - (*WorkflowAttributesGetResponse)(nil), // 4: flyteidl.admin.WorkflowAttributesGetResponse - (*WorkflowAttributesDeleteRequest)(nil), // 5: flyteidl.admin.WorkflowAttributesDeleteRequest - (*WorkflowAttributesDeleteResponse)(nil), // 6: flyteidl.admin.WorkflowAttributesDeleteResponse - (*MatchingAttributes)(nil), // 7: flyteidl.admin.MatchingAttributes - (MatchableResource)(0), // 8: flyteidl.admin.MatchableResource -} -var file_flyteidl_admin_workflow_attributes_proto_depIdxs = []int32{ - 7, // 0: flyteidl.admin.WorkflowAttributes.matching_attributes:type_name -> flyteidl.admin.MatchingAttributes - 0, // 1: flyteidl.admin.WorkflowAttributesUpdateRequest.attributes:type_name -> flyteidl.admin.WorkflowAttributes - 8, // 2: flyteidl.admin.WorkflowAttributesGetRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 0, // 3: flyteidl.admin.WorkflowAttributesGetResponse.attributes:type_name -> flyteidl.admin.WorkflowAttributes - 8, // 4: flyteidl.admin.WorkflowAttributesDeleteRequest.resource_type:type_name -> flyteidl.admin.MatchableResource - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_admin_workflow_attributes_proto_init() } -func file_flyteidl_admin_workflow_attributes_proto_init() { - if File_flyteidl_admin_workflow_attributes_proto != nil { - return - } - file_flyteidl_admin_matchable_resource_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_admin_workflow_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributesUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributesUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributesGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributesGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributesDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_admin_workflow_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowAttributesDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_admin_workflow_attributes_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_admin_workflow_attributes_proto_goTypes, - DependencyIndexes: file_flyteidl_admin_workflow_attributes_proto_depIdxs, - MessageInfos: file_flyteidl_admin_workflow_attributes_proto_msgTypes, - }.Build() - File_flyteidl_admin_workflow_attributes_proto = out.File - file_flyteidl_admin_workflow_attributes_proto_rawDesc = nil - file_flyteidl_admin_workflow_attributes_proto_goTypes = nil - file_flyteidl_admin_workflow_attributes_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go b/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go deleted file mode 100644 index 86cc4025eb..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go +++ /dev/null @@ -1,1007 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/artifact_id.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ArtifactKey struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Project and domain and suffix needs to be unique across a given artifact store. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *ArtifactKey) Reset() { - *x = ArtifactKey{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactKey) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactKey) ProtoMessage() {} - -func (x *ArtifactKey) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactKey.ProtoReflect.Descriptor instead. -func (*ArtifactKey) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{0} -} - -func (x *ArtifactKey) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *ArtifactKey) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *ArtifactKey) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ArtifactKey) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Only valid for triggers -type ArtifactBindingData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - // These two fields are only relevant in the partition value case - // - // Types that are assignable to PartitionData: - // - // *ArtifactBindingData_PartitionKey - // *ArtifactBindingData_BindToTimePartition - PartitionData isArtifactBindingData_PartitionData `protobuf_oneof:"partition_data"` - // This is only relevant in the time partition case - Transform string `protobuf:"bytes,4,opt,name=transform,proto3" json:"transform,omitempty"` -} - -func (x *ArtifactBindingData) Reset() { - *x = ArtifactBindingData{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactBindingData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactBindingData) ProtoMessage() {} - -func (x *ArtifactBindingData) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactBindingData.ProtoReflect.Descriptor instead. -func (*ArtifactBindingData) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{1} -} - -func (x *ArtifactBindingData) GetIndex() uint32 { - if x != nil { - return x.Index - } - return 0 -} - -func (m *ArtifactBindingData) GetPartitionData() isArtifactBindingData_PartitionData { - if m != nil { - return m.PartitionData - } - return nil -} - -func (x *ArtifactBindingData) GetPartitionKey() string { - if x, ok := x.GetPartitionData().(*ArtifactBindingData_PartitionKey); ok { - return x.PartitionKey - } - return "" -} - -func (x *ArtifactBindingData) GetBindToTimePartition() bool { - if x, ok := x.GetPartitionData().(*ArtifactBindingData_BindToTimePartition); ok { - return x.BindToTimePartition - } - return false -} - -func (x *ArtifactBindingData) GetTransform() string { - if x != nil { - return x.Transform - } - return "" -} - -type isArtifactBindingData_PartitionData interface { - isArtifactBindingData_PartitionData() -} - -type ArtifactBindingData_PartitionKey struct { - PartitionKey string `protobuf:"bytes,2,opt,name=partition_key,json=partitionKey,proto3,oneof"` -} - -type ArtifactBindingData_BindToTimePartition struct { - BindToTimePartition bool `protobuf:"varint,3,opt,name=bind_to_time_partition,json=bindToTimePartition,proto3,oneof"` -} - -func (*ArtifactBindingData_PartitionKey) isArtifactBindingData_PartitionData() {} - -func (*ArtifactBindingData_BindToTimePartition) isArtifactBindingData_PartitionData() {} - -type InputBindingData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` -} - -func (x *InputBindingData) Reset() { - *x = InputBindingData{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InputBindingData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InputBindingData) ProtoMessage() {} - -func (x *InputBindingData) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use InputBindingData.ProtoReflect.Descriptor instead. -func (*InputBindingData) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{2} -} - -func (x *InputBindingData) GetVar() string { - if x != nil { - return x.Var - } - return "" -} - -type LabelValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: - // - // *LabelValue_StaticValue - // *LabelValue_TimeValue - // *LabelValue_TriggeredBinding - // *LabelValue_InputBinding - Value isLabelValue_Value `protobuf_oneof:"value"` -} - -func (x *LabelValue) Reset() { - *x = LabelValue{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelValue) ProtoMessage() {} - -func (x *LabelValue) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LabelValue.ProtoReflect.Descriptor instead. -func (*LabelValue) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{3} -} - -func (m *LabelValue) GetValue() isLabelValue_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *LabelValue) GetStaticValue() string { - if x, ok := x.GetValue().(*LabelValue_StaticValue); ok { - return x.StaticValue - } - return "" -} - -func (x *LabelValue) GetTimeValue() *timestamppb.Timestamp { - if x, ok := x.GetValue().(*LabelValue_TimeValue); ok { - return x.TimeValue - } - return nil -} - -func (x *LabelValue) GetTriggeredBinding() *ArtifactBindingData { - if x, ok := x.GetValue().(*LabelValue_TriggeredBinding); ok { - return x.TriggeredBinding - } - return nil -} - -func (x *LabelValue) GetInputBinding() *InputBindingData { - if x, ok := x.GetValue().(*LabelValue_InputBinding); ok { - return x.InputBinding - } - return nil -} - -type isLabelValue_Value interface { - isLabelValue_Value() -} - -type LabelValue_StaticValue struct { - // The string static value is for use in the Partitions object - StaticValue string `protobuf:"bytes,1,opt,name=static_value,json=staticValue,proto3,oneof"` -} - -type LabelValue_TimeValue struct { - // The time value is for use in the TimePartition case - TimeValue *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time_value,json=timeValue,proto3,oneof"` -} - -type LabelValue_TriggeredBinding struct { - TriggeredBinding *ArtifactBindingData `protobuf:"bytes,3,opt,name=triggered_binding,json=triggeredBinding,proto3,oneof"` -} - -type LabelValue_InputBinding struct { - InputBinding *InputBindingData `protobuf:"bytes,4,opt,name=input_binding,json=inputBinding,proto3,oneof"` -} - -func (*LabelValue_StaticValue) isLabelValue_Value() {} - -func (*LabelValue_TimeValue) isLabelValue_Value() {} - -func (*LabelValue_TriggeredBinding) isLabelValue_Value() {} - -func (*LabelValue_InputBinding) isLabelValue_Value() {} - -type Partitions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value map[string]*LabelValue `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Partitions) Reset() { - *x = Partitions{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Partitions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Partitions) ProtoMessage() {} - -func (x *Partitions) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Partitions.ProtoReflect.Descriptor instead. -func (*Partitions) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{4} -} - -func (x *Partitions) GetValue() map[string]*LabelValue { - if x != nil { - return x.Value - } - return nil -} - -type TimePartition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *LabelValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *TimePartition) Reset() { - *x = TimePartition{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TimePartition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TimePartition) ProtoMessage() {} - -func (x *TimePartition) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TimePartition.ProtoReflect.Descriptor instead. -func (*TimePartition) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{5} -} - -func (x *TimePartition) GetValue() *LabelValue { - if x != nil { - return x.Value - } - return nil -} - -type ArtifactID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ArtifactKey *ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - // Think of a partition as a tag on an Artifact, except it's a key-value pair. - // Different partitions naturally have different versions (execution ids). - Partitions *Partitions `protobuf:"bytes,3,opt,name=partitions,proto3" json:"partitions,omitempty"` - // There is no such thing as an empty time partition - if it's not set, then there is no time partition. - TimePartition *TimePartition `protobuf:"bytes,4,opt,name=time_partition,json=timePartition,proto3" json:"time_partition,omitempty"` -} - -func (x *ArtifactID) Reset() { - *x = ArtifactID{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactID) ProtoMessage() {} - -func (x *ArtifactID) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactID.ProtoReflect.Descriptor instead. -func (*ArtifactID) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{6} -} - -func (x *ArtifactID) GetArtifactKey() *ArtifactKey { - if x != nil { - return x.ArtifactKey - } - return nil -} - -func (x *ArtifactID) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *ArtifactID) GetPartitions() *Partitions { - if x != nil { - return x.Partitions - } - return nil -} - -func (x *ArtifactID) GetTimePartition() *TimePartition { - if x != nil { - return x.TimePartition - } - return nil -} - -type ArtifactTag struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ArtifactKey *ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Value *LabelValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ArtifactTag) Reset() { - *x = ArtifactTag{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactTag) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactTag) ProtoMessage() {} - -func (x *ArtifactTag) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactTag.ProtoReflect.Descriptor instead. -func (*ArtifactTag) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{7} -} - -func (x *ArtifactTag) GetArtifactKey() *ArtifactKey { - if x != nil { - return x.ArtifactKey - } - return nil -} - -func (x *ArtifactTag) GetValue() *LabelValue { - if x != nil { - return x.Value - } - return nil -} - -// Uniqueness constraints for Artifacts -// - project, domain, name, version, partitions -// -// Option 2 (tags are standalone, point to an individual artifact id): -// - project, domain, name, alias (points to one partition if partitioned) -// - project, domain, name, partition key, partition value -type ArtifactQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Identifier: - // - // *ArtifactQuery_ArtifactId - // *ArtifactQuery_ArtifactTag - // *ArtifactQuery_Uri - // *ArtifactQuery_Binding - Identifier isArtifactQuery_Identifier `protobuf_oneof:"identifier"` -} - -func (x *ArtifactQuery) Reset() { - *x = ArtifactQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactQuery) ProtoMessage() {} - -func (x *ArtifactQuery) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_artifact_id_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactQuery.ProtoReflect.Descriptor instead. -func (*ArtifactQuery) Descriptor() ([]byte, []int) { - return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{8} -} - -func (m *ArtifactQuery) GetIdentifier() isArtifactQuery_Identifier { - if m != nil { - return m.Identifier - } - return nil -} - -func (x *ArtifactQuery) GetArtifactId() *ArtifactID { - if x, ok := x.GetIdentifier().(*ArtifactQuery_ArtifactId); ok { - return x.ArtifactId - } - return nil -} - -func (x *ArtifactQuery) GetArtifactTag() *ArtifactTag { - if x, ok := x.GetIdentifier().(*ArtifactQuery_ArtifactTag); ok { - return x.ArtifactTag - } - return nil -} - -func (x *ArtifactQuery) GetUri() string { - if x, ok := x.GetIdentifier().(*ArtifactQuery_Uri); ok { - return x.Uri - } - return "" -} - -func (x *ArtifactQuery) GetBinding() *ArtifactBindingData { - if x, ok := x.GetIdentifier().(*ArtifactQuery_Binding); ok { - return x.Binding - } - return nil -} - -type isArtifactQuery_Identifier interface { - isArtifactQuery_Identifier() -} - -type ArtifactQuery_ArtifactId struct { - ArtifactId *ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -type ArtifactQuery_ArtifactTag struct { - ArtifactTag *ArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3,oneof"` -} - -type ArtifactQuery_Uri struct { - Uri string `protobuf:"bytes,3,opt,name=uri,proto3,oneof"` -} - -type ArtifactQuery_Binding struct { - // This is used in the trigger case, where a user specifies a value for an input that is one of the triggering - // artifacts, or a partition value derived from a triggering artifact. - Binding *ArtifactBindingData `protobuf:"bytes,4,opt,name=binding,proto3,oneof"` -} - -func (*ArtifactQuery_ArtifactId) isArtifactQuery_Identifier() {} - -func (*ArtifactQuery_ArtifactTag) isArtifactQuery_Identifier() {} - -func (*ArtifactQuery_Uri) isArtifactQuery_Identifier() {} - -func (*ArtifactQuery_Binding) isArtifactQuery_Identifier() {} - -var File_flyteidl_core_artifact_id_proto protoreflect.FileDescriptor - -var file_flyteidl_core_artifact_id_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x65, 0x0a, 0x0b, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, - 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0xb9, 0x01, 0x0a, 0x13, 0x41, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x25, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x35, 0x0a, - 0x16, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, - 0x13, 0x62, 0x69, 0x6e, 0x64, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, - 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, - 0x72, 0x6d, 0x42, 0x10, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x24, 0x0a, 0x10, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x42, 0x69, 0x6e, - 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x22, 0x92, 0x02, 0x0a, 0x0a, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x61, - 0x74, 0x69, 0x63, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, - 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x51, 0x0a, 0x11, 0x74, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, - 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x10, 0x74, 0x72, - 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x46, - 0x0a, 0x0d, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x42, - 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x9d, 0x01, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x53, 0x0a, 0x0a, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x40, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0xe5, 0x01, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, - 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, - 0x65, 0x79, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x43, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7d, 0x0a, 0x0b, 0x41, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf0, 0x01, 0x0a, 0x0d, 0x41, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x0b, 0x61, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x3e, 0x0a, - 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, - 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x0c, 0x0a, - 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0xb5, 0x01, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x42, 0x0f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, - 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, - 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, - 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_artifact_id_proto_rawDescOnce sync.Once - file_flyteidl_core_artifact_id_proto_rawDescData = file_flyteidl_core_artifact_id_proto_rawDesc -) - -func file_flyteidl_core_artifact_id_proto_rawDescGZIP() []byte { - file_flyteidl_core_artifact_id_proto_rawDescOnce.Do(func() { - file_flyteidl_core_artifact_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_artifact_id_proto_rawDescData) - }) - return file_flyteidl_core_artifact_id_proto_rawDescData -} - -var file_flyteidl_core_artifact_id_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_flyteidl_core_artifact_id_proto_goTypes = []interface{}{ - (*ArtifactKey)(nil), // 0: flyteidl.core.ArtifactKey - (*ArtifactBindingData)(nil), // 1: flyteidl.core.ArtifactBindingData - (*InputBindingData)(nil), // 2: flyteidl.core.InputBindingData - (*LabelValue)(nil), // 3: flyteidl.core.LabelValue - (*Partitions)(nil), // 4: flyteidl.core.Partitions - (*TimePartition)(nil), // 5: flyteidl.core.TimePartition - (*ArtifactID)(nil), // 6: flyteidl.core.ArtifactID - (*ArtifactTag)(nil), // 7: flyteidl.core.ArtifactTag - (*ArtifactQuery)(nil), // 8: flyteidl.core.ArtifactQuery - nil, // 9: flyteidl.core.Partitions.ValueEntry - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp -} -var file_flyteidl_core_artifact_id_proto_depIdxs = []int32{ - 10, // 0: flyteidl.core.LabelValue.time_value:type_name -> google.protobuf.Timestamp - 1, // 1: flyteidl.core.LabelValue.triggered_binding:type_name -> flyteidl.core.ArtifactBindingData - 2, // 2: flyteidl.core.LabelValue.input_binding:type_name -> flyteidl.core.InputBindingData - 9, // 3: flyteidl.core.Partitions.value:type_name -> flyteidl.core.Partitions.ValueEntry - 3, // 4: flyteidl.core.TimePartition.value:type_name -> flyteidl.core.LabelValue - 0, // 5: flyteidl.core.ArtifactID.artifact_key:type_name -> flyteidl.core.ArtifactKey - 4, // 6: flyteidl.core.ArtifactID.partitions:type_name -> flyteidl.core.Partitions - 5, // 7: flyteidl.core.ArtifactID.time_partition:type_name -> flyteidl.core.TimePartition - 0, // 8: flyteidl.core.ArtifactTag.artifact_key:type_name -> flyteidl.core.ArtifactKey - 3, // 9: flyteidl.core.ArtifactTag.value:type_name -> flyteidl.core.LabelValue - 6, // 10: flyteidl.core.ArtifactQuery.artifact_id:type_name -> flyteidl.core.ArtifactID - 7, // 11: flyteidl.core.ArtifactQuery.artifact_tag:type_name -> flyteidl.core.ArtifactTag - 1, // 12: flyteidl.core.ArtifactQuery.binding:type_name -> flyteidl.core.ArtifactBindingData - 3, // 13: flyteidl.core.Partitions.ValueEntry.value:type_name -> flyteidl.core.LabelValue - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_artifact_id_proto_init() } -func file_flyteidl_core_artifact_id_proto_init() { - if File_flyteidl_core_artifact_id_proto != nil { - return - } - file_flyteidl_core_identifier_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_artifact_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactKey); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactBindingData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InputBindingData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LabelValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Partitions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TimePartition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactTag); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_artifact_id_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*ArtifactBindingData_PartitionKey)(nil), - (*ArtifactBindingData_BindToTimePartition)(nil), - } - file_flyteidl_core_artifact_id_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*LabelValue_StaticValue)(nil), - (*LabelValue_TimeValue)(nil), - (*LabelValue_TriggeredBinding)(nil), - (*LabelValue_InputBinding)(nil), - } - file_flyteidl_core_artifact_id_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*ArtifactQuery_ArtifactId)(nil), - (*ArtifactQuery_ArtifactTag)(nil), - (*ArtifactQuery_Uri)(nil), - (*ArtifactQuery_Binding)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_artifact_id_proto_rawDesc, - NumEnums: 0, - NumMessages: 10, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_artifact_id_proto_goTypes, - DependencyIndexes: file_flyteidl_core_artifact_id_proto_depIdxs, - MessageInfos: file_flyteidl_core_artifact_id_proto_msgTypes, - }.Build() - File_flyteidl_core_artifact_id_proto = out.File - file_flyteidl_core_artifact_id_proto_rawDesc = nil - file_flyteidl_core_artifact_id_proto_goTypes = nil - file_flyteidl_core_artifact_id_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go deleted file mode 100644 index 42ea6c8137..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go +++ /dev/null @@ -1,506 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/catalog.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future -type CatalogCacheStatus int32 - -const ( - // Used to indicate that caching was disabled - CatalogCacheStatus_CACHE_DISABLED CatalogCacheStatus = 0 - // Used to indicate that the cache lookup resulted in no matches - CatalogCacheStatus_CACHE_MISS CatalogCacheStatus = 1 - // used to indicate that the associated artifact was a result of a previous execution - CatalogCacheStatus_CACHE_HIT CatalogCacheStatus = 2 - // used to indicate that the resultant artifact was added to the cache - CatalogCacheStatus_CACHE_POPULATED CatalogCacheStatus = 3 - // Used to indicate that cache lookup failed because of an error - CatalogCacheStatus_CACHE_LOOKUP_FAILURE CatalogCacheStatus = 4 - // Used to indicate that cache lookup failed because of an error - CatalogCacheStatus_CACHE_PUT_FAILURE CatalogCacheStatus = 5 - // Used to indicate the cache lookup was skipped - CatalogCacheStatus_CACHE_SKIPPED CatalogCacheStatus = 6 - // Used to indicate that the cache was evicted - CatalogCacheStatus_CACHE_EVICTED CatalogCacheStatus = 7 -) - -// Enum value maps for CatalogCacheStatus. -var ( - CatalogCacheStatus_name = map[int32]string{ - 0: "CACHE_DISABLED", - 1: "CACHE_MISS", - 2: "CACHE_HIT", - 3: "CACHE_POPULATED", - 4: "CACHE_LOOKUP_FAILURE", - 5: "CACHE_PUT_FAILURE", - 6: "CACHE_SKIPPED", - 7: "CACHE_EVICTED", - } - CatalogCacheStatus_value = map[string]int32{ - "CACHE_DISABLED": 0, - "CACHE_MISS": 1, - "CACHE_HIT": 2, - "CACHE_POPULATED": 3, - "CACHE_LOOKUP_FAILURE": 4, - "CACHE_PUT_FAILURE": 5, - "CACHE_SKIPPED": 6, - "CACHE_EVICTED": 7, - } -) - -func (x CatalogCacheStatus) Enum() *CatalogCacheStatus { - p := new(CatalogCacheStatus) - *p = x - return p -} - -func (x CatalogCacheStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CatalogCacheStatus) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_catalog_proto_enumTypes[0].Descriptor() -} - -func (CatalogCacheStatus) Type() protoreflect.EnumType { - return &file_flyteidl_core_catalog_proto_enumTypes[0] -} - -func (x CatalogCacheStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CatalogCacheStatus.Descriptor instead. -func (CatalogCacheStatus) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{0} -} - -// Indicates the status of a catalog reservation operation. -type CatalogReservation_Status int32 - -const ( - // Used to indicate that reservations are disabled - CatalogReservation_RESERVATION_DISABLED CatalogReservation_Status = 0 - // Used to indicate that a reservation was successfully acquired or extended - CatalogReservation_RESERVATION_ACQUIRED CatalogReservation_Status = 1 - // Used to indicate that an active reservation currently exists - CatalogReservation_RESERVATION_EXISTS CatalogReservation_Status = 2 - // Used to indicate that the reservation has been successfully released - CatalogReservation_RESERVATION_RELEASED CatalogReservation_Status = 3 - // Used to indicate that a reservation operation resulted in failure - CatalogReservation_RESERVATION_FAILURE CatalogReservation_Status = 4 -) - -// Enum value maps for CatalogReservation_Status. -var ( - CatalogReservation_Status_name = map[int32]string{ - 0: "RESERVATION_DISABLED", - 1: "RESERVATION_ACQUIRED", - 2: "RESERVATION_EXISTS", - 3: "RESERVATION_RELEASED", - 4: "RESERVATION_FAILURE", - } - CatalogReservation_Status_value = map[string]int32{ - "RESERVATION_DISABLED": 0, - "RESERVATION_ACQUIRED": 1, - "RESERVATION_EXISTS": 2, - "RESERVATION_RELEASED": 3, - "RESERVATION_FAILURE": 4, - } -) - -func (x CatalogReservation_Status) Enum() *CatalogReservation_Status { - p := new(CatalogReservation_Status) - *p = x - return p -} - -func (x CatalogReservation_Status) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CatalogReservation_Status) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_catalog_proto_enumTypes[1].Descriptor() -} - -func (CatalogReservation_Status) Type() protoreflect.EnumType { - return &file_flyteidl_core_catalog_proto_enumTypes[1] -} - -func (x CatalogReservation_Status) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CatalogReservation_Status.Descriptor instead. -func (CatalogReservation_Status) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{2, 0} -} - -type CatalogArtifactTag struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Artifact ID is generated name - ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` - // Flyte computes the tag automatically, as the hash of the values - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *CatalogArtifactTag) Reset() { - *x = CatalogArtifactTag{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_catalog_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CatalogArtifactTag) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CatalogArtifactTag) ProtoMessage() {} - -func (x *CatalogArtifactTag) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_catalog_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CatalogArtifactTag.ProtoReflect.Descriptor instead. -func (*CatalogArtifactTag) Descriptor() ([]byte, []int) { - return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{0} -} - -func (x *CatalogArtifactTag) GetArtifactId() string { - if x != nil { - return x.ArtifactId - } - return "" -} - -func (x *CatalogArtifactTag) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Catalog artifact information with specific metadata -type CatalogMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Dataset ID in the catalog - DatasetId *Identifier `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` - // Artifact tag in the catalog - ArtifactTag *CatalogArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` - // Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - // - // Types that are assignable to SourceExecution: - // - // *CatalogMetadata_SourceTaskExecution - SourceExecution isCatalogMetadata_SourceExecution `protobuf_oneof:"source_execution"` -} - -func (x *CatalogMetadata) Reset() { - *x = CatalogMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_catalog_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CatalogMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CatalogMetadata) ProtoMessage() {} - -func (x *CatalogMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_catalog_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CatalogMetadata.ProtoReflect.Descriptor instead. -func (*CatalogMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{1} -} - -func (x *CatalogMetadata) GetDatasetId() *Identifier { - if x != nil { - return x.DatasetId - } - return nil -} - -func (x *CatalogMetadata) GetArtifactTag() *CatalogArtifactTag { - if x != nil { - return x.ArtifactTag - } - return nil -} - -func (m *CatalogMetadata) GetSourceExecution() isCatalogMetadata_SourceExecution { - if m != nil { - return m.SourceExecution - } - return nil -} - -func (x *CatalogMetadata) GetSourceTaskExecution() *TaskExecutionIdentifier { - if x, ok := x.GetSourceExecution().(*CatalogMetadata_SourceTaskExecution); ok { - return x.SourceTaskExecution - } - return nil -} - -type isCatalogMetadata_SourceExecution interface { - isCatalogMetadata_SourceExecution() -} - -type CatalogMetadata_SourceTaskExecution struct { - // Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions - SourceTaskExecution *TaskExecutionIdentifier `protobuf:"bytes,3,opt,name=source_task_execution,json=sourceTaskExecution,proto3,oneof"` -} - -func (*CatalogMetadata_SourceTaskExecution) isCatalogMetadata_SourceExecution() {} - -type CatalogReservation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CatalogReservation) Reset() { - *x = CatalogReservation{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_catalog_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CatalogReservation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CatalogReservation) ProtoMessage() {} - -func (x *CatalogReservation) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_catalog_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CatalogReservation.ProtoReflect.Descriptor instead. -func (*CatalogReservation) Descriptor() ([]byte, []int) { - return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{2} -} - -var File_flyteidl_core_catalog_proto protoreflect.FileDescriptor - -var file_flyteidl_core_catalog_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x49, 0x0a, 0x12, - 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, - 0x61, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x0a, 0x64, - 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x52, 0x0b, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x5c, 0x0a, 0x15, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x48, 0x00, 0x52, 0x13, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9e, 0x01, - 0x0a, 0x12, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, - 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, - 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x51, 0x55, 0x49, 0x52, 0x45, - 0x44, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x52, - 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, - 0x53, 0x45, 0x44, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x04, 0x2a, 0xb3, - 0x01, 0x0a, 0x12, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x44, - 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x41, 0x43, - 0x48, 0x45, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x43, - 0x48, 0x45, 0x5f, 0x48, 0x49, 0x54, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x43, 0x48, - 0x45, 0x5f, 0x50, 0x4f, 0x50, 0x55, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x18, 0x0a, - 0x14, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x41, 0x43, 0x48, 0x45, - 0x5f, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x11, - 0x0a, 0x0d, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, - 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x45, 0x56, 0x49, 0x43, 0x54, - 0x45, 0x44, 0x10, 0x07, 0x42, 0xb2, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_flyteidl_core_catalog_proto_rawDescOnce sync.Once - file_flyteidl_core_catalog_proto_rawDescData = file_flyteidl_core_catalog_proto_rawDesc -) - -func file_flyteidl_core_catalog_proto_rawDescGZIP() []byte { - file_flyteidl_core_catalog_proto_rawDescOnce.Do(func() { - file_flyteidl_core_catalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_catalog_proto_rawDescData) - }) - return file_flyteidl_core_catalog_proto_rawDescData -} - -var file_flyteidl_core_catalog_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_core_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_flyteidl_core_catalog_proto_goTypes = []interface{}{ - (CatalogCacheStatus)(0), // 0: flyteidl.core.CatalogCacheStatus - (CatalogReservation_Status)(0), // 1: flyteidl.core.CatalogReservation.Status - (*CatalogArtifactTag)(nil), // 2: flyteidl.core.CatalogArtifactTag - (*CatalogMetadata)(nil), // 3: flyteidl.core.CatalogMetadata - (*CatalogReservation)(nil), // 4: flyteidl.core.CatalogReservation - (*Identifier)(nil), // 5: flyteidl.core.Identifier - (*TaskExecutionIdentifier)(nil), // 6: flyteidl.core.TaskExecutionIdentifier -} -var file_flyteidl_core_catalog_proto_depIdxs = []int32{ - 5, // 0: flyteidl.core.CatalogMetadata.dataset_id:type_name -> flyteidl.core.Identifier - 2, // 1: flyteidl.core.CatalogMetadata.artifact_tag:type_name -> flyteidl.core.CatalogArtifactTag - 6, // 2: flyteidl.core.CatalogMetadata.source_task_execution:type_name -> flyteidl.core.TaskExecutionIdentifier - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_catalog_proto_init() } -func file_flyteidl_core_catalog_proto_init() { - if File_flyteidl_core_catalog_proto != nil { - return - } - file_flyteidl_core_identifier_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_catalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CatalogArtifactTag); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_catalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CatalogMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_catalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CatalogReservation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_catalog_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*CatalogMetadata_SourceTaskExecution)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_catalog_proto_rawDesc, - NumEnums: 2, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_catalog_proto_goTypes, - DependencyIndexes: file_flyteidl_core_catalog_proto_depIdxs, - EnumInfos: file_flyteidl_core_catalog_proto_enumTypes, - MessageInfos: file_flyteidl_core_catalog_proto_msgTypes, - }.Build() - File_flyteidl_core_catalog_proto = out.File - file_flyteidl_core_catalog_proto_rawDesc = nil - file_flyteidl_core_catalog_proto_goTypes = nil - file_flyteidl_core_catalog_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go deleted file mode 100644 index 4bd119175f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go +++ /dev/null @@ -1,605 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/compiler.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation -// step uses this created ConnectionSet -type ConnectionSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of all the node ids that are downstream from a given node id - Downstream map[string]*ConnectionSet_IdList `protobuf:"bytes,7,rep,name=downstream,proto3" json:"downstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // A list of all the node ids, that are upstream of this node id - Upstream map[string]*ConnectionSet_IdList `protobuf:"bytes,8,rep,name=upstream,proto3" json:"upstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ConnectionSet) Reset() { - *x = ConnectionSet{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConnectionSet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConnectionSet) ProtoMessage() {} - -func (x *ConnectionSet) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConnectionSet.ProtoReflect.Descriptor instead. -func (*ConnectionSet) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{0} -} - -func (x *ConnectionSet) GetDownstream() map[string]*ConnectionSet_IdList { - if x != nil { - return x.Downstream - } - return nil -} - -func (x *ConnectionSet) GetUpstream() map[string]*ConnectionSet_IdList { - if x != nil { - return x.Upstream - } - return nil -} - -// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer -type CompiledWorkflow struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Completely contained Workflow Template - Template *WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. - Connections *ConnectionSet `protobuf:"bytes,2,opt,name=connections,proto3" json:"connections,omitempty"` -} - -func (x *CompiledWorkflow) Reset() { - *x = CompiledWorkflow{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompiledWorkflow) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompiledWorkflow) ProtoMessage() {} - -func (x *CompiledWorkflow) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompiledWorkflow.ProtoReflect.Descriptor instead. -func (*CompiledWorkflow) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{1} -} - -func (x *CompiledWorkflow) GetTemplate() *WorkflowTemplate { - if x != nil { - return x.Template - } - return nil -} - -func (x *CompiledWorkflow) GetConnections() *ConnectionSet { - if x != nil { - return x.Connections - } - return nil -} - -// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer -type CompiledLaunchPlan struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Completely contained LaunchPlan Template - Template *LaunchPlanTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` -} - -func (x *CompiledLaunchPlan) Reset() { - *x = CompiledLaunchPlan{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompiledLaunchPlan) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompiledLaunchPlan) ProtoMessage() {} - -func (x *CompiledLaunchPlan) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompiledLaunchPlan.ProtoReflect.Descriptor instead. -func (*CompiledLaunchPlan) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{2} -} - -func (x *CompiledLaunchPlan) GetTemplate() *LaunchPlanTemplate { - if x != nil { - return x.Template - } - return nil -} - -// Output of the Compilation step. This object represent one Task. We store more metadata at this layer -type CompiledTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Completely contained TaskTemplate - Template *TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` -} - -func (x *CompiledTask) Reset() { - *x = CompiledTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompiledTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompiledTask) ProtoMessage() {} - -func (x *CompiledTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompiledTask.ProtoReflect.Descriptor instead. -func (*CompiledTask) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{3} -} - -func (x *CompiledTask) GetTemplate() *TaskTemplate { - if x != nil { - return x.Template - } - return nil -} - -// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow -// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that -// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of -// compiled subworkflows. -type CompiledWorkflowClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - Primary *CompiledWorkflow `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` - // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a - // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow - // as an inlined workflow - // +optional - SubWorkflows []*CompiledWorkflow `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` - // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id - // +required (at least 1) - Tasks []*CompiledTask `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` - // A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan - // with a given id, i.e., every launch plan has a unique id. - LaunchPlans []*CompiledLaunchPlan `protobuf:"bytes,4,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` -} - -func (x *CompiledWorkflowClosure) Reset() { - *x = CompiledWorkflowClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CompiledWorkflowClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CompiledWorkflowClosure) ProtoMessage() {} - -func (x *CompiledWorkflowClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CompiledWorkflowClosure.ProtoReflect.Descriptor instead. -func (*CompiledWorkflowClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{4} -} - -func (x *CompiledWorkflowClosure) GetPrimary() *CompiledWorkflow { - if x != nil { - return x.Primary - } - return nil -} - -func (x *CompiledWorkflowClosure) GetSubWorkflows() []*CompiledWorkflow { - if x != nil { - return x.SubWorkflows - } - return nil -} - -func (x *CompiledWorkflowClosure) GetTasks() []*CompiledTask { - if x != nil { - return x.Tasks - } - return nil -} - -func (x *CompiledWorkflowClosure) GetLaunchPlans() []*CompiledLaunchPlan { - if x != nil { - return x.LaunchPlans - } - return nil -} - -type ConnectionSet_IdList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *ConnectionSet_IdList) Reset() { - *x = ConnectionSet_IdList{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_compiler_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConnectionSet_IdList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConnectionSet_IdList) ProtoMessage() {} - -func (x *ConnectionSet_IdList) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_compiler_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConnectionSet_IdList.ProtoReflect.Descriptor instead. -func (*ConnectionSet_IdList) Descriptor() ([]byte, []int) { - return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *ConnectionSet_IdList) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - -var File_flyteidl_core_compiler_proto protoreflect.FileDescriptor - -var file_flyteidl_core_compiler_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x46, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x1a, 0x1a, 0x0a, - 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x1a, 0x62, 0x0a, 0x0f, 0x44, 0x6f, 0x77, - 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x60, 0x0a, - 0x0d, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x8f, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x22, 0x53, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x61, 0x75, - 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x3d, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x47, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, - 0x93, 0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x07, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, - 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x0c, - 0x73, 0x75, 0x62, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x05, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x69, 0x6c, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, - 0x44, 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x61, - 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x43, 0x6f, 0x6d, - 0x70, 0x69, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, - 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, - 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, - 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, - 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_compiler_proto_rawDescOnce sync.Once - file_flyteidl_core_compiler_proto_rawDescData = file_flyteidl_core_compiler_proto_rawDesc -) - -func file_flyteidl_core_compiler_proto_rawDescGZIP() []byte { - file_flyteidl_core_compiler_proto_rawDescOnce.Do(func() { - file_flyteidl_core_compiler_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_compiler_proto_rawDescData) - }) - return file_flyteidl_core_compiler_proto_rawDescData -} - -var file_flyteidl_core_compiler_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_flyteidl_core_compiler_proto_goTypes = []interface{}{ - (*ConnectionSet)(nil), // 0: flyteidl.core.ConnectionSet - (*CompiledWorkflow)(nil), // 1: flyteidl.core.CompiledWorkflow - (*CompiledLaunchPlan)(nil), // 2: flyteidl.core.CompiledLaunchPlan - (*CompiledTask)(nil), // 3: flyteidl.core.CompiledTask - (*CompiledWorkflowClosure)(nil), // 4: flyteidl.core.CompiledWorkflowClosure - (*ConnectionSet_IdList)(nil), // 5: flyteidl.core.ConnectionSet.IdList - nil, // 6: flyteidl.core.ConnectionSet.DownstreamEntry - nil, // 7: flyteidl.core.ConnectionSet.UpstreamEntry - (*WorkflowTemplate)(nil), // 8: flyteidl.core.WorkflowTemplate - (*LaunchPlanTemplate)(nil), // 9: flyteidl.core.LaunchPlanTemplate - (*TaskTemplate)(nil), // 10: flyteidl.core.TaskTemplate -} -var file_flyteidl_core_compiler_proto_depIdxs = []int32{ - 6, // 0: flyteidl.core.ConnectionSet.downstream:type_name -> flyteidl.core.ConnectionSet.DownstreamEntry - 7, // 1: flyteidl.core.ConnectionSet.upstream:type_name -> flyteidl.core.ConnectionSet.UpstreamEntry - 8, // 2: flyteidl.core.CompiledWorkflow.template:type_name -> flyteidl.core.WorkflowTemplate - 0, // 3: flyteidl.core.CompiledWorkflow.connections:type_name -> flyteidl.core.ConnectionSet - 9, // 4: flyteidl.core.CompiledLaunchPlan.template:type_name -> flyteidl.core.LaunchPlanTemplate - 10, // 5: flyteidl.core.CompiledTask.template:type_name -> flyteidl.core.TaskTemplate - 1, // 6: flyteidl.core.CompiledWorkflowClosure.primary:type_name -> flyteidl.core.CompiledWorkflow - 1, // 7: flyteidl.core.CompiledWorkflowClosure.sub_workflows:type_name -> flyteidl.core.CompiledWorkflow - 3, // 8: flyteidl.core.CompiledWorkflowClosure.tasks:type_name -> flyteidl.core.CompiledTask - 2, // 9: flyteidl.core.CompiledWorkflowClosure.launch_plans:type_name -> flyteidl.core.CompiledLaunchPlan - 5, // 10: flyteidl.core.ConnectionSet.DownstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList - 5, // 11: flyteidl.core.ConnectionSet.UpstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_compiler_proto_init() } -func file_flyteidl_core_compiler_proto_init() { - if File_flyteidl_core_compiler_proto != nil { - return - } - file_flyteidl_core_identifier_proto_init() - file_flyteidl_core_interface_proto_init() - file_flyteidl_core_workflow_proto_init() - file_flyteidl_core_tasks_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_compiler_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConnectionSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_compiler_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompiledWorkflow); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_compiler_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompiledLaunchPlan); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_compiler_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompiledTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_compiler_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CompiledWorkflowClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_compiler_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConnectionSet_IdList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_compiler_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_compiler_proto_goTypes, - DependencyIndexes: file_flyteidl_core_compiler_proto_depIdxs, - MessageInfos: file_flyteidl_core_compiler_proto_msgTypes, - }.Build() - File_flyteidl_core_compiler_proto = out.File - file_flyteidl_core_compiler_proto_rawDesc = nil - file_flyteidl_core_compiler_proto_goTypes = nil - file_flyteidl_core_compiler_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go deleted file mode 100644 index f63309fd8e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go +++ /dev/null @@ -1,651 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/condition.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Binary Operator for each expression -type ComparisonExpression_Operator int32 - -const ( - ComparisonExpression_EQ ComparisonExpression_Operator = 0 - ComparisonExpression_NEQ ComparisonExpression_Operator = 1 - // Greater Than - ComparisonExpression_GT ComparisonExpression_Operator = 2 - ComparisonExpression_GTE ComparisonExpression_Operator = 3 - // Less Than - ComparisonExpression_LT ComparisonExpression_Operator = 4 - ComparisonExpression_LTE ComparisonExpression_Operator = 5 -) - -// Enum value maps for ComparisonExpression_Operator. -var ( - ComparisonExpression_Operator_name = map[int32]string{ - 0: "EQ", - 1: "NEQ", - 2: "GT", - 3: "GTE", - 4: "LT", - 5: "LTE", - } - ComparisonExpression_Operator_value = map[string]int32{ - "EQ": 0, - "NEQ": 1, - "GT": 2, - "GTE": 3, - "LT": 4, - "LTE": 5, - } -) - -func (x ComparisonExpression_Operator) Enum() *ComparisonExpression_Operator { - p := new(ComparisonExpression_Operator) - *p = x - return p -} - -func (x ComparisonExpression_Operator) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ComparisonExpression_Operator) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_condition_proto_enumTypes[0].Descriptor() -} - -func (ComparisonExpression_Operator) Type() protoreflect.EnumType { - return &file_flyteidl_core_condition_proto_enumTypes[0] -} - -func (x ComparisonExpression_Operator) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ComparisonExpression_Operator.Descriptor instead. -func (ComparisonExpression_Operator) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{0, 0} -} - -// Nested conditions. They can be conjoined using AND / OR -// Order of evaluation is not important as the operators are Commutative -type ConjunctionExpression_LogicalOperator int32 - -const ( - // Conjunction - ConjunctionExpression_AND ConjunctionExpression_LogicalOperator = 0 - ConjunctionExpression_OR ConjunctionExpression_LogicalOperator = 1 -) - -// Enum value maps for ConjunctionExpression_LogicalOperator. -var ( - ConjunctionExpression_LogicalOperator_name = map[int32]string{ - 0: "AND", - 1: "OR", - } - ConjunctionExpression_LogicalOperator_value = map[string]int32{ - "AND": 0, - "OR": 1, - } -) - -func (x ConjunctionExpression_LogicalOperator) Enum() *ConjunctionExpression_LogicalOperator { - p := new(ConjunctionExpression_LogicalOperator) - *p = x - return p -} - -func (x ConjunctionExpression_LogicalOperator) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ConjunctionExpression_LogicalOperator) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_condition_proto_enumTypes[1].Descriptor() -} - -func (ConjunctionExpression_LogicalOperator) Type() protoreflect.EnumType { - return &file_flyteidl_core_condition_proto_enumTypes[1] -} - -func (x ConjunctionExpression_LogicalOperator) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ConjunctionExpression_LogicalOperator.Descriptor instead. -func (ConjunctionExpression_LogicalOperator) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{3, 0} -} - -// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. -// Each expression results in a boolean result. -type ComparisonExpression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Operator ComparisonExpression_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ComparisonExpression_Operator" json:"operator,omitempty"` - LeftValue *Operand `protobuf:"bytes,2,opt,name=left_value,json=leftValue,proto3" json:"left_value,omitempty"` - RightValue *Operand `protobuf:"bytes,3,opt,name=right_value,json=rightValue,proto3" json:"right_value,omitempty"` -} - -func (x *ComparisonExpression) Reset() { - *x = ComparisonExpression{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_condition_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ComparisonExpression) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ComparisonExpression) ProtoMessage() {} - -func (x *ComparisonExpression) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_condition_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ComparisonExpression.ProtoReflect.Descriptor instead. -func (*ComparisonExpression) Descriptor() ([]byte, []int) { - return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{0} -} - -func (x *ComparisonExpression) GetOperator() ComparisonExpression_Operator { - if x != nil { - return x.Operator - } - return ComparisonExpression_EQ -} - -func (x *ComparisonExpression) GetLeftValue() *Operand { - if x != nil { - return x.LeftValue - } - return nil -} - -func (x *ComparisonExpression) GetRightValue() *Operand { - if x != nil { - return x.RightValue - } - return nil -} - -// Defines an operand to a comparison expression. -type Operand struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Val: - // - // *Operand_Primitive - // *Operand_Var - // *Operand_Scalar - Val isOperand_Val `protobuf_oneof:"val"` -} - -func (x *Operand) Reset() { - *x = Operand{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_condition_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Operand) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Operand) ProtoMessage() {} - -func (x *Operand) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_condition_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Operand.ProtoReflect.Descriptor instead. -func (*Operand) Descriptor() ([]byte, []int) { - return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{1} -} - -func (m *Operand) GetVal() isOperand_Val { - if m != nil { - return m.Val - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/core/condition.proto. -func (x *Operand) GetPrimitive() *Primitive { - if x, ok := x.GetVal().(*Operand_Primitive); ok { - return x.Primitive - } - return nil -} - -func (x *Operand) GetVar() string { - if x, ok := x.GetVal().(*Operand_Var); ok { - return x.Var - } - return "" -} - -func (x *Operand) GetScalar() *Scalar { - if x, ok := x.GetVal().(*Operand_Scalar); ok { - return x.Scalar - } - return nil -} - -type isOperand_Val interface { - isOperand_Val() -} - -type Operand_Primitive struct { - // Can be a constant - // - // Deprecated: Marked as deprecated in flyteidl/core/condition.proto. - Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` -} - -type Operand_Var struct { - // Or one of this node's input variables - Var string `protobuf:"bytes,2,opt,name=var,proto3,oneof"` -} - -type Operand_Scalar struct { - // Replace the primitive field - Scalar *Scalar `protobuf:"bytes,3,opt,name=scalar,proto3,oneof"` -} - -func (*Operand_Primitive) isOperand_Val() {} - -func (*Operand_Var) isOperand_Val() {} - -func (*Operand_Scalar) isOperand_Val() {} - -// Defines a boolean expression tree. It can be a simple or a conjunction expression. -// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. -type BooleanExpression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Expr: - // - // *BooleanExpression_Conjunction - // *BooleanExpression_Comparison - Expr isBooleanExpression_Expr `protobuf_oneof:"expr"` -} - -func (x *BooleanExpression) Reset() { - *x = BooleanExpression{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_condition_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BooleanExpression) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BooleanExpression) ProtoMessage() {} - -func (x *BooleanExpression) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_condition_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BooleanExpression.ProtoReflect.Descriptor instead. -func (*BooleanExpression) Descriptor() ([]byte, []int) { - return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{2} -} - -func (m *BooleanExpression) GetExpr() isBooleanExpression_Expr { - if m != nil { - return m.Expr - } - return nil -} - -func (x *BooleanExpression) GetConjunction() *ConjunctionExpression { - if x, ok := x.GetExpr().(*BooleanExpression_Conjunction); ok { - return x.Conjunction - } - return nil -} - -func (x *BooleanExpression) GetComparison() *ComparisonExpression { - if x, ok := x.GetExpr().(*BooleanExpression_Comparison); ok { - return x.Comparison - } - return nil -} - -type isBooleanExpression_Expr interface { - isBooleanExpression_Expr() -} - -type BooleanExpression_Conjunction struct { - Conjunction *ConjunctionExpression `protobuf:"bytes,1,opt,name=conjunction,proto3,oneof"` -} - -type BooleanExpression_Comparison struct { - Comparison *ComparisonExpression `protobuf:"bytes,2,opt,name=comparison,proto3,oneof"` -} - -func (*BooleanExpression_Conjunction) isBooleanExpression_Expr() {} - -func (*BooleanExpression_Comparison) isBooleanExpression_Expr() {} - -// Defines a conjunction expression of two boolean expressions. -type ConjunctionExpression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Operator ConjunctionExpression_LogicalOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ConjunctionExpression_LogicalOperator" json:"operator,omitempty"` - LeftExpression *BooleanExpression `protobuf:"bytes,2,opt,name=left_expression,json=leftExpression,proto3" json:"left_expression,omitempty"` - RightExpression *BooleanExpression `protobuf:"bytes,3,opt,name=right_expression,json=rightExpression,proto3" json:"right_expression,omitempty"` -} - -func (x *ConjunctionExpression) Reset() { - *x = ConjunctionExpression{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_condition_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ConjunctionExpression) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ConjunctionExpression) ProtoMessage() {} - -func (x *ConjunctionExpression) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_condition_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ConjunctionExpression.ProtoReflect.Descriptor instead. -func (*ConjunctionExpression) Descriptor() ([]byte, []int) { - return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{3} -} - -func (x *ConjunctionExpression) GetOperator() ConjunctionExpression_LogicalOperator { - if x != nil { - return x.Operator - } - return ConjunctionExpression_AND -} - -func (x *ConjunctionExpression) GetLeftExpression() *BooleanExpression { - if x != nil { - return x.LeftExpression - } - return nil -} - -func (x *ConjunctionExpression) GetRightExpression() *BooleanExpression { - if x != nil { - return x.RightExpression - } - return nil -} - -var File_flyteidl_core_condition_proto protoreflect.FileDescriptor - -var file_flyteidl_core_condition_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, - 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x02, 0x0a, - 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, - 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x35, 0x0a, 0x0a, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64, 0x52, 0x09, 0x6c, 0x65, 0x66, - 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x72, 0x69, 0x67, 0x68, 0x74, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x6e, 0x64, 0x52, 0x0a, 0x72, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, - 0x3d, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x06, 0x0a, 0x02, 0x45, - 0x51, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x45, 0x51, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, - 0x47, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x54, 0x45, 0x10, 0x03, 0x12, 0x06, 0x0a, - 0x02, 0x4c, 0x54, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x54, 0x45, 0x10, 0x05, 0x22, 0x93, - 0x01, 0x0a, 0x07, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, - 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, - 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x70, - 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x2f, 0x0a, 0x06, - 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x61, - 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x42, 0x05, 0x0a, - 0x03, 0x76, 0x61, 0x6c, 0x22, 0xac, 0x01, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, - 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x0b, 0x63, 0x6f, - 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, - 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x65, - 0x78, 0x70, 0x72, 0x22, 0xa5, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, - 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x34, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x49, 0x0a, 0x0f, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, - 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6c, 0x65, 0x66, 0x74, - 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x72, 0x69, - 0x67, 0x68, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x45, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x72, 0x69, 0x67, 0x68, 0x74, 0x45, 0x78, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x22, 0x0a, 0x0f, 0x4c, 0x6f, 0x67, 0x69, 0x63, - 0x61, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, - 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10, 0x01, 0x42, 0xb4, 0x01, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x42, 0x0e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, - 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, - 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, - 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_condition_proto_rawDescOnce sync.Once - file_flyteidl_core_condition_proto_rawDescData = file_flyteidl_core_condition_proto_rawDesc -) - -func file_flyteidl_core_condition_proto_rawDescGZIP() []byte { - file_flyteidl_core_condition_proto_rawDescOnce.Do(func() { - file_flyteidl_core_condition_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_condition_proto_rawDescData) - }) - return file_flyteidl_core_condition_proto_rawDescData -} - -var file_flyteidl_core_condition_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_core_condition_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_flyteidl_core_condition_proto_goTypes = []interface{}{ - (ComparisonExpression_Operator)(0), // 0: flyteidl.core.ComparisonExpression.Operator - (ConjunctionExpression_LogicalOperator)(0), // 1: flyteidl.core.ConjunctionExpression.LogicalOperator - (*ComparisonExpression)(nil), // 2: flyteidl.core.ComparisonExpression - (*Operand)(nil), // 3: flyteidl.core.Operand - (*BooleanExpression)(nil), // 4: flyteidl.core.BooleanExpression - (*ConjunctionExpression)(nil), // 5: flyteidl.core.ConjunctionExpression - (*Primitive)(nil), // 6: flyteidl.core.Primitive - (*Scalar)(nil), // 7: flyteidl.core.Scalar -} -var file_flyteidl_core_condition_proto_depIdxs = []int32{ - 0, // 0: flyteidl.core.ComparisonExpression.operator:type_name -> flyteidl.core.ComparisonExpression.Operator - 3, // 1: flyteidl.core.ComparisonExpression.left_value:type_name -> flyteidl.core.Operand - 3, // 2: flyteidl.core.ComparisonExpression.right_value:type_name -> flyteidl.core.Operand - 6, // 3: flyteidl.core.Operand.primitive:type_name -> flyteidl.core.Primitive - 7, // 4: flyteidl.core.Operand.scalar:type_name -> flyteidl.core.Scalar - 5, // 5: flyteidl.core.BooleanExpression.conjunction:type_name -> flyteidl.core.ConjunctionExpression - 2, // 6: flyteidl.core.BooleanExpression.comparison:type_name -> flyteidl.core.ComparisonExpression - 1, // 7: flyteidl.core.ConjunctionExpression.operator:type_name -> flyteidl.core.ConjunctionExpression.LogicalOperator - 4, // 8: flyteidl.core.ConjunctionExpression.left_expression:type_name -> flyteidl.core.BooleanExpression - 4, // 9: flyteidl.core.ConjunctionExpression.right_expression:type_name -> flyteidl.core.BooleanExpression - 10, // [10:10] is the sub-list for method output_type - 10, // [10:10] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_condition_proto_init() } -func file_flyteidl_core_condition_proto_init() { - if File_flyteidl_core_condition_proto != nil { - return - } - file_flyteidl_core_literals_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_condition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ComparisonExpression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_condition_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Operand); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_condition_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BooleanExpression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_condition_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConjunctionExpression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_condition_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*Operand_Primitive)(nil), - (*Operand_Var)(nil), - (*Operand_Scalar)(nil), - } - file_flyteidl_core_condition_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*BooleanExpression_Conjunction)(nil), - (*BooleanExpression_Comparison)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_condition_proto_rawDesc, - NumEnums: 2, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_condition_proto_goTypes, - DependencyIndexes: file_flyteidl_core_condition_proto_depIdxs, - EnumInfos: file_flyteidl_core_condition_proto_enumTypes, - MessageInfos: file_flyteidl_core_condition_proto_msgTypes, - }.Build() - File_flyteidl_core_condition_proto = out.File - file_flyteidl_core_condition_proto_rawDesc = nil - file_flyteidl_core_condition_proto_goTypes = nil - file_flyteidl_core_condition_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go deleted file mode 100644 index 2cc910b386..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go +++ /dev/null @@ -1,228 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/dynamic_job.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Describes a set of tasks to execute and how the final outputs are produced. -type DynamicJobSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A collection of nodes to execute. - Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` - // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this - // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number - // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < - // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not - // specified, is the count of nodes repeated field. - MinSuccesses int64 `protobuf:"varint,2,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"` - // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids - // in bindings should have the generated id for the subtask. - Outputs []*Binding `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` - // [Optional] A complete list of task specs referenced in nodes. - Tasks []*TaskTemplate `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` - // [Optional] A complete list of task specs referenced in nodes. - Subworkflows []*WorkflowTemplate `protobuf:"bytes,5,rep,name=subworkflows,proto3" json:"subworkflows,omitempty"` -} - -func (x *DynamicJobSpec) Reset() { - *x = DynamicJobSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_dynamic_job_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicJobSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicJobSpec) ProtoMessage() {} - -func (x *DynamicJobSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_dynamic_job_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicJobSpec.ProtoReflect.Descriptor instead. -func (*DynamicJobSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_core_dynamic_job_proto_rawDescGZIP(), []int{0} -} - -func (x *DynamicJobSpec) GetNodes() []*Node { - if x != nil { - return x.Nodes - } - return nil -} - -func (x *DynamicJobSpec) GetMinSuccesses() int64 { - if x != nil { - return x.MinSuccesses - } - return 0 -} - -func (x *DynamicJobSpec) GetOutputs() []*Binding { - if x != nil { - return x.Outputs - } - return nil -} - -func (x *DynamicJobSpec) GetTasks() []*TaskTemplate { - if x != nil { - return x.Tasks - } - return nil -} - -func (x *DynamicJobSpec) GetSubworkflows() []*WorkflowTemplate { - if x != nil { - return x.Subworkflows - } - return nil -} - -var File_flyteidl_core_dynamic_job_proto protoreflect.FileDescriptor - -var file_flyteidl_core_dynamic_job_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x02, 0x0a, 0x0e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, - 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, - 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x69, - 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x05, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, - 0x43, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, - 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x73, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0f, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, - 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, - 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, - 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_dynamic_job_proto_rawDescOnce sync.Once - file_flyteidl_core_dynamic_job_proto_rawDescData = file_flyteidl_core_dynamic_job_proto_rawDesc -) - -func file_flyteidl_core_dynamic_job_proto_rawDescGZIP() []byte { - file_flyteidl_core_dynamic_job_proto_rawDescOnce.Do(func() { - file_flyteidl_core_dynamic_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_dynamic_job_proto_rawDescData) - }) - return file_flyteidl_core_dynamic_job_proto_rawDescData -} - -var file_flyteidl_core_dynamic_job_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_core_dynamic_job_proto_goTypes = []interface{}{ - (*DynamicJobSpec)(nil), // 0: flyteidl.core.DynamicJobSpec - (*Node)(nil), // 1: flyteidl.core.Node - (*Binding)(nil), // 2: flyteidl.core.Binding - (*TaskTemplate)(nil), // 3: flyteidl.core.TaskTemplate - (*WorkflowTemplate)(nil), // 4: flyteidl.core.WorkflowTemplate -} -var file_flyteidl_core_dynamic_job_proto_depIdxs = []int32{ - 1, // 0: flyteidl.core.DynamicJobSpec.nodes:type_name -> flyteidl.core.Node - 2, // 1: flyteidl.core.DynamicJobSpec.outputs:type_name -> flyteidl.core.Binding - 3, // 2: flyteidl.core.DynamicJobSpec.tasks:type_name -> flyteidl.core.TaskTemplate - 4, // 3: flyteidl.core.DynamicJobSpec.subworkflows:type_name -> flyteidl.core.WorkflowTemplate - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_dynamic_job_proto_init() } -func file_flyteidl_core_dynamic_job_proto_init() { - if File_flyteidl_core_dynamic_job_proto != nil { - return - } - file_flyteidl_core_tasks_proto_init() - file_flyteidl_core_workflow_proto_init() - file_flyteidl_core_literals_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_dynamic_job_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicJobSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_dynamic_job_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_dynamic_job_proto_goTypes, - DependencyIndexes: file_flyteidl_core_dynamic_job_proto_depIdxs, - MessageInfos: file_flyteidl_core_dynamic_job_proto_msgTypes, - }.Build() - File_flyteidl_core_dynamic_job_proto = out.File - file_flyteidl_core_dynamic_job_proto_rawDesc = nil - file_flyteidl_core_dynamic_job_proto_goTypes = nil - file_flyteidl_core_dynamic_job_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go deleted file mode 100644 index 61e833ed1d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go +++ /dev/null @@ -1,320 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/errors.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a generic error type that dictates the behavior of the retry strategy. -type ContainerError_Kind int32 - -const ( - ContainerError_NON_RECOVERABLE ContainerError_Kind = 0 - ContainerError_RECOVERABLE ContainerError_Kind = 1 -) - -// Enum value maps for ContainerError_Kind. -var ( - ContainerError_Kind_name = map[int32]string{ - 0: "NON_RECOVERABLE", - 1: "RECOVERABLE", - } - ContainerError_Kind_value = map[string]int32{ - "NON_RECOVERABLE": 0, - "RECOVERABLE": 1, - } -) - -func (x ContainerError_Kind) Enum() *ContainerError_Kind { - p := new(ContainerError_Kind) - *p = x - return p -} - -func (x ContainerError_Kind) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ContainerError_Kind) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_errors_proto_enumTypes[0].Descriptor() -} - -func (ContainerError_Kind) Type() protoreflect.EnumType { - return &file_flyteidl_core_errors_proto_enumTypes[0] -} - -func (x ContainerError_Kind) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ContainerError_Kind.Descriptor instead. -func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_errors_proto_rawDescGZIP(), []int{0, 0} -} - -// Error message to propagate detailed errors from container executions to the execution -// engine. -type ContainerError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A simplified code for errors, so that we can provide a glossary of all possible errors. - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - // A detailed error message. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. - Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl.core.ContainerError_Kind" json:"kind,omitempty"` - // Defines the origin of the error (system, user, unknown). - Origin ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=origin,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"origin,omitempty"` -} - -func (x *ContainerError) Reset() { - *x = ContainerError{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_errors_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContainerError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContainerError) ProtoMessage() {} - -func (x *ContainerError) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_errors_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContainerError.ProtoReflect.Descriptor instead. -func (*ContainerError) Descriptor() ([]byte, []int) { - return file_flyteidl_core_errors_proto_rawDescGZIP(), []int{0} -} - -func (x *ContainerError) GetCode() string { - if x != nil { - return x.Code - } - return "" -} - -func (x *ContainerError) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *ContainerError) GetKind() ContainerError_Kind { - if x != nil { - return x.Kind - } - return ContainerError_NON_RECOVERABLE -} - -func (x *ContainerError) GetOrigin() ExecutionError_ErrorKind { - if x != nil { - return x.Origin - } - return ExecutionError_UNKNOWN -} - -// Defines the errors.pb file format the container can produce to communicate -// failure reasons to the execution engine. -type ErrorDocument struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The error raised during execution. - Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *ErrorDocument) Reset() { - *x = ErrorDocument{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_errors_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ErrorDocument) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ErrorDocument) ProtoMessage() {} - -func (x *ErrorDocument) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_errors_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ErrorDocument.ProtoReflect.Descriptor instead. -func (*ErrorDocument) Descriptor() ([]byte, []int) { - return file_flyteidl_core_errors_proto_rawDescGZIP(), []int{1} -} - -func (x *ErrorDocument) GetError() *ContainerError { - if x != nil { - return x.Error - } - return nil -} - -var File_flyteidl_core_errors_proto protoreflect.FileDescriptor - -var file_flyteidl_core_errors_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1d, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x01, 0x0a, 0x0e, 0x43, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x6b, - 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, - 0x69, 0x6e, 0x64, 0x12, 0x3f, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x6f, 0x72, - 0x69, 0x67, 0x69, 0x6e, 0x22, 0x2c, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x13, 0x0a, 0x0f, - 0x4e, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x41, 0x42, 0x4c, 0x45, 0x10, - 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x41, 0x42, 0x4c, 0x45, - 0x10, 0x01, 0x22, 0x44, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x6f, 0x63, 0x75, 0x6d, - 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0xb1, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0b, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, - 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, - 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, - 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_errors_proto_rawDescOnce sync.Once - file_flyteidl_core_errors_proto_rawDescData = file_flyteidl_core_errors_proto_rawDesc -) - -func file_flyteidl_core_errors_proto_rawDescGZIP() []byte { - file_flyteidl_core_errors_proto_rawDescOnce.Do(func() { - file_flyteidl_core_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_errors_proto_rawDescData) - }) - return file_flyteidl_core_errors_proto_rawDescData -} - -var file_flyteidl_core_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_core_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_flyteidl_core_errors_proto_goTypes = []interface{}{ - (ContainerError_Kind)(0), // 0: flyteidl.core.ContainerError.Kind - (*ContainerError)(nil), // 1: flyteidl.core.ContainerError - (*ErrorDocument)(nil), // 2: flyteidl.core.ErrorDocument - (ExecutionError_ErrorKind)(0), // 3: flyteidl.core.ExecutionError.ErrorKind -} -var file_flyteidl_core_errors_proto_depIdxs = []int32{ - 0, // 0: flyteidl.core.ContainerError.kind:type_name -> flyteidl.core.ContainerError.Kind - 3, // 1: flyteidl.core.ContainerError.origin:type_name -> flyteidl.core.ExecutionError.ErrorKind - 1, // 2: flyteidl.core.ErrorDocument.error:type_name -> flyteidl.core.ContainerError - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_errors_proto_init() } -func file_flyteidl_core_errors_proto_init() { - if File_flyteidl_core_errors_proto != nil { - return - } - file_flyteidl_core_execution_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContainerError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_errors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorDocument); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_errors_proto_rawDesc, - NumEnums: 1, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_errors_proto_goTypes, - DependencyIndexes: file_flyteidl_core_errors_proto_depIdxs, - EnumInfos: file_flyteidl_core_errors_proto_enumTypes, - MessageInfos: file_flyteidl_core_errors_proto_msgTypes, - }.Build() - File_flyteidl_core_errors_proto = out.File - file_flyteidl_core_errors_proto_rawDesc = nil - file_flyteidl_core_errors_proto_goTypes = nil - file_flyteidl_core_errors_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go deleted file mode 100644 index fe558cf94c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go +++ /dev/null @@ -1,1040 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/execution.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type WorkflowExecution_Phase int32 - -const ( - WorkflowExecution_UNDEFINED WorkflowExecution_Phase = 0 - WorkflowExecution_QUEUED WorkflowExecution_Phase = 1 - WorkflowExecution_RUNNING WorkflowExecution_Phase = 2 - WorkflowExecution_SUCCEEDING WorkflowExecution_Phase = 3 - WorkflowExecution_SUCCEEDED WorkflowExecution_Phase = 4 - WorkflowExecution_FAILING WorkflowExecution_Phase = 5 - WorkflowExecution_FAILED WorkflowExecution_Phase = 6 - WorkflowExecution_ABORTED WorkflowExecution_Phase = 7 - WorkflowExecution_TIMED_OUT WorkflowExecution_Phase = 8 - WorkflowExecution_ABORTING WorkflowExecution_Phase = 9 -) - -// Enum value maps for WorkflowExecution_Phase. -var ( - WorkflowExecution_Phase_name = map[int32]string{ - 0: "UNDEFINED", - 1: "QUEUED", - 2: "RUNNING", - 3: "SUCCEEDING", - 4: "SUCCEEDED", - 5: "FAILING", - 6: "FAILED", - 7: "ABORTED", - 8: "TIMED_OUT", - 9: "ABORTING", - } - WorkflowExecution_Phase_value = map[string]int32{ - "UNDEFINED": 0, - "QUEUED": 1, - "RUNNING": 2, - "SUCCEEDING": 3, - "SUCCEEDED": 4, - "FAILING": 5, - "FAILED": 6, - "ABORTED": 7, - "TIMED_OUT": 8, - "ABORTING": 9, - } -) - -func (x WorkflowExecution_Phase) Enum() *WorkflowExecution_Phase { - p := new(WorkflowExecution_Phase) - *p = x - return p -} - -func (x WorkflowExecution_Phase) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (WorkflowExecution_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_execution_proto_enumTypes[0].Descriptor() -} - -func (WorkflowExecution_Phase) Type() protoreflect.EnumType { - return &file_flyteidl_core_execution_proto_enumTypes[0] -} - -func (x WorkflowExecution_Phase) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use WorkflowExecution_Phase.Descriptor instead. -func (WorkflowExecution_Phase) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{0, 0} -} - -type NodeExecution_Phase int32 - -const ( - NodeExecution_UNDEFINED NodeExecution_Phase = 0 - NodeExecution_QUEUED NodeExecution_Phase = 1 - NodeExecution_RUNNING NodeExecution_Phase = 2 - NodeExecution_SUCCEEDED NodeExecution_Phase = 3 - NodeExecution_FAILING NodeExecution_Phase = 4 - NodeExecution_FAILED NodeExecution_Phase = 5 - NodeExecution_ABORTED NodeExecution_Phase = 6 - NodeExecution_SKIPPED NodeExecution_Phase = 7 - NodeExecution_TIMED_OUT NodeExecution_Phase = 8 - NodeExecution_DYNAMIC_RUNNING NodeExecution_Phase = 9 - NodeExecution_RECOVERED NodeExecution_Phase = 10 -) - -// Enum value maps for NodeExecution_Phase. -var ( - NodeExecution_Phase_name = map[int32]string{ - 0: "UNDEFINED", - 1: "QUEUED", - 2: "RUNNING", - 3: "SUCCEEDED", - 4: "FAILING", - 5: "FAILED", - 6: "ABORTED", - 7: "SKIPPED", - 8: "TIMED_OUT", - 9: "DYNAMIC_RUNNING", - 10: "RECOVERED", - } - NodeExecution_Phase_value = map[string]int32{ - "UNDEFINED": 0, - "QUEUED": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "FAILING": 4, - "FAILED": 5, - "ABORTED": 6, - "SKIPPED": 7, - "TIMED_OUT": 8, - "DYNAMIC_RUNNING": 9, - "RECOVERED": 10, - } -) - -func (x NodeExecution_Phase) Enum() *NodeExecution_Phase { - p := new(NodeExecution_Phase) - *p = x - return p -} - -func (x NodeExecution_Phase) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NodeExecution_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_execution_proto_enumTypes[1].Descriptor() -} - -func (NodeExecution_Phase) Type() protoreflect.EnumType { - return &file_flyteidl_core_execution_proto_enumTypes[1] -} - -func (x NodeExecution_Phase) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NodeExecution_Phase.Descriptor instead. -func (NodeExecution_Phase) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{1, 0} -} - -type TaskExecution_Phase int32 - -const ( - TaskExecution_UNDEFINED TaskExecution_Phase = 0 - TaskExecution_QUEUED TaskExecution_Phase = 1 - TaskExecution_RUNNING TaskExecution_Phase = 2 - TaskExecution_SUCCEEDED TaskExecution_Phase = 3 - TaskExecution_ABORTED TaskExecution_Phase = 4 - TaskExecution_FAILED TaskExecution_Phase = 5 - // To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing - TaskExecution_INITIALIZING TaskExecution_Phase = 6 - // To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded - TaskExecution_WAITING_FOR_RESOURCES TaskExecution_Phase = 7 -) - -// Enum value maps for TaskExecution_Phase. -var ( - TaskExecution_Phase_name = map[int32]string{ - 0: "UNDEFINED", - 1: "QUEUED", - 2: "RUNNING", - 3: "SUCCEEDED", - 4: "ABORTED", - 5: "FAILED", - 6: "INITIALIZING", - 7: "WAITING_FOR_RESOURCES", - } - TaskExecution_Phase_value = map[string]int32{ - "UNDEFINED": 0, - "QUEUED": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "ABORTED": 4, - "FAILED": 5, - "INITIALIZING": 6, - "WAITING_FOR_RESOURCES": 7, - } -) - -func (x TaskExecution_Phase) Enum() *TaskExecution_Phase { - p := new(TaskExecution_Phase) - *p = x - return p -} - -func (x TaskExecution_Phase) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (TaskExecution_Phase) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_execution_proto_enumTypes[2].Descriptor() -} - -func (TaskExecution_Phase) Type() protoreflect.EnumType { - return &file_flyteidl_core_execution_proto_enumTypes[2] -} - -func (x TaskExecution_Phase) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use TaskExecution_Phase.Descriptor instead. -func (TaskExecution_Phase) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{2, 0} -} - -// Error type: System or User -type ExecutionError_ErrorKind int32 - -const ( - ExecutionError_UNKNOWN ExecutionError_ErrorKind = 0 - ExecutionError_USER ExecutionError_ErrorKind = 1 - ExecutionError_SYSTEM ExecutionError_ErrorKind = 2 -) - -// Enum value maps for ExecutionError_ErrorKind. -var ( - ExecutionError_ErrorKind_name = map[int32]string{ - 0: "UNKNOWN", - 1: "USER", - 2: "SYSTEM", - } - ExecutionError_ErrorKind_value = map[string]int32{ - "UNKNOWN": 0, - "USER": 1, - "SYSTEM": 2, - } -) - -func (x ExecutionError_ErrorKind) Enum() *ExecutionError_ErrorKind { - p := new(ExecutionError_ErrorKind) - *p = x - return p -} - -func (x ExecutionError_ErrorKind) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ExecutionError_ErrorKind) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_execution_proto_enumTypes[3].Descriptor() -} - -func (ExecutionError_ErrorKind) Type() protoreflect.EnumType { - return &file_flyteidl_core_execution_proto_enumTypes[3] -} - -func (x ExecutionError_ErrorKind) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ExecutionError_ErrorKind.Descriptor instead. -func (ExecutionError_ErrorKind) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{3, 0} -} - -type TaskLog_MessageFormat int32 - -const ( - TaskLog_UNKNOWN TaskLog_MessageFormat = 0 - TaskLog_CSV TaskLog_MessageFormat = 1 - TaskLog_JSON TaskLog_MessageFormat = 2 -) - -// Enum value maps for TaskLog_MessageFormat. -var ( - TaskLog_MessageFormat_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CSV", - 2: "JSON", - } - TaskLog_MessageFormat_value = map[string]int32{ - "UNKNOWN": 0, - "CSV": 1, - "JSON": 2, - } -) - -func (x TaskLog_MessageFormat) Enum() *TaskLog_MessageFormat { - p := new(TaskLog_MessageFormat) - *p = x - return p -} - -func (x TaskLog_MessageFormat) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (TaskLog_MessageFormat) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_execution_proto_enumTypes[4].Descriptor() -} - -func (TaskLog_MessageFormat) Type() protoreflect.EnumType { - return &file_flyteidl_core_execution_proto_enumTypes[4] -} - -func (x TaskLog_MessageFormat) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use TaskLog_MessageFormat.Descriptor instead. -func (TaskLog_MessageFormat) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{4, 0} -} - -type QualityOfService_Tier int32 - -const ( - // Default: no quality of service specified. - QualityOfService_UNDEFINED QualityOfService_Tier = 0 - QualityOfService_HIGH QualityOfService_Tier = 1 - QualityOfService_MEDIUM QualityOfService_Tier = 2 - QualityOfService_LOW QualityOfService_Tier = 3 -) - -// Enum value maps for QualityOfService_Tier. -var ( - QualityOfService_Tier_name = map[int32]string{ - 0: "UNDEFINED", - 1: "HIGH", - 2: "MEDIUM", - 3: "LOW", - } - QualityOfService_Tier_value = map[string]int32{ - "UNDEFINED": 0, - "HIGH": 1, - "MEDIUM": 2, - "LOW": 3, - } -) - -func (x QualityOfService_Tier) Enum() *QualityOfService_Tier { - p := new(QualityOfService_Tier) - *p = x - return p -} - -func (x QualityOfService_Tier) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (QualityOfService_Tier) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_execution_proto_enumTypes[5].Descriptor() -} - -func (QualityOfService_Tier) Type() protoreflect.EnumType { - return &file_flyteidl_core_execution_proto_enumTypes[5] -} - -func (x QualityOfService_Tier) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use QualityOfService_Tier.Descriptor instead. -func (QualityOfService_Tier) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{6, 0} -} - -// Indicates various phases of Workflow Execution -type WorkflowExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *WorkflowExecution) Reset() { - *x = WorkflowExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecution) ProtoMessage() {} - -func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead. -func (*WorkflowExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{0} -} - -// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows -type NodeExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NodeExecution) Reset() { - *x = NodeExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecution) ProtoMessage() {} - -func (x *NodeExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecution.ProtoReflect.Descriptor instead. -func (*NodeExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{1} -} - -// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, -// but this is the cumulative list that customers may want to know about for their task. -type TaskExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TaskExecution) Reset() { - *x = TaskExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecution) ProtoMessage() {} - -func (x *TaskExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecution.ProtoReflect.Descriptor instead. -func (*TaskExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{2} -} - -// Represents the error message from the execution. -type ExecutionError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Error code indicates a grouping of a type of error. - // More Info: - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - // Detailed description of the error - including stack trace. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // Full error contents accessible via a URI - ErrorUri string `protobuf:"bytes,3,opt,name=error_uri,json=errorUri,proto3" json:"error_uri,omitempty"` - Kind ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=kind,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"kind,omitempty"` -} - -func (x *ExecutionError) Reset() { - *x = ExecutionError{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionError) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionError) ProtoMessage() {} - -func (x *ExecutionError) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionError.ProtoReflect.Descriptor instead. -func (*ExecutionError) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{3} -} - -func (x *ExecutionError) GetCode() string { - if x != nil { - return x.Code - } - return "" -} - -func (x *ExecutionError) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -func (x *ExecutionError) GetErrorUri() string { - if x != nil { - return x.ErrorUri - } - return "" -} - -func (x *ExecutionError) GetKind() ExecutionError_ErrorKind { - if x != nil { - return x.Kind - } - return ExecutionError_UNKNOWN -} - -// Log information for the task that is specific to a log sink -// When our log story is flushed out, we may have more metadata here like log link expiry -type TaskLog struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - MessageFormat TaskLog_MessageFormat `protobuf:"varint,3,opt,name=message_format,json=messageFormat,proto3,enum=flyteidl.core.TaskLog_MessageFormat" json:"message_format,omitempty"` - Ttl *durationpb.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"` -} - -func (x *TaskLog) Reset() { - *x = TaskLog{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskLog) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskLog) ProtoMessage() {} - -func (x *TaskLog) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskLog.ProtoReflect.Descriptor instead. -func (*TaskLog) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{4} -} - -func (x *TaskLog) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *TaskLog) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TaskLog) GetMessageFormat() TaskLog_MessageFormat { - if x != nil { - return x.MessageFormat - } - return TaskLog_UNKNOWN -} - -func (x *TaskLog) GetTtl() *durationpb.Duration { - if x != nil { - return x.Ttl - } - return nil -} - -// Represents customized execution run-time attributes. -type QualityOfServiceSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates how much queueing delay an execution can tolerate. - QueueingBudget *durationpb.Duration `protobuf:"bytes,1,opt,name=queueing_budget,json=queueingBudget,proto3" json:"queueing_budget,omitempty"` -} - -func (x *QualityOfServiceSpec) Reset() { - *x = QualityOfServiceSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QualityOfServiceSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QualityOfServiceSpec) ProtoMessage() {} - -func (x *QualityOfServiceSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QualityOfServiceSpec.ProtoReflect.Descriptor instead. -func (*QualityOfServiceSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{5} -} - -func (x *QualityOfServiceSpec) GetQueueingBudget() *durationpb.Duration { - if x != nil { - return x.QueueingBudget - } - return nil -} - -// Indicates the priority of an execution. -type QualityOfService struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Designation: - // - // *QualityOfService_Tier_ - // *QualityOfService_Spec - Designation isQualityOfService_Designation `protobuf_oneof:"designation"` -} - -func (x *QualityOfService) Reset() { - *x = QualityOfService{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_execution_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QualityOfService) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QualityOfService) ProtoMessage() {} - -func (x *QualityOfService) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_execution_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QualityOfService.ProtoReflect.Descriptor instead. -func (*QualityOfService) Descriptor() ([]byte, []int) { - return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{6} -} - -func (m *QualityOfService) GetDesignation() isQualityOfService_Designation { - if m != nil { - return m.Designation - } - return nil -} - -func (x *QualityOfService) GetTier() QualityOfService_Tier { - if x, ok := x.GetDesignation().(*QualityOfService_Tier_); ok { - return x.Tier - } - return QualityOfService_UNDEFINED -} - -func (x *QualityOfService) GetSpec() *QualityOfServiceSpec { - if x, ok := x.GetDesignation().(*QualityOfService_Spec); ok { - return x.Spec - } - return nil -} - -type isQualityOfService_Designation interface { - isQualityOfService_Designation() -} - -type QualityOfService_Tier_ struct { - Tier QualityOfService_Tier `protobuf:"varint,1,opt,name=tier,proto3,enum=flyteidl.core.QualityOfService_Tier,oneof"` -} - -type QualityOfService_Spec struct { - Spec *QualityOfServiceSpec `protobuf:"bytes,2,opt,name=spec,proto3,oneof"` -} - -func (*QualityOfService_Tier_) isQualityOfService_Designation() {} - -func (*QualityOfService_Spec) isQualityOfService_Designation() {} - -var File_flyteidl_core_execution_proto protoreflect.FileDescriptor - -var file_flyteidl_core_execution_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, - 0x01, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x0d, - 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, - 0x06, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, - 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, - 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, - 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x41, 0x49, 0x4c, 0x49, 0x4e, 0x47, - 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, - 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, - 0x49, 0x4d, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x08, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x42, - 0x4f, 0x52, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x09, 0x22, 0xb6, 0x01, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, - 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x05, 0x50, - 0x68, 0x61, 0x73, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, - 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, - 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x46, - 0x41, 0x49, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, - 0x45, 0x44, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, - 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0d, - 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, - 0x0f, 0x44, 0x59, 0x4e, 0x41, 0x4d, 0x49, 0x43, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, - 0x10, 0x09, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x45, 0x44, 0x10, - 0x0a, 0x22, 0x96, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x0d, 0x0a, - 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, - 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, - 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, - 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x10, 0x0a, - 0x0c, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, - 0x19, 0x0a, 0x15, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x52, - 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x53, 0x10, 0x07, 0x22, 0xc8, 0x01, 0x0a, 0x0e, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x55, 0x72, 0x69, 0x12, 0x3b, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x52, - 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x2e, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, - 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x59, 0x53, - 0x54, 0x45, 0x4d, 0x10, 0x02, 0x22, 0xda, 0x01, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, - 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, - 0x72, 0x6d, 0x61, 0x74, 0x12, 0x2b, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x74, 0x74, - 0x6c, 0x22, 0x2f, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, - 0x61, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x07, 0x0a, 0x03, 0x43, 0x53, 0x56, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, - 0x10, 0x02, 0x22, 0x5a, 0x0a, 0x14, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x42, 0x0a, 0x0f, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, - 0x71, 0x75, 0x65, 0x75, 0x65, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x22, 0xce, - 0x01, 0x0a, 0x10, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x04, 0x74, 0x69, 0x65, 0x72, 0x12, - 0x39, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, - 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x70, - 0x65, 0x63, 0x48, 0x00, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x34, 0x0a, 0x04, 0x54, 0x69, - 0x65, 0x72, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, - 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x03, - 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, - 0xb4, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, - 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_execution_proto_rawDescOnce sync.Once - file_flyteidl_core_execution_proto_rawDescData = file_flyteidl_core_execution_proto_rawDesc -) - -func file_flyteidl_core_execution_proto_rawDescGZIP() []byte { - file_flyteidl_core_execution_proto_rawDescOnce.Do(func() { - file_flyteidl_core_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_execution_proto_rawDescData) - }) - return file_flyteidl_core_execution_proto_rawDescData -} - -var file_flyteidl_core_execution_proto_enumTypes = make([]protoimpl.EnumInfo, 6) -var file_flyteidl_core_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_flyteidl_core_execution_proto_goTypes = []interface{}{ - (WorkflowExecution_Phase)(0), // 0: flyteidl.core.WorkflowExecution.Phase - (NodeExecution_Phase)(0), // 1: flyteidl.core.NodeExecution.Phase - (TaskExecution_Phase)(0), // 2: flyteidl.core.TaskExecution.Phase - (ExecutionError_ErrorKind)(0), // 3: flyteidl.core.ExecutionError.ErrorKind - (TaskLog_MessageFormat)(0), // 4: flyteidl.core.TaskLog.MessageFormat - (QualityOfService_Tier)(0), // 5: flyteidl.core.QualityOfService.Tier - (*WorkflowExecution)(nil), // 6: flyteidl.core.WorkflowExecution - (*NodeExecution)(nil), // 7: flyteidl.core.NodeExecution - (*TaskExecution)(nil), // 8: flyteidl.core.TaskExecution - (*ExecutionError)(nil), // 9: flyteidl.core.ExecutionError - (*TaskLog)(nil), // 10: flyteidl.core.TaskLog - (*QualityOfServiceSpec)(nil), // 11: flyteidl.core.QualityOfServiceSpec - (*QualityOfService)(nil), // 12: flyteidl.core.QualityOfService - (*durationpb.Duration)(nil), // 13: google.protobuf.Duration -} -var file_flyteidl_core_execution_proto_depIdxs = []int32{ - 3, // 0: flyteidl.core.ExecutionError.kind:type_name -> flyteidl.core.ExecutionError.ErrorKind - 4, // 1: flyteidl.core.TaskLog.message_format:type_name -> flyteidl.core.TaskLog.MessageFormat - 13, // 2: flyteidl.core.TaskLog.ttl:type_name -> google.protobuf.Duration - 13, // 3: flyteidl.core.QualityOfServiceSpec.queueing_budget:type_name -> google.protobuf.Duration - 5, // 4: flyteidl.core.QualityOfService.tier:type_name -> flyteidl.core.QualityOfService.Tier - 11, // 5: flyteidl.core.QualityOfService.spec:type_name -> flyteidl.core.QualityOfServiceSpec - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_execution_proto_init() } -func file_flyteidl_core_execution_proto_init() { - if File_flyteidl_core_execution_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionError); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskLog); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QualityOfServiceSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QualityOfService); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_execution_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*QualityOfService_Tier_)(nil), - (*QualityOfService_Spec)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_execution_proto_rawDesc, - NumEnums: 6, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_execution_proto_goTypes, - DependencyIndexes: file_flyteidl_core_execution_proto_depIdxs, - EnumInfos: file_flyteidl_core_execution_proto_enumTypes, - MessageInfos: file_flyteidl_core_execution_proto_msgTypes, - }.Build() - File_flyteidl_core_execution_proto = out.File - file_flyteidl_core_execution_proto_rawDesc = nil - file_flyteidl_core_execution_proto_goTypes = nil - file_flyteidl_core_execution_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go deleted file mode 100644 index 39d53818f7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go +++ /dev/null @@ -1,627 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/identifier.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Indicates a resource type within Flyte. -type ResourceType int32 - -const ( - ResourceType_UNSPECIFIED ResourceType = 0 - ResourceType_TASK ResourceType = 1 - ResourceType_WORKFLOW ResourceType = 2 - ResourceType_LAUNCH_PLAN ResourceType = 3 - // A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. - // Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects - // in a similar manner to other Flyte objects - ResourceType_DATASET ResourceType = 4 -) - -// Enum value maps for ResourceType. -var ( - ResourceType_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "TASK", - 2: "WORKFLOW", - 3: "LAUNCH_PLAN", - 4: "DATASET", - } - ResourceType_value = map[string]int32{ - "UNSPECIFIED": 0, - "TASK": 1, - "WORKFLOW": 2, - "LAUNCH_PLAN": 3, - "DATASET": 4, - } -) - -func (x ResourceType) Enum() *ResourceType { - p := new(ResourceType) - *p = x - return p -} - -func (x ResourceType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ResourceType) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_identifier_proto_enumTypes[0].Descriptor() -} - -func (ResourceType) Type() protoreflect.EnumType { - return &file_flyteidl_core_identifier_proto_enumTypes[0] -} - -func (x ResourceType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ResourceType.Descriptor instead. -func (ResourceType) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{0} -} - -// Encapsulation of fields that uniquely identifies a Flyte resource. -type Identifier struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifies the specific type of resource that this identifier corresponds to. - ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // Name of the project the resource belongs to. - Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the resource belongs to. - // A domain can be considered as a subset within a specific project. - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - // User provided value for the resource. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - // Specific version of the resource. - Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *Identifier) Reset() { - *x = Identifier{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_identifier_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Identifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Identifier) ProtoMessage() {} - -func (x *Identifier) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_identifier_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Identifier.ProtoReflect.Descriptor instead. -func (*Identifier) Descriptor() ([]byte, []int) { - return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{0} -} - -func (x *Identifier) GetResourceType() ResourceType { - if x != nil { - return x.ResourceType - } - return ResourceType_UNSPECIFIED -} - -func (x *Identifier) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *Identifier) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *Identifier) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Identifier) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Identifier) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Encapsulation of fields that uniquely identifies a Flyte workflow execution -type WorkflowExecutionIdentifier struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of the project the resource belongs to. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the resource belongs to. - // A domain can be considered as a subset within a specific project. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // User or system provided value for the resource. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *WorkflowExecutionIdentifier) Reset() { - *x = WorkflowExecutionIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_identifier_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionIdentifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionIdentifier) ProtoMessage() {} - -func (x *WorkflowExecutionIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_identifier_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionIdentifier.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionIdentifier) Descriptor() ([]byte, []int) { - return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{1} -} - -func (x *WorkflowExecutionIdentifier) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *WorkflowExecutionIdentifier) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *WorkflowExecutionIdentifier) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *WorkflowExecutionIdentifier) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Encapsulation of fields that identify a Flyte node execution entity. -type NodeExecutionIdentifier struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` -} - -func (x *NodeExecutionIdentifier) Reset() { - *x = NodeExecutionIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_identifier_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionIdentifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionIdentifier) ProtoMessage() {} - -func (x *NodeExecutionIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_identifier_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionIdentifier.ProtoReflect.Descriptor instead. -func (*NodeExecutionIdentifier) Descriptor() ([]byte, []int) { - return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{2} -} - -func (x *NodeExecutionIdentifier) GetNodeId() string { - if x != nil { - return x.NodeId - } - return "" -} - -func (x *NodeExecutionIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { - if x != nil { - return x.ExecutionId - } - return nil -} - -// Encapsulation of fields that identify a Flyte task execution entity. -type TaskExecutionIdentifier struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TaskId *Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - NodeExecutionId *NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` - RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` -} - -func (x *TaskExecutionIdentifier) Reset() { - *x = TaskExecutionIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_identifier_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionIdentifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionIdentifier) ProtoMessage() {} - -func (x *TaskExecutionIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_identifier_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionIdentifier.ProtoReflect.Descriptor instead. -func (*TaskExecutionIdentifier) Descriptor() ([]byte, []int) { - return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{3} -} - -func (x *TaskExecutionIdentifier) GetTaskId() *Identifier { - if x != nil { - return x.TaskId - } - return nil -} - -func (x *TaskExecutionIdentifier) GetNodeExecutionId() *NodeExecutionIdentifier { - if x != nil { - return x.NodeExecutionId - } - return nil -} - -func (x *TaskExecutionIdentifier) GetRetryAttempt() uint32 { - if x != nil { - return x.RetryAttempt - } - return 0 -} - -// Encapsulation of fields the uniquely identify a signal. -type SignalIdentifier struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique identifier for a signal. - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // Identifies the Flyte workflow execution this signal belongs to. - ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` -} - -func (x *SignalIdentifier) Reset() { - *x = SignalIdentifier{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_identifier_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalIdentifier) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalIdentifier) ProtoMessage() {} - -func (x *SignalIdentifier) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_identifier_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalIdentifier.ProtoReflect.Descriptor instead. -func (*SignalIdentifier) Descriptor() ([]byte, []int) { - return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{4} -} - -func (x *SignalIdentifier) GetSignalId() string { - if x != nil { - return x.SignalId - } - return "" -} - -func (x *SignalIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { - if x != nil { - return x.ExecutionId - } - return nil -} - -var File_flyteidl_core_identifier_proto protoreflect.FileDescriptor - -var file_flyteidl_core_identifier_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x22, - 0xc0, 0x01, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x40, - 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, - 0x72, 0x67, 0x22, 0x75, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x81, 0x01, 0x0a, 0x17, 0x4e, 0x6f, - 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x4d, - 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xc6, 0x01, - 0x0a, 0x17, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x52, 0x0a, - 0x11, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, - 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x41, - 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x22, 0x7e, 0x0a, 0x10, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x2a, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x41, 0x53, 0x4b, 0x10, - 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x12, - 0x0f, 0x0a, 0x0b, 0x4c, 0x41, 0x55, 0x4e, 0x43, 0x48, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x03, - 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x41, 0x54, 0x41, 0x53, 0x45, 0x54, 0x10, 0x04, 0x42, 0xb5, 0x01, - 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x42, 0x0f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, - 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, - 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_identifier_proto_rawDescOnce sync.Once - file_flyteidl_core_identifier_proto_rawDescData = file_flyteidl_core_identifier_proto_rawDesc -) - -func file_flyteidl_core_identifier_proto_rawDescGZIP() []byte { - file_flyteidl_core_identifier_proto_rawDescOnce.Do(func() { - file_flyteidl_core_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_identifier_proto_rawDescData) - }) - return file_flyteidl_core_identifier_proto_rawDescData -} - -var file_flyteidl_core_identifier_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_core_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_flyteidl_core_identifier_proto_goTypes = []interface{}{ - (ResourceType)(0), // 0: flyteidl.core.ResourceType - (*Identifier)(nil), // 1: flyteidl.core.Identifier - (*WorkflowExecutionIdentifier)(nil), // 2: flyteidl.core.WorkflowExecutionIdentifier - (*NodeExecutionIdentifier)(nil), // 3: flyteidl.core.NodeExecutionIdentifier - (*TaskExecutionIdentifier)(nil), // 4: flyteidl.core.TaskExecutionIdentifier - (*SignalIdentifier)(nil), // 5: flyteidl.core.SignalIdentifier -} -var file_flyteidl_core_identifier_proto_depIdxs = []int32{ - 0, // 0: flyteidl.core.Identifier.resource_type:type_name -> flyteidl.core.ResourceType - 2, // 1: flyteidl.core.NodeExecutionIdentifier.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 1, // 2: flyteidl.core.TaskExecutionIdentifier.task_id:type_name -> flyteidl.core.Identifier - 3, // 3: flyteidl.core.TaskExecutionIdentifier.node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier - 2, // 4: flyteidl.core.SignalIdentifier.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_identifier_proto_init() } -func file_flyteidl_core_identifier_proto_init() { - if File_flyteidl_core_identifier_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_identifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Identifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_identifier_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionIdentifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_identifier_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionIdentifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_identifier_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionIdentifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_identifier_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalIdentifier); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_identifier_proto_rawDesc, - NumEnums: 1, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_identifier_proto_goTypes, - DependencyIndexes: file_flyteidl_core_identifier_proto_depIdxs, - EnumInfos: file_flyteidl_core_identifier_proto_enumTypes, - MessageInfos: file_flyteidl_core_identifier_proto_msgTypes, - }.Build() - File_flyteidl_core_identifier_proto = out.File - file_flyteidl_core_identifier_proto_rawDesc = nil - file_flyteidl_core_identifier_proto_goTypes = nil - file_flyteidl_core_identifier_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go deleted file mode 100644 index f8b8b9ed09..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go +++ /dev/null @@ -1,609 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/interface.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a strongly typed variable. -type Variable struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Variable literal type. - Type *LiteralType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - // +optional string describing input variable - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - // +optional This object allows the user to specify how Artifacts are created. - // name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. - ArtifactPartialId *ArtifactID `protobuf:"bytes,3,opt,name=artifact_partial_id,json=artifactPartialId,proto3" json:"artifact_partial_id,omitempty"` - ArtifactTag *ArtifactTag `protobuf:"bytes,4,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` -} - -func (x *Variable) Reset() { - *x = Variable{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_interface_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Variable) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Variable) ProtoMessage() {} - -func (x *Variable) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_interface_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Variable.ProtoReflect.Descriptor instead. -func (*Variable) Descriptor() ([]byte, []int) { - return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{0} -} - -func (x *Variable) GetType() *LiteralType { - if x != nil { - return x.Type - } - return nil -} - -func (x *Variable) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *Variable) GetArtifactPartialId() *ArtifactID { - if x != nil { - return x.ArtifactPartialId - } - return nil -} - -func (x *Variable) GetArtifactTag() *ArtifactTag { - if x != nil { - return x.ArtifactTag - } - return nil -} - -// A map of Variables -type VariableMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines a map of variable names to variables. - Variables map[string]*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *VariableMap) Reset() { - *x = VariableMap{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_interface_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VariableMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VariableMap) ProtoMessage() {} - -func (x *VariableMap) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_interface_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VariableMap.ProtoReflect.Descriptor instead. -func (*VariableMap) Descriptor() ([]byte, []int) { - return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{1} -} - -func (x *VariableMap) GetVariables() map[string]*Variable { - if x != nil { - return x.Variables - } - return nil -} - -// Defines strongly typed inputs and outputs. -type TypedInterface struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Inputs *VariableMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - Outputs *VariableMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` -} - -func (x *TypedInterface) Reset() { - *x = TypedInterface{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_interface_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TypedInterface) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TypedInterface) ProtoMessage() {} - -func (x *TypedInterface) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_interface_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TypedInterface.ProtoReflect.Descriptor instead. -func (*TypedInterface) Descriptor() ([]byte, []int) { - return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{2} -} - -func (x *TypedInterface) GetInputs() *VariableMap { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *TypedInterface) GetOutputs() *VariableMap { - if x != nil { - return x.Outputs - } - return nil -} - -// A parameter is used as input to a launch plan and has -// the special ability to have a default value or mark itself as required. -type Parameter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required Variable. Defines the type of the variable backing this parameter. - Var *Variable `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - // +optional - // - // Types that are assignable to Behavior: - // - // *Parameter_Default - // *Parameter_Required - // *Parameter_ArtifactQuery - // *Parameter_ArtifactId - Behavior isParameter_Behavior `protobuf_oneof:"behavior"` -} - -func (x *Parameter) Reset() { - *x = Parameter{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_interface_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Parameter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Parameter) ProtoMessage() {} - -func (x *Parameter) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_interface_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Parameter.ProtoReflect.Descriptor instead. -func (*Parameter) Descriptor() ([]byte, []int) { - return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{3} -} - -func (x *Parameter) GetVar() *Variable { - if x != nil { - return x.Var - } - return nil -} - -func (m *Parameter) GetBehavior() isParameter_Behavior { - if m != nil { - return m.Behavior - } - return nil -} - -func (x *Parameter) GetDefault() *Literal { - if x, ok := x.GetBehavior().(*Parameter_Default); ok { - return x.Default - } - return nil -} - -func (x *Parameter) GetRequired() bool { - if x, ok := x.GetBehavior().(*Parameter_Required); ok { - return x.Required - } - return false -} - -func (x *Parameter) GetArtifactQuery() *ArtifactQuery { - if x, ok := x.GetBehavior().(*Parameter_ArtifactQuery); ok { - return x.ArtifactQuery - } - return nil -} - -func (x *Parameter) GetArtifactId() *ArtifactID { - if x, ok := x.GetBehavior().(*Parameter_ArtifactId); ok { - return x.ArtifactId - } - return nil -} - -type isParameter_Behavior interface { - isParameter_Behavior() -} - -type Parameter_Default struct { - // Defines a default value that has to match the variable type defined. - Default *Literal `protobuf:"bytes,2,opt,name=default,proto3,oneof"` -} - -type Parameter_Required struct { - // +optional, is this value required to be filled. - Required bool `protobuf:"varint,3,opt,name=required,proto3,oneof"` -} - -type Parameter_ArtifactQuery struct { - // This is an execution time search basically that should result in exactly one Artifact with a Type that - // matches the type of the variable. - ArtifactQuery *ArtifactQuery `protobuf:"bytes,4,opt,name=artifact_query,json=artifactQuery,proto3,oneof"` -} - -type Parameter_ArtifactId struct { - ArtifactId *ArtifactID `protobuf:"bytes,5,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -func (*Parameter_Default) isParameter_Behavior() {} - -func (*Parameter_Required) isParameter_Behavior() {} - -func (*Parameter_ArtifactQuery) isParameter_Behavior() {} - -func (*Parameter_ArtifactId) isParameter_Behavior() {} - -// A map of Parameters. -type ParameterMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines a map of parameter names to parameters. - Parameters map[string]*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *ParameterMap) Reset() { - *x = ParameterMap{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_interface_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParameterMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParameterMap) ProtoMessage() {} - -func (x *ParameterMap) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_interface_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParameterMap.ProtoReflect.Descriptor instead. -func (*ParameterMap) Descriptor() ([]byte, []int) { - return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{4} -} - -func (x *ParameterMap) GetParameters() map[string]*Parameter { - if x != nil { - return x.Parameters - } - return nil -} - -var File_flyteidl_core_interface_proto protoreflect.FileDescriptor - -var file_flyteidl_core_interface_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x19, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, - 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x01, 0x0a, 0x08, 0x56, 0x61, 0x72, - 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, - 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, - 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x74, - 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x54, 0x61, 0x67, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, - 0x67, 0x22, 0xad, 0x01, 0x0a, 0x0b, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, - 0x70, 0x12, 0x47, 0x0a, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x70, - 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x55, 0x0a, 0x0e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, - 0x01, 0x22, 0x7a, 0x0a, 0x0e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x52, - 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x4d, 0x61, 0x70, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x22, 0x99, 0x02, - 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x03, 0x76, - 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, - 0x65, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x48, - 0x00, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x08, 0x72, 0x65, - 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, - 0x52, 0x0d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, - 0x3c, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x48, - 0x00, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x42, 0x0a, 0x0a, - 0x08, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x22, 0xb4, 0x01, 0x0a, 0x0c, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x12, 0x4b, 0x0a, 0x0a, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x57, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x42, 0xb4, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_interface_proto_rawDescOnce sync.Once - file_flyteidl_core_interface_proto_rawDescData = file_flyteidl_core_interface_proto_rawDesc -) - -func file_flyteidl_core_interface_proto_rawDescGZIP() []byte { - file_flyteidl_core_interface_proto_rawDescOnce.Do(func() { - file_flyteidl_core_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_interface_proto_rawDescData) - }) - return file_flyteidl_core_interface_proto_rawDescData -} - -var file_flyteidl_core_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 7) -var file_flyteidl_core_interface_proto_goTypes = []interface{}{ - (*Variable)(nil), // 0: flyteidl.core.Variable - (*VariableMap)(nil), // 1: flyteidl.core.VariableMap - (*TypedInterface)(nil), // 2: flyteidl.core.TypedInterface - (*Parameter)(nil), // 3: flyteidl.core.Parameter - (*ParameterMap)(nil), // 4: flyteidl.core.ParameterMap - nil, // 5: flyteidl.core.VariableMap.VariablesEntry - nil, // 6: flyteidl.core.ParameterMap.ParametersEntry - (*LiteralType)(nil), // 7: flyteidl.core.LiteralType - (*ArtifactID)(nil), // 8: flyteidl.core.ArtifactID - (*ArtifactTag)(nil), // 9: flyteidl.core.ArtifactTag - (*Literal)(nil), // 10: flyteidl.core.Literal - (*ArtifactQuery)(nil), // 11: flyteidl.core.ArtifactQuery -} -var file_flyteidl_core_interface_proto_depIdxs = []int32{ - 7, // 0: flyteidl.core.Variable.type:type_name -> flyteidl.core.LiteralType - 8, // 1: flyteidl.core.Variable.artifact_partial_id:type_name -> flyteidl.core.ArtifactID - 9, // 2: flyteidl.core.Variable.artifact_tag:type_name -> flyteidl.core.ArtifactTag - 5, // 3: flyteidl.core.VariableMap.variables:type_name -> flyteidl.core.VariableMap.VariablesEntry - 1, // 4: flyteidl.core.TypedInterface.inputs:type_name -> flyteidl.core.VariableMap - 1, // 5: flyteidl.core.TypedInterface.outputs:type_name -> flyteidl.core.VariableMap - 0, // 6: flyteidl.core.Parameter.var:type_name -> flyteidl.core.Variable - 10, // 7: flyteidl.core.Parameter.default:type_name -> flyteidl.core.Literal - 11, // 8: flyteidl.core.Parameter.artifact_query:type_name -> flyteidl.core.ArtifactQuery - 8, // 9: flyteidl.core.Parameter.artifact_id:type_name -> flyteidl.core.ArtifactID - 6, // 10: flyteidl.core.ParameterMap.parameters:type_name -> flyteidl.core.ParameterMap.ParametersEntry - 0, // 11: flyteidl.core.VariableMap.VariablesEntry.value:type_name -> flyteidl.core.Variable - 3, // 12: flyteidl.core.ParameterMap.ParametersEntry.value:type_name -> flyteidl.core.Parameter - 13, // [13:13] is the sub-list for method output_type - 13, // [13:13] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_interface_proto_init() } -func file_flyteidl_core_interface_proto_init() { - if File_flyteidl_core_interface_proto != nil { - return - } - file_flyteidl_core_types_proto_init() - file_flyteidl_core_literals_proto_init() - file_flyteidl_core_artifact_id_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Variable); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_interface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VariableMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_interface_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TypedInterface); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_interface_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Parameter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_interface_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParameterMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_interface_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*Parameter_Default)(nil), - (*Parameter_Required)(nil), - (*Parameter_ArtifactQuery)(nil), - (*Parameter_ArtifactId)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_interface_proto_rawDesc, - NumEnums: 0, - NumMessages: 7, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_interface_proto_goTypes, - DependencyIndexes: file_flyteidl_core_interface_proto_depIdxs, - MessageInfos: file_flyteidl_core_interface_proto_msgTypes, - }.Build() - File_flyteidl_core_interface_proto = out.File - file_flyteidl_core_interface_proto_rawDesc = nil - file_flyteidl_core_interface_proto_goTypes = nil - file_flyteidl_core_interface_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go deleted file mode 100644 index 40b24e30a5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go +++ /dev/null @@ -1,2004 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/literals.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Primitive Types -type Primitive struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines one of simple primitive types. These types will get translated into different programming languages as - // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. - // - // Types that are assignable to Value: - // - // *Primitive_Integer - // *Primitive_FloatValue - // *Primitive_StringValue - // *Primitive_Boolean - // *Primitive_Datetime - // *Primitive_Duration - Value isPrimitive_Value `protobuf_oneof:"value"` -} - -func (x *Primitive) Reset() { - *x = Primitive{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Primitive) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Primitive) ProtoMessage() {} - -func (x *Primitive) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Primitive.ProtoReflect.Descriptor instead. -func (*Primitive) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{0} -} - -func (m *Primitive) GetValue() isPrimitive_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *Primitive) GetInteger() int64 { - if x, ok := x.GetValue().(*Primitive_Integer); ok { - return x.Integer - } - return 0 -} - -func (x *Primitive) GetFloatValue() float64 { - if x, ok := x.GetValue().(*Primitive_FloatValue); ok { - return x.FloatValue - } - return 0 -} - -func (x *Primitive) GetStringValue() string { - if x, ok := x.GetValue().(*Primitive_StringValue); ok { - return x.StringValue - } - return "" -} - -func (x *Primitive) GetBoolean() bool { - if x, ok := x.GetValue().(*Primitive_Boolean); ok { - return x.Boolean - } - return false -} - -func (x *Primitive) GetDatetime() *timestamppb.Timestamp { - if x, ok := x.GetValue().(*Primitive_Datetime); ok { - return x.Datetime - } - return nil -} - -func (x *Primitive) GetDuration() *durationpb.Duration { - if x, ok := x.GetValue().(*Primitive_Duration); ok { - return x.Duration - } - return nil -} - -type isPrimitive_Value interface { - isPrimitive_Value() -} - -type Primitive_Integer struct { - Integer int64 `protobuf:"varint,1,opt,name=integer,proto3,oneof"` -} - -type Primitive_FloatValue struct { - FloatValue float64 `protobuf:"fixed64,2,opt,name=float_value,json=floatValue,proto3,oneof"` -} - -type Primitive_StringValue struct { - StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` -} - -type Primitive_Boolean struct { - Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof"` -} - -type Primitive_Datetime struct { - Datetime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3,oneof"` -} - -type Primitive_Duration struct { - Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3,oneof"` -} - -func (*Primitive_Integer) isPrimitive_Value() {} - -func (*Primitive_FloatValue) isPrimitive_Value() {} - -func (*Primitive_StringValue) isPrimitive_Value() {} - -func (*Primitive_Boolean) isPrimitive_Value() {} - -func (*Primitive_Datetime) isPrimitive_Value() {} - -func (*Primitive_Duration) isPrimitive_Value() {} - -// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally -// undefined since it can be assigned to a scalar of any LiteralType. -type Void struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Void) Reset() { - *x = Void{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Void) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Void) ProtoMessage() {} - -func (x *Void) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Void.ProtoReflect.Descriptor instead. -func (*Void) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{1} -} - -// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. -// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. -type Blob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metadata *BlobMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` -} - -func (x *Blob) Reset() { - *x = Blob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Blob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Blob) ProtoMessage() {} - -func (x *Blob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Blob.ProtoReflect.Descriptor instead. -func (*Blob) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{2} -} - -func (x *Blob) GetMetadata() *BlobMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *Blob) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -type BlobMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type *BlobType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *BlobMetadata) Reset() { - *x = BlobMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BlobMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlobMetadata) ProtoMessage() {} - -func (x *BlobMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BlobMetadata.ProtoReflect.Descriptor instead. -func (*BlobMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{3} -} - -func (x *BlobMetadata) GetType() *BlobType { - if x != nil { - return x.Type - } - return nil -} - -// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. -// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. -type Binary struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` -} - -func (x *Binary) Reset() { - *x = Binary{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Binary) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Binary) ProtoMessage() {} - -func (x *Binary) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Binary.ProtoReflect.Descriptor instead. -func (*Binary) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{4} -} - -func (x *Binary) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - -func (x *Binary) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. -type Schema struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - Type *SchemaType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *Schema) Reset() { - *x = Schema{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schema) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schema) ProtoMessage() {} - -func (x *Schema) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Schema.ProtoReflect.Descriptor instead. -func (*Schema) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{5} -} - -func (x *Schema) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *Schema) GetType() *SchemaType { - if x != nil { - return x.Type - } - return nil -} - -// The runtime representation of a tagged union value. See `UnionType` for more details. -type Union struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Value *Literal `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *Union) Reset() { - *x = Union{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Union) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Union) ProtoMessage() {} - -func (x *Union) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Union.ProtoReflect.Descriptor instead. -func (*Union) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{6} -} - -func (x *Union) GetValue() *Literal { - if x != nil { - return x.Value - } - return nil -} - -func (x *Union) GetType() *LiteralType { - if x != nil { - return x.Type - } - return nil -} - -type StructuredDatasetMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Bundle the type information along with the literal. - // This is here because StructuredDatasets can often be more defined at run time than at compile time. - // That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, - // without any column information, but at run time, you might have that column information. - // flytekit python will copy this type information into the literal, from the type information, if not provided by - // the various plugins (encoders). - // Since this field is run time generated, it's not used for any type checking. - StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,1,opt,name=structured_dataset_type,json=structuredDatasetType,proto3" json:"structured_dataset_type,omitempty"` -} - -func (x *StructuredDatasetMetadata) Reset() { - *x = StructuredDatasetMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StructuredDatasetMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StructuredDatasetMetadata) ProtoMessage() {} - -func (x *StructuredDatasetMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StructuredDatasetMetadata.ProtoReflect.Descriptor instead. -func (*StructuredDatasetMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{7} -} - -func (x *StructuredDatasetMetadata) GetStructuredDatasetType() *StructuredDatasetType { - if x != nil { - return x.StructuredDatasetType - } - return nil -} - -type StructuredDataset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // String location uniquely identifying where the data is. - // Should start with the storage location (e.g. s3://, gs://, bq://, etc.) - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - Metadata *StructuredDatasetMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *StructuredDataset) Reset() { - *x = StructuredDataset{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StructuredDataset) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StructuredDataset) ProtoMessage() {} - -func (x *StructuredDataset) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StructuredDataset.ProtoReflect.Descriptor instead. -func (*StructuredDataset) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{8} -} - -func (x *StructuredDataset) GetUri() string { - if x != nil { - return x.Uri - } - return "" -} - -func (x *StructuredDataset) GetMetadata() *StructuredDatasetMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -type Scalar struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: - // - // *Scalar_Primitive - // *Scalar_Blob - // *Scalar_Binary - // *Scalar_Schema - // *Scalar_NoneType - // *Scalar_Error - // *Scalar_Generic - // *Scalar_StructuredDataset - // *Scalar_Union - Value isScalar_Value `protobuf_oneof:"value"` -} - -func (x *Scalar) Reset() { - *x = Scalar{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Scalar) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Scalar) ProtoMessage() {} - -func (x *Scalar) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Scalar.ProtoReflect.Descriptor instead. -func (*Scalar) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{9} -} - -func (m *Scalar) GetValue() isScalar_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *Scalar) GetPrimitive() *Primitive { - if x, ok := x.GetValue().(*Scalar_Primitive); ok { - return x.Primitive - } - return nil -} - -func (x *Scalar) GetBlob() *Blob { - if x, ok := x.GetValue().(*Scalar_Blob); ok { - return x.Blob - } - return nil -} - -func (x *Scalar) GetBinary() *Binary { - if x, ok := x.GetValue().(*Scalar_Binary); ok { - return x.Binary - } - return nil -} - -func (x *Scalar) GetSchema() *Schema { - if x, ok := x.GetValue().(*Scalar_Schema); ok { - return x.Schema - } - return nil -} - -func (x *Scalar) GetNoneType() *Void { - if x, ok := x.GetValue().(*Scalar_NoneType); ok { - return x.NoneType - } - return nil -} - -func (x *Scalar) GetError() *Error { - if x, ok := x.GetValue().(*Scalar_Error); ok { - return x.Error - } - return nil -} - -func (x *Scalar) GetGeneric() *structpb.Struct { - if x, ok := x.GetValue().(*Scalar_Generic); ok { - return x.Generic - } - return nil -} - -func (x *Scalar) GetStructuredDataset() *StructuredDataset { - if x, ok := x.GetValue().(*Scalar_StructuredDataset); ok { - return x.StructuredDataset - } - return nil -} - -func (x *Scalar) GetUnion() *Union { - if x, ok := x.GetValue().(*Scalar_Union); ok { - return x.Union - } - return nil -} - -type isScalar_Value interface { - isScalar_Value() -} - -type Scalar_Primitive struct { - Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` -} - -type Scalar_Blob struct { - Blob *Blob `protobuf:"bytes,2,opt,name=blob,proto3,oneof"` -} - -type Scalar_Binary struct { - Binary *Binary `protobuf:"bytes,3,opt,name=binary,proto3,oneof"` -} - -type Scalar_Schema struct { - Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3,oneof"` -} - -type Scalar_NoneType struct { - NoneType *Void `protobuf:"bytes,5,opt,name=none_type,json=noneType,proto3,oneof"` -} - -type Scalar_Error struct { - Error *Error `protobuf:"bytes,6,opt,name=error,proto3,oneof"` -} - -type Scalar_Generic struct { - Generic *structpb.Struct `protobuf:"bytes,7,opt,name=generic,proto3,oneof"` -} - -type Scalar_StructuredDataset struct { - StructuredDataset *StructuredDataset `protobuf:"bytes,8,opt,name=structured_dataset,json=structuredDataset,proto3,oneof"` -} - -type Scalar_Union struct { - Union *Union `protobuf:"bytes,9,opt,name=union,proto3,oneof"` -} - -func (*Scalar_Primitive) isScalar_Value() {} - -func (*Scalar_Blob) isScalar_Value() {} - -func (*Scalar_Binary) isScalar_Value() {} - -func (*Scalar_Schema) isScalar_Value() {} - -func (*Scalar_NoneType) isScalar_Value() {} - -func (*Scalar_Error) isScalar_Value() {} - -func (*Scalar_Generic) isScalar_Value() {} - -func (*Scalar_StructuredDataset) isScalar_Value() {} - -func (*Scalar_Union) isScalar_Value() {} - -// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. -type Literal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: - // - // *Literal_Scalar - // *Literal_Collection - // *Literal_Map - Value isLiteral_Value `protobuf_oneof:"value"` - // A hash representing this literal. - // This is used for caching purposes. For more details refer to RFC 1893 - // (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) - Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` - // Additional metadata for literals. - Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *Literal) Reset() { - *x = Literal{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Literal) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Literal) ProtoMessage() {} - -func (x *Literal) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Literal.ProtoReflect.Descriptor instead. -func (*Literal) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{10} -} - -func (m *Literal) GetValue() isLiteral_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *Literal) GetScalar() *Scalar { - if x, ok := x.GetValue().(*Literal_Scalar); ok { - return x.Scalar - } - return nil -} - -func (x *Literal) GetCollection() *LiteralCollection { - if x, ok := x.GetValue().(*Literal_Collection); ok { - return x.Collection - } - return nil -} - -func (x *Literal) GetMap() *LiteralMap { - if x, ok := x.GetValue().(*Literal_Map); ok { - return x.Map - } - return nil -} - -func (x *Literal) GetHash() string { - if x != nil { - return x.Hash - } - return "" -} - -func (x *Literal) GetMetadata() map[string]string { - if x != nil { - return x.Metadata - } - return nil -} - -type isLiteral_Value interface { - isLiteral_Value() -} - -type Literal_Scalar struct { - // A simple value. - Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` -} - -type Literal_Collection struct { - // A collection of literals to allow nesting. - Collection *LiteralCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` -} - -type Literal_Map struct { - // A map of strings to literals. - Map *LiteralMap `protobuf:"bytes,3,opt,name=map,proto3,oneof"` -} - -func (*Literal_Scalar) isLiteral_Value() {} - -func (*Literal_Collection) isLiteral_Value() {} - -func (*Literal_Map) isLiteral_Value() {} - -// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -type LiteralCollection struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Literals []*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty"` -} - -func (x *LiteralCollection) Reset() { - *x = LiteralCollection{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LiteralCollection) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LiteralCollection) ProtoMessage() {} - -func (x *LiteralCollection) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LiteralCollection.ProtoReflect.Descriptor instead. -func (*LiteralCollection) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{11} -} - -func (x *LiteralCollection) GetLiterals() []*Literal { - if x != nil { - return x.Literals - } - return nil -} - -// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -type LiteralMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Literals map[string]*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *LiteralMap) Reset() { - *x = LiteralMap{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LiteralMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LiteralMap) ProtoMessage() {} - -func (x *LiteralMap) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LiteralMap.ProtoReflect.Descriptor instead. -func (*LiteralMap) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{12} -} - -func (x *LiteralMap) GetLiterals() map[string]*Literal { - if x != nil { - return x.Literals - } - return nil -} - -// A collection of BindingData items. -type BindingDataCollection struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bindings []*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` -} - -func (x *BindingDataCollection) Reset() { - *x = BindingDataCollection{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BindingDataCollection) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BindingDataCollection) ProtoMessage() {} - -func (x *BindingDataCollection) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BindingDataCollection.ProtoReflect.Descriptor instead. -func (*BindingDataCollection) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{13} -} - -func (x *BindingDataCollection) GetBindings() []*BindingData { - if x != nil { - return x.Bindings - } - return nil -} - -// A map of BindingData items. -type BindingDataMap struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bindings map[string]*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *BindingDataMap) Reset() { - *x = BindingDataMap{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BindingDataMap) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BindingDataMap) ProtoMessage() {} - -func (x *BindingDataMap) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BindingDataMap.ProtoReflect.Descriptor instead. -func (*BindingDataMap) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{14} -} - -func (x *BindingDataMap) GetBindings() map[string]*BindingData { - if x != nil { - return x.Bindings - } - return nil -} - -type UnionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TargetType *LiteralType `protobuf:"bytes,1,opt,name=targetType,proto3" json:"targetType,omitempty"` -} - -func (x *UnionInfo) Reset() { - *x = UnionInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnionInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnionInfo) ProtoMessage() {} - -func (x *UnionInfo) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnionInfo.ProtoReflect.Descriptor instead. -func (*UnionInfo) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{15} -} - -func (x *UnionInfo) GetTargetType() *LiteralType { - if x != nil { - return x.TargetType - } - return nil -} - -// Specifies either a simple value or a reference to another output. -type BindingData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: - // - // *BindingData_Scalar - // *BindingData_Collection - // *BindingData_Promise - // *BindingData_Map - Value isBindingData_Value `protobuf_oneof:"value"` - Union *UnionInfo `protobuf:"bytes,5,opt,name=union,proto3" json:"union,omitempty"` -} - -func (x *BindingData) Reset() { - *x = BindingData{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BindingData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BindingData) ProtoMessage() {} - -func (x *BindingData) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BindingData.ProtoReflect.Descriptor instead. -func (*BindingData) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{16} -} - -func (m *BindingData) GetValue() isBindingData_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *BindingData) GetScalar() *Scalar { - if x, ok := x.GetValue().(*BindingData_Scalar); ok { - return x.Scalar - } - return nil -} - -func (x *BindingData) GetCollection() *BindingDataCollection { - if x, ok := x.GetValue().(*BindingData_Collection); ok { - return x.Collection - } - return nil -} - -func (x *BindingData) GetPromise() *OutputReference { - if x, ok := x.GetValue().(*BindingData_Promise); ok { - return x.Promise - } - return nil -} - -func (x *BindingData) GetMap() *BindingDataMap { - if x, ok := x.GetValue().(*BindingData_Map); ok { - return x.Map - } - return nil -} - -func (x *BindingData) GetUnion() *UnionInfo { - if x != nil { - return x.Union - } - return nil -} - -type isBindingData_Value interface { - isBindingData_Value() -} - -type BindingData_Scalar struct { - // A simple scalar value. - Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` -} - -type BindingData_Collection struct { - // A collection of binding data. This allows nesting of binding data to any number - // of levels. - Collection *BindingDataCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` -} - -type BindingData_Promise struct { - // References an output promised by another node. - Promise *OutputReference `protobuf:"bytes,3,opt,name=promise,proto3,oneof"` -} - -type BindingData_Map struct { - // A map of bindings. The key is always a string. - Map *BindingDataMap `protobuf:"bytes,4,opt,name=map,proto3,oneof"` -} - -func (*BindingData_Scalar) isBindingData_Value() {} - -func (*BindingData_Collection) isBindingData_Value() {} - -func (*BindingData_Promise) isBindingData_Value() {} - -func (*BindingData_Map) isBindingData_Value() {} - -// An input/output binding of a variable to either static value or a node output. -type Binding struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Variable name must match an input/output variable of the node. - Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - // Data to use to bind this variable. - Binding *BindingData `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"` -} - -func (x *Binding) Reset() { - *x = Binding{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Binding) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Binding) ProtoMessage() {} - -func (x *Binding) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Binding.ProtoReflect.Descriptor instead. -func (*Binding) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{17} -} - -func (x *Binding) GetVar() string { - if x != nil { - return x.Var - } - return "" -} - -func (x *Binding) GetBinding() *BindingData { - if x != nil { - return x.Binding - } - return nil -} - -// A generic key value pair. -type KeyValuePair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // required. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // +optional. - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *KeyValuePair) Reset() { - *x = KeyValuePair{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KeyValuePair) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyValuePair) ProtoMessage() {} - -func (x *KeyValuePair) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead. -func (*KeyValuePair) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{18} -} - -func (x *KeyValuePair) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *KeyValuePair) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -// Retry strategy associated with an executable unit. -type RetryStrategy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Number of retries. Retries will be consumed when the job fails with a recoverable error. - // The number of retries must be less than or equals to 10. - Retries uint32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` -} - -func (x *RetryStrategy) Reset() { - *x = RetryStrategy{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_literals_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RetryStrategy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RetryStrategy) ProtoMessage() {} - -func (x *RetryStrategy) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_literals_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RetryStrategy.ProtoReflect.Descriptor instead. -func (*RetryStrategy) Descriptor() ([]byte, []int) { - return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{19} -} - -func (x *RetryStrategy) GetRetries() uint32 { - if x != nil { - return x.Retries - } - return 0 -} - -var File_flyteidl_core_literals_proto protoreflect.FileDescriptor - -var file_flyteidl_core_literals_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x02, 0x0a, 0x09, 0x50, 0x72, 0x69, 0x6d, - 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1a, 0x0a, 0x07, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, - 0x72, 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x07, 0x62, 0x6f, 0x6f, - 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x62, 0x6f, - 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x38, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, - 0x37, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x06, 0x0a, 0x04, 0x56, 0x6f, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x04, 0x42, 0x6c, 0x6f, - 0x62, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x3b, 0x0a, 0x0c, - 0x42, 0x6c, 0x6f, 0x62, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x42, 0x69, 0x6e, - 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x49, 0x0a, 0x06, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x65, 0x0a, 0x05, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x12, - 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, - 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x79, 0x0a, - 0x19, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x17, 0x73, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x15, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x6b, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x10, 0x0a, - 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, - 0x44, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xf0, 0x03, 0x0a, 0x06, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, - 0x12, 0x38, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x48, 0x00, 0x52, - 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x62, 0x6c, - 0x6f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x48, 0x00, 0x52, - 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x2f, 0x0a, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x48, 0x00, 0x52, 0x06, - 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x48, 0x00, 0x52, - 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x09, 0x6e, 0x6f, 0x6e, 0x65, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x6f, 0x69, 0x64, 0x48, - 0x00, 0x52, 0x08, 0x6e, 0x6f, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x67, 0x65, 0x6e, - 0x65, 0x72, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x12, 0x51, - 0x0a, 0x12, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, - 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x48, 0x00, 0x52, 0x11, - 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x42, - 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc9, 0x02, 0x0a, 0x07, 0x4c, 0x69, 0x74, - 0x65, 0x72, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x06, 0x73, - 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x42, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x63, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x03, 0x6d, 0x61, 0x70, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, - 0x70, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x61, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x40, 0x0a, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, - 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, - 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x11, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x43, - 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x6c, 0x69, 0x74, - 0x65, 0x72, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x52, 0x08, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x22, 0xa6, 0x01, - 0x0a, 0x0a, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x12, 0x43, 0x0a, 0x08, - 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, - 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, - 0x73, 0x1a, 0x53, 0x0a, 0x0d, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4f, 0x0a, 0x15, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x36, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x62, - 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x42, 0x69, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x70, 0x12, 0x47, 0x0a, 0x08, 0x62, 0x69, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, - 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x70, 0x2e, 0x42, 0x69, 0x6e, 0x64, - 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x73, 0x1a, 0x57, 0x0a, 0x0d, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, - 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x47, 0x0a, 0x09, - 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x0a, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, - 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xae, 0x02, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x06, - 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, - 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, - 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, - 0x00, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x03, 0x6d, 0x61, - 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, - 0x61, 0x74, 0x61, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x61, 0x70, 0x12, 0x2e, 0x0a, - 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x55, 0x6e, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x51, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, - 0x67, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x76, 0x61, 0x72, 0x12, 0x34, 0x0a, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, - 0x52, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x36, 0x0a, 0x0c, 0x4b, 0x65, 0x79, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x29, 0x0a, 0x0d, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, - 0x67, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0xb3, 0x01, 0x0a, - 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x42, 0x0d, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, - 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, - 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, - 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_literals_proto_rawDescOnce sync.Once - file_flyteidl_core_literals_proto_rawDescData = file_flyteidl_core_literals_proto_rawDesc -) - -func file_flyteidl_core_literals_proto_rawDescGZIP() []byte { - file_flyteidl_core_literals_proto_rawDescOnce.Do(func() { - file_flyteidl_core_literals_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_literals_proto_rawDescData) - }) - return file_flyteidl_core_literals_proto_rawDescData -} - -var file_flyteidl_core_literals_proto_msgTypes = make([]protoimpl.MessageInfo, 23) -var file_flyteidl_core_literals_proto_goTypes = []interface{}{ - (*Primitive)(nil), // 0: flyteidl.core.Primitive - (*Void)(nil), // 1: flyteidl.core.Void - (*Blob)(nil), // 2: flyteidl.core.Blob - (*BlobMetadata)(nil), // 3: flyteidl.core.BlobMetadata - (*Binary)(nil), // 4: flyteidl.core.Binary - (*Schema)(nil), // 5: flyteidl.core.Schema - (*Union)(nil), // 6: flyteidl.core.Union - (*StructuredDatasetMetadata)(nil), // 7: flyteidl.core.StructuredDatasetMetadata - (*StructuredDataset)(nil), // 8: flyteidl.core.StructuredDataset - (*Scalar)(nil), // 9: flyteidl.core.Scalar - (*Literal)(nil), // 10: flyteidl.core.Literal - (*LiteralCollection)(nil), // 11: flyteidl.core.LiteralCollection - (*LiteralMap)(nil), // 12: flyteidl.core.LiteralMap - (*BindingDataCollection)(nil), // 13: flyteidl.core.BindingDataCollection - (*BindingDataMap)(nil), // 14: flyteidl.core.BindingDataMap - (*UnionInfo)(nil), // 15: flyteidl.core.UnionInfo - (*BindingData)(nil), // 16: flyteidl.core.BindingData - (*Binding)(nil), // 17: flyteidl.core.Binding - (*KeyValuePair)(nil), // 18: flyteidl.core.KeyValuePair - (*RetryStrategy)(nil), // 19: flyteidl.core.RetryStrategy - nil, // 20: flyteidl.core.Literal.MetadataEntry - nil, // 21: flyteidl.core.LiteralMap.LiteralsEntry - nil, // 22: flyteidl.core.BindingDataMap.BindingsEntry - (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 24: google.protobuf.Duration - (*BlobType)(nil), // 25: flyteidl.core.BlobType - (*SchemaType)(nil), // 26: flyteidl.core.SchemaType - (*LiteralType)(nil), // 27: flyteidl.core.LiteralType - (*StructuredDatasetType)(nil), // 28: flyteidl.core.StructuredDatasetType - (*Error)(nil), // 29: flyteidl.core.Error - (*structpb.Struct)(nil), // 30: google.protobuf.Struct - (*OutputReference)(nil), // 31: flyteidl.core.OutputReference -} -var file_flyteidl_core_literals_proto_depIdxs = []int32{ - 23, // 0: flyteidl.core.Primitive.datetime:type_name -> google.protobuf.Timestamp - 24, // 1: flyteidl.core.Primitive.duration:type_name -> google.protobuf.Duration - 3, // 2: flyteidl.core.Blob.metadata:type_name -> flyteidl.core.BlobMetadata - 25, // 3: flyteidl.core.BlobMetadata.type:type_name -> flyteidl.core.BlobType - 26, // 4: flyteidl.core.Schema.type:type_name -> flyteidl.core.SchemaType - 10, // 5: flyteidl.core.Union.value:type_name -> flyteidl.core.Literal - 27, // 6: flyteidl.core.Union.type:type_name -> flyteidl.core.LiteralType - 28, // 7: flyteidl.core.StructuredDatasetMetadata.structured_dataset_type:type_name -> flyteidl.core.StructuredDatasetType - 7, // 8: flyteidl.core.StructuredDataset.metadata:type_name -> flyteidl.core.StructuredDatasetMetadata - 0, // 9: flyteidl.core.Scalar.primitive:type_name -> flyteidl.core.Primitive - 2, // 10: flyteidl.core.Scalar.blob:type_name -> flyteidl.core.Blob - 4, // 11: flyteidl.core.Scalar.binary:type_name -> flyteidl.core.Binary - 5, // 12: flyteidl.core.Scalar.schema:type_name -> flyteidl.core.Schema - 1, // 13: flyteidl.core.Scalar.none_type:type_name -> flyteidl.core.Void - 29, // 14: flyteidl.core.Scalar.error:type_name -> flyteidl.core.Error - 30, // 15: flyteidl.core.Scalar.generic:type_name -> google.protobuf.Struct - 8, // 16: flyteidl.core.Scalar.structured_dataset:type_name -> flyteidl.core.StructuredDataset - 6, // 17: flyteidl.core.Scalar.union:type_name -> flyteidl.core.Union - 9, // 18: flyteidl.core.Literal.scalar:type_name -> flyteidl.core.Scalar - 11, // 19: flyteidl.core.Literal.collection:type_name -> flyteidl.core.LiteralCollection - 12, // 20: flyteidl.core.Literal.map:type_name -> flyteidl.core.LiteralMap - 20, // 21: flyteidl.core.Literal.metadata:type_name -> flyteidl.core.Literal.MetadataEntry - 10, // 22: flyteidl.core.LiteralCollection.literals:type_name -> flyteidl.core.Literal - 21, // 23: flyteidl.core.LiteralMap.literals:type_name -> flyteidl.core.LiteralMap.LiteralsEntry - 16, // 24: flyteidl.core.BindingDataCollection.bindings:type_name -> flyteidl.core.BindingData - 22, // 25: flyteidl.core.BindingDataMap.bindings:type_name -> flyteidl.core.BindingDataMap.BindingsEntry - 27, // 26: flyteidl.core.UnionInfo.targetType:type_name -> flyteidl.core.LiteralType - 9, // 27: flyteidl.core.BindingData.scalar:type_name -> flyteidl.core.Scalar - 13, // 28: flyteidl.core.BindingData.collection:type_name -> flyteidl.core.BindingDataCollection - 31, // 29: flyteidl.core.BindingData.promise:type_name -> flyteidl.core.OutputReference - 14, // 30: flyteidl.core.BindingData.map:type_name -> flyteidl.core.BindingDataMap - 15, // 31: flyteidl.core.BindingData.union:type_name -> flyteidl.core.UnionInfo - 16, // 32: flyteidl.core.Binding.binding:type_name -> flyteidl.core.BindingData - 10, // 33: flyteidl.core.LiteralMap.LiteralsEntry.value:type_name -> flyteidl.core.Literal - 16, // 34: flyteidl.core.BindingDataMap.BindingsEntry.value:type_name -> flyteidl.core.BindingData - 35, // [35:35] is the sub-list for method output_type - 35, // [35:35] is the sub-list for method input_type - 35, // [35:35] is the sub-list for extension type_name - 35, // [35:35] is the sub-list for extension extendee - 0, // [0:35] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_literals_proto_init() } -func file_flyteidl_core_literals_proto_init() { - if File_flyteidl_core_literals_proto != nil { - return - } - file_flyteidl_core_types_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_literals_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Primitive); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Void); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Blob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlobMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Binary); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schema); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Union); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StructuredDatasetMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StructuredDataset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Scalar); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Literal); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiteralCollection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiteralMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BindingDataCollection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BindingDataMap); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnionInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BindingData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Binding); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyValuePair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_literals_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RetryStrategy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_literals_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*Primitive_Integer)(nil), - (*Primitive_FloatValue)(nil), - (*Primitive_StringValue)(nil), - (*Primitive_Boolean)(nil), - (*Primitive_Datetime)(nil), - (*Primitive_Duration)(nil), - } - file_flyteidl_core_literals_proto_msgTypes[9].OneofWrappers = []interface{}{ - (*Scalar_Primitive)(nil), - (*Scalar_Blob)(nil), - (*Scalar_Binary)(nil), - (*Scalar_Schema)(nil), - (*Scalar_NoneType)(nil), - (*Scalar_Error)(nil), - (*Scalar_Generic)(nil), - (*Scalar_StructuredDataset)(nil), - (*Scalar_Union)(nil), - } - file_flyteidl_core_literals_proto_msgTypes[10].OneofWrappers = []interface{}{ - (*Literal_Scalar)(nil), - (*Literal_Collection)(nil), - (*Literal_Map)(nil), - } - file_flyteidl_core_literals_proto_msgTypes[16].OneofWrappers = []interface{}{ - (*BindingData_Scalar)(nil), - (*BindingData_Collection)(nil), - (*BindingData_Promise)(nil), - (*BindingData_Map)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_literals_proto_rawDesc, - NumEnums: 0, - NumMessages: 23, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_literals_proto_goTypes, - DependencyIndexes: file_flyteidl_core_literals_proto_depIdxs, - MessageInfos: file_flyteidl_core_literals_proto_msgTypes, - }.Build() - File_flyteidl_core_literals_proto = out.File - file_flyteidl_core_literals_proto_rawDesc = nil - file_flyteidl_core_literals_proto_goTypes = nil - file_flyteidl_core_literals_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go deleted file mode 100644 index 54721deeb3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go +++ /dev/null @@ -1,381 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/metrics.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation -// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more -// precise definitions. -type Span struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // start_time defines the instance this span began. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // end_time defines the instance this span completed. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Types that are assignable to Id: - // - // *Span_WorkflowId - // *Span_NodeId - // *Span_TaskId - // *Span_OperationId - Id isSpan_Id `protobuf_oneof:"id"` - // spans defines a collection of Spans that breakdown this execution. - Spans []*Span `protobuf:"bytes,7,rep,name=spans,proto3" json:"spans,omitempty"` -} - -func (x *Span) Reset() { - *x = Span{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_metrics_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Span) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Span) ProtoMessage() {} - -func (x *Span) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_metrics_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Span.ProtoReflect.Descriptor instead. -func (*Span) Descriptor() ([]byte, []int) { - return file_flyteidl_core_metrics_proto_rawDescGZIP(), []int{0} -} - -func (x *Span) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *Span) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (m *Span) GetId() isSpan_Id { - if m != nil { - return m.Id - } - return nil -} - -func (x *Span) GetWorkflowId() *WorkflowExecutionIdentifier { - if x, ok := x.GetId().(*Span_WorkflowId); ok { - return x.WorkflowId - } - return nil -} - -func (x *Span) GetNodeId() *NodeExecutionIdentifier { - if x, ok := x.GetId().(*Span_NodeId); ok { - return x.NodeId - } - return nil -} - -func (x *Span) GetTaskId() *TaskExecutionIdentifier { - if x, ok := x.GetId().(*Span_TaskId); ok { - return x.TaskId - } - return nil -} - -func (x *Span) GetOperationId() string { - if x, ok := x.GetId().(*Span_OperationId); ok { - return x.OperationId - } - return "" -} - -func (x *Span) GetSpans() []*Span { - if x != nil { - return x.Spans - } - return nil -} - -type isSpan_Id interface { - isSpan_Id() -} - -type Span_WorkflowId struct { - // workflow_id is the id of the workflow execution this Span represents. - WorkflowId *WorkflowExecutionIdentifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3,oneof"` -} - -type Span_NodeId struct { - // node_id is the id of the node execution this Span represents. - NodeId *NodeExecutionIdentifier `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3,oneof"` -} - -type Span_TaskId struct { - // task_id is the id of the task execution this Span represents. - TaskId *TaskExecutionIdentifier `protobuf:"bytes,5,opt,name=task_id,json=taskId,proto3,oneof"` -} - -type Span_OperationId struct { - // operation_id is the id of a unique operation that this Span represents. - OperationId string `protobuf:"bytes,6,opt,name=operation_id,json=operationId,proto3,oneof"` -} - -func (*Span_WorkflowId) isSpan_Id() {} - -func (*Span_NodeId) isSpan_Id() {} - -func (*Span_TaskId) isSpan_Id() {} - -func (*Span_OperationId) isSpan_Id() {} - -// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. -type ExecutionMetricResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. - Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` - // The result data in prometheus range query result format - // https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats. - // This may include multiple time series, differentiated by their metric labels. - // Start time is greater of (execution attempt start, 48h ago) - // End time is lesser of (execution attempt end, now) - Data *structpb.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *ExecutionMetricResult) Reset() { - *x = ExecutionMetricResult{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_metrics_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionMetricResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionMetricResult) ProtoMessage() {} - -func (x *ExecutionMetricResult) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_metrics_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionMetricResult.ProtoReflect.Descriptor instead. -func (*ExecutionMetricResult) Descriptor() ([]byte, []int) { - return file_flyteidl_core_metrics_proto_rawDescGZIP(), []int{1} -} - -func (x *ExecutionMetricResult) GetMetric() string { - if x != nil { - return x.Metric - } - return "" -} - -func (x *ExecutionMetricResult) GetData() *structpb.Struct { - if x != nil { - return x.Data - } - return nil -} - -var File_flyteidl_core_metrics_proto protoreflect.FileDescriptor - -var file_flyteidl_core_metrics_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x03, 0x0a, 0x04, - 0x53, 0x70, 0x61, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, - 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, - 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x12, 0x29, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x42, 0x04, 0x0a, 0x02, 0x69, - 0x64, 0x22, 0x5c, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, - 0x69, 0x63, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, - 0xb2, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, - 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_metrics_proto_rawDescOnce sync.Once - file_flyteidl_core_metrics_proto_rawDescData = file_flyteidl_core_metrics_proto_rawDesc -) - -func file_flyteidl_core_metrics_proto_rawDescGZIP() []byte { - file_flyteidl_core_metrics_proto_rawDescOnce.Do(func() { - file_flyteidl_core_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_metrics_proto_rawDescData) - }) - return file_flyteidl_core_metrics_proto_rawDescData -} - -var file_flyteidl_core_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_flyteidl_core_metrics_proto_goTypes = []interface{}{ - (*Span)(nil), // 0: flyteidl.core.Span - (*ExecutionMetricResult)(nil), // 1: flyteidl.core.ExecutionMetricResult - (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp - (*WorkflowExecutionIdentifier)(nil), // 3: flyteidl.core.WorkflowExecutionIdentifier - (*NodeExecutionIdentifier)(nil), // 4: flyteidl.core.NodeExecutionIdentifier - (*TaskExecutionIdentifier)(nil), // 5: flyteidl.core.TaskExecutionIdentifier - (*structpb.Struct)(nil), // 6: google.protobuf.Struct -} -var file_flyteidl_core_metrics_proto_depIdxs = []int32{ - 2, // 0: flyteidl.core.Span.start_time:type_name -> google.protobuf.Timestamp - 2, // 1: flyteidl.core.Span.end_time:type_name -> google.protobuf.Timestamp - 3, // 2: flyteidl.core.Span.workflow_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 4, // 3: flyteidl.core.Span.node_id:type_name -> flyteidl.core.NodeExecutionIdentifier - 5, // 4: flyteidl.core.Span.task_id:type_name -> flyteidl.core.TaskExecutionIdentifier - 0, // 5: flyteidl.core.Span.spans:type_name -> flyteidl.core.Span - 6, // 6: flyteidl.core.ExecutionMetricResult.data:type_name -> google.protobuf.Struct - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_metrics_proto_init() } -func file_flyteidl_core_metrics_proto_init() { - if File_flyteidl_core_metrics_proto != nil { - return - } - file_flyteidl_core_identifier_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Span); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionMetricResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_metrics_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*Span_WorkflowId)(nil), - (*Span_NodeId)(nil), - (*Span_TaskId)(nil), - (*Span_OperationId)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_metrics_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_metrics_proto_goTypes, - DependencyIndexes: file_flyteidl_core_metrics_proto_depIdxs, - MessageInfos: file_flyteidl_core_metrics_proto_msgTypes, - }.Build() - File_flyteidl_core_metrics_proto = out.File - file_flyteidl_core_metrics_proto_rawDesc = nil - file_flyteidl_core_metrics_proto_goTypes = nil - file_flyteidl_core_metrics_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.pb.go b/flyteidl/gen/pb-go/flyteidl/core/security.pb.go deleted file mode 100644 index e3ee1e1b1b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/security.pb.go +++ /dev/null @@ -1,727 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/security.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Secret_MountType int32 - -const ( - // Default case, indicates the client can tolerate either mounting options. - Secret_ANY Secret_MountType = 0 - // ENV_VAR indicates the secret needs to be mounted as an environment variable. - Secret_ENV_VAR Secret_MountType = 1 - // FILE indicates the secret needs to be mounted as a file. - Secret_FILE Secret_MountType = 2 -) - -// Enum value maps for Secret_MountType. -var ( - Secret_MountType_name = map[int32]string{ - 0: "ANY", - 1: "ENV_VAR", - 2: "FILE", - } - Secret_MountType_value = map[string]int32{ - "ANY": 0, - "ENV_VAR": 1, - "FILE": 2, - } -) - -func (x Secret_MountType) Enum() *Secret_MountType { - p := new(Secret_MountType) - *p = x - return p -} - -func (x Secret_MountType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Secret_MountType) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_security_proto_enumTypes[0].Descriptor() -} - -func (Secret_MountType) Type() protoreflect.EnumType { - return &file_flyteidl_core_security_proto_enumTypes[0] -} - -func (x Secret_MountType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Secret_MountType.Descriptor instead. -func (Secret_MountType) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{0, 0} -} - -// Type of the token requested. -type OAuth2TokenRequest_Type int32 - -const ( - // CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. - OAuth2TokenRequest_CLIENT_CREDENTIALS OAuth2TokenRequest_Type = 0 -) - -// Enum value maps for OAuth2TokenRequest_Type. -var ( - OAuth2TokenRequest_Type_name = map[int32]string{ - 0: "CLIENT_CREDENTIALS", - } - OAuth2TokenRequest_Type_value = map[string]int32{ - "CLIENT_CREDENTIALS": 0, - } -) - -func (x OAuth2TokenRequest_Type) Enum() *OAuth2TokenRequest_Type { - p := new(OAuth2TokenRequest_Type) - *p = x - return p -} - -func (x OAuth2TokenRequest_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OAuth2TokenRequest_Type) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_security_proto_enumTypes[1].Descriptor() -} - -func (OAuth2TokenRequest_Type) Type() protoreflect.EnumType { - return &file_flyteidl_core_security_proto_enumTypes[1] -} - -func (x OAuth2TokenRequest_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OAuth2TokenRequest_Type.Descriptor instead. -func (OAuth2TokenRequest_Type) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{3, 0} -} - -// Secret encapsulates information about the secret a task needs to proceed. An environment variable -// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -// secrets are passed through environment variables. -// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets -// are passed through file mounts. -type Secret struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of - // the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. - // For AWS Secret Manager, this should be the name of the secret. - // +required - Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - // The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones - // that do not support it. - // +optional - GroupVersion string `protobuf:"bytes,2,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"` - // The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation - // of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should - // match one of the keys inside the secret. For AWS Secret Manager, it's ignored. - // +optional - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - // mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail - // if the underlying key management system cannot satisfy that requirement. If not provided, the default location - // will depend on the key management system. - // +optional - MountRequirement Secret_MountType `protobuf:"varint,4,opt,name=mount_requirement,json=mountRequirement,proto3,enum=flyteidl.core.Secret_MountType" json:"mount_requirement,omitempty"` -} - -func (x *Secret) Reset() { - *x = Secret{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_security_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Secret) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Secret) ProtoMessage() {} - -func (x *Secret) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_security_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Secret.ProtoReflect.Descriptor instead. -func (*Secret) Descriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{0} -} - -func (x *Secret) GetGroup() string { - if x != nil { - return x.Group - } - return "" -} - -func (x *Secret) GetGroupVersion() string { - if x != nil { - return x.GroupVersion - } - return "" -} - -func (x *Secret) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *Secret) GetMountRequirement() Secret_MountType { - if x != nil { - return x.MountRequirement - } - return Secret_ANY -} - -// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. -type OAuth2Client struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // client_id is the public id for the client to use. The system will not perform any pre-auth validation that the - // secret requested matches the client_id indicated here. - // +required - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - // client_secret is a reference to the secret used to authenticate the OAuth2 client. - // +required - ClientSecret *Secret `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` -} - -func (x *OAuth2Client) Reset() { - *x = OAuth2Client{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_security_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OAuth2Client) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OAuth2Client) ProtoMessage() {} - -func (x *OAuth2Client) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_security_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OAuth2Client.ProtoReflect.Descriptor instead. -func (*OAuth2Client) Descriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{1} -} - -func (x *OAuth2Client) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *OAuth2Client) GetClientSecret() *Secret { - if x != nil { - return x.ClientSecret - } - return nil -} - -// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the -// right identity for the execution environment. -type Identity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // iam_role references the fully qualified name of Identity & Access Management role to impersonate. - IamRole string `protobuf:"bytes,1,opt,name=iam_role,json=iamRole,proto3" json:"iam_role,omitempty"` - // k8s_service_account references a kubernetes service account to impersonate. - K8SServiceAccount string `protobuf:"bytes,2,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` - // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when - // making external calls. - Oauth2Client *OAuth2Client `protobuf:"bytes,3,opt,name=oauth2_client,json=oauth2Client,proto3" json:"oauth2_client,omitempty"` - // execution_identity references the subject who makes the execution - ExecutionIdentity string `protobuf:"bytes,4,opt,name=execution_identity,json=executionIdentity,proto3" json:"execution_identity,omitempty"` -} - -func (x *Identity) Reset() { - *x = Identity{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_security_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Identity) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Identity) ProtoMessage() {} - -func (x *Identity) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_security_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Identity.ProtoReflect.Descriptor instead. -func (*Identity) Descriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{2} -} - -func (x *Identity) GetIamRole() string { - if x != nil { - return x.IamRole - } - return "" -} - -func (x *Identity) GetK8SServiceAccount() string { - if x != nil { - return x.K8SServiceAccount - } - return "" -} - -func (x *Identity) GetOauth2Client() *OAuth2Client { - if x != nil { - return x.Oauth2Client - } - return nil -} - -func (x *Identity) GetExecutionIdentity() string { - if x != nil { - return x.ExecutionIdentity - } - return "" -} - -// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. -// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -// tokens are passed through environment variables. -// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens -// are passed through file mounts. -type OAuth2TokenRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for - // environment variables and as a filename for mounting tokens as files. - // +required - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. - // +required - Type OAuth2TokenRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.OAuth2TokenRequest_Type" json:"type,omitempty"` - // client references the client_id/secret to use to request the OAuth2 token. - // +required - Client *OAuth2Client `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` - // idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related - // information. - // +optional - IdpDiscoveryEndpoint string `protobuf:"bytes,4,opt,name=idp_discovery_endpoint,json=idpDiscoveryEndpoint,proto3" json:"idp_discovery_endpoint,omitempty"` - // token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is - // mandatory. - // +optional - TokenEndpoint string `protobuf:"bytes,5,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` -} - -func (x *OAuth2TokenRequest) Reset() { - *x = OAuth2TokenRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_security_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OAuth2TokenRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OAuth2TokenRequest) ProtoMessage() {} - -func (x *OAuth2TokenRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_security_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OAuth2TokenRequest.ProtoReflect.Descriptor instead. -func (*OAuth2TokenRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{3} -} - -func (x *OAuth2TokenRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *OAuth2TokenRequest) GetType() OAuth2TokenRequest_Type { - if x != nil { - return x.Type - } - return OAuth2TokenRequest_CLIENT_CREDENTIALS -} - -func (x *OAuth2TokenRequest) GetClient() *OAuth2Client { - if x != nil { - return x.Client - } - return nil -} - -func (x *OAuth2TokenRequest) GetIdpDiscoveryEndpoint() string { - if x != nil { - return x.IdpDiscoveryEndpoint - } - return "" -} - -func (x *OAuth2TokenRequest) GetTokenEndpoint() string { - if x != nil { - return x.TokenEndpoint - } - return "" -} - -// SecurityContext holds security attributes that apply to tasks. -type SecurityContext struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the - // backend plugin to choose the appropriate identity for the execution engine the task will run on. - RunAs *Identity `protobuf:"bytes,1,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` - // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the - // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - // to the secret) and to pass it to the remote execution engine. - Secrets []*Secret `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` - // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the - // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - // to the secret) and to pass it to the remote execution engine. - Tokens []*OAuth2TokenRequest `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` -} - -func (x *SecurityContext) Reset() { - *x = SecurityContext{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_security_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SecurityContext) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SecurityContext) ProtoMessage() {} - -func (x *SecurityContext) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_security_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SecurityContext.ProtoReflect.Descriptor instead. -func (*SecurityContext) Descriptor() ([]byte, []int) { - return file_flyteidl_core_security_proto_rawDescGZIP(), []int{4} -} - -func (x *SecurityContext) GetRunAs() *Identity { - if x != nil { - return x.RunAs - } - return nil -} - -func (x *SecurityContext) GetSecrets() []*Secret { - if x != nil { - return x.Secrets - } - return nil -} - -func (x *SecurityContext) GetTokens() []*OAuth2TokenRequest { - if x != nil { - return x.Tokens - } - return nil -} - -var File_flyteidl_core_security_proto protoreflect.FileDescriptor - -var file_flyteidl_core_security_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x22, 0xd0, 0x01, - 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, - 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x11, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x10, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x22, 0x2b, 0x0a, 0x09, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x56, - 0x5f, 0x56, 0x41, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x02, - 0x22, 0x67, 0x0a, 0x0c, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3a, 0x0a, - 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x0c, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0xc6, 0x01, 0x0a, 0x08, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, - 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x61, 0x6d, 0x52, 0x6f, 0x6c, - 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, - 0x6b, 0x38, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x22, 0x96, 0x02, 0x0a, 0x12, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, - 0x68, 0x32, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, - 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x34, - 0x0a, 0x16, 0x69, 0x64, 0x70, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, - 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, - 0x69, 0x64, 0x70, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x64, 0x70, - 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x1e, 0x0a, 0x04, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, - 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x53, 0x10, 0x00, 0x22, 0xad, 0x01, 0x0a, 0x0f, - 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, - 0x2e, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x41, 0x73, 0x12, - 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, - 0x12, 0x39, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x42, 0x0d, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, - 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_security_proto_rawDescOnce sync.Once - file_flyteidl_core_security_proto_rawDescData = file_flyteidl_core_security_proto_rawDesc -) - -func file_flyteidl_core_security_proto_rawDescGZIP() []byte { - file_flyteidl_core_security_proto_rawDescOnce.Do(func() { - file_flyteidl_core_security_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_security_proto_rawDescData) - }) - return file_flyteidl_core_security_proto_rawDescData -} - -var file_flyteidl_core_security_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_core_security_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_flyteidl_core_security_proto_goTypes = []interface{}{ - (Secret_MountType)(0), // 0: flyteidl.core.Secret.MountType - (OAuth2TokenRequest_Type)(0), // 1: flyteidl.core.OAuth2TokenRequest.Type - (*Secret)(nil), // 2: flyteidl.core.Secret - (*OAuth2Client)(nil), // 3: flyteidl.core.OAuth2Client - (*Identity)(nil), // 4: flyteidl.core.Identity - (*OAuth2TokenRequest)(nil), // 5: flyteidl.core.OAuth2TokenRequest - (*SecurityContext)(nil), // 6: flyteidl.core.SecurityContext -} -var file_flyteidl_core_security_proto_depIdxs = []int32{ - 0, // 0: flyteidl.core.Secret.mount_requirement:type_name -> flyteidl.core.Secret.MountType - 2, // 1: flyteidl.core.OAuth2Client.client_secret:type_name -> flyteidl.core.Secret - 3, // 2: flyteidl.core.Identity.oauth2_client:type_name -> flyteidl.core.OAuth2Client - 1, // 3: flyteidl.core.OAuth2TokenRequest.type:type_name -> flyteidl.core.OAuth2TokenRequest.Type - 3, // 4: flyteidl.core.OAuth2TokenRequest.client:type_name -> flyteidl.core.OAuth2Client - 4, // 5: flyteidl.core.SecurityContext.run_as:type_name -> flyteidl.core.Identity - 2, // 6: flyteidl.core.SecurityContext.secrets:type_name -> flyteidl.core.Secret - 5, // 7: flyteidl.core.SecurityContext.tokens:type_name -> flyteidl.core.OAuth2TokenRequest - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_security_proto_init() } -func file_flyteidl_core_security_proto_init() { - if File_flyteidl_core_security_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_security_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Secret); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_security_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OAuth2Client); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_security_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Identity); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_security_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OAuth2TokenRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_security_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecurityContext); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_security_proto_rawDesc, - NumEnums: 2, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_security_proto_goTypes, - DependencyIndexes: file_flyteidl_core_security_proto_depIdxs, - EnumInfos: file_flyteidl_core_security_proto_enumTypes, - MessageInfos: file_flyteidl_core_security_proto_msgTypes, - }.Build() - File_flyteidl_core_security_proto = out.File - file_flyteidl_core_security_proto_rawDesc = nil - file_flyteidl_core_security_proto_goTypes = nil - file_flyteidl_core_security_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go deleted file mode 100644 index 92a40b8e01..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go +++ /dev/null @@ -1,2215 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/tasks.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - structpb "google.golang.org/protobuf/types/known/structpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Known resource names. -type Resources_ResourceName int32 - -const ( - Resources_UNKNOWN Resources_ResourceName = 0 - Resources_CPU Resources_ResourceName = 1 - Resources_GPU Resources_ResourceName = 2 - Resources_MEMORY Resources_ResourceName = 3 - Resources_STORAGE Resources_ResourceName = 4 - // For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. - Resources_EPHEMERAL_STORAGE Resources_ResourceName = 5 -) - -// Enum value maps for Resources_ResourceName. -var ( - Resources_ResourceName_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CPU", - 2: "GPU", - 3: "MEMORY", - 4: "STORAGE", - 5: "EPHEMERAL_STORAGE", - } - Resources_ResourceName_value = map[string]int32{ - "UNKNOWN": 0, - "CPU": 1, - "GPU": 2, - "MEMORY": 3, - "STORAGE": 4, - "EPHEMERAL_STORAGE": 5, - } -) - -func (x Resources_ResourceName) Enum() *Resources_ResourceName { - p := new(Resources_ResourceName) - *p = x - return p -} - -func (x Resources_ResourceName) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Resources_ResourceName) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[0].Descriptor() -} - -func (Resources_ResourceName) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[0] -} - -func (x Resources_ResourceName) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Resources_ResourceName.Descriptor instead. -func (Resources_ResourceName) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{0, 0} -} - -type RuntimeMetadata_RuntimeType int32 - -const ( - RuntimeMetadata_OTHER RuntimeMetadata_RuntimeType = 0 - RuntimeMetadata_FLYTE_SDK RuntimeMetadata_RuntimeType = 1 -) - -// Enum value maps for RuntimeMetadata_RuntimeType. -var ( - RuntimeMetadata_RuntimeType_name = map[int32]string{ - 0: "OTHER", - 1: "FLYTE_SDK", - } - RuntimeMetadata_RuntimeType_value = map[string]int32{ - "OTHER": 0, - "FLYTE_SDK": 1, - } -) - -func (x RuntimeMetadata_RuntimeType) Enum() *RuntimeMetadata_RuntimeType { - p := new(RuntimeMetadata_RuntimeType) - *p = x - return p -} - -func (x RuntimeMetadata_RuntimeType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RuntimeMetadata_RuntimeType) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[1].Descriptor() -} - -func (RuntimeMetadata_RuntimeType) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[1] -} - -func (x RuntimeMetadata_RuntimeType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RuntimeMetadata_RuntimeType.Descriptor instead. -func (RuntimeMetadata_RuntimeType) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{3, 0} -} - -// Architecture-type the container image supports. -type Container_Architecture int32 - -const ( - Container_UNKNOWN Container_Architecture = 0 - Container_AMD64 Container_Architecture = 1 - Container_ARM64 Container_Architecture = 2 - Container_ARM_V6 Container_Architecture = 3 - Container_ARM_V7 Container_Architecture = 4 -) - -// Enum value maps for Container_Architecture. -var ( - Container_Architecture_name = map[int32]string{ - 0: "UNKNOWN", - 1: "AMD64", - 2: "ARM64", - 3: "ARM_V6", - 4: "ARM_V7", - } - Container_Architecture_value = map[string]int32{ - "UNKNOWN": 0, - "AMD64": 1, - "ARM64": 2, - "ARM_V6": 3, - "ARM_V7": 4, - } -) - -func (x Container_Architecture) Enum() *Container_Architecture { - p := new(Container_Architecture) - *p = x - return p -} - -func (x Container_Architecture) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Container_Architecture) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[2].Descriptor() -} - -func (Container_Architecture) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[2] -} - -func (x Container_Architecture) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Container_Architecture.Descriptor instead. -func (Container_Architecture) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{7, 0} -} - -// Mode to use for downloading -type IOStrategy_DownloadMode int32 - -const ( - // All data will be downloaded before the main container is executed - IOStrategy_DOWNLOAD_EAGER IOStrategy_DownloadMode = 0 - // Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - IOStrategy_DOWNLOAD_STREAM IOStrategy_DownloadMode = 1 - // Large objects (offloaded) will not be downloaded - IOStrategy_DO_NOT_DOWNLOAD IOStrategy_DownloadMode = 2 -) - -// Enum value maps for IOStrategy_DownloadMode. -var ( - IOStrategy_DownloadMode_name = map[int32]string{ - 0: "DOWNLOAD_EAGER", - 1: "DOWNLOAD_STREAM", - 2: "DO_NOT_DOWNLOAD", - } - IOStrategy_DownloadMode_value = map[string]int32{ - "DOWNLOAD_EAGER": 0, - "DOWNLOAD_STREAM": 1, - "DO_NOT_DOWNLOAD": 2, - } -) - -func (x IOStrategy_DownloadMode) Enum() *IOStrategy_DownloadMode { - p := new(IOStrategy_DownloadMode) - *p = x - return p -} - -func (x IOStrategy_DownloadMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IOStrategy_DownloadMode) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[3].Descriptor() -} - -func (IOStrategy_DownloadMode) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[3] -} - -func (x IOStrategy_DownloadMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IOStrategy_DownloadMode.Descriptor instead. -func (IOStrategy_DownloadMode) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{8, 0} -} - -// Mode to use for uploading -type IOStrategy_UploadMode int32 - -const ( - // All data will be uploaded after the main container exits - IOStrategy_UPLOAD_ON_EXIT IOStrategy_UploadMode = 0 - // Data will be uploaded as it appears. Refer to protocol specification for details - IOStrategy_UPLOAD_EAGER IOStrategy_UploadMode = 1 - // Data will not be uploaded, only references will be written - IOStrategy_DO_NOT_UPLOAD IOStrategy_UploadMode = 2 -) - -// Enum value maps for IOStrategy_UploadMode. -var ( - IOStrategy_UploadMode_name = map[int32]string{ - 0: "UPLOAD_ON_EXIT", - 1: "UPLOAD_EAGER", - 2: "DO_NOT_UPLOAD", - } - IOStrategy_UploadMode_value = map[string]int32{ - "UPLOAD_ON_EXIT": 0, - "UPLOAD_EAGER": 1, - "DO_NOT_UPLOAD": 2, - } -) - -func (x IOStrategy_UploadMode) Enum() *IOStrategy_UploadMode { - p := new(IOStrategy_UploadMode) - *p = x - return p -} - -func (x IOStrategy_UploadMode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IOStrategy_UploadMode) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[4].Descriptor() -} - -func (IOStrategy_UploadMode) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[4] -} - -func (x IOStrategy_UploadMode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IOStrategy_UploadMode.Descriptor instead. -func (IOStrategy_UploadMode) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{8, 1} -} - -// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. -// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. -// JSON and YAML do not need any protobuf definitions to read it -// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) -type DataLoadingConfig_LiteralMapFormat int32 - -const ( - // JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html - DataLoadingConfig_JSON DataLoadingConfig_LiteralMapFormat = 0 - DataLoadingConfig_YAML DataLoadingConfig_LiteralMapFormat = 1 - // Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core - DataLoadingConfig_PROTO DataLoadingConfig_LiteralMapFormat = 2 -) - -// Enum value maps for DataLoadingConfig_LiteralMapFormat. -var ( - DataLoadingConfig_LiteralMapFormat_name = map[int32]string{ - 0: "JSON", - 1: "YAML", - 2: "PROTO", - } - DataLoadingConfig_LiteralMapFormat_value = map[string]int32{ - "JSON": 0, - "YAML": 1, - "PROTO": 2, - } -) - -func (x DataLoadingConfig_LiteralMapFormat) Enum() *DataLoadingConfig_LiteralMapFormat { - p := new(DataLoadingConfig_LiteralMapFormat) - *p = x - return p -} - -func (x DataLoadingConfig_LiteralMapFormat) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (DataLoadingConfig_LiteralMapFormat) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[5].Descriptor() -} - -func (DataLoadingConfig_LiteralMapFormat) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[5] -} - -func (x DataLoadingConfig_LiteralMapFormat) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use DataLoadingConfig_LiteralMapFormat.Descriptor instead. -func (DataLoadingConfig_LiteralMapFormat) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{9, 0} -} - -// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid -// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. -// We support the following dialect: ansi, hive. -type Sql_Dialect int32 - -const ( - Sql_UNDEFINED Sql_Dialect = 0 - Sql_ANSI Sql_Dialect = 1 - Sql_HIVE Sql_Dialect = 2 - Sql_OTHER Sql_Dialect = 3 -) - -// Enum value maps for Sql_Dialect. -var ( - Sql_Dialect_name = map[int32]string{ - 0: "UNDEFINED", - 1: "ANSI", - 2: "HIVE", - 3: "OTHER", - } - Sql_Dialect_value = map[string]int32{ - "UNDEFINED": 0, - "ANSI": 1, - "HIVE": 2, - "OTHER": 3, - } -) - -func (x Sql_Dialect) Enum() *Sql_Dialect { - p := new(Sql_Dialect) - *p = x - return p -} - -func (x Sql_Dialect) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Sql_Dialect) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_tasks_proto_enumTypes[6].Descriptor() -} - -func (Sql_Dialect) Type() protoreflect.EnumType { - return &file_flyteidl_core_tasks_proto_enumTypes[6] -} - -func (x Sql_Dialect) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Sql_Dialect.Descriptor instead. -func (Sql_Dialect) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{12, 0} -} - -// A customizable interface to convey resources requested for a container. This can be interpreted differently for different -// container engines. -type Resources struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The desired set of resources requested. ResourceNames must be unique within the list. - Requests []*Resources_ResourceEntry `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` - // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique - // within the list. - Limits []*Resources_ResourceEntry `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"` -} - -func (x *Resources) Reset() { - *x = Resources{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Resources) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Resources) ProtoMessage() {} - -func (x *Resources) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Resources.ProtoReflect.Descriptor instead. -func (*Resources) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{0} -} - -func (x *Resources) GetRequests() []*Resources_ResourceEntry { - if x != nil { - return x.Requests - } - return nil -} - -func (x *Resources) GetLimits() []*Resources_ResourceEntry { - if x != nil { - return x.Limits - } - return nil -} - -// Metadata associated with the GPU accelerator to allocate to a task. Contains -// information about device type, and for multi-instance GPUs, the partition size to -// use. -type GPUAccelerator struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // This can be any arbitrary string, and should be informed by the labels or taints - // associated with the nodes in question. Default cloud provider labels typically - // use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. - Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` - // Types that are assignable to PartitionSizeValue: - // - // *GPUAccelerator_Unpartitioned - // *GPUAccelerator_PartitionSize - PartitionSizeValue isGPUAccelerator_PartitionSizeValue `protobuf_oneof:"partition_size_value"` -} - -func (x *GPUAccelerator) Reset() { - *x = GPUAccelerator{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GPUAccelerator) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GPUAccelerator) ProtoMessage() {} - -func (x *GPUAccelerator) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GPUAccelerator.ProtoReflect.Descriptor instead. -func (*GPUAccelerator) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{1} -} - -func (x *GPUAccelerator) GetDevice() string { - if x != nil { - return x.Device - } - return "" -} - -func (m *GPUAccelerator) GetPartitionSizeValue() isGPUAccelerator_PartitionSizeValue { - if m != nil { - return m.PartitionSizeValue - } - return nil -} - -func (x *GPUAccelerator) GetUnpartitioned() bool { - if x, ok := x.GetPartitionSizeValue().(*GPUAccelerator_Unpartitioned); ok { - return x.Unpartitioned - } - return false -} - -func (x *GPUAccelerator) GetPartitionSize() string { - if x, ok := x.GetPartitionSizeValue().(*GPUAccelerator_PartitionSize); ok { - return x.PartitionSize - } - return "" -} - -type isGPUAccelerator_PartitionSizeValue interface { - isGPUAccelerator_PartitionSizeValue() -} - -type GPUAccelerator_Unpartitioned struct { - Unpartitioned bool `protobuf:"varint,2,opt,name=unpartitioned,proto3,oneof"` -} - -type GPUAccelerator_PartitionSize struct { - // Like `device`, this can be any arbitrary string, and should be informed by - // the labels or taints associated with the nodes in question. Default cloud - // provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. - PartitionSize string `protobuf:"bytes,3,opt,name=partition_size,json=partitionSize,proto3,oneof"` -} - -func (*GPUAccelerator_Unpartitioned) isGPUAccelerator_PartitionSizeValue() {} - -func (*GPUAccelerator_PartitionSize) isGPUAccelerator_PartitionSizeValue() {} - -// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to -// allocate to a task. -type ExtendedResources struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // GPU accelerator to select for task. Contains information about device type, and - // for multi-instance GPUs, the partition size to use. - GpuAccelerator *GPUAccelerator `protobuf:"bytes,1,opt,name=gpu_accelerator,json=gpuAccelerator,proto3" json:"gpu_accelerator,omitempty"` -} - -func (x *ExtendedResources) Reset() { - *x = ExtendedResources{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExtendedResources) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExtendedResources) ProtoMessage() {} - -func (x *ExtendedResources) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExtendedResources.ProtoReflect.Descriptor instead. -func (*ExtendedResources) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{2} -} - -func (x *ExtendedResources) GetGpuAccelerator() *GPUAccelerator { - if x != nil { - return x.GpuAccelerator - } - return nil -} - -// Runtime information. This is loosely defined to allow for extensibility. -type RuntimeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Type of runtime. - Type RuntimeMetadata_RuntimeType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.core.RuntimeMetadata_RuntimeType" json:"type,omitempty"` - // Version of the runtime. All versions should be backward compatible. However, certain cases call for version - // checks to ensure tighter validation or setting expectations. - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - // +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). - Flavor string `protobuf:"bytes,3,opt,name=flavor,proto3" json:"flavor,omitempty"` -} - -func (x *RuntimeMetadata) Reset() { - *x = RuntimeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RuntimeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RuntimeMetadata) ProtoMessage() {} - -func (x *RuntimeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RuntimeMetadata.ProtoReflect.Descriptor instead. -func (*RuntimeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{3} -} - -func (x *RuntimeMetadata) GetType() RuntimeMetadata_RuntimeType { - if x != nil { - return x.Type - } - return RuntimeMetadata_OTHER -} - -func (x *RuntimeMetadata) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *RuntimeMetadata) GetFlavor() string { - if x != nil { - return x.Flavor - } - return "" -} - -// Task Metadata -type TaskMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. - Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"` - // Runtime information about the task. - Runtime *RuntimeMetadata `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` - // The overall timeout of a task including user-triggered retries. - Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` - // Number of retries per task. - Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` - // Indicates a logical version to apply to this task for the purpose of discovery. - DiscoveryVersion string `protobuf:"bytes,6,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"` - // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers - // of the ending of support for a given task. - DeprecatedErrorMessage string `protobuf:"bytes,7,opt,name=deprecated_error_message,json=deprecatedErrorMessage,proto3" json:"deprecated_error_message,omitempty"` - // Identify whether task is interruptible - // - // Types that are assignable to InterruptibleValue: - // - // *TaskMetadata_Interruptible - InterruptibleValue isTaskMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` - // Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work - CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3" json:"cache_serializable,omitempty"` - // Indicates whether the task will generate a Deck URI when it finishes executing. - GeneratesDeck bool `protobuf:"varint,10,opt,name=generates_deck,json=generatesDeck,proto3" json:"generates_deck,omitempty"` - // Arbitrary tags that allow users and the platform to store small but arbitrary labels - Tags map[string]string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this - // task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied - // identically as, the default PodTemplate configured in FlytePropeller. - PodTemplateName string `protobuf:"bytes,12,opt,name=pod_template_name,json=podTemplateName,proto3" json:"pod_template_name,omitempty"` - // cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. - CacheIgnoreInputVars []string `protobuf:"bytes,13,rep,name=cache_ignore_input_vars,json=cacheIgnoreInputVars,proto3" json:"cache_ignore_input_vars,omitempty"` -} - -func (x *TaskMetadata) Reset() { - *x = TaskMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskMetadata) ProtoMessage() {} - -func (x *TaskMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskMetadata.ProtoReflect.Descriptor instead. -func (*TaskMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{4} -} - -func (x *TaskMetadata) GetDiscoverable() bool { - if x != nil { - return x.Discoverable - } - return false -} - -func (x *TaskMetadata) GetRuntime() *RuntimeMetadata { - if x != nil { - return x.Runtime - } - return nil -} - -func (x *TaskMetadata) GetTimeout() *durationpb.Duration { - if x != nil { - return x.Timeout - } - return nil -} - -func (x *TaskMetadata) GetRetries() *RetryStrategy { - if x != nil { - return x.Retries - } - return nil -} - -func (x *TaskMetadata) GetDiscoveryVersion() string { - if x != nil { - return x.DiscoveryVersion - } - return "" -} - -func (x *TaskMetadata) GetDeprecatedErrorMessage() string { - if x != nil { - return x.DeprecatedErrorMessage - } - return "" -} - -func (m *TaskMetadata) GetInterruptibleValue() isTaskMetadata_InterruptibleValue { - if m != nil { - return m.InterruptibleValue - } - return nil -} - -func (x *TaskMetadata) GetInterruptible() bool { - if x, ok := x.GetInterruptibleValue().(*TaskMetadata_Interruptible); ok { - return x.Interruptible - } - return false -} - -func (x *TaskMetadata) GetCacheSerializable() bool { - if x != nil { - return x.CacheSerializable - } - return false -} - -func (x *TaskMetadata) GetGeneratesDeck() bool { - if x != nil { - return x.GeneratesDeck - } - return false -} - -func (x *TaskMetadata) GetTags() map[string]string { - if x != nil { - return x.Tags - } - return nil -} - -func (x *TaskMetadata) GetPodTemplateName() string { - if x != nil { - return x.PodTemplateName - } - return "" -} - -func (x *TaskMetadata) GetCacheIgnoreInputVars() []string { - if x != nil { - return x.CacheIgnoreInputVars - } - return nil -} - -type isTaskMetadata_InterruptibleValue interface { - isTaskMetadata_InterruptibleValue() -} - -type TaskMetadata_Interruptible struct { - Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3,oneof"` -} - -func (*TaskMetadata_Interruptible) isTaskMetadata_InterruptibleValue() {} - -// A Task structure that uniquely identifies a task in the system -// Tasks are registered as a first step in the system. -type TaskTemplate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Auto generated taskId by the system. Task Id uniquely identifies this task globally. - Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no - // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the - // implementation registered for the TaskCategory. - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // Extra metadata about the task. - Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees - // compile-time validation of the workflow to avoid costly runtime failures. - Interface *TypedInterface `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"` - // Custom data about the task. This is extensible to allow various plugins in the system. - Custom *structpb.Struct `protobuf:"bytes,5,opt,name=custom,proto3" json:"custom,omitempty"` - // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - // handlers. - // - // Types that are assignable to Target: - // - // *TaskTemplate_Container - // *TaskTemplate_K8SPod - // *TaskTemplate_Sql - Target isTaskTemplate_Target `protobuf_oneof:"target"` - // This can be used to customize task handling at execution time for the same task type. - TaskTypeVersion int32 `protobuf:"varint,7,opt,name=task_type_version,json=taskTypeVersion,proto3" json:"task_type_version,omitempty"` - // security_context encapsulates security attributes requested to run this task. - SecurityContext *SecurityContext `protobuf:"bytes,8,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Encapsulates all non-standard resources, not captured by - // v1.ResourceRequirements, to allocate to a task. - ExtendedResources *ExtendedResources `protobuf:"bytes,9,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"` - // Metadata about the custom defined for this task. This is extensible to allow various plugins in the system - // to use as required. - // reserve the field numbers 1 through 15 for very frequently occurring message elements - Config map[string]string `protobuf:"bytes,16,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *TaskTemplate) Reset() { - *x = TaskTemplate{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskTemplate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskTemplate) ProtoMessage() {} - -func (x *TaskTemplate) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskTemplate.ProtoReflect.Descriptor instead. -func (*TaskTemplate) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{5} -} - -func (x *TaskTemplate) GetId() *Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *TaskTemplate) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *TaskTemplate) GetMetadata() *TaskMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *TaskTemplate) GetInterface() *TypedInterface { - if x != nil { - return x.Interface - } - return nil -} - -func (x *TaskTemplate) GetCustom() *structpb.Struct { - if x != nil { - return x.Custom - } - return nil -} - -func (m *TaskTemplate) GetTarget() isTaskTemplate_Target { - if m != nil { - return m.Target - } - return nil -} - -func (x *TaskTemplate) GetContainer() *Container { - if x, ok := x.GetTarget().(*TaskTemplate_Container); ok { - return x.Container - } - return nil -} - -func (x *TaskTemplate) GetK8SPod() *K8SPod { - if x, ok := x.GetTarget().(*TaskTemplate_K8SPod); ok { - return x.K8SPod - } - return nil -} - -func (x *TaskTemplate) GetSql() *Sql { - if x, ok := x.GetTarget().(*TaskTemplate_Sql); ok { - return x.Sql - } - return nil -} - -func (x *TaskTemplate) GetTaskTypeVersion() int32 { - if x != nil { - return x.TaskTypeVersion - } - return 0 -} - -func (x *TaskTemplate) GetSecurityContext() *SecurityContext { - if x != nil { - return x.SecurityContext - } - return nil -} - -func (x *TaskTemplate) GetExtendedResources() *ExtendedResources { - if x != nil { - return x.ExtendedResources - } - return nil -} - -func (x *TaskTemplate) GetConfig() map[string]string { - if x != nil { - return x.Config - } - return nil -} - -type isTaskTemplate_Target interface { - isTaskTemplate_Target() -} - -type TaskTemplate_Container struct { - Container *Container `protobuf:"bytes,6,opt,name=container,proto3,oneof"` -} - -type TaskTemplate_K8SPod struct { - K8SPod *K8SPod `protobuf:"bytes,17,opt,name=k8s_pod,json=k8sPod,proto3,oneof"` -} - -type TaskTemplate_Sql struct { - Sql *Sql `protobuf:"bytes,18,opt,name=sql,proto3,oneof"` -} - -func (*TaskTemplate_Container) isTaskTemplate_Target() {} - -func (*TaskTemplate_K8SPod) isTaskTemplate_Target() {} - -func (*TaskTemplate_Sql) isTaskTemplate_Target() {} - -// Defines port properties for a container. -type ContainerPort struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Number of port to expose on the pod's IP address. - // This must be a valid port number, 0 < x < 65536. - ContainerPort uint32 `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` -} - -func (x *ContainerPort) Reset() { - *x = ContainerPort{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ContainerPort) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContainerPort) ProtoMessage() {} - -func (x *ContainerPort) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContainerPort.ProtoReflect.Descriptor instead. -func (*ContainerPort) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{6} -} - -func (x *ContainerPort) GetContainerPort() uint32 { - if x != nil { - return x.ContainerPort - } - return 0 -} - -type Container struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Container image url. Eg: docker/redis:latest - Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - // Command to be executed, if not provided, the default entrypoint in the container image will be used. - Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` - // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still - // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the - // system will populate these before executing the container. - Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` - // Container resources requirement as specified by the container engine. - Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` - // Environment variables will be set as the container is starting up. - Env []*KeyValuePair `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"` - // Allows extra configs to be available for the container. - // TODO: elaborate on how configs will become available. - // Deprecated, please use TaskTemplate.config instead. - // - // Deprecated: Marked as deprecated in flyteidl/core/tasks.proto. - Config []*KeyValuePair `protobuf:"bytes,6,rep,name=config,proto3" json:"config,omitempty"` - // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but - // not supported on AWS Batch) - // Only K8s - Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"` - // BETA: Optional configuration for DataLoading. If not specified, then default values are used. - // This makes it possible to to run a completely portable container, that uses inputs and outputs - // only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. - // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - // to understand the default paths. - // Only K8s - DataConfig *DataLoadingConfig `protobuf:"bytes,9,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` - Architecture Container_Architecture `protobuf:"varint,10,opt,name=architecture,proto3,enum=flyteidl.core.Container_Architecture" json:"architecture,omitempty"` -} - -func (x *Container) Reset() { - *x = Container{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Container) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Container) ProtoMessage() {} - -func (x *Container) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Container.ProtoReflect.Descriptor instead. -func (*Container) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{7} -} - -func (x *Container) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *Container) GetCommand() []string { - if x != nil { - return x.Command - } - return nil -} - -func (x *Container) GetArgs() []string { - if x != nil { - return x.Args - } - return nil -} - -func (x *Container) GetResources() *Resources { - if x != nil { - return x.Resources - } - return nil -} - -func (x *Container) GetEnv() []*KeyValuePair { - if x != nil { - return x.Env - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/core/tasks.proto. -func (x *Container) GetConfig() []*KeyValuePair { - if x != nil { - return x.Config - } - return nil -} - -func (x *Container) GetPorts() []*ContainerPort { - if x != nil { - return x.Ports - } - return nil -} - -func (x *Container) GetDataConfig() *DataLoadingConfig { - if x != nil { - return x.DataConfig - } - return nil -} - -func (x *Container) GetArchitecture() Container_Architecture { - if x != nil { - return x.Architecture - } - return Container_UNKNOWN -} - -// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) -type IOStrategy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Mode to use to manage downloads - DownloadMode IOStrategy_DownloadMode `protobuf:"varint,1,opt,name=download_mode,json=downloadMode,proto3,enum=flyteidl.core.IOStrategy_DownloadMode" json:"download_mode,omitempty"` - // Mode to use to manage uploads - UploadMode IOStrategy_UploadMode `protobuf:"varint,2,opt,name=upload_mode,json=uploadMode,proto3,enum=flyteidl.core.IOStrategy_UploadMode" json:"upload_mode,omitempty"` -} - -func (x *IOStrategy) Reset() { - *x = IOStrategy{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IOStrategy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IOStrategy) ProtoMessage() {} - -func (x *IOStrategy) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IOStrategy.ProtoReflect.Descriptor instead. -func (*IOStrategy) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{8} -} - -func (x *IOStrategy) GetDownloadMode() IOStrategy_DownloadMode { - if x != nil { - return x.DownloadMode - } - return IOStrategy_DOWNLOAD_EAGER -} - -func (x *IOStrategy) GetUploadMode() IOStrategy_UploadMode { - if x != nil { - return x.UploadMode - } - return IOStrategy_UPLOAD_ON_EXIT -} - -// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. -// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path -// Any outputs generated by the user container - within output_path are automatically uploaded. -type DataLoadingConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Flag enables DataLoading Config. If this is not set, data loading will not be used! - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - // File system path (start at root). This folder will contain all the inputs exploded to a separate file. - // Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like - // /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations - // /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format - // /var/flyte/inputs/y -> Y is a file in Binary format - // /var/flyte/inputs/z/... -> Note Z itself is a directory - // More information about the protocol - refer to docs #TODO reference docs here - InputPath string `protobuf:"bytes,2,opt,name=input_path,json=inputPath,proto3" json:"input_path,omitempty"` - // File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file - OutputPath string `protobuf:"bytes,3,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"` - // In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. - // This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding - Format DataLoadingConfig_LiteralMapFormat `protobuf:"varint,4,opt,name=format,proto3,enum=flyteidl.core.DataLoadingConfig_LiteralMapFormat" json:"format,omitempty"` - IoStrategy *IOStrategy `protobuf:"bytes,5,opt,name=io_strategy,json=ioStrategy,proto3" json:"io_strategy,omitempty"` -} - -func (x *DataLoadingConfig) Reset() { - *x = DataLoadingConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DataLoadingConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DataLoadingConfig) ProtoMessage() {} - -func (x *DataLoadingConfig) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DataLoadingConfig.ProtoReflect.Descriptor instead. -func (*DataLoadingConfig) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{9} -} - -func (x *DataLoadingConfig) GetEnabled() bool { - if x != nil { - return x.Enabled - } - return false -} - -func (x *DataLoadingConfig) GetInputPath() string { - if x != nil { - return x.InputPath - } - return "" -} - -func (x *DataLoadingConfig) GetOutputPath() string { - if x != nil { - return x.OutputPath - } - return "" -} - -func (x *DataLoadingConfig) GetFormat() DataLoadingConfig_LiteralMapFormat { - if x != nil { - return x.Format - } - return DataLoadingConfig_JSON -} - -func (x *DataLoadingConfig) GetIoStrategy() *IOStrategy { - if x != nil { - return x.IoStrategy - } - return nil -} - -// Defines a pod spec and additional pod metadata that is created when a task is executed. -type K8SPod struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Contains additional metadata for building a kubernetes pod. - Metadata *K8SObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Defines the primary pod spec created when a task is executed. - // This should be a JSON-marshalled pod spec, which can be defined in - // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 - // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py - PodSpec *structpb.Struct `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` - // BETA: Optional configuration for DataLoading. If not specified, then default values are used. - // This makes it possible to to run a completely portable container, that uses inputs and outputs - // only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. - // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - // to understand the default paths. - // Only K8s - DataConfig *DataLoadingConfig `protobuf:"bytes,3,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` -} - -func (x *K8SPod) Reset() { - *x = K8SPod{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *K8SPod) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*K8SPod) ProtoMessage() {} - -func (x *K8SPod) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use K8SPod.ProtoReflect.Descriptor instead. -func (*K8SPod) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{10} -} - -func (x *K8SPod) GetMetadata() *K8SObjectMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *K8SPod) GetPodSpec() *structpb.Struct { - if x != nil { - return x.PodSpec - } - return nil -} - -func (x *K8SPod) GetDataConfig() *DataLoadingConfig { - if x != nil { - return x.DataConfig - } - return nil -} - -// Metadata for building a kubernetes object when a task is executed. -type K8SObjectMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional labels to add to the pod definition. - Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Optional annotations to add to the pod definition. - Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *K8SObjectMetadata) Reset() { - *x = K8SObjectMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *K8SObjectMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*K8SObjectMetadata) ProtoMessage() {} - -func (x *K8SObjectMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use K8SObjectMetadata.ProtoReflect.Descriptor instead. -func (*K8SObjectMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{11} -} - -func (x *K8SObjectMetadata) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *K8SObjectMetadata) GetAnnotations() map[string]string { - if x != nil { - return x.Annotations - } - return nil -} - -// Sql represents a generic sql workload with a statement and dialect. -type Sql struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The actual query to run, the query can have templated parameters. - // We use Flyte's Golang templating format for Query templating. - // Refer to the templating documentation. - // https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py - // For example, - // insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet - // select * - // from my_table - // where ds = '{{ .Inputs.ds }}' - Statement string `protobuf:"bytes,1,opt,name=statement,proto3" json:"statement,omitempty"` - Dialect Sql_Dialect `protobuf:"varint,2,opt,name=dialect,proto3,enum=flyteidl.core.Sql_Dialect" json:"dialect,omitempty"` -} - -func (x *Sql) Reset() { - *x = Sql{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Sql) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Sql) ProtoMessage() {} - -func (x *Sql) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Sql.ProtoReflect.Descriptor instead. -func (*Sql) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{12} -} - -func (x *Sql) GetStatement() string { - if x != nil { - return x.Statement - } - return "" -} - -func (x *Sql) GetDialect() Sql_Dialect { - if x != nil { - return x.Dialect - } - return Sql_UNDEFINED -} - -// Encapsulates a resource name and value. -type Resources_ResourceEntry struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource name. - Name Resources_ResourceName `protobuf:"varint,1,opt,name=name,proto3,enum=flyteidl.core.Resources_ResourceName" json:"name,omitempty"` - // Value must be a valid k8s quantity. See - // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *Resources_ResourceEntry) Reset() { - *x = Resources_ResourceEntry{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_tasks_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Resources_ResourceEntry) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Resources_ResourceEntry) ProtoMessage() {} - -func (x *Resources_ResourceEntry) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_tasks_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Resources_ResourceEntry.ProtoReflect.Descriptor instead. -func (*Resources_ResourceEntry) Descriptor() ([]byte, []int) { - return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *Resources_ResourceEntry) GetName() Resources_ResourceName { - if x != nil { - return x.Name - } - return Resources_UNKNOWN -} - -func (x *Resources_ResourceEntry) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -var File_flyteidl_core_tasks_proto protoreflect.FileDescriptor - -var file_flyteidl_core_tasks_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x60, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x39, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5d, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x43, 0x50, 0x55, 0x10, 0x01, 0x12, 0x07, 0x0a, - 0x03, 0x47, 0x50, 0x55, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x4f, 0x52, 0x59, - 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12, - 0x15, 0x0a, 0x11, 0x45, 0x50, 0x48, 0x45, 0x4d, 0x45, 0x52, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x4f, - 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x22, 0x91, 0x01, 0x0a, 0x0e, 0x47, 0x50, 0x55, 0x41, 0x63, - 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x76, - 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x75, 0x6e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x75, 0x6e, 0x70, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0e, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, - 0x7a, 0x65, 0x42, 0x16, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5b, 0x0a, 0x11, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, - 0x46, 0x0a, 0x0f, 0x67, 0x70, 0x75, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x50, 0x55, 0x41, 0x63, 0x63, 0x65, - 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0e, 0x67, 0x70, 0x75, 0x41, 0x63, 0x63, 0x65, - 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xac, 0x01, 0x0a, 0x0f, 0x52, 0x75, 0x6e, 0x74, - 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, - 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x22, 0x27, 0x0a, - 0x0b, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, - 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4c, 0x59, 0x54, 0x45, - 0x5f, 0x53, 0x44, 0x4b, 0x10, 0x01, 0x22, 0xac, 0x05, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x6f, - 0x76, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, - 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x72, - 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x75, 0x6e, - 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x72, 0x75, - 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, - 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, - 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x38, 0x0a, 0x18, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x16, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, - 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, - 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, - 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, - 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, - 0x12, 0x25, 0x0a, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x65, - 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, - 0x74, 0x65, 0x73, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x39, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, - 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, - 0x67, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x6f, 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, - 0x6f, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, - 0x0a, 0x17, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x14, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x70, 0x75, - 0x74, 0x56, 0x61, 0x72, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x15, - 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xd6, 0x05, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, - 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, - 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x38, 0x0a, 0x09, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x07, 0x6b, 0x38, 0x73, 0x5f, 0x70, 0x6f, - 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, 0x73, 0x50, 0x6f, 0x64, 0x48, 0x00, - 0x52, 0x06, 0x6b, 0x38, 0x73, 0x50, 0x6f, 0x64, 0x12, 0x26, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, - 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x71, 0x6c, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, - 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x61, 0x73, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x10, - 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x64, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x36, - 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x12, - 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x22, 0xfc, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, - 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x12, 0x2d, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, - 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, - 0x37, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x42, 0x02, 0x18, 0x01, - 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, - 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, - 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0b, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x49, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2e, - 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0c, 0x61, 0x72, - 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x22, 0x49, 0x0a, 0x0c, 0x41, 0x72, - 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4d, 0x44, 0x36, 0x34, - 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x4d, 0x36, 0x34, 0x10, 0x02, 0x12, 0x0a, 0x0a, - 0x06, 0x41, 0x52, 0x4d, 0x5f, 0x56, 0x36, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x52, 0x4d, - 0x5f, 0x56, 0x37, 0x10, 0x04, 0x22, 0xb5, 0x02, 0x0a, 0x0a, 0x49, 0x4f, 0x53, 0x74, 0x72, 0x61, - 0x74, 0x65, 0x67, 0x79, 0x12, 0x4b, 0x0a, 0x0d, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x4f, 0x53, 0x74, - 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, - 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, - 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x4f, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, - 0x79, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x75, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x4c, 0x0a, 0x0c, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x57, 0x4e, - 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x41, 0x47, 0x45, 0x52, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, - 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x53, 0x54, 0x52, 0x45, 0x41, 0x4d, 0x10, - 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x4f, 0x57, 0x4e, - 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x22, 0x45, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, - 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x4f, - 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x54, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x4c, 0x4f, - 0x41, 0x44, 0x5f, 0x45, 0x41, 0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x4f, - 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x22, 0xa7, 0x02, - 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1d, 0x0a, - 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x49, 0x0a, - 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, - 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x69, 0x6f, 0x5f, 0x73, - 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x4f, - 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0a, 0x69, 0x6f, 0x53, 0x74, 0x72, 0x61, - 0x74, 0x65, 0x67, 0x79, 0x22, 0x31, 0x0a, 0x10, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, - 0x61, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, - 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x59, 0x41, 0x4d, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, - 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x10, 0x02, 0x22, 0xbd, 0x01, 0x0a, 0x06, 0x4b, 0x38, 0x73, 0x50, - 0x6f, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0x32, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x6f, 0x64, - 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x6f, - 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x64, 0x61, 0x74, - 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa9, 0x02, 0x0a, 0x11, 0x4b, 0x38, 0x73, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, - 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, 0x73, 0x4f, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x92, 0x01, 0x0a, 0x03, 0x53, 0x71, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x69, 0x61, - 0x6c, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x71, 0x6c, 0x2e, 0x44, - 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x07, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x22, - 0x37, 0x0a, 0x07, 0x44, 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, - 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x4e, 0x53, - 0x49, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, - 0x05, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x03, 0x42, 0xb0, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0a, - 0x54, 0x61, 0x73, 0x6b, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, - 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, - 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, - 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, - 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, - 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_tasks_proto_rawDescOnce sync.Once - file_flyteidl_core_tasks_proto_rawDescData = file_flyteidl_core_tasks_proto_rawDesc -) - -func file_flyteidl_core_tasks_proto_rawDescGZIP() []byte { - file_flyteidl_core_tasks_proto_rawDescOnce.Do(func() { - file_flyteidl_core_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_tasks_proto_rawDescData) - }) - return file_flyteidl_core_tasks_proto_rawDescData -} - -var file_flyteidl_core_tasks_proto_enumTypes = make([]protoimpl.EnumInfo, 7) -var file_flyteidl_core_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 18) -var file_flyteidl_core_tasks_proto_goTypes = []interface{}{ - (Resources_ResourceName)(0), // 0: flyteidl.core.Resources.ResourceName - (RuntimeMetadata_RuntimeType)(0), // 1: flyteidl.core.RuntimeMetadata.RuntimeType - (Container_Architecture)(0), // 2: flyteidl.core.Container.Architecture - (IOStrategy_DownloadMode)(0), // 3: flyteidl.core.IOStrategy.DownloadMode - (IOStrategy_UploadMode)(0), // 4: flyteidl.core.IOStrategy.UploadMode - (DataLoadingConfig_LiteralMapFormat)(0), // 5: flyteidl.core.DataLoadingConfig.LiteralMapFormat - (Sql_Dialect)(0), // 6: flyteidl.core.Sql.Dialect - (*Resources)(nil), // 7: flyteidl.core.Resources - (*GPUAccelerator)(nil), // 8: flyteidl.core.GPUAccelerator - (*ExtendedResources)(nil), // 9: flyteidl.core.ExtendedResources - (*RuntimeMetadata)(nil), // 10: flyteidl.core.RuntimeMetadata - (*TaskMetadata)(nil), // 11: flyteidl.core.TaskMetadata - (*TaskTemplate)(nil), // 12: flyteidl.core.TaskTemplate - (*ContainerPort)(nil), // 13: flyteidl.core.ContainerPort - (*Container)(nil), // 14: flyteidl.core.Container - (*IOStrategy)(nil), // 15: flyteidl.core.IOStrategy - (*DataLoadingConfig)(nil), // 16: flyteidl.core.DataLoadingConfig - (*K8SPod)(nil), // 17: flyteidl.core.K8sPod - (*K8SObjectMetadata)(nil), // 18: flyteidl.core.K8sObjectMetadata - (*Sql)(nil), // 19: flyteidl.core.Sql - (*Resources_ResourceEntry)(nil), // 20: flyteidl.core.Resources.ResourceEntry - nil, // 21: flyteidl.core.TaskMetadata.TagsEntry - nil, // 22: flyteidl.core.TaskTemplate.ConfigEntry - nil, // 23: flyteidl.core.K8sObjectMetadata.LabelsEntry - nil, // 24: flyteidl.core.K8sObjectMetadata.AnnotationsEntry - (*durationpb.Duration)(nil), // 25: google.protobuf.Duration - (*RetryStrategy)(nil), // 26: flyteidl.core.RetryStrategy - (*Identifier)(nil), // 27: flyteidl.core.Identifier - (*TypedInterface)(nil), // 28: flyteidl.core.TypedInterface - (*structpb.Struct)(nil), // 29: google.protobuf.Struct - (*SecurityContext)(nil), // 30: flyteidl.core.SecurityContext - (*KeyValuePair)(nil), // 31: flyteidl.core.KeyValuePair -} -var file_flyteidl_core_tasks_proto_depIdxs = []int32{ - 20, // 0: flyteidl.core.Resources.requests:type_name -> flyteidl.core.Resources.ResourceEntry - 20, // 1: flyteidl.core.Resources.limits:type_name -> flyteidl.core.Resources.ResourceEntry - 8, // 2: flyteidl.core.ExtendedResources.gpu_accelerator:type_name -> flyteidl.core.GPUAccelerator - 1, // 3: flyteidl.core.RuntimeMetadata.type:type_name -> flyteidl.core.RuntimeMetadata.RuntimeType - 10, // 4: flyteidl.core.TaskMetadata.runtime:type_name -> flyteidl.core.RuntimeMetadata - 25, // 5: flyteidl.core.TaskMetadata.timeout:type_name -> google.protobuf.Duration - 26, // 6: flyteidl.core.TaskMetadata.retries:type_name -> flyteidl.core.RetryStrategy - 21, // 7: flyteidl.core.TaskMetadata.tags:type_name -> flyteidl.core.TaskMetadata.TagsEntry - 27, // 8: flyteidl.core.TaskTemplate.id:type_name -> flyteidl.core.Identifier - 11, // 9: flyteidl.core.TaskTemplate.metadata:type_name -> flyteidl.core.TaskMetadata - 28, // 10: flyteidl.core.TaskTemplate.interface:type_name -> flyteidl.core.TypedInterface - 29, // 11: flyteidl.core.TaskTemplate.custom:type_name -> google.protobuf.Struct - 14, // 12: flyteidl.core.TaskTemplate.container:type_name -> flyteidl.core.Container - 17, // 13: flyteidl.core.TaskTemplate.k8s_pod:type_name -> flyteidl.core.K8sPod - 19, // 14: flyteidl.core.TaskTemplate.sql:type_name -> flyteidl.core.Sql - 30, // 15: flyteidl.core.TaskTemplate.security_context:type_name -> flyteidl.core.SecurityContext - 9, // 16: flyteidl.core.TaskTemplate.extended_resources:type_name -> flyteidl.core.ExtendedResources - 22, // 17: flyteidl.core.TaskTemplate.config:type_name -> flyteidl.core.TaskTemplate.ConfigEntry - 7, // 18: flyteidl.core.Container.resources:type_name -> flyteidl.core.Resources - 31, // 19: flyteidl.core.Container.env:type_name -> flyteidl.core.KeyValuePair - 31, // 20: flyteidl.core.Container.config:type_name -> flyteidl.core.KeyValuePair - 13, // 21: flyteidl.core.Container.ports:type_name -> flyteidl.core.ContainerPort - 16, // 22: flyteidl.core.Container.data_config:type_name -> flyteidl.core.DataLoadingConfig - 2, // 23: flyteidl.core.Container.architecture:type_name -> flyteidl.core.Container.Architecture - 3, // 24: flyteidl.core.IOStrategy.download_mode:type_name -> flyteidl.core.IOStrategy.DownloadMode - 4, // 25: flyteidl.core.IOStrategy.upload_mode:type_name -> flyteidl.core.IOStrategy.UploadMode - 5, // 26: flyteidl.core.DataLoadingConfig.format:type_name -> flyteidl.core.DataLoadingConfig.LiteralMapFormat - 15, // 27: flyteidl.core.DataLoadingConfig.io_strategy:type_name -> flyteidl.core.IOStrategy - 18, // 28: flyteidl.core.K8sPod.metadata:type_name -> flyteidl.core.K8sObjectMetadata - 29, // 29: flyteidl.core.K8sPod.pod_spec:type_name -> google.protobuf.Struct - 16, // 30: flyteidl.core.K8sPod.data_config:type_name -> flyteidl.core.DataLoadingConfig - 23, // 31: flyteidl.core.K8sObjectMetadata.labels:type_name -> flyteidl.core.K8sObjectMetadata.LabelsEntry - 24, // 32: flyteidl.core.K8sObjectMetadata.annotations:type_name -> flyteidl.core.K8sObjectMetadata.AnnotationsEntry - 6, // 33: flyteidl.core.Sql.dialect:type_name -> flyteidl.core.Sql.Dialect - 0, // 34: flyteidl.core.Resources.ResourceEntry.name:type_name -> flyteidl.core.Resources.ResourceName - 35, // [35:35] is the sub-list for method output_type - 35, // [35:35] is the sub-list for method input_type - 35, // [35:35] is the sub-list for extension type_name - 35, // [35:35] is the sub-list for extension extendee - 0, // [0:35] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_tasks_proto_init() } -func file_flyteidl_core_tasks_proto_init() { - if File_flyteidl_core_tasks_proto != nil { - return - } - file_flyteidl_core_identifier_proto_init() - file_flyteidl_core_interface_proto_init() - file_flyteidl_core_literals_proto_init() - file_flyteidl_core_security_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_tasks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Resources); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GPUAccelerator); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExtendedResources); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RuntimeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskTemplate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ContainerPort); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Container); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IOStrategy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DataLoadingConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*K8SPod); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*K8SObjectMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Sql); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_tasks_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Resources_ResourceEntry); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_tasks_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*GPUAccelerator_Unpartitioned)(nil), - (*GPUAccelerator_PartitionSize)(nil), - } - file_flyteidl_core_tasks_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*TaskMetadata_Interruptible)(nil), - } - file_flyteidl_core_tasks_proto_msgTypes[5].OneofWrappers = []interface{}{ - (*TaskTemplate_Container)(nil), - (*TaskTemplate_K8SPod)(nil), - (*TaskTemplate_Sql)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_tasks_proto_rawDesc, - NumEnums: 7, - NumMessages: 18, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_tasks_proto_goTypes, - DependencyIndexes: file_flyteidl_core_tasks_proto_depIdxs, - EnumInfos: file_flyteidl_core_tasks_proto_enumTypes, - MessageInfos: file_flyteidl_core_tasks_proto_msgTypes, - }.Build() - File_flyteidl_core_tasks_proto = out.File - file_flyteidl_core_tasks_proto_rawDesc = nil - file_flyteidl_core_tasks_proto_goTypes = nil - file_flyteidl_core_tasks_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go deleted file mode 100644 index b844e951c9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go +++ /dev/null @@ -1,1559 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/types.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Define a set of simple types. -type SimpleType int32 - -const ( - SimpleType_NONE SimpleType = 0 - SimpleType_INTEGER SimpleType = 1 - SimpleType_FLOAT SimpleType = 2 - SimpleType_STRING SimpleType = 3 - SimpleType_BOOLEAN SimpleType = 4 - SimpleType_DATETIME SimpleType = 5 - SimpleType_DURATION SimpleType = 6 - SimpleType_BINARY SimpleType = 7 - SimpleType_ERROR SimpleType = 8 - SimpleType_STRUCT SimpleType = 9 -) - -// Enum value maps for SimpleType. -var ( - SimpleType_name = map[int32]string{ - 0: "NONE", - 1: "INTEGER", - 2: "FLOAT", - 3: "STRING", - 4: "BOOLEAN", - 5: "DATETIME", - 6: "DURATION", - 7: "BINARY", - 8: "ERROR", - 9: "STRUCT", - } - SimpleType_value = map[string]int32{ - "NONE": 0, - "INTEGER": 1, - "FLOAT": 2, - "STRING": 3, - "BOOLEAN": 4, - "DATETIME": 5, - "DURATION": 6, - "BINARY": 7, - "ERROR": 8, - "STRUCT": 9, - } -) - -func (x SimpleType) Enum() *SimpleType { - p := new(SimpleType) - *p = x - return p -} - -func (x SimpleType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SimpleType) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_types_proto_enumTypes[0].Descriptor() -} - -func (SimpleType) Type() protoreflect.EnumType { - return &file_flyteidl_core_types_proto_enumTypes[0] -} - -func (x SimpleType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SimpleType.Descriptor instead. -func (SimpleType) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0} -} - -type SchemaType_SchemaColumn_SchemaColumnType int32 - -const ( - SchemaType_SchemaColumn_INTEGER SchemaType_SchemaColumn_SchemaColumnType = 0 - SchemaType_SchemaColumn_FLOAT SchemaType_SchemaColumn_SchemaColumnType = 1 - SchemaType_SchemaColumn_STRING SchemaType_SchemaColumn_SchemaColumnType = 2 - SchemaType_SchemaColumn_BOOLEAN SchemaType_SchemaColumn_SchemaColumnType = 3 - SchemaType_SchemaColumn_DATETIME SchemaType_SchemaColumn_SchemaColumnType = 4 - SchemaType_SchemaColumn_DURATION SchemaType_SchemaColumn_SchemaColumnType = 5 -) - -// Enum value maps for SchemaType_SchemaColumn_SchemaColumnType. -var ( - SchemaType_SchemaColumn_SchemaColumnType_name = map[int32]string{ - 0: "INTEGER", - 1: "FLOAT", - 2: "STRING", - 3: "BOOLEAN", - 4: "DATETIME", - 5: "DURATION", - } - SchemaType_SchemaColumn_SchemaColumnType_value = map[string]int32{ - "INTEGER": 0, - "FLOAT": 1, - "STRING": 2, - "BOOLEAN": 3, - "DATETIME": 4, - "DURATION": 5, - } -) - -func (x SchemaType_SchemaColumn_SchemaColumnType) Enum() *SchemaType_SchemaColumn_SchemaColumnType { - p := new(SchemaType_SchemaColumn_SchemaColumnType) - *p = x - return p -} - -func (x SchemaType_SchemaColumn_SchemaColumnType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SchemaType_SchemaColumn_SchemaColumnType) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_types_proto_enumTypes[1].Descriptor() -} - -func (SchemaType_SchemaColumn_SchemaColumnType) Type() protoreflect.EnumType { - return &file_flyteidl_core_types_proto_enumTypes[1] -} - -func (x SchemaType_SchemaColumn_SchemaColumnType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SchemaType_SchemaColumn_SchemaColumnType.Descriptor instead. -func (SchemaType_SchemaColumn_SchemaColumnType) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0, 0, 0} -} - -type BlobType_BlobDimensionality int32 - -const ( - BlobType_SINGLE BlobType_BlobDimensionality = 0 - BlobType_MULTIPART BlobType_BlobDimensionality = 1 -) - -// Enum value maps for BlobType_BlobDimensionality. -var ( - BlobType_BlobDimensionality_name = map[int32]string{ - 0: "SINGLE", - 1: "MULTIPART", - } - BlobType_BlobDimensionality_value = map[string]int32{ - "SINGLE": 0, - "MULTIPART": 1, - } -) - -func (x BlobType_BlobDimensionality) Enum() *BlobType_BlobDimensionality { - p := new(BlobType_BlobDimensionality) - *p = x - return p -} - -func (x BlobType_BlobDimensionality) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (BlobType_BlobDimensionality) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_types_proto_enumTypes[2].Descriptor() -} - -func (BlobType_BlobDimensionality) Type() protoreflect.EnumType { - return &file_flyteidl_core_types_proto_enumTypes[2] -} - -func (x BlobType_BlobDimensionality) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use BlobType_BlobDimensionality.Descriptor instead. -func (BlobType_BlobDimensionality) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{2, 0} -} - -// Defines schema columns and types to strongly type-validate schemas interoperability. -type SchemaType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of ordered columns this schema comprises of. - Columns []*SchemaType_SchemaColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` -} - -func (x *SchemaType) Reset() { - *x = SchemaType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SchemaType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SchemaType) ProtoMessage() {} - -func (x *SchemaType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SchemaType.ProtoReflect.Descriptor instead. -func (*SchemaType) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0} -} - -func (x *SchemaType) GetColumns() []*SchemaType_SchemaColumn { - if x != nil { - return x.Columns - } - return nil -} - -type StructuredDatasetType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of ordered columns this schema comprises of. - Columns []*StructuredDatasetType_DatasetColumn `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` - // This is the storage format, the format of the bits at rest - // parquet, feather, csv, etc. - // For two types to be compatible, the format will need to be an exact match. - Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` - // This is a string representing the type that the bytes in external_schema_bytes are formatted in. - // This is an optional field that will not be used for type checking. - ExternalSchemaType string `protobuf:"bytes,3,opt,name=external_schema_type,json=externalSchemaType,proto3" json:"external_schema_type,omitempty"` - // The serialized bytes of a third-party schema library like Arrow. - // This is an optional field that will not be used for type checking. - ExternalSchemaBytes []byte `protobuf:"bytes,4,opt,name=external_schema_bytes,json=externalSchemaBytes,proto3" json:"external_schema_bytes,omitempty"` -} - -func (x *StructuredDatasetType) Reset() { - *x = StructuredDatasetType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StructuredDatasetType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StructuredDatasetType) ProtoMessage() {} - -func (x *StructuredDatasetType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StructuredDatasetType.ProtoReflect.Descriptor instead. -func (*StructuredDatasetType) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{1} -} - -func (x *StructuredDatasetType) GetColumns() []*StructuredDatasetType_DatasetColumn { - if x != nil { - return x.Columns - } - return nil -} - -func (x *StructuredDatasetType) GetFormat() string { - if x != nil { - return x.Format - } - return "" -} - -func (x *StructuredDatasetType) GetExternalSchemaType() string { - if x != nil { - return x.ExternalSchemaType - } - return "" -} - -func (x *StructuredDatasetType) GetExternalSchemaBytes() []byte { - if x != nil { - return x.ExternalSchemaBytes - } - return nil -} - -// Defines type behavior for blob objects -type BlobType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Format can be a free form string understood by SDK/UI etc like - // csv, parquet etc - Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` - Dimensionality BlobType_BlobDimensionality `protobuf:"varint,2,opt,name=dimensionality,proto3,enum=flyteidl.core.BlobType_BlobDimensionality" json:"dimensionality,omitempty"` -} - -func (x *BlobType) Reset() { - *x = BlobType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BlobType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BlobType) ProtoMessage() {} - -func (x *BlobType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BlobType.ProtoReflect.Descriptor instead. -func (*BlobType) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{2} -} - -func (x *BlobType) GetFormat() string { - if x != nil { - return x.Format - } - return "" -} - -func (x *BlobType) GetDimensionality() BlobType_BlobDimensionality { - if x != nil { - return x.Dimensionality - } - return BlobType_SINGLE -} - -// Enables declaring enum types, with predefined string values -// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish -// To provide no defaults, make the first value as undefined. -type EnumType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Predefined set of enum values. - Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` -} - -func (x *EnumType) Reset() { - *x = EnumType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EnumType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EnumType) ProtoMessage() {} - -func (x *EnumType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EnumType.ProtoReflect.Descriptor instead. -func (*EnumType) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{3} -} - -func (x *EnumType) GetValues() []string { - if x != nil { - return x.Values - } - return nil -} - -// Defines a tagged union type, also known as a variant (and formally as the sum type). -// -// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag -// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by -// storing the varaint's tag with the literal value and can be examined in runtime. -// -// Type S is typically written as -// S := Apple A | Banana B | Cantaloupe C | ... -// -// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: -// Optional X := X | Null -// -// See also: https://en.wikipedia.org/wiki/Tagged_union -type UnionType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Predefined set of variants in union. - Variants []*LiteralType `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"` -} - -func (x *UnionType) Reset() { - *x = UnionType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnionType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnionType) ProtoMessage() {} - -func (x *UnionType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnionType.ProtoReflect.Descriptor instead. -func (*UnionType) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{4} -} - -func (x *UnionType) GetVariants() []*LiteralType { - if x != nil { - return x.Variants - } - return nil -} - -// Hints to improve type matching -// e.g. allows distinguishing output from custom type transformers -// even if the underlying IDL serialization matches. -type TypeStructure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Must exactly match for types to be castable - Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` - // dataclass_type only exists for dataclasses. - // This is used to resolve the type of the fields of dataclass - // The key is the field name, and the value is the literal type of the field - // e.g. For dataclass Foo, with fields a, and a is a string - // Foo.a will be resolved as a literal type of string from dataclass_type - DataclassType map[string]*LiteralType `protobuf:"bytes,2,rep,name=dataclass_type,json=dataclassType,proto3" json:"dataclass_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *TypeStructure) Reset() { - *x = TypeStructure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TypeStructure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TypeStructure) ProtoMessage() {} - -func (x *TypeStructure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TypeStructure.ProtoReflect.Descriptor instead. -func (*TypeStructure) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{5} -} - -func (x *TypeStructure) GetTag() string { - if x != nil { - return x.Tag - } - return "" -} - -func (x *TypeStructure) GetDataclassType() map[string]*LiteralType { - if x != nil { - return x.DataclassType - } - return nil -} - -// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. -type TypeAnnotation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A arbitrary JSON payload to describe a type. - Annotations *structpb.Struct `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations,omitempty"` -} - -func (x *TypeAnnotation) Reset() { - *x = TypeAnnotation{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TypeAnnotation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TypeAnnotation) ProtoMessage() {} - -func (x *TypeAnnotation) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TypeAnnotation.ProtoReflect.Descriptor instead. -func (*TypeAnnotation) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{6} -} - -func (x *TypeAnnotation) GetAnnotations() *structpb.Struct { - if x != nil { - return x.Annotations - } - return nil -} - -// Defines a strong type to allow type checking between interfaces. -type LiteralType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Type: - // - // *LiteralType_Simple - // *LiteralType_Schema - // *LiteralType_CollectionType - // *LiteralType_MapValueType - // *LiteralType_Blob - // *LiteralType_EnumType - // *LiteralType_StructuredDatasetType - // *LiteralType_UnionType - Type isLiteralType_Type `protobuf_oneof:"type"` - // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by - // consumers to identify special behavior or display extended information for the type. - Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` - // This field contains arbitrary data that might have special semantic - // meaning for the client but does not effect internal flyte behavior. - Annotation *TypeAnnotation `protobuf:"bytes,9,opt,name=annotation,proto3" json:"annotation,omitempty"` - // Hints to improve type matching. - Structure *TypeStructure `protobuf:"bytes,11,opt,name=structure,proto3" json:"structure,omitempty"` -} - -func (x *LiteralType) Reset() { - *x = LiteralType{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LiteralType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LiteralType) ProtoMessage() {} - -func (x *LiteralType) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LiteralType.ProtoReflect.Descriptor instead. -func (*LiteralType) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{7} -} - -func (m *LiteralType) GetType() isLiteralType_Type { - if m != nil { - return m.Type - } - return nil -} - -func (x *LiteralType) GetSimple() SimpleType { - if x, ok := x.GetType().(*LiteralType_Simple); ok { - return x.Simple - } - return SimpleType_NONE -} - -func (x *LiteralType) GetSchema() *SchemaType { - if x, ok := x.GetType().(*LiteralType_Schema); ok { - return x.Schema - } - return nil -} - -func (x *LiteralType) GetCollectionType() *LiteralType { - if x, ok := x.GetType().(*LiteralType_CollectionType); ok { - return x.CollectionType - } - return nil -} - -func (x *LiteralType) GetMapValueType() *LiteralType { - if x, ok := x.GetType().(*LiteralType_MapValueType); ok { - return x.MapValueType - } - return nil -} - -func (x *LiteralType) GetBlob() *BlobType { - if x, ok := x.GetType().(*LiteralType_Blob); ok { - return x.Blob - } - return nil -} - -func (x *LiteralType) GetEnumType() *EnumType { - if x, ok := x.GetType().(*LiteralType_EnumType); ok { - return x.EnumType - } - return nil -} - -func (x *LiteralType) GetStructuredDatasetType() *StructuredDatasetType { - if x, ok := x.GetType().(*LiteralType_StructuredDatasetType); ok { - return x.StructuredDatasetType - } - return nil -} - -func (x *LiteralType) GetUnionType() *UnionType { - if x, ok := x.GetType().(*LiteralType_UnionType); ok { - return x.UnionType - } - return nil -} - -func (x *LiteralType) GetMetadata() *structpb.Struct { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *LiteralType) GetAnnotation() *TypeAnnotation { - if x != nil { - return x.Annotation - } - return nil -} - -func (x *LiteralType) GetStructure() *TypeStructure { - if x != nil { - return x.Structure - } - return nil -} - -type isLiteralType_Type interface { - isLiteralType_Type() -} - -type LiteralType_Simple struct { - // A simple type that can be compared one-to-one with another. - Simple SimpleType `protobuf:"varint,1,opt,name=simple,proto3,enum=flyteidl.core.SimpleType,oneof"` -} - -type LiteralType_Schema struct { - // A complex type that requires matching of inner fields. - Schema *SchemaType `protobuf:"bytes,2,opt,name=schema,proto3,oneof"` -} - -type LiteralType_CollectionType struct { - // Defines the type of the value of a collection. Only homogeneous collections are allowed. - CollectionType *LiteralType `protobuf:"bytes,3,opt,name=collection_type,json=collectionType,proto3,oneof"` -} - -type LiteralType_MapValueType struct { - // Defines the type of the value of a map type. The type of the key is always a string. - MapValueType *LiteralType `protobuf:"bytes,4,opt,name=map_value_type,json=mapValueType,proto3,oneof"` -} - -type LiteralType_Blob struct { - // A blob might have specialized implementation details depending on associated metadata. - Blob *BlobType `protobuf:"bytes,5,opt,name=blob,proto3,oneof"` -} - -type LiteralType_EnumType struct { - // Defines an enum with pre-defined string values. - EnumType *EnumType `protobuf:"bytes,7,opt,name=enum_type,json=enumType,proto3,oneof"` -} - -type LiteralType_StructuredDatasetType struct { - // Generalized schema support - StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,8,opt,name=structured_dataset_type,json=structuredDatasetType,proto3,oneof"` -} - -type LiteralType_UnionType struct { - // Defines an union type with pre-defined LiteralTypes. - UnionType *UnionType `protobuf:"bytes,10,opt,name=union_type,json=unionType,proto3,oneof"` -} - -func (*LiteralType_Simple) isLiteralType_Type() {} - -func (*LiteralType_Schema) isLiteralType_Type() {} - -func (*LiteralType_CollectionType) isLiteralType_Type() {} - -func (*LiteralType_MapValueType) isLiteralType_Type() {} - -func (*LiteralType_Blob) isLiteralType_Type() {} - -func (*LiteralType_EnumType) isLiteralType_Type() {} - -func (*LiteralType_StructuredDatasetType) isLiteralType_Type() {} - -func (*LiteralType_UnionType) isLiteralType_Type() {} - -// A reference to an output produced by a node. The type can be retrieved -and validated- from -// the underlying interface of the node. -type OutputReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Node id must exist at the graph layer. - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - // Variable name must refer to an output variable for the node. - Var string `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"` - AttrPath []*PromiseAttribute `protobuf:"bytes,3,rep,name=attr_path,json=attrPath,proto3" json:"attr_path,omitempty"` -} - -func (x *OutputReference) Reset() { - *x = OutputReference{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OutputReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OutputReference) ProtoMessage() {} - -func (x *OutputReference) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OutputReference.ProtoReflect.Descriptor instead. -func (*OutputReference) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{8} -} - -func (x *OutputReference) GetNodeId() string { - if x != nil { - return x.NodeId - } - return "" -} - -func (x *OutputReference) GetVar() string { - if x != nil { - return x.Var - } - return "" -} - -func (x *OutputReference) GetAttrPath() []*PromiseAttribute { - if x != nil { - return x.AttrPath - } - return nil -} - -type PromiseAttribute struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Value: - // - // *PromiseAttribute_StringValue - // *PromiseAttribute_IntValue - Value isPromiseAttribute_Value `protobuf_oneof:"value"` -} - -func (x *PromiseAttribute) Reset() { - *x = PromiseAttribute{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PromiseAttribute) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PromiseAttribute) ProtoMessage() {} - -func (x *PromiseAttribute) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PromiseAttribute.ProtoReflect.Descriptor instead. -func (*PromiseAttribute) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{9} -} - -func (m *PromiseAttribute) GetValue() isPromiseAttribute_Value { - if m != nil { - return m.Value - } - return nil -} - -func (x *PromiseAttribute) GetStringValue() string { - if x, ok := x.GetValue().(*PromiseAttribute_StringValue); ok { - return x.StringValue - } - return "" -} - -func (x *PromiseAttribute) GetIntValue() int32 { - if x, ok := x.GetValue().(*PromiseAttribute_IntValue); ok { - return x.IntValue - } - return 0 -} - -type isPromiseAttribute_Value interface { - isPromiseAttribute_Value() -} - -type PromiseAttribute_StringValue struct { - StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"` -} - -type PromiseAttribute_IntValue struct { - IntValue int32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"` -} - -func (*PromiseAttribute_StringValue) isPromiseAttribute_Value() {} - -func (*PromiseAttribute_IntValue) isPromiseAttribute_Value() {} - -// Represents an error thrown from a node. -type Error struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The node id that threw the error. - FailedNodeId string `protobuf:"bytes,1,opt,name=failed_node_id,json=failedNodeId,proto3" json:"failed_node_id,omitempty"` - // Error message thrown. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *Error) Reset() { - *x = Error{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Error) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Error) ProtoMessage() {} - -func (x *Error) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Error.ProtoReflect.Descriptor instead. -func (*Error) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{10} -} - -func (x *Error) GetFailedNodeId() string { - if x != nil { - return x.FailedNodeId - } - return "" -} - -func (x *Error) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type SchemaType_SchemaColumn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique name -within the schema type- for the column - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The column type. This allows a limited set of types currently. - Type SchemaType_SchemaColumn_SchemaColumnType `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType" json:"type,omitempty"` -} - -func (x *SchemaType_SchemaColumn) Reset() { - *x = SchemaType_SchemaColumn{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SchemaType_SchemaColumn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SchemaType_SchemaColumn) ProtoMessage() {} - -func (x *SchemaType_SchemaColumn) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SchemaType_SchemaColumn.ProtoReflect.Descriptor instead. -func (*SchemaType_SchemaColumn) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0, 0} -} - -func (x *SchemaType_SchemaColumn) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *SchemaType_SchemaColumn) GetType() SchemaType_SchemaColumn_SchemaColumnType { - if x != nil { - return x.Type - } - return SchemaType_SchemaColumn_INTEGER -} - -type StructuredDatasetType_DatasetColumn struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique name within the schema type for the column. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The column type. - LiteralType *LiteralType `protobuf:"bytes,2,opt,name=literal_type,json=literalType,proto3" json:"literal_type,omitempty"` -} - -func (x *StructuredDatasetType_DatasetColumn) Reset() { - *x = StructuredDatasetType_DatasetColumn{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_types_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StructuredDatasetType_DatasetColumn) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StructuredDatasetType_DatasetColumn) ProtoMessage() {} - -func (x *StructuredDatasetType_DatasetColumn) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_types_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StructuredDatasetType_DatasetColumn.ProtoReflect.Descriptor instead. -func (*StructuredDatasetType_DatasetColumn) Descriptor() ([]byte, []int) { - return file_flyteidl_core_types_proto_rawDescGZIP(), []int{1, 0} -} - -func (x *StructuredDatasetType_DatasetColumn) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *StructuredDatasetType_DatasetColumn) GetLiteralType() *LiteralType { - if x != nil { - return x.LiteralType - } - return nil -} - -var File_flyteidl_core_types_proto protoreflect.FileDescriptor - -var file_flyteidl_core_types_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x02, 0x0a, 0x0a, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, - 0x79, 0x70, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x1a, 0xd0, 0x01, 0x0a, 0x0c, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x5f, 0x0a, 0x10, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, - 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, - 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x03, - 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x04, 0x12, 0x0c, - 0x0a, 0x08, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x22, 0xc7, 0x02, 0x0a, - 0x15, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, - 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x30, 0x0a, 0x14, - 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, - 0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x79, 0x74, - 0x65, 0x73, 0x1a, 0x62, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, 0x69, 0x74, 0x65, 0x72, - 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, - 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6c, 0x69, 0x74, 0x65, 0x72, - 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x08, 0x42, 0x6c, 0x6f, 0x62, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x64, - 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x42, 0x6c, 0x6f, - 0x62, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x52, - 0x0e, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x22, - 0x2f, 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, - 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x41, 0x52, 0x54, 0x10, 0x01, - 0x22, 0x22, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x09, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x36, 0x0a, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x0d, 0x54, 0x79, - 0x70, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, - 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x56, 0x0a, - 0x0e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, - 0x75, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x79, 0x70, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x5c, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, - 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x0e, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0xbc, 0x05, 0x0a, 0x0b, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x33, 0x0a, 0x06, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x06, 0x73, - 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x45, 0x0a, 0x0f, 0x63, 0x6f, - 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, - 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x6d, 0x61, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, - 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x36, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, - 0x48, 0x00, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x17, - 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x15, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, - 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x0a, - 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x75, 0x6e, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x0a, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x73, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, - 0x7a, 0x0a, 0x0f, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x76, - 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x3c, 0x0a, - 0x09, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x50, 0x61, 0x74, 0x68, 0x22, 0x5f, 0x0a, 0x10, 0x50, - 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, - 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x05, - 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, - 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x86, 0x01, 0x0a, 0x0a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0b, - 0x0a, 0x07, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x46, - 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, - 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x04, 0x12, - 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x05, 0x12, 0x0c, 0x0a, - 0x08, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x42, - 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x09, 0x42, 0xb0, - 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, - 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, - 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_types_proto_rawDescOnce sync.Once - file_flyteidl_core_types_proto_rawDescData = file_flyteidl_core_types_proto_rawDesc -) - -func file_flyteidl_core_types_proto_rawDescGZIP() []byte { - file_flyteidl_core_types_proto_rawDescOnce.Do(func() { - file_flyteidl_core_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_types_proto_rawDescData) - }) - return file_flyteidl_core_types_proto_rawDescData -} - -var file_flyteidl_core_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_flyteidl_core_types_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_flyteidl_core_types_proto_goTypes = []interface{}{ - (SimpleType)(0), // 0: flyteidl.core.SimpleType - (SchemaType_SchemaColumn_SchemaColumnType)(0), // 1: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType - (BlobType_BlobDimensionality)(0), // 2: flyteidl.core.BlobType.BlobDimensionality - (*SchemaType)(nil), // 3: flyteidl.core.SchemaType - (*StructuredDatasetType)(nil), // 4: flyteidl.core.StructuredDatasetType - (*BlobType)(nil), // 5: flyteidl.core.BlobType - (*EnumType)(nil), // 6: flyteidl.core.EnumType - (*UnionType)(nil), // 7: flyteidl.core.UnionType - (*TypeStructure)(nil), // 8: flyteidl.core.TypeStructure - (*TypeAnnotation)(nil), // 9: flyteidl.core.TypeAnnotation - (*LiteralType)(nil), // 10: flyteidl.core.LiteralType - (*OutputReference)(nil), // 11: flyteidl.core.OutputReference - (*PromiseAttribute)(nil), // 12: flyteidl.core.PromiseAttribute - (*Error)(nil), // 13: flyteidl.core.Error - (*SchemaType_SchemaColumn)(nil), // 14: flyteidl.core.SchemaType.SchemaColumn - (*StructuredDatasetType_DatasetColumn)(nil), // 15: flyteidl.core.StructuredDatasetType.DatasetColumn - nil, // 16: flyteidl.core.TypeStructure.DataclassTypeEntry - (*structpb.Struct)(nil), // 17: google.protobuf.Struct -} -var file_flyteidl_core_types_proto_depIdxs = []int32{ - 14, // 0: flyteidl.core.SchemaType.columns:type_name -> flyteidl.core.SchemaType.SchemaColumn - 15, // 1: flyteidl.core.StructuredDatasetType.columns:type_name -> flyteidl.core.StructuredDatasetType.DatasetColumn - 2, // 2: flyteidl.core.BlobType.dimensionality:type_name -> flyteidl.core.BlobType.BlobDimensionality - 10, // 3: flyteidl.core.UnionType.variants:type_name -> flyteidl.core.LiteralType - 16, // 4: flyteidl.core.TypeStructure.dataclass_type:type_name -> flyteidl.core.TypeStructure.DataclassTypeEntry - 17, // 5: flyteidl.core.TypeAnnotation.annotations:type_name -> google.protobuf.Struct - 0, // 6: flyteidl.core.LiteralType.simple:type_name -> flyteidl.core.SimpleType - 3, // 7: flyteidl.core.LiteralType.schema:type_name -> flyteidl.core.SchemaType - 10, // 8: flyteidl.core.LiteralType.collection_type:type_name -> flyteidl.core.LiteralType - 10, // 9: flyteidl.core.LiteralType.map_value_type:type_name -> flyteidl.core.LiteralType - 5, // 10: flyteidl.core.LiteralType.blob:type_name -> flyteidl.core.BlobType - 6, // 11: flyteidl.core.LiteralType.enum_type:type_name -> flyteidl.core.EnumType - 4, // 12: flyteidl.core.LiteralType.structured_dataset_type:type_name -> flyteidl.core.StructuredDatasetType - 7, // 13: flyteidl.core.LiteralType.union_type:type_name -> flyteidl.core.UnionType - 17, // 14: flyteidl.core.LiteralType.metadata:type_name -> google.protobuf.Struct - 9, // 15: flyteidl.core.LiteralType.annotation:type_name -> flyteidl.core.TypeAnnotation - 8, // 16: flyteidl.core.LiteralType.structure:type_name -> flyteidl.core.TypeStructure - 12, // 17: flyteidl.core.OutputReference.attr_path:type_name -> flyteidl.core.PromiseAttribute - 1, // 18: flyteidl.core.SchemaType.SchemaColumn.type:type_name -> flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType - 10, // 19: flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type:type_name -> flyteidl.core.LiteralType - 10, // 20: flyteidl.core.TypeStructure.DataclassTypeEntry.value:type_name -> flyteidl.core.LiteralType - 21, // [21:21] is the sub-list for method output_type - 21, // [21:21] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_types_proto_init() } -func file_flyteidl_core_types_proto_init() { - if File_flyteidl_core_types_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SchemaType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StructuredDatasetType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BlobType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnumType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnionType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TypeStructure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TypeAnnotation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LiteralType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OutputReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PromiseAttribute); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Error); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SchemaType_SchemaColumn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StructuredDatasetType_DatasetColumn); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_types_proto_msgTypes[7].OneofWrappers = []interface{}{ - (*LiteralType_Simple)(nil), - (*LiteralType_Schema)(nil), - (*LiteralType_CollectionType)(nil), - (*LiteralType_MapValueType)(nil), - (*LiteralType_Blob)(nil), - (*LiteralType_EnumType)(nil), - (*LiteralType_StructuredDatasetType)(nil), - (*LiteralType_UnionType)(nil), - } - file_flyteidl_core_types_proto_msgTypes[9].OneofWrappers = []interface{}{ - (*PromiseAttribute_StringValue)(nil), - (*PromiseAttribute_IntValue)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_types_proto_rawDesc, - NumEnums: 3, - NumMessages: 14, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_types_proto_goTypes, - DependencyIndexes: file_flyteidl_core_types_proto_depIdxs, - EnumInfos: file_flyteidl_core_types_proto_enumTypes, - MessageInfos: file_flyteidl_core_types_proto_msgTypes, - }.Build() - File_flyteidl_core_types_proto = out.File - file_flyteidl_core_types_proto_rawDesc = nil - file_flyteidl_core_types_proto_goTypes = nil - file_flyteidl_core_types_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go deleted file mode 100644 index f9318f539f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go +++ /dev/null @@ -1,2259 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/workflow.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Failure Handling Strategy -type WorkflowMetadata_OnFailurePolicy int32 - -const ( - // FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically - // abort all currently running nodes and clean up resources before finally marking the workflow executions as - // failed. - WorkflowMetadata_FAIL_IMMEDIATELY WorkflowMetadata_OnFailurePolicy = 0 - // FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will - // not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. - // Other nodes that will be executed to completion before cleaning up resources and marking the workflow - // execution as failed. - WorkflowMetadata_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE WorkflowMetadata_OnFailurePolicy = 1 -) - -// Enum value maps for WorkflowMetadata_OnFailurePolicy. -var ( - WorkflowMetadata_OnFailurePolicy_name = map[int32]string{ - 0: "FAIL_IMMEDIATELY", - 1: "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", - } - WorkflowMetadata_OnFailurePolicy_value = map[string]int32{ - "FAIL_IMMEDIATELY": 0, - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE": 1, - } -) - -func (x WorkflowMetadata_OnFailurePolicy) Enum() *WorkflowMetadata_OnFailurePolicy { - p := new(WorkflowMetadata_OnFailurePolicy) - *p = x - return p -} - -func (x WorkflowMetadata_OnFailurePolicy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (WorkflowMetadata_OnFailurePolicy) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_core_workflow_proto_enumTypes[0].Descriptor() -} - -func (WorkflowMetadata_OnFailurePolicy) Type() protoreflect.EnumType { - return &file_flyteidl_core_workflow_proto_enumTypes[0] -} - -func (x WorkflowMetadata_OnFailurePolicy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use WorkflowMetadata_OnFailurePolicy.Descriptor instead. -func (WorkflowMetadata_OnFailurePolicy) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{13, 0} -} - -// Defines a condition and the execution unit that should be executed if the condition is satisfied. -type IfBlock struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Condition *BooleanExpression `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` - ThenNode *Node `protobuf:"bytes,2,opt,name=then_node,json=thenNode,proto3" json:"then_node,omitempty"` -} - -func (x *IfBlock) Reset() { - *x = IfBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IfBlock) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IfBlock) ProtoMessage() {} - -func (x *IfBlock) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IfBlock.ProtoReflect.Descriptor instead. -func (*IfBlock) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{0} -} - -func (x *IfBlock) GetCondition() *BooleanExpression { - if x != nil { - return x.Condition - } - return nil -} - -func (x *IfBlock) GetThenNode() *Node { - if x != nil { - return x.ThenNode - } - return nil -} - -// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. -// If no conditions were satisfied, the else_node or the error will execute. -type IfElseBlock struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required. First condition to evaluate. - Case *IfBlock `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"` - // +optional. Additional branches to evaluate. - Other []*IfBlock `protobuf:"bytes,2,rep,name=other,proto3" json:"other,omitempty"` - // +required. - // - // Types that are assignable to Default: - // - // *IfElseBlock_ElseNode - // *IfElseBlock_Error - Default isIfElseBlock_Default `protobuf_oneof:"default"` -} - -func (x *IfElseBlock) Reset() { - *x = IfElseBlock{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IfElseBlock) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IfElseBlock) ProtoMessage() {} - -func (x *IfElseBlock) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IfElseBlock.ProtoReflect.Descriptor instead. -func (*IfElseBlock) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{1} -} - -func (x *IfElseBlock) GetCase() *IfBlock { - if x != nil { - return x.Case - } - return nil -} - -func (x *IfElseBlock) GetOther() []*IfBlock { - if x != nil { - return x.Other - } - return nil -} - -func (m *IfElseBlock) GetDefault() isIfElseBlock_Default { - if m != nil { - return m.Default - } - return nil -} - -func (x *IfElseBlock) GetElseNode() *Node { - if x, ok := x.GetDefault().(*IfElseBlock_ElseNode); ok { - return x.ElseNode - } - return nil -} - -func (x *IfElseBlock) GetError() *Error { - if x, ok := x.GetDefault().(*IfElseBlock_Error); ok { - return x.Error - } - return nil -} - -type isIfElseBlock_Default interface { - isIfElseBlock_Default() -} - -type IfElseBlock_ElseNode struct { - // The node to execute in case none of the branches were taken. - ElseNode *Node `protobuf:"bytes,3,opt,name=else_node,json=elseNode,proto3,oneof"` -} - -type IfElseBlock_Error struct { - // An error to throw in case none of the branches were taken. - Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` -} - -func (*IfElseBlock_ElseNode) isIfElseBlock_Default() {} - -func (*IfElseBlock_Error) isIfElseBlock_Default() {} - -// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at -// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). -type BranchNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // +required - IfElse *IfElseBlock `protobuf:"bytes,1,opt,name=if_else,json=ifElse,proto3" json:"if_else,omitempty"` -} - -func (x *BranchNode) Reset() { - *x = BranchNode{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BranchNode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BranchNode) ProtoMessage() {} - -func (x *BranchNode) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BranchNode.ProtoReflect.Descriptor instead. -func (*BranchNode) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{2} -} - -func (x *BranchNode) GetIfElse() *IfElseBlock { - if x != nil { - return x.IfElse - } - return nil -} - -// Refers to the task that the Node is to execute. -type TaskNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Reference: - // - // *TaskNode_ReferenceId - Reference isTaskNode_Reference `protobuf_oneof:"reference"` - // Optional overrides applied at task execution time. - Overrides *TaskNodeOverrides `protobuf:"bytes,2,opt,name=overrides,proto3" json:"overrides,omitempty"` -} - -func (x *TaskNode) Reset() { - *x = TaskNode{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskNode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskNode) ProtoMessage() {} - -func (x *TaskNode) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskNode.ProtoReflect.Descriptor instead. -func (*TaskNode) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{3} -} - -func (m *TaskNode) GetReference() isTaskNode_Reference { - if m != nil { - return m.Reference - } - return nil -} - -func (x *TaskNode) GetReferenceId() *Identifier { - if x, ok := x.GetReference().(*TaskNode_ReferenceId); ok { - return x.ReferenceId - } - return nil -} - -func (x *TaskNode) GetOverrides() *TaskNodeOverrides { - if x != nil { - return x.Overrides - } - return nil -} - -type isTaskNode_Reference interface { - isTaskNode_Reference() -} - -type TaskNode_ReferenceId struct { - // A globally unique identifier for the task. - ReferenceId *Identifier `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3,oneof"` -} - -func (*TaskNode_ReferenceId) isTaskNode_Reference() {} - -// Refers to a the workflow the node is to execute. -type WorkflowNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Reference: - // - // *WorkflowNode_LaunchplanRef - // *WorkflowNode_SubWorkflowRef - Reference isWorkflowNode_Reference `protobuf_oneof:"reference"` -} - -func (x *WorkflowNode) Reset() { - *x = WorkflowNode{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowNode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowNode) ProtoMessage() {} - -func (x *WorkflowNode) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowNode.ProtoReflect.Descriptor instead. -func (*WorkflowNode) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{4} -} - -func (m *WorkflowNode) GetReference() isWorkflowNode_Reference { - if m != nil { - return m.Reference - } - return nil -} - -func (x *WorkflowNode) GetLaunchplanRef() *Identifier { - if x, ok := x.GetReference().(*WorkflowNode_LaunchplanRef); ok { - return x.LaunchplanRef - } - return nil -} - -func (x *WorkflowNode) GetSubWorkflowRef() *Identifier { - if x, ok := x.GetReference().(*WorkflowNode_SubWorkflowRef); ok { - return x.SubWorkflowRef - } - return nil -} - -type isWorkflowNode_Reference interface { - isWorkflowNode_Reference() -} - -type WorkflowNode_LaunchplanRef struct { - // A globally unique identifier for the launch plan. - LaunchplanRef *Identifier `protobuf:"bytes,1,opt,name=launchplan_ref,json=launchplanRef,proto3,oneof"` -} - -type WorkflowNode_SubWorkflowRef struct { - // Reference to a subworkflow, that should be defined with the compiler context - SubWorkflowRef *Identifier `protobuf:"bytes,2,opt,name=sub_workflow_ref,json=subWorkflowRef,proto3,oneof"` -} - -func (*WorkflowNode_LaunchplanRef) isWorkflowNode_Reference() {} - -func (*WorkflowNode_SubWorkflowRef) isWorkflowNode_Reference() {} - -// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean -// signal with the provided signal_id. -type ApproveCondition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique identifier for the requested boolean signal. - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` -} - -func (x *ApproveCondition) Reset() { - *x = ApproveCondition{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ApproveCondition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApproveCondition) ProtoMessage() {} - -func (x *ApproveCondition) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApproveCondition.ProtoReflect.Descriptor instead. -func (*ApproveCondition) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{5} -} - -func (x *ApproveCondition) GetSignalId() string { - if x != nil { - return x.SignalId - } - return "" -} - -// SignalCondition represents a dependency on an signal. -type SignalCondition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique identifier for the requested signal. - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // A type denoting the required value type for this signal. - Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // The variable name for the signal value in this nodes outputs. - OutputVariableName string `protobuf:"bytes,3,opt,name=output_variable_name,json=outputVariableName,proto3" json:"output_variable_name,omitempty"` -} - -func (x *SignalCondition) Reset() { - *x = SignalCondition{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SignalCondition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SignalCondition) ProtoMessage() {} - -func (x *SignalCondition) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SignalCondition.ProtoReflect.Descriptor instead. -func (*SignalCondition) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{6} -} - -func (x *SignalCondition) GetSignalId() string { - if x != nil { - return x.SignalId - } - return "" -} - -func (x *SignalCondition) GetType() *LiteralType { - if x != nil { - return x.Type - } - return nil -} - -func (x *SignalCondition) GetOutputVariableName() string { - if x != nil { - return x.OutputVariableName - } - return "" -} - -// SleepCondition represents a dependency on waiting for the specified duration. -type SleepCondition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The overall duration for this sleep. - Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` -} - -func (x *SleepCondition) Reset() { - *x = SleepCondition{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SleepCondition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SleepCondition) ProtoMessage() {} - -func (x *SleepCondition) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SleepCondition.ProtoReflect.Descriptor instead. -func (*SleepCondition) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{7} -} - -func (x *SleepCondition) GetDuration() *durationpb.Duration { - if x != nil { - return x.Duration - } - return nil -} - -// GateNode refers to the condition that is required for the gate to successfully complete. -type GateNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Condition: - // - // *GateNode_Approve - // *GateNode_Signal - // *GateNode_Sleep - Condition isGateNode_Condition `protobuf_oneof:"condition"` -} - -func (x *GateNode) Reset() { - *x = GateNode{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GateNode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GateNode) ProtoMessage() {} - -func (x *GateNode) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GateNode.ProtoReflect.Descriptor instead. -func (*GateNode) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{8} -} - -func (m *GateNode) GetCondition() isGateNode_Condition { - if m != nil { - return m.Condition - } - return nil -} - -func (x *GateNode) GetApprove() *ApproveCondition { - if x, ok := x.GetCondition().(*GateNode_Approve); ok { - return x.Approve - } - return nil -} - -func (x *GateNode) GetSignal() *SignalCondition { - if x, ok := x.GetCondition().(*GateNode_Signal); ok { - return x.Signal - } - return nil -} - -func (x *GateNode) GetSleep() *SleepCondition { - if x, ok := x.GetCondition().(*GateNode_Sleep); ok { - return x.Sleep - } - return nil -} - -type isGateNode_Condition interface { - isGateNode_Condition() -} - -type GateNode_Approve struct { - // ApproveCondition represents a dependency on an external approval provided by a boolean signal. - Approve *ApproveCondition `protobuf:"bytes,1,opt,name=approve,proto3,oneof"` -} - -type GateNode_Signal struct { - // SignalCondition represents a dependency on an signal. - Signal *SignalCondition `protobuf:"bytes,2,opt,name=signal,proto3,oneof"` -} - -type GateNode_Sleep struct { - // SleepCondition represents a dependency on waiting for the specified duration. - Sleep *SleepCondition `protobuf:"bytes,3,opt,name=sleep,proto3,oneof"` -} - -func (*GateNode_Approve) isGateNode_Condition() {} - -func (*GateNode_Signal) isGateNode_Condition() {} - -func (*GateNode_Sleep) isGateNode_Condition() {} - -// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input -// values. An ArrayNode can be executed with configurable parallelism (separate from the parent -// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. -type ArrayNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // node is the sub-node that will be executed for each element in the array. - Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` - // parallelism defines the minimum number of instances to bring up concurrently at any given - // point. Note that this is an optimistic restriction and that, due to network partitioning or - // other failures, the actual number of currently running instances might be more. This has to - // be a positive number if assigned. Default value is size. - Parallelism uint32 `protobuf:"varint,2,opt,name=parallelism,proto3" json:"parallelism,omitempty"` - // Types that are assignable to SuccessCriteria: - // - // *ArrayNode_MinSuccesses - // *ArrayNode_MinSuccessRatio - SuccessCriteria isArrayNode_SuccessCriteria `protobuf_oneof:"success_criteria"` -} - -func (x *ArrayNode) Reset() { - *x = ArrayNode{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArrayNode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArrayNode) ProtoMessage() {} - -func (x *ArrayNode) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArrayNode.ProtoReflect.Descriptor instead. -func (*ArrayNode) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{9} -} - -func (x *ArrayNode) GetNode() *Node { - if x != nil { - return x.Node - } - return nil -} - -func (x *ArrayNode) GetParallelism() uint32 { - if x != nil { - return x.Parallelism - } - return 0 -} - -func (m *ArrayNode) GetSuccessCriteria() isArrayNode_SuccessCriteria { - if m != nil { - return m.SuccessCriteria - } - return nil -} - -func (x *ArrayNode) GetMinSuccesses() uint32 { - if x, ok := x.GetSuccessCriteria().(*ArrayNode_MinSuccesses); ok { - return x.MinSuccesses - } - return 0 -} - -func (x *ArrayNode) GetMinSuccessRatio() float32 { - if x, ok := x.GetSuccessCriteria().(*ArrayNode_MinSuccessRatio); ok { - return x.MinSuccessRatio - } - return 0 -} - -type isArrayNode_SuccessCriteria interface { - isArrayNode_SuccessCriteria() -} - -type ArrayNode_MinSuccesses struct { - // min_successes is an absolute number of the minimum number of successful completions of - // sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful - // and outputs will be computed. This has to be a non-negative number if assigned. Default - // value is size (if specified). - MinSuccesses uint32 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` -} - -type ArrayNode_MinSuccessRatio struct { - // If the array job size is not known beforehand, the min_success_ratio can instead be used - // to determine when an ArrayNode can be marked successful. - MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` -} - -func (*ArrayNode_MinSuccesses) isArrayNode_SuccessCriteria() {} - -func (*ArrayNode_MinSuccessRatio) isArrayNode_SuccessCriteria() {} - -// Defines extra information about the Node. -type NodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A friendly name for the Node - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The overall timeout of a task. - Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` - // Number of retries per task. - Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` - // Identify whether node is interruptible - // - // Types that are assignable to InterruptibleValue: - // - // *NodeMetadata_Interruptible - InterruptibleValue isNodeMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` - // Identify whether a node should have it's outputs cached. - // - // Types that are assignable to CacheableValue: - // - // *NodeMetadata_Cacheable - CacheableValue isNodeMetadata_CacheableValue `protobuf_oneof:"cacheable_value"` - // The version of the cache to use. - // - // Types that are assignable to CacheVersionValue: - // - // *NodeMetadata_CacheVersion - CacheVersionValue isNodeMetadata_CacheVersionValue `protobuf_oneof:"cache_version_value"` - // Identify whether caching operations involving this node should be serialized. - // - // Types that are assignable to CacheSerializableValue: - // - // *NodeMetadata_CacheSerializable - CacheSerializableValue isNodeMetadata_CacheSerializableValue `protobuf_oneof:"cache_serializable_value"` -} - -func (x *NodeMetadata) Reset() { - *x = NodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeMetadata) ProtoMessage() {} - -func (x *NodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeMetadata.ProtoReflect.Descriptor instead. -func (*NodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{10} -} - -func (x *NodeMetadata) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *NodeMetadata) GetTimeout() *durationpb.Duration { - if x != nil { - return x.Timeout - } - return nil -} - -func (x *NodeMetadata) GetRetries() *RetryStrategy { - if x != nil { - return x.Retries - } - return nil -} - -func (m *NodeMetadata) GetInterruptibleValue() isNodeMetadata_InterruptibleValue { - if m != nil { - return m.InterruptibleValue - } - return nil -} - -func (x *NodeMetadata) GetInterruptible() bool { - if x, ok := x.GetInterruptibleValue().(*NodeMetadata_Interruptible); ok { - return x.Interruptible - } - return false -} - -func (m *NodeMetadata) GetCacheableValue() isNodeMetadata_CacheableValue { - if m != nil { - return m.CacheableValue - } - return nil -} - -func (x *NodeMetadata) GetCacheable() bool { - if x, ok := x.GetCacheableValue().(*NodeMetadata_Cacheable); ok { - return x.Cacheable - } - return false -} - -func (m *NodeMetadata) GetCacheVersionValue() isNodeMetadata_CacheVersionValue { - if m != nil { - return m.CacheVersionValue - } - return nil -} - -func (x *NodeMetadata) GetCacheVersion() string { - if x, ok := x.GetCacheVersionValue().(*NodeMetadata_CacheVersion); ok { - return x.CacheVersion - } - return "" -} - -func (m *NodeMetadata) GetCacheSerializableValue() isNodeMetadata_CacheSerializableValue { - if m != nil { - return m.CacheSerializableValue - } - return nil -} - -func (x *NodeMetadata) GetCacheSerializable() bool { - if x, ok := x.GetCacheSerializableValue().(*NodeMetadata_CacheSerializable); ok { - return x.CacheSerializable - } - return false -} - -type isNodeMetadata_InterruptibleValue interface { - isNodeMetadata_InterruptibleValue() -} - -type NodeMetadata_Interruptible struct { - Interruptible bool `protobuf:"varint,6,opt,name=interruptible,proto3,oneof"` -} - -func (*NodeMetadata_Interruptible) isNodeMetadata_InterruptibleValue() {} - -type isNodeMetadata_CacheableValue interface { - isNodeMetadata_CacheableValue() -} - -type NodeMetadata_Cacheable struct { - Cacheable bool `protobuf:"varint,7,opt,name=cacheable,proto3,oneof"` -} - -func (*NodeMetadata_Cacheable) isNodeMetadata_CacheableValue() {} - -type isNodeMetadata_CacheVersionValue interface { - isNodeMetadata_CacheVersionValue() -} - -type NodeMetadata_CacheVersion struct { - CacheVersion string `protobuf:"bytes,8,opt,name=cache_version,json=cacheVersion,proto3,oneof"` -} - -func (*NodeMetadata_CacheVersion) isNodeMetadata_CacheVersionValue() {} - -type isNodeMetadata_CacheSerializableValue interface { - isNodeMetadata_CacheSerializableValue() -} - -type NodeMetadata_CacheSerializable struct { - CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3,oneof"` -} - -func (*NodeMetadata_CacheSerializable) isNodeMetadata_CacheSerializableValue() {} - -// Links a variable to an alias. -type Alias struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Must match one of the output variable names on a node. - Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - // A workflow-level unique alias that downstream nodes can refer to in their input. - Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` -} - -func (x *Alias) Reset() { - *x = Alias{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Alias) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Alias) ProtoMessage() {} - -func (x *Alias) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Alias.ProtoReflect.Descriptor instead. -func (*Alias) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{11} -} - -func (x *Alias) GetVar() string { - if x != nil { - return x.Var - } - return "" -} - -func (x *Alias) GetAlias() string { - if x != nil { - return x.Alias - } - return "" -} - -// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch -// node. -type Node struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved - // node ids that cannot be used by other nodes. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Extra metadata about the node. - Metadata *NodeMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface - // must be fulfilled. - Inputs []*Binding `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` - // +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its - // upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs - // field. - UpstreamNodeIds []string `protobuf:"bytes,4,rep,name=upstream_node_ids,json=upstreamNodeIds,proto3" json:"upstream_node_ids,omitempty"` - // +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes - // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this - // nodes outputs using the alias if one's specified. - OutputAliases []*Alias `protobuf:"bytes,5,rep,name=output_aliases,json=outputAliases,proto3" json:"output_aliases,omitempty"` - // Information about the target to execute in this node. - // - // Types that are assignable to Target: - // - // *Node_TaskNode - // *Node_WorkflowNode - // *Node_BranchNode - // *Node_GateNode - // *Node_ArrayNode - Target isNode_Target `protobuf_oneof:"target"` -} - -func (x *Node) Reset() { - *x = Node{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Node) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Node) ProtoMessage() {} - -func (x *Node) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Node.ProtoReflect.Descriptor instead. -func (*Node) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{12} -} - -func (x *Node) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Node) GetMetadata() *NodeMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *Node) GetInputs() []*Binding { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *Node) GetUpstreamNodeIds() []string { - if x != nil { - return x.UpstreamNodeIds - } - return nil -} - -func (x *Node) GetOutputAliases() []*Alias { - if x != nil { - return x.OutputAliases - } - return nil -} - -func (m *Node) GetTarget() isNode_Target { - if m != nil { - return m.Target - } - return nil -} - -func (x *Node) GetTaskNode() *TaskNode { - if x, ok := x.GetTarget().(*Node_TaskNode); ok { - return x.TaskNode - } - return nil -} - -func (x *Node) GetWorkflowNode() *WorkflowNode { - if x, ok := x.GetTarget().(*Node_WorkflowNode); ok { - return x.WorkflowNode - } - return nil -} - -func (x *Node) GetBranchNode() *BranchNode { - if x, ok := x.GetTarget().(*Node_BranchNode); ok { - return x.BranchNode - } - return nil -} - -func (x *Node) GetGateNode() *GateNode { - if x, ok := x.GetTarget().(*Node_GateNode); ok { - return x.GateNode - } - return nil -} - -func (x *Node) GetArrayNode() *ArrayNode { - if x, ok := x.GetTarget().(*Node_ArrayNode); ok { - return x.ArrayNode - } - return nil -} - -type isNode_Target interface { - isNode_Target() -} - -type Node_TaskNode struct { - // Information about the Task to execute in this node. - TaskNode *TaskNode `protobuf:"bytes,6,opt,name=task_node,json=taskNode,proto3,oneof"` -} - -type Node_WorkflowNode struct { - // Information about the Workflow to execute in this mode. - WorkflowNode *WorkflowNode `protobuf:"bytes,7,opt,name=workflow_node,json=workflowNode,proto3,oneof"` -} - -type Node_BranchNode struct { - // Information about the branch node to evaluate in this node. - BranchNode *BranchNode `protobuf:"bytes,8,opt,name=branch_node,json=branchNode,proto3,oneof"` -} - -type Node_GateNode struct { - // Information about the condition to evaluate in this node. - GateNode *GateNode `protobuf:"bytes,9,opt,name=gate_node,json=gateNode,proto3,oneof"` -} - -type Node_ArrayNode struct { - // Information about the sub-node executions for each value in the list of this nodes - // inputs values. - ArrayNode *ArrayNode `protobuf:"bytes,10,opt,name=array_node,json=arrayNode,proto3,oneof"` -} - -func (*Node_TaskNode) isNode_Target() {} - -func (*Node_WorkflowNode) isNode_Target() {} - -func (*Node_BranchNode) isNode_Target() {} - -func (*Node_GateNode) isNode_Target() {} - -func (*Node_ArrayNode) isNode_Target() {} - -// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not -// percolate down to child entities (like tasks) launched by the workflow. -type WorkflowMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Indicates the runtime priority of workflow executions. - QualityOfService *QualityOfService `protobuf:"bytes,1,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` - // Defines how the system should behave when a failure is detected in the workflow execution. - OnFailure WorkflowMetadata_OnFailurePolicy `protobuf:"varint,2,opt,name=on_failure,json=onFailure,proto3,enum=flyteidl.core.WorkflowMetadata_OnFailurePolicy" json:"on_failure,omitempty"` - // Arbitrary tags that allow users and the platform to store small but arbitrary labels - Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *WorkflowMetadata) Reset() { - *x = WorkflowMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowMetadata) ProtoMessage() {} - -func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowMetadata.ProtoReflect.Descriptor instead. -func (*WorkflowMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{13} -} - -func (x *WorkflowMetadata) GetQualityOfService() *QualityOfService { - if x != nil { - return x.QualityOfService - } - return nil -} - -func (x *WorkflowMetadata) GetOnFailure() WorkflowMetadata_OnFailurePolicy { - if x != nil { - return x.OnFailure - } - return WorkflowMetadata_FAIL_IMMEDIATELY -} - -func (x *WorkflowMetadata) GetTags() map[string]string { - if x != nil { - return x.Tags - } - return nil -} - -// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to -// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it -// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes -// unless explicitly overridden at the node layer. -// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be -// added to both this object and the WorkflowMetadata object above. -type WorkflowMetadataDefaults struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Whether child nodes of the workflow are interruptible. - Interruptible bool `protobuf:"varint,1,opt,name=interruptible,proto3" json:"interruptible,omitempty"` -} - -func (x *WorkflowMetadataDefaults) Reset() { - *x = WorkflowMetadataDefaults{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowMetadataDefaults) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowMetadataDefaults) ProtoMessage() {} - -func (x *WorkflowMetadataDefaults) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowMetadataDefaults.ProtoReflect.Descriptor instead. -func (*WorkflowMetadataDefaults) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{14} -} - -func (x *WorkflowMetadataDefaults) GetInterruptible() bool { - if x != nil { - return x.Interruptible - } - return false -} - -// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, -// directed acyclic graph. -type WorkflowTemplate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A globally unique identifier for the workflow. - Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Extra metadata about the workflow. - Metadata *WorkflowMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Defines a strongly typed interface for the Workflow. This can include some optional parameters. - Interface *TypedInterface `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` - // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. - Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` - // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or - // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow - // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to - // bind final outputs. - // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can - // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling - // outputs from the output of a task. - Outputs []*Binding `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` - // +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. - // The interface of this node must match the Workflow interface with an additional input named 'error' of type - // pb.lyft.flyte.core.Error. - FailureNode *Node `protobuf:"bytes,6,opt,name=failure_node,json=failureNode,proto3" json:"failure_node,omitempty"` - // workflow defaults - MetadataDefaults *WorkflowMetadataDefaults `protobuf:"bytes,7,opt,name=metadata_defaults,json=metadataDefaults,proto3" json:"metadata_defaults,omitempty"` -} - -func (x *WorkflowTemplate) Reset() { - *x = WorkflowTemplate{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowTemplate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowTemplate) ProtoMessage() {} - -func (x *WorkflowTemplate) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowTemplate.ProtoReflect.Descriptor instead. -func (*WorkflowTemplate) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{15} -} - -func (x *WorkflowTemplate) GetId() *Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *WorkflowTemplate) GetMetadata() *WorkflowMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *WorkflowTemplate) GetInterface() *TypedInterface { - if x != nil { - return x.Interface - } - return nil -} - -func (x *WorkflowTemplate) GetNodes() []*Node { - if x != nil { - return x.Nodes - } - return nil -} - -func (x *WorkflowTemplate) GetOutputs() []*Binding { - if x != nil { - return x.Outputs - } - return nil -} - -func (x *WorkflowTemplate) GetFailureNode() *Node { - if x != nil { - return x.FailureNode - } - return nil -} - -func (x *WorkflowTemplate) GetMetadataDefaults() *WorkflowMetadataDefaults { - if x != nil { - return x.MetadataDefaults - } - return nil -} - -// Optional task node overrides that will be applied at task execution time. -type TaskNodeOverrides struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A customizable interface to convey resources requested for a task container. - Resources *Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` - // Overrides for all non-standard resources, not captured by - // v1.ResourceRequirements, to allocate to a task. - ExtendedResources *ExtendedResources `protobuf:"bytes,2,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"` -} - -func (x *TaskNodeOverrides) Reset() { - *x = TaskNodeOverrides{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskNodeOverrides) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskNodeOverrides) ProtoMessage() {} - -func (x *TaskNodeOverrides) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskNodeOverrides.ProtoReflect.Descriptor instead. -func (*TaskNodeOverrides) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{16} -} - -func (x *TaskNodeOverrides) GetResources() *Resources { - if x != nil { - return x.Resources - } - return nil -} - -func (x *TaskNodeOverrides) GetExtendedResources() *ExtendedResources { - if x != nil { - return x.ExtendedResources - } - return nil -} - -// A structure that uniquely identifies a launch plan in the system. -type LaunchPlanTemplate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A globally unique identifier for the launch plan. - Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The input and output interface for the launch plan - Interface *TypedInterface `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` - // A collection of input literals that are fixed for the launch plan - FixedInputs *LiteralMap `protobuf:"bytes,3,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` -} - -func (x *LaunchPlanTemplate) Reset() { - *x = LaunchPlanTemplate{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LaunchPlanTemplate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LaunchPlanTemplate) ProtoMessage() {} - -func (x *LaunchPlanTemplate) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LaunchPlanTemplate.ProtoReflect.Descriptor instead. -func (*LaunchPlanTemplate) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{17} -} - -func (x *LaunchPlanTemplate) GetId() *Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *LaunchPlanTemplate) GetInterface() *TypedInterface { - if x != nil { - return x.Interface - } - return nil -} - -func (x *LaunchPlanTemplate) GetFixedInputs() *LiteralMap { - if x != nil { - return x.FixedInputs - } - return nil -} - -var File_flyteidl_core_workflow_proto protoreflect.FileDescriptor - -var file_flyteidl_core_workflow_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1d, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6e, - 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, - 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x07, - 0x49, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, - 0x61, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x63, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x74, 0x68, 0x65, 0x6e, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x08, 0x74, 0x68, 0x65, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0b, 0x49, 0x66, - 0x45, 0x6c, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x0a, 0x04, 0x63, 0x61, 0x73, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x04, 0x63, 0x61, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x6f, 0x74, - 0x68, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x65, - 0x6c, 0x73, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x22, 0x41, 0x0a, 0x0a, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x33, - 0x0a, 0x07, 0x69, 0x66, 0x5f, 0x65, 0x6c, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x49, 0x66, 0x45, 0x6c, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x69, 0x66, 0x45, - 0x6c, 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, - 0x12, 0x3e, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x3e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, - 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, - 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xa6, 0x01, - 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x42, - 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x66, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x0d, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x70, 0x6c, 0x61, 0x6e, 0x52, - 0x65, 0x66, 0x12, 0x45, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x66, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x2f, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, - 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, - 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, - 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x47, 0x0a, 0x0e, 0x53, 0x6c, - 0x65, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0xc5, 0x01, 0x0a, 0x08, 0x47, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, - 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x38, 0x0a, - 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x6c, 0x65, 0x65, 0x70, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x73, 0x6c, 0x65, 0x65, 0x70, 0x42, 0x0b, - 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x09, - 0x41, 0x72, 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x6e, 0x6f, 0x64, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, - 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, - 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, - 0x6c, 0x69, 0x73, 0x6d, 0x12, 0x25, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0c, 0x6d, - 0x69, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x6d, - 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x53, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x42, 0x12, 0x0a, 0x10, 0x73, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x22, 0x8c, 0x03, - 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, - 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x74, - 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, - 0x26, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, - 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x09, 0x63, 0x61, - 0x63, 0x68, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, - 0x52, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, - 0x0a, 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x03, 0x52, 0x11, 0x63, 0x61, - 0x63, 0x68, 0x65, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x42, - 0x15, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x15, 0x0a, 0x13, 0x63, 0x61, 0x63, - 0x68, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0x1a, 0x0a, 0x18, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, - 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2f, 0x0a, 0x05, - 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x9f, 0x04, - 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x2e, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, - 0x2a, 0x0a, 0x11, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x6f, 0x64, 0x65, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x70, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x6f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, - 0x12, 0x42, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, - 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, - 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, - 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x72, - 0x72, 0x61, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, - 0x72, 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, - 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, - 0xfc, 0x02, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, - 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, - 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, - 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x51, 0x0a, 0x0f, 0x4f, - 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x14, - 0x0a, 0x10, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4d, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, - 0x4c, 0x59, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x41, 0x46, 0x54, - 0x45, 0x52, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x4e, 0x4f, - 0x44, 0x45, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x01, 0x22, 0x40, - 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, - 0x22, 0xa2, 0x03, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, - 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, - 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, - 0x64, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, - 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x07, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, - 0x72, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, - 0x54, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x73, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, - 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x12, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, - 0x6c, 0x61, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, - 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x70, - 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x69, 0x78, 0x65, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, - 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_workflow_proto_rawDescOnce sync.Once - file_flyteidl_core_workflow_proto_rawDescData = file_flyteidl_core_workflow_proto_rawDesc -) - -func file_flyteidl_core_workflow_proto_rawDescGZIP() []byte { - file_flyteidl_core_workflow_proto_rawDescOnce.Do(func() { - file_flyteidl_core_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_workflow_proto_rawDescData) - }) - return file_flyteidl_core_workflow_proto_rawDescData -} - -var file_flyteidl_core_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_core_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 19) -var file_flyteidl_core_workflow_proto_goTypes = []interface{}{ - (WorkflowMetadata_OnFailurePolicy)(0), // 0: flyteidl.core.WorkflowMetadata.OnFailurePolicy - (*IfBlock)(nil), // 1: flyteidl.core.IfBlock - (*IfElseBlock)(nil), // 2: flyteidl.core.IfElseBlock - (*BranchNode)(nil), // 3: flyteidl.core.BranchNode - (*TaskNode)(nil), // 4: flyteidl.core.TaskNode - (*WorkflowNode)(nil), // 5: flyteidl.core.WorkflowNode - (*ApproveCondition)(nil), // 6: flyteidl.core.ApproveCondition - (*SignalCondition)(nil), // 7: flyteidl.core.SignalCondition - (*SleepCondition)(nil), // 8: flyteidl.core.SleepCondition - (*GateNode)(nil), // 9: flyteidl.core.GateNode - (*ArrayNode)(nil), // 10: flyteidl.core.ArrayNode - (*NodeMetadata)(nil), // 11: flyteidl.core.NodeMetadata - (*Alias)(nil), // 12: flyteidl.core.Alias - (*Node)(nil), // 13: flyteidl.core.Node - (*WorkflowMetadata)(nil), // 14: flyteidl.core.WorkflowMetadata - (*WorkflowMetadataDefaults)(nil), // 15: flyteidl.core.WorkflowMetadataDefaults - (*WorkflowTemplate)(nil), // 16: flyteidl.core.WorkflowTemplate - (*TaskNodeOverrides)(nil), // 17: flyteidl.core.TaskNodeOverrides - (*LaunchPlanTemplate)(nil), // 18: flyteidl.core.LaunchPlanTemplate - nil, // 19: flyteidl.core.WorkflowMetadata.TagsEntry - (*BooleanExpression)(nil), // 20: flyteidl.core.BooleanExpression - (*Error)(nil), // 21: flyteidl.core.Error - (*Identifier)(nil), // 22: flyteidl.core.Identifier - (*LiteralType)(nil), // 23: flyteidl.core.LiteralType - (*durationpb.Duration)(nil), // 24: google.protobuf.Duration - (*RetryStrategy)(nil), // 25: flyteidl.core.RetryStrategy - (*Binding)(nil), // 26: flyteidl.core.Binding - (*QualityOfService)(nil), // 27: flyteidl.core.QualityOfService - (*TypedInterface)(nil), // 28: flyteidl.core.TypedInterface - (*Resources)(nil), // 29: flyteidl.core.Resources - (*ExtendedResources)(nil), // 30: flyteidl.core.ExtendedResources - (*LiteralMap)(nil), // 31: flyteidl.core.LiteralMap -} -var file_flyteidl_core_workflow_proto_depIdxs = []int32{ - 20, // 0: flyteidl.core.IfBlock.condition:type_name -> flyteidl.core.BooleanExpression - 13, // 1: flyteidl.core.IfBlock.then_node:type_name -> flyteidl.core.Node - 1, // 2: flyteidl.core.IfElseBlock.case:type_name -> flyteidl.core.IfBlock - 1, // 3: flyteidl.core.IfElseBlock.other:type_name -> flyteidl.core.IfBlock - 13, // 4: flyteidl.core.IfElseBlock.else_node:type_name -> flyteidl.core.Node - 21, // 5: flyteidl.core.IfElseBlock.error:type_name -> flyteidl.core.Error - 2, // 6: flyteidl.core.BranchNode.if_else:type_name -> flyteidl.core.IfElseBlock - 22, // 7: flyteidl.core.TaskNode.reference_id:type_name -> flyteidl.core.Identifier - 17, // 8: flyteidl.core.TaskNode.overrides:type_name -> flyteidl.core.TaskNodeOverrides - 22, // 9: flyteidl.core.WorkflowNode.launchplan_ref:type_name -> flyteidl.core.Identifier - 22, // 10: flyteidl.core.WorkflowNode.sub_workflow_ref:type_name -> flyteidl.core.Identifier - 23, // 11: flyteidl.core.SignalCondition.type:type_name -> flyteidl.core.LiteralType - 24, // 12: flyteidl.core.SleepCondition.duration:type_name -> google.protobuf.Duration - 6, // 13: flyteidl.core.GateNode.approve:type_name -> flyteidl.core.ApproveCondition - 7, // 14: flyteidl.core.GateNode.signal:type_name -> flyteidl.core.SignalCondition - 8, // 15: flyteidl.core.GateNode.sleep:type_name -> flyteidl.core.SleepCondition - 13, // 16: flyteidl.core.ArrayNode.node:type_name -> flyteidl.core.Node - 24, // 17: flyteidl.core.NodeMetadata.timeout:type_name -> google.protobuf.Duration - 25, // 18: flyteidl.core.NodeMetadata.retries:type_name -> flyteidl.core.RetryStrategy - 11, // 19: flyteidl.core.Node.metadata:type_name -> flyteidl.core.NodeMetadata - 26, // 20: flyteidl.core.Node.inputs:type_name -> flyteidl.core.Binding - 12, // 21: flyteidl.core.Node.output_aliases:type_name -> flyteidl.core.Alias - 4, // 22: flyteidl.core.Node.task_node:type_name -> flyteidl.core.TaskNode - 5, // 23: flyteidl.core.Node.workflow_node:type_name -> flyteidl.core.WorkflowNode - 3, // 24: flyteidl.core.Node.branch_node:type_name -> flyteidl.core.BranchNode - 9, // 25: flyteidl.core.Node.gate_node:type_name -> flyteidl.core.GateNode - 10, // 26: flyteidl.core.Node.array_node:type_name -> flyteidl.core.ArrayNode - 27, // 27: flyteidl.core.WorkflowMetadata.quality_of_service:type_name -> flyteidl.core.QualityOfService - 0, // 28: flyteidl.core.WorkflowMetadata.on_failure:type_name -> flyteidl.core.WorkflowMetadata.OnFailurePolicy - 19, // 29: flyteidl.core.WorkflowMetadata.tags:type_name -> flyteidl.core.WorkflowMetadata.TagsEntry - 22, // 30: flyteidl.core.WorkflowTemplate.id:type_name -> flyteidl.core.Identifier - 14, // 31: flyteidl.core.WorkflowTemplate.metadata:type_name -> flyteidl.core.WorkflowMetadata - 28, // 32: flyteidl.core.WorkflowTemplate.interface:type_name -> flyteidl.core.TypedInterface - 13, // 33: flyteidl.core.WorkflowTemplate.nodes:type_name -> flyteidl.core.Node - 26, // 34: flyteidl.core.WorkflowTemplate.outputs:type_name -> flyteidl.core.Binding - 13, // 35: flyteidl.core.WorkflowTemplate.failure_node:type_name -> flyteidl.core.Node - 15, // 36: flyteidl.core.WorkflowTemplate.metadata_defaults:type_name -> flyteidl.core.WorkflowMetadataDefaults - 29, // 37: flyteidl.core.TaskNodeOverrides.resources:type_name -> flyteidl.core.Resources - 30, // 38: flyteidl.core.TaskNodeOverrides.extended_resources:type_name -> flyteidl.core.ExtendedResources - 22, // 39: flyteidl.core.LaunchPlanTemplate.id:type_name -> flyteidl.core.Identifier - 28, // 40: flyteidl.core.LaunchPlanTemplate.interface:type_name -> flyteidl.core.TypedInterface - 31, // 41: flyteidl.core.LaunchPlanTemplate.fixed_inputs:type_name -> flyteidl.core.LiteralMap - 42, // [42:42] is the sub-list for method output_type - 42, // [42:42] is the sub-list for method input_type - 42, // [42:42] is the sub-list for extension type_name - 42, // [42:42] is the sub-list for extension extendee - 0, // [0:42] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_workflow_proto_init() } -func file_flyteidl_core_workflow_proto_init() { - if File_flyteidl_core_workflow_proto != nil { - return - } - file_flyteidl_core_condition_proto_init() - file_flyteidl_core_execution_proto_init() - file_flyteidl_core_identifier_proto_init() - file_flyteidl_core_interface_proto_init() - file_flyteidl_core_literals_proto_init() - file_flyteidl_core_tasks_proto_init() - file_flyteidl_core_types_proto_init() - file_flyteidl_core_security_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IfBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IfElseBlock); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BranchNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ApproveCondition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SignalCondition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SleepCondition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GateNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArrayNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Alias); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Node); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowMetadataDefaults); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowTemplate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskNodeOverrides); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_core_workflow_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LaunchPlanTemplate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_core_workflow_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*IfElseBlock_ElseNode)(nil), - (*IfElseBlock_Error)(nil), - } - file_flyteidl_core_workflow_proto_msgTypes[3].OneofWrappers = []interface{}{ - (*TaskNode_ReferenceId)(nil), - } - file_flyteidl_core_workflow_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*WorkflowNode_LaunchplanRef)(nil), - (*WorkflowNode_SubWorkflowRef)(nil), - } - file_flyteidl_core_workflow_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*GateNode_Approve)(nil), - (*GateNode_Signal)(nil), - (*GateNode_Sleep)(nil), - } - file_flyteidl_core_workflow_proto_msgTypes[9].OneofWrappers = []interface{}{ - (*ArrayNode_MinSuccesses)(nil), - (*ArrayNode_MinSuccessRatio)(nil), - } - file_flyteidl_core_workflow_proto_msgTypes[10].OneofWrappers = []interface{}{ - (*NodeMetadata_Interruptible)(nil), - (*NodeMetadata_Cacheable)(nil), - (*NodeMetadata_CacheVersion)(nil), - (*NodeMetadata_CacheSerializable)(nil), - } - file_flyteidl_core_workflow_proto_msgTypes[12].OneofWrappers = []interface{}{ - (*Node_TaskNode)(nil), - (*Node_WorkflowNode)(nil), - (*Node_BranchNode)(nil), - (*Node_GateNode)(nil), - (*Node_ArrayNode)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_workflow_proto_rawDesc, - NumEnums: 1, - NumMessages: 19, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_workflow_proto_goTypes, - DependencyIndexes: file_flyteidl_core_workflow_proto_depIdxs, - EnumInfos: file_flyteidl_core_workflow_proto_enumTypes, - MessageInfos: file_flyteidl_core_workflow_proto_msgTypes, - }.Build() - File_flyteidl_core_workflow_proto = out.File - file_flyteidl_core_workflow_proto_rawDesc = nil - file_flyteidl_core_workflow_proto_goTypes = nil - file_flyteidl_core_workflow_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go deleted file mode 100644 index 3f0a53d7b2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/core/workflow_closure.proto - -package core - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines an enclosed package of workflow and tasks it references. -type WorkflowClosure struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // required. Workflow template. - Workflow *WorkflowTemplate `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"` - // optional. A collection of tasks referenced by the workflow. Only needed if the workflow - // references tasks. - Tasks []*TaskTemplate `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` -} - -func (x *WorkflowClosure) Reset() { - *x = WorkflowClosure{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_core_workflow_closure_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowClosure) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowClosure) ProtoMessage() {} - -func (x *WorkflowClosure) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_core_workflow_closure_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowClosure.ProtoReflect.Descriptor instead. -func (*WorkflowClosure) Descriptor() ([]byte, []int) { - return file_flyteidl_core_workflow_closure_proto_rawDescGZIP(), []int{0} -} - -func (x *WorkflowClosure) GetWorkflow() *WorkflowTemplate { - if x != nil { - return x.Workflow - } - return nil -} - -func (x *WorkflowClosure) GetTasks() []*TaskTemplate { - if x != nil { - return x.Tasks - } - return nil -} - -var File_flyteidl_core_workflow_closure_proto protoreflect.FileDescriptor - -var file_flyteidl_core_workflow_closure_proto_rawDesc = []byte{ - 0x0a, 0x24, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, - 0x01, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, - 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, - 0x31, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, - 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x05, 0x74, 0x61, 0x73, - 0x6b, 0x73, 0x42, 0xba, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, - 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, - 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, - 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, - 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_core_workflow_closure_proto_rawDescOnce sync.Once - file_flyteidl_core_workflow_closure_proto_rawDescData = file_flyteidl_core_workflow_closure_proto_rawDesc -) - -func file_flyteidl_core_workflow_closure_proto_rawDescGZIP() []byte { - file_flyteidl_core_workflow_closure_proto_rawDescOnce.Do(func() { - file_flyteidl_core_workflow_closure_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_workflow_closure_proto_rawDescData) - }) - return file_flyteidl_core_workflow_closure_proto_rawDescData -} - -var file_flyteidl_core_workflow_closure_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_core_workflow_closure_proto_goTypes = []interface{}{ - (*WorkflowClosure)(nil), // 0: flyteidl.core.WorkflowClosure - (*WorkflowTemplate)(nil), // 1: flyteidl.core.WorkflowTemplate - (*TaskTemplate)(nil), // 2: flyteidl.core.TaskTemplate -} -var file_flyteidl_core_workflow_closure_proto_depIdxs = []int32{ - 1, // 0: flyteidl.core.WorkflowClosure.workflow:type_name -> flyteidl.core.WorkflowTemplate - 2, // 1: flyteidl.core.WorkflowClosure.tasks:type_name -> flyteidl.core.TaskTemplate - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_flyteidl_core_workflow_closure_proto_init() } -func file_flyteidl_core_workflow_closure_proto_init() { - if File_flyteidl_core_workflow_closure_proto != nil { - return - } - file_flyteidl_core_workflow_proto_init() - file_flyteidl_core_tasks_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_core_workflow_closure_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowClosure); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_core_workflow_closure_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_core_workflow_closure_proto_goTypes, - DependencyIndexes: file_flyteidl_core_workflow_closure_proto_depIdxs, - MessageInfos: file_flyteidl_core_workflow_closure_proto_msgTypes, - }.Build() - File_flyteidl_core_workflow_closure_proto = out.File - file_flyteidl_core_workflow_closure_proto_rawDesc = nil - file_flyteidl_core_workflow_closure_proto_goTypes = nil - file_flyteidl_core_workflow_closure_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go deleted file mode 100644 index 46e7727f35..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go +++ /dev/null @@ -1,3524 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/datacatalog/datacatalog.proto - -package datacatalog - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// as use-cases come up we can add more operators, ex: gte, like, not eq etc. -type SinglePropertyFilter_ComparisonOperator int32 - -const ( - SinglePropertyFilter_EQUALS SinglePropertyFilter_ComparisonOperator = 0 -) - -// Enum value maps for SinglePropertyFilter_ComparisonOperator. -var ( - SinglePropertyFilter_ComparisonOperator_name = map[int32]string{ - 0: "EQUALS", - } - SinglePropertyFilter_ComparisonOperator_value = map[string]int32{ - "EQUALS": 0, - } -) - -func (x SinglePropertyFilter_ComparisonOperator) Enum() *SinglePropertyFilter_ComparisonOperator { - p := new(SinglePropertyFilter_ComparisonOperator) - *p = x - return p -} - -func (x SinglePropertyFilter_ComparisonOperator) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SinglePropertyFilter_ComparisonOperator) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_datacatalog_datacatalog_proto_enumTypes[0].Descriptor() -} - -func (SinglePropertyFilter_ComparisonOperator) Type() protoreflect.EnumType { - return &file_flyteidl_datacatalog_datacatalog_proto_enumTypes[0] -} - -func (x SinglePropertyFilter_ComparisonOperator) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SinglePropertyFilter_ComparisonOperator.Descriptor instead. -func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{30, 0} -} - -type PaginationOptions_SortOrder int32 - -const ( - PaginationOptions_DESCENDING PaginationOptions_SortOrder = 0 - PaginationOptions_ASCENDING PaginationOptions_SortOrder = 1 -) - -// Enum value maps for PaginationOptions_SortOrder. -var ( - PaginationOptions_SortOrder_name = map[int32]string{ - 0: "DESCENDING", - 1: "ASCENDING", - } - PaginationOptions_SortOrder_value = map[string]int32{ - "DESCENDING": 0, - "ASCENDING": 1, - } -) - -func (x PaginationOptions_SortOrder) Enum() *PaginationOptions_SortOrder { - p := new(PaginationOptions_SortOrder) - *p = x - return p -} - -func (x PaginationOptions_SortOrder) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PaginationOptions_SortOrder) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_datacatalog_datacatalog_proto_enumTypes[1].Descriptor() -} - -func (PaginationOptions_SortOrder) Type() protoreflect.EnumType { - return &file_flyteidl_datacatalog_datacatalog_proto_enumTypes[1] -} - -func (x PaginationOptions_SortOrder) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PaginationOptions_SortOrder.Descriptor instead. -func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{36, 0} -} - -type PaginationOptions_SortKey int32 - -const ( - PaginationOptions_CREATION_TIME PaginationOptions_SortKey = 0 -) - -// Enum value maps for PaginationOptions_SortKey. -var ( - PaginationOptions_SortKey_name = map[int32]string{ - 0: "CREATION_TIME", - } - PaginationOptions_SortKey_value = map[string]int32{ - "CREATION_TIME": 0, - } -) - -func (x PaginationOptions_SortKey) Enum() *PaginationOptions_SortKey { - p := new(PaginationOptions_SortKey) - *p = x - return p -} - -func (x PaginationOptions_SortKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PaginationOptions_SortKey) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_datacatalog_datacatalog_proto_enumTypes[2].Descriptor() -} - -func (PaginationOptions_SortKey) Type() protoreflect.EnumType { - return &file_flyteidl_datacatalog_datacatalog_proto_enumTypes[2] -} - -func (x PaginationOptions_SortKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PaginationOptions_SortKey.Descriptor instead. -func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{36, 1} -} - -// Request message for creating a Dataset. -type CreateDatasetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` -} - -func (x *CreateDatasetRequest) Reset() { - *x = CreateDatasetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDatasetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDatasetRequest) ProtoMessage() {} - -func (x *CreateDatasetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDatasetRequest.ProtoReflect.Descriptor instead. -func (*CreateDatasetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateDatasetRequest) GetDataset() *Dataset { - if x != nil { - return x.Dataset - } - return nil -} - -// Response message for creating a Dataset -type CreateDatasetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CreateDatasetResponse) Reset() { - *x = CreateDatasetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDatasetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDatasetResponse) ProtoMessage() {} - -func (x *CreateDatasetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDatasetResponse.ProtoReflect.Descriptor instead. -func (*CreateDatasetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{1} -} - -// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier -// which is a combination of several fields. -type GetDatasetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` -} - -func (x *GetDatasetRequest) Reset() { - *x = GetDatasetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDatasetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDatasetRequest) ProtoMessage() {} - -func (x *GetDatasetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDatasetRequest.ProtoReflect.Descriptor instead. -func (*GetDatasetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{2} -} - -func (x *GetDatasetRequest) GetDataset() *DatasetID { - if x != nil { - return x.Dataset - } - return nil -} - -// Response message for retrieving a Dataset. The response will include the metadata for the -// Dataset. -type GetDatasetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` -} - -func (x *GetDatasetResponse) Reset() { - *x = GetDatasetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDatasetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDatasetResponse) ProtoMessage() {} - -func (x *GetDatasetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDatasetResponse.ProtoReflect.Descriptor instead. -func (*GetDatasetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{3} -} - -func (x *GetDatasetResponse) GetDataset() *Dataset { - if x != nil { - return x.Dataset - } - return nil -} - -// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that -// can be one of artifact_id or tag. The result returned will include the artifact data and metadata -// associated with the artifact. -type GetArtifactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - // Types that are assignable to QueryHandle: - // - // *GetArtifactRequest_ArtifactId - // *GetArtifactRequest_TagName - QueryHandle isGetArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` -} - -func (x *GetArtifactRequest) Reset() { - *x = GetArtifactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetArtifactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetArtifactRequest) ProtoMessage() {} - -func (x *GetArtifactRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetArtifactRequest.ProtoReflect.Descriptor instead. -func (*GetArtifactRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{4} -} - -func (x *GetArtifactRequest) GetDataset() *DatasetID { - if x != nil { - return x.Dataset - } - return nil -} - -func (m *GetArtifactRequest) GetQueryHandle() isGetArtifactRequest_QueryHandle { - if m != nil { - return m.QueryHandle - } - return nil -} - -func (x *GetArtifactRequest) GetArtifactId() string { - if x, ok := x.GetQueryHandle().(*GetArtifactRequest_ArtifactId); ok { - return x.ArtifactId - } - return "" -} - -func (x *GetArtifactRequest) GetTagName() string { - if x, ok := x.GetQueryHandle().(*GetArtifactRequest_TagName); ok { - return x.TagName - } - return "" -} - -type isGetArtifactRequest_QueryHandle interface { - isGetArtifactRequest_QueryHandle() -} - -type GetArtifactRequest_ArtifactId struct { - ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -type GetArtifactRequest_TagName struct { - TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` -} - -func (*GetArtifactRequest_ArtifactId) isGetArtifactRequest_QueryHandle() {} - -func (*GetArtifactRequest_TagName) isGetArtifactRequest_QueryHandle() {} - -// Response message for retrieving an Artifact. The result returned will include the artifact data -// and metadata associated with the artifact. -type GetArtifactResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` -} - -func (x *GetArtifactResponse) Reset() { - *x = GetArtifactResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetArtifactResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetArtifactResponse) ProtoMessage() {} - -func (x *GetArtifactResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetArtifactResponse.ProtoReflect.Descriptor instead. -func (*GetArtifactResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{5} -} - -func (x *GetArtifactResponse) GetArtifact() *Artifact { - if x != nil { - return x.Artifact - } - return nil -} - -// Request message for creating an Artifact and its associated artifact Data. -type CreateArtifactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` -} - -func (x *CreateArtifactRequest) Reset() { - *x = CreateArtifactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateArtifactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateArtifactRequest) ProtoMessage() {} - -func (x *CreateArtifactRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateArtifactRequest.ProtoReflect.Descriptor instead. -func (*CreateArtifactRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{6} -} - -func (x *CreateArtifactRequest) GetArtifact() *Artifact { - if x != nil { - return x.Artifact - } - return nil -} - -// Response message for creating an Artifact. -type CreateArtifactResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *CreateArtifactResponse) Reset() { - *x = CreateArtifactResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateArtifactResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateArtifactResponse) ProtoMessage() {} - -func (x *CreateArtifactResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateArtifactResponse.ProtoReflect.Descriptor instead. -func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{7} -} - -// Request message for tagging an Artifact. -type AddTagRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` -} - -func (x *AddTagRequest) Reset() { - *x = AddTagRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddTagRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddTagRequest) ProtoMessage() {} - -func (x *AddTagRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddTagRequest.ProtoReflect.Descriptor instead. -func (*AddTagRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{8} -} - -func (x *AddTagRequest) GetTag() *Tag { - if x != nil { - return x.Tag - } - return nil -} - -// Response message for tagging an Artifact. -type AddTagResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AddTagResponse) Reset() { - *x = AddTagResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddTagResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddTagResponse) ProtoMessage() {} - -func (x *AddTagResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddTagResponse.ProtoReflect.Descriptor instead. -func (*AddTagResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{9} -} - -// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. -type ListArtifactsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Use a datasetID for which you want to retrieve the artifacts - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - // Apply the filter expression to this query - Filter *FilterExpression `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` - // Pagination options to get a page of artifacts - Pagination *PaginationOptions `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *ListArtifactsRequest) Reset() { - *x = ListArtifactsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListArtifactsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListArtifactsRequest) ProtoMessage() {} - -func (x *ListArtifactsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListArtifactsRequest.ProtoReflect.Descriptor instead. -func (*ListArtifactsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{10} -} - -func (x *ListArtifactsRequest) GetDataset() *DatasetID { - if x != nil { - return x.Dataset - } - return nil -} - -func (x *ListArtifactsRequest) GetFilter() *FilterExpression { - if x != nil { - return x.Filter - } - return nil -} - -func (x *ListArtifactsRequest) GetPagination() *PaginationOptions { - if x != nil { - return x.Pagination - } - return nil -} - -// Response to list artifacts -type ListArtifactsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of artifacts - Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - // Token to use to request the next page, pass this into the next requests PaginationOptions - NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` -} - -func (x *ListArtifactsResponse) Reset() { - *x = ListArtifactsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListArtifactsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListArtifactsResponse) ProtoMessage() {} - -func (x *ListArtifactsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListArtifactsResponse.ProtoReflect.Descriptor instead. -func (*ListArtifactsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{11} -} - -func (x *ListArtifactsResponse) GetArtifacts() []*Artifact { - if x != nil { - return x.Artifacts - } - return nil -} - -func (x *ListArtifactsResponse) GetNextToken() string { - if x != nil { - return x.NextToken - } - return "" -} - -// List the datasets for the given query -type ListDatasetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Apply the filter expression to this query - Filter *FilterExpression `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - // Pagination options to get a page of datasets - Pagination *PaginationOptions `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` -} - -func (x *ListDatasetsRequest) Reset() { - *x = ListDatasetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListDatasetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListDatasetsRequest) ProtoMessage() {} - -func (x *ListDatasetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListDatasetsRequest.ProtoReflect.Descriptor instead. -func (*ListDatasetsRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{12} -} - -func (x *ListDatasetsRequest) GetFilter() *FilterExpression { - if x != nil { - return x.Filter - } - return nil -} - -func (x *ListDatasetsRequest) GetPagination() *PaginationOptions { - if x != nil { - return x.Pagination - } - return nil -} - -// List the datasets response with token for next pagination -type ListDatasetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of datasets - Datasets []*Dataset `protobuf:"bytes,1,rep,name=datasets,proto3" json:"datasets,omitempty"` - // Token to use to request the next page, pass this into the next requests PaginationOptions - NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` -} - -func (x *ListDatasetsResponse) Reset() { - *x = ListDatasetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListDatasetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListDatasetsResponse) ProtoMessage() {} - -func (x *ListDatasetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListDatasetsResponse.ProtoReflect.Descriptor instead. -func (*ListDatasetsResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{13} -} - -func (x *ListDatasetsResponse) GetDatasets() []*Dataset { - if x != nil { - return x.Datasets - } - return nil -} - -func (x *ListDatasetsResponse) GetNextToken() string { - if x != nil { - return x.NextToken - } - return "" -} - -// Request message for updating an Artifact and overwriting its associated ArtifactData. -type UpdateArtifactRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ID of dataset the artifact is associated with - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - // Either ID of artifact or name of tag to retrieve existing artifact from - // - // Types that are assignable to QueryHandle: - // - // *UpdateArtifactRequest_ArtifactId - // *UpdateArtifactRequest_TagName - QueryHandle isUpdateArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` - // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing - // ArtifactData entries will be removed from the underlying blob storage and database. - Data []*ArtifactData `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` - // Update execution metadata(including execution domain, name, node, project data) when overwriting cache - Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *UpdateArtifactRequest) Reset() { - *x = UpdateArtifactRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateArtifactRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateArtifactRequest) ProtoMessage() {} - -func (x *UpdateArtifactRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateArtifactRequest.ProtoReflect.Descriptor instead. -func (*UpdateArtifactRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{14} -} - -func (x *UpdateArtifactRequest) GetDataset() *DatasetID { - if x != nil { - return x.Dataset - } - return nil -} - -func (m *UpdateArtifactRequest) GetQueryHandle() isUpdateArtifactRequest_QueryHandle { - if m != nil { - return m.QueryHandle - } - return nil -} - -func (x *UpdateArtifactRequest) GetArtifactId() string { - if x, ok := x.GetQueryHandle().(*UpdateArtifactRequest_ArtifactId); ok { - return x.ArtifactId - } - return "" -} - -func (x *UpdateArtifactRequest) GetTagName() string { - if x, ok := x.GetQueryHandle().(*UpdateArtifactRequest_TagName); ok { - return x.TagName - } - return "" -} - -func (x *UpdateArtifactRequest) GetData() []*ArtifactData { - if x != nil { - return x.Data - } - return nil -} - -func (x *UpdateArtifactRequest) GetMetadata() *Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -type isUpdateArtifactRequest_QueryHandle interface { - isUpdateArtifactRequest_QueryHandle() -} - -type UpdateArtifactRequest_ArtifactId struct { - ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -type UpdateArtifactRequest_TagName struct { - TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` -} - -func (*UpdateArtifactRequest_ArtifactId) isUpdateArtifactRequest_QueryHandle() {} - -func (*UpdateArtifactRequest_TagName) isUpdateArtifactRequest_QueryHandle() {} - -// Response message for updating an Artifact. -type UpdateArtifactResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The unique ID of the artifact updated - ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` -} - -func (x *UpdateArtifactResponse) Reset() { - *x = UpdateArtifactResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateArtifactResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateArtifactResponse) ProtoMessage() {} - -func (x *UpdateArtifactResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateArtifactResponse.ProtoReflect.Descriptor instead. -func (*UpdateArtifactResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{15} -} - -func (x *UpdateArtifactResponse) GetArtifactId() string { - if x != nil { - return x.ArtifactId - } - return "" -} - -// ReservationID message that is composed of several string fields. -type ReservationID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The unique ID for the reserved dataset - DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` - // The specific artifact tag for the reservation - TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` -} - -func (x *ReservationID) Reset() { - *x = ReservationID{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReservationID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReservationID) ProtoMessage() {} - -func (x *ReservationID) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReservationID.ProtoReflect.Descriptor instead. -func (*ReservationID) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{16} -} - -func (x *ReservationID) GetDatasetId() *DatasetID { - if x != nil { - return x.DatasetId - } - return nil -} - -func (x *ReservationID) GetTagName() string { - if x != nil { - return x.TagName - } - return "" -} - -// Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. -type GetOrExtendReservationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The unique ID for the reservation - ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` - // The unique ID of the owner for the reservation - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // Requested reservation extension heartbeat interval - HeartbeatInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` -} - -func (x *GetOrExtendReservationRequest) Reset() { - *x = GetOrExtendReservationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetOrExtendReservationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetOrExtendReservationRequest) ProtoMessage() {} - -func (x *GetOrExtendReservationRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetOrExtendReservationRequest.ProtoReflect.Descriptor instead. -func (*GetOrExtendReservationRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{17} -} - -func (x *GetOrExtendReservationRequest) GetReservationId() *ReservationID { - if x != nil { - return x.ReservationId - } - return nil -} - -func (x *GetOrExtendReservationRequest) GetOwnerId() string { - if x != nil { - return x.OwnerId - } - return "" -} - -func (x *GetOrExtendReservationRequest) GetHeartbeatInterval() *durationpb.Duration { - if x != nil { - return x.HeartbeatInterval - } - return nil -} - -// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. -type Reservation struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The unique ID for the reservation - ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` - // The unique ID of the owner for the reservation - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // Recommended heartbeat interval to extend reservation - HeartbeatInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` - // Expiration timestamp of this reservation - ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - // Free-form metadata associated with the artifact - Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *Reservation) Reset() { - *x = Reservation{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Reservation) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Reservation) ProtoMessage() {} - -func (x *Reservation) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Reservation.ProtoReflect.Descriptor instead. -func (*Reservation) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{18} -} - -func (x *Reservation) GetReservationId() *ReservationID { - if x != nil { - return x.ReservationId - } - return nil -} - -func (x *Reservation) GetOwnerId() string { - if x != nil { - return x.OwnerId - } - return "" -} - -func (x *Reservation) GetHeartbeatInterval() *durationpb.Duration { - if x != nil { - return x.HeartbeatInterval - } - return nil -} - -func (x *Reservation) GetExpiresAt() *timestamppb.Timestamp { - if x != nil { - return x.ExpiresAt - } - return nil -} - -func (x *Reservation) GetMetadata() *Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -// Response including either a newly minted reservation or the existing reservation -type GetOrExtendReservationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The reservation to be acquired or extended - Reservation *Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty"` -} - -func (x *GetOrExtendReservationResponse) Reset() { - *x = GetOrExtendReservationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetOrExtendReservationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetOrExtendReservationResponse) ProtoMessage() {} - -func (x *GetOrExtendReservationResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetOrExtendReservationResponse.ProtoReflect.Descriptor instead. -func (*GetOrExtendReservationResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{19} -} - -func (x *GetOrExtendReservationResponse) GetReservation() *Reservation { - if x != nil { - return x.Reservation - } - return nil -} - -// Request to release reservation -type ReleaseReservationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The unique ID for the reservation - ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` - // The unique ID of the owner for the reservation - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` -} - -func (x *ReleaseReservationRequest) Reset() { - *x = ReleaseReservationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReleaseReservationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReleaseReservationRequest) ProtoMessage() {} - -func (x *ReleaseReservationRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReleaseReservationRequest.ProtoReflect.Descriptor instead. -func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{20} -} - -func (x *ReleaseReservationRequest) GetReservationId() *ReservationID { - if x != nil { - return x.ReservationId - } - return nil -} - -func (x *ReleaseReservationRequest) GetOwnerId() string { - if x != nil { - return x.OwnerId - } - return "" -} - -// Response to release reservation -type ReleaseReservationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ReleaseReservationResponse) Reset() { - *x = ReleaseReservationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ReleaseReservationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ReleaseReservationResponse) ProtoMessage() {} - -func (x *ReleaseReservationResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ReleaseReservationResponse.ProtoReflect.Descriptor instead. -func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{21} -} - -// Dataset message. It is uniquely identified by DatasetID. -type Dataset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *DatasetID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - PartitionKeys []string `protobuf:"bytes,3,rep,name=partitionKeys,proto3" json:"partitionKeys,omitempty"` -} - -func (x *Dataset) Reset() { - *x = Dataset{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Dataset) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Dataset) ProtoMessage() {} - -func (x *Dataset) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Dataset.ProtoReflect.Descriptor instead. -func (*Dataset) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{22} -} - -func (x *Dataset) GetId() *DatasetID { - if x != nil { - return x.Id - } - return nil -} - -func (x *Dataset) GetMetadata() *Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *Dataset) GetPartitionKeys() []string { - if x != nil { - return x.PartitionKeys - } - return nil -} - -// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair -type Partition struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *Partition) Reset() { - *x = Partition{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Partition) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Partition) ProtoMessage() {} - -func (x *Partition) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Partition.ProtoReflect.Descriptor instead. -func (*Partition) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{23} -} - -func (x *Partition) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *Partition) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -// DatasetID message that is composed of several string fields. -type DatasetID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The name of the project - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The name of the dataset - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` // The domain (eg. environment) - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // Version of the data schema - UUID string `protobuf:"bytes,5,opt,name=UUID,proto3" json:"UUID,omitempty"` // UUID for the dataset (if set the above fields are optional) - // Optional, org key applied to the resource. - Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` -} - -func (x *DatasetID) Reset() { - *x = DatasetID{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DatasetID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DatasetID) ProtoMessage() {} - -func (x *DatasetID) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DatasetID.ProtoReflect.Descriptor instead. -func (*DatasetID) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{24} -} - -func (x *DatasetID) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *DatasetID) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *DatasetID) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *DatasetID) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *DatasetID) GetUUID() string { - if x != nil { - return x.UUID - } - return "" -} - -func (x *DatasetID) GetOrg() string { - if x != nil { - return x.Org - } - return "" -} - -// Artifact message. It is composed of several string fields. -type Artifact struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The unique ID of the artifact - Dataset *DatasetID `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"` // The Dataset that the artifact belongs to - Data []*ArtifactData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // A list of data that is associated with the artifact - Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // Free-form metadata associated with the artifact - Partitions []*Partition `protobuf:"bytes,5,rep,name=partitions,proto3" json:"partitions,omitempty"` - Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // creation timestamp of artifact, autogenerated by service -} - -func (x *Artifact) Reset() { - *x = Artifact{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Artifact) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Artifact) ProtoMessage() {} - -func (x *Artifact) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Artifact.ProtoReflect.Descriptor instead. -func (*Artifact) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{25} -} - -func (x *Artifact) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Artifact) GetDataset() *DatasetID { - if x != nil { - return x.Dataset - } - return nil -} - -func (x *Artifact) GetData() []*ArtifactData { - if x != nil { - return x.Data - } - return nil -} - -func (x *Artifact) GetMetadata() *Metadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *Artifact) GetPartitions() []*Partition { - if x != nil { - return x.Partitions - } - return nil -} - -func (x *Artifact) GetTags() []*Tag { - if x != nil { - return x.Tags - } - return nil -} - -func (x *Artifact) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -// ArtifactData that belongs to an artifact -type ArtifactData struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *ArtifactData) Reset() { - *x = ArtifactData{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactData) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactData) ProtoMessage() {} - -func (x *ArtifactData) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactData.ProtoReflect.Descriptor instead. -func (*ArtifactData) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{26} -} - -func (x *ArtifactData) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ArtifactData) GetValue() *core.Literal { - if x != nil { - return x.Value - } - return nil -} - -// Tag message that is unique to a Dataset. It is associated to a single artifact and -// can be retrieved by name later. -type Tag struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of tag - ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` // The tagged artifact - Dataset *DatasetID `protobuf:"bytes,3,opt,name=dataset,proto3" json:"dataset,omitempty"` // The Dataset that this tag belongs to -} - -func (x *Tag) Reset() { - *x = Tag{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Tag) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Tag) ProtoMessage() {} - -func (x *Tag) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Tag.ProtoReflect.Descriptor instead. -func (*Tag) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{27} -} - -func (x *Tag) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Tag) GetArtifactId() string { - if x != nil { - return x.ArtifactId - } - return "" -} - -func (x *Tag) GetDataset() *DatasetID { - if x != nil { - return x.Dataset - } - return nil -} - -// Metadata representation for artifacts and datasets -type Metadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - KeyMap map[string]string `protobuf:"bytes,1,rep,name=key_map,json=keyMap,proto3" json:"key_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // key map is a dictionary of key/val strings that represent metadata -} - -func (x *Metadata) Reset() { - *x = Metadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Metadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Metadata) ProtoMessage() {} - -func (x *Metadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. -func (*Metadata) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{28} -} - -func (x *Metadata) GetKeyMap() map[string]string { - if x != nil { - return x.KeyMap - } - return nil -} - -// Filter expression that is composed of a combination of single filters -type FilterExpression struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Filters []*SinglePropertyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` -} - -func (x *FilterExpression) Reset() { - *x = FilterExpression{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FilterExpression) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FilterExpression) ProtoMessage() {} - -func (x *FilterExpression) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FilterExpression.ProtoReflect.Descriptor instead. -func (*FilterExpression) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{29} -} - -func (x *FilterExpression) GetFilters() []*SinglePropertyFilter { - if x != nil { - return x.Filters - } - return nil -} - -// A single property to filter on. -type SinglePropertyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to PropertyFilter: - // - // *SinglePropertyFilter_TagFilter - // *SinglePropertyFilter_PartitionFilter - // *SinglePropertyFilter_ArtifactFilter - // *SinglePropertyFilter_DatasetFilter - PropertyFilter isSinglePropertyFilter_PropertyFilter `protobuf_oneof:"property_filter"` - Operator SinglePropertyFilter_ComparisonOperator `protobuf:"varint,10,opt,name=operator,proto3,enum=datacatalog.SinglePropertyFilter_ComparisonOperator" json:"operator,omitempty"` // field 10 in case we add more entities to query -} - -func (x *SinglePropertyFilter) Reset() { - *x = SinglePropertyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SinglePropertyFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SinglePropertyFilter) ProtoMessage() {} - -func (x *SinglePropertyFilter) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SinglePropertyFilter.ProtoReflect.Descriptor instead. -func (*SinglePropertyFilter) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{30} -} - -func (m *SinglePropertyFilter) GetPropertyFilter() isSinglePropertyFilter_PropertyFilter { - if m != nil { - return m.PropertyFilter - } - return nil -} - -func (x *SinglePropertyFilter) GetTagFilter() *TagPropertyFilter { - if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_TagFilter); ok { - return x.TagFilter - } - return nil -} - -func (x *SinglePropertyFilter) GetPartitionFilter() *PartitionPropertyFilter { - if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_PartitionFilter); ok { - return x.PartitionFilter - } - return nil -} - -func (x *SinglePropertyFilter) GetArtifactFilter() *ArtifactPropertyFilter { - if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_ArtifactFilter); ok { - return x.ArtifactFilter - } - return nil -} - -func (x *SinglePropertyFilter) GetDatasetFilter() *DatasetPropertyFilter { - if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_DatasetFilter); ok { - return x.DatasetFilter - } - return nil -} - -func (x *SinglePropertyFilter) GetOperator() SinglePropertyFilter_ComparisonOperator { - if x != nil { - return x.Operator - } - return SinglePropertyFilter_EQUALS -} - -type isSinglePropertyFilter_PropertyFilter interface { - isSinglePropertyFilter_PropertyFilter() -} - -type SinglePropertyFilter_TagFilter struct { - TagFilter *TagPropertyFilter `protobuf:"bytes,1,opt,name=tag_filter,json=tagFilter,proto3,oneof"` -} - -type SinglePropertyFilter_PartitionFilter struct { - PartitionFilter *PartitionPropertyFilter `protobuf:"bytes,2,opt,name=partition_filter,json=partitionFilter,proto3,oneof"` -} - -type SinglePropertyFilter_ArtifactFilter struct { - ArtifactFilter *ArtifactPropertyFilter `protobuf:"bytes,3,opt,name=artifact_filter,json=artifactFilter,proto3,oneof"` -} - -type SinglePropertyFilter_DatasetFilter struct { - DatasetFilter *DatasetPropertyFilter `protobuf:"bytes,4,opt,name=dataset_filter,json=datasetFilter,proto3,oneof"` -} - -func (*SinglePropertyFilter_TagFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (*SinglePropertyFilter_PartitionFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (*SinglePropertyFilter_ArtifactFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (*SinglePropertyFilter_DatasetFilter) isSinglePropertyFilter_PropertyFilter() {} - -// Artifact properties we can filter by -type ArtifactPropertyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // oneof because we can add more properties in the future - // - // Types that are assignable to Property: - // - // *ArtifactPropertyFilter_ArtifactId - Property isArtifactPropertyFilter_Property `protobuf_oneof:"property"` -} - -func (x *ArtifactPropertyFilter) Reset() { - *x = ArtifactPropertyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArtifactPropertyFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArtifactPropertyFilter) ProtoMessage() {} - -func (x *ArtifactPropertyFilter) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArtifactPropertyFilter.ProtoReflect.Descriptor instead. -func (*ArtifactPropertyFilter) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{31} -} - -func (m *ArtifactPropertyFilter) GetProperty() isArtifactPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (x *ArtifactPropertyFilter) GetArtifactId() string { - if x, ok := x.GetProperty().(*ArtifactPropertyFilter_ArtifactId); ok { - return x.ArtifactId - } - return "" -} - -type isArtifactPropertyFilter_Property interface { - isArtifactPropertyFilter_Property() -} - -type ArtifactPropertyFilter_ArtifactId struct { - ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -func (*ArtifactPropertyFilter_ArtifactId) isArtifactPropertyFilter_Property() {} - -// Tag properties we can filter by -type TagPropertyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Property: - // - // *TagPropertyFilter_TagName - Property isTagPropertyFilter_Property `protobuf_oneof:"property"` -} - -func (x *TagPropertyFilter) Reset() { - *x = TagPropertyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TagPropertyFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TagPropertyFilter) ProtoMessage() {} - -func (x *TagPropertyFilter) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TagPropertyFilter.ProtoReflect.Descriptor instead. -func (*TagPropertyFilter) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{32} -} - -func (m *TagPropertyFilter) GetProperty() isTagPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (x *TagPropertyFilter) GetTagName() string { - if x, ok := x.GetProperty().(*TagPropertyFilter_TagName); ok { - return x.TagName - } - return "" -} - -type isTagPropertyFilter_Property interface { - isTagPropertyFilter_Property() -} - -type TagPropertyFilter_TagName struct { - TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3,oneof"` -} - -func (*TagPropertyFilter_TagName) isTagPropertyFilter_Property() {} - -// Partition properties we can filter by -type PartitionPropertyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Property: - // - // *PartitionPropertyFilter_KeyVal - Property isPartitionPropertyFilter_Property `protobuf_oneof:"property"` -} - -func (x *PartitionPropertyFilter) Reset() { - *x = PartitionPropertyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PartitionPropertyFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PartitionPropertyFilter) ProtoMessage() {} - -func (x *PartitionPropertyFilter) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PartitionPropertyFilter.ProtoReflect.Descriptor instead. -func (*PartitionPropertyFilter) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{33} -} - -func (m *PartitionPropertyFilter) GetProperty() isPartitionPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (x *PartitionPropertyFilter) GetKeyVal() *KeyValuePair { - if x, ok := x.GetProperty().(*PartitionPropertyFilter_KeyVal); ok { - return x.KeyVal - } - return nil -} - -type isPartitionPropertyFilter_Property interface { - isPartitionPropertyFilter_Property() -} - -type PartitionPropertyFilter_KeyVal struct { - KeyVal *KeyValuePair `protobuf:"bytes,1,opt,name=key_val,json=keyVal,proto3,oneof"` -} - -func (*PartitionPropertyFilter_KeyVal) isPartitionPropertyFilter_Property() {} - -type KeyValuePair struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *KeyValuePair) Reset() { - *x = KeyValuePair{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KeyValuePair) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KeyValuePair) ProtoMessage() {} - -func (x *KeyValuePair) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead. -func (*KeyValuePair) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{34} -} - -func (x *KeyValuePair) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *KeyValuePair) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -// Dataset properties we can filter by -type DatasetPropertyFilter struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Property: - // - // *DatasetPropertyFilter_Project - // *DatasetPropertyFilter_Name - // *DatasetPropertyFilter_Domain - // *DatasetPropertyFilter_Version - // *DatasetPropertyFilter_Org - Property isDatasetPropertyFilter_Property `protobuf_oneof:"property"` -} - -func (x *DatasetPropertyFilter) Reset() { - *x = DatasetPropertyFilter{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DatasetPropertyFilter) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DatasetPropertyFilter) ProtoMessage() {} - -func (x *DatasetPropertyFilter) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DatasetPropertyFilter.ProtoReflect.Descriptor instead. -func (*DatasetPropertyFilter) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{35} -} - -func (m *DatasetPropertyFilter) GetProperty() isDatasetPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (x *DatasetPropertyFilter) GetProject() string { - if x, ok := x.GetProperty().(*DatasetPropertyFilter_Project); ok { - return x.Project - } - return "" -} - -func (x *DatasetPropertyFilter) GetName() string { - if x, ok := x.GetProperty().(*DatasetPropertyFilter_Name); ok { - return x.Name - } - return "" -} - -func (x *DatasetPropertyFilter) GetDomain() string { - if x, ok := x.GetProperty().(*DatasetPropertyFilter_Domain); ok { - return x.Domain - } - return "" -} - -func (x *DatasetPropertyFilter) GetVersion() string { - if x, ok := x.GetProperty().(*DatasetPropertyFilter_Version); ok { - return x.Version - } - return "" -} - -func (x *DatasetPropertyFilter) GetOrg() string { - if x, ok := x.GetProperty().(*DatasetPropertyFilter_Org); ok { - return x.Org - } - return "" -} - -type isDatasetPropertyFilter_Property interface { - isDatasetPropertyFilter_Property() -} - -type DatasetPropertyFilter_Project struct { - Project string `protobuf:"bytes,1,opt,name=project,proto3,oneof"` -} - -type DatasetPropertyFilter_Name struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"` -} - -type DatasetPropertyFilter_Domain struct { - Domain string `protobuf:"bytes,3,opt,name=domain,proto3,oneof"` -} - -type DatasetPropertyFilter_Version struct { - Version string `protobuf:"bytes,4,opt,name=version,proto3,oneof"` -} - -type DatasetPropertyFilter_Org struct { - // Optional, org key applied to the dataset. - Org string `protobuf:"bytes,5,opt,name=org,proto3,oneof"` -} - -func (*DatasetPropertyFilter_Project) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Name) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Domain) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Version) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Org) isDatasetPropertyFilter_Property() {} - -// Pagination options for making list requests -type PaginationOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // the max number of results to return - Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - // the token to pass to fetch the next page - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // the property that we want to sort the results by - SortKey PaginationOptions_SortKey `protobuf:"varint,3,opt,name=sortKey,proto3,enum=datacatalog.PaginationOptions_SortKey" json:"sortKey,omitempty"` - // the sort order of the results - SortOrder PaginationOptions_SortOrder `protobuf:"varint,4,opt,name=sortOrder,proto3,enum=datacatalog.PaginationOptions_SortOrder" json:"sortOrder,omitempty"` -} - -func (x *PaginationOptions) Reset() { - *x = PaginationOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PaginationOptions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PaginationOptions) ProtoMessage() {} - -func (x *PaginationOptions) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PaginationOptions.ProtoReflect.Descriptor instead. -func (*PaginationOptions) Descriptor() ([]byte, []int) { - return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{36} -} - -func (x *PaginationOptions) GetLimit() uint32 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *PaginationOptions) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *PaginationOptions) GetSortKey() PaginationOptions_SortKey { - if x != nil { - return x.SortKey - } - return PaginationOptions_CREATION_TIME -} - -func (x *PaginationOptions) GetSortOrder() PaginationOptions_SortOrder { - if x != nil { - return x.SortOrder - } - return PaginationOptions_DESCENDING -} - -var File_flyteidl_datacatalog_datacatalog_proto protoreflect.FileDescriptor - -var file_flyteidl_datacatalog_datacatalog_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x07, - 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x17, 0x0a, 0x15, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x44, 0x0a, 0x12, - 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, - 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, - 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0b, 0x61, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, - 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x48, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x08, 0x61, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x22, 0x4a, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, - 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x0d, 0x41, - 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x03, - 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, 0x61, 0x74, 0x61, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, - 0x22, 0x10, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xbf, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, - 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, - 0x65, 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x35, 0x0a, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6b, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, - 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x12, 0x3e, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0x67, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, - 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xfb, 0x01, 0x0a, 0x15, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, - 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, - 0x67, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, - 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0e, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, - 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x39, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, - 0x49, 0x64, 0x22, 0x61, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x44, 0x12, 0x35, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, - 0x09, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, - 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, - 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x52, 0x0d, 0x72, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, - 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, - 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, - 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, - 0xa3, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x44, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x48, 0x0a, - 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, - 0x41, 0x74, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5c, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x19, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x44, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1c, - 0x0a, 0x1a, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x01, 0x0a, - 0x07, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x4b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x33, 0x0a, 0x09, 0x50, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x91, - 0x01, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x55, 0x55, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x55, 0x49, 0x44, - 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, - 0x72, 0x67, 0x22, 0xc7, 0x02, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x30, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x74, - 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, 0x61, 0x74, 0x61, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, 0x61, 0x67, - 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x50, 0x0a, 0x0c, - 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x6c, - 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x81, 0x01, 0x0a, - 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x07, 0x6b, 0x65, 0x79, - 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6b, - 0x65, 0x79, 0x4d, 0x61, 0x70, 0x1a, 0x39, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x70, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x4f, 0x0a, 0x10, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x22, 0xce, 0x03, 0x0a, 0x14, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x0a, 0x74, 0x61, - 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x67, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, - 0x52, 0x09, 0x74, 0x61, 0x67, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x10, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, - 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4e, - 0x0a, 0x0f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4b, - 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, - 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, - 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x08, 0x6f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, - 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x53, 0x69, 0x6e, 0x67, - 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x20, 0x0a, - 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x00, 0x42, - 0x11, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x22, 0x47, 0x0a, 0x16, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0b, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x42, - 0x0a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x3c, 0x0a, 0x11, 0x54, - 0x61, 0x67, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x12, 0x1b, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, - 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x5b, 0x0a, 0x17, 0x50, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, - 0x48, 0x00, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x36, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9f, - 0x01, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, - 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x03, 0x6f, 0x72, 0x67, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, - 0x22, 0x93, 0x02, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, - 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x73, 0x6f, 0x72, - 0x74, 0x4b, 0x65, 0x79, 0x12, 0x46, 0x0a, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x2a, 0x0a, 0x09, - 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, - 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, - 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x22, 0x1c, 0x0a, 0x07, 0x53, 0x6f, 0x72, 0x74, - 0x4b, 0x65, 0x79, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x54, 0x49, 0x4d, 0x45, 0x10, 0x00, 0x32, 0x86, 0x07, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x43, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x56, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x64, 0x61, 0x74, - 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, - 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, - 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, - 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, - 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, - 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x41, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, - 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x41, 0x64, - 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, - 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, - 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x12, 0x21, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, - 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x22, 0x2e, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, - 0x74, 0x4f, 0x72, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, - 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x12, 0x52, 0x65, 0x6c, 0x65, - 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, - 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x6c, - 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, - 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, - 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0xb2, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x42, 0x10, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, - 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x64, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xa2, 0x02, 0x03, 0x44, 0x58, 0x58, - 0xaa, 0x02, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xca, 0x02, - 0x0b, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xe2, 0x02, 0x17, 0x44, - 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, - 0x61, 0x6c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_datacatalog_datacatalog_proto_rawDescOnce sync.Once - file_flyteidl_datacatalog_datacatalog_proto_rawDescData = file_flyteidl_datacatalog_datacatalog_proto_rawDesc -) - -func file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP() []byte { - file_flyteidl_datacatalog_datacatalog_proto_rawDescOnce.Do(func() { - file_flyteidl_datacatalog_datacatalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_datacatalog_datacatalog_proto_rawDescData) - }) - return file_flyteidl_datacatalog_datacatalog_proto_rawDescData -} - -var file_flyteidl_datacatalog_datacatalog_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_flyteidl_datacatalog_datacatalog_proto_msgTypes = make([]protoimpl.MessageInfo, 38) -var file_flyteidl_datacatalog_datacatalog_proto_goTypes = []interface{}{ - (SinglePropertyFilter_ComparisonOperator)(0), // 0: datacatalog.SinglePropertyFilter.ComparisonOperator - (PaginationOptions_SortOrder)(0), // 1: datacatalog.PaginationOptions.SortOrder - (PaginationOptions_SortKey)(0), // 2: datacatalog.PaginationOptions.SortKey - (*CreateDatasetRequest)(nil), // 3: datacatalog.CreateDatasetRequest - (*CreateDatasetResponse)(nil), // 4: datacatalog.CreateDatasetResponse - (*GetDatasetRequest)(nil), // 5: datacatalog.GetDatasetRequest - (*GetDatasetResponse)(nil), // 6: datacatalog.GetDatasetResponse - (*GetArtifactRequest)(nil), // 7: datacatalog.GetArtifactRequest - (*GetArtifactResponse)(nil), // 8: datacatalog.GetArtifactResponse - (*CreateArtifactRequest)(nil), // 9: datacatalog.CreateArtifactRequest - (*CreateArtifactResponse)(nil), // 10: datacatalog.CreateArtifactResponse - (*AddTagRequest)(nil), // 11: datacatalog.AddTagRequest - (*AddTagResponse)(nil), // 12: datacatalog.AddTagResponse - (*ListArtifactsRequest)(nil), // 13: datacatalog.ListArtifactsRequest - (*ListArtifactsResponse)(nil), // 14: datacatalog.ListArtifactsResponse - (*ListDatasetsRequest)(nil), // 15: datacatalog.ListDatasetsRequest - (*ListDatasetsResponse)(nil), // 16: datacatalog.ListDatasetsResponse - (*UpdateArtifactRequest)(nil), // 17: datacatalog.UpdateArtifactRequest - (*UpdateArtifactResponse)(nil), // 18: datacatalog.UpdateArtifactResponse - (*ReservationID)(nil), // 19: datacatalog.ReservationID - (*GetOrExtendReservationRequest)(nil), // 20: datacatalog.GetOrExtendReservationRequest - (*Reservation)(nil), // 21: datacatalog.Reservation - (*GetOrExtendReservationResponse)(nil), // 22: datacatalog.GetOrExtendReservationResponse - (*ReleaseReservationRequest)(nil), // 23: datacatalog.ReleaseReservationRequest - (*ReleaseReservationResponse)(nil), // 24: datacatalog.ReleaseReservationResponse - (*Dataset)(nil), // 25: datacatalog.Dataset - (*Partition)(nil), // 26: datacatalog.Partition - (*DatasetID)(nil), // 27: datacatalog.DatasetID - (*Artifact)(nil), // 28: datacatalog.Artifact - (*ArtifactData)(nil), // 29: datacatalog.ArtifactData - (*Tag)(nil), // 30: datacatalog.Tag - (*Metadata)(nil), // 31: datacatalog.Metadata - (*FilterExpression)(nil), // 32: datacatalog.FilterExpression - (*SinglePropertyFilter)(nil), // 33: datacatalog.SinglePropertyFilter - (*ArtifactPropertyFilter)(nil), // 34: datacatalog.ArtifactPropertyFilter - (*TagPropertyFilter)(nil), // 35: datacatalog.TagPropertyFilter - (*PartitionPropertyFilter)(nil), // 36: datacatalog.PartitionPropertyFilter - (*KeyValuePair)(nil), // 37: datacatalog.KeyValuePair - (*DatasetPropertyFilter)(nil), // 38: datacatalog.DatasetPropertyFilter - (*PaginationOptions)(nil), // 39: datacatalog.PaginationOptions - nil, // 40: datacatalog.Metadata.KeyMapEntry - (*durationpb.Duration)(nil), // 41: google.protobuf.Duration - (*timestamppb.Timestamp)(nil), // 42: google.protobuf.Timestamp - (*core.Literal)(nil), // 43: flyteidl.core.Literal -} -var file_flyteidl_datacatalog_datacatalog_proto_depIdxs = []int32{ - 25, // 0: datacatalog.CreateDatasetRequest.dataset:type_name -> datacatalog.Dataset - 27, // 1: datacatalog.GetDatasetRequest.dataset:type_name -> datacatalog.DatasetID - 25, // 2: datacatalog.GetDatasetResponse.dataset:type_name -> datacatalog.Dataset - 27, // 3: datacatalog.GetArtifactRequest.dataset:type_name -> datacatalog.DatasetID - 28, // 4: datacatalog.GetArtifactResponse.artifact:type_name -> datacatalog.Artifact - 28, // 5: datacatalog.CreateArtifactRequest.artifact:type_name -> datacatalog.Artifact - 30, // 6: datacatalog.AddTagRequest.tag:type_name -> datacatalog.Tag - 27, // 7: datacatalog.ListArtifactsRequest.dataset:type_name -> datacatalog.DatasetID - 32, // 8: datacatalog.ListArtifactsRequest.filter:type_name -> datacatalog.FilterExpression - 39, // 9: datacatalog.ListArtifactsRequest.pagination:type_name -> datacatalog.PaginationOptions - 28, // 10: datacatalog.ListArtifactsResponse.artifacts:type_name -> datacatalog.Artifact - 32, // 11: datacatalog.ListDatasetsRequest.filter:type_name -> datacatalog.FilterExpression - 39, // 12: datacatalog.ListDatasetsRequest.pagination:type_name -> datacatalog.PaginationOptions - 25, // 13: datacatalog.ListDatasetsResponse.datasets:type_name -> datacatalog.Dataset - 27, // 14: datacatalog.UpdateArtifactRequest.dataset:type_name -> datacatalog.DatasetID - 29, // 15: datacatalog.UpdateArtifactRequest.data:type_name -> datacatalog.ArtifactData - 31, // 16: datacatalog.UpdateArtifactRequest.metadata:type_name -> datacatalog.Metadata - 27, // 17: datacatalog.ReservationID.dataset_id:type_name -> datacatalog.DatasetID - 19, // 18: datacatalog.GetOrExtendReservationRequest.reservation_id:type_name -> datacatalog.ReservationID - 41, // 19: datacatalog.GetOrExtendReservationRequest.heartbeat_interval:type_name -> google.protobuf.Duration - 19, // 20: datacatalog.Reservation.reservation_id:type_name -> datacatalog.ReservationID - 41, // 21: datacatalog.Reservation.heartbeat_interval:type_name -> google.protobuf.Duration - 42, // 22: datacatalog.Reservation.expires_at:type_name -> google.protobuf.Timestamp - 31, // 23: datacatalog.Reservation.metadata:type_name -> datacatalog.Metadata - 21, // 24: datacatalog.GetOrExtendReservationResponse.reservation:type_name -> datacatalog.Reservation - 19, // 25: datacatalog.ReleaseReservationRequest.reservation_id:type_name -> datacatalog.ReservationID - 27, // 26: datacatalog.Dataset.id:type_name -> datacatalog.DatasetID - 31, // 27: datacatalog.Dataset.metadata:type_name -> datacatalog.Metadata - 27, // 28: datacatalog.Artifact.dataset:type_name -> datacatalog.DatasetID - 29, // 29: datacatalog.Artifact.data:type_name -> datacatalog.ArtifactData - 31, // 30: datacatalog.Artifact.metadata:type_name -> datacatalog.Metadata - 26, // 31: datacatalog.Artifact.partitions:type_name -> datacatalog.Partition - 30, // 32: datacatalog.Artifact.tags:type_name -> datacatalog.Tag - 42, // 33: datacatalog.Artifact.created_at:type_name -> google.protobuf.Timestamp - 43, // 34: datacatalog.ArtifactData.value:type_name -> flyteidl.core.Literal - 27, // 35: datacatalog.Tag.dataset:type_name -> datacatalog.DatasetID - 40, // 36: datacatalog.Metadata.key_map:type_name -> datacatalog.Metadata.KeyMapEntry - 33, // 37: datacatalog.FilterExpression.filters:type_name -> datacatalog.SinglePropertyFilter - 35, // 38: datacatalog.SinglePropertyFilter.tag_filter:type_name -> datacatalog.TagPropertyFilter - 36, // 39: datacatalog.SinglePropertyFilter.partition_filter:type_name -> datacatalog.PartitionPropertyFilter - 34, // 40: datacatalog.SinglePropertyFilter.artifact_filter:type_name -> datacatalog.ArtifactPropertyFilter - 38, // 41: datacatalog.SinglePropertyFilter.dataset_filter:type_name -> datacatalog.DatasetPropertyFilter - 0, // 42: datacatalog.SinglePropertyFilter.operator:type_name -> datacatalog.SinglePropertyFilter.ComparisonOperator - 37, // 43: datacatalog.PartitionPropertyFilter.key_val:type_name -> datacatalog.KeyValuePair - 2, // 44: datacatalog.PaginationOptions.sortKey:type_name -> datacatalog.PaginationOptions.SortKey - 1, // 45: datacatalog.PaginationOptions.sortOrder:type_name -> datacatalog.PaginationOptions.SortOrder - 3, // 46: datacatalog.DataCatalog.CreateDataset:input_type -> datacatalog.CreateDatasetRequest - 5, // 47: datacatalog.DataCatalog.GetDataset:input_type -> datacatalog.GetDatasetRequest - 9, // 48: datacatalog.DataCatalog.CreateArtifact:input_type -> datacatalog.CreateArtifactRequest - 7, // 49: datacatalog.DataCatalog.GetArtifact:input_type -> datacatalog.GetArtifactRequest - 11, // 50: datacatalog.DataCatalog.AddTag:input_type -> datacatalog.AddTagRequest - 13, // 51: datacatalog.DataCatalog.ListArtifacts:input_type -> datacatalog.ListArtifactsRequest - 15, // 52: datacatalog.DataCatalog.ListDatasets:input_type -> datacatalog.ListDatasetsRequest - 17, // 53: datacatalog.DataCatalog.UpdateArtifact:input_type -> datacatalog.UpdateArtifactRequest - 20, // 54: datacatalog.DataCatalog.GetOrExtendReservation:input_type -> datacatalog.GetOrExtendReservationRequest - 23, // 55: datacatalog.DataCatalog.ReleaseReservation:input_type -> datacatalog.ReleaseReservationRequest - 4, // 56: datacatalog.DataCatalog.CreateDataset:output_type -> datacatalog.CreateDatasetResponse - 6, // 57: datacatalog.DataCatalog.GetDataset:output_type -> datacatalog.GetDatasetResponse - 10, // 58: datacatalog.DataCatalog.CreateArtifact:output_type -> datacatalog.CreateArtifactResponse - 8, // 59: datacatalog.DataCatalog.GetArtifact:output_type -> datacatalog.GetArtifactResponse - 12, // 60: datacatalog.DataCatalog.AddTag:output_type -> datacatalog.AddTagResponse - 14, // 61: datacatalog.DataCatalog.ListArtifacts:output_type -> datacatalog.ListArtifactsResponse - 16, // 62: datacatalog.DataCatalog.ListDatasets:output_type -> datacatalog.ListDatasetsResponse - 18, // 63: datacatalog.DataCatalog.UpdateArtifact:output_type -> datacatalog.UpdateArtifactResponse - 22, // 64: datacatalog.DataCatalog.GetOrExtendReservation:output_type -> datacatalog.GetOrExtendReservationResponse - 24, // 65: datacatalog.DataCatalog.ReleaseReservation:output_type -> datacatalog.ReleaseReservationResponse - 56, // [56:66] is the sub-list for method output_type - 46, // [46:56] is the sub-list for method input_type - 46, // [46:46] is the sub-list for extension type_name - 46, // [46:46] is the sub-list for extension extendee - 0, // [0:46] is the sub-list for field type_name -} - -func init() { file_flyteidl_datacatalog_datacatalog_proto_init() } -func file_flyteidl_datacatalog_datacatalog_proto_init() { - if File_flyteidl_datacatalog_datacatalog_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDatasetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDatasetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDatasetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDatasetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetArtifactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetArtifactResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateArtifactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateArtifactResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddTagRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddTagResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListArtifactsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListArtifactsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListDatasetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListDatasetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateArtifactRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateArtifactResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReservationID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOrExtendReservationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Reservation); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetOrExtendReservationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReleaseReservationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ReleaseReservationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Dataset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Partition); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DatasetID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Artifact); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactData); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Tag); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Metadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FilterExpression); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SinglePropertyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArtifactPropertyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TagPropertyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionPropertyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyValuePair); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DatasetPropertyFilter); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PaginationOptions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*GetArtifactRequest_ArtifactId)(nil), - (*GetArtifactRequest_TagName)(nil), - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14].OneofWrappers = []interface{}{ - (*UpdateArtifactRequest_ArtifactId)(nil), - (*UpdateArtifactRequest_TagName)(nil), - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30].OneofWrappers = []interface{}{ - (*SinglePropertyFilter_TagFilter)(nil), - (*SinglePropertyFilter_PartitionFilter)(nil), - (*SinglePropertyFilter_ArtifactFilter)(nil), - (*SinglePropertyFilter_DatasetFilter)(nil), - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31].OneofWrappers = []interface{}{ - (*ArtifactPropertyFilter_ArtifactId)(nil), - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32].OneofWrappers = []interface{}{ - (*TagPropertyFilter_TagName)(nil), - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33].OneofWrappers = []interface{}{ - (*PartitionPropertyFilter_KeyVal)(nil), - } - file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35].OneofWrappers = []interface{}{ - (*DatasetPropertyFilter_Project)(nil), - (*DatasetPropertyFilter_Name)(nil), - (*DatasetPropertyFilter_Domain)(nil), - (*DatasetPropertyFilter_Version)(nil), - (*DatasetPropertyFilter_Org)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_datacatalog_datacatalog_proto_rawDesc, - NumEnums: 3, - NumMessages: 38, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_datacatalog_datacatalog_proto_goTypes, - DependencyIndexes: file_flyteidl_datacatalog_datacatalog_proto_depIdxs, - EnumInfos: file_flyteidl_datacatalog_datacatalog_proto_enumTypes, - MessageInfos: file_flyteidl_datacatalog_datacatalog_proto_msgTypes, - }.Build() - File_flyteidl_datacatalog_datacatalog_proto = out.File - file_flyteidl_datacatalog_datacatalog_proto_rawDesc = nil - file_flyteidl_datacatalog_datacatalog_proto_goTypes = nil - file_flyteidl_datacatalog_datacatalog_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go deleted file mode 100644 index 41628d16e3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go +++ /dev/null @@ -1,486 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/datacatalog/datacatalog.proto - -package datacatalog - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - DataCatalog_CreateDataset_FullMethodName = "/datacatalog.DataCatalog/CreateDataset" - DataCatalog_GetDataset_FullMethodName = "/datacatalog.DataCatalog/GetDataset" - DataCatalog_CreateArtifact_FullMethodName = "/datacatalog.DataCatalog/CreateArtifact" - DataCatalog_GetArtifact_FullMethodName = "/datacatalog.DataCatalog/GetArtifact" - DataCatalog_AddTag_FullMethodName = "/datacatalog.DataCatalog/AddTag" - DataCatalog_ListArtifacts_FullMethodName = "/datacatalog.DataCatalog/ListArtifacts" - DataCatalog_ListDatasets_FullMethodName = "/datacatalog.DataCatalog/ListDatasets" - DataCatalog_UpdateArtifact_FullMethodName = "/datacatalog.DataCatalog/UpdateArtifact" - DataCatalog_GetOrExtendReservation_FullMethodName = "/datacatalog.DataCatalog/GetOrExtendReservation" - DataCatalog_ReleaseReservation_FullMethodName = "/datacatalog.DataCatalog/ReleaseReservation" -) - -// DataCatalogClient is the client API for DataCatalog service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type DataCatalogClient interface { - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) - // Associate a tag with an artifact. Tags are unique within a Dataset. - AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) - // Return a paginated list of artifacts - ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) - // Return a paginated list of datasets - ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) -} - -type dataCatalogClient struct { - cc grpc.ClientConnInterface -} - -func NewDataCatalogClient(cc grpc.ClientConnInterface) DataCatalogClient { - return &dataCatalogClient{cc} -} - -func (c *dataCatalogClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) { - out := new(CreateDatasetResponse) - err := c.cc.Invoke(ctx, DataCatalog_CreateDataset_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) { - out := new(GetDatasetResponse) - err := c.cc.Invoke(ctx, DataCatalog_GetDataset_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) { - out := new(CreateArtifactResponse) - err := c.cc.Invoke(ctx, DataCatalog_CreateArtifact_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) { - out := new(GetArtifactResponse) - err := c.cc.Invoke(ctx, DataCatalog_GetArtifact_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { - out := new(AddTagResponse) - err := c.cc.Invoke(ctx, DataCatalog_AddTag_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) { - out := new(ListArtifactsResponse) - err := c.cc.Invoke(ctx, DataCatalog_ListArtifacts_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { - out := new(ListDatasetsResponse) - err := c.cc.Invoke(ctx, DataCatalog_ListDatasets_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) { - out := new(UpdateArtifactResponse) - err := c.cc.Invoke(ctx, DataCatalog_UpdateArtifact_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) { - out := new(GetOrExtendReservationResponse) - err := c.cc.Invoke(ctx, DataCatalog_GetOrExtendReservation_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { - out := new(ReleaseReservationResponse) - err := c.cc.Invoke(ctx, DataCatalog_ReleaseReservation_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DataCatalogServer is the server API for DataCatalog service. -// All implementations should embed UnimplementedDataCatalogServer -// for forward compatibility -type DataCatalogServer interface { - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) - // Associate a tag with an artifact. Tags are unique within a Dataset. - AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) - // Return a paginated list of artifacts - ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) - // Return a paginated list of datasets - ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) -} - -// UnimplementedDataCatalogServer should be embedded to have forward compatible implementations. -type UnimplementedDataCatalogServer struct { -} - -func (UnimplementedDataCatalogServer) CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") -} -func (UnimplementedDataCatalogServer) GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") -} -func (UnimplementedDataCatalogServer) CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented") -} -func (UnimplementedDataCatalogServer) GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") -} -func (UnimplementedDataCatalogServer) AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddTag not implemented") -} -func (UnimplementedDataCatalogServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") -} -func (UnimplementedDataCatalogServer) ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") -} -func (UnimplementedDataCatalogServer) UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateArtifact not implemented") -} -func (UnimplementedDataCatalogServer) GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservation not implemented") -} -func (UnimplementedDataCatalogServer) ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservation not implemented") -} - -// UnsafeDataCatalogServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to DataCatalogServer will -// result in compilation errors. -type UnsafeDataCatalogServer interface { - mustEmbedUnimplementedDataCatalogServer() -} - -func RegisterDataCatalogServer(s grpc.ServiceRegistrar, srv DataCatalogServer) { - s.RegisterService(&DataCatalog_ServiceDesc, srv) -} - -func _DataCatalog_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDatasetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).CreateDataset(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_CreateDataset_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDatasetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetDataset(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_GetDataset_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetDataset(ctx, req.(*GetDatasetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).CreateArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_CreateArtifact_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).CreateArtifact(ctx, req.(*CreateArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_GetArtifact_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetArtifact(ctx, req.(*GetArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_AddTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).AddTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_AddTag_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).AddTag(ctx, req.(*AddTagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_ListArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListArtifactsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ListArtifacts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_ListArtifacts_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ListArtifacts(ctx, req.(*ListArtifactsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListDatasetsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ListDatasets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_ListDatasets_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_UpdateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).UpdateArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_UpdateArtifact_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).UpdateArtifact(ctx, req.(*UpdateArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetOrExtendReservationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetOrExtendReservation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_GetOrExtendReservation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetOrExtendReservation(ctx, req.(*GetOrExtendReservationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReleaseReservationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ReleaseReservation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataCatalog_ReleaseReservation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ReleaseReservation(ctx, req.(*ReleaseReservationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// DataCatalog_ServiceDesc is the grpc.ServiceDesc for DataCatalog service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var DataCatalog_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "datacatalog.DataCatalog", - HandlerType: (*DataCatalogServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateDataset", - Handler: _DataCatalog_CreateDataset_Handler, - }, - { - MethodName: "GetDataset", - Handler: _DataCatalog_GetDataset_Handler, - }, - { - MethodName: "CreateArtifact", - Handler: _DataCatalog_CreateArtifact_Handler, - }, - { - MethodName: "GetArtifact", - Handler: _DataCatalog_GetArtifact_Handler, - }, - { - MethodName: "AddTag", - Handler: _DataCatalog_AddTag_Handler, - }, - { - MethodName: "ListArtifacts", - Handler: _DataCatalog_ListArtifacts_Handler, - }, - { - MethodName: "ListDatasets", - Handler: _DataCatalog_ListDatasets_Handler, - }, - { - MethodName: "UpdateArtifact", - Handler: _DataCatalog_UpdateArtifact_Handler, - }, - { - MethodName: "GetOrExtendReservation", - Handler: _DataCatalog_GetOrExtendReservation_Handler, - }, - { - MethodName: "ReleaseReservation", - Handler: _DataCatalog_ReleaseReservation_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/datacatalog/datacatalog.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go deleted file mode 100644 index 23f6783440..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go +++ /dev/null @@ -1,589 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/event/cloudevents.proto - -package event - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - _ "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional -// information that downstream consumers may find useful. -type CloudEventWorkflowExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RawEvent *WorkflowExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` - OutputInterface *core.TypedInterface `protobuf:"bytes,2,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"` - // The following are ExecutionMetadata fields - // We can't have the ExecutionMetadata object directly because of import cycle - ArtifactIds []*core.ArtifactID `protobuf:"bytes,3,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,4,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` - Principal string `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal,omitempty"` - // The ID of the LP that generated the execution that generated the Artifact. - // Here for provenance information. - // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - LaunchPlanId *core.Identifier `protobuf:"bytes,6,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` -} - -func (x *CloudEventWorkflowExecution) Reset() { - *x = CloudEventWorkflowExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloudEventWorkflowExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloudEventWorkflowExecution) ProtoMessage() {} - -func (x *CloudEventWorkflowExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloudEventWorkflowExecution.ProtoReflect.Descriptor instead. -func (*CloudEventWorkflowExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{0} -} - -func (x *CloudEventWorkflowExecution) GetRawEvent() *WorkflowExecutionEvent { - if x != nil { - return x.RawEvent - } - return nil -} - -func (x *CloudEventWorkflowExecution) GetOutputInterface() *core.TypedInterface { - if x != nil { - return x.OutputInterface - } - return nil -} - -func (x *CloudEventWorkflowExecution) GetArtifactIds() []*core.ArtifactID { - if x != nil { - return x.ArtifactIds - } - return nil -} - -func (x *CloudEventWorkflowExecution) GetReferenceExecution() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.ReferenceExecution - } - return nil -} - -func (x *CloudEventWorkflowExecution) GetPrincipal() string { - if x != nil { - return x.Principal - } - return "" -} - -func (x *CloudEventWorkflowExecution) GetLaunchPlanId() *core.Identifier { - if x != nil { - return x.LaunchPlanId - } - return nil -} - -type CloudEventNodeExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RawEvent *NodeExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` - // The relevant task execution if applicable - TaskExecId *core.TaskExecutionIdentifier `protobuf:"bytes,2,opt,name=task_exec_id,json=taskExecId,proto3" json:"task_exec_id,omitempty"` - // The typed interface for the task that produced the event. - OutputInterface *core.TypedInterface `protobuf:"bytes,3,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"` - // The following are ExecutionMetadata fields - // We can't have the ExecutionMetadata object directly because of import cycle - ArtifactIds []*core.ArtifactID `protobuf:"bytes,4,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - Principal string `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal,omitempty"` - // The ID of the LP that generated the execution that generated the Artifact. - // Here for provenance information. - // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - LaunchPlanId *core.Identifier `protobuf:"bytes,6,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` -} - -func (x *CloudEventNodeExecution) Reset() { - *x = CloudEventNodeExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloudEventNodeExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloudEventNodeExecution) ProtoMessage() {} - -func (x *CloudEventNodeExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloudEventNodeExecution.ProtoReflect.Descriptor instead. -func (*CloudEventNodeExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{1} -} - -func (x *CloudEventNodeExecution) GetRawEvent() *NodeExecutionEvent { - if x != nil { - return x.RawEvent - } - return nil -} - -func (x *CloudEventNodeExecution) GetTaskExecId() *core.TaskExecutionIdentifier { - if x != nil { - return x.TaskExecId - } - return nil -} - -func (x *CloudEventNodeExecution) GetOutputInterface() *core.TypedInterface { - if x != nil { - return x.OutputInterface - } - return nil -} - -func (x *CloudEventNodeExecution) GetArtifactIds() []*core.ArtifactID { - if x != nil { - return x.ArtifactIds - } - return nil -} - -func (x *CloudEventNodeExecution) GetPrincipal() string { - if x != nil { - return x.Principal - } - return "" -} - -func (x *CloudEventNodeExecution) GetLaunchPlanId() *core.Identifier { - if x != nil { - return x.LaunchPlanId - } - return nil -} - -type CloudEventTaskExecution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RawEvent *TaskExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` -} - -func (x *CloudEventTaskExecution) Reset() { - *x = CloudEventTaskExecution{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloudEventTaskExecution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloudEventTaskExecution) ProtoMessage() {} - -func (x *CloudEventTaskExecution) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloudEventTaskExecution.ProtoReflect.Descriptor instead. -func (*CloudEventTaskExecution) Descriptor() ([]byte, []int) { - return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{2} -} - -func (x *CloudEventTaskExecution) GetRawEvent() *TaskExecutionEvent { - if x != nil { - return x.RawEvent - } - return nil -} - -// This event is to be sent by Admin after it creates an execution. -type CloudEventExecutionStart struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The execution created. - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - // The launch plan used. - LaunchPlanId *core.Identifier `protobuf:"bytes,2,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` - WorkflowId *core.Identifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - // Artifact inputs to the workflow execution for which we have the full Artifact ID. These are likely the result of artifact queries that are run. - ArtifactIds []*core.ArtifactID `protobuf:"bytes,4,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - // Artifact inputs to the workflow execution for which we only have the tracking bit that's installed into the Literal's metadata by the Artifact service. - ArtifactTrackers []string `protobuf:"bytes,5,rep,name=artifact_trackers,json=artifactTrackers,proto3" json:"artifact_trackers,omitempty"` - Principal string `protobuf:"bytes,6,opt,name=principal,proto3" json:"principal,omitempty"` -} - -func (x *CloudEventExecutionStart) Reset() { - *x = CloudEventExecutionStart{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CloudEventExecutionStart) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CloudEventExecutionStart) ProtoMessage() {} - -func (x *CloudEventExecutionStart) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_cloudevents_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CloudEventExecutionStart.ProtoReflect.Descriptor instead. -func (*CloudEventExecutionStart) Descriptor() ([]byte, []int) { - return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{3} -} - -func (x *CloudEventExecutionStart) GetExecutionId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.ExecutionId - } - return nil -} - -func (x *CloudEventExecutionStart) GetLaunchPlanId() *core.Identifier { - if x != nil { - return x.LaunchPlanId - } - return nil -} - -func (x *CloudEventExecutionStart) GetWorkflowId() *core.Identifier { - if x != nil { - return x.WorkflowId - } - return nil -} - -func (x *CloudEventExecutionStart) GetArtifactIds() []*core.ArtifactID { - if x != nil { - return x.ArtifactIds - } - return nil -} - -func (x *CloudEventExecutionStart) GetArtifactTrackers() []string { - if x != nil { - return x.ArtifactTrackers - } - return nil -} - -func (x *CloudEventExecutionStart) GetPrincipal() string { - if x != nil { - return x.Principal - } - return "" -} - -var File_flyteidl_event_cloudevents_proto protoreflect.FileDescriptor - -var file_flyteidl_event_cloudevents_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x1a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, - 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x03, - 0x0a, 0x1b, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, - 0x09, 0x72, 0x61, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x72, 0x61, 0x77, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, - 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0c, - 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x5b, 0x0a, 0x13, 0x72, 0x65, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x52, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, - 0x69, 0x70, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, - 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x3f, 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, - 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x8b, 0x03, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x75, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x72, 0x61, 0x77, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x49, 0x64, 0x12, 0x48, 0x0a, - 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, - 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, - 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, - 0x70, 0x61, 0x6c, 0x12, 0x3f, 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, - 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, - 0x61, 0x6e, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x3f, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x72, 0x61, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x22, 0xef, 0x02, 0x0a, 0x18, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x4d, 0x0a, - 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0e, - 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x3a, 0x0a, - 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0c, 0x61, 0x72, 0x74, - 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, - 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x10, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x72, 0x61, 0x63, - 0x6b, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, - 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, - 0x61, 0x6c, 0x42, 0xbc, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x10, 0x43, 0x6c, 0x6f, 0x75, 0x64, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0xa2, 0x02, 0x03, 0x46, 0x45, 0x58, - 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_event_cloudevents_proto_rawDescOnce sync.Once - file_flyteidl_event_cloudevents_proto_rawDescData = file_flyteidl_event_cloudevents_proto_rawDesc -) - -func file_flyteidl_event_cloudevents_proto_rawDescGZIP() []byte { - file_flyteidl_event_cloudevents_proto_rawDescOnce.Do(func() { - file_flyteidl_event_cloudevents_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_event_cloudevents_proto_rawDescData) - }) - return file_flyteidl_event_cloudevents_proto_rawDescData -} - -var file_flyteidl_event_cloudevents_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_flyteidl_event_cloudevents_proto_goTypes = []interface{}{ - (*CloudEventWorkflowExecution)(nil), // 0: flyteidl.event.CloudEventWorkflowExecution - (*CloudEventNodeExecution)(nil), // 1: flyteidl.event.CloudEventNodeExecution - (*CloudEventTaskExecution)(nil), // 2: flyteidl.event.CloudEventTaskExecution - (*CloudEventExecutionStart)(nil), // 3: flyteidl.event.CloudEventExecutionStart - (*WorkflowExecutionEvent)(nil), // 4: flyteidl.event.WorkflowExecutionEvent - (*core.TypedInterface)(nil), // 5: flyteidl.core.TypedInterface - (*core.ArtifactID)(nil), // 6: flyteidl.core.ArtifactID - (*core.WorkflowExecutionIdentifier)(nil), // 7: flyteidl.core.WorkflowExecutionIdentifier - (*core.Identifier)(nil), // 8: flyteidl.core.Identifier - (*NodeExecutionEvent)(nil), // 9: flyteidl.event.NodeExecutionEvent - (*core.TaskExecutionIdentifier)(nil), // 10: flyteidl.core.TaskExecutionIdentifier - (*TaskExecutionEvent)(nil), // 11: flyteidl.event.TaskExecutionEvent -} -var file_flyteidl_event_cloudevents_proto_depIdxs = []int32{ - 4, // 0: flyteidl.event.CloudEventWorkflowExecution.raw_event:type_name -> flyteidl.event.WorkflowExecutionEvent - 5, // 1: flyteidl.event.CloudEventWorkflowExecution.output_interface:type_name -> flyteidl.core.TypedInterface - 6, // 2: flyteidl.event.CloudEventWorkflowExecution.artifact_ids:type_name -> flyteidl.core.ArtifactID - 7, // 3: flyteidl.event.CloudEventWorkflowExecution.reference_execution:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 8, // 4: flyteidl.event.CloudEventWorkflowExecution.launch_plan_id:type_name -> flyteidl.core.Identifier - 9, // 5: flyteidl.event.CloudEventNodeExecution.raw_event:type_name -> flyteidl.event.NodeExecutionEvent - 10, // 6: flyteidl.event.CloudEventNodeExecution.task_exec_id:type_name -> flyteidl.core.TaskExecutionIdentifier - 5, // 7: flyteidl.event.CloudEventNodeExecution.output_interface:type_name -> flyteidl.core.TypedInterface - 6, // 8: flyteidl.event.CloudEventNodeExecution.artifact_ids:type_name -> flyteidl.core.ArtifactID - 8, // 9: flyteidl.event.CloudEventNodeExecution.launch_plan_id:type_name -> flyteidl.core.Identifier - 11, // 10: flyteidl.event.CloudEventTaskExecution.raw_event:type_name -> flyteidl.event.TaskExecutionEvent - 7, // 11: flyteidl.event.CloudEventExecutionStart.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 8, // 12: flyteidl.event.CloudEventExecutionStart.launch_plan_id:type_name -> flyteidl.core.Identifier - 8, // 13: flyteidl.event.CloudEventExecutionStart.workflow_id:type_name -> flyteidl.core.Identifier - 6, // 14: flyteidl.event.CloudEventExecutionStart.artifact_ids:type_name -> flyteidl.core.ArtifactID - 15, // [15:15] is the sub-list for method output_type - 15, // [15:15] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name -} - -func init() { file_flyteidl_event_cloudevents_proto_init() } -func file_flyteidl_event_cloudevents_proto_init() { - if File_flyteidl_event_cloudevents_proto != nil { - return - } - file_flyteidl_event_event_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_event_cloudevents_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloudEventWorkflowExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_cloudevents_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloudEventNodeExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_cloudevents_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloudEventTaskExecution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_cloudevents_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CloudEventExecutionStart); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_event_cloudevents_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_event_cloudevents_proto_goTypes, - DependencyIndexes: file_flyteidl_event_cloudevents_proto_depIdxs, - MessageInfos: file_flyteidl_event_cloudevents_proto_msgTypes, - }.Build() - File_flyteidl_event_cloudevents_proto = out.File - file_flyteidl_event_cloudevents_proto_rawDesc = nil - file_flyteidl_event_cloudevents_proto_goTypes = nil - file_flyteidl_event_cloudevents_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go deleted file mode 100644 index 9c3baaf04e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go +++ /dev/null @@ -1,2025 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/event/event.proto - -package event - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Includes the broad category of machine used for this specific task execution. -type TaskExecutionMetadata_InstanceClass int32 - -const ( - // The default instance class configured for the flyte application platform. - TaskExecutionMetadata_DEFAULT TaskExecutionMetadata_InstanceClass = 0 - // The instance class configured for interruptible tasks. - TaskExecutionMetadata_INTERRUPTIBLE TaskExecutionMetadata_InstanceClass = 1 -) - -// Enum value maps for TaskExecutionMetadata_InstanceClass. -var ( - TaskExecutionMetadata_InstanceClass_name = map[int32]string{ - 0: "DEFAULT", - 1: "INTERRUPTIBLE", - } - TaskExecutionMetadata_InstanceClass_value = map[string]int32{ - "DEFAULT": 0, - "INTERRUPTIBLE": 1, - } -) - -func (x TaskExecutionMetadata_InstanceClass) Enum() *TaskExecutionMetadata_InstanceClass { - p := new(TaskExecutionMetadata_InstanceClass) - *p = x - return p -} - -func (x TaskExecutionMetadata_InstanceClass) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (TaskExecutionMetadata_InstanceClass) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_event_event_proto_enumTypes[0].Descriptor() -} - -func (TaskExecutionMetadata_InstanceClass) Type() protoreflect.EnumType { - return &file_flyteidl_event_event_proto_enumTypes[0] -} - -func (x TaskExecutionMetadata_InstanceClass) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use TaskExecutionMetadata_InstanceClass.Descriptor instead. -func (TaskExecutionMetadata_InstanceClass) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{11, 0} -} - -type WorkflowExecutionEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Workflow execution id - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - // the id of the originator (Propeller) of the event - ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` - Phase core.WorkflowExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` - // This timestamp represents when the original event occurred, it is generated - // by the executor of the workflow. - OccurredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Types that are assignable to OutputResult: - // - // *WorkflowExecutionEvent_OutputUri - // *WorkflowExecutionEvent_Error - // *WorkflowExecutionEvent_OutputData - OutputResult isWorkflowExecutionEvent_OutputResult `protobuf_oneof:"output_result"` -} - -func (x *WorkflowExecutionEvent) Reset() { - *x = WorkflowExecutionEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowExecutionEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowExecutionEvent) ProtoMessage() {} - -func (x *WorkflowExecutionEvent) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowExecutionEvent.ProtoReflect.Descriptor instead. -func (*WorkflowExecutionEvent) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{0} -} - -func (x *WorkflowExecutionEvent) GetExecutionId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.ExecutionId - } - return nil -} - -func (x *WorkflowExecutionEvent) GetProducerId() string { - if x != nil { - return x.ProducerId - } - return "" -} - -func (x *WorkflowExecutionEvent) GetPhase() core.WorkflowExecution_Phase { - if x != nil { - return x.Phase - } - return core.WorkflowExecution_Phase(0) -} - -func (x *WorkflowExecutionEvent) GetOccurredAt() *timestamppb.Timestamp { - if x != nil { - return x.OccurredAt - } - return nil -} - -func (m *WorkflowExecutionEvent) GetOutputResult() isWorkflowExecutionEvent_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -func (x *WorkflowExecutionEvent) GetOutputUri() string { - if x, ok := x.GetOutputResult().(*WorkflowExecutionEvent_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (x *WorkflowExecutionEvent) GetError() *core.ExecutionError { - if x, ok := x.GetOutputResult().(*WorkflowExecutionEvent_Error); ok { - return x.Error - } - return nil -} - -func (x *WorkflowExecutionEvent) GetOutputData() *core.LiteralMap { - if x, ok := x.GetOutputResult().(*WorkflowExecutionEvent_OutputData); ok { - return x.OutputData - } - return nil -} - -type isWorkflowExecutionEvent_OutputResult interface { - isWorkflowExecutionEvent_OutputResult() -} - -type WorkflowExecutionEvent_OutputUri struct { - // URL to the output of the execution, it encodes all the information - // including Cloud source provider. ie., s3://... - OutputUri string `protobuf:"bytes,5,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type WorkflowExecutionEvent_Error struct { - // Error information for the execution - Error *core.ExecutionError `protobuf:"bytes,6,opt,name=error,proto3,oneof"` -} - -type WorkflowExecutionEvent_OutputData struct { - // Raw output data produced by this workflow execution. - OutputData *core.LiteralMap `protobuf:"bytes,7,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*WorkflowExecutionEvent_OutputUri) isWorkflowExecutionEvent_OutputResult() {} - -func (*WorkflowExecutionEvent_Error) isWorkflowExecutionEvent_OutputResult() {} - -func (*WorkflowExecutionEvent_OutputData) isWorkflowExecutionEvent_OutputResult() {} - -type NodeExecutionEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique identifier for this node execution - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // the id of the originator (Propeller) of the event - ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` - Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` - // This timestamp represents when the original event occurred, it is generated - // by the executor of the node. - OccurredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Types that are assignable to InputValue: - // - // *NodeExecutionEvent_InputUri - // *NodeExecutionEvent_InputData - InputValue isNodeExecutionEvent_InputValue `protobuf_oneof:"input_value"` - // Types that are assignable to OutputResult: - // - // *NodeExecutionEvent_OutputUri - // *NodeExecutionEvent_Error - // *NodeExecutionEvent_OutputData - OutputResult isNodeExecutionEvent_OutputResult `protobuf_oneof:"output_result"` - // Additional metadata to do with this event's node target based - // on the node type - // - // Types that are assignable to TargetMetadata: - // - // *NodeExecutionEvent_WorkflowNodeMetadata - // *NodeExecutionEvent_TaskNodeMetadata - TargetMetadata isNodeExecutionEvent_TargetMetadata `protobuf_oneof:"target_metadata"` - // [To be deprecated] Specifies which task (if any) launched this node. - ParentTaskMetadata *ParentTaskExecutionMetadata `protobuf:"bytes,9,opt,name=parent_task_metadata,json=parentTaskMetadata,proto3" json:"parent_task_metadata,omitempty"` - // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. - ParentNodeMetadata *ParentNodeExecutionMetadata `protobuf:"bytes,10,opt,name=parent_node_metadata,json=parentNodeMetadata,proto3" json:"parent_node_metadata,omitempty"` - // Retry group to indicate grouping of nodes by retries - RetryGroup string `protobuf:"bytes,11,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` - // Identifier of the node in the original workflow/graph - // This maps to value of WorkflowTemplate.nodes[X].id - SpecNodeId string `protobuf:"bytes,12,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` - // Friendly readable name for the node - NodeName string `protobuf:"bytes,13,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - EventVersion int32 `protobuf:"varint,16,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` - // Whether this node launched a subworkflow. - IsParent bool `protobuf:"varint,17,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` - // Whether this node yielded a dynamic workflow. - IsDynamic bool `protobuf:"varint,18,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` - // String location uniquely identifying where the deck HTML file is - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - DeckUri string `protobuf:"bytes,19,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` - // This timestamp represents the instant when the event was reported by the executing framework. For example, - // when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when - // literal inputs are initially copied. The event however will not be sent until after the copy completes. - // Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - ReportedAt *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` - // Indicates if this node is an ArrayNode. - IsArray bool `protobuf:"varint,22,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` -} - -func (x *NodeExecutionEvent) Reset() { - *x = NodeExecutionEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NodeExecutionEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NodeExecutionEvent) ProtoMessage() {} - -func (x *NodeExecutionEvent) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NodeExecutionEvent.ProtoReflect.Descriptor instead. -func (*NodeExecutionEvent) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{1} -} - -func (x *NodeExecutionEvent) GetId() *core.NodeExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *NodeExecutionEvent) GetProducerId() string { - if x != nil { - return x.ProducerId - } - return "" -} - -func (x *NodeExecutionEvent) GetPhase() core.NodeExecution_Phase { - if x != nil { - return x.Phase - } - return core.NodeExecution_Phase(0) -} - -func (x *NodeExecutionEvent) GetOccurredAt() *timestamppb.Timestamp { - if x != nil { - return x.OccurredAt - } - return nil -} - -func (m *NodeExecutionEvent) GetInputValue() isNodeExecutionEvent_InputValue { - if m != nil { - return m.InputValue - } - return nil -} - -func (x *NodeExecutionEvent) GetInputUri() string { - if x, ok := x.GetInputValue().(*NodeExecutionEvent_InputUri); ok { - return x.InputUri - } - return "" -} - -func (x *NodeExecutionEvent) GetInputData() *core.LiteralMap { - if x, ok := x.GetInputValue().(*NodeExecutionEvent_InputData); ok { - return x.InputData - } - return nil -} - -func (m *NodeExecutionEvent) GetOutputResult() isNodeExecutionEvent_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -func (x *NodeExecutionEvent) GetOutputUri() string { - if x, ok := x.GetOutputResult().(*NodeExecutionEvent_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (x *NodeExecutionEvent) GetError() *core.ExecutionError { - if x, ok := x.GetOutputResult().(*NodeExecutionEvent_Error); ok { - return x.Error - } - return nil -} - -func (x *NodeExecutionEvent) GetOutputData() *core.LiteralMap { - if x, ok := x.GetOutputResult().(*NodeExecutionEvent_OutputData); ok { - return x.OutputData - } - return nil -} - -func (m *NodeExecutionEvent) GetTargetMetadata() isNodeExecutionEvent_TargetMetadata { - if m != nil { - return m.TargetMetadata - } - return nil -} - -func (x *NodeExecutionEvent) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { - if x, ok := x.GetTargetMetadata().(*NodeExecutionEvent_WorkflowNodeMetadata); ok { - return x.WorkflowNodeMetadata - } - return nil -} - -func (x *NodeExecutionEvent) GetTaskNodeMetadata() *TaskNodeMetadata { - if x, ok := x.GetTargetMetadata().(*NodeExecutionEvent_TaskNodeMetadata); ok { - return x.TaskNodeMetadata - } - return nil -} - -func (x *NodeExecutionEvent) GetParentTaskMetadata() *ParentTaskExecutionMetadata { - if x != nil { - return x.ParentTaskMetadata - } - return nil -} - -func (x *NodeExecutionEvent) GetParentNodeMetadata() *ParentNodeExecutionMetadata { - if x != nil { - return x.ParentNodeMetadata - } - return nil -} - -func (x *NodeExecutionEvent) GetRetryGroup() string { - if x != nil { - return x.RetryGroup - } - return "" -} - -func (x *NodeExecutionEvent) GetSpecNodeId() string { - if x != nil { - return x.SpecNodeId - } - return "" -} - -func (x *NodeExecutionEvent) GetNodeName() string { - if x != nil { - return x.NodeName - } - return "" -} - -func (x *NodeExecutionEvent) GetEventVersion() int32 { - if x != nil { - return x.EventVersion - } - return 0 -} - -func (x *NodeExecutionEvent) GetIsParent() bool { - if x != nil { - return x.IsParent - } - return false -} - -func (x *NodeExecutionEvent) GetIsDynamic() bool { - if x != nil { - return x.IsDynamic - } - return false -} - -func (x *NodeExecutionEvent) GetDeckUri() string { - if x != nil { - return x.DeckUri - } - return "" -} - -func (x *NodeExecutionEvent) GetReportedAt() *timestamppb.Timestamp { - if x != nil { - return x.ReportedAt - } - return nil -} - -func (x *NodeExecutionEvent) GetIsArray() bool { - if x != nil { - return x.IsArray - } - return false -} - -type isNodeExecutionEvent_InputValue interface { - isNodeExecutionEvent_InputValue() -} - -type NodeExecutionEvent_InputUri struct { - InputUri string `protobuf:"bytes,5,opt,name=input_uri,json=inputUri,proto3,oneof"` -} - -type NodeExecutionEvent_InputData struct { - // Raw input data consumed by this node execution. - InputData *core.LiteralMap `protobuf:"bytes,20,opt,name=input_data,json=inputData,proto3,oneof"` -} - -func (*NodeExecutionEvent_InputUri) isNodeExecutionEvent_InputValue() {} - -func (*NodeExecutionEvent_InputData) isNodeExecutionEvent_InputValue() {} - -type isNodeExecutionEvent_OutputResult interface { - isNodeExecutionEvent_OutputResult() -} - -type NodeExecutionEvent_OutputUri struct { - // URL to the output of the execution, it encodes all the information - // including Cloud source provider. ie., s3://... - OutputUri string `protobuf:"bytes,6,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type NodeExecutionEvent_Error struct { - // Error information for the execution - Error *core.ExecutionError `protobuf:"bytes,7,opt,name=error,proto3,oneof"` -} - -type NodeExecutionEvent_OutputData struct { - // Raw output data produced by this node execution. - OutputData *core.LiteralMap `protobuf:"bytes,15,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*NodeExecutionEvent_OutputUri) isNodeExecutionEvent_OutputResult() {} - -func (*NodeExecutionEvent_Error) isNodeExecutionEvent_OutputResult() {} - -func (*NodeExecutionEvent_OutputData) isNodeExecutionEvent_OutputResult() {} - -type isNodeExecutionEvent_TargetMetadata interface { - isNodeExecutionEvent_TargetMetadata() -} - -type NodeExecutionEvent_WorkflowNodeMetadata struct { - WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` -} - -type NodeExecutionEvent_TaskNodeMetadata struct { - TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,14,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` -} - -func (*NodeExecutionEvent_WorkflowNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} - -func (*NodeExecutionEvent_TaskNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} - -// For Workflow Nodes we need to send information about the workflow that's launched -type WorkflowNodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` -} - -func (x *WorkflowNodeMetadata) Reset() { - *x = WorkflowNodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkflowNodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkflowNodeMetadata) ProtoMessage() {} - -func (x *WorkflowNodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkflowNodeMetadata.ProtoReflect.Descriptor instead. -func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{2} -} - -func (x *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.ExecutionId - } - return nil -} - -type TaskNodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Captures the status of caching for this execution. - CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` - // This structure carries the catalog artifact information - CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` - // Captures the status of cache reservations for this execution. - ReservationStatus core.CatalogReservation_Status `protobuf:"varint,3,opt,name=reservation_status,json=reservationStatus,proto3,enum=flyteidl.core.CatalogReservation_Status" json:"reservation_status,omitempty"` - // The latest checkpoint location - CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` - // In the case this task launched a dynamic workflow we capture its structure here. - DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` -} - -func (x *TaskNodeMetadata) Reset() { - *x = TaskNodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskNodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskNodeMetadata) ProtoMessage() {} - -func (x *TaskNodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskNodeMetadata.ProtoReflect.Descriptor instead. -func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{3} -} - -func (x *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { - if x != nil { - return x.CacheStatus - } - return core.CatalogCacheStatus(0) -} - -func (x *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { - if x != nil { - return x.CatalogKey - } - return nil -} - -func (x *TaskNodeMetadata) GetReservationStatus() core.CatalogReservation_Status { - if x != nil { - return x.ReservationStatus - } - return core.CatalogReservation_Status(0) -} - -func (x *TaskNodeMetadata) GetCheckpointUri() string { - if x != nil { - return x.CheckpointUri - } - return "" -} - -func (x *TaskNodeMetadata) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { - if x != nil { - return x.DynamicWorkflow - } - return nil -} - -// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. -type DynamicWorkflowNodeMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // id represents the unique identifier of the workflow. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the compiled representation of the embedded dynamic workflow. - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - // required to correctly recover partially completed executions where the workflow has already been compiled. - DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` -} - -func (x *DynamicWorkflowNodeMetadata) Reset() { - *x = DynamicWorkflowNodeMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DynamicWorkflowNodeMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} - -func (x *DynamicWorkflowNodeMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DynamicWorkflowNodeMetadata.ProtoReflect.Descriptor instead. -func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{4} -} - -func (x *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { - if x != nil { - return x.Id - } - return nil -} - -func (x *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if x != nil { - return x.CompiledWorkflow - } - return nil -} - -func (x *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { - if x != nil { - return x.DynamicJobSpecUri - } - return "" -} - -type ParentTaskExecutionMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *ParentTaskExecutionMetadata) Reset() { - *x = ParentTaskExecutionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParentTaskExecutionMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParentTaskExecutionMetadata) ProtoMessage() {} - -func (x *ParentTaskExecutionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParentTaskExecutionMetadata.ProtoReflect.Descriptor instead. -func (*ParentTaskExecutionMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{5} -} - -func (x *ParentTaskExecutionMetadata) GetId() *core.TaskExecutionIdentifier { - if x != nil { - return x.Id - } - return nil -} - -type ParentNodeExecutionMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique identifier of the parent node id within the execution - // This is value of core.NodeExecutionIdentifier.node_id of the parent node - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` -} - -func (x *ParentNodeExecutionMetadata) Reset() { - *x = ParentNodeExecutionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ParentNodeExecutionMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ParentNodeExecutionMetadata) ProtoMessage() {} - -func (x *ParentNodeExecutionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ParentNodeExecutionMetadata.ProtoReflect.Descriptor instead. -func (*ParentNodeExecutionMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{6} -} - -func (x *ParentNodeExecutionMetadata) GetNodeId() string { - if x != nil { - return x.NodeId - } - return "" -} - -type EventReason struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // An explanation for this event - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - // The time this reason occurred - OccurredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` -} - -func (x *EventReason) Reset() { - *x = EventReason{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EventReason) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EventReason) ProtoMessage() {} - -func (x *EventReason) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EventReason.ProtoReflect.Descriptor instead. -func (*EventReason) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{7} -} - -func (x *EventReason) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -func (x *EventReason) GetOccurredAt() *timestamppb.Timestamp { - if x != nil { - return x.OccurredAt - } - return nil -} - -// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. -type TaskExecutionEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ID of the task. In combination with the retryAttempt this will indicate - // the task execution uniquely for a given parent node execution. - TaskId *core.Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - // A task execution is always kicked off by a node execution, the event consumer - // will use the parent_id to relate the task to it's parent node execution - ParentNodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=parent_node_execution_id,json=parentNodeExecutionId,proto3" json:"parent_node_execution_id,omitempty"` - // retry attempt number for this task, ie., 2 for the second attempt - RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` - // Phase associated with the event - Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` - // id of the process that sent this event, mainly for trace debugging - ProducerId string `protobuf:"bytes,5,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` - // log information for the task execution - Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` - // This timestamp represents when the original event occurred, it is generated - // by the executor of the task. - OccurredAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Types that are assignable to InputValue: - // - // *TaskExecutionEvent_InputUri - // *TaskExecutionEvent_InputData - InputValue isTaskExecutionEvent_InputValue `protobuf_oneof:"input_value"` - // Types that are assignable to OutputResult: - // - // *TaskExecutionEvent_OutputUri - // *TaskExecutionEvent_Error - // *TaskExecutionEvent_OutputData - OutputResult isTaskExecutionEvent_OutputResult `protobuf_oneof:"output_result"` - // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. - CustomInfo *structpb.Struct `protobuf:"bytes,11,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` - // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) - // that should be recorded regardless of the lack of phase change. - // The version field should be incremented when metadata changes across the duration of an individual phase. - PhaseVersion uint32 `protobuf:"varint,12,opt,name=phase_version,json=phaseVersion,proto3" json:"phase_version,omitempty"` - // An optional explanation for the phase transition. - // Deprecated: Use reasons instead. - // - // Deprecated: Marked as deprecated in flyteidl/event/event.proto. - Reason string `protobuf:"bytes,13,opt,name=reason,proto3" json:"reason,omitempty"` - // An optional list of explanations for the phase transition. - Reasons []*EventReason `protobuf:"bytes,21,rep,name=reasons,proto3" json:"reasons,omitempty"` - // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin - // this type will be identical, but not all task executions necessarily use pre-registered definitions and this - // type is useful to render the task in the UI, filter task executions, etc. - TaskType string `protobuf:"bytes,14,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // Metadata around how a task was executed. - Metadata *TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` - // The event version is used to indicate versioned changes in how data is reported using this - // proto message. For example, event_verison > 0 means that maps tasks report logs using the - // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - // in this message. - EventVersion int32 `protobuf:"varint,18,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` - // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s - // pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, - // but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps - // facilitates a more accurate portrayal of the evaluation time-series. - ReportedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` -} - -func (x *TaskExecutionEvent) Reset() { - *x = TaskExecutionEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionEvent) ProtoMessage() {} - -func (x *TaskExecutionEvent) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionEvent.ProtoReflect.Descriptor instead. -func (*TaskExecutionEvent) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{8} -} - -func (x *TaskExecutionEvent) GetTaskId() *core.Identifier { - if x != nil { - return x.TaskId - } - return nil -} - -func (x *TaskExecutionEvent) GetParentNodeExecutionId() *core.NodeExecutionIdentifier { - if x != nil { - return x.ParentNodeExecutionId - } - return nil -} - -func (x *TaskExecutionEvent) GetRetryAttempt() uint32 { - if x != nil { - return x.RetryAttempt - } - return 0 -} - -func (x *TaskExecutionEvent) GetPhase() core.TaskExecution_Phase { - if x != nil { - return x.Phase - } - return core.TaskExecution_Phase(0) -} - -func (x *TaskExecutionEvent) GetProducerId() string { - if x != nil { - return x.ProducerId - } - return "" -} - -func (x *TaskExecutionEvent) GetLogs() []*core.TaskLog { - if x != nil { - return x.Logs - } - return nil -} - -func (x *TaskExecutionEvent) GetOccurredAt() *timestamppb.Timestamp { - if x != nil { - return x.OccurredAt - } - return nil -} - -func (m *TaskExecutionEvent) GetInputValue() isTaskExecutionEvent_InputValue { - if m != nil { - return m.InputValue - } - return nil -} - -func (x *TaskExecutionEvent) GetInputUri() string { - if x, ok := x.GetInputValue().(*TaskExecutionEvent_InputUri); ok { - return x.InputUri - } - return "" -} - -func (x *TaskExecutionEvent) GetInputData() *core.LiteralMap { - if x, ok := x.GetInputValue().(*TaskExecutionEvent_InputData); ok { - return x.InputData - } - return nil -} - -func (m *TaskExecutionEvent) GetOutputResult() isTaskExecutionEvent_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -func (x *TaskExecutionEvent) GetOutputUri() string { - if x, ok := x.GetOutputResult().(*TaskExecutionEvent_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (x *TaskExecutionEvent) GetError() *core.ExecutionError { - if x, ok := x.GetOutputResult().(*TaskExecutionEvent_Error); ok { - return x.Error - } - return nil -} - -func (x *TaskExecutionEvent) GetOutputData() *core.LiteralMap { - if x, ok := x.GetOutputResult().(*TaskExecutionEvent_OutputData); ok { - return x.OutputData - } - return nil -} - -func (x *TaskExecutionEvent) GetCustomInfo() *structpb.Struct { - if x != nil { - return x.CustomInfo - } - return nil -} - -func (x *TaskExecutionEvent) GetPhaseVersion() uint32 { - if x != nil { - return x.PhaseVersion - } - return 0 -} - -// Deprecated: Marked as deprecated in flyteidl/event/event.proto. -func (x *TaskExecutionEvent) GetReason() string { - if x != nil { - return x.Reason - } - return "" -} - -func (x *TaskExecutionEvent) GetReasons() []*EventReason { - if x != nil { - return x.Reasons - } - return nil -} - -func (x *TaskExecutionEvent) GetTaskType() string { - if x != nil { - return x.TaskType - } - return "" -} - -func (x *TaskExecutionEvent) GetMetadata() *TaskExecutionMetadata { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *TaskExecutionEvent) GetEventVersion() int32 { - if x != nil { - return x.EventVersion - } - return 0 -} - -func (x *TaskExecutionEvent) GetReportedAt() *timestamppb.Timestamp { - if x != nil { - return x.ReportedAt - } - return nil -} - -type isTaskExecutionEvent_InputValue interface { - isTaskExecutionEvent_InputValue() -} - -type TaskExecutionEvent_InputUri struct { - // URI of the input file, it encodes all the information - // including Cloud source provider. ie., s3://... - InputUri string `protobuf:"bytes,8,opt,name=input_uri,json=inputUri,proto3,oneof"` -} - -type TaskExecutionEvent_InputData struct { - // Raw input data consumed by this task execution. - InputData *core.LiteralMap `protobuf:"bytes,19,opt,name=input_data,json=inputData,proto3,oneof"` -} - -func (*TaskExecutionEvent_InputUri) isTaskExecutionEvent_InputValue() {} - -func (*TaskExecutionEvent_InputData) isTaskExecutionEvent_InputValue() {} - -type isTaskExecutionEvent_OutputResult interface { - isTaskExecutionEvent_OutputResult() -} - -type TaskExecutionEvent_OutputUri struct { - // URI to the output of the execution, it will be in a format that encodes all the information - // including Cloud source provider. ie., s3://... - OutputUri string `protobuf:"bytes,9,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type TaskExecutionEvent_Error struct { - // Error information for the execution - Error *core.ExecutionError `protobuf:"bytes,10,opt,name=error,proto3,oneof"` -} - -type TaskExecutionEvent_OutputData struct { - // Raw output data produced by this task execution. - OutputData *core.LiteralMap `protobuf:"bytes,17,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*TaskExecutionEvent_OutputUri) isTaskExecutionEvent_OutputResult() {} - -func (*TaskExecutionEvent_Error) isTaskExecutionEvent_OutputResult() {} - -func (*TaskExecutionEvent_OutputData) isTaskExecutionEvent_OutputResult() {} - -// This message contains metadata about external resources produced or used by a specific task execution. -type ExternalResourceInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. - ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` - // A unique index for the external resource with respect to all external resources for this task. Although the - // identifier may change between task reporting events or retries, this will remain the same to enable aggregating - // information from multiple reports. - Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - // Retry attempt number for this external resource, ie., 2 for the second attempt - RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` - // Phase associated with the external resource - Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` - // Captures the status of caching for this external resource execution. - CacheStatus core.CatalogCacheStatus `protobuf:"varint,5,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` - // log information for the external resource execution - Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` -} - -func (x *ExternalResourceInfo) Reset() { - *x = ExternalResourceInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExternalResourceInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExternalResourceInfo) ProtoMessage() {} - -func (x *ExternalResourceInfo) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExternalResourceInfo.ProtoReflect.Descriptor instead. -func (*ExternalResourceInfo) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{9} -} - -func (x *ExternalResourceInfo) GetExternalId() string { - if x != nil { - return x.ExternalId - } - return "" -} - -func (x *ExternalResourceInfo) GetIndex() uint32 { - if x != nil { - return x.Index - } - return 0 -} - -func (x *ExternalResourceInfo) GetRetryAttempt() uint32 { - if x != nil { - return x.RetryAttempt - } - return 0 -} - -func (x *ExternalResourceInfo) GetPhase() core.TaskExecution_Phase { - if x != nil { - return x.Phase - } - return core.TaskExecution_Phase(0) -} - -func (x *ExternalResourceInfo) GetCacheStatus() core.CatalogCacheStatus { - if x != nil { - return x.CacheStatus - } - return core.CatalogCacheStatus(0) -} - -func (x *ExternalResourceInfo) GetLogs() []*core.TaskLog { - if x != nil { - return x.Logs - } - return nil -} - -// This message holds task execution metadata specific to resource allocation used to manage concurrent -// executions for a project namespace. -type ResourcePoolInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique resource ID used to identify this execution when allocating a token. - AllocationToken string `protobuf:"bytes,1,opt,name=allocation_token,json=allocationToken,proto3" json:"allocation_token,omitempty"` - // Namespace under which this task execution requested an allocation token. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` -} - -func (x *ResourcePoolInfo) Reset() { - *x = ResourcePoolInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ResourcePoolInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ResourcePoolInfo) ProtoMessage() {} - -func (x *ResourcePoolInfo) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ResourcePoolInfo.ProtoReflect.Descriptor instead. -func (*ResourcePoolInfo) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{10} -} - -func (x *ResourcePoolInfo) GetAllocationToken() string { - if x != nil { - return x.AllocationToken - } - return "" -} - -func (x *ResourcePoolInfo) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -// Holds metadata around how a task was executed. -// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, -// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. -// Metadata is a container for these attributes across the task execution lifecycle. -type TaskExecutionMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Unique, generated name for this task execution used by the backend. - GeneratedName string `protobuf:"bytes,1,opt,name=generated_name,json=generatedName,proto3" json:"generated_name,omitempty"` - // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. - ExternalResources []*ExternalResourceInfo `protobuf:"bytes,2,rep,name=external_resources,json=externalResources,proto3" json:"external_resources,omitempty"` - // Includes additional data on concurrent resource management used during execution.. - // This is a repeated field because a plugin can request multiple resource allocations during execution. - ResourcePoolInfo []*ResourcePoolInfo `protobuf:"bytes,3,rep,name=resource_pool_info,json=resourcePoolInfo,proto3" json:"resource_pool_info,omitempty"` - // The identifier of the plugin used to execute this task. - PluginIdentifier string `protobuf:"bytes,4,opt,name=plugin_identifier,json=pluginIdentifier,proto3" json:"plugin_identifier,omitempty"` - InstanceClass TaskExecutionMetadata_InstanceClass `protobuf:"varint,16,opt,name=instance_class,json=instanceClass,proto3,enum=flyteidl.event.TaskExecutionMetadata_InstanceClass" json:"instance_class,omitempty"` -} - -func (x *TaskExecutionMetadata) Reset() { - *x = TaskExecutionMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_event_event_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskExecutionMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskExecutionMetadata) ProtoMessage() {} - -func (x *TaskExecutionMetadata) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_event_event_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskExecutionMetadata.ProtoReflect.Descriptor instead. -func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { - return file_flyteidl_event_event_proto_rawDescGZIP(), []int{11} -} - -func (x *TaskExecutionMetadata) GetGeneratedName() string { - if x != nil { - return x.GeneratedName - } - return "" -} - -func (x *TaskExecutionMetadata) GetExternalResources() []*ExternalResourceInfo { - if x != nil { - return x.ExternalResources - } - return nil -} - -func (x *TaskExecutionMetadata) GetResourcePoolInfo() []*ResourcePoolInfo { - if x != nil { - return x.ResourcePoolInfo - } - return nil -} - -func (x *TaskExecutionMetadata) GetPluginIdentifier() string { - if x != nil { - return x.PluginIdentifier - } - return "" -} - -func (x *TaskExecutionMetadata) GetInstanceClass() TaskExecutionMetadata_InstanceClass { - if x != nil { - return x.InstanceClass - } - return TaskExecutionMetadata_DEFAULT -} - -var File_flyteidl_event_event_proto protoreflect.FileDescriptor - -var file_flyteidl_event_event_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x1c, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, - 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x03, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, - 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, - 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, - 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0b, - 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, - 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1f, 0x0a, 0x0a, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, - 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, - 0x70, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, - 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x22, 0xaa, 0x09, 0x0a, 0x12, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, - 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, - 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x5f, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x3a, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, - 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, - 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x48, 0x01, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x01, 0x52, 0x0a, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x16, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x02, - 0x52, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0e, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x48, 0x02, 0x52, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, - 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x74, - 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, - 0x70, 0x65, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, - 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x69, - 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, - 0x69, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, - 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, - 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x6b, 0x5f, - 0x75, 0x72, 0x69, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x63, 0x6b, 0x55, - 0x72, 0x69, 0x12, 0x3b, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, - 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, - 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x16, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x0d, 0x0a, 0x0b, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x65, 0x0a, - 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xf1, 0x02, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, - 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x63, - 0x68, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x3f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4b, 0x65, 0x79, - 0x12, 0x57, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, - 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x65, - 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x55, 0x72, 0x69, - 0x12, 0x56, 0x0a, 0x10, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0xce, 0x01, 0x0a, 0x1b, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x53, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, - 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, - 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x79, 0x6e, 0x61, - 0x6d, 0x69, 0x63, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x75, 0x72, 0x69, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4a, - 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x55, 0x72, 0x69, 0x22, 0x55, 0x0a, 0x1b, 0x50, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x36, 0x0a, 0x1b, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, - 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x62, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, - 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x22, 0x97, 0x08, 0x0a, - 0x12, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x5f, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x52, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x72, - 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x38, 0x0a, - 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, - 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, - 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, - 0x63, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, - 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, - 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x04, - 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, - 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, - 0x12, 0x3a, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x13, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, - 0x00, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0a, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x01, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x01, 0x52, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, - 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x01, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, - 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, - 0x70, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x68, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x1a, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x35, 0x0a, - 0x07, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x41, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x72, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9e, 0x02, 0x0a, 0x14, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, - 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, - 0x65, 0x74, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x70, - 0x68, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, - 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, - 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x6c, - 0x6f, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, - 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x22, 0x5b, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x61, - 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x22, 0x9d, 0x03, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, - 0x0a, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, - 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x12, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x5a, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x33, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x22, 0x2f, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, - 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, 0x54, 0x49, 0x42, - 0x4c, 0x45, 0x10, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0xa2, 0x02, 0x03, 0x46, 0x45, 0x58, 0xaa, 0x02, 0x0e, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0e, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0xe2, 0x02, - 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_event_event_proto_rawDescOnce sync.Once - file_flyteidl_event_event_proto_rawDescData = file_flyteidl_event_event_proto_rawDesc -) - -func file_flyteidl_event_event_proto_rawDescGZIP() []byte { - file_flyteidl_event_event_proto_rawDescOnce.Do(func() { - file_flyteidl_event_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_event_event_proto_rawDescData) - }) - return file_flyteidl_event_event_proto_rawDescData -} - -var file_flyteidl_event_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_event_event_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_flyteidl_event_event_proto_goTypes = []interface{}{ - (TaskExecutionMetadata_InstanceClass)(0), // 0: flyteidl.event.TaskExecutionMetadata.InstanceClass - (*WorkflowExecutionEvent)(nil), // 1: flyteidl.event.WorkflowExecutionEvent - (*NodeExecutionEvent)(nil), // 2: flyteidl.event.NodeExecutionEvent - (*WorkflowNodeMetadata)(nil), // 3: flyteidl.event.WorkflowNodeMetadata - (*TaskNodeMetadata)(nil), // 4: flyteidl.event.TaskNodeMetadata - (*DynamicWorkflowNodeMetadata)(nil), // 5: flyteidl.event.DynamicWorkflowNodeMetadata - (*ParentTaskExecutionMetadata)(nil), // 6: flyteidl.event.ParentTaskExecutionMetadata - (*ParentNodeExecutionMetadata)(nil), // 7: flyteidl.event.ParentNodeExecutionMetadata - (*EventReason)(nil), // 8: flyteidl.event.EventReason - (*TaskExecutionEvent)(nil), // 9: flyteidl.event.TaskExecutionEvent - (*ExternalResourceInfo)(nil), // 10: flyteidl.event.ExternalResourceInfo - (*ResourcePoolInfo)(nil), // 11: flyteidl.event.ResourcePoolInfo - (*TaskExecutionMetadata)(nil), // 12: flyteidl.event.TaskExecutionMetadata - (*core.WorkflowExecutionIdentifier)(nil), // 13: flyteidl.core.WorkflowExecutionIdentifier - (core.WorkflowExecution_Phase)(0), // 14: flyteidl.core.WorkflowExecution.Phase - (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp - (*core.ExecutionError)(nil), // 16: flyteidl.core.ExecutionError - (*core.LiteralMap)(nil), // 17: flyteidl.core.LiteralMap - (*core.NodeExecutionIdentifier)(nil), // 18: flyteidl.core.NodeExecutionIdentifier - (core.NodeExecution_Phase)(0), // 19: flyteidl.core.NodeExecution.Phase - (core.CatalogCacheStatus)(0), // 20: flyteidl.core.CatalogCacheStatus - (*core.CatalogMetadata)(nil), // 21: flyteidl.core.CatalogMetadata - (core.CatalogReservation_Status)(0), // 22: flyteidl.core.CatalogReservation.Status - (*core.Identifier)(nil), // 23: flyteidl.core.Identifier - (*core.CompiledWorkflowClosure)(nil), // 24: flyteidl.core.CompiledWorkflowClosure - (*core.TaskExecutionIdentifier)(nil), // 25: flyteidl.core.TaskExecutionIdentifier - (core.TaskExecution_Phase)(0), // 26: flyteidl.core.TaskExecution.Phase - (*core.TaskLog)(nil), // 27: flyteidl.core.TaskLog - (*structpb.Struct)(nil), // 28: google.protobuf.Struct -} -var file_flyteidl_event_event_proto_depIdxs = []int32{ - 13, // 0: flyteidl.event.WorkflowExecutionEvent.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 14, // 1: flyteidl.event.WorkflowExecutionEvent.phase:type_name -> flyteidl.core.WorkflowExecution.Phase - 15, // 2: flyteidl.event.WorkflowExecutionEvent.occurred_at:type_name -> google.protobuf.Timestamp - 16, // 3: flyteidl.event.WorkflowExecutionEvent.error:type_name -> flyteidl.core.ExecutionError - 17, // 4: flyteidl.event.WorkflowExecutionEvent.output_data:type_name -> flyteidl.core.LiteralMap - 18, // 5: flyteidl.event.NodeExecutionEvent.id:type_name -> flyteidl.core.NodeExecutionIdentifier - 19, // 6: flyteidl.event.NodeExecutionEvent.phase:type_name -> flyteidl.core.NodeExecution.Phase - 15, // 7: flyteidl.event.NodeExecutionEvent.occurred_at:type_name -> google.protobuf.Timestamp - 17, // 8: flyteidl.event.NodeExecutionEvent.input_data:type_name -> flyteidl.core.LiteralMap - 16, // 9: flyteidl.event.NodeExecutionEvent.error:type_name -> flyteidl.core.ExecutionError - 17, // 10: flyteidl.event.NodeExecutionEvent.output_data:type_name -> flyteidl.core.LiteralMap - 3, // 11: flyteidl.event.NodeExecutionEvent.workflow_node_metadata:type_name -> flyteidl.event.WorkflowNodeMetadata - 4, // 12: flyteidl.event.NodeExecutionEvent.task_node_metadata:type_name -> flyteidl.event.TaskNodeMetadata - 6, // 13: flyteidl.event.NodeExecutionEvent.parent_task_metadata:type_name -> flyteidl.event.ParentTaskExecutionMetadata - 7, // 14: flyteidl.event.NodeExecutionEvent.parent_node_metadata:type_name -> flyteidl.event.ParentNodeExecutionMetadata - 15, // 15: flyteidl.event.NodeExecutionEvent.reported_at:type_name -> google.protobuf.Timestamp - 13, // 16: flyteidl.event.WorkflowNodeMetadata.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 20, // 17: flyteidl.event.TaskNodeMetadata.cache_status:type_name -> flyteidl.core.CatalogCacheStatus - 21, // 18: flyteidl.event.TaskNodeMetadata.catalog_key:type_name -> flyteidl.core.CatalogMetadata - 22, // 19: flyteidl.event.TaskNodeMetadata.reservation_status:type_name -> flyteidl.core.CatalogReservation.Status - 5, // 20: flyteidl.event.TaskNodeMetadata.dynamic_workflow:type_name -> flyteidl.event.DynamicWorkflowNodeMetadata - 23, // 21: flyteidl.event.DynamicWorkflowNodeMetadata.id:type_name -> flyteidl.core.Identifier - 24, // 22: flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure - 25, // 23: flyteidl.event.ParentTaskExecutionMetadata.id:type_name -> flyteidl.core.TaskExecutionIdentifier - 15, // 24: flyteidl.event.EventReason.occurred_at:type_name -> google.protobuf.Timestamp - 23, // 25: flyteidl.event.TaskExecutionEvent.task_id:type_name -> flyteidl.core.Identifier - 18, // 26: flyteidl.event.TaskExecutionEvent.parent_node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier - 26, // 27: flyteidl.event.TaskExecutionEvent.phase:type_name -> flyteidl.core.TaskExecution.Phase - 27, // 28: flyteidl.event.TaskExecutionEvent.logs:type_name -> flyteidl.core.TaskLog - 15, // 29: flyteidl.event.TaskExecutionEvent.occurred_at:type_name -> google.protobuf.Timestamp - 17, // 30: flyteidl.event.TaskExecutionEvent.input_data:type_name -> flyteidl.core.LiteralMap - 16, // 31: flyteidl.event.TaskExecutionEvent.error:type_name -> flyteidl.core.ExecutionError - 17, // 32: flyteidl.event.TaskExecutionEvent.output_data:type_name -> flyteidl.core.LiteralMap - 28, // 33: flyteidl.event.TaskExecutionEvent.custom_info:type_name -> google.protobuf.Struct - 8, // 34: flyteidl.event.TaskExecutionEvent.reasons:type_name -> flyteidl.event.EventReason - 12, // 35: flyteidl.event.TaskExecutionEvent.metadata:type_name -> flyteidl.event.TaskExecutionMetadata - 15, // 36: flyteidl.event.TaskExecutionEvent.reported_at:type_name -> google.protobuf.Timestamp - 26, // 37: flyteidl.event.ExternalResourceInfo.phase:type_name -> flyteidl.core.TaskExecution.Phase - 20, // 38: flyteidl.event.ExternalResourceInfo.cache_status:type_name -> flyteidl.core.CatalogCacheStatus - 27, // 39: flyteidl.event.ExternalResourceInfo.logs:type_name -> flyteidl.core.TaskLog - 10, // 40: flyteidl.event.TaskExecutionMetadata.external_resources:type_name -> flyteidl.event.ExternalResourceInfo - 11, // 41: flyteidl.event.TaskExecutionMetadata.resource_pool_info:type_name -> flyteidl.event.ResourcePoolInfo - 0, // 42: flyteidl.event.TaskExecutionMetadata.instance_class:type_name -> flyteidl.event.TaskExecutionMetadata.InstanceClass - 43, // [43:43] is the sub-list for method output_type - 43, // [43:43] is the sub-list for method input_type - 43, // [43:43] is the sub-list for extension type_name - 43, // [43:43] is the sub-list for extension extendee - 0, // [0:43] is the sub-list for field type_name -} - -func init() { file_flyteidl_event_event_proto_init() } -func file_flyteidl_event_event_proto_init() { - if File_flyteidl_event_event_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_event_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowExecutionEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeExecutionEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkflowNodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskNodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DynamicWorkflowNodeMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParentTaskExecutionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ParentNodeExecutionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventReason); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalResourceInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourcePoolInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_event_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskExecutionMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_event_event_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*WorkflowExecutionEvent_OutputUri)(nil), - (*WorkflowExecutionEvent_Error)(nil), - (*WorkflowExecutionEvent_OutputData)(nil), - } - file_flyteidl_event_event_proto_msgTypes[1].OneofWrappers = []interface{}{ - (*NodeExecutionEvent_InputUri)(nil), - (*NodeExecutionEvent_InputData)(nil), - (*NodeExecutionEvent_OutputUri)(nil), - (*NodeExecutionEvent_Error)(nil), - (*NodeExecutionEvent_OutputData)(nil), - (*NodeExecutionEvent_WorkflowNodeMetadata)(nil), - (*NodeExecutionEvent_TaskNodeMetadata)(nil), - } - file_flyteidl_event_event_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*TaskExecutionEvent_InputUri)(nil), - (*TaskExecutionEvent_InputData)(nil), - (*TaskExecutionEvent_OutputUri)(nil), - (*TaskExecutionEvent_Error)(nil), - (*TaskExecutionEvent_OutputData)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_event_event_proto_rawDesc, - NumEnums: 1, - NumMessages: 12, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_event_event_proto_goTypes, - DependencyIndexes: file_flyteidl_event_event_proto_depIdxs, - EnumInfos: file_flyteidl_event_event_proto_enumTypes, - MessageInfos: file_flyteidl_event_event_proto_msgTypes, - }.Build() - File_flyteidl_event_event_proto = out.File - file_flyteidl_event_event_proto_rawDesc = nil - file_flyteidl_event_event_proto_goTypes = nil - file_flyteidl_event_event_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go deleted file mode 100644 index 7280d51546..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go +++ /dev/null @@ -1,230 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/array_job.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component -// will be executed concurrently. -type ArrayJob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an - // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently - // running instances might be more. This has to be a positive number if assigned. Default value is size. - Parallelism int64 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` - // Defines the number of instances to launch at most. This number should match the size of the input if the job - // requires processing of all input data. This has to be a positive number. - // In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - // Types that are assignable to SuccessCriteria: - // - // *ArrayJob_MinSuccesses - // *ArrayJob_MinSuccessRatio - SuccessCriteria isArrayJob_SuccessCriteria `protobuf_oneof:"success_criteria"` -} - -func (x *ArrayJob) Reset() { - *x = ArrayJob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_array_job_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ArrayJob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ArrayJob) ProtoMessage() {} - -func (x *ArrayJob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_array_job_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ArrayJob.ProtoReflect.Descriptor instead. -func (*ArrayJob) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_array_job_proto_rawDescGZIP(), []int{0} -} - -func (x *ArrayJob) GetParallelism() int64 { - if x != nil { - return x.Parallelism - } - return 0 -} - -func (x *ArrayJob) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (m *ArrayJob) GetSuccessCriteria() isArrayJob_SuccessCriteria { - if m != nil { - return m.SuccessCriteria - } - return nil -} - -func (x *ArrayJob) GetMinSuccesses() int64 { - if x, ok := x.GetSuccessCriteria().(*ArrayJob_MinSuccesses); ok { - return x.MinSuccesses - } - return 0 -} - -func (x *ArrayJob) GetMinSuccessRatio() float32 { - if x, ok := x.GetSuccessCriteria().(*ArrayJob_MinSuccessRatio); ok { - return x.MinSuccessRatio - } - return 0 -} - -type isArrayJob_SuccessCriteria interface { - isArrayJob_SuccessCriteria() -} - -type ArrayJob_MinSuccesses struct { - // An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, - // the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if - // assigned. Default value is size (if specified). - MinSuccesses int64 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` -} - -type ArrayJob_MinSuccessRatio struct { - // If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array - // job can be marked successful. - MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` -} - -func (*ArrayJob_MinSuccesses) isArrayJob_SuccessCriteria() {} - -func (*ArrayJob_MinSuccessRatio) isArrayJob_SuccessCriteria() {} - -var File_flyteidl_plugins_array_job_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_array_job_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x08, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4a, 0x6f, - 0x62, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, - 0x69, 0x73, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x73, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, - 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2c, - 0x0a, 0x11, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x69, 0x6e, - 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x42, 0x12, 0x0a, 0x10, - 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, - 0x42, 0xc5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0d, 0x41, 0x72, 0x72, 0x61, 0x79, - 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, - 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, - 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_array_job_proto_rawDescOnce sync.Once - file_flyteidl_plugins_array_job_proto_rawDescData = file_flyteidl_plugins_array_job_proto_rawDesc -) - -func file_flyteidl_plugins_array_job_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_array_job_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_array_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_array_job_proto_rawDescData) - }) - return file_flyteidl_plugins_array_job_proto_rawDescData -} - -var file_flyteidl_plugins_array_job_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_plugins_array_job_proto_goTypes = []interface{}{ - (*ArrayJob)(nil), // 0: flyteidl.plugins.ArrayJob -} -var file_flyteidl_plugins_array_job_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_array_job_proto_init() } -func file_flyteidl_plugins_array_job_proto_init() { - if File_flyteidl_plugins_array_job_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_array_job_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ArrayJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_plugins_array_job_proto_msgTypes[0].OneofWrappers = []interface{}{ - (*ArrayJob_MinSuccesses)(nil), - (*ArrayJob_MinSuccessRatio)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_array_job_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_array_job_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_array_job_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_array_job_proto_msgTypes, - }.Build() - File_flyteidl_plugins_array_job_proto = out.File - file_flyteidl_plugins_array_job_proto_rawDesc = nil - file_flyteidl_plugins_array_job_proto_goTypes = nil - file_flyteidl_plugins_array_job_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go deleted file mode 100644 index f23ea88f64..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go +++ /dev/null @@ -1,348 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/dask.proto - -package plugins - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Custom Proto for Dask Plugin. -type DaskJob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Spec for the scheduler pod. - Scheduler *DaskScheduler `protobuf:"bytes,1,opt,name=scheduler,proto3" json:"scheduler,omitempty"` - // Spec of the default worker group. - Workers *DaskWorkerGroup `protobuf:"bytes,2,opt,name=workers,proto3" json:"workers,omitempty"` -} - -func (x *DaskJob) Reset() { - *x = DaskJob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_dask_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DaskJob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DaskJob) ProtoMessage() {} - -func (x *DaskJob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_dask_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DaskJob.ProtoReflect.Descriptor instead. -func (*DaskJob) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_dask_proto_rawDescGZIP(), []int{0} -} - -func (x *DaskJob) GetScheduler() *DaskScheduler { - if x != nil { - return x.Scheduler - } - return nil -} - -func (x *DaskJob) GetWorkers() *DaskWorkerGroup { - if x != nil { - return x.Workers - } - return nil -} - -// Specification for the scheduler pod. -type DaskScheduler struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional image to use. If unset, will use the default image. - Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - // Resources assigned to the scheduler pod. - Resources *core.Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` -} - -func (x *DaskScheduler) Reset() { - *x = DaskScheduler{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_dask_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DaskScheduler) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DaskScheduler) ProtoMessage() {} - -func (x *DaskScheduler) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_dask_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DaskScheduler.ProtoReflect.Descriptor instead. -func (*DaskScheduler) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_dask_proto_rawDescGZIP(), []int{1} -} - -func (x *DaskScheduler) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *DaskScheduler) GetResources() *core.Resources { - if x != nil { - return x.Resources - } - return nil -} - -type DaskWorkerGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Number of workers in the group. - NumberOfWorkers uint32 `protobuf:"varint,1,opt,name=number_of_workers,json=numberOfWorkers,proto3" json:"number_of_workers,omitempty"` - // Optional image to use for the pods of the worker group. If unset, will use the default image. - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources assigned to the all pods of the worker group. - // As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices - // it is advised to only set limits. If requests are not explicitly set, the plugin will make - // sure to set requests==limits. - // The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` -} - -func (x *DaskWorkerGroup) Reset() { - *x = DaskWorkerGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_dask_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DaskWorkerGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DaskWorkerGroup) ProtoMessage() {} - -func (x *DaskWorkerGroup) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_dask_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DaskWorkerGroup.ProtoReflect.Descriptor instead. -func (*DaskWorkerGroup) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_dask_proto_rawDescGZIP(), []int{2} -} - -func (x *DaskWorkerGroup) GetNumberOfWorkers() uint32 { - if x != nil { - return x.NumberOfWorkers - } - return 0 -} - -func (x *DaskWorkerGroup) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *DaskWorkerGroup) GetResources() *core.Resources { - if x != nil { - return x.Resources - } - return nil -} - -var File_flyteidl_plugins_dask_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_dask_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x64, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x1a, - 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, - 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x07, 0x44, - 0x61, 0x73, 0x6b, 0x4a, 0x6f, 0x62, 0x12, 0x3d, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, - 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x44, 0x61, 0x73, - 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, - 0x64, 0x75, 0x6c, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x44, 0x61, 0x73, 0x6b, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x73, 0x22, 0x5d, 0x0a, 0x0d, 0x44, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, - 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x44, 0x61, 0x73, 0x6b, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a, 0x0a, 0x11, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, - 0x6f, 0x66, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x0f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, - 0xc1, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x09, 0x44, 0x61, 0x73, 0x6b, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, - 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_dask_proto_rawDescOnce sync.Once - file_flyteidl_plugins_dask_proto_rawDescData = file_flyteidl_plugins_dask_proto_rawDesc -) - -func file_flyteidl_plugins_dask_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_dask_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_dask_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_dask_proto_rawDescData) - }) - return file_flyteidl_plugins_dask_proto_rawDescData -} - -var file_flyteidl_plugins_dask_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_flyteidl_plugins_dask_proto_goTypes = []interface{}{ - (*DaskJob)(nil), // 0: flyteidl.plugins.DaskJob - (*DaskScheduler)(nil), // 1: flyteidl.plugins.DaskScheduler - (*DaskWorkerGroup)(nil), // 2: flyteidl.plugins.DaskWorkerGroup - (*core.Resources)(nil), // 3: flyteidl.core.Resources -} -var file_flyteidl_plugins_dask_proto_depIdxs = []int32{ - 1, // 0: flyteidl.plugins.DaskJob.scheduler:type_name -> flyteidl.plugins.DaskScheduler - 2, // 1: flyteidl.plugins.DaskJob.workers:type_name -> flyteidl.plugins.DaskWorkerGroup - 3, // 2: flyteidl.plugins.DaskScheduler.resources:type_name -> flyteidl.core.Resources - 3, // 3: flyteidl.plugins.DaskWorkerGroup.resources:type_name -> flyteidl.core.Resources - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_dask_proto_init() } -func file_flyteidl_plugins_dask_proto_init() { - if File_flyteidl_plugins_dask_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_dask_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DaskJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_dask_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DaskScheduler); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_dask_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DaskWorkerGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_dask_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_dask_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_dask_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_dask_proto_msgTypes, - }.Build() - File_flyteidl_plugins_dask_proto = out.File - file_flyteidl_plugins_dask_proto_rawDesc = nil - file_flyteidl_plugins_dask_proto_goTypes = nil - file_flyteidl_plugins_dask_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go deleted file mode 100644 index ba03051e1e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go +++ /dev/null @@ -1,317 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/kubeflow/common.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type RestartPolicy int32 - -const ( - RestartPolicy_RESTART_POLICY_NEVER RestartPolicy = 0 - RestartPolicy_RESTART_POLICY_ON_FAILURE RestartPolicy = 1 - RestartPolicy_RESTART_POLICY_ALWAYS RestartPolicy = 2 -) - -// Enum value maps for RestartPolicy. -var ( - RestartPolicy_name = map[int32]string{ - 0: "RESTART_POLICY_NEVER", - 1: "RESTART_POLICY_ON_FAILURE", - 2: "RESTART_POLICY_ALWAYS", - } - RestartPolicy_value = map[string]int32{ - "RESTART_POLICY_NEVER": 0, - "RESTART_POLICY_ON_FAILURE": 1, - "RESTART_POLICY_ALWAYS": 2, - } -) - -func (x RestartPolicy) Enum() *RestartPolicy { - p := new(RestartPolicy) - *p = x - return p -} - -func (x RestartPolicy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (RestartPolicy) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_plugins_kubeflow_common_proto_enumTypes[0].Descriptor() -} - -func (RestartPolicy) Type() protoreflect.EnumType { - return &file_flyteidl_plugins_kubeflow_common_proto_enumTypes[0] -} - -func (x RestartPolicy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use RestartPolicy.Descriptor instead. -func (RestartPolicy) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP(), []int{0} -} - -type CleanPodPolicy int32 - -const ( - CleanPodPolicy_CLEANPOD_POLICY_NONE CleanPodPolicy = 0 - CleanPodPolicy_CLEANPOD_POLICY_RUNNING CleanPodPolicy = 1 - CleanPodPolicy_CLEANPOD_POLICY_ALL CleanPodPolicy = 2 -) - -// Enum value maps for CleanPodPolicy. -var ( - CleanPodPolicy_name = map[int32]string{ - 0: "CLEANPOD_POLICY_NONE", - 1: "CLEANPOD_POLICY_RUNNING", - 2: "CLEANPOD_POLICY_ALL", - } - CleanPodPolicy_value = map[string]int32{ - "CLEANPOD_POLICY_NONE": 0, - "CLEANPOD_POLICY_RUNNING": 1, - "CLEANPOD_POLICY_ALL": 2, - } -) - -func (x CleanPodPolicy) Enum() *CleanPodPolicy { - p := new(CleanPodPolicy) - *p = x - return p -} - -func (x CleanPodPolicy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CleanPodPolicy) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_plugins_kubeflow_common_proto_enumTypes[1].Descriptor() -} - -func (CleanPodPolicy) Type() protoreflect.EnumType { - return &file_flyteidl_plugins_kubeflow_common_proto_enumTypes[1] -} - -func (x CleanPodPolicy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CleanPodPolicy.Descriptor instead. -func (CleanPodPolicy) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP(), []int{1} -} - -type RunPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines the policy to kill pods after the job completes. Default to None. - CleanPodPolicy CleanPodPolicy `protobuf:"varint,1,opt,name=clean_pod_policy,json=cleanPodPolicy,proto3,enum=flyteidl.plugins.kubeflow.CleanPodPolicy" json:"clean_pod_policy,omitempty"` - // TTL to clean up jobs. Default to infinite. - TtlSecondsAfterFinished int32 `protobuf:"varint,2,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` - // Specifies the duration in seconds relative to the startTime that the job may be active - // before the system tries to terminate it; value must be positive integer. - ActiveDeadlineSeconds int32 `protobuf:"varint,3,opt,name=active_deadline_seconds,json=activeDeadlineSeconds,proto3" json:"active_deadline_seconds,omitempty"` - // Number of retries before marking this job failed. - BackoffLimit int32 `protobuf:"varint,4,opt,name=backoff_limit,json=backoffLimit,proto3" json:"backoff_limit,omitempty"` -} - -func (x *RunPolicy) Reset() { - *x = RunPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RunPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RunPolicy) ProtoMessage() {} - -func (x *RunPolicy) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_common_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RunPolicy.ProtoReflect.Descriptor instead. -func (*RunPolicy) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP(), []int{0} -} - -func (x *RunPolicy) GetCleanPodPolicy() CleanPodPolicy { - if x != nil { - return x.CleanPodPolicy - } - return CleanPodPolicy_CLEANPOD_POLICY_NONE -} - -func (x *RunPolicy) GetTtlSecondsAfterFinished() int32 { - if x != nil { - return x.TtlSecondsAfterFinished - } - return 0 -} - -func (x *RunPolicy) GetActiveDeadlineSeconds() int32 { - if x != nil { - return x.ActiveDeadlineSeconds - } - return 0 -} - -func (x *RunPolicy) GetBackoffLimit() int32 { - if x != nil { - return x.BackoffLimit - } - return 0 -} - -var File_flyteidl_plugins_kubeflow_common_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_kubeflow_common_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, - 0x6c, 0x6f, 0x77, 0x22, 0xfa, 0x01, 0x0a, 0x09, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x53, 0x0a, 0x10, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x64, 0x5f, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, - 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x6f, 0x64, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x6f, 0x64, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x1a, 0x74, 0x74, 0x6c, 0x5f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6e, 0x69, - 0x73, 0x68, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x74, 0x74, 0x6c, 0x53, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x46, 0x69, 0x6e, 0x69, 0x73, - 0x68, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x65, - 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x61, 0x64, - 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, - 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4c, 0x69, 0x6d, 0x69, 0x74, - 0x2a, 0x63, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, - 0x49, 0x43, 0x59, 0x5f, 0x4e, 0x45, 0x56, 0x45, 0x52, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x52, - 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x4f, 0x4e, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, - 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x41, 0x4c, 0x57, - 0x41, 0x59, 0x53, 0x10, 0x02, 0x2a, 0x60, 0x0a, 0x0e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x6f, - 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4c, 0x45, 0x41, 0x4e, - 0x50, 0x4f, 0x44, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, - 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4c, 0x45, 0x41, 0x4e, 0x50, 0x4f, 0x44, 0x5f, 0x50, 0x4f, - 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x17, - 0x0a, 0x13, 0x43, 0x4c, 0x45, 0x41, 0x4e, 0x50, 0x4f, 0x44, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, - 0x59, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x02, 0x42, 0xf1, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, - 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xe2, 0x02, 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, - 0x77, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x3a, 0x3a, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_kubeflow_common_proto_rawDescOnce sync.Once - file_flyteidl_plugins_kubeflow_common_proto_rawDescData = file_flyteidl_plugins_kubeflow_common_proto_rawDesc -) - -func file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_kubeflow_common_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_kubeflow_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_common_proto_rawDescData) - }) - return file_flyteidl_plugins_kubeflow_common_proto_rawDescData -} - -var file_flyteidl_plugins_kubeflow_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_flyteidl_plugins_kubeflow_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_plugins_kubeflow_common_proto_goTypes = []interface{}{ - (RestartPolicy)(0), // 0: flyteidl.plugins.kubeflow.RestartPolicy - (CleanPodPolicy)(0), // 1: flyteidl.plugins.kubeflow.CleanPodPolicy - (*RunPolicy)(nil), // 2: flyteidl.plugins.kubeflow.RunPolicy -} -var file_flyteidl_plugins_kubeflow_common_proto_depIdxs = []int32{ - 1, // 0: flyteidl.plugins.kubeflow.RunPolicy.clean_pod_policy:type_name -> flyteidl.plugins.kubeflow.CleanPodPolicy - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_kubeflow_common_proto_init() } -func file_flyteidl_plugins_kubeflow_common_proto_init() { - if File_flyteidl_plugins_kubeflow_common_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_kubeflow_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_kubeflow_common_proto_rawDesc, - NumEnums: 2, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_kubeflow_common_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_kubeflow_common_proto_depIdxs, - EnumInfos: file_flyteidl_plugins_kubeflow_common_proto_enumTypes, - MessageInfos: file_flyteidl_plugins_kubeflow_common_proto_msgTypes, - }.Build() - File_flyteidl_plugins_kubeflow_common_proto = out.File - file_flyteidl_plugins_kubeflow_common_proto_rawDesc = nil - file_flyteidl_plugins_kubeflow_common_proto_goTypes = nil - file_flyteidl_plugins_kubeflow_common_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go deleted file mode 100644 index 4dcea4912a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go +++ /dev/null @@ -1,336 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/kubeflow/mpi.proto - -package plugins - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator -type DistributedMPITrainingTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Worker replicas spec - WorkerReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` - // Master replicas spec - LauncherReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,2,opt,name=launcher_replicas,json=launcherReplicas,proto3" json:"launcher_replicas,omitempty"` - // RunPolicy encapsulates various runtime policies of the distributed training - // job, for example how to clean up resources and how long the job can stay - // active. - RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` - // Number of slots per worker - Slots int32 `protobuf:"varint,4,opt,name=slots,proto3" json:"slots,omitempty"` -} - -func (x *DistributedMPITrainingTask) Reset() { - *x = DistributedMPITrainingTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedMPITrainingTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedMPITrainingTask) ProtoMessage() {} - -func (x *DistributedMPITrainingTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedMPITrainingTask.ProtoReflect.Descriptor instead. -func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_mpi_proto_rawDescGZIP(), []int{0} -} - -func (x *DistributedMPITrainingTask) GetWorkerReplicas() *DistributedMPITrainingReplicaSpec { - if x != nil { - return x.WorkerReplicas - } - return nil -} - -func (x *DistributedMPITrainingTask) GetLauncherReplicas() *DistributedMPITrainingReplicaSpec { - if x != nil { - return x.LauncherReplicas - } - return nil -} - -func (x *DistributedMPITrainingTask) GetRunPolicy() *RunPolicy { - if x != nil { - return x.RunPolicy - } - return nil -} - -func (x *DistributedMPITrainingTask) GetSlots() int32 { - if x != nil { - return x.Slots - } - return 0 -} - -// Replica specification for distributed MPI training -type DistributedMPITrainingReplicaSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Number of replicas - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Image used for the replica group - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources required for the replica group - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - // Restart policy determines whether pods will be restarted when they exit - RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` - // MPI sometimes requires different command set for different replica groups - Command []string `protobuf:"bytes,5,rep,name=command,proto3" json:"command,omitempty"` -} - -func (x *DistributedMPITrainingReplicaSpec) Reset() { - *x = DistributedMPITrainingReplicaSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedMPITrainingReplicaSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedMPITrainingReplicaSpec) ProtoMessage() {} - -func (x *DistributedMPITrainingReplicaSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedMPITrainingReplicaSpec.ProtoReflect.Descriptor instead. -func (*DistributedMPITrainingReplicaSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_mpi_proto_rawDescGZIP(), []int{1} -} - -func (x *DistributedMPITrainingReplicaSpec) GetReplicas() int32 { - if x != nil { - return x.Replicas - } - return 0 -} - -func (x *DistributedMPITrainingReplicaSpec) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *DistributedMPITrainingReplicaSpec) GetResources() *core.Resources { - if x != nil { - return x.Resources - } - return nil -} - -func (x *DistributedMPITrainingReplicaSpec) GetRestartPolicy() RestartPolicy { - if x != nil { - return x.RestartPolicy - } - return RestartPolicy_RESTART_POLICY_NEVER -} - -func (x *DistributedMPITrainingReplicaSpec) GetCommand() []string { - if x != nil { - return x.Command - } - return nil -} - -var File_flyteidl_plugins_kubeflow_mpi_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x6d, 0x70, 0x69, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, - 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x6b, 0x75, - 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x02, 0x0a, 0x1a, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x64, 0x4d, 0x50, 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x65, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, - 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x64, 0x4d, 0x50, 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x69, 0x0a, 0x11, 0x6c, 0x61, 0x75, - 0x6e, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x4d, 0x50, 0x49, 0x54, - 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, - 0x65, 0x63, 0x52, 0x10, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x75, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, - 0x72, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x6c, 0x6f, - 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x22, - 0xf8, 0x01, 0x0a, 0x21, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x4d, - 0x50, 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, - 0x4f, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0xee, 0x01, 0x0a, 0x1d, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x42, 0x08, 0x4d, 0x70, - 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, - 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xe2, 0x02, 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, - 0x77, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x3a, 0x3a, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_kubeflow_mpi_proto_rawDescOnce sync.Once - file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData = file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc -) - -func file_flyteidl_plugins_kubeflow_mpi_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_kubeflow_mpi_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData) - }) - return file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData -} - -var file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_flyteidl_plugins_kubeflow_mpi_proto_goTypes = []interface{}{ - (*DistributedMPITrainingTask)(nil), // 0: flyteidl.plugins.kubeflow.DistributedMPITrainingTask - (*DistributedMPITrainingReplicaSpec)(nil), // 1: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec - (*RunPolicy)(nil), // 2: flyteidl.plugins.kubeflow.RunPolicy - (*core.Resources)(nil), // 3: flyteidl.core.Resources - (RestartPolicy)(0), // 4: flyteidl.plugins.kubeflow.RestartPolicy -} -var file_flyteidl_plugins_kubeflow_mpi_proto_depIdxs = []int32{ - 1, // 0: flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec - 1, // 1: flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec - 2, // 2: flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy:type_name -> flyteidl.plugins.kubeflow.RunPolicy - 3, // 3: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources:type_name -> flyteidl.core.Resources - 4, // 4: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.restart_policy:type_name -> flyteidl.plugins.kubeflow.RestartPolicy - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_kubeflow_mpi_proto_init() } -func file_flyteidl_plugins_kubeflow_mpi_proto_init() { - if File_flyteidl_plugins_kubeflow_mpi_proto != nil { - return - } - file_flyteidl_plugins_kubeflow_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedMPITrainingTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedMPITrainingReplicaSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_kubeflow_mpi_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_kubeflow_mpi_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes, - }.Build() - File_flyteidl_plugins_kubeflow_mpi_proto = out.File - file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc = nil - file_flyteidl_plugins_kubeflow_mpi_proto_goTypes = nil - file_flyteidl_plugins_kubeflow_mpi_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go deleted file mode 100644 index 4dbabf4ae3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go +++ /dev/null @@ -1,436 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/kubeflow/pytorch.proto - -package plugins - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Custom proto for torch elastic config for distributed training using -// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go -type ElasticConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` - MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` - MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` - NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` - MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` -} - -func (x *ElasticConfig) Reset() { - *x = ElasticConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ElasticConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ElasticConfig) ProtoMessage() {} - -func (x *ElasticConfig) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ElasticConfig.ProtoReflect.Descriptor instead. -func (*ElasticConfig) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP(), []int{0} -} - -func (x *ElasticConfig) GetRdzvBackend() string { - if x != nil { - return x.RdzvBackend - } - return "" -} - -func (x *ElasticConfig) GetMinReplicas() int32 { - if x != nil { - return x.MinReplicas - } - return 0 -} - -func (x *ElasticConfig) GetMaxReplicas() int32 { - if x != nil { - return x.MaxReplicas - } - return 0 -} - -func (x *ElasticConfig) GetNprocPerNode() int32 { - if x != nil { - return x.NprocPerNode - } - return 0 -} - -func (x *ElasticConfig) GetMaxRestarts() int32 { - if x != nil { - return x.MaxRestarts - } - return 0 -} - -// Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator -type DistributedPyTorchTrainingTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Worker replicas spec - WorkerReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` - // Master replicas spec, master replicas can only have 1 replica - MasterReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,2,opt,name=master_replicas,json=masterReplicas,proto3" json:"master_replicas,omitempty"` - // RunPolicy encapsulates various runtime policies of the distributed training - // job, for example how to clean up resources and how long the job can stay - // active. - RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` - // config for an elastic pytorch job - ElasticConfig *ElasticConfig `protobuf:"bytes,4,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` -} - -func (x *DistributedPyTorchTrainingTask) Reset() { - *x = DistributedPyTorchTrainingTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedPyTorchTrainingTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedPyTorchTrainingTask) ProtoMessage() {} - -func (x *DistributedPyTorchTrainingTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedPyTorchTrainingTask.ProtoReflect.Descriptor instead. -func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP(), []int{1} -} - -func (x *DistributedPyTorchTrainingTask) GetWorkerReplicas() *DistributedPyTorchTrainingReplicaSpec { - if x != nil { - return x.WorkerReplicas - } - return nil -} - -func (x *DistributedPyTorchTrainingTask) GetMasterReplicas() *DistributedPyTorchTrainingReplicaSpec { - if x != nil { - return x.MasterReplicas - } - return nil -} - -func (x *DistributedPyTorchTrainingTask) GetRunPolicy() *RunPolicy { - if x != nil { - return x.RunPolicy - } - return nil -} - -func (x *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { - if x != nil { - return x.ElasticConfig - } - return nil -} - -type DistributedPyTorchTrainingReplicaSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Number of replicas - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Image used for the replica group - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources required for the replica group - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - // RestartPolicy determines whether pods will be restarted when they exit - RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` -} - -func (x *DistributedPyTorchTrainingReplicaSpec) Reset() { - *x = DistributedPyTorchTrainingReplicaSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedPyTorchTrainingReplicaSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedPyTorchTrainingReplicaSpec) ProtoMessage() {} - -func (x *DistributedPyTorchTrainingReplicaSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedPyTorchTrainingReplicaSpec.ProtoReflect.Descriptor instead. -func (*DistributedPyTorchTrainingReplicaSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP(), []int{2} -} - -func (x *DistributedPyTorchTrainingReplicaSpec) GetReplicas() int32 { - if x != nil { - return x.Replicas - } - return 0 -} - -func (x *DistributedPyTorchTrainingReplicaSpec) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *DistributedPyTorchTrainingReplicaSpec) GetResources() *core.Resources { - if x != nil { - return x.Resources - } - return nil -} - -func (x *DistributedPyTorchTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { - if x != nil { - return x.RestartPolicy - } - return RestartPolicy_RESTART_POLICY_NEVER -} - -var File_flyteidl_plugins_kubeflow_pytorch_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x79, 0x74, 0x6f, - 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, - 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, - 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x45, 0x6c, 0x61, 0x73, - 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x64, 0x7a, - 0x76, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x72, 0x64, 0x7a, 0x76, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x0c, - 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, - 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6e, 0x70, 0x72, 0x6f, - 0x63, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, - 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, - 0x6d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x22, 0x8c, 0x03, 0x0a, 0x1e, - 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, - 0x63, 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x69, - 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, - 0x79, 0x54, 0x6f, 0x72, 0x63, 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x69, 0x0a, 0x0f, 0x6d, 0x61, 0x73, - 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, - 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, 0x63, - 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x75, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, - 0x72, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4f, 0x0a, 0x0e, 0x65, 0x6c, 0x61, - 0x73, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6c, - 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x6c, 0x61, - 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xe2, 0x01, 0x0a, 0x25, 0x44, - 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, 0x63, - 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x4f, - 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, - 0xf2, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, - 0x77, 0x42, 0x0c, 0x50, 0x79, 0x74, 0x6f, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, - 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xe2, 0x02, - 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x3a, 0x3a, 0x4b, 0x75, 0x62, 0x65, - 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescOnce sync.Once - file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData = file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc -) - -func file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData) - }) - return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData -} - -var file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_flyteidl_plugins_kubeflow_pytorch_proto_goTypes = []interface{}{ - (*ElasticConfig)(nil), // 0: flyteidl.plugins.kubeflow.ElasticConfig - (*DistributedPyTorchTrainingTask)(nil), // 1: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask - (*DistributedPyTorchTrainingReplicaSpec)(nil), // 2: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec - (*RunPolicy)(nil), // 3: flyteidl.plugins.kubeflow.RunPolicy - (*core.Resources)(nil), // 4: flyteidl.core.Resources - (RestartPolicy)(0), // 5: flyteidl.plugins.kubeflow.RestartPolicy -} -var file_flyteidl_plugins_kubeflow_pytorch_proto_depIdxs = []int32{ - 2, // 0: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec - 2, // 1: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec - 3, // 2: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy:type_name -> flyteidl.plugins.kubeflow.RunPolicy - 0, // 3: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config:type_name -> flyteidl.plugins.kubeflow.ElasticConfig - 4, // 4: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources:type_name -> flyteidl.core.Resources - 5, // 5: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.restart_policy:type_name -> flyteidl.plugins.kubeflow.RestartPolicy - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_kubeflow_pytorch_proto_init() } -func file_flyteidl_plugins_kubeflow_pytorch_proto_init() { - if File_flyteidl_plugins_kubeflow_pytorch_proto != nil { - return - } - file_flyteidl_plugins_kubeflow_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ElasticConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedPyTorchTrainingTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedPyTorchTrainingReplicaSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_kubeflow_pytorch_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_kubeflow_pytorch_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes, - }.Build() - File_flyteidl_plugins_kubeflow_pytorch_proto = out.File - file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc = nil - file_flyteidl_plugins_kubeflow_pytorch_proto_goTypes = nil - file_flyteidl_plugins_kubeflow_pytorch_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go deleted file mode 100644 index ef6ec1899b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go +++ /dev/null @@ -1,350 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/kubeflow/tensorflow.proto - -package plugins - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator -type DistributedTensorflowTrainingTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Worker replicas spec - WorkerReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` - // Parameter server replicas spec - PsReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` - // Chief replicas spec - ChiefReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` - // RunPolicy encapsulates various runtime policies of the distributed training - // job, for example how to clean up resources and how long the job can stay - // active. - RunPolicy *RunPolicy `protobuf:"bytes,4,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` - // Evaluator replicas spec - EvaluatorReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,5,opt,name=evaluator_replicas,json=evaluatorReplicas,proto3" json:"evaluator_replicas,omitempty"` -} - -func (x *DistributedTensorflowTrainingTask) Reset() { - *x = DistributedTensorflowTrainingTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedTensorflowTrainingTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedTensorflowTrainingTask) ProtoMessage() {} - -func (x *DistributedTensorflowTrainingTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedTensorflowTrainingTask.ProtoReflect.Descriptor instead. -func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescGZIP(), []int{0} -} - -func (x *DistributedTensorflowTrainingTask) GetWorkerReplicas() *DistributedTensorflowTrainingReplicaSpec { - if x != nil { - return x.WorkerReplicas - } - return nil -} - -func (x *DistributedTensorflowTrainingTask) GetPsReplicas() *DistributedTensorflowTrainingReplicaSpec { - if x != nil { - return x.PsReplicas - } - return nil -} - -func (x *DistributedTensorflowTrainingTask) GetChiefReplicas() *DistributedTensorflowTrainingReplicaSpec { - if x != nil { - return x.ChiefReplicas - } - return nil -} - -func (x *DistributedTensorflowTrainingTask) GetRunPolicy() *RunPolicy { - if x != nil { - return x.RunPolicy - } - return nil -} - -func (x *DistributedTensorflowTrainingTask) GetEvaluatorReplicas() *DistributedTensorflowTrainingReplicaSpec { - if x != nil { - return x.EvaluatorReplicas - } - return nil -} - -type DistributedTensorflowTrainingReplicaSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Number of replicas - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Image used for the replica group - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources required for the replica group - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - // RestartPolicy Determines whether pods will be restarted when they exit - RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` -} - -func (x *DistributedTensorflowTrainingReplicaSpec) Reset() { - *x = DistributedTensorflowTrainingReplicaSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedTensorflowTrainingReplicaSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedTensorflowTrainingReplicaSpec) ProtoMessage() {} - -func (x *DistributedTensorflowTrainingReplicaSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedTensorflowTrainingReplicaSpec.ProtoReflect.Descriptor instead. -func (*DistributedTensorflowTrainingReplicaSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescGZIP(), []int{1} -} - -func (x *DistributedTensorflowTrainingReplicaSpec) GetReplicas() int32 { - if x != nil { - return x.Replicas - } - return 0 -} - -func (x *DistributedTensorflowTrainingReplicaSpec) GetImage() string { - if x != nil { - return x.Image - } - return "" -} - -func (x *DistributedTensorflowTrainingReplicaSpec) GetResources() *core.Resources { - if x != nil { - return x.Resources - } - return nil -} - -func (x *DistributedTensorflowTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { - if x != nil { - return x.RestartPolicy - } - return RestartPolicy_RESTART_POLICY_NEVER -} - -var File_flyteidl_plugins_kubeflow_tensorflow_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc = []byte{ - 0x0a, 0x2a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x74, 0x65, 0x6e, 0x73, - 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, - 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x04, 0x0a, 0x21, 0x44, - 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, - 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, - 0x12, 0x6c, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, - 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, - 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, - 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x64, - 0x0a, 0x0b, 0x70, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, - 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0a, 0x70, 0x73, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x12, 0x6a, 0x0a, 0x0e, 0x63, 0x68, 0x69, 0x65, 0x66, 0x5f, 0x72, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, - 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, - 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, - 0x63, 0x52, 0x0d, 0x63, 0x68, 0x69, 0x65, 0x66, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x75, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x72, 0x75, 0x6e, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x72, 0x0a, 0x12, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, - 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, - 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, - 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x11, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x6f, - 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x28, 0x44, 0x69, - 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, - 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x12, 0x4f, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x42, 0xf5, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, - 0x6c, 0x6f, 0x77, 0x42, 0x0f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, - 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x4b, - 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, - 0x6c, 0x6f, 0x77, 0xe2, 0x02, 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x3a, - 0x3a, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescOnce sync.Once - file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData = file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc -) - -func file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData) - }) - return file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData -} - -var file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_flyteidl_plugins_kubeflow_tensorflow_proto_goTypes = []interface{}{ - (*DistributedTensorflowTrainingTask)(nil), // 0: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask - (*DistributedTensorflowTrainingReplicaSpec)(nil), // 1: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec - (*RunPolicy)(nil), // 2: flyteidl.plugins.kubeflow.RunPolicy - (*core.Resources)(nil), // 3: flyteidl.core.Resources - (RestartPolicy)(0), // 4: flyteidl.plugins.kubeflow.RestartPolicy -} -var file_flyteidl_plugins_kubeflow_tensorflow_proto_depIdxs = []int32{ - 1, // 0: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec - 1, // 1: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec - 1, // 2: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec - 2, // 3: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy:type_name -> flyteidl.plugins.kubeflow.RunPolicy - 1, // 4: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.evaluator_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec - 3, // 5: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources:type_name -> flyteidl.core.Resources - 4, // 6: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.restart_policy:type_name -> flyteidl.plugins.kubeflow.RestartPolicy - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_kubeflow_tensorflow_proto_init() } -func file_flyteidl_plugins_kubeflow_tensorflow_proto_init() { - if File_flyteidl_plugins_kubeflow_tensorflow_proto != nil { - return - } - file_flyteidl_plugins_kubeflow_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedTensorflowTrainingTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedTensorflowTrainingReplicaSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_kubeflow_tensorflow_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_kubeflow_tensorflow_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes, - }.Build() - File_flyteidl_plugins_kubeflow_tensorflow_proto = out.File - file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc = nil - file_flyteidl_plugins_kubeflow_tensorflow_proto_goTypes = nil - file_flyteidl_plugins_kubeflow_tensorflow_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go deleted file mode 100644 index 9f3f501444..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go +++ /dev/null @@ -1,184 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/mpi.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md -// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator -type DistributedMPITrainingTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // number of worker spawned in the cluster for this job - NumWorkers int32 `protobuf:"varint,1,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty"` - // number of launcher replicas spawned in the cluster for this job - // The launcher pod invokes mpirun and communicates with worker pods through MPI. - NumLauncherReplicas int32 `protobuf:"varint,2,opt,name=num_launcher_replicas,json=numLauncherReplicas,proto3" json:"num_launcher_replicas,omitempty"` - // number of slots per worker used in hostfile. - // The available slots (GPUs) in each pod. - Slots int32 `protobuf:"varint,3,opt,name=slots,proto3" json:"slots,omitempty"` -} - -func (x *DistributedMPITrainingTask) Reset() { - *x = DistributedMPITrainingTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_mpi_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedMPITrainingTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedMPITrainingTask) ProtoMessage() {} - -func (x *DistributedMPITrainingTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_mpi_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedMPITrainingTask.ProtoReflect.Descriptor instead. -func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_mpi_proto_rawDescGZIP(), []int{0} -} - -func (x *DistributedMPITrainingTask) GetNumWorkers() int32 { - if x != nil { - return x.NumWorkers - } - return 0 -} - -func (x *DistributedMPITrainingTask) GetNumLauncherReplicas() int32 { - if x != nil { - return x.NumLauncherReplicas - } - return 0 -} - -func (x *DistributedMPITrainingTask) GetSlots() int32 { - if x != nil { - return x.Slots - } - return 0 -} - -var File_flyteidl_plugins_mpi_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_mpi_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x6d, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0x87, - 0x01, 0x0a, 0x1a, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x4d, 0x50, - 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1f, 0x0a, - 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x32, - 0x0a, 0x15, 0x6e, 0x75, 0x6d, 0x5f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x72, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6e, - 0x75, 0x6d, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x42, 0x08, 0x4d, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, - 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_mpi_proto_rawDescOnce sync.Once - file_flyteidl_plugins_mpi_proto_rawDescData = file_flyteidl_plugins_mpi_proto_rawDesc -) - -func file_flyteidl_plugins_mpi_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_mpi_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_mpi_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_mpi_proto_rawDescData) - }) - return file_flyteidl_plugins_mpi_proto_rawDescData -} - -var file_flyteidl_plugins_mpi_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_plugins_mpi_proto_goTypes = []interface{}{ - (*DistributedMPITrainingTask)(nil), // 0: flyteidl.plugins.DistributedMPITrainingTask -} -var file_flyteidl_plugins_mpi_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_mpi_proto_init() } -func file_flyteidl_plugins_mpi_proto_init() { - if File_flyteidl_plugins_mpi_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_mpi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedMPITrainingTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_mpi_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_mpi_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_mpi_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_mpi_proto_msgTypes, - }.Build() - File_flyteidl_plugins_mpi_proto = out.File - file_flyteidl_plugins_mpi_proto_rawDesc = nil - file_flyteidl_plugins_mpi_proto_goTypes = nil - file_flyteidl_plugins_mpi_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go deleted file mode 100644 index e832baf5c6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/presto.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field -// of a Presto task's TaskTemplate -type PrestoQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoutingGroup string `protobuf:"bytes,1,opt,name=routing_group,json=routingGroup,proto3" json:"routing_group,omitempty"` - Catalog string `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"` - Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` - Statement string `protobuf:"bytes,4,opt,name=statement,proto3" json:"statement,omitempty"` -} - -func (x *PrestoQuery) Reset() { - *x = PrestoQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_presto_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PrestoQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PrestoQuery) ProtoMessage() {} - -func (x *PrestoQuery) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_presto_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PrestoQuery.ProtoReflect.Descriptor instead. -func (*PrestoQuery) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_presto_proto_rawDescGZIP(), []int{0} -} - -func (x *PrestoQuery) GetRoutingGroup() string { - if x != nil { - return x.RoutingGroup - } - return "" -} - -func (x *PrestoQuery) GetCatalog() string { - if x != nil { - return x.Catalog - } - return "" -} - -func (x *PrestoQuery) GetSchema() string { - if x != nil { - return x.Schema - } - return "" -} - -func (x *PrestoQuery) GetStatement() string { - if x != nil { - return x.Statement - } - return "" -} - -var File_flyteidl_plugins_presto_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_presto_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x22, 0x82, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, - 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, - 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0xc3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, - 0x0b, 0x50, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, - 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_presto_proto_rawDescOnce sync.Once - file_flyteidl_plugins_presto_proto_rawDescData = file_flyteidl_plugins_presto_proto_rawDesc -) - -func file_flyteidl_plugins_presto_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_presto_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_presto_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_presto_proto_rawDescData) - }) - return file_flyteidl_plugins_presto_proto_rawDescData -} - -var file_flyteidl_plugins_presto_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_plugins_presto_proto_goTypes = []interface{}{ - (*PrestoQuery)(nil), // 0: flyteidl.plugins.PrestoQuery -} -var file_flyteidl_plugins_presto_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_presto_proto_init() } -func file_flyteidl_plugins_presto_proto_init() { - if File_flyteidl_plugins_presto_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_presto_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PrestoQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_presto_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_presto_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_presto_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_presto_proto_msgTypes, - }.Build() - File_flyteidl_plugins_presto_proto = out.File - file_flyteidl_plugins_presto_proto_rawDesc = nil - file_flyteidl_plugins_presto_proto_goTypes = nil - file_flyteidl_plugins_presto_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go deleted file mode 100644 index a77ded5473..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go +++ /dev/null @@ -1,279 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/pytorch.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Custom proto for torch elastic config for distributed training using -// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go -type ElasticConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` - MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` - MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` - NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` - MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` -} - -func (x *ElasticConfig) Reset() { - *x = ElasticConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ElasticConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ElasticConfig) ProtoMessage() {} - -func (x *ElasticConfig) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ElasticConfig.ProtoReflect.Descriptor instead. -func (*ElasticConfig) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_pytorch_proto_rawDescGZIP(), []int{0} -} - -func (x *ElasticConfig) GetRdzvBackend() string { - if x != nil { - return x.RdzvBackend - } - return "" -} - -func (x *ElasticConfig) GetMinReplicas() int32 { - if x != nil { - return x.MinReplicas - } - return 0 -} - -func (x *ElasticConfig) GetMaxReplicas() int32 { - if x != nil { - return x.MaxReplicas - } - return 0 -} - -func (x *ElasticConfig) GetNprocPerNode() int32 { - if x != nil { - return x.NprocPerNode - } - return 0 -} - -func (x *ElasticConfig) GetMaxRestarts() int32 { - if x != nil { - return x.MaxRestarts - } - return 0 -} - -// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator -type DistributedPyTorchTrainingTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // number of worker replicas spawned in the cluster for this job - Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` - // config for an elastic pytorch job - ElasticConfig *ElasticConfig `protobuf:"bytes,2,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` -} - -func (x *DistributedPyTorchTrainingTask) Reset() { - *x = DistributedPyTorchTrainingTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedPyTorchTrainingTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedPyTorchTrainingTask) ProtoMessage() {} - -func (x *DistributedPyTorchTrainingTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedPyTorchTrainingTask.ProtoReflect.Descriptor instead. -func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_pytorch_proto_rawDescGZIP(), []int{1} -} - -func (x *DistributedPyTorchTrainingTask) GetWorkers() int32 { - if x != nil { - return x.Workers - } - return 0 -} - -func (x *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { - if x != nil { - return x.ElasticConfig - } - return nil -} - -var File_flyteidl_plugins_pytorch_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_pytorch_proto_rawDesc = []byte{ - 0x0a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x70, 0x79, 0x74, 0x6f, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x45, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x64, 0x7a, 0x76, 0x5f, 0x62, 0x61, 0x63, - 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x64, 0x7a, 0x76, - 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x72, - 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, - 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, - 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x24, 0x0a, - 0x0e, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x50, 0x65, 0x72, 0x4e, - 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x1e, 0x44, 0x69, 0x73, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, 0x63, 0x68, 0x54, 0x72, 0x61, - 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x65, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x45, - 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x6c, - 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0xc4, 0x01, 0x0a, 0x14, - 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0c, 0x50, 0x79, 0x74, 0x6f, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, - 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, - 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_pytorch_proto_rawDescOnce sync.Once - file_flyteidl_plugins_pytorch_proto_rawDescData = file_flyteidl_plugins_pytorch_proto_rawDesc -) - -func file_flyteidl_plugins_pytorch_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_pytorch_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_pytorch_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_pytorch_proto_rawDescData) - }) - return file_flyteidl_plugins_pytorch_proto_rawDescData -} - -var file_flyteidl_plugins_pytorch_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_flyteidl_plugins_pytorch_proto_goTypes = []interface{}{ - (*ElasticConfig)(nil), // 0: flyteidl.plugins.ElasticConfig - (*DistributedPyTorchTrainingTask)(nil), // 1: flyteidl.plugins.DistributedPyTorchTrainingTask -} -var file_flyteidl_plugins_pytorch_proto_depIdxs = []int32{ - 0, // 0: flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config:type_name -> flyteidl.plugins.ElasticConfig - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_pytorch_proto_init() } -func file_flyteidl_plugins_pytorch_proto_init() { - if File_flyteidl_plugins_pytorch_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_pytorch_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ElasticConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_pytorch_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedPyTorchTrainingTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_pytorch_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_pytorch_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_pytorch_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_pytorch_proto_msgTypes, - }.Build() - File_flyteidl_plugins_pytorch_proto = out.File - file_flyteidl_plugins_pytorch_proto_rawDesc = nil - file_flyteidl_plugins_pytorch_proto_goTypes = nil - file_flyteidl_plugins_pytorch_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go deleted file mode 100644 index 9b7a16bbe6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go +++ /dev/null @@ -1,346 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/qubole.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Defines a query to execute on a hive cluster. -type HiveQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` - TimeoutSec uint32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` - RetryCount uint32 `protobuf:"varint,3,opt,name=retryCount,proto3" json:"retryCount,omitempty"` -} - -func (x *HiveQuery) Reset() { - *x = HiveQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_qubole_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HiveQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HiveQuery) ProtoMessage() {} - -func (x *HiveQuery) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_qubole_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HiveQuery.ProtoReflect.Descriptor instead. -func (*HiveQuery) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_qubole_proto_rawDescGZIP(), []int{0} -} - -func (x *HiveQuery) GetQuery() string { - if x != nil { - return x.Query - } - return "" -} - -func (x *HiveQuery) GetTimeoutSec() uint32 { - if x != nil { - return x.TimeoutSec - } - return 0 -} - -func (x *HiveQuery) GetRetryCount() uint32 { - if x != nil { - return x.RetryCount - } - return 0 -} - -// Defines a collection of hive queries. -type HiveQueryCollection struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Queries []*HiveQuery `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *HiveQueryCollection) Reset() { - *x = HiveQueryCollection{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_qubole_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HiveQueryCollection) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HiveQueryCollection) ProtoMessage() {} - -func (x *HiveQueryCollection) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_qubole_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HiveQueryCollection.ProtoReflect.Descriptor instead. -func (*HiveQueryCollection) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_qubole_proto_rawDescGZIP(), []int{1} -} - -func (x *HiveQueryCollection) GetQueries() []*HiveQuery { - if x != nil { - return x.Queries - } - return nil -} - -// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field -// of a hive task's TaskTemplate -type QuboleHiveJob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClusterLabel string `protobuf:"bytes,1,opt,name=cluster_label,json=clusterLabel,proto3" json:"cluster_label,omitempty"` - // Deprecated: Marked as deprecated in flyteidl/plugins/qubole.proto. - QueryCollection *HiveQueryCollection `protobuf:"bytes,2,opt,name=query_collection,json=queryCollection,proto3" json:"query_collection,omitempty"` - Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` - Query *HiveQuery `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` -} - -func (x *QuboleHiveJob) Reset() { - *x = QuboleHiveJob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_qubole_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QuboleHiveJob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QuboleHiveJob) ProtoMessage() {} - -func (x *QuboleHiveJob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_qubole_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QuboleHiveJob.ProtoReflect.Descriptor instead. -func (*QuboleHiveJob) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_qubole_proto_rawDescGZIP(), []int{2} -} - -func (x *QuboleHiveJob) GetClusterLabel() string { - if x != nil { - return x.ClusterLabel - } - return "" -} - -// Deprecated: Marked as deprecated in flyteidl/plugins/qubole.proto. -func (x *QuboleHiveJob) GetQueryCollection() *HiveQueryCollection { - if x != nil { - return x.QueryCollection - } - return nil -} - -func (x *QuboleHiveJob) GetTags() []string { - if x != nil { - return x.Tags - } - return nil -} - -func (x *QuboleHiveJob) GetQuery() *HiveQuery { - if x != nil { - return x.Query - } - return nil -} - -var File_flyteidl_plugins_qubole_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_qubole_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x71, 0x75, 0x62, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x22, 0x62, 0x0a, 0x09, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, - 0x73, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x53, 0x65, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x13, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x07, - 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x2e, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, - 0x69, 0x65, 0x73, 0x22, 0xd1, 0x01, 0x0a, 0x0d, 0x51, 0x75, 0x62, 0x6f, 0x6c, 0x65, 0x48, 0x69, - 0x76, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x54, 0x0a, 0x10, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x02, 0x18, 0x01, 0x52, - 0x0f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, - 0x74, 0x61, 0x67, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0xc3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x42, 0x0b, 0x51, 0x75, 0x62, 0x6f, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, - 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_qubole_proto_rawDescOnce sync.Once - file_flyteidl_plugins_qubole_proto_rawDescData = file_flyteidl_plugins_qubole_proto_rawDesc -) - -func file_flyteidl_plugins_qubole_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_qubole_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_qubole_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_qubole_proto_rawDescData) - }) - return file_flyteidl_plugins_qubole_proto_rawDescData -} - -var file_flyteidl_plugins_qubole_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_flyteidl_plugins_qubole_proto_goTypes = []interface{}{ - (*HiveQuery)(nil), // 0: flyteidl.plugins.HiveQuery - (*HiveQueryCollection)(nil), // 1: flyteidl.plugins.HiveQueryCollection - (*QuboleHiveJob)(nil), // 2: flyteidl.plugins.QuboleHiveJob -} -var file_flyteidl_plugins_qubole_proto_depIdxs = []int32{ - 0, // 0: flyteidl.plugins.HiveQueryCollection.queries:type_name -> flyteidl.plugins.HiveQuery - 1, // 1: flyteidl.plugins.QuboleHiveJob.query_collection:type_name -> flyteidl.plugins.HiveQueryCollection - 0, // 2: flyteidl.plugins.QuboleHiveJob.query:type_name -> flyteidl.plugins.HiveQuery - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_qubole_proto_init() } -func file_flyteidl_plugins_qubole_proto_init() { - if File_flyteidl_plugins_qubole_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_qubole_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HiveQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_qubole_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HiveQueryCollection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_qubole_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QuboleHiveJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_qubole_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_qubole_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_qubole_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_qubole_proto_msgTypes, - }.Build() - File_flyteidl_plugins_qubole_proto = out.File - file_flyteidl_plugins_qubole_proto_rawDesc = nil - file_flyteidl_plugins_qubole_proto_goTypes = nil - file_flyteidl_plugins_qubole_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go deleted file mode 100644 index 8e4483fabc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go +++ /dev/null @@ -1,490 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/ray.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// RayJobSpec defines the desired state of RayJob -type RayJob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // RayClusterSpec is the cluster template to run the job - RayCluster *RayCluster `protobuf:"bytes,1,opt,name=ray_cluster,json=rayCluster,proto3" json:"ray_cluster,omitempty"` - // runtime_env is base64 encoded. - // Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments - RuntimeEnv string `protobuf:"bytes,2,opt,name=runtime_env,json=runtimeEnv,proto3" json:"runtime_env,omitempty"` - // shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. - ShutdownAfterJobFinishes bool `protobuf:"varint,3,opt,name=shutdown_after_job_finishes,json=shutdownAfterJobFinishes,proto3" json:"shutdown_after_job_finishes,omitempty"` - // ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. - TtlSecondsAfterFinished int32 `protobuf:"varint,4,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` -} - -func (x *RayJob) Reset() { - *x = RayJob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RayJob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RayJob) ProtoMessage() {} - -func (x *RayJob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RayJob.ProtoReflect.Descriptor instead. -func (*RayJob) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{0} -} - -func (x *RayJob) GetRayCluster() *RayCluster { - if x != nil { - return x.RayCluster - } - return nil -} - -func (x *RayJob) GetRuntimeEnv() string { - if x != nil { - return x.RuntimeEnv - } - return "" -} - -func (x *RayJob) GetShutdownAfterJobFinishes() bool { - if x != nil { - return x.ShutdownAfterJobFinishes - } - return false -} - -func (x *RayJob) GetTtlSecondsAfterFinished() int32 { - if x != nil { - return x.TtlSecondsAfterFinished - } - return 0 -} - -// Define Ray cluster defines the desired state of RayCluster -type RayCluster struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // HeadGroupSpecs are the spec for the head pod - HeadGroupSpec *HeadGroupSpec `protobuf:"bytes,1,opt,name=head_group_spec,json=headGroupSpec,proto3" json:"head_group_spec,omitempty"` - // WorkerGroupSpecs are the specs for the worker pods - WorkerGroupSpec []*WorkerGroupSpec `protobuf:"bytes,2,rep,name=worker_group_spec,json=workerGroupSpec,proto3" json:"worker_group_spec,omitempty"` - // Whether to enable autoscaling. - EnableAutoscaling bool `protobuf:"varint,3,opt,name=enable_autoscaling,json=enableAutoscaling,proto3" json:"enable_autoscaling,omitempty"` -} - -func (x *RayCluster) Reset() { - *x = RayCluster{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RayCluster) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RayCluster) ProtoMessage() {} - -func (x *RayCluster) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RayCluster.ProtoReflect.Descriptor instead. -func (*RayCluster) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{1} -} - -func (x *RayCluster) GetHeadGroupSpec() *HeadGroupSpec { - if x != nil { - return x.HeadGroupSpec - } - return nil -} - -func (x *RayCluster) GetWorkerGroupSpec() []*WorkerGroupSpec { - if x != nil { - return x.WorkerGroupSpec - } - return nil -} - -func (x *RayCluster) GetEnableAutoscaling() bool { - if x != nil { - return x.EnableAutoscaling - } - return false -} - -// HeadGroupSpec are the spec for the head pod -type HeadGroupSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Optional. RayStartParams are the params of the start command: address, object-store-memory. - // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start - RayStartParams map[string]string `protobuf:"bytes,1,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *HeadGroupSpec) Reset() { - *x = HeadGroupSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HeadGroupSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HeadGroupSpec) ProtoMessage() {} - -func (x *HeadGroupSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HeadGroupSpec.ProtoReflect.Descriptor instead. -func (*HeadGroupSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{2} -} - -func (x *HeadGroupSpec) GetRayStartParams() map[string]string { - if x != nil { - return x.RayStartParams - } - return nil -} - -// WorkerGroupSpec are the specs for the worker pods -type WorkerGroupSpec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. RayCluster can have multiple worker groups, and it distinguishes them by name - GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` - // Required. Desired replicas of the worker group. Defaults to 1. - Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Optional. Min replicas of the worker group. MinReplicas defaults to 1. - MinReplicas int32 `protobuf:"varint,3,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` - // Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 - MaxReplicas int32 `protobuf:"varint,4,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` - // Optional. RayStartParams are the params of the start command: address, object-store-memory. - // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start - RayStartParams map[string]string `protobuf:"bytes,5,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *WorkerGroupSpec) Reset() { - *x = WorkerGroupSpec{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *WorkerGroupSpec) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*WorkerGroupSpec) ProtoMessage() {} - -func (x *WorkerGroupSpec) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_ray_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use WorkerGroupSpec.ProtoReflect.Descriptor instead. -func (*WorkerGroupSpec) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{3} -} - -func (x *WorkerGroupSpec) GetGroupName() string { - if x != nil { - return x.GroupName - } - return "" -} - -func (x *WorkerGroupSpec) GetReplicas() int32 { - if x != nil { - return x.Replicas - } - return 0 -} - -func (x *WorkerGroupSpec) GetMinReplicas() int32 { - if x != nil { - return x.MinReplicas - } - return 0 -} - -func (x *WorkerGroupSpec) GetMaxReplicas() int32 { - if x != nil { - return x.MaxReplicas - } - return 0 -} - -func (x *WorkerGroupSpec) GetRayStartParams() map[string]string { - if x != nil { - return x.RayStartParams - } - return nil -} - -var File_flyteidl_plugins_ray_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_ray_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0xe4, - 0x01, 0x0a, 0x06, 0x52, 0x61, 0x79, 0x4a, 0x6f, 0x62, 0x12, 0x3d, 0x0a, 0x0b, 0x72, 0x61, 0x79, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x2e, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x72, 0x61, - 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x74, - 0x69, 0x6d, 0x65, 0x5f, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, - 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x76, 0x12, 0x3d, 0x0a, 0x1b, 0x73, 0x68, 0x75, - 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, - 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, - 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x66, 0x74, 0x65, 0x72, 0x4a, 0x6f, 0x62, - 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x74, 0x74, 0x6c, 0x5f, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x69, - 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x74, 0x74, - 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x46, 0x69, 0x6e, - 0x69, 0x73, 0x68, 0x65, 0x64, 0x22, 0xd3, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x2e, 0x48, 0x65, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0d, - 0x68, 0x65, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4d, 0x0a, - 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x70, - 0x65, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0f, 0x77, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x2d, 0x0a, 0x12, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, - 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0xb1, 0x01, 0x0a, 0x0d, - 0x48, 0x65, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x5d, 0x0a, - 0x10, 0x72, 0x61, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x61, - 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x41, 0x0a, 0x13, - 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0xb6, 0x02, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, - 0x70, 0x65, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x21, - 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x12, 0x5f, 0x0a, 0x10, 0x72, 0x61, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, - 0x63, 0x2e, 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x41, 0x0a, 0x13, 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xc0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x42, 0x08, 0x52, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, - 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_ray_proto_rawDescOnce sync.Once - file_flyteidl_plugins_ray_proto_rawDescData = file_flyteidl_plugins_ray_proto_rawDesc -) - -func file_flyteidl_plugins_ray_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_ray_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_ray_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_ray_proto_rawDescData) - }) - return file_flyteidl_plugins_ray_proto_rawDescData -} - -var file_flyteidl_plugins_ray_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_flyteidl_plugins_ray_proto_goTypes = []interface{}{ - (*RayJob)(nil), // 0: flyteidl.plugins.RayJob - (*RayCluster)(nil), // 1: flyteidl.plugins.RayCluster - (*HeadGroupSpec)(nil), // 2: flyteidl.plugins.HeadGroupSpec - (*WorkerGroupSpec)(nil), // 3: flyteidl.plugins.WorkerGroupSpec - nil, // 4: flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry - nil, // 5: flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry -} -var file_flyteidl_plugins_ray_proto_depIdxs = []int32{ - 1, // 0: flyteidl.plugins.RayJob.ray_cluster:type_name -> flyteidl.plugins.RayCluster - 2, // 1: flyteidl.plugins.RayCluster.head_group_spec:type_name -> flyteidl.plugins.HeadGroupSpec - 3, // 2: flyteidl.plugins.RayCluster.worker_group_spec:type_name -> flyteidl.plugins.WorkerGroupSpec - 4, // 3: flyteidl.plugins.HeadGroupSpec.ray_start_params:type_name -> flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry - 5, // 4: flyteidl.plugins.WorkerGroupSpec.ray_start_params:type_name -> flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_ray_proto_init() } -func file_flyteidl_plugins_ray_proto_init() { - if File_flyteidl_plugins_ray_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_ray_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RayJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_ray_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RayCluster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_ray_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HeadGroupSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_ray_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkerGroupSpec); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_ray_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_ray_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_ray_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_ray_proto_msgTypes, - }.Build() - File_flyteidl_plugins_ray_proto = out.File - file_flyteidl_plugins_ray_proto_rawDesc = nil - file_flyteidl_plugins_ray_proto_goTypes = nil - file_flyteidl_plugins_ray_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go deleted file mode 100644 index 316d1f1d7b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go +++ /dev/null @@ -1,383 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/spark.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type SparkApplication_Type int32 - -const ( - SparkApplication_PYTHON SparkApplication_Type = 0 - SparkApplication_JAVA SparkApplication_Type = 1 - SparkApplication_SCALA SparkApplication_Type = 2 - SparkApplication_R SparkApplication_Type = 3 -) - -// Enum value maps for SparkApplication_Type. -var ( - SparkApplication_Type_name = map[int32]string{ - 0: "PYTHON", - 1: "JAVA", - 2: "SCALA", - 3: "R", - } - SparkApplication_Type_value = map[string]int32{ - "PYTHON": 0, - "JAVA": 1, - "SCALA": 2, - "R": 3, - } -) - -func (x SparkApplication_Type) Enum() *SparkApplication_Type { - p := new(SparkApplication_Type) - *p = x - return p -} - -func (x SparkApplication_Type) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SparkApplication_Type) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_plugins_spark_proto_enumTypes[0].Descriptor() -} - -func (SparkApplication_Type) Type() protoreflect.EnumType { - return &file_flyteidl_plugins_spark_proto_enumTypes[0] -} - -func (x SparkApplication_Type) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SparkApplication_Type.Descriptor instead. -func (SparkApplication_Type) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_plugins_spark_proto_rawDescGZIP(), []int{0, 0} -} - -type SparkApplication struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SparkApplication) Reset() { - *x = SparkApplication{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_spark_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SparkApplication) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SparkApplication) ProtoMessage() {} - -func (x *SparkApplication) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_spark_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SparkApplication.ProtoReflect.Descriptor instead. -func (*SparkApplication) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_spark_proto_rawDescGZIP(), []int{0} -} - -// Custom Proto for Spark Plugin. -type SparkJob struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ApplicationType SparkApplication_Type `protobuf:"varint,1,opt,name=applicationType,proto3,enum=flyteidl.plugins.SparkApplication_Type" json:"applicationType,omitempty"` - MainApplicationFile string `protobuf:"bytes,2,opt,name=mainApplicationFile,proto3" json:"mainApplicationFile,omitempty"` - MainClass string `protobuf:"bytes,3,opt,name=mainClass,proto3" json:"mainClass,omitempty"` - SparkConf map[string]string `protobuf:"bytes,4,rep,name=sparkConf,proto3" json:"sparkConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - HadoopConf map[string]string `protobuf:"bytes,5,rep,name=hadoopConf,proto3" json:"hadoopConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ExecutorPath string `protobuf:"bytes,6,opt,name=executorPath,proto3" json:"executorPath,omitempty"` // Executor path for Python jobs. - // Databricks job configuration. - // Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. - DatabricksConf *structpb.Struct `protobuf:"bytes,7,opt,name=databricksConf,proto3" json:"databricksConf,omitempty"` - // Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html - // This token can be set in either flytepropeller or flytekit. - DatabricksToken string `protobuf:"bytes,8,opt,name=databricksToken,proto3" json:"databricksToken,omitempty"` - // Domain name of your deployment. Use the form .cloud.databricks.com. - // This instance name can be set in either flytepropeller or flytekit. - DatabricksInstance string `protobuf:"bytes,9,opt,name=databricksInstance,proto3" json:"databricksInstance,omitempty"` -} - -func (x *SparkJob) Reset() { - *x = SparkJob{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_spark_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SparkJob) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SparkJob) ProtoMessage() {} - -func (x *SparkJob) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_spark_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SparkJob.ProtoReflect.Descriptor instead. -func (*SparkJob) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_spark_proto_rawDescGZIP(), []int{1} -} - -func (x *SparkJob) GetApplicationType() SparkApplication_Type { - if x != nil { - return x.ApplicationType - } - return SparkApplication_PYTHON -} - -func (x *SparkJob) GetMainApplicationFile() string { - if x != nil { - return x.MainApplicationFile - } - return "" -} - -func (x *SparkJob) GetMainClass() string { - if x != nil { - return x.MainClass - } - return "" -} - -func (x *SparkJob) GetSparkConf() map[string]string { - if x != nil { - return x.SparkConf - } - return nil -} - -func (x *SparkJob) GetHadoopConf() map[string]string { - if x != nil { - return x.HadoopConf - } - return nil -} - -func (x *SparkJob) GetExecutorPath() string { - if x != nil { - return x.ExecutorPath - } - return "" -} - -func (x *SparkJob) GetDatabricksConf() *structpb.Struct { - if x != nil { - return x.DatabricksConf - } - return nil -} - -func (x *SparkJob) GetDatabricksToken() string { - if x != nil { - return x.DatabricksToken - } - return "" -} - -func (x *SparkJob) GetDatabricksInstance() string { - if x != nil { - return x.DatabricksInstance - } - return "" -} - -var File_flyteidl_plugins_spark_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_spark_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, - 0x0a, 0x10, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x59, - 0x54, 0x48, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x41, 0x56, 0x41, 0x10, 0x01, - 0x12, 0x09, 0x0a, 0x05, 0x53, 0x43, 0x41, 0x4c, 0x41, 0x10, 0x02, 0x12, 0x05, 0x0a, 0x01, 0x52, - 0x10, 0x03, 0x22, 0xfe, 0x04, 0x0a, 0x08, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x4a, 0x6f, 0x62, 0x12, - 0x51, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x72, - 0x6b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x13, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6c, 0x61, 0x73, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x12, 0x47, 0x0a, 0x09, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x4a, 0x6f, - 0x62, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x09, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x4a, 0x0a, 0x0a, 0x68, - 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x4a, 0x6f, 0x62, 0x2e, 0x48, 0x61, 0x64, 0x6f, - 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x68, 0x61, 0x64, - 0x6f, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x3f, 0x0a, 0x0e, 0x64, - 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0e, 0x64, 0x61, - 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x28, 0x0a, 0x0f, - 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, - 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, - 0x69, 0x63, 0x6b, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x3c, 0x0a, 0x0e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x43, - 0x6f, 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x48, 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x43, 0x6f, - 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0a, 0x53, 0x70, - 0x61, 0x72, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, - 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, - 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, - 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_spark_proto_rawDescOnce sync.Once - file_flyteidl_plugins_spark_proto_rawDescData = file_flyteidl_plugins_spark_proto_rawDesc -) - -func file_flyteidl_plugins_spark_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_spark_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_spark_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_spark_proto_rawDescData) - }) - return file_flyteidl_plugins_spark_proto_rawDescData -} - -var file_flyteidl_plugins_spark_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_plugins_spark_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_flyteidl_plugins_spark_proto_goTypes = []interface{}{ - (SparkApplication_Type)(0), // 0: flyteidl.plugins.SparkApplication.Type - (*SparkApplication)(nil), // 1: flyteidl.plugins.SparkApplication - (*SparkJob)(nil), // 2: flyteidl.plugins.SparkJob - nil, // 3: flyteidl.plugins.SparkJob.SparkConfEntry - nil, // 4: flyteidl.plugins.SparkJob.HadoopConfEntry - (*structpb.Struct)(nil), // 5: google.protobuf.Struct -} -var file_flyteidl_plugins_spark_proto_depIdxs = []int32{ - 0, // 0: flyteidl.plugins.SparkJob.applicationType:type_name -> flyteidl.plugins.SparkApplication.Type - 3, // 1: flyteidl.plugins.SparkJob.sparkConf:type_name -> flyteidl.plugins.SparkJob.SparkConfEntry - 4, // 2: flyteidl.plugins.SparkJob.hadoopConf:type_name -> flyteidl.plugins.SparkJob.HadoopConfEntry - 5, // 3: flyteidl.plugins.SparkJob.databricksConf:type_name -> google.protobuf.Struct - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_spark_proto_init() } -func file_flyteidl_plugins_spark_proto_init() { - if File_flyteidl_plugins_spark_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_spark_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SparkApplication); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_plugins_spark_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SparkJob); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_spark_proto_rawDesc, - NumEnums: 1, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_spark_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_spark_proto_depIdxs, - EnumInfos: file_flyteidl_plugins_spark_proto_enumTypes, - MessageInfos: file_flyteidl_plugins_spark_proto_msgTypes, - }.Build() - File_flyteidl_plugins_spark_proto = out.File - file_flyteidl_plugins_spark_proto_rawDesc = nil - file_flyteidl_plugins_spark_proto_goTypes = nil - file_flyteidl_plugins_spark_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go deleted file mode 100644 index 679847bf3f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/tensorflow.proto - -package plugins - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator -type DistributedTensorflowTrainingTask struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // number of worker replicas spawned in the cluster for this job - Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` - // PS -> Parameter server - // number of ps replicas spawned in the cluster for this job - PsReplicas int32 `protobuf:"varint,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` - // number of chief replicas spawned in the cluster for this job - ChiefReplicas int32 `protobuf:"varint,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` - // number of evaluator replicas spawned in the cluster for this job - EvaluatorReplicas int32 `protobuf:"varint,4,opt,name=evaluator_replicas,json=evaluatorReplicas,proto3" json:"evaluator_replicas,omitempty"` -} - -func (x *DistributedTensorflowTrainingTask) Reset() { - *x = DistributedTensorflowTrainingTask{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_tensorflow_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DistributedTensorflowTrainingTask) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DistributedTensorflowTrainingTask) ProtoMessage() {} - -func (x *DistributedTensorflowTrainingTask) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_tensorflow_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DistributedTensorflowTrainingTask.ProtoReflect.Descriptor instead. -func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_tensorflow_proto_rawDescGZIP(), []int{0} -} - -func (x *DistributedTensorflowTrainingTask) GetWorkers() int32 { - if x != nil { - return x.Workers - } - return 0 -} - -func (x *DistributedTensorflowTrainingTask) GetPsReplicas() int32 { - if x != nil { - return x.PsReplicas - } - return 0 -} - -func (x *DistributedTensorflowTrainingTask) GetChiefReplicas() int32 { - if x != nil { - return x.ChiefReplicas - } - return 0 -} - -func (x *DistributedTensorflowTrainingTask) GetEvaluatorReplicas() int32 { - if x != nil { - return x.EvaluatorReplicas - } - return 0 -} - -var File_flyteidl_plugins_tensorflow_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_tensorflow_proto_rawDesc = []byte{ - 0x0a, 0x21, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0xb4, 0x01, 0x0a, 0x21, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, - 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x77, - 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x73, 0x52, 0x65, - 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x69, 0x65, 0x66, 0x5f, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, - 0x63, 0x68, 0x69, 0x65, 0x66, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x2d, 0x0a, - 0x12, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x65, 0x76, 0x61, 0x6c, 0x75, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x42, 0xc7, 0x01, 0x0a, - 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, - 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, - 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_tensorflow_proto_rawDescOnce sync.Once - file_flyteidl_plugins_tensorflow_proto_rawDescData = file_flyteidl_plugins_tensorflow_proto_rawDesc -) - -func file_flyteidl_plugins_tensorflow_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_tensorflow_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_tensorflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_tensorflow_proto_rawDescData) - }) - return file_flyteidl_plugins_tensorflow_proto_rawDescData -} - -var file_flyteidl_plugins_tensorflow_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_plugins_tensorflow_proto_goTypes = []interface{}{ - (*DistributedTensorflowTrainingTask)(nil), // 0: flyteidl.plugins.DistributedTensorflowTrainingTask -} -var file_flyteidl_plugins_tensorflow_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_tensorflow_proto_init() } -func file_flyteidl_plugins_tensorflow_proto_init() { - if File_flyteidl_plugins_tensorflow_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_tensorflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DistributedTensorflowTrainingTask); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_tensorflow_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_tensorflow_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_tensorflow_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_tensorflow_proto_msgTypes, - }.Build() - File_flyteidl_plugins_tensorflow_proto = out.File - file_flyteidl_plugins_tensorflow_proto_rawDesc = nil - file_flyteidl_plugins_tensorflow_proto_goTypes = nil - file_flyteidl_plugins_tensorflow_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go deleted file mode 100644 index 236e60bde9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/plugins/waitable.proto - -package plugins - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Represents an Execution that was launched and could be waited on. -type Waitable struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WfExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=wf_exec_id,json=wfExecId,proto3" json:"wf_exec_id,omitempty"` - Phase core.WorkflowExecution_Phase `protobuf:"varint,2,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` - WorkflowId string `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` -} - -func (x *Waitable) Reset() { - *x = Waitable{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_plugins_waitable_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Waitable) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Waitable) ProtoMessage() {} - -func (x *Waitable) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_plugins_waitable_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Waitable.ProtoReflect.Descriptor instead. -func (*Waitable) Descriptor() ([]byte, []int) { - return file_flyteidl_plugins_waitable_proto_rawDescGZIP(), []int{0} -} - -func (x *Waitable) GetWfExecId() *core.WorkflowExecutionIdentifier { - if x != nil { - return x.WfExecId - } - return nil -} - -func (x *Waitable) GetPhase() core.WorkflowExecution_Phase { - if x != nil { - return x.Phase - } - return core.WorkflowExecution_Phase(0) -} - -func (x *Waitable) GetWorkflowId() string { - if x != nil { - return x.WorkflowId - } - return "" -} - -var File_flyteidl_plugins_waitable_proto protoreflect.FileDescriptor - -var file_flyteidl_plugins_waitable_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x2f, 0x77, 0x61, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x73, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0xb3, 0x01, 0x0a, 0x08, 0x57, 0x61, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x48, 0x0a, 0x0a, 0x77, 0x66, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, - 0x08, 0x77, 0x66, 0x45, 0x78, 0x65, 0x63, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x05, 0x70, 0x68, 0x61, - 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, - 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, - 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x42, 0xc5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0x42, 0x0d, 0x57, 0x61, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_plugins_waitable_proto_rawDescOnce sync.Once - file_flyteidl_plugins_waitable_proto_rawDescData = file_flyteidl_plugins_waitable_proto_rawDesc -) - -func file_flyteidl_plugins_waitable_proto_rawDescGZIP() []byte { - file_flyteidl_plugins_waitable_proto_rawDescOnce.Do(func() { - file_flyteidl_plugins_waitable_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_waitable_proto_rawDescData) - }) - return file_flyteidl_plugins_waitable_proto_rawDescData -} - -var file_flyteidl_plugins_waitable_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_flyteidl_plugins_waitable_proto_goTypes = []interface{}{ - (*Waitable)(nil), // 0: flyteidl.plugins.Waitable - (*core.WorkflowExecutionIdentifier)(nil), // 1: flyteidl.core.WorkflowExecutionIdentifier - (core.WorkflowExecution_Phase)(0), // 2: flyteidl.core.WorkflowExecution.Phase -} -var file_flyteidl_plugins_waitable_proto_depIdxs = []int32{ - 1, // 0: flyteidl.plugins.Waitable.wf_exec_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier - 2, // 1: flyteidl.plugins.Waitable.phase:type_name -> flyteidl.core.WorkflowExecution.Phase - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_flyteidl_plugins_waitable_proto_init() } -func file_flyteidl_plugins_waitable_proto_init() { - if File_flyteidl_plugins_waitable_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_plugins_waitable_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Waitable); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_plugins_waitable_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_flyteidl_plugins_waitable_proto_goTypes, - DependencyIndexes: file_flyteidl_plugins_waitable_proto_depIdxs, - MessageInfos: file_flyteidl_plugins_waitable_proto_msgTypes, - }.Build() - File_flyteidl_plugins_waitable_proto = out.File - file_flyteidl_plugins_waitable_proto_rawDesc = nil - file_flyteidl_plugins_waitable_proto_goTypes = nil - file_flyteidl_plugins_waitable_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go deleted file mode 100644 index 4fa8b64e86..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go +++ /dev/null @@ -1,1230 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/admin.proto - -package service - -import ( - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_flyteidl_service_admin_proto protoreflect.FileDescriptor - -var file_flyteidl_service_admin_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x28, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, - 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, - 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x89, - 0x72, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0xc5, 0x02, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xef, 0x01, 0x92, 0x41, 0xd3, 0x01, 0x1a, 0x26, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x20, 0x61, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x42, 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, - 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, - 0x5e, 0x0a, 0x5c, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x61, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, - 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, - 0x61, 0x74, 0x20, 0x68, 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, - 0x65, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a, 0x22, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0xb2, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x6f, 0x92, 0x41, 0x27, - 0x1a, 0x25, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, - 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, - 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xde, 0x01, 0x0a, - 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x30, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, - 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, - 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x72, 0x92, 0x41, 0x44, 0x1a, 0x42, - 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, - 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, - 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xeb, 0x01, - 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x9e, 0x01, 0x92, 0x41, 0x39, - 0x1a, 0x37, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, - 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x5a, - 0x28, 0x12, 0x26, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, - 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x30, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xd9, 0x02, 0x0a, 0x0e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x25, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf7, 0x01, - 0x92, 0x41, 0xd7, 0x01, 0x1a, 0x2a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, - 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, - 0x4a, 0x42, 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, 0x65, 0x74, 0x75, 0x72, - 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x68, 0x61, 0x76, - 0x65, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, 0x5e, 0x0a, 0x5c, 0x52, - 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x68, - 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, - 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x16, 0x3a, 0x01, 0x2a, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0xc2, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x22, 0x77, 0x92, 0x41, 0x2b, 0x1a, 0x29, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, - 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0x9f, 0x01, 0x0a, - 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x73, - 0x12, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2f, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xff, - 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, - 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4c, - 0x69, 0x73, 0x74, 0x22, 0xaa, 0x01, 0x92, 0x41, 0x3d, 0x1a, 0x3b, 0x46, 0x65, 0x74, 0x63, 0x68, - 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, - 0x6f, 0x77, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x64, 0x5a, 0x2c, 0x12, 0x2a, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x34, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x12, 0xe5, 0x02, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, - 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfd, 0x01, 0x92, 0x41, 0xda, 0x01, 0x1a, - 0x2d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, - 0x61, 0x6e, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x42, - 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, - 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, - 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, 0x5e, 0x0a, 0x5c, 0x52, 0x65, 0x74, - 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, - 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x68, 0x61, 0x73, - 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x72, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, - 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, - 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0xcc, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, - 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, - 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x7d, 0x92, 0x41, 0x2e, 0x1a, 0x2c, 0x52, - 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, - 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x46, 0x12, 0x44, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, - 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xf3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, - 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x96, 0x01, 0x92, 0x41, 0x4d, 0x1a, 0x4b, 0x52, 0x65, 0x74, 0x72, - 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, - 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x62, 0x79, - 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6c, 0x61, - 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xeb, 0x01, - 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, - 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, - 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, - 0x4c, 0x69, 0x73, 0x74, 0x22, 0x84, 0x01, 0x92, 0x41, 0x4b, 0x1a, 0x49, 0x46, 0x65, 0x74, 0x63, - 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x6c, 0x61, 0x75, - 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x69, - 0x6e, 0x70, 0x75, 0x74, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6c, 0x61, 0x75, 0x6e, - 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xf3, 0x01, 0x0a, 0x11, - 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, - 0x73, 0x12, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x80, - 0x01, 0x92, 0x41, 0x4b, 0x1a, 0x49, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, - 0x74, 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, - 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, - 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, - 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x12, 0x8c, 0x02, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, - 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xb3, 0x01, 0x92, 0x41, 0x40, - 0x1a, 0x3e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x64, 0x65, 0x66, - 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, - 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6a, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x37, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x12, 0xc0, 0x06, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, - 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd8, 0x05, 0x92, 0x41, 0x85, 0x05, 0x1a, - 0x82, 0x05, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, - 0x6e, 0x67, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x64, - 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x41, 0x74, 0x20, 0x6d, 0x6f, - 0x73, 0x74, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, - 0x61, 0x6e, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, - 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, - 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x20, 0x63, - 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x61, 0x74, 0x20, - 0x61, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x20, 0x49, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, - 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x65, 0x74, 0x73, 0x20, 0x61, 0x20, 0x6c, 0x61, 0x75, 0x6e, - 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, - 0x79, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x61, 0x6c, - 0x6c, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x77, - 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x6d, 0x61, 0x64, 0x65, 0x20, 0x69, 0x6e, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x69, - 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x77, - 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x6d, 0x61, 0x64, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x2e, 0x20, 0x49, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, - 0x6c, 0x79, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x68, 0x61, 0x64, 0x20, 0x61, 0x20, 0x73, 0x63, 0x68, 0x65, - 0x64, 0x75, 0x6c, 0x65, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, - 0x69, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x68, 0x69, 0x73, - 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, - 0x65, 0x20, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x2e, 0x20, 0x49, 0x66, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x6c, 0x61, 0x75, - 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, - 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x69, 0x73, 0x20, 0x62, 0x65, 0x69, 0x6e, - 0x67, 0x20, 0x73, 0x65, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, - 0x61, 0x6e, 0x64, 0x20, 0x68, 0x61, 0x73, 0x20, 0x61, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, - 0x6c, 0x65, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, - 0x74, 0x68, 0x20, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, - 0x75, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x1a, 0x44, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, - 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, - 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, - 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x92, 0x41, 0x1e, 0x1a, 0x1c, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x17, 0x3a, 0x01, 0x2a, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0xb1, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6c, - 0x61, 0x75, 0x6e, 0x63, 0x68, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x49, 0x92, 0x41, 0x20, 0x1a, 0x1e, 0x52, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, - 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, - 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x12, 0x9d, 0x05, 0x0a, - 0x10, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, - 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xb6, 0x04, 0x92, 0x41, 0x8d, 0x04, 0x1a, 0x8a, 0x04, 0x52, 0x65, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x6c, 0x79, 0x2d, 0x72, 0x75, 0x6e, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, - 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x20, 0x66, 0x61, - 0x69, 0x6c, 0x75, 0x72, 0x65, 0x20, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x20, 0x49, 0x6e, 0x20, - 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x20, 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x20, 0x61, 0x6e, 0x79, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, - 0x74, 0x68, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, - 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x65, 0x78, 0x74, 0x72, 0x65, 0x6d, 0x65, 0x6c, 0x79, - 0x20, 0x75, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x76, - 0x65, 0x72, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x62, 0x79, 0x7a, 0x61, 0x6e, 0x74, - 0x69, 0x6e, 0x65, 0x20, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, - 0x2d, 0x20, 0x4c, 0x6f, 0x73, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x4b, 0x38, 0x73, 0x20, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x62, 0x75, 0x67, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2c, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x2c, 0x20, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, - 0x72, 0x65, 0x61, 0x6d, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x66, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x73, 0x20, 0x28, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x29, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x73, - 0x69, 0x6d, 0x70, 0x6c, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, - 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, - 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x62, 0x65, 0x63, 0x61, 0x75, 0x73, 0x65, 0x20, - 0x6f, 0x66, 0x20, 0x72, 0x65, 0x74, 0x72, 0x79, 0x20, 0x65, 0x78, 0x68, 0x61, 0x75, 0x73, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x63, - 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x69, 0x66, 0x20, 0x74, 0x72, 0x69, 0x65, 0x64, - 0x20, 0x61, 0x67, 0x61, 0x69, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, - 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x12, 0xc2, 0x01, 0x0a, - 0x0c, 0x47, 0x65, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6a, 0x92, 0x41, 0x2a, 0x1a, 0x28, 0x52, 0x65, 0x74, 0x72, - 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, - 0x7d, 0x12, 0xa4, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x01, - 0x2a, 0x1a, 0x35, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xb9, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x89, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x33, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, - 0x12, 0xad, 0x01, 0x0a, 0x12, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x01, 0x2a, 0x2a, 0x35, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x12, 0xd2, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x70, 0x12, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xff, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x79, 0x6e, - 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x12, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x81, 0x01, 0x12, 0x7f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x77, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0xde, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x7b, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x75, 0x12, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xa5, 0x04, 0x0a, 0x19, 0x4c, 0x69, 0x73, - 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, - 0x6f, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xb3, 0x03, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0xac, 0x03, 0x12, 0xa9, 0x03, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, - 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x7d, - 0x12, 0xee, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x75, 0x12, 0x73, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0x7f, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x01, 0x2a, - 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x12, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x25, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x92, 0x41, 0x13, 0x1a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x1a, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x85, 0x01, 0x0a, - 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x37, 0x92, 0x41, 0x1c, - 0x1a, 0x1a, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x65, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x12, 0xdd, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, - 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x92, 0x41, 0x41, - 0x1a, 0x3f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, - 0x70, 0x68, 0x61, 0x73, 0x65, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x73, 0x12, 0xc9, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, - 0x6f, 0x64, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x5f, 0x92, 0x41, 0x3d, 0x1a, 0x3b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x6e, - 0x6f, 0x64, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, - 0x70, 0x68, 0x61, 0x73, 0x65, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x73, - 0x12, 0xc9, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x92, 0x41, 0x3d, - 0x1a, 0x3b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x20, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x70, 0x68, 0x61, 0x73, - 0x65, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0xa9, 0x03, 0x0a, - 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcc, 0x02, 0x92, 0x41, 0x26, 0x1a, - 0x24, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x9c, 0x02, 0x12, 0x99, 0x02, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, - 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x7d, 0x12, 0xd3, 0x02, 0x0a, 0x12, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xef, 0x01, 0x92, - 0x41, 0x38, 0x1a, 0x36, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, - 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, - 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xad, - 0x01, 0x12, 0xaa, 0x01, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x6e, 0x6f, - 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x2f, 0x7b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe0, - 0x03, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0xec, 0x02, 0x92, 0x41, 0x41, 0x1a, 0x3f, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, - 0x76, 0x65, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x20, 0x64, 0x61, 0x74, 0x61, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x61, 0x6e, - 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xa1, 0x02, - 0x12, 0x9e, 0x02, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, - 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, - 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, - 0x7d, 0x12, 0xbf, 0x02, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0xb0, 0x01, 0x92, 0x41, 0x58, 0x1a, 0x56, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, - 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, - 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x1a, 0x4a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, - 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x7d, 0x12, 0x9f, 0x02, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x12, 0x31, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x01, 0x92, 0x41, 0x5a, 0x1a, - 0x58, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, - 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x6f, - 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, - 0x34, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xa9, 0x02, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x92, 0x41, 0x58, 0x1a, 0x56, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, - 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, - 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x2a, 0x34, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x12, 0xff, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, - 0x01, 0x92, 0x41, 0x45, 0x1a, 0x43, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, - 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, - 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, - 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, - 0x01, 0x2a, 0x1a, 0x2f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, - 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x7d, 0x12, 0xe9, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x76, 0x92, 0x41, 0x47, 0x1a, 0x45, 0x52, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, - 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, - 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x12, - 0xf3, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x92, 0x41, - 0x45, 0x1a, 0x43, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, - 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x2a, - 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x12, 0xce, 0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xce, 0x01, 0x92, 0x41, 0x66, 0x1a, 0x64, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, - 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, - 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x3a, 0x01, 0x2a, 0x1a, 0x5a, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, - 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x61, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, - 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x7d, 0x12, 0xa3, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x12, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, - 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xac, 0x01, - 0x92, 0x41, 0x68, 0x1a, 0x66, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, - 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, - 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, - 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x3b, 0x12, 0x39, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x7d, 0x12, 0xad, 0x02, 0x0a, - 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, - 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, - 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x92, - 0x41, 0x66, 0x1a, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, - 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, - 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x63, 0x6f, 0x6d, - 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x3a, 0x01, - 0x2a, 0x2a, 0x39, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, - 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x7d, 0x12, 0xe1, 0x01, 0x0a, - 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, - 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x92, 0x41, 0x3e, 0x1a, 0x3c, - 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, - 0x6f, 0x66, 0x20, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, - 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x74, 0x63, - 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, - 0x12, 0x80, 0x02, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x22, - 0xa1, 0x01, 0x92, 0x41, 0x5d, 0x1a, 0x5b, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, - 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20, 0x73, 0x68, - 0x61, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x20, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x2c, 0x20, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, - 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x64, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, - 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x74, 0x92, 0x41, 0x20, 0x1a, - 0x1e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x4e, 0x61, 0x6d, 0x65, - 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, - 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, - 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, - 0x12, 0xf3, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x64, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x92, 0x41, - 0x31, 0x1a, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, - 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x3a, 0x01, 0x2a, 0x1a, 0x49, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, - 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, - 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x92, 0x41, - 0x50, 0x1a, 0x4e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, - 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x20, 0x20, 0x69, 0x6e, - 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0xfe, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, - 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xa0, 0x01, 0x92, 0x41, 0x36, 0x1a, 0x34, 0x52, 0x65, - 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, - 0x6e, 0x67, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x5f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, - 0x31, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, - 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xdc, 0x02, 0x0a, 0x17, 0x4c, 0x69, - 0x73, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xeb, 0x01, 0x92, 0x41, 0x47, - 0x1a, 0x45, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, - 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x9a, 0x01, 0x5a, 0x47, - 0x12, 0x45, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, - 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xff, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x12, 0x32, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x92, 0x41, 0x37, 0x1a, 0x35, - 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, - 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, - 0x67, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, - 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x42, 0x0a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, - 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_flyteidl_service_admin_proto_goTypes = []interface{}{ - (*admin.TaskCreateRequest)(nil), // 0: flyteidl.admin.TaskCreateRequest - (*admin.ObjectGetRequest)(nil), // 1: flyteidl.admin.ObjectGetRequest - (*admin.NamedEntityIdentifierListRequest)(nil), // 2: flyteidl.admin.NamedEntityIdentifierListRequest - (*admin.ResourceListRequest)(nil), // 3: flyteidl.admin.ResourceListRequest - (*admin.WorkflowCreateRequest)(nil), // 4: flyteidl.admin.WorkflowCreateRequest - (*admin.LaunchPlanCreateRequest)(nil), // 5: flyteidl.admin.LaunchPlanCreateRequest - (*admin.ActiveLaunchPlanRequest)(nil), // 6: flyteidl.admin.ActiveLaunchPlanRequest - (*admin.ActiveLaunchPlanListRequest)(nil), // 7: flyteidl.admin.ActiveLaunchPlanListRequest - (*admin.LaunchPlanUpdateRequest)(nil), // 8: flyteidl.admin.LaunchPlanUpdateRequest - (*admin.ExecutionCreateRequest)(nil), // 9: flyteidl.admin.ExecutionCreateRequest - (*admin.ExecutionRelaunchRequest)(nil), // 10: flyteidl.admin.ExecutionRelaunchRequest - (*admin.ExecutionRecoverRequest)(nil), // 11: flyteidl.admin.ExecutionRecoverRequest - (*admin.WorkflowExecutionGetRequest)(nil), // 12: flyteidl.admin.WorkflowExecutionGetRequest - (*admin.ExecutionUpdateRequest)(nil), // 13: flyteidl.admin.ExecutionUpdateRequest - (*admin.WorkflowExecutionGetDataRequest)(nil), // 14: flyteidl.admin.WorkflowExecutionGetDataRequest - (*admin.ExecutionTerminateRequest)(nil), // 15: flyteidl.admin.ExecutionTerminateRequest - (*admin.NodeExecutionGetRequest)(nil), // 16: flyteidl.admin.NodeExecutionGetRequest - (*admin.GetDynamicNodeWorkflowRequest)(nil), // 17: flyteidl.admin.GetDynamicNodeWorkflowRequest - (*admin.NodeExecutionListRequest)(nil), // 18: flyteidl.admin.NodeExecutionListRequest - (*admin.NodeExecutionForTaskListRequest)(nil), // 19: flyteidl.admin.NodeExecutionForTaskListRequest - (*admin.NodeExecutionGetDataRequest)(nil), // 20: flyteidl.admin.NodeExecutionGetDataRequest - (*admin.ProjectRegisterRequest)(nil), // 21: flyteidl.admin.ProjectRegisterRequest - (*admin.Project)(nil), // 22: flyteidl.admin.Project - (*admin.ProjectListRequest)(nil), // 23: flyteidl.admin.ProjectListRequest - (*admin.WorkflowExecutionEventRequest)(nil), // 24: flyteidl.admin.WorkflowExecutionEventRequest - (*admin.NodeExecutionEventRequest)(nil), // 25: flyteidl.admin.NodeExecutionEventRequest - (*admin.TaskExecutionEventRequest)(nil), // 26: flyteidl.admin.TaskExecutionEventRequest - (*admin.TaskExecutionGetRequest)(nil), // 27: flyteidl.admin.TaskExecutionGetRequest - (*admin.TaskExecutionListRequest)(nil), // 28: flyteidl.admin.TaskExecutionListRequest - (*admin.TaskExecutionGetDataRequest)(nil), // 29: flyteidl.admin.TaskExecutionGetDataRequest - (*admin.ProjectDomainAttributesUpdateRequest)(nil), // 30: flyteidl.admin.ProjectDomainAttributesUpdateRequest - (*admin.ProjectDomainAttributesGetRequest)(nil), // 31: flyteidl.admin.ProjectDomainAttributesGetRequest - (*admin.ProjectDomainAttributesDeleteRequest)(nil), // 32: flyteidl.admin.ProjectDomainAttributesDeleteRequest - (*admin.ProjectAttributesUpdateRequest)(nil), // 33: flyteidl.admin.ProjectAttributesUpdateRequest - (*admin.ProjectAttributesGetRequest)(nil), // 34: flyteidl.admin.ProjectAttributesGetRequest - (*admin.ProjectAttributesDeleteRequest)(nil), // 35: flyteidl.admin.ProjectAttributesDeleteRequest - (*admin.WorkflowAttributesUpdateRequest)(nil), // 36: flyteidl.admin.WorkflowAttributesUpdateRequest - (*admin.WorkflowAttributesGetRequest)(nil), // 37: flyteidl.admin.WorkflowAttributesGetRequest - (*admin.WorkflowAttributesDeleteRequest)(nil), // 38: flyteidl.admin.WorkflowAttributesDeleteRequest - (*admin.ListMatchableAttributesRequest)(nil), // 39: flyteidl.admin.ListMatchableAttributesRequest - (*admin.NamedEntityListRequest)(nil), // 40: flyteidl.admin.NamedEntityListRequest - (*admin.NamedEntityGetRequest)(nil), // 41: flyteidl.admin.NamedEntityGetRequest - (*admin.NamedEntityUpdateRequest)(nil), // 42: flyteidl.admin.NamedEntityUpdateRequest - (*admin.GetVersionRequest)(nil), // 43: flyteidl.admin.GetVersionRequest - (*admin.DescriptionEntityListRequest)(nil), // 44: flyteidl.admin.DescriptionEntityListRequest - (*admin.WorkflowExecutionGetMetricsRequest)(nil), // 45: flyteidl.admin.WorkflowExecutionGetMetricsRequest - (*admin.TaskCreateResponse)(nil), // 46: flyteidl.admin.TaskCreateResponse - (*admin.Task)(nil), // 47: flyteidl.admin.Task - (*admin.NamedEntityIdentifierList)(nil), // 48: flyteidl.admin.NamedEntityIdentifierList - (*admin.TaskList)(nil), // 49: flyteidl.admin.TaskList - (*admin.WorkflowCreateResponse)(nil), // 50: flyteidl.admin.WorkflowCreateResponse - (*admin.Workflow)(nil), // 51: flyteidl.admin.Workflow - (*admin.WorkflowList)(nil), // 52: flyteidl.admin.WorkflowList - (*admin.LaunchPlanCreateResponse)(nil), // 53: flyteidl.admin.LaunchPlanCreateResponse - (*admin.LaunchPlan)(nil), // 54: flyteidl.admin.LaunchPlan - (*admin.LaunchPlanList)(nil), // 55: flyteidl.admin.LaunchPlanList - (*admin.LaunchPlanUpdateResponse)(nil), // 56: flyteidl.admin.LaunchPlanUpdateResponse - (*admin.ExecutionCreateResponse)(nil), // 57: flyteidl.admin.ExecutionCreateResponse - (*admin.Execution)(nil), // 58: flyteidl.admin.Execution - (*admin.ExecutionUpdateResponse)(nil), // 59: flyteidl.admin.ExecutionUpdateResponse - (*admin.WorkflowExecutionGetDataResponse)(nil), // 60: flyteidl.admin.WorkflowExecutionGetDataResponse - (*admin.ExecutionList)(nil), // 61: flyteidl.admin.ExecutionList - (*admin.ExecutionTerminateResponse)(nil), // 62: flyteidl.admin.ExecutionTerminateResponse - (*admin.NodeExecution)(nil), // 63: flyteidl.admin.NodeExecution - (*admin.DynamicNodeWorkflowResponse)(nil), // 64: flyteidl.admin.DynamicNodeWorkflowResponse - (*admin.NodeExecutionList)(nil), // 65: flyteidl.admin.NodeExecutionList - (*admin.NodeExecutionGetDataResponse)(nil), // 66: flyteidl.admin.NodeExecutionGetDataResponse - (*admin.ProjectRegisterResponse)(nil), // 67: flyteidl.admin.ProjectRegisterResponse - (*admin.ProjectUpdateResponse)(nil), // 68: flyteidl.admin.ProjectUpdateResponse - (*admin.Projects)(nil), // 69: flyteidl.admin.Projects - (*admin.WorkflowExecutionEventResponse)(nil), // 70: flyteidl.admin.WorkflowExecutionEventResponse - (*admin.NodeExecutionEventResponse)(nil), // 71: flyteidl.admin.NodeExecutionEventResponse - (*admin.TaskExecutionEventResponse)(nil), // 72: flyteidl.admin.TaskExecutionEventResponse - (*admin.TaskExecution)(nil), // 73: flyteidl.admin.TaskExecution - (*admin.TaskExecutionList)(nil), // 74: flyteidl.admin.TaskExecutionList - (*admin.TaskExecutionGetDataResponse)(nil), // 75: flyteidl.admin.TaskExecutionGetDataResponse - (*admin.ProjectDomainAttributesUpdateResponse)(nil), // 76: flyteidl.admin.ProjectDomainAttributesUpdateResponse - (*admin.ProjectDomainAttributesGetResponse)(nil), // 77: flyteidl.admin.ProjectDomainAttributesGetResponse - (*admin.ProjectDomainAttributesDeleteResponse)(nil), // 78: flyteidl.admin.ProjectDomainAttributesDeleteResponse - (*admin.ProjectAttributesUpdateResponse)(nil), // 79: flyteidl.admin.ProjectAttributesUpdateResponse - (*admin.ProjectAttributesGetResponse)(nil), // 80: flyteidl.admin.ProjectAttributesGetResponse - (*admin.ProjectAttributesDeleteResponse)(nil), // 81: flyteidl.admin.ProjectAttributesDeleteResponse - (*admin.WorkflowAttributesUpdateResponse)(nil), // 82: flyteidl.admin.WorkflowAttributesUpdateResponse - (*admin.WorkflowAttributesGetResponse)(nil), // 83: flyteidl.admin.WorkflowAttributesGetResponse - (*admin.WorkflowAttributesDeleteResponse)(nil), // 84: flyteidl.admin.WorkflowAttributesDeleteResponse - (*admin.ListMatchableAttributesResponse)(nil), // 85: flyteidl.admin.ListMatchableAttributesResponse - (*admin.NamedEntityList)(nil), // 86: flyteidl.admin.NamedEntityList - (*admin.NamedEntity)(nil), // 87: flyteidl.admin.NamedEntity - (*admin.NamedEntityUpdateResponse)(nil), // 88: flyteidl.admin.NamedEntityUpdateResponse - (*admin.GetVersionResponse)(nil), // 89: flyteidl.admin.GetVersionResponse - (*admin.DescriptionEntity)(nil), // 90: flyteidl.admin.DescriptionEntity - (*admin.DescriptionEntityList)(nil), // 91: flyteidl.admin.DescriptionEntityList - (*admin.WorkflowExecutionGetMetricsResponse)(nil), // 92: flyteidl.admin.WorkflowExecutionGetMetricsResponse -} -var file_flyteidl_service_admin_proto_depIdxs = []int32{ - 0, // 0: flyteidl.service.AdminService.CreateTask:input_type -> flyteidl.admin.TaskCreateRequest - 1, // 1: flyteidl.service.AdminService.GetTask:input_type -> flyteidl.admin.ObjectGetRequest - 2, // 2: flyteidl.service.AdminService.ListTaskIds:input_type -> flyteidl.admin.NamedEntityIdentifierListRequest - 3, // 3: flyteidl.service.AdminService.ListTasks:input_type -> flyteidl.admin.ResourceListRequest - 4, // 4: flyteidl.service.AdminService.CreateWorkflow:input_type -> flyteidl.admin.WorkflowCreateRequest - 1, // 5: flyteidl.service.AdminService.GetWorkflow:input_type -> flyteidl.admin.ObjectGetRequest - 2, // 6: flyteidl.service.AdminService.ListWorkflowIds:input_type -> flyteidl.admin.NamedEntityIdentifierListRequest - 3, // 7: flyteidl.service.AdminService.ListWorkflows:input_type -> flyteidl.admin.ResourceListRequest - 5, // 8: flyteidl.service.AdminService.CreateLaunchPlan:input_type -> flyteidl.admin.LaunchPlanCreateRequest - 1, // 9: flyteidl.service.AdminService.GetLaunchPlan:input_type -> flyteidl.admin.ObjectGetRequest - 6, // 10: flyteidl.service.AdminService.GetActiveLaunchPlan:input_type -> flyteidl.admin.ActiveLaunchPlanRequest - 7, // 11: flyteidl.service.AdminService.ListActiveLaunchPlans:input_type -> flyteidl.admin.ActiveLaunchPlanListRequest - 2, // 12: flyteidl.service.AdminService.ListLaunchPlanIds:input_type -> flyteidl.admin.NamedEntityIdentifierListRequest - 3, // 13: flyteidl.service.AdminService.ListLaunchPlans:input_type -> flyteidl.admin.ResourceListRequest - 8, // 14: flyteidl.service.AdminService.UpdateLaunchPlan:input_type -> flyteidl.admin.LaunchPlanUpdateRequest - 9, // 15: flyteidl.service.AdminService.CreateExecution:input_type -> flyteidl.admin.ExecutionCreateRequest - 10, // 16: flyteidl.service.AdminService.RelaunchExecution:input_type -> flyteidl.admin.ExecutionRelaunchRequest - 11, // 17: flyteidl.service.AdminService.RecoverExecution:input_type -> flyteidl.admin.ExecutionRecoverRequest - 12, // 18: flyteidl.service.AdminService.GetExecution:input_type -> flyteidl.admin.WorkflowExecutionGetRequest - 13, // 19: flyteidl.service.AdminService.UpdateExecution:input_type -> flyteidl.admin.ExecutionUpdateRequest - 14, // 20: flyteidl.service.AdminService.GetExecutionData:input_type -> flyteidl.admin.WorkflowExecutionGetDataRequest - 3, // 21: flyteidl.service.AdminService.ListExecutions:input_type -> flyteidl.admin.ResourceListRequest - 15, // 22: flyteidl.service.AdminService.TerminateExecution:input_type -> flyteidl.admin.ExecutionTerminateRequest - 16, // 23: flyteidl.service.AdminService.GetNodeExecution:input_type -> flyteidl.admin.NodeExecutionGetRequest - 17, // 24: flyteidl.service.AdminService.GetDynamicNodeWorkflow:input_type -> flyteidl.admin.GetDynamicNodeWorkflowRequest - 18, // 25: flyteidl.service.AdminService.ListNodeExecutions:input_type -> flyteidl.admin.NodeExecutionListRequest - 19, // 26: flyteidl.service.AdminService.ListNodeExecutionsForTask:input_type -> flyteidl.admin.NodeExecutionForTaskListRequest - 20, // 27: flyteidl.service.AdminService.GetNodeExecutionData:input_type -> flyteidl.admin.NodeExecutionGetDataRequest - 21, // 28: flyteidl.service.AdminService.RegisterProject:input_type -> flyteidl.admin.ProjectRegisterRequest - 22, // 29: flyteidl.service.AdminService.UpdateProject:input_type -> flyteidl.admin.Project - 23, // 30: flyteidl.service.AdminService.ListProjects:input_type -> flyteidl.admin.ProjectListRequest - 24, // 31: flyteidl.service.AdminService.CreateWorkflowEvent:input_type -> flyteidl.admin.WorkflowExecutionEventRequest - 25, // 32: flyteidl.service.AdminService.CreateNodeEvent:input_type -> flyteidl.admin.NodeExecutionEventRequest - 26, // 33: flyteidl.service.AdminService.CreateTaskEvent:input_type -> flyteidl.admin.TaskExecutionEventRequest - 27, // 34: flyteidl.service.AdminService.GetTaskExecution:input_type -> flyteidl.admin.TaskExecutionGetRequest - 28, // 35: flyteidl.service.AdminService.ListTaskExecutions:input_type -> flyteidl.admin.TaskExecutionListRequest - 29, // 36: flyteidl.service.AdminService.GetTaskExecutionData:input_type -> flyteidl.admin.TaskExecutionGetDataRequest - 30, // 37: flyteidl.service.AdminService.UpdateProjectDomainAttributes:input_type -> flyteidl.admin.ProjectDomainAttributesUpdateRequest - 31, // 38: flyteidl.service.AdminService.GetProjectDomainAttributes:input_type -> flyteidl.admin.ProjectDomainAttributesGetRequest - 32, // 39: flyteidl.service.AdminService.DeleteProjectDomainAttributes:input_type -> flyteidl.admin.ProjectDomainAttributesDeleteRequest - 33, // 40: flyteidl.service.AdminService.UpdateProjectAttributes:input_type -> flyteidl.admin.ProjectAttributesUpdateRequest - 34, // 41: flyteidl.service.AdminService.GetProjectAttributes:input_type -> flyteidl.admin.ProjectAttributesGetRequest - 35, // 42: flyteidl.service.AdminService.DeleteProjectAttributes:input_type -> flyteidl.admin.ProjectAttributesDeleteRequest - 36, // 43: flyteidl.service.AdminService.UpdateWorkflowAttributes:input_type -> flyteidl.admin.WorkflowAttributesUpdateRequest - 37, // 44: flyteidl.service.AdminService.GetWorkflowAttributes:input_type -> flyteidl.admin.WorkflowAttributesGetRequest - 38, // 45: flyteidl.service.AdminService.DeleteWorkflowAttributes:input_type -> flyteidl.admin.WorkflowAttributesDeleteRequest - 39, // 46: flyteidl.service.AdminService.ListMatchableAttributes:input_type -> flyteidl.admin.ListMatchableAttributesRequest - 40, // 47: flyteidl.service.AdminService.ListNamedEntities:input_type -> flyteidl.admin.NamedEntityListRequest - 41, // 48: flyteidl.service.AdminService.GetNamedEntity:input_type -> flyteidl.admin.NamedEntityGetRequest - 42, // 49: flyteidl.service.AdminService.UpdateNamedEntity:input_type -> flyteidl.admin.NamedEntityUpdateRequest - 43, // 50: flyteidl.service.AdminService.GetVersion:input_type -> flyteidl.admin.GetVersionRequest - 1, // 51: flyteidl.service.AdminService.GetDescriptionEntity:input_type -> flyteidl.admin.ObjectGetRequest - 44, // 52: flyteidl.service.AdminService.ListDescriptionEntities:input_type -> flyteidl.admin.DescriptionEntityListRequest - 45, // 53: flyteidl.service.AdminService.GetExecutionMetrics:input_type -> flyteidl.admin.WorkflowExecutionGetMetricsRequest - 46, // 54: flyteidl.service.AdminService.CreateTask:output_type -> flyteidl.admin.TaskCreateResponse - 47, // 55: flyteidl.service.AdminService.GetTask:output_type -> flyteidl.admin.Task - 48, // 56: flyteidl.service.AdminService.ListTaskIds:output_type -> flyteidl.admin.NamedEntityIdentifierList - 49, // 57: flyteidl.service.AdminService.ListTasks:output_type -> flyteidl.admin.TaskList - 50, // 58: flyteidl.service.AdminService.CreateWorkflow:output_type -> flyteidl.admin.WorkflowCreateResponse - 51, // 59: flyteidl.service.AdminService.GetWorkflow:output_type -> flyteidl.admin.Workflow - 48, // 60: flyteidl.service.AdminService.ListWorkflowIds:output_type -> flyteidl.admin.NamedEntityIdentifierList - 52, // 61: flyteidl.service.AdminService.ListWorkflows:output_type -> flyteidl.admin.WorkflowList - 53, // 62: flyteidl.service.AdminService.CreateLaunchPlan:output_type -> flyteidl.admin.LaunchPlanCreateResponse - 54, // 63: flyteidl.service.AdminService.GetLaunchPlan:output_type -> flyteidl.admin.LaunchPlan - 54, // 64: flyteidl.service.AdminService.GetActiveLaunchPlan:output_type -> flyteidl.admin.LaunchPlan - 55, // 65: flyteidl.service.AdminService.ListActiveLaunchPlans:output_type -> flyteidl.admin.LaunchPlanList - 48, // 66: flyteidl.service.AdminService.ListLaunchPlanIds:output_type -> flyteidl.admin.NamedEntityIdentifierList - 55, // 67: flyteidl.service.AdminService.ListLaunchPlans:output_type -> flyteidl.admin.LaunchPlanList - 56, // 68: flyteidl.service.AdminService.UpdateLaunchPlan:output_type -> flyteidl.admin.LaunchPlanUpdateResponse - 57, // 69: flyteidl.service.AdminService.CreateExecution:output_type -> flyteidl.admin.ExecutionCreateResponse - 57, // 70: flyteidl.service.AdminService.RelaunchExecution:output_type -> flyteidl.admin.ExecutionCreateResponse - 57, // 71: flyteidl.service.AdminService.RecoverExecution:output_type -> flyteidl.admin.ExecutionCreateResponse - 58, // 72: flyteidl.service.AdminService.GetExecution:output_type -> flyteidl.admin.Execution - 59, // 73: flyteidl.service.AdminService.UpdateExecution:output_type -> flyteidl.admin.ExecutionUpdateResponse - 60, // 74: flyteidl.service.AdminService.GetExecutionData:output_type -> flyteidl.admin.WorkflowExecutionGetDataResponse - 61, // 75: flyteidl.service.AdminService.ListExecutions:output_type -> flyteidl.admin.ExecutionList - 62, // 76: flyteidl.service.AdminService.TerminateExecution:output_type -> flyteidl.admin.ExecutionTerminateResponse - 63, // 77: flyteidl.service.AdminService.GetNodeExecution:output_type -> flyteidl.admin.NodeExecution - 64, // 78: flyteidl.service.AdminService.GetDynamicNodeWorkflow:output_type -> flyteidl.admin.DynamicNodeWorkflowResponse - 65, // 79: flyteidl.service.AdminService.ListNodeExecutions:output_type -> flyteidl.admin.NodeExecutionList - 65, // 80: flyteidl.service.AdminService.ListNodeExecutionsForTask:output_type -> flyteidl.admin.NodeExecutionList - 66, // 81: flyteidl.service.AdminService.GetNodeExecutionData:output_type -> flyteidl.admin.NodeExecutionGetDataResponse - 67, // 82: flyteidl.service.AdminService.RegisterProject:output_type -> flyteidl.admin.ProjectRegisterResponse - 68, // 83: flyteidl.service.AdminService.UpdateProject:output_type -> flyteidl.admin.ProjectUpdateResponse - 69, // 84: flyteidl.service.AdminService.ListProjects:output_type -> flyteidl.admin.Projects - 70, // 85: flyteidl.service.AdminService.CreateWorkflowEvent:output_type -> flyteidl.admin.WorkflowExecutionEventResponse - 71, // 86: flyteidl.service.AdminService.CreateNodeEvent:output_type -> flyteidl.admin.NodeExecutionEventResponse - 72, // 87: flyteidl.service.AdminService.CreateTaskEvent:output_type -> flyteidl.admin.TaskExecutionEventResponse - 73, // 88: flyteidl.service.AdminService.GetTaskExecution:output_type -> flyteidl.admin.TaskExecution - 74, // 89: flyteidl.service.AdminService.ListTaskExecutions:output_type -> flyteidl.admin.TaskExecutionList - 75, // 90: flyteidl.service.AdminService.GetTaskExecutionData:output_type -> flyteidl.admin.TaskExecutionGetDataResponse - 76, // 91: flyteidl.service.AdminService.UpdateProjectDomainAttributes:output_type -> flyteidl.admin.ProjectDomainAttributesUpdateResponse - 77, // 92: flyteidl.service.AdminService.GetProjectDomainAttributes:output_type -> flyteidl.admin.ProjectDomainAttributesGetResponse - 78, // 93: flyteidl.service.AdminService.DeleteProjectDomainAttributes:output_type -> flyteidl.admin.ProjectDomainAttributesDeleteResponse - 79, // 94: flyteidl.service.AdminService.UpdateProjectAttributes:output_type -> flyteidl.admin.ProjectAttributesUpdateResponse - 80, // 95: flyteidl.service.AdminService.GetProjectAttributes:output_type -> flyteidl.admin.ProjectAttributesGetResponse - 81, // 96: flyteidl.service.AdminService.DeleteProjectAttributes:output_type -> flyteidl.admin.ProjectAttributesDeleteResponse - 82, // 97: flyteidl.service.AdminService.UpdateWorkflowAttributes:output_type -> flyteidl.admin.WorkflowAttributesUpdateResponse - 83, // 98: flyteidl.service.AdminService.GetWorkflowAttributes:output_type -> flyteidl.admin.WorkflowAttributesGetResponse - 84, // 99: flyteidl.service.AdminService.DeleteWorkflowAttributes:output_type -> flyteidl.admin.WorkflowAttributesDeleteResponse - 85, // 100: flyteidl.service.AdminService.ListMatchableAttributes:output_type -> flyteidl.admin.ListMatchableAttributesResponse - 86, // 101: flyteidl.service.AdminService.ListNamedEntities:output_type -> flyteidl.admin.NamedEntityList - 87, // 102: flyteidl.service.AdminService.GetNamedEntity:output_type -> flyteidl.admin.NamedEntity - 88, // 103: flyteidl.service.AdminService.UpdateNamedEntity:output_type -> flyteidl.admin.NamedEntityUpdateResponse - 89, // 104: flyteidl.service.AdminService.GetVersion:output_type -> flyteidl.admin.GetVersionResponse - 90, // 105: flyteidl.service.AdminService.GetDescriptionEntity:output_type -> flyteidl.admin.DescriptionEntity - 91, // 106: flyteidl.service.AdminService.ListDescriptionEntities:output_type -> flyteidl.admin.DescriptionEntityList - 92, // 107: flyteidl.service.AdminService.GetExecutionMetrics:output_type -> flyteidl.admin.WorkflowExecutionGetMetricsResponse - 54, // [54:108] is the sub-list for method output_type - 0, // [0:54] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_admin_proto_init() } -func file_flyteidl_service_admin_proto_init() { - if File_flyteidl_service_admin_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_admin_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_service_admin_proto_goTypes, - DependencyIndexes: file_flyteidl_service_admin_proto_depIdxs, - }.Build() - File_flyteidl_service_admin_proto = out.File - file_flyteidl_service_admin_proto_rawDesc = nil - file_flyteidl_service_admin_proto_goTypes = nil - file_flyteidl_service_admin_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go deleted file mode 100644 index 2f96e962f9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go +++ /dev/null @@ -1,2187 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/admin.proto - -package service - -import ( - context "context" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - AdminService_CreateTask_FullMethodName = "/flyteidl.service.AdminService/CreateTask" - AdminService_GetTask_FullMethodName = "/flyteidl.service.AdminService/GetTask" - AdminService_ListTaskIds_FullMethodName = "/flyteidl.service.AdminService/ListTaskIds" - AdminService_ListTasks_FullMethodName = "/flyteidl.service.AdminService/ListTasks" - AdminService_CreateWorkflow_FullMethodName = "/flyteidl.service.AdminService/CreateWorkflow" - AdminService_GetWorkflow_FullMethodName = "/flyteidl.service.AdminService/GetWorkflow" - AdminService_ListWorkflowIds_FullMethodName = "/flyteidl.service.AdminService/ListWorkflowIds" - AdminService_ListWorkflows_FullMethodName = "/flyteidl.service.AdminService/ListWorkflows" - AdminService_CreateLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/CreateLaunchPlan" - AdminService_GetLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/GetLaunchPlan" - AdminService_GetActiveLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/GetActiveLaunchPlan" - AdminService_ListActiveLaunchPlans_FullMethodName = "/flyteidl.service.AdminService/ListActiveLaunchPlans" - AdminService_ListLaunchPlanIds_FullMethodName = "/flyteidl.service.AdminService/ListLaunchPlanIds" - AdminService_ListLaunchPlans_FullMethodName = "/flyteidl.service.AdminService/ListLaunchPlans" - AdminService_UpdateLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/UpdateLaunchPlan" - AdminService_CreateExecution_FullMethodName = "/flyteidl.service.AdminService/CreateExecution" - AdminService_RelaunchExecution_FullMethodName = "/flyteidl.service.AdminService/RelaunchExecution" - AdminService_RecoverExecution_FullMethodName = "/flyteidl.service.AdminService/RecoverExecution" - AdminService_GetExecution_FullMethodName = "/flyteidl.service.AdminService/GetExecution" - AdminService_UpdateExecution_FullMethodName = "/flyteidl.service.AdminService/UpdateExecution" - AdminService_GetExecutionData_FullMethodName = "/flyteidl.service.AdminService/GetExecutionData" - AdminService_ListExecutions_FullMethodName = "/flyteidl.service.AdminService/ListExecutions" - AdminService_TerminateExecution_FullMethodName = "/flyteidl.service.AdminService/TerminateExecution" - AdminService_GetNodeExecution_FullMethodName = "/flyteidl.service.AdminService/GetNodeExecution" - AdminService_GetDynamicNodeWorkflow_FullMethodName = "/flyteidl.service.AdminService/GetDynamicNodeWorkflow" - AdminService_ListNodeExecutions_FullMethodName = "/flyteidl.service.AdminService/ListNodeExecutions" - AdminService_ListNodeExecutionsForTask_FullMethodName = "/flyteidl.service.AdminService/ListNodeExecutionsForTask" - AdminService_GetNodeExecutionData_FullMethodName = "/flyteidl.service.AdminService/GetNodeExecutionData" - AdminService_RegisterProject_FullMethodName = "/flyteidl.service.AdminService/RegisterProject" - AdminService_UpdateProject_FullMethodName = "/flyteidl.service.AdminService/UpdateProject" - AdminService_ListProjects_FullMethodName = "/flyteidl.service.AdminService/ListProjects" - AdminService_CreateWorkflowEvent_FullMethodName = "/flyteidl.service.AdminService/CreateWorkflowEvent" - AdminService_CreateNodeEvent_FullMethodName = "/flyteidl.service.AdminService/CreateNodeEvent" - AdminService_CreateTaskEvent_FullMethodName = "/flyteidl.service.AdminService/CreateTaskEvent" - AdminService_GetTaskExecution_FullMethodName = "/flyteidl.service.AdminService/GetTaskExecution" - AdminService_ListTaskExecutions_FullMethodName = "/flyteidl.service.AdminService/ListTaskExecutions" - AdminService_GetTaskExecutionData_FullMethodName = "/flyteidl.service.AdminService/GetTaskExecutionData" - AdminService_UpdateProjectDomainAttributes_FullMethodName = "/flyteidl.service.AdminService/UpdateProjectDomainAttributes" - AdminService_GetProjectDomainAttributes_FullMethodName = "/flyteidl.service.AdminService/GetProjectDomainAttributes" - AdminService_DeleteProjectDomainAttributes_FullMethodName = "/flyteidl.service.AdminService/DeleteProjectDomainAttributes" - AdminService_UpdateProjectAttributes_FullMethodName = "/flyteidl.service.AdminService/UpdateProjectAttributes" - AdminService_GetProjectAttributes_FullMethodName = "/flyteidl.service.AdminService/GetProjectAttributes" - AdminService_DeleteProjectAttributes_FullMethodName = "/flyteidl.service.AdminService/DeleteProjectAttributes" - AdminService_UpdateWorkflowAttributes_FullMethodName = "/flyteidl.service.AdminService/UpdateWorkflowAttributes" - AdminService_GetWorkflowAttributes_FullMethodName = "/flyteidl.service.AdminService/GetWorkflowAttributes" - AdminService_DeleteWorkflowAttributes_FullMethodName = "/flyteidl.service.AdminService/DeleteWorkflowAttributes" - AdminService_ListMatchableAttributes_FullMethodName = "/flyteidl.service.AdminService/ListMatchableAttributes" - AdminService_ListNamedEntities_FullMethodName = "/flyteidl.service.AdminService/ListNamedEntities" - AdminService_GetNamedEntity_FullMethodName = "/flyteidl.service.AdminService/GetNamedEntity" - AdminService_UpdateNamedEntity_FullMethodName = "/flyteidl.service.AdminService/UpdateNamedEntity" - AdminService_GetVersion_FullMethodName = "/flyteidl.service.AdminService/GetVersion" - AdminService_GetDescriptionEntity_FullMethodName = "/flyteidl.service.AdminService/GetDescriptionEntity" - AdminService_ListDescriptionEntities_FullMethodName = "/flyteidl.service.AdminService/ListDescriptionEntities" - AdminService_GetExecutionMetrics_FullMethodName = "/flyteidl.service.AdminService/GetExecutionMetrics" -) - -// AdminServiceClient is the client API for AdminService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type AdminServiceClient interface { - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) - // Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. - GetDynamicNodeWorkflow(ctx context.Context, in *admin.GetDynamicNodeWorkflowRequest, opts ...grpc.CallOption) (*admin.DynamicNodeWorkflowResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) - GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) -} - -type adminServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient { - return &adminServiceClient{cc} -} - -func (c *adminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) { - out := new(admin.TaskCreateResponse) - err := c.cc.Invoke(ctx, AdminService_CreateTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) { - out := new(admin.Task) - err := c.cc.Invoke(ctx, AdminService_GetTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { - out := new(admin.NamedEntityIdentifierList) - err := c.cc.Invoke(ctx, AdminService_ListTaskIds_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) { - out := new(admin.TaskList) - err := c.cc.Invoke(ctx, AdminService_ListTasks_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) { - out := new(admin.WorkflowCreateResponse) - err := c.cc.Invoke(ctx, AdminService_CreateWorkflow_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) { - out := new(admin.Workflow) - err := c.cc.Invoke(ctx, AdminService_GetWorkflow_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { - out := new(admin.NamedEntityIdentifierList) - err := c.cc.Invoke(ctx, AdminService_ListWorkflowIds_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) { - out := new(admin.WorkflowList) - err := c.cc.Invoke(ctx, AdminService_ListWorkflows_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) { - out := new(admin.LaunchPlanCreateResponse) - err := c.cc.Invoke(ctx, AdminService_CreateLaunchPlan_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { - out := new(admin.LaunchPlan) - err := c.cc.Invoke(ctx, AdminService_GetLaunchPlan_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { - out := new(admin.LaunchPlan) - err := c.cc.Invoke(ctx, AdminService_GetActiveLaunchPlan_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { - out := new(admin.LaunchPlanList) - err := c.cc.Invoke(ctx, AdminService_ListActiveLaunchPlans_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { - out := new(admin.NamedEntityIdentifierList) - err := c.cc.Invoke(ctx, AdminService_ListLaunchPlanIds_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { - out := new(admin.LaunchPlanList) - err := c.cc.Invoke(ctx, AdminService_ListLaunchPlans_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) { - out := new(admin.LaunchPlanUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateLaunchPlan_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { - out := new(admin.ExecutionCreateResponse) - err := c.cc.Invoke(ctx, AdminService_CreateExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { - out := new(admin.ExecutionCreateResponse) - err := c.cc.Invoke(ctx, AdminService_RelaunchExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { - out := new(admin.ExecutionCreateResponse) - err := c.cc.Invoke(ctx, AdminService_RecoverExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) { - out := new(admin.Execution) - err := c.cc.Invoke(ctx, AdminService_GetExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) { - out := new(admin.ExecutionUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) { - out := new(admin.WorkflowExecutionGetDataResponse) - err := c.cc.Invoke(ctx, AdminService_GetExecutionData_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) { - out := new(admin.ExecutionList) - err := c.cc.Invoke(ctx, AdminService_ListExecutions_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) { - out := new(admin.ExecutionTerminateResponse) - err := c.cc.Invoke(ctx, AdminService_TerminateExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) { - out := new(admin.NodeExecution) - err := c.cc.Invoke(ctx, AdminService_GetNodeExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDynamicNodeWorkflow(ctx context.Context, in *admin.GetDynamicNodeWorkflowRequest, opts ...grpc.CallOption) (*admin.DynamicNodeWorkflowResponse, error) { - out := new(admin.DynamicNodeWorkflowResponse) - err := c.cc.Invoke(ctx, AdminService_GetDynamicNodeWorkflow_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { - out := new(admin.NodeExecutionList) - err := c.cc.Invoke(ctx, AdminService_ListNodeExecutions_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { - out := new(admin.NodeExecutionList) - err := c.cc.Invoke(ctx, AdminService_ListNodeExecutionsForTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) { - out := new(admin.NodeExecutionGetDataResponse) - err := c.cc.Invoke(ctx, AdminService_GetNodeExecutionData_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) { - out := new(admin.ProjectRegisterResponse) - err := c.cc.Invoke(ctx, AdminService_RegisterProject_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) { - out := new(admin.ProjectUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateProject_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) { - out := new(admin.Projects) - err := c.cc.Invoke(ctx, AdminService_ListProjects_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) { - out := new(admin.WorkflowExecutionEventResponse) - err := c.cc.Invoke(ctx, AdminService_CreateWorkflowEvent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) { - out := new(admin.NodeExecutionEventResponse) - err := c.cc.Invoke(ctx, AdminService_CreateNodeEvent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) { - out := new(admin.TaskExecutionEventResponse) - err := c.cc.Invoke(ctx, AdminService_CreateTaskEvent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) { - out := new(admin.TaskExecution) - err := c.cc.Invoke(ctx, AdminService_GetTaskExecution_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) { - out := new(admin.TaskExecutionList) - err := c.cc.Invoke(ctx, AdminService_ListTaskExecutions_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) { - out := new(admin.TaskExecutionGetDataResponse) - err := c.cc.Invoke(ctx, AdminService_GetTaskExecutionData_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) { - out := new(admin.ProjectDomainAttributesUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateProjectDomainAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) { - out := new(admin.ProjectDomainAttributesGetResponse) - err := c.cc.Invoke(ctx, AdminService_GetProjectDomainAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) { - out := new(admin.ProjectDomainAttributesDeleteResponse) - err := c.cc.Invoke(ctx, AdminService_DeleteProjectDomainAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) { - out := new(admin.ProjectAttributesUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateProjectAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) { - out := new(admin.ProjectAttributesGetResponse) - err := c.cc.Invoke(ctx, AdminService_GetProjectAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) { - out := new(admin.ProjectAttributesDeleteResponse) - err := c.cc.Invoke(ctx, AdminService_DeleteProjectAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) { - out := new(admin.WorkflowAttributesUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateWorkflowAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) { - out := new(admin.WorkflowAttributesGetResponse) - err := c.cc.Invoke(ctx, AdminService_GetWorkflowAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) { - out := new(admin.WorkflowAttributesDeleteResponse) - err := c.cc.Invoke(ctx, AdminService_DeleteWorkflowAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) { - out := new(admin.ListMatchableAttributesResponse) - err := c.cc.Invoke(ctx, AdminService_ListMatchableAttributes_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) { - out := new(admin.NamedEntityList) - err := c.cc.Invoke(ctx, AdminService_ListNamedEntities_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) { - out := new(admin.NamedEntity) - err := c.cc.Invoke(ctx, AdminService_GetNamedEntity_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) { - out := new(admin.NamedEntityUpdateResponse) - err := c.cc.Invoke(ctx, AdminService_UpdateNamedEntity_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) { - out := new(admin.GetVersionResponse) - err := c.cc.Invoke(ctx, AdminService_GetVersion_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) { - out := new(admin.DescriptionEntity) - err := c.cc.Invoke(ctx, AdminService_GetDescriptionEntity_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) { - out := new(admin.DescriptionEntityList) - err := c.cc.Invoke(ctx, AdminService_ListDescriptionEntities_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) { - out := new(admin.WorkflowExecutionGetMetricsResponse) - err := c.cc.Invoke(ctx, AdminService_GetExecutionMetrics_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AdminServiceServer is the server API for AdminService service. -// All implementations should embed UnimplementedAdminServiceServer -// for forward compatibility -type AdminServiceServer interface { - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - GetActiveLaunchPlan(context.Context, *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - ListActiveLaunchPlans(context.Context, *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - RecoverExecution(context.Context, *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - UpdateExecution(context.Context, *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) - // Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. - GetDynamicNodeWorkflow(context.Context, *admin.GetDynamicNodeWorkflowRequest) (*admin.DynamicNodeWorkflowResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - UpdateProject(context.Context, *admin.Project) (*admin.ProjectUpdateResponse, error) - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - UpdateProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - UpdateProjectAttributes(context.Context, *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectAttributes(context.Context, *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectAttributes(context.Context, *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - UpdateWorkflowAttributes(context.Context, *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - GetWorkflowAttributes(context.Context, *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - DeleteWorkflowAttributes(context.Context, *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - ListMatchableAttributes(context.Context, *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - ListNamedEntities(context.Context, *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - GetNamedEntity(context.Context, *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - UpdateNamedEntity(context.Context, *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) - GetVersion(context.Context, *admin.GetVersionRequest) (*admin.GetVersionResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - GetDescriptionEntity(context.Context, *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - ListDescriptionEntities(context.Context, *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionMetrics(context.Context, *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) -} - -// UnimplementedAdminServiceServer should be embedded to have forward compatible implementations. -type UnimplementedAdminServiceServer struct { -} - -func (UnimplementedAdminServiceServer) CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") -} -func (UnimplementedAdminServiceServer) GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") -} -func (UnimplementedAdminServiceServer) ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTaskIds not implemented") -} -func (UnimplementedAdminServiceServer) ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTasks not implemented") -} -func (UnimplementedAdminServiceServer) CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflow not implemented") -} -func (UnimplementedAdminServiceServer) GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflow not implemented") -} -func (UnimplementedAdminServiceServer) ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowIds not implemented") -} -func (UnimplementedAdminServiceServer) ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflows not implemented") -} -func (UnimplementedAdminServiceServer) CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateLaunchPlan not implemented") -} -func (UnimplementedAdminServiceServer) GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLaunchPlan not implemented") -} -func (UnimplementedAdminServiceServer) GetActiveLaunchPlan(context.Context, *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetActiveLaunchPlan not implemented") -} -func (UnimplementedAdminServiceServer) ListActiveLaunchPlans(context.Context, *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListActiveLaunchPlans not implemented") -} -func (UnimplementedAdminServiceServer) ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlanIds not implemented") -} -func (UnimplementedAdminServiceServer) ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlans not implemented") -} -func (UnimplementedAdminServiceServer) UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateLaunchPlan not implemented") -} -func (UnimplementedAdminServiceServer) CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateExecution not implemented") -} -func (UnimplementedAdminServiceServer) RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RelaunchExecution not implemented") -} -func (UnimplementedAdminServiceServer) RecoverExecution(context.Context, *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecoverExecution not implemented") -} -func (UnimplementedAdminServiceServer) GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExecution not implemented") -} -func (UnimplementedAdminServiceServer) UpdateExecution(context.Context, *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateExecution not implemented") -} -func (UnimplementedAdminServiceServer) GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExecutionData not implemented") -} -func (UnimplementedAdminServiceServer) ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListExecutions not implemented") -} -func (UnimplementedAdminServiceServer) TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TerminateExecution not implemented") -} -func (UnimplementedAdminServiceServer) GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecution not implemented") -} -func (UnimplementedAdminServiceServer) GetDynamicNodeWorkflow(context.Context, *admin.GetDynamicNodeWorkflowRequest) (*admin.DynamicNodeWorkflowResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDynamicNodeWorkflow not implemented") -} -func (UnimplementedAdminServiceServer) ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutions not implemented") -} -func (UnimplementedAdminServiceServer) ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutionsForTask not implemented") -} -func (UnimplementedAdminServiceServer) GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecutionData not implemented") -} -func (UnimplementedAdminServiceServer) RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterProject not implemented") -} -func (UnimplementedAdminServiceServer) UpdateProject(context.Context, *admin.Project) (*admin.ProjectUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") -} -func (UnimplementedAdminServiceServer) ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented") -} -func (UnimplementedAdminServiceServer) CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowEvent not implemented") -} -func (UnimplementedAdminServiceServer) CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateNodeEvent not implemented") -} -func (UnimplementedAdminServiceServer) CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTaskEvent not implemented") -} -func (UnimplementedAdminServiceServer) GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecution not implemented") -} -func (UnimplementedAdminServiceServer) ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTaskExecutions not implemented") -} -func (UnimplementedAdminServiceServer) GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecutionData not implemented") -} -func (UnimplementedAdminServiceServer) UpdateProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectDomainAttributes not implemented") -} -func (UnimplementedAdminServiceServer) GetProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectDomainAttributes not implemented") -} -func (UnimplementedAdminServiceServer) DeleteProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectDomainAttributes not implemented") -} -func (UnimplementedAdminServiceServer) UpdateProjectAttributes(context.Context, *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectAttributes not implemented") -} -func (UnimplementedAdminServiceServer) GetProjectAttributes(context.Context, *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectAttributes not implemented") -} -func (UnimplementedAdminServiceServer) DeleteProjectAttributes(context.Context, *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectAttributes not implemented") -} -func (UnimplementedAdminServiceServer) UpdateWorkflowAttributes(context.Context, *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowAttributes not implemented") -} -func (UnimplementedAdminServiceServer) GetWorkflowAttributes(context.Context, *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowAttributes not implemented") -} -func (UnimplementedAdminServiceServer) DeleteWorkflowAttributes(context.Context, *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowAttributes not implemented") -} -func (UnimplementedAdminServiceServer) ListMatchableAttributes(context.Context, *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListMatchableAttributes not implemented") -} -func (UnimplementedAdminServiceServer) ListNamedEntities(context.Context, *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamedEntities not implemented") -} -func (UnimplementedAdminServiceServer) GetNamedEntity(context.Context, *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamedEntity not implemented") -} -func (UnimplementedAdminServiceServer) UpdateNamedEntity(context.Context, *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateNamedEntity not implemented") -} -func (UnimplementedAdminServiceServer) GetVersion(context.Context, *admin.GetVersionRequest) (*admin.GetVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") -} -func (UnimplementedAdminServiceServer) GetDescriptionEntity(context.Context, *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDescriptionEntity not implemented") -} -func (UnimplementedAdminServiceServer) ListDescriptionEntities(context.Context, *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDescriptionEntities not implemented") -} -func (UnimplementedAdminServiceServer) GetExecutionMetrics(context.Context, *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExecutionMetrics not implemented") -} - -// UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AdminServiceServer will -// result in compilation errors. -type UnsafeAdminServiceServer interface { - mustEmbedUnimplementedAdminServiceServer() -} - -func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer) { - s.RegisterService(&AdminService_ServiceDesc, srv) -} - -func _AdminService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateTask(ctx, req.(*admin.TaskCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetTask(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListTaskIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityIdentifierListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListTaskIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListTaskIds_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListTaskIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListTasks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListTasks_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListTasks(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateWorkflow_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateWorkflow(ctx, req.(*admin.WorkflowCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetWorkflow_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetWorkflow(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListWorkflowIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityIdentifierListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListWorkflowIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListWorkflowIds_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListWorkflowIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListWorkflows(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListWorkflows_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListWorkflows(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.LaunchPlanCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateLaunchPlan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateLaunchPlan(ctx, req.(*admin.LaunchPlanCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetLaunchPlan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetLaunchPlan(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetActiveLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ActiveLaunchPlanRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetActiveLaunchPlan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, req.(*admin.ActiveLaunchPlanRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListActiveLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ActiveLaunchPlanListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListActiveLaunchPlans_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, req.(*admin.ActiveLaunchPlanListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListLaunchPlanIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityIdentifierListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListLaunchPlanIds_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListLaunchPlans(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListLaunchPlans_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListLaunchPlans(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.LaunchPlanUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateLaunchPlan_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, req.(*admin.LaunchPlanUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateExecution(ctx, req.(*admin.ExecutionCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RelaunchExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionRelaunchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RelaunchExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_RelaunchExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RelaunchExecution(ctx, req.(*admin.ExecutionRelaunchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RecoverExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionRecoverRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RecoverExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_RecoverExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RecoverExecution(ctx, req.(*admin.ExecutionRecoverRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetExecution(ctx, req.(*admin.WorkflowExecutionGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateExecution(ctx, req.(*admin.ExecutionUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionGetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetExecutionData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetExecutionData_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetExecutionData(ctx, req.(*admin.WorkflowExecutionGetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListExecutions_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListExecutions(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_TerminateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionTerminateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).TerminateExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_TerminateExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).TerminateExecution(ctx, req.(*admin.ExecutionTerminateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetNodeExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetNodeExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetNodeExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetNodeExecution(ctx, req.(*admin.NodeExecutionGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDynamicNodeWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetDynamicNodeWorkflowRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDynamicNodeWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetDynamicNodeWorkflow_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDynamicNodeWorkflow(ctx, req.(*admin.GetDynamicNodeWorkflowRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListNodeExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListNodeExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListNodeExecutions_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListNodeExecutions(ctx, req.(*admin.NodeExecutionListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListNodeExecutionsForTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionForTaskListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListNodeExecutionsForTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, req.(*admin.NodeExecutionForTaskListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetNodeExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionGetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetNodeExecutionData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetNodeExecutionData_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetNodeExecutionData(ctx, req.(*admin.NodeExecutionGetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RegisterProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectRegisterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RegisterProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_RegisterProject_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RegisterProject(ctx, req.(*admin.ProjectRegisterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.Project) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateProject_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateProject(ctx, req.(*admin.Project)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListProjects_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListProjects(ctx, req.(*admin.ProjectListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateWorkflowEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateWorkflowEvent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, req.(*admin.WorkflowExecutionEventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateNodeEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateNodeEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateNodeEvent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateNodeEvent(ctx, req.(*admin.NodeExecutionEventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateTaskEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateTaskEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_CreateTaskEvent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateTaskEvent(ctx, req.(*admin.TaskExecutionEventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetTaskExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetTaskExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetTaskExecution_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetTaskExecution(ctx, req.(*admin.TaskExecutionGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListTaskExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListTaskExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListTaskExecutions_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListTaskExecutions(ctx, req.(*admin.TaskExecutionListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetTaskExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionGetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetTaskExecutionData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetTaskExecutionData_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetTaskExecutionData(ctx, req.(*admin.TaskExecutionGetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectDomainAttributesUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateProjectDomainAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectDomainAttributesGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetProjectDomainAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectDomainAttributesDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_DeleteProjectDomainAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectAttributesUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateProjectAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, req.(*admin.ProjectAttributesUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectAttributesGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetProjectAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetProjectAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetProjectAttributes(ctx, req.(*admin.ProjectAttributesGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectAttributesDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_DeleteProjectAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, req.(*admin.ProjectAttributesDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowAttributesUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateWorkflowAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowAttributesGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetWorkflowAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowAttributesDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_DeleteWorkflowAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListMatchableAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ListMatchableAttributesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListMatchableAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListMatchableAttributes_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListMatchableAttributes(ctx, req.(*admin.ListMatchableAttributesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListNamedEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListNamedEntities(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListNamedEntities_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListNamedEntities(ctx, req.(*admin.NamedEntityListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetNamedEntity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetNamedEntity_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetNamedEntity(ctx, req.(*admin.NamedEntityGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateNamedEntity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_UpdateNamedEntity_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateNamedEntity(ctx, req.(*admin.NamedEntityUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetVersion_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetVersion(ctx, req.(*admin.GetVersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDescriptionEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDescriptionEntity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetDescriptionEntity_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDescriptionEntity(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListDescriptionEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.DescriptionEntityListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListDescriptionEntities(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_ListDescriptionEntities_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListDescriptionEntities(ctx, req.(*admin.DescriptionEntityListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionGetMetricsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetExecutionMetrics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AdminService_GetExecutionMetrics_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetExecutionMetrics(ctx, req.(*admin.WorkflowExecutionGetMetricsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var AdminService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AdminService", - HandlerType: (*AdminServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTask", - Handler: _AdminService_CreateTask_Handler, - }, - { - MethodName: "GetTask", - Handler: _AdminService_GetTask_Handler, - }, - { - MethodName: "ListTaskIds", - Handler: _AdminService_ListTaskIds_Handler, - }, - { - MethodName: "ListTasks", - Handler: _AdminService_ListTasks_Handler, - }, - { - MethodName: "CreateWorkflow", - Handler: _AdminService_CreateWorkflow_Handler, - }, - { - MethodName: "GetWorkflow", - Handler: _AdminService_GetWorkflow_Handler, - }, - { - MethodName: "ListWorkflowIds", - Handler: _AdminService_ListWorkflowIds_Handler, - }, - { - MethodName: "ListWorkflows", - Handler: _AdminService_ListWorkflows_Handler, - }, - { - MethodName: "CreateLaunchPlan", - Handler: _AdminService_CreateLaunchPlan_Handler, - }, - { - MethodName: "GetLaunchPlan", - Handler: _AdminService_GetLaunchPlan_Handler, - }, - { - MethodName: "GetActiveLaunchPlan", - Handler: _AdminService_GetActiveLaunchPlan_Handler, - }, - { - MethodName: "ListActiveLaunchPlans", - Handler: _AdminService_ListActiveLaunchPlans_Handler, - }, - { - MethodName: "ListLaunchPlanIds", - Handler: _AdminService_ListLaunchPlanIds_Handler, - }, - { - MethodName: "ListLaunchPlans", - Handler: _AdminService_ListLaunchPlans_Handler, - }, - { - MethodName: "UpdateLaunchPlan", - Handler: _AdminService_UpdateLaunchPlan_Handler, - }, - { - MethodName: "CreateExecution", - Handler: _AdminService_CreateExecution_Handler, - }, - { - MethodName: "RelaunchExecution", - Handler: _AdminService_RelaunchExecution_Handler, - }, - { - MethodName: "RecoverExecution", - Handler: _AdminService_RecoverExecution_Handler, - }, - { - MethodName: "GetExecution", - Handler: _AdminService_GetExecution_Handler, - }, - { - MethodName: "UpdateExecution", - Handler: _AdminService_UpdateExecution_Handler, - }, - { - MethodName: "GetExecutionData", - Handler: _AdminService_GetExecutionData_Handler, - }, - { - MethodName: "ListExecutions", - Handler: _AdminService_ListExecutions_Handler, - }, - { - MethodName: "TerminateExecution", - Handler: _AdminService_TerminateExecution_Handler, - }, - { - MethodName: "GetNodeExecution", - Handler: _AdminService_GetNodeExecution_Handler, - }, - { - MethodName: "GetDynamicNodeWorkflow", - Handler: _AdminService_GetDynamicNodeWorkflow_Handler, - }, - { - MethodName: "ListNodeExecutions", - Handler: _AdminService_ListNodeExecutions_Handler, - }, - { - MethodName: "ListNodeExecutionsForTask", - Handler: _AdminService_ListNodeExecutionsForTask_Handler, - }, - { - MethodName: "GetNodeExecutionData", - Handler: _AdminService_GetNodeExecutionData_Handler, - }, - { - MethodName: "RegisterProject", - Handler: _AdminService_RegisterProject_Handler, - }, - { - MethodName: "UpdateProject", - Handler: _AdminService_UpdateProject_Handler, - }, - { - MethodName: "ListProjects", - Handler: _AdminService_ListProjects_Handler, - }, - { - MethodName: "CreateWorkflowEvent", - Handler: _AdminService_CreateWorkflowEvent_Handler, - }, - { - MethodName: "CreateNodeEvent", - Handler: _AdminService_CreateNodeEvent_Handler, - }, - { - MethodName: "CreateTaskEvent", - Handler: _AdminService_CreateTaskEvent_Handler, - }, - { - MethodName: "GetTaskExecution", - Handler: _AdminService_GetTaskExecution_Handler, - }, - { - MethodName: "ListTaskExecutions", - Handler: _AdminService_ListTaskExecutions_Handler, - }, - { - MethodName: "GetTaskExecutionData", - Handler: _AdminService_GetTaskExecutionData_Handler, - }, - { - MethodName: "UpdateProjectDomainAttributes", - Handler: _AdminService_UpdateProjectDomainAttributes_Handler, - }, - { - MethodName: "GetProjectDomainAttributes", - Handler: _AdminService_GetProjectDomainAttributes_Handler, - }, - { - MethodName: "DeleteProjectDomainAttributes", - Handler: _AdminService_DeleteProjectDomainAttributes_Handler, - }, - { - MethodName: "UpdateProjectAttributes", - Handler: _AdminService_UpdateProjectAttributes_Handler, - }, - { - MethodName: "GetProjectAttributes", - Handler: _AdminService_GetProjectAttributes_Handler, - }, - { - MethodName: "DeleteProjectAttributes", - Handler: _AdminService_DeleteProjectAttributes_Handler, - }, - { - MethodName: "UpdateWorkflowAttributes", - Handler: _AdminService_UpdateWorkflowAttributes_Handler, - }, - { - MethodName: "GetWorkflowAttributes", - Handler: _AdminService_GetWorkflowAttributes_Handler, - }, - { - MethodName: "DeleteWorkflowAttributes", - Handler: _AdminService_DeleteWorkflowAttributes_Handler, - }, - { - MethodName: "ListMatchableAttributes", - Handler: _AdminService_ListMatchableAttributes_Handler, - }, - { - MethodName: "ListNamedEntities", - Handler: _AdminService_ListNamedEntities_Handler, - }, - { - MethodName: "GetNamedEntity", - Handler: _AdminService_GetNamedEntity_Handler, - }, - { - MethodName: "UpdateNamedEntity", - Handler: _AdminService_UpdateNamedEntity_Handler, - }, - { - MethodName: "GetVersion", - Handler: _AdminService_GetVersion_Handler, - }, - { - MethodName: "GetDescriptionEntity", - Handler: _AdminService_GetDescriptionEntity_Handler, - }, - { - MethodName: "ListDescriptionEntities", - Handler: _AdminService_ListDescriptionEntities_Handler, - }, - { - MethodName: "GetExecutionMetrics", - Handler: _AdminService_GetExecutionMetrics_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/admin.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go deleted file mode 100644 index a95e0f58e1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/agent.proto - -package service - -import ( - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_flyteidl_service_agent_proto protoreflect.FileDescriptor - -var file_flyteidl_service_agent_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xa1, 0x01, 0x0a, 0x10, 0x53, - 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x8c, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, - 0x79, 0x6e, 0x63, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, - 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, - 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x32, 0xc3, - 0x06, 0x0a, 0x11, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x17, 0x3a, 0x01, 0x2a, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, - 0x6b, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x54, 0x2a, 0x52, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, - 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, - 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4e, 0x12, 0x4c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, - 0x61, 0x7d, 0x30, 0x01, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, - 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, - 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, - 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var file_flyteidl_service_agent_proto_goTypes = []interface{}{ - (*admin.ExecuteTaskSyncRequest)(nil), // 0: flyteidl.admin.ExecuteTaskSyncRequest - (*admin.CreateTaskRequest)(nil), // 1: flyteidl.admin.CreateTaskRequest - (*admin.GetTaskRequest)(nil), // 2: flyteidl.admin.GetTaskRequest - (*admin.DeleteTaskRequest)(nil), // 3: flyteidl.admin.DeleteTaskRequest - (*admin.GetTaskMetricsRequest)(nil), // 4: flyteidl.admin.GetTaskMetricsRequest - (*admin.GetTaskLogsRequest)(nil), // 5: flyteidl.admin.GetTaskLogsRequest - (*admin.GetAgentRequest)(nil), // 6: flyteidl.admin.GetAgentRequest - (*admin.ListAgentsRequest)(nil), // 7: flyteidl.admin.ListAgentsRequest - (*admin.ExecuteTaskSyncResponse)(nil), // 8: flyteidl.admin.ExecuteTaskSyncResponse - (*admin.CreateTaskResponse)(nil), // 9: flyteidl.admin.CreateTaskResponse - (*admin.GetTaskResponse)(nil), // 10: flyteidl.admin.GetTaskResponse - (*admin.DeleteTaskResponse)(nil), // 11: flyteidl.admin.DeleteTaskResponse - (*admin.GetTaskMetricsResponse)(nil), // 12: flyteidl.admin.GetTaskMetricsResponse - (*admin.GetTaskLogsResponse)(nil), // 13: flyteidl.admin.GetTaskLogsResponse - (*admin.GetAgentResponse)(nil), // 14: flyteidl.admin.GetAgentResponse - (*admin.ListAgentsResponse)(nil), // 15: flyteidl.admin.ListAgentsResponse -} -var file_flyteidl_service_agent_proto_depIdxs = []int32{ - 0, // 0: flyteidl.service.SyncAgentService.ExecuteTaskSync:input_type -> flyteidl.admin.ExecuteTaskSyncRequest - 1, // 1: flyteidl.service.AsyncAgentService.CreateTask:input_type -> flyteidl.admin.CreateTaskRequest - 2, // 2: flyteidl.service.AsyncAgentService.GetTask:input_type -> flyteidl.admin.GetTaskRequest - 3, // 3: flyteidl.service.AsyncAgentService.DeleteTask:input_type -> flyteidl.admin.DeleteTaskRequest - 4, // 4: flyteidl.service.AsyncAgentService.GetTaskMetrics:input_type -> flyteidl.admin.GetTaskMetricsRequest - 5, // 5: flyteidl.service.AsyncAgentService.GetTaskLogs:input_type -> flyteidl.admin.GetTaskLogsRequest - 6, // 6: flyteidl.service.AgentMetadataService.GetAgent:input_type -> flyteidl.admin.GetAgentRequest - 7, // 7: flyteidl.service.AgentMetadataService.ListAgents:input_type -> flyteidl.admin.ListAgentsRequest - 8, // 8: flyteidl.service.SyncAgentService.ExecuteTaskSync:output_type -> flyteidl.admin.ExecuteTaskSyncResponse - 9, // 9: flyteidl.service.AsyncAgentService.CreateTask:output_type -> flyteidl.admin.CreateTaskResponse - 10, // 10: flyteidl.service.AsyncAgentService.GetTask:output_type -> flyteidl.admin.GetTaskResponse - 11, // 11: flyteidl.service.AsyncAgentService.DeleteTask:output_type -> flyteidl.admin.DeleteTaskResponse - 12, // 12: flyteidl.service.AsyncAgentService.GetTaskMetrics:output_type -> flyteidl.admin.GetTaskMetricsResponse - 13, // 13: flyteidl.service.AsyncAgentService.GetTaskLogs:output_type -> flyteidl.admin.GetTaskLogsResponse - 14, // 14: flyteidl.service.AgentMetadataService.GetAgent:output_type -> flyteidl.admin.GetAgentResponse - 15, // 15: flyteidl.service.AgentMetadataService.ListAgents:output_type -> flyteidl.admin.ListAgentsResponse - 8, // [8:16] is the sub-list for method output_type - 0, // [0:8] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_agent_proto_init() } -func file_flyteidl_service_agent_proto_init() { - if File_flyteidl_service_agent_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_agent_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 3, - }, - GoTypes: file_flyteidl_service_agent_proto_goTypes, - DependencyIndexes: file_flyteidl_service_agent_proto_depIdxs, - }.Build() - File_flyteidl_service_agent_proto = out.File - file_flyteidl_service_agent_proto_rawDesc = nil - file_flyteidl_service_agent_proto_goTypes = nil - file_flyteidl_service_agent_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go deleted file mode 100644 index 98f057da12..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/agent.proto - -package service - -import ( - context "context" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - SyncAgentService_ExecuteTaskSync_FullMethodName = "/flyteidl.service.SyncAgentService/ExecuteTaskSync" -) - -// SyncAgentServiceClient is the client API for SyncAgentService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SyncAgentServiceClient interface { - // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. - ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (SyncAgentService_ExecuteTaskSyncClient, error) -} - -type syncAgentServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewSyncAgentServiceClient(cc grpc.ClientConnInterface) SyncAgentServiceClient { - return &syncAgentServiceClient{cc} -} - -func (c *syncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (SyncAgentService_ExecuteTaskSyncClient, error) { - stream, err := c.cc.NewStream(ctx, &SyncAgentService_ServiceDesc.Streams[0], SyncAgentService_ExecuteTaskSync_FullMethodName, opts...) - if err != nil { - return nil, err - } - x := &syncAgentServiceExecuteTaskSyncClient{stream} - return x, nil -} - -type SyncAgentService_ExecuteTaskSyncClient interface { - Send(*admin.ExecuteTaskSyncRequest) error - Recv() (*admin.ExecuteTaskSyncResponse, error) - grpc.ClientStream -} - -type syncAgentServiceExecuteTaskSyncClient struct { - grpc.ClientStream -} - -func (x *syncAgentServiceExecuteTaskSyncClient) Send(m *admin.ExecuteTaskSyncRequest) error { - return x.ClientStream.SendMsg(m) -} - -func (x *syncAgentServiceExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { - m := new(admin.ExecuteTaskSyncResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// SyncAgentServiceServer is the server API for SyncAgentService service. -// All implementations should embed UnimplementedSyncAgentServiceServer -// for forward compatibility -type SyncAgentServiceServer interface { - // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. - ExecuteTaskSync(SyncAgentService_ExecuteTaskSyncServer) error -} - -// UnimplementedSyncAgentServiceServer should be embedded to have forward compatible implementations. -type UnimplementedSyncAgentServiceServer struct { -} - -func (UnimplementedSyncAgentServiceServer) ExecuteTaskSync(SyncAgentService_ExecuteTaskSyncServer) error { - return status.Errorf(codes.Unimplemented, "method ExecuteTaskSync not implemented") -} - -// UnsafeSyncAgentServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SyncAgentServiceServer will -// result in compilation errors. -type UnsafeSyncAgentServiceServer interface { - mustEmbedUnimplementedSyncAgentServiceServer() -} - -func RegisterSyncAgentServiceServer(s grpc.ServiceRegistrar, srv SyncAgentServiceServer) { - s.RegisterService(&SyncAgentService_ServiceDesc, srv) -} - -func _SyncAgentService_ExecuteTaskSync_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(SyncAgentServiceServer).ExecuteTaskSync(&syncAgentServiceExecuteTaskSyncServer{stream}) -} - -type SyncAgentService_ExecuteTaskSyncServer interface { - Send(*admin.ExecuteTaskSyncResponse) error - Recv() (*admin.ExecuteTaskSyncRequest, error) - grpc.ServerStream -} - -type syncAgentServiceExecuteTaskSyncServer struct { - grpc.ServerStream -} - -func (x *syncAgentServiceExecuteTaskSyncServer) Send(m *admin.ExecuteTaskSyncResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *syncAgentServiceExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { - m := new(admin.ExecuteTaskSyncRequest) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// SyncAgentService_ServiceDesc is the grpc.ServiceDesc for SyncAgentService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var SyncAgentService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.SyncAgentService", - HandlerType: (*SyncAgentServiceServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "ExecuteTaskSync", - Handler: _SyncAgentService_ExecuteTaskSync_Handler, - ServerStreams: true, - ClientStreams: true, - }, - }, - Metadata: "flyteidl/service/agent.proto", -} - -const ( - AsyncAgentService_CreateTask_FullMethodName = "/flyteidl.service.AsyncAgentService/CreateTask" - AsyncAgentService_GetTask_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTask" - AsyncAgentService_DeleteTask_FullMethodName = "/flyteidl.service.AsyncAgentService/DeleteTask" - AsyncAgentService_GetTaskMetrics_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" - AsyncAgentService_GetTaskLogs_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskLogs" -) - -// AsyncAgentServiceClient is the client API for AsyncAgentService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type AsyncAgentServiceClient interface { - // CreateTask sends a task create request to the agent service. - CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) - // Get job status. - GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) - // Delete the task resource. - DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) - // GetTaskMetrics returns one or more task execution metrics, if available. - // - // Errors include - // - OutOfRange if metrics are not available for the specified task time range - // - various other errors - GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) - // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) -} - -type asyncAgentServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAsyncAgentServiceClient(cc grpc.ClientConnInterface) AsyncAgentServiceClient { - return &asyncAgentServiceClient{cc} -} - -func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { - out := new(admin.CreateTaskResponse) - err := c.cc.Invoke(ctx, AsyncAgentService_CreateTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *asyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { - out := new(admin.GetTaskResponse) - err := c.cc.Invoke(ctx, AsyncAgentService_GetTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *asyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { - out := new(admin.DeleteTaskResponse) - err := c.cc.Invoke(ctx, AsyncAgentService_DeleteTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *asyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { - out := new(admin.GetTaskMetricsResponse) - err := c.cc.Invoke(ctx, AsyncAgentService_GetTaskMetrics_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) { - stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[0], AsyncAgentService_GetTaskLogs_FullMethodName, opts...) - if err != nil { - return nil, err - } - x := &asyncAgentServiceGetTaskLogsClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type AsyncAgentService_GetTaskLogsClient interface { - Recv() (*admin.GetTaskLogsResponse, error) - grpc.ClientStream -} - -type asyncAgentServiceGetTaskLogsClient struct { - grpc.ClientStream -} - -func (x *asyncAgentServiceGetTaskLogsClient) Recv() (*admin.GetTaskLogsResponse, error) { - m := new(admin.GetTaskLogsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// AsyncAgentServiceServer is the server API for AsyncAgentService service. -// All implementations should embed UnimplementedAsyncAgentServiceServer -// for forward compatibility -type AsyncAgentServiceServer interface { - // CreateTask sends a task create request to the agent service. - CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) - // Get job status. - GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) - // Delete the task resource. - DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) - // GetTaskMetrics returns one or more task execution metrics, if available. - // - // Errors include - // - OutOfRange if metrics are not available for the specified task time range - // - various other errors - GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) - // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(*admin.GetTaskLogsRequest, AsyncAgentService_GetTaskLogsServer) error -} - -// UnimplementedAsyncAgentServiceServer should be embedded to have forward compatible implementations. -type UnimplementedAsyncAgentServiceServer struct { -} - -func (UnimplementedAsyncAgentServiceServer) CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") -} -func (UnimplementedAsyncAgentServiceServer) GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") -} -func (UnimplementedAsyncAgentServiceServer) DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") -} -func (UnimplementedAsyncAgentServiceServer) GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTaskMetrics not implemented") -} -func (UnimplementedAsyncAgentServiceServer) GetTaskLogs(*admin.GetTaskLogsRequest, AsyncAgentService_GetTaskLogsServer) error { - return status.Errorf(codes.Unimplemented, "method GetTaskLogs not implemented") -} - -// UnsafeAsyncAgentServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AsyncAgentServiceServer will -// result in compilation errors. -type UnsafeAsyncAgentServiceServer interface { - mustEmbedUnimplementedAsyncAgentServiceServer() -} - -func RegisterAsyncAgentServiceServer(s grpc.ServiceRegistrar, srv AsyncAgentServiceServer) { - s.RegisterService(&AsyncAgentService_ServiceDesc, srv) -} - -func _AsyncAgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.CreateTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).CreateTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AsyncAgentService_CreateTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).CreateTask(ctx, req.(*admin.CreateTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AsyncAgentService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).GetTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AsyncAgentService_GetTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).GetTask(ctx, req.(*admin.GetTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AsyncAgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.DeleteTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).DeleteTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AsyncAgentService_DeleteTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).DeleteTask(ctx, req.(*admin.DeleteTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AsyncAgentService_GetTaskMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetTaskMetricsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).GetTaskMetrics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AsyncAgentService_GetTaskMetrics_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).GetTaskMetrics(ctx, req.(*admin.GetTaskMetricsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AsyncAgentService_GetTaskLogs_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(admin.GetTaskLogsRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(AsyncAgentServiceServer).GetTaskLogs(m, &asyncAgentServiceGetTaskLogsServer{stream}) -} - -type AsyncAgentService_GetTaskLogsServer interface { - Send(*admin.GetTaskLogsResponse) error - grpc.ServerStream -} - -type asyncAgentServiceGetTaskLogsServer struct { - grpc.ServerStream -} - -func (x *asyncAgentServiceGetTaskLogsServer) Send(m *admin.GetTaskLogsResponse) error { - return x.ServerStream.SendMsg(m) -} - -// AsyncAgentService_ServiceDesc is the grpc.ServiceDesc for AsyncAgentService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var AsyncAgentService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AsyncAgentService", - HandlerType: (*AsyncAgentServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTask", - Handler: _AsyncAgentService_CreateTask_Handler, - }, - { - MethodName: "GetTask", - Handler: _AsyncAgentService_GetTask_Handler, - }, - { - MethodName: "DeleteTask", - Handler: _AsyncAgentService_DeleteTask_Handler, - }, - { - MethodName: "GetTaskMetrics", - Handler: _AsyncAgentService_GetTaskMetrics_Handler, - }, - }, - Streams: []grpc.StreamDesc{ - { - StreamName: "GetTaskLogs", - Handler: _AsyncAgentService_GetTaskLogs_Handler, - ServerStreams: true, - }, - }, - Metadata: "flyteidl/service/agent.proto", -} - -const ( - AgentMetadataService_GetAgent_FullMethodName = "/flyteidl.service.AgentMetadataService/GetAgent" - AgentMetadataService_ListAgents_FullMethodName = "/flyteidl.service.AgentMetadataService/ListAgents" -) - -// AgentMetadataServiceClient is the client API for AgentMetadataService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type AgentMetadataServiceClient interface { - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) -} - -type agentMetadataServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAgentMetadataServiceClient(cc grpc.ClientConnInterface) AgentMetadataServiceClient { - return &agentMetadataServiceClient{cc} -} - -func (c *agentMetadataServiceClient) GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) { - out := new(admin.GetAgentResponse) - err := c.cc.Invoke(ctx, AgentMetadataService_GetAgent_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentMetadataServiceClient) ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) { - out := new(admin.ListAgentsResponse) - err := c.cc.Invoke(ctx, AgentMetadataService_ListAgents_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AgentMetadataServiceServer is the server API for AgentMetadataService service. -// All implementations should embed UnimplementedAgentMetadataServiceServer -// for forward compatibility -type AgentMetadataServiceServer interface { - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - GetAgent(context.Context, *admin.GetAgentRequest) (*admin.GetAgentResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - ListAgents(context.Context, *admin.ListAgentsRequest) (*admin.ListAgentsResponse, error) -} - -// UnimplementedAgentMetadataServiceServer should be embedded to have forward compatible implementations. -type UnimplementedAgentMetadataServiceServer struct { -} - -func (UnimplementedAgentMetadataServiceServer) GetAgent(context.Context, *admin.GetAgentRequest) (*admin.GetAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAgent not implemented") -} -func (UnimplementedAgentMetadataServiceServer) ListAgents(context.Context, *admin.ListAgentsRequest) (*admin.ListAgentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAgents not implemented") -} - -// UnsafeAgentMetadataServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AgentMetadataServiceServer will -// result in compilation errors. -type UnsafeAgentMetadataServiceServer interface { - mustEmbedUnimplementedAgentMetadataServiceServer() -} - -func RegisterAgentMetadataServiceServer(s grpc.ServiceRegistrar, srv AgentMetadataServiceServer) { - s.RegisterService(&AgentMetadataService_ServiceDesc, srv) -} - -func _AgentMetadataService_GetAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentMetadataServiceServer).GetAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentMetadataService_GetAgent_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentMetadataServiceServer).GetAgent(ctx, req.(*admin.GetAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentMetadataService_ListAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ListAgentsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentMetadataServiceServer).ListAgents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AgentMetadataService_ListAgents_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentMetadataServiceServer).ListAgents(ctx, req.(*admin.ListAgentsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// AgentMetadataService_ServiceDesc is the grpc.ServiceDesc for AgentMetadataService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var AgentMetadataService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AgentMetadataService", - HandlerType: (*AgentMetadataServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetAgent", - Handler: _AgentMetadataService_GetAgent_Handler, - }, - { - MethodName: "ListAgents", - Handler: _AgentMetadataService_ListAgents_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/agent.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go deleted file mode 100644 index 2f5e5fc500..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go +++ /dev/null @@ -1,549 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/auth.proto - -package service - -import ( - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type OAuth2MetadataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OAuth2MetadataRequest) Reset() { - *x = OAuth2MetadataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_auth_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OAuth2MetadataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OAuth2MetadataRequest) ProtoMessage() {} - -func (x *OAuth2MetadataRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_auth_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OAuth2MetadataRequest.ProtoReflect.Descriptor instead. -func (*OAuth2MetadataRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{0} -} - -// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata -// as defined in https://tools.ietf.org/html/rfc8414 -type OAuth2MetadataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external - // issuer. - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are - // supported that use the authorization endpoint. - AuthorizationEndpoint string `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"` - // URL of the authorization server's token endpoint [RFC6749]. - TokenEndpoint string `protobuf:"bytes,3,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` - // Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. - ResponseTypesSupported []string `protobuf:"bytes,4,rep,name=response_types_supported,json=responseTypesSupported,proto3" json:"response_types_supported,omitempty"` - // JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. - ScopesSupported []string `protobuf:"bytes,5,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"` - // JSON array containing a list of client authentication methods supported by this token endpoint. - TokenEndpointAuthMethodsSupported []string `protobuf:"bytes,6,rep,name=token_endpoint_auth_methods_supported,json=tokenEndpointAuthMethodsSupported,proto3" json:"token_endpoint_auth_methods_supported,omitempty"` - // URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the - // client uses to validate signatures from the authorization server. - JwksUri string `protobuf:"bytes,7,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"` - // JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by - // this authorization server. - CodeChallengeMethodsSupported []string `protobuf:"bytes,8,rep,name=code_challenge_methods_supported,json=codeChallengeMethodsSupported,proto3" json:"code_challenge_methods_supported,omitempty"` - // JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. - GrantTypesSupported []string `protobuf:"bytes,9,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"` - // URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] - DeviceAuthorizationEndpoint string `protobuf:"bytes,10,opt,name=device_authorization_endpoint,json=deviceAuthorizationEndpoint,proto3" json:"device_authorization_endpoint,omitempty"` -} - -func (x *OAuth2MetadataResponse) Reset() { - *x = OAuth2MetadataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_auth_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OAuth2MetadataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OAuth2MetadataResponse) ProtoMessage() {} - -func (x *OAuth2MetadataResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_auth_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OAuth2MetadataResponse.ProtoReflect.Descriptor instead. -func (*OAuth2MetadataResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{1} -} - -func (x *OAuth2MetadataResponse) GetIssuer() string { - if x != nil { - return x.Issuer - } - return "" -} - -func (x *OAuth2MetadataResponse) GetAuthorizationEndpoint() string { - if x != nil { - return x.AuthorizationEndpoint - } - return "" -} - -func (x *OAuth2MetadataResponse) GetTokenEndpoint() string { - if x != nil { - return x.TokenEndpoint - } - return "" -} - -func (x *OAuth2MetadataResponse) GetResponseTypesSupported() []string { - if x != nil { - return x.ResponseTypesSupported - } - return nil -} - -func (x *OAuth2MetadataResponse) GetScopesSupported() []string { - if x != nil { - return x.ScopesSupported - } - return nil -} - -func (x *OAuth2MetadataResponse) GetTokenEndpointAuthMethodsSupported() []string { - if x != nil { - return x.TokenEndpointAuthMethodsSupported - } - return nil -} - -func (x *OAuth2MetadataResponse) GetJwksUri() string { - if x != nil { - return x.JwksUri - } - return "" -} - -func (x *OAuth2MetadataResponse) GetCodeChallengeMethodsSupported() []string { - if x != nil { - return x.CodeChallengeMethodsSupported - } - return nil -} - -func (x *OAuth2MetadataResponse) GetGrantTypesSupported() []string { - if x != nil { - return x.GrantTypesSupported - } - return nil -} - -func (x *OAuth2MetadataResponse) GetDeviceAuthorizationEndpoint() string { - if x != nil { - return x.DeviceAuthorizationEndpoint - } - return "" -} - -type PublicClientAuthConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PublicClientAuthConfigRequest) Reset() { - *x = PublicClientAuthConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_auth_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicClientAuthConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicClientAuthConfigRequest) ProtoMessage() {} - -func (x *PublicClientAuthConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_auth_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PublicClientAuthConfigRequest.ProtoReflect.Descriptor instead. -func (*PublicClientAuthConfigRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{2} -} - -// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. -type PublicClientAuthConfigResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // client_id to use when initiating OAuth2 authorization requests. - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - // redirect uri to use when initiating OAuth2 authorization requests. - RedirectUri string `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` - // scopes to request when initiating OAuth2 authorization requests. - Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` - // Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the - // default http `Authorization` header. - AuthorizationMetadataKey string `protobuf:"bytes,4,opt,name=authorization_metadata_key,json=authorizationMetadataKey,proto3" json:"authorization_metadata_key,omitempty"` - // ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used - // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between - // SSL or no SSL connections. - ServiceHttpEndpoint string `protobuf:"bytes,5,opt,name=service_http_endpoint,json=serviceHttpEndpoint,proto3" json:"service_http_endpoint,omitempty"` - // audience to use when initiating OAuth2 authorization requests. - Audience string `protobuf:"bytes,6,opt,name=audience,proto3" json:"audience,omitempty"` -} - -func (x *PublicClientAuthConfigResponse) Reset() { - *x = PublicClientAuthConfigResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_auth_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PublicClientAuthConfigResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PublicClientAuthConfigResponse) ProtoMessage() {} - -func (x *PublicClientAuthConfigResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_auth_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PublicClientAuthConfigResponse.ProtoReflect.Descriptor instead. -func (*PublicClientAuthConfigResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{3} -} - -func (x *PublicClientAuthConfigResponse) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *PublicClientAuthConfigResponse) GetRedirectUri() string { - if x != nil { - return x.RedirectUri - } - return "" -} - -func (x *PublicClientAuthConfigResponse) GetScopes() []string { - if x != nil { - return x.Scopes - } - return nil -} - -func (x *PublicClientAuthConfigResponse) GetAuthorizationMetadataKey() string { - if x != nil { - return x.AuthorizationMetadataKey - } - return "" -} - -func (x *PublicClientAuthConfigResponse) GetServiceHttpEndpoint() string { - if x != nil { - return x.ServiceHttpEndpoint - } - return "" -} - -func (x *PublicClientAuthConfigResponse) GetAudience() string { - if x != nil { - return x.Audience - } - return "" -} - -var File_flyteidl_service_auth_proto protoreflect.FileDescriptor - -var file_flyteidl_service_auth_proto_rawDesc = []byte{ - 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, - 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, - 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, 0x0a, - 0x15, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x04, 0x0a, 0x16, 0x4f, 0x41, 0x75, 0x74, 0x68, - 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x16, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, - 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x45, - 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, - 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, - 0x64, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x63, 0x6f, - 0x70, 0x65, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x50, 0x0a, 0x25, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x61, - 0x75, 0x74, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, - 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x21, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x6a, 0x77, 0x6b, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6a, 0x77, 0x6b, 0x73, 0x55, 0x72, 0x69, 0x12, 0x47, 0x0a, 0x20, 0x63, 0x6f, 0x64, - 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x1d, 0x63, 0x6f, 0x64, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, - 0x67, 0x65, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, - 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x13, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x1d, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, - 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, - 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1b, 0x64, - 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x1f, 0x0a, 0x1d, 0x50, 0x75, - 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x86, 0x02, 0x0a, 0x1e, - 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, - 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x12, 0x16, - 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, - 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x61, 0x75, 0x74, 0x68, - 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0x4b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x68, 0x74, 0x74, 0x70, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x74, 0x74, 0x70, - 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, - 0x65, 0x6e, 0x63, 0x65, 0x32, 0xfc, 0x03, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf5, 0x01, 0x0a, - 0x11, 0x47, 0x65, 0x74, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, - 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x92, 0x41, 0x5a, 0x1a, 0x58, 0x52, 0x65, 0x74, - 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, 0x20, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x20, 0x61, 0x75, - 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x20, 0x54, 0x68, 0x69, - 0x73, 0x20, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, - 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x69, 0x62, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x2e, 0x77, - 0x65, 0x6c, 0x6c, 0x2d, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x2d, - 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x12, 0xec, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, - 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, - 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, - 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x70, 0x92, 0x41, 0x4e, 0x1a, 0x4c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, - 0x73, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x20, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, - 0x20, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, 0x6f, - 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, - 0x62, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x42, 0xc1, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x09, 0x41, 0x75, - 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, - 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_service_auth_proto_rawDescOnce sync.Once - file_flyteidl_service_auth_proto_rawDescData = file_flyteidl_service_auth_proto_rawDesc -) - -func file_flyteidl_service_auth_proto_rawDescGZIP() []byte { - file_flyteidl_service_auth_proto_rawDescOnce.Do(func() { - file_flyteidl_service_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_auth_proto_rawDescData) - }) - return file_flyteidl_service_auth_proto_rawDescData -} - -var file_flyteidl_service_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_flyteidl_service_auth_proto_goTypes = []interface{}{ - (*OAuth2MetadataRequest)(nil), // 0: flyteidl.service.OAuth2MetadataRequest - (*OAuth2MetadataResponse)(nil), // 1: flyteidl.service.OAuth2MetadataResponse - (*PublicClientAuthConfigRequest)(nil), // 2: flyteidl.service.PublicClientAuthConfigRequest - (*PublicClientAuthConfigResponse)(nil), // 3: flyteidl.service.PublicClientAuthConfigResponse -} -var file_flyteidl_service_auth_proto_depIdxs = []int32{ - 0, // 0: flyteidl.service.AuthMetadataService.GetOAuth2Metadata:input_type -> flyteidl.service.OAuth2MetadataRequest - 2, // 1: flyteidl.service.AuthMetadataService.GetPublicClientConfig:input_type -> flyteidl.service.PublicClientAuthConfigRequest - 1, // 2: flyteidl.service.AuthMetadataService.GetOAuth2Metadata:output_type -> flyteidl.service.OAuth2MetadataResponse - 3, // 3: flyteidl.service.AuthMetadataService.GetPublicClientConfig:output_type -> flyteidl.service.PublicClientAuthConfigResponse - 2, // [2:4] is the sub-list for method output_type - 0, // [0:2] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_auth_proto_init() } -func file_flyteidl_service_auth_proto_init() { - if File_flyteidl_service_auth_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_service_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OAuth2MetadataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OAuth2MetadataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicClientAuthConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PublicClientAuthConfigResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_auth_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_service_auth_proto_goTypes, - DependencyIndexes: file_flyteidl_service_auth_proto_depIdxs, - MessageInfos: file_flyteidl_service_auth_proto_msgTypes, - }.Build() - File_flyteidl_service_auth_proto = out.File - file_flyteidl_service_auth_proto_rawDesc = nil - file_flyteidl_service_auth_proto_goTypes = nil - file_flyteidl_service_auth_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go deleted file mode 100644 index dd324d134e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/auth.proto - -package service - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - AuthMetadataService_GetOAuth2Metadata_FullMethodName = "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata" - AuthMetadataService_GetPublicClientConfig_FullMethodName = "/flyteidl.service.AuthMetadataService/GetPublicClientConfig" -) - -// AuthMetadataServiceClient is the client API for AuthMetadataService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type AuthMetadataServiceClient interface { - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) -} - -type authMetadataServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAuthMetadataServiceClient(cc grpc.ClientConnInterface) AuthMetadataServiceClient { - return &authMetadataServiceClient{cc} -} - -func (c *authMetadataServiceClient) GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) { - out := new(OAuth2MetadataResponse) - err := c.cc.Invoke(ctx, AuthMetadataService_GetOAuth2Metadata_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authMetadataServiceClient) GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) { - out := new(PublicClientAuthConfigResponse) - err := c.cc.Invoke(ctx, AuthMetadataService_GetPublicClientConfig_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AuthMetadataServiceServer is the server API for AuthMetadataService service. -// All implementations should embed UnimplementedAuthMetadataServiceServer -// for forward compatibility -type AuthMetadataServiceServer interface { - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - GetOAuth2Metadata(context.Context, *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - GetPublicClientConfig(context.Context, *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) -} - -// UnimplementedAuthMetadataServiceServer should be embedded to have forward compatible implementations. -type UnimplementedAuthMetadataServiceServer struct { -} - -func (UnimplementedAuthMetadataServiceServer) GetOAuth2Metadata(context.Context, *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOAuth2Metadata not implemented") -} -func (UnimplementedAuthMetadataServiceServer) GetPublicClientConfig(context.Context, *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublicClientConfig not implemented") -} - -// UnsafeAuthMetadataServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AuthMetadataServiceServer will -// result in compilation errors. -type UnsafeAuthMetadataServiceServer interface { - mustEmbedUnimplementedAuthMetadataServiceServer() -} - -func RegisterAuthMetadataServiceServer(s grpc.ServiceRegistrar, srv AuthMetadataServiceServer) { - s.RegisterService(&AuthMetadataService_ServiceDesc, srv) -} - -func _AuthMetadataService_GetOAuth2Metadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OAuth2MetadataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AuthMetadataService_GetOAuth2Metadata_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, req.(*OAuth2MetadataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthMetadataService_GetPublicClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PublicClientAuthConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AuthMetadataService_GetPublicClientConfig_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, req.(*PublicClientAuthConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// AuthMetadataService_ServiceDesc is the grpc.ServiceDesc for AuthMetadataService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var AuthMetadataService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AuthMetadataService", - HandlerType: (*AuthMetadataServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetOAuth2Metadata", - Handler: _AuthMetadataService_GetOAuth2Metadata_Handler, - }, - { - MethodName: "GetPublicClientConfig", - Handler: _AuthMetadataService_GetPublicClientConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/auth.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go deleted file mode 100644 index 3acf2559cf..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go +++ /dev/null @@ -1,1135 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/dataproxy.proto - -package service - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// ArtifactType -type ArtifactType int32 - -const ( - // ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. - ArtifactType_ARTIFACT_TYPE_UNDEFINED ArtifactType = 0 - // ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan - // finishes executing. - ArtifactType_ARTIFACT_TYPE_DECK ArtifactType = 1 -) - -// Enum value maps for ArtifactType. -var ( - ArtifactType_name = map[int32]string{ - 0: "ARTIFACT_TYPE_UNDEFINED", - 1: "ARTIFACT_TYPE_DECK", - } - ArtifactType_value = map[string]int32{ - "ARTIFACT_TYPE_UNDEFINED": 0, - "ARTIFACT_TYPE_DECK": 1, - } -) - -func (x ArtifactType) Enum() *ArtifactType { - p := new(ArtifactType) - *p = x - return p -} - -func (x ArtifactType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ArtifactType) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_service_dataproxy_proto_enumTypes[0].Descriptor() -} - -func (ArtifactType) Type() protoreflect.EnumType { - return &file_flyteidl_service_dataproxy_proto_enumTypes[0] -} - -func (x ArtifactType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ArtifactType.Descriptor instead. -func (ArtifactType) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{0} -} - -type CreateUploadLocationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - NativeUrl string `protobuf:"bytes,2,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` - // ExpiresAt defines when will the signed URL expires. - ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` -} - -func (x *CreateUploadLocationResponse) Reset() { - *x = CreateUploadLocationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateUploadLocationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUploadLocationResponse) ProtoMessage() {} - -func (x *CreateUploadLocationResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUploadLocationResponse.ProtoReflect.Descriptor instead. -func (*CreateUploadLocationResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{0} -} - -func (x *CreateUploadLocationResponse) GetSignedUrl() string { - if x != nil { - return x.SignedUrl - } - return "" -} - -func (x *CreateUploadLocationResponse) GetNativeUrl() string { - if x != nil { - return x.NativeUrl - } - return "" -} - -func (x *CreateUploadLocationResponse) GetExpiresAt() *timestamppb.Timestamp { - if x != nil { - return x.ExpiresAt - } - return nil -} - -// CreateUploadLocationRequest specified request for the CreateUploadLocation API. -// The implementation in data proxy service will create the s3 location with some server side configured prefixes, -// and then: -// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR -// - project/domain/filename_root (if present)/filename (if present). -type CreateUploadLocationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Project to create the upload location for - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Domain to create the upload location for. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. - // +optional. By default, the service will generate a consistent name based on the provided parameters. - Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` - // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - // exceeds the platform allowed max. - // +optional. The default value comes from a global config. - ExpiresIn *durationpb.Duration `protobuf:"bytes,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` - // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the - // generated path. - // +required - ContentMd5 []byte `protobuf:"bytes,5,opt,name=content_md5,json=contentMd5,proto3" json:"content_md5,omitempty"` - // If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included - // this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix - // in data proxy config. This option is useful when uploading multiple files. - // +optional - FilenameRoot string `protobuf:"bytes,6,opt,name=filename_root,json=filenameRoot,proto3" json:"filename_root,omitempty"` -} - -func (x *CreateUploadLocationRequest) Reset() { - *x = CreateUploadLocationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateUploadLocationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUploadLocationRequest) ProtoMessage() {} - -func (x *CreateUploadLocationRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUploadLocationRequest.ProtoReflect.Descriptor instead. -func (*CreateUploadLocationRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{1} -} - -func (x *CreateUploadLocationRequest) GetProject() string { - if x != nil { - return x.Project - } - return "" -} - -func (x *CreateUploadLocationRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -func (x *CreateUploadLocationRequest) GetFilename() string { - if x != nil { - return x.Filename - } - return "" -} - -func (x *CreateUploadLocationRequest) GetExpiresIn() *durationpb.Duration { - if x != nil { - return x.ExpiresIn - } - return nil -} - -func (x *CreateUploadLocationRequest) GetContentMd5() []byte { - if x != nil { - return x.ContentMd5 - } - return nil -} - -func (x *CreateUploadLocationRequest) GetFilenameRoot() string { - if x != nil { - return x.FilenameRoot - } - return "" -} - -// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. -// -// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. -type CreateDownloadLocationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - NativeUrl string `protobuf:"bytes,1,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` - // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - // exceeds the platform allowed max. - // +optional. The default value comes from a global config. - ExpiresIn *durationpb.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` -} - -func (x *CreateDownloadLocationRequest) Reset() { - *x = CreateDownloadLocationRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDownloadLocationRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDownloadLocationRequest) ProtoMessage() {} - -func (x *CreateDownloadLocationRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDownloadLocationRequest.ProtoReflect.Descriptor instead. -func (*CreateDownloadLocationRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{2} -} - -func (x *CreateDownloadLocationRequest) GetNativeUrl() string { - if x != nil { - return x.NativeUrl - } - return "" -} - -func (x *CreateDownloadLocationRequest) GetExpiresIn() *durationpb.Duration { - if x != nil { - return x.ExpiresIn - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. -type CreateDownloadLocationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // ExpiresAt defines when will the signed URL expires. - ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` -} - -func (x *CreateDownloadLocationResponse) Reset() { - *x = CreateDownloadLocationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDownloadLocationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDownloadLocationResponse) ProtoMessage() {} - -func (x *CreateDownloadLocationResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDownloadLocationResponse.ProtoReflect.Descriptor instead. -func (*CreateDownloadLocationResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateDownloadLocationResponse) GetSignedUrl() string { - if x != nil { - return x.SignedUrl - } - return "" -} - -func (x *CreateDownloadLocationResponse) GetExpiresAt() *timestamppb.Timestamp { - if x != nil { - return x.ExpiresAt - } - return nil -} - -// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) -type CreateDownloadLinkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ArtifactType of the artifact requested. - ArtifactType ArtifactType `protobuf:"varint,1,opt,name=artifact_type,json=artifactType,proto3,enum=flyteidl.service.ArtifactType" json:"artifact_type,omitempty"` - // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - // exceeds the platform allowed max. - // +optional. The default value comes from a global config. - ExpiresIn *durationpb.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` - // Types that are assignable to Source: - // - // *CreateDownloadLinkRequest_NodeExecutionId - Source isCreateDownloadLinkRequest_Source `protobuf_oneof:"source"` -} - -func (x *CreateDownloadLinkRequest) Reset() { - *x = CreateDownloadLinkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDownloadLinkRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDownloadLinkRequest) ProtoMessage() {} - -func (x *CreateDownloadLinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDownloadLinkRequest.ProtoReflect.Descriptor instead. -func (*CreateDownloadLinkRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateDownloadLinkRequest) GetArtifactType() ArtifactType { - if x != nil { - return x.ArtifactType - } - return ArtifactType_ARTIFACT_TYPE_UNDEFINED -} - -func (x *CreateDownloadLinkRequest) GetExpiresIn() *durationpb.Duration { - if x != nil { - return x.ExpiresIn - } - return nil -} - -func (m *CreateDownloadLinkRequest) GetSource() isCreateDownloadLinkRequest_Source { - if m != nil { - return m.Source - } - return nil -} - -func (x *CreateDownloadLinkRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { - if x, ok := x.GetSource().(*CreateDownloadLinkRequest_NodeExecutionId); ok { - return x.NodeExecutionId - } - return nil -} - -type isCreateDownloadLinkRequest_Source interface { - isCreateDownloadLinkRequest_Source() -} - -type CreateDownloadLinkRequest_NodeExecutionId struct { - // NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the - // most recent attempt of the task. - NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,3,opt,name=node_execution_id,json=nodeExecutionId,proto3,oneof"` -} - -func (*CreateDownloadLinkRequest_NodeExecutionId) isCreateDownloadLinkRequest_Source() {} - -// CreateDownloadLinkResponse defines the response for the generated links -type CreateDownloadLinkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - // - // Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. - SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // ExpiresAt defines when will the signed URL expire. - // - // Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. - ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - // New wrapper object containing the signed urls and expiration time - PreSignedUrls *PreSignedURLs `protobuf:"bytes,3,opt,name=pre_signed_urls,json=preSignedUrls,proto3" json:"pre_signed_urls,omitempty"` -} - -func (x *CreateDownloadLinkResponse) Reset() { - *x = CreateDownloadLinkResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDownloadLinkResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDownloadLinkResponse) ProtoMessage() {} - -func (x *CreateDownloadLinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDownloadLinkResponse.ProtoReflect.Descriptor instead. -func (*CreateDownloadLinkResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{5} -} - -// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. -func (x *CreateDownloadLinkResponse) GetSignedUrl() []string { - if x != nil { - return x.SignedUrl - } - return nil -} - -// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. -func (x *CreateDownloadLinkResponse) GetExpiresAt() *timestamppb.Timestamp { - if x != nil { - return x.ExpiresAt - } - return nil -} - -func (x *CreateDownloadLinkResponse) GetPreSignedUrls() *PreSignedURLs { - if x != nil { - return x.PreSignedUrls - } - return nil -} - -// Wrapper object since the message is shared across this and the GetDataResponse -type PreSignedURLs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // ExpiresAt defines when will the signed URL expire. - ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` -} - -func (x *PreSignedURLs) Reset() { - *x = PreSignedURLs{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreSignedURLs) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreSignedURLs) ProtoMessage() {} - -func (x *PreSignedURLs) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreSignedURLs.ProtoReflect.Descriptor instead. -func (*PreSignedURLs) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{6} -} - -func (x *PreSignedURLs) GetSignedUrl() []string { - if x != nil { - return x.SignedUrl - } - return nil -} - -func (x *PreSignedURLs) GetExpiresAt() *timestamppb.Timestamp { - if x != nil { - return x.ExpiresAt - } - return nil -} - -// General request artifact to retrieve data from a Flyte artifact url. -type GetDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A unique identifier in the form of flyte:// that uniquely, for a given Flyte - // backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.). - // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) - // - // flyte://v1/proj/development/execid/n2/i (for node execution input) - // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) - FlyteUrl string `protobuf:"bytes,1,opt,name=flyte_url,json=flyteUrl,proto3" json:"flyte_url,omitempty"` -} - -func (x *GetDataRequest) Reset() { - *x = GetDataRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDataRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDataRequest) ProtoMessage() {} - -func (x *GetDataRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDataRequest.ProtoReflect.Descriptor instead. -func (*GetDataRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{7} -} - -func (x *GetDataRequest) GetFlyteUrl() string { - if x != nil { - return x.FlyteUrl - } - return "" -} - -type GetDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Data: - // - // *GetDataResponse_LiteralMap - // *GetDataResponse_PreSignedUrls - // *GetDataResponse_Literal - Data isGetDataResponse_Data `protobuf_oneof:"data"` -} - -func (x *GetDataResponse) Reset() { - *x = GetDataResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDataResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDataResponse) ProtoMessage() {} - -func (x *GetDataResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_dataproxy_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDataResponse.ProtoReflect.Descriptor instead. -func (*GetDataResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{8} -} - -func (m *GetDataResponse) GetData() isGetDataResponse_Data { - if m != nil { - return m.Data - } - return nil -} - -func (x *GetDataResponse) GetLiteralMap() *core.LiteralMap { - if x, ok := x.GetData().(*GetDataResponse_LiteralMap); ok { - return x.LiteralMap - } - return nil -} - -func (x *GetDataResponse) GetPreSignedUrls() *PreSignedURLs { - if x, ok := x.GetData().(*GetDataResponse_PreSignedUrls); ok { - return x.PreSignedUrls - } - return nil -} - -func (x *GetDataResponse) GetLiteral() *core.Literal { - if x, ok := x.GetData().(*GetDataResponse_Literal); ok { - return x.Literal - } - return nil -} - -type isGetDataResponse_Data interface { - isGetDataResponse_Data() -} - -type GetDataResponse_LiteralMap struct { - // literal map data will be returned - LiteralMap *core.LiteralMap `protobuf:"bytes,1,opt,name=literal_map,json=literalMap,proto3,oneof"` -} - -type GetDataResponse_PreSignedUrls struct { - // Flyte deck html will be returned as a signed url users can download - PreSignedUrls *PreSignedURLs `protobuf:"bytes,2,opt,name=pre_signed_urls,json=preSignedUrls,proto3,oneof"` -} - -type GetDataResponse_Literal struct { - // Single literal will be returned. This is returned when the user/url requests a specific output or input - // by name. See the o3 example above. - Literal *core.Literal `protobuf:"bytes,3,opt,name=literal,proto3,oneof"` -} - -func (*GetDataResponse_LiteralMap) isGetDataResponse_Data() {} - -func (*GetDataResponse_PreSignedUrls) isGetDataResponse_Data() {} - -func (*GetDataResponse_Literal) isGetDataResponse_Data() {} - -var File_flyteidl_service_dataproxy_proto protoreflect.FileDescriptor - -var file_flyteidl_service_dataproxy_proto_rawDesc = []byte{ - 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, - 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, 0x6f, - 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, - 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x72, 0x6c, - 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0xeb, 0x01, 0x0a, 0x1b, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, - 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x65, 0x78, 0x70, - 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x73, 0x49, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6d, - 0x64, 0x35, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x4d, 0x64, 0x35, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, - 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x69, 0x6c, - 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x22, 0x7c, 0x0a, 0x1d, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x61, - 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x38, 0x0a, 0x0a, 0x65, 0x78, 0x70, - 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x73, 0x49, 0x6e, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x7e, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, - 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x73, 0x41, 0x74, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xfa, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, - 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x61, 0x72, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x65, 0x78, - 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x65, 0x73, 0x49, 0x6e, 0x12, 0x54, 0x0a, 0x11, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, - 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x73, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x3d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x47, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x5f, 0x73, 0x69, 0x67, - 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x50, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x52, - 0x0d, 0x70, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x73, 0x22, 0x69, - 0x0a, 0x0d, 0x50, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x12, - 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x39, - 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x2d, 0x0a, 0x0e, 0x47, 0x65, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x55, 0x72, 0x6c, 0x22, 0xd6, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0b, - 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x0a, - 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x72, - 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, - 0x55, 0x52, 0x4c, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, - 0x64, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x48, 0x00, - 0x52, 0x07, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x2a, 0x43, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, - 0x0a, 0x12, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x44, 0x45, 0x43, 0x4b, 0x10, 0x01, 0x32, 0x84, 0x07, 0x0a, 0x10, 0x44, 0x61, 0x74, 0x61, 0x50, - 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf0, 0x01, 0x0a, 0x14, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, - 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x79, 0x92, 0x41, 0x4d, 0x1a, 0x4b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x73, 0x20, 0x61, 0x20, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x68, - 0x74, 0x74, 0x70, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, - 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, - 0x66, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x20, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6e, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x6e, 0x12, 0xa9, - 0x02, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xab, 0x01, 0x92, - 0x41, 0x7f, 0x1a, 0x7d, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x3a, 0x20, - 0x50, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x20, 0x75, 0x73, 0x65, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x69, 0x6e, - 0x73, 0x74, 0x65, 0x61, 0x64, 0x2e, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, - 0x20, 0x72, 0x65, 0x61, 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x68, 0x74, 0x74, 0x70, 0x20, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, - 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x20, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, - 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x6e, 0x88, 0x02, 0x01, 0x12, 0xea, 0x01, 0x0a, 0x12, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, - 0x6b, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, - 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, - 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x92, 0x41, - 0x4c, 0x1a, 0x4a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x72, 0x65, 0x61, - 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x68, 0x74, 0x74, 0x70, 0x20, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x73, 0x6b, - 0x73, 0x20, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x64, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, - 0x0c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x42, 0xc6, 0x01, - 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, - 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, - 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_service_dataproxy_proto_rawDescOnce sync.Once - file_flyteidl_service_dataproxy_proto_rawDescData = file_flyteidl_service_dataproxy_proto_rawDesc -) - -func file_flyteidl_service_dataproxy_proto_rawDescGZIP() []byte { - file_flyteidl_service_dataproxy_proto_rawDescOnce.Do(func() { - file_flyteidl_service_dataproxy_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_dataproxy_proto_rawDescData) - }) - return file_flyteidl_service_dataproxy_proto_rawDescData -} - -var file_flyteidl_service_dataproxy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_service_dataproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_flyteidl_service_dataproxy_proto_goTypes = []interface{}{ - (ArtifactType)(0), // 0: flyteidl.service.ArtifactType - (*CreateUploadLocationResponse)(nil), // 1: flyteidl.service.CreateUploadLocationResponse - (*CreateUploadLocationRequest)(nil), // 2: flyteidl.service.CreateUploadLocationRequest - (*CreateDownloadLocationRequest)(nil), // 3: flyteidl.service.CreateDownloadLocationRequest - (*CreateDownloadLocationResponse)(nil), // 4: flyteidl.service.CreateDownloadLocationResponse - (*CreateDownloadLinkRequest)(nil), // 5: flyteidl.service.CreateDownloadLinkRequest - (*CreateDownloadLinkResponse)(nil), // 6: flyteidl.service.CreateDownloadLinkResponse - (*PreSignedURLs)(nil), // 7: flyteidl.service.PreSignedURLs - (*GetDataRequest)(nil), // 8: flyteidl.service.GetDataRequest - (*GetDataResponse)(nil), // 9: flyteidl.service.GetDataResponse - (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 11: google.protobuf.Duration - (*core.NodeExecutionIdentifier)(nil), // 12: flyteidl.core.NodeExecutionIdentifier - (*core.LiteralMap)(nil), // 13: flyteidl.core.LiteralMap - (*core.Literal)(nil), // 14: flyteidl.core.Literal -} -var file_flyteidl_service_dataproxy_proto_depIdxs = []int32{ - 10, // 0: flyteidl.service.CreateUploadLocationResponse.expires_at:type_name -> google.protobuf.Timestamp - 11, // 1: flyteidl.service.CreateUploadLocationRequest.expires_in:type_name -> google.protobuf.Duration - 11, // 2: flyteidl.service.CreateDownloadLocationRequest.expires_in:type_name -> google.protobuf.Duration - 10, // 3: flyteidl.service.CreateDownloadLocationResponse.expires_at:type_name -> google.protobuf.Timestamp - 0, // 4: flyteidl.service.CreateDownloadLinkRequest.artifact_type:type_name -> flyteidl.service.ArtifactType - 11, // 5: flyteidl.service.CreateDownloadLinkRequest.expires_in:type_name -> google.protobuf.Duration - 12, // 6: flyteidl.service.CreateDownloadLinkRequest.node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier - 10, // 7: flyteidl.service.CreateDownloadLinkResponse.expires_at:type_name -> google.protobuf.Timestamp - 7, // 8: flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls:type_name -> flyteidl.service.PreSignedURLs - 10, // 9: flyteidl.service.PreSignedURLs.expires_at:type_name -> google.protobuf.Timestamp - 13, // 10: flyteidl.service.GetDataResponse.literal_map:type_name -> flyteidl.core.LiteralMap - 7, // 11: flyteidl.service.GetDataResponse.pre_signed_urls:type_name -> flyteidl.service.PreSignedURLs - 14, // 12: flyteidl.service.GetDataResponse.literal:type_name -> flyteidl.core.Literal - 2, // 13: flyteidl.service.DataProxyService.CreateUploadLocation:input_type -> flyteidl.service.CreateUploadLocationRequest - 3, // 14: flyteidl.service.DataProxyService.CreateDownloadLocation:input_type -> flyteidl.service.CreateDownloadLocationRequest - 5, // 15: flyteidl.service.DataProxyService.CreateDownloadLink:input_type -> flyteidl.service.CreateDownloadLinkRequest - 8, // 16: flyteidl.service.DataProxyService.GetData:input_type -> flyteidl.service.GetDataRequest - 1, // 17: flyteidl.service.DataProxyService.CreateUploadLocation:output_type -> flyteidl.service.CreateUploadLocationResponse - 4, // 18: flyteidl.service.DataProxyService.CreateDownloadLocation:output_type -> flyteidl.service.CreateDownloadLocationResponse - 6, // 19: flyteidl.service.DataProxyService.CreateDownloadLink:output_type -> flyteidl.service.CreateDownloadLinkResponse - 9, // 20: flyteidl.service.DataProxyService.GetData:output_type -> flyteidl.service.GetDataResponse - 17, // [17:21] is the sub-list for method output_type - 13, // [13:17] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_dataproxy_proto_init() } -func file_flyteidl_service_dataproxy_proto_init() { - if File_flyteidl_service_dataproxy_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_service_dataproxy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateUploadLocationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateUploadLocationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDownloadLocationRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDownloadLocationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDownloadLinkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDownloadLinkResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreSignedURLs); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDataRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDataResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_flyteidl_service_dataproxy_proto_msgTypes[4].OneofWrappers = []interface{}{ - (*CreateDownloadLinkRequest_NodeExecutionId)(nil), - } - file_flyteidl_service_dataproxy_proto_msgTypes[8].OneofWrappers = []interface{}{ - (*GetDataResponse_LiteralMap)(nil), - (*GetDataResponse_PreSignedUrls)(nil), - (*GetDataResponse_Literal)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_dataproxy_proto_rawDesc, - NumEnums: 1, - NumMessages: 9, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_service_dataproxy_proto_goTypes, - DependencyIndexes: file_flyteidl_service_dataproxy_proto_depIdxs, - EnumInfos: file_flyteidl_service_dataproxy_proto_enumTypes, - MessageInfos: file_flyteidl_service_dataproxy_proto_msgTypes, - }.Build() - File_flyteidl_service_dataproxy_proto = out.File - file_flyteidl_service_dataproxy_proto_rawDesc = nil - file_flyteidl_service_dataproxy_proto_goTypes = nil - file_flyteidl_service_dataproxy_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go deleted file mode 100644 index 4b3245c344..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go +++ /dev/null @@ -1,227 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/dataproxy.proto - -package service - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - DataProxyService_CreateUploadLocation_FullMethodName = "/flyteidl.service.DataProxyService/CreateUploadLocation" - DataProxyService_CreateDownloadLocation_FullMethodName = "/flyteidl.service.DataProxyService/CreateDownloadLocation" - DataProxyService_CreateDownloadLink_FullMethodName = "/flyteidl.service.DataProxyService/CreateDownloadLink" - DataProxyService_GetData_FullMethodName = "/flyteidl.service.DataProxyService/GetData" -) - -// DataProxyServiceClient is the client API for DataProxyService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type DataProxyServiceClient interface { - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) - // Deprecated: Do not use. - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) - GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) -} - -type dataProxyServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewDataProxyServiceClient(cc grpc.ClientConnInterface) DataProxyServiceClient { - return &dataProxyServiceClient{cc} -} - -func (c *dataProxyServiceClient) CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) { - out := new(CreateUploadLocationResponse) - err := c.cc.Invoke(ctx, DataProxyService_CreateUploadLocation_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *dataProxyServiceClient) CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) { - out := new(CreateDownloadLocationResponse) - err := c.cc.Invoke(ctx, DataProxyService_CreateDownloadLocation_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataProxyServiceClient) CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) { - out := new(CreateDownloadLinkResponse) - err := c.cc.Invoke(ctx, DataProxyService_CreateDownloadLink_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataProxyServiceClient) GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) { - out := new(GetDataResponse) - err := c.cc.Invoke(ctx, DataProxyService_GetData_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DataProxyServiceServer is the server API for DataProxyService service. -// All implementations should embed UnimplementedDataProxyServiceServer -// for forward compatibility -type DataProxyServiceServer interface { - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - CreateUploadLocation(context.Context, *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) - // Deprecated: Do not use. - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLocation(context.Context, *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLink(context.Context, *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) - GetData(context.Context, *GetDataRequest) (*GetDataResponse, error) -} - -// UnimplementedDataProxyServiceServer should be embedded to have forward compatible implementations. -type UnimplementedDataProxyServiceServer struct { -} - -func (UnimplementedDataProxyServiceServer) CreateUploadLocation(context.Context, *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUploadLocation not implemented") -} -func (UnimplementedDataProxyServiceServer) CreateDownloadLocation(context.Context, *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLocation not implemented") -} -func (UnimplementedDataProxyServiceServer) CreateDownloadLink(context.Context, *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLink not implemented") -} -func (UnimplementedDataProxyServiceServer) GetData(context.Context, *GetDataRequest) (*GetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetData not implemented") -} - -// UnsafeDataProxyServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to DataProxyServiceServer will -// result in compilation errors. -type UnsafeDataProxyServiceServer interface { - mustEmbedUnimplementedDataProxyServiceServer() -} - -func RegisterDataProxyServiceServer(s grpc.ServiceRegistrar, srv DataProxyServiceServer) { - s.RegisterService(&DataProxyService_ServiceDesc, srv) -} - -func _DataProxyService_CreateUploadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUploadLocationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataProxyService_CreateUploadLocation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, req.(*CreateUploadLocationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataProxyService_CreateDownloadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDownloadLocationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataProxyService_CreateDownloadLocation_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, req.(*CreateDownloadLocationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataProxyService_CreateDownloadLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDownloadLinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataProxyService_CreateDownloadLink_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, req.(*CreateDownloadLinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataProxyService_GetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).GetData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DataProxyService_GetData_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).GetData(ctx, req.(*GetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// DataProxyService_ServiceDesc is the grpc.ServiceDesc for DataProxyService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var DataProxyService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.DataProxyService", - HandlerType: (*DataProxyServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateUploadLocation", - Handler: _DataProxyService_CreateUploadLocation_Handler, - }, - { - MethodName: "CreateDownloadLocation", - Handler: _DataProxyService_CreateDownloadLocation_Handler, - }, - { - MethodName: "CreateDownloadLink", - Handler: _DataProxyService_CreateDownloadLink_Handler, - }, - { - MethodName: "GetData", - Handler: _DataProxyService_GetData_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/dataproxy.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go deleted file mode 100644 index d0dc517425..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go +++ /dev/null @@ -1,651 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/external_plugin_service.proto - -package service - -import ( - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// The state of the execution is used to control its visibility in the UI/CLI. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type State int32 - -const ( - State_RETRYABLE_FAILURE State = 0 - State_PERMANENT_FAILURE State = 1 - State_PENDING State = 2 - State_RUNNING State = 3 - State_SUCCEEDED State = 4 -) - -// Enum value maps for State. -var ( - State_name = map[int32]string{ - 0: "RETRYABLE_FAILURE", - 1: "PERMANENT_FAILURE", - 2: "PENDING", - 3: "RUNNING", - 4: "SUCCEEDED", - } - State_value = map[string]int32{ - "RETRYABLE_FAILURE": 0, - "PERMANENT_FAILURE": 1, - "PENDING": 2, - "RUNNING": 3, - "SUCCEEDED": 4, - } -) - -func (x State) Enum() *State { - p := new(State) - *p = x - return p -} - -func (x State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (State) Descriptor() protoreflect.EnumDescriptor { - return file_flyteidl_service_external_plugin_service_proto_enumTypes[0].Descriptor() -} - -func (State) Type() protoreflect.EnumType { - return &file_flyteidl_service_external_plugin_service_proto_enumTypes[0] -} - -func (x State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use State.Descriptor instead. -func (State) EnumDescriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{0} -} - -// Represents a request structure to create task. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type TaskCreateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` -} - -func (x *TaskCreateRequest) Reset() { - *x = TaskCreateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskCreateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskCreateRequest) ProtoMessage() {} - -func (x *TaskCreateRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskCreateRequest.ProtoReflect.Descriptor instead. -func (*TaskCreateRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{0} -} - -func (x *TaskCreateRequest) GetInputs() *core.LiteralMap { - if x != nil { - return x.Inputs - } - return nil -} - -func (x *TaskCreateRequest) GetTemplate() *core.TaskTemplate { - if x != nil { - return x.Template - } - return nil -} - -func (x *TaskCreateRequest) GetOutputPrefix() string { - if x != nil { - return x.OutputPrefix - } - return "" -} - -// Represents a create response structure. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type TaskCreateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *TaskCreateResponse) Reset() { - *x = TaskCreateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskCreateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskCreateResponse) ProtoMessage() {} - -func (x *TaskCreateResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskCreateResponse.ProtoReflect.Descriptor instead. -func (*TaskCreateResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{1} -} - -func (x *TaskCreateResponse) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -// A message used to fetch a job state from backend plugin server. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type TaskGetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // The unique id identifying the job. - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *TaskGetRequest) Reset() { - *x = TaskGetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskGetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskGetRequest) ProtoMessage() {} - -func (x *TaskGetRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskGetRequest.ProtoReflect.Descriptor instead. -func (*TaskGetRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{2} -} - -func (x *TaskGetRequest) GetTaskType() string { - if x != nil { - return x.TaskType - } - return "" -} - -func (x *TaskGetRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -// Response to get an individual task state. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type TaskGetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The state of the execution is used to control its visibility in the UI/CLI. - State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.service.State" json:"state,omitempty"` - // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a - // Structured dataset pointing to the query result table. - // +optional - Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` -} - -func (x *TaskGetResponse) Reset() { - *x = TaskGetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskGetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskGetResponse) ProtoMessage() {} - -func (x *TaskGetResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskGetResponse.ProtoReflect.Descriptor instead. -func (*TaskGetResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{3} -} - -func (x *TaskGetResponse) GetState() State { - if x != nil { - return x.State - } - return State_RETRYABLE_FAILURE -} - -func (x *TaskGetResponse) GetOutputs() *core.LiteralMap { - if x != nil { - return x.Outputs - } - return nil -} - -// A message used to delete a task. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type TaskDeleteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // The unique id identifying the job. - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` -} - -func (x *TaskDeleteRequest) Reset() { - *x = TaskDeleteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskDeleteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskDeleteRequest) ProtoMessage() {} - -func (x *TaskDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskDeleteRequest.ProtoReflect.Descriptor instead. -func (*TaskDeleteRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{4} -} - -func (x *TaskDeleteRequest) GetTaskType() string { - if x != nil { - return x.TaskType - } - return "" -} - -func (x *TaskDeleteRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -// Response to delete a task. -// -// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. -type TaskDeleteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *TaskDeleteResponse) Reset() { - *x = TaskDeleteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TaskDeleteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TaskDeleteResponse) ProtoMessage() {} - -func (x *TaskDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TaskDeleteResponse.ProtoReflect.Descriptor instead. -func (*TaskDeleteResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{5} -} - -var File_flyteidl_service_external_plugin_service_proto protoreflect.FileDescriptor - -var file_flyteidl_service_external_plugin_service_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x75, 0x67, - 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, - 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, - 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x01, 0x0a, 0x11, - 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, - 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x06, 0x69, 0x6e, - 0x70, 0x75, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, - 0x69, 0x78, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x2f, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, - 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, - 0x62, 0x49, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x48, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x47, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, - 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, - 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x3a, 0x02, 0x18, - 0x01, 0x22, 0x79, 0x0a, 0x0f, 0x54, 0x61, 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, - 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x4b, 0x0a, 0x11, - 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, - 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x18, 0x0a, 0x12, 0x54, 0x61, 0x73, - 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, - 0x02, 0x18, 0x01, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, - 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, - 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, - 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, - 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, - 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x32, 0xa8, 0x02, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, - 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, - 0x53, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, - 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x03, 0x88, 0x02, 0x01, 0x12, 0x5c, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, - 0x73, 0x6b, 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, - 0x02, 0x01, 0x42, 0xd2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x1a, 0x45, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, - 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, - 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_service_external_plugin_service_proto_rawDescOnce sync.Once - file_flyteidl_service_external_plugin_service_proto_rawDescData = file_flyteidl_service_external_plugin_service_proto_rawDesc -) - -func file_flyteidl_service_external_plugin_service_proto_rawDescGZIP() []byte { - file_flyteidl_service_external_plugin_service_proto_rawDescOnce.Do(func() { - file_flyteidl_service_external_plugin_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_external_plugin_service_proto_rawDescData) - }) - return file_flyteidl_service_external_plugin_service_proto_rawDescData -} - -var file_flyteidl_service_external_plugin_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_flyteidl_service_external_plugin_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_flyteidl_service_external_plugin_service_proto_goTypes = []interface{}{ - (State)(0), // 0: flyteidl.service.State - (*TaskCreateRequest)(nil), // 1: flyteidl.service.TaskCreateRequest - (*TaskCreateResponse)(nil), // 2: flyteidl.service.TaskCreateResponse - (*TaskGetRequest)(nil), // 3: flyteidl.service.TaskGetRequest - (*TaskGetResponse)(nil), // 4: flyteidl.service.TaskGetResponse - (*TaskDeleteRequest)(nil), // 5: flyteidl.service.TaskDeleteRequest - (*TaskDeleteResponse)(nil), // 6: flyteidl.service.TaskDeleteResponse - (*core.LiteralMap)(nil), // 7: flyteidl.core.LiteralMap - (*core.TaskTemplate)(nil), // 8: flyteidl.core.TaskTemplate -} -var file_flyteidl_service_external_plugin_service_proto_depIdxs = []int32{ - 7, // 0: flyteidl.service.TaskCreateRequest.inputs:type_name -> flyteidl.core.LiteralMap - 8, // 1: flyteidl.service.TaskCreateRequest.template:type_name -> flyteidl.core.TaskTemplate - 0, // 2: flyteidl.service.TaskGetResponse.state:type_name -> flyteidl.service.State - 7, // 3: flyteidl.service.TaskGetResponse.outputs:type_name -> flyteidl.core.LiteralMap - 1, // 4: flyteidl.service.ExternalPluginService.CreateTask:input_type -> flyteidl.service.TaskCreateRequest - 3, // 5: flyteidl.service.ExternalPluginService.GetTask:input_type -> flyteidl.service.TaskGetRequest - 5, // 6: flyteidl.service.ExternalPluginService.DeleteTask:input_type -> flyteidl.service.TaskDeleteRequest - 2, // 7: flyteidl.service.ExternalPluginService.CreateTask:output_type -> flyteidl.service.TaskCreateResponse - 4, // 8: flyteidl.service.ExternalPluginService.GetTask:output_type -> flyteidl.service.TaskGetResponse - 6, // 9: flyteidl.service.ExternalPluginService.DeleteTask:output_type -> flyteidl.service.TaskDeleteResponse - 7, // [7:10] is the sub-list for method output_type - 4, // [4:7] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_external_plugin_service_proto_init() } -func file_flyteidl_service_external_plugin_service_proto_init() { - if File_flyteidl_service_external_plugin_service_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_service_external_plugin_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskCreateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_external_plugin_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskCreateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_external_plugin_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskGetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_external_plugin_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskGetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_external_plugin_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskDeleteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_external_plugin_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskDeleteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_external_plugin_service_proto_rawDesc, - NumEnums: 1, - NumMessages: 6, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_service_external_plugin_service_proto_goTypes, - DependencyIndexes: file_flyteidl_service_external_plugin_service_proto_depIdxs, - EnumInfos: file_flyteidl_service_external_plugin_service_proto_enumTypes, - MessageInfos: file_flyteidl_service_external_plugin_service_proto_msgTypes, - }.Build() - File_flyteidl_service_external_plugin_service_proto = out.File - file_flyteidl_service_external_plugin_service_proto_rawDesc = nil - file_flyteidl_service_external_plugin_service_proto_goTypes = nil - file_flyteidl_service_external_plugin_service_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go deleted file mode 100644 index 3cd5f1639e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/external_plugin_service.proto - -package service - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - ExternalPluginService_CreateTask_FullMethodName = "/flyteidl.service.ExternalPluginService/CreateTask" - ExternalPluginService_GetTask_FullMethodName = "/flyteidl.service.ExternalPluginService/GetTask" - ExternalPluginService_DeleteTask_FullMethodName = "/flyteidl.service.ExternalPluginService/DeleteTask" -) - -// ExternalPluginServiceClient is the client API for ExternalPluginService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ExternalPluginServiceClient interface { - // Deprecated: Do not use. - // Send a task create request to the backend plugin server. - CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) - // Deprecated: Do not use. - // Get job status. - GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) - // Deprecated: Do not use. - // Delete the task resource. - DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) -} - -type externalPluginServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewExternalPluginServiceClient(cc grpc.ClientConnInterface) ExternalPluginServiceClient { - return &externalPluginServiceClient{cc} -} - -// Deprecated: Do not use. -func (c *externalPluginServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { - out := new(TaskCreateResponse) - err := c.cc.Invoke(ctx, ExternalPluginService_CreateTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *externalPluginServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { - out := new(TaskGetResponse) - err := c.cc.Invoke(ctx, ExternalPluginService_GetTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *externalPluginServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { - out := new(TaskDeleteResponse) - err := c.cc.Invoke(ctx, ExternalPluginService_DeleteTask_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ExternalPluginServiceServer is the server API for ExternalPluginService service. -// All implementations should embed UnimplementedExternalPluginServiceServer -// for forward compatibility -type ExternalPluginServiceServer interface { - // Deprecated: Do not use. - // Send a task create request to the backend plugin server. - CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) - // Deprecated: Do not use. - // Get job status. - GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) - // Deprecated: Do not use. - // Delete the task resource. - DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) -} - -// UnimplementedExternalPluginServiceServer should be embedded to have forward compatible implementations. -type UnimplementedExternalPluginServiceServer struct { -} - -func (UnimplementedExternalPluginServiceServer) CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") -} -func (UnimplementedExternalPluginServiceServer) GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") -} -func (UnimplementedExternalPluginServiceServer) DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") -} - -// UnsafeExternalPluginServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ExternalPluginServiceServer will -// result in compilation errors. -type UnsafeExternalPluginServiceServer interface { - mustEmbedUnimplementedExternalPluginServiceServer() -} - -func RegisterExternalPluginServiceServer(s grpc.ServiceRegistrar, srv ExternalPluginServiceServer) { - s.RegisterService(&ExternalPluginService_ServiceDesc, srv) -} - -func _ExternalPluginService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalPluginServiceServer).CreateTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ExternalPluginService_CreateTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalPluginService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalPluginServiceServer).GetTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ExternalPluginService_GetTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).GetTask(ctx, req.(*TaskGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalPluginService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalPluginServiceServer).DeleteTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: ExternalPluginService_DeleteTask_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// ExternalPluginService_ServiceDesc is the grpc.ServiceDesc for ExternalPluginService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var ExternalPluginService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.ExternalPluginService", - HandlerType: (*ExternalPluginServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTask", - Handler: _ExternalPluginService_CreateTask_Handler, - }, - { - MethodName: "GetTask", - Handler: _ExternalPluginService_GetTask_Handler, - }, - { - MethodName: "DeleteTask", - Handler: _ExternalPluginService_DeleteTask_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/external_plugin_service.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go deleted file mode 100644 index 87430aa9c5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go +++ /dev/null @@ -1,313 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/identity.proto - -package service - -import ( - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type UserInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UserInfoRequest) Reset() { - *x = UserInfoRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_identity_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserInfoRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserInfoRequest) ProtoMessage() {} - -func (x *UserInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_identity_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead. -func (*UserInfoRequest) Descriptor() ([]byte, []int) { - return file_flyteidl_service_identity_proto_rawDescGZIP(), []int{0} -} - -// See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. -type UserInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed - // by the Client. - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - // Full name - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Shorthand name by which the End-User wishes to be referred to - PreferredUsername string `protobuf:"bytes,3,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"` - // Given name(s) or first name(s) - GivenName string `protobuf:"bytes,4,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` - // Surname(s) or last name(s) - FamilyName string `protobuf:"bytes,5,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` - // Preferred e-mail address - Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` - // Profile picture URL - Picture string `protobuf:"bytes,7,opt,name=picture,proto3" json:"picture,omitempty"` - // Additional claims - AdditionalClaims *structpb.Struct `protobuf:"bytes,8,opt,name=additional_claims,json=additionalClaims,proto3" json:"additional_claims,omitempty"` -} - -func (x *UserInfoResponse) Reset() { - *x = UserInfoResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_flyteidl_service_identity_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserInfoResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserInfoResponse) ProtoMessage() {} - -func (x *UserInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_flyteidl_service_identity_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead. -func (*UserInfoResponse) Descriptor() ([]byte, []int) { - return file_flyteidl_service_identity_proto_rawDescGZIP(), []int{1} -} - -func (x *UserInfoResponse) GetSubject() string { - if x != nil { - return x.Subject - } - return "" -} - -func (x *UserInfoResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UserInfoResponse) GetPreferredUsername() string { - if x != nil { - return x.PreferredUsername - } - return "" -} - -func (x *UserInfoResponse) GetGivenName() string { - if x != nil { - return x.GivenName - } - return "" -} - -func (x *UserInfoResponse) GetFamilyName() string { - if x != nil { - return x.FamilyName - } - return "" -} - -func (x *UserInfoResponse) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserInfoResponse) GetPicture() string { - if x != nil { - return x.Picture - } - return "" -} - -func (x *UserInfoResponse) GetAdditionalClaims() *structpb.Struct { - if x != nil { - return x.AdditionalClaims - } - return nil -} - -var File_flyteidl_service_identity_proto protoreflect.FileDescriptor - -var file_flyteidl_service_identity_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, - 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x11, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0xa5, 0x02, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, - 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x69, - 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x69, 0x63, - 0x74, 0x75, 0x72, 0x65, 0x12, 0x44, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x32, 0x9d, 0x01, 0x0a, 0x0f, 0x49, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, - 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x36, 0x92, 0x41, 0x28, 0x1a, 0x26, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, - 0x65, 0x73, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x05, 0x12, 0x03, 0x2f, 0x6d, 0x65, 0x42, 0xc5, 0x01, 0x0a, 0x14, 0x63, - 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x42, 0x0d, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, - 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, - 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, - 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_flyteidl_service_identity_proto_rawDescOnce sync.Once - file_flyteidl_service_identity_proto_rawDescData = file_flyteidl_service_identity_proto_rawDesc -) - -func file_flyteidl_service_identity_proto_rawDescGZIP() []byte { - file_flyteidl_service_identity_proto_rawDescOnce.Do(func() { - file_flyteidl_service_identity_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_identity_proto_rawDescData) - }) - return file_flyteidl_service_identity_proto_rawDescData -} - -var file_flyteidl_service_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_flyteidl_service_identity_proto_goTypes = []interface{}{ - (*UserInfoRequest)(nil), // 0: flyteidl.service.UserInfoRequest - (*UserInfoResponse)(nil), // 1: flyteidl.service.UserInfoResponse - (*structpb.Struct)(nil), // 2: google.protobuf.Struct -} -var file_flyteidl_service_identity_proto_depIdxs = []int32{ - 2, // 0: flyteidl.service.UserInfoResponse.additional_claims:type_name -> google.protobuf.Struct - 0, // 1: flyteidl.service.IdentityService.UserInfo:input_type -> flyteidl.service.UserInfoRequest - 1, // 2: flyteidl.service.IdentityService.UserInfo:output_type -> flyteidl.service.UserInfoResponse - 2, // [2:3] is the sub-list for method output_type - 1, // [1:2] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_identity_proto_init() } -func file_flyteidl_service_identity_proto_init() { - if File_flyteidl_service_identity_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_flyteidl_service_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserInfoRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_flyteidl_service_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserInfoResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_identity_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_service_identity_proto_goTypes, - DependencyIndexes: file_flyteidl_service_identity_proto_depIdxs, - MessageInfos: file_flyteidl_service_identity_proto_msgTypes, - }.Build() - File_flyteidl_service_identity_proto = out.File - file_flyteidl_service_identity_proto_rawDesc = nil - file_flyteidl_service_identity_proto_goTypes = nil - file_flyteidl_service_identity_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go deleted file mode 100644 index 6e7c0b54dd..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/identity.proto - -package service - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - IdentityService_UserInfo_FullMethodName = "/flyteidl.service.IdentityService/UserInfo" -) - -// IdentityServiceClient is the client API for IdentityService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type IdentityServiceClient interface { - // Retrieves user information about the currently logged in user. - UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) -} - -type identityServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewIdentityServiceClient(cc grpc.ClientConnInterface) IdentityServiceClient { - return &identityServiceClient{cc} -} - -func (c *identityServiceClient) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) { - out := new(UserInfoResponse) - err := c.cc.Invoke(ctx, IdentityService_UserInfo_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// IdentityServiceServer is the server API for IdentityService service. -// All implementations should embed UnimplementedIdentityServiceServer -// for forward compatibility -type IdentityServiceServer interface { - // Retrieves user information about the currently logged in user. - UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) -} - -// UnimplementedIdentityServiceServer should be embedded to have forward compatible implementations. -type UnimplementedIdentityServiceServer struct { -} - -func (UnimplementedIdentityServiceServer) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented") -} - -// UnsafeIdentityServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to IdentityServiceServer will -// result in compilation errors. -type UnsafeIdentityServiceServer interface { - mustEmbedUnimplementedIdentityServiceServer() -} - -func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer) { - s.RegisterService(&IdentityService_ServiceDesc, srv) -} - -func _IdentityService_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IdentityServiceServer).UserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: IdentityService_UserInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IdentityServiceServer).UserInfo(ctx, req.(*UserInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// IdentityService_ServiceDesc is the grpc.ServiceDesc for IdentityService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var IdentityService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.IdentityService", - HandlerType: (*IdentityServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UserInfo", - Handler: _IdentityService_UserInfo_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/identity.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go deleted file mode 100644 index d3864887b2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc (unknown) -// source: flyteidl/service/signal.proto - -package service - -import ( - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_flyteidl_service_signal_proto protoreflect.FileDescriptor - -var file_flyteidl_service_signal_proto_rawDesc = []byte{ - 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, - 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, - 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe7, 0x05, 0x0a, - 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x90, - 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x69, - 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x4f, - 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x22, 0x39, 0x92, 0x41, 0x36, 0x1a, 0x34, 0x52, 0x65, 0x74, - 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2c, 0x20, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x74, 0x20, 0x69, 0x66, 0x20, 0x69, - 0x74, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, - 0x2e, 0x12, 0x8e, 0x02, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, - 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, - 0x22, 0xbf, 0x01, 0x92, 0x41, 0x49, 0x1a, 0x47, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, - 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x64, 0x65, - 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, - 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x73, 0x69, 0x67, - 0x6e, 0x61, 0x6c, 0x20, 0x69, 0x64, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x6d, 0x12, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, - 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, - 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x12, 0xb1, 0x02, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, - 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xde, 0x01, 0x92, 0x41, 0xc0, 0x01, 0x1a, 0x13, 0x53, 0x65, - 0x74, 0x20, 0x61, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x2e, 0x4a, 0x42, 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, 0x65, 0x74, 0x75, - 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x68, 0x61, - 0x76, 0x65, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, 0x5e, 0x0a, 0x5c, - 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x63, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, - 0x68, 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x65, 0x6e, - 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, - 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x42, 0xc3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, - 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, - 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, - 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var file_flyteidl_service_signal_proto_goTypes = []interface{}{ - (*admin.SignalGetOrCreateRequest)(nil), // 0: flyteidl.admin.SignalGetOrCreateRequest - (*admin.SignalListRequest)(nil), // 1: flyteidl.admin.SignalListRequest - (*admin.SignalSetRequest)(nil), // 2: flyteidl.admin.SignalSetRequest - (*admin.Signal)(nil), // 3: flyteidl.admin.Signal - (*admin.SignalList)(nil), // 4: flyteidl.admin.SignalList - (*admin.SignalSetResponse)(nil), // 5: flyteidl.admin.SignalSetResponse -} -var file_flyteidl_service_signal_proto_depIdxs = []int32{ - 0, // 0: flyteidl.service.SignalService.GetOrCreateSignal:input_type -> flyteidl.admin.SignalGetOrCreateRequest - 1, // 1: flyteidl.service.SignalService.ListSignals:input_type -> flyteidl.admin.SignalListRequest - 2, // 2: flyteidl.service.SignalService.SetSignal:input_type -> flyteidl.admin.SignalSetRequest - 3, // 3: flyteidl.service.SignalService.GetOrCreateSignal:output_type -> flyteidl.admin.Signal - 4, // 4: flyteidl.service.SignalService.ListSignals:output_type -> flyteidl.admin.SignalList - 5, // 5: flyteidl.service.SignalService.SetSignal:output_type -> flyteidl.admin.SignalSetResponse - 3, // [3:6] is the sub-list for method output_type - 0, // [0:3] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_flyteidl_service_signal_proto_init() } -func file_flyteidl_service_signal_proto_init() { - if File_flyteidl_service_signal_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_flyteidl_service_signal_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_flyteidl_service_signal_proto_goTypes, - DependencyIndexes: file_flyteidl_service_signal_proto_depIdxs, - }.Build() - File_flyteidl_service_signal_proto = out.File - file_flyteidl_service_signal_proto_rawDesc = nil - file_flyteidl_service_signal_proto_goTypes = nil - file_flyteidl_service_signal_proto_depIdxs = nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go deleted file mode 100644 index 6a6be05f2f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc (unknown) -// source: flyteidl/service/signal.proto - -package service - -import ( - context "context" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -const ( - SignalService_GetOrCreateSignal_FullMethodName = "/flyteidl.service.SignalService/GetOrCreateSignal" - SignalService_ListSignals_FullMethodName = "/flyteidl.service.SignalService/ListSignals" - SignalService_SetSignal_FullMethodName = "/flyteidl.service.SignalService/SetSignal" -) - -// SignalServiceClient is the client API for SignalService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type SignalServiceClient interface { - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) -} - -type signalServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewSignalServiceClient(cc grpc.ClientConnInterface) SignalServiceClient { - return &signalServiceClient{cc} -} - -func (c *signalServiceClient) GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) { - out := new(admin.Signal) - err := c.cc.Invoke(ctx, SignalService_GetOrCreateSignal_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *signalServiceClient) ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) { - out := new(admin.SignalList) - err := c.cc.Invoke(ctx, SignalService_ListSignals_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *signalServiceClient) SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) { - out := new(admin.SignalSetResponse) - err := c.cc.Invoke(ctx, SignalService_SetSignal_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SignalServiceServer is the server API for SignalService service. -// All implementations should embed UnimplementedSignalServiceServer -// for forward compatibility -type SignalServiceServer interface { - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - GetOrCreateSignal(context.Context, *admin.SignalGetOrCreateRequest) (*admin.Signal, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - ListSignals(context.Context, *admin.SignalListRequest) (*admin.SignalList, error) - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - SetSignal(context.Context, *admin.SignalSetRequest) (*admin.SignalSetResponse, error) -} - -// UnimplementedSignalServiceServer should be embedded to have forward compatible implementations. -type UnimplementedSignalServiceServer struct { -} - -func (UnimplementedSignalServiceServer) GetOrCreateSignal(context.Context, *admin.SignalGetOrCreateRequest) (*admin.Signal, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrCreateSignal not implemented") -} -func (UnimplementedSignalServiceServer) ListSignals(context.Context, *admin.SignalListRequest) (*admin.SignalList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListSignals not implemented") -} -func (UnimplementedSignalServiceServer) SetSignal(context.Context, *admin.SignalSetRequest) (*admin.SignalSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetSignal not implemented") -} - -// UnsafeSignalServiceServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to SignalServiceServer will -// result in compilation errors. -type UnsafeSignalServiceServer interface { - mustEmbedUnimplementedSignalServiceServer() -} - -func RegisterSignalServiceServer(s grpc.ServiceRegistrar, srv SignalServiceServer) { - s.RegisterService(&SignalService_ServiceDesc, srv) -} - -func _SignalService_GetOrCreateSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.SignalGetOrCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SignalServiceServer).GetOrCreateSignal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: SignalService_GetOrCreateSignal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SignalServiceServer).GetOrCreateSignal(ctx, req.(*admin.SignalGetOrCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _SignalService_ListSignals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.SignalListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SignalServiceServer).ListSignals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: SignalService_ListSignals_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SignalServiceServer).ListSignals(ctx, req.(*admin.SignalListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _SignalService_SetSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.SignalSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SignalServiceServer).SetSignal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: SignalService_SetSignal_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SignalServiceServer).SetSignal(ctx, req.(*admin.SignalSetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// SignalService_ServiceDesc is the grpc.ServiceDesc for SignalService service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var SignalService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.SignalService", - HandlerType: (*SignalServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetOrCreateSignal", - Handler: _SignalService_GetOrCreateSignal_Handler, - }, - { - MethodName: "ListSignals", - Handler: _SignalService_ListSignals_Handler, - }, - { - MethodName: "SetSignal", - Handler: _SignalService_SetSignal_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/signal.proto", -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json deleted file mode 100644 index 867b42fdf4..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/agent.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json deleted file mode 100644 index 11e3755e4c..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/cluster_assignment.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json deleted file mode 100644 index 7c8e3fac2f..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/common.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json deleted file mode 100644 index 982e0455cd..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/description_entity.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json deleted file mode 100644 index 08fc718b1b..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/event.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json deleted file mode 100644 index 1b9db4b8ec..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/execution.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json deleted file mode 100644 index 7066f302bf..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/launch_plan.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json deleted file mode 100644 index 56eb3a3948..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/matchable_resource.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json deleted file mode 100644 index cf7179f5eb..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/node_execution.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json deleted file mode 100644 index a1fc5d8f16..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/notification.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json deleted file mode 100644 index 2bfa5870e8..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/project.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json deleted file mode 100644 index 7079f79fb3..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/project_attributes.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json deleted file mode 100644 index 09f64b053d..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/project_domain_attributes.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json deleted file mode 100644 index 839787bd88..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/schedule.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json deleted file mode 100644 index 0e32934d8f..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/signal.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json deleted file mode 100644 index a6110df959..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/task.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json deleted file mode 100644 index ef9b640cc1..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/task_execution.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json deleted file mode 100644 index 6c24a79ee3..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/version.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json deleted file mode 100644 index df48bdbd6b..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/workflow.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json deleted file mode 100644 index 481b28de53..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/workflow_attributes.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json deleted file mode 100644 index 5275dc2670..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/artifact_id.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json deleted file mode 100644 index 844c33316f..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/catalog.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json deleted file mode 100644 index 55482fb19d..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/compiler.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json deleted file mode 100644 index 2c30824855..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/condition.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json deleted file mode 100644 index b9e8ff4c14..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/dynamic_job.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json deleted file mode 100644 index d22c32a52c..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/errors.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json deleted file mode 100644 index afd47219df..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/execution.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json deleted file mode 100644 index 21cf0360bc..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/identifier.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json deleted file mode 100644 index 53138e169f..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/interface.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json deleted file mode 100644 index dae38e22a2..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/literals.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json deleted file mode 100644 index e5f079d717..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/metrics.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json deleted file mode 100644 index a05237a531..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/security.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json deleted file mode 100644 index e3d14e75b2..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/tasks.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json deleted file mode 100644 index a8e40649b6..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/types.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json deleted file mode 100644 index 5bc734a1aa..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/workflow.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json deleted file mode 100644 index 871d4fea54..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/workflow_closure.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json deleted file mode 100644 index 1f2f91d28b..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json +++ /dev/null @@ -1,908 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/datacatalog/datacatalog.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "DataCatalog" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "PaginationOptionsSortKey": { - "type": "string", - "enum": [ - "CREATION_TIME" - ], - "default": "CREATION_TIME" - }, - "PaginationOptionsSortOrder": { - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SinglePropertyFilterComparisonOperator": { - "type": "string", - "enum": [ - "EQUALS" - ], - "default": "EQUALS", - "description": "as use-cases come up we can add more operators, ex: gte, like, not eq etc." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/flyteidlcoreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "type": "object", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/flyteidlcoreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "type": "object" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "datacatalogAddTagResponse": { - "type": "object", - "description": "Response message for tagging an Artifact." - }, - "datacatalogArtifact": { - "type": "object", - "properties": { - "id": { - "type": "string", - "title": "The unique ID of the artifact" - }, - "dataset": { - "$ref": "#/definitions/datacatalogDatasetID", - "title": "The Dataset that the artifact belongs to" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/datacatalogArtifactData" - }, - "title": "A list of data that is associated with the artifact" - }, - "metadata": { - "$ref": "#/definitions/datacatalogMetadata", - "title": "Free-form metadata associated with the artifact" - }, - "partitions": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/datacatalogPartition" - } - }, - "tags": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/datacatalogTag" - } - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "creation timestamp of artifact, autogenerated by service" - } - }, - "description": "Artifact message. It is composed of several string fields." - }, - "datacatalogArtifactData": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "value": { - "$ref": "#/definitions/coreLiteral" - } - }, - "title": "ArtifactData that belongs to an artifact" - }, - "datacatalogArtifactPropertyFilter": { - "type": "object", - "properties": { - "artifact_id": { - "type": "string" - } - }, - "title": "Artifact properties we can filter by" - }, - "datacatalogCreateArtifactResponse": { - "type": "object", - "description": "Response message for creating an Artifact." - }, - "datacatalogCreateDatasetResponse": { - "type": "object", - "title": "Response message for creating a Dataset" - }, - "datacatalogDataset": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/datacatalogDatasetID" - }, - "metadata": { - "$ref": "#/definitions/datacatalogMetadata" - }, - "partitionKeys": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "description": "Dataset message. It is uniquely identified by DatasetID." - }, - "datacatalogDatasetID": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "The name of the project" - }, - "name": { - "type": "string", - "title": "The name of the dataset" - }, - "domain": { - "type": "string", - "title": "The domain (eg. environment)" - }, - "version": { - "type": "string", - "title": "Version of the data schema" - }, - "UUID": { - "type": "string", - "title": "UUID for the dataset (if set the above fields are optional)" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "DatasetID message that is composed of several string fields." - }, - "datacatalogDatasetPropertyFilter": { - "type": "object", - "properties": { - "project": { - "type": "string" - }, - "name": { - "type": "string" - }, - "domain": { - "type": "string" - }, - "version": { - "type": "string" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the dataset." - } - }, - "title": "Dataset properties we can filter by" - }, - "datacatalogFilterExpression": { - "type": "object", - "properties": { - "filters": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/datacatalogSinglePropertyFilter" - } - } - }, - "title": "Filter expression that is composed of a combination of single filters" - }, - "datacatalogGetArtifactResponse": { - "type": "object", - "properties": { - "artifact": { - "$ref": "#/definitions/datacatalogArtifact" - } - }, - "description": "Response message for retrieving an Artifact. The result returned will include the artifact data\nand metadata associated with the artifact." - }, - "datacatalogGetDatasetResponse": { - "type": "object", - "properties": { - "dataset": { - "$ref": "#/definitions/datacatalogDataset" - } - }, - "description": "Response message for retrieving a Dataset. The response will include the metadata for the\nDataset." - }, - "datacatalogGetOrExtendReservationResponse": { - "type": "object", - "properties": { - "reservation": { - "$ref": "#/definitions/datacatalogReservation", - "title": "The reservation to be acquired or extended" - } - }, - "title": "Response including either a newly minted reservation or the existing reservation" - }, - "datacatalogKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, - "datacatalogListArtifactsResponse": { - "type": "object", - "properties": { - "artifacts": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/datacatalogArtifact" - }, - "title": "The list of artifacts" - }, - "next_token": { - "type": "string", - "title": "Token to use to request the next page, pass this into the next requests PaginationOptions" - } - }, - "title": "Response to list artifacts" - }, - "datacatalogListDatasetsResponse": { - "type": "object", - "properties": { - "datasets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/datacatalogDataset" - }, - "title": "The list of datasets" - }, - "next_token": { - "type": "string", - "title": "Token to use to request the next page, pass this into the next requests PaginationOptions" - } - }, - "title": "List the datasets response with token for next pagination" - }, - "datacatalogMetadata": { - "type": "object", - "properties": { - "key_map": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "key map is a dictionary of key/val strings that represent metadata" - } - }, - "title": "Metadata representation for artifacts and datasets" - }, - "datacatalogPaginationOptions": { - "type": "object", - "properties": { - "limit": { - "type": "integer", - "format": "int64", - "title": "the max number of results to return" - }, - "token": { - "type": "string", - "title": "the token to pass to fetch the next page" - }, - "sortKey": { - "$ref": "#/definitions/PaginationOptionsSortKey", - "title": "the property that we want to sort the results by" - }, - "sortOrder": { - "$ref": "#/definitions/PaginationOptionsSortOrder", - "title": "the sort order of the results" - } - }, - "title": "Pagination options for making list requests" - }, - "datacatalogPartition": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "title": "An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair" - }, - "datacatalogPartitionPropertyFilter": { - "type": "object", - "properties": { - "key_val": { - "$ref": "#/definitions/datacatalogKeyValuePair" - } - }, - "title": "Partition properties we can filter by" - }, - "datacatalogReleaseReservationResponse": { - "type": "object", - "title": "Response to release reservation" - }, - "datacatalogReservation": { - "type": "object", - "properties": { - "reservation_id": { - "$ref": "#/definitions/datacatalogReservationID", - "title": "The unique ID for the reservation" - }, - "owner_id": { - "type": "string", - "title": "The unique ID of the owner for the reservation" - }, - "heartbeat_interval": { - "type": "string", - "title": "Recommended heartbeat interval to extend reservation" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "title": "Expiration timestamp of this reservation" - }, - "metadata": { - "$ref": "#/definitions/datacatalogMetadata", - "title": "Free-form metadata associated with the artifact" - } - }, - "description": "A reservation including owner, heartbeat interval, expiration timestamp, and various metadata." - }, - "datacatalogReservationID": { - "type": "object", - "properties": { - "dataset_id": { - "$ref": "#/definitions/datacatalogDatasetID", - "title": "The unique ID for the reserved dataset" - }, - "tag_name": { - "type": "string", - "title": "The specific artifact tag for the reservation" - } - }, - "description": "ReservationID message that is composed of several string fields." - }, - "datacatalogSinglePropertyFilter": { - "type": "object", - "properties": { - "tag_filter": { - "$ref": "#/definitions/datacatalogTagPropertyFilter" - }, - "partition_filter": { - "$ref": "#/definitions/datacatalogPartitionPropertyFilter" - }, - "artifact_filter": { - "$ref": "#/definitions/datacatalogArtifactPropertyFilter" - }, - "dataset_filter": { - "$ref": "#/definitions/datacatalogDatasetPropertyFilter" - }, - "operator": { - "$ref": "#/definitions/SinglePropertyFilterComparisonOperator", - "title": "field 10 in case we add more entities to query" - } - }, - "description": "A single property to filter on." - }, - "datacatalogTag": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "Name of tag" - }, - "artifact_id": { - "type": "string", - "title": "The tagged artifact" - }, - "dataset": { - "$ref": "#/definitions/datacatalogDatasetID", - "title": "The Dataset that this tag belongs to" - } - }, - "description": "Tag message that is unique to a Dataset. It is associated to a single artifact and\ncan be retrieved by name later." - }, - "datacatalogTagPropertyFilter": { - "type": "object", - "properties": { - "tag_name": { - "type": "string" - } - }, - "title": "Tag properties we can filter by" - }, - "datacatalogUpdateArtifactResponse": { - "type": "object", - "properties": { - "artifact_id": { - "type": "string", - "title": "The unique ID of the artifact updated" - } - }, - "description": "Response message for updating an Artifact." - }, - "flyteidlcoreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "flyteidlcoreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json deleted file mode 100644 index 21a3bf24c4..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/event/cloudevents.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json deleted file mode 100644 index 51e6479e80..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/event/event.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json deleted file mode 100644 index 0da6756ab5..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/array_job.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json deleted file mode 100644 index 861a1b650a..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/dask.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json deleted file mode 100644 index 77cadf68e6..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/kubeflow/common.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json deleted file mode 100644 index d08431ce72..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/kubeflow/mpi.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json deleted file mode 100644 index 76b3b8c340..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/kubeflow/pytorch.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json deleted file mode 100644 index bc41f3a307..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/kubeflow/tensorflow.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json deleted file mode 100644 index 331054d5f6..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/mpi.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json deleted file mode 100644 index 580f735248..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/presto.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json deleted file mode 100644 index 6cbb898683..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/pytorch.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json deleted file mode 100644 index b8b32b82ff..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/qubole.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json deleted file mode 100644 index 138914df1f..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/ray.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json deleted file mode 100644 index fc06645ac5..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/spark.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json deleted file mode 100644 index 86b93506ea..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/tensorflow.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json deleted file mode 100644 index 96a105c1f1..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/plugins/waitable.proto", - "version": "version not set" - }, - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go deleted file mode 100644 index 38a2f65f31..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go +++ /dev/null @@ -1,8691 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/admin.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - extAdmin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - extCore "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -func request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateTask(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 8, 9, 10, 11, 12, 2, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 2, 11, 2, 13, 3, 4, 5, 6}} -) - -func request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTask(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTaskIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) - -func request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTaskIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListTaskIds(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTasks_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListTasks(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTasks_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} -) - -func request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListTasks(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateWorkflow(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 8, 9, 10, 11, 12, 2, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 2, 11, 2, 13, 3, 4, 5, 6}} -) - -func request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflow_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflow_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetWorkflow(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListWorkflowIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) - -func request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflowIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListWorkflowIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflowIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListWorkflowIds(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListWorkflows(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListWorkflows_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} -) - -func request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListWorkflows(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.LaunchPlanCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.LaunchPlanCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateLaunchPlan(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 8, 9, 10, 11, 12, 2, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 2, 11, 2, 13, 3, 4, 5, 6}} -) - -func request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetLaunchPlan_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetLaunchPlan_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetLaunchPlan(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetActiveLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_GetActiveLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ActiveLaunchPlanRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetActiveLaunchPlan_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetActiveLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetActiveLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ActiveLaunchPlanRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetActiveLaunchPlan_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetActiveLaunchPlan(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListActiveLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) - -func request_AdminService_ListActiveLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ActiveLaunchPlanListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListActiveLaunchPlans_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListActiveLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListActiveLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ActiveLaunchPlanListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListActiveLaunchPlans_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListActiveLaunchPlans(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListLaunchPlanIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) - -func request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlanIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListLaunchPlanIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlanIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListLaunchPlanIds(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListLaunchPlans(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListLaunchPlans_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} -) - -func request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListLaunchPlans(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.LaunchPlanUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - msg, err := client.UpdateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.LaunchPlanUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - msg, err := server.UpdateLaunchPlan(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateExecution(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionRelaunchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RelaunchExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionRelaunchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.RelaunchExecution(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RecoverExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionRecoverRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RecoverExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RecoverExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionRecoverRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.RecoverExecution(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetExecution(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := client.UpdateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := server.UpdateExecution(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetExecutionData(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} -) - -func request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListExecutions(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionTerminateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := client.TerminateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ExecutionTerminateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := server.TerminateExecution(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetNodeExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} -) - -func request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetNodeExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetNodeExecution(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetDynamicNodeWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} -) - -func request_AdminService_GetDynamicNodeWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetDynamicNodeWorkflowRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDynamicNodeWorkflow_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetDynamicNodeWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDynamicNodeWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetDynamicNodeWorkflowRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDynamicNodeWorkflow_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetDynamicNodeWorkflow(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListNodeExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["workflow_execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) - } - - val, ok = pathParams["workflow_execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) - } - - val, ok = pathParams["workflow_execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListNodeExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["workflow_execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) - } - - val, ok = pathParams["workflow_execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) - } - - val, ok = pathParams["workflow_execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListNodeExecutions(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListNodeExecutionsForTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "nodeId": 7, "task_id": 8, "version": 9, "retry_attempt": 10, "retryAttempt": 11}, Base: []int{1, 25, 1, 4, 26, 28, 30, 1, 31, 9, 32, 10, 33, 0, 3, 0, 15, 13, 7, 0, 15, 10, 0, 21, 13, 0, 23, 16, 0, 25, 19, 0, 24, 22, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 1, 1, 4, 1, 2, 1, 10, 1, 8, 12, 15, 2, 17, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30, 31, 2, 33, 34, 2, 36, 5, 5, 6, 6, 7, 7, 9, 11, 13}} -) - -func request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionForTaskListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) - } - - val, ok = pathParams["task_execution_id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) - } - - val, ok = pathParams["task_execution_id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) - } - - val, ok = pathParams["task_execution_id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) - } - - val, ok = pathParams["task_execution_id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) - } - - val, ok = pathParams["task_execution_id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutionsForTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListNodeExecutionsForTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionForTaskListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) - } - - val, ok = pathParams["task_execution_id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) - } - - val, ok = pathParams["task_execution_id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) - } - - val, ok = pathParams["task_execution_id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) - } - - val, ok = pathParams["task_execution_id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) - } - - val, ok = pathParams["task_execution_id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutionsForTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListNodeExecutionsForTask(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetNodeExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} -) - -func request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetNodeExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetNodeExecutionData(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectRegisterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RegisterProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectRegisterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.RegisterProject(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.Project - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.Project - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateProject(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectListRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListProjects_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectListRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListProjects_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListProjects(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateWorkflowEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateWorkflowEvent(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateNodeEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NodeExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateNodeEvent(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateTaskEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateTaskEvent(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetTaskExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "nodeId": 7, "task_id": 8, "version": 9, "retry_attempt": 10, "retryAttempt": 11}, Base: []int{1, 25, 1, 4, 26, 28, 30, 1, 31, 9, 32, 10, 33, 0, 3, 0, 15, 13, 7, 0, 15, 10, 0, 21, 13, 0, 23, 16, 0, 25, 19, 0, 24, 22, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 1, 1, 4, 1, 2, 1, 10, 1, 8, 12, 15, 2, 17, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30, 31, 2, 33, 34, 2, 36, 5, 5, 6, 6, 7, 7, 9, 11, 13}} -) - -func request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) - } - - val, ok = pathParams["id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) - } - - val, ok = pathParams["id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) - } - - val, ok = pathParams["id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) - } - - val, ok = pathParams["id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) - } - - val, ok = pathParams["id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTaskExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) - } - - val, ok = pathParams["id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) - } - - val, ok = pathParams["id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) - } - - val, ok = pathParams["id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) - } - - val, ok = pathParams["id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) - } - - val, ok = pathParams["id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTaskExecution(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTaskExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"node_execution_id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} -) - -func request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTaskExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListTaskExecutions(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetTaskExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "nodeId": 7, "task_id": 8, "version": 9, "retry_attempt": 10, "retryAttempt": 11}, Base: []int{1, 25, 1, 4, 26, 28, 30, 1, 31, 9, 32, 10, 33, 0, 3, 0, 15, 13, 7, 0, 15, 10, 0, 21, 13, 0, 23, 16, 0, 25, 19, 0, 24, 22, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 1, 1, 4, 1, 2, 1, 10, 1, 8, 12, 15, 2, 17, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30, 31, 2, 33, 34, 2, 36, 5, 5, 6, 6, 7, 7, 9, 11, 13}} -) - -func request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) - } - - val, ok = pathParams["id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) - } - - val, ok = pathParams["id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) - } - - val, ok = pathParams["id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) - } - - val, ok = pathParams["id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) - } - - val, ok = pathParams["id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTaskExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.TaskExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) - } - - val, ok = pathParams["id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) - } - - val, ok = pathParams["id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) - } - - val, ok = pathParams["id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) - } - - val, ok = pathParams["id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) - } - - val, ok = pathParams["id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTaskExecutionData(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectDomainAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - val, ok = pathParams["attributes.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) - } - - msg, err := client.UpdateProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectDomainAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - val, ok = pathParams["attributes.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) - } - - msg, err := server.UpdateProjectDomainAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetProjectDomainAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} -) - -func request_AdminService_GetProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectDomainAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectDomainAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectDomainAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectDomainAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetProjectDomainAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_DeleteProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectDomainAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := client.DeleteProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_DeleteProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectDomainAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := server.DeleteProjectDomainAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - msg, err := client.UpdateProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - msg, err := server.UpdateProjectAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetProjectAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} -) - -func request_AdminService_GetProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetProjectAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_DeleteProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - msg, err := client.DeleteProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_DeleteProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ProjectAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - msg, err := server.DeleteProjectAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - val, ok = pathParams["attributes.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) - } - - val, ok = pathParams["attributes.workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.workflow") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.workflow", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.workflow", err) - } - - msg, err := client.UpdateWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - val, ok = pathParams["attributes.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) - } - - val, ok = pathParams["attributes.workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.workflow") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.workflow", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.workflow", err) - } - - msg, err := server.UpdateWorkflowAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetWorkflowAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1, "workflow": 2}, Base: []int{1, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 2, 3, 3, 4, 4}} -) - -func request_AdminService_GetWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - val, ok = pathParams["workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") - } - - protoReq.Workflow, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflowAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - val, ok = pathParams["workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") - } - - protoReq.Workflow, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflowAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetWorkflowAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_DeleteWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - val, ok = pathParams["workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") - } - - protoReq.Workflow, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) - } - - msg, err := client.DeleteWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_DeleteWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - val, ok = pathParams["workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") - } - - protoReq.Workflow, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) - } - - msg, err := server.DeleteWorkflowAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListMatchableAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AdminService_ListMatchableAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ListMatchableAttributesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListMatchableAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListMatchableAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListMatchableAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ListMatchableAttributesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListMatchableAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListMatchableAttributes(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListNamedEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "project": 2, "domain": 3}, Base: []int{1, 1, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 3, 4, 4, 5, 5}} -) - -func request_AdminService_ListNamedEntities_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNamedEntities_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListNamedEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListNamedEntities_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNamedEntities_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListNamedEntities(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetNamedEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "id": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 1, 2, 8, 9, 10, 11, 0, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 10, 4, 12, 4, 14, 5, 6, 7}} -) - -func request_AdminService_GetNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNamedEntity_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNamedEntity_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetNamedEntity(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := client.UpdateNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.NamedEntityUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := server.UpdateNamedEntity(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetVersionRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetVersionRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetVersion(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetDescriptionEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "resource_type": 1, "resourceType": 2, "project": 3, "domain": 4, "name": 5, "version": 6}, Base: []int{1, 9, 1, 10, 11, 12, 13, 14, 0, 3, 0, 5, 0, 7, 0, 9, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 1, 1, 3, 2, 10, 2, 12, 2, 14, 2, 16, 4, 5, 6, 7, 8}} -) - -func request_AdminService_GetDescriptionEntity_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.resource_type") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.resource_type", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.resource_type", err) - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "could not parse path as enum value, parameter: %s, error: %v", "id.resource_type", err) - } - - protoReq.Id.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDescriptionEntity_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetDescriptionEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDescriptionEntity_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.resource_type") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.resource_type", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.resource_type", err) - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "could not parse path as enum value, parameter: %s, error: %v", "id.resource_type", err) - } - - protoReq.Id.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDescriptionEntity_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetDescriptionEntity(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListDescriptionEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "id": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 1, 2, 8, 9, 10, 11, 0, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 10, 4, 12, 4, 14, 5, 6, 7}} -) - -func request_AdminService_ListDescriptionEntities_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.DescriptionEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListDescriptionEntities_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.DescriptionEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListDescriptionEntities(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListDescriptionEntities_1 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "id": 2, "project": 3, "domain": 4}, Base: []int{1, 1, 2, 6, 7, 8, 0, 0, 4, 0, 6, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 3, 4, 9, 4, 11, 5, 6}} -) - -func request_AdminService_ListDescriptionEntities_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.DescriptionEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ListDescriptionEntities_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.DescriptionEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, extCore.ResourceType_value) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = extCore.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListDescriptionEntities(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetExecutionMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_AdminService_GetExecutionMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionGetMetricsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionMetrics_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetExecutionMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetExecutionMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.WorkflowExecutionGetMetricsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionMetrics_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetExecutionMetrics(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterAdminServiceHandlerServer registers the http handlers for service AdminService to "mux". -// UnaryRPC :call AdminServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminServiceHandlerFromEndpoint instead. -func RegisterAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AdminServiceServer) error { - - mux.Handle("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/tasks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTask", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskIds", runtime.WithHTTPPathPattern("/api/v1/task_ids/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListTaskIds_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTaskIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListTasks_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTasks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListTasks_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTasks_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflowIds", runtime.WithHTTPPathPattern("/api/v1/workflow_ids/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListWorkflowIds_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflowIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListWorkflows_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListWorkflows_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflows_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetActiveLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetActiveLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetActiveLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetActiveLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListActiveLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListActiveLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListActiveLaunchPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListActiveLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlanIds", runtime.WithHTTPPathPattern("/api/v1/launch_plan_ids/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListLaunchPlanIds_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlanIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListLaunchPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListLaunchPlans_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlans_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateExecution", runtime.WithHTTPPathPattern("/api/v1/executions")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/RelaunchExecution", runtime.WithHTTPPathPattern("/api/v1/executions/relaunch")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RelaunchExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RelaunchExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RecoverExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/RecoverExecution", runtime.WithHTTPPathPattern("/api/v1/executions/recover")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RecoverExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RecoverExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetExecutionData_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListExecutions", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListExecutions_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/TerminateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_TerminateExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_TerminateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecution", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetNodeExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNodeExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDynamicNodeWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDynamicNodeWorkflow", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutions", runtime.WithHTTPPathPattern("/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListNodeExecutions_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNodeExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", runtime.WithHTTPPathPattern("/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListNodeExecutionsForTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNodeExecutionsForTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetNodeExecutionData_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNodeExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/RegisterProject", runtime.WithHTTPPathPattern("/api/v1/projects")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RegisterProject_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RegisterProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProject", runtime.WithHTTPPathPattern("/api/v1/projects/{id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateProject_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListProjects", runtime.WithHTTPPathPattern("/api/v1/projects")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListProjects_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflowEvent", runtime.WithHTTPPathPattern("/api/v1/events/workflows")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateWorkflowEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateWorkflowEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateNodeEvent", runtime.WithHTTPPathPattern("/api/v1/events/nodes")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateNodeEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateNodeEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTaskEvent", runtime.WithHTTPPathPattern("/api/v1/events/tasks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateTaskEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateTaskEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecution", runtime.WithHTTPPathPattern("/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetTaskExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTaskExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskExecutions", runtime.WithHTTPPathPattern("/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListTaskExecutions_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTaskExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetTaskExecutionData_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTaskExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetProjectDomainAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{attributes.project}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateProjectAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetProjectAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_DeleteProjectAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateWorkflowAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetWorkflowAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_DeleteWorkflowAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListMatchableAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListMatchableAttributes", runtime.WithHTTPPathPattern("/api/v1/matchable_attributes")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListMatchableAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListMatchableAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNamedEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNamedEntities", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListNamedEntities_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNamedEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetNamedEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateNamedEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetVersion_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDescriptionEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDescriptionEntity", runtime.WithHTTPPathPattern("/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDescriptionEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDescriptionEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListDescriptionEntities_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListDescriptionEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ListDescriptionEntities_1(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListDescriptionEntities_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecutionMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionMetrics", runtime.WithHTTPPathPattern("/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetExecutionMetrics_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecutionMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAdminServiceHandler(ctx, mux, conn) -} - -// RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAdminServiceHandlerClient(ctx, mux, extService.NewAdminServiceClient(conn)) -} - -// RegisterAdminServiceHandlerClient registers the http handlers for service AdminService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AdminServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AdminServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.AdminServiceClient" to call the correct interceptors. -func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AdminServiceClient) error { - - mux.Handle("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/tasks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTask", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskIds", runtime.WithHTTPPathPattern("/api/v1/task_ids/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTaskIds_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTaskIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTasks_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTasks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTasks_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTasks_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflowIds", runtime.WithHTTPPathPattern("/api/v1/workflow_ids/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListWorkflowIds_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflowIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListWorkflows_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListWorkflows_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflows_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetActiveLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetActiveLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetActiveLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetActiveLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListActiveLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListActiveLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListActiveLaunchPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListActiveLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlanIds", runtime.WithHTTPPathPattern("/api/v1/launch_plan_ids/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListLaunchPlanIds_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlanIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListLaunchPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListLaunchPlans_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlans_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateExecution", runtime.WithHTTPPathPattern("/api/v1/executions")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/RelaunchExecution", runtime.WithHTTPPathPattern("/api/v1/executions/relaunch")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RelaunchExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RelaunchExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RecoverExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/RecoverExecution", runtime.WithHTTPPathPattern("/api/v1/executions/recover")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RecoverExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RecoverExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetExecutionData_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListExecutions", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListExecutions_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/TerminateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_TerminateExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_TerminateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecution", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetNodeExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNodeExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDynamicNodeWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDynamicNodeWorkflow", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutions", runtime.WithHTTPPathPattern("/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListNodeExecutions_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNodeExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", runtime.WithHTTPPathPattern("/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListNodeExecutionsForTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNodeExecutionsForTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetNodeExecutionData_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNodeExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/RegisterProject", runtime.WithHTTPPathPattern("/api/v1/projects")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RegisterProject_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RegisterProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProject", runtime.WithHTTPPathPattern("/api/v1/projects/{id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateProject_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListProjects", runtime.WithHTTPPathPattern("/api/v1/projects")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListProjects_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflowEvent", runtime.WithHTTPPathPattern("/api/v1/events/workflows")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateWorkflowEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateWorkflowEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateNodeEvent", runtime.WithHTTPPathPattern("/api/v1/events/nodes")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateNodeEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateNodeEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTaskEvent", runtime.WithHTTPPathPattern("/api/v1/events/tasks")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateTaskEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateTaskEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecution", runtime.WithHTTPPathPattern("/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetTaskExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTaskExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskExecutions", runtime.WithHTTPPathPattern("/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTaskExecutions_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTaskExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetTaskExecutionData_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTaskExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetProjectDomainAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{attributes.project}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateProjectAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetProjectAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeleteProjectAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateWorkflowAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetWorkflowAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeleteWorkflowAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListMatchableAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListMatchableAttributes", runtime.WithHTTPPathPattern("/api/v1/matchable_attributes")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListMatchableAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListMatchableAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNamedEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNamedEntities", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{project}/{domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListNamedEntities_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNamedEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetNamedEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateNamedEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetVersion_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDescriptionEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDescriptionEntity", runtime.WithHTTPPathPattern("/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDescriptionEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDescriptionEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListDescriptionEntities_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListDescriptionEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListDescriptionEntities_1(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListDescriptionEntities_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecutionMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionMetrics", runtime.WithHTTPPathPattern("/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetExecutionMetrics_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecutionMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AdminService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "tasks"}, "")) - - pattern_AdminService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_ListTaskIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "task_ids", "project", "domain"}, "")) - - pattern_AdminService_ListTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListTasks_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "tasks", "id.project", "id.domain"}, "")) - - pattern_AdminService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "workflows"}, "")) - - pattern_AdminService_GetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_ListWorkflowIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow_ids", "project", "domain"}, "")) - - pattern_AdminService_ListWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListWorkflows_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "id.project", "id.domain"}, "")) - - pattern_AdminService_CreateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "launch_plans"}, "")) - - pattern_AdminService_GetLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_GetActiveLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "active_launch_plans", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListActiveLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "active_launch_plans", "project", "domain"}, "")) - - pattern_AdminService_ListLaunchPlanIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plan_ids", "project", "domain"}, "")) - - pattern_AdminService_ListLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListLaunchPlans_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plans", "id.project", "id.domain"}, "")) - - pattern_AdminService_UpdateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_CreateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "executions"}, "")) - - pattern_AdminService_RelaunchExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "relaunch"}, "")) - - pattern_AdminService_RecoverExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "recover"}, "")) - - pattern_AdminService_GetExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_UpdateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_GetExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "data", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "executions", "id.project", "id.domain"}, "")) - - pattern_AdminService_TerminateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_GetNodeExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) - - pattern_AdminService_GetDynamicNodeWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id", "dynamic_workflow"}, "")) - - pattern_AdminService_ListNodeExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "node_executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) - - pattern_AdminService_ListNodeExecutionsForTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "children", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) - - pattern_AdminService_GetNodeExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "data", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) - - pattern_AdminService_RegisterProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) - - pattern_AdminService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "id"}, "")) - - pattern_AdminService_ListProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) - - pattern_AdminService_CreateWorkflowEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "workflows"}, "")) - - pattern_AdminService_CreateNodeEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "nodes"}, "")) - - pattern_AdminService_CreateTaskEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "tasks"}, "")) - - pattern_AdminService_GetTaskExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11}, []string{"api", "v1", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) - - pattern_AdminService_ListTaskExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "task_executions", "node_execution_id.execution_id.project", "node_execution_id.execution_id.domain", "node_execution_id.execution_id.name", "node_execution_id.node_id"}, "")) - - pattern_AdminService_GetTaskExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "data", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) - - pattern_AdminService_UpdateProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "attributes.project", "attributes.domain"}, "")) - - pattern_AdminService_GetProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) - - pattern_AdminService_DeleteProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) - - pattern_AdminService_UpdateProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "attributes.project"}, "")) - - pattern_AdminService_GetProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) - - pattern_AdminService_DeleteProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) - - pattern_AdminService_UpdateWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "attributes.project", "attributes.domain", "attributes.workflow"}, "")) - - pattern_AdminService_GetWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) - - pattern_AdminService_DeleteWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) - - pattern_AdminService_ListMatchableAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "matchable_attributes"}, "")) - - pattern_AdminService_ListNamedEntities_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "named_entities", "resource_type", "project", "domain"}, "")) - - pattern_AdminService_GetNamedEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_UpdateNamedEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) - - pattern_AdminService_GetDescriptionEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "description_entities", "id.resource_type", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_ListDescriptionEntities_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListDescriptionEntities_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain"}, "")) - - pattern_AdminService_GetExecutionMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "metrics", "executions", "id.project", "id.domain", "id.name"}, "")) -) - -var ( - forward_AdminService_CreateTask_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetTask_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTaskIds_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTasks_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTasks_1 = runtime.ForwardResponseMessage - - forward_AdminService_CreateWorkflow_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetWorkflow_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListWorkflowIds_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListWorkflows_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListWorkflows_1 = runtime.ForwardResponseMessage - - forward_AdminService_CreateLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetActiveLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListActiveLaunchPlans_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListLaunchPlanIds_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListLaunchPlans_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListLaunchPlans_1 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_RelaunchExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_RecoverExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetExecutionData_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListExecutions_0 = runtime.ForwardResponseMessage - - forward_AdminService_TerminateExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetNodeExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDynamicNodeWorkflow_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListNodeExecutions_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListNodeExecutionsForTask_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetNodeExecutionData_0 = runtime.ForwardResponseMessage - - forward_AdminService_RegisterProject_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateProject_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListProjects_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateWorkflowEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateNodeEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateTaskEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetTaskExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTaskExecutions_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetTaskExecutionData_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateProjectDomainAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetProjectDomainAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeleteProjectDomainAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateProjectAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetProjectAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeleteProjectAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateWorkflowAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetWorkflowAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeleteWorkflowAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListMatchableAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListNamedEntities_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetNamedEntity_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateNamedEntity_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetVersion_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDescriptionEntity_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListDescriptionEntities_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListDescriptionEntities_1 = runtime.ForwardResponseMessage - - forward_AdminService_GetExecutionMetrics_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json deleted file mode 100644 index 73dbd3b8dc..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json +++ /dev/null @@ -1,8976 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/admin.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "AdminService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Retrieve the active launch plan version specified by input request filters.", - "operationId": "AdminService_GetActiveLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/active_launch_plans/{project}/{domain}": { - "get": { - "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Fetch the active launch plan versions specified by input request filters.", - "operationId": "AdminService_ListActiveLaunchPlans", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "AdminService_ListNodeExecutionsForTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "task_execution_id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "task_execution_id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "task_execution_id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_GetExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_GetNodeExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionGetDataResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Retrieve input and output data from an existing task execution.", - "operationId": "AdminService_GetTaskExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionGetDataResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", - "description": "Retrieve an existing description entity description.", - "operationId": "AdminService_GetDescriptionEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntity" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "description": "Fetch existing description entity definitions matching input filters.", - "operationId": "AdminService_ListDescriptionEntities2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "description": "Fetch existing description entity definitions matching input filters.", - "operationId": "AdminService_ListDescriptionEntities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/nodes": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", - "description": "Create a node execution event recording a phase transition.", - "operationId": "AdminService_CreateNodeEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to send a notification that a node execution event has occurred.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/tasks": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", - "description": "Create a task execution event recording a phase transition.", - "operationId": "AdminService_CreateTaskEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to send a notification that a task execution event has occurred.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/workflows": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", - "description": "Create a workflow execution event recording a phase transition.", - "operationId": "AdminService_CreateWorkflowEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to send a notification that a workflow execution event has occurred.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions": { - "post": { - "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", - "description": "Create a workflow execution.", - "operationId": "AdminService_CreateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to launch an execution with the given project, domain and optionally-assigned name.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/recover": { - "post": { - "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", - "description": "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.", - "operationId": "AdminService_RecoverExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to recover the referenced execution.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRecoverRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/relaunch": { - "post": { - "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", - "description": "Relaunch a workflow execution.", - "operationId": "AdminService_RelaunchExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to relaunch the referenced execution.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRelaunchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_ListExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", - "description": "Retrieve an existing workflow execution.", - "operationId": "AdminService_GetExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_TerminateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionTerminateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceTerminateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_UpdateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plan_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", - "description": "Fetch existing launch plan definition identifiers matching input filters.", - "operationId": "AdminService_ListLaunchPlanIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", - "description": "Create and register a launch plan definition.", - "operationId": "AdminService_CreateLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateResponse" - } - }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "description": "Fetch existing launch plan definitions matching input filters.", - "operationId": "AdminService_ListLaunchPlans2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "description": "Fetch existing launch plan definitions matching input filters.", - "operationId": "AdminService_ListLaunchPlans", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", - "description": "Retrieve an existing launch plan definition.", - "operationId": "AdminService_GetLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.", - "operationId": "AdminService_UpdateLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateLaunchPlanBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/matchable_attributes": { - "get": { - "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", - "description": "Retrieve a list of MatchableAttributesConfiguration objects.", - "operationId": "AdminService_ListMatchableAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListMatchableAttributesResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - }, - { - "name": "org", - "description": "Optional, org filter applied to list project requests.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", - "description": "Retrieve metrics from an existing workflow execution.", - "operationId": "AdminService_GetExecutionMetrics", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "depth", - "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "description": "Retrieve a NamedEntity object.", - "operationId": "AdminService_GetNamedEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntity" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "description": "Update the fields associated with a NamedEntity", - "operationId": "AdminService_UpdateNamedEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to update\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateNamedEntityBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/named_entities/{resource_type}/{project}/{domain}": { - "get": { - "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", - "description": "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain.", - "operationId": "AdminService_ListNamedEntities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_GetNodeExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminNodeExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", - "operationId": "AdminService_GetDynamicNodeWorkflow", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_ListNodeExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "unique_parent_id", - "description": "Unique identifier of the parent node in the execution\n+optional", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_attributes/{attributes.project}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", - "description": "Update the customized resource attributes associated with a project", - "operationId": "AdminService_UpdateProjectAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectAttributesUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_attributes/{project}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Retrieve the customized resource attributes associated with a project", - "operationId": "AdminService_GetProjectAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectAttributesGetResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - }, - { - "name": "org", - "description": "Optional, org key applied to the project.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Delete the customized resource attributes associated with a project", - "operationId": "AdminService_DeleteProjectAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectAttributesDeleteResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteProjectAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Update the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_UpdateProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectDomainAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_domain_attributes/{project}/{domain}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Retrieve the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_GetProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - }, - { - "name": "org", - "description": "Optional, org key applied to the attributes.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Delete the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_DeleteProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteProjectDomainAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/projects": { - "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", - "description": "Fetch registered projects.", - "operationId": "AdminService_ListProjects", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjects" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "Indicates the number of projects to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "org", - "description": "Optional, org filter applied to list project requests.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "post": { - "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", - "operationId": "AdminService_RegisterProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectRegisterResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProjectRegisterRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/projects/{id}": { - "put": { - "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", - "description": "Update a project.", - "operationId": "AdminService_UpdateProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "Globally unique project name.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Retrieve an existing task execution.", - "operationId": "AdminService_GetTaskExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminTaskExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { - "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Fetch existing task executions matching input filters.", - "operationId": "AdminService_ListTaskExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/task_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", - "description": "Fetch existing task definition identifiers matching input filters.", - "operationId": "AdminService_ListTaskIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", - "description": "Create and register a task definition.", - "operationId": "AdminService_CreateTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateResponse" - } - }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "description": "Fetch existing task definitions matching input filters.", - "operationId": "AdminService_ListTasks2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "description": "Fetch existing task definitions matching input filters.", - "operationId": "AdminService_ListTasks", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", - "description": "Retrieve an existing task definition.", - "operationId": "AdminService_GetTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTask" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/version": { - "get": { - "description": "Retrieve the Version (including the Build information) for FlyteAdmin service", - "operationId": "AdminService_GetVersion", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminGetVersionResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Update the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_UpdateWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.workflow", - "description": "Workflow name for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateWorkflowAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflow_attributes/{project}/{domain}/{workflow}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Retrieve the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_GetWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesGetResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - }, - { - "name": "org", - "description": "Optional, org key applied to the attributes.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Delete the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_DeleteWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteWorkflowAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflow_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", - "operationId": "AdminService_ListWorkflowIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", - "description": "Create and register a workflow definition.", - "operationId": "AdminService_CreateWorkflow", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowCreateResponse" - } - }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "description": "Fetch existing workflow definitions matching input filters.", - "operationId": "AdminService_ListWorkflows2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "description": "Fetch existing workflow definitions matching input filters.", - "operationId": "AdminService_ListWorkflows", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", - "description": "Retrieve an existing workflow definition.", - "operationId": "AdminService_GetWorkflow", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflow" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - } - }, - "definitions": { - "AdminServiceDeleteProjectAttributesBody": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/adminMatchableResource", - "title": "Which type of matchable attributes to delete.\n+required" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the project." - } - }, - "title": "Request to delete a set matchable project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "AdminServiceDeleteProjectDomainAttributesBody": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/adminMatchableResource", - "title": "Which type of matchable attributes to delete.\n+required" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the attributes." - } - }, - "title": "Request to delete a set matchable project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "AdminServiceDeleteWorkflowAttributesBody": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/adminMatchableResource", - "title": "Which type of matchable attributes to delete.\n+required" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the attributes." - } - }, - "title": "Request to delete a set matchable workflow attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "AdminServiceTerminateExecutionBody": { - "type": "object", - "properties": { - "id": { - "type": "object", - "properties": { - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Uniquely identifies the individual workflow execution to be terminated.", - "title": "Uniquely identifies the individual workflow execution to be terminated." - }, - "cause": { - "type": "string", - "description": "Optional reason for aborting." - } - }, - "description": "Request to terminate an in-progress execution. This action is irreversible.\nIf an execution is already terminated, this request will simply be a no-op.\nThis request will fail if it references a non-existent execution.\nIf the request succeeds the phase \"ABORTED\" will be recorded for the termination\nwith the optional cause added to the output_result." - }, - "AdminServiceUpdateExecutionBody": { - "type": "object", - "properties": { - "id": { - "type": "object", - "properties": { - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "title": "Identifier of the execution to update" - }, - "state": { - "$ref": "#/definitions/adminExecutionState", - "title": "State to set as the new value active/archive" - } - } - }, - "AdminServiceUpdateLaunchPlanBody": { - "type": "object", - "properties": { - "id": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Identifier of launch plan for which to change state.\n+required.", - "title": "Identifier of launch plan for which to change state.\n+required." - }, - "state": { - "$ref": "#/definitions/adminLaunchPlanState", - "description": "Desired state to apply to the launch plan.\n+required." - } - }, - "title": "Request to set the referenced launch plan state to the configured value.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" - }, - "AdminServiceUpdateNamedEntityBody": { - "type": "object", - "properties": { - "id": { - "type": "object", - "properties": { - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "title": "Identifier of the metadata to update\n+required" - }, - "metadata": { - "$ref": "#/definitions/adminNamedEntityMetadata", - "title": "Metadata object to set as the new value\n+required" - } - }, - "description": "Request to set the referenced named entity state to the configured value." - }, - "AdminServiceUpdateProjectAttributesBody": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "properties": { - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the project." - } - }, - "title": "+required" - } - }, - "title": "Sets custom attributes for a project\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "AdminServiceUpdateProjectBody": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Display name." - }, - "domains": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminDomain" - } - }, - "description": { - "type": "string" - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Leverage Labels from flyteidl.admin.common.proto to\ntag projects with ownership information." - }, - "state": { - "$ref": "#/definitions/ProjectProjectState" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Top-level namespace used to classify different entities like workflows and executions." - }, - "AdminServiceUpdateProjectDomainAttributesBody": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "properties": { - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the attributes." - } - }, - "title": "+required" - } - }, - "title": "Sets custom attributes for a project-domain combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "AdminServiceUpdateWorkflowAttributesBody": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "properties": { - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the attributes." - } - }, - "title": "Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - } - }, - "title": "Sets custom attributes for a project, domain and workflow combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "ComparisonExpressionOperator": { - "type": "string", - "enum": [ - "EQ", - "NEQ", - "GT", - "GTE", - "LT", - "LTE" - ], - "default": "EQ", - "description": "- GT: Greater Than\n - LT: Less Than", - "title": "Binary Operator for each expression" - }, - "ConjunctionExpressionLogicalOperator": { - "type": "string", - "enum": [ - "AND", - "OR" - ], - "default": "AND", - "description": "- AND: Conjunction", - "title": "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation is not important as the operators are Commutative" - }, - "ConnectionSetIdList": { - "type": "object", - "properties": { - "ids": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ContainerArchitecture": { - "type": "string", - "enum": [ - "UNKNOWN", - "AMD64", - "ARM64", - "ARM_V6", - "ARM_V7" - ], - "default": "UNKNOWN", - "description": "Architecture-type the container image supports." - }, - "DataLoadingConfigLiteralMapFormat": { - "type": "string", - "enum": [ - "JSON", - "YAML", - "PROTO" - ], - "default": "JSON", - "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", - "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" - }, - "ExecutionErrorErrorKind": { - "type": "string", - "enum": [ - "UNKNOWN", - "USER", - "SYSTEM" - ], - "default": "UNKNOWN", - "title": "Error type: System or User" - }, - "ExecutionMetadataExecutionMode": { - "type": "string", - "enum": [ - "MANUAL", - "SCHEDULED", - "SYSTEM", - "RELAUNCH", - "CHILD_WORKFLOW", - "RECOVERED" - ], - "default": "MANUAL", - "description": "The method by which this execution was launched.\n\n - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual.\n - SCHEDULED: A schedule triggered this execution launch.\n - SYSTEM: A system process was responsible for launching this execution rather an individual.\n - RELAUNCH: This execution was launched with identical inputs as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered by another execution.\n - RECOVERED: This execution was recovered from another execution." - }, - "IOStrategyDownloadMode": { - "type": "string", - "enum": [ - "DOWNLOAD_EAGER", - "DOWNLOAD_STREAM", - "DO_NOT_DOWNLOAD" - ], - "default": "DOWNLOAD_EAGER", - "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", - "title": "Mode to use for downloading" - }, - "IOStrategyUploadMode": { - "type": "string", - "enum": [ - "UPLOAD_ON_EXIT", - "UPLOAD_EAGER", - "DO_NOT_UPLOAD" - ], - "default": "UPLOAD_ON_EXIT", - "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", - "title": "Mode to use for uploading" - }, - "PluginOverrideMissingPluginBehavior": { - "type": "string", - "enum": [ - "FAIL", - "USE_DEFAULT" - ], - "default": "FAIL", - "description": " - FAIL: By default, if this plugin is not enabled for a Flyte deployment then execution will fail.\n - USE_DEFAULT: Uses the system-configured default implementation." - }, - "ProjectProjectState": { - "type": "string", - "enum": [ - "ACTIVE", - "ARCHIVED", - "SYSTEM_GENERATED" - ], - "default": "ACTIVE", - "description": "The state of the project is used to control its visibility in the UI and validity.\n\n - ACTIVE: By default, all projects are considered active.\n - ARCHIVED: Archived projects are no longer visible in the UI and no longer valid.\n - SYSTEM_GENERATED: System generated projects that aren't explicitly created or managed by a user." - }, - "QualityOfServiceTier": { - "type": "string", - "enum": [ - "UNDEFINED", - "HIGH", - "MEDIUM", - "LOW" - ], - "default": "UNDEFINED", - "description": " - UNDEFINED: Default: no quality of service specified." - }, - "ResourcesResourceEntry": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/ResourcesResourceName", - "description": "Resource name." - }, - "value": { - "type": "string", - "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - } - }, - "description": "Encapsulates a resource name and value." - }, - "ResourcesResourceName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU", - "GPU", - "MEMORY", - "STORAGE", - "EPHEMERAL_STORAGE" - ], - "default": "UNKNOWN", - "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." - }, - "RuntimeMetadataRuntimeType": { - "type": "string", - "enum": [ - "OTHER", - "FLYTE_SDK" - ], - "default": "OTHER" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "SortDirection": { - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING", - "description": " - DESCENDING: By default, fields are sorted in descending order." - }, - "SqlDialect": { - "type": "string", - "enum": [ - "UNDEFINED", - "ANSI", - "HIVE", - "OTHER" - ], - "default": "UNDEFINED", - "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "TaskExecutionMetadataInstanceClass": { - "type": "string", - "enum": [ - "DEFAULT", - "INTERRUPTIBLE" - ], - "default": "DEFAULT", - "description": "Includes the broad category of machine used for this specific task execution.\n\n - DEFAULT: The default instance class configured for the flyte application platform.\n - INTERRUPTIBLE: The instance class configured for interruptible tasks." - }, - "TaskLogMessageFormat": { - "type": "string", - "enum": [ - "UNKNOWN", - "CSV", - "JSON" - ], - "default": "UNKNOWN" - }, - "WorkflowMetadataOnFailurePolicy": { - "type": "string", - "enum": [ - "FAIL_IMMEDIATELY", - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" - ], - "default": "FAIL_IMMEDIATELY", - "description": "- FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically\nabort all currently running nodes and clean up resources before finally marking the workflow executions as\nfailed.\n - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will\nnot alter the dependencies of the execution graph so any node that depend on the failed node will not be run.\nOther nodes that will be executed to completion before cleaning up resources and marking the workflow\nexecution as failed.", - "title": "Failure Handling Strategy" - }, - "adminAbortMetadata": { - "type": "object", - "properties": { - "cause": { - "type": "string", - "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." - }, - "principal": { - "type": "string", - "title": "Identifies the entity (if any) responsible for terminating the execution" - } - }, - "description": "Specifies metadata around an aborted workflow execution." - }, - "adminAnnotations": { - "type": "object", - "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Map of custom annotations to be applied to the execution resource." - } - }, - "description": "Annotation values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge annotations defined at registration and execution time." - }, - "adminAuth": { - "type": "object", - "properties": { - "assumable_iam_role": { - "type": "string", - "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." - }, - "kubernetes_service_account": { - "type": "string", - "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." - } - }, - "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." - }, - "adminAuthRole": { - "type": "object", - "properties": { - "assumable_iam_role": { - "type": "string", - "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." - }, - "kubernetes_service_account": { - "type": "string", - "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." - } - }, - "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." - }, - "adminClusterAssignment": { - "type": "object", - "properties": { - "cluster_pool_name": { - "type": "string" - } - }, - "description": "Encapsulates specifications for routing an execution onto a specific cluster." - }, - "adminClusterResourceAttributes": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).\nMap keys are the *case-sensitive* names of variables in templatized resource files.\nMap values should be the custom values which get substituted during resource creation." - } - } - }, - "adminCronSchedule": { - "type": "object", - "properties": { - "schedule": { - "type": "string", - "title": "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\nAlso supports nonstandard predefined scheduling definitions\nas described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\nexcept @reboot" - }, - "offset": { - "type": "string", - "title": "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" - } - }, - "description": "Options for schedules to run according to a cron expression." - }, - "adminDescription": { - "type": "object", - "properties": { - "value": { - "type": "string", - "title": "long description - no more than 4KB" - }, - "uri": { - "type": "string", - "title": "if the description sizes exceed some threshold we can offload the entire\ndescription proto altogether to an external data store, like S3 rather than store inline in the db" - }, - "format": { - "$ref": "#/definitions/adminDescriptionFormat", - "title": "Format of the long description" - }, - "icon_link": { - "type": "string", - "title": "Optional link to an icon for the entity" - } - }, - "description": "Full user description with formatting preserved. This can be rendered\nby clients, such as the console or command line tools with in-tact\nformatting." - }, - "adminDescriptionEntity": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the description entity." - }, - "short_description": { - "type": "string", - "description": "One-liner overview of the entity." - }, - "long_description": { - "$ref": "#/definitions/adminDescription", - "description": "Full user description with formatting preserved." - }, - "source_code": { - "$ref": "#/definitions/adminSourceCode", - "description": "Optional link to source code used to define this entity." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "User-specified tags. These are arbitrary and can be used for searching\nfiltering and discovering tasks." - } - }, - "description": "DescriptionEntity contains detailed description for the task/workflow.\nDocumentation could provide insight into the algorithms, business use case, etc." - }, - "adminDescriptionEntityList": { - "type": "object", - "properties": { - "descriptionEntities": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminDescriptionEntity" - }, - "description": "A list of DescriptionEntities returned based on the request." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of DescriptionEntities returned from the admin.\nSee :ref:`ref_flyteidl.admin.DescriptionEntity` for more details" - }, - "adminDescriptionFormat": { - "type": "string", - "enum": [ - "DESCRIPTION_FORMAT_UNKNOWN", - "DESCRIPTION_FORMAT_MARKDOWN", - "DESCRIPTION_FORMAT_HTML", - "DESCRIPTION_FORMAT_RST" - ], - "default": "DESCRIPTION_FORMAT_UNKNOWN", - "description": "- DESCRIPTION_FORMAT_RST: python default documentation - comments is rst", - "title": "The format of the long description" - }, - "adminDomain": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Globally unique domain name." - }, - "name": { - "type": "string", - "description": "Display name." - } - }, - "description": "Namespace within a project commonly used to differentiate between different service instances.\ne.g. \"production\", \"development\", etc." - }, - "adminDynamicNodeWorkflowResponse": { - "type": "object", - "properties": { - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure" - } - } - }, - "adminEmailNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The list of email addresses recipients for this notification.\n+required" - } - }, - "description": "Defines an email notification specification." - }, - "adminEnvs": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Map of custom environment variables to be applied to the execution resource." - } - }, - "description": "Environment variable values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge environment variables defined at registration and execution time." - }, - "adminExecution": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Unique identifier of the workflow execution." - }, - "spec": { - "$ref": "#/definitions/adminExecutionSpec", - "description": "User-provided configuration and inputs for launching the execution." - }, - "closure": { - "$ref": "#/definitions/adminExecutionClosure", - "description": "Execution results." - } - }, - "description": "A workflow execution represents an instantiated workflow, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes.\nUsed as a response object used in Get and List execution requests." - }, - "adminExecutionClosure": { - "type": "object", - "properties": { - "outputs": { - "$ref": "#/definitions/adminLiteralMapBlob", - "description": "Output URI in the case of a successful execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "description": "Error information in the case of a failed execution." - }, - "abort_cause": { - "type": "string", - "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." - }, - "abort_metadata": { - "$ref": "#/definitions/adminAbortMetadata", - "description": "In the case of a user-specified abort, this will pass along the user and their supplied cause." - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." - }, - "computed_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "Inputs computed and passed for execution.\ncomputed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan" - }, - "phase": { - "$ref": "#/definitions/coreWorkflowExecutionPhase", - "description": "Most recent recorded phase for the execution." - }, - "started_at": { - "type": "string", - "format": "date-time", - "description": "Reported time at which the execution began running." - }, - "duration": { - "type": "string", - "description": "The amount of time the execution spent running." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Reported time at which the execution was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Reported time at which the execution was last updated." - }, - "notifications": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminNotification" - }, - "description": "The notification settings to use after merging the CreateExecutionRequest and the launch plan\nnotification settings. An execution launched with notifications will always prefer that definition\nto notifications defined statically in a launch plan." - }, - "workflow_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Identifies the workflow definition for this execution." - }, - "state_change_details": { - "$ref": "#/definitions/adminExecutionStateChangeDetails", - "title": "Provides the details of the last stage change" - } - }, - "title": "Encapsulates the results of the Execution" - }, - "adminExecutionClusterLabel": { - "type": "object", - "properties": { - "value": { - "type": "string", - "title": "Label value to determine where the execution will be run" - } - } - }, - "adminExecutionCreateRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Name of the project the execution belongs to.\n+required" - }, - "domain": { - "type": "string", - "title": "Name of the domain the execution belongs to.\nA domain can be considered as a subset within a specific project.\n+required" - }, - "name": { - "type": "string", - "title": "User provided value for the resource.\nIf none is provided the system will generate a unique string.\n+optional" - }, - "spec": { - "$ref": "#/definitions/adminExecutionSpec", - "title": "Additional fields necessary to launch the execution.\n+optional" - }, - "inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Request to launch an execution with the given project, domain and optionally-assigned name." - }, - "adminExecutionCreateResponse": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "The unique identifier for a successfully created execution.\nIf the name was *not* specified in the create request, this identifier will include a generated name." - }, - "adminExecutionList": { - "type": "object", - "properties": { - "executions": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminExecution" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Used as a response for request to list executions.\nSee :ref:`ref_flyteidl.admin.Execution` for more details" - }, - "adminExecutionMetadata": { - "type": "object", - "properties": { - "mode": { - "$ref": "#/definitions/ExecutionMetadataExecutionMode" - }, - "principal": { - "type": "string", - "description": "Identifier of the entity that triggered this execution.\nFor systems using back-end authentication any value set here will be discarded in favor of the\nauthenticated user context." - }, - "nesting": { - "type": "integer", - "format": "int64", - "description": "Indicates the nestedness of this execution.\nIf a user launches a workflow execution, the default nesting is 0.\nIf this execution further launches a workflow (child workflow), the nesting level is incremented by 0 =\u003e 1\nGenerally, if workflow at nesting level k launches a workflow then the child workflow will have\nnesting = k + 1." - }, - "scheduled_at": { - "type": "string", - "format": "date-time", - "description": "For scheduled executions, the requested time for execution for this specific schedule invocation." - }, - "parent_node_execution": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "title": "Which subworkflow node (if any) launched this execution" - }, - "reference_execution": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Optional, a reference workflow execution related to this execution.\nIn the case of a relaunch, this references the original workflow execution." - }, - "system_metadata": { - "$ref": "#/definitions/adminSystemMetadata", - "description": "Optional, platform-specific metadata about the execution.\nIn this the future this may be gated behind an ACL or some sort of authorization." - }, - "artifact_ids": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreArtifactID" - }, - "description": "Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping\nsince we don't have a structure to handle nested ones anyways." - } - }, - "description": "Represents attributes about an execution which are not required to launch the execution but are useful to record.\nThese attributes are assigned at launch time and do not change." - }, - "adminExecutionQueueAttributes": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags used for assigning execution queues for tasks defined within this project." - } - } - }, - "adminExecutionRecoverRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Identifier of the workflow execution to recover." - }, - "name": { - "type": "string", - "title": "User provided value for the recovered execution.\nIf none is provided the system will generate a unique string.\n+optional" - }, - "metadata": { - "$ref": "#/definitions/adminExecutionMetadata", - "description": "Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution." - } - }, - "description": "Request to recover the referenced execution." - }, - "adminExecutionRelaunchRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "title": "Identifier of the workflow execution to relaunch.\n+required" - }, - "name": { - "type": "string", - "title": "User provided value for the relaunched execution.\nIf none is provided the system will generate a unique string.\n+optional" - }, - "overwrite_cache": { - "type": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - } - }, - "description": "Request to relaunch the referenced execution." - }, - "adminExecutionSpec": { - "type": "object", - "properties": { - "launch_plan": { - "$ref": "#/definitions/coreIdentifier", - "title": "Launch plan to be executed" - }, - "inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "Input values to be passed for the execution" - }, - "metadata": { - "$ref": "#/definitions/adminExecutionMetadata", - "title": "Metadata for the execution" - }, - "notifications": { - "$ref": "#/definitions/adminNotificationList", - "description": "List of notifications based on Execution status transitions\nWhen this list is not empty it is used rather than any notifications defined in the referenced launch plan.\nWhen this list is empty, the notifications defined for the launch plan will be applied." - }, - "disable_all": { - "type": "boolean", - "description": "This should be set to true if all notifications are intended to be disabled for this execution." - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Labels to apply to the execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Annotations to apply to the execution resource." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "Optional: security context override to apply this execution." - }, - "auth_role": { - "$ref": "#/definitions/adminAuthRole", - "description": "Optional: auth override to apply this execution." - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of the execution." - }, - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Controls the maximum number of task nodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "title": "User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).\nThis should be a prefix like s3://my-bucket/my-data" - }, - "cluster_assignment": { - "$ref": "#/definitions/adminClusterAssignment", - "description": "Controls how to select an available cluster on which this execution should run." - }, - "interruptible": { - "type": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags to be set for the execution." - } - }, - "description": "An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime\nof an execution as it progresses across phase changes." - }, - "adminExecutionState": { - "type": "string", - "enum": [ - "EXECUTION_ACTIVE", - "EXECUTION_ARCHIVED" - ], - "default": "EXECUTION_ACTIVE", - "description": "The state of the execution is used to control its visibility in the UI/CLI.\n\n - EXECUTION_ACTIVE: By default, all executions are considered active.\n - EXECUTION_ARCHIVED: Archived executions are no longer visible in the UI." - }, - "adminExecutionStateChangeDetails": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/adminExecutionState", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the state changed." - }, - "principal": { - "type": "string", - "title": "Identifies the entity (if any) responsible for causing the state change of the execution" - } - } - }, - "adminExecutionTerminateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminExecutionUpdateResponse": { - "type": "object" - }, - "adminFixedRate": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - }, - "unit": { - "$ref": "#/definitions/adminFixedRateUnit" - } - }, - "description": "Option for schedules run at a certain frequency e.g. every 2 minutes." - }, - "adminFixedRateUnit": { - "type": "string", - "enum": [ - "MINUTE", - "HOUR", - "DAY" - ], - "default": "MINUTE", - "description": "Represents a frequency at which to run a schedule." - }, - "adminFlyteURLs": { - "type": "object", - "properties": { - "inputs": { - "type": "string" - }, - "outputs": { - "type": "string" - }, - "deck": { - "type": "string" - } - }, - "description": "These URLs are returned as part of node and task execution data requests." - }, - "adminGetVersionResponse": { - "type": "object", - "properties": { - "control_plane_version": { - "$ref": "#/definitions/adminVersion", - "title": "The control plane version information. FlyteAdmin and related components\nform the control plane of Flyte" - } - }, - "title": "Response for the GetVersion API" - }, - "adminLabels": { - "type": "object", - "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Map of custom labels to be applied to the execution resource." - } - }, - "description": "Label values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge labels defined at registration and execution time." - }, - "adminLaunchPlan": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Uniquely identifies a launch plan entity." - }, - "spec": { - "$ref": "#/definitions/adminLaunchPlanSpec", - "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." - }, - "closure": { - "$ref": "#/definitions/adminLaunchPlanClosure", - "description": "Values computed by the flyte platform after launch plan registration." - } - }, - "description": "A LaunchPlan provides the capability to templatize workflow executions.\nLaunch plans simplify associating one or more schedules, inputs and notifications with your workflows.\nLaunch plans can be shared and used to trigger executions with predefined inputs even when a workflow\ndefinition doesn't necessarily have a default value for said input." - }, - "adminLaunchPlanClosure": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/adminLaunchPlanState", - "description": "Indicate the Launch plan state." - }, - "expected_inputs": { - "$ref": "#/definitions/coreParameterMap", - "title": "Indicates the set of inputs expected when creating an execution with the Launch plan" - }, - "expected_outputs": { - "$ref": "#/definitions/coreVariableMap", - "title": "Indicates the set of outputs expected to be produced by creating an execution with the Launch plan" - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the launch plan was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the launch plan was last updated." - } - }, - "description": "Values computed by the flyte platform after launch plan registration.\nThese include expected_inputs required to be present in a CreateExecutionRequest\nto launch the reference workflow as well timestamp values associated with the launch plan." - }, - "adminLaunchPlanCreateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Uniquely identifies a launch plan entity." - }, - "spec": { - "$ref": "#/definitions/adminLaunchPlanSpec", - "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." - } - }, - "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan." - }, - "adminLaunchPlanCreateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminLaunchPlanList": { - "type": "object", - "properties": { - "launch_plans": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Response object for list launch plan requests.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" - }, - "adminLaunchPlanMetadata": { - "type": "object", - "properties": { - "schedule": { - "$ref": "#/definitions/adminSchedule", - "title": "Schedule to execute the Launch Plan" - }, - "notifications": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminNotification" - }, - "title": "List of notifications based on Execution status transitions" - }, - "launch_conditions": { - "$ref": "#/definitions/protobufAny", - "title": "Additional metadata for how to launch the launch plan" - } - }, - "description": "Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch\nthe reference workflow." - }, - "adminLaunchPlanSpec": { - "type": "object", - "properties": { - "workflow_id": { - "$ref": "#/definitions/coreIdentifier", - "title": "Reference to the Workflow template that the launch plan references" - }, - "entity_metadata": { - "$ref": "#/definitions/adminLaunchPlanMetadata", - "title": "Metadata for the Launch Plan" - }, - "default_inputs": { - "$ref": "#/definitions/coreParameterMap", - "description": "Input values to be passed for the execution.\nThese can be overridden when an execution is created with this launch plan." - }, - "fixed_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Fixed, non-overridable inputs for the Launch Plan.\nThese can not be overridden when an execution is created with this launch plan." - }, - "role": { - "type": "string", - "title": "String to indicate the role to use to execute the workflow underneath" - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Custom labels to be applied to the execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Custom annotations to be applied to the execution resource." - }, - "auth": { - "$ref": "#/definitions/adminAuth", - "description": "Indicates the permission associated with workflow executions triggered with this launch plan." - }, - "auth_role": { - "$ref": "#/definitions/adminAuthRole" - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "title": "Indicates security context for permissions triggered with this launch plan" - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of the execution." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." - }, - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." - }, - "interruptible": { - "type": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - } - }, - "description": "User-provided launch plan definition and configuration values." - }, - "adminLaunchPlanState": { - "type": "string", - "enum": [ - "INACTIVE", - "ACTIVE" - ], - "default": "INACTIVE", - "description": "By default any launch plan regardless of state can be used to launch a workflow execution.\nHowever, at most one version of a launch plan\n(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be\nactive at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier\ngroup will be observed and trigger executions at a defined cadence." - }, - "adminLaunchPlanUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminListMatchableAttributesResponse": { - "type": "object", - "properties": { - "configurations": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminMatchableAttributesConfiguration" - } - } - }, - "title": "Response for a request for all matching resource attributes for a resource type.\nSee :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details" - }, - "adminLiteralMapBlob": { - "type": "object", - "properties": { - "values": { - "$ref": "#/definitions/coreLiteralMap", - "title": "Data in LiteralMap format" - }, - "uri": { - "type": "string", - "title": "In the event that the map is too large, we return a uri to the data" - } - }, - "title": "Input/output data can represented by actual values or a link to where values are stored" - }, - "adminMatchableAttributesConfiguration": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "domain": { - "type": "string" - }, - "project": { - "type": "string" - }, - "workflow": { - "type": "string" - }, - "launch_plan": { - "type": "string" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org);\nor domain, project and workflow name (and optional org).\nThese are used to override system level defaults for kubernetes cluster resource management,\ndefault execution values, and more all across different levels of specificity." - }, - "adminMatchableResource": { - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE", - "description": "Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes\nbased on matching tags.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run." - }, - "adminMatchingAttributes": { - "type": "object", - "properties": { - "task_resource_attributes": { - "$ref": "#/definitions/adminTaskResourceAttributes" - }, - "cluster_resource_attributes": { - "$ref": "#/definitions/adminClusterResourceAttributes" - }, - "execution_queue_attributes": { - "$ref": "#/definitions/adminExecutionQueueAttributes" - }, - "execution_cluster_label": { - "$ref": "#/definitions/adminExecutionClusterLabel" - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService" - }, - "plugin_overrides": { - "$ref": "#/definitions/adminPluginOverrides" - }, - "workflow_execution_config": { - "$ref": "#/definitions/adminWorkflowExecutionConfig" - }, - "cluster_assignment": { - "$ref": "#/definitions/adminClusterAssignment" - } - }, - "description": "Generic container for encapsulating all types of the above attributes messages." - }, - "adminNamedEntity": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Resource type of the named entity. One of Task, Workflow or LaunchPlan." - }, - "id": { - "$ref": "#/definitions/adminNamedEntityIdentifier" - }, - "metadata": { - "$ref": "#/definitions/adminNamedEntityMetadata", - "description": "Additional metadata around a named entity." - } - }, - "description": "Encapsulates information common to a NamedEntity, a Flyte resource such as a task,\nworkflow or launch plan. A NamedEntity is exclusively identified by its resource type\nand identifier." - }, - "adminNamedEntityIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "title": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Encapsulation of fields that identifies a Flyte resource.\nA Flyte resource can be a task, workflow or launch plan.\nA resource can internally have multiple versions and is uniquely identified\nby project, domain, and name." - }, - "adminNamedEntityIdentifierList": { - "type": "object", - "properties": { - "entities": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminNamedEntityIdentifier" - }, - "description": "A list of identifiers." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "description": "Represents a list of NamedEntityIdentifiers." - }, - "adminNamedEntityList": { - "type": "object", - "properties": { - "entities": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminNamedEntity" - }, - "title": "A list of NamedEntity objects" - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "description": "Represents a list of NamedEntityIdentifiers." - }, - "adminNamedEntityMetadata": { - "type": "object", - "properties": { - "description": { - "type": "string", - "title": "Common description across all versions of the entity\n+optional" - }, - "state": { - "$ref": "#/definitions/adminNamedEntityState", - "description": "Shared state across all version of the entity\nAt this point in time, only workflow entities can have their state archived." - } - }, - "description": "Additional metadata around a named entity." - }, - "adminNamedEntityState": { - "type": "string", - "enum": [ - "NAMED_ENTITY_ACTIVE", - "NAMED_ENTITY_ARCHIVED", - "SYSTEM_GENERATED" - ], - "default": "NAMED_ENTITY_ACTIVE", - "description": "The status of the named entity is used to control its visibility in the UI.\n\n - NAMED_ENTITY_ACTIVE: By default, all named entities are considered active and under development.\n - NAMED_ENTITY_ARCHIVED: Archived named entities are no longer visible in the UI.\n - SYSTEM_GENERATED: System generated entities that aren't explicitly created or managed by a user." - }, - "adminNamedEntityUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminNodeExecutionClosure": { - "type": "object", - "properties": { - "output_uri": { - "type": "string", - "description": "Links to a remotely stored, serialized core.LiteralMap of node execution outputs.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the Node" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this node execution.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." - }, - "phase": { - "$ref": "#/definitions/coreNodeExecutionPhase", - "description": "The last recorded phase for this node execution." - }, - "started_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the node execution began running." - }, - "duration": { - "type": "string", - "description": "The amount of time the node execution spent running." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the node execution was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the node execution was last updated." - }, - "workflow_node_metadata": { - "$ref": "#/definitions/flyteidladminWorkflowNodeMetadata" - }, - "task_node_metadata": { - "$ref": "#/definitions/flyteidladminTaskNodeMetadata" - }, - "deck_uri": { - "type": "string", - "title": "String location uniquely identifying where the deck HTML file is.\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" - }, - "dynamic_job_spec_uri": { - "type": "string", - "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required\nto correctly recover partially completed executions where the subworkflow has already been compiled." - } - }, - "description": "Container for node execution details and results." - }, - "adminNodeExecutionEventRequest": { - "type": "object", - "properties": { - "request_id": { - "type": "string", - "title": "Unique ID for this request that can be traced between services" - }, - "event": { - "$ref": "#/definitions/eventNodeExecutionEvent", - "description": "Details about the event that occurred." - } - }, - "description": "Request to send a notification that a node execution event has occurred." - }, - "adminNodeExecutionEventResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminNodeExecutionGetDataResponse": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of node execution inputs.\nDeprecated: Please use full_inputs instead." - }, - "outputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of node execution outputs.\nDeprecated: Please use full_outputs instead." - }, - "full_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_inputs will only be populated if they are under a configured size threshold." - }, - "full_outputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_outputs will only be populated if they are under a configured size threshold." - }, - "dynamic_workflow": { - "$ref": "#/definitions/flyteidladminDynamicWorkflowNodeMetadata", - "description": "Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here." - }, - "flyte_urls": { - "$ref": "#/definitions/adminFlyteURLs" - } - }, - "description": "Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution." - }, - "adminNodeExecutionList": { - "type": "object", - "properties": { - "node_executions": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidladminNodeExecution" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Request structure to retrieve a list of node execution entities.\nSee :ref:`ref_flyteidl.admin.NodeExecution` for more details" - }, - "adminNodeExecutionMetaData": { - "type": "object", - "properties": { - "retry_group": { - "type": "string", - "description": "Node executions are grouped depending on retries of the parent\nRetry group is unique within the context of a parent node." - }, - "is_parent_node": { - "type": "boolean", - "description": "Boolean flag indicating if the node has child nodes under it\nThis can be true when a node contains a dynamic workflow which then produces\nchild nodes." - }, - "spec_node_id": { - "type": "string", - "title": "Node id of the node in the original workflow\nThis maps to value of WorkflowTemplate.nodes[X].id" - }, - "is_dynamic": { - "type": "boolean", - "description": "Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.\nThis is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true." - }, - "is_array": { - "type": "boolean", - "description": "Boolean flag indicating if the node is an array node. This is intended to uniquely identify\narray nodes from other nodes which can have is_parent_node as true." - } - }, - "title": "Represents additional attributes related to a Node Execution" - }, - "adminNotification": { - "type": "object", - "properties": { - "phases": { - "type": "array", - "items": { - "$ref": "#/definitions/coreWorkflowExecutionPhase" - }, - "title": "A list of phases to which users can associate the notifications to.\n+required" - }, - "email": { - "$ref": "#/definitions/adminEmailNotification" - }, - "pager_duty": { - "$ref": "#/definitions/adminPagerDutyNotification" - }, - "slack": { - "$ref": "#/definitions/adminSlackNotification" - } - }, - "description": "Represents a structure for notifications based on execution status.\nThe notification content is configured within flyte admin but can be templatized.\nFuture iterations could expose configuring notifications with custom content." - }, - "adminNotificationList": { - "type": "object", - "properties": { - "notifications": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminNotification" - } - } - } - }, - "adminPagerDutyNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Currently, PagerDuty notifications leverage email to trigger a notification.\n+required" - } - }, - "description": "Defines a pager duty notification specification." - }, - "adminPluginOverride": { - "type": "object", - "properties": { - "task_type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier." - }, - "plugin_id": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id." - }, - "missing_plugin_behavior": { - "$ref": "#/definitions/PluginOverrideMissingPluginBehavior", - "description": "Defines the behavior when no plugin from the plugin_id list is not found." - } - }, - "description": "This MatchableAttribute configures selecting alternate plugin implementations for a given task type.\nIn addition to an override implementation a selection of fallbacks can be provided or other modes\nfor handling cases where the desired plugin override is not enabled in a given Flyte deployment." - }, - "adminPluginOverrides": { - "type": "object", - "properties": { - "overrides": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminPluginOverride" - } - } - } - }, - "adminProject": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Globally unique project name." - }, - "name": { - "type": "string", - "description": "Display name." - }, - "domains": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminDomain" - } - }, - "description": { - "type": "string" - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Leverage Labels from flyteidl.admin.common.proto to\ntag projects with ownership information." - }, - "state": { - "$ref": "#/definitions/ProjectProjectState" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Top-level namespace used to classify different entities like workflows and executions." - }, - "adminProjectAttributes": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Unique project id for which this set of attributes will be applied." - }, - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the project." - } - }, - "title": "Defines a set of custom matching attributes at the project level.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectAttributesDeleteResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectAttributesGetResponse": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminProjectAttributes" - } - }, - "title": "Response to get an individual project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectAttributesUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectDomainAttributes": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Unique project id for which this set of attributes will be applied." - }, - "domain": { - "type": "string", - "description": "Unique domain id for which this set of attributes will be applied." - }, - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the attributes." - } - }, - "title": "Defines a set of custom matching attributes which defines resource defaults for a project and domain.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectDomainAttributesDeleteResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectDomainAttributesGetResponse": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminProjectDomainAttributes" - } - }, - "title": "Response to get an individual project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectDomainAttributesUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectRegisterRequest": { - "type": "object", - "properties": { - "project": { - "$ref": "#/definitions/adminProject", - "title": "+required" - } - }, - "title": "Adds a new user-project within the Flyte deployment.\nSee :ref:`ref_flyteidl.admin.Project` for more details" - }, - "adminProjectRegisterResponse": { - "type": "object", - "description": "Purposefully empty, may be updated in the future." - }, - "adminProjectUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be updated in the future." - }, - "adminProjects": { - "type": "object", - "properties": { - "projects": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminProject" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of projects.\nSee :ref:`ref_flyteidl.admin.Project` for more details" - }, - "adminRawOutputDataConfig": { - "type": "object", - "properties": { - "output_location_prefix": { - "type": "string", - "title": "Prefix for where offloaded data from user workflows will be written\ne.g. s3://bucket/key or s3://bucket/" - } - }, - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211 for more background information." - }, - "adminReason": { - "type": "object", - "properties": { - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "occurred_at is the timestamp indicating the instant that this reason happened." - }, - "message": { - "type": "string", - "description": "message is the explanation for the most recent phase transition or status update." - } - }, - "description": "Reason is a single message annotated with a timestamp to indicate the instant the reason occurred." - }, - "adminSchedule": { - "type": "object", - "properties": { - "cron_expression": { - "type": "string", - "title": "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\ne.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" - }, - "rate": { - "$ref": "#/definitions/adminFixedRate" - }, - "cron_schedule": { - "$ref": "#/definitions/adminCronSchedule" - }, - "kickoff_time_input_arg": { - "type": "string", - "description": "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." - } - }, - "description": "Defines complete set of information required to trigger an execution on a schedule." - }, - "adminSlackNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Currently, Slack notifications leverage email to trigger a notification.\n+required" - } - }, - "description": "Defines a slack notification specification." - }, - "adminSort": { - "type": "object", - "properties": { - "key": { - "type": "string", - "title": "Indicates an attribute to sort the response values.\n+required" - }, - "direction": { - "$ref": "#/definitions/SortDirection", - "title": "Indicates the direction to apply sort key for response values.\n+optional" - } - }, - "description": "Specifies sort ordering in a list request." - }, - "adminSourceCode": { - "type": "object", - "properties": { - "link": { - "type": "string" - } - }, - "title": "Link to source code used to define this entity" - }, - "adminSystemMetadata": { - "type": "object", - "properties": { - "execution_cluster": { - "type": "string", - "description": "Which execution cluster this execution ran on." - }, - "namespace": { - "type": "string", - "description": "Which kubernetes namespace the execution ran under." - } - }, - "description": "Represents system, rather than user-facing, metadata about an execution." - }, - "adminTask": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the task." - }, - "closure": { - "$ref": "#/definitions/adminTaskClosure", - "description": "closure encapsulates all the fields that maps to a compiled version of the task." - }, - "short_description": { - "type": "string", - "description": "One-liner overview of the entity." - } - }, - "description": "Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks\narranged to process workflow inputs and produce a deterministic set of outputs.\nTasks can come in many varieties tuned for specialized behavior." - }, - "adminTaskClosure": { - "type": "object", - "properties": { - "compiled_task": { - "$ref": "#/definitions/coreCompiledTask", - "description": "Represents the compiled representation of the task from the specification provided." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task was created." - } - }, - "description": "Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data\nand task metadata." - }, - "adminTaskExecutionClosure": { - "type": "object", - "properties": { - "output_uri": { - "type": "string", - "description": "Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "description": "Error information for the task execution. Populated if the execution failed." - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this task execution.\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "description": "The last recorded phase for this task execution." - }, - "logs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreTaskLog" - }, - "description": "Detailed log information output by the task execution." - }, - "started_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task execution began running." - }, - "duration": { - "type": "string", - "description": "The amount of time the task execution spent running." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task execution was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task execution was last updated." - }, - "custom_info": { - "type": "object", - "description": "Custom data specific to the task plugin." - }, - "reason": { - "type": "string", - "description": "If there is an explanation for the most recent phase transition, the reason will capture it." - }, - "task_type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier." - }, - "metadata": { - "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", - "description": "Metadata around how a task was executed." - }, - "event_version": { - "type": "integer", - "format": "int32", - "description": "The event version is used to indicate versioned changes in how data is maintained using this\nproto message. For example, event_verison \u003e 0 means that maps tasks logs use the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." - }, - "reasons": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminReason" - }, - "description": "A time-series of the phase transition or update explanations. This, when compared to storing a singular reason\nas previously done, is much more valuable in visualizing and understanding historical evaluations." - } - }, - "description": "Container for task execution details and results." - }, - "adminTaskExecutionEventRequest": { - "type": "object", - "properties": { - "request_id": { - "type": "string", - "title": "Unique ID for this request that can be traced between services" - }, - "event": { - "$ref": "#/definitions/eventTaskExecutionEvent", - "description": "Details about the event that occurred." - } - }, - "description": "Request to send a notification that a task execution event has occurred." - }, - "adminTaskExecutionEventResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminTaskExecutionGetDataResponse": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of task execution inputs.\nDeprecated: Please use full_inputs instead." - }, - "outputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of task execution outputs.\nDeprecated: Please use full_outputs instead." - }, - "full_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_inputs will only be populated if they are under a configured size threshold." - }, - "full_outputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_outputs will only be populated if they are under a configured size threshold." - }, - "flyte_urls": { - "$ref": "#/definitions/adminFlyteURLs", - "title": "flyte tiny url to fetch a core.LiteralMap of task execution's IO\nDeck will be empty for task" - } - }, - "description": "Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution." - }, - "adminTaskExecutionList": { - "type": "object", - "properties": { - "task_executions": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidladminTaskExecution" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Response structure for a query to list of task execution entities.\nSee :ref:`ref_flyteidl.admin.TaskExecution` for more details" - }, - "adminTaskList": { - "type": "object", - "properties": { - "tasks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminTask" - }, - "description": "A list of tasks returned based on the request." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of tasks returned from the admin.\nSee :ref:`ref_flyteidl.admin.Task` for more details" - }, - "adminTaskResourceAttributes": { - "type": "object", - "properties": { - "defaults": { - "$ref": "#/definitions/adminTaskResourceSpec" - }, - "limits": { - "$ref": "#/definitions/adminTaskResourceSpec" - } - }, - "description": "Defines task resource defaults and limits that will be applied at task registration." - }, - "adminTaskResourceSpec": { - "type": "object", - "properties": { - "cpu": { - "type": "string" - }, - "gpu": { - "type": "string" - }, - "memory": { - "type": "string" - }, - "storage": { - "type": "string" - }, - "ephemeral_storage": { - "type": "string" - } - }, - "description": "Defines a set of overridable task resource attributes set during task registration." - }, - "adminTaskSpec": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreTaskTemplate", - "description": "Template of the task that encapsulates all the metadata of the task." - }, - "description": { - "$ref": "#/definitions/adminDescriptionEntity", - "description": "Represents the specification for description entity." - } - }, - "description": "Represents a structure that encapsulates the user-configured specification of the task." - }, - "adminUrlBlob": { - "type": "object", - "properties": { - "url": { - "type": "string", - "description": "Actual url value." - }, - "bytes": { - "type": "string", - "format": "int64", - "description": "Represents the size of the file accessible at the above url." - } - }, - "description": "Represents a string url and associated metadata used throughout the platform." - }, - "adminVersion": { - "type": "object", - "properties": { - "Build": { - "type": "string", - "title": "Specifies the GIT sha of the build" - }, - "Version": { - "type": "string", - "title": "Version for the build, should follow a semver" - }, - "BuildTime": { - "type": "string", - "title": "Build timestamp" - } - }, - "title": "Provides Version information for a component" - }, - "adminWorkflow": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the workflow." - }, - "closure": { - "$ref": "#/definitions/flyteidladminWorkflowClosure", - "description": "closure encapsulates all the fields that maps to a compiled version of the workflow." - }, - "short_description": { - "type": "string", - "description": "One-liner overview of the entity." - } - }, - "description": "Represents the workflow structure stored in the Admin\nA workflow is created by ordering tasks and associating outputs to inputs\nin order to produce a directed-acyclic execution graph." - }, - "adminWorkflowAttributes": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Unique project id for which this set of attributes will be applied." - }, - "domain": { - "type": "string", - "description": "Unique domain id for which this set of attributes will be applied." - }, - "workflow": { - "type": "string", - "description": "Workflow name for which this set of attributes will be applied." - }, - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the attributes." - } - }, - "title": "Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminWorkflowAttributesDeleteResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminWorkflowAttributesGetResponse": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminWorkflowAttributes" - } - }, - "description": "Response to get an individual workflow attribute override." - }, - "adminWorkflowAttributesUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminWorkflowCreateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "title": "id represents the unique identifier of the workflow.\n+required" - }, - "spec": { - "$ref": "#/definitions/adminWorkflowSpec", - "title": "Represents the specification for workflow.\n+required" - } - }, - "title": "Represents a request structure to create a revision of a workflow.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" - }, - "adminWorkflowCreateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminWorkflowExecutionConfig": { - "type": "object", - "properties": { - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "Indicates security context permissions for executions triggered with this matchable attribute." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Custom labels to be applied to a triggered execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Custom annotations to be applied to a triggered execution resource." - }, - "interruptible": { - "type": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - } - }, - "description": "Adds defaults for customizable workflow-execution specifications and overrides." - }, - "adminWorkflowExecutionEventRequest": { - "type": "object", - "properties": { - "request_id": { - "type": "string", - "title": "Unique ID for this request that can be traced between services" - }, - "event": { - "$ref": "#/definitions/eventWorkflowExecutionEvent", - "description": "Details about the event that occurred." - } - }, - "description": "Request to send a notification that a workflow execution event has occurred." - }, - "adminWorkflowExecutionEventResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminWorkflowExecutionGetDataResponse": { - "type": "object", - "properties": { - "outputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of execution outputs.\nDeprecated: Please use full_outputs instead." - }, - "inputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of execution inputs.\nDeprecated: Please use full_inputs instead." - }, - "full_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_inputs will only be populated if they are under a configured size threshold." - }, - "full_outputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_outputs will only be populated if they are under a configured size threshold." - } - }, - "description": "Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution." - }, - "adminWorkflowExecutionGetMetricsResponse": { - "type": "object", - "properties": { - "span": { - "$ref": "#/definitions/coreSpan", - "description": "Span defines the top-level breakdown of the workflows execution. More precise information is nested in a\nhierarchical structure using Flyte entity references." - } - }, - "description": "WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution." - }, - "adminWorkflowList": { - "type": "object", - "properties": { - "workflows": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminWorkflow" - }, - "description": "A list of workflows returned based on the request." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of workflows returned from the admin.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" - }, - "adminWorkflowSpec": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreWorkflowTemplate", - "description": "Template of the task that encapsulates all the metadata of the workflow." - }, - "sub_workflows": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreWorkflowTemplate" - }, - "description": "Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the\npropeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out\nto Admin to see other registered workflows). In fact, subworkflows do not even need to be registered." - }, - "description": { - "$ref": "#/definitions/adminDescriptionEntity", - "description": "Represents the specification for description entity." - } - }, - "description": "Represents a structure that encapsulates the specification of the workflow." - }, - "coreAlias": { - "type": "object", - "properties": { - "var": { - "type": "string", - "description": "Must match one of the output variable names on a node." - }, - "alias": { - "type": "string", - "description": "A workflow-level unique alias that downstream nodes can refer to in their input." - } - }, - "description": "Links a variable to an alias." - }, - "coreApproveCondition": { - "type": "object", - "properties": { - "signal_id": { - "type": "string", - "description": "A unique identifier for the requested boolean signal." - } - }, - "description": "ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean\nsignal with the provided signal_id." - }, - "coreArrayNode": { - "type": "object", - "properties": { - "node": { - "$ref": "#/definitions/coreNode", - "description": "node is the sub-node that will be executed for each element in the array." - }, - "parallelism": { - "type": "integer", - "format": "int64", - "description": "parallelism defines the minimum number of instances to bring up concurrently at any given\npoint. Note that this is an optimistic restriction and that, due to network partitioning or\nother failures, the actual number of currently running instances might be more. This has to\nbe a positive number if assigned. Default value is size." - }, - "min_successes": { - "type": "integer", - "format": "int64", - "description": "min_successes is an absolute number of the minimum number of successful completions of\nsub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful\nand outputs will be computed. This has to be a non-negative number if assigned. Default\nvalue is size (if specified)." - }, - "min_success_ratio": { - "type": "number", - "format": "float", - "description": "If the array job size is not known beforehand, the min_success_ratio can instead be used\nto determine when an ArrayNode can be marked successful." - } - }, - "description": "ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input\nvalues. An ArrayNode can be executed with configurable parallelism (separate from the parent\nworkflow) and can be configured to succeed when a certain number of sub-nodes succeed." - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string" - }, - "bind_to_time_partition": { - "type": "boolean" - }, - "transform": { - "type": "string", - "title": "This is only relevant in the time partition case" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions", - "description": "Think of a partition as a tag on an Artifact, except it's a key-value pair.\nDifferent partitions naturally have different versions (execution ids)." - }, - "time_partition": { - "$ref": "#/definitions/coreTimePartition", - "description": "There is no such thing as an empty time partition - if it's not set, then there is no time partition." - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - }, - "org": { - "type": "string" - } - } - }, - "coreArtifactQuery": { - "type": "object", - "properties": { - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - }, - "uri": { - "type": "string" - }, - "binding": { - "$ref": "#/definitions/coreArtifactBindingData", - "description": "This is used in the trigger case, where a user specifies a value for an input that is one of the triggering\nartifacts, or a partition value derived from a triggering artifact." - } - }, - "title": "Uniqueness constraints for Artifacts\n - project, domain, name, version, partitions\nOption 2 (tags are standalone, point to an individual artifact id):\n - project, domain, name, alias (points to one partition if partitioned)\n - project, domain, name, partition key, partition value" - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBinding": { - "type": "object", - "properties": { - "var": { - "type": "string", - "description": "Variable name must match an input/output variable of the node." - }, - "binding": { - "$ref": "#/definitions/coreBindingData", - "description": "Data to use to bind this variable." - } - }, - "description": "An input/output binding of a variable to either static value or a node output." - }, - "coreBindingData": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple scalar value." - }, - "collection": { - "$ref": "#/definitions/coreBindingDataCollection", - "description": "A collection of binding data. This allows nesting of binding data to any number\nof levels." - }, - "promise": { - "$ref": "#/definitions/coreOutputReference", - "description": "References an output promised by another node." - }, - "map": { - "$ref": "#/definitions/coreBindingDataMap", - "description": "A map of bindings. The key is always a string." - }, - "union": { - "$ref": "#/definitions/coreUnionInfo" - } - }, - "description": "Specifies either a simple value or a reference to another output." - }, - "coreBindingDataCollection": { - "type": "object", - "properties": { - "bindings": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreBindingData" - } - } - }, - "description": "A collection of BindingData items." - }, - "coreBindingDataMap": { - "type": "object", - "properties": { - "bindings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreBindingData" - } - } - }, - "description": "A map of BindingData items." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreBooleanExpression": { - "type": "object", - "properties": { - "conjunction": { - "$ref": "#/definitions/coreConjunctionExpression" - }, - "comparison": { - "$ref": "#/definitions/coreComparisonExpression" - } - }, - "description": "Defines a boolean expression tree. It can be a simple or a conjunction expression.\nMultiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result." - }, - "coreBranchNode": { - "type": "object", - "properties": { - "if_else": { - "$ref": "#/definitions/coreIfElseBlock", - "title": "+required" - } - }, - "description": "BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at\nruntime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives)." - }, - "coreCatalogArtifactTag": { - "type": "object", - "properties": { - "artifact_id": { - "type": "string", - "title": "Artifact ID is generated name" - }, - "name": { - "type": "string", - "title": "Flyte computes the tag automatically, as the hash of the values" - } - } - }, - "coreCatalogCacheStatus": { - "type": "string", - "enum": [ - "CACHE_DISABLED", - "CACHE_MISS", - "CACHE_HIT", - "CACHE_POPULATED", - "CACHE_LOOKUP_FAILURE", - "CACHE_PUT_FAILURE", - "CACHE_SKIPPED", - "CACHE_EVICTED" - ], - "default": "CACHE_DISABLED", - "description": "- CACHE_DISABLED: Used to indicate that caching was disabled\n - CACHE_MISS: Used to indicate that the cache lookup resulted in no matches\n - CACHE_HIT: used to indicate that the associated artifact was a result of a previous execution\n - CACHE_POPULATED: used to indicate that the resultant artifact was added to the cache\n - CACHE_LOOKUP_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_PUT_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_SKIPPED: Used to indicate the cache lookup was skipped\n - CACHE_EVICTED: Used to indicate that the cache was evicted", - "title": "Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future" - }, - "coreCatalogMetadata": { - "type": "object", - "properties": { - "dataset_id": { - "$ref": "#/definitions/coreIdentifier", - "title": "Dataset ID in the catalog" - }, - "artifact_tag": { - "$ref": "#/definitions/coreCatalogArtifactTag", - "title": "Artifact tag in the catalog" - }, - "source_task_execution": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "title": "Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions" - } - }, - "title": "Catalog artifact information with specific metadata" - }, - "coreCatalogReservationStatus": { - "type": "string", - "enum": [ - "RESERVATION_DISABLED", - "RESERVATION_ACQUIRED", - "RESERVATION_EXISTS", - "RESERVATION_RELEASED", - "RESERVATION_FAILURE" - ], - "default": "RESERVATION_DISABLED", - "description": "Indicates the status of a catalog reservation operation.\n\n - RESERVATION_DISABLED: Used to indicate that reservations are disabled\n - RESERVATION_ACQUIRED: Used to indicate that a reservation was successfully acquired or extended\n - RESERVATION_EXISTS: Used to indicate that an active reservation currently exists\n - RESERVATION_RELEASED: Used to indicate that the reservation has been successfully released\n - RESERVATION_FAILURE: Used to indicate that a reservation operation resulted in failure" - }, - "coreComparisonExpression": { - "type": "object", - "properties": { - "operator": { - "$ref": "#/definitions/ComparisonExpressionOperator" - }, - "left_value": { - "$ref": "#/definitions/coreOperand" - }, - "right_value": { - "$ref": "#/definitions/coreOperand" - } - }, - "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." - }, - "coreCompiledLaunchPlan": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreLaunchPlanTemplate", - "title": "Completely contained LaunchPlan Template" - } - }, - "title": "Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer" - }, - "coreCompiledTask": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreTaskTemplate", - "title": "Completely contained TaskTemplate" - } - }, - "title": "Output of the Compilation step. This object represent one Task. We store more metadata at this layer" - }, - "coreCompiledWorkflow": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreWorkflowTemplate", - "title": "Completely contained Workflow Template" - }, - "connections": { - "$ref": "#/definitions/coreConnectionSet", - "description": "For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored." - } - }, - "title": "Output of the compilation Step. This object represents one workflow. We store more metadata at this layer" - }, - "coreCompiledWorkflowClosure": { - "type": "object", - "properties": { - "primary": { - "$ref": "#/definitions/coreCompiledWorkflow", - "title": "+required" - }, - "sub_workflows": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreCompiledWorkflow" - }, - "title": "Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a\nunique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow\nas an inlined workflow\n+optional" - }, - "tasks": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreCompiledTask" - }, - "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (at least 1)" - }, - "launch_plans": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreCompiledLaunchPlan" - }, - "description": "A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan\nwith a given id, i.e., every launch plan has a unique id." - } - }, - "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." - }, - "coreConjunctionExpression": { - "type": "object", - "properties": { - "operator": { - "$ref": "#/definitions/ConjunctionExpressionLogicalOperator" - }, - "left_expression": { - "$ref": "#/definitions/coreBooleanExpression" - }, - "right_expression": { - "$ref": "#/definitions/coreBooleanExpression" - } - }, - "description": "Defines a conjunction expression of two boolean expressions." - }, - "coreConnectionSet": { - "type": "object", - "properties": { - "downstream": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ConnectionSetIdList" - }, - "title": "A list of all the node ids that are downstream from a given node id" - }, - "upstream": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ConnectionSetIdList" - }, - "title": "A list of all the node ids, that are upstream of this node id" - } - }, - "title": "Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation\nstep uses this created ConnectionSet" - }, - "coreContainer": { - "type": "object", - "properties": { - "image": { - "type": "string", - "title": "Container image url. Eg: docker/redis:latest" - }, - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." - }, - "resources": { - "$ref": "#/definitions/coreResources", - "description": "Container resources requirement as specified by the container engine." - }, - "env": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Environment variables will be set as the container is starting up." - }, - "config": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." - }, - "ports": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreContainerPort" - }, - "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - }, - "architecture": { - "$ref": "#/definitions/ContainerArchitecture" - } - } - }, - "coreContainerPort": { - "type": "object", - "properties": { - "container_port": { - "type": "integer", - "format": "int64", - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." - } - }, - "description": "Defines port properties for a container." - }, - "coreDataLoadingConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" - }, - "input_path": { - "type": "string", - "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" - }, - "output_path": { - "type": "string", - "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" - }, - "format": { - "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", - "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" - }, - "io_strategy": { - "$ref": "#/definitions/coreIOStrategy" - } - }, - "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreExecutionError": { - "type": "object", - "properties": { - "code": { - "type": "string", - "title": "Error code indicates a grouping of a type of error.\nMore Info: \u003cLink\u003e" - }, - "message": { - "type": "string", - "description": "Detailed description of the error - including stack trace." - }, - "error_uri": { - "type": "string", - "title": "Full error contents accessible via a URI" - }, - "kind": { - "$ref": "#/definitions/ExecutionErrorErrorKind" - } - }, - "description": "Represents the error message from the execution." - }, - "coreExtendedResources": { - "type": "object", - "properties": { - "gpu_accelerator": { - "$ref": "#/definitions/coreGPUAccelerator", - "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." - } - }, - "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." - }, - "coreGPUAccelerator": { - "type": "object", - "properties": { - "device": { - "type": "string", - "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." - }, - "unpartitioned": { - "type": "boolean" - }, - "partition_size": { - "type": "string", - "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." - } - }, - "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." - }, - "coreGateNode": { - "type": "object", - "properties": { - "approve": { - "$ref": "#/definitions/coreApproveCondition", - "description": "ApproveCondition represents a dependency on an external approval provided by a boolean signal." - }, - "signal": { - "$ref": "#/definitions/coreSignalCondition", - "description": "SignalCondition represents a dependency on an signal." - }, - "sleep": { - "$ref": "#/definitions/coreSleepCondition", - "description": "SleepCondition represents a dependency on waiting for the specified duration." - } - }, - "description": "GateNode refers to the condition that is required for the gate to successfully complete." - }, - "coreIOStrategy": { - "type": "object", - "properties": { - "download_mode": { - "$ref": "#/definitions/IOStrategyDownloadMode", - "title": "Mode to use to manage downloads" - }, - "upload_mode": { - "$ref": "#/definitions/IOStrategyUploadMode", - "title": "Mode to use to manage uploads" - } - }, - "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreIfBlock": { - "type": "object", - "properties": { - "condition": { - "$ref": "#/definitions/coreBooleanExpression" - }, - "then_node": { - "$ref": "#/definitions/coreNode" - } - }, - "description": "Defines a condition and the execution unit that should be executed if the condition is satisfied." - }, - "coreIfElseBlock": { - "type": "object", - "properties": { - "case": { - "$ref": "#/definitions/coreIfBlock", - "description": "+required. First condition to evaluate." - }, - "other": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreIfBlock" - }, - "description": "+optional. Additional branches to evaluate." - }, - "else_node": { - "$ref": "#/definitions/coreNode", - "description": "The node to execute in case none of the branches were taken." - }, - "error": { - "$ref": "#/definitions/coreError", - "description": "An error to throw in case none of the branches were taken." - } - }, - "description": "Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.\nIf no conditions were satisfied, the else_node or the error will execute." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreK8sObjectMetadata": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional labels to add to the pod definition." - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional annotations to add to the pod definition." - } - }, - "description": "Metadata for building a kubernetes object when a task is executed." - }, - "coreK8sPod": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreK8sObjectMetadata", - "description": "Contains additional metadata for building a kubernetes pod." - }, - "pod_spec": { - "type": "object", - "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - } - }, - "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string", - "title": "The string static value is for use in the Partitions object" - }, - "time_value": { - "type": "string", - "format": "date-time", - "title": "The time value is for use in the TimePartition case" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLaunchPlanTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the launch plan." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "title": "The input and output interface for the launch plan" - }, - "fixed_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "A collection of input literals that are fixed for the launch plan" - } - }, - "description": "A structure that uniquely identifies a launch plan in the system." - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/flyteidlcoreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "type": "object", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreNode": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved\nnode ids that cannot be used by other nodes." - }, - "metadata": { - "$ref": "#/definitions/coreNodeMetadata", - "description": "Extra metadata about the node." - }, - "inputs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreBinding" - }, - "description": "Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface\nmust be fulfilled." - }, - "upstream_node_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its\nupstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs\nfield." - }, - "output_aliases": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreAlias" - }, - "description": "+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes\nneed to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this\nnodes outputs using the alias if one's specified." - }, - "task_node": { - "$ref": "#/definitions/coreTaskNode", - "description": "Information about the Task to execute in this node." - }, - "workflow_node": { - "$ref": "#/definitions/coreWorkflowNode", - "description": "Information about the Workflow to execute in this mode." - }, - "branch_node": { - "$ref": "#/definitions/coreBranchNode", - "description": "Information about the branch node to evaluate in this node." - }, - "gate_node": { - "$ref": "#/definitions/coreGateNode", - "description": "Information about the condition to evaluate in this node." - }, - "array_node": { - "$ref": "#/definitions/coreArrayNode", - "description": "Information about the sub-node executions for each value in the list of this nodes\ninputs values." - } - }, - "description": "A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch\nnode." - }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, - "coreNodeExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDED", - "FAILING", - "FAILED", - "ABORTED", - "SKIPPED", - "TIMED_OUT", - "DYNAMIC_RUNNING", - "RECOVERED" - ], - "default": "UNDEFINED" - }, - "coreNodeMetadata": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A friendly name for the Node" - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "interruptible": { - "type": "boolean" - }, - "cacheable": { - "type": "boolean" - }, - "cache_version": { - "type": "string" - }, - "cache_serializable": { - "type": "boolean" - } - }, - "description": "Defines extra information about the Node." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "coreOperand": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive", - "title": "Can be a constant" - }, - "var": { - "type": "string", - "title": "Or one of this node's input variables" - }, - "scalar": { - "$ref": "#/definitions/coreScalar", - "title": "Replace the primitive field" - } - }, - "description": "Defines an operand to a comparison expression." - }, - "coreOutputReference": { - "type": "object", - "properties": { - "node_id": { - "type": "string", - "description": "Node id must exist at the graph layer." - }, - "var": { - "type": "string", - "description": "Variable name must refer to an output variable for the node." - }, - "attr_path": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/corePromiseAttribute" - } - } - }, - "description": "A reference to an output produced by a node. The type can be retrieved -and validated- from\nthe underlying interface of the node." - }, - "coreParameter": { - "type": "object", - "properties": { - "var": { - "$ref": "#/definitions/coreVariable", - "description": "+required Variable. Defines the type of the variable backing this parameter." - }, - "default": { - "$ref": "#/definitions/coreLiteral", - "description": "Defines a default value that has to match the variable type defined." - }, - "required": { - "type": "boolean", - "description": "+optional, is this value required to be filled." - }, - "artifact_query": { - "$ref": "#/definitions/coreArtifactQuery", - "description": "This is an execution time search basically that should result in exactly one Artifact with a Type that\nmatches the type of the variable." - }, - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - } - }, - "description": "A parameter is used as input to a launch plan and has\nthe special ability to have a default value or mark itself as required." - }, - "coreParameterMap": { - "type": "object", - "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreParameter" - }, - "description": "Defines a map of parameter names to parameters." - } - }, - "description": "A map of Parameters." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "corePromiseAttribute": { - "type": "object", - "properties": { - "string_value": { - "type": "string" - }, - "int_value": { - "type": "integer", - "format": "int32" - } - } - }, - "coreQualityOfService": { - "type": "object", - "properties": { - "tier": { - "$ref": "#/definitions/QualityOfServiceTier" - }, - "spec": { - "$ref": "#/definitions/coreQualityOfServiceSpec" - } - }, - "description": "Indicates the priority of an execution." - }, - "coreQualityOfServiceSpec": { - "type": "object", - "properties": { - "queueing_budget": { - "type": "string", - "description": "Indicates how much queueing delay an execution can tolerate." - } - }, - "description": "Represents customized execution run-time attributes." - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreResources": { - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "The desired set of resources requested. ResourceNames must be unique within the list." - }, - "limits": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." - } - }, - "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." - }, - "coreRetryStrategy": { - "type": "object", - "properties": { - "retries": { - "type": "integer", - "format": "int64", - "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." - } - }, - "description": "Retry strategy associated with an executable unit." - }, - "coreRuntimeMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/RuntimeMetadataRuntimeType", - "description": "Type of runtime." - }, - "version": { - "type": "string", - "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." - }, - "flavor": { - "type": "string", - "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." - } - }, - "description": "Runtime information. This is loosely defined to allow for extensibility." - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/flyteidlcoreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "type": "object" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSignalCondition": { - "type": "object", - "properties": { - "signal_id": { - "type": "string", - "description": "A unique identifier for the requested signal." - }, - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "A type denoting the required value type for this signal." - }, - "output_variable_name": { - "type": "string", - "description": "The variable name for the signal value in this nodes outputs." - } - }, - "description": "SignalCondition represents a dependency on an signal." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreSleepCondition": { - "type": "object", - "properties": { - "duration": { - "type": "string", - "description": "The overall duration for this sleep." - } - }, - "description": "SleepCondition represents a dependency on waiting for the specified duration." - }, - "coreSpan": { - "type": "object", - "properties": { - "start_time": { - "type": "string", - "format": "date-time", - "description": "start_time defines the instance this span began." - }, - "end_time": { - "type": "string", - "format": "date-time", - "description": "end_time defines the instance this span completed." - }, - "workflow_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "workflow_id is the id of the workflow execution this Span represents." - }, - "node_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "description": "node_id is the id of the node execution this Span represents." - }, - "task_id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "description": "task_id is the id of the task execution this Span represents." - }, - "operation_id": { - "type": "string", - "description": "operation_id is the id of a unique operation that this Span represents." - }, - "spans": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreSpan" - }, - "description": "spans defines a collection of Spans that breakdown this execution." - } - }, - "description": "Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation\nwhich uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more\nprecise definitions." - }, - "coreSql": { - "type": "object", - "properties": { - "statement": { - "type": "string", - "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - }, - "dialect": { - "$ref": "#/definitions/SqlDialect" - } - }, - "description": "Sql represents a generic sql workload with a statement and dialect." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTaskExecutionIdentifier": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier" - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier" - }, - "retry_attempt": { - "type": "integer", - "format": "int64" - } - }, - "description": "Encapsulation of fields that identify a Flyte task execution entity." - }, - "coreTaskExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDED", - "ABORTED", - "FAILED", - "INITIALIZING", - "WAITING_FOR_RESOURCES" - ], - "default": "UNDEFINED", - "title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" - }, - "coreTaskLog": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "name": { - "type": "string" - }, - "message_format": { - "$ref": "#/definitions/TaskLogMessageFormat" - }, - "ttl": { - "type": "string" - } - }, - "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" - }, - "coreTaskMetadata": { - "type": "object", - "properties": { - "discoverable": { - "type": "boolean", - "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." - }, - "runtime": { - "$ref": "#/definitions/coreRuntimeMetadata", - "description": "Runtime information about the task." - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task including user-triggered retries." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "discovery_version": { - "type": "string", - "description": "Indicates a logical version to apply to this task for the purpose of discovery." - }, - "deprecated_error_message": { - "type": "string", - "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." - }, - "interruptible": { - "type": "boolean" - }, - "cache_serializable": { - "type": "boolean", - "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" - }, - "generates_deck": { - "type": "boolean", - "description": "Indicates whether the task will generate a Deck URI when it finishes executing." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - }, - "pod_template_name": { - "type": "string", - "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - }, - "cache_ignore_input_vars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." - } - }, - "title": "Task Metadata" - }, - "coreTaskNode": { - "type": "object", - "properties": { - "reference_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the task." - }, - "overrides": { - "$ref": "#/definitions/coreTaskNodeOverrides", - "description": "Optional overrides applied at task execution time." - } - }, - "description": "Refers to the task that the Node is to execute." - }, - "coreTaskNodeOverrides": { - "type": "object", - "properties": { - "resources": { - "$ref": "#/definitions/coreResources", - "description": "A customizable interface to convey resources requested for a task container." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - } - }, - "description": "Optional task node overrides that will be applied at task execution time." - }, - "coreTaskTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." - }, - "type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." - }, - "metadata": { - "$ref": "#/definitions/coreTaskMetadata", - "description": "Extra metadata about the task." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." - }, - "custom": { - "type": "object", - "description": "Custom data about the task. This is extensible to allow various plugins in the system." - }, - "container": { - "$ref": "#/definitions/coreContainer" - }, - "k8s_pod": { - "$ref": "#/definitions/coreK8sPod" - }, - "sql": { - "$ref": "#/definitions/coreSql" - }, - "task_type_version": { - "type": "integer", - "format": "int32", - "description": "This can be used to customize task handling at execution time for the same task type." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "security_context encapsulates security attributes requested to run this task." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - }, - "config": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" - } - }, - "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." - }, - "coreTimePartition": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreTypedInterface": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreVariableMap" - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - }, - "description": "Defines strongly typed inputs and outputs." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionInfo": { - "type": "object", - "properties": { - "targetType": { - "$ref": "#/definitions/coreLiteralType" - } - } - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "coreWorkflowExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDING", - "SUCCEEDED", - "FAILING", - "FAILED", - "ABORTED", - "TIMED_OUT", - "ABORTING" - ], - "default": "UNDEFINED" - }, - "coreWorkflowMetadata": { - "type": "object", - "properties": { - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of workflow executions." - }, - "on_failure": { - "$ref": "#/definitions/WorkflowMetadataOnFailurePolicy", - "description": "Defines how the system should behave when a failure is detected in the workflow execution." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - } - }, - "description": "This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not\npercolate down to child entities (like tasks) launched by the workflow." - }, - "coreWorkflowMetadataDefaults": { - "type": "object", - "properties": { - "interruptible": { - "type": "boolean", - "description": "Whether child nodes of the workflow are interruptible." - } - }, - "description": "The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to\na workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it\nis only relevant when a task executes. The settings here are the defaults that are passed to all nodes\nunless explicitly overridden at the node layer.\nIf you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be\nadded to both this object and the WorkflowMetadata object above." - }, - "coreWorkflowNode": { - "type": "object", - "properties": { - "launchplan_ref": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the launch plan." - }, - "sub_workflow_ref": { - "$ref": "#/definitions/coreIdentifier", - "title": "Reference to a subworkflow, that should be defined with the compiler context" - } - }, - "description": "Refers to a the workflow the node is to execute." - }, - "coreWorkflowTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the workflow." - }, - "metadata": { - "$ref": "#/definitions/coreWorkflowMetadata", - "description": "Extra metadata about the workflow." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "Defines a strongly typed interface for the Workflow. This can include some optional parameters." - }, - "nodes": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreNode" - }, - "description": "A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs." - }, - "outputs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreBinding" - }, - "description": "A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or\nspecify literals. All workflow outputs specified in the interface field must be bound in order for the workflow\nto be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to\nbind final outputs.\nMost of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can\njust have an output of some constant (`Output(5)`), but usually, the workflow will be pulling\noutputs from the output of a task." - }, - "failure_node": { - "$ref": "#/definitions/coreNode", - "description": "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.\nThe interface of this node must match the Workflow interface with an additional input named 'error' of type\npb.lyft.flyte.core.Error." - }, - "metadata_defaults": { - "$ref": "#/definitions/coreWorkflowMetadataDefaults", - "title": "workflow defaults" - } - }, - "description": "Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,\ndirected acyclic graph." - }, - "eventEventReason": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "title": "An explanation for this event" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "title": "The time this reason occurred" - } - } - }, - "eventExternalResourceInfo": { - "type": "object", - "properties": { - "external_id": { - "type": "string", - "description": "Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids." - }, - "index": { - "type": "integer", - "format": "int64", - "description": "A unique index for the external resource with respect to all external resources for this task. Although the\nidentifier may change between task reporting events or retries, this will remain the same to enable aggregating\ninformation from multiple reports." - }, - "retry_attempt": { - "type": "integer", - "format": "int64", - "title": "Retry attempt number for this external resource, ie., 2 for the second attempt" - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "title": "Phase associated with the external resource" - }, - "cache_status": { - "$ref": "#/definitions/coreCatalogCacheStatus", - "description": "Captures the status of caching for this external resource execution." - }, - "logs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreTaskLog" - }, - "title": "log information for the external resource execution" - } - }, - "description": "This message contains metadata about external resources produced or used by a specific task execution." - }, - "eventNodeExecutionEvent": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "title": "Unique identifier for this node execution" - }, - "producer_id": { - "type": "string", - "title": "the id of the originator (Propeller) of the event" - }, - "phase": { - "$ref": "#/definitions/coreNodeExecutionPhase" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the node." - }, - "input_uri": { - "type": "string" - }, - "input_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw input data consumed by this node execution." - }, - "output_uri": { - "type": "string", - "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the execution" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this node execution." - }, - "workflow_node_metadata": { - "$ref": "#/definitions/flyteidleventWorkflowNodeMetadata" - }, - "task_node_metadata": { - "$ref": "#/definitions/flyteidleventTaskNodeMetadata" - }, - "parent_task_metadata": { - "$ref": "#/definitions/eventParentTaskExecutionMetadata", - "description": "[To be deprecated] Specifies which task (if any) launched this node." - }, - "parent_node_metadata": { - "$ref": "#/definitions/eventParentNodeExecutionMetadata", - "description": "Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node." - }, - "retry_group": { - "type": "string", - "title": "Retry group to indicate grouping of nodes by retries" - }, - "spec_node_id": { - "type": "string", - "title": "Identifier of the node in the original workflow/graph\nThis maps to value of WorkflowTemplate.nodes[X].id" - }, - "node_name": { - "type": "string", - "title": "Friendly readable name for the node" - }, - "event_version": { - "type": "integer", - "format": "int32" - }, - "is_parent": { - "type": "boolean", - "description": "Whether this node launched a subworkflow." - }, - "is_dynamic": { - "type": "boolean", - "description": "Whether this node yielded a dynamic workflow." - }, - "deck_uri": { - "type": "string", - "title": "String location uniquely identifying where the deck HTML file is\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" - }, - "reported_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents the instant when the event was reported by the executing framework. For example,\nwhen first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when\nliteral inputs are initially copied. The event however will not be sent until after the copy completes.\nExtracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series." - }, - "is_array": { - "type": "boolean", - "description": "Indicates if this node is an ArrayNode." - } - } - }, - "eventParentNodeExecutionMetadata": { - "type": "object", - "properties": { - "node_id": { - "type": "string", - "title": "Unique identifier of the parent node id within the execution\nThis is value of core.NodeExecutionIdentifier.node_id of the parent node" - } - } - }, - "eventParentTaskExecutionMetadata": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier" - } - } - }, - "eventResourcePoolInfo": { - "type": "object", - "properties": { - "allocation_token": { - "type": "string", - "description": "Unique resource ID used to identify this execution when allocating a token." - }, - "namespace": { - "type": "string", - "description": "Namespace under which this task execution requested an allocation token." - } - }, - "description": "This message holds task execution metadata specific to resource allocation used to manage concurrent\nexecutions for a project namespace." - }, - "eventTaskExecutionEvent": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "ID of the task. In combination with the retryAttempt this will indicate\nthe task execution uniquely for a given parent node execution." - }, - "parent_node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "title": "A task execution is always kicked off by a node execution, the event consumer\nwill use the parent_id to relate the task to it's parent node execution" - }, - "retry_attempt": { - "type": "integer", - "format": "int64", - "title": "retry attempt number for this task, ie., 2 for the second attempt" - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "title": "Phase associated with the event" - }, - "producer_id": { - "type": "string", - "title": "id of the process that sent this event, mainly for trace debugging" - }, - "logs": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreTaskLog" - }, - "title": "log information for the task execution" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the task." - }, - "input_uri": { - "type": "string", - "description": "URI of the input file, it encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "input_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw input data consumed by this task execution." - }, - "output_uri": { - "type": "string", - "description": "URI to the output of the execution, it will be in a format that encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the execution" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this task execution." - }, - "custom_info": { - "type": "object", - "description": "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system." - }, - "phase_version": { - "type": "integer", - "format": "int64", - "description": "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)\nthat should be recorded regardless of the lack of phase change.\nThe version field should be incremented when metadata changes across the duration of an individual phase." - }, - "reason": { - "type": "string", - "description": "An optional explanation for the phase transition.\nDeprecated: Use reasons instead." - }, - "reasons": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/eventEventReason" - }, - "description": "An optional list of explanations for the phase transition." - }, - "task_type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin\nthis type will be identical, but not all task executions necessarily use pre-registered definitions and this\ntype is useful to render the task in the UI, filter task executions, etc." - }, - "metadata": { - "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", - "description": "Metadata around how a task was executed." - }, - "event_version": { - "type": "integer", - "format": "int32", - "description": "The event version is used to indicate versioned changes in how data is reported using this\nproto message. For example, event_verison \u003e 0 means that maps tasks report logs using the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." - }, - "reported_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s\npod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,\nbut this event will not be reported until the pod is marked as completed. Extracting both of these timestamps\nfacilitates a more accurate portrayal of the evaluation time-series." - } - }, - "description": "Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob." - }, - "eventWorkflowExecutionEvent": { - "type": "object", - "properties": { - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "title": "Workflow execution id" - }, - "producer_id": { - "type": "string", - "title": "the id of the originator (Propeller) of the event" - }, - "phase": { - "$ref": "#/definitions/coreWorkflowExecutionPhase" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the workflow." - }, - "output_uri": { - "type": "string", - "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the execution" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this workflow execution." - } - } - }, - "flyteidladminDynamicWorkflowNodeMetadata": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the workflow." - }, - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure", - "description": "Represents the compiled representation of the embedded dynamic workflow." - }, - "dynamic_job_spec_uri": { - "type": "string", - "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the subworkflow has already been compiled." - } - }, - "description": "For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated." - }, - "flyteidladminNodeExecution": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "description": "Uniquely identifies an individual node execution." - }, - "input_uri": { - "type": "string", - "description": "Path to remote data store where input blob is stored." - }, - "closure": { - "$ref": "#/definitions/adminNodeExecutionClosure", - "description": "Computed results associated with this node execution." - }, - "metadata": { - "$ref": "#/definitions/adminNodeExecutionMetaData", - "title": "Metadata for Node Execution" - } - }, - "description": "Encapsulates all details for a single node execution entity.\nA node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow execution.\nThe same task can be called repeatedly in a single workflow but each node is unique." - }, - "flyteidladminTaskCreateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "title": "id represents the unique identifier of the task.\n+required" - }, - "spec": { - "$ref": "#/definitions/adminTaskSpec", - "title": "Represents the specification for task.\n+required" - } - }, - "title": "Represents a request structure to create a revision of a task.\nSee :ref:`ref_flyteidl.admin.Task` for more details" - }, - "flyteidladminTaskCreateResponse": { - "type": "object", - "description": "Represents a response structure if task creation succeeds.\n\nPurposefully empty, may be populated in the future." - }, - "flyteidladminTaskExecution": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "description": "Unique identifier for the task execution." - }, - "input_uri": { - "type": "string", - "description": "Path to remote data store where input blob is stored." - }, - "closure": { - "$ref": "#/definitions/adminTaskExecutionClosure", - "description": "Task execution details and results." - }, - "is_parent": { - "type": "boolean", - "description": "Whether this task spawned nodes." - } - }, - "description": "Encapsulates all details for a single task execution entity.\nA task execution represents an instantiated task, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes." - }, - "flyteidladminTaskNodeMetadata": { - "type": "object", - "properties": { - "cache_status": { - "$ref": "#/definitions/coreCatalogCacheStatus", - "description": "Captures the status of caching for this execution." - }, - "catalog_key": { - "$ref": "#/definitions/coreCatalogMetadata", - "title": "This structure carries the catalog artifact information" - }, - "checkpoint_uri": { - "type": "string", - "title": "The latest checkpoint location" - } - }, - "title": "Metadata for the case in which the node is a TaskNode" - }, - "flyteidladminWorkflowClosure": { - "type": "object", - "properties": { - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure", - "description": "Represents the compiled representation of the workflow from the specification provided." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the workflow was created." - } - }, - "description": "A container holding the compiled workflow produced from the WorkflowSpec and additional metadata." - }, - "flyteidladminWorkflowNodeMetadata": { - "type": "object", - "properties": { - "executionId": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "The identifier for a workflow execution launched by a node." - } - }, - "title": "Metadata for a WorkflowNode" - }, - "flyteidlcoreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "flyteidlcoreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "flyteidlcoreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "flyteidleventDynamicWorkflowNodeMetadata": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the workflow." - }, - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure", - "description": "Represents the compiled representation of the embedded dynamic workflow." - }, - "dynamic_job_spec_uri": { - "type": "string", - "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the workflow has already been compiled." - } - }, - "description": "For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated." - }, - "flyteidleventTaskExecutionMetadata": { - "type": "object", - "properties": { - "generated_name": { - "type": "string", - "description": "Unique, generated name for this task execution used by the backend." - }, - "external_resources": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/eventExternalResourceInfo" - }, - "description": "Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution." - }, - "resource_pool_info": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/eventResourcePoolInfo" - }, - "description": "Includes additional data on concurrent resource management used during execution..\nThis is a repeated field because a plugin can request multiple resource allocations during execution." - }, - "plugin_identifier": { - "type": "string", - "description": "The identifier of the plugin used to execute this task." - }, - "instance_class": { - "$ref": "#/definitions/TaskExecutionMetadataInstanceClass" - } - }, - "description": "Holds metadata around how a task was executed.\nAs a task transitions across event phases during execution some attributes, such its generated name, generated external resources,\nand more may grow in size but not change necessarily based on the phase transition that sparked the event update.\nMetadata is a container for these attributes across the task execution lifecycle." - }, - "flyteidleventTaskNodeMetadata": { - "type": "object", - "properties": { - "cache_status": { - "$ref": "#/definitions/coreCatalogCacheStatus", - "description": "Captures the status of caching for this execution." - }, - "catalog_key": { - "$ref": "#/definitions/coreCatalogMetadata", - "title": "This structure carries the catalog artifact information" - }, - "reservation_status": { - "$ref": "#/definitions/coreCatalogReservationStatus", - "description": "Captures the status of cache reservations for this execution." - }, - "checkpoint_uri": { - "type": "string", - "title": "The latest checkpoint location" - }, - "dynamic_workflow": { - "$ref": "#/definitions/flyteidleventDynamicWorkflowNodeMetadata", - "description": "In the case this task launched a dynamic workflow we capture its structure here." - } - } - }, - "flyteidleventWorkflowNodeMetadata": { - "type": "object", - "properties": { - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "title": "For Workflow Nodes we need to send information about the workflow that's launched" - }, - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go deleted file mode 100644 index 2256d6f411..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go +++ /dev/null @@ -1,1110 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/agent.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - extAdmin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -func request_SyncAgentService_ExecuteTaskSync_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.SyncAgentService_ExecuteTaskSyncClient, runtime.ServerMetadata, error) { - var metadata runtime.ServerMetadata - stream, err := client.ExecuteTaskSync(ctx) - if err != nil { - grpclog.Infof("Failed to start streaming: %v", err) - return nil, metadata, err - } - dec := marshaler.NewDecoder(req.Body) - handleSend := func() error { - var protoReq extAdmin.ExecuteTaskSyncRequest - err := dec.Decode(&protoReq) - if err == io.EOF { - return err - } - if err != nil { - grpclog.Infof("Failed to decode request: %v", err) - return err - } - if err := stream.Send(&protoReq); err != nil { - grpclog.Infof("Failed to send request: %v", err) - return err - } - return nil - } - go func() { - for { - if err := handleSend(); err != nil { - break - } - } - if err := stream.CloseSend(); err != nil { - grpclog.Infof("Failed to terminate client stream: %v", err) - } - }() - header, err := stream.Header() - if err != nil { - grpclog.Infof("Failed to get header from client: %v", err) - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil -} - -func request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.CreateTaskRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.CreateTaskRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateTask(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AsyncAgentService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} -) - -func request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetTaskRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetTaskRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTask(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AsyncAgentService_DeleteTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} -) - -func request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.DeleteTaskRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_DeleteTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.DeleteTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.DeleteTaskRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_DeleteTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.DeleteTask(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AsyncAgentService_GetTaskMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} -) - -func request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetTaskMetricsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskMetrics_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTaskMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetTaskMetricsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskMetrics_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetTaskMetrics(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AsyncAgentService_GetTaskLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} -) - -func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.AsyncAgentService_GetTaskLogsClient, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetTaskLogsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_type.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) - } - - val, ok = pathParams["task_type.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) - } - - val, ok = pathParams["resource_meta"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") - } - - protoReq.ResourceMeta, err = runtime.Bytes(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskLogs_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - stream, err := client.GetTaskLogs(ctx, &protoReq) - if err != nil { - return nil, metadata, err - } - header, err := stream.Header() - if err != nil { - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil - -} - -func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetAgentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AgentMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.GetAgentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := server.GetAgent(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AgentMetadataService_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ListAgentsRequest - var metadata runtime.ServerMetadata - - msg, err := client.ListAgents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AgentMetadataService_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AgentMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.ListAgentsRequest - var metadata runtime.ServerMetadata - - msg, err := server.ListAgents(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterSyncAgentServiceHandlerServer registers the http handlers for service SyncAgentService to "mux". -// UnaryRPC :call SyncAgentServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSyncAgentServiceHandlerFromEndpoint instead. -func RegisterSyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.SyncAgentServiceServer) error { - - mux.Handle("POST", pattern_SyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - - return nil -} - -// RegisterAsyncAgentServiceHandlerServer registers the http handlers for service AsyncAgentService to "mux". -// UnaryRPC :call AsyncAgentServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAsyncAgentServiceHandlerFromEndpoint instead. -func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AsyncAgentServiceServer) error { - - mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/agent/task")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AsyncAgentService_CreateTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AsyncAgentService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AsyncAgentService_GetTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AsyncAgentService_DeleteTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AsyncAgentService_DeleteTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_DeleteTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AsyncAgentService_GetTaskMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AsyncAgentService_GetTaskMetrics_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_GetTaskMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AsyncAgentService_GetTaskLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - - return nil -} - -// RegisterAgentMetadataServiceHandlerServer registers the http handlers for service AgentMetadataService to "mux". -// UnaryRPC :call AgentMetadataServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentMetadataServiceHandlerFromEndpoint instead. -func RegisterAgentMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AgentMetadataServiceServer) error { - - mux.Handle("GET", pattern_AgentMetadataService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentMetadataService_GetAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentMetadataService_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AgentMetadataService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/ListAgents", runtime.WithHTTPPathPattern("/api/v1/agents")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AgentMetadataService_ListAgents_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentMetadataService_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterSyncAgentServiceHandlerFromEndpoint is same as RegisterSyncAgentServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterSyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterSyncAgentServiceHandler(ctx, mux, conn) -} - -// RegisterSyncAgentServiceHandler registers the http handlers for service SyncAgentService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterSyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterSyncAgentServiceHandlerClient(ctx, mux, extService.NewSyncAgentServiceClient(conn)) -} - -// RegisterSyncAgentServiceHandlerClient registers the http handlers for service SyncAgentService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.SyncAgentServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.SyncAgentServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.SyncAgentServiceClient" to call the correct interceptors. -func RegisterSyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.SyncAgentServiceClient) error { - - mux.Handle("POST", pattern_SyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SyncAgentService/ExecuteTaskSync", runtime.WithHTTPPathPattern("/api/v1/agent/task/stream")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SyncAgentService_ExecuteTaskSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SyncAgentService_ExecuteTaskSync_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_SyncAgentService_ExecuteTaskSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "agent", "task", "stream"}, "")) -) - -var ( - forward_SyncAgentService_ExecuteTaskSync_0 = runtime.ForwardResponseStream -) - -// RegisterAsyncAgentServiceHandlerFromEndpoint is same as RegisterAsyncAgentServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAsyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAsyncAgentServiceHandler(ctx, mux, conn) -} - -// RegisterAsyncAgentServiceHandler registers the http handlers for service AsyncAgentService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAsyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAsyncAgentServiceHandlerClient(ctx, mux, extService.NewAsyncAgentServiceClient(conn)) -} - -// RegisterAsyncAgentServiceHandlerClient registers the http handlers for service AsyncAgentService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AsyncAgentServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AsyncAgentServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.AsyncAgentServiceClient" to call the correct interceptors. -func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AsyncAgentServiceClient) error { - - mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/agent/task")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AsyncAgentService_CreateTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AsyncAgentService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AsyncAgentService_GetTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AsyncAgentService_DeleteTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AsyncAgentService_DeleteTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_DeleteTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AsyncAgentService_GetTaskMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AsyncAgentService_GetTaskMetrics_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_GetTaskMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AsyncAgentService_GetTaskLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskLogs", runtime.WithHTTPPathPattern("/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AsyncAgentService_GetTaskLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AsyncAgentService_GetTaskLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AsyncAgentService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "agent", "task"}, "")) - - pattern_AsyncAgentService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task", "task_type.name", "task_type.version", "resource_meta"}, "")) - - pattern_AsyncAgentService_DeleteTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task_executions", "task_type.name", "task_type.version", "resource_meta"}, "")) - - pattern_AsyncAgentService_GetTaskMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "metrics", "task_type.name", "task_type.version", "resource_meta"}, "")) - - pattern_AsyncAgentService_GetTaskLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "logs", "task_type.name", "task_type.version", "resource_meta"}, "")) -) - -var ( - forward_AsyncAgentService_CreateTask_0 = runtime.ForwardResponseMessage - - forward_AsyncAgentService_GetTask_0 = runtime.ForwardResponseMessage - - forward_AsyncAgentService_DeleteTask_0 = runtime.ForwardResponseMessage - - forward_AsyncAgentService_GetTaskMetrics_0 = runtime.ForwardResponseMessage - - forward_AsyncAgentService_GetTaskLogs_0 = runtime.ForwardResponseStream -) - -// RegisterAgentMetadataServiceHandlerFromEndpoint is same as RegisterAgentMetadataServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAgentMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAgentMetadataServiceHandler(ctx, mux, conn) -} - -// RegisterAgentMetadataServiceHandler registers the http handlers for service AgentMetadataService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAgentMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAgentMetadataServiceHandlerClient(ctx, mux, extService.NewAgentMetadataServiceClient(conn)) -} - -// RegisterAgentMetadataServiceHandlerClient registers the http handlers for service AgentMetadataService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AgentMetadataServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AgentMetadataServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.AgentMetadataServiceClient" to call the correct interceptors. -func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AgentMetadataServiceClient) error { - - mux.Handle("GET", pattern_AgentMetadataService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AgentMetadataService_GetAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentMetadataService_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AgentMetadataService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/ListAgents", runtime.WithHTTPPathPattern("/api/v1/agents")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AgentMetadataService_ListAgents_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentMetadataService_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "agent", "name"}, "")) - - pattern_AgentMetadataService_ListAgents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "agents"}, "")) -) - -var ( - forward_AgentMetadataService_GetAgent_0 = runtime.ForwardResponseMessage - - forward_AgentMetadataService_ListAgents_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json deleted file mode 100644 index d9c5f9ffd8..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ /dev/null @@ -1,2117 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/agent.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "SyncAgentService" - }, - { - "name": "AsyncAgentService" - }, - { - "name": "AgentMetadataService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/agent/task": { - "post": { - "summary": "CreateTask sends a task create request to the agent service.", - "operationId": "AsyncAgentService_CreateTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminCreateTaskResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Represents a request structure to create task.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminCreateTaskRequest" - } - } - ], - "tags": [ - "AsyncAgentService" - ] - } - }, - "/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}": { - "get": { - "summary": "GetTaskLogs returns task execution logs, if available.", - "operationId": "AsyncAgentService_GetTaskLogs", - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/adminGetTaskLogsResponse" - }, - "error": { - "$ref": "#/definitions/googlerpcStatus" - } - }, - "title": "Stream result of adminGetTaskLogsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "task_type.name", - "description": "The name of the task type.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_type.version", - "description": "The version of the task type.", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "resource_meta", - "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).", - "in": "path", - "required": true, - "type": "string", - "format": "byte" - }, - { - "name": "deprecated_task_type", - "description": "A predefined yet extensible Task type identifier.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "lines", - "description": "Number of lines to return.", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AsyncAgentService" - ] - } - }, - "/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}": { - "get": { - "summary": "GetTaskMetrics returns one or more task execution metrics, if available.", - "description": "Errors include\n * OutOfRange if metrics are not available for the specified task time range\n * various other errors", - "operationId": "AsyncAgentService_GetTaskMetrics", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminGetTaskMetricsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "task_type.name", - "description": "The name of the task type.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_type.version", - "description": "The version of the task type.", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "resource_meta", - "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).", - "in": "path", - "required": true, - "type": "string", - "format": "byte" - }, - { - "name": "deprecated_task_type", - "description": "A predefined yet extensible Task type identifier.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "queries", - "description": "The metrics to query. If empty, will return a default set of metrics.\ne.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG", - "in": "query", - "required": false, - "type": "array", - "items": { - "type": "string" - }, - "collectionFormat": "multi" - }, - { - "name": "start_time", - "description": "Start timestamp, inclusive.", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "end_time", - "description": "End timestamp, inclusive..", - "in": "query", - "required": false, - "type": "string", - "format": "date-time" - }, - { - "name": "step", - "description": "Query resolution step width in duration format or float number of seconds.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AsyncAgentService" - ] - } - }, - "/api/v1/agent/task/stream": { - "post": { - "summary": "ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.", - "operationId": "SyncAgentService_ExecuteTaskSync", - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/adminExecuteTaskSyncResponse" - }, - "error": { - "$ref": "#/definitions/googlerpcStatus" - } - }, - "title": "Stream result of adminExecuteTaskSyncResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": " (streaming inputs)", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecuteTaskSyncRequest" - } - } - ], - "tags": [ - "SyncAgentService" - ] - } - }, - "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}": { - "get": { - "summary": "Get job status.", - "operationId": "AsyncAgentService_GetTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminGetTaskResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "task_type.name", - "description": "The name of the task type.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_type.version", - "description": "The version of the task type.", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "resource_meta", - "description": "Metadata about the resource to be pass to the agent.", - "in": "path", - "required": true, - "type": "string", - "format": "byte" - }, - { - "name": "deprecated_task_type", - "description": "A predefined yet extensible Task type identifier.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AsyncAgentService" - ] - } - }, - "/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}": { - "delete": { - "summary": "Delete the task resource.", - "operationId": "AsyncAgentService_DeleteTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDeleteTaskResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "task_type.name", - "description": "The name of the task type.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_type.version", - "description": "The version of the task type.", - "in": "path", - "required": true, - "type": "integer", - "format": "int32" - }, - { - "name": "resource_meta", - "description": "Metadata about the resource to be pass to the agent.", - "in": "path", - "required": true, - "type": "string", - "format": "byte" - }, - { - "name": "deprecated_task_type", - "description": "A predefined yet extensible Task type identifier.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AsyncAgentService" - ] - } - }, - "/api/v1/agent/{name}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Agent` definition.", - "operationId": "AgentMetadataService_GetAgent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminGetAgentResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "name", - "description": "The name of the agent.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AgentMetadataService" - ] - } - }, - "/api/v1/agents": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions.", - "operationId": "AgentMetadataService_ListAgents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListAgentsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "tags": [ - "AgentMetadataService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "ContainerArchitecture": { - "type": "string", - "enum": [ - "UNKNOWN", - "AMD64", - "ARM64", - "ARM_V6", - "ARM_V7" - ], - "default": "UNKNOWN", - "description": "Architecture-type the container image supports." - }, - "DataLoadingConfigLiteralMapFormat": { - "type": "string", - "enum": [ - "JSON", - "YAML", - "PROTO" - ], - "default": "JSON", - "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", - "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" - }, - "IOStrategyDownloadMode": { - "type": "string", - "enum": [ - "DOWNLOAD_EAGER", - "DOWNLOAD_STREAM", - "DO_NOT_DOWNLOAD" - ], - "default": "DOWNLOAD_EAGER", - "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", - "title": "Mode to use for downloading" - }, - "IOStrategyUploadMode": { - "type": "string", - "enum": [ - "UPLOAD_ON_EXIT", - "UPLOAD_EAGER", - "DO_NOT_UPLOAD" - ], - "default": "UPLOAD_ON_EXIT", - "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", - "title": "Mode to use for uploading" - }, - "ResourcesResourceEntry": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/ResourcesResourceName", - "description": "Resource name." - }, - "value": { - "type": "string", - "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - } - }, - "description": "Encapsulates a resource name and value." - }, - "ResourcesResourceName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU", - "GPU", - "MEMORY", - "STORAGE", - "EPHEMERAL_STORAGE" - ], - "default": "UNKNOWN", - "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." - }, - "RuntimeMetadataRuntimeType": { - "type": "string", - "enum": [ - "OTHER", - "FLYTE_SDK" - ], - "default": "OTHER" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "SqlDialect": { - "type": "string", - "enum": [ - "UNDEFINED", - "ANSI", - "HIVE", - "OTHER" - ], - "default": "UNDEFINED", - "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "TaskLogMessageFormat": { - "type": "string", - "enum": [ - "UNKNOWN", - "CSV", - "JSON" - ], - "default": "UNKNOWN" - }, - "adminAgent": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name is the developer-assigned name of the agent." - }, - "deprecated_supported_task_types": { - "type": "array", - "items": { - "type": "string" - }, - "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." - }, - "is_sync": { - "type": "boolean", - "description": "IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their\nresults synchronously when called by propeller. Given that sync agents can affect the performance\nof the system, it's important to enforce strict timeout policies.\nAn Async agent, on the other hand, is required to be able to identify jobs by an\nidentifier and query for job statuses as jobs progress." - }, - "supported_task_types": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminTaskType" - }, - "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." - } - }, - "description": "A message containing the agent metadata." - }, - "adminCreateRequestHeader": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreTaskTemplate", - "description": "Template of the task that encapsulates all the metadata of the task." - }, - "output_prefix": { - "type": "string", - "title": "Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)" - }, - "task_execution_metadata": { - "$ref": "#/definitions/flyteidladminTaskExecutionMetadata", - "description": "subset of runtime task execution metadata." - }, - "max_dataset_size_bytes": { - "type": "string", - "format": "int64", - "description": "MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task." - } - } - }, - "adminCreateTaskRequest": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" - }, - "template": { - "$ref": "#/definitions/coreTaskTemplate", - "description": "Template of the task that encapsulates all the metadata of the task." - }, - "output_prefix": { - "type": "string", - "title": "Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)" - }, - "task_execution_metadata": { - "$ref": "#/definitions/flyteidladminTaskExecutionMetadata", - "description": "subset of runtime task execution metadata." - } - }, - "description": "Represents a request structure to create task." - }, - "adminCreateTaskResponse": { - "type": "object", - "properties": { - "resource_meta": { - "type": "string", - "format": "byte", - "description": "ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata)." - } - }, - "description": "Represents a create response structure." - }, - "adminDeleteTaskResponse": { - "type": "object", - "description": "Response to delete a task." - }, - "adminExecuteTaskSyncRequest": { - "type": "object", - "properties": { - "header": { - "$ref": "#/definitions/adminCreateRequestHeader" - }, - "inputs": { - "$ref": "#/definitions/coreLiteralMap" - } - } - }, - "adminExecuteTaskSyncResponse": { - "type": "object", - "properties": { - "header": { - "$ref": "#/definitions/adminExecuteTaskSyncResponseHeader" - }, - "outputs": { - "$ref": "#/definitions/coreLiteralMap" - } - } - }, - "adminExecuteTaskSyncResponseHeader": { - "type": "object", - "properties": { - "resource": { - "$ref": "#/definitions/adminResource" - } - } - }, - "adminGetAgentResponse": { - "type": "object", - "properties": { - "agent": { - "$ref": "#/definitions/adminAgent" - } - }, - "description": "A response containing an agent." - }, - "adminGetTaskLogsResponse": { - "type": "object", - "properties": { - "header": { - "$ref": "#/definitions/adminGetTaskLogsResponseHeader" - }, - "body": { - "$ref": "#/definitions/adminGetTaskLogsResponseBody" - } - }, - "description": "A response containing the logs for a task execution." - }, - "adminGetTaskLogsResponseBody": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "type": "string" - }, - "description": "The execution log results." - } - } - }, - "adminGetTaskLogsResponseHeader": { - "type": "object", - "properties": { - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - } - }, - "adminGetTaskMetricsResponse": { - "type": "object", - "properties": { - "results": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreExecutionMetricResult" - }, - "description": "The execution metric results." - } - }, - "description": "A response containing a list of metrics for a task execution." - }, - "adminGetTaskResponse": { - "type": "object", - "properties": { - "resource": { - "$ref": "#/definitions/adminResource" - } - }, - "description": "Response to get an individual task resource." - }, - "adminListAgentsResponse": { - "type": "object", - "properties": { - "agents": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminAgent" - } - } - }, - "description": "A response containing a list of agents." - }, - "adminResource": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/flyteidladminState", - "description": "DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI." - }, - "outputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The outputs of the execution. It's typically used by sql task. Agent service will create a\nStructured dataset pointing to the query result table.\n+optional" - }, - "message": { - "type": "string", - "description": "A descriptive message for the current state. e.g. waiting for cluster." - }, - "log_links": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreTaskLog" - }, - "description": "log information for the task execution." - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "description": "The phase of the execution is used to determine the phase of the plugin's execution." - } - } - }, - "adminTaskType": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "The name of the task type." - }, - "version": { - "type": "integer", - "format": "int32", - "description": "The version of the task type." - } - } - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string" - }, - "bind_to_time_partition": { - "type": "boolean" - }, - "transform": { - "type": "string", - "title": "This is only relevant in the time partition case" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions", - "description": "Think of a partition as a tag on an Artifact, except it's a key-value pair.\nDifferent partitions naturally have different versions (execution ids)." - }, - "time_partition": { - "$ref": "#/definitions/coreTimePartition", - "description": "There is no such thing as an empty time partition - if it's not set, then there is no time partition." - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - }, - "org": { - "type": "string" - } - } - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreContainer": { - "type": "object", - "properties": { - "image": { - "type": "string", - "title": "Container image url. Eg: docker/redis:latest" - }, - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." - }, - "resources": { - "$ref": "#/definitions/coreResources", - "description": "Container resources requirement as specified by the container engine." - }, - "env": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Environment variables will be set as the container is starting up." - }, - "config": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." - }, - "ports": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreContainerPort" - }, - "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - }, - "architecture": { - "$ref": "#/definitions/ContainerArchitecture" - } - } - }, - "coreContainerPort": { - "type": "object", - "properties": { - "container_port": { - "type": "integer", - "format": "int64", - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." - } - }, - "description": "Defines port properties for a container." - }, - "coreDataLoadingConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" - }, - "input_path": { - "type": "string", - "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" - }, - "output_path": { - "type": "string", - "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" - }, - "format": { - "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", - "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" - }, - "io_strategy": { - "$ref": "#/definitions/coreIOStrategy" - } - }, - "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreExecutionMetricResult": { - "type": "object", - "properties": { - "metric": { - "type": "string", - "description": "The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG." - }, - "data": { - "type": "object", - "title": "The result data in prometheus range query result format\nhttps://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.\nThis may include multiple time series, differentiated by their metric labels.\nStart time is greater of (execution attempt start, 48h ago)\nEnd time is lesser of (execution attempt end, now)" - } - }, - "description": "ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task." - }, - "coreExtendedResources": { - "type": "object", - "properties": { - "gpu_accelerator": { - "$ref": "#/definitions/coreGPUAccelerator", - "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." - } - }, - "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." - }, - "coreGPUAccelerator": { - "type": "object", - "properties": { - "device": { - "type": "string", - "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." - }, - "unpartitioned": { - "type": "boolean" - }, - "partition_size": { - "type": "string", - "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." - } - }, - "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." - }, - "coreIOStrategy": { - "type": "object", - "properties": { - "download_mode": { - "$ref": "#/definitions/IOStrategyDownloadMode", - "title": "Mode to use to manage downloads" - }, - "upload_mode": { - "$ref": "#/definitions/IOStrategyUploadMode", - "title": "Mode to use to manage uploads" - } - }, - "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreK8sObjectMetadata": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional labels to add to the pod definition." - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional annotations to add to the pod definition." - } - }, - "description": "Metadata for building a kubernetes object when a task is executed." - }, - "coreK8sPod": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreK8sObjectMetadata", - "description": "Contains additional metadata for building a kubernetes pod." - }, - "pod_spec": { - "type": "object", - "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - } - }, - "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string", - "title": "The string static value is for use in the Partitions object" - }, - "time_value": { - "type": "string", - "format": "date-time", - "title": "The time value is for use in the TimePartition case" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/flyteidlcoreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "type": "object", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreResources": { - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "The desired set of resources requested. ResourceNames must be unique within the list." - }, - "limits": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." - } - }, - "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." - }, - "coreRetryStrategy": { - "type": "object", - "properties": { - "retries": { - "type": "integer", - "format": "int64", - "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." - } - }, - "description": "Retry strategy associated with an executable unit." - }, - "coreRuntimeMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/RuntimeMetadataRuntimeType", - "description": "Type of runtime." - }, - "version": { - "type": "string", - "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." - }, - "flavor": { - "type": "string", - "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." - } - }, - "description": "Runtime information. This is loosely defined to allow for extensibility." - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/flyteidlcoreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "type": "object" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreSql": { - "type": "object", - "properties": { - "statement": { - "type": "string", - "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - }, - "dialect": { - "$ref": "#/definitions/SqlDialect" - } - }, - "description": "Sql represents a generic sql workload with a statement and dialect." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTaskExecutionIdentifier": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier" - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier" - }, - "retry_attempt": { - "type": "integer", - "format": "int64" - } - }, - "description": "Encapsulation of fields that identify a Flyte task execution entity." - }, - "coreTaskExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDED", - "ABORTED", - "FAILED", - "INITIALIZING", - "WAITING_FOR_RESOURCES" - ], - "default": "UNDEFINED", - "title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" - }, - "coreTaskLog": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "name": { - "type": "string" - }, - "message_format": { - "$ref": "#/definitions/TaskLogMessageFormat" - }, - "ttl": { - "type": "string" - } - }, - "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" - }, - "coreTaskMetadata": { - "type": "object", - "properties": { - "discoverable": { - "type": "boolean", - "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." - }, - "runtime": { - "$ref": "#/definitions/coreRuntimeMetadata", - "description": "Runtime information about the task." - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task including user-triggered retries." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "discovery_version": { - "type": "string", - "description": "Indicates a logical version to apply to this task for the purpose of discovery." - }, - "deprecated_error_message": { - "type": "string", - "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." - }, - "interruptible": { - "type": "boolean" - }, - "cache_serializable": { - "type": "boolean", - "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" - }, - "generates_deck": { - "type": "boolean", - "description": "Indicates whether the task will generate a Deck URI when it finishes executing." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - }, - "pod_template_name": { - "type": "string", - "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - }, - "cache_ignore_input_vars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." - } - }, - "title": "Task Metadata" - }, - "coreTaskNodeOverrides": { - "type": "object", - "properties": { - "resources": { - "$ref": "#/definitions/coreResources", - "description": "A customizable interface to convey resources requested for a task container." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - } - }, - "description": "Optional task node overrides that will be applied at task execution time." - }, - "coreTaskTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." - }, - "type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." - }, - "metadata": { - "$ref": "#/definitions/coreTaskMetadata", - "description": "Extra metadata about the task." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." - }, - "custom": { - "type": "object", - "description": "Custom data about the task. This is extensible to allow various plugins in the system." - }, - "container": { - "$ref": "#/definitions/coreContainer" - }, - "k8s_pod": { - "$ref": "#/definitions/coreK8sPod" - }, - "sql": { - "$ref": "#/definitions/coreSql" - }, - "task_type_version": { - "type": "integer", - "format": "int32", - "description": "This can be used to customize task handling at execution time for the same task type." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "security_context encapsulates security attributes requested to run this task." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - }, - "config": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" - } - }, - "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." - }, - "coreTimePartition": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreTypedInterface": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreVariableMap" - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - }, - "description": "Defines strongly typed inputs and outputs." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "flyteidladminState": { - "type": "string", - "enum": [ - "RETRYABLE_FAILURE", - "PERMANENT_FAILURE", - "PENDING", - "RUNNING", - "SUCCEEDED" - ], - "default": "RETRYABLE_FAILURE", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "flyteidladminTaskExecutionMetadata": { - "type": "object", - "properties": { - "task_execution_id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "title": "ID of the task execution" - }, - "namespace": { - "type": "string", - "title": "k8s namespace where the task is executed in" - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Labels attached to the task execution" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Annotations attached to the task execution" - }, - "k8s_service_account": { - "type": "string", - "title": "k8s service account associated with the task execution" - }, - "environment_variables": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Environment variables attached to the task execution" - }, - "max_attempts": { - "type": "integer", - "format": "int32" - }, - "interruptible": { - "type": "boolean" - }, - "interruptible_failure_threshold": { - "type": "integer", - "format": "int32" - }, - "overrides": { - "$ref": "#/definitions/coreTaskNodeOverrides" - } - }, - "description": "Represents a subset of runtime task execution metadata that are relevant to external plugins." - }, - "flyteidlcoreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "flyteidlcoreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "flyteidlcoreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go deleted file mode 100644 index 9220cc3e68..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/auth.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -func request_AuthMetadataService_GetOAuth2Metadata_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.OAuth2MetadataRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetOAuth2Metadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthMetadataService_GetOAuth2Metadata_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AuthMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.OAuth2MetadataRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetOAuth2Metadata(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthMetadataService_GetPublicClientConfig_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.PublicClientAuthConfigRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetPublicClientConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthMetadataService_GetPublicClientConfig_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AuthMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.PublicClientAuthConfigRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetPublicClientConfig(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterAuthMetadataServiceHandlerServer registers the http handlers for service AuthMetadataService to "mux". -// UnaryRPC :call AuthMetadataServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthMetadataServiceHandlerFromEndpoint instead. -func RegisterAuthMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AuthMetadataServiceServer) error { - - mux.Handle("GET", pattern_AuthMetadataService_GetOAuth2Metadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", runtime.WithHTTPPathPattern("/.well-known/oauth-authorization-server")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthMetadataService_GetPublicClientConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", runtime.WithHTTPPathPattern("/config/v1/flyte_client")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterAuthMetadataServiceHandlerFromEndpoint is same as RegisterAuthMetadataServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAuthMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAuthMetadataServiceHandler(ctx, mux, conn) -} - -// RegisterAuthMetadataServiceHandler registers the http handlers for service AuthMetadataService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAuthMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAuthMetadataServiceHandlerClient(ctx, mux, extService.NewAuthMetadataServiceClient(conn)) -} - -// RegisterAuthMetadataServiceHandlerClient registers the http handlers for service AuthMetadataService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AuthMetadataServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AuthMetadataServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.AuthMetadataServiceClient" to call the correct interceptors. -func RegisterAuthMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AuthMetadataServiceClient) error { - - mux.Handle("GET", pattern_AuthMetadataService_GetOAuth2Metadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", runtime.WithHTTPPathPattern("/.well-known/oauth-authorization-server")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthMetadataService_GetPublicClientConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", runtime.WithHTTPPathPattern("/config/v1/flyte_client")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AuthMetadataService_GetOAuth2Metadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{".well-known", "oauth-authorization-server"}, "")) - - pattern_AuthMetadataService_GetPublicClientConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"config", "v1", "flyte_client"}, "")) -) - -var ( - forward_AuthMetadataService_GetOAuth2Metadata_0 = runtime.ForwardResponseMessage - - forward_AuthMetadataService_GetPublicClientConfig_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json deleted file mode 100644 index 1114b7c73f..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/auth.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "AuthMetadataService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/.well-known/oauth-authorization-server": { - "get": { - "summary": "Anonymously accessible. Retrieves local or external oauth authorization server metadata.", - "description": "Retrieves OAuth2 authorization server metadata. This endpoint is anonymously accessible.", - "operationId": "AuthMetadataService_GetOAuth2Metadata", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceOAuth2MetadataResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "tags": [ - "AuthMetadataService" - ] - } - }, - "/config/v1/flyte_client": { - "get": { - "summary": "Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization\nrequests.", - "description": "Retrieves public flyte client info. This endpoint is anonymously accessible.", - "operationId": "AuthMetadataService_GetPublicClientConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/servicePublicClientAuthConfigResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "tags": [ - "AuthMetadataService" - ] - } - } - }, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "serviceOAuth2MetadataResponse": { - "type": "object", - "properties": { - "issuer": { - "type": "string", - "description": "Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external\nissuer." - }, - "authorization_endpoint": { - "type": "string", - "description": "URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are\nsupported that use the authorization endpoint." - }, - "token_endpoint": { - "type": "string", - "description": "URL of the authorization server's token endpoint [RFC6749]." - }, - "response_types_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array containing a list of the OAuth 2.0 response_type values that this authorization server supports." - }, - "scopes_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports." - }, - "token_endpoint_auth_methods_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of client authentication methods supported by this token endpoint." - }, - "jwks_uri": { - "type": "string", - "description": "URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the\nclient uses to validate signatures from the authorization server." - }, - "code_challenge_methods_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by\nthis authorization server." - }, - "grant_types_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports." - }, - "device_authorization_endpoint": { - "type": "string", - "title": "URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]" - } - }, - "title": "OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata\nas defined in https://tools.ietf.org/html/rfc8414" - }, - "servicePublicClientAuthConfigResponse": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "description": "client_id to use when initiating OAuth2 authorization requests." - }, - "redirect_uri": { - "type": "string", - "description": "redirect uri to use when initiating OAuth2 authorization requests." - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "scopes to request when initiating OAuth2 authorization requests." - }, - "authorization_metadata_key": { - "type": "string", - "description": "Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the\ndefault http `Authorization` header." - }, - "service_http_endpoint": { - "type": "string", - "description": "ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used\nto configure the gRPC connection can be used for the http one respecting the insecure flag to choose between\nSSL or no SSL connections." - }, - "audience": { - "type": "string", - "description": "audience to use when initiating OAuth2 authorization requests." - } - }, - "description": "FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users." - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go deleted file mode 100644 index 37c447ad9a..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go +++ /dev/null @@ -1,431 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/dataproxy.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -func request_DataProxyService_CreateUploadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.CreateUploadLocationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateUploadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_DataProxyService_CreateUploadLocation_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.CreateUploadLocationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateUploadLocation(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_DataProxyService_CreateDownloadLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_DataProxyService_CreateDownloadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.CreateDownloadLocationRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_CreateDownloadLocation_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateDownloadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_DataProxyService_CreateDownloadLocation_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.CreateDownloadLocationRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_CreateDownloadLocation_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateDownloadLocation(ctx, &protoReq) - return msg, metadata, err - -} - -func request_DataProxyService_CreateDownloadLink_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.CreateDownloadLinkRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateDownloadLink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_DataProxyService_CreateDownloadLink_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.CreateDownloadLinkRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateDownloadLink(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_DataProxyService_GetData_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_DataProxyService_GetData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.GetDataRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_GetData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_DataProxyService_GetData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.GetDataRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_GetData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetData(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterDataProxyServiceHandlerServer registers the http handlers for service DataProxyService to "mux". -// UnaryRPC :call DataProxyServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDataProxyServiceHandlerFromEndpoint instead. -func RegisterDataProxyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.DataProxyServiceServer) error { - - mux.Handle("POST", pattern_DataProxyService_CreateUploadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateUploadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_DataProxyService_CreateUploadLocation_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateUploadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_DataProxyService_CreateDownloadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_DataProxyService_CreateDownloadLocation_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateDownloadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_DataProxyService_CreateDownloadLink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLink", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_link")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_DataProxyService_CreateDownloadLink_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateDownloadLink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_DataProxyService_GetData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/GetData", runtime.WithHTTPPathPattern("/api/v1/data")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_DataProxyService_GetData_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_GetData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterDataProxyServiceHandlerFromEndpoint is same as RegisterDataProxyServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterDataProxyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterDataProxyServiceHandler(ctx, mux, conn) -} - -// RegisterDataProxyServiceHandler registers the http handlers for service DataProxyService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterDataProxyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterDataProxyServiceHandlerClient(ctx, mux, extService.NewDataProxyServiceClient(conn)) -} - -// RegisterDataProxyServiceHandlerClient registers the http handlers for service DataProxyService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.DataProxyServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.DataProxyServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.DataProxyServiceClient" to call the correct interceptors. -func RegisterDataProxyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.DataProxyServiceClient) error { - - mux.Handle("POST", pattern_DataProxyService_CreateUploadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateUploadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_CreateUploadLocation_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateUploadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_DataProxyService_CreateDownloadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_CreateDownloadLocation_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateDownloadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_DataProxyService_CreateDownloadLink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLink", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_link")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_CreateDownloadLink_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateDownloadLink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_DataProxyService_GetData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/GetData", runtime.WithHTTPPathPattern("/api/v1/data")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_GetData_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_GetData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_DataProxyService_CreateUploadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) - - pattern_DataProxyService_CreateDownloadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) - - pattern_DataProxyService_CreateDownloadLink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_link"}, "")) - - pattern_DataProxyService_GetData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "data"}, "")) -) - -var ( - forward_DataProxyService_CreateUploadLocation_0 = runtime.ForwardResponseMessage - - forward_DataProxyService_CreateDownloadLocation_0 = runtime.ForwardResponseMessage - - forward_DataProxyService_CreateDownloadLink_0 = runtime.ForwardResponseMessage - - forward_DataProxyService_GetData_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json deleted file mode 100644 index e23e22df70..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json +++ /dev/null @@ -1,809 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/dataproxy.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "DataProxyService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/data": { - "get": { - "operationId": "DataProxyService_GetData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceGetDataResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "flyte_url", - "description": "A unique identifier in the form of flyte://\u003csomething\u003e that uniquely, for a given Flyte\nbackend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).\ne.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)\n flyte://v1/proj/development/execid/n2/i (for node execution input)\n flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "DataProxyService" - ] - } - }, - "/api/v1/dataproxy/artifact_link": { - "post": { - "summary": "CreateDownloadLocation creates a signed url to download artifacts.", - "description": "Creates a read-only http location that is accessible for tasks at runtime.", - "operationId": "DataProxyService_CreateDownloadLink", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceCreateDownloadLinkResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/serviceCreateDownloadLinkRequest" - } - } - ], - "tags": [ - "DataProxyService" - ] - } - }, - "/api/v1/dataproxy/artifact_urn": { - "get": { - "summary": "CreateDownloadLocation creates a signed url to download artifacts.", - "description": "Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime.", - "operationId": "DataProxyService_CreateDownloadLocation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceCreateDownloadLocationResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "native_url", - "description": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "expires_in", - "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "DataProxyService" - ] - }, - "post": { - "summary": "CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain.", - "description": "Creates a write-only http location that is accessible for tasks at runtime.", - "operationId": "DataProxyService_CreateUploadLocation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceCreateUploadLocationResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "CreateUploadLocationRequest specified request for the CreateUploadLocation API.\nThe implementation in data proxy service will create the s3 location with some server side configured prefixes,\nand then:\n - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR\n - project/domain/filename_root (if present)/filename (if present).", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/serviceCreateUploadLocationRequest" - } - } - ], - "tags": [ - "DataProxyService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/flyteidlcoreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "type": "object", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/flyteidlcoreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "type": "object" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "flyteidlcoreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "flyteidlcoreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "serviceArtifactType": { - "type": "string", - "enum": [ - "ARTIFACT_TYPE_UNDEFINED", - "ARTIFACT_TYPE_DECK" - ], - "default": "ARTIFACT_TYPE_UNDEFINED", - "description": "- ARTIFACT_TYPE_UNDEFINED: ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.\n - ARTIFACT_TYPE_DECK: ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan\nfinishes executing.", - "title": "ArtifactType" - }, - "serviceCreateDownloadLinkRequest": { - "type": "object", - "properties": { - "artifact_type": { - "$ref": "#/definitions/serviceArtifactType", - "description": "ArtifactType of the artifact requested." - }, - "expires_in": { - "type": "string", - "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "description": "NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the\nmost recent attempt of the task." - } - }, - "title": "CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)" - }, - "serviceCreateDownloadLinkResponse": { - "type": "object", - "properties": { - "signed_url": { - "type": "array", - "items": { - "type": "string" - }, - "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expire." - }, - "pre_signed_urls": { - "$ref": "#/definitions/servicePreSignedURLs", - "title": "New wrapper object containing the signed urls and expiration time" - } - }, - "title": "CreateDownloadLinkResponse defines the response for the generated links" - }, - "serviceCreateDownloadLocationResponse": { - "type": "object", - "properties": { - "signed_url": { - "type": "string", - "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expires." - } - } - }, - "serviceCreateUploadLocationRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Project to create the upload location for\n+required" - }, - "domain": { - "type": "string", - "title": "Domain to create the upload location for.\n+required" - }, - "filename": { - "type": "string", - "description": "Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.\n+optional. By default, the service will generate a consistent name based on the provided parameters." - }, - "expires_in": { - "type": "string", - "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." - }, - "content_md5": { - "type": "string", - "format": "byte", - "title": "ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the\ngenerated path.\n+required" - }, - "filename_root": { - "type": "string", - "title": "If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included\nthis makes the upload location deterministic. The native url will still be prefixed by the upload location prefix\nin data proxy config. This option is useful when uploading multiple files.\n+optional" - } - }, - "description": "CreateUploadLocationRequest specified request for the CreateUploadLocation API.\nThe implementation in data proxy service will create the s3 location with some server side configured prefixes,\nand then:\n - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR\n - project/domain/filename_root (if present)/filename (if present)." - }, - "serviceCreateUploadLocationResponse": { - "type": "object", - "properties": { - "signed_url": { - "type": "string", - "title": "SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "native_url": { - "type": "string", - "title": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expires." - } - } - }, - "serviceGetDataResponse": { - "type": "object", - "properties": { - "literal_map": { - "$ref": "#/definitions/coreLiteralMap", - "title": "literal map data will be returned" - }, - "pre_signed_urls": { - "$ref": "#/definitions/servicePreSignedURLs", - "title": "Flyte deck html will be returned as a signed url users can download" - }, - "literal": { - "$ref": "#/definitions/coreLiteral", - "description": "Single literal will be returned. This is returned when the user/url requests a specific output or input\nby name. See the o3 example above." - } - } - }, - "servicePreSignedURLs": { - "type": "object", - "properties": { - "signed_url": { - "type": "array", - "items": { - "type": "string" - }, - "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expire." - } - }, - "title": "Wrapper object since the message is shared across this and the GetDataResponse" - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json deleted file mode 100644 index 5dd386c39c..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json +++ /dev/null @@ -1,1314 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/external_plugin_service.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "ExternalPluginService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "ContainerArchitecture": { - "type": "string", - "enum": [ - "UNKNOWN", - "AMD64", - "ARM64", - "ARM_V6", - "ARM_V7" - ], - "default": "UNKNOWN", - "description": "Architecture-type the container image supports." - }, - "DataLoadingConfigLiteralMapFormat": { - "type": "string", - "enum": [ - "JSON", - "YAML", - "PROTO" - ], - "default": "JSON", - "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", - "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" - }, - "IOStrategyDownloadMode": { - "type": "string", - "enum": [ - "DOWNLOAD_EAGER", - "DOWNLOAD_STREAM", - "DO_NOT_DOWNLOAD" - ], - "default": "DOWNLOAD_EAGER", - "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", - "title": "Mode to use for downloading" - }, - "IOStrategyUploadMode": { - "type": "string", - "enum": [ - "UPLOAD_ON_EXIT", - "UPLOAD_EAGER", - "DO_NOT_UPLOAD" - ], - "default": "UPLOAD_ON_EXIT", - "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", - "title": "Mode to use for uploading" - }, - "ResourcesResourceEntry": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/ResourcesResourceName", - "description": "Resource name." - }, - "value": { - "type": "string", - "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - } - }, - "description": "Encapsulates a resource name and value." - }, - "ResourcesResourceName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU", - "GPU", - "MEMORY", - "STORAGE", - "EPHEMERAL_STORAGE" - ], - "default": "UNKNOWN", - "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." - }, - "RuntimeMetadataRuntimeType": { - "type": "string", - "enum": [ - "OTHER", - "FLYTE_SDK" - ], - "default": "OTHER" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "SqlDialect": { - "type": "string", - "enum": [ - "UNDEFINED", - "ANSI", - "HIVE", - "OTHER" - ], - "default": "UNDEFINED", - "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string" - }, - "bind_to_time_partition": { - "type": "boolean" - }, - "transform": { - "type": "string", - "title": "This is only relevant in the time partition case" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions", - "description": "Think of a partition as a tag on an Artifact, except it's a key-value pair.\nDifferent partitions naturally have different versions (execution ids)." - }, - "time_partition": { - "$ref": "#/definitions/coreTimePartition", - "description": "There is no such thing as an empty time partition - if it's not set, then there is no time partition." - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - }, - "org": { - "type": "string" - } - } - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreContainer": { - "type": "object", - "properties": { - "image": { - "type": "string", - "title": "Container image url. Eg: docker/redis:latest" - }, - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." - }, - "resources": { - "$ref": "#/definitions/coreResources", - "description": "Container resources requirement as specified by the container engine." - }, - "env": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Environment variables will be set as the container is starting up." - }, - "config": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/flyteidlcoreKeyValuePair" - }, - "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." - }, - "ports": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreContainerPort" - }, - "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - }, - "architecture": { - "$ref": "#/definitions/ContainerArchitecture" - } - } - }, - "coreContainerPort": { - "type": "object", - "properties": { - "container_port": { - "type": "integer", - "format": "int64", - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." - } - }, - "description": "Defines port properties for a container." - }, - "coreDataLoadingConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" - }, - "input_path": { - "type": "string", - "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" - }, - "output_path": { - "type": "string", - "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" - }, - "format": { - "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", - "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" - }, - "io_strategy": { - "$ref": "#/definitions/coreIOStrategy" - } - }, - "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreExtendedResources": { - "type": "object", - "properties": { - "gpu_accelerator": { - "$ref": "#/definitions/coreGPUAccelerator", - "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." - } - }, - "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." - }, - "coreGPUAccelerator": { - "type": "object", - "properties": { - "device": { - "type": "string", - "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." - }, - "unpartitioned": { - "type": "boolean" - }, - "partition_size": { - "type": "string", - "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." - } - }, - "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." - }, - "coreIOStrategy": { - "type": "object", - "properties": { - "download_mode": { - "$ref": "#/definitions/IOStrategyDownloadMode", - "title": "Mode to use to manage downloads" - }, - "upload_mode": { - "$ref": "#/definitions/IOStrategyUploadMode", - "title": "Mode to use to manage uploads" - } - }, - "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreK8sObjectMetadata": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional labels to add to the pod definition." - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional annotations to add to the pod definition." - } - }, - "description": "Metadata for building a kubernetes object when a task is executed." - }, - "coreK8sPod": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreK8sObjectMetadata", - "description": "Contains additional metadata for building a kubernetes pod." - }, - "pod_spec": { - "type": "object", - "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - } - }, - "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string", - "title": "The string static value is for use in the Partitions object" - }, - "time_value": { - "type": "string", - "format": "date-time", - "title": "The time value is for use in the TimePartition case" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/flyteidlcoreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "type": "object", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreResources": { - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "The desired set of resources requested. ResourceNames must be unique within the list." - }, - "limits": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." - } - }, - "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." - }, - "coreRetryStrategy": { - "type": "object", - "properties": { - "retries": { - "type": "integer", - "format": "int64", - "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." - } - }, - "description": "Retry strategy associated with an executable unit." - }, - "coreRuntimeMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/RuntimeMetadataRuntimeType", - "description": "Type of runtime." - }, - "version": { - "type": "string", - "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." - }, - "flavor": { - "type": "string", - "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." - } - }, - "description": "Runtime information. This is loosely defined to allow for extensibility." - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/flyteidlcoreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "type": "object" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreSql": { - "type": "object", - "properties": { - "statement": { - "type": "string", - "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - }, - "dialect": { - "$ref": "#/definitions/SqlDialect" - } - }, - "description": "Sql represents a generic sql workload with a statement and dialect." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTaskMetadata": { - "type": "object", - "properties": { - "discoverable": { - "type": "boolean", - "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." - }, - "runtime": { - "$ref": "#/definitions/coreRuntimeMetadata", - "description": "Runtime information about the task." - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task including user-triggered retries." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "discovery_version": { - "type": "string", - "description": "Indicates a logical version to apply to this task for the purpose of discovery." - }, - "deprecated_error_message": { - "type": "string", - "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." - }, - "interruptible": { - "type": "boolean" - }, - "cache_serializable": { - "type": "boolean", - "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" - }, - "generates_deck": { - "type": "boolean", - "description": "Indicates whether the task will generate a Deck URI when it finishes executing." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - }, - "pod_template_name": { - "type": "string", - "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - }, - "cache_ignore_input_vars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." - } - }, - "title": "Task Metadata" - }, - "coreTaskTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." - }, - "type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." - }, - "metadata": { - "$ref": "#/definitions/coreTaskMetadata", - "description": "Extra metadata about the task." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." - }, - "custom": { - "type": "object", - "description": "Custom data about the task. This is extensible to allow various plugins in the system." - }, - "container": { - "$ref": "#/definitions/coreContainer" - }, - "k8s_pod": { - "$ref": "#/definitions/coreK8sPod" - }, - "sql": { - "$ref": "#/definitions/coreSql" - }, - "task_type_version": { - "type": "integer", - "format": "int32", - "description": "This can be used to customize task handling at execution time for the same task type." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "security_context encapsulates security attributes requested to run this task." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - }, - "config": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" - } - }, - "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." - }, - "coreTimePartition": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreTypedInterface": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreVariableMap" - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - }, - "description": "Defines strongly typed inputs and outputs." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "flyteidlcoreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "flyteidlcoreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "flyteidlcoreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "flyteidlserviceState": { - "type": "string", - "enum": [ - "RETRYABLE_FAILURE", - "PERMANENT_FAILURE", - "PENDING", - "RUNNING", - "SUCCEEDED" - ], - "default": "RETRYABLE_FAILURE", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "flyteidlserviceTaskCreateResponse": { - "type": "object", - "properties": { - "job_id": { - "type": "string" - } - }, - "description": "Represents a create response structure." - }, - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "serviceTaskDeleteResponse": { - "type": "object", - "description": "Response to delete a task." - }, - "serviceTaskGetResponse": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/flyteidlserviceState", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "outputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a\nStructured dataset pointing to the query result table.\n+optional" - } - }, - "description": "Response to get an individual task state." - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go deleted file mode 100644 index ba78e8df84..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/identity.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -func request_IdentityService_UserInfo_0(ctx context.Context, marshaler runtime.Marshaler, client extService.IdentityServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.UserInfoRequest - var metadata runtime.ServerMetadata - - msg, err := client.UserInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_IdentityService_UserInfo_0(ctx context.Context, marshaler runtime.Marshaler, server extService.IdentityServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extService.UserInfoRequest - var metadata runtime.ServerMetadata - - msg, err := server.UserInfo(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterIdentityServiceHandlerServer registers the http handlers for service IdentityService to "mux". -// UnaryRPC :call IdentityServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIdentityServiceHandlerFromEndpoint instead. -func RegisterIdentityServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.IdentityServiceServer) error { - - mux.Handle("GET", pattern_IdentityService_UserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.IdentityService/UserInfo", runtime.WithHTTPPathPattern("/me")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_IdentityService_UserInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_IdentityService_UserInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterIdentityServiceHandlerFromEndpoint is same as RegisterIdentityServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterIdentityServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterIdentityServiceHandler(ctx, mux, conn) -} - -// RegisterIdentityServiceHandler registers the http handlers for service IdentityService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterIdentityServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterIdentityServiceHandlerClient(ctx, mux, extService.NewIdentityServiceClient(conn)) -} - -// RegisterIdentityServiceHandlerClient registers the http handlers for service IdentityService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.IdentityServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.IdentityServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.IdentityServiceClient" to call the correct interceptors. -func RegisterIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.IdentityServiceClient) error { - - mux.Handle("GET", pattern_IdentityService_UserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.IdentityService/UserInfo", runtime.WithHTTPPathPattern("/me")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_IdentityService_UserInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_IdentityService_UserInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_IdentityService_UserInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"me"}, "")) -) - -var ( - forward_IdentityService_UserInfo_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json deleted file mode 100644 index 8293cb25af..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/identity.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "IdentityService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/me": { - "get": { - "summary": "Retrieves user information about the currently logged in user.", - "description": "Retrieves authenticated identity info.", - "operationId": "IdentityService_UserInfo", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceUserInfoResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "tags": [ - "IdentityService" - ] - } - } - }, - "definitions": { - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "serviceUserInfoResponse": { - "type": "object", - "properties": { - "subject": { - "type": "string", - "description": "Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed\nby the Client." - }, - "name": { - "type": "string", - "title": "Full name" - }, - "preferred_username": { - "type": "string", - "title": "Shorthand name by which the End-User wishes to be referred to" - }, - "given_name": { - "type": "string", - "title": "Given name(s) or first name(s)" - }, - "family_name": { - "type": "string", - "title": "Surname(s) or last name(s)" - }, - "email": { - "type": "string", - "title": "Preferred e-mail address" - }, - "picture": { - "type": "string", - "title": "Profile picture URL" - }, - "additional_claims": { - "type": "object", - "title": "Additional claims" - } - }, - "description": "See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information." - } - } -} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go deleted file mode 100644 index aefec7bfb2..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go +++ /dev/null @@ -1,334 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/signal.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - extAdmin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = metadata.Join - -var ( - filter_SignalService_ListSignals_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} -) - -func request_SignalService_ListSignals_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.SignalListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["workflow_execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) - } - - val, ok = pathParams["workflow_execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) - } - - val, ok = pathParams["workflow_execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SignalService_ListSignals_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListSignals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_SignalService_ListSignals_0(ctx context.Context, marshaler runtime.Marshaler, server extService.SignalServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.SignalListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["workflow_execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) - } - - val, ok = pathParams["workflow_execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) - } - - val, ok = pathParams["workflow_execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SignalService_ListSignals_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ListSignals(ctx, &protoReq) - return msg, metadata, err - -} - -func request_SignalService_SetSignal_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.SignalSetRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SetSignal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_SignalService_SetSignal_0(ctx context.Context, marshaler runtime.Marshaler, server extService.SignalServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq extAdmin.SignalSetRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SetSignal(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterSignalServiceHandlerServer registers the http handlers for service SignalService to "mux". -// UnaryRPC :call SignalServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSignalServiceHandlerFromEndpoint instead. -func RegisterSignalServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.SignalServiceServer) error { - - mux.Handle("GET", pattern_SignalService_ListSignals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.SignalService/ListSignals", runtime.WithHTTPPathPattern("/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SignalService_ListSignals_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SignalService_ListSignals_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_SignalService_SetSignal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.SignalService/SetSignal", runtime.WithHTTPPathPattern("/api/v1/signals")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SignalService_SetSignal_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SignalService_SetSignal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterSignalServiceHandlerFromEndpoint is same as RegisterSignalServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterSignalServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.DialContext(ctx, endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterSignalServiceHandler(ctx, mux, conn) -} - -// RegisterSignalServiceHandler registers the http handlers for service SignalService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterSignalServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterSignalServiceHandlerClient(ctx, mux, extService.NewSignalServiceClient(conn)) -} - -// RegisterSignalServiceHandlerClient registers the http handlers for service SignalService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.SignalServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.SignalServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "extService.SignalServiceClient" to call the correct interceptors. -func RegisterSignalServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.SignalServiceClient) error { - - mux.Handle("GET", pattern_SignalService_ListSignals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SignalService/ListSignals", runtime.WithHTTPPathPattern("/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SignalService_ListSignals_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SignalService_ListSignals_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_SignalService_SetSignal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - var err error - var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SignalService/SetSignal", runtime.WithHTTPPathPattern("/api/v1/signals")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SignalService_SetSignal_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - - forward_SignalService_SetSignal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_SignalService_ListSignals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "signals", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) - - pattern_SignalService_SetSignal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "signals"}, "")) -) - -var ( - forward_SignalService_ListSignals_0 = runtime.ForwardResponseMessage - - forward_SignalService_SetSignal_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json deleted file mode 100644 index 94c859bfcd..0000000000 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json +++ /dev/null @@ -1,739 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/signal.proto", - "version": "version not set" - }, - "tags": [ - { - "name": "SignalService" - } - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/signals": { - "post": { - "summary": "Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition", - "description": "Set a signal value.", - "operationId": "SignalService_SetSignal", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminSignalSetResponse" - } - }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminSignalSetRequest" - } - } - ], - "tags": [ - "SignalService" - ] - } - }, - "/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions.", - "description": "Fetch existing signal definitions matching the input signal id filters.", - "operationId": "SignalService_ListSignals", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminSignalList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "SignalService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SortDirection": { - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING", - "description": " - DESCENDING: By default, fields are sorted in descending order." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "adminSignal": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreSignalIdentifier", - "description": "A unique identifier for the requested signal." - }, - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "A type denoting the required value type for this signal." - }, - "value": { - "$ref": "#/definitions/coreLiteral", - "description": "The value of the signal. This is only available if the signal has been \"set\" and must match\nthe defined the type." - } - }, - "description": "Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte\nsignal. Signals may exist either without a set value (representing a signal request) or with a\npopulated value (indicating the signal has been given)." - }, - "adminSignalList": { - "type": "object", - "properties": { - "signals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/adminSignal" - }, - "description": "A list of signals matching the input filters." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "SignalList represents collection of signals along with the token of the last result.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" - }, - "adminSignalSetRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreSignalIdentifier", - "description": "A unique identifier for the requested signal." - }, - "value": { - "$ref": "#/definitions/coreLiteral", - "description": "The value of this signal, must match the defining signal type." - } - }, - "title": "SignalSetRequest represents a request structure to set the value on a signal. Setting a signal\neffetively satisfies the signal condition within a Flyte workflow.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" - }, - "adminSignalSetResponse": { - "type": "object", - "description": "SignalSetResponse represents a response structure if signal setting succeeds.\n\nPurposefully empty, may be populated in the future." - }, - "adminSort": { - "type": "object", - "properties": { - "key": { - "type": "string", - "title": "Indicates an attribute to sort the response values.\n+required" - }, - "direction": { - "$ref": "#/definitions/SortDirection", - "title": "Indicates the direction to apply sort key for response values.\n+optional" - } - }, - "description": "Specifies sort ordering in a list request." - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/flyteidlcoreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "type": "object", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/flyteidlcoreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "type": "object" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSignalIdentifier": { - "type": "object", - "properties": { - "signal_id": { - "type": "string", - "description": "Unique identifier for a signal." - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Identifies the Flyte workflow execution this signal belongs to." - } - }, - "description": "Encapsulation of fields the uniquely identify a signal." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - }, - "org": { - "type": "string", - "description": "Optional, org key applied to the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "flyteidlcoreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "flyteidlcoreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "googlerpcStatus": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "type": "object", - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "@type": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - } - }, - "additionalProperties": {}, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - } - } -} diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts deleted file mode 100644 index 0dcb2095a3..0000000000 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ /dev/null @@ -1,26940 +0,0 @@ -import * as $protobuf from "protobufjs"; -/** Namespace flyteidl. */ -export namespace flyteidl { - - /** Namespace core. */ - namespace core { - - /** Properties of an ArtifactKey. */ - interface IArtifactKey { - - /** ArtifactKey project */ - project?: (string|null); - - /** ArtifactKey domain */ - domain?: (string|null); - - /** ArtifactKey name */ - name?: (string|null); - - /** ArtifactKey org */ - org?: (string|null); - } - - /** Represents an ArtifactKey. */ - class ArtifactKey implements IArtifactKey { - - /** - * Constructs a new ArtifactKey. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactKey); - - /** ArtifactKey project. */ - public project: string; - - /** ArtifactKey domain. */ - public domain: string; - - /** ArtifactKey name. */ - public name: string; - - /** ArtifactKey org. */ - public org: string; - - /** - * Creates a new ArtifactKey instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactKey instance - */ - public static create(properties?: flyteidl.core.IArtifactKey): flyteidl.core.ArtifactKey; - - /** - * Encodes the specified ArtifactKey message. Does not implicitly {@link flyteidl.core.ArtifactKey.verify|verify} messages. - * @param message ArtifactKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactKey, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactKey message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactKey; - - /** - * Verifies an ArtifactKey message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ArtifactBindingData. */ - interface IArtifactBindingData { - - /** ArtifactBindingData index */ - index?: (number|null); - - /** ArtifactBindingData partitionKey */ - partitionKey?: (string|null); - - /** ArtifactBindingData bindToTimePartition */ - bindToTimePartition?: (boolean|null); - - /** ArtifactBindingData transform */ - transform?: (string|null); - } - - /** Represents an ArtifactBindingData. */ - class ArtifactBindingData implements IArtifactBindingData { - - /** - * Constructs a new ArtifactBindingData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactBindingData); - - /** ArtifactBindingData index. */ - public index: number; - - /** ArtifactBindingData partitionKey. */ - public partitionKey: string; - - /** ArtifactBindingData bindToTimePartition. */ - public bindToTimePartition: boolean; - - /** ArtifactBindingData transform. */ - public transform: string; - - /** ArtifactBindingData partitionData. */ - public partitionData?: ("partitionKey"|"bindToTimePartition"); - - /** - * Creates a new ArtifactBindingData instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactBindingData instance - */ - public static create(properties?: flyteidl.core.IArtifactBindingData): flyteidl.core.ArtifactBindingData; - - /** - * Encodes the specified ArtifactBindingData message. Does not implicitly {@link flyteidl.core.ArtifactBindingData.verify|verify} messages. - * @param message ArtifactBindingData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactBindingData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactBindingData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactBindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactBindingData; - - /** - * Verifies an ArtifactBindingData message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an InputBindingData. */ - interface IInputBindingData { - - /** InputBindingData var */ - "var"?: (string|null); - } - - /** Represents an InputBindingData. */ - class InputBindingData implements IInputBindingData { - - /** - * Constructs a new InputBindingData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IInputBindingData); - - /** InputBindingData var. */ - public var: string; - - /** - * Creates a new InputBindingData instance using the specified properties. - * @param [properties] Properties to set - * @returns InputBindingData instance - */ - public static create(properties?: flyteidl.core.IInputBindingData): flyteidl.core.InputBindingData; - - /** - * Encodes the specified InputBindingData message. Does not implicitly {@link flyteidl.core.InputBindingData.verify|verify} messages. - * @param message InputBindingData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IInputBindingData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputBindingData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputBindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.InputBindingData; - - /** - * Verifies an InputBindingData message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LabelValue. */ - interface ILabelValue { - - /** LabelValue staticValue */ - staticValue?: (string|null); - - /** LabelValue timeValue */ - timeValue?: (google.protobuf.ITimestamp|null); - - /** LabelValue triggeredBinding */ - triggeredBinding?: (flyteidl.core.IArtifactBindingData|null); - - /** LabelValue inputBinding */ - inputBinding?: (flyteidl.core.IInputBindingData|null); - } - - /** Represents a LabelValue. */ - class LabelValue implements ILabelValue { - - /** - * Constructs a new LabelValue. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILabelValue); - - /** LabelValue staticValue. */ - public staticValue: string; - - /** LabelValue timeValue. */ - public timeValue?: (google.protobuf.ITimestamp|null); - - /** LabelValue triggeredBinding. */ - public triggeredBinding?: (flyteidl.core.IArtifactBindingData|null); - - /** LabelValue inputBinding. */ - public inputBinding?: (flyteidl.core.IInputBindingData|null); - - /** LabelValue value. */ - public value?: ("staticValue"|"timeValue"|"triggeredBinding"|"inputBinding"); - - /** - * Creates a new LabelValue instance using the specified properties. - * @param [properties] Properties to set - * @returns LabelValue instance - */ - public static create(properties?: flyteidl.core.ILabelValue): flyteidl.core.LabelValue; - - /** - * Encodes the specified LabelValue message. Does not implicitly {@link flyteidl.core.LabelValue.verify|verify} messages. - * @param message LabelValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILabelValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LabelValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LabelValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LabelValue; - - /** - * Verifies a LabelValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Partitions. */ - interface IPartitions { - - /** Partitions value */ - value?: ({ [k: string]: flyteidl.core.ILabelValue }|null); - } - - /** Represents a Partitions. */ - class Partitions implements IPartitions { - - /** - * Constructs a new Partitions. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IPartitions); - - /** Partitions value. */ - public value: { [k: string]: flyteidl.core.ILabelValue }; - - /** - * Creates a new Partitions instance using the specified properties. - * @param [properties] Properties to set - * @returns Partitions instance - */ - public static create(properties?: flyteidl.core.IPartitions): flyteidl.core.Partitions; - - /** - * Encodes the specified Partitions message. Does not implicitly {@link flyteidl.core.Partitions.verify|verify} messages. - * @param message Partitions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IPartitions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Partitions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Partitions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Partitions; - - /** - * Verifies a Partitions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TimePartition. */ - interface ITimePartition { - - /** TimePartition value */ - value?: (flyteidl.core.ILabelValue|null); - } - - /** Represents a TimePartition. */ - class TimePartition implements ITimePartition { - - /** - * Constructs a new TimePartition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITimePartition); - - /** TimePartition value. */ - public value?: (flyteidl.core.ILabelValue|null); - - /** - * Creates a new TimePartition instance using the specified properties. - * @param [properties] Properties to set - * @returns TimePartition instance - */ - public static create(properties?: flyteidl.core.ITimePartition): flyteidl.core.TimePartition; - - /** - * Encodes the specified TimePartition message. Does not implicitly {@link flyteidl.core.TimePartition.verify|verify} messages. - * @param message TimePartition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITimePartition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TimePartition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimePartition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TimePartition; - - /** - * Verifies a TimePartition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ArtifactID. */ - interface IArtifactID { - - /** ArtifactID artifactKey */ - artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactID version */ - version?: (string|null); - - /** ArtifactID partitions */ - partitions?: (flyteidl.core.IPartitions|null); - - /** ArtifactID timePartition */ - timePartition?: (flyteidl.core.ITimePartition|null); - } - - /** Represents an ArtifactID. */ - class ArtifactID implements IArtifactID { - - /** - * Constructs a new ArtifactID. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactID); - - /** ArtifactID artifactKey. */ - public artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactID version. */ - public version: string; - - /** ArtifactID partitions. */ - public partitions?: (flyteidl.core.IPartitions|null); - - /** ArtifactID timePartition. */ - public timePartition?: (flyteidl.core.ITimePartition|null); - - /** - * Creates a new ArtifactID instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactID instance - */ - public static create(properties?: flyteidl.core.IArtifactID): flyteidl.core.ArtifactID; - - /** - * Encodes the specified ArtifactID message. Does not implicitly {@link flyteidl.core.ArtifactID.verify|verify} messages. - * @param message ArtifactID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactID message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactID; - - /** - * Verifies an ArtifactID message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ArtifactTag. */ - interface IArtifactTag { - - /** ArtifactTag artifactKey */ - artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactTag value */ - value?: (flyteidl.core.ILabelValue|null); - } - - /** Represents an ArtifactTag. */ - class ArtifactTag implements IArtifactTag { - - /** - * Constructs a new ArtifactTag. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactTag); - - /** ArtifactTag artifactKey. */ - public artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactTag value. */ - public value?: (flyteidl.core.ILabelValue|null); - - /** - * Creates a new ArtifactTag instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactTag instance - */ - public static create(properties?: flyteidl.core.IArtifactTag): flyteidl.core.ArtifactTag; - - /** - * Encodes the specified ArtifactTag message. Does not implicitly {@link flyteidl.core.ArtifactTag.verify|verify} messages. - * @param message ArtifactTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactTag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactTag; - - /** - * Verifies an ArtifactTag message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ArtifactQuery. */ - interface IArtifactQuery { - - /** ArtifactQuery artifactId */ - artifactId?: (flyteidl.core.IArtifactID|null); - - /** ArtifactQuery artifactTag */ - artifactTag?: (flyteidl.core.IArtifactTag|null); - - /** ArtifactQuery uri */ - uri?: (string|null); - - /** ArtifactQuery binding */ - binding?: (flyteidl.core.IArtifactBindingData|null); - } - - /** Represents an ArtifactQuery. */ - class ArtifactQuery implements IArtifactQuery { - - /** - * Constructs a new ArtifactQuery. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactQuery); - - /** ArtifactQuery artifactId. */ - public artifactId?: (flyteidl.core.IArtifactID|null); - - /** ArtifactQuery artifactTag. */ - public artifactTag?: (flyteidl.core.IArtifactTag|null); - - /** ArtifactQuery uri. */ - public uri: string; - - /** ArtifactQuery binding. */ - public binding?: (flyteidl.core.IArtifactBindingData|null); - - /** ArtifactQuery identifier. */ - public identifier?: ("artifactId"|"artifactTag"|"uri"|"binding"); - - /** - * Creates a new ArtifactQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactQuery instance - */ - public static create(properties?: flyteidl.core.IArtifactQuery): flyteidl.core.ArtifactQuery; - - /** - * Encodes the specified ArtifactQuery message. Does not implicitly {@link flyteidl.core.ArtifactQuery.verify|verify} messages. - * @param message ArtifactQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactQuery message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactQuery; - - /** - * Verifies an ArtifactQuery message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** ResourceType enum. */ - enum ResourceType { - UNSPECIFIED = 0, - TASK = 1, - WORKFLOW = 2, - LAUNCH_PLAN = 3, - DATASET = 4 - } - - /** Properties of an Identifier. */ - interface IIdentifier { - - /** Identifier resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** Identifier project */ - project?: (string|null); - - /** Identifier domain */ - domain?: (string|null); - - /** Identifier name */ - name?: (string|null); - - /** Identifier version */ - version?: (string|null); - - /** Identifier org */ - org?: (string|null); - } - - /** Represents an Identifier. */ - class Identifier implements IIdentifier { - - /** - * Constructs a new Identifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIdentifier); - - /** Identifier resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** Identifier project. */ - public project: string; - - /** Identifier domain. */ - public domain: string; - - /** Identifier name. */ - public name: string; - - /** Identifier version. */ - public version: string; - - /** Identifier org. */ - public org: string; - - /** - * Creates a new Identifier instance using the specified properties. - * @param [properties] Properties to set - * @returns Identifier instance - */ - public static create(properties?: flyteidl.core.IIdentifier): flyteidl.core.Identifier; - - /** - * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. - * @param message Identifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Identifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Identifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identifier; - - /** - * Verifies an Identifier message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionIdentifier. */ - interface IWorkflowExecutionIdentifier { - - /** WorkflowExecutionIdentifier project */ - project?: (string|null); - - /** WorkflowExecutionIdentifier domain */ - domain?: (string|null); - - /** WorkflowExecutionIdentifier name */ - name?: (string|null); - - /** WorkflowExecutionIdentifier org */ - org?: (string|null); - } - - /** Represents a WorkflowExecutionIdentifier. */ - class WorkflowExecutionIdentifier implements IWorkflowExecutionIdentifier { - - /** - * Constructs a new WorkflowExecutionIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowExecutionIdentifier); - - /** WorkflowExecutionIdentifier project. */ - public project: string; - - /** WorkflowExecutionIdentifier domain. */ - public domain: string; - - /** WorkflowExecutionIdentifier name. */ - public name: string; - - /** WorkflowExecutionIdentifier org. */ - public org: string; - - /** - * Creates a new WorkflowExecutionIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionIdentifier instance - */ - public static create(properties?: flyteidl.core.IWorkflowExecutionIdentifier): flyteidl.core.WorkflowExecutionIdentifier; - - /** - * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. - * @param message WorkflowExecutionIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecutionIdentifier; - - /** - * Verifies a WorkflowExecutionIdentifier message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionIdentifier. */ - interface INodeExecutionIdentifier { - - /** NodeExecutionIdentifier nodeId */ - nodeId?: (string|null); - - /** NodeExecutionIdentifier executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a NodeExecutionIdentifier. */ - class NodeExecutionIdentifier implements INodeExecutionIdentifier { - - /** - * Constructs a new NodeExecutionIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INodeExecutionIdentifier); - - /** NodeExecutionIdentifier nodeId. */ - public nodeId: string; - - /** NodeExecutionIdentifier executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new NodeExecutionIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionIdentifier instance - */ - public static create(properties?: flyteidl.core.INodeExecutionIdentifier): flyteidl.core.NodeExecutionIdentifier; - - /** - * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. - * @param message NodeExecutionIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INodeExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecutionIdentifier; - - /** - * Verifies a NodeExecutionIdentifier message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionIdentifier. */ - interface ITaskExecutionIdentifier { - - /** TaskExecutionIdentifier taskId */ - taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionIdentifier nodeExecutionId */ - nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionIdentifier retryAttempt */ - retryAttempt?: (number|null); - } - - /** Represents a TaskExecutionIdentifier. */ - class TaskExecutionIdentifier implements ITaskExecutionIdentifier { - - /** - * Constructs a new TaskExecutionIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskExecutionIdentifier); - - /** TaskExecutionIdentifier taskId. */ - public taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionIdentifier nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionIdentifier retryAttempt. */ - public retryAttempt: number; - - /** - * Creates a new TaskExecutionIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionIdentifier instance - */ - public static create(properties?: flyteidl.core.ITaskExecutionIdentifier): flyteidl.core.TaskExecutionIdentifier; - - /** - * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. - * @param message TaskExecutionIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecutionIdentifier; - - /** - * Verifies a TaskExecutionIdentifier message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalIdentifier. */ - interface ISignalIdentifier { - - /** SignalIdentifier signalId */ - signalId?: (string|null); - - /** SignalIdentifier executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a SignalIdentifier. */ - class SignalIdentifier implements ISignalIdentifier { - - /** - * Constructs a new SignalIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISignalIdentifier); - - /** SignalIdentifier signalId. */ - public signalId: string; - - /** SignalIdentifier executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new SignalIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalIdentifier instance - */ - public static create(properties?: flyteidl.core.ISignalIdentifier): flyteidl.core.SignalIdentifier; - - /** - * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. - * @param message SignalIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISignalIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalIdentifier; - - /** - * Verifies a SignalIdentifier message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** CatalogCacheStatus enum. */ - enum CatalogCacheStatus { - CACHE_DISABLED = 0, - CACHE_MISS = 1, - CACHE_HIT = 2, - CACHE_POPULATED = 3, - CACHE_LOOKUP_FAILURE = 4, - CACHE_PUT_FAILURE = 5, - CACHE_SKIPPED = 6, - CACHE_EVICTED = 7 - } - - /** Properties of a CatalogArtifactTag. */ - interface ICatalogArtifactTag { - - /** CatalogArtifactTag artifactId */ - artifactId?: (string|null); - - /** CatalogArtifactTag name */ - name?: (string|null); - } - - /** Represents a CatalogArtifactTag. */ - class CatalogArtifactTag implements ICatalogArtifactTag { - - /** - * Constructs a new CatalogArtifactTag. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICatalogArtifactTag); - - /** CatalogArtifactTag artifactId. */ - public artifactId: string; - - /** CatalogArtifactTag name. */ - public name: string; - - /** - * Creates a new CatalogArtifactTag instance using the specified properties. - * @param [properties] Properties to set - * @returns CatalogArtifactTag instance - */ - public static create(properties?: flyteidl.core.ICatalogArtifactTag): flyteidl.core.CatalogArtifactTag; - - /** - * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. - * @param message CatalogArtifactTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICatalogArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CatalogArtifactTag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CatalogArtifactTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogArtifactTag; - - /** - * Verifies a CatalogArtifactTag message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CatalogMetadata. */ - interface ICatalogMetadata { - - /** CatalogMetadata datasetId */ - datasetId?: (flyteidl.core.IIdentifier|null); - - /** CatalogMetadata artifactTag */ - artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); - - /** CatalogMetadata sourceTaskExecution */ - sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a CatalogMetadata. */ - class CatalogMetadata implements ICatalogMetadata { - - /** - * Constructs a new CatalogMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICatalogMetadata); - - /** CatalogMetadata datasetId. */ - public datasetId?: (flyteidl.core.IIdentifier|null); - - /** CatalogMetadata artifactTag. */ - public artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); - - /** CatalogMetadata sourceTaskExecution. */ - public sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** CatalogMetadata sourceExecution. */ - public sourceExecution?: "sourceTaskExecution"; - - /** - * Creates a new CatalogMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CatalogMetadata instance - */ - public static create(properties?: flyteidl.core.ICatalogMetadata): flyteidl.core.CatalogMetadata; - - /** - * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. - * @param message CatalogMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICatalogMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CatalogMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CatalogMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogMetadata; - - /** - * Verifies a CatalogMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CatalogReservation. */ - interface ICatalogReservation { - } - - /** Represents a CatalogReservation. */ - class CatalogReservation implements ICatalogReservation { - - /** - * Constructs a new CatalogReservation. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICatalogReservation); - - /** - * Creates a new CatalogReservation instance using the specified properties. - * @param [properties] Properties to set - * @returns CatalogReservation instance - */ - public static create(properties?: flyteidl.core.ICatalogReservation): flyteidl.core.CatalogReservation; - - /** - * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. - * @param message CatalogReservation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICatalogReservation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CatalogReservation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CatalogReservation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogReservation; - - /** - * Verifies a CatalogReservation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace CatalogReservation { - - /** Status enum. */ - enum Status { - RESERVATION_DISABLED = 0, - RESERVATION_ACQUIRED = 1, - RESERVATION_EXISTS = 2, - RESERVATION_RELEASED = 3, - RESERVATION_FAILURE = 4 - } - } - - /** Properties of a ConnectionSet. */ - interface IConnectionSet { - - /** ConnectionSet downstream */ - downstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); - - /** ConnectionSet upstream */ - upstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); - } - - /** Represents a ConnectionSet. */ - class ConnectionSet implements IConnectionSet { - - /** - * Constructs a new ConnectionSet. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IConnectionSet); - - /** ConnectionSet downstream. */ - public downstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; - - /** ConnectionSet upstream. */ - public upstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; - - /** - * Creates a new ConnectionSet instance using the specified properties. - * @param [properties] Properties to set - * @returns ConnectionSet instance - */ - public static create(properties?: flyteidl.core.IConnectionSet): flyteidl.core.ConnectionSet; - - /** - * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. - * @param message ConnectionSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IConnectionSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConnectionSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConnectionSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet; - - /** - * Verifies a ConnectionSet message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace ConnectionSet { - - /** Properties of an IdList. */ - interface IIdList { - - /** IdList ids */ - ids?: (string[]|null); - } - - /** Represents an IdList. */ - class IdList implements IIdList { - - /** - * Constructs a new IdList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ConnectionSet.IIdList); - - /** IdList ids. */ - public ids: string[]; - - /** - * Creates a new IdList instance using the specified properties. - * @param [properties] Properties to set - * @returns IdList instance - */ - public static create(properties?: flyteidl.core.ConnectionSet.IIdList): flyteidl.core.ConnectionSet.IdList; - - /** - * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. - * @param message IdList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ConnectionSet.IIdList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IdList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IdList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet.IdList; - - /** - * Verifies an IdList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Properties of a CompiledWorkflow. */ - interface ICompiledWorkflow { - - /** CompiledWorkflow template */ - template?: (flyteidl.core.IWorkflowTemplate|null); - - /** CompiledWorkflow connections */ - connections?: (flyteidl.core.IConnectionSet|null); - } - - /** Represents a CompiledWorkflow. */ - class CompiledWorkflow implements ICompiledWorkflow { - - /** - * Constructs a new CompiledWorkflow. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledWorkflow); - - /** CompiledWorkflow template. */ - public template?: (flyteidl.core.IWorkflowTemplate|null); - - /** CompiledWorkflow connections. */ - public connections?: (flyteidl.core.IConnectionSet|null); - - /** - * Creates a new CompiledWorkflow instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledWorkflow instance - */ - public static create(properties?: flyteidl.core.ICompiledWorkflow): flyteidl.core.CompiledWorkflow; - - /** - * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. - * @param message CompiledWorkflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledWorkflow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledWorkflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflow; - - /** - * Verifies a CompiledWorkflow message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CompiledLaunchPlan. */ - interface ICompiledLaunchPlan { - - /** CompiledLaunchPlan template */ - template?: (flyteidl.core.ILaunchPlanTemplate|null); - } - - /** Represents a CompiledLaunchPlan. */ - class CompiledLaunchPlan implements ICompiledLaunchPlan { - - /** - * Constructs a new CompiledLaunchPlan. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledLaunchPlan); - - /** CompiledLaunchPlan template. */ - public template?: (flyteidl.core.ILaunchPlanTemplate|null); - - /** - * Creates a new CompiledLaunchPlan instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledLaunchPlan instance - */ - public static create(properties?: flyteidl.core.ICompiledLaunchPlan): flyteidl.core.CompiledLaunchPlan; - - /** - * Encodes the specified CompiledLaunchPlan message. Does not implicitly {@link flyteidl.core.CompiledLaunchPlan.verify|verify} messages. - * @param message CompiledLaunchPlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledLaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledLaunchPlan message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledLaunchPlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledLaunchPlan; - - /** - * Verifies a CompiledLaunchPlan message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CompiledTask. */ - interface ICompiledTask { - - /** CompiledTask template */ - template?: (flyteidl.core.ITaskTemplate|null); - } - - /** Represents a CompiledTask. */ - class CompiledTask implements ICompiledTask { - - /** - * Constructs a new CompiledTask. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledTask); - - /** CompiledTask template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** - * Creates a new CompiledTask instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledTask instance - */ - public static create(properties?: flyteidl.core.ICompiledTask): flyteidl.core.CompiledTask; - - /** - * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. - * @param message CompiledTask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledTask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledTask message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledTask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledTask; - - /** - * Verifies a CompiledTask message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CompiledWorkflowClosure. */ - interface ICompiledWorkflowClosure { - - /** CompiledWorkflowClosure primary */ - primary?: (flyteidl.core.ICompiledWorkflow|null); - - /** CompiledWorkflowClosure subWorkflows */ - subWorkflows?: (flyteidl.core.ICompiledWorkflow[]|null); - - /** CompiledWorkflowClosure tasks */ - tasks?: (flyteidl.core.ICompiledTask[]|null); - - /** CompiledWorkflowClosure launchPlans */ - launchPlans?: (flyteidl.core.ICompiledLaunchPlan[]|null); - } - - /** Represents a CompiledWorkflowClosure. */ - class CompiledWorkflowClosure implements ICompiledWorkflowClosure { - - /** - * Constructs a new CompiledWorkflowClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledWorkflowClosure); - - /** CompiledWorkflowClosure primary. */ - public primary?: (flyteidl.core.ICompiledWorkflow|null); - - /** CompiledWorkflowClosure subWorkflows. */ - public subWorkflows: flyteidl.core.ICompiledWorkflow[]; - - /** CompiledWorkflowClosure tasks. */ - public tasks: flyteidl.core.ICompiledTask[]; - - /** CompiledWorkflowClosure launchPlans. */ - public launchPlans: flyteidl.core.ICompiledLaunchPlan[]; - - /** - * Creates a new CompiledWorkflowClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledWorkflowClosure instance - */ - public static create(properties?: flyteidl.core.ICompiledWorkflowClosure): flyteidl.core.CompiledWorkflowClosure; - - /** - * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. - * @param message CompiledWorkflowClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledWorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflowClosure; - - /** - * Verifies a CompiledWorkflowClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Variable. */ - interface IVariable { - - /** Variable type */ - type?: (flyteidl.core.ILiteralType|null); - - /** Variable description */ - description?: (string|null); - - /** Variable artifactPartialId */ - artifactPartialId?: (flyteidl.core.IArtifactID|null); - - /** Variable artifactTag */ - artifactTag?: (flyteidl.core.IArtifactTag|null); - } - - /** Represents a Variable. */ - class Variable implements IVariable { - - /** - * Constructs a new Variable. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IVariable); - - /** Variable type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** Variable description. */ - public description: string; - - /** Variable artifactPartialId. */ - public artifactPartialId?: (flyteidl.core.IArtifactID|null); - - /** Variable artifactTag. */ - public artifactTag?: (flyteidl.core.IArtifactTag|null); - - /** - * Creates a new Variable instance using the specified properties. - * @param [properties] Properties to set - * @returns Variable instance - */ - public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; - - /** - * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. - * @param message Variable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Variable message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Variable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Variable; - - /** - * Verifies a Variable message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a VariableMap. */ - interface IVariableMap { - - /** VariableMap variables */ - variables?: ({ [k: string]: flyteidl.core.IVariable }|null); - } - - /** Represents a VariableMap. */ - class VariableMap implements IVariableMap { - - /** - * Constructs a new VariableMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IVariableMap); - - /** VariableMap variables. */ - public variables: { [k: string]: flyteidl.core.IVariable }; - - /** - * Creates a new VariableMap instance using the specified properties. - * @param [properties] Properties to set - * @returns VariableMap instance - */ - public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; - - /** - * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. - * @param message VariableMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VariableMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VariableMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.VariableMap; - - /** - * Verifies a VariableMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TypedInterface. */ - interface ITypedInterface { - - /** TypedInterface inputs */ - inputs?: (flyteidl.core.IVariableMap|null); - - /** TypedInterface outputs */ - outputs?: (flyteidl.core.IVariableMap|null); - } - - /** Represents a TypedInterface. */ - class TypedInterface implements ITypedInterface { - - /** - * Constructs a new TypedInterface. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITypedInterface); - - /** TypedInterface inputs. */ - public inputs?: (flyteidl.core.IVariableMap|null); - - /** TypedInterface outputs. */ - public outputs?: (flyteidl.core.IVariableMap|null); - - /** - * Creates a new TypedInterface instance using the specified properties. - * @param [properties] Properties to set - * @returns TypedInterface instance - */ - public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; - - /** - * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. - * @param message TypedInterface message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TypedInterface message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TypedInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypedInterface; - - /** - * Verifies a TypedInterface message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter var */ - "var"?: (flyteidl.core.IVariable|null); - - /** Parameter default */ - "default"?: (flyteidl.core.ILiteral|null); - - /** Parameter required */ - required?: (boolean|null); - - /** Parameter artifactQuery */ - artifactQuery?: (flyteidl.core.IArtifactQuery|null); - - /** Parameter artifactId */ - artifactId?: (flyteidl.core.IArtifactID|null); - } - - /** Represents a Parameter. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IParameter); - - /** Parameter var. */ - public var?: (flyteidl.core.IVariable|null); - - /** Parameter default. */ - public default?: (flyteidl.core.ILiteral|null); - - /** Parameter required. */ - public required: boolean; - - /** Parameter artifactQuery. */ - public artifactQuery?: (flyteidl.core.IArtifactQuery|null); - - /** Parameter artifactId. */ - public artifactId?: (flyteidl.core.IArtifactID|null); - - /** Parameter behavior. */ - public behavior?: ("default"|"required"|"artifactQuery"|"artifactId"); - - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Parameter; - - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ParameterMap. */ - interface IParameterMap { - - /** ParameterMap parameters */ - parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); - } - - /** Represents a ParameterMap. */ - class ParameterMap implements IParameterMap { - - /** - * Constructs a new ParameterMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IParameterMap); - - /** ParameterMap parameters. */ - public parameters: { [k: string]: flyteidl.core.IParameter }; - - /** - * Creates a new ParameterMap instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterMap instance - */ - public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; - - /** - * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. - * @param message ParameterMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParameterMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ParameterMap; - - /** - * Verifies a ParameterMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** SimpleType enum. */ - enum SimpleType { - NONE = 0, - INTEGER = 1, - FLOAT = 2, - STRING = 3, - BOOLEAN = 4, - DATETIME = 5, - DURATION = 6, - BINARY = 7, - ERROR = 8, - STRUCT = 9 - } - - /** Properties of a SchemaType. */ - interface ISchemaType { - - /** SchemaType columns */ - columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); - } - - /** Represents a SchemaType. */ - class SchemaType implements ISchemaType { - - /** - * Constructs a new SchemaType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISchemaType); - - /** SchemaType columns. */ - public columns: flyteidl.core.SchemaType.ISchemaColumn[]; - - /** - * Creates a new SchemaType instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaType instance - */ - public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; - - /** - * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. - * @param message SchemaType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType; - - /** - * Verifies a SchemaType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace SchemaType { - - /** Properties of a SchemaColumn. */ - interface ISchemaColumn { - - /** SchemaColumn name */ - name?: (string|null); - - /** SchemaColumn type */ - type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); - } - - /** Represents a SchemaColumn. */ - class SchemaColumn implements ISchemaColumn { - - /** - * Constructs a new SchemaColumn. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); - - /** SchemaColumn name. */ - public name: string; - - /** SchemaColumn type. */ - public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; - - /** - * Creates a new SchemaColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaColumn instance - */ - public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; - - /** - * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. - * @param message SchemaColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType.SchemaColumn; - - /** - * Verifies a SchemaColumn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace SchemaColumn { - - /** SchemaColumnType enum. */ - enum SchemaColumnType { - INTEGER = 0, - FLOAT = 1, - STRING = 2, - BOOLEAN = 3, - DATETIME = 4, - DURATION = 5 - } - } - } - - /** Properties of a StructuredDatasetType. */ - interface IStructuredDatasetType { - - /** StructuredDatasetType columns */ - columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null); - - /** StructuredDatasetType format */ - format?: (string|null); - - /** StructuredDatasetType externalSchemaType */ - externalSchemaType?: (string|null); - - /** StructuredDatasetType externalSchemaBytes */ - externalSchemaBytes?: (Uint8Array|null); - } - - /** Represents a StructuredDatasetType. */ - class StructuredDatasetType implements IStructuredDatasetType { - - /** - * Constructs a new StructuredDatasetType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IStructuredDatasetType); - - /** StructuredDatasetType columns. */ - public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[]; - - /** StructuredDatasetType format. */ - public format: string; - - /** StructuredDatasetType externalSchemaType. */ - public externalSchemaType: string; - - /** StructuredDatasetType externalSchemaBytes. */ - public externalSchemaBytes: Uint8Array; - - /** - * Creates a new StructuredDatasetType instance using the specified properties. - * @param [properties] Properties to set - * @returns StructuredDatasetType instance - */ - public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType; - - /** - * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. - * @param message StructuredDatasetType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StructuredDatasetType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StructuredDatasetType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType; - - /** - * Verifies a StructuredDatasetType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace StructuredDatasetType { - - /** Properties of a DatasetColumn. */ - interface IDatasetColumn { - - /** DatasetColumn name */ - name?: (string|null); - - /** DatasetColumn literalType */ - literalType?: (flyteidl.core.ILiteralType|null); - } - - /** Represents a DatasetColumn. */ - class DatasetColumn implements IDatasetColumn { - - /** - * Constructs a new DatasetColumn. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn); - - /** DatasetColumn name. */ - public name: string; - - /** DatasetColumn literalType. */ - public literalType?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new DatasetColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns DatasetColumn instance - */ - public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn; - - /** - * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. - * @param message DatasetColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DatasetColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DatasetColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType.DatasetColumn; - - /** - * Verifies a DatasetColumn message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Properties of a BlobType. */ - interface IBlobType { - - /** BlobType format */ - format?: (string|null); - - /** BlobType dimensionality */ - dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); - } - - /** Represents a BlobType. */ - class BlobType implements IBlobType { - - /** - * Constructs a new BlobType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBlobType); - - /** BlobType format. */ - public format: string; - - /** BlobType dimensionality. */ - public dimensionality: flyteidl.core.BlobType.BlobDimensionality; - - /** - * Creates a new BlobType instance using the specified properties. - * @param [properties] Properties to set - * @returns BlobType instance - */ - public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; - - /** - * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. - * @param message BlobType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BlobType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BlobType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobType; - - /** - * Verifies a BlobType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace BlobType { - - /** BlobDimensionality enum. */ - enum BlobDimensionality { - SINGLE = 0, - MULTIPART = 1 - } - } - - /** Properties of an EnumType. */ - interface IEnumType { - - /** EnumType values */ - values?: (string[]|null); - } - - /** Represents an EnumType. */ - class EnumType implements IEnumType { - - /** - * Constructs a new EnumType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IEnumType); - - /** EnumType values. */ - public values: string[]; - - /** - * Creates a new EnumType instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumType instance - */ - public static create(properties?: flyteidl.core.IEnumType): flyteidl.core.EnumType; - - /** - * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. - * @param message EnumType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IEnumType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.EnumType; - - /** - * Verifies an EnumType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an UnionType. */ - interface IUnionType { - - /** UnionType variants */ - variants?: (flyteidl.core.ILiteralType[]|null); - } - - /** Represents an UnionType. */ - class UnionType implements IUnionType { - - /** - * Constructs a new UnionType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IUnionType); - - /** UnionType variants. */ - public variants: flyteidl.core.ILiteralType[]; - - /** - * Creates a new UnionType instance using the specified properties. - * @param [properties] Properties to set - * @returns UnionType instance - */ - public static create(properties?: flyteidl.core.IUnionType): flyteidl.core.UnionType; - - /** - * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. - * @param message UnionType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IUnionType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnionType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnionType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionType; - - /** - * Verifies an UnionType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TypeStructure. */ - interface ITypeStructure { - - /** TypeStructure tag */ - tag?: (string|null); - - /** TypeStructure dataclassType */ - dataclassType?: ({ [k: string]: flyteidl.core.ILiteralType }|null); - } - - /** Represents a TypeStructure. */ - class TypeStructure implements ITypeStructure { - - /** - * Constructs a new TypeStructure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITypeStructure); - - /** TypeStructure tag. */ - public tag: string; - - /** TypeStructure dataclassType. */ - public dataclassType: { [k: string]: flyteidl.core.ILiteralType }; - - /** - * Creates a new TypeStructure instance using the specified properties. - * @param [properties] Properties to set - * @returns TypeStructure instance - */ - public static create(properties?: flyteidl.core.ITypeStructure): flyteidl.core.TypeStructure; - - /** - * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. - * @param message TypeStructure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITypeStructure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TypeStructure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TypeStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeStructure; - - /** - * Verifies a TypeStructure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TypeAnnotation. */ - interface ITypeAnnotation { - - /** TypeAnnotation annotations */ - annotations?: (google.protobuf.IStruct|null); - } - - /** Represents a TypeAnnotation. */ - class TypeAnnotation implements ITypeAnnotation { - - /** - * Constructs a new TypeAnnotation. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITypeAnnotation); - - /** TypeAnnotation annotations. */ - public annotations?: (google.protobuf.IStruct|null); - - /** - * Creates a new TypeAnnotation instance using the specified properties. - * @param [properties] Properties to set - * @returns TypeAnnotation instance - */ - public static create(properties?: flyteidl.core.ITypeAnnotation): flyteidl.core.TypeAnnotation; - - /** - * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. - * @param message TypeAnnotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITypeAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TypeAnnotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TypeAnnotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeAnnotation; - - /** - * Verifies a TypeAnnotation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LiteralType. */ - interface ILiteralType { - - /** LiteralType simple */ - simple?: (flyteidl.core.SimpleType|null); - - /** LiteralType schema */ - schema?: (flyteidl.core.ISchemaType|null); - - /** LiteralType collectionType */ - collectionType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType mapValueType */ - mapValueType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType blob */ - blob?: (flyteidl.core.IBlobType|null); - - /** LiteralType enumType */ - enumType?: (flyteidl.core.IEnumType|null); - - /** LiteralType structuredDatasetType */ - structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** LiteralType unionType */ - unionType?: (flyteidl.core.IUnionType|null); - - /** LiteralType metadata */ - metadata?: (google.protobuf.IStruct|null); - - /** LiteralType annotation */ - annotation?: (flyteidl.core.ITypeAnnotation|null); - - /** LiteralType structure */ - structure?: (flyteidl.core.ITypeStructure|null); - } - - /** Represents a LiteralType. */ - class LiteralType implements ILiteralType { - - /** - * Constructs a new LiteralType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteralType); - - /** LiteralType simple. */ - public simple: flyteidl.core.SimpleType; - - /** LiteralType schema. */ - public schema?: (flyteidl.core.ISchemaType|null); - - /** LiteralType collectionType. */ - public collectionType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType mapValueType. */ - public mapValueType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType blob. */ - public blob?: (flyteidl.core.IBlobType|null); - - /** LiteralType enumType. */ - public enumType?: (flyteidl.core.IEnumType|null); - - /** LiteralType structuredDatasetType. */ - public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** LiteralType unionType. */ - public unionType?: (flyteidl.core.IUnionType|null); - - /** LiteralType metadata. */ - public metadata?: (google.protobuf.IStruct|null); - - /** LiteralType annotation. */ - public annotation?: (flyteidl.core.ITypeAnnotation|null); - - /** LiteralType structure. */ - public structure?: (flyteidl.core.ITypeStructure|null); - - /** LiteralType type. */ - public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"); - - /** - * Creates a new LiteralType instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralType instance - */ - public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; - - /** - * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. - * @param message LiteralType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralType; - - /** - * Verifies a LiteralType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an OutputReference. */ - interface IOutputReference { - - /** OutputReference nodeId */ - nodeId?: (string|null); - - /** OutputReference var */ - "var"?: (string|null); - - /** OutputReference attrPath */ - attrPath?: (flyteidl.core.IPromiseAttribute[]|null); - } - - /** Represents an OutputReference. */ - class OutputReference implements IOutputReference { - - /** - * Constructs a new OutputReference. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOutputReference); - - /** OutputReference nodeId. */ - public nodeId: string; - - /** OutputReference var. */ - public var: string; - - /** OutputReference attrPath. */ - public attrPath: flyteidl.core.IPromiseAttribute[]; - - /** - * Creates a new OutputReference instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputReference instance - */ - public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; - - /** - * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. - * @param message OutputReference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OutputReference message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OutputReference; - - /** - * Verifies an OutputReference message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a PromiseAttribute. */ - interface IPromiseAttribute { - - /** PromiseAttribute stringValue */ - stringValue?: (string|null); - - /** PromiseAttribute intValue */ - intValue?: (number|null); - } - - /** Represents a PromiseAttribute. */ - class PromiseAttribute implements IPromiseAttribute { - - /** - * Constructs a new PromiseAttribute. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IPromiseAttribute); - - /** PromiseAttribute stringValue. */ - public stringValue: string; - - /** PromiseAttribute intValue. */ - public intValue: number; - - /** PromiseAttribute value. */ - public value?: ("stringValue"|"intValue"); - - /** - * Creates a new PromiseAttribute instance using the specified properties. - * @param [properties] Properties to set - * @returns PromiseAttribute instance - */ - public static create(properties?: flyteidl.core.IPromiseAttribute): flyteidl.core.PromiseAttribute; - - /** - * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. - * @param message PromiseAttribute message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IPromiseAttribute, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PromiseAttribute message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PromiseAttribute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.PromiseAttribute; - - /** - * Verifies a PromiseAttribute message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Error. */ - interface IError { - - /** Error failedNodeId */ - failedNodeId?: (string|null); - - /** Error message */ - message?: (string|null); - } - - /** Represents an Error. */ - class Error implements IError { - - /** - * Constructs a new Error. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IError); - - /** Error failedNodeId. */ - public failedNodeId: string; - - /** Error message. */ - public message: string; - - /** - * Creates a new Error instance using the specified properties. - * @param [properties] Properties to set - * @returns Error instance - */ - public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; - - /** - * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. - * @param message Error message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Error message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Error; - - /** - * Verifies an Error message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Primitive. */ - interface IPrimitive { - - /** Primitive integer */ - integer?: (Long|null); - - /** Primitive floatValue */ - floatValue?: (number|null); - - /** Primitive stringValue */ - stringValue?: (string|null); - - /** Primitive boolean */ - boolean?: (boolean|null); - - /** Primitive datetime */ - datetime?: (google.protobuf.ITimestamp|null); - - /** Primitive duration */ - duration?: (google.protobuf.IDuration|null); - } - - /** Represents a Primitive. */ - class Primitive implements IPrimitive { - - /** - * Constructs a new Primitive. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IPrimitive); - - /** Primitive integer. */ - public integer: Long; - - /** Primitive floatValue. */ - public floatValue: number; - - /** Primitive stringValue. */ - public stringValue: string; - - /** Primitive boolean. */ - public boolean: boolean; - - /** Primitive datetime. */ - public datetime?: (google.protobuf.ITimestamp|null); - - /** Primitive duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** Primitive value. */ - public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); - - /** - * Creates a new Primitive instance using the specified properties. - * @param [properties] Properties to set - * @returns Primitive instance - */ - public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; - - /** - * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. - * @param message Primitive message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Primitive message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Primitive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Primitive; - - /** - * Verifies a Primitive message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Void. */ - interface IVoid { - } - - /** Represents a Void. */ - class Void implements IVoid { - - /** - * Constructs a new Void. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IVoid); - - /** - * Creates a new Void instance using the specified properties. - * @param [properties] Properties to set - * @returns Void instance - */ - public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; - - /** - * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. - * @param message Void message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Void message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Void - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Void; - - /** - * Verifies a Void message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Blob. */ - interface IBlob { - - /** Blob metadata */ - metadata?: (flyteidl.core.IBlobMetadata|null); - - /** Blob uri */ - uri?: (string|null); - } - - /** Represents a Blob. */ - class Blob implements IBlob { - - /** - * Constructs a new Blob. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBlob); - - /** Blob metadata. */ - public metadata?: (flyteidl.core.IBlobMetadata|null); - - /** Blob uri. */ - public uri: string; - - /** - * Creates a new Blob instance using the specified properties. - * @param [properties] Properties to set - * @returns Blob instance - */ - public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; - - /** - * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. - * @param message Blob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Blob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Blob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Blob; - - /** - * Verifies a Blob message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BlobMetadata. */ - interface IBlobMetadata { - - /** BlobMetadata type */ - type?: (flyteidl.core.IBlobType|null); - } - - /** Represents a BlobMetadata. */ - class BlobMetadata implements IBlobMetadata { - - /** - * Constructs a new BlobMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBlobMetadata); - - /** BlobMetadata type. */ - public type?: (flyteidl.core.IBlobType|null); - - /** - * Creates a new BlobMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns BlobMetadata instance - */ - public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; - - /** - * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. - * @param message BlobMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BlobMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BlobMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobMetadata; - - /** - * Verifies a BlobMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Binary. */ - interface IBinary { - - /** Binary value */ - value?: (Uint8Array|null); - - /** Binary tag */ - tag?: (string|null); - } - - /** Represents a Binary. */ - class Binary implements IBinary { - - /** - * Constructs a new Binary. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBinary); - - /** Binary value. */ - public value: Uint8Array; - - /** Binary tag. */ - public tag: string; - - /** - * Creates a new Binary instance using the specified properties. - * @param [properties] Properties to set - * @returns Binary instance - */ - public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; - - /** - * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. - * @param message Binary message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Binary message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Binary - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binary; - - /** - * Verifies a Binary message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Schema. */ - interface ISchema { - - /** Schema uri */ - uri?: (string|null); - - /** Schema type */ - type?: (flyteidl.core.ISchemaType|null); - } - - /** Represents a Schema. */ - class Schema implements ISchema { - - /** - * Constructs a new Schema. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISchema); - - /** Schema uri. */ - public uri: string; - - /** Schema type. */ - public type?: (flyteidl.core.ISchemaType|null); - - /** - * Creates a new Schema instance using the specified properties. - * @param [properties] Properties to set - * @returns Schema instance - */ - public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; - - /** - * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. - * @param message Schema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Schema message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Schema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Schema; - - /** - * Verifies a Schema message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Union. */ - interface IUnion { - - /** Union value */ - value?: (flyteidl.core.ILiteral|null); - - /** Union type */ - type?: (flyteidl.core.ILiteralType|null); - } - - /** Represents an Union. */ - class Union implements IUnion { - - /** - * Constructs a new Union. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IUnion); - - /** Union value. */ - public value?: (flyteidl.core.ILiteral|null); - - /** Union type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new Union instance using the specified properties. - * @param [properties] Properties to set - * @returns Union instance - */ - public static create(properties?: flyteidl.core.IUnion): flyteidl.core.Union; - - /** - * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. - * @param message Union message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Union message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Union - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Union; - - /** - * Verifies an Union message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a StructuredDatasetMetadata. */ - interface IStructuredDatasetMetadata { - - /** StructuredDatasetMetadata structuredDatasetType */ - structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - } - - /** Represents a StructuredDatasetMetadata. */ - class StructuredDatasetMetadata implements IStructuredDatasetMetadata { - - /** - * Constructs a new StructuredDatasetMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IStructuredDatasetMetadata); - - /** StructuredDatasetMetadata structuredDatasetType. */ - public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** - * Creates a new StructuredDatasetMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns StructuredDatasetMetadata instance - */ - public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata; - - /** - * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. - * @param message StructuredDatasetMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StructuredDatasetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetMetadata; - - /** - * Verifies a StructuredDatasetMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a StructuredDataset. */ - interface IStructuredDataset { - - /** StructuredDataset uri */ - uri?: (string|null); - - /** StructuredDataset metadata */ - metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); - } - - /** Represents a StructuredDataset. */ - class StructuredDataset implements IStructuredDataset { - - /** - * Constructs a new StructuredDataset. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IStructuredDataset); - - /** StructuredDataset uri. */ - public uri: string; - - /** StructuredDataset metadata. */ - public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); - - /** - * Creates a new StructuredDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns StructuredDataset instance - */ - public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset; - - /** - * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. - * @param message StructuredDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StructuredDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StructuredDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDataset; - - /** - * Verifies a StructuredDataset message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Scalar. */ - interface IScalar { - - /** Scalar primitive */ - primitive?: (flyteidl.core.IPrimitive|null); - - /** Scalar blob */ - blob?: (flyteidl.core.IBlob|null); - - /** Scalar binary */ - binary?: (flyteidl.core.IBinary|null); - - /** Scalar schema */ - schema?: (flyteidl.core.ISchema|null); - - /** Scalar noneType */ - noneType?: (flyteidl.core.IVoid|null); - - /** Scalar error */ - error?: (flyteidl.core.IError|null); - - /** Scalar generic */ - generic?: (google.protobuf.IStruct|null); - - /** Scalar structuredDataset */ - structuredDataset?: (flyteidl.core.IStructuredDataset|null); - - /** Scalar union */ - union?: (flyteidl.core.IUnion|null); - } - - /** Represents a Scalar. */ - class Scalar implements IScalar { - - /** - * Constructs a new Scalar. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IScalar); - - /** Scalar primitive. */ - public primitive?: (flyteidl.core.IPrimitive|null); - - /** Scalar blob. */ - public blob?: (flyteidl.core.IBlob|null); - - /** Scalar binary. */ - public binary?: (flyteidl.core.IBinary|null); - - /** Scalar schema. */ - public schema?: (flyteidl.core.ISchema|null); - - /** Scalar noneType. */ - public noneType?: (flyteidl.core.IVoid|null); - - /** Scalar error. */ - public error?: (flyteidl.core.IError|null); - - /** Scalar generic. */ - public generic?: (google.protobuf.IStruct|null); - - /** Scalar structuredDataset. */ - public structuredDataset?: (flyteidl.core.IStructuredDataset|null); - - /** Scalar union. */ - public union?: (flyteidl.core.IUnion|null); - - /** Scalar value. */ - public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"); - - /** - * Creates a new Scalar instance using the specified properties. - * @param [properties] Properties to set - * @returns Scalar instance - */ - public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; - - /** - * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Scalar message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scalar - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Scalar; - - /** - * Verifies a Scalar message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Literal. */ - interface ILiteral { - - /** Literal scalar */ - scalar?: (flyteidl.core.IScalar|null); - - /** Literal collection */ - collection?: (flyteidl.core.ILiteralCollection|null); - - /** Literal map */ - map?: (flyteidl.core.ILiteralMap|null); - - /** Literal hash */ - hash?: (string|null); - - /** Literal metadata */ - metadata?: ({ [k: string]: string }|null); - } - - /** Represents a Literal. */ - class Literal implements ILiteral { - - /** - * Constructs a new Literal. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteral); - - /** Literal scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** Literal collection. */ - public collection?: (flyteidl.core.ILiteralCollection|null); - - /** Literal map. */ - public map?: (flyteidl.core.ILiteralMap|null); - - /** Literal hash. */ - public hash: string; - - /** Literal metadata. */ - public metadata: { [k: string]: string }; - - /** Literal value. */ - public value?: ("scalar"|"collection"|"map"); - - /** - * Creates a new Literal instance using the specified properties. - * @param [properties] Properties to set - * @returns Literal instance - */ - public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; - - /** - * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. - * @param message Literal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Literal message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Literal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Literal; - - /** - * Verifies a Literal message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LiteralCollection. */ - interface ILiteralCollection { - - /** LiteralCollection literals */ - literals?: (flyteidl.core.ILiteral[]|null); - } - - /** Represents a LiteralCollection. */ - class LiteralCollection implements ILiteralCollection { - - /** - * Constructs a new LiteralCollection. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteralCollection); - - /** LiteralCollection literals. */ - public literals: flyteidl.core.ILiteral[]; - - /** - * Creates a new LiteralCollection instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralCollection instance - */ - public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; - - /** - * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. - * @param message LiteralCollection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralCollection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralCollection; - - /** - * Verifies a LiteralCollection message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LiteralMap. */ - interface ILiteralMap { - - /** LiteralMap literals */ - literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); - } - - /** Represents a LiteralMap. */ - class LiteralMap implements ILiteralMap { - - /** - * Constructs a new LiteralMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteralMap); - - /** LiteralMap literals. */ - public literals: { [k: string]: flyteidl.core.ILiteral }; - - /** - * Creates a new LiteralMap instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralMap instance - */ - public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; - - /** - * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. - * @param message LiteralMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralMap; - - /** - * Verifies a LiteralMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BindingDataCollection. */ - interface IBindingDataCollection { - - /** BindingDataCollection bindings */ - bindings?: (flyteidl.core.IBindingData[]|null); - } - - /** Represents a BindingDataCollection. */ - class BindingDataCollection implements IBindingDataCollection { - - /** - * Constructs a new BindingDataCollection. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBindingDataCollection); - - /** BindingDataCollection bindings. */ - public bindings: flyteidl.core.IBindingData[]; - - /** - * Creates a new BindingDataCollection instance using the specified properties. - * @param [properties] Properties to set - * @returns BindingDataCollection instance - */ - public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; - - /** - * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. - * @param message BindingDataCollection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindingDataCollection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindingDataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataCollection; - - /** - * Verifies a BindingDataCollection message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BindingDataMap. */ - interface IBindingDataMap { - - /** BindingDataMap bindings */ - bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); - } - - /** Represents a BindingDataMap. */ - class BindingDataMap implements IBindingDataMap { - - /** - * Constructs a new BindingDataMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBindingDataMap); - - /** BindingDataMap bindings. */ - public bindings: { [k: string]: flyteidl.core.IBindingData }; - - /** - * Creates a new BindingDataMap instance using the specified properties. - * @param [properties] Properties to set - * @returns BindingDataMap instance - */ - public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; - - /** - * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. - * @param message BindingDataMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindingDataMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindingDataMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataMap; - - /** - * Verifies a BindingDataMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an UnionInfo. */ - interface IUnionInfo { - - /** UnionInfo targetType */ - targetType?: (flyteidl.core.ILiteralType|null); - } - - /** Represents an UnionInfo. */ - class UnionInfo implements IUnionInfo { - - /** - * Constructs a new UnionInfo. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IUnionInfo); - - /** UnionInfo targetType. */ - public targetType?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new UnionInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns UnionInfo instance - */ - public static create(properties?: flyteidl.core.IUnionInfo): flyteidl.core.UnionInfo; - - /** - * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. - * @param message UnionInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IUnionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnionInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionInfo; - - /** - * Verifies an UnionInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BindingData. */ - interface IBindingData { - - /** BindingData scalar */ - scalar?: (flyteidl.core.IScalar|null); - - /** BindingData collection */ - collection?: (flyteidl.core.IBindingDataCollection|null); - - /** BindingData promise */ - promise?: (flyteidl.core.IOutputReference|null); - - /** BindingData map */ - map?: (flyteidl.core.IBindingDataMap|null); - - /** BindingData union */ - union?: (flyteidl.core.IUnionInfo|null); - } - - /** Represents a BindingData. */ - class BindingData implements IBindingData { - - /** - * Constructs a new BindingData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBindingData); - - /** BindingData scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** BindingData collection. */ - public collection?: (flyteidl.core.IBindingDataCollection|null); - - /** BindingData promise. */ - public promise?: (flyteidl.core.IOutputReference|null); - - /** BindingData map. */ - public map?: (flyteidl.core.IBindingDataMap|null); - - /** BindingData union. */ - public union?: (flyteidl.core.IUnionInfo|null); - - /** BindingData value. */ - public value?: ("scalar"|"collection"|"promise"|"map"); - - /** - * Creates a new BindingData instance using the specified properties. - * @param [properties] Properties to set - * @returns BindingData instance - */ - public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; - - /** - * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. - * @param message BindingData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindingData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingData; - - /** - * Verifies a BindingData message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Binding. */ - interface IBinding { - - /** Binding var */ - "var"?: (string|null); - - /** Binding binding */ - binding?: (flyteidl.core.IBindingData|null); - } - - /** Represents a Binding. */ - class Binding implements IBinding { - - /** - * Constructs a new Binding. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBinding); - - /** Binding var. */ - public var: string; - - /** Binding binding. */ - public binding?: (flyteidl.core.IBindingData|null); - - /** - * Creates a new Binding instance using the specified properties. - * @param [properties] Properties to set - * @returns Binding instance - */ - public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; - - /** - * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. - * @param message Binding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Binding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Binding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binding; - - /** - * Verifies a Binding message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a KeyValuePair. */ - interface IKeyValuePair { - - /** KeyValuePair key */ - key?: (string|null); - - /** KeyValuePair value */ - value?: (string|null); - } - - /** Represents a KeyValuePair. */ - class KeyValuePair implements IKeyValuePair { - - /** - * Constructs a new KeyValuePair. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IKeyValuePair); - - /** KeyValuePair key. */ - public key: string; - - /** KeyValuePair value. */ - public value: string; - - /** - * Creates a new KeyValuePair instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyValuePair instance - */ - public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; - - /** - * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. - * @param message KeyValuePair message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyValuePair message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeyValuePair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.KeyValuePair; - - /** - * Verifies a KeyValuePair message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a RetryStrategy. */ - interface IRetryStrategy { - - /** RetryStrategy retries */ - retries?: (number|null); - } - - /** Represents a RetryStrategy. */ - class RetryStrategy implements IRetryStrategy { - - /** - * Constructs a new RetryStrategy. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IRetryStrategy); - - /** RetryStrategy retries. */ - public retries: number; - - /** - * Creates a new RetryStrategy instance using the specified properties. - * @param [properties] Properties to set - * @returns RetryStrategy instance - */ - public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; - - /** - * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. - * @param message RetryStrategy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetryStrategy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetryStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RetryStrategy; - - /** - * Verifies a RetryStrategy message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an IfBlock. */ - interface IIfBlock { - - /** IfBlock condition */ - condition?: (flyteidl.core.IBooleanExpression|null); - - /** IfBlock thenNode */ - thenNode?: (flyteidl.core.INode|null); - } - - /** Represents an IfBlock. */ - class IfBlock implements IIfBlock { - - /** - * Constructs a new IfBlock. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIfBlock); - - /** IfBlock condition. */ - public condition?: (flyteidl.core.IBooleanExpression|null); - - /** IfBlock thenNode. */ - public thenNode?: (flyteidl.core.INode|null); - - /** - * Creates a new IfBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns IfBlock instance - */ - public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; - - /** - * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. - * @param message IfBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IfBlock message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IfBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfBlock; - - /** - * Verifies an IfBlock message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an IfElseBlock. */ - interface IIfElseBlock { - - /** IfElseBlock case */ - "case"?: (flyteidl.core.IIfBlock|null); - - /** IfElseBlock other */ - other?: (flyteidl.core.IIfBlock[]|null); - - /** IfElseBlock elseNode */ - elseNode?: (flyteidl.core.INode|null); - - /** IfElseBlock error */ - error?: (flyteidl.core.IError|null); - } - - /** Represents an IfElseBlock. */ - class IfElseBlock implements IIfElseBlock { - - /** - * Constructs a new IfElseBlock. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIfElseBlock); - - /** IfElseBlock case. */ - public case?: (flyteidl.core.IIfBlock|null); - - /** IfElseBlock other. */ - public other: flyteidl.core.IIfBlock[]; - - /** IfElseBlock elseNode. */ - public elseNode?: (flyteidl.core.INode|null); - - /** IfElseBlock error. */ - public error?: (flyteidl.core.IError|null); - - /** IfElseBlock default. */ - public default_?: ("elseNode"|"error"); - - /** - * Creates a new IfElseBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns IfElseBlock instance - */ - public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; - - /** - * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. - * @param message IfElseBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IfElseBlock message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IfElseBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfElseBlock; - - /** - * Verifies an IfElseBlock message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BranchNode. */ - interface IBranchNode { - - /** BranchNode ifElse */ - ifElse?: (flyteidl.core.IIfElseBlock|null); - } - - /** Represents a BranchNode. */ - class BranchNode implements IBranchNode { - - /** - * Constructs a new BranchNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBranchNode); - - /** BranchNode ifElse. */ - public ifElse?: (flyteidl.core.IIfElseBlock|null); - - /** - * Creates a new BranchNode instance using the specified properties. - * @param [properties] Properties to set - * @returns BranchNode instance - */ - public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; - - /** - * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. - * @param message BranchNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BranchNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BranchNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BranchNode; - - /** - * Verifies a BranchNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskNode. */ - interface ITaskNode { - - /** TaskNode referenceId */ - referenceId?: (flyteidl.core.IIdentifier|null); - - /** TaskNode overrides */ - overrides?: (flyteidl.core.ITaskNodeOverrides|null); - } - - /** Represents a TaskNode. */ - class TaskNode implements ITaskNode { - - /** - * Constructs a new TaskNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskNode); - - /** TaskNode referenceId. */ - public referenceId?: (flyteidl.core.IIdentifier|null); - - /** TaskNode overrides. */ - public overrides?: (flyteidl.core.ITaskNodeOverrides|null); - - /** TaskNode reference. */ - public reference?: "referenceId"; - - /** - * Creates a new TaskNode instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNode instance - */ - public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; - - /** - * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. - * @param message TaskNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNode; - - /** - * Verifies a TaskNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowNode. */ - interface IWorkflowNode { - - /** WorkflowNode launchplanRef */ - launchplanRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode subWorkflowRef */ - subWorkflowRef?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a WorkflowNode. */ - class WorkflowNode implements IWorkflowNode { - - /** - * Constructs a new WorkflowNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowNode); - - /** WorkflowNode launchplanRef. */ - public launchplanRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode subWorkflowRef. */ - public subWorkflowRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode reference. */ - public reference?: ("launchplanRef"|"subWorkflowRef"); - - /** - * Creates a new WorkflowNode instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowNode instance - */ - public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; - - /** - * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. - * @param message WorkflowNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowNode; - - /** - * Verifies a WorkflowNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ApproveCondition. */ - interface IApproveCondition { - - /** ApproveCondition signalId */ - signalId?: (string|null); - } - - /** Represents an ApproveCondition. */ - class ApproveCondition implements IApproveCondition { - - /** - * Constructs a new ApproveCondition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IApproveCondition); - - /** ApproveCondition signalId. */ - public signalId: string; - - /** - * Creates a new ApproveCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns ApproveCondition instance - */ - public static create(properties?: flyteidl.core.IApproveCondition): flyteidl.core.ApproveCondition; - - /** - * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. - * @param message ApproveCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IApproveCondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApproveCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApproveCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ApproveCondition; - - /** - * Verifies an ApproveCondition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalCondition. */ - interface ISignalCondition { - - /** SignalCondition signalId */ - signalId?: (string|null); - - /** SignalCondition type */ - type?: (flyteidl.core.ILiteralType|null); - - /** SignalCondition outputVariableName */ - outputVariableName?: (string|null); - } - - /** Represents a SignalCondition. */ - class SignalCondition implements ISignalCondition { - - /** - * Constructs a new SignalCondition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISignalCondition); - - /** SignalCondition signalId. */ - public signalId: string; - - /** SignalCondition type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** SignalCondition outputVariableName. */ - public outputVariableName: string; - - /** - * Creates a new SignalCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalCondition instance - */ - public static create(properties?: flyteidl.core.ISignalCondition): flyteidl.core.SignalCondition; - - /** - * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. - * @param message SignalCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISignalCondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalCondition; - - /** - * Verifies a SignalCondition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SleepCondition. */ - interface ISleepCondition { - - /** SleepCondition duration */ - duration?: (google.protobuf.IDuration|null); - } - - /** Represents a SleepCondition. */ - class SleepCondition implements ISleepCondition { - - /** - * Constructs a new SleepCondition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISleepCondition); - - /** SleepCondition duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** - * Creates a new SleepCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns SleepCondition instance - */ - public static create(properties?: flyteidl.core.ISleepCondition): flyteidl.core.SleepCondition; - - /** - * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. - * @param message SleepCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISleepCondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SleepCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SleepCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SleepCondition; - - /** - * Verifies a SleepCondition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GateNode. */ - interface IGateNode { - - /** GateNode approve */ - approve?: (flyteidl.core.IApproveCondition|null); - - /** GateNode signal */ - signal?: (flyteidl.core.ISignalCondition|null); - - /** GateNode sleep */ - sleep?: (flyteidl.core.ISleepCondition|null); - } - - /** Represents a GateNode. */ - class GateNode implements IGateNode { - - /** - * Constructs a new GateNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IGateNode); - - /** GateNode approve. */ - public approve?: (flyteidl.core.IApproveCondition|null); - - /** GateNode signal. */ - public signal?: (flyteidl.core.ISignalCondition|null); - - /** GateNode sleep. */ - public sleep?: (flyteidl.core.ISleepCondition|null); - - /** GateNode condition. */ - public condition?: ("approve"|"signal"|"sleep"); - - /** - * Creates a new GateNode instance using the specified properties. - * @param [properties] Properties to set - * @returns GateNode instance - */ - public static create(properties?: flyteidl.core.IGateNode): flyteidl.core.GateNode; - - /** - * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. - * @param message GateNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IGateNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GateNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GateNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GateNode; - - /** - * Verifies a GateNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ArrayNode. */ - interface IArrayNode { - - /** ArrayNode node */ - node?: (flyteidl.core.INode|null); - - /** ArrayNode parallelism */ - parallelism?: (number|null); - - /** ArrayNode minSuccesses */ - minSuccesses?: (number|null); - - /** ArrayNode minSuccessRatio */ - minSuccessRatio?: (number|null); - } - - /** Represents an ArrayNode. */ - class ArrayNode implements IArrayNode { - - /** - * Constructs a new ArrayNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArrayNode); - - /** ArrayNode node. */ - public node?: (flyteidl.core.INode|null); - - /** ArrayNode parallelism. */ - public parallelism: number; - - /** ArrayNode minSuccesses. */ - public minSuccesses: number; - - /** ArrayNode minSuccessRatio. */ - public minSuccessRatio: number; - - /** ArrayNode successCriteria. */ - public successCriteria?: ("minSuccesses"|"minSuccessRatio"); - - /** - * Creates a new ArrayNode instance using the specified properties. - * @param [properties] Properties to set - * @returns ArrayNode instance - */ - public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode; - - /** - * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. - * @param message ArrayNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArrayNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArrayNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArrayNode; - - /** - * Verifies an ArrayNode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeMetadata. */ - interface INodeMetadata { - - /** NodeMetadata name */ - name?: (string|null); - - /** NodeMetadata timeout */ - timeout?: (google.protobuf.IDuration|null); - - /** NodeMetadata retries */ - retries?: (flyteidl.core.IRetryStrategy|null); - - /** NodeMetadata interruptible */ - interruptible?: (boolean|null); - - /** NodeMetadata cacheable */ - cacheable?: (boolean|null); - - /** NodeMetadata cacheVersion */ - cacheVersion?: (string|null); - - /** NodeMetadata cacheSerializable */ - cacheSerializable?: (boolean|null); - } - - /** Represents a NodeMetadata. */ - class NodeMetadata implements INodeMetadata { - - /** - * Constructs a new NodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INodeMetadata); - - /** NodeMetadata name. */ - public name: string; - - /** NodeMetadata timeout. */ - public timeout?: (google.protobuf.IDuration|null); - - /** NodeMetadata retries. */ - public retries?: (flyteidl.core.IRetryStrategy|null); - - /** NodeMetadata interruptible. */ - public interruptible: boolean; - - /** NodeMetadata cacheable. */ - public cacheable: boolean; - - /** NodeMetadata cacheVersion. */ - public cacheVersion: string; - - /** NodeMetadata cacheSerializable. */ - public cacheSerializable: boolean; - - /** NodeMetadata interruptibleValue. */ - public interruptibleValue?: "interruptible"; - - /** NodeMetadata cacheableValue. */ - public cacheableValue?: "cacheable"; - - /** NodeMetadata cacheVersionValue. */ - public cacheVersionValue?: "cacheVersion"; - - /** NodeMetadata cacheSerializableValue. */ - public cacheSerializableValue?: "cacheSerializable"; - - /** - * Creates a new NodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeMetadata instance - */ - public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; - - /** - * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. - * @param message NodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeMetadata; - - /** - * Verifies a NodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Alias. */ - interface IAlias { - - /** Alias var */ - "var"?: (string|null); - - /** Alias alias */ - alias?: (string|null); - } - - /** Represents an Alias. */ - class Alias implements IAlias { - - /** - * Constructs a new Alias. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IAlias); - - /** Alias var. */ - public var: string; - - /** Alias alias. */ - public alias: string; - - /** - * Creates a new Alias instance using the specified properties. - * @param [properties] Properties to set - * @returns Alias instance - */ - public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; - - /** - * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. - * @param message Alias message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Alias message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Alias - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Alias; - - /** - * Verifies an Alias message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Node. */ - interface INode { - - /** Node id */ - id?: (string|null); - - /** Node metadata */ - metadata?: (flyteidl.core.INodeMetadata|null); - - /** Node inputs */ - inputs?: (flyteidl.core.IBinding[]|null); - - /** Node upstreamNodeIds */ - upstreamNodeIds?: (string[]|null); - - /** Node outputAliases */ - outputAliases?: (flyteidl.core.IAlias[]|null); - - /** Node taskNode */ - taskNode?: (flyteidl.core.ITaskNode|null); - - /** Node workflowNode */ - workflowNode?: (flyteidl.core.IWorkflowNode|null); - - /** Node branchNode */ - branchNode?: (flyteidl.core.IBranchNode|null); - - /** Node gateNode */ - gateNode?: (flyteidl.core.IGateNode|null); - - /** Node arrayNode */ - arrayNode?: (flyteidl.core.IArrayNode|null); - } - - /** Represents a Node. */ - class Node implements INode { - - /** - * Constructs a new Node. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INode); - - /** Node id. */ - public id: string; - - /** Node metadata. */ - public metadata?: (flyteidl.core.INodeMetadata|null); - - /** Node inputs. */ - public inputs: flyteidl.core.IBinding[]; - - /** Node upstreamNodeIds. */ - public upstreamNodeIds: string[]; - - /** Node outputAliases. */ - public outputAliases: flyteidl.core.IAlias[]; - - /** Node taskNode. */ - public taskNode?: (flyteidl.core.ITaskNode|null); - - /** Node workflowNode. */ - public workflowNode?: (flyteidl.core.IWorkflowNode|null); - - /** Node branchNode. */ - public branchNode?: (flyteidl.core.IBranchNode|null); - - /** Node gateNode. */ - public gateNode?: (flyteidl.core.IGateNode|null); - - /** Node arrayNode. */ - public arrayNode?: (flyteidl.core.IArrayNode|null); - - /** Node target. */ - public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"); - - /** - * Creates a new Node instance using the specified properties. - * @param [properties] Properties to set - * @returns Node instance - */ - public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; - - /** - * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. - * @param message Node message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Node message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Node; - - /** - * Verifies a Node message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowMetadata. */ - interface IWorkflowMetadata { - - /** WorkflowMetadata qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** WorkflowMetadata onFailure */ - onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null); - - /** WorkflowMetadata tags */ - tags?: ({ [k: string]: string }|null); - } - - /** Represents a WorkflowMetadata. */ - class WorkflowMetadata implements IWorkflowMetadata { - - /** - * Constructs a new WorkflowMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowMetadata); - - /** WorkflowMetadata qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** WorkflowMetadata onFailure. */ - public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy; - - /** WorkflowMetadata tags. */ - public tags: { [k: string]: string }; - - /** - * Creates a new WorkflowMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMetadata instance - */ - public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; - - /** - * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. - * @param message WorkflowMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadata; - - /** - * Verifies a WorkflowMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace WorkflowMetadata { - - /** OnFailurePolicy enum. */ - enum OnFailurePolicy { - FAIL_IMMEDIATELY = 0, - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1 - } - } - - /** Properties of a WorkflowMetadataDefaults. */ - interface IWorkflowMetadataDefaults { - - /** WorkflowMetadataDefaults interruptible */ - interruptible?: (boolean|null); - } - - /** Represents a WorkflowMetadataDefaults. */ - class WorkflowMetadataDefaults implements IWorkflowMetadataDefaults { - - /** - * Constructs a new WorkflowMetadataDefaults. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowMetadataDefaults); - - /** WorkflowMetadataDefaults interruptible. */ - public interruptible: boolean; - - /** - * Creates a new WorkflowMetadataDefaults instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMetadataDefaults instance - */ - public static create(properties?: flyteidl.core.IWorkflowMetadataDefaults): flyteidl.core.WorkflowMetadataDefaults; - - /** - * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. - * @param message WorkflowMetadataDefaults message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowMetadataDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMetadataDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadataDefaults; - - /** - * Verifies a WorkflowMetadataDefaults message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowTemplate. */ - interface IWorkflowTemplate { - - /** WorkflowTemplate id */ - id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowTemplate metadata */ - metadata?: (flyteidl.core.IWorkflowMetadata|null); - - /** WorkflowTemplate interface */ - "interface"?: (flyteidl.core.ITypedInterface|null); - - /** WorkflowTemplate nodes */ - nodes?: (flyteidl.core.INode[]|null); - - /** WorkflowTemplate outputs */ - outputs?: (flyteidl.core.IBinding[]|null); - - /** WorkflowTemplate failureNode */ - failureNode?: (flyteidl.core.INode|null); - - /** WorkflowTemplate metadataDefaults */ - metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); - } - - /** Represents a WorkflowTemplate. */ - class WorkflowTemplate implements IWorkflowTemplate { - - /** - * Constructs a new WorkflowTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowTemplate); - - /** WorkflowTemplate id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowTemplate metadata. */ - public metadata?: (flyteidl.core.IWorkflowMetadata|null); - - /** WorkflowTemplate interface. */ - public interface?: (flyteidl.core.ITypedInterface|null); - - /** WorkflowTemplate nodes. */ - public nodes: flyteidl.core.INode[]; - - /** WorkflowTemplate outputs. */ - public outputs: flyteidl.core.IBinding[]; - - /** WorkflowTemplate failureNode. */ - public failureNode?: (flyteidl.core.INode|null); - - /** WorkflowTemplate metadataDefaults. */ - public metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); - - /** - * Creates a new WorkflowTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowTemplate instance - */ - public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; - - /** - * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. - * @param message WorkflowTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowTemplate; - - /** - * Verifies a WorkflowTemplate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskNodeOverrides. */ - interface ITaskNodeOverrides { - - /** TaskNodeOverrides resources */ - resources?: (flyteidl.core.IResources|null); - - /** TaskNodeOverrides extendedResources */ - extendedResources?: (flyteidl.core.IExtendedResources|null); - } - - /** Represents a TaskNodeOverrides. */ - class TaskNodeOverrides implements ITaskNodeOverrides { - - /** - * Constructs a new TaskNodeOverrides. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskNodeOverrides); - - /** TaskNodeOverrides resources. */ - public resources?: (flyteidl.core.IResources|null); - - /** TaskNodeOverrides extendedResources. */ - public extendedResources?: (flyteidl.core.IExtendedResources|null); - - /** - * Creates a new TaskNodeOverrides instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNodeOverrides instance - */ - public static create(properties?: flyteidl.core.ITaskNodeOverrides): flyteidl.core.TaskNodeOverrides; - - /** - * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. - * @param message TaskNodeOverrides message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskNodeOverrides, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNodeOverrides message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNodeOverrides - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNodeOverrides; - - /** - * Verifies a TaskNodeOverrides message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanTemplate. */ - interface ILaunchPlanTemplate { - - /** LaunchPlanTemplate id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanTemplate interface */ - "interface"?: (flyteidl.core.ITypedInterface|null); - - /** LaunchPlanTemplate fixedInputs */ - fixedInputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a LaunchPlanTemplate. */ - class LaunchPlanTemplate implements ILaunchPlanTemplate { - - /** - * Constructs a new LaunchPlanTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILaunchPlanTemplate); - - /** LaunchPlanTemplate id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanTemplate interface. */ - public interface?: (flyteidl.core.ITypedInterface|null); - - /** LaunchPlanTemplate fixedInputs. */ - public fixedInputs?: (flyteidl.core.ILiteralMap|null); - - /** - * Creates a new LaunchPlanTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanTemplate instance - */ - public static create(properties?: flyteidl.core.ILaunchPlanTemplate): flyteidl.core.LaunchPlanTemplate; - - /** - * Encodes the specified LaunchPlanTemplate message. Does not implicitly {@link flyteidl.core.LaunchPlanTemplate.verify|verify} messages. - * @param message LaunchPlanTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILaunchPlanTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LaunchPlanTemplate; - - /** - * Verifies a LaunchPlanTemplate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ComparisonExpression. */ - interface IComparisonExpression { - - /** ComparisonExpression operator */ - operator?: (flyteidl.core.ComparisonExpression.Operator|null); - - /** ComparisonExpression leftValue */ - leftValue?: (flyteidl.core.IOperand|null); - - /** ComparisonExpression rightValue */ - rightValue?: (flyteidl.core.IOperand|null); - } - - /** Represents a ComparisonExpression. */ - class ComparisonExpression implements IComparisonExpression { - - /** - * Constructs a new ComparisonExpression. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IComparisonExpression); - - /** ComparisonExpression operator. */ - public operator: flyteidl.core.ComparisonExpression.Operator; - - /** ComparisonExpression leftValue. */ - public leftValue?: (flyteidl.core.IOperand|null); - - /** ComparisonExpression rightValue. */ - public rightValue?: (flyteidl.core.IOperand|null); - - /** - * Creates a new ComparisonExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns ComparisonExpression instance - */ - public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; - - /** - * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. - * @param message ComparisonExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ComparisonExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ComparisonExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ComparisonExpression; - - /** - * Verifies a ComparisonExpression message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace ComparisonExpression { - - /** Operator enum. */ - enum Operator { - EQ = 0, - NEQ = 1, - GT = 2, - GTE = 3, - LT = 4, - LTE = 5 - } - } - - /** Properties of an Operand. */ - interface IOperand { - - /** Operand primitive */ - primitive?: (flyteidl.core.IPrimitive|null); - - /** Operand var */ - "var"?: (string|null); - - /** Operand scalar */ - scalar?: (flyteidl.core.IScalar|null); - } - - /** Represents an Operand. */ - class Operand implements IOperand { - - /** - * Constructs a new Operand. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOperand); - - /** Operand primitive. */ - public primitive?: (flyteidl.core.IPrimitive|null); - - /** Operand var. */ - public var: string; - - /** Operand scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** Operand val. */ - public val?: ("primitive"|"var"|"scalar"); - - /** - * Creates a new Operand instance using the specified properties. - * @param [properties] Properties to set - * @returns Operand instance - */ - public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; - - /** - * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. - * @param message Operand message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Operand message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Operand - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Operand; - - /** - * Verifies an Operand message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BooleanExpression. */ - interface IBooleanExpression { - - /** BooleanExpression conjunction */ - conjunction?: (flyteidl.core.IConjunctionExpression|null); - - /** BooleanExpression comparison */ - comparison?: (flyteidl.core.IComparisonExpression|null); - } - - /** Represents a BooleanExpression. */ - class BooleanExpression implements IBooleanExpression { - - /** - * Constructs a new BooleanExpression. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBooleanExpression); - - /** BooleanExpression conjunction. */ - public conjunction?: (flyteidl.core.IConjunctionExpression|null); - - /** BooleanExpression comparison. */ - public comparison?: (flyteidl.core.IComparisonExpression|null); - - /** BooleanExpression expr. */ - public expr?: ("conjunction"|"comparison"); - - /** - * Creates a new BooleanExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns BooleanExpression instance - */ - public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; - - /** - * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. - * @param message BooleanExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BooleanExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BooleanExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BooleanExpression; - - /** - * Verifies a BooleanExpression message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ConjunctionExpression. */ - interface IConjunctionExpression { - - /** ConjunctionExpression operator */ - operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); - - /** ConjunctionExpression leftExpression */ - leftExpression?: (flyteidl.core.IBooleanExpression|null); - - /** ConjunctionExpression rightExpression */ - rightExpression?: (flyteidl.core.IBooleanExpression|null); - } - - /** Represents a ConjunctionExpression. */ - class ConjunctionExpression implements IConjunctionExpression { - - /** - * Constructs a new ConjunctionExpression. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IConjunctionExpression); - - /** ConjunctionExpression operator. */ - public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; - - /** ConjunctionExpression leftExpression. */ - public leftExpression?: (flyteidl.core.IBooleanExpression|null); - - /** ConjunctionExpression rightExpression. */ - public rightExpression?: (flyteidl.core.IBooleanExpression|null); - - /** - * Creates a new ConjunctionExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns ConjunctionExpression instance - */ - public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; - - /** - * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. - * @param message ConjunctionExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConjunctionExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConjunctionExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConjunctionExpression; - - /** - * Verifies a ConjunctionExpression message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace ConjunctionExpression { - - /** LogicalOperator enum. */ - enum LogicalOperator { - AND = 0, - OR = 1 - } - } - - /** Properties of a WorkflowExecution. */ - interface IWorkflowExecution { - } - - /** Represents a WorkflowExecution. */ - class WorkflowExecution implements IWorkflowExecution { - - /** - * Constructs a new WorkflowExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowExecution); - - /** - * Creates a new WorkflowExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecution instance - */ - public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; - - /** - * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. - * @param message WorkflowExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecution; - - /** - * Verifies a WorkflowExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace WorkflowExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDING = 3, - SUCCEEDED = 4, - FAILING = 5, - FAILED = 6, - ABORTED = 7, - TIMED_OUT = 8, - ABORTING = 9 - } - } - - /** Properties of a NodeExecution. */ - interface INodeExecution { - } - - /** Represents a NodeExecution. */ - class NodeExecution implements INodeExecution { - - /** - * Constructs a new NodeExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INodeExecution); - - /** - * Creates a new NodeExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecution instance - */ - public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. - * @param message NodeExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecution; - - /** - * Verifies a NodeExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace NodeExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDED = 3, - FAILING = 4, - FAILED = 5, - ABORTED = 6, - SKIPPED = 7, - TIMED_OUT = 8, - DYNAMIC_RUNNING = 9, - RECOVERED = 10 - } - } - - /** Properties of a TaskExecution. */ - interface ITaskExecution { - } - - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { - - /** - * Constructs a new TaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskExecution); - - /** - * Creates a new TaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecution instance - */ - public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecution; - - /** - * Verifies a TaskExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace TaskExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDED = 3, - ABORTED = 4, - FAILED = 5, - INITIALIZING = 6, - WAITING_FOR_RESOURCES = 7 - } - } - - /** Properties of an ExecutionError. */ - interface IExecutionError { - - /** ExecutionError code */ - code?: (string|null); - - /** ExecutionError message */ - message?: (string|null); - - /** ExecutionError errorUri */ - errorUri?: (string|null); - - /** ExecutionError kind */ - kind?: (flyteidl.core.ExecutionError.ErrorKind|null); - } - - /** Represents an ExecutionError. */ - class ExecutionError implements IExecutionError { - - /** - * Constructs a new ExecutionError. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IExecutionError); - - /** ExecutionError code. */ - public code: string; - - /** ExecutionError message. */ - public message: string; - - /** ExecutionError errorUri. */ - public errorUri: string; - - /** ExecutionError kind. */ - public kind: flyteidl.core.ExecutionError.ErrorKind; - - /** - * Creates a new ExecutionError instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionError instance - */ - public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; - - /** - * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. - * @param message ExecutionError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionError; - - /** - * Verifies an ExecutionError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace ExecutionError { - - /** ErrorKind enum. */ - enum ErrorKind { - UNKNOWN = 0, - USER = 1, - SYSTEM = 2 - } - } - - /** Properties of a TaskLog. */ - interface ITaskLog { - - /** TaskLog uri */ - uri?: (string|null); - - /** TaskLog name */ - name?: (string|null); - - /** TaskLog messageFormat */ - messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); - - /** TaskLog ttl */ - ttl?: (google.protobuf.IDuration|null); - } - - /** Represents a TaskLog. */ - class TaskLog implements ITaskLog { - - /** - * Constructs a new TaskLog. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskLog); - - /** TaskLog uri. */ - public uri: string; - - /** TaskLog name. */ - public name: string; - - /** TaskLog messageFormat. */ - public messageFormat: flyteidl.core.TaskLog.MessageFormat; - - /** TaskLog ttl. */ - public ttl?: (google.protobuf.IDuration|null); - - /** - * Creates a new TaskLog instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskLog instance - */ - public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; - - /** - * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. - * @param message TaskLog message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskLog message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskLog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskLog; - - /** - * Verifies a TaskLog message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace TaskLog { - - /** MessageFormat enum. */ - enum MessageFormat { - UNKNOWN = 0, - CSV = 1, - JSON = 2 - } - } - - /** Properties of a QualityOfServiceSpec. */ - interface IQualityOfServiceSpec { - - /** QualityOfServiceSpec queueingBudget */ - queueingBudget?: (google.protobuf.IDuration|null); - } - - /** Represents a QualityOfServiceSpec. */ - class QualityOfServiceSpec implements IQualityOfServiceSpec { - - /** - * Constructs a new QualityOfServiceSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IQualityOfServiceSpec); - - /** QualityOfServiceSpec queueingBudget. */ - public queueingBudget?: (google.protobuf.IDuration|null); - - /** - * Creates a new QualityOfServiceSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns QualityOfServiceSpec instance - */ - public static create(properties?: flyteidl.core.IQualityOfServiceSpec): flyteidl.core.QualityOfServiceSpec; - - /** - * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. - * @param message QualityOfServiceSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IQualityOfServiceSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QualityOfServiceSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QualityOfServiceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfServiceSpec; - - /** - * Verifies a QualityOfServiceSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a QualityOfService. */ - interface IQualityOfService { - - /** QualityOfService tier */ - tier?: (flyteidl.core.QualityOfService.Tier|null); - - /** QualityOfService spec */ - spec?: (flyteidl.core.IQualityOfServiceSpec|null); - } - - /** Represents a QualityOfService. */ - class QualityOfService implements IQualityOfService { - - /** - * Constructs a new QualityOfService. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IQualityOfService); - - /** QualityOfService tier. */ - public tier: flyteidl.core.QualityOfService.Tier; - - /** QualityOfService spec. */ - public spec?: (flyteidl.core.IQualityOfServiceSpec|null); - - /** QualityOfService designation. */ - public designation?: ("tier"|"spec"); - - /** - * Creates a new QualityOfService instance using the specified properties. - * @param [properties] Properties to set - * @returns QualityOfService instance - */ - public static create(properties?: flyteidl.core.IQualityOfService): flyteidl.core.QualityOfService; - - /** - * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. - * @param message QualityOfService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IQualityOfService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QualityOfService message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QualityOfService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfService; - - /** - * Verifies a QualityOfService message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace QualityOfService { - - /** Tier enum. */ - enum Tier { - UNDEFINED = 0, - HIGH = 1, - MEDIUM = 2, - LOW = 3 - } - } - - /** Properties of a Resources. */ - interface IResources { - - /** Resources requests */ - requests?: (flyteidl.core.Resources.IResourceEntry[]|null); - - /** Resources limits */ - limits?: (flyteidl.core.Resources.IResourceEntry[]|null); - } - - /** Represents a Resources. */ - class Resources implements IResources { - - /** - * Constructs a new Resources. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IResources); - - /** Resources requests. */ - public requests: flyteidl.core.Resources.IResourceEntry[]; - - /** Resources limits. */ - public limits: flyteidl.core.Resources.IResourceEntry[]; - - /** - * Creates a new Resources instance using the specified properties. - * @param [properties] Properties to set - * @returns Resources instance - */ - public static create(properties?: flyteidl.core.IResources): flyteidl.core.Resources; - - /** - * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. - * @param message Resources message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IResources, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Resources message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Resources - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources; - - /** - * Verifies a Resources message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace Resources { - - /** ResourceName enum. */ - enum ResourceName { - UNKNOWN = 0, - CPU = 1, - GPU = 2, - MEMORY = 3, - STORAGE = 4, - EPHEMERAL_STORAGE = 5 - } - - /** Properties of a ResourceEntry. */ - interface IResourceEntry { - - /** ResourceEntry name */ - name?: (flyteidl.core.Resources.ResourceName|null); - - /** ResourceEntry value */ - value?: (string|null); - } - - /** Represents a ResourceEntry. */ - class ResourceEntry implements IResourceEntry { - - /** - * Constructs a new ResourceEntry. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.Resources.IResourceEntry); - - /** ResourceEntry name. */ - public name: flyteidl.core.Resources.ResourceName; - - /** ResourceEntry value. */ - public value: string; - - /** - * Creates a new ResourceEntry instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourceEntry instance - */ - public static create(properties?: flyteidl.core.Resources.IResourceEntry): flyteidl.core.Resources.ResourceEntry; - - /** - * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. - * @param message ResourceEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.Resources.IResourceEntry, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourceEntry message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourceEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources.ResourceEntry; - - /** - * Verifies a ResourceEntry message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Properties of a GPUAccelerator. */ - interface IGPUAccelerator { - - /** GPUAccelerator device */ - device?: (string|null); - - /** GPUAccelerator unpartitioned */ - unpartitioned?: (boolean|null); - - /** GPUAccelerator partitionSize */ - partitionSize?: (string|null); - } - - /** Represents a GPUAccelerator. */ - class GPUAccelerator implements IGPUAccelerator { - - /** - * Constructs a new GPUAccelerator. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IGPUAccelerator); - - /** GPUAccelerator device. */ - public device: string; - - /** GPUAccelerator unpartitioned. */ - public unpartitioned: boolean; - - /** GPUAccelerator partitionSize. */ - public partitionSize: string; - - /** GPUAccelerator partitionSizeValue. */ - public partitionSizeValue?: ("unpartitioned"|"partitionSize"); - - /** - * Creates a new GPUAccelerator instance using the specified properties. - * @param [properties] Properties to set - * @returns GPUAccelerator instance - */ - public static create(properties?: flyteidl.core.IGPUAccelerator): flyteidl.core.GPUAccelerator; - - /** - * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages. - * @param message GPUAccelerator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IGPUAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GPUAccelerator message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GPUAccelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GPUAccelerator; - - /** - * Verifies a GPUAccelerator message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExtendedResources. */ - interface IExtendedResources { - - /** ExtendedResources gpuAccelerator */ - gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null); - } - - /** Represents an ExtendedResources. */ - class ExtendedResources implements IExtendedResources { - - /** - * Constructs a new ExtendedResources. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IExtendedResources); - - /** ExtendedResources gpuAccelerator. */ - public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null); - - /** - * Creates a new ExtendedResources instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtendedResources instance - */ - public static create(properties?: flyteidl.core.IExtendedResources): flyteidl.core.ExtendedResources; - - /** - * Encodes the specified ExtendedResources message. Does not implicitly {@link flyteidl.core.ExtendedResources.verify|verify} messages. - * @param message ExtendedResources message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IExtendedResources, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtendedResources message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtendedResources - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExtendedResources; - - /** - * Verifies an ExtendedResources message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a RuntimeMetadata. */ - interface IRuntimeMetadata { - - /** RuntimeMetadata type */ - type?: (flyteidl.core.RuntimeMetadata.RuntimeType|null); - - /** RuntimeMetadata version */ - version?: (string|null); - - /** RuntimeMetadata flavor */ - flavor?: (string|null); - } - - /** Represents a RuntimeMetadata. */ - class RuntimeMetadata implements IRuntimeMetadata { - - /** - * Constructs a new RuntimeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IRuntimeMetadata); - - /** RuntimeMetadata type. */ - public type: flyteidl.core.RuntimeMetadata.RuntimeType; - - /** RuntimeMetadata version. */ - public version: string; - - /** RuntimeMetadata flavor. */ - public flavor: string; - - /** - * Creates a new RuntimeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns RuntimeMetadata instance - */ - public static create(properties?: flyteidl.core.IRuntimeMetadata): flyteidl.core.RuntimeMetadata; - - /** - * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. - * @param message RuntimeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IRuntimeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RuntimeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RuntimeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RuntimeMetadata; - - /** - * Verifies a RuntimeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace RuntimeMetadata { - - /** RuntimeType enum. */ - enum RuntimeType { - OTHER = 0, - FLYTE_SDK = 1 - } - } - - /** Properties of a TaskMetadata. */ - interface ITaskMetadata { - - /** TaskMetadata discoverable */ - discoverable?: (boolean|null); - - /** TaskMetadata runtime */ - runtime?: (flyteidl.core.IRuntimeMetadata|null); - - /** TaskMetadata timeout */ - timeout?: (google.protobuf.IDuration|null); - - /** TaskMetadata retries */ - retries?: (flyteidl.core.IRetryStrategy|null); - - /** TaskMetadata discoveryVersion */ - discoveryVersion?: (string|null); - - /** TaskMetadata deprecatedErrorMessage */ - deprecatedErrorMessage?: (string|null); - - /** TaskMetadata interruptible */ - interruptible?: (boolean|null); - - /** TaskMetadata cacheSerializable */ - cacheSerializable?: (boolean|null); - - /** TaskMetadata generatesDeck */ - generatesDeck?: (boolean|null); - - /** TaskMetadata tags */ - tags?: ({ [k: string]: string }|null); - - /** TaskMetadata podTemplateName */ - podTemplateName?: (string|null); - - /** TaskMetadata cacheIgnoreInputVars */ - cacheIgnoreInputVars?: (string[]|null); - } - - /** Represents a TaskMetadata. */ - class TaskMetadata implements ITaskMetadata { - - /** - * Constructs a new TaskMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskMetadata); - - /** TaskMetadata discoverable. */ - public discoverable: boolean; - - /** TaskMetadata runtime. */ - public runtime?: (flyteidl.core.IRuntimeMetadata|null); - - /** TaskMetadata timeout. */ - public timeout?: (google.protobuf.IDuration|null); - - /** TaskMetadata retries. */ - public retries?: (flyteidl.core.IRetryStrategy|null); - - /** TaskMetadata discoveryVersion. */ - public discoveryVersion: string; - - /** TaskMetadata deprecatedErrorMessage. */ - public deprecatedErrorMessage: string; - - /** TaskMetadata interruptible. */ - public interruptible: boolean; - - /** TaskMetadata cacheSerializable. */ - public cacheSerializable: boolean; - - /** TaskMetadata generatesDeck. */ - public generatesDeck: boolean; - - /** TaskMetadata tags. */ - public tags: { [k: string]: string }; - - /** TaskMetadata podTemplateName. */ - public podTemplateName: string; - - /** TaskMetadata cacheIgnoreInputVars. */ - public cacheIgnoreInputVars: string[]; - - /** TaskMetadata interruptibleValue. */ - public interruptibleValue?: "interruptible"; - - /** - * Creates a new TaskMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskMetadata instance - */ - public static create(properties?: flyteidl.core.ITaskMetadata): flyteidl.core.TaskMetadata; - - /** - * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. - * @param message TaskMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskMetadata; - - /** - * Verifies a TaskMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskTemplate. */ - interface ITaskTemplate { - - /** TaskTemplate id */ - id?: (flyteidl.core.IIdentifier|null); - - /** TaskTemplate type */ - type?: (string|null); - - /** TaskTemplate metadata */ - metadata?: (flyteidl.core.ITaskMetadata|null); - - /** TaskTemplate interface */ - "interface"?: (flyteidl.core.ITypedInterface|null); - - /** TaskTemplate custom */ - custom?: (google.protobuf.IStruct|null); - - /** TaskTemplate container */ - container?: (flyteidl.core.IContainer|null); - - /** TaskTemplate k8sPod */ - k8sPod?: (flyteidl.core.IK8sPod|null); - - /** TaskTemplate sql */ - sql?: (flyteidl.core.ISql|null); - - /** TaskTemplate taskTypeVersion */ - taskTypeVersion?: (number|null); - - /** TaskTemplate securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** TaskTemplate extendedResources */ - extendedResources?: (flyteidl.core.IExtendedResources|null); - - /** TaskTemplate config */ - config?: ({ [k: string]: string }|null); - } - - /** Represents a TaskTemplate. */ - class TaskTemplate implements ITaskTemplate { - - /** - * Constructs a new TaskTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskTemplate); - - /** TaskTemplate id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** TaskTemplate type. */ - public type: string; - - /** TaskTemplate metadata. */ - public metadata?: (flyteidl.core.ITaskMetadata|null); - - /** TaskTemplate interface. */ - public interface?: (flyteidl.core.ITypedInterface|null); - - /** TaskTemplate custom. */ - public custom?: (google.protobuf.IStruct|null); - - /** TaskTemplate container. */ - public container?: (flyteidl.core.IContainer|null); - - /** TaskTemplate k8sPod. */ - public k8sPod?: (flyteidl.core.IK8sPod|null); - - /** TaskTemplate sql. */ - public sql?: (flyteidl.core.ISql|null); - - /** TaskTemplate taskTypeVersion. */ - public taskTypeVersion: number; - - /** TaskTemplate securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** TaskTemplate extendedResources. */ - public extendedResources?: (flyteidl.core.IExtendedResources|null); - - /** TaskTemplate config. */ - public config: { [k: string]: string }; - - /** TaskTemplate target. */ - public target?: ("container"|"k8sPod"|"sql"); - - /** - * Creates a new TaskTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskTemplate instance - */ - public static create(properties?: flyteidl.core.ITaskTemplate): flyteidl.core.TaskTemplate; - - /** - * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. - * @param message TaskTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskTemplate; - - /** - * Verifies a TaskTemplate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ContainerPort. */ - interface IContainerPort { - - /** ContainerPort containerPort */ - containerPort?: (number|null); - } - - /** Represents a ContainerPort. */ - class ContainerPort implements IContainerPort { - - /** - * Constructs a new ContainerPort. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IContainerPort); - - /** ContainerPort containerPort. */ - public containerPort: number; - - /** - * Creates a new ContainerPort instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerPort instance - */ - public static create(properties?: flyteidl.core.IContainerPort): flyteidl.core.ContainerPort; - - /** - * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. - * @param message ContainerPort message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IContainerPort, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContainerPort message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerPort - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerPort; - - /** - * Verifies a ContainerPort message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Container. */ - interface IContainer { - - /** Container image */ - image?: (string|null); - - /** Container command */ - command?: (string[]|null); - - /** Container args */ - args?: (string[]|null); - - /** Container resources */ - resources?: (flyteidl.core.IResources|null); - - /** Container env */ - env?: (flyteidl.core.IKeyValuePair[]|null); - - /** Container config */ - config?: (flyteidl.core.IKeyValuePair[]|null); - - /** Container ports */ - ports?: (flyteidl.core.IContainerPort[]|null); - - /** Container dataConfig */ - dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - - /** Container architecture */ - architecture?: (flyteidl.core.Container.Architecture|null); - } - - /** Represents a Container. */ - class Container implements IContainer { - - /** - * Constructs a new Container. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IContainer); - - /** Container image. */ - public image: string; - - /** Container command. */ - public command: string[]; - - /** Container args. */ - public args: string[]; - - /** Container resources. */ - public resources?: (flyteidl.core.IResources|null); - - /** Container env. */ - public env: flyteidl.core.IKeyValuePair[]; - - /** Container config. */ - public config: flyteidl.core.IKeyValuePair[]; - - /** Container ports. */ - public ports: flyteidl.core.IContainerPort[]; - - /** Container dataConfig. */ - public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - - /** Container architecture. */ - public architecture: flyteidl.core.Container.Architecture; - - /** - * Creates a new Container instance using the specified properties. - * @param [properties] Properties to set - * @returns Container instance - */ - public static create(properties?: flyteidl.core.IContainer): flyteidl.core.Container; - - /** - * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. - * @param message Container message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Container message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Container - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Container; - - /** - * Verifies a Container message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace Container { - - /** Architecture enum. */ - enum Architecture { - UNKNOWN = 0, - AMD64 = 1, - ARM64 = 2, - ARM_V6 = 3, - ARM_V7 = 4 - } - } - - /** Properties of a IOStrategy. */ - interface IIOStrategy { - - /** IOStrategy downloadMode */ - downloadMode?: (flyteidl.core.IOStrategy.DownloadMode|null); - - /** IOStrategy uploadMode */ - uploadMode?: (flyteidl.core.IOStrategy.UploadMode|null); - } - - /** Represents a IOStrategy. */ - class IOStrategy implements IIOStrategy { - - /** - * Constructs a new IOStrategy. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIOStrategy); - - /** IOStrategy downloadMode. */ - public downloadMode: flyteidl.core.IOStrategy.DownloadMode; - - /** IOStrategy uploadMode. */ - public uploadMode: flyteidl.core.IOStrategy.UploadMode; - - /** - * Creates a new IOStrategy instance using the specified properties. - * @param [properties] Properties to set - * @returns IOStrategy instance - */ - public static create(properties?: flyteidl.core.IIOStrategy): flyteidl.core.IOStrategy; - - /** - * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. - * @param message IOStrategy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIOStrategy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a IOStrategy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IOStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IOStrategy; - - /** - * Verifies a IOStrategy message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace IOStrategy { - - /** DownloadMode enum. */ - enum DownloadMode { - DOWNLOAD_EAGER = 0, - DOWNLOAD_STREAM = 1, - DO_NOT_DOWNLOAD = 2 - } - - /** UploadMode enum. */ - enum UploadMode { - UPLOAD_ON_EXIT = 0, - UPLOAD_EAGER = 1, - DO_NOT_UPLOAD = 2 - } - } - - /** Properties of a DataLoadingConfig. */ - interface IDataLoadingConfig { - - /** DataLoadingConfig enabled */ - enabled?: (boolean|null); - - /** DataLoadingConfig inputPath */ - inputPath?: (string|null); - - /** DataLoadingConfig outputPath */ - outputPath?: (string|null); - - /** DataLoadingConfig format */ - format?: (flyteidl.core.DataLoadingConfig.LiteralMapFormat|null); - - /** DataLoadingConfig ioStrategy */ - ioStrategy?: (flyteidl.core.IIOStrategy|null); - } - - /** Represents a DataLoadingConfig. */ - class DataLoadingConfig implements IDataLoadingConfig { - - /** - * Constructs a new DataLoadingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IDataLoadingConfig); - - /** DataLoadingConfig enabled. */ - public enabled: boolean; - - /** DataLoadingConfig inputPath. */ - public inputPath: string; - - /** DataLoadingConfig outputPath. */ - public outputPath: string; - - /** DataLoadingConfig format. */ - public format: flyteidl.core.DataLoadingConfig.LiteralMapFormat; - - /** DataLoadingConfig ioStrategy. */ - public ioStrategy?: (flyteidl.core.IIOStrategy|null); - - /** - * Creates a new DataLoadingConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns DataLoadingConfig instance - */ - public static create(properties?: flyteidl.core.IDataLoadingConfig): flyteidl.core.DataLoadingConfig; - - /** - * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. - * @param message DataLoadingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IDataLoadingConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataLoadingConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataLoadingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DataLoadingConfig; - - /** - * Verifies a DataLoadingConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace DataLoadingConfig { - - /** LiteralMapFormat enum. */ - enum LiteralMapFormat { - JSON = 0, - YAML = 1, - PROTO = 2 - } - } - - /** Properties of a K8sPod. */ - interface IK8sPod { - - /** K8sPod metadata */ - metadata?: (flyteidl.core.IK8sObjectMetadata|null); - - /** K8sPod podSpec */ - podSpec?: (google.protobuf.IStruct|null); - - /** K8sPod dataConfig */ - dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - } - - /** Represents a K8sPod. */ - class K8sPod implements IK8sPod { - - /** - * Constructs a new K8sPod. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IK8sPod); - - /** K8sPod metadata. */ - public metadata?: (flyteidl.core.IK8sObjectMetadata|null); - - /** K8sPod podSpec. */ - public podSpec?: (google.protobuf.IStruct|null); - - /** K8sPod dataConfig. */ - public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - - /** - * Creates a new K8sPod instance using the specified properties. - * @param [properties] Properties to set - * @returns K8sPod instance - */ - public static create(properties?: flyteidl.core.IK8sPod): flyteidl.core.K8sPod; - - /** - * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. - * @param message K8sPod message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IK8sPod, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a K8sPod message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns K8sPod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.K8sPod; - - /** - * Verifies a K8sPod message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a K8sObjectMetadata. */ - interface IK8sObjectMetadata { - - /** K8sObjectMetadata labels */ - labels?: ({ [k: string]: string }|null); - - /** K8sObjectMetadata annotations */ - annotations?: ({ [k: string]: string }|null); - } - - /** Represents a K8sObjectMetadata. */ - class K8sObjectMetadata implements IK8sObjectMetadata { - - /** - * Constructs a new K8sObjectMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IK8sObjectMetadata); - - /** K8sObjectMetadata labels. */ - public labels: { [k: string]: string }; - - /** K8sObjectMetadata annotations. */ - public annotations: { [k: string]: string }; - - /** - * Creates a new K8sObjectMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns K8sObjectMetadata instance - */ - public static create(properties?: flyteidl.core.IK8sObjectMetadata): flyteidl.core.K8sObjectMetadata; - - /** - * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. - * @param message K8sObjectMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IK8sObjectMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a K8sObjectMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns K8sObjectMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.K8sObjectMetadata; - - /** - * Verifies a K8sObjectMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Sql. */ - interface ISql { - - /** Sql statement */ - statement?: (string|null); - - /** Sql dialect */ - dialect?: (flyteidl.core.Sql.Dialect|null); - } - - /** Represents a Sql. */ - class Sql implements ISql { - - /** - * Constructs a new Sql. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISql); - - /** Sql statement. */ - public statement: string; - - /** Sql dialect. */ - public dialect: flyteidl.core.Sql.Dialect; - - /** - * Creates a new Sql instance using the specified properties. - * @param [properties] Properties to set - * @returns Sql instance - */ - public static create(properties?: flyteidl.core.ISql): flyteidl.core.Sql; - - /** - * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. - * @param message Sql message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISql, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Sql message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Sql - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Sql; - - /** - * Verifies a Sql message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace Sql { - - /** Dialect enum. */ - enum Dialect { - UNDEFINED = 0, - ANSI = 1, - HIVE = 2, - OTHER = 3 - } - } - - /** Properties of a Secret. */ - interface ISecret { - - /** Secret group */ - group?: (string|null); - - /** Secret groupVersion */ - groupVersion?: (string|null); - - /** Secret key */ - key?: (string|null); - - /** Secret mountRequirement */ - mountRequirement?: (flyteidl.core.Secret.MountType|null); - } - - /** Represents a Secret. */ - class Secret implements ISecret { - - /** - * Constructs a new Secret. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISecret); - - /** Secret group. */ - public group: string; - - /** Secret groupVersion. */ - public groupVersion: string; - - /** Secret key. */ - public key: string; - - /** Secret mountRequirement. */ - public mountRequirement: flyteidl.core.Secret.MountType; - - /** - * Creates a new Secret instance using the specified properties. - * @param [properties] Properties to set - * @returns Secret instance - */ - public static create(properties?: flyteidl.core.ISecret): flyteidl.core.Secret; - - /** - * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. - * @param message Secret message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISecret, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Secret message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Secret - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Secret; - - /** - * Verifies a Secret message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace Secret { - - /** MountType enum. */ - enum MountType { - ANY = 0, - ENV_VAR = 1, - FILE = 2 - } - } - - /** Properties of a OAuth2Client. */ - interface IOAuth2Client { - - /** OAuth2Client clientId */ - clientId?: (string|null); - - /** OAuth2Client clientSecret */ - clientSecret?: (flyteidl.core.ISecret|null); - } - - /** Represents a OAuth2Client. */ - class OAuth2Client implements IOAuth2Client { - - /** - * Constructs a new OAuth2Client. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOAuth2Client); - - /** OAuth2Client clientId. */ - public clientId: string; - - /** OAuth2Client clientSecret. */ - public clientSecret?: (flyteidl.core.ISecret|null); - - /** - * Creates a new OAuth2Client instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2Client instance - */ - public static create(properties?: flyteidl.core.IOAuth2Client): flyteidl.core.OAuth2Client; - - /** - * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. - * @param message OAuth2Client message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOAuth2Client, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2Client message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2Client - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OAuth2Client; - - /** - * Verifies a OAuth2Client message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Identity. */ - interface IIdentity { - - /** Identity iamRole */ - iamRole?: (string|null); - - /** Identity k8sServiceAccount */ - k8sServiceAccount?: (string|null); - - /** Identity oauth2Client */ - oauth2Client?: (flyteidl.core.IOAuth2Client|null); - - /** Identity executionIdentity */ - executionIdentity?: (string|null); - } - - /** Represents an Identity. */ - class Identity implements IIdentity { - - /** - * Constructs a new Identity. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIdentity); - - /** Identity iamRole. */ - public iamRole: string; - - /** Identity k8sServiceAccount. */ - public k8sServiceAccount: string; - - /** Identity oauth2Client. */ - public oauth2Client?: (flyteidl.core.IOAuth2Client|null); - - /** Identity executionIdentity. */ - public executionIdentity: string; - - /** - * Creates a new Identity instance using the specified properties. - * @param [properties] Properties to set - * @returns Identity instance - */ - public static create(properties?: flyteidl.core.IIdentity): flyteidl.core.Identity; - - /** - * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. - * @param message Identity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIdentity, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Identity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Identity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identity; - - /** - * Verifies an Identity message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a OAuth2TokenRequest. */ - interface IOAuth2TokenRequest { - - /** OAuth2TokenRequest name */ - name?: (string|null); - - /** OAuth2TokenRequest type */ - type?: (flyteidl.core.OAuth2TokenRequest.Type|null); - - /** OAuth2TokenRequest client */ - client?: (flyteidl.core.IOAuth2Client|null); - - /** OAuth2TokenRequest idpDiscoveryEndpoint */ - idpDiscoveryEndpoint?: (string|null); - - /** OAuth2TokenRequest tokenEndpoint */ - tokenEndpoint?: (string|null); - } - - /** Represents a OAuth2TokenRequest. */ - class OAuth2TokenRequest implements IOAuth2TokenRequest { - - /** - * Constructs a new OAuth2TokenRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOAuth2TokenRequest); - - /** OAuth2TokenRequest name. */ - public name: string; - - /** OAuth2TokenRequest type. */ - public type: flyteidl.core.OAuth2TokenRequest.Type; - - /** OAuth2TokenRequest client. */ - public client?: (flyteidl.core.IOAuth2Client|null); - - /** OAuth2TokenRequest idpDiscoveryEndpoint. */ - public idpDiscoveryEndpoint: string; - - /** OAuth2TokenRequest tokenEndpoint. */ - public tokenEndpoint: string; - - /** - * Creates a new OAuth2TokenRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2TokenRequest instance - */ - public static create(properties?: flyteidl.core.IOAuth2TokenRequest): flyteidl.core.OAuth2TokenRequest; - - /** - * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. - * @param message OAuth2TokenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOAuth2TokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2TokenRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2TokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OAuth2TokenRequest; - - /** - * Verifies a OAuth2TokenRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace OAuth2TokenRequest { - - /** Type enum. */ - enum Type { - CLIENT_CREDENTIALS = 0 - } - } - - /** Properties of a SecurityContext. */ - interface ISecurityContext { - - /** SecurityContext runAs */ - runAs?: (flyteidl.core.IIdentity|null); - - /** SecurityContext secrets */ - secrets?: (flyteidl.core.ISecret[]|null); - - /** SecurityContext tokens */ - tokens?: (flyteidl.core.IOAuth2TokenRequest[]|null); - } - - /** Represents a SecurityContext. */ - class SecurityContext implements ISecurityContext { - - /** - * Constructs a new SecurityContext. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISecurityContext); - - /** SecurityContext runAs. */ - public runAs?: (flyteidl.core.IIdentity|null); - - /** SecurityContext secrets. */ - public secrets: flyteidl.core.ISecret[]; - - /** SecurityContext tokens. */ - public tokens: flyteidl.core.IOAuth2TokenRequest[]; - - /** - * Creates a new SecurityContext instance using the specified properties. - * @param [properties] Properties to set - * @returns SecurityContext instance - */ - public static create(properties?: flyteidl.core.ISecurityContext): flyteidl.core.SecurityContext; - - /** - * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. - * @param message SecurityContext message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISecurityContext, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SecurityContext message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SecurityContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SecurityContext; - - /** - * Verifies a SecurityContext message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DynamicJobSpec. */ - interface IDynamicJobSpec { - - /** DynamicJobSpec nodes */ - nodes?: (flyteidl.core.INode[]|null); - - /** DynamicJobSpec minSuccesses */ - minSuccesses?: (Long|null); - - /** DynamicJobSpec outputs */ - outputs?: (flyteidl.core.IBinding[]|null); - - /** DynamicJobSpec tasks */ - tasks?: (flyteidl.core.ITaskTemplate[]|null); - - /** DynamicJobSpec subworkflows */ - subworkflows?: (flyteidl.core.IWorkflowTemplate[]|null); - } - - /** Represents a DynamicJobSpec. */ - class DynamicJobSpec implements IDynamicJobSpec { - - /** - * Constructs a new DynamicJobSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IDynamicJobSpec); - - /** DynamicJobSpec nodes. */ - public nodes: flyteidl.core.INode[]; - - /** DynamicJobSpec minSuccesses. */ - public minSuccesses: Long; - - /** DynamicJobSpec outputs. */ - public outputs: flyteidl.core.IBinding[]; - - /** DynamicJobSpec tasks. */ - public tasks: flyteidl.core.ITaskTemplate[]; - - /** DynamicJobSpec subworkflows. */ - public subworkflows: flyteidl.core.IWorkflowTemplate[]; - - /** - * Creates a new DynamicJobSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicJobSpec instance - */ - public static create(properties?: flyteidl.core.IDynamicJobSpec): flyteidl.core.DynamicJobSpec; - - /** - * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. - * @param message DynamicJobSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IDynamicJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicJobSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicJobSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DynamicJobSpec; - - /** - * Verifies a DynamicJobSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ContainerError. */ - interface IContainerError { - - /** ContainerError code */ - code?: (string|null); - - /** ContainerError message */ - message?: (string|null); - - /** ContainerError kind */ - kind?: (flyteidl.core.ContainerError.Kind|null); - - /** ContainerError origin */ - origin?: (flyteidl.core.ExecutionError.ErrorKind|null); - } - - /** Represents a ContainerError. */ - class ContainerError implements IContainerError { - - /** - * Constructs a new ContainerError. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IContainerError); - - /** ContainerError code. */ - public code: string; - - /** ContainerError message. */ - public message: string; - - /** ContainerError kind. */ - public kind: flyteidl.core.ContainerError.Kind; - - /** ContainerError origin. */ - public origin: flyteidl.core.ExecutionError.ErrorKind; - - /** - * Creates a new ContainerError instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerError instance - */ - public static create(properties?: flyteidl.core.IContainerError): flyteidl.core.ContainerError; - - /** - * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. - * @param message ContainerError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IContainerError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContainerError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerError; - - /** - * Verifies a ContainerError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace ContainerError { - - /** Kind enum. */ - enum Kind { - NON_RECOVERABLE = 0, - RECOVERABLE = 1 - } - } - - /** Properties of an ErrorDocument. */ - interface IErrorDocument { - - /** ErrorDocument error */ - error?: (flyteidl.core.IContainerError|null); - } - - /** Represents an ErrorDocument. */ - class ErrorDocument implements IErrorDocument { - - /** - * Constructs a new ErrorDocument. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IErrorDocument); - - /** ErrorDocument error. */ - public error?: (flyteidl.core.IContainerError|null); - - /** - * Creates a new ErrorDocument instance using the specified properties. - * @param [properties] Properties to set - * @returns ErrorDocument instance - */ - public static create(properties?: flyteidl.core.IErrorDocument): flyteidl.core.ErrorDocument; - - /** - * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. - * @param message ErrorDocument message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IErrorDocument, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ErrorDocument message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ErrorDocument - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ErrorDocument; - - /** - * Verifies an ErrorDocument message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Span. */ - interface ISpan { - - /** Span startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Span endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** Span workflowId */ - workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Span nodeId */ - nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** Span taskId */ - taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** Span operationId */ - operationId?: (string|null); - - /** Span spans */ - spans?: (flyteidl.core.ISpan[]|null); - } - - /** Represents a Span. */ - class Span implements ISpan { - - /** - * Constructs a new Span. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISpan); - - /** Span startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** Span endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** Span workflowId. */ - public workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Span nodeId. */ - public nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** Span taskId. */ - public taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** Span operationId. */ - public operationId: string; - - /** Span spans. */ - public spans: flyteidl.core.ISpan[]; - - /** Span id. */ - public id?: ("workflowId"|"nodeId"|"taskId"|"operationId"); - - /** - * Creates a new Span instance using the specified properties. - * @param [properties] Properties to set - * @returns Span instance - */ - public static create(properties?: flyteidl.core.ISpan): flyteidl.core.Span; - - /** - * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. - * @param message Span message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISpan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Span message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Span; - - /** - * Verifies a Span message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionMetricResult. */ - interface IExecutionMetricResult { - - /** ExecutionMetricResult metric */ - metric?: (string|null); - - /** ExecutionMetricResult data */ - data?: (google.protobuf.IStruct|null); - } - - /** Represents an ExecutionMetricResult. */ - class ExecutionMetricResult implements IExecutionMetricResult { - - /** - * Constructs a new ExecutionMetricResult. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IExecutionMetricResult); - - /** ExecutionMetricResult metric. */ - public metric: string; - - /** ExecutionMetricResult data. */ - public data?: (google.protobuf.IStruct|null); - - /** - * Creates a new ExecutionMetricResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionMetricResult instance - */ - public static create(properties?: flyteidl.core.IExecutionMetricResult): flyteidl.core.ExecutionMetricResult; - - /** - * Encodes the specified ExecutionMetricResult message. Does not implicitly {@link flyteidl.core.ExecutionMetricResult.verify|verify} messages. - * @param message ExecutionMetricResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IExecutionMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionMetricResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionMetricResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionMetricResult; - - /** - * Verifies an ExecutionMetricResult message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowClosure. */ - interface IWorkflowClosure { - - /** WorkflowClosure workflow */ - workflow?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowClosure tasks */ - tasks?: (flyteidl.core.ITaskTemplate[]|null); - } - - /** Represents a WorkflowClosure. */ - class WorkflowClosure implements IWorkflowClosure { - - /** - * Constructs a new WorkflowClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowClosure); - - /** WorkflowClosure workflow. */ - public workflow?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowClosure tasks. */ - public tasks: flyteidl.core.ITaskTemplate[]; - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowClosure instance - */ - public static create(properties?: flyteidl.core.IWorkflowClosure): flyteidl.core.WorkflowClosure; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. - * @param message WorkflowClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowClosure; - - /** - * Verifies a WorkflowClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Namespace event. */ - namespace event { - - /** Properties of a CloudEventWorkflowExecution. */ - interface ICloudEventWorkflowExecution { - - /** CloudEventWorkflowExecution rawEvent */ - rawEvent?: (flyteidl.event.IWorkflowExecutionEvent|null); - - /** CloudEventWorkflowExecution outputInterface */ - outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventWorkflowExecution artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventWorkflowExecution referenceExecution */ - referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventWorkflowExecution principal */ - principal?: (string|null); - - /** CloudEventWorkflowExecution launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a CloudEventWorkflowExecution. */ - class CloudEventWorkflowExecution implements ICloudEventWorkflowExecution { - - /** - * Constructs a new CloudEventWorkflowExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventWorkflowExecution); - - /** CloudEventWorkflowExecution rawEvent. */ - public rawEvent?: (flyteidl.event.IWorkflowExecutionEvent|null); - - /** CloudEventWorkflowExecution outputInterface. */ - public outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventWorkflowExecution artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventWorkflowExecution referenceExecution. */ - public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventWorkflowExecution principal. */ - public principal: string; - - /** CloudEventWorkflowExecution launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new CloudEventWorkflowExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventWorkflowExecution instance - */ - public static create(properties?: flyteidl.event.ICloudEventWorkflowExecution): flyteidl.event.CloudEventWorkflowExecution; - - /** - * Encodes the specified CloudEventWorkflowExecution message. Does not implicitly {@link flyteidl.event.CloudEventWorkflowExecution.verify|verify} messages. - * @param message CloudEventWorkflowExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventWorkflowExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventWorkflowExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventWorkflowExecution; - - /** - * Verifies a CloudEventWorkflowExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CloudEventNodeExecution. */ - interface ICloudEventNodeExecution { - - /** CloudEventNodeExecution rawEvent */ - rawEvent?: (flyteidl.event.INodeExecutionEvent|null); - - /** CloudEventNodeExecution taskExecId */ - taskExecId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** CloudEventNodeExecution outputInterface */ - outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventNodeExecution artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventNodeExecution principal */ - principal?: (string|null); - - /** CloudEventNodeExecution launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a CloudEventNodeExecution. */ - class CloudEventNodeExecution implements ICloudEventNodeExecution { - - /** - * Constructs a new CloudEventNodeExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventNodeExecution); - - /** CloudEventNodeExecution rawEvent. */ - public rawEvent?: (flyteidl.event.INodeExecutionEvent|null); - - /** CloudEventNodeExecution taskExecId. */ - public taskExecId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** CloudEventNodeExecution outputInterface. */ - public outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventNodeExecution artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventNodeExecution principal. */ - public principal: string; - - /** CloudEventNodeExecution launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new CloudEventNodeExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventNodeExecution instance - */ - public static create(properties?: flyteidl.event.ICloudEventNodeExecution): flyteidl.event.CloudEventNodeExecution; - - /** - * Encodes the specified CloudEventNodeExecution message. Does not implicitly {@link flyteidl.event.CloudEventNodeExecution.verify|verify} messages. - * @param message CloudEventNodeExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventNodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventNodeExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventNodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventNodeExecution; - - /** - * Verifies a CloudEventNodeExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CloudEventTaskExecution. */ - interface ICloudEventTaskExecution { - - /** CloudEventTaskExecution rawEvent */ - rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); - } - - /** Represents a CloudEventTaskExecution. */ - class CloudEventTaskExecution implements ICloudEventTaskExecution { - - /** - * Constructs a new CloudEventTaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventTaskExecution); - - /** CloudEventTaskExecution rawEvent. */ - public rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); - - /** - * Creates a new CloudEventTaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventTaskExecution instance - */ - public static create(properties?: flyteidl.event.ICloudEventTaskExecution): flyteidl.event.CloudEventTaskExecution; - - /** - * Encodes the specified CloudEventTaskExecution message. Does not implicitly {@link flyteidl.event.CloudEventTaskExecution.verify|verify} messages. - * @param message CloudEventTaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventTaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventTaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventTaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventTaskExecution; - - /** - * Verifies a CloudEventTaskExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CloudEventExecutionStart. */ - interface ICloudEventExecutionStart { - - /** CloudEventExecutionStart executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventExecutionStart launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart workflowId */ - workflowId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventExecutionStart artifactTrackers */ - artifactTrackers?: (string[]|null); - - /** CloudEventExecutionStart principal */ - principal?: (string|null); - } - - /** Represents a CloudEventExecutionStart. */ - class CloudEventExecutionStart implements ICloudEventExecutionStart { - - /** - * Constructs a new CloudEventExecutionStart. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventExecutionStart); - - /** CloudEventExecutionStart executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventExecutionStart launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart workflowId. */ - public workflowId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventExecutionStart artifactTrackers. */ - public artifactTrackers: string[]; - - /** CloudEventExecutionStart principal. */ - public principal: string; - - /** - * Creates a new CloudEventExecutionStart instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventExecutionStart instance - */ - public static create(properties?: flyteidl.event.ICloudEventExecutionStart): flyteidl.event.CloudEventExecutionStart; - - /** - * Encodes the specified CloudEventExecutionStart message. Does not implicitly {@link flyteidl.event.CloudEventExecutionStart.verify|verify} messages. - * @param message CloudEventExecutionStart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventExecutionStart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventExecutionStart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventExecutionStart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventExecutionStart; - - /** - * Verifies a CloudEventExecutionStart message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionEvent. */ - interface IWorkflowExecutionEvent { - - /** WorkflowExecutionEvent executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionEvent producerId */ - producerId?: (string|null); - - /** WorkflowExecutionEvent phase */ - phase?: (flyteidl.core.WorkflowExecution.Phase|null); - - /** WorkflowExecutionEvent occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** WorkflowExecutionEvent outputUri */ - outputUri?: (string|null); - - /** WorkflowExecutionEvent error */ - error?: (flyteidl.core.IExecutionError|null); - - /** WorkflowExecutionEvent outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a WorkflowExecutionEvent. */ - class WorkflowExecutionEvent implements IWorkflowExecutionEvent { - - /** - * Constructs a new WorkflowExecutionEvent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IWorkflowExecutionEvent); - - /** WorkflowExecutionEvent executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionEvent producerId. */ - public producerId: string; - - /** WorkflowExecutionEvent phase. */ - public phase: flyteidl.core.WorkflowExecution.Phase; - - /** WorkflowExecutionEvent occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** WorkflowExecutionEvent outputUri. */ - public outputUri: string; - - /** WorkflowExecutionEvent error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** WorkflowExecutionEvent outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** WorkflowExecutionEvent outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** - * Creates a new WorkflowExecutionEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionEvent instance - */ - public static create(properties?: flyteidl.event.IWorkflowExecutionEvent): flyteidl.event.WorkflowExecutionEvent; - - /** - * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. - * @param message WorkflowExecutionEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IWorkflowExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowExecutionEvent; - - /** - * Verifies a WorkflowExecutionEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionEvent. */ - interface INodeExecutionEvent { - - /** NodeExecutionEvent id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecutionEvent producerId */ - producerId?: (string|null); - - /** NodeExecutionEvent phase */ - phase?: (flyteidl.core.NodeExecution.Phase|null); - - /** NodeExecutionEvent occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent inputUri */ - inputUri?: (string|null); - - /** NodeExecutionEvent inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent outputUri */ - outputUri?: (string|null); - - /** NodeExecutionEvent error */ - error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionEvent outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent workflowNodeMetadata */ - workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); - - /** NodeExecutionEvent taskNodeMetadata */ - taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); - - /** NodeExecutionEvent parentTaskMetadata */ - parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); - - /** NodeExecutionEvent parentNodeMetadata */ - parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); - - /** NodeExecutionEvent retryGroup */ - retryGroup?: (string|null); - - /** NodeExecutionEvent specNodeId */ - specNodeId?: (string|null); - - /** NodeExecutionEvent nodeName */ - nodeName?: (string|null); - - /** NodeExecutionEvent eventVersion */ - eventVersion?: (number|null); - - /** NodeExecutionEvent isParent */ - isParent?: (boolean|null); - - /** NodeExecutionEvent isDynamic */ - isDynamic?: (boolean|null); - - /** NodeExecutionEvent deckUri */ - deckUri?: (string|null); - - /** NodeExecutionEvent reportedAt */ - reportedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent isArray */ - isArray?: (boolean|null); - } - - /** Represents a NodeExecutionEvent. */ - class NodeExecutionEvent implements INodeExecutionEvent { - - /** - * Constructs a new NodeExecutionEvent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.INodeExecutionEvent); - - /** NodeExecutionEvent id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecutionEvent producerId. */ - public producerId: string; - - /** NodeExecutionEvent phase. */ - public phase: flyteidl.core.NodeExecution.Phase; - - /** NodeExecutionEvent occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent inputUri. */ - public inputUri: string; - - /** NodeExecutionEvent inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent outputUri. */ - public outputUri: string; - - /** NodeExecutionEvent error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionEvent outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent workflowNodeMetadata. */ - public workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); - - /** NodeExecutionEvent taskNodeMetadata. */ - public taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); - - /** NodeExecutionEvent parentTaskMetadata. */ - public parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); - - /** NodeExecutionEvent parentNodeMetadata. */ - public parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); - - /** NodeExecutionEvent retryGroup. */ - public retryGroup: string; - - /** NodeExecutionEvent specNodeId. */ - public specNodeId: string; - - /** NodeExecutionEvent nodeName. */ - public nodeName: string; - - /** NodeExecutionEvent eventVersion. */ - public eventVersion: number; - - /** NodeExecutionEvent isParent. */ - public isParent: boolean; - - /** NodeExecutionEvent isDynamic. */ - public isDynamic: boolean; - - /** NodeExecutionEvent deckUri. */ - public deckUri: string; - - /** NodeExecutionEvent reportedAt. */ - public reportedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent isArray. */ - public isArray: boolean; - - /** NodeExecutionEvent inputValue. */ - public inputValue?: ("inputUri"|"inputData"); - - /** NodeExecutionEvent outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** NodeExecutionEvent targetMetadata. */ - public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); - - /** - * Creates a new NodeExecutionEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionEvent instance - */ - public static create(properties?: flyteidl.event.INodeExecutionEvent): flyteidl.event.NodeExecutionEvent; - - /** - * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. - * @param message NodeExecutionEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.INodeExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.NodeExecutionEvent; - - /** - * Verifies a NodeExecutionEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowNodeMetadata. */ - interface IWorkflowNodeMetadata { - - /** WorkflowNodeMetadata executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowNodeMetadata. */ - class WorkflowNodeMetadata implements IWorkflowNodeMetadata { - - /** - * Constructs a new WorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IWorkflowNodeMetadata); - - /** WorkflowNodeMetadata executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.event.IWorkflowNodeMetadata): flyteidl.event.WorkflowNodeMetadata; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. - * @param message WorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowNodeMetadata; - - /** - * Verifies a WorkflowNodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskNodeMetadata. */ - interface ITaskNodeMetadata { - - /** TaskNodeMetadata cacheStatus */ - cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); - - /** TaskNodeMetadata catalogKey */ - catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata reservationStatus */ - reservationStatus?: (flyteidl.core.CatalogReservation.Status|null); - - /** TaskNodeMetadata checkpointUri */ - checkpointUri?: (string|null); - - /** TaskNodeMetadata dynamicWorkflow */ - dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); - } - - /** Represents a TaskNodeMetadata. */ - class TaskNodeMetadata implements ITaskNodeMetadata { - - /** - * Constructs a new TaskNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ITaskNodeMetadata); - - /** TaskNodeMetadata cacheStatus. */ - public cacheStatus: flyteidl.core.CatalogCacheStatus; - - /** TaskNodeMetadata catalogKey. */ - public catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata reservationStatus. */ - public reservationStatus: flyteidl.core.CatalogReservation.Status; - - /** TaskNodeMetadata checkpointUri. */ - public checkpointUri: string; - - /** TaskNodeMetadata dynamicWorkflow. */ - public dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNodeMetadata instance - */ - public static create(properties?: flyteidl.event.ITaskNodeMetadata): flyteidl.event.TaskNodeMetadata; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. - * @param message TaskNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskNodeMetadata; - - /** - * Verifies a TaskNodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DynamicWorkflowNodeMetadata. */ - interface IDynamicWorkflowNodeMetadata { - - /** DynamicWorkflowNodeMetadata id */ - id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ - dynamicJobSpecUri?: (string|null); - } - - /** Represents a DynamicWorkflowNodeMetadata. */ - class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata); - - /** DynamicWorkflowNodeMetadata id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ - public dynamicJobSpecUri: string; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicWorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata): flyteidl.event.DynamicWorkflowNodeMetadata; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @param message DynamicWorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicWorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.DynamicWorkflowNodeMetadata; - - /** - * Verifies a DynamicWorkflowNodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ParentTaskExecutionMetadata. */ - interface IParentTaskExecutionMetadata { - - /** ParentTaskExecutionMetadata id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a ParentTaskExecutionMetadata. */ - class ParentTaskExecutionMetadata implements IParentTaskExecutionMetadata { - - /** - * Constructs a new ParentTaskExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IParentTaskExecutionMetadata); - - /** ParentTaskExecutionMetadata id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** - * Creates a new ParentTaskExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ParentTaskExecutionMetadata instance - */ - public static create(properties?: flyteidl.event.IParentTaskExecutionMetadata): flyteidl.event.ParentTaskExecutionMetadata; - - /** - * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. - * @param message ParentTaskExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IParentTaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParentTaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentTaskExecutionMetadata; - - /** - * Verifies a ParentTaskExecutionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ParentNodeExecutionMetadata. */ - interface IParentNodeExecutionMetadata { - - /** ParentNodeExecutionMetadata nodeId */ - nodeId?: (string|null); - } - - /** Represents a ParentNodeExecutionMetadata. */ - class ParentNodeExecutionMetadata implements IParentNodeExecutionMetadata { - - /** - * Constructs a new ParentNodeExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IParentNodeExecutionMetadata); - - /** ParentNodeExecutionMetadata nodeId. */ - public nodeId: string; - - /** - * Creates a new ParentNodeExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ParentNodeExecutionMetadata instance - */ - public static create(properties?: flyteidl.event.IParentNodeExecutionMetadata): flyteidl.event.ParentNodeExecutionMetadata; - - /** - * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. - * @param message ParentNodeExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IParentNodeExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParentNodeExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentNodeExecutionMetadata; - - /** - * Verifies a ParentNodeExecutionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EventReason. */ - interface IEventReason { - - /** EventReason reason */ - reason?: (string|null); - - /** EventReason occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents an EventReason. */ - class EventReason implements IEventReason { - - /** - * Constructs a new EventReason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IEventReason); - - /** EventReason reason. */ - public reason: string; - - /** EventReason occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new EventReason instance using the specified properties. - * @param [properties] Properties to set - * @returns EventReason instance - */ - public static create(properties?: flyteidl.event.IEventReason): flyteidl.event.EventReason; - - /** - * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages. - * @param message EventReason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IEventReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventReason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.EventReason; - - /** - * Verifies an EventReason message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionEvent. */ - interface ITaskExecutionEvent { - - /** TaskExecutionEvent taskId */ - taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionEvent parentNodeExecutionId */ - parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionEvent retryAttempt */ - retryAttempt?: (number|null); - - /** TaskExecutionEvent phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - - /** TaskExecutionEvent producerId */ - producerId?: (string|null); - - /** TaskExecutionEvent logs */ - logs?: (flyteidl.core.ITaskLog[]|null); - - /** TaskExecutionEvent occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionEvent inputUri */ - inputUri?: (string|null); - - /** TaskExecutionEvent inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent outputUri */ - outputUri?: (string|null); - - /** TaskExecutionEvent error */ - error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionEvent outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent customInfo */ - customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionEvent phaseVersion */ - phaseVersion?: (number|null); - - /** TaskExecutionEvent reason */ - reason?: (string|null); - - /** TaskExecutionEvent reasons */ - reasons?: (flyteidl.event.IEventReason[]|null); - - /** TaskExecutionEvent taskType */ - taskType?: (string|null); - - /** TaskExecutionEvent metadata */ - metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionEvent eventVersion */ - eventVersion?: (number|null); - - /** TaskExecutionEvent reportedAt */ - reportedAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a TaskExecutionEvent. */ - class TaskExecutionEvent implements ITaskExecutionEvent { - - /** - * Constructs a new TaskExecutionEvent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ITaskExecutionEvent); - - /** TaskExecutionEvent taskId. */ - public taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionEvent parentNodeExecutionId. */ - public parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionEvent retryAttempt. */ - public retryAttempt: number; - - /** TaskExecutionEvent phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** TaskExecutionEvent producerId. */ - public producerId: string; - - /** TaskExecutionEvent logs. */ - public logs: flyteidl.core.ITaskLog[]; - - /** TaskExecutionEvent occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionEvent inputUri. */ - public inputUri: string; - - /** TaskExecutionEvent inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent outputUri. */ - public outputUri: string; - - /** TaskExecutionEvent error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionEvent outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent customInfo. */ - public customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionEvent phaseVersion. */ - public phaseVersion: number; - - /** TaskExecutionEvent reason. */ - public reason: string; - - /** TaskExecutionEvent reasons. */ - public reasons: flyteidl.event.IEventReason[]; - - /** TaskExecutionEvent taskType. */ - public taskType: string; - - /** TaskExecutionEvent metadata. */ - public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionEvent eventVersion. */ - public eventVersion: number; - - /** TaskExecutionEvent reportedAt. */ - public reportedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionEvent inputValue. */ - public inputValue?: ("inputUri"|"inputData"); - - /** TaskExecutionEvent outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** - * Creates a new TaskExecutionEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionEvent instance - */ - public static create(properties?: flyteidl.event.ITaskExecutionEvent): flyteidl.event.TaskExecutionEvent; - - /** - * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. - * @param message TaskExecutionEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ITaskExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionEvent; - - /** - * Verifies a TaskExecutionEvent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExternalResourceInfo. */ - interface IExternalResourceInfo { - - /** ExternalResourceInfo externalId */ - externalId?: (string|null); - - /** ExternalResourceInfo index */ - index?: (number|null); - - /** ExternalResourceInfo retryAttempt */ - retryAttempt?: (number|null); - - /** ExternalResourceInfo phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - - /** ExternalResourceInfo cacheStatus */ - cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); - - /** ExternalResourceInfo logs */ - logs?: (flyteidl.core.ITaskLog[]|null); - } - - /** Represents an ExternalResourceInfo. */ - class ExternalResourceInfo implements IExternalResourceInfo { - - /** - * Constructs a new ExternalResourceInfo. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IExternalResourceInfo); - - /** ExternalResourceInfo externalId. */ - public externalId: string; - - /** ExternalResourceInfo index. */ - public index: number; - - /** ExternalResourceInfo retryAttempt. */ - public retryAttempt: number; - - /** ExternalResourceInfo phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** ExternalResourceInfo cacheStatus. */ - public cacheStatus: flyteidl.core.CatalogCacheStatus; - - /** ExternalResourceInfo logs. */ - public logs: flyteidl.core.ITaskLog[]; - - /** - * Creates a new ExternalResourceInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ExternalResourceInfo instance - */ - public static create(properties?: flyteidl.event.IExternalResourceInfo): flyteidl.event.ExternalResourceInfo; - - /** - * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. - * @param message ExternalResourceInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IExternalResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExternalResourceInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExternalResourceInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ExternalResourceInfo; - - /** - * Verifies an ExternalResourceInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ResourcePoolInfo. */ - interface IResourcePoolInfo { - - /** ResourcePoolInfo allocationToken */ - allocationToken?: (string|null); - - /** ResourcePoolInfo namespace */ - namespace?: (string|null); - } - - /** Represents a ResourcePoolInfo. */ - class ResourcePoolInfo implements IResourcePoolInfo { - - /** - * Constructs a new ResourcePoolInfo. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IResourcePoolInfo); - - /** ResourcePoolInfo allocationToken. */ - public allocationToken: string; - - /** ResourcePoolInfo namespace. */ - public namespace: string; - - /** - * Creates a new ResourcePoolInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourcePoolInfo instance - */ - public static create(properties?: flyteidl.event.IResourcePoolInfo): flyteidl.event.ResourcePoolInfo; - - /** - * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. - * @param message ResourcePoolInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IResourcePoolInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourcePoolInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourcePoolInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ResourcePoolInfo; - - /** - * Verifies a ResourcePoolInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionMetadata. */ - interface ITaskExecutionMetadata { - - /** TaskExecutionMetadata generatedName */ - generatedName?: (string|null); - - /** TaskExecutionMetadata externalResources */ - externalResources?: (flyteidl.event.IExternalResourceInfo[]|null); - - /** TaskExecutionMetadata resourcePoolInfo */ - resourcePoolInfo?: (flyteidl.event.IResourcePoolInfo[]|null); - - /** TaskExecutionMetadata pluginIdentifier */ - pluginIdentifier?: (string|null); - - /** TaskExecutionMetadata instanceClass */ - instanceClass?: (flyteidl.event.TaskExecutionMetadata.InstanceClass|null); - } - - /** Represents a TaskExecutionMetadata. */ - class TaskExecutionMetadata implements ITaskExecutionMetadata { - - /** - * Constructs a new TaskExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ITaskExecutionMetadata); - - /** TaskExecutionMetadata generatedName. */ - public generatedName: string; - - /** TaskExecutionMetadata externalResources. */ - public externalResources: flyteidl.event.IExternalResourceInfo[]; - - /** TaskExecutionMetadata resourcePoolInfo. */ - public resourcePoolInfo: flyteidl.event.IResourcePoolInfo[]; - - /** TaskExecutionMetadata pluginIdentifier. */ - public pluginIdentifier: string; - - /** TaskExecutionMetadata instanceClass. */ - public instanceClass: flyteidl.event.TaskExecutionMetadata.InstanceClass; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionMetadata instance - */ - public static create(properties?: flyteidl.event.ITaskExecutionMetadata): flyteidl.event.TaskExecutionMetadata; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. - * @param message TaskExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionMetadata; - - /** - * Verifies a TaskExecutionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace TaskExecutionMetadata { - - /** InstanceClass enum. */ - enum InstanceClass { - DEFAULT = 0, - INTERRUPTIBLE = 1 - } - } - } - - /** Namespace admin. */ - namespace admin { - - /** State enum. */ - enum State { - RETRYABLE_FAILURE = 0, - PERMANENT_FAILURE = 1, - PENDING = 2, - RUNNING = 3, - SUCCEEDED = 4 - } - - /** Properties of a TaskExecutionMetadata. */ - interface ITaskExecutionMetadata { - - /** TaskExecutionMetadata taskExecutionId */ - taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecutionMetadata namespace */ - namespace?: (string|null); - - /** TaskExecutionMetadata labels */ - labels?: ({ [k: string]: string }|null); - - /** TaskExecutionMetadata annotations */ - annotations?: ({ [k: string]: string }|null); - - /** TaskExecutionMetadata k8sServiceAccount */ - k8sServiceAccount?: (string|null); - - /** TaskExecutionMetadata environmentVariables */ - environmentVariables?: ({ [k: string]: string }|null); - - /** TaskExecutionMetadata maxAttempts */ - maxAttempts?: (number|null); - - /** TaskExecutionMetadata interruptible */ - interruptible?: (boolean|null); - - /** TaskExecutionMetadata interruptibleFailureThreshold */ - interruptibleFailureThreshold?: (number|null); - - /** TaskExecutionMetadata overrides */ - overrides?: (flyteidl.core.ITaskNodeOverrides|null); - } - - /** Represents a TaskExecutionMetadata. */ - class TaskExecutionMetadata implements ITaskExecutionMetadata { - - /** - * Constructs a new TaskExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionMetadata); - - /** TaskExecutionMetadata taskExecutionId. */ - public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecutionMetadata namespace. */ - public namespace: string; - - /** TaskExecutionMetadata labels. */ - public labels: { [k: string]: string }; - - /** TaskExecutionMetadata annotations. */ - public annotations: { [k: string]: string }; - - /** TaskExecutionMetadata k8sServiceAccount. */ - public k8sServiceAccount: string; - - /** TaskExecutionMetadata environmentVariables. */ - public environmentVariables: { [k: string]: string }; - - /** TaskExecutionMetadata maxAttempts. */ - public maxAttempts: number; - - /** TaskExecutionMetadata interruptible. */ - public interruptible: boolean; - - /** TaskExecutionMetadata interruptibleFailureThreshold. */ - public interruptibleFailureThreshold: number; - - /** TaskExecutionMetadata overrides. */ - public overrides?: (flyteidl.core.ITaskNodeOverrides|null); - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionMetadata instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionMetadata): flyteidl.admin.TaskExecutionMetadata; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. - * @param message TaskExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionMetadata; - - /** - * Verifies a TaskExecutionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateTaskRequest. */ - interface ICreateTaskRequest { - - /** CreateTaskRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** CreateTaskRequest template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** CreateTaskRequest outputPrefix */ - outputPrefix?: (string|null); - - /** CreateTaskRequest taskExecutionMetadata */ - taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); - } - - /** Represents a CreateTaskRequest. */ - class CreateTaskRequest implements ICreateTaskRequest { - - /** - * Constructs a new CreateTaskRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICreateTaskRequest); - - /** CreateTaskRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** CreateTaskRequest template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** CreateTaskRequest outputPrefix. */ - public outputPrefix: string; - - /** CreateTaskRequest taskExecutionMetadata. */ - public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); - - /** - * Creates a new CreateTaskRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTaskRequest instance - */ - public static create(properties?: flyteidl.admin.ICreateTaskRequest): flyteidl.admin.CreateTaskRequest; - - /** - * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. - * @param message CreateTaskRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICreateTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTaskRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateTaskRequest; - - /** - * Verifies a CreateTaskRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateTaskResponse. */ - interface ICreateTaskResponse { - - /** CreateTaskResponse resourceMeta */ - resourceMeta?: (Uint8Array|null); - } - - /** Represents a CreateTaskResponse. */ - class CreateTaskResponse implements ICreateTaskResponse { - - /** - * Constructs a new CreateTaskResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICreateTaskResponse); - - /** CreateTaskResponse resourceMeta. */ - public resourceMeta: Uint8Array; - - /** - * Creates a new CreateTaskResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTaskResponse instance - */ - public static create(properties?: flyteidl.admin.ICreateTaskResponse): flyteidl.admin.CreateTaskResponse; - - /** - * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. - * @param message CreateTaskResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICreateTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTaskResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateTaskResponse; - - /** - * Verifies a CreateTaskResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateRequestHeader. */ - interface ICreateRequestHeader { - - /** CreateRequestHeader template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** CreateRequestHeader outputPrefix */ - outputPrefix?: (string|null); - - /** CreateRequestHeader taskExecutionMetadata */ - taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); - - /** CreateRequestHeader maxDatasetSizeBytes */ - maxDatasetSizeBytes?: (Long|null); - } - - /** Represents a CreateRequestHeader. */ - class CreateRequestHeader implements ICreateRequestHeader { - - /** - * Constructs a new CreateRequestHeader. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICreateRequestHeader); - - /** CreateRequestHeader template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** CreateRequestHeader outputPrefix. */ - public outputPrefix: string; - - /** CreateRequestHeader taskExecutionMetadata. */ - public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); - - /** CreateRequestHeader maxDatasetSizeBytes. */ - public maxDatasetSizeBytes: Long; - - /** - * Creates a new CreateRequestHeader instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateRequestHeader instance - */ - public static create(properties?: flyteidl.admin.ICreateRequestHeader): flyteidl.admin.CreateRequestHeader; - - /** - * Encodes the specified CreateRequestHeader message. Does not implicitly {@link flyteidl.admin.CreateRequestHeader.verify|verify} messages. - * @param message CreateRequestHeader message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICreateRequestHeader, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateRequestHeader message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateRequestHeader - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateRequestHeader; - - /** - * Verifies a CreateRequestHeader message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecuteTaskSyncRequest. */ - interface IExecuteTaskSyncRequest { - - /** ExecuteTaskSyncRequest header */ - header?: (flyteidl.admin.ICreateRequestHeader|null); - - /** ExecuteTaskSyncRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents an ExecuteTaskSyncRequest. */ - class ExecuteTaskSyncRequest implements IExecuteTaskSyncRequest { - - /** - * Constructs a new ExecuteTaskSyncRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecuteTaskSyncRequest); - - /** ExecuteTaskSyncRequest header. */ - public header?: (flyteidl.admin.ICreateRequestHeader|null); - - /** ExecuteTaskSyncRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecuteTaskSyncRequest part. */ - public part?: ("header"|"inputs"); - - /** - * Creates a new ExecuteTaskSyncRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteTaskSyncRequest instance - */ - public static create(properties?: flyteidl.admin.IExecuteTaskSyncRequest): flyteidl.admin.ExecuteTaskSyncRequest; - - /** - * Encodes the specified ExecuteTaskSyncRequest message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncRequest.verify|verify} messages. - * @param message ExecuteTaskSyncRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecuteTaskSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteTaskSyncRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteTaskSyncRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncRequest; - - /** - * Verifies an ExecuteTaskSyncRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecuteTaskSyncResponseHeader. */ - interface IExecuteTaskSyncResponseHeader { - - /** ExecuteTaskSyncResponseHeader resource */ - resource?: (flyteidl.admin.IResource|null); - } - - /** Represents an ExecuteTaskSyncResponseHeader. */ - class ExecuteTaskSyncResponseHeader implements IExecuteTaskSyncResponseHeader { - - /** - * Constructs a new ExecuteTaskSyncResponseHeader. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecuteTaskSyncResponseHeader); - - /** ExecuteTaskSyncResponseHeader resource. */ - public resource?: (flyteidl.admin.IResource|null); - - /** - * Creates a new ExecuteTaskSyncResponseHeader instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteTaskSyncResponseHeader instance - */ - public static create(properties?: flyteidl.admin.IExecuteTaskSyncResponseHeader): flyteidl.admin.ExecuteTaskSyncResponseHeader; - - /** - * Encodes the specified ExecuteTaskSyncResponseHeader message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponseHeader.verify|verify} messages. - * @param message ExecuteTaskSyncResponseHeader message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecuteTaskSyncResponseHeader, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteTaskSyncResponseHeader message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteTaskSyncResponseHeader - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncResponseHeader; - - /** - * Verifies an ExecuteTaskSyncResponseHeader message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecuteTaskSyncResponse. */ - interface IExecuteTaskSyncResponse { - - /** ExecuteTaskSyncResponse header */ - header?: (flyteidl.admin.IExecuteTaskSyncResponseHeader|null); - - /** ExecuteTaskSyncResponse outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents an ExecuteTaskSyncResponse. */ - class ExecuteTaskSyncResponse implements IExecuteTaskSyncResponse { - - /** - * Constructs a new ExecuteTaskSyncResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecuteTaskSyncResponse); - - /** ExecuteTaskSyncResponse header. */ - public header?: (flyteidl.admin.IExecuteTaskSyncResponseHeader|null); - - /** ExecuteTaskSyncResponse outputs. */ - public outputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecuteTaskSyncResponse res. */ - public res?: ("header"|"outputs"); - - /** - * Creates a new ExecuteTaskSyncResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecuteTaskSyncResponse instance - */ - public static create(properties?: flyteidl.admin.IExecuteTaskSyncResponse): flyteidl.admin.ExecuteTaskSyncResponse; - - /** - * Encodes the specified ExecuteTaskSyncResponse message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponse.verify|verify} messages. - * @param message ExecuteTaskSyncResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecuteTaskSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecuteTaskSyncResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecuteTaskSyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncResponse; - - /** - * Verifies an ExecuteTaskSyncResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskRequest. */ - interface IGetTaskRequest { - - /** GetTaskRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); - - /** GetTaskRequest resourceMeta */ - resourceMeta?: (Uint8Array|null); - - /** GetTaskRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); - } - - /** Represents a GetTaskRequest. */ - class GetTaskRequest implements IGetTaskRequest { - - /** - * Constructs a new GetTaskRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskRequest); - - /** GetTaskRequest deprecatedTaskType. */ - public deprecatedTaskType: string; - - /** GetTaskRequest resourceMeta. */ - public resourceMeta: Uint8Array; - - /** GetTaskRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); - - /** - * Creates a new GetTaskRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskRequest instance - */ - public static create(properties?: flyteidl.admin.IGetTaskRequest): flyteidl.admin.GetTaskRequest; - - /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. - * @param message GetTaskRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskRequest; - - /** - * Verifies a GetTaskRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskResponse. */ - interface IGetTaskResponse { - - /** GetTaskResponse resource */ - resource?: (flyteidl.admin.IResource|null); - } - - /** Represents a GetTaskResponse. */ - class GetTaskResponse implements IGetTaskResponse { - - /** - * Constructs a new GetTaskResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskResponse); - - /** GetTaskResponse resource. */ - public resource?: (flyteidl.admin.IResource|null); - - /** - * Creates a new GetTaskResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskResponse instance - */ - public static create(properties?: flyteidl.admin.IGetTaskResponse): flyteidl.admin.GetTaskResponse; - - /** - * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. - * @param message GetTaskResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskResponse; - - /** - * Verifies a GetTaskResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Resource. */ - interface IResource { - - /** Resource state */ - state?: (flyteidl.admin.State|null); - - /** Resource outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); - - /** Resource message */ - message?: (string|null); - - /** Resource logLinks */ - logLinks?: (flyteidl.core.ITaskLog[]|null); - - /** Resource phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - } - - /** Represents a Resource. */ - class Resource implements IResource { - - /** - * Constructs a new Resource. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IResource); - - /** Resource state. */ - public state: flyteidl.admin.State; - - /** Resource outputs. */ - public outputs?: (flyteidl.core.ILiteralMap|null); - - /** Resource message. */ - public message: string; - - /** Resource logLinks. */ - public logLinks: flyteidl.core.ITaskLog[]; - - /** Resource phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** - * Creates a new Resource instance using the specified properties. - * @param [properties] Properties to set - * @returns Resource instance - */ - public static create(properties?: flyteidl.admin.IResource): flyteidl.admin.Resource; - - /** - * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. - * @param message Resource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Resource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Resource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Resource; - - /** - * Verifies a Resource message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DeleteTaskRequest. */ - interface IDeleteTaskRequest { - - /** DeleteTaskRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); - - /** DeleteTaskRequest resourceMeta */ - resourceMeta?: (Uint8Array|null); - - /** DeleteTaskRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); - } - - /** Represents a DeleteTaskRequest. */ - class DeleteTaskRequest implements IDeleteTaskRequest { - - /** - * Constructs a new DeleteTaskRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDeleteTaskRequest); - - /** DeleteTaskRequest deprecatedTaskType. */ - public deprecatedTaskType: string; - - /** DeleteTaskRequest resourceMeta. */ - public resourceMeta: Uint8Array; - - /** DeleteTaskRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); - - /** - * Creates a new DeleteTaskRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTaskRequest instance - */ - public static create(properties?: flyteidl.admin.IDeleteTaskRequest): flyteidl.admin.DeleteTaskRequest; - - /** - * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. - * @param message DeleteTaskRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDeleteTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTaskRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DeleteTaskRequest; - - /** - * Verifies a DeleteTaskRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DeleteTaskResponse. */ - interface IDeleteTaskResponse { - } - - /** Represents a DeleteTaskResponse. */ - class DeleteTaskResponse implements IDeleteTaskResponse { - - /** - * Constructs a new DeleteTaskResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDeleteTaskResponse); - - /** - * Creates a new DeleteTaskResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTaskResponse instance - */ - public static create(properties?: flyteidl.admin.IDeleteTaskResponse): flyteidl.admin.DeleteTaskResponse; - - /** - * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. - * @param message DeleteTaskResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDeleteTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTaskResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DeleteTaskResponse; - - /** - * Verifies a DeleteTaskResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Agent. */ - interface IAgent { - - /** Agent name */ - name?: (string|null); - - /** Agent deprecatedSupportedTaskTypes */ - deprecatedSupportedTaskTypes?: (string[]|null); - - /** Agent isSync */ - isSync?: (boolean|null); - - /** Agent supportedTaskTypes */ - supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); - } - - /** Represents an Agent. */ - class Agent implements IAgent { - - /** - * Constructs a new Agent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAgent); - - /** Agent name. */ - public name: string; - - /** Agent deprecatedSupportedTaskTypes. */ - public deprecatedSupportedTaskTypes: string[]; - - /** Agent isSync. */ - public isSync: boolean; - - /** Agent supportedTaskTypes. */ - public supportedTaskTypes: flyteidl.admin.ITaskType[]; - - /** - * Creates a new Agent instance using the specified properties. - * @param [properties] Properties to set - * @returns Agent instance - */ - public static create(properties?: flyteidl.admin.IAgent): flyteidl.admin.Agent; - - /** - * Encodes the specified Agent message. Does not implicitly {@link flyteidl.admin.Agent.verify|verify} messages. - * @param message Agent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Agent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Agent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Agent; - - /** - * Verifies an Agent message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskType. */ - interface ITaskType { - - /** TaskType name */ - name?: (string|null); - - /** TaskType version */ - version?: (number|null); - } - - /** Represents a TaskType. */ - class TaskType implements ITaskType { - - /** - * Constructs a new TaskType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskType); - - /** TaskType name. */ - public name: string; - - /** TaskType version. */ - public version: number; - - /** - * Creates a new TaskType instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskType instance - */ - public static create(properties?: flyteidl.admin.ITaskType): flyteidl.admin.TaskType; - - /** - * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. - * @param message TaskType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskType; - - /** - * Verifies a TaskType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetAgentRequest. */ - interface IGetAgentRequest { - - /** GetAgentRequest name */ - name?: (string|null); - } - - /** Represents a GetAgentRequest. */ - class GetAgentRequest implements IGetAgentRequest { - - /** - * Constructs a new GetAgentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetAgentRequest); - - /** GetAgentRequest name. */ - public name: string; - - /** - * Creates a new GetAgentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAgentRequest instance - */ - public static create(properties?: flyteidl.admin.IGetAgentRequest): flyteidl.admin.GetAgentRequest; - - /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link flyteidl.admin.GetAgentRequest.verify|verify} messages. - * @param message GetAgentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAgentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetAgentRequest; - - /** - * Verifies a GetAgentRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetAgentResponse. */ - interface IGetAgentResponse { - - /** GetAgentResponse agent */ - agent?: (flyteidl.admin.IAgent|null); - } - - /** Represents a GetAgentResponse. */ - class GetAgentResponse implements IGetAgentResponse { - - /** - * Constructs a new GetAgentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetAgentResponse); - - /** GetAgentResponse agent. */ - public agent?: (flyteidl.admin.IAgent|null); - - /** - * Creates a new GetAgentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAgentResponse instance - */ - public static create(properties?: flyteidl.admin.IGetAgentResponse): flyteidl.admin.GetAgentResponse; - - /** - * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. - * @param message GetAgentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAgentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAgentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetAgentResponse; - - /** - * Verifies a GetAgentResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ListAgentsRequest. */ - interface IListAgentsRequest { - } - - /** Represents a ListAgentsRequest. */ - class ListAgentsRequest implements IListAgentsRequest { - - /** - * Constructs a new ListAgentsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListAgentsRequest); - - /** - * Creates a new ListAgentsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAgentsRequest instance - */ - public static create(properties?: flyteidl.admin.IListAgentsRequest): flyteidl.admin.ListAgentsRequest; - - /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. - * @param message ListAgentsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAgentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListAgentsRequest; - - /** - * Verifies a ListAgentsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ListAgentsResponse. */ - interface IListAgentsResponse { - - /** ListAgentsResponse agents */ - agents?: (flyteidl.admin.IAgent[]|null); - } - - /** Represents a ListAgentsResponse. */ - class ListAgentsResponse implements IListAgentsResponse { - - /** - * Constructs a new ListAgentsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListAgentsResponse); - - /** ListAgentsResponse agents. */ - public agents: flyteidl.admin.IAgent[]; - - /** - * Creates a new ListAgentsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAgentsResponse instance - */ - public static create(properties?: flyteidl.admin.IListAgentsResponse): flyteidl.admin.ListAgentsResponse; - - /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. - * @param message ListAgentsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAgentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListAgentsResponse; - - /** - * Verifies a ListAgentsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskMetricsRequest. */ - interface IGetTaskMetricsRequest { - - /** GetTaskMetricsRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); - - /** GetTaskMetricsRequest resourceMeta */ - resourceMeta?: (Uint8Array|null); - - /** GetTaskMetricsRequest queries */ - queries?: (string[]|null); - - /** GetTaskMetricsRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** GetTaskMetricsRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** GetTaskMetricsRequest step */ - step?: (google.protobuf.IDuration|null); - - /** GetTaskMetricsRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); - } - - /** Represents a GetTaskMetricsRequest. */ - class GetTaskMetricsRequest implements IGetTaskMetricsRequest { - - /** - * Constructs a new GetTaskMetricsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskMetricsRequest); - - /** GetTaskMetricsRequest deprecatedTaskType. */ - public deprecatedTaskType: string; - - /** GetTaskMetricsRequest resourceMeta. */ - public resourceMeta: Uint8Array; - - /** GetTaskMetricsRequest queries. */ - public queries: string[]; - - /** GetTaskMetricsRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** GetTaskMetricsRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** GetTaskMetricsRequest step. */ - public step?: (google.protobuf.IDuration|null); - - /** GetTaskMetricsRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); - - /** - * Creates a new GetTaskMetricsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskMetricsRequest instance - */ - public static create(properties?: flyteidl.admin.IGetTaskMetricsRequest): flyteidl.admin.GetTaskMetricsRequest; - - /** - * Encodes the specified GetTaskMetricsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsRequest.verify|verify} messages. - * @param message GetTaskMetricsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskMetricsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskMetricsRequest; - - /** - * Verifies a GetTaskMetricsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskMetricsResponse. */ - interface IGetTaskMetricsResponse { - - /** GetTaskMetricsResponse results */ - results?: (flyteidl.core.IExecutionMetricResult[]|null); - } - - /** Represents a GetTaskMetricsResponse. */ - class GetTaskMetricsResponse implements IGetTaskMetricsResponse { - - /** - * Constructs a new GetTaskMetricsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskMetricsResponse); - - /** GetTaskMetricsResponse results. */ - public results: flyteidl.core.IExecutionMetricResult[]; - - /** - * Creates a new GetTaskMetricsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskMetricsResponse instance - */ - public static create(properties?: flyteidl.admin.IGetTaskMetricsResponse): flyteidl.admin.GetTaskMetricsResponse; - - /** - * Encodes the specified GetTaskMetricsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsResponse.verify|verify} messages. - * @param message GetTaskMetricsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskMetricsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskMetricsResponse; - - /** - * Verifies a GetTaskMetricsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskLogsRequest. */ - interface IGetTaskLogsRequest { - - /** GetTaskLogsRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); - - /** GetTaskLogsRequest resourceMeta */ - resourceMeta?: (Uint8Array|null); - - /** GetTaskLogsRequest lines */ - lines?: (Long|null); - - /** GetTaskLogsRequest token */ - token?: (string|null); - - /** GetTaskLogsRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); - } - - /** Represents a GetTaskLogsRequest. */ - class GetTaskLogsRequest implements IGetTaskLogsRequest { - - /** - * Constructs a new GetTaskLogsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskLogsRequest); - - /** GetTaskLogsRequest deprecatedTaskType. */ - public deprecatedTaskType: string; - - /** GetTaskLogsRequest resourceMeta. */ - public resourceMeta: Uint8Array; - - /** GetTaskLogsRequest lines. */ - public lines: Long; - - /** GetTaskLogsRequest token. */ - public token: string; - - /** GetTaskLogsRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); - - /** - * Creates a new GetTaskLogsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskLogsRequest instance - */ - public static create(properties?: flyteidl.admin.IGetTaskLogsRequest): flyteidl.admin.GetTaskLogsRequest; - - /** - * Encodes the specified GetTaskLogsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskLogsRequest.verify|verify} messages. - * @param message GetTaskLogsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskLogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskLogsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskLogsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsRequest; - - /** - * Verifies a GetTaskLogsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskLogsResponseHeader. */ - interface IGetTaskLogsResponseHeader { - - /** GetTaskLogsResponseHeader token */ - token?: (string|null); - } - - /** Represents a GetTaskLogsResponseHeader. */ - class GetTaskLogsResponseHeader implements IGetTaskLogsResponseHeader { - - /** - * Constructs a new GetTaskLogsResponseHeader. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskLogsResponseHeader); - - /** GetTaskLogsResponseHeader token. */ - public token: string; - - /** - * Creates a new GetTaskLogsResponseHeader instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskLogsResponseHeader instance - */ - public static create(properties?: flyteidl.admin.IGetTaskLogsResponseHeader): flyteidl.admin.GetTaskLogsResponseHeader; - - /** - * Encodes the specified GetTaskLogsResponseHeader message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseHeader.verify|verify} messages. - * @param message GetTaskLogsResponseHeader message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskLogsResponseHeader, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskLogsResponseHeader message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskLogsResponseHeader - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponseHeader; - - /** - * Verifies a GetTaskLogsResponseHeader message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskLogsResponseBody. */ - interface IGetTaskLogsResponseBody { - - /** GetTaskLogsResponseBody results */ - results?: (string[]|null); - } - - /** Represents a GetTaskLogsResponseBody. */ - class GetTaskLogsResponseBody implements IGetTaskLogsResponseBody { - - /** - * Constructs a new GetTaskLogsResponseBody. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskLogsResponseBody); - - /** GetTaskLogsResponseBody results. */ - public results: string[]; - - /** - * Creates a new GetTaskLogsResponseBody instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskLogsResponseBody instance - */ - public static create(properties?: flyteidl.admin.IGetTaskLogsResponseBody): flyteidl.admin.GetTaskLogsResponseBody; - - /** - * Encodes the specified GetTaskLogsResponseBody message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseBody.verify|verify} messages. - * @param message GetTaskLogsResponseBody message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskLogsResponseBody, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskLogsResponseBody message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskLogsResponseBody - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponseBody; - - /** - * Verifies a GetTaskLogsResponseBody message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetTaskLogsResponse. */ - interface IGetTaskLogsResponse { - - /** GetTaskLogsResponse header */ - header?: (flyteidl.admin.IGetTaskLogsResponseHeader|null); - - /** GetTaskLogsResponse body */ - body?: (flyteidl.admin.IGetTaskLogsResponseBody|null); - } - - /** Represents a GetTaskLogsResponse. */ - class GetTaskLogsResponse implements IGetTaskLogsResponse { - - /** - * Constructs a new GetTaskLogsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskLogsResponse); - - /** GetTaskLogsResponse header. */ - public header?: (flyteidl.admin.IGetTaskLogsResponseHeader|null); - - /** GetTaskLogsResponse body. */ - public body?: (flyteidl.admin.IGetTaskLogsResponseBody|null); - - /** GetTaskLogsResponse part. */ - public part?: ("header"|"body"); - - /** - * Creates a new GetTaskLogsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskLogsResponse instance - */ - public static create(properties?: flyteidl.admin.IGetTaskLogsResponse): flyteidl.admin.GetTaskLogsResponse; - - /** - * Encodes the specified GetTaskLogsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponse.verify|verify} messages. - * @param message GetTaskLogsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskLogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskLogsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskLogsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponse; - - /** - * Verifies a GetTaskLogsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ClusterAssignment. */ - interface IClusterAssignment { - - /** ClusterAssignment clusterPoolName */ - clusterPoolName?: (string|null); - } - - /** Represents a ClusterAssignment. */ - class ClusterAssignment implements IClusterAssignment { - - /** - * Constructs a new ClusterAssignment. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IClusterAssignment); - - /** ClusterAssignment clusterPoolName. */ - public clusterPoolName: string; - - /** - * Creates a new ClusterAssignment instance using the specified properties. - * @param [properties] Properties to set - * @returns ClusterAssignment instance - */ - public static create(properties?: flyteidl.admin.IClusterAssignment): flyteidl.admin.ClusterAssignment; - - /** - * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. - * @param message ClusterAssignment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IClusterAssignment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClusterAssignment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClusterAssignment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ClusterAssignment; - - /** - * Verifies a ClusterAssignment message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityIdentifier. */ - interface INamedEntityIdentifier { - - /** NamedEntityIdentifier project */ - project?: (string|null); - - /** NamedEntityIdentifier domain */ - domain?: (string|null); - - /** NamedEntityIdentifier name */ - name?: (string|null); - - /** NamedEntityIdentifier org */ - org?: (string|null); - } - - /** Represents a NamedEntityIdentifier. */ - class NamedEntityIdentifier implements INamedEntityIdentifier { - - /** - * Constructs a new NamedEntityIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityIdentifier); - - /** NamedEntityIdentifier project. */ - public project: string; - - /** NamedEntityIdentifier domain. */ - public domain: string; - - /** NamedEntityIdentifier name. */ - public name: string; - - /** NamedEntityIdentifier org. */ - public org: string; - - /** - * Creates a new NamedEntityIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityIdentifier instance - */ - public static create(properties?: flyteidl.admin.INamedEntityIdentifier): flyteidl.admin.NamedEntityIdentifier; - - /** - * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. - * @param message NamedEntityIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifier; - - /** - * Verifies a NamedEntityIdentifier message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** NamedEntityState enum. */ - enum NamedEntityState { - NAMED_ENTITY_ACTIVE = 0, - NAMED_ENTITY_ARCHIVED = 1, - SYSTEM_GENERATED = 2 - } - - /** Properties of a NamedEntityMetadata. */ - interface INamedEntityMetadata { - - /** NamedEntityMetadata description */ - description?: (string|null); - - /** NamedEntityMetadata state */ - state?: (flyteidl.admin.NamedEntityState|null); - } - - /** Represents a NamedEntityMetadata. */ - class NamedEntityMetadata implements INamedEntityMetadata { - - /** - * Constructs a new NamedEntityMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityMetadata); - - /** NamedEntityMetadata description. */ - public description: string; - - /** NamedEntityMetadata state. */ - public state: flyteidl.admin.NamedEntityState; - - /** - * Creates a new NamedEntityMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityMetadata instance - */ - public static create(properties?: flyteidl.admin.INamedEntityMetadata): flyteidl.admin.NamedEntityMetadata; - - /** - * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. - * @param message NamedEntityMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityMetadata; - - /** - * Verifies a NamedEntityMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntity. */ - interface INamedEntity { - - /** NamedEntity resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntity id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntity metadata */ - metadata?: (flyteidl.admin.INamedEntityMetadata|null); - } - - /** Represents a NamedEntity. */ - class NamedEntity implements INamedEntity { - - /** - * Constructs a new NamedEntity. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntity); - - /** NamedEntity resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntity id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntity metadata. */ - public metadata?: (flyteidl.admin.INamedEntityMetadata|null); - - /** - * Creates a new NamedEntity instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntity instance - */ - public static create(properties?: flyteidl.admin.INamedEntity): flyteidl.admin.NamedEntity; - - /** - * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. - * @param message NamedEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntity, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntity; - - /** - * Verifies a NamedEntity message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Sort. */ - interface ISort { - - /** Sort key */ - key?: (string|null); - - /** Sort direction */ - direction?: (flyteidl.admin.Sort.Direction|null); - } - - /** Represents a Sort. */ - class Sort implements ISort { - - /** - * Constructs a new Sort. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISort); - - /** Sort key. */ - public key: string; - - /** Sort direction. */ - public direction: flyteidl.admin.Sort.Direction; - - /** - * Creates a new Sort instance using the specified properties. - * @param [properties] Properties to set - * @returns Sort instance - */ - public static create(properties?: flyteidl.admin.ISort): flyteidl.admin.Sort; - - /** - * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. - * @param message Sort message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISort, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Sort message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Sort - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Sort; - - /** - * Verifies a Sort message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace Sort { - - /** Direction enum. */ - enum Direction { - DESCENDING = 0, - ASCENDING = 1 - } - } - - /** Properties of a NamedEntityIdentifierListRequest. */ - interface INamedEntityIdentifierListRequest { - - /** NamedEntityIdentifierListRequest project */ - project?: (string|null); - - /** NamedEntityIdentifierListRequest domain */ - domain?: (string|null); - - /** NamedEntityIdentifierListRequest limit */ - limit?: (number|null); - - /** NamedEntityIdentifierListRequest token */ - token?: (string|null); - - /** NamedEntityIdentifierListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityIdentifierListRequest filters */ - filters?: (string|null); - - /** NamedEntityIdentifierListRequest org */ - org?: (string|null); - } - - /** Represents a NamedEntityIdentifierListRequest. */ - class NamedEntityIdentifierListRequest implements INamedEntityIdentifierListRequest { - - /** - * Constructs a new NamedEntityIdentifierListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityIdentifierListRequest); - - /** NamedEntityIdentifierListRequest project. */ - public project: string; - - /** NamedEntityIdentifierListRequest domain. */ - public domain: string; - - /** NamedEntityIdentifierListRequest limit. */ - public limit: number; - - /** NamedEntityIdentifierListRequest token. */ - public token: string; - - /** NamedEntityIdentifierListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityIdentifierListRequest filters. */ - public filters: string; - - /** NamedEntityIdentifierListRequest org. */ - public org: string; - - /** - * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityIdentifierListRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityIdentifierListRequest): flyteidl.admin.NamedEntityIdentifierListRequest; - - /** - * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. - * @param message NamedEntityIdentifierListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityIdentifierListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityIdentifierListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierListRequest; - - /** - * Verifies a NamedEntityIdentifierListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityListRequest. */ - interface INamedEntityListRequest { - - /** NamedEntityListRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntityListRequest project */ - project?: (string|null); - - /** NamedEntityListRequest domain */ - domain?: (string|null); - - /** NamedEntityListRequest limit */ - limit?: (number|null); - - /** NamedEntityListRequest token */ - token?: (string|null); - - /** NamedEntityListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityListRequest filters */ - filters?: (string|null); - - /** NamedEntityListRequest org */ - org?: (string|null); - } - - /** Represents a NamedEntityListRequest. */ - class NamedEntityListRequest implements INamedEntityListRequest { - - /** - * Constructs a new NamedEntityListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityListRequest); - - /** NamedEntityListRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntityListRequest project. */ - public project: string; - - /** NamedEntityListRequest domain. */ - public domain: string; - - /** NamedEntityListRequest limit. */ - public limit: number; - - /** NamedEntityListRequest token. */ - public token: string; - - /** NamedEntityListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityListRequest filters. */ - public filters: string; - - /** NamedEntityListRequest org. */ - public org: string; - - /** - * Creates a new NamedEntityListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityListRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityListRequest): flyteidl.admin.NamedEntityListRequest; - - /** - * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. - * @param message NamedEntityListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityListRequest; - - /** - * Verifies a NamedEntityListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityIdentifierList. */ - interface INamedEntityIdentifierList { - - /** NamedEntityIdentifierList entities */ - entities?: (flyteidl.admin.INamedEntityIdentifier[]|null); - - /** NamedEntityIdentifierList token */ - token?: (string|null); - } - - /** Represents a NamedEntityIdentifierList. */ - class NamedEntityIdentifierList implements INamedEntityIdentifierList { - - /** - * Constructs a new NamedEntityIdentifierList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityIdentifierList); - - /** NamedEntityIdentifierList entities. */ - public entities: flyteidl.admin.INamedEntityIdentifier[]; - - /** NamedEntityIdentifierList token. */ - public token: string; - - /** - * Creates a new NamedEntityIdentifierList instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityIdentifierList instance - */ - public static create(properties?: flyteidl.admin.INamedEntityIdentifierList): flyteidl.admin.NamedEntityIdentifierList; - - /** - * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. - * @param message NamedEntityIdentifierList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityIdentifierList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityIdentifierList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierList; - - /** - * Verifies a NamedEntityIdentifierList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityList. */ - interface INamedEntityList { - - /** NamedEntityList entities */ - entities?: (flyteidl.admin.INamedEntity[]|null); - - /** NamedEntityList token */ - token?: (string|null); - } - - /** Represents a NamedEntityList. */ - class NamedEntityList implements INamedEntityList { - - /** - * Constructs a new NamedEntityList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityList); - - /** NamedEntityList entities. */ - public entities: flyteidl.admin.INamedEntity[]; - - /** NamedEntityList token. */ - public token: string; - - /** - * Creates a new NamedEntityList instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityList instance - */ - public static create(properties?: flyteidl.admin.INamedEntityList): flyteidl.admin.NamedEntityList; - - /** - * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. - * @param message NamedEntityList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityList; - - /** - * Verifies a NamedEntityList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityGetRequest. */ - interface INamedEntityGetRequest { - - /** NamedEntityGetRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntityGetRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - } - - /** Represents a NamedEntityGetRequest. */ - class NamedEntityGetRequest implements INamedEntityGetRequest { - - /** - * Constructs a new NamedEntityGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityGetRequest); - - /** NamedEntityGetRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntityGetRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** - * Creates a new NamedEntityGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityGetRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityGetRequest): flyteidl.admin.NamedEntityGetRequest; - - /** - * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. - * @param message NamedEntityGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityGetRequest; - - /** - * Verifies a NamedEntityGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityUpdateRequest. */ - interface INamedEntityUpdateRequest { - - /** NamedEntityUpdateRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntityUpdateRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntityUpdateRequest metadata */ - metadata?: (flyteidl.admin.INamedEntityMetadata|null); - } - - /** Represents a NamedEntityUpdateRequest. */ - class NamedEntityUpdateRequest implements INamedEntityUpdateRequest { - - /** - * Constructs a new NamedEntityUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityUpdateRequest); - - /** NamedEntityUpdateRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntityUpdateRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntityUpdateRequest metadata. */ - public metadata?: (flyteidl.admin.INamedEntityMetadata|null); - - /** - * Creates a new NamedEntityUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityUpdateRequest): flyteidl.admin.NamedEntityUpdateRequest; - - /** - * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. - * @param message NamedEntityUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityUpdateRequest; - - /** - * Verifies a NamedEntityUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NamedEntityUpdateResponse. */ - interface INamedEntityUpdateResponse { - } - - /** Represents a NamedEntityUpdateResponse. */ - class NamedEntityUpdateResponse implements INamedEntityUpdateResponse { - - /** - * Constructs a new NamedEntityUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityUpdateResponse); - - /** - * Creates a new NamedEntityUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.INamedEntityUpdateResponse): flyteidl.admin.NamedEntityUpdateResponse; - - /** - * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. - * @param message NamedEntityUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityUpdateResponse; - - /** - * Verifies a NamedEntityUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ObjectGetRequest. */ - interface IObjectGetRequest { - - /** ObjectGetRequest id */ - id?: (flyteidl.core.IIdentifier|null); - } - - /** Represents an ObjectGetRequest. */ - class ObjectGetRequest implements IObjectGetRequest { - - /** - * Constructs a new ObjectGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IObjectGetRequest); - - /** ObjectGetRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new ObjectGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ObjectGetRequest instance - */ - public static create(properties?: flyteidl.admin.IObjectGetRequest): flyteidl.admin.ObjectGetRequest; - - /** - * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. - * @param message ObjectGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IObjectGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ObjectGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ObjectGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ObjectGetRequest; - - /** - * Verifies an ObjectGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ResourceListRequest. */ - interface IResourceListRequest { - - /** ResourceListRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** ResourceListRequest limit */ - limit?: (number|null); - - /** ResourceListRequest token */ - token?: (string|null); - - /** ResourceListRequest filters */ - filters?: (string|null); - - /** ResourceListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a ResourceListRequest. */ - class ResourceListRequest implements IResourceListRequest { - - /** - * Constructs a new ResourceListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IResourceListRequest); - - /** ResourceListRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** ResourceListRequest limit. */ - public limit: number; - - /** ResourceListRequest token. */ - public token: string; - - /** ResourceListRequest filters. */ - public filters: string; - - /** ResourceListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new ResourceListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourceListRequest instance - */ - public static create(properties?: flyteidl.admin.IResourceListRequest): flyteidl.admin.ResourceListRequest; - - /** - * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. - * @param message ResourceListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IResourceListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourceListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourceListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ResourceListRequest; - - /** - * Verifies a ResourceListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EmailNotification. */ - interface IEmailNotification { - - /** EmailNotification recipientsEmail */ - recipientsEmail?: (string[]|null); - } - - /** Represents an EmailNotification. */ - class EmailNotification implements IEmailNotification { - - /** - * Constructs a new EmailNotification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEmailNotification); - - /** EmailNotification recipientsEmail. */ - public recipientsEmail: string[]; - - /** - * Creates a new EmailNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailNotification instance - */ - public static create(properties?: flyteidl.admin.IEmailNotification): flyteidl.admin.EmailNotification; - - /** - * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. - * @param message EmailNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEmailNotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmailNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailNotification; - - /** - * Verifies an EmailNotification message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a PagerDutyNotification. */ - interface IPagerDutyNotification { - - /** PagerDutyNotification recipientsEmail */ - recipientsEmail?: (string[]|null); - } - - /** Represents a PagerDutyNotification. */ - class PagerDutyNotification implements IPagerDutyNotification { - - /** - * Constructs a new PagerDutyNotification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IPagerDutyNotification); - - /** PagerDutyNotification recipientsEmail. */ - public recipientsEmail: string[]; - - /** - * Creates a new PagerDutyNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns PagerDutyNotification instance - */ - public static create(properties?: flyteidl.admin.IPagerDutyNotification): flyteidl.admin.PagerDutyNotification; - - /** - * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. - * @param message PagerDutyNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IPagerDutyNotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PagerDutyNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PagerDutyNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PagerDutyNotification; - - /** - * Verifies a PagerDutyNotification message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SlackNotification. */ - interface ISlackNotification { - - /** SlackNotification recipientsEmail */ - recipientsEmail?: (string[]|null); - } - - /** Represents a SlackNotification. */ - class SlackNotification implements ISlackNotification { - - /** - * Constructs a new SlackNotification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISlackNotification); - - /** SlackNotification recipientsEmail. */ - public recipientsEmail: string[]; - - /** - * Creates a new SlackNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns SlackNotification instance - */ - public static create(properties?: flyteidl.admin.ISlackNotification): flyteidl.admin.SlackNotification; - - /** - * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. - * @param message SlackNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISlackNotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SlackNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SlackNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SlackNotification; - - /** - * Verifies a SlackNotification message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Notification. */ - interface INotification { - - /** Notification phases */ - phases?: (flyteidl.core.WorkflowExecution.Phase[]|null); - - /** Notification email */ - email?: (flyteidl.admin.IEmailNotification|null); - - /** Notification pagerDuty */ - pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); - - /** Notification slack */ - slack?: (flyteidl.admin.ISlackNotification|null); - } - - /** Represents a Notification. */ - class Notification implements INotification { - - /** - * Constructs a new Notification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INotification); - - /** Notification phases. */ - public phases: flyteidl.core.WorkflowExecution.Phase[]; - - /** Notification email. */ - public email?: (flyteidl.admin.IEmailNotification|null); - - /** Notification pagerDuty. */ - public pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); - - /** Notification slack. */ - public slack?: (flyteidl.admin.ISlackNotification|null); - - /** Notification type. */ - public type?: ("email"|"pagerDuty"|"slack"); - - /** - * Creates a new Notification instance using the specified properties. - * @param [properties] Properties to set - * @returns Notification instance - */ - public static create(properties?: flyteidl.admin.INotification): flyteidl.admin.Notification; - - /** - * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. - * @param message Notification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Notification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Notification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Notification; - - /** - * Verifies a Notification message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an UrlBlob. */ - interface IUrlBlob { - - /** UrlBlob url */ - url?: (string|null); - - /** UrlBlob bytes */ - bytes?: (Long|null); - } - - /** Represents an UrlBlob. */ - class UrlBlob implements IUrlBlob { - - /** - * Constructs a new UrlBlob. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IUrlBlob); - - /** UrlBlob url. */ - public url: string; - - /** UrlBlob bytes. */ - public bytes: Long; - - /** - * Creates a new UrlBlob instance using the specified properties. - * @param [properties] Properties to set - * @returns UrlBlob instance - */ - public static create(properties?: flyteidl.admin.IUrlBlob): flyteidl.admin.UrlBlob; - - /** - * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. - * @param message UrlBlob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IUrlBlob, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UrlBlob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UrlBlob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.UrlBlob; - - /** - * Verifies an UrlBlob message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Labels. */ - interface ILabels { - - /** Labels values */ - values?: ({ [k: string]: string }|null); - } - - /** Represents a Labels. */ - class Labels implements ILabels { - - /** - * Constructs a new Labels. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILabels); - - /** Labels values. */ - public values: { [k: string]: string }; - - /** - * Creates a new Labels instance using the specified properties. - * @param [properties] Properties to set - * @returns Labels instance - */ - public static create(properties?: flyteidl.admin.ILabels): flyteidl.admin.Labels; - - /** - * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. - * @param message Labels message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILabels, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Labels message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Labels - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Labels; - - /** - * Verifies a Labels message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Annotations. */ - interface IAnnotations { - - /** Annotations values */ - values?: ({ [k: string]: string }|null); - } - - /** Represents an Annotations. */ - class Annotations implements IAnnotations { - - /** - * Constructs a new Annotations. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAnnotations); - - /** Annotations values. */ - public values: { [k: string]: string }; - - /** - * Creates a new Annotations instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotations instance - */ - public static create(properties?: flyteidl.admin.IAnnotations): flyteidl.admin.Annotations; - - /** - * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. - * @param message Annotations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Annotations message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Annotations; - - /** - * Verifies an Annotations message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Envs. */ - interface IEnvs { - - /** Envs values */ - values?: (flyteidl.core.IKeyValuePair[]|null); - } - - /** Represents an Envs. */ - class Envs implements IEnvs { - - /** - * Constructs a new Envs. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEnvs); - - /** Envs values. */ - public values: flyteidl.core.IKeyValuePair[]; - - /** - * Creates a new Envs instance using the specified properties. - * @param [properties] Properties to set - * @returns Envs instance - */ - public static create(properties?: flyteidl.admin.IEnvs): flyteidl.admin.Envs; - - /** - * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. - * @param message Envs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEnvs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Envs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Envs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Envs; - - /** - * Verifies an Envs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an AuthRole. */ - interface IAuthRole { - - /** AuthRole assumableIamRole */ - assumableIamRole?: (string|null); - - /** AuthRole kubernetesServiceAccount */ - kubernetesServiceAccount?: (string|null); - } - - /** Represents an AuthRole. */ - class AuthRole implements IAuthRole { - - /** - * Constructs a new AuthRole. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAuthRole); - - /** AuthRole assumableIamRole. */ - public assumableIamRole: string; - - /** AuthRole kubernetesServiceAccount. */ - public kubernetesServiceAccount: string; - - /** - * Creates a new AuthRole instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthRole instance - */ - public static create(properties?: flyteidl.admin.IAuthRole): flyteidl.admin.AuthRole; - - /** - * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. - * @param message AuthRole message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAuthRole, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuthRole message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuthRole - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AuthRole; - - /** - * Verifies an AuthRole message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a RawOutputDataConfig. */ - interface IRawOutputDataConfig { - - /** RawOutputDataConfig outputLocationPrefix */ - outputLocationPrefix?: (string|null); - } - - /** Represents a RawOutputDataConfig. */ - class RawOutputDataConfig implements IRawOutputDataConfig { - - /** - * Constructs a new RawOutputDataConfig. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IRawOutputDataConfig); - - /** RawOutputDataConfig outputLocationPrefix. */ - public outputLocationPrefix: string; - - /** - * Creates a new RawOutputDataConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RawOutputDataConfig instance - */ - public static create(properties?: flyteidl.admin.IRawOutputDataConfig): flyteidl.admin.RawOutputDataConfig; - - /** - * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. - * @param message RawOutputDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IRawOutputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RawOutputDataConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RawOutputDataConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.RawOutputDataConfig; - - /** - * Verifies a RawOutputDataConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a FlyteURLs. */ - interface IFlyteURLs { - - /** FlyteURLs inputs */ - inputs?: (string|null); - - /** FlyteURLs outputs */ - outputs?: (string|null); - - /** FlyteURLs deck */ - deck?: (string|null); - } - - /** Represents a FlyteURLs. */ - class FlyteURLs implements IFlyteURLs { - - /** - * Constructs a new FlyteURLs. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IFlyteURLs); - - /** FlyteURLs inputs. */ - public inputs: string; - - /** FlyteURLs outputs. */ - public outputs: string; - - /** FlyteURLs deck. */ - public deck: string; - - /** - * Creates a new FlyteURLs instance using the specified properties. - * @param [properties] Properties to set - * @returns FlyteURLs instance - */ - public static create(properties?: flyteidl.admin.IFlyteURLs): flyteidl.admin.FlyteURLs; - - /** - * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. - * @param message FlyteURLs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IFlyteURLs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FlyteURLs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FlyteURLs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FlyteURLs; - - /** - * Verifies a FlyteURLs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DescriptionEntity. */ - interface IDescriptionEntity { - - /** DescriptionEntity id */ - id?: (flyteidl.core.IIdentifier|null); - - /** DescriptionEntity shortDescription */ - shortDescription?: (string|null); - - /** DescriptionEntity longDescription */ - longDescription?: (flyteidl.admin.IDescription|null); - - /** DescriptionEntity sourceCode */ - sourceCode?: (flyteidl.admin.ISourceCode|null); - - /** DescriptionEntity tags */ - tags?: (string[]|null); - } - - /** Represents a DescriptionEntity. */ - class DescriptionEntity implements IDescriptionEntity { - - /** - * Constructs a new DescriptionEntity. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescriptionEntity); - - /** DescriptionEntity id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** DescriptionEntity shortDescription. */ - public shortDescription: string; - - /** DescriptionEntity longDescription. */ - public longDescription?: (flyteidl.admin.IDescription|null); - - /** DescriptionEntity sourceCode. */ - public sourceCode?: (flyteidl.admin.ISourceCode|null); - - /** DescriptionEntity tags. */ - public tags: string[]; - - /** - * Creates a new DescriptionEntity instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptionEntity instance - */ - public static create(properties?: flyteidl.admin.IDescriptionEntity): flyteidl.admin.DescriptionEntity; - - /** - * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. - * @param message DescriptionEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescriptionEntity, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptionEntity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptionEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntity; - - /** - * Verifies a DescriptionEntity message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** DescriptionFormat enum. */ - enum DescriptionFormat { - DESCRIPTION_FORMAT_UNKNOWN = 0, - DESCRIPTION_FORMAT_MARKDOWN = 1, - DESCRIPTION_FORMAT_HTML = 2, - DESCRIPTION_FORMAT_RST = 3 - } - - /** Properties of a Description. */ - interface IDescription { - - /** Description value */ - value?: (string|null); - - /** Description uri */ - uri?: (string|null); - - /** Description format */ - format?: (flyteidl.admin.DescriptionFormat|null); - - /** Description iconLink */ - iconLink?: (string|null); - } - - /** Represents a Description. */ - class Description implements IDescription { - - /** - * Constructs a new Description. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescription); - - /** Description value. */ - public value: string; - - /** Description uri. */ - public uri: string; - - /** Description format. */ - public format: flyteidl.admin.DescriptionFormat; - - /** Description iconLink. */ - public iconLink: string; - - /** Description content. */ - public content?: ("value"|"uri"); - - /** - * Creates a new Description instance using the specified properties. - * @param [properties] Properties to set - * @returns Description instance - */ - public static create(properties?: flyteidl.admin.IDescription): flyteidl.admin.Description; - - /** - * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. - * @param message Description message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescription, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Description message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Description - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Description; - - /** - * Verifies a Description message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SourceCode. */ - interface ISourceCode { - - /** SourceCode link */ - link?: (string|null); - } - - /** Represents a SourceCode. */ - class SourceCode implements ISourceCode { - - /** - * Constructs a new SourceCode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISourceCode); - - /** SourceCode link. */ - public link: string; - - /** - * Creates a new SourceCode instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCode instance - */ - public static create(properties?: flyteidl.admin.ISourceCode): flyteidl.admin.SourceCode; - - /** - * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. - * @param message SourceCode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISourceCode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceCode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SourceCode; - - /** - * Verifies a SourceCode message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DescriptionEntityList. */ - interface IDescriptionEntityList { - - /** DescriptionEntityList descriptionEntities */ - descriptionEntities?: (flyteidl.admin.IDescriptionEntity[]|null); - - /** DescriptionEntityList token */ - token?: (string|null); - } - - /** Represents a DescriptionEntityList. */ - class DescriptionEntityList implements IDescriptionEntityList { - - /** - * Constructs a new DescriptionEntityList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescriptionEntityList); - - /** DescriptionEntityList descriptionEntities. */ - public descriptionEntities: flyteidl.admin.IDescriptionEntity[]; - - /** DescriptionEntityList token. */ - public token: string; - - /** - * Creates a new DescriptionEntityList instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptionEntityList instance - */ - public static create(properties?: flyteidl.admin.IDescriptionEntityList): flyteidl.admin.DescriptionEntityList; - - /** - * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. - * @param message DescriptionEntityList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescriptionEntityList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptionEntityList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptionEntityList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntityList; - - /** - * Verifies a DescriptionEntityList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DescriptionEntityListRequest. */ - interface IDescriptionEntityListRequest { - - /** DescriptionEntityListRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** DescriptionEntityListRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** DescriptionEntityListRequest limit */ - limit?: (number|null); - - /** DescriptionEntityListRequest token */ - token?: (string|null); - - /** DescriptionEntityListRequest filters */ - filters?: (string|null); - - /** DescriptionEntityListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a DescriptionEntityListRequest. */ - class DescriptionEntityListRequest implements IDescriptionEntityListRequest { - - /** - * Constructs a new DescriptionEntityListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescriptionEntityListRequest); - - /** DescriptionEntityListRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** DescriptionEntityListRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** DescriptionEntityListRequest limit. */ - public limit: number; - - /** DescriptionEntityListRequest token. */ - public token: string; - - /** DescriptionEntityListRequest filters. */ - public filters: string; - - /** DescriptionEntityListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new DescriptionEntityListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptionEntityListRequest instance - */ - public static create(properties?: flyteidl.admin.IDescriptionEntityListRequest): flyteidl.admin.DescriptionEntityListRequest; - - /** - * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. - * @param message DescriptionEntityListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescriptionEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptionEntityListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntityListRequest; - - /** - * Verifies a DescriptionEntityListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EventErrorAlreadyInTerminalState. */ - interface IEventErrorAlreadyInTerminalState { - - /** EventErrorAlreadyInTerminalState currentPhase */ - currentPhase?: (string|null); - } - - /** Represents an EventErrorAlreadyInTerminalState. */ - class EventErrorAlreadyInTerminalState implements IEventErrorAlreadyInTerminalState { - - /** - * Constructs a new EventErrorAlreadyInTerminalState. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState); - - /** EventErrorAlreadyInTerminalState currentPhase. */ - public currentPhase: string; - - /** - * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. - * @param [properties] Properties to set - * @returns EventErrorAlreadyInTerminalState instance - */ - public static create(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState): flyteidl.admin.EventErrorAlreadyInTerminalState; - - /** - * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. - * @param message EventErrorAlreadyInTerminalState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEventErrorAlreadyInTerminalState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventErrorAlreadyInTerminalState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorAlreadyInTerminalState; - - /** - * Verifies an EventErrorAlreadyInTerminalState message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EventErrorIncompatibleCluster. */ - interface IEventErrorIncompatibleCluster { - - /** EventErrorIncompatibleCluster cluster */ - cluster?: (string|null); - } - - /** Represents an EventErrorIncompatibleCluster. */ - class EventErrorIncompatibleCluster implements IEventErrorIncompatibleCluster { - - /** - * Constructs a new EventErrorIncompatibleCluster. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEventErrorIncompatibleCluster); - - /** EventErrorIncompatibleCluster cluster. */ - public cluster: string; - - /** - * Creates a new EventErrorIncompatibleCluster instance using the specified properties. - * @param [properties] Properties to set - * @returns EventErrorIncompatibleCluster instance - */ - public static create(properties?: flyteidl.admin.IEventErrorIncompatibleCluster): flyteidl.admin.EventErrorIncompatibleCluster; - - /** - * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. - * @param message EventErrorIncompatibleCluster message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEventErrorIncompatibleCluster, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventErrorIncompatibleCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorIncompatibleCluster; - - /** - * Verifies an EventErrorIncompatibleCluster message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EventFailureReason. */ - interface IEventFailureReason { - - /** EventFailureReason alreadyInTerminalState */ - alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); - - /** EventFailureReason incompatibleCluster */ - incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); - } - - /** Represents an EventFailureReason. */ - class EventFailureReason implements IEventFailureReason { - - /** - * Constructs a new EventFailureReason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEventFailureReason); - - /** EventFailureReason alreadyInTerminalState. */ - public alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); - - /** EventFailureReason incompatibleCluster. */ - public incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); - - /** EventFailureReason reason. */ - public reason?: ("alreadyInTerminalState"|"incompatibleCluster"); - - /** - * Creates a new EventFailureReason instance using the specified properties. - * @param [properties] Properties to set - * @returns EventFailureReason instance - */ - public static create(properties?: flyteidl.admin.IEventFailureReason): flyteidl.admin.EventFailureReason; - - /** - * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. - * @param message EventFailureReason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEventFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventFailureReason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventFailureReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventFailureReason; - - /** - * Verifies an EventFailureReason message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionEventRequest. */ - interface IWorkflowExecutionEventRequest { - - /** WorkflowExecutionEventRequest requestId */ - requestId?: (string|null); - - /** WorkflowExecutionEventRequest event */ - event?: (flyteidl.event.IWorkflowExecutionEvent|null); - } - - /** Represents a WorkflowExecutionEventRequest. */ - class WorkflowExecutionEventRequest implements IWorkflowExecutionEventRequest { - - /** - * Constructs a new WorkflowExecutionEventRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionEventRequest); - - /** WorkflowExecutionEventRequest requestId. */ - public requestId: string; - - /** WorkflowExecutionEventRequest event. */ - public event?: (flyteidl.event.IWorkflowExecutionEvent|null); - - /** - * Creates a new WorkflowExecutionEventRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionEventRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionEventRequest): flyteidl.admin.WorkflowExecutionEventRequest; - - /** - * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. - * @param message WorkflowExecutionEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventRequest; - - /** - * Verifies a WorkflowExecutionEventRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionEventResponse. */ - interface IWorkflowExecutionEventResponse { - } - - /** Represents a WorkflowExecutionEventResponse. */ - class WorkflowExecutionEventResponse implements IWorkflowExecutionEventResponse { - - /** - * Constructs a new WorkflowExecutionEventResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionEventResponse); - - /** - * Creates a new WorkflowExecutionEventResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionEventResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionEventResponse): flyteidl.admin.WorkflowExecutionEventResponse; - - /** - * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. - * @param message WorkflowExecutionEventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventResponse; - - /** - * Verifies a WorkflowExecutionEventResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionEventRequest. */ - interface INodeExecutionEventRequest { - - /** NodeExecutionEventRequest requestId */ - requestId?: (string|null); - - /** NodeExecutionEventRequest event */ - event?: (flyteidl.event.INodeExecutionEvent|null); - } - - /** Represents a NodeExecutionEventRequest. */ - class NodeExecutionEventRequest implements INodeExecutionEventRequest { - - /** - * Constructs a new NodeExecutionEventRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionEventRequest); - - /** NodeExecutionEventRequest requestId. */ - public requestId: string; - - /** NodeExecutionEventRequest event. */ - public event?: (flyteidl.event.INodeExecutionEvent|null); - - /** - * Creates a new NodeExecutionEventRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionEventRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionEventRequest): flyteidl.admin.NodeExecutionEventRequest; - - /** - * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. - * @param message NodeExecutionEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventRequest; - - /** - * Verifies a NodeExecutionEventRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionEventResponse. */ - interface INodeExecutionEventResponse { - } - - /** Represents a NodeExecutionEventResponse. */ - class NodeExecutionEventResponse implements INodeExecutionEventResponse { - - /** - * Constructs a new NodeExecutionEventResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionEventResponse); - - /** - * Creates a new NodeExecutionEventResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionEventResponse instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionEventResponse): flyteidl.admin.NodeExecutionEventResponse; - - /** - * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. - * @param message NodeExecutionEventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventResponse; - - /** - * Verifies a NodeExecutionEventResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionEventRequest. */ - interface ITaskExecutionEventRequest { - - /** TaskExecutionEventRequest requestId */ - requestId?: (string|null); - - /** TaskExecutionEventRequest event */ - event?: (flyteidl.event.ITaskExecutionEvent|null); - } - - /** Represents a TaskExecutionEventRequest. */ - class TaskExecutionEventRequest implements ITaskExecutionEventRequest { - - /** - * Constructs a new TaskExecutionEventRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionEventRequest); - - /** TaskExecutionEventRequest requestId. */ - public requestId: string; - - /** TaskExecutionEventRequest event. */ - public event?: (flyteidl.event.ITaskExecutionEvent|null); - - /** - * Creates a new TaskExecutionEventRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionEventRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionEventRequest): flyteidl.admin.TaskExecutionEventRequest; - - /** - * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. - * @param message TaskExecutionEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventRequest; - - /** - * Verifies a TaskExecutionEventRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionEventResponse. */ - interface ITaskExecutionEventResponse { - } - - /** Represents a TaskExecutionEventResponse. */ - class TaskExecutionEventResponse implements ITaskExecutionEventResponse { - - /** - * Constructs a new TaskExecutionEventResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionEventResponse); - - /** - * Creates a new TaskExecutionEventResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionEventResponse instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionEventResponse): flyteidl.admin.TaskExecutionEventResponse; - - /** - * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. - * @param message TaskExecutionEventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventResponse; - - /** - * Verifies a TaskExecutionEventResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionCreateRequest. */ - interface IExecutionCreateRequest { - - /** ExecutionCreateRequest project */ - project?: (string|null); - - /** ExecutionCreateRequest domain */ - domain?: (string|null); - - /** ExecutionCreateRequest name */ - name?: (string|null); - - /** ExecutionCreateRequest spec */ - spec?: (flyteidl.admin.IExecutionSpec|null); - - /** ExecutionCreateRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionCreateRequest org */ - org?: (string|null); - } - - /** Represents an ExecutionCreateRequest. */ - class ExecutionCreateRequest implements IExecutionCreateRequest { - - /** - * Constructs a new ExecutionCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionCreateRequest); - - /** ExecutionCreateRequest project. */ - public project: string; - - /** ExecutionCreateRequest domain. */ - public domain: string; - - /** ExecutionCreateRequest name. */ - public name: string; - - /** ExecutionCreateRequest spec. */ - public spec?: (flyteidl.admin.IExecutionSpec|null); - - /** ExecutionCreateRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionCreateRequest org. */ - public org: string; - - /** - * Creates a new ExecutionCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionCreateRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionCreateRequest): flyteidl.admin.ExecutionCreateRequest; - - /** - * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. - * @param message ExecutionCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateRequest; - - /** - * Verifies an ExecutionCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionRelaunchRequest. */ - interface IExecutionRelaunchRequest { - - /** ExecutionRelaunchRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRelaunchRequest name */ - name?: (string|null); - - /** ExecutionRelaunchRequest overwriteCache */ - overwriteCache?: (boolean|null); - } - - /** Represents an ExecutionRelaunchRequest. */ - class ExecutionRelaunchRequest implements IExecutionRelaunchRequest { - - /** - * Constructs a new ExecutionRelaunchRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionRelaunchRequest); - - /** ExecutionRelaunchRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRelaunchRequest name. */ - public name: string; - - /** ExecutionRelaunchRequest overwriteCache. */ - public overwriteCache: boolean; - - /** - * Creates a new ExecutionRelaunchRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionRelaunchRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionRelaunchRequest): flyteidl.admin.ExecutionRelaunchRequest; - - /** - * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. - * @param message ExecutionRelaunchRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionRelaunchRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionRelaunchRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRelaunchRequest; - - /** - * Verifies an ExecutionRelaunchRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionRecoverRequest. */ - interface IExecutionRecoverRequest { - - /** ExecutionRecoverRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRecoverRequest name */ - name?: (string|null); - - /** ExecutionRecoverRequest metadata */ - metadata?: (flyteidl.admin.IExecutionMetadata|null); - } - - /** Represents an ExecutionRecoverRequest. */ - class ExecutionRecoverRequest implements IExecutionRecoverRequest { - - /** - * Constructs a new ExecutionRecoverRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionRecoverRequest); - - /** ExecutionRecoverRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRecoverRequest name. */ - public name: string; - - /** ExecutionRecoverRequest metadata. */ - public metadata?: (flyteidl.admin.IExecutionMetadata|null); - - /** - * Creates a new ExecutionRecoverRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionRecoverRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionRecoverRequest): flyteidl.admin.ExecutionRecoverRequest; - - /** - * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. - * @param message ExecutionRecoverRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionRecoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionRecoverRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRecoverRequest; - - /** - * Verifies an ExecutionRecoverRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionCreateResponse. */ - interface IExecutionCreateResponse { - - /** ExecutionCreateResponse id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents an ExecutionCreateResponse. */ - class ExecutionCreateResponse implements IExecutionCreateResponse { - - /** - * Constructs a new ExecutionCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionCreateResponse); - - /** ExecutionCreateResponse id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new ExecutionCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionCreateResponse instance - */ - public static create(properties?: flyteidl.admin.IExecutionCreateResponse): flyteidl.admin.ExecutionCreateResponse; - - /** - * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. - * @param message ExecutionCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateResponse; - - /** - * Verifies an ExecutionCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionGetRequest. */ - interface IWorkflowExecutionGetRequest { - - /** WorkflowExecutionGetRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowExecutionGetRequest. */ - class WorkflowExecutionGetRequest implements IWorkflowExecutionGetRequest { - - /** - * Constructs a new WorkflowExecutionGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetRequest); - - /** WorkflowExecutionGetRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowExecutionGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetRequest): flyteidl.admin.WorkflowExecutionGetRequest; - - /** - * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. - * @param message WorkflowExecutionGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetRequest; - - /** - * Verifies a WorkflowExecutionGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Execution. */ - interface IExecution { - - /** Execution id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Execution spec */ - spec?: (flyteidl.admin.IExecutionSpec|null); - - /** Execution closure */ - closure?: (flyteidl.admin.IExecutionClosure|null); - } - - /** Represents an Execution. */ - class Execution implements IExecution { - - /** - * Constructs a new Execution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecution); - - /** Execution id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Execution spec. */ - public spec?: (flyteidl.admin.IExecutionSpec|null); - - /** Execution closure. */ - public closure?: (flyteidl.admin.IExecutionClosure|null); - - /** - * Creates a new Execution instance using the specified properties. - * @param [properties] Properties to set - * @returns Execution instance - */ - public static create(properties?: flyteidl.admin.IExecution): flyteidl.admin.Execution; - - /** - * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Execution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Execution; - - /** - * Verifies an Execution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionList. */ - interface IExecutionList { - - /** ExecutionList executions */ - executions?: (flyteidl.admin.IExecution[]|null); - - /** ExecutionList token */ - token?: (string|null); - } - - /** Represents an ExecutionList. */ - class ExecutionList implements IExecutionList { - - /** - * Constructs a new ExecutionList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionList); - - /** ExecutionList executions. */ - public executions: flyteidl.admin.IExecution[]; - - /** ExecutionList token. */ - public token: string; - - /** - * Creates a new ExecutionList instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionList instance - */ - public static create(properties?: flyteidl.admin.IExecutionList): flyteidl.admin.ExecutionList; - - /** - * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. - * @param message ExecutionList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionList; - - /** - * Verifies an ExecutionList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LiteralMapBlob. */ - interface ILiteralMapBlob { - - /** LiteralMapBlob values */ - values?: (flyteidl.core.ILiteralMap|null); - - /** LiteralMapBlob uri */ - uri?: (string|null); - } - - /** Represents a LiteralMapBlob. */ - class LiteralMapBlob implements ILiteralMapBlob { - - /** - * Constructs a new LiteralMapBlob. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILiteralMapBlob); - - /** LiteralMapBlob values. */ - public values?: (flyteidl.core.ILiteralMap|null); - - /** LiteralMapBlob uri. */ - public uri: string; - - /** LiteralMapBlob data. */ - public data?: ("values"|"uri"); - - /** - * Creates a new LiteralMapBlob instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralMapBlob instance - */ - public static create(properties?: flyteidl.admin.ILiteralMapBlob): flyteidl.admin.LiteralMapBlob; - - /** - * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. - * @param message LiteralMapBlob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILiteralMapBlob, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralMapBlob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralMapBlob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LiteralMapBlob; - - /** - * Verifies a LiteralMapBlob message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an AbortMetadata. */ - interface IAbortMetadata { - - /** AbortMetadata cause */ - cause?: (string|null); - - /** AbortMetadata principal */ - principal?: (string|null); - } - - /** Represents an AbortMetadata. */ - class AbortMetadata implements IAbortMetadata { - - /** - * Constructs a new AbortMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAbortMetadata); - - /** AbortMetadata cause. */ - public cause: string; - - /** AbortMetadata principal. */ - public principal: string; - - /** - * Creates a new AbortMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns AbortMetadata instance - */ - public static create(properties?: flyteidl.admin.IAbortMetadata): flyteidl.admin.AbortMetadata; - - /** - * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. - * @param message AbortMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAbortMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AbortMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AbortMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AbortMetadata; - - /** - * Verifies an AbortMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionClosure. */ - interface IExecutionClosure { - - /** ExecutionClosure outputs */ - outputs?: (flyteidl.admin.ILiteralMapBlob|null); - - /** ExecutionClosure error */ - error?: (flyteidl.core.IExecutionError|null); - - /** ExecutionClosure abortCause */ - abortCause?: (string|null); - - /** ExecutionClosure abortMetadata */ - abortMetadata?: (flyteidl.admin.IAbortMetadata|null); - - /** ExecutionClosure outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure computedInputs */ - computedInputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure phase */ - phase?: (flyteidl.core.WorkflowExecution.Phase|null); - - /** ExecutionClosure startedAt */ - startedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure duration */ - duration?: (google.protobuf.IDuration|null); - - /** ExecutionClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure notifications */ - notifications?: (flyteidl.admin.INotification[]|null); - - /** ExecutionClosure workflowId */ - workflowId?: (flyteidl.core.IIdentifier|null); - - /** ExecutionClosure stateChangeDetails */ - stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); - } - - /** Represents an ExecutionClosure. */ - class ExecutionClosure implements IExecutionClosure { - - /** - * Constructs a new ExecutionClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionClosure); - - /** ExecutionClosure outputs. */ - public outputs?: (flyteidl.admin.ILiteralMapBlob|null); - - /** ExecutionClosure error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** ExecutionClosure abortCause. */ - public abortCause: string; - - /** ExecutionClosure abortMetadata. */ - public abortMetadata?: (flyteidl.admin.IAbortMetadata|null); - - /** ExecutionClosure outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure computedInputs. */ - public computedInputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure phase. */ - public phase: flyteidl.core.WorkflowExecution.Phase; - - /** ExecutionClosure startedAt. */ - public startedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** ExecutionClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure notifications. */ - public notifications: flyteidl.admin.INotification[]; - - /** ExecutionClosure workflowId. */ - public workflowId?: (flyteidl.core.IIdentifier|null); - - /** ExecutionClosure stateChangeDetails. */ - public stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); - - /** ExecutionClosure outputResult. */ - public outputResult?: ("outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"); - - /** - * Creates a new ExecutionClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionClosure instance - */ - public static create(properties?: flyteidl.admin.IExecutionClosure): flyteidl.admin.ExecutionClosure; - - /** - * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. - * @param message ExecutionClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClosure; - - /** - * Verifies an ExecutionClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SystemMetadata. */ - interface ISystemMetadata { - - /** SystemMetadata executionCluster */ - executionCluster?: (string|null); - - /** SystemMetadata namespace */ - namespace?: (string|null); - } - - /** Represents a SystemMetadata. */ - class SystemMetadata implements ISystemMetadata { - - /** - * Constructs a new SystemMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISystemMetadata); - - /** SystemMetadata executionCluster. */ - public executionCluster: string; - - /** SystemMetadata namespace. */ - public namespace: string; - - /** - * Creates a new SystemMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns SystemMetadata instance - */ - public static create(properties?: flyteidl.admin.ISystemMetadata): flyteidl.admin.SystemMetadata; - - /** - * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. - * @param message SystemMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISystemMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SystemMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SystemMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SystemMetadata; - - /** - * Verifies a SystemMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionMetadata. */ - interface IExecutionMetadata { - - /** ExecutionMetadata mode */ - mode?: (flyteidl.admin.ExecutionMetadata.ExecutionMode|null); - - /** ExecutionMetadata principal */ - principal?: (string|null); - - /** ExecutionMetadata nesting */ - nesting?: (number|null); - - /** ExecutionMetadata scheduledAt */ - scheduledAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionMetadata parentNodeExecution */ - parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** ExecutionMetadata referenceExecution */ - referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionMetadata systemMetadata */ - systemMetadata?: (flyteidl.admin.ISystemMetadata|null); - - /** ExecutionMetadata artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - } - - /** Represents an ExecutionMetadata. */ - class ExecutionMetadata implements IExecutionMetadata { - - /** - * Constructs a new ExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionMetadata); - - /** ExecutionMetadata mode. */ - public mode: flyteidl.admin.ExecutionMetadata.ExecutionMode; - - /** ExecutionMetadata principal. */ - public principal: string; - - /** ExecutionMetadata nesting. */ - public nesting: number; - - /** ExecutionMetadata scheduledAt. */ - public scheduledAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionMetadata parentNodeExecution. */ - public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** ExecutionMetadata referenceExecution. */ - public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionMetadata systemMetadata. */ - public systemMetadata?: (flyteidl.admin.ISystemMetadata|null); - - /** ExecutionMetadata artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** - * Creates a new ExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionMetadata instance - */ - public static create(properties?: flyteidl.admin.IExecutionMetadata): flyteidl.admin.ExecutionMetadata; - - /** - * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. - * @param message ExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionMetadata; - - /** - * Verifies an ExecutionMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace ExecutionMetadata { - - /** ExecutionMode enum. */ - enum ExecutionMode { - MANUAL = 0, - SCHEDULED = 1, - SYSTEM = 2, - RELAUNCH = 3, - CHILD_WORKFLOW = 4, - RECOVERED = 5 - } - } - - /** Properties of a NotificationList. */ - interface INotificationList { - - /** NotificationList notifications */ - notifications?: (flyteidl.admin.INotification[]|null); - } - - /** Represents a NotificationList. */ - class NotificationList implements INotificationList { - - /** - * Constructs a new NotificationList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INotificationList); - - /** NotificationList notifications. */ - public notifications: flyteidl.admin.INotification[]; - - /** - * Creates a new NotificationList instance using the specified properties. - * @param [properties] Properties to set - * @returns NotificationList instance - */ - public static create(properties?: flyteidl.admin.INotificationList): flyteidl.admin.NotificationList; - - /** - * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. - * @param message NotificationList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INotificationList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NotificationList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NotificationList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NotificationList; - - /** - * Verifies a NotificationList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionSpec. */ - interface IExecutionSpec { - - /** ExecutionSpec launchPlan */ - launchPlan?: (flyteidl.core.IIdentifier|null); - - /** ExecutionSpec inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionSpec metadata */ - metadata?: (flyteidl.admin.IExecutionMetadata|null); - - /** ExecutionSpec notifications */ - notifications?: (flyteidl.admin.INotificationList|null); - - /** ExecutionSpec disableAll */ - disableAll?: (boolean|null); - - /** ExecutionSpec labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** ExecutionSpec annotations */ - annotations?: (flyteidl.admin.IAnnotations|null); - - /** ExecutionSpec securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** ExecutionSpec authRole */ - authRole?: (flyteidl.admin.IAuthRole|null); - - /** ExecutionSpec qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** ExecutionSpec maxParallelism */ - maxParallelism?: (number|null); - - /** ExecutionSpec rawOutputDataConfig */ - rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** ExecutionSpec clusterAssignment */ - clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - - /** ExecutionSpec interruptible */ - interruptible?: (google.protobuf.IBoolValue|null); - - /** ExecutionSpec overwriteCache */ - overwriteCache?: (boolean|null); - - /** ExecutionSpec envs */ - envs?: (flyteidl.admin.IEnvs|null); - - /** ExecutionSpec tags */ - tags?: (string[]|null); - } - - /** Represents an ExecutionSpec. */ - class ExecutionSpec implements IExecutionSpec { - - /** - * Constructs a new ExecutionSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionSpec); - - /** ExecutionSpec launchPlan. */ - public launchPlan?: (flyteidl.core.IIdentifier|null); - - /** ExecutionSpec inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionSpec metadata. */ - public metadata?: (flyteidl.admin.IExecutionMetadata|null); - - /** ExecutionSpec notifications. */ - public notifications?: (flyteidl.admin.INotificationList|null); - - /** ExecutionSpec disableAll. */ - public disableAll: boolean; - - /** ExecutionSpec labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** ExecutionSpec annotations. */ - public annotations?: (flyteidl.admin.IAnnotations|null); - - /** ExecutionSpec securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** ExecutionSpec authRole. */ - public authRole?: (flyteidl.admin.IAuthRole|null); - - /** ExecutionSpec qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** ExecutionSpec maxParallelism. */ - public maxParallelism: number; - - /** ExecutionSpec rawOutputDataConfig. */ - public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** ExecutionSpec clusterAssignment. */ - public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - - /** ExecutionSpec interruptible. */ - public interruptible?: (google.protobuf.IBoolValue|null); - - /** ExecutionSpec overwriteCache. */ - public overwriteCache: boolean; - - /** ExecutionSpec envs. */ - public envs?: (flyteidl.admin.IEnvs|null); - - /** ExecutionSpec tags. */ - public tags: string[]; - - /** ExecutionSpec notificationOverrides. */ - public notificationOverrides?: ("notifications"|"disableAll"); - - /** - * Creates a new ExecutionSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionSpec instance - */ - public static create(properties?: flyteidl.admin.IExecutionSpec): flyteidl.admin.ExecutionSpec; - - /** - * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. - * @param message ExecutionSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionSpec; - - /** - * Verifies an ExecutionSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionTerminateRequest. */ - interface IExecutionTerminateRequest { - - /** ExecutionTerminateRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionTerminateRequest cause */ - cause?: (string|null); - } - - /** Represents an ExecutionTerminateRequest. */ - class ExecutionTerminateRequest implements IExecutionTerminateRequest { - - /** - * Constructs a new ExecutionTerminateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionTerminateRequest); - - /** ExecutionTerminateRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionTerminateRequest cause. */ - public cause: string; - - /** - * Creates a new ExecutionTerminateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionTerminateRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionTerminateRequest): flyteidl.admin.ExecutionTerminateRequest; - - /** - * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. - * @param message ExecutionTerminateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionTerminateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionTerminateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateRequest; - - /** - * Verifies an ExecutionTerminateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionTerminateResponse. */ - interface IExecutionTerminateResponse { - } - - /** Represents an ExecutionTerminateResponse. */ - class ExecutionTerminateResponse implements IExecutionTerminateResponse { - - /** - * Constructs a new ExecutionTerminateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionTerminateResponse); - - /** - * Creates a new ExecutionTerminateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionTerminateResponse instance - */ - public static create(properties?: flyteidl.admin.IExecutionTerminateResponse): flyteidl.admin.ExecutionTerminateResponse; - - /** - * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. - * @param message ExecutionTerminateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionTerminateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionTerminateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateResponse; - - /** - * Verifies an ExecutionTerminateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionGetDataRequest. */ - interface IWorkflowExecutionGetDataRequest { - - /** WorkflowExecutionGetDataRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowExecutionGetDataRequest. */ - class WorkflowExecutionGetDataRequest implements IWorkflowExecutionGetDataRequest { - - /** - * Constructs a new WorkflowExecutionGetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest); - - /** WorkflowExecutionGetDataRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetDataRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest): flyteidl.admin.WorkflowExecutionGetDataRequest; - - /** - * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. - * @param message WorkflowExecutionGetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataRequest; - - /** - * Verifies a WorkflowExecutionGetDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionGetDataResponse. */ - interface IWorkflowExecutionGetDataResponse { - - /** WorkflowExecutionGetDataResponse outputs */ - outputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse inputs */ - inputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse fullInputs */ - fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** WorkflowExecutionGetDataResponse fullOutputs */ - fullOutputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a WorkflowExecutionGetDataResponse. */ - class WorkflowExecutionGetDataResponse implements IWorkflowExecutionGetDataResponse { - - /** - * Constructs a new WorkflowExecutionGetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse); - - /** WorkflowExecutionGetDataResponse outputs. */ - public outputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse inputs. */ - public inputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse fullInputs. */ - public fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** WorkflowExecutionGetDataResponse fullOutputs. */ - public fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** - * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetDataResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse): flyteidl.admin.WorkflowExecutionGetDataResponse; - - /** - * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. - * @param message WorkflowExecutionGetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataResponse; - - /** - * Verifies a WorkflowExecutionGetDataResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** ExecutionState enum. */ - enum ExecutionState { - EXECUTION_ACTIVE = 0, - EXECUTION_ARCHIVED = 1 - } - - /** Properties of an ExecutionUpdateRequest. */ - interface IExecutionUpdateRequest { - - /** ExecutionUpdateRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionUpdateRequest state */ - state?: (flyteidl.admin.ExecutionState|null); - } - - /** Represents an ExecutionUpdateRequest. */ - class ExecutionUpdateRequest implements IExecutionUpdateRequest { - - /** - * Constructs a new ExecutionUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionUpdateRequest); - - /** ExecutionUpdateRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionUpdateRequest state. */ - public state: flyteidl.admin.ExecutionState; - - /** - * Creates a new ExecutionUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionUpdateRequest): flyteidl.admin.ExecutionUpdateRequest; - - /** - * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. - * @param message ExecutionUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateRequest; - - /** - * Verifies an ExecutionUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionStateChangeDetails. */ - interface IExecutionStateChangeDetails { - - /** ExecutionStateChangeDetails state */ - state?: (flyteidl.admin.ExecutionState|null); - - /** ExecutionStateChangeDetails occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionStateChangeDetails principal */ - principal?: (string|null); - } - - /** Represents an ExecutionStateChangeDetails. */ - class ExecutionStateChangeDetails implements IExecutionStateChangeDetails { - - /** - * Constructs a new ExecutionStateChangeDetails. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionStateChangeDetails); - - /** ExecutionStateChangeDetails state. */ - public state: flyteidl.admin.ExecutionState; - - /** ExecutionStateChangeDetails occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionStateChangeDetails principal. */ - public principal: string; - - /** - * Creates a new ExecutionStateChangeDetails instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionStateChangeDetails instance - */ - public static create(properties?: flyteidl.admin.IExecutionStateChangeDetails): flyteidl.admin.ExecutionStateChangeDetails; - - /** - * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. - * @param message ExecutionStateChangeDetails message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionStateChangeDetails, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionStateChangeDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionStateChangeDetails; - - /** - * Verifies an ExecutionStateChangeDetails message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionUpdateResponse. */ - interface IExecutionUpdateResponse { - } - - /** Represents an ExecutionUpdateResponse. */ - class ExecutionUpdateResponse implements IExecutionUpdateResponse { - - /** - * Constructs a new ExecutionUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionUpdateResponse); - - /** - * Creates a new ExecutionUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IExecutionUpdateResponse): flyteidl.admin.ExecutionUpdateResponse; - - /** - * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. - * @param message ExecutionUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateResponse; - - /** - * Verifies an ExecutionUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionGetMetricsRequest. */ - interface IWorkflowExecutionGetMetricsRequest { - - /** WorkflowExecutionGetMetricsRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionGetMetricsRequest depth */ - depth?: (number|null); - } - - /** Represents a WorkflowExecutionGetMetricsRequest. */ - class WorkflowExecutionGetMetricsRequest implements IWorkflowExecutionGetMetricsRequest { - - /** - * Constructs a new WorkflowExecutionGetMetricsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest); - - /** WorkflowExecutionGetMetricsRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionGetMetricsRequest depth. */ - public depth: number; - - /** - * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetMetricsRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): flyteidl.admin.WorkflowExecutionGetMetricsRequest; - - /** - * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. - * @param message WorkflowExecutionGetMetricsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetMetricsRequest; - - /** - * Verifies a WorkflowExecutionGetMetricsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionGetMetricsResponse. */ - interface IWorkflowExecutionGetMetricsResponse { - - /** WorkflowExecutionGetMetricsResponse span */ - span?: (flyteidl.core.ISpan|null); - } - - /** Represents a WorkflowExecutionGetMetricsResponse. */ - class WorkflowExecutionGetMetricsResponse implements IWorkflowExecutionGetMetricsResponse { - - /** - * Constructs a new WorkflowExecutionGetMetricsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse); - - /** WorkflowExecutionGetMetricsResponse span. */ - public span?: (flyteidl.core.ISpan|null); - - /** - * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetMetricsResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse): flyteidl.admin.WorkflowExecutionGetMetricsResponse; - - /** - * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. - * @param message WorkflowExecutionGetMetricsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetMetricsResponse; - - /** - * Verifies a WorkflowExecutionGetMetricsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanCreateRequest. */ - interface ILaunchPlanCreateRequest { - - /** LaunchPlanCreateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanCreateRequest spec */ - spec?: (flyteidl.admin.ILaunchPlanSpec|null); - } - - /** Represents a LaunchPlanCreateRequest. */ - class LaunchPlanCreateRequest implements ILaunchPlanCreateRequest { - - /** - * Constructs a new LaunchPlanCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanCreateRequest); - - /** LaunchPlanCreateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanCreateRequest spec. */ - public spec?: (flyteidl.admin.ILaunchPlanSpec|null); - - /** - * Creates a new LaunchPlanCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanCreateRequest instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanCreateRequest): flyteidl.admin.LaunchPlanCreateRequest; - - /** - * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. - * @param message LaunchPlanCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateRequest; - - /** - * Verifies a LaunchPlanCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanCreateResponse. */ - interface ILaunchPlanCreateResponse { - } - - /** Represents a LaunchPlanCreateResponse. */ - class LaunchPlanCreateResponse implements ILaunchPlanCreateResponse { - - /** - * Constructs a new LaunchPlanCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanCreateResponse); - - /** - * Creates a new LaunchPlanCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanCreateResponse instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanCreateResponse): flyteidl.admin.LaunchPlanCreateResponse; - - /** - * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. - * @param message LaunchPlanCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateResponse; - - /** - * Verifies a LaunchPlanCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** LaunchPlanState enum. */ - enum LaunchPlanState { - INACTIVE = 0, - ACTIVE = 1 - } - - /** Properties of a LaunchPlan. */ - interface ILaunchPlan { - - /** LaunchPlan id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlan spec */ - spec?: (flyteidl.admin.ILaunchPlanSpec|null); - - /** LaunchPlan closure */ - closure?: (flyteidl.admin.ILaunchPlanClosure|null); - } - - /** Represents a LaunchPlan. */ - class LaunchPlan implements ILaunchPlan { - - /** - * Constructs a new LaunchPlan. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlan); - - /** LaunchPlan id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlan spec. */ - public spec?: (flyteidl.admin.ILaunchPlanSpec|null); - - /** LaunchPlan closure. */ - public closure?: (flyteidl.admin.ILaunchPlanClosure|null); - - /** - * Creates a new LaunchPlan instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlan instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlan): flyteidl.admin.LaunchPlan; - - /** - * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. - * @param message LaunchPlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlan message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlan; - - /** - * Verifies a LaunchPlan message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanList. */ - interface ILaunchPlanList { - - /** LaunchPlanList launchPlans */ - launchPlans?: (flyteidl.admin.ILaunchPlan[]|null); - - /** LaunchPlanList token */ - token?: (string|null); - } - - /** Represents a LaunchPlanList. */ - class LaunchPlanList implements ILaunchPlanList { - - /** - * Constructs a new LaunchPlanList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanList); - - /** LaunchPlanList launchPlans. */ - public launchPlans: flyteidl.admin.ILaunchPlan[]; - - /** LaunchPlanList token. */ - public token: string; - - /** - * Creates a new LaunchPlanList instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanList instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanList): flyteidl.admin.LaunchPlanList; - - /** - * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. - * @param message LaunchPlanList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanList; - - /** - * Verifies a LaunchPlanList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Auth. */ - interface IAuth { - - /** Auth assumableIamRole */ - assumableIamRole?: (string|null); - - /** Auth kubernetesServiceAccount */ - kubernetesServiceAccount?: (string|null); - } - - /** Represents an Auth. */ - class Auth implements IAuth { - - /** - * Constructs a new Auth. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAuth); - - /** Auth assumableIamRole. */ - public assumableIamRole: string; - - /** Auth kubernetesServiceAccount. */ - public kubernetesServiceAccount: string; - - /** - * Creates a new Auth instance using the specified properties. - * @param [properties] Properties to set - * @returns Auth instance - */ - public static create(properties?: flyteidl.admin.IAuth): flyteidl.admin.Auth; - - /** - * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. - * @param message Auth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Auth message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Auth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Auth; - - /** - * Verifies an Auth message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanSpec. */ - interface ILaunchPlanSpec { - - /** LaunchPlanSpec workflowId */ - workflowId?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanSpec entityMetadata */ - entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); - - /** LaunchPlanSpec defaultInputs */ - defaultInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanSpec fixedInputs */ - fixedInputs?: (flyteidl.core.ILiteralMap|null); - - /** LaunchPlanSpec role */ - role?: (string|null); - - /** LaunchPlanSpec labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** LaunchPlanSpec annotations */ - annotations?: (flyteidl.admin.IAnnotations|null); - - /** LaunchPlanSpec auth */ - auth?: (flyteidl.admin.IAuth|null); - - /** LaunchPlanSpec authRole */ - authRole?: (flyteidl.admin.IAuthRole|null); - - /** LaunchPlanSpec securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** LaunchPlanSpec qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** LaunchPlanSpec rawOutputDataConfig */ - rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** LaunchPlanSpec maxParallelism */ - maxParallelism?: (number|null); - - /** LaunchPlanSpec interruptible */ - interruptible?: (google.protobuf.IBoolValue|null); - - /** LaunchPlanSpec overwriteCache */ - overwriteCache?: (boolean|null); - - /** LaunchPlanSpec envs */ - envs?: (flyteidl.admin.IEnvs|null); - } - - /** Represents a LaunchPlanSpec. */ - class LaunchPlanSpec implements ILaunchPlanSpec { - - /** - * Constructs a new LaunchPlanSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanSpec); - - /** LaunchPlanSpec workflowId. */ - public workflowId?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanSpec entityMetadata. */ - public entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); - - /** LaunchPlanSpec defaultInputs. */ - public defaultInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanSpec fixedInputs. */ - public fixedInputs?: (flyteidl.core.ILiteralMap|null); - - /** LaunchPlanSpec role. */ - public role: string; - - /** LaunchPlanSpec labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** LaunchPlanSpec annotations. */ - public annotations?: (flyteidl.admin.IAnnotations|null); - - /** LaunchPlanSpec auth. */ - public auth?: (flyteidl.admin.IAuth|null); - - /** LaunchPlanSpec authRole. */ - public authRole?: (flyteidl.admin.IAuthRole|null); - - /** LaunchPlanSpec securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** LaunchPlanSpec qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** LaunchPlanSpec rawOutputDataConfig. */ - public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** LaunchPlanSpec maxParallelism. */ - public maxParallelism: number; - - /** LaunchPlanSpec interruptible. */ - public interruptible?: (google.protobuf.IBoolValue|null); - - /** LaunchPlanSpec overwriteCache. */ - public overwriteCache: boolean; - - /** LaunchPlanSpec envs. */ - public envs?: (flyteidl.admin.IEnvs|null); - - /** - * Creates a new LaunchPlanSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanSpec instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanSpec): flyteidl.admin.LaunchPlanSpec; - - /** - * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. - * @param message LaunchPlanSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanSpec; - - /** - * Verifies a LaunchPlanSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanClosure. */ - interface ILaunchPlanClosure { - - /** LaunchPlanClosure state */ - state?: (flyteidl.admin.LaunchPlanState|null); - - /** LaunchPlanClosure expectedInputs */ - expectedInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanClosure expectedOutputs */ - expectedOutputs?: (flyteidl.core.IVariableMap|null); - - /** LaunchPlanClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** LaunchPlanClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a LaunchPlanClosure. */ - class LaunchPlanClosure implements ILaunchPlanClosure { - - /** - * Constructs a new LaunchPlanClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanClosure); - - /** LaunchPlanClosure state. */ - public state: flyteidl.admin.LaunchPlanState; - - /** LaunchPlanClosure expectedInputs. */ - public expectedInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanClosure expectedOutputs. */ - public expectedOutputs?: (flyteidl.core.IVariableMap|null); - - /** LaunchPlanClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** LaunchPlanClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new LaunchPlanClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanClosure instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanClosure): flyteidl.admin.LaunchPlanClosure; - - /** - * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. - * @param message LaunchPlanClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanClosure; - - /** - * Verifies a LaunchPlanClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanMetadata. */ - interface ILaunchPlanMetadata { - - /** LaunchPlanMetadata schedule */ - schedule?: (flyteidl.admin.ISchedule|null); - - /** LaunchPlanMetadata notifications */ - notifications?: (flyteidl.admin.INotification[]|null); - - /** LaunchPlanMetadata launchConditions */ - launchConditions?: (google.protobuf.IAny|null); - } - - /** Represents a LaunchPlanMetadata. */ - class LaunchPlanMetadata implements ILaunchPlanMetadata { - - /** - * Constructs a new LaunchPlanMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanMetadata); - - /** LaunchPlanMetadata schedule. */ - public schedule?: (flyteidl.admin.ISchedule|null); - - /** LaunchPlanMetadata notifications. */ - public notifications: flyteidl.admin.INotification[]; - - /** LaunchPlanMetadata launchConditions. */ - public launchConditions?: (google.protobuf.IAny|null); - - /** - * Creates a new LaunchPlanMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanMetadata instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanMetadata): flyteidl.admin.LaunchPlanMetadata; - - /** - * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. - * @param message LaunchPlanMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanMetadata; - - /** - * Verifies a LaunchPlanMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanUpdateRequest. */ - interface ILaunchPlanUpdateRequest { - - /** LaunchPlanUpdateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanUpdateRequest state */ - state?: (flyteidl.admin.LaunchPlanState|null); - } - - /** Represents a LaunchPlanUpdateRequest. */ - class LaunchPlanUpdateRequest implements ILaunchPlanUpdateRequest { - - /** - * Constructs a new LaunchPlanUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanUpdateRequest); - - /** LaunchPlanUpdateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanUpdateRequest state. */ - public state: flyteidl.admin.LaunchPlanState; - - /** - * Creates a new LaunchPlanUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanUpdateRequest): flyteidl.admin.LaunchPlanUpdateRequest; - - /** - * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. - * @param message LaunchPlanUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateRequest; - - /** - * Verifies a LaunchPlanUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a LaunchPlanUpdateResponse. */ - interface ILaunchPlanUpdateResponse { - } - - /** Represents a LaunchPlanUpdateResponse. */ - class LaunchPlanUpdateResponse implements ILaunchPlanUpdateResponse { - - /** - * Constructs a new LaunchPlanUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanUpdateResponse); - - /** - * Creates a new LaunchPlanUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanUpdateResponse): flyteidl.admin.LaunchPlanUpdateResponse; - - /** - * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. - * @param message LaunchPlanUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateResponse; - - /** - * Verifies a LaunchPlanUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ActiveLaunchPlanRequest. */ - interface IActiveLaunchPlanRequest { - - /** ActiveLaunchPlanRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - } - - /** Represents an ActiveLaunchPlanRequest. */ - class ActiveLaunchPlanRequest implements IActiveLaunchPlanRequest { - - /** - * Constructs a new ActiveLaunchPlanRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IActiveLaunchPlanRequest); - - /** ActiveLaunchPlanRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** - * Creates a new ActiveLaunchPlanRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ActiveLaunchPlanRequest instance - */ - public static create(properties?: flyteidl.admin.IActiveLaunchPlanRequest): flyteidl.admin.ActiveLaunchPlanRequest; - - /** - * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. - * @param message ActiveLaunchPlanRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IActiveLaunchPlanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ActiveLaunchPlanRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ActiveLaunchPlanRequest; - - /** - * Verifies an ActiveLaunchPlanRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ActiveLaunchPlanListRequest. */ - interface IActiveLaunchPlanListRequest { - - /** ActiveLaunchPlanListRequest project */ - project?: (string|null); - - /** ActiveLaunchPlanListRequest domain */ - domain?: (string|null); - - /** ActiveLaunchPlanListRequest limit */ - limit?: (number|null); - - /** ActiveLaunchPlanListRequest token */ - token?: (string|null); - - /** ActiveLaunchPlanListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** ActiveLaunchPlanListRequest org */ - org?: (string|null); - } - - /** Represents an ActiveLaunchPlanListRequest. */ - class ActiveLaunchPlanListRequest implements IActiveLaunchPlanListRequest { - - /** - * Constructs a new ActiveLaunchPlanListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IActiveLaunchPlanListRequest); - - /** ActiveLaunchPlanListRequest project. */ - public project: string; - - /** ActiveLaunchPlanListRequest domain. */ - public domain: string; - - /** ActiveLaunchPlanListRequest limit. */ - public limit: number; - - /** ActiveLaunchPlanListRequest token. */ - public token: string; - - /** ActiveLaunchPlanListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** ActiveLaunchPlanListRequest org. */ - public org: string; - - /** - * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ActiveLaunchPlanListRequest instance - */ - public static create(properties?: flyteidl.admin.IActiveLaunchPlanListRequest): flyteidl.admin.ActiveLaunchPlanListRequest; - - /** - * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. - * @param message ActiveLaunchPlanListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IActiveLaunchPlanListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ActiveLaunchPlanListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ActiveLaunchPlanListRequest; - - /** - * Verifies an ActiveLaunchPlanListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** FixedRateUnit enum. */ - enum FixedRateUnit { - MINUTE = 0, - HOUR = 1, - DAY = 2 - } - - /** Properties of a FixedRate. */ - interface IFixedRate { - - /** FixedRate value */ - value?: (number|null); - - /** FixedRate unit */ - unit?: (flyteidl.admin.FixedRateUnit|null); - } - - /** Represents a FixedRate. */ - class FixedRate implements IFixedRate { - - /** - * Constructs a new FixedRate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IFixedRate); - - /** FixedRate value. */ - public value: number; - - /** FixedRate unit. */ - public unit: flyteidl.admin.FixedRateUnit; - - /** - * Creates a new FixedRate instance using the specified properties. - * @param [properties] Properties to set - * @returns FixedRate instance - */ - public static create(properties?: flyteidl.admin.IFixedRate): flyteidl.admin.FixedRate; - - /** - * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. - * @param message FixedRate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IFixedRate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FixedRate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FixedRate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FixedRate; - - /** - * Verifies a FixedRate message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CronSchedule. */ - interface ICronSchedule { - - /** CronSchedule schedule */ - schedule?: (string|null); - - /** CronSchedule offset */ - offset?: (string|null); - } - - /** Represents a CronSchedule. */ - class CronSchedule implements ICronSchedule { - - /** - * Constructs a new CronSchedule. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICronSchedule); - - /** CronSchedule schedule. */ - public schedule: string; - - /** CronSchedule offset. */ - public offset: string; - - /** - * Creates a new CronSchedule instance using the specified properties. - * @param [properties] Properties to set - * @returns CronSchedule instance - */ - public static create(properties?: flyteidl.admin.ICronSchedule): flyteidl.admin.CronSchedule; - - /** - * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. - * @param message CronSchedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICronSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CronSchedule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CronSchedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CronSchedule; - - /** - * Verifies a CronSchedule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Schedule. */ - interface ISchedule { - - /** Schedule cronExpression */ - cronExpression?: (string|null); - - /** Schedule rate */ - rate?: (flyteidl.admin.IFixedRate|null); - - /** Schedule cronSchedule */ - cronSchedule?: (flyteidl.admin.ICronSchedule|null); - - /** Schedule kickoffTimeInputArg */ - kickoffTimeInputArg?: (string|null); - } - - /** Represents a Schedule. */ - class Schedule implements ISchedule { - - /** - * Constructs a new Schedule. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISchedule); - - /** Schedule cronExpression. */ - public cronExpression: string; - - /** Schedule rate. */ - public rate?: (flyteidl.admin.IFixedRate|null); - - /** Schedule cronSchedule. */ - public cronSchedule?: (flyteidl.admin.ICronSchedule|null); - - /** Schedule kickoffTimeInputArg. */ - public kickoffTimeInputArg: string; - - /** Schedule ScheduleExpression. */ - public ScheduleExpression?: ("cronExpression"|"rate"|"cronSchedule"); - - /** - * Creates a new Schedule instance using the specified properties. - * @param [properties] Properties to set - * @returns Schedule instance - */ - public static create(properties?: flyteidl.admin.ISchedule): flyteidl.admin.Schedule; - - /** - * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. - * @param message Schedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Schedule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Schedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Schedule; - - /** - * Verifies a Schedule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** MatchableResource enum. */ - enum MatchableResource { - TASK_RESOURCE = 0, - CLUSTER_RESOURCE = 1, - EXECUTION_QUEUE = 2, - EXECUTION_CLUSTER_LABEL = 3, - QUALITY_OF_SERVICE_SPECIFICATION = 4, - PLUGIN_OVERRIDE = 5, - WORKFLOW_EXECUTION_CONFIG = 6, - CLUSTER_ASSIGNMENT = 7 - } - - /** Properties of a TaskResourceSpec. */ - interface ITaskResourceSpec { - - /** TaskResourceSpec cpu */ - cpu?: (string|null); - - /** TaskResourceSpec gpu */ - gpu?: (string|null); - - /** TaskResourceSpec memory */ - memory?: (string|null); - - /** TaskResourceSpec storage */ - storage?: (string|null); - - /** TaskResourceSpec ephemeralStorage */ - ephemeralStorage?: (string|null); - } - - /** Represents a TaskResourceSpec. */ - class TaskResourceSpec implements ITaskResourceSpec { - - /** - * Constructs a new TaskResourceSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskResourceSpec); - - /** TaskResourceSpec cpu. */ - public cpu: string; - - /** TaskResourceSpec gpu. */ - public gpu: string; - - /** TaskResourceSpec memory. */ - public memory: string; - - /** TaskResourceSpec storage. */ - public storage: string; - - /** TaskResourceSpec ephemeralStorage. */ - public ephemeralStorage: string; - - /** - * Creates a new TaskResourceSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskResourceSpec instance - */ - public static create(properties?: flyteidl.admin.ITaskResourceSpec): flyteidl.admin.TaskResourceSpec; - - /** - * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. - * @param message TaskResourceSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskResourceSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskResourceSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskResourceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskResourceSpec; - - /** - * Verifies a TaskResourceSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskResourceAttributes. */ - interface ITaskResourceAttributes { - - /** TaskResourceAttributes defaults */ - defaults?: (flyteidl.admin.ITaskResourceSpec|null); - - /** TaskResourceAttributes limits */ - limits?: (flyteidl.admin.ITaskResourceSpec|null); - } - - /** Represents a TaskResourceAttributes. */ - class TaskResourceAttributes implements ITaskResourceAttributes { - - /** - * Constructs a new TaskResourceAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskResourceAttributes); - - /** TaskResourceAttributes defaults. */ - public defaults?: (flyteidl.admin.ITaskResourceSpec|null); - - /** TaskResourceAttributes limits. */ - public limits?: (flyteidl.admin.ITaskResourceSpec|null); - - /** - * Creates a new TaskResourceAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskResourceAttributes instance - */ - public static create(properties?: flyteidl.admin.ITaskResourceAttributes): flyteidl.admin.TaskResourceAttributes; - - /** - * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. - * @param message TaskResourceAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskResourceAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskResourceAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskResourceAttributes; - - /** - * Verifies a TaskResourceAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ClusterResourceAttributes. */ - interface IClusterResourceAttributes { - - /** ClusterResourceAttributes attributes */ - attributes?: ({ [k: string]: string }|null); - } - - /** Represents a ClusterResourceAttributes. */ - class ClusterResourceAttributes implements IClusterResourceAttributes { - - /** - * Constructs a new ClusterResourceAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IClusterResourceAttributes); - - /** ClusterResourceAttributes attributes. */ - public attributes: { [k: string]: string }; - - /** - * Creates a new ClusterResourceAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ClusterResourceAttributes instance - */ - public static create(properties?: flyteidl.admin.IClusterResourceAttributes): flyteidl.admin.ClusterResourceAttributes; - - /** - * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. - * @param message ClusterResourceAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IClusterResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClusterResourceAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClusterResourceAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ClusterResourceAttributes; - - /** - * Verifies a ClusterResourceAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionQueueAttributes. */ - interface IExecutionQueueAttributes { - - /** ExecutionQueueAttributes tags */ - tags?: (string[]|null); - } - - /** Represents an ExecutionQueueAttributes. */ - class ExecutionQueueAttributes implements IExecutionQueueAttributes { - - /** - * Constructs a new ExecutionQueueAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionQueueAttributes); - - /** ExecutionQueueAttributes tags. */ - public tags: string[]; - - /** - * Creates a new ExecutionQueueAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionQueueAttributes instance - */ - public static create(properties?: flyteidl.admin.IExecutionQueueAttributes): flyteidl.admin.ExecutionQueueAttributes; - - /** - * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. - * @param message ExecutionQueueAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionQueueAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionQueueAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionQueueAttributes; - - /** - * Verifies an ExecutionQueueAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an ExecutionClusterLabel. */ - interface IExecutionClusterLabel { - - /** ExecutionClusterLabel value */ - value?: (string|null); - } - - /** Represents an ExecutionClusterLabel. */ - class ExecutionClusterLabel implements IExecutionClusterLabel { - - /** - * Constructs a new ExecutionClusterLabel. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionClusterLabel); - - /** ExecutionClusterLabel value. */ - public value: string; - - /** - * Creates a new ExecutionClusterLabel instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionClusterLabel instance - */ - public static create(properties?: flyteidl.admin.IExecutionClusterLabel): flyteidl.admin.ExecutionClusterLabel; - - /** - * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. - * @param message ExecutionClusterLabel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionClusterLabel, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionClusterLabel message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionClusterLabel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClusterLabel; - - /** - * Verifies an ExecutionClusterLabel message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a PluginOverride. */ - interface IPluginOverride { - - /** PluginOverride taskType */ - taskType?: (string|null); - - /** PluginOverride pluginId */ - pluginId?: (string[]|null); - - /** PluginOverride missingPluginBehavior */ - missingPluginBehavior?: (flyteidl.admin.PluginOverride.MissingPluginBehavior|null); - } - - /** Represents a PluginOverride. */ - class PluginOverride implements IPluginOverride { - - /** - * Constructs a new PluginOverride. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IPluginOverride); - - /** PluginOverride taskType. */ - public taskType: string; - - /** PluginOverride pluginId. */ - public pluginId: string[]; - - /** PluginOverride missingPluginBehavior. */ - public missingPluginBehavior: flyteidl.admin.PluginOverride.MissingPluginBehavior; - - /** - * Creates a new PluginOverride instance using the specified properties. - * @param [properties] Properties to set - * @returns PluginOverride instance - */ - public static create(properties?: flyteidl.admin.IPluginOverride): flyteidl.admin.PluginOverride; - - /** - * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. - * @param message PluginOverride message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IPluginOverride, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PluginOverride message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PluginOverride - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PluginOverride; - - /** - * Verifies a PluginOverride message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace PluginOverride { - - /** MissingPluginBehavior enum. */ - enum MissingPluginBehavior { - FAIL = 0, - USE_DEFAULT = 1 - } - } - - /** Properties of a PluginOverrides. */ - interface IPluginOverrides { - - /** PluginOverrides overrides */ - overrides?: (flyteidl.admin.IPluginOverride[]|null); - } - - /** Represents a PluginOverrides. */ - class PluginOverrides implements IPluginOverrides { - - /** - * Constructs a new PluginOverrides. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IPluginOverrides); - - /** PluginOverrides overrides. */ - public overrides: flyteidl.admin.IPluginOverride[]; - - /** - * Creates a new PluginOverrides instance using the specified properties. - * @param [properties] Properties to set - * @returns PluginOverrides instance - */ - public static create(properties?: flyteidl.admin.IPluginOverrides): flyteidl.admin.PluginOverrides; - - /** - * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. - * @param message PluginOverrides message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IPluginOverrides, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PluginOverrides message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PluginOverrides - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PluginOverrides; - - /** - * Verifies a PluginOverrides message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowExecutionConfig. */ - interface IWorkflowExecutionConfig { - - /** WorkflowExecutionConfig maxParallelism */ - maxParallelism?: (number|null); - - /** WorkflowExecutionConfig securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** WorkflowExecutionConfig rawOutputDataConfig */ - rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** WorkflowExecutionConfig labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** WorkflowExecutionConfig annotations */ - annotations?: (flyteidl.admin.IAnnotations|null); - - /** WorkflowExecutionConfig interruptible */ - interruptible?: (google.protobuf.IBoolValue|null); - - /** WorkflowExecutionConfig overwriteCache */ - overwriteCache?: (boolean|null); - - /** WorkflowExecutionConfig envs */ - envs?: (flyteidl.admin.IEnvs|null); - } - - /** Represents a WorkflowExecutionConfig. */ - class WorkflowExecutionConfig implements IWorkflowExecutionConfig { - - /** - * Constructs a new WorkflowExecutionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionConfig); - - /** WorkflowExecutionConfig maxParallelism. */ - public maxParallelism: number; - - /** WorkflowExecutionConfig securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** WorkflowExecutionConfig rawOutputDataConfig. */ - public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** WorkflowExecutionConfig labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** WorkflowExecutionConfig annotations. */ - public annotations?: (flyteidl.admin.IAnnotations|null); - - /** WorkflowExecutionConfig interruptible. */ - public interruptible?: (google.protobuf.IBoolValue|null); - - /** WorkflowExecutionConfig overwriteCache. */ - public overwriteCache: boolean; - - /** WorkflowExecutionConfig envs. */ - public envs?: (flyteidl.admin.IEnvs|null); - - /** - * Creates a new WorkflowExecutionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionConfig instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionConfig): flyteidl.admin.WorkflowExecutionConfig; - - /** - * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. - * @param message WorkflowExecutionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionConfig; - - /** - * Verifies a WorkflowExecutionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a MatchingAttributes. */ - interface IMatchingAttributes { - - /** MatchingAttributes taskResourceAttributes */ - taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); - - /** MatchingAttributes clusterResourceAttributes */ - clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); - - /** MatchingAttributes executionQueueAttributes */ - executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); - - /** MatchingAttributes executionClusterLabel */ - executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); - - /** MatchingAttributes qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** MatchingAttributes pluginOverrides */ - pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); - - /** MatchingAttributes workflowExecutionConfig */ - workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); - - /** MatchingAttributes clusterAssignment */ - clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - } - - /** Represents a MatchingAttributes. */ - class MatchingAttributes implements IMatchingAttributes { - - /** - * Constructs a new MatchingAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IMatchingAttributes); - - /** MatchingAttributes taskResourceAttributes. */ - public taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); - - /** MatchingAttributes clusterResourceAttributes. */ - public clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); - - /** MatchingAttributes executionQueueAttributes. */ - public executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); - - /** MatchingAttributes executionClusterLabel. */ - public executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); - - /** MatchingAttributes qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** MatchingAttributes pluginOverrides. */ - public pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); - - /** MatchingAttributes workflowExecutionConfig. */ - public workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); - - /** MatchingAttributes clusterAssignment. */ - public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - - /** MatchingAttributes target. */ - public target?: ("taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"); - - /** - * Creates a new MatchingAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns MatchingAttributes instance - */ - public static create(properties?: flyteidl.admin.IMatchingAttributes): flyteidl.admin.MatchingAttributes; - - /** - * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. - * @param message MatchingAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IMatchingAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MatchingAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MatchingAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.MatchingAttributes; - - /** - * Verifies a MatchingAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a MatchableAttributesConfiguration. */ - interface IMatchableAttributesConfiguration { - - /** MatchableAttributesConfiguration attributes */ - attributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** MatchableAttributesConfiguration domain */ - domain?: (string|null); - - /** MatchableAttributesConfiguration project */ - project?: (string|null); - - /** MatchableAttributesConfiguration workflow */ - workflow?: (string|null); - - /** MatchableAttributesConfiguration launchPlan */ - launchPlan?: (string|null); - - /** MatchableAttributesConfiguration org */ - org?: (string|null); - } - - /** Represents a MatchableAttributesConfiguration. */ - class MatchableAttributesConfiguration implements IMatchableAttributesConfiguration { - - /** - * Constructs a new MatchableAttributesConfiguration. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IMatchableAttributesConfiguration); - - /** MatchableAttributesConfiguration attributes. */ - public attributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** MatchableAttributesConfiguration domain. */ - public domain: string; - - /** MatchableAttributesConfiguration project. */ - public project: string; - - /** MatchableAttributesConfiguration workflow. */ - public workflow: string; - - /** MatchableAttributesConfiguration launchPlan. */ - public launchPlan: string; - - /** MatchableAttributesConfiguration org. */ - public org: string; - - /** - * Creates a new MatchableAttributesConfiguration instance using the specified properties. - * @param [properties] Properties to set - * @returns MatchableAttributesConfiguration instance - */ - public static create(properties?: flyteidl.admin.IMatchableAttributesConfiguration): flyteidl.admin.MatchableAttributesConfiguration; - - /** - * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. - * @param message MatchableAttributesConfiguration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IMatchableAttributesConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MatchableAttributesConfiguration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.MatchableAttributesConfiguration; - - /** - * Verifies a MatchableAttributesConfiguration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ListMatchableAttributesRequest. */ - interface IListMatchableAttributesRequest { - - /** ListMatchableAttributesRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** ListMatchableAttributesRequest org */ - org?: (string|null); - } - - /** Represents a ListMatchableAttributesRequest. */ - class ListMatchableAttributesRequest implements IListMatchableAttributesRequest { - - /** - * Constructs a new ListMatchableAttributesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListMatchableAttributesRequest); - - /** ListMatchableAttributesRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** ListMatchableAttributesRequest org. */ - public org: string; - - /** - * Creates a new ListMatchableAttributesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMatchableAttributesRequest instance - */ - public static create(properties?: flyteidl.admin.IListMatchableAttributesRequest): flyteidl.admin.ListMatchableAttributesRequest; - - /** - * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. - * @param message ListMatchableAttributesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListMatchableAttributesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMatchableAttributesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListMatchableAttributesRequest; - - /** - * Verifies a ListMatchableAttributesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ListMatchableAttributesResponse. */ - interface IListMatchableAttributesResponse { - - /** ListMatchableAttributesResponse configurations */ - configurations?: (flyteidl.admin.IMatchableAttributesConfiguration[]|null); - } - - /** Represents a ListMatchableAttributesResponse. */ - class ListMatchableAttributesResponse implements IListMatchableAttributesResponse { - - /** - * Constructs a new ListMatchableAttributesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListMatchableAttributesResponse); - - /** ListMatchableAttributesResponse configurations. */ - public configurations: flyteidl.admin.IMatchableAttributesConfiguration[]; - - /** - * Creates a new ListMatchableAttributesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMatchableAttributesResponse instance - */ - public static create(properties?: flyteidl.admin.IListMatchableAttributesResponse): flyteidl.admin.ListMatchableAttributesResponse; - - /** - * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. - * @param message ListMatchableAttributesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListMatchableAttributesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMatchableAttributesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListMatchableAttributesResponse; - - /** - * Verifies a ListMatchableAttributesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionGetRequest. */ - interface INodeExecutionGetRequest { - - /** NodeExecutionGetRequest id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a NodeExecutionGetRequest. */ - class NodeExecutionGetRequest implements INodeExecutionGetRequest { - - /** - * Constructs a new NodeExecutionGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionGetRequest); - - /** NodeExecutionGetRequest id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** - * Creates a new NodeExecutionGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionGetRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionGetRequest): flyteidl.admin.NodeExecutionGetRequest; - - /** - * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. - * @param message NodeExecutionGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetRequest; - - /** - * Verifies a NodeExecutionGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionListRequest. */ - interface INodeExecutionListRequest { - - /** NodeExecutionListRequest workflowExecutionId */ - workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** NodeExecutionListRequest limit */ - limit?: (number|null); - - /** NodeExecutionListRequest token */ - token?: (string|null); - - /** NodeExecutionListRequest filters */ - filters?: (string|null); - - /** NodeExecutionListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** NodeExecutionListRequest uniqueParentId */ - uniqueParentId?: (string|null); - } - - /** Represents a NodeExecutionListRequest. */ - class NodeExecutionListRequest implements INodeExecutionListRequest { - - /** - * Constructs a new NodeExecutionListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionListRequest); - - /** NodeExecutionListRequest workflowExecutionId. */ - public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** NodeExecutionListRequest limit. */ - public limit: number; - - /** NodeExecutionListRequest token. */ - public token: string; - - /** NodeExecutionListRequest filters. */ - public filters: string; - - /** NodeExecutionListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** NodeExecutionListRequest uniqueParentId. */ - public uniqueParentId: string; - - /** - * Creates a new NodeExecutionListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionListRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionListRequest): flyteidl.admin.NodeExecutionListRequest; - - /** - * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. - * @param message NodeExecutionListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionListRequest; - - /** - * Verifies a NodeExecutionListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionForTaskListRequest. */ - interface INodeExecutionForTaskListRequest { - - /** NodeExecutionForTaskListRequest taskExecutionId */ - taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** NodeExecutionForTaskListRequest limit */ - limit?: (number|null); - - /** NodeExecutionForTaskListRequest token */ - token?: (string|null); - - /** NodeExecutionForTaskListRequest filters */ - filters?: (string|null); - - /** NodeExecutionForTaskListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a NodeExecutionForTaskListRequest. */ - class NodeExecutionForTaskListRequest implements INodeExecutionForTaskListRequest { - - /** - * Constructs a new NodeExecutionForTaskListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionForTaskListRequest); - - /** NodeExecutionForTaskListRequest taskExecutionId. */ - public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** NodeExecutionForTaskListRequest limit. */ - public limit: number; - - /** NodeExecutionForTaskListRequest token. */ - public token: string; - - /** NodeExecutionForTaskListRequest filters. */ - public filters: string; - - /** NodeExecutionForTaskListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionForTaskListRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionForTaskListRequest): flyteidl.admin.NodeExecutionForTaskListRequest; - - /** - * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. - * @param message NodeExecutionForTaskListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionForTaskListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionForTaskListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionForTaskListRequest; - - /** - * Verifies a NodeExecutionForTaskListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecution. */ - interface INodeExecution { - - /** NodeExecution id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecution inputUri */ - inputUri?: (string|null); - - /** NodeExecution closure */ - closure?: (flyteidl.admin.INodeExecutionClosure|null); - - /** NodeExecution metadata */ - metadata?: (flyteidl.admin.INodeExecutionMetaData|null); - } - - /** Represents a NodeExecution. */ - class NodeExecution implements INodeExecution { - - /** - * Constructs a new NodeExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecution); - - /** NodeExecution id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecution inputUri. */ - public inputUri: string; - - /** NodeExecution closure. */ - public closure?: (flyteidl.admin.INodeExecutionClosure|null); - - /** NodeExecution metadata. */ - public metadata?: (flyteidl.admin.INodeExecutionMetaData|null); - - /** - * Creates a new NodeExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecution instance - */ - public static create(properties?: flyteidl.admin.INodeExecution): flyteidl.admin.NodeExecution; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. - * @param message NodeExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecution; - - /** - * Verifies a NodeExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionMetaData. */ - interface INodeExecutionMetaData { - - /** NodeExecutionMetaData retryGroup */ - retryGroup?: (string|null); - - /** NodeExecutionMetaData isParentNode */ - isParentNode?: (boolean|null); - - /** NodeExecutionMetaData specNodeId */ - specNodeId?: (string|null); - - /** NodeExecutionMetaData isDynamic */ - isDynamic?: (boolean|null); - - /** NodeExecutionMetaData isArray */ - isArray?: (boolean|null); - } - - /** Represents a NodeExecutionMetaData. */ - class NodeExecutionMetaData implements INodeExecutionMetaData { - - /** - * Constructs a new NodeExecutionMetaData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionMetaData); - - /** NodeExecutionMetaData retryGroup. */ - public retryGroup: string; - - /** NodeExecutionMetaData isParentNode. */ - public isParentNode: boolean; - - /** NodeExecutionMetaData specNodeId. */ - public specNodeId: string; - - /** NodeExecutionMetaData isDynamic. */ - public isDynamic: boolean; - - /** NodeExecutionMetaData isArray. */ - public isArray: boolean; - - /** - * Creates a new NodeExecutionMetaData instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionMetaData instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionMetaData): flyteidl.admin.NodeExecutionMetaData; - - /** - * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. - * @param message NodeExecutionMetaData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionMetaData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionMetaData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionMetaData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionMetaData; - - /** - * Verifies a NodeExecutionMetaData message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionList. */ - interface INodeExecutionList { - - /** NodeExecutionList nodeExecutions */ - nodeExecutions?: (flyteidl.admin.INodeExecution[]|null); - - /** NodeExecutionList token */ - token?: (string|null); - } - - /** Represents a NodeExecutionList. */ - class NodeExecutionList implements INodeExecutionList { - - /** - * Constructs a new NodeExecutionList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionList); - - /** NodeExecutionList nodeExecutions. */ - public nodeExecutions: flyteidl.admin.INodeExecution[]; - - /** NodeExecutionList token. */ - public token: string; - - /** - * Creates a new NodeExecutionList instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionList instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionList): flyteidl.admin.NodeExecutionList; - - /** - * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. - * @param message NodeExecutionList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionList; - - /** - * Verifies a NodeExecutionList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionClosure. */ - interface INodeExecutionClosure { - - /** NodeExecutionClosure outputUri */ - outputUri?: (string|null); - - /** NodeExecutionClosure error */ - error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionClosure outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionClosure phase */ - phase?: (flyteidl.core.NodeExecution.Phase|null); - - /** NodeExecutionClosure startedAt */ - startedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure duration */ - duration?: (google.protobuf.IDuration|null); - - /** NodeExecutionClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure workflowNodeMetadata */ - workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); - - /** NodeExecutionClosure taskNodeMetadata */ - taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); - - /** NodeExecutionClosure deckUri */ - deckUri?: (string|null); - - /** NodeExecutionClosure dynamicJobSpecUri */ - dynamicJobSpecUri?: (string|null); - } - - /** Represents a NodeExecutionClosure. */ - class NodeExecutionClosure implements INodeExecutionClosure { - - /** - * Constructs a new NodeExecutionClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionClosure); - - /** NodeExecutionClosure outputUri. */ - public outputUri: string; - - /** NodeExecutionClosure error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionClosure outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionClosure phase. */ - public phase: flyteidl.core.NodeExecution.Phase; - - /** NodeExecutionClosure startedAt. */ - public startedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** NodeExecutionClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure workflowNodeMetadata. */ - public workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); - - /** NodeExecutionClosure taskNodeMetadata. */ - public taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); - - /** NodeExecutionClosure deckUri. */ - public deckUri: string; - - /** NodeExecutionClosure dynamicJobSpecUri. */ - public dynamicJobSpecUri: string; - - /** NodeExecutionClosure outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** NodeExecutionClosure targetMetadata. */ - public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); - - /** - * Creates a new NodeExecutionClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionClosure instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionClosure): flyteidl.admin.NodeExecutionClosure; - - /** - * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. - * @param message NodeExecutionClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionClosure; - - /** - * Verifies a NodeExecutionClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowNodeMetadata. */ - interface IWorkflowNodeMetadata { - - /** WorkflowNodeMetadata executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowNodeMetadata. */ - class WorkflowNodeMetadata implements IWorkflowNodeMetadata { - - /** - * Constructs a new WorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowNodeMetadata); - - /** WorkflowNodeMetadata executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.admin.IWorkflowNodeMetadata): flyteidl.admin.WorkflowNodeMetadata; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. - * @param message WorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowNodeMetadata; - - /** - * Verifies a WorkflowNodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskNodeMetadata. */ - interface ITaskNodeMetadata { - - /** TaskNodeMetadata cacheStatus */ - cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); - - /** TaskNodeMetadata catalogKey */ - catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata checkpointUri */ - checkpointUri?: (string|null); - } - - /** Represents a TaskNodeMetadata. */ - class TaskNodeMetadata implements ITaskNodeMetadata { - - /** - * Constructs a new TaskNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskNodeMetadata); - - /** TaskNodeMetadata cacheStatus. */ - public cacheStatus: flyteidl.core.CatalogCacheStatus; - - /** TaskNodeMetadata catalogKey. */ - public catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata checkpointUri. */ - public checkpointUri: string; - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNodeMetadata instance - */ - public static create(properties?: flyteidl.admin.ITaskNodeMetadata): flyteidl.admin.TaskNodeMetadata; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. - * @param message TaskNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskNodeMetadata; - - /** - * Verifies a TaskNodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DynamicWorkflowNodeMetadata. */ - interface IDynamicWorkflowNodeMetadata { - - /** DynamicWorkflowNodeMetadata id */ - id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ - dynamicJobSpecUri?: (string|null); - } - - /** Represents a DynamicWorkflowNodeMetadata. */ - class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata); - - /** DynamicWorkflowNodeMetadata id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ - public dynamicJobSpecUri: string; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicWorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata): flyteidl.admin.DynamicWorkflowNodeMetadata; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @param message DynamicWorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicWorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DynamicWorkflowNodeMetadata; - - /** - * Verifies a DynamicWorkflowNodeMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionGetDataRequest. */ - interface INodeExecutionGetDataRequest { - - /** NodeExecutionGetDataRequest id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a NodeExecutionGetDataRequest. */ - class NodeExecutionGetDataRequest implements INodeExecutionGetDataRequest { - - /** - * Constructs a new NodeExecutionGetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionGetDataRequest); - - /** NodeExecutionGetDataRequest id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** - * Creates a new NodeExecutionGetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionGetDataRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionGetDataRequest): flyteidl.admin.NodeExecutionGetDataRequest; - - /** - * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. - * @param message NodeExecutionGetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataRequest; - - /** - * Verifies a NodeExecutionGetDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a NodeExecutionGetDataResponse. */ - interface INodeExecutionGetDataResponse { - - /** NodeExecutionGetDataResponse inputs */ - inputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse outputs */ - outputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse fullInputs */ - fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse fullOutputs */ - fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse dynamicWorkflow */ - dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); - - /** NodeExecutionGetDataResponse flyteUrls */ - flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - } - - /** Represents a NodeExecutionGetDataResponse. */ - class NodeExecutionGetDataResponse implements INodeExecutionGetDataResponse { - - /** - * Constructs a new NodeExecutionGetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionGetDataResponse); - - /** NodeExecutionGetDataResponse inputs. */ - public inputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse outputs. */ - public outputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse fullInputs. */ - public fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse fullOutputs. */ - public fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse dynamicWorkflow. */ - public dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); - - /** NodeExecutionGetDataResponse flyteUrls. */ - public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - - /** - * Creates a new NodeExecutionGetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionGetDataResponse instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionGetDataResponse): flyteidl.admin.NodeExecutionGetDataResponse; - - /** - * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. - * @param message NodeExecutionGetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataResponse; - - /** - * Verifies a NodeExecutionGetDataResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetDynamicNodeWorkflowRequest. */ - interface IGetDynamicNodeWorkflowRequest { - - /** GetDynamicNodeWorkflowRequest id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a GetDynamicNodeWorkflowRequest. */ - class GetDynamicNodeWorkflowRequest implements IGetDynamicNodeWorkflowRequest { - - /** - * Constructs a new GetDynamicNodeWorkflowRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetDynamicNodeWorkflowRequest); - - /** GetDynamicNodeWorkflowRequest id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** - * Creates a new GetDynamicNodeWorkflowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetDynamicNodeWorkflowRequest instance - */ - public static create(properties?: flyteidl.admin.IGetDynamicNodeWorkflowRequest): flyteidl.admin.GetDynamicNodeWorkflowRequest; - - /** - * Encodes the specified GetDynamicNodeWorkflowRequest message. Does not implicitly {@link flyteidl.admin.GetDynamicNodeWorkflowRequest.verify|verify} messages. - * @param message GetDynamicNodeWorkflowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetDynamicNodeWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetDynamicNodeWorkflowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetDynamicNodeWorkflowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetDynamicNodeWorkflowRequest; - - /** - * Verifies a GetDynamicNodeWorkflowRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DynamicNodeWorkflowResponse. */ - interface IDynamicNodeWorkflowResponse { - - /** DynamicNodeWorkflowResponse compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - } - - /** Represents a DynamicNodeWorkflowResponse. */ - class DynamicNodeWorkflowResponse implements IDynamicNodeWorkflowResponse { - - /** - * Constructs a new DynamicNodeWorkflowResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDynamicNodeWorkflowResponse); - - /** DynamicNodeWorkflowResponse compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** - * Creates a new DynamicNodeWorkflowResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicNodeWorkflowResponse instance - */ - public static create(properties?: flyteidl.admin.IDynamicNodeWorkflowResponse): flyteidl.admin.DynamicNodeWorkflowResponse; - - /** - * Encodes the specified DynamicNodeWorkflowResponse message. Does not implicitly {@link flyteidl.admin.DynamicNodeWorkflowResponse.verify|verify} messages. - * @param message DynamicNodeWorkflowResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDynamicNodeWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicNodeWorkflowResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicNodeWorkflowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DynamicNodeWorkflowResponse; - - /** - * Verifies a DynamicNodeWorkflowResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EmailMessage. */ - interface IEmailMessage { - - /** EmailMessage recipientsEmail */ - recipientsEmail?: (string[]|null); - - /** EmailMessage senderEmail */ - senderEmail?: (string|null); - - /** EmailMessage subjectLine */ - subjectLine?: (string|null); - - /** EmailMessage body */ - body?: (string|null); - } - - /** Represents an EmailMessage. */ - class EmailMessage implements IEmailMessage { - - /** - * Constructs a new EmailMessage. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEmailMessage); - - /** EmailMessage recipientsEmail. */ - public recipientsEmail: string[]; - - /** EmailMessage senderEmail. */ - public senderEmail: string; - - /** EmailMessage subjectLine. */ - public subjectLine: string; - - /** EmailMessage body. */ - public body: string; - - /** - * Creates a new EmailMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailMessage instance - */ - public static create(properties?: flyteidl.admin.IEmailMessage): flyteidl.admin.EmailMessage; - - /** - * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. - * @param message EmailMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEmailMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmailMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailMessage; - - /** - * Verifies an EmailMessage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Domain. */ - interface IDomain { - - /** Domain id */ - id?: (string|null); - - /** Domain name */ - name?: (string|null); - } - - /** Represents a Domain. */ - class Domain implements IDomain { - - /** - * Constructs a new Domain. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDomain); - - /** Domain id. */ - public id: string; - - /** Domain name. */ - public name: string; - - /** - * Creates a new Domain instance using the specified properties. - * @param [properties] Properties to set - * @returns Domain instance - */ - public static create(properties?: flyteidl.admin.IDomain): flyteidl.admin.Domain; - - /** - * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. - * @param message Domain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDomain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Domain message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Domain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Domain; - - /** - * Verifies a Domain message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Project. */ - interface IProject { - - /** Project id */ - id?: (string|null); - - /** Project name */ - name?: (string|null); - - /** Project domains */ - domains?: (flyteidl.admin.IDomain[]|null); - - /** Project description */ - description?: (string|null); - - /** Project labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** Project state */ - state?: (flyteidl.admin.Project.ProjectState|null); - - /** Project org */ - org?: (string|null); - } - - /** Represents a Project. */ - class Project implements IProject { - - /** - * Constructs a new Project. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProject); - - /** Project id. */ - public id: string; - - /** Project name. */ - public name: string; - - /** Project domains. */ - public domains: flyteidl.admin.IDomain[]; - - /** Project description. */ - public description: string; - - /** Project labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** Project state. */ - public state: flyteidl.admin.Project.ProjectState; - - /** Project org. */ - public org: string; - - /** - * Creates a new Project instance using the specified properties. - * @param [properties] Properties to set - * @returns Project instance - */ - public static create(properties?: flyteidl.admin.IProject): flyteidl.admin.Project; - - /** - * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. - * @param message Project message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProject, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Project message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Project - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Project; - - /** - * Verifies a Project message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace Project { - - /** ProjectState enum. */ - enum ProjectState { - ACTIVE = 0, - ARCHIVED = 1, - SYSTEM_GENERATED = 2 - } - } - - /** Properties of a Projects. */ - interface IProjects { - - /** Projects projects */ - projects?: (flyteidl.admin.IProject[]|null); - - /** Projects token */ - token?: (string|null); - } - - /** Represents a Projects. */ - class Projects implements IProjects { - - /** - * Constructs a new Projects. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjects); - - /** Projects projects. */ - public projects: flyteidl.admin.IProject[]; - - /** Projects token. */ - public token: string; - - /** - * Creates a new Projects instance using the specified properties. - * @param [properties] Properties to set - * @returns Projects instance - */ - public static create(properties?: flyteidl.admin.IProjects): flyteidl.admin.Projects; - - /** - * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. - * @param message Projects message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjects, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Projects message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Projects - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Projects; - - /** - * Verifies a Projects message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectListRequest. */ - interface IProjectListRequest { - - /** ProjectListRequest limit */ - limit?: (number|null); - - /** ProjectListRequest token */ - token?: (string|null); - - /** ProjectListRequest filters */ - filters?: (string|null); - - /** ProjectListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** ProjectListRequest org */ - org?: (string|null); - } - - /** Represents a ProjectListRequest. */ - class ProjectListRequest implements IProjectListRequest { - - /** - * Constructs a new ProjectListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectListRequest); - - /** ProjectListRequest limit. */ - public limit: number; - - /** ProjectListRequest token. */ - public token: string; - - /** ProjectListRequest filters. */ - public filters: string; - - /** ProjectListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** ProjectListRequest org. */ - public org: string; - - /** - * Creates a new ProjectListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectListRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectListRequest): flyteidl.admin.ProjectListRequest; - - /** - * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. - * @param message ProjectListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectListRequest; - - /** - * Verifies a ProjectListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectRegisterRequest. */ - interface IProjectRegisterRequest { - - /** ProjectRegisterRequest project */ - project?: (flyteidl.admin.IProject|null); - } - - /** Represents a ProjectRegisterRequest. */ - class ProjectRegisterRequest implements IProjectRegisterRequest { - - /** - * Constructs a new ProjectRegisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectRegisterRequest); - - /** ProjectRegisterRequest project. */ - public project?: (flyteidl.admin.IProject|null); - - /** - * Creates a new ProjectRegisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectRegisterRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectRegisterRequest): flyteidl.admin.ProjectRegisterRequest; - - /** - * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. - * @param message ProjectRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectRegisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterRequest; - - /** - * Verifies a ProjectRegisterRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectRegisterResponse. */ - interface IProjectRegisterResponse { - } - - /** Represents a ProjectRegisterResponse. */ - class ProjectRegisterResponse implements IProjectRegisterResponse { - - /** - * Constructs a new ProjectRegisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectRegisterResponse); - - /** - * Creates a new ProjectRegisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectRegisterResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectRegisterResponse): flyteidl.admin.ProjectRegisterResponse; - - /** - * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. - * @param message ProjectRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectRegisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterResponse; - - /** - * Verifies a ProjectRegisterResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectUpdateResponse. */ - interface IProjectUpdateResponse { - } - - /** Represents a ProjectUpdateResponse. */ - class ProjectUpdateResponse implements IProjectUpdateResponse { - - /** - * Constructs a new ProjectUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectUpdateResponse); - - /** - * Creates a new ProjectUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectUpdateResponse): flyteidl.admin.ProjectUpdateResponse; - - /** - * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. - * @param message ProjectUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectUpdateResponse; - - /** - * Verifies a ProjectUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributes. */ - interface IProjectAttributes { - - /** ProjectAttributes project */ - project?: (string|null); - - /** ProjectAttributes matchingAttributes */ - matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** ProjectAttributes org */ - org?: (string|null); - } - - /** Represents a ProjectAttributes. */ - class ProjectAttributes implements IProjectAttributes { - - /** - * Constructs a new ProjectAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributes); - - /** ProjectAttributes project. */ - public project: string; - - /** ProjectAttributes matchingAttributes. */ - public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** ProjectAttributes org. */ - public org: string; - - /** - * Creates a new ProjectAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributes instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributes): flyteidl.admin.ProjectAttributes; - - /** - * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. - * @param message ProjectAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributes; - - /** - * Verifies a ProjectAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributesUpdateRequest. */ - interface IProjectAttributesUpdateRequest { - - /** ProjectAttributesUpdateRequest attributes */ - attributes?: (flyteidl.admin.IProjectAttributes|null); - } - - /** Represents a ProjectAttributesUpdateRequest. */ - class ProjectAttributesUpdateRequest implements IProjectAttributesUpdateRequest { - - /** - * Constructs a new ProjectAttributesUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesUpdateRequest); - - /** ProjectAttributesUpdateRequest attributes. */ - public attributes?: (flyteidl.admin.IProjectAttributes|null); - - /** - * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesUpdateRequest): flyteidl.admin.ProjectAttributesUpdateRequest; - - /** - * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. - * @param message ProjectAttributesUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesUpdateRequest; - - /** - * Verifies a ProjectAttributesUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributesUpdateResponse. */ - interface IProjectAttributesUpdateResponse { - } - - /** Represents a ProjectAttributesUpdateResponse. */ - class ProjectAttributesUpdateResponse implements IProjectAttributesUpdateResponse { - - /** - * Constructs a new ProjectAttributesUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesUpdateResponse); - - /** - * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesUpdateResponse): flyteidl.admin.ProjectAttributesUpdateResponse; - - /** - * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. - * @param message ProjectAttributesUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesUpdateResponse; - - /** - * Verifies a ProjectAttributesUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributesGetRequest. */ - interface IProjectAttributesGetRequest { - - /** ProjectAttributesGetRequest project */ - project?: (string|null); - - /** ProjectAttributesGetRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** ProjectAttributesGetRequest org */ - org?: (string|null); - } - - /** Represents a ProjectAttributesGetRequest. */ - class ProjectAttributesGetRequest implements IProjectAttributesGetRequest { - - /** - * Constructs a new ProjectAttributesGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesGetRequest); - - /** ProjectAttributesGetRequest project. */ - public project: string; - - /** ProjectAttributesGetRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** ProjectAttributesGetRequest org. */ - public org: string; - - /** - * Creates a new ProjectAttributesGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesGetRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesGetRequest): flyteidl.admin.ProjectAttributesGetRequest; - - /** - * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. - * @param message ProjectAttributesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesGetRequest; - - /** - * Verifies a ProjectAttributesGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributesGetResponse. */ - interface IProjectAttributesGetResponse { - - /** ProjectAttributesGetResponse attributes */ - attributes?: (flyteidl.admin.IProjectAttributes|null); - } - - /** Represents a ProjectAttributesGetResponse. */ - class ProjectAttributesGetResponse implements IProjectAttributesGetResponse { - - /** - * Constructs a new ProjectAttributesGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesGetResponse); - - /** ProjectAttributesGetResponse attributes. */ - public attributes?: (flyteidl.admin.IProjectAttributes|null); - - /** - * Creates a new ProjectAttributesGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesGetResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesGetResponse): flyteidl.admin.ProjectAttributesGetResponse; - - /** - * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. - * @param message ProjectAttributesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesGetResponse; - - /** - * Verifies a ProjectAttributesGetResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributesDeleteRequest. */ - interface IProjectAttributesDeleteRequest { - - /** ProjectAttributesDeleteRequest project */ - project?: (string|null); - - /** ProjectAttributesDeleteRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** ProjectAttributesDeleteRequest org */ - org?: (string|null); - } - - /** Represents a ProjectAttributesDeleteRequest. */ - class ProjectAttributesDeleteRequest implements IProjectAttributesDeleteRequest { - - /** - * Constructs a new ProjectAttributesDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesDeleteRequest); - - /** ProjectAttributesDeleteRequest project. */ - public project: string; - - /** ProjectAttributesDeleteRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** ProjectAttributesDeleteRequest org. */ - public org: string; - - /** - * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesDeleteRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesDeleteRequest): flyteidl.admin.ProjectAttributesDeleteRequest; - - /** - * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. - * @param message ProjectAttributesDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesDeleteRequest; - - /** - * Verifies a ProjectAttributesDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectAttributesDeleteResponse. */ - interface IProjectAttributesDeleteResponse { - } - - /** Represents a ProjectAttributesDeleteResponse. */ - class ProjectAttributesDeleteResponse implements IProjectAttributesDeleteResponse { - - /** - * Constructs a new ProjectAttributesDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesDeleteResponse); - - /** - * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesDeleteResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesDeleteResponse): flyteidl.admin.ProjectAttributesDeleteResponse; - - /** - * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. - * @param message ProjectAttributesDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesDeleteResponse; - - /** - * Verifies a ProjectAttributesDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributes. */ - interface IProjectDomainAttributes { - - /** ProjectDomainAttributes project */ - project?: (string|null); - - /** ProjectDomainAttributes domain */ - domain?: (string|null); - - /** ProjectDomainAttributes matchingAttributes */ - matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** ProjectDomainAttributes org */ - org?: (string|null); - } - - /** Represents a ProjectDomainAttributes. */ - class ProjectDomainAttributes implements IProjectDomainAttributes { - - /** - * Constructs a new ProjectDomainAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributes); - - /** ProjectDomainAttributes project. */ - public project: string; - - /** ProjectDomainAttributes domain. */ - public domain: string; - - /** ProjectDomainAttributes matchingAttributes. */ - public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** ProjectDomainAttributes org. */ - public org: string; - - /** - * Creates a new ProjectDomainAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributes instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributes): flyteidl.admin.ProjectDomainAttributes; - - /** - * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. - * @param message ProjectDomainAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributes; - - /** - * Verifies a ProjectDomainAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributesUpdateRequest. */ - interface IProjectDomainAttributesUpdateRequest { - - /** ProjectDomainAttributesUpdateRequest attributes */ - attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - } - - /** Represents a ProjectDomainAttributesUpdateRequest. */ - class ProjectDomainAttributesUpdateRequest implements IProjectDomainAttributesUpdateRequest { - - /** - * Constructs a new ProjectDomainAttributesUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest); - - /** ProjectDomainAttributesUpdateRequest attributes. */ - public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - - /** - * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest): flyteidl.admin.ProjectDomainAttributesUpdateRequest; - - /** - * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. - * @param message ProjectDomainAttributesUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesUpdateRequest; - - /** - * Verifies a ProjectDomainAttributesUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributesUpdateResponse. */ - interface IProjectDomainAttributesUpdateResponse { - } - - /** Represents a ProjectDomainAttributesUpdateResponse. */ - class ProjectDomainAttributesUpdateResponse implements IProjectDomainAttributesUpdateResponse { - - /** - * Constructs a new ProjectDomainAttributesUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse); - - /** - * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse): flyteidl.admin.ProjectDomainAttributesUpdateResponse; - - /** - * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. - * @param message ProjectDomainAttributesUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesUpdateResponse; - - /** - * Verifies a ProjectDomainAttributesUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributesGetRequest. */ - interface IProjectDomainAttributesGetRequest { - - /** ProjectDomainAttributesGetRequest project */ - project?: (string|null); - - /** ProjectDomainAttributesGetRequest domain */ - domain?: (string|null); - - /** ProjectDomainAttributesGetRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** ProjectDomainAttributesGetRequest org */ - org?: (string|null); - } - - /** Represents a ProjectDomainAttributesGetRequest. */ - class ProjectDomainAttributesGetRequest implements IProjectDomainAttributesGetRequest { - - /** - * Constructs a new ProjectDomainAttributesGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest); - - /** ProjectDomainAttributesGetRequest project. */ - public project: string; - - /** ProjectDomainAttributesGetRequest domain. */ - public domain: string; - - /** ProjectDomainAttributesGetRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** ProjectDomainAttributesGetRequest org. */ - public org: string; - - /** - * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesGetRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest): flyteidl.admin.ProjectDomainAttributesGetRequest; - - /** - * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. - * @param message ProjectDomainAttributesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesGetRequest; - - /** - * Verifies a ProjectDomainAttributesGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributesGetResponse. */ - interface IProjectDomainAttributesGetResponse { - - /** ProjectDomainAttributesGetResponse attributes */ - attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - } - - /** Represents a ProjectDomainAttributesGetResponse. */ - class ProjectDomainAttributesGetResponse implements IProjectDomainAttributesGetResponse { - - /** - * Constructs a new ProjectDomainAttributesGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse); - - /** ProjectDomainAttributesGetResponse attributes. */ - public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - - /** - * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesGetResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse): flyteidl.admin.ProjectDomainAttributesGetResponse; - - /** - * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. - * @param message ProjectDomainAttributesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesGetResponse; - - /** - * Verifies a ProjectDomainAttributesGetResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributesDeleteRequest. */ - interface IProjectDomainAttributesDeleteRequest { - - /** ProjectDomainAttributesDeleteRequest project */ - project?: (string|null); - - /** ProjectDomainAttributesDeleteRequest domain */ - domain?: (string|null); - - /** ProjectDomainAttributesDeleteRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** ProjectDomainAttributesDeleteRequest org */ - org?: (string|null); - } - - /** Represents a ProjectDomainAttributesDeleteRequest. */ - class ProjectDomainAttributesDeleteRequest implements IProjectDomainAttributesDeleteRequest { - - /** - * Constructs a new ProjectDomainAttributesDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest); - - /** ProjectDomainAttributesDeleteRequest project. */ - public project: string; - - /** ProjectDomainAttributesDeleteRequest domain. */ - public domain: string; - - /** ProjectDomainAttributesDeleteRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** ProjectDomainAttributesDeleteRequest org. */ - public org: string; - - /** - * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesDeleteRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest): flyteidl.admin.ProjectDomainAttributesDeleteRequest; - - /** - * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. - * @param message ProjectDomainAttributesDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesDeleteRequest; - - /** - * Verifies a ProjectDomainAttributesDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ProjectDomainAttributesDeleteResponse. */ - interface IProjectDomainAttributesDeleteResponse { - } - - /** Represents a ProjectDomainAttributesDeleteResponse. */ - class ProjectDomainAttributesDeleteResponse implements IProjectDomainAttributesDeleteResponse { - - /** - * Constructs a new ProjectDomainAttributesDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse); - - /** - * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesDeleteResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse): flyteidl.admin.ProjectDomainAttributesDeleteResponse; - - /** - * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. - * @param message ProjectDomainAttributesDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesDeleteResponse; - - /** - * Verifies a ProjectDomainAttributesDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalGetOrCreateRequest. */ - interface ISignalGetOrCreateRequest { - - /** SignalGetOrCreateRequest id */ - id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalGetOrCreateRequest type */ - type?: (flyteidl.core.ILiteralType|null); - } - - /** Represents a SignalGetOrCreateRequest. */ - class SignalGetOrCreateRequest implements ISignalGetOrCreateRequest { - - /** - * Constructs a new SignalGetOrCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalGetOrCreateRequest); - - /** SignalGetOrCreateRequest id. */ - public id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalGetOrCreateRequest type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new SignalGetOrCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalGetOrCreateRequest instance - */ - public static create(properties?: flyteidl.admin.ISignalGetOrCreateRequest): flyteidl.admin.SignalGetOrCreateRequest; - - /** - * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. - * @param message SignalGetOrCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalGetOrCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalGetOrCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalGetOrCreateRequest; - - /** - * Verifies a SignalGetOrCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalListRequest. */ - interface ISignalListRequest { - - /** SignalListRequest workflowExecutionId */ - workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** SignalListRequest limit */ - limit?: (number|null); - - /** SignalListRequest token */ - token?: (string|null); - - /** SignalListRequest filters */ - filters?: (string|null); - - /** SignalListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a SignalListRequest. */ - class SignalListRequest implements ISignalListRequest { - - /** - * Constructs a new SignalListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalListRequest); - - /** SignalListRequest workflowExecutionId. */ - public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** SignalListRequest limit. */ - public limit: number; - - /** SignalListRequest token. */ - public token: string; - - /** SignalListRequest filters. */ - public filters: string; - - /** SignalListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new SignalListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalListRequest instance - */ - public static create(properties?: flyteidl.admin.ISignalListRequest): flyteidl.admin.SignalListRequest; - - /** - * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. - * @param message SignalListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalListRequest; - - /** - * Verifies a SignalListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalList. */ - interface ISignalList { - - /** SignalList signals */ - signals?: (flyteidl.admin.ISignal[]|null); - - /** SignalList token */ - token?: (string|null); - } - - /** Represents a SignalList. */ - class SignalList implements ISignalList { - - /** - * Constructs a new SignalList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalList); - - /** SignalList signals. */ - public signals: flyteidl.admin.ISignal[]; - - /** SignalList token. */ - public token: string; - - /** - * Creates a new SignalList instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalList instance - */ - public static create(properties?: flyteidl.admin.ISignalList): flyteidl.admin.SignalList; - - /** - * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. - * @param message SignalList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalList; - - /** - * Verifies a SignalList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalSetRequest. */ - interface ISignalSetRequest { - - /** SignalSetRequest id */ - id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalSetRequest value */ - value?: (flyteidl.core.ILiteral|null); - } - - /** Represents a SignalSetRequest. */ - class SignalSetRequest implements ISignalSetRequest { - - /** - * Constructs a new SignalSetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalSetRequest); - - /** SignalSetRequest id. */ - public id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalSetRequest value. */ - public value?: (flyteidl.core.ILiteral|null); - - /** - * Creates a new SignalSetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalSetRequest instance - */ - public static create(properties?: flyteidl.admin.ISignalSetRequest): flyteidl.admin.SignalSetRequest; - - /** - * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. - * @param message SignalSetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalSetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalSetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalSetRequest; - - /** - * Verifies a SignalSetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a SignalSetResponse. */ - interface ISignalSetResponse { - } - - /** Represents a SignalSetResponse. */ - class SignalSetResponse implements ISignalSetResponse { - - /** - * Constructs a new SignalSetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalSetResponse); - - /** - * Creates a new SignalSetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalSetResponse instance - */ - public static create(properties?: flyteidl.admin.ISignalSetResponse): flyteidl.admin.SignalSetResponse; - - /** - * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. - * @param message SignalSetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalSetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalSetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalSetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalSetResponse; - - /** - * Verifies a SignalSetResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Signal. */ - interface ISignal { - - /** Signal id */ - id?: (flyteidl.core.ISignalIdentifier|null); - - /** Signal type */ - type?: (flyteidl.core.ILiteralType|null); - - /** Signal value */ - value?: (flyteidl.core.ILiteral|null); - } - - /** Represents a Signal. */ - class Signal implements ISignal { - - /** - * Constructs a new Signal. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignal); - - /** Signal id. */ - public id?: (flyteidl.core.ISignalIdentifier|null); - - /** Signal type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** Signal value. */ - public value?: (flyteidl.core.ILiteral|null); - - /** - * Creates a new Signal instance using the specified properties. - * @param [properties] Properties to set - * @returns Signal instance - */ - public static create(properties?: flyteidl.admin.ISignal): flyteidl.admin.Signal; - - /** - * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. - * @param message Signal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignal, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Signal message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Signal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Signal; - - /** - * Verifies a Signal message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskCreateRequest. */ - interface ITaskCreateRequest { - - /** TaskCreateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** TaskCreateRequest spec */ - spec?: (flyteidl.admin.ITaskSpec|null); - } - - /** Represents a TaskCreateRequest. */ - class TaskCreateRequest implements ITaskCreateRequest { - - /** - * Constructs a new TaskCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskCreateRequest); - - /** TaskCreateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** TaskCreateRequest spec. */ - public spec?: (flyteidl.admin.ITaskSpec|null); - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskCreateRequest): flyteidl.admin.TaskCreateRequest; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. - * @param message TaskCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateRequest; - - /** - * Verifies a TaskCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskCreateResponse. */ - interface ITaskCreateResponse { - } - - /** Represents a TaskCreateResponse. */ - class TaskCreateResponse implements ITaskCreateResponse { - - /** - * Constructs a new TaskCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskCreateResponse); - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateResponse instance - */ - public static create(properties?: flyteidl.admin.ITaskCreateResponse): flyteidl.admin.TaskCreateResponse; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. - * @param message TaskCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateResponse; - - /** - * Verifies a TaskCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Task. */ - interface ITask { - - /** Task id */ - id?: (flyteidl.core.IIdentifier|null); - - /** Task closure */ - closure?: (flyteidl.admin.ITaskClosure|null); - - /** Task shortDescription */ - shortDescription?: (string|null); - } - - /** Represents a Task. */ - class Task implements ITask { - - /** - * Constructs a new Task. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITask); - - /** Task id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** Task closure. */ - public closure?: (flyteidl.admin.ITaskClosure|null); - - /** Task shortDescription. */ - public shortDescription: string; - - /** - * Creates a new Task instance using the specified properties. - * @param [properties] Properties to set - * @returns Task instance - */ - public static create(properties?: flyteidl.admin.ITask): flyteidl.admin.Task; - - /** - * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. - * @param message Task message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Task message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Task; - - /** - * Verifies a Task message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskList. */ - interface ITaskList { - - /** TaskList tasks */ - tasks?: (flyteidl.admin.ITask[]|null); - - /** TaskList token */ - token?: (string|null); - } - - /** Represents a TaskList. */ - class TaskList implements ITaskList { - - /** - * Constructs a new TaskList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskList); - - /** TaskList tasks. */ - public tasks: flyteidl.admin.ITask[]; - - /** TaskList token. */ - public token: string; - - /** - * Creates a new TaskList instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskList instance - */ - public static create(properties?: flyteidl.admin.ITaskList): flyteidl.admin.TaskList; - - /** - * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. - * @param message TaskList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskList; - - /** - * Verifies a TaskList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskSpec. */ - interface ITaskSpec { - - /** TaskSpec template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskSpec description */ - description?: (flyteidl.admin.IDescriptionEntity|null); - } - - /** Represents a TaskSpec. */ - class TaskSpec implements ITaskSpec { - - /** - * Constructs a new TaskSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskSpec); - - /** TaskSpec template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskSpec description. */ - public description?: (flyteidl.admin.IDescriptionEntity|null); - - /** - * Creates a new TaskSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskSpec instance - */ - public static create(properties?: flyteidl.admin.ITaskSpec): flyteidl.admin.TaskSpec; - - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. - * @param message TaskSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskSpec; - - /** - * Verifies a TaskSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskClosure. */ - interface ITaskClosure { - - /** TaskClosure compiledTask */ - compiledTask?: (flyteidl.core.ICompiledTask|null); - - /** TaskClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a TaskClosure. */ - class TaskClosure implements ITaskClosure { - - /** - * Constructs a new TaskClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskClosure); - - /** TaskClosure compiledTask. */ - public compiledTask?: (flyteidl.core.ICompiledTask|null); - - /** TaskClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new TaskClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskClosure instance - */ - public static create(properties?: flyteidl.admin.ITaskClosure): flyteidl.admin.TaskClosure; - - /** - * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. - * @param message TaskClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskClosure; - - /** - * Verifies a TaskClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionGetRequest. */ - interface ITaskExecutionGetRequest { - - /** TaskExecutionGetRequest id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a TaskExecutionGetRequest. */ - class TaskExecutionGetRequest implements ITaskExecutionGetRequest { - - /** - * Constructs a new TaskExecutionGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionGetRequest); - - /** TaskExecutionGetRequest id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** - * Creates a new TaskExecutionGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionGetRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionGetRequest): flyteidl.admin.TaskExecutionGetRequest; - - /** - * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. - * @param message TaskExecutionGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetRequest; - - /** - * Verifies a TaskExecutionGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionListRequest. */ - interface ITaskExecutionListRequest { - - /** TaskExecutionListRequest nodeExecutionId */ - nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionListRequest limit */ - limit?: (number|null); - - /** TaskExecutionListRequest token */ - token?: (string|null); - - /** TaskExecutionListRequest filters */ - filters?: (string|null); - - /** TaskExecutionListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a TaskExecutionListRequest. */ - class TaskExecutionListRequest implements ITaskExecutionListRequest { - - /** - * Constructs a new TaskExecutionListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionListRequest); - - /** TaskExecutionListRequest nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionListRequest limit. */ - public limit: number; - - /** TaskExecutionListRequest token. */ - public token: string; - - /** TaskExecutionListRequest filters. */ - public filters: string; - - /** TaskExecutionListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new TaskExecutionListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionListRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionListRequest): flyteidl.admin.TaskExecutionListRequest; - - /** - * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. - * @param message TaskExecutionListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionListRequest; - - /** - * Verifies a TaskExecutionListRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecution. */ - interface ITaskExecution { - - /** TaskExecution id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecution inputUri */ - inputUri?: (string|null); - - /** TaskExecution closure */ - closure?: (flyteidl.admin.ITaskExecutionClosure|null); - - /** TaskExecution isParent */ - isParent?: (boolean|null); - } - - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { - - /** - * Constructs a new TaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecution); - - /** TaskExecution id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecution inputUri. */ - public inputUri: string; - - /** TaskExecution closure. */ - public closure?: (flyteidl.admin.ITaskExecutionClosure|null); - - /** TaskExecution isParent. */ - public isParent: boolean; - - /** - * Creates a new TaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecution instance - */ - public static create(properties?: flyteidl.admin.ITaskExecution): flyteidl.admin.TaskExecution; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecution; - - /** - * Verifies a TaskExecution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionList. */ - interface ITaskExecutionList { - - /** TaskExecutionList taskExecutions */ - taskExecutions?: (flyteidl.admin.ITaskExecution[]|null); - - /** TaskExecutionList token */ - token?: (string|null); - } - - /** Represents a TaskExecutionList. */ - class TaskExecutionList implements ITaskExecutionList { - - /** - * Constructs a new TaskExecutionList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionList); - - /** TaskExecutionList taskExecutions. */ - public taskExecutions: flyteidl.admin.ITaskExecution[]; - - /** TaskExecutionList token. */ - public token: string; - - /** - * Creates a new TaskExecutionList instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionList instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionList): flyteidl.admin.TaskExecutionList; - - /** - * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. - * @param message TaskExecutionList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionList; - - /** - * Verifies a TaskExecutionList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionClosure. */ - interface ITaskExecutionClosure { - - /** TaskExecutionClosure outputUri */ - outputUri?: (string|null); - - /** TaskExecutionClosure error */ - error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionClosure outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionClosure phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - - /** TaskExecutionClosure logs */ - logs?: (flyteidl.core.ITaskLog[]|null); - - /** TaskExecutionClosure startedAt */ - startedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure duration */ - duration?: (google.protobuf.IDuration|null); - - /** TaskExecutionClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure customInfo */ - customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionClosure reason */ - reason?: (string|null); - - /** TaskExecutionClosure taskType */ - taskType?: (string|null); - - /** TaskExecutionClosure metadata */ - metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionClosure eventVersion */ - eventVersion?: (number|null); - - /** TaskExecutionClosure reasons */ - reasons?: (flyteidl.admin.IReason[]|null); - } - - /** Represents a TaskExecutionClosure. */ - class TaskExecutionClosure implements ITaskExecutionClosure { - - /** - * Constructs a new TaskExecutionClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionClosure); - - /** TaskExecutionClosure outputUri. */ - public outputUri: string; - - /** TaskExecutionClosure error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionClosure outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionClosure phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** TaskExecutionClosure logs. */ - public logs: flyteidl.core.ITaskLog[]; - - /** TaskExecutionClosure startedAt. */ - public startedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** TaskExecutionClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure customInfo. */ - public customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionClosure reason. */ - public reason: string; - - /** TaskExecutionClosure taskType. */ - public taskType: string; - - /** TaskExecutionClosure metadata. */ - public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionClosure eventVersion. */ - public eventVersion: number; - - /** TaskExecutionClosure reasons. */ - public reasons: flyteidl.admin.IReason[]; - - /** TaskExecutionClosure outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** - * Creates a new TaskExecutionClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionClosure instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionClosure): flyteidl.admin.TaskExecutionClosure; - - /** - * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. - * @param message TaskExecutionClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionClosure; - - /** - * Verifies a TaskExecutionClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Reason. */ - interface IReason { - - /** Reason occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** Reason message */ - message?: (string|null); - } - - /** Represents a Reason. */ - class Reason implements IReason { - - /** - * Constructs a new Reason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IReason); - - /** Reason occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** Reason message. */ - public message: string; - - /** - * Creates a new Reason instance using the specified properties. - * @param [properties] Properties to set - * @returns Reason instance - */ - public static create(properties?: flyteidl.admin.IReason): flyteidl.admin.Reason; - - /** - * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. - * @param message Reason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Reason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Reason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Reason; - - /** - * Verifies a Reason message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionGetDataRequest. */ - interface ITaskExecutionGetDataRequest { - - /** TaskExecutionGetDataRequest id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a TaskExecutionGetDataRequest. */ - class TaskExecutionGetDataRequest implements ITaskExecutionGetDataRequest { - - /** - * Constructs a new TaskExecutionGetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionGetDataRequest); - - /** TaskExecutionGetDataRequest id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** - * Creates a new TaskExecutionGetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionGetDataRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionGetDataRequest): flyteidl.admin.TaskExecutionGetDataRequest; - - /** - * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. - * @param message TaskExecutionGetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataRequest; - - /** - * Verifies a TaskExecutionGetDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskExecutionGetDataResponse. */ - interface ITaskExecutionGetDataResponse { - - /** TaskExecutionGetDataResponse inputs */ - inputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse outputs */ - outputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse fullInputs */ - fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse fullOutputs */ - fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse flyteUrls */ - flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - } - - /** Represents a TaskExecutionGetDataResponse. */ - class TaskExecutionGetDataResponse implements ITaskExecutionGetDataResponse { - - /** - * Constructs a new TaskExecutionGetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionGetDataResponse); - - /** TaskExecutionGetDataResponse inputs. */ - public inputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse outputs. */ - public outputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse fullInputs. */ - public fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse fullOutputs. */ - public fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse flyteUrls. */ - public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - - /** - * Creates a new TaskExecutionGetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionGetDataResponse instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionGetDataResponse): flyteidl.admin.TaskExecutionGetDataResponse; - - /** - * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. - * @param message TaskExecutionGetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataResponse; - - /** - * Verifies a TaskExecutionGetDataResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetVersionResponse. */ - interface IGetVersionResponse { - - /** GetVersionResponse controlPlaneVersion */ - controlPlaneVersion?: (flyteidl.admin.IVersion|null); - } - - /** Represents a GetVersionResponse. */ - class GetVersionResponse implements IGetVersionResponse { - - /** - * Constructs a new GetVersionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetVersionResponse); - - /** GetVersionResponse controlPlaneVersion. */ - public controlPlaneVersion?: (flyteidl.admin.IVersion|null); - - /** - * Creates a new GetVersionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionResponse instance - */ - public static create(properties?: flyteidl.admin.IGetVersionResponse): flyteidl.admin.GetVersionResponse; - - /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetVersionResponse; - - /** - * Verifies a GetVersionResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Version. */ - interface IVersion { - - /** Version Build */ - Build?: (string|null); - - /** Version Version */ - Version?: (string|null); - - /** Version BuildTime */ - BuildTime?: (string|null); - } - - /** Represents a Version. */ - class Version implements IVersion { - - /** - * Constructs a new Version. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IVersion); - - /** Version Build. */ - public Build: string; - - /** Version Version. */ - public Version: string; - - /** Version BuildTime. */ - public BuildTime: string; - - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: flyteidl.admin.IVersion): flyteidl.admin.Version; - - /** - * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Version message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Version; - - /** - * Verifies a Version message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetVersionRequest. */ - interface IGetVersionRequest { - } - - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { - - /** - * Constructs a new GetVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetVersionRequest); - - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionRequest instance - */ - public static create(properties?: flyteidl.admin.IGetVersionRequest): flyteidl.admin.GetVersionRequest; - - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetVersionRequest; - - /** - * Verifies a GetVersionRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowCreateRequest. */ - interface IWorkflowCreateRequest { - - /** WorkflowCreateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowCreateRequest spec */ - spec?: (flyteidl.admin.IWorkflowSpec|null); - } - - /** Represents a WorkflowCreateRequest. */ - class WorkflowCreateRequest implements IWorkflowCreateRequest { - - /** - * Constructs a new WorkflowCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowCreateRequest); - - /** WorkflowCreateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowCreateRequest spec. */ - public spec?: (flyteidl.admin.IWorkflowSpec|null); - - /** - * Creates a new WorkflowCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowCreateRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowCreateRequest): flyteidl.admin.WorkflowCreateRequest; - - /** - * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. - * @param message WorkflowCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateRequest; - - /** - * Verifies a WorkflowCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowCreateResponse. */ - interface IWorkflowCreateResponse { - } - - /** Represents a WorkflowCreateResponse. */ - class WorkflowCreateResponse implements IWorkflowCreateResponse { - - /** - * Constructs a new WorkflowCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowCreateResponse); - - /** - * Creates a new WorkflowCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowCreateResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowCreateResponse): flyteidl.admin.WorkflowCreateResponse; - - /** - * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. - * @param message WorkflowCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateResponse; - - /** - * Verifies a WorkflowCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Workflow. */ - interface IWorkflow { - - /** Workflow id */ - id?: (flyteidl.core.IIdentifier|null); - - /** Workflow closure */ - closure?: (flyteidl.admin.IWorkflowClosure|null); - - /** Workflow shortDescription */ - shortDescription?: (string|null); - } - - /** Represents a Workflow. */ - class Workflow implements IWorkflow { - - /** - * Constructs a new Workflow. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflow); - - /** Workflow id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** Workflow closure. */ - public closure?: (flyteidl.admin.IWorkflowClosure|null); - - /** Workflow shortDescription. */ - public shortDescription: string; - - /** - * Creates a new Workflow instance using the specified properties. - * @param [properties] Properties to set - * @returns Workflow instance - */ - public static create(properties?: flyteidl.admin.IWorkflow): flyteidl.admin.Workflow; - - /** - * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Workflow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Workflow; - - /** - * Verifies a Workflow message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowList. */ - interface IWorkflowList { - - /** WorkflowList workflows */ - workflows?: (flyteidl.admin.IWorkflow[]|null); - - /** WorkflowList token */ - token?: (string|null); - } - - /** Represents a WorkflowList. */ - class WorkflowList implements IWorkflowList { - - /** - * Constructs a new WorkflowList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowList); - - /** WorkflowList workflows. */ - public workflows: flyteidl.admin.IWorkflow[]; - - /** WorkflowList token. */ - public token: string; - - /** - * Creates a new WorkflowList instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowList instance - */ - public static create(properties?: flyteidl.admin.IWorkflowList): flyteidl.admin.WorkflowList; - - /** - * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. - * @param message WorkflowList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowList; - - /** - * Verifies a WorkflowList message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowSpec. */ - interface IWorkflowSpec { - - /** WorkflowSpec template */ - template?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowSpec subWorkflows */ - subWorkflows?: (flyteidl.core.IWorkflowTemplate[]|null); - - /** WorkflowSpec description */ - description?: (flyteidl.admin.IDescriptionEntity|null); - } - - /** Represents a WorkflowSpec. */ - class WorkflowSpec implements IWorkflowSpec { - - /** - * Constructs a new WorkflowSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowSpec); - - /** WorkflowSpec template. */ - public template?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowSpec subWorkflows. */ - public subWorkflows: flyteidl.core.IWorkflowTemplate[]; - - /** WorkflowSpec description. */ - public description?: (flyteidl.admin.IDescriptionEntity|null); - - /** - * Creates a new WorkflowSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowSpec instance - */ - public static create(properties?: flyteidl.admin.IWorkflowSpec): flyteidl.admin.WorkflowSpec; - - /** - * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. - * @param message WorkflowSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowSpec; - - /** - * Verifies a WorkflowSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowClosure. */ - interface IWorkflowClosure { - - /** WorkflowClosure compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** WorkflowClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a WorkflowClosure. */ - class WorkflowClosure implements IWorkflowClosure { - - /** - * Constructs a new WorkflowClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowClosure); - - /** WorkflowClosure compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** WorkflowClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowClosure instance - */ - public static create(properties?: flyteidl.admin.IWorkflowClosure): flyteidl.admin.WorkflowClosure; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. - * @param message WorkflowClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowClosure; - - /** - * Verifies a WorkflowClosure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowErrorExistsDifferentStructure. */ - interface IWorkflowErrorExistsDifferentStructure { - - /** WorkflowErrorExistsDifferentStructure id */ - id?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a WorkflowErrorExistsDifferentStructure. */ - class WorkflowErrorExistsDifferentStructure implements IWorkflowErrorExistsDifferentStructure { - - /** - * Constructs a new WorkflowErrorExistsDifferentStructure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure); - - /** WorkflowErrorExistsDifferentStructure id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowErrorExistsDifferentStructure instance - */ - public static create(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure): flyteidl.admin.WorkflowErrorExistsDifferentStructure; - - /** - * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. - * @param message WorkflowErrorExistsDifferentStructure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowErrorExistsDifferentStructure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowErrorExistsDifferentStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsDifferentStructure; - - /** - * Verifies a WorkflowErrorExistsDifferentStructure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowErrorExistsIdenticalStructure. */ - interface IWorkflowErrorExistsIdenticalStructure { - - /** WorkflowErrorExistsIdenticalStructure id */ - id?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a WorkflowErrorExistsIdenticalStructure. */ - class WorkflowErrorExistsIdenticalStructure implements IWorkflowErrorExistsIdenticalStructure { - - /** - * Constructs a new WorkflowErrorExistsIdenticalStructure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure); - - /** WorkflowErrorExistsIdenticalStructure id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowErrorExistsIdenticalStructure instance - */ - public static create(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; - - /** - * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. - * @param message WorkflowErrorExistsIdenticalStructure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowErrorExistsIdenticalStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; - - /** - * Verifies a WorkflowErrorExistsIdenticalStructure message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateWorkflowFailureReason. */ - interface ICreateWorkflowFailureReason { - - /** CreateWorkflowFailureReason existsDifferentStructure */ - existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); - - /** CreateWorkflowFailureReason existsIdenticalStructure */ - existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); - } - - /** Represents a CreateWorkflowFailureReason. */ - class CreateWorkflowFailureReason implements ICreateWorkflowFailureReason { - - /** - * Constructs a new CreateWorkflowFailureReason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICreateWorkflowFailureReason); - - /** CreateWorkflowFailureReason existsDifferentStructure. */ - public existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); - - /** CreateWorkflowFailureReason existsIdenticalStructure. */ - public existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); - - /** CreateWorkflowFailureReason reason. */ - public reason?: ("existsDifferentStructure"|"existsIdenticalStructure"); - - /** - * Creates a new CreateWorkflowFailureReason instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateWorkflowFailureReason instance - */ - public static create(properties?: flyteidl.admin.ICreateWorkflowFailureReason): flyteidl.admin.CreateWorkflowFailureReason; - - /** - * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. - * @param message CreateWorkflowFailureReason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICreateWorkflowFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateWorkflowFailureReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateWorkflowFailureReason; - - /** - * Verifies a CreateWorkflowFailureReason message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributes. */ - interface IWorkflowAttributes { - - /** WorkflowAttributes project */ - project?: (string|null); - - /** WorkflowAttributes domain */ - domain?: (string|null); - - /** WorkflowAttributes workflow */ - workflow?: (string|null); - - /** WorkflowAttributes matchingAttributes */ - matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** WorkflowAttributes org */ - org?: (string|null); - } - - /** Represents a WorkflowAttributes. */ - class WorkflowAttributes implements IWorkflowAttributes { - - /** - * Constructs a new WorkflowAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributes); - - /** WorkflowAttributes project. */ - public project: string; - - /** WorkflowAttributes domain. */ - public domain: string; - - /** WorkflowAttributes workflow. */ - public workflow: string; - - /** WorkflowAttributes matchingAttributes. */ - public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** WorkflowAttributes org. */ - public org: string; - - /** - * Creates a new WorkflowAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributes instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributes): flyteidl.admin.WorkflowAttributes; - - /** - * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. - * @param message WorkflowAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributes; - - /** - * Verifies a WorkflowAttributes message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributesUpdateRequest. */ - interface IWorkflowAttributesUpdateRequest { - - /** WorkflowAttributesUpdateRequest attributes */ - attributes?: (flyteidl.admin.IWorkflowAttributes|null); - } - - /** Represents a WorkflowAttributesUpdateRequest. */ - class WorkflowAttributesUpdateRequest implements IWorkflowAttributesUpdateRequest { - - /** - * Constructs a new WorkflowAttributesUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest); - - /** WorkflowAttributesUpdateRequest attributes. */ - public attributes?: (flyteidl.admin.IWorkflowAttributes|null); - - /** - * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest): flyteidl.admin.WorkflowAttributesUpdateRequest; - - /** - * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. - * @param message WorkflowAttributesUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesUpdateRequest; - - /** - * Verifies a WorkflowAttributesUpdateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributesUpdateResponse. */ - interface IWorkflowAttributesUpdateResponse { - } - - /** Represents a WorkflowAttributesUpdateResponse. */ - class WorkflowAttributesUpdateResponse implements IWorkflowAttributesUpdateResponse { - - /** - * Constructs a new WorkflowAttributesUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse); - - /** - * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse): flyteidl.admin.WorkflowAttributesUpdateResponse; - - /** - * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. - * @param message WorkflowAttributesUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesUpdateResponse; - - /** - * Verifies a WorkflowAttributesUpdateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributesGetRequest. */ - interface IWorkflowAttributesGetRequest { - - /** WorkflowAttributesGetRequest project */ - project?: (string|null); - - /** WorkflowAttributesGetRequest domain */ - domain?: (string|null); - - /** WorkflowAttributesGetRequest workflow */ - workflow?: (string|null); - - /** WorkflowAttributesGetRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** WorkflowAttributesGetRequest org */ - org?: (string|null); - } - - /** Represents a WorkflowAttributesGetRequest. */ - class WorkflowAttributesGetRequest implements IWorkflowAttributesGetRequest { - - /** - * Constructs a new WorkflowAttributesGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesGetRequest); - - /** WorkflowAttributesGetRequest project. */ - public project: string; - - /** WorkflowAttributesGetRequest domain. */ - public domain: string; - - /** WorkflowAttributesGetRequest workflow. */ - public workflow: string; - - /** WorkflowAttributesGetRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** WorkflowAttributesGetRequest org. */ - public org: string; - - /** - * Creates a new WorkflowAttributesGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesGetRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesGetRequest): flyteidl.admin.WorkflowAttributesGetRequest; - - /** - * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. - * @param message WorkflowAttributesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesGetRequest; - - /** - * Verifies a WorkflowAttributesGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributesGetResponse. */ - interface IWorkflowAttributesGetResponse { - - /** WorkflowAttributesGetResponse attributes */ - attributes?: (flyteidl.admin.IWorkflowAttributes|null); - } - - /** Represents a WorkflowAttributesGetResponse. */ - class WorkflowAttributesGetResponse implements IWorkflowAttributesGetResponse { - - /** - * Constructs a new WorkflowAttributesGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesGetResponse); - - /** WorkflowAttributesGetResponse attributes. */ - public attributes?: (flyteidl.admin.IWorkflowAttributes|null); - - /** - * Creates a new WorkflowAttributesGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesGetResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesGetResponse): flyteidl.admin.WorkflowAttributesGetResponse; - - /** - * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. - * @param message WorkflowAttributesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesGetResponse; - - /** - * Verifies a WorkflowAttributesGetResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributesDeleteRequest. */ - interface IWorkflowAttributesDeleteRequest { - - /** WorkflowAttributesDeleteRequest project */ - project?: (string|null); - - /** WorkflowAttributesDeleteRequest domain */ - domain?: (string|null); - - /** WorkflowAttributesDeleteRequest workflow */ - workflow?: (string|null); - - /** WorkflowAttributesDeleteRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - - /** WorkflowAttributesDeleteRequest org */ - org?: (string|null); - } - - /** Represents a WorkflowAttributesDeleteRequest. */ - class WorkflowAttributesDeleteRequest implements IWorkflowAttributesDeleteRequest { - - /** - * Constructs a new WorkflowAttributesDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest); - - /** WorkflowAttributesDeleteRequest project. */ - public project: string; - - /** WorkflowAttributesDeleteRequest domain. */ - public domain: string; - - /** WorkflowAttributesDeleteRequest workflow. */ - public workflow: string; - - /** WorkflowAttributesDeleteRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** WorkflowAttributesDeleteRequest org. */ - public org: string; - - /** - * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesDeleteRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest): flyteidl.admin.WorkflowAttributesDeleteRequest; - - /** - * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. - * @param message WorkflowAttributesDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesDeleteRequest; - - /** - * Verifies a WorkflowAttributesDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a WorkflowAttributesDeleteResponse. */ - interface IWorkflowAttributesDeleteResponse { - } - - /** Represents a WorkflowAttributesDeleteResponse. */ - class WorkflowAttributesDeleteResponse implements IWorkflowAttributesDeleteResponse { - - /** - * Constructs a new WorkflowAttributesDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse); - - /** - * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesDeleteResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse): flyteidl.admin.WorkflowAttributesDeleteResponse; - - /** - * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. - * @param message WorkflowAttributesDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesDeleteResponse; - - /** - * Verifies a WorkflowAttributesDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Namespace service. */ - namespace service { - - /** Represents an AdminService */ - class AdminService extends $protobuf.rpc.Service { - - /** - * Constructs a new AdminService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AdminService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AdminService; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskCreateResponse - */ - public createTask(request: flyteidl.admin.ITaskCreateRequest, callback: flyteidl.service.AdminService.CreateTaskCallback): void; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.admin.ITaskCreateRequest): Promise; - - /** - * Calls GetTask. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Task - */ - public getTask(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetTaskCallback): void; - - /** - * Calls GetTask. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls ListTaskIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - */ - public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListTaskIdsCallback): void; - - /** - * Calls ListTaskIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @returns Promise - */ - public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; - - /** - * Calls ListTasks. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskList - */ - public listTasks(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListTasksCallback): void; - - /** - * Calls ListTasks. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listTasks(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls CreateWorkflow. - * @param request WorkflowCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowCreateResponse - */ - public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest, callback: flyteidl.service.AdminService.CreateWorkflowCallback): void; - - /** - * Calls CreateWorkflow. - * @param request WorkflowCreateRequest message or plain object - * @returns Promise - */ - public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest): Promise; - - /** - * Calls GetWorkflow. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Workflow - */ - public getWorkflow(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetWorkflowCallback): void; - - /** - * Calls GetWorkflow. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getWorkflow(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls ListWorkflowIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - */ - public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListWorkflowIdsCallback): void; - - /** - * Calls ListWorkflowIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @returns Promise - */ - public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; - - /** - * Calls ListWorkflows. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowList - */ - public listWorkflows(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListWorkflowsCallback): void; - - /** - * Calls ListWorkflows. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listWorkflows(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls CreateLaunchPlan. - * @param request LaunchPlanCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse - */ - public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest, callback: flyteidl.service.AdminService.CreateLaunchPlanCallback): void; - - /** - * Calls CreateLaunchPlan. - * @param request LaunchPlanCreateRequest message or plain object - * @returns Promise - */ - public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest): Promise; - - /** - * Calls GetLaunchPlan. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlan - */ - public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetLaunchPlanCallback): void; - - /** - * Calls GetLaunchPlan. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls GetActiveLaunchPlan. - * @param request ActiveLaunchPlanRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlan - */ - public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest, callback: flyteidl.service.AdminService.GetActiveLaunchPlanCallback): void; - - /** - * Calls GetActiveLaunchPlan. - * @param request ActiveLaunchPlanRequest message or plain object - * @returns Promise - */ - public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest): Promise; - - /** - * Calls ListActiveLaunchPlans. - * @param request ActiveLaunchPlanListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanList - */ - public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest, callback: flyteidl.service.AdminService.ListActiveLaunchPlansCallback): void; - - /** - * Calls ListActiveLaunchPlans. - * @param request ActiveLaunchPlanListRequest message or plain object - * @returns Promise - */ - public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest): Promise; - - /** - * Calls ListLaunchPlanIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - */ - public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListLaunchPlanIdsCallback): void; - - /** - * Calls ListLaunchPlanIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @returns Promise - */ - public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; - - /** - * Calls ListLaunchPlans. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanList - */ - public listLaunchPlans(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListLaunchPlansCallback): void; - - /** - * Calls ListLaunchPlans. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listLaunchPlans(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls UpdateLaunchPlan. - * @param request LaunchPlanUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse - */ - public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest, callback: flyteidl.service.AdminService.UpdateLaunchPlanCallback): void; - - /** - * Calls UpdateLaunchPlan. - * @param request LaunchPlanUpdateRequest message or plain object - * @returns Promise - */ - public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest): Promise; - - /** - * Calls CreateExecution. - * @param request ExecutionCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse - */ - public createExecution(request: flyteidl.admin.IExecutionCreateRequest, callback: flyteidl.service.AdminService.CreateExecutionCallback): void; - - /** - * Calls CreateExecution. - * @param request ExecutionCreateRequest message or plain object - * @returns Promise - */ - public createExecution(request: flyteidl.admin.IExecutionCreateRequest): Promise; - - /** - * Calls RelaunchExecution. - * @param request ExecutionRelaunchRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse - */ - public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest, callback: flyteidl.service.AdminService.RelaunchExecutionCallback): void; - - /** - * Calls RelaunchExecution. - * @param request ExecutionRelaunchRequest message or plain object - * @returns Promise - */ - public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest): Promise; - - /** - * Calls RecoverExecution. - * @param request ExecutionRecoverRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse - */ - public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest, callback: flyteidl.service.AdminService.RecoverExecutionCallback): void; - - /** - * Calls RecoverExecution. - * @param request ExecutionRecoverRequest message or plain object - * @returns Promise - */ - public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest): Promise; - - /** - * Calls GetExecution. - * @param request WorkflowExecutionGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest, callback: flyteidl.service.AdminService.GetExecutionCallback): void; - - /** - * Calls GetExecution. - * @param request WorkflowExecutionGetRequest message or plain object - * @returns Promise - */ - public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest): Promise; - - /** - * Calls UpdateExecution. - * @param request ExecutionUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionUpdateResponse - */ - public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest, callback: flyteidl.service.AdminService.UpdateExecutionCallback): void; - - /** - * Calls UpdateExecution. - * @param request ExecutionUpdateRequest message or plain object - * @returns Promise - */ - public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest): Promise; - - /** - * Calls GetExecutionData. - * @param request WorkflowExecutionGetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse - */ - public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetExecutionDataCallback): void; - - /** - * Calls GetExecutionData. - * @param request WorkflowExecutionGetDataRequest message or plain object - * @returns Promise - */ - public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest): Promise; - - /** - * Calls ListExecutions. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionList - */ - public listExecutions(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListExecutionsCallback): void; - - /** - * Calls ListExecutions. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listExecutions(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls TerminateExecution. - * @param request ExecutionTerminateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionTerminateResponse - */ - public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest, callback: flyteidl.service.AdminService.TerminateExecutionCallback): void; - - /** - * Calls TerminateExecution. - * @param request ExecutionTerminateRequest message or plain object - * @returns Promise - */ - public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest): Promise; - - /** - * Calls GetNodeExecution. - * @param request NodeExecutionGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecution - */ - public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest, callback: flyteidl.service.AdminService.GetNodeExecutionCallback): void; - - /** - * Calls GetNodeExecution. - * @param request NodeExecutionGetRequest message or plain object - * @returns Promise - */ - public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest): Promise; - - /** - * Calls GetDynamicNodeWorkflow. - * @param request GetDynamicNodeWorkflowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DynamicNodeWorkflowResponse - */ - public getDynamicNodeWorkflow(request: flyteidl.admin.IGetDynamicNodeWorkflowRequest, callback: flyteidl.service.AdminService.GetDynamicNodeWorkflowCallback): void; - - /** - * Calls GetDynamicNodeWorkflow. - * @param request GetDynamicNodeWorkflowRequest message or plain object - * @returns Promise - */ - public getDynamicNodeWorkflow(request: flyteidl.admin.IGetDynamicNodeWorkflowRequest): Promise; - - /** - * Calls ListNodeExecutions. - * @param request NodeExecutionListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionList - */ - public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsCallback): void; - - /** - * Calls ListNodeExecutions. - * @param request NodeExecutionListRequest message or plain object - * @returns Promise - */ - public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest): Promise; - - /** - * Calls ListNodeExecutionsForTask. - * @param request NodeExecutionForTaskListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionList - */ - public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback): void; - - /** - * Calls ListNodeExecutionsForTask. - * @param request NodeExecutionForTaskListRequest message or plain object - * @returns Promise - */ - public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest): Promise; - - /** - * Calls GetNodeExecutionData. - * @param request NodeExecutionGetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse - */ - public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetNodeExecutionDataCallback): void; - - /** - * Calls GetNodeExecutionData. - * @param request NodeExecutionGetDataRequest message or plain object - * @returns Promise - */ - public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest): Promise; - - /** - * Calls RegisterProject. - * @param request ProjectRegisterRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectRegisterResponse - */ - public registerProject(request: flyteidl.admin.IProjectRegisterRequest, callback: flyteidl.service.AdminService.RegisterProjectCallback): void; - - /** - * Calls RegisterProject. - * @param request ProjectRegisterRequest message or plain object - * @returns Promise - */ - public registerProject(request: flyteidl.admin.IProjectRegisterRequest): Promise; - - /** - * Calls UpdateProject. - * @param request Project message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectUpdateResponse - */ - public updateProject(request: flyteidl.admin.IProject, callback: flyteidl.service.AdminService.UpdateProjectCallback): void; - - /** - * Calls UpdateProject. - * @param request Project message or plain object - * @returns Promise - */ - public updateProject(request: flyteidl.admin.IProject): Promise; - - /** - * Calls ListProjects. - * @param request ProjectListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Projects - */ - public listProjects(request: flyteidl.admin.IProjectListRequest, callback: flyteidl.service.AdminService.ListProjectsCallback): void; - - /** - * Calls ListProjects. - * @param request ProjectListRequest message or plain object - * @returns Promise - */ - public listProjects(request: flyteidl.admin.IProjectListRequest): Promise; - - /** - * Calls CreateWorkflowEvent. - * @param request WorkflowExecutionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse - */ - public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest, callback: flyteidl.service.AdminService.CreateWorkflowEventCallback): void; - - /** - * Calls CreateWorkflowEvent. - * @param request WorkflowExecutionEventRequest message or plain object - * @returns Promise - */ - public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest): Promise; - - /** - * Calls CreateNodeEvent. - * @param request NodeExecutionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionEventResponse - */ - public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest, callback: flyteidl.service.AdminService.CreateNodeEventCallback): void; - - /** - * Calls CreateNodeEvent. - * @param request NodeExecutionEventRequest message or plain object - * @returns Promise - */ - public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest): Promise; - - /** - * Calls CreateTaskEvent. - * @param request TaskExecutionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecutionEventResponse - */ - public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest, callback: flyteidl.service.AdminService.CreateTaskEventCallback): void; - - /** - * Calls CreateTaskEvent. - * @param request TaskExecutionEventRequest message or plain object - * @returns Promise - */ - public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest): Promise; - - /** - * Calls GetTaskExecution. - * @param request TaskExecutionGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecution - */ - public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest, callback: flyteidl.service.AdminService.GetTaskExecutionCallback): void; - - /** - * Calls GetTaskExecution. - * @param request TaskExecutionGetRequest message or plain object - * @returns Promise - */ - public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest): Promise; - - /** - * Calls ListTaskExecutions. - * @param request TaskExecutionListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecutionList - */ - public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest, callback: flyteidl.service.AdminService.ListTaskExecutionsCallback): void; - - /** - * Calls ListTaskExecutions. - * @param request TaskExecutionListRequest message or plain object - * @returns Promise - */ - public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest): Promise; - - /** - * Calls GetTaskExecutionData. - * @param request TaskExecutionGetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse - */ - public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetTaskExecutionDataCallback): void; - - /** - * Calls GetTaskExecutionData. - * @param request TaskExecutionGetDataRequest message or plain object - * @returns Promise - */ - public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest): Promise; - - /** - * Calls UpdateProjectDomainAttributes. - * @param request ProjectDomainAttributesUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse - */ - public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback): void; - - /** - * Calls UpdateProjectDomainAttributes. - * @param request ProjectDomainAttributesUpdateRequest message or plain object - * @returns Promise - */ - public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest): Promise; - - /** - * Calls GetProjectDomainAttributes. - * @param request ProjectDomainAttributesGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse - */ - public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectDomainAttributesCallback): void; - - /** - * Calls GetProjectDomainAttributes. - * @param request ProjectDomainAttributesGetRequest message or plain object - * @returns Promise - */ - public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest): Promise; - - /** - * Calls DeleteProjectDomainAttributes. - * @param request ProjectDomainAttributesDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse - */ - public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback): void; - - /** - * Calls DeleteProjectDomainAttributes. - * @param request ProjectDomainAttributesDeleteRequest message or plain object - * @returns Promise - */ - public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest): Promise; - - /** - * Calls UpdateProjectAttributes. - * @param request ProjectAttributesUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse - */ - public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectAttributesCallback): void; - - /** - * Calls UpdateProjectAttributes. - * @param request ProjectAttributesUpdateRequest message or plain object - * @returns Promise - */ - public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest): Promise; - - /** - * Calls GetProjectAttributes. - * @param request ProjectAttributesGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse - */ - public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectAttributesCallback): void; - - /** - * Calls GetProjectAttributes. - * @param request ProjectAttributesGetRequest message or plain object - * @returns Promise - */ - public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest): Promise; - - /** - * Calls DeleteProjectAttributes. - * @param request ProjectAttributesDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse - */ - public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectAttributesCallback): void; - - /** - * Calls DeleteProjectAttributes. - * @param request ProjectAttributesDeleteRequest message or plain object - * @returns Promise - */ - public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest): Promise; - - /** - * Calls UpdateWorkflowAttributes. - * @param request WorkflowAttributesUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse - */ - public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateWorkflowAttributesCallback): void; - - /** - * Calls UpdateWorkflowAttributes. - * @param request WorkflowAttributesUpdateRequest message or plain object - * @returns Promise - */ - public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest): Promise; - - /** - * Calls GetWorkflowAttributes. - * @param request WorkflowAttributesGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse - */ - public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest, callback: flyteidl.service.AdminService.GetWorkflowAttributesCallback): void; - - /** - * Calls GetWorkflowAttributes. - * @param request WorkflowAttributesGetRequest message or plain object - * @returns Promise - */ - public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest): Promise; - - /** - * Calls DeleteWorkflowAttributes. - * @param request WorkflowAttributesDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse - */ - public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteWorkflowAttributesCallback): void; - - /** - * Calls DeleteWorkflowAttributes. - * @param request WorkflowAttributesDeleteRequest message or plain object - * @returns Promise - */ - public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest): Promise; - - /** - * Calls ListMatchableAttributes. - * @param request ListMatchableAttributesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse - */ - public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest, callback: flyteidl.service.AdminService.ListMatchableAttributesCallback): void; - - /** - * Calls ListMatchableAttributes. - * @param request ListMatchableAttributesRequest message or plain object - * @returns Promise - */ - public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest): Promise; - - /** - * Calls ListNamedEntities. - * @param request NamedEntityListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityList - */ - public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest, callback: flyteidl.service.AdminService.ListNamedEntitiesCallback): void; - - /** - * Calls ListNamedEntities. - * @param request NamedEntityListRequest message or plain object - * @returns Promise - */ - public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest): Promise; - - /** - * Calls GetNamedEntity. - * @param request NamedEntityGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntity - */ - public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest, callback: flyteidl.service.AdminService.GetNamedEntityCallback): void; - - /** - * Calls GetNamedEntity. - * @param request NamedEntityGetRequest message or plain object - * @returns Promise - */ - public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest): Promise; - - /** - * Calls UpdateNamedEntity. - * @param request NamedEntityUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse - */ - public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest, callback: flyteidl.service.AdminService.UpdateNamedEntityCallback): void; - - /** - * Calls UpdateNamedEntity. - * @param request NamedEntityUpdateRequest message or plain object - * @returns Promise - */ - public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest): Promise; - - /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetVersionResponse - */ - public getVersion(request: flyteidl.admin.IGetVersionRequest, callback: flyteidl.service.AdminService.GetVersionCallback): void; - - /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @returns Promise - */ - public getVersion(request: flyteidl.admin.IGetVersionRequest): Promise; - - /** - * Calls GetDescriptionEntity. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DescriptionEntity - */ - public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetDescriptionEntityCallback): void; - - /** - * Calls GetDescriptionEntity. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls ListDescriptionEntities. - * @param request DescriptionEntityListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DescriptionEntityList - */ - public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest, callback: flyteidl.service.AdminService.ListDescriptionEntitiesCallback): void; - - /** - * Calls ListDescriptionEntities. - * @param request DescriptionEntityListRequest message or plain object - * @returns Promise - */ - public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest): Promise; - - /** - * Calls GetExecutionMetrics. - * @param request WorkflowExecutionGetMetricsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse - */ - public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, callback: flyteidl.service.AdminService.GetExecutionMetricsCallback): void; - - /** - * Calls GetExecutionMetrics. - * @param request WorkflowExecutionGetMetricsRequest message or plain object - * @returns Promise - */ - public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): Promise; - } - - namespace AdminService { - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTask}. - * @param error Error, if any - * @param [response] TaskCreateResponse - */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.TaskCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTask}. - * @param error Error, if any - * @param [response] Task - */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.Task) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. - * @param error Error, if any - * @param [response] NamedEntityIdentifierList - */ - type ListTaskIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTasks}. - * @param error Error, if any - * @param [response] TaskList - */ - type ListTasksCallback = (error: (Error|null), response?: flyteidl.admin.TaskList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. - * @param error Error, if any - * @param [response] WorkflowCreateResponse - */ - type CreateWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. - * @param error Error, if any - * @param [response] Workflow - */ - type GetWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.Workflow) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. - * @param error Error, if any - * @param [response] NamedEntityIdentifierList - */ - type ListWorkflowIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. - * @param error Error, if any - * @param [response] WorkflowList - */ - type ListWorkflowsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlanCreateResponse - */ - type CreateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlan - */ - type GetLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlan - */ - type GetActiveLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. - * @param error Error, if any - * @param [response] LaunchPlanList - */ - type ListActiveLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. - * @param error Error, if any - * @param [response] NamedEntityIdentifierList - */ - type ListLaunchPlanIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. - * @param error Error, if any - * @param [response] LaunchPlanList - */ - type ListLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlanUpdateResponse - */ - type UpdateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createExecution}. - * @param error Error, if any - * @param [response] ExecutionCreateResponse - */ - type CreateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. - * @param error Error, if any - * @param [response] ExecutionCreateResponse - */ - type RelaunchExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. - * @param error Error, if any - * @param [response] ExecutionCreateResponse - */ - type RecoverExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type GetExecutionCallback = (error: (Error|null), response?: flyteidl.admin.Execution) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. - * @param error Error, if any - * @param [response] ExecutionUpdateResponse - */ - type UpdateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. - * @param error Error, if any - * @param [response] WorkflowExecutionGetDataResponse - */ - type GetExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetDataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. - * @param error Error, if any - * @param [response] ExecutionList - */ - type ListExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. - * @param error Error, if any - * @param [response] ExecutionTerminateResponse - */ - type TerminateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionTerminateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. - * @param error Error, if any - * @param [response] NodeExecution - */ - type GetNodeExecutionCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecution) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getDynamicNodeWorkflow}. - * @param error Error, if any - * @param [response] DynamicNodeWorkflowResponse - */ - type GetDynamicNodeWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.DynamicNodeWorkflowResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. - * @param error Error, if any - * @param [response] NodeExecutionList - */ - type ListNodeExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. - * @param error Error, if any - * @param [response] NodeExecutionList - */ - type ListNodeExecutionsForTaskCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. - * @param error Error, if any - * @param [response] NodeExecutionGetDataResponse - */ - type GetNodeExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionGetDataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#registerProject}. - * @param error Error, if any - * @param [response] ProjectRegisterResponse - */ - type RegisterProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectRegisterResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProject}. - * @param error Error, if any - * @param [response] ProjectUpdateResponse - */ - type UpdateProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listProjects}. - * @param error Error, if any - * @param [response] Projects - */ - type ListProjectsCallback = (error: (Error|null), response?: flyteidl.admin.Projects) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. - * @param error Error, if any - * @param [response] WorkflowExecutionEventResponse - */ - type CreateWorkflowEventCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionEventResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. - * @param error Error, if any - * @param [response] NodeExecutionEventResponse - */ - type CreateNodeEventCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionEventResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. - * @param error Error, if any - * @param [response] TaskExecutionEventResponse - */ - type CreateTaskEventCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionEventResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. - * @param error Error, if any - * @param [response] TaskExecution - */ - type GetTaskExecutionCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecution) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. - * @param error Error, if any - * @param [response] TaskExecutionList - */ - type ListTaskExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. - * @param error Error, if any - * @param [response] TaskExecutionGetDataResponse - */ - type GetTaskExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionGetDataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. - * @param error Error, if any - * @param [response] ProjectDomainAttributesUpdateResponse - */ - type UpdateProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. - * @param error Error, if any - * @param [response] ProjectDomainAttributesGetResponse - */ - type GetProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. - * @param error Error, if any - * @param [response] ProjectDomainAttributesDeleteResponse - */ - type DeleteProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesDeleteResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. - * @param error Error, if any - * @param [response] ProjectAttributesUpdateResponse - */ - type UpdateProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. - * @param error Error, if any - * @param [response] ProjectAttributesGetResponse - */ - type GetProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. - * @param error Error, if any - * @param [response] ProjectAttributesDeleteResponse - */ - type DeleteProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesDeleteResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. - * @param error Error, if any - * @param [response] WorkflowAttributesUpdateResponse - */ - type UpdateWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. - * @param error Error, if any - * @param [response] WorkflowAttributesGetResponse - */ - type GetWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. - * @param error Error, if any - * @param [response] WorkflowAttributesDeleteResponse - */ - type DeleteWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesDeleteResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. - * @param error Error, if any - * @param [response] ListMatchableAttributesResponse - */ - type ListMatchableAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ListMatchableAttributesResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. - * @param error Error, if any - * @param [response] NamedEntityList - */ - type ListNamedEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. - * @param error Error, if any - * @param [response] NamedEntity - */ - type GetNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntity) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. - * @param error Error, if any - * @param [response] NamedEntityUpdateResponse - */ - type UpdateNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getVersion}. - * @param error Error, if any - * @param [response] GetVersionResponse - */ - type GetVersionCallback = (error: (Error|null), response?: flyteidl.admin.GetVersionResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. - * @param error Error, if any - * @param [response] DescriptionEntity - */ - type GetDescriptionEntityCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntity) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. - * @param error Error, if any - * @param [response] DescriptionEntityList - */ - type ListDescriptionEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntityList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. - * @param error Error, if any - * @param [response] WorkflowExecutionGetMetricsResponse - */ - type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; - } - - /** Represents a SyncAgentService */ - class SyncAgentService extends $protobuf.rpc.Service { - - /** - * Constructs a new SyncAgentService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new SyncAgentService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SyncAgentService; - - /** - * Calls ExecuteTaskSync. - * @param request ExecuteTaskSyncRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse - */ - public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest, callback: flyteidl.service.SyncAgentService.ExecuteTaskSyncCallback): void; - - /** - * Calls ExecuteTaskSync. - * @param request ExecuteTaskSyncRequest message or plain object - * @returns Promise - */ - public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest): Promise; - } - - namespace SyncAgentService { - - /** - * Callback as used by {@link flyteidl.service.SyncAgentService#executeTaskSync}. - * @param error Error, if any - * @param [response] ExecuteTaskSyncResponse - */ - type ExecuteTaskSyncCallback = (error: (Error|null), response?: flyteidl.admin.ExecuteTaskSyncResponse) => void; - } - - /** Represents an AsyncAgentService */ - class AsyncAgentService extends $protobuf.rpc.Service { - - /** - * Constructs a new AsyncAgentService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AsyncAgentService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; - - /** - * Calls CreateTask. - * @param request CreateTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateTaskResponse - */ - public createTask(request: flyteidl.admin.ICreateTaskRequest, callback: flyteidl.service.AsyncAgentService.CreateTaskCallback): void; - - /** - * Calls CreateTask. - * @param request CreateTaskRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.admin.ICreateTaskRequest): Promise; - - /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetTaskResponse - */ - public getTask(request: flyteidl.admin.IGetTaskRequest, callback: flyteidl.service.AsyncAgentService.GetTaskCallback): void; - - /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.admin.IGetTaskRequest): Promise; - - /** - * Calls DeleteTask. - * @param request DeleteTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteTaskResponse - */ - public deleteTask(request: flyteidl.admin.IDeleteTaskRequest, callback: flyteidl.service.AsyncAgentService.DeleteTaskCallback): void; - - /** - * Calls DeleteTask. - * @param request DeleteTaskRequest message or plain object - * @returns Promise - */ - public deleteTask(request: flyteidl.admin.IDeleteTaskRequest): Promise; - - /** - * Calls GetTaskMetrics. - * @param request GetTaskMetricsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetTaskMetricsResponse - */ - public getTaskMetrics(request: flyteidl.admin.IGetTaskMetricsRequest, callback: flyteidl.service.AsyncAgentService.GetTaskMetricsCallback): void; - - /** - * Calls GetTaskMetrics. - * @param request GetTaskMetricsRequest message or plain object - * @returns Promise - */ - public getTaskMetrics(request: flyteidl.admin.IGetTaskMetricsRequest): Promise; - - /** - * Calls GetTaskLogs. - * @param request GetTaskLogsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetTaskLogsResponse - */ - public getTaskLogs(request: flyteidl.admin.IGetTaskLogsRequest, callback: flyteidl.service.AsyncAgentService.GetTaskLogsCallback): void; - - /** - * Calls GetTaskLogs. - * @param request GetTaskLogsRequest message or plain object - * @returns Promise - */ - public getTaskLogs(request: flyteidl.admin.IGetTaskLogsRequest): Promise; - } - - namespace AsyncAgentService { - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. - * @param error Error, if any - * @param [response] CreateTaskResponse - */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.CreateTaskResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. - * @param error Error, if any - * @param [response] GetTaskResponse - */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. - * @param error Error, if any - * @param [response] DeleteTaskResponse - */ - type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.admin.DeleteTaskResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskMetrics}. - * @param error Error, if any - * @param [response] GetTaskMetricsResponse - */ - type GetTaskMetricsCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskMetricsResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskLogs}. - * @param error Error, if any - * @param [response] GetTaskLogsResponse - */ - type GetTaskLogsCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskLogsResponse) => void; - } - - /** Represents an AgentMetadataService */ - class AgentMetadataService extends $protobuf.rpc.Service { - - /** - * Constructs a new AgentMetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AgentMetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AgentMetadataService; - - /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAgentResponse - */ - public getAgent(request: flyteidl.admin.IGetAgentRequest, callback: flyteidl.service.AgentMetadataService.GetAgentCallback): void; - - /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @returns Promise - */ - public getAgent(request: flyteidl.admin.IGetAgentRequest): Promise; - - /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAgentsResponse - */ - public listAgents(request: flyteidl.admin.IListAgentsRequest, callback: flyteidl.service.AgentMetadataService.ListAgentsCallback): void; - - /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @returns Promise - */ - public listAgents(request: flyteidl.admin.IListAgentsRequest): Promise; - } - - namespace AgentMetadataService { - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#getAgent}. - * @param error Error, if any - * @param [response] GetAgentResponse - */ - type GetAgentCallback = (error: (Error|null), response?: flyteidl.admin.GetAgentResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#listAgents}. - * @param error Error, if any - * @param [response] ListAgentsResponse - */ - type ListAgentsCallback = (error: (Error|null), response?: flyteidl.admin.ListAgentsResponse) => void; - } - - /** Properties of a OAuth2MetadataRequest. */ - interface IOAuth2MetadataRequest { - } - - /** Represents a OAuth2MetadataRequest. */ - class OAuth2MetadataRequest implements IOAuth2MetadataRequest { - - /** - * Constructs a new OAuth2MetadataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); - - /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2MetadataRequest instance - */ - public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; - - /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. - * @param message OAuth2MetadataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2MetadataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataRequest; - - /** - * Verifies a OAuth2MetadataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a OAuth2MetadataResponse. */ - interface IOAuth2MetadataResponse { - - /** OAuth2MetadataResponse issuer */ - issuer?: (string|null); - - /** OAuth2MetadataResponse authorizationEndpoint */ - authorizationEndpoint?: (string|null); - - /** OAuth2MetadataResponse tokenEndpoint */ - tokenEndpoint?: (string|null); - - /** OAuth2MetadataResponse responseTypesSupported */ - responseTypesSupported?: (string[]|null); - - /** OAuth2MetadataResponse scopesSupported */ - scopesSupported?: (string[]|null); - - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ - tokenEndpointAuthMethodsSupported?: (string[]|null); - - /** OAuth2MetadataResponse jwksUri */ - jwksUri?: (string|null); - - /** OAuth2MetadataResponse codeChallengeMethodsSupported */ - codeChallengeMethodsSupported?: (string[]|null); - - /** OAuth2MetadataResponse grantTypesSupported */ - grantTypesSupported?: (string[]|null); - - /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ - deviceAuthorizationEndpoint?: (string|null); - } - - /** Represents a OAuth2MetadataResponse. */ - class OAuth2MetadataResponse implements IOAuth2MetadataResponse { - - /** - * Constructs a new OAuth2MetadataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); - - /** OAuth2MetadataResponse issuer. */ - public issuer: string; - - /** OAuth2MetadataResponse authorizationEndpoint. */ - public authorizationEndpoint: string; - - /** OAuth2MetadataResponse tokenEndpoint. */ - public tokenEndpoint: string; - - /** OAuth2MetadataResponse responseTypesSupported. */ - public responseTypesSupported: string[]; - - /** OAuth2MetadataResponse scopesSupported. */ - public scopesSupported: string[]; - - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. */ - public tokenEndpointAuthMethodsSupported: string[]; - - /** OAuth2MetadataResponse jwksUri. */ - public jwksUri: string; - - /** OAuth2MetadataResponse codeChallengeMethodsSupported. */ - public codeChallengeMethodsSupported: string[]; - - /** OAuth2MetadataResponse grantTypesSupported. */ - public grantTypesSupported: string[]; - - /** OAuth2MetadataResponse deviceAuthorizationEndpoint. */ - public deviceAuthorizationEndpoint: string; - - /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2MetadataResponse instance - */ - public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; - - /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. - * @param message OAuth2MetadataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2MetadataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataResponse; - - /** - * Verifies a OAuth2MetadataResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a PublicClientAuthConfigRequest. */ - interface IPublicClientAuthConfigRequest { - } - - /** Represents a PublicClientAuthConfigRequest. */ - class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { - - /** - * Constructs a new PublicClientAuthConfigRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); - - /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PublicClientAuthConfigRequest instance - */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; - - /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. - * @param message PublicClientAuthConfigRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PublicClientAuthConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigRequest; - - /** - * Verifies a PublicClientAuthConfigRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a PublicClientAuthConfigResponse. */ - interface IPublicClientAuthConfigResponse { - - /** PublicClientAuthConfigResponse clientId */ - clientId?: (string|null); - - /** PublicClientAuthConfigResponse redirectUri */ - redirectUri?: (string|null); - - /** PublicClientAuthConfigResponse scopes */ - scopes?: (string[]|null); - - /** PublicClientAuthConfigResponse authorizationMetadataKey */ - authorizationMetadataKey?: (string|null); - - /** PublicClientAuthConfigResponse serviceHttpEndpoint */ - serviceHttpEndpoint?: (string|null); - - /** PublicClientAuthConfigResponse audience */ - audience?: (string|null); - } - - /** Represents a PublicClientAuthConfigResponse. */ - class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { - - /** - * Constructs a new PublicClientAuthConfigResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); - - /** PublicClientAuthConfigResponse clientId. */ - public clientId: string; - - /** PublicClientAuthConfigResponse redirectUri. */ - public redirectUri: string; - - /** PublicClientAuthConfigResponse scopes. */ - public scopes: string[]; - - /** PublicClientAuthConfigResponse authorizationMetadataKey. */ - public authorizationMetadataKey: string; - - /** PublicClientAuthConfigResponse serviceHttpEndpoint. */ - public serviceHttpEndpoint: string; - - /** PublicClientAuthConfigResponse audience. */ - public audience: string; - - /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PublicClientAuthConfigResponse instance - */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; - - /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. - * @param message PublicClientAuthConfigResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PublicClientAuthConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigResponse; - - /** - * Verifies a PublicClientAuthConfigResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Represents an AuthMetadataService */ - class AuthMetadataService extends $protobuf.rpc.Service { - - /** - * Constructs a new AuthMetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AuthMetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthMetadataService; - - /** - * Calls GetOAuth2Metadata. - * @param request OAuth2MetadataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and OAuth2MetadataResponse - */ - public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest, callback: flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback): void; - - /** - * Calls GetOAuth2Metadata. - * @param request OAuth2MetadataRequest message or plain object - * @returns Promise - */ - public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; - - /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse - */ - public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; - - /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @returns Promise - */ - public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; - } - - namespace AuthMetadataService { - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @param error Error, if any - * @param [response] OAuth2MetadataResponse - */ - type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @param error Error, if any - * @param [response] PublicClientAuthConfigResponse - */ - type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; - } - - /** Properties of a CreateUploadLocationResponse. */ - interface ICreateUploadLocationResponse { - - /** CreateUploadLocationResponse signedUrl */ - signedUrl?: (string|null); - - /** CreateUploadLocationResponse nativeUrl */ - nativeUrl?: (string|null); - - /** CreateUploadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a CreateUploadLocationResponse. */ - class CreateUploadLocationResponse implements ICreateUploadLocationResponse { - - /** - * Constructs a new CreateUploadLocationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); - - /** CreateUploadLocationResponse signedUrl. */ - public signedUrl: string; - - /** CreateUploadLocationResponse nativeUrl. */ - public nativeUrl: string; - - /** CreateUploadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateUploadLocationResponse instance - */ - public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; - - /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. - * @param message CreateUploadLocationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateUploadLocationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse; - - /** - * Verifies a CreateUploadLocationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateUploadLocationRequest. */ - interface ICreateUploadLocationRequest { - - /** CreateUploadLocationRequest project */ - project?: (string|null); - - /** CreateUploadLocationRequest domain */ - domain?: (string|null); - - /** CreateUploadLocationRequest filename */ - filename?: (string|null); - - /** CreateUploadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - - /** CreateUploadLocationRequest contentMd5 */ - contentMd5?: (Uint8Array|null); - - /** CreateUploadLocationRequest filenameRoot */ - filenameRoot?: (string|null); - } - - /** Represents a CreateUploadLocationRequest. */ - class CreateUploadLocationRequest implements ICreateUploadLocationRequest { - - /** - * Constructs a new CreateUploadLocationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); - - /** CreateUploadLocationRequest project. */ - public project: string; - - /** CreateUploadLocationRequest domain. */ - public domain: string; - - /** CreateUploadLocationRequest filename. */ - public filename: string; - - /** CreateUploadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** CreateUploadLocationRequest contentMd5. */ - public contentMd5: Uint8Array; - - /** CreateUploadLocationRequest filenameRoot. */ - public filenameRoot: string; - - /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateUploadLocationRequest instance - */ - public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; - - /** - * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. - * @param message CreateUploadLocationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateUploadLocationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest; - - /** - * Verifies a CreateUploadLocationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateDownloadLocationRequest. */ - interface ICreateDownloadLocationRequest { - - /** CreateDownloadLocationRequest nativeUrl */ - nativeUrl?: (string|null); - - /** CreateDownloadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - } - - /** Represents a CreateDownloadLocationRequest. */ - class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { - - /** - * Constructs a new CreateDownloadLocationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); - - /** CreateDownloadLocationRequest nativeUrl. */ - public nativeUrl: string; - - /** CreateDownloadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** - * Creates a new CreateDownloadLocationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLocationRequest instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; - - /** - * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. - * @param message CreateDownloadLocationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLocationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationRequest; - - /** - * Verifies a CreateDownloadLocationRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateDownloadLocationResponse. */ - interface ICreateDownloadLocationResponse { - - /** CreateDownloadLocationResponse signedUrl */ - signedUrl?: (string|null); - - /** CreateDownloadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a CreateDownloadLocationResponse. */ - class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { - - /** - * Constructs a new CreateDownloadLocationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); - - /** CreateDownloadLocationResponse signedUrl. */ - public signedUrl: string; - - /** CreateDownloadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new CreateDownloadLocationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLocationResponse instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; - - /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. - * @param message CreateDownloadLocationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLocationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationResponse; - - /** - * Verifies a CreateDownloadLocationResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** ArtifactType enum. */ - enum ArtifactType { - ARTIFACT_TYPE_UNDEFINED = 0, - ARTIFACT_TYPE_DECK = 1 - } - - /** Properties of a CreateDownloadLinkRequest. */ - interface ICreateDownloadLinkRequest { - - /** CreateDownloadLinkRequest artifactType */ - artifactType?: (flyteidl.service.ArtifactType|null); - - /** CreateDownloadLinkRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - - /** CreateDownloadLinkRequest nodeExecutionId */ - nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a CreateDownloadLinkRequest. */ - class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { - - /** - * Constructs a new CreateDownloadLinkRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLinkRequest); - - /** CreateDownloadLinkRequest artifactType. */ - public artifactType: flyteidl.service.ArtifactType; - - /** CreateDownloadLinkRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** CreateDownloadLinkRequest nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** CreateDownloadLinkRequest source. */ - public source?: "nodeExecutionId"; - - /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLinkRequest instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; - - /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. - * @param message CreateDownloadLinkRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkRequest; - - /** - * Verifies a CreateDownloadLinkRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CreateDownloadLinkResponse. */ - interface ICreateDownloadLinkResponse { - - /** CreateDownloadLinkResponse signedUrl */ - signedUrl?: (string[]|null); - - /** CreateDownloadLinkResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - - /** CreateDownloadLinkResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - } - - /** Represents a CreateDownloadLinkResponse. */ - class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { - - /** - * Constructs a new CreateDownloadLinkResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); - - /** CreateDownloadLinkResponse signedUrl. */ - public signedUrl: string[]; - - /** CreateDownloadLinkResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** CreateDownloadLinkResponse preSignedUrls. */ - public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - - /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLinkResponse instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; - - /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. - * @param message CreateDownloadLinkResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLinkResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkResponse; - - /** - * Verifies a CreateDownloadLinkResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a PreSignedURLs. */ - interface IPreSignedURLs { - - /** PreSignedURLs signedUrl */ - signedUrl?: (string[]|null); - - /** PreSignedURLs expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a PreSignedURLs. */ - class PreSignedURLs implements IPreSignedURLs { - - /** - * Constructs a new PreSignedURLs. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IPreSignedURLs); - - /** PreSignedURLs signedUrl. */ - public signedUrl: string[]; - - /** PreSignedURLs expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new PreSignedURLs instance using the specified properties. - * @param [properties] Properties to set - * @returns PreSignedURLs instance - */ - public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; - - /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. - * @param message PreSignedURLs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PreSignedURLs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PreSignedURLs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PreSignedURLs; - - /** - * Verifies a PreSignedURLs message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetDataRequest. */ - interface IGetDataRequest { - - /** GetDataRequest flyteUrl */ - flyteUrl?: (string|null); - } - - /** Represents a GetDataRequest. */ - class GetDataRequest implements IGetDataRequest { - - /** - * Constructs a new GetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IGetDataRequest); - - /** GetDataRequest flyteUrl. */ - public flyteUrl: string; - - /** - * Creates a new GetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetDataRequest instance - */ - public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; - - /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. - * @param message GetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataRequest; - - /** - * Verifies a GetDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a GetDataResponse. */ - interface IGetDataResponse { - - /** GetDataResponse literalMap */ - literalMap?: (flyteidl.core.ILiteralMap|null); - - /** GetDataResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - - /** GetDataResponse literal */ - literal?: (flyteidl.core.ILiteral|null); - } - - /** Represents a GetDataResponse. */ - class GetDataResponse implements IGetDataResponse { - - /** - * Constructs a new GetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IGetDataResponse); - - /** GetDataResponse literalMap. */ - public literalMap?: (flyteidl.core.ILiteralMap|null); - - /** GetDataResponse preSignedUrls. */ - public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - - /** GetDataResponse literal. */ - public literal?: (flyteidl.core.ILiteral|null); - - /** GetDataResponse data. */ - public data?: ("literalMap"|"preSignedUrls"|"literal"); - - /** - * Creates a new GetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetDataResponse instance - */ - public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; - - /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. - * @param message GetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataResponse; - - /** - * Verifies a GetDataResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Represents a DataProxyService */ - class DataProxyService extends $protobuf.rpc.Service { - - /** - * Constructs a new DataProxyService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new DataProxyService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxyService; - - /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse - */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxyService.CreateUploadLocationCallback): void; - - /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @returns Promise - */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; - - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; - - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @returns Promise - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; - - /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse - */ - public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; - - /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @returns Promise - */ - public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; - - /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetDataResponse - */ - public getData(request: flyteidl.service.IGetDataRequest, callback: flyteidl.service.DataProxyService.GetDataCallback): void; - - /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @returns Promise - */ - public getData(request: flyteidl.service.IGetDataRequest): Promise; - } - - namespace DataProxyService { - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. - * @param error Error, if any - * @param [response] CreateUploadLocationResponse - */ - type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. - * @param error Error, if any - * @param [response] CreateDownloadLocationResponse - */ - type CreateDownloadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLocationResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. - * @param error Error, if any - * @param [response] CreateDownloadLinkResponse - */ - type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#getData}. - * @param error Error, if any - * @param [response] GetDataResponse - */ - type GetDataCallback = (error: (Error|null), response?: flyteidl.service.GetDataResponse) => void; - } - - /** Represents an ExternalPluginService */ - class ExternalPluginService extends $protobuf.rpc.Service { - - /** - * Constructs a new ExternalPluginService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new ExternalPluginService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ExternalPluginService; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskCreateResponse - */ - public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.ExternalPluginService.CreateTaskCallback): void; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; - - /** - * Calls GetTask. - * @param request TaskGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskGetResponse - */ - public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.ExternalPluginService.GetTaskCallback): void; - - /** - * Calls GetTask. - * @param request TaskGetRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.service.ITaskGetRequest): Promise; - - /** - * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskDeleteResponse - */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest, callback: flyteidl.service.ExternalPluginService.DeleteTaskCallback): void; - - /** - * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object - * @returns Promise - */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; - } - - namespace ExternalPluginService { - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. - * @param error Error, if any - * @param [response] TaskCreateResponse - */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. - * @param error Error, if any - * @param [response] TaskGetResponse - */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. - * @param error Error, if any - * @param [response] TaskDeleteResponse - */ - type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskDeleteResponse) => void; - } - - /** State enum. */ - enum State { - RETRYABLE_FAILURE = 0, - PERMANENT_FAILURE = 1, - PENDING = 2, - RUNNING = 3, - SUCCEEDED = 4 - } - - /** Properties of a TaskCreateRequest. */ - interface ITaskCreateRequest { - - /** TaskCreateRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskCreateRequest template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskCreateRequest outputPrefix */ - outputPrefix?: (string|null); - } - - /** Represents a TaskCreateRequest. */ - class TaskCreateRequest implements ITaskCreateRequest { - - /** - * Constructs a new TaskCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskCreateRequest); - - /** TaskCreateRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskCreateRequest template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskCreateRequest outputPrefix. */ - public outputPrefix: string; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateRequest instance - */ - public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. - * @param message TaskCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateRequest; - - /** - * Verifies a TaskCreateRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskCreateResponse. */ - interface ITaskCreateResponse { - - /** TaskCreateResponse jobId */ - jobId?: (string|null); - } - - /** Represents a TaskCreateResponse. */ - class TaskCreateResponse implements ITaskCreateResponse { - - /** - * Constructs a new TaskCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskCreateResponse); - - /** TaskCreateResponse jobId. */ - public jobId: string; - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateResponse instance - */ - public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. - * @param message TaskCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateResponse; - - /** - * Verifies a TaskCreateResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskGetRequest. */ - interface ITaskGetRequest { - - /** TaskGetRequest taskType */ - taskType?: (string|null); - - /** TaskGetRequest jobId */ - jobId?: (string|null); - } - - /** Represents a TaskGetRequest. */ - class TaskGetRequest implements ITaskGetRequest { - - /** - * Constructs a new TaskGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskGetRequest); - - /** TaskGetRequest taskType. */ - public taskType: string; - - /** TaskGetRequest jobId. */ - public jobId: string; - - /** - * Creates a new TaskGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGetRequest instance - */ - public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; - - /** - * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. - * @param message TaskGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetRequest; - - /** - * Verifies a TaskGetRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskGetResponse. */ - interface ITaskGetResponse { - - /** TaskGetResponse state */ - state?: (flyteidl.service.State|null); - - /** TaskGetResponse outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a TaskGetResponse. */ - class TaskGetResponse implements ITaskGetResponse { - - /** - * Constructs a new TaskGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskGetResponse); - - /** TaskGetResponse state. */ - public state: flyteidl.service.State; - - /** TaskGetResponse outputs. */ - public outputs?: (flyteidl.core.ILiteralMap|null); - - /** - * Creates a new TaskGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGetResponse instance - */ - public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; - - /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. - * @param message TaskGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetResponse; - - /** - * Verifies a TaskGetResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskDeleteRequest. */ - interface ITaskDeleteRequest { - - /** TaskDeleteRequest taskType */ - taskType?: (string|null); - - /** TaskDeleteRequest jobId */ - jobId?: (string|null); - } - - /** Represents a TaskDeleteRequest. */ - class TaskDeleteRequest implements ITaskDeleteRequest { - - /** - * Constructs a new TaskDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskDeleteRequest); - - /** TaskDeleteRequest taskType. */ - public taskType: string; - - /** TaskDeleteRequest jobId. */ - public jobId: string; - - /** - * Creates a new TaskDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteRequest instance - */ - public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; - - /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. - * @param message TaskDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest; - - /** - * Verifies a TaskDeleteRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a TaskDeleteResponse. */ - interface ITaskDeleteResponse { - } - - /** Represents a TaskDeleteResponse. */ - class TaskDeleteResponse implements ITaskDeleteResponse { - - /** - * Constructs a new TaskDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskDeleteResponse); - - /** - * Creates a new TaskDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteResponse instance - */ - public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; - - /** - * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. - * @param message TaskDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse; - - /** - * Verifies a TaskDeleteResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a UserInfoRequest. */ - interface IUserInfoRequest { - } - - /** Represents a UserInfoRequest. */ - class UserInfoRequest implements IUserInfoRequest { - - /** - * Constructs a new UserInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IUserInfoRequest); - - /** - * Creates a new UserInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInfoRequest instance - */ - public static create(properties?: flyteidl.service.IUserInfoRequest): flyteidl.service.UserInfoRequest; - - /** - * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. - * @param message UserInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IUserInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.UserInfoRequest; - - /** - * Verifies a UserInfoRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a UserInfoResponse. */ - interface IUserInfoResponse { - - /** UserInfoResponse subject */ - subject?: (string|null); - - /** UserInfoResponse name */ - name?: (string|null); - - /** UserInfoResponse preferredUsername */ - preferredUsername?: (string|null); - - /** UserInfoResponse givenName */ - givenName?: (string|null); - - /** UserInfoResponse familyName */ - familyName?: (string|null); - - /** UserInfoResponse email */ - email?: (string|null); - - /** UserInfoResponse picture */ - picture?: (string|null); - - /** UserInfoResponse additionalClaims */ - additionalClaims?: (google.protobuf.IStruct|null); - } - - /** Represents a UserInfoResponse. */ - class UserInfoResponse implements IUserInfoResponse { - - /** - * Constructs a new UserInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IUserInfoResponse); - - /** UserInfoResponse subject. */ - public subject: string; - - /** UserInfoResponse name. */ - public name: string; - - /** UserInfoResponse preferredUsername. */ - public preferredUsername: string; - - /** UserInfoResponse givenName. */ - public givenName: string; - - /** UserInfoResponse familyName. */ - public familyName: string; - - /** UserInfoResponse email. */ - public email: string; - - /** UserInfoResponse picture. */ - public picture: string; - - /** UserInfoResponse additionalClaims. */ - public additionalClaims?: (google.protobuf.IStruct|null); - - /** - * Creates a new UserInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInfoResponse instance - */ - public static create(properties?: flyteidl.service.IUserInfoResponse): flyteidl.service.UserInfoResponse; - - /** - * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. - * @param message UserInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IUserInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.UserInfoResponse; - - /** - * Verifies a UserInfoResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Represents an IdentityService */ - class IdentityService extends $protobuf.rpc.Service { - - /** - * Constructs a new IdentityService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new IdentityService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IdentityService; - - /** - * Calls UserInfo. - * @param request UserInfoRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UserInfoResponse - */ - public userInfo(request: flyteidl.service.IUserInfoRequest, callback: flyteidl.service.IdentityService.UserInfoCallback): void; - - /** - * Calls UserInfo. - * @param request UserInfoRequest message or plain object - * @returns Promise - */ - public userInfo(request: flyteidl.service.IUserInfoRequest): Promise; - } - - namespace IdentityService { - - /** - * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. - * @param error Error, if any - * @param [response] UserInfoResponse - */ - type UserInfoCallback = (error: (Error|null), response?: flyteidl.service.UserInfoResponse) => void; - } - - /** Represents a SignalService */ - class SignalService extends $protobuf.rpc.Service { - - /** - * Constructs a new SignalService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new SignalService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SignalService; - - /** - * Calls GetOrCreateSignal. - * @param request SignalGetOrCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Signal - */ - public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest, callback: flyteidl.service.SignalService.GetOrCreateSignalCallback): void; - - /** - * Calls GetOrCreateSignal. - * @param request SignalGetOrCreateRequest message or plain object - * @returns Promise - */ - public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest): Promise; - - /** - * Calls ListSignals. - * @param request SignalListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SignalList - */ - public listSignals(request: flyteidl.admin.ISignalListRequest, callback: flyteidl.service.SignalService.ListSignalsCallback): void; - - /** - * Calls ListSignals. - * @param request SignalListRequest message or plain object - * @returns Promise - */ - public listSignals(request: flyteidl.admin.ISignalListRequest): Promise; - - /** - * Calls SetSignal. - * @param request SignalSetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SignalSetResponse - */ - public setSignal(request: flyteidl.admin.ISignalSetRequest, callback: flyteidl.service.SignalService.SetSignalCallback): void; - - /** - * Calls SetSignal. - * @param request SignalSetRequest message or plain object - * @returns Promise - */ - public setSignal(request: flyteidl.admin.ISignalSetRequest): Promise; - } - - namespace SignalService { - - /** - * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. - * @param error Error, if any - * @param [response] Signal - */ - type GetOrCreateSignalCallback = (error: (Error|null), response?: flyteidl.admin.Signal) => void; - - /** - * Callback as used by {@link flyteidl.service.SignalService#listSignals}. - * @param error Error, if any - * @param [response] SignalList - */ - type ListSignalsCallback = (error: (Error|null), response?: flyteidl.admin.SignalList) => void; - - /** - * Callback as used by {@link flyteidl.service.SignalService#setSignal}. - * @param error Error, if any - * @param [response] SignalSetResponse - */ - type SetSignalCallback = (error: (Error|null), response?: flyteidl.admin.SignalSetResponse) => void; - } - } -} - -/** Namespace google. */ -export namespace google { - - /** Namespace protobuf. */ - namespace protobuf { - - /** Properties of a Timestamp. */ - interface ITimestamp { - - /** Timestamp seconds */ - seconds?: (Long|null); - - /** Timestamp nanos */ - nanos?: (number|null); - } - - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { - - /** - * Constructs a new Timestamp. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: Long; - - /** Timestamp nanos. */ - public nanos: number; - - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; - - /** - * Verifies a Timestamp message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Struct. */ - interface IStruct { - - /** Struct fields */ - fields?: ({ [k: string]: google.protobuf.IValue }|null); - } - - /** Represents a Struct. */ - class Struct implements IStruct { - - /** - * Constructs a new Struct. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IStruct); - - /** Struct fields. */ - public fields: { [k: string]: google.protobuf.IValue }; - - /** - * Creates a new Struct instance using the specified properties. - * @param [properties] Properties to set - * @returns Struct instance - */ - public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; - - /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Struct message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Struct - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct; - - /** - * Verifies a Struct message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Value. */ - interface IValue { - - /** Value nullValue */ - nullValue?: (google.protobuf.NullValue|null); - - /** Value numberValue */ - numberValue?: (number|null); - - /** Value stringValue */ - stringValue?: (string|null); - - /** Value boolValue */ - boolValue?: (boolean|null); - - /** Value structValue */ - structValue?: (google.protobuf.IStruct|null); - - /** Value listValue */ - listValue?: (google.protobuf.IListValue|null); - } - - /** Represents a Value. */ - class Value implements IValue { - - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IValue); - - /** Value nullValue. */ - public nullValue: google.protobuf.NullValue; - - /** Value numberValue. */ - public numberValue: number; - - /** Value stringValue. */ - public stringValue: string; - - /** Value boolValue. */ - public boolValue: boolean; - - /** Value structValue. */ - public structValue?: (google.protobuf.IStruct|null); - - /** Value listValue. */ - public listValue?: (google.protobuf.IListValue|null); - - /** Value kind. */ - public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); - - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: google.protobuf.IValue): google.protobuf.Value; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; - - /** - * Verifies a Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** NullValue enum. */ - enum NullValue { - NULL_VALUE = 0 - } - - /** Properties of a ListValue. */ - interface IListValue { - - /** ListValue values */ - values?: (google.protobuf.IValue[]|null); - } - - /** Represents a ListValue. */ - class ListValue implements IListValue { - - /** - * Constructs a new ListValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IListValue); - - /** ListValue values. */ - public values: google.protobuf.IValue[]; - - /** - * Creates a new ListValue instance using the specified properties. - * @param [properties] Properties to set - * @returns ListValue instance - */ - public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; - - /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @param message ListValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; - - /** - * Verifies a ListValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a Duration. */ - interface IDuration { - - /** Duration seconds */ - seconds?: (Long|null); - - /** Duration nanos */ - nanos?: (number|null); - } - - /** Represents a Duration. */ - class Duration implements IDuration { - - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); - - /** Duration seconds. */ - public seconds: Long; - - /** Duration nanos. */ - public nanos: number; - - /** - * Creates a new Duration instance using the specified properties. - * @param [properties] Properties to set - * @returns Duration instance - */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; - - /** - * Verifies a Duration message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DoubleValue. */ - interface IDoubleValue { - - /** DoubleValue value */ - value?: (number|null); - } - - /** Represents a DoubleValue. */ - class DoubleValue implements IDoubleValue { - - /** - * Constructs a new DoubleValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDoubleValue); - - /** DoubleValue value. */ - public value: number; - - /** - * Creates a new DoubleValue instance using the specified properties. - * @param [properties] Properties to set - * @returns DoubleValue instance - */ - public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; - - /** - * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. - * @param message DoubleValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DoubleValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DoubleValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue; - - /** - * Verifies a DoubleValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a FloatValue. */ - interface IFloatValue { - - /** FloatValue value */ - value?: (number|null); - } - - /** Represents a FloatValue. */ - class FloatValue implements IFloatValue { - - /** - * Constructs a new FloatValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFloatValue); - - /** FloatValue value. */ - public value: number; - - /** - * Creates a new FloatValue instance using the specified properties. - * @param [properties] Properties to set - * @returns FloatValue instance - */ - public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; - - /** - * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. - * @param message FloatValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FloatValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FloatValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue; - - /** - * Verifies a FloatValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Int64Value. */ - interface IInt64Value { - - /** Int64Value value */ - value?: (Long|null); - } - - /** Represents an Int64Value. */ - class Int64Value implements IInt64Value { - - /** - * Constructs a new Int64Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IInt64Value); - - /** Int64Value value. */ - public value: Long; - - /** - * Creates a new Int64Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Int64Value instance - */ - public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; - - /** - * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. - * @param message Int64Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Int64Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Int64Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value; - - /** - * Verifies an Int64Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a UInt64Value. */ - interface IUInt64Value { - - /** UInt64Value value */ - value?: (Long|null); - } - - /** Represents a UInt64Value. */ - class UInt64Value implements IUInt64Value { - - /** - * Constructs a new UInt64Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUInt64Value); - - /** UInt64Value value. */ - public value: Long; - - /** - * Creates a new UInt64Value instance using the specified properties. - * @param [properties] Properties to set - * @returns UInt64Value instance - */ - public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; - - /** - * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. - * @param message UInt64Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UInt64Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UInt64Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value; - - /** - * Verifies a UInt64Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Int32Value. */ - interface IInt32Value { - - /** Int32Value value */ - value?: (number|null); - } - - /** Represents an Int32Value. */ - class Int32Value implements IInt32Value { - - /** - * Constructs a new Int32Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IInt32Value); - - /** Int32Value value. */ - public value: number; - - /** - * Creates a new Int32Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Int32Value instance - */ - public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; - - /** - * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. - * @param message Int32Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Int32Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Int32Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value; - - /** - * Verifies an Int32Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a UInt32Value. */ - interface IUInt32Value { - - /** UInt32Value value */ - value?: (number|null); - } - - /** Represents a UInt32Value. */ - class UInt32Value implements IUInt32Value { - - /** - * Constructs a new UInt32Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUInt32Value); - - /** UInt32Value value. */ - public value: number; - - /** - * Creates a new UInt32Value instance using the specified properties. - * @param [properties] Properties to set - * @returns UInt32Value instance - */ - public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; - - /** - * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. - * @param message UInt32Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UInt32Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UInt32Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value; - - /** - * Verifies a UInt32Value message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BoolValue. */ - interface IBoolValue { - - /** BoolValue value */ - value?: (boolean|null); - } - - /** Represents a BoolValue. */ - class BoolValue implements IBoolValue { - - /** - * Constructs a new BoolValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IBoolValue); - - /** BoolValue value. */ - public value: boolean; - - /** - * Creates a new BoolValue instance using the specified properties. - * @param [properties] Properties to set - * @returns BoolValue instance - */ - public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; - - /** - * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. - * @param message BoolValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BoolValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BoolValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue; - - /** - * Verifies a BoolValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a StringValue. */ - interface IStringValue { - - /** StringValue value */ - value?: (string|null); - } - - /** Represents a StringValue. */ - class StringValue implements IStringValue { - - /** - * Constructs a new StringValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IStringValue); - - /** StringValue value. */ - public value: string; - - /** - * Creates a new StringValue instance using the specified properties. - * @param [properties] Properties to set - * @returns StringValue instance - */ - public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; - - /** - * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. - * @param message StringValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StringValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StringValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue; - - /** - * Verifies a StringValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a BytesValue. */ - interface IBytesValue { - - /** BytesValue value */ - value?: (Uint8Array|null); - } - - /** Represents a BytesValue. */ - class BytesValue implements IBytesValue { - - /** - * Constructs a new BytesValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IBytesValue); - - /** BytesValue value. */ - public value: Uint8Array; - - /** - * Creates a new BytesValue instance using the specified properties. - * @param [properties] Properties to set - * @returns BytesValue instance - */ - public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; - - /** - * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. - * @param message BytesValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BytesValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BytesValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue; - - /** - * Verifies a BytesValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an Any. */ - interface IAny { - - /** Any type_url */ - type_url?: (string|null); - - /** Any value */ - value?: (Uint8Array|null); - } - - /** Represents an Any. */ - class Any implements IAny { - - /** - * Constructs a new Any. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IAny); - - /** Any type_url. */ - public type_url: string; - - /** Any value. */ - public value: Uint8Array; - - /** - * Creates a new Any instance using the specified properties. - * @param [properties] Properties to set - * @returns Any instance - */ - public static create(properties?: google.protobuf.IAny): google.protobuf.Any; - - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Any message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; - - /** - * Verifies an Any message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { - - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); - } - - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { - - /** - * Constructs a new FileDescriptorSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorSet); - - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorSet instance - */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; - - /** - * Verifies a FileDescriptorSet message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - - /** FileDescriptorProto name */ - name?: (string|null); - - /** FileDescriptorProto package */ - "package"?: (string|null); - - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); - - /** FileDescriptorProto publicDependency */ - publicDependency?: (number[]|null); - - /** FileDescriptorProto weakDependency */ - weakDependency?: (number[]|null); - - /** FileDescriptorProto messageType */ - messageType?: (google.protobuf.IDescriptorProto[]|null); - - /** FileDescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); - - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax */ - syntax?: (string|null); - } - - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { - - /** - * Constructs a new FileDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax. */ - public syntax: string; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; - - /** - * Verifies a FileDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { - - /** DescriptorProto name */ - name?: (string|null); - - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto nestedType */ - nestedType?: (google.protobuf.IDescriptorProto[]|null); - - /** DescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** DescriptorProto extensionRange */ - extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); - - /** DescriptorProto reservedName */ - reservedName?: (string[]|null); - } - - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { - - /** - * Constructs a new DescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; - - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - - /** DescriptorProto reservedName. */ - public reservedName: string[]; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptorProto instance - */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; - - /** - * Verifies a DescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace DescriptorProto { - - /** Properties of an ExtensionRange. */ - interface IExtensionRange { - - /** ExtensionRange start */ - start?: (number|null); - - /** ExtensionRange end */ - end?: (number|null); - } - - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { - - /** - * Constructs a new ExtensionRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - - /** ExtensionRange start. */ - public start: number; - - /** ExtensionRange end. */ - public end: number; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Verifies an ExtensionRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ReservedRange. */ - interface IReservedRange { - - /** ReservedRange start */ - start?: (number|null); - - /** ReservedRange end */ - end?: (number|null); - } - - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { - - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - - /** ReservedRange start. */ - public start: number; - - /** ReservedRange end. */ - public end: number; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Verifies a ReservedRange message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { - - /** FieldDescriptorProto name */ - name?: (string|null); - - /** FieldDescriptorProto number */ - number?: (number|null); - - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|null); - - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|null); - - /** FieldDescriptorProto typeName */ - typeName?: (string|null); - - /** FieldDescriptorProto extendee */ - extendee?: (string|null); - - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); - - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); - - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); - - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); - } - - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { - - /** - * Constructs a new FieldDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); - - /** FieldDescriptorProto name. */ - public name: string; - - /** FieldDescriptorProto number. */ - public number: number; - - /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; - - /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; - - /** FieldDescriptorProto typeName. */ - public typeName: string; - - /** FieldDescriptorProto extendee. */ - public extendee: string; - - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; - - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; - - /** FieldDescriptorProto jsonName. */ - public jsonName: string; - - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; - - /** - * Verifies a FieldDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace FieldDescriptorProto { - - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } - - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 - } - } - - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { - - /** OneofDescriptorProto name */ - name?: (string|null); - - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); - } - - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { - - /** - * Constructs a new OneofDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); - - /** OneofDescriptorProto name. */ - public name: string; - - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofDescriptorProto instance - */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; - - /** - * Verifies an OneofDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { - - /** EnumDescriptorProto name */ - name?: (string|null); - - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); - } - - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { - - /** - * Constructs a new EnumDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; - - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; - - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; - - /** - * Verifies an EnumDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { - - /** EnumValueDescriptorProto name */ - name?: (string|null); - - /** EnumValueDescriptorProto number */ - number?: (number|null); - - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); - } - - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { - - /** - * Constructs a new EnumValueDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - - /** EnumValueDescriptorProto name. */ - public name: string; - - /** EnumValueDescriptorProto number. */ - public number: number; - - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; - - /** - * Verifies an EnumValueDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { - - /** ServiceDescriptorProto name */ - name?: (string|null); - - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); - - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); - } - - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { - - /** - * Constructs a new ServiceDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; - - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; - - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance - */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; - - /** - * Verifies a ServiceDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { - - /** MethodDescriptorProto name */ - name?: (string|null); - - /** MethodDescriptorProto inputType */ - inputType?: (string|null); - - /** MethodDescriptorProto outputType */ - outputType?: (string|null); - - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); - - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); - - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); - } - - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { - - /** - * Constructs a new MethodDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); - - /** MethodDescriptorProto name. */ - public name: string; - - /** MethodDescriptorProto inputType. */ - public inputType: string; - - /** MethodDescriptorProto outputType. */ - public outputType: string; - - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); - - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; - - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodDescriptorProto instance - */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; - - /** - * Verifies a MethodDescriptorProto message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a FileOptions. */ - interface IFileOptions { - - /** FileOptions javaPackage */ - javaPackage?: (string|null); - - /** FileOptions javaOuterClassname */ - javaOuterClassname?: (string|null); - - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: (boolean|null); - - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: (boolean|null); - - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: (boolean|null); - - /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); - - /** FileOptions goPackage */ - goPackage?: (string|null); - - /** FileOptions ccGenericServices */ - ccGenericServices?: (boolean|null); - - /** FileOptions javaGenericServices */ - javaGenericServices?: (boolean|null); - - /** FileOptions pyGenericServices */ - pyGenericServices?: (boolean|null); - - /** FileOptions deprecated */ - deprecated?: (boolean|null); - - /** FileOptions ccEnableArenas */ - ccEnableArenas?: (boolean|null); - - /** FileOptions objcClassPrefix */ - objcClassPrefix?: (string|null); - - /** FileOptions csharpNamespace */ - csharpNamespace?: (string|null); - - /** FileOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { - - /** - * Constructs a new FileOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; - - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; - - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; - - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; - - /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; - - /** FileOptions goPackage. */ - public goPackage: string; - - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; - - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; - - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; - - /** FileOptions deprecated. */ - public deprecated: boolean; - - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; - - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; - - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; - - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FileOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FileOptions instance - */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; - - /** - * Verifies a FileOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace FileOptions { - - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } - - /** Properties of a MessageOptions. */ - interface IMessageOptions { - - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); - - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); - - /** MessageOptions deprecated */ - deprecated?: (boolean|null); - - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); - - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { - - /** - * Constructs a new MessageOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMessageOptions); - - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; - - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; - - /** MessageOptions deprecated. */ - public deprecated: boolean; - - /** MessageOptions mapEntry. */ - public mapEntry: boolean; - - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageOptions instance - */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; - - /** - * Verifies a MessageOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a FieldOptions. */ - interface IFieldOptions { - - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); - - /** FieldOptions packed */ - packed?: (boolean|null); - - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); - - /** FieldOptions lazy */ - lazy?: (boolean|null); - - /** FieldOptions deprecated */ - deprecated?: (boolean|null); - - /** FieldOptions weak */ - weak?: (boolean|null); - - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { - - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); - - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; - - /** FieldOptions packed. */ - public packed: boolean; - - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; - - /** FieldOptions lazy. */ - public lazy: boolean; - - /** FieldOptions deprecated. */ - public deprecated: boolean; - - /** FieldOptions weak. */ - public weak: boolean; - - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldOptions instance - */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; - - /** - * Verifies a FieldOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace FieldOptions { - - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 - } - - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 - } - } - - /** Properties of an OneofOptions. */ - interface IOneofOptions { - - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { - - /** - * Constructs a new OneofOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofOptions); - - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofOptions instance - */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; - - /** - * Verifies an OneofOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EnumOptions. */ - interface IEnumOptions { - - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); - - /** EnumOptions deprecated */ - deprecated?: (boolean|null); - - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { - - /** - * Constructs a new EnumOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumOptions); - - /** EnumOptions allowAlias. */ - public allowAlias: boolean; - - /** EnumOptions deprecated. */ - public deprecated: boolean; - - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumOptions instance - */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; - - /** - * Verifies an EnumOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { - - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); - - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { - - /** - * Constructs a new EnumValueOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueOptions); - - /** EnumValueOptions deprecated. */ - public deprecated: boolean; - - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueOptions instance - */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; - - /** - * Verifies an EnumValueOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a ServiceOptions. */ - interface IServiceOptions { - - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { - - /** - * Constructs a new ServiceOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceOptions); - - /** ServiceOptions deprecated. */ - public deprecated: boolean; - - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceOptions instance - */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; - - /** - * Verifies a ServiceOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a MethodOptions. */ - interface IMethodOptions { - - /** MethodOptions deprecated */ - deprecated?: (boolean|null); - - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); - } - - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { - - /** - * Constructs a new MethodOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodOptions); - - /** MethodOptions deprecated. */ - public deprecated: boolean; - - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodOptions instance - */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; - - /** - * Verifies a MethodOptions message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { - - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - - /** UninterpretedOption identifierValue */ - identifierValue?: (string|null); - - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (Long|null); - - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (Long|null); - - /** UninterpretedOption doubleValue */ - doubleValue?: (number|null); - - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|null); - - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); - } - - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { - - /** - * Constructs a new UninterpretedOption. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; - - /** UninterpretedOption identifierValue. */ - public identifierValue: string; - - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: Long; - - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: Long; - - /** UninterpretedOption doubleValue. */ - public doubleValue: number; - - /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; - - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @param [properties] Properties to set - * @returns UninterpretedOption instance - */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; - - /** - * Verifies an UninterpretedOption message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace UninterpretedOption { - - /** Properties of a NamePart. */ - interface INamePart { - - /** NamePart namePart */ - namePart: string; - - /** NamePart isExtension */ - isExtension: boolean; - } - - /** Represents a NamePart. */ - class NamePart implements INamePart { - - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - - /** NamePart namePart. */ - public namePart: string; - - /** NamePart isExtension. */ - public isExtension: boolean; - - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; - - /** - * Verifies a NamePart message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { - - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); - } - - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { - - /** - * Constructs a new SourceCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ISourceCodeInfo); - - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCodeInfo instance - */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; - - /** - * Verifies a SourceCodeInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace SourceCodeInfo { - - /** Properties of a Location. */ - interface ILocation { - - /** Location path */ - path?: (number[]|null); - - /** Location span */ - span?: (number[]|null); - - /** Location leadingComments */ - leadingComments?: (string|null); - - /** Location trailingComments */ - trailingComments?: (string|null); - - /** Location leadingDetachedComments */ - leadingDetachedComments?: (string[]|null); - } - - /** Represents a Location. */ - class Location implements ILocation { - - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - - /** Location path. */ - public path: number[]; - - /** Location span. */ - public span: number[]; - - /** Location leadingComments. */ - public leadingComments: string; - - /** Location trailingComments. */ - public trailingComments: string; - - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; - - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; - - /** - * Verifies a Location message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { - - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); - } - - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { - - /** - * Constructs a new GeneratedCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); - - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance - */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; - - /** - * Verifies a GeneratedCodeInfo message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - namespace GeneratedCodeInfo { - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation path */ - path?: (number[]|null); - - /** Annotation sourceFile */ - sourceFile?: (string|null); - - /** Annotation begin */ - begin?: (number|null); - - /** Annotation end */ - end?: (number|null); - } - - /** Represents an Annotation. */ - class Annotation implements IAnnotation { - - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); - - /** Annotation path. */ - public path: number[]; - - /** Annotation sourceFile. */ - public sourceFile: string; - - /** Annotation begin. */ - public begin: number; - - /** Annotation end. */ - public end: number; - - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; - - /** - * Verifies an Annotation message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } - } - - /** Namespace api. */ - namespace api { - - /** Properties of a Http. */ - interface IHttp { - - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); - } - - /** Represents a Http. */ - class Http implements IHttp { - - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); - - /** Http rules. */ - public rules: google.api.IHttpRule[]; - - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Http message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; - - /** - * Verifies a Http message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a HttpRule. */ - interface IHttpRule { - - /** HttpRule get */ - get?: (string|null); - - /** HttpRule put */ - put?: (string|null); - - /** HttpRule post */ - post?: (string|null); - - /** HttpRule delete */ - "delete"?: (string|null); - - /** HttpRule patch */ - patch?: (string|null); - - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); - - /** HttpRule selector */ - selector?: (string|null); - - /** HttpRule body */ - body?: (string|null); - - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } - - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { - - /** - * Constructs a new HttpRule. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttpRule); - - /** HttpRule get. */ - public get: string; - - /** HttpRule put. */ - public put: string; - - /** HttpRule post. */ - public post: string; - - /** HttpRule delete. */ - public delete: string; - - /** HttpRule patch. */ - public patch: string; - - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); - - /** HttpRule selector. */ - public selector: string; - - /** HttpRule body. */ - public body: string; - - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; - - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); - - /** - * Creates a new HttpRule instance using the specified properties. - * @param [properties] Properties to set - * @returns HttpRule instance - */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; - - /** - * Verifies a HttpRule message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { - - /** CustomHttpPattern kind */ - kind?: (string|null); - - /** CustomHttpPattern path */ - path?: (string|null); - } - - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { - - /** - * Constructs a new CustomHttpPattern. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.ICustomHttpPattern); - - /** CustomHttpPattern kind. */ - public kind: string; - - /** CustomHttpPattern path. */ - public path: string; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; - - /** - * Verifies a CustomHttpPattern message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - } - } -} diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js deleted file mode 100644 index 178a525f62..0000000000 --- a/flyteidl/gen/pb-js/flyteidl.js +++ /dev/null @@ -1,63157 +0,0 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ -(function(global, factory) { /* global define, require, module */ - - /* AMD */ if (typeof define === 'function' && define.amd) - define(["protobufjs/minimal"], factory); - - /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("protobufjs/minimal")); - -})(this, function($protobuf) { - "use strict"; - - // Common aliases - var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - - // Exported root namespace - var $root = $protobuf.roots.flyteidl || ($protobuf.roots.flyteidl = {}); - - $root.flyteidl = (function() { - - /** - * Namespace flyteidl. - * @exports flyteidl - * @namespace - */ - var flyteidl = {}; - - flyteidl.core = (function() { - - /** - * Namespace core. - * @memberof flyteidl - * @namespace - */ - var core = {}; - - core.ArtifactKey = (function() { - - /** - * Properties of an ArtifactKey. - * @memberof flyteidl.core - * @interface IArtifactKey - * @property {string|null} [project] ArtifactKey project - * @property {string|null} [domain] ArtifactKey domain - * @property {string|null} [name] ArtifactKey name - * @property {string|null} [org] ArtifactKey org - */ - - /** - * Constructs a new ArtifactKey. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactKey. - * @implements IArtifactKey - * @constructor - * @param {flyteidl.core.IArtifactKey=} [properties] Properties to set - */ - function ArtifactKey(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactKey project. - * @member {string} project - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.project = ""; - - /** - * ArtifactKey domain. - * @member {string} domain - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.domain = ""; - - /** - * ArtifactKey name. - * @member {string} name - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.name = ""; - - /** - * ArtifactKey org. - * @member {string} org - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.org = ""; - - /** - * Creates a new ArtifactKey instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {flyteidl.core.IArtifactKey=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactKey} ArtifactKey instance - */ - ArtifactKey.create = function create(properties) { - return new ArtifactKey(properties); - }; - - /** - * Encodes the specified ArtifactKey message. Does not implicitly {@link flyteidl.core.ArtifactKey.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {flyteidl.core.IArtifactKey} message ArtifactKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); - return writer; - }; - - /** - * Decodes an ArtifactKey message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactKey} ArtifactKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactKey(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactKey message. - * @function verify - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ArtifactKey; - })(); - - core.ArtifactBindingData = (function() { - - /** - * Properties of an ArtifactBindingData. - * @memberof flyteidl.core - * @interface IArtifactBindingData - * @property {number|null} [index] ArtifactBindingData index - * @property {string|null} [partitionKey] ArtifactBindingData partitionKey - * @property {boolean|null} [bindToTimePartition] ArtifactBindingData bindToTimePartition - * @property {string|null} [transform] ArtifactBindingData transform - */ - - /** - * Constructs a new ArtifactBindingData. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactBindingData. - * @implements IArtifactBindingData - * @constructor - * @param {flyteidl.core.IArtifactBindingData=} [properties] Properties to set - */ - function ArtifactBindingData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactBindingData index. - * @member {number} index - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.index = 0; - - /** - * ArtifactBindingData partitionKey. - * @member {string} partitionKey - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.partitionKey = ""; - - /** - * ArtifactBindingData bindToTimePartition. - * @member {boolean} bindToTimePartition - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.bindToTimePartition = false; - - /** - * ArtifactBindingData transform. - * @member {string} transform - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.transform = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArtifactBindingData partitionData. - * @member {"partitionKey"|"bindToTimePartition"|undefined} partitionData - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - Object.defineProperty(ArtifactBindingData.prototype, "partitionData", { - get: $util.oneOfGetter($oneOfFields = ["partitionKey", "bindToTimePartition"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ArtifactBindingData instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {flyteidl.core.IArtifactBindingData=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactBindingData} ArtifactBindingData instance - */ - ArtifactBindingData.create = function create(properties) { - return new ArtifactBindingData(properties); - }; - - /** - * Encodes the specified ArtifactBindingData message. Does not implicitly {@link flyteidl.core.ArtifactBindingData.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {flyteidl.core.IArtifactBindingData} message ArtifactBindingData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactBindingData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && message.hasOwnProperty("index")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); - if (message.bindToTimePartition != null && message.hasOwnProperty("bindToTimePartition")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.bindToTimePartition); - if (message.transform != null && message.hasOwnProperty("transform")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.transform); - return writer; - }; - - /** - * Decodes an ArtifactBindingData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactBindingData} ArtifactBindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactBindingData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactBindingData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.partitionKey = reader.string(); - break; - case 3: - message.bindToTimePartition = reader.bool(); - break; - case 4: - message.transform = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactBindingData message. - * @function verify - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactBindingData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) { - properties.partitionData = 1; - if (!$util.isString(message.partitionKey)) - return "partitionKey: string expected"; - } - if (message.bindToTimePartition != null && message.hasOwnProperty("bindToTimePartition")) { - if (properties.partitionData === 1) - return "partitionData: multiple values"; - properties.partitionData = 1; - if (typeof message.bindToTimePartition !== "boolean") - return "bindToTimePartition: boolean expected"; - } - if (message.transform != null && message.hasOwnProperty("transform")) - if (!$util.isString(message.transform)) - return "transform: string expected"; - return null; - }; - - return ArtifactBindingData; - })(); - - core.InputBindingData = (function() { - - /** - * Properties of an InputBindingData. - * @memberof flyteidl.core - * @interface IInputBindingData - * @property {string|null} ["var"] InputBindingData var - */ - - /** - * Constructs a new InputBindingData. - * @memberof flyteidl.core - * @classdesc Represents an InputBindingData. - * @implements IInputBindingData - * @constructor - * @param {flyteidl.core.IInputBindingData=} [properties] Properties to set - */ - function InputBindingData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputBindingData var. - * @member {string} var - * @memberof flyteidl.core.InputBindingData - * @instance - */ - InputBindingData.prototype["var"] = ""; - - /** - * Creates a new InputBindingData instance using the specified properties. - * @function create - * @memberof flyteidl.core.InputBindingData - * @static - * @param {flyteidl.core.IInputBindingData=} [properties] Properties to set - * @returns {flyteidl.core.InputBindingData} InputBindingData instance - */ - InputBindingData.create = function create(properties) { - return new InputBindingData(properties); - }; - - /** - * Encodes the specified InputBindingData message. Does not implicitly {@link flyteidl.core.InputBindingData.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.InputBindingData - * @static - * @param {flyteidl.core.IInputBindingData} message InputBindingData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputBindingData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - return writer; - }; - - /** - * Decodes an InputBindingData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.InputBindingData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.InputBindingData} InputBindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputBindingData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.InputBindingData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an InputBindingData message. - * @function verify - * @memberof flyteidl.core.InputBindingData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputBindingData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - return null; - }; - - return InputBindingData; - })(); - - core.LabelValue = (function() { - - /** - * Properties of a LabelValue. - * @memberof flyteidl.core - * @interface ILabelValue - * @property {string|null} [staticValue] LabelValue staticValue - * @property {google.protobuf.ITimestamp|null} [timeValue] LabelValue timeValue - * @property {flyteidl.core.IArtifactBindingData|null} [triggeredBinding] LabelValue triggeredBinding - * @property {flyteidl.core.IInputBindingData|null} [inputBinding] LabelValue inputBinding - */ - - /** - * Constructs a new LabelValue. - * @memberof flyteidl.core - * @classdesc Represents a LabelValue. - * @implements ILabelValue - * @constructor - * @param {flyteidl.core.ILabelValue=} [properties] Properties to set - */ - function LabelValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LabelValue staticValue. - * @member {string} staticValue - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.staticValue = ""; - - /** - * LabelValue timeValue. - * @member {google.protobuf.ITimestamp|null|undefined} timeValue - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.timeValue = null; - - /** - * LabelValue triggeredBinding. - * @member {flyteidl.core.IArtifactBindingData|null|undefined} triggeredBinding - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.triggeredBinding = null; - - /** - * LabelValue inputBinding. - * @member {flyteidl.core.IInputBindingData|null|undefined} inputBinding - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.inputBinding = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LabelValue value. - * @member {"staticValue"|"timeValue"|"triggeredBinding"|"inputBinding"|undefined} value - * @memberof flyteidl.core.LabelValue - * @instance - */ - Object.defineProperty(LabelValue.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["staticValue", "timeValue", "triggeredBinding", "inputBinding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LabelValue instance using the specified properties. - * @function create - * @memberof flyteidl.core.LabelValue - * @static - * @param {flyteidl.core.ILabelValue=} [properties] Properties to set - * @returns {flyteidl.core.LabelValue} LabelValue instance - */ - LabelValue.create = function create(properties) { - return new LabelValue(properties); - }; - - /** - * Encodes the specified LabelValue message. Does not implicitly {@link flyteidl.core.LabelValue.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LabelValue - * @static - * @param {flyteidl.core.ILabelValue} message LabelValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LabelValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.staticValue != null && message.hasOwnProperty("staticValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.staticValue); - if (message.timeValue != null && message.hasOwnProperty("timeValue")) - $root.google.protobuf.Timestamp.encode(message.timeValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.triggeredBinding != null && message.hasOwnProperty("triggeredBinding")) - $root.flyteidl.core.ArtifactBindingData.encode(message.triggeredBinding, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.inputBinding != null && message.hasOwnProperty("inputBinding")) - $root.flyteidl.core.InputBindingData.encode(message.inputBinding, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LabelValue message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LabelValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LabelValue} LabelValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LabelValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LabelValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.staticValue = reader.string(); - break; - case 2: - message.timeValue = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.triggeredBinding = $root.flyteidl.core.ArtifactBindingData.decode(reader, reader.uint32()); - break; - case 4: - message.inputBinding = $root.flyteidl.core.InputBindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LabelValue message. - * @function verify - * @memberof flyteidl.core.LabelValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LabelValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.staticValue != null && message.hasOwnProperty("staticValue")) { - properties.value = 1; - if (!$util.isString(message.staticValue)) - return "staticValue: string expected"; - } - if (message.timeValue != null && message.hasOwnProperty("timeValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.timeValue); - if (error) - return "timeValue." + error; - } - } - if (message.triggeredBinding != null && message.hasOwnProperty("triggeredBinding")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.ArtifactBindingData.verify(message.triggeredBinding); - if (error) - return "triggeredBinding." + error; - } - } - if (message.inputBinding != null && message.hasOwnProperty("inputBinding")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.InputBindingData.verify(message.inputBinding); - if (error) - return "inputBinding." + error; - } - } - return null; - }; - - return LabelValue; - })(); - - core.Partitions = (function() { - - /** - * Properties of a Partitions. - * @memberof flyteidl.core - * @interface IPartitions - * @property {Object.|null} [value] Partitions value - */ - - /** - * Constructs a new Partitions. - * @memberof flyteidl.core - * @classdesc Represents a Partitions. - * @implements IPartitions - * @constructor - * @param {flyteidl.core.IPartitions=} [properties] Properties to set - */ - function Partitions(properties) { - this.value = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Partitions value. - * @member {Object.} value - * @memberof flyteidl.core.Partitions - * @instance - */ - Partitions.prototype.value = $util.emptyObject; - - /** - * Creates a new Partitions instance using the specified properties. - * @function create - * @memberof flyteidl.core.Partitions - * @static - * @param {flyteidl.core.IPartitions=} [properties] Properties to set - * @returns {flyteidl.core.Partitions} Partitions instance - */ - Partitions.create = function create(properties) { - return new Partitions(properties); - }; - - /** - * Encodes the specified Partitions message. Does not implicitly {@link flyteidl.core.Partitions.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Partitions - * @static - * @param {flyteidl.core.IPartitions} message Partitions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Partitions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - for (var keys = Object.keys(message.value), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.LabelValue.encode(message.value[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a Partitions message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Partitions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Partitions} Partitions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Partitions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Partitions(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.value === $util.emptyObject) - message.value = {}; - key = reader.string(); - reader.pos++; - message.value[key] = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Partitions message. - * @function verify - * @memberof flyteidl.core.Partitions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Partitions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!$util.isObject(message.value)) - return "value: object expected"; - var key = Object.keys(message.value); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.LabelValue.verify(message.value[key[i]]); - if (error) - return "value." + error; - } - } - return null; - }; - - return Partitions; - })(); - - core.TimePartition = (function() { - - /** - * Properties of a TimePartition. - * @memberof flyteidl.core - * @interface ITimePartition - * @property {flyteidl.core.ILabelValue|null} [value] TimePartition value - */ - - /** - * Constructs a new TimePartition. - * @memberof flyteidl.core - * @classdesc Represents a TimePartition. - * @implements ITimePartition - * @constructor - * @param {flyteidl.core.ITimePartition=} [properties] Properties to set - */ - function TimePartition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TimePartition value. - * @member {flyteidl.core.ILabelValue|null|undefined} value - * @memberof flyteidl.core.TimePartition - * @instance - */ - TimePartition.prototype.value = null; - - /** - * Creates a new TimePartition instance using the specified properties. - * @function create - * @memberof flyteidl.core.TimePartition - * @static - * @param {flyteidl.core.ITimePartition=} [properties] Properties to set - * @returns {flyteidl.core.TimePartition} TimePartition instance - */ - TimePartition.create = function create(properties) { - return new TimePartition(properties); - }; - - /** - * Encodes the specified TimePartition message. Does not implicitly {@link flyteidl.core.TimePartition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TimePartition - * @static - * @param {flyteidl.core.ITimePartition} message TimePartition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TimePartition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.LabelValue.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TimePartition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TimePartition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TimePartition} TimePartition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TimePartition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TimePartition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TimePartition message. - * @function verify - * @memberof flyteidl.core.TimePartition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TimePartition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.LabelValue.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return TimePartition; - })(); - - core.ArtifactID = (function() { - - /** - * Properties of an ArtifactID. - * @memberof flyteidl.core - * @interface IArtifactID - * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ArtifactID artifactKey - * @property {string|null} [version] ArtifactID version - * @property {flyteidl.core.IPartitions|null} [partitions] ArtifactID partitions - * @property {flyteidl.core.ITimePartition|null} [timePartition] ArtifactID timePartition - */ - - /** - * Constructs a new ArtifactID. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactID. - * @implements IArtifactID - * @constructor - * @param {flyteidl.core.IArtifactID=} [properties] Properties to set - */ - function ArtifactID(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactID artifactKey. - * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.artifactKey = null; - - /** - * ArtifactID version. - * @member {string} version - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.version = ""; - - /** - * ArtifactID partitions. - * @member {flyteidl.core.IPartitions|null|undefined} partitions - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.partitions = null; - - /** - * ArtifactID timePartition. - * @member {flyteidl.core.ITimePartition|null|undefined} timePartition - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.timePartition = null; - - /** - * Creates a new ArtifactID instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactID - * @static - * @param {flyteidl.core.IArtifactID=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactID} ArtifactID instance - */ - ArtifactID.create = function create(properties) { - return new ArtifactID(properties); - }; - - /** - * Encodes the specified ArtifactID message. Does not implicitly {@link flyteidl.core.ArtifactID.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactID - * @static - * @param {flyteidl.core.IArtifactID} message ArtifactID message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactID.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) - $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - if (message.partitions != null && message.hasOwnProperty("partitions")) - $root.flyteidl.core.Partitions.encode(message.partitions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.timePartition != null && message.hasOwnProperty("timePartition")) - $root.flyteidl.core.TimePartition.encode(message.timePartition, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ArtifactID message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactID - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactID} ArtifactID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactID.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactID(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.partitions = $root.flyteidl.core.Partitions.decode(reader, reader.uint32()); - break; - case 4: - message.timePartition = $root.flyteidl.core.TimePartition.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactID message. - * @function verify - * @memberof flyteidl.core.ArtifactID - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactID.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { - var error = $root.flyteidl.core.ArtifactKey.verify(message.artifactKey); - if (error) - return "artifactKey." + error; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.partitions != null && message.hasOwnProperty("partitions")) { - var error = $root.flyteidl.core.Partitions.verify(message.partitions); - if (error) - return "partitions." + error; - } - if (message.timePartition != null && message.hasOwnProperty("timePartition")) { - var error = $root.flyteidl.core.TimePartition.verify(message.timePartition); - if (error) - return "timePartition." + error; - } - return null; - }; - - return ArtifactID; - })(); - - core.ArtifactTag = (function() { - - /** - * Properties of an ArtifactTag. - * @memberof flyteidl.core - * @interface IArtifactTag - * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ArtifactTag artifactKey - * @property {flyteidl.core.ILabelValue|null} [value] ArtifactTag value - */ - - /** - * Constructs a new ArtifactTag. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactTag. - * @implements IArtifactTag - * @constructor - * @param {flyteidl.core.IArtifactTag=} [properties] Properties to set - */ - function ArtifactTag(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactTag artifactKey. - * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey - * @memberof flyteidl.core.ArtifactTag - * @instance - */ - ArtifactTag.prototype.artifactKey = null; - - /** - * ArtifactTag value. - * @member {flyteidl.core.ILabelValue|null|undefined} value - * @memberof flyteidl.core.ArtifactTag - * @instance - */ - ArtifactTag.prototype.value = null; - - /** - * Creates a new ArtifactTag instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {flyteidl.core.IArtifactTag=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactTag} ArtifactTag instance - */ - ArtifactTag.create = function create(properties) { - return new ArtifactTag(properties); - }; - - /** - * Encodes the specified ArtifactTag message. Does not implicitly {@link flyteidl.core.ArtifactTag.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {flyteidl.core.IArtifactTag} message ArtifactTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) - $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.LabelValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ArtifactTag message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactTag} ArtifactTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactTag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); - break; - case 2: - message.value = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactTag message. - * @function verify - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { - var error = $root.flyteidl.core.ArtifactKey.verify(message.artifactKey); - if (error) - return "artifactKey." + error; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.LabelValue.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return ArtifactTag; - })(); - - core.ArtifactQuery = (function() { - - /** - * Properties of an ArtifactQuery. - * @memberof flyteidl.core - * @interface IArtifactQuery - * @property {flyteidl.core.IArtifactID|null} [artifactId] ArtifactQuery artifactId - * @property {flyteidl.core.IArtifactTag|null} [artifactTag] ArtifactQuery artifactTag - * @property {string|null} [uri] ArtifactQuery uri - * @property {flyteidl.core.IArtifactBindingData|null} [binding] ArtifactQuery binding - */ - - /** - * Constructs a new ArtifactQuery. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactQuery. - * @implements IArtifactQuery - * @constructor - * @param {flyteidl.core.IArtifactQuery=} [properties] Properties to set - */ - function ArtifactQuery(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactQuery artifactId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactId - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.artifactId = null; - - /** - * ArtifactQuery artifactTag. - * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.artifactTag = null; - - /** - * ArtifactQuery uri. - * @member {string} uri - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.uri = ""; - - /** - * ArtifactQuery binding. - * @member {flyteidl.core.IArtifactBindingData|null|undefined} binding - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.binding = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArtifactQuery identifier. - * @member {"artifactId"|"artifactTag"|"uri"|"binding"|undefined} identifier - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - Object.defineProperty(ArtifactQuery.prototype, "identifier", { - get: $util.oneOfGetter($oneOfFields = ["artifactId", "artifactTag", "uri", "binding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ArtifactQuery instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {flyteidl.core.IArtifactQuery=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactQuery} ArtifactQuery instance - */ - ArtifactQuery.create = function create(properties) { - return new ArtifactQuery(properties); - }; - - /** - * Encodes the specified ArtifactQuery message. Does not implicitly {@link flyteidl.core.ArtifactQuery.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {flyteidl.core.IArtifactQuery} message ArtifactQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); - if (message.binding != null && message.hasOwnProperty("binding")) - $root.flyteidl.core.ArtifactBindingData.encode(message.binding, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ArtifactQuery message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactQuery} ArtifactQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactQuery.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactQuery(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - case 2: - message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); - break; - case 3: - message.uri = reader.string(); - break; - case 4: - message.binding = $root.flyteidl.core.ArtifactBindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactQuery message. - * @function verify - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactQuery.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - properties.identifier = 1; - { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); - if (error) - return "artifactId." + error; - } - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - if (properties.identifier === 1) - return "identifier: multiple values"; - properties.identifier = 1; - { - var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.identifier === 1) - return "identifier: multiple values"; - properties.identifier = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.binding != null && message.hasOwnProperty("binding")) { - if (properties.identifier === 1) - return "identifier: multiple values"; - properties.identifier = 1; - { - var error = $root.flyteidl.core.ArtifactBindingData.verify(message.binding); - if (error) - return "binding." + error; - } - } - return null; - }; - - return ArtifactQuery; - })(); - - /** - * ResourceType enum. - * @name flyteidl.core.ResourceType - * @enum {string} - * @property {number} UNSPECIFIED=0 UNSPECIFIED value - * @property {number} TASK=1 TASK value - * @property {number} WORKFLOW=2 WORKFLOW value - * @property {number} LAUNCH_PLAN=3 LAUNCH_PLAN value - * @property {number} DATASET=4 DATASET value - */ - core.ResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNSPECIFIED"] = 0; - values[valuesById[1] = "TASK"] = 1; - values[valuesById[2] = "WORKFLOW"] = 2; - values[valuesById[3] = "LAUNCH_PLAN"] = 3; - values[valuesById[4] = "DATASET"] = 4; - return values; - })(); - - core.Identifier = (function() { - - /** - * Properties of an Identifier. - * @memberof flyteidl.core - * @interface IIdentifier - * @property {flyteidl.core.ResourceType|null} [resourceType] Identifier resourceType - * @property {string|null} [project] Identifier project - * @property {string|null} [domain] Identifier domain - * @property {string|null} [name] Identifier name - * @property {string|null} [version] Identifier version - * @property {string|null} [org] Identifier org - */ - - /** - * Constructs a new Identifier. - * @memberof flyteidl.core - * @classdesc Represents an Identifier. - * @implements IIdentifier - * @constructor - * @param {flyteidl.core.IIdentifier=} [properties] Properties to set - */ - function Identifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Identifier resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.resourceType = 0; - - /** - * Identifier project. - * @member {string} project - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.project = ""; - - /** - * Identifier domain. - * @member {string} domain - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.domain = ""; - - /** - * Identifier name. - * @member {string} name - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.name = ""; - - /** - * Identifier version. - * @member {string} version - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.version = ""; - - /** - * Identifier org. - * @member {string} org - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.org = ""; - - /** - * Creates a new Identifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.Identifier - * @static - * @param {flyteidl.core.IIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.Identifier} Identifier instance - */ - Identifier.create = function create(properties) { - return new Identifier(properties); - }; - - /** - * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Identifier - * @static - * @param {flyteidl.core.IIdentifier} message Identifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Identifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); - return writer; - }; - - /** - * Decodes an Identifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Identifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Identifier} Identifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Identifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.project = reader.string(); - break; - case 3: - message.domain = reader.string(); - break; - case 4: - message.name = reader.string(); - break; - case 5: - message.version = reader.string(); - break; - case 6: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Identifier message. - * @function verify - * @memberof flyteidl.core.Identifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Identifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return Identifier; - })(); - - core.WorkflowExecutionIdentifier = (function() { - - /** - * Properties of a WorkflowExecutionIdentifier. - * @memberof flyteidl.core - * @interface IWorkflowExecutionIdentifier - * @property {string|null} [project] WorkflowExecutionIdentifier project - * @property {string|null} [domain] WorkflowExecutionIdentifier domain - * @property {string|null} [name] WorkflowExecutionIdentifier name - * @property {string|null} [org] WorkflowExecutionIdentifier org - */ - - /** - * Constructs a new WorkflowExecutionIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowExecutionIdentifier. - * @implements IWorkflowExecutionIdentifier - * @constructor - * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set - */ - function WorkflowExecutionIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionIdentifier project. - * @member {string} project - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.project = ""; - - /** - * WorkflowExecutionIdentifier domain. - * @member {string} domain - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.domain = ""; - - /** - * WorkflowExecutionIdentifier name. - * @member {string} name - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.name = ""; - - /** - * WorkflowExecutionIdentifier org. - * @member {string} org - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.org = ""; - - /** - * Creates a new WorkflowExecutionIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier instance - */ - WorkflowExecutionIdentifier.create = function create(properties) { - return new WorkflowExecutionIdentifier(properties); - }; - - /** - * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {flyteidl.core.IWorkflowExecutionIdentifier} message WorkflowExecutionIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); - return writer; - }; - - /** - * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecutionIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 4: - message.name = reader.string(); - break; - case 5: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionIdentifier message. - * @function verify - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return WorkflowExecutionIdentifier; - })(); - - core.NodeExecutionIdentifier = (function() { - - /** - * Properties of a NodeExecutionIdentifier. - * @memberof flyteidl.core - * @interface INodeExecutionIdentifier - * @property {string|null} [nodeId] NodeExecutionIdentifier nodeId - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] NodeExecutionIdentifier executionId - */ - - /** - * Constructs a new NodeExecutionIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a NodeExecutionIdentifier. - * @implements INodeExecutionIdentifier - * @constructor - * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set - */ - function NodeExecutionIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionIdentifier nodeId. - * @member {string} nodeId - * @memberof flyteidl.core.NodeExecutionIdentifier - * @instance - */ - NodeExecutionIdentifier.prototype.nodeId = ""; - - /** - * NodeExecutionIdentifier executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.core.NodeExecutionIdentifier - * @instance - */ - NodeExecutionIdentifier.prototype.executionId = null; - - /** - * Creates a new NodeExecutionIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier instance - */ - NodeExecutionIdentifier.create = function create(properties) { - return new NodeExecutionIdentifier(properties); - }; - - /** - * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {flyteidl.core.INodeExecutionIdentifier} message NodeExecutionIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecutionIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeId = reader.string(); - break; - case 2: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionIdentifier message. - * @function verify - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return NodeExecutionIdentifier; - })(); - - core.TaskExecutionIdentifier = (function() { - - /** - * Properties of a TaskExecutionIdentifier. - * @memberof flyteidl.core - * @interface ITaskExecutionIdentifier - * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionIdentifier taskId - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionIdentifier nodeExecutionId - * @property {number|null} [retryAttempt] TaskExecutionIdentifier retryAttempt - */ - - /** - * Constructs a new TaskExecutionIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a TaskExecutionIdentifier. - * @implements ITaskExecutionIdentifier - * @constructor - * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set - */ - function TaskExecutionIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionIdentifier taskId. - * @member {flyteidl.core.IIdentifier|null|undefined} taskId - * @memberof flyteidl.core.TaskExecutionIdentifier - * @instance - */ - TaskExecutionIdentifier.prototype.taskId = null; - - /** - * TaskExecutionIdentifier nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.core.TaskExecutionIdentifier - * @instance - */ - TaskExecutionIdentifier.prototype.nodeExecutionId = null; - - /** - * TaskExecutionIdentifier retryAttempt. - * @member {number} retryAttempt - * @memberof flyteidl.core.TaskExecutionIdentifier - * @instance - */ - TaskExecutionIdentifier.prototype.retryAttempt = 0; - - /** - * Creates a new TaskExecutionIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier instance - */ - TaskExecutionIdentifier.create = function create(properties) { - return new TaskExecutionIdentifier(properties); - }; - - /** - * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {flyteidl.core.ITaskExecutionIdentifier} message TaskExecutionIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskId != null && message.hasOwnProperty("taskId")) - $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); - return writer; - }; - - /** - * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecutionIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.retryAttempt = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionIdentifier message. - * @function verify - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) { - var error = $root.flyteidl.core.Identifier.verify(message.taskId); - if (error) - return "taskId." + error; - } - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - if (!$util.isInteger(message.retryAttempt)) - return "retryAttempt: integer expected"; - return null; - }; - - return TaskExecutionIdentifier; - })(); - - core.SignalIdentifier = (function() { - - /** - * Properties of a SignalIdentifier. - * @memberof flyteidl.core - * @interface ISignalIdentifier - * @property {string|null} [signalId] SignalIdentifier signalId - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] SignalIdentifier executionId - */ - - /** - * Constructs a new SignalIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a SignalIdentifier. - * @implements ISignalIdentifier - * @constructor - * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set - */ - function SignalIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalIdentifier signalId. - * @member {string} signalId - * @memberof flyteidl.core.SignalIdentifier - * @instance - */ - SignalIdentifier.prototype.signalId = ""; - - /** - * SignalIdentifier executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.core.SignalIdentifier - * @instance - */ - SignalIdentifier.prototype.executionId = null; - - /** - * Creates a new SignalIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier instance - */ - SignalIdentifier.create = function create(properties) { - return new SignalIdentifier(properties); - }; - - /** - * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {flyteidl.core.ISignalIdentifier} message SignalIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); - break; - case 2: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalIdentifier message. - * @function verify - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return SignalIdentifier; - })(); - - /** - * CatalogCacheStatus enum. - * @name flyteidl.core.CatalogCacheStatus - * @enum {string} - * @property {number} CACHE_DISABLED=0 CACHE_DISABLED value - * @property {number} CACHE_MISS=1 CACHE_MISS value - * @property {number} CACHE_HIT=2 CACHE_HIT value - * @property {number} CACHE_POPULATED=3 CACHE_POPULATED value - * @property {number} CACHE_LOOKUP_FAILURE=4 CACHE_LOOKUP_FAILURE value - * @property {number} CACHE_PUT_FAILURE=5 CACHE_PUT_FAILURE value - * @property {number} CACHE_SKIPPED=6 CACHE_SKIPPED value - * @property {number} CACHE_EVICTED=7 CACHE_EVICTED value - */ - core.CatalogCacheStatus = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CACHE_DISABLED"] = 0; - values[valuesById[1] = "CACHE_MISS"] = 1; - values[valuesById[2] = "CACHE_HIT"] = 2; - values[valuesById[3] = "CACHE_POPULATED"] = 3; - values[valuesById[4] = "CACHE_LOOKUP_FAILURE"] = 4; - values[valuesById[5] = "CACHE_PUT_FAILURE"] = 5; - values[valuesById[6] = "CACHE_SKIPPED"] = 6; - values[valuesById[7] = "CACHE_EVICTED"] = 7; - return values; - })(); - - core.CatalogArtifactTag = (function() { - - /** - * Properties of a CatalogArtifactTag. - * @memberof flyteidl.core - * @interface ICatalogArtifactTag - * @property {string|null} [artifactId] CatalogArtifactTag artifactId - * @property {string|null} [name] CatalogArtifactTag name - */ - - /** - * Constructs a new CatalogArtifactTag. - * @memberof flyteidl.core - * @classdesc Represents a CatalogArtifactTag. - * @implements ICatalogArtifactTag - * @constructor - * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set - */ - function CatalogArtifactTag(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CatalogArtifactTag artifactId. - * @member {string} artifactId - * @memberof flyteidl.core.CatalogArtifactTag - * @instance - */ - CatalogArtifactTag.prototype.artifactId = ""; - - /** - * CatalogArtifactTag name. - * @member {string} name - * @memberof flyteidl.core.CatalogArtifactTag - * @instance - */ - CatalogArtifactTag.prototype.name = ""; - - /** - * Creates a new CatalogArtifactTag instance using the specified properties. - * @function create - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set - * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag instance - */ - CatalogArtifactTag.create = function create(properties) { - return new CatalogArtifactTag(properties); - }; - - /** - * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {flyteidl.core.ICatalogArtifactTag} message CatalogArtifactTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CatalogArtifactTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - return writer; - }; - - /** - * Decodes a CatalogArtifactTag message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CatalogArtifactTag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogArtifactTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactId = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CatalogArtifactTag message. - * @function verify - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CatalogArtifactTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return CatalogArtifactTag; - })(); - - core.CatalogMetadata = (function() { - - /** - * Properties of a CatalogMetadata. - * @memberof flyteidl.core - * @interface ICatalogMetadata - * @property {flyteidl.core.IIdentifier|null} [datasetId] CatalogMetadata datasetId - * @property {flyteidl.core.ICatalogArtifactTag|null} [artifactTag] CatalogMetadata artifactTag - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [sourceTaskExecution] CatalogMetadata sourceTaskExecution - */ - - /** - * Constructs a new CatalogMetadata. - * @memberof flyteidl.core - * @classdesc Represents a CatalogMetadata. - * @implements ICatalogMetadata - * @constructor - * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set - */ - function CatalogMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CatalogMetadata datasetId. - * @member {flyteidl.core.IIdentifier|null|undefined} datasetId - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - CatalogMetadata.prototype.datasetId = null; - - /** - * CatalogMetadata artifactTag. - * @member {flyteidl.core.ICatalogArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - CatalogMetadata.prototype.artifactTag = null; - - /** - * CatalogMetadata sourceTaskExecution. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} sourceTaskExecution - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - CatalogMetadata.prototype.sourceTaskExecution = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CatalogMetadata sourceExecution. - * @member {"sourceTaskExecution"|undefined} sourceExecution - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - Object.defineProperty(CatalogMetadata.prototype, "sourceExecution", { - get: $util.oneOfGetter($oneOfFields = ["sourceTaskExecution"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CatalogMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set - * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata instance - */ - CatalogMetadata.create = function create(properties) { - return new CatalogMetadata(properties); - }; - - /** - * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {flyteidl.core.ICatalogMetadata} message CatalogMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CatalogMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - $root.flyteidl.core.Identifier.encode(message.datasetId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.CatalogArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.sourceTaskExecution, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CatalogMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CatalogMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.datasetId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.artifactTag = $root.flyteidl.core.CatalogArtifactTag.decode(reader, reader.uint32()); - break; - case 3: - message.sourceTaskExecution = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CatalogMetadata message. - * @function verify - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CatalogMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.datasetId != null && message.hasOwnProperty("datasetId")) { - var error = $root.flyteidl.core.Identifier.verify(message.datasetId); - if (error) - return "datasetId." + error; - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - var error = $root.flyteidl.core.CatalogArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } - if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) { - properties.sourceExecution = 1; - { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.sourceTaskExecution); - if (error) - return "sourceTaskExecution." + error; - } - } - return null; - }; - - return CatalogMetadata; - })(); - - core.CatalogReservation = (function() { - - /** - * Properties of a CatalogReservation. - * @memberof flyteidl.core - * @interface ICatalogReservation - */ - - /** - * Constructs a new CatalogReservation. - * @memberof flyteidl.core - * @classdesc Represents a CatalogReservation. - * @implements ICatalogReservation - * @constructor - * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set - */ - function CatalogReservation(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new CatalogReservation instance using the specified properties. - * @function create - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set - * @returns {flyteidl.core.CatalogReservation} CatalogReservation instance - */ - CatalogReservation.create = function create(properties) { - return new CatalogReservation(properties); - }; - - /** - * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {flyteidl.core.ICatalogReservation} message CatalogReservation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CatalogReservation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a CatalogReservation message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CatalogReservation} CatalogReservation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CatalogReservation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogReservation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CatalogReservation message. - * @function verify - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CatalogReservation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Status enum. - * @name flyteidl.core.CatalogReservation.Status - * @enum {string} - * @property {number} RESERVATION_DISABLED=0 RESERVATION_DISABLED value - * @property {number} RESERVATION_ACQUIRED=1 RESERVATION_ACQUIRED value - * @property {number} RESERVATION_EXISTS=2 RESERVATION_EXISTS value - * @property {number} RESERVATION_RELEASED=3 RESERVATION_RELEASED value - * @property {number} RESERVATION_FAILURE=4 RESERVATION_FAILURE value - */ - CatalogReservation.Status = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESERVATION_DISABLED"] = 0; - values[valuesById[1] = "RESERVATION_ACQUIRED"] = 1; - values[valuesById[2] = "RESERVATION_EXISTS"] = 2; - values[valuesById[3] = "RESERVATION_RELEASED"] = 3; - values[valuesById[4] = "RESERVATION_FAILURE"] = 4; - return values; - })(); - - return CatalogReservation; - })(); - - core.ConnectionSet = (function() { - - /** - * Properties of a ConnectionSet. - * @memberof flyteidl.core - * @interface IConnectionSet - * @property {Object.|null} [downstream] ConnectionSet downstream - * @property {Object.|null} [upstream] ConnectionSet upstream - */ - - /** - * Constructs a new ConnectionSet. - * @memberof flyteidl.core - * @classdesc Represents a ConnectionSet. - * @implements IConnectionSet - * @constructor - * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set - */ - function ConnectionSet(properties) { - this.downstream = {}; - this.upstream = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ConnectionSet downstream. - * @member {Object.} downstream - * @memberof flyteidl.core.ConnectionSet - * @instance - */ - ConnectionSet.prototype.downstream = $util.emptyObject; - - /** - * ConnectionSet upstream. - * @member {Object.} upstream - * @memberof flyteidl.core.ConnectionSet - * @instance - */ - ConnectionSet.prototype.upstream = $util.emptyObject; - - /** - * Creates a new ConnectionSet instance using the specified properties. - * @function create - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set - * @returns {flyteidl.core.ConnectionSet} ConnectionSet instance - */ - ConnectionSet.create = function create(properties) { - return new ConnectionSet(properties); - }; - - /** - * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {flyteidl.core.IConnectionSet} message ConnectionSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConnectionSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.downstream != null && message.hasOwnProperty("downstream")) - for (var keys = Object.keys(message.downstream), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.ConnectionSet.IdList.encode(message.downstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.upstream != null && message.hasOwnProperty("upstream")) - for (var keys = Object.keys(message.upstream), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.ConnectionSet.IdList.encode(message.upstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a ConnectionSet message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConnectionSet} ConnectionSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConnectionSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 7: - reader.skip().pos++; - if (message.downstream === $util.emptyObject) - message.downstream = {}; - key = reader.string(); - reader.pos++; - message.downstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); - break; - case 8: - reader.skip().pos++; - if (message.upstream === $util.emptyObject) - message.upstream = {}; - key = reader.string(); - reader.pos++; - message.upstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ConnectionSet message. - * @function verify - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConnectionSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.downstream != null && message.hasOwnProperty("downstream")) { - if (!$util.isObject(message.downstream)) - return "downstream: object expected"; - var key = Object.keys(message.downstream); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.downstream[key[i]]); - if (error) - return "downstream." + error; - } - } - if (message.upstream != null && message.hasOwnProperty("upstream")) { - if (!$util.isObject(message.upstream)) - return "upstream: object expected"; - var key = Object.keys(message.upstream); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.upstream[key[i]]); - if (error) - return "upstream." + error; - } - } - return null; - }; - - ConnectionSet.IdList = (function() { - - /** - * Properties of an IdList. - * @memberof flyteidl.core.ConnectionSet - * @interface IIdList - * @property {Array.|null} [ids] IdList ids - */ - - /** - * Constructs a new IdList. - * @memberof flyteidl.core.ConnectionSet - * @classdesc Represents an IdList. - * @implements IIdList - * @constructor - * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set - */ - function IdList(properties) { - this.ids = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IdList ids. - * @member {Array.} ids - * @memberof flyteidl.core.ConnectionSet.IdList - * @instance - */ - IdList.prototype.ids = $util.emptyArray; - - /** - * Creates a new IdList instance using the specified properties. - * @function create - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set - * @returns {flyteidl.core.ConnectionSet.IdList} IdList instance - */ - IdList.create = function create(properties) { - return new IdList(properties); - }; - - /** - * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {flyteidl.core.ConnectionSet.IIdList} message IdList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IdList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); - return writer; - }; - - /** - * Decodes an IdList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConnectionSet.IdList} IdList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IdList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet.IdList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an IdList message. - * @function verify - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IdList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) - if (!$util.isString(message.ids[i])) - return "ids: string[] expected"; - } - return null; - }; - - return IdList; - })(); - - return ConnectionSet; - })(); - - core.CompiledWorkflow = (function() { - - /** - * Properties of a CompiledWorkflow. - * @memberof flyteidl.core - * @interface ICompiledWorkflow - * @property {flyteidl.core.IWorkflowTemplate|null} [template] CompiledWorkflow template - * @property {flyteidl.core.IConnectionSet|null} [connections] CompiledWorkflow connections - */ - - /** - * Constructs a new CompiledWorkflow. - * @memberof flyteidl.core - * @classdesc Represents a CompiledWorkflow. - * @implements ICompiledWorkflow - * @constructor - * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set - */ - function CompiledWorkflow(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledWorkflow template. - * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template - * @memberof flyteidl.core.CompiledWorkflow - * @instance - */ - CompiledWorkflow.prototype.template = null; - - /** - * CompiledWorkflow connections. - * @member {flyteidl.core.IConnectionSet|null|undefined} connections - * @memberof flyteidl.core.CompiledWorkflow - * @instance - */ - CompiledWorkflow.prototype.connections = null; - - /** - * Creates a new CompiledWorkflow instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set - * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow instance - */ - CompiledWorkflow.create = function create(properties) { - return new CompiledWorkflow(properties); - }; - - /** - * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {flyteidl.core.ICompiledWorkflow} message CompiledWorkflow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledWorkflow.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.connections != null && message.hasOwnProperty("connections")) - $root.flyteidl.core.ConnectionSet.encode(message.connections, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledWorkflow message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledWorkflow.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflow(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); - break; - case 2: - message.connections = $root.flyteidl.core.ConnectionSet.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledWorkflow message. - * @function verify - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledWorkflow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.connections != null && message.hasOwnProperty("connections")) { - var error = $root.flyteidl.core.ConnectionSet.verify(message.connections); - if (error) - return "connections." + error; - } - return null; - }; - - return CompiledWorkflow; - })(); - - core.CompiledLaunchPlan = (function() { - - /** - * Properties of a CompiledLaunchPlan. - * @memberof flyteidl.core - * @interface ICompiledLaunchPlan - * @property {flyteidl.core.ILaunchPlanTemplate|null} [template] CompiledLaunchPlan template - */ - - /** - * Constructs a new CompiledLaunchPlan. - * @memberof flyteidl.core - * @classdesc Represents a CompiledLaunchPlan. - * @implements ICompiledLaunchPlan - * @constructor - * @param {flyteidl.core.ICompiledLaunchPlan=} [properties] Properties to set - */ - function CompiledLaunchPlan(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledLaunchPlan template. - * @member {flyteidl.core.ILaunchPlanTemplate|null|undefined} template - * @memberof flyteidl.core.CompiledLaunchPlan - * @instance - */ - CompiledLaunchPlan.prototype.template = null; - - /** - * Creates a new CompiledLaunchPlan instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledLaunchPlan - * @static - * @param {flyteidl.core.ICompiledLaunchPlan=} [properties] Properties to set - * @returns {flyteidl.core.CompiledLaunchPlan} CompiledLaunchPlan instance - */ - CompiledLaunchPlan.create = function create(properties) { - return new CompiledLaunchPlan(properties); - }; - - /** - * Encodes the specified CompiledLaunchPlan message. Does not implicitly {@link flyteidl.core.CompiledLaunchPlan.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledLaunchPlan - * @static - * @param {flyteidl.core.ICompiledLaunchPlan} message CompiledLaunchPlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledLaunchPlan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.LaunchPlanTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledLaunchPlan message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledLaunchPlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledLaunchPlan} CompiledLaunchPlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledLaunchPlan.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledLaunchPlan(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.LaunchPlanTemplate.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledLaunchPlan message. - * @function verify - * @memberof flyteidl.core.CompiledLaunchPlan - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledLaunchPlan.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.LaunchPlanTemplate.verify(message.template); - if (error) - return "template." + error; - } - return null; - }; - - return CompiledLaunchPlan; - })(); - - core.CompiledTask = (function() { - - /** - * Properties of a CompiledTask. - * @memberof flyteidl.core - * @interface ICompiledTask - * @property {flyteidl.core.ITaskTemplate|null} [template] CompiledTask template - */ - - /** - * Constructs a new CompiledTask. - * @memberof flyteidl.core - * @classdesc Represents a CompiledTask. - * @implements ICompiledTask - * @constructor - * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set - */ - function CompiledTask(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledTask template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.core.CompiledTask - * @instance - */ - CompiledTask.prototype.template = null; - - /** - * Creates a new CompiledTask instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledTask - * @static - * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set - * @returns {flyteidl.core.CompiledTask} CompiledTask instance - */ - CompiledTask.create = function create(properties) { - return new CompiledTask(properties); - }; - - /** - * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledTask - * @static - * @param {flyteidl.core.ICompiledTask} message CompiledTask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledTask.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledTask message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledTask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledTask} CompiledTask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledTask.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledTask(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledTask message. - * @function verify - * @memberof flyteidl.core.CompiledTask - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledTask.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - return null; - }; - - return CompiledTask; - })(); - - core.CompiledWorkflowClosure = (function() { - - /** - * Properties of a CompiledWorkflowClosure. - * @memberof flyteidl.core - * @interface ICompiledWorkflowClosure - * @property {flyteidl.core.ICompiledWorkflow|null} [primary] CompiledWorkflowClosure primary - * @property {Array.|null} [subWorkflows] CompiledWorkflowClosure subWorkflows - * @property {Array.|null} [tasks] CompiledWorkflowClosure tasks - * @property {Array.|null} [launchPlans] CompiledWorkflowClosure launchPlans - */ - - /** - * Constructs a new CompiledWorkflowClosure. - * @memberof flyteidl.core - * @classdesc Represents a CompiledWorkflowClosure. - * @implements ICompiledWorkflowClosure - * @constructor - * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set - */ - function CompiledWorkflowClosure(properties) { - this.subWorkflows = []; - this.tasks = []; - this.launchPlans = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledWorkflowClosure primary. - * @member {flyteidl.core.ICompiledWorkflow|null|undefined} primary - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.primary = null; - - /** - * CompiledWorkflowClosure subWorkflows. - * @member {Array.} subWorkflows - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.subWorkflows = $util.emptyArray; - - /** - * CompiledWorkflowClosure tasks. - * @member {Array.} tasks - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.tasks = $util.emptyArray; - - /** - * CompiledWorkflowClosure launchPlans. - * @member {Array.} launchPlans - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.launchPlans = $util.emptyArray; - - /** - * Creates a new CompiledWorkflowClosure instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure instance - */ - CompiledWorkflowClosure.create = function create(properties) { - return new CompiledWorkflowClosure(properties); - }; - - /** - * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {flyteidl.core.ICompiledWorkflowClosure} message CompiledWorkflowClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledWorkflowClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.primary != null && message.hasOwnProperty("primary")) - $root.flyteidl.core.CompiledWorkflow.encode(message.primary, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflows != null && message.subWorkflows.length) - for (var i = 0; i < message.subWorkflows.length; ++i) - $root.flyteidl.core.CompiledWorkflow.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.core.CompiledTask.encode(message.tasks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.launchPlans != null && message.launchPlans.length) - for (var i = 0; i < message.launchPlans.length; ++i) - $root.flyteidl.core.CompiledLaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledWorkflowClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflowClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primary = $root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.subWorkflows && message.subWorkflows.length)) - message.subWorkflows = []; - message.subWorkflows.push($root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.core.CompiledTask.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.launchPlans && message.launchPlans.length)) - message.launchPlans = []; - message.launchPlans.push($root.flyteidl.core.CompiledLaunchPlan.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledWorkflowClosure message. - * @function verify - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledWorkflowClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.primary != null && message.hasOwnProperty("primary")) { - var error = $root.flyteidl.core.CompiledWorkflow.verify(message.primary); - if (error) - return "primary." + error; - } - if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { - if (!Array.isArray(message.subWorkflows)) - return "subWorkflows: array expected"; - for (var i = 0; i < message.subWorkflows.length; ++i) { - var error = $root.flyteidl.core.CompiledWorkflow.verify(message.subWorkflows[i]); - if (error) - return "subWorkflows." + error; - } - } - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.core.CompiledTask.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { - if (!Array.isArray(message.launchPlans)) - return "launchPlans: array expected"; - for (var i = 0; i < message.launchPlans.length; ++i) { - var error = $root.flyteidl.core.CompiledLaunchPlan.verify(message.launchPlans[i]); - if (error) - return "launchPlans." + error; - } - } - return null; - }; - - return CompiledWorkflowClosure; - })(); - - core.Variable = (function() { - - /** - * Properties of a Variable. - * @memberof flyteidl.core - * @interface IVariable - * @property {flyteidl.core.ILiteralType|null} [type] Variable type - * @property {string|null} [description] Variable description - * @property {flyteidl.core.IArtifactID|null} [artifactPartialId] Variable artifactPartialId - * @property {flyteidl.core.IArtifactTag|null} [artifactTag] Variable artifactTag - */ - - /** - * Constructs a new Variable. - * @memberof flyteidl.core - * @classdesc Represents a Variable. - * @implements IVariable - * @constructor - * @param {flyteidl.core.IVariable=} [properties] Properties to set - */ - function Variable(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Variable type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.type = null; - - /** - * Variable description. - * @member {string} description - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.description = ""; - - /** - * Variable artifactPartialId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactPartialId - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.artifactPartialId = null; - - /** - * Variable artifactTag. - * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.artifactTag = null; - - /** - * Creates a new Variable instance using the specified properties. - * @function create - * @memberof flyteidl.core.Variable - * @static - * @param {flyteidl.core.IVariable=} [properties] Properties to set - * @returns {flyteidl.core.Variable} Variable instance - */ - Variable.create = function create(properties) { - return new Variable(properties); - }; - - /** - * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Variable - * @static - * @param {flyteidl.core.IVariable} message Variable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variable.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactPartialId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Variable message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Variable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Variable} Variable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variable.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.artifactPartialId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - case 4: - message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Variable message. - * @function verify - * @memberof flyteidl.core.Variable - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Variable.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactPartialId); - if (error) - return "artifactPartialId." + error; - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } - return null; - }; - - return Variable; - })(); - - core.VariableMap = (function() { - - /** - * Properties of a VariableMap. - * @memberof flyteidl.core - * @interface IVariableMap - * @property {Object.|null} [variables] VariableMap variables - */ - - /** - * Constructs a new VariableMap. - * @memberof flyteidl.core - * @classdesc Represents a VariableMap. - * @implements IVariableMap - * @constructor - * @param {flyteidl.core.IVariableMap=} [properties] Properties to set - */ - function VariableMap(properties) { - this.variables = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VariableMap variables. - * @member {Object.} variables - * @memberof flyteidl.core.VariableMap - * @instance - */ - VariableMap.prototype.variables = $util.emptyObject; - - /** - * Creates a new VariableMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.VariableMap - * @static - * @param {flyteidl.core.IVariableMap=} [properties] Properties to set - * @returns {flyteidl.core.VariableMap} VariableMap instance - */ - VariableMap.create = function create(properties) { - return new VariableMap(properties); - }; - - /** - * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.VariableMap - * @static - * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VariableMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variables != null && message.hasOwnProperty("variables")) - for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a VariableMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.VariableMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.VariableMap} VariableMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VariableMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.variables === $util.emptyObject) - message.variables = {}; - key = reader.string(); - reader.pos++; - message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a VariableMap message. - * @function verify - * @memberof flyteidl.core.VariableMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VariableMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variables != null && message.hasOwnProperty("variables")) { - if (!$util.isObject(message.variables)) - return "variables: object expected"; - var key = Object.keys(message.variables); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); - if (error) - return "variables." + error; - } - } - return null; - }; - - return VariableMap; - })(); - - core.TypedInterface = (function() { - - /** - * Properties of a TypedInterface. - * @memberof flyteidl.core - * @interface ITypedInterface - * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs - * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs - */ - - /** - * Constructs a new TypedInterface. - * @memberof flyteidl.core - * @classdesc Represents a TypedInterface. - * @implements ITypedInterface - * @constructor - * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set - */ - function TypedInterface(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TypedInterface inputs. - * @member {flyteidl.core.IVariableMap|null|undefined} inputs - * @memberof flyteidl.core.TypedInterface - * @instance - */ - TypedInterface.prototype.inputs = null; - - /** - * TypedInterface outputs. - * @member {flyteidl.core.IVariableMap|null|undefined} outputs - * @memberof flyteidl.core.TypedInterface - * @instance - */ - TypedInterface.prototype.outputs = null; - - /** - * Creates a new TypedInterface instance using the specified properties. - * @function create - * @memberof flyteidl.core.TypedInterface - * @static - * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set - * @returns {flyteidl.core.TypedInterface} TypedInterface instance - */ - TypedInterface.create = function create(properties) { - return new TypedInterface(properties); - }; - - /** - * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TypedInterface - * @static - * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypedInterface.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TypedInterface message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TypedInterface - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypedInterface} TypedInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypedInterface.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TypedInterface message. - * @function verify - * @memberof flyteidl.core.TypedInterface - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TypedInterface.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - return null; - }; - - return TypedInterface; - })(); - - core.Parameter = (function() { - - /** - * Properties of a Parameter. - * @memberof flyteidl.core - * @interface IParameter - * @property {flyteidl.core.IVariable|null} ["var"] Parameter var - * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default - * @property {boolean|null} [required] Parameter required - * @property {flyteidl.core.IArtifactQuery|null} [artifactQuery] Parameter artifactQuery - * @property {flyteidl.core.IArtifactID|null} [artifactId] Parameter artifactId - */ - - /** - * Constructs a new Parameter. - * @memberof flyteidl.core - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {flyteidl.core.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Parameter var. - * @member {flyteidl.core.IVariable|null|undefined} var - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype["var"] = null; - - /** - * Parameter default. - * @member {flyteidl.core.ILiteral|null|undefined} default - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype["default"] = null; - - /** - * Parameter required. - * @member {boolean} required - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.required = false; - - /** - * Parameter artifactQuery. - * @member {flyteidl.core.IArtifactQuery|null|undefined} artifactQuery - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.artifactQuery = null; - - /** - * Parameter artifactId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactId - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Parameter behavior. - * @member {"default"|"required"|"artifactQuery"|"artifactId"|undefined} behavior - * @memberof flyteidl.core.Parameter - * @instance - */ - Object.defineProperty(Parameter.prototype, "behavior", { - get: $util.oneOfGetter($oneOfFields = ["default", "required", "artifactQuery", "artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof flyteidl.core.Parameter - * @static - * @param {flyteidl.core.IParameter=} [properties] Properties to set - * @returns {flyteidl.core.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Parameter - * @static - * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["default"] != null && message.hasOwnProperty("default")) - $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.required != null && message.hasOwnProperty("required")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); - if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) - $root.flyteidl.core.ArtifactQuery.encode(message.artifactQuery, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); - break; - case 2: - message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - case 3: - message.required = reader.bool(); - break; - case 4: - message.artifactQuery = $root.flyteidl.core.ArtifactQuery.decode(reader, reader.uint32()); - break; - case 5: - message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Parameter message. - * @function verify - * @memberof flyteidl.core.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message["var"] != null && message.hasOwnProperty("var")) { - var error = $root.flyteidl.core.Variable.verify(message["var"]); - if (error) - return "var." + error; - } - if (message["default"] != null && message.hasOwnProperty("default")) { - properties.behavior = 1; - { - var error = $root.flyteidl.core.Literal.verify(message["default"]); - if (error) - return "default." + error; - } - } - if (message.required != null && message.hasOwnProperty("required")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - if (typeof message.required !== "boolean") - return "required: boolean expected"; - } - if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - { - var error = $root.flyteidl.core.ArtifactQuery.verify(message.artifactQuery); - if (error) - return "artifactQuery." + error; - } - } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); - if (error) - return "artifactId." + error; - } - } - return null; - }; - - return Parameter; - })(); - - core.ParameterMap = (function() { - - /** - * Properties of a ParameterMap. - * @memberof flyteidl.core - * @interface IParameterMap - * @property {Object.|null} [parameters] ParameterMap parameters - */ - - /** - * Constructs a new ParameterMap. - * @memberof flyteidl.core - * @classdesc Represents a ParameterMap. - * @implements IParameterMap - * @constructor - * @param {flyteidl.core.IParameterMap=} [properties] Properties to set - */ - function ParameterMap(properties) { - this.parameters = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParameterMap parameters. - * @member {Object.} parameters - * @memberof flyteidl.core.ParameterMap - * @instance - */ - ParameterMap.prototype.parameters = $util.emptyObject; - - /** - * Creates a new ParameterMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.ParameterMap - * @static - * @param {flyteidl.core.IParameterMap=} [properties] Properties to set - * @returns {flyteidl.core.ParameterMap} ParameterMap instance - */ - ParameterMap.create = function create(properties) { - return new ParameterMap(properties); - }; - - /** - * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ParameterMap - * @static - * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && message.hasOwnProperty("parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a ParameterMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ParameterMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ParameterMap} ParameterMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.parameters === $util.emptyObject) - message.parameters = {}; - key = reader.string(); - reader.pos++; - message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ParameterMap message. - * @function verify - * @memberof flyteidl.core.ParameterMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - return null; - }; - - return ParameterMap; - })(); - - /** - * SimpleType enum. - * @name flyteidl.core.SimpleType - * @enum {string} - * @property {number} NONE=0 NONE value - * @property {number} INTEGER=1 INTEGER value - * @property {number} FLOAT=2 FLOAT value - * @property {number} STRING=3 STRING value - * @property {number} BOOLEAN=4 BOOLEAN value - * @property {number} DATETIME=5 DATETIME value - * @property {number} DURATION=6 DURATION value - * @property {number} BINARY=7 BINARY value - * @property {number} ERROR=8 ERROR value - * @property {number} STRUCT=9 STRUCT value - */ - core.SimpleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "INTEGER"] = 1; - values[valuesById[2] = "FLOAT"] = 2; - values[valuesById[3] = "STRING"] = 3; - values[valuesById[4] = "BOOLEAN"] = 4; - values[valuesById[5] = "DATETIME"] = 5; - values[valuesById[6] = "DURATION"] = 6; - values[valuesById[7] = "BINARY"] = 7; - values[valuesById[8] = "ERROR"] = 8; - values[valuesById[9] = "STRUCT"] = 9; - return values; - })(); - - core.SchemaType = (function() { - - /** - * Properties of a SchemaType. - * @memberof flyteidl.core - * @interface ISchemaType - * @property {Array.|null} [columns] SchemaType columns - */ - - /** - * Constructs a new SchemaType. - * @memberof flyteidl.core - * @classdesc Represents a SchemaType. - * @implements ISchemaType - * @constructor - * @param {flyteidl.core.ISchemaType=} [properties] Properties to set - */ - function SchemaType(properties) { - this.columns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SchemaType columns. - * @member {Array.} columns - * @memberof flyteidl.core.SchemaType - * @instance - */ - SchemaType.prototype.columns = $util.emptyArray; - - /** - * Creates a new SchemaType instance using the specified properties. - * @function create - * @memberof flyteidl.core.SchemaType - * @static - * @param {flyteidl.core.ISchemaType=} [properties] Properties to set - * @returns {flyteidl.core.SchemaType} SchemaType instance - */ - SchemaType.create = function create(properties) { - return new SchemaType(properties); - }; - - /** - * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SchemaType - * @static - * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchemaType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SchemaType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SchemaType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SchemaType} SchemaType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchemaType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SchemaType message. - * @function verify - * @memberof flyteidl.core.SchemaType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchemaType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - return null; - }; - - SchemaType.SchemaColumn = (function() { - - /** - * Properties of a SchemaColumn. - * @memberof flyteidl.core.SchemaType - * @interface ISchemaColumn - * @property {string|null} [name] SchemaColumn name - * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type - */ - - /** - * Constructs a new SchemaColumn. - * @memberof flyteidl.core.SchemaType - * @classdesc Represents a SchemaColumn. - * @implements ISchemaColumn - * @constructor - * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set - */ - function SchemaColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SchemaColumn name. - * @member {string} name - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @instance - */ - SchemaColumn.prototype.name = ""; - - /** - * SchemaColumn type. - * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @instance - */ - SchemaColumn.prototype.type = 0; - - /** - * Creates a new SchemaColumn instance using the specified properties. - * @function create - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set - * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance - */ - SchemaColumn.create = function create(properties) { - return new SchemaColumn(properties); - }; - - /** - * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchemaColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - return writer; - }; - - /** - * Decodes a SchemaColumn message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchemaColumn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SchemaColumn message. - * @function verify - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchemaColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * SchemaColumnType enum. - * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType - * @enum {string} - * @property {number} INTEGER=0 INTEGER value - * @property {number} FLOAT=1 FLOAT value - * @property {number} STRING=2 STRING value - * @property {number} BOOLEAN=3 BOOLEAN value - * @property {number} DATETIME=4 DATETIME value - * @property {number} DURATION=5 DURATION value - */ - SchemaColumn.SchemaColumnType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTEGER"] = 0; - values[valuesById[1] = "FLOAT"] = 1; - values[valuesById[2] = "STRING"] = 2; - values[valuesById[3] = "BOOLEAN"] = 3; - values[valuesById[4] = "DATETIME"] = 4; - values[valuesById[5] = "DURATION"] = 5; - return values; - })(); - - return SchemaColumn; - })(); - - return SchemaType; - })(); - - core.StructuredDatasetType = (function() { - - /** - * Properties of a StructuredDatasetType. - * @memberof flyteidl.core - * @interface IStructuredDatasetType - * @property {Array.|null} [columns] StructuredDatasetType columns - * @property {string|null} [format] StructuredDatasetType format - * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType - * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes - */ - - /** - * Constructs a new StructuredDatasetType. - * @memberof flyteidl.core - * @classdesc Represents a StructuredDatasetType. - * @implements IStructuredDatasetType - * @constructor - * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set - */ - function StructuredDatasetType(properties) { - this.columns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StructuredDatasetType columns. - * @member {Array.} columns - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.columns = $util.emptyArray; - - /** - * StructuredDatasetType format. - * @member {string} format - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.format = ""; - - /** - * StructuredDatasetType externalSchemaType. - * @member {string} externalSchemaType - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.externalSchemaType = ""; - - /** - * StructuredDatasetType externalSchemaBytes. - * @member {Uint8Array} externalSchemaBytes - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]); - - /** - * Creates a new StructuredDatasetType instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance - */ - StructuredDatasetType.create = function create(properties) { - return new StructuredDatasetType(properties); - }; - - /** - * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StructuredDatasetType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.format); - if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType); - if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes); - return writer; - }; - - /** - * Decodes a StructuredDatasetType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StructuredDatasetType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32())); - break; - case 2: - message.format = reader.string(); - break; - case 3: - message.externalSchemaType = reader.string(); - break; - case 4: - message.externalSchemaBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StructuredDatasetType message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StructuredDatasetType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) - if (!$util.isString(message.externalSchemaType)) - return "externalSchemaType: string expected"; - if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) - if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes))) - return "externalSchemaBytes: buffer expected"; - return null; - }; - - StructuredDatasetType.DatasetColumn = (function() { - - /** - * Properties of a DatasetColumn. - * @memberof flyteidl.core.StructuredDatasetType - * @interface IDatasetColumn - * @property {string|null} [name] DatasetColumn name - * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType - */ - - /** - * Constructs a new DatasetColumn. - * @memberof flyteidl.core.StructuredDatasetType - * @classdesc Represents a DatasetColumn. - * @implements IDatasetColumn - * @constructor - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set - */ - function DatasetColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DatasetColumn name. - * @member {string} name - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @instance - */ - DatasetColumn.prototype.name = ""; - - /** - * DatasetColumn literalType. - * @member {flyteidl.core.ILiteralType|null|undefined} literalType - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @instance - */ - DatasetColumn.prototype.literalType = null; - - /** - * Creates a new DatasetColumn instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance - */ - DatasetColumn.create = function create(properties) { - return new DatasetColumn(properties); - }; - - /** - * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DatasetColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.literalType != null && message.hasOwnProperty("literalType")) - $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DatasetColumn message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DatasetColumn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DatasetColumn message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DatasetColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.literalType != null && message.hasOwnProperty("literalType")) { - var error = $root.flyteidl.core.LiteralType.verify(message.literalType); - if (error) - return "literalType." + error; - } - return null; - }; - - return DatasetColumn; - })(); - - return StructuredDatasetType; - })(); - - core.BlobType = (function() { - - /** - * Properties of a BlobType. - * @memberof flyteidl.core - * @interface IBlobType - * @property {string|null} [format] BlobType format - * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality - */ - - /** - * Constructs a new BlobType. - * @memberof flyteidl.core - * @classdesc Represents a BlobType. - * @implements IBlobType - * @constructor - * @param {flyteidl.core.IBlobType=} [properties] Properties to set - */ - function BlobType(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BlobType format. - * @member {string} format - * @memberof flyteidl.core.BlobType - * @instance - */ - BlobType.prototype.format = ""; - - /** - * BlobType dimensionality. - * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality - * @memberof flyteidl.core.BlobType - * @instance - */ - BlobType.prototype.dimensionality = 0; - - /** - * Creates a new BlobType instance using the specified properties. - * @function create - * @memberof flyteidl.core.BlobType - * @static - * @param {flyteidl.core.IBlobType=} [properties] Properties to set - * @returns {flyteidl.core.BlobType} BlobType instance - */ - BlobType.create = function create(properties) { - return new BlobType(properties); - }; - - /** - * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BlobType - * @static - * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlobType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); - if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); - return writer; - }; - - /** - * Decodes a BlobType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BlobType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BlobType} BlobType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlobType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.format = reader.string(); - break; - case 2: - message.dimensionality = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BlobType message. - * @function verify - * @memberof flyteidl.core.BlobType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlobType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) - switch (message.dimensionality) { - default: - return "dimensionality: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * BlobDimensionality enum. - * @name flyteidl.core.BlobType.BlobDimensionality - * @enum {string} - * @property {number} SINGLE=0 SINGLE value - * @property {number} MULTIPART=1 MULTIPART value - */ - BlobType.BlobDimensionality = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SINGLE"] = 0; - values[valuesById[1] = "MULTIPART"] = 1; - return values; - })(); - - return BlobType; - })(); - - core.EnumType = (function() { - - /** - * Properties of an EnumType. - * @memberof flyteidl.core - * @interface IEnumType - * @property {Array.|null} [values] EnumType values - */ - - /** - * Constructs a new EnumType. - * @memberof flyteidl.core - * @classdesc Represents an EnumType. - * @implements IEnumType - * @constructor - * @param {flyteidl.core.IEnumType=} [properties] Properties to set - */ - function EnumType(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumType values. - * @member {Array.} values - * @memberof flyteidl.core.EnumType - * @instance - */ - EnumType.prototype.values = $util.emptyArray; - - /** - * Creates a new EnumType instance using the specified properties. - * @function create - * @memberof flyteidl.core.EnumType - * @static - * @param {flyteidl.core.IEnumType=} [properties] Properties to set - * @returns {flyteidl.core.EnumType} EnumType instance - */ - EnumType.create = function create(properties) { - return new EnumType(properties); - }; - - /** - * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.EnumType - * @static - * @param {flyteidl.core.IEnumType} message EnumType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; - - /** - * Decodes an EnumType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.EnumType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.EnumType} EnumType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.EnumType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumType message. - * @function verify - * @memberof flyteidl.core.EnumType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; - - return EnumType; - })(); - - core.UnionType = (function() { - - /** - * Properties of an UnionType. - * @memberof flyteidl.core - * @interface IUnionType - * @property {Array.|null} [variants] UnionType variants - */ - - /** - * Constructs a new UnionType. - * @memberof flyteidl.core - * @classdesc Represents an UnionType. - * @implements IUnionType - * @constructor - * @param {flyteidl.core.IUnionType=} [properties] Properties to set - */ - function UnionType(properties) { - this.variants = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UnionType variants. - * @member {Array.} variants - * @memberof flyteidl.core.UnionType - * @instance - */ - UnionType.prototype.variants = $util.emptyArray; - - /** - * Creates a new UnionType instance using the specified properties. - * @function create - * @memberof flyteidl.core.UnionType - * @static - * @param {flyteidl.core.IUnionType=} [properties] Properties to set - * @returns {flyteidl.core.UnionType} UnionType instance - */ - UnionType.create = function create(properties) { - return new UnionType(properties); - }; - - /** - * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.UnionType - * @static - * @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnionType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an UnionType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.UnionType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.UnionType} UnionType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnionType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UnionType message. - * @function verify - * @memberof flyteidl.core.UnionType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UnionType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.flyteidl.core.LiteralType.verify(message.variants[i]); - if (error) - return "variants." + error; - } - } - return null; - }; - - return UnionType; - })(); - - core.TypeStructure = (function() { - - /** - * Properties of a TypeStructure. - * @memberof flyteidl.core - * @interface ITypeStructure - * @property {string|null} [tag] TypeStructure tag - * @property {Object.|null} [dataclassType] TypeStructure dataclassType - */ - - /** - * Constructs a new TypeStructure. - * @memberof flyteidl.core - * @classdesc Represents a TypeStructure. - * @implements ITypeStructure - * @constructor - * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set - */ - function TypeStructure(properties) { - this.dataclassType = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TypeStructure tag. - * @member {string} tag - * @memberof flyteidl.core.TypeStructure - * @instance - */ - TypeStructure.prototype.tag = ""; - - /** - * TypeStructure dataclassType. - * @member {Object.} dataclassType - * @memberof flyteidl.core.TypeStructure - * @instance - */ - TypeStructure.prototype.dataclassType = $util.emptyObject; - - /** - * Creates a new TypeStructure instance using the specified properties. - * @function create - * @memberof flyteidl.core.TypeStructure - * @static - * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set - * @returns {flyteidl.core.TypeStructure} TypeStructure instance - */ - TypeStructure.create = function create(properties) { - return new TypeStructure(properties); - }; - - /** - * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TypeStructure - * @static - * @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypeStructure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tag != null && message.hasOwnProperty("tag")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); - if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) - for (var keys = Object.keys(message.dataclassType), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.LiteralType.encode(message.dataclassType[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a TypeStructure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TypeStructure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypeStructure} TypeStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypeStructure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tag = reader.string(); - break; - case 2: - reader.skip().pos++; - if (message.dataclassType === $util.emptyObject) - message.dataclassType = {}; - key = reader.string(); - reader.pos++; - message.dataclassType[key] = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TypeStructure message. - * @function verify - * @memberof flyteidl.core.TypeStructure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TypeStructure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) { - if (!$util.isObject(message.dataclassType)) - return "dataclassType: object expected"; - var key = Object.keys(message.dataclassType); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.LiteralType.verify(message.dataclassType[key[i]]); - if (error) - return "dataclassType." + error; - } - } - return null; - }; - - return TypeStructure; - })(); - - core.TypeAnnotation = (function() { - - /** - * Properties of a TypeAnnotation. - * @memberof flyteidl.core - * @interface ITypeAnnotation - * @property {google.protobuf.IStruct|null} [annotations] TypeAnnotation annotations - */ - - /** - * Constructs a new TypeAnnotation. - * @memberof flyteidl.core - * @classdesc Represents a TypeAnnotation. - * @implements ITypeAnnotation - * @constructor - * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set - */ - function TypeAnnotation(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TypeAnnotation annotations. - * @member {google.protobuf.IStruct|null|undefined} annotations - * @memberof flyteidl.core.TypeAnnotation - * @instance - */ - TypeAnnotation.prototype.annotations = null; - - /** - * Creates a new TypeAnnotation instance using the specified properties. - * @function create - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set - * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation instance - */ - TypeAnnotation.create = function create(properties) { - return new TypeAnnotation(properties); - }; - - /** - * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {flyteidl.core.ITypeAnnotation} message TypeAnnotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypeAnnotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.google.protobuf.Struct.encode(message.annotations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TypeAnnotation message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypeAnnotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeAnnotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotations = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TypeAnnotation message. - * @function verify - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TypeAnnotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.google.protobuf.Struct.verify(message.annotations); - if (error) - return "annotations." + error; - } - return null; - }; - - return TypeAnnotation; - })(); - - core.LiteralType = (function() { - - /** - * Properties of a LiteralType. - * @memberof flyteidl.core - * @interface ILiteralType - * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple - * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema - * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType - * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType - * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob - * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType - * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType - * @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType - * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata - * @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation - * @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure - */ - - /** - * Constructs a new LiteralType. - * @memberof flyteidl.core - * @classdesc Represents a LiteralType. - * @implements ILiteralType - * @constructor - * @param {flyteidl.core.ILiteralType=} [properties] Properties to set - */ - function LiteralType(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralType simple. - * @member {flyteidl.core.SimpleType} simple - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.simple = 0; - - /** - * LiteralType schema. - * @member {flyteidl.core.ISchemaType|null|undefined} schema - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.schema = null; - - /** - * LiteralType collectionType. - * @member {flyteidl.core.ILiteralType|null|undefined} collectionType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.collectionType = null; - - /** - * LiteralType mapValueType. - * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.mapValueType = null; - - /** - * LiteralType blob. - * @member {flyteidl.core.IBlobType|null|undefined} blob - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.blob = null; - - /** - * LiteralType enumType. - * @member {flyteidl.core.IEnumType|null|undefined} enumType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.enumType = null; - - /** - * LiteralType structuredDatasetType. - * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.structuredDatasetType = null; - - /** - * LiteralType unionType. - * @member {flyteidl.core.IUnionType|null|undefined} unionType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.unionType = null; - - /** - * LiteralType metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.metadata = null; - - /** - * LiteralType annotation. - * @member {flyteidl.core.ITypeAnnotation|null|undefined} annotation - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.annotation = null; - - /** - * LiteralType structure. - * @member {flyteidl.core.ITypeStructure|null|undefined} structure - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.structure = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LiteralType type. - * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type - * @memberof flyteidl.core.LiteralType - * @instance - */ - Object.defineProperty(LiteralType.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LiteralType instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralType - * @static - * @param {flyteidl.core.ILiteralType=} [properties] Properties to set - * @returns {flyteidl.core.LiteralType} LiteralType instance - */ - LiteralType.create = function create(properties) { - return new LiteralType(properties); - }; - - /** - * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralType - * @static - * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.simple != null && message.hasOwnProperty("simple")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); - if (message.schema != null && message.hasOwnProperty("schema")) - $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.collectionType != null && message.hasOwnProperty("collectionType")) - $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) - $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.blob != null && message.hasOwnProperty("blob")) - $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.enumType != null && message.hasOwnProperty("enumType")) - $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) - $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotation != null && message.hasOwnProperty("annotation")) - $root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.unionType != null && message.hasOwnProperty("unionType")) - $root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.structure != null && message.hasOwnProperty("structure")) - $root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LiteralType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralType} LiteralType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.simple = reader.int32(); - break; - case 2: - message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); - break; - case 3: - message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 4: - message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 5: - message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); - break; - case 7: - message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32()); - break; - case 8: - message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); - break; - case 10: - message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32()); - break; - case 6: - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 9: - message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32()); - break; - case 11: - message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralType message. - * @function verify - * @memberof flyteidl.core.LiteralType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.simple != null && message.hasOwnProperty("simple")) { - properties.type = 1; - switch (message.simple) { - default: - return "simple: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.schema != null && message.hasOwnProperty("schema")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.SchemaType.verify(message.schema); - if (error) - return "schema." + error; - } - } - if (message.collectionType != null && message.hasOwnProperty("collectionType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.LiteralType.verify(message.collectionType); - if (error) - return "collectionType." + error; - } - } - if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); - if (error) - return "mapValueType." + error; - } - } - if (message.blob != null && message.hasOwnProperty("blob")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.BlobType.verify(message.blob); - if (error) - return "blob." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.EnumType.verify(message.enumType); - if (error) - return "enumType." + error; - } - } - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); - if (error) - return "structuredDatasetType." + error; - } - } - if (message.unionType != null && message.hasOwnProperty("unionType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.UnionType.verify(message.unionType); - if (error) - return "unionType." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.annotation != null && message.hasOwnProperty("annotation")) { - var error = $root.flyteidl.core.TypeAnnotation.verify(message.annotation); - if (error) - return "annotation." + error; - } - if (message.structure != null && message.hasOwnProperty("structure")) { - var error = $root.flyteidl.core.TypeStructure.verify(message.structure); - if (error) - return "structure." + error; - } - return null; - }; - - return LiteralType; - })(); - - core.OutputReference = (function() { - - /** - * Properties of an OutputReference. - * @memberof flyteidl.core - * @interface IOutputReference - * @property {string|null} [nodeId] OutputReference nodeId - * @property {string|null} ["var"] OutputReference var - * @property {Array.|null} [attrPath] OutputReference attrPath - */ - - /** - * Constructs a new OutputReference. - * @memberof flyteidl.core - * @classdesc Represents an OutputReference. - * @implements IOutputReference - * @constructor - * @param {flyteidl.core.IOutputReference=} [properties] Properties to set - */ - function OutputReference(properties) { - this.attrPath = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OutputReference nodeId. - * @member {string} nodeId - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype.nodeId = ""; - - /** - * OutputReference var. - * @member {string} var - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype["var"] = ""; - - /** - * OutputReference attrPath. - * @member {Array.} attrPath - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype.attrPath = $util.emptyArray; - - /** - * Creates a new OutputReference instance using the specified properties. - * @function create - * @memberof flyteidl.core.OutputReference - * @static - * @param {flyteidl.core.IOutputReference=} [properties] Properties to set - * @returns {flyteidl.core.OutputReference} OutputReference instance - */ - OutputReference.create = function create(properties) { - return new OutputReference(properties); - }; - - /** - * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.OutputReference - * @static - * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputReference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); - if (message.attrPath != null && message.attrPath.length) - for (var i = 0; i < message.attrPath.length; ++i) - $root.flyteidl.core.PromiseAttribute.encode(message.attrPath[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an OutputReference message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.OutputReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OutputReference} OutputReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputReference.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeId = reader.string(); - break; - case 2: - message["var"] = reader.string(); - break; - case 3: - if (!(message.attrPath && message.attrPath.length)) - message.attrPath = []; - message.attrPath.push($root.flyteidl.core.PromiseAttribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an OutputReference message. - * @function verify - * @memberof flyteidl.core.OutputReference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputReference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.attrPath != null && message.hasOwnProperty("attrPath")) { - if (!Array.isArray(message.attrPath)) - return "attrPath: array expected"; - for (var i = 0; i < message.attrPath.length; ++i) { - var error = $root.flyteidl.core.PromiseAttribute.verify(message.attrPath[i]); - if (error) - return "attrPath." + error; - } - } - return null; - }; - - return OutputReference; - })(); - - core.PromiseAttribute = (function() { - - /** - * Properties of a PromiseAttribute. - * @memberof flyteidl.core - * @interface IPromiseAttribute - * @property {string|null} [stringValue] PromiseAttribute stringValue - * @property {number|null} [intValue] PromiseAttribute intValue - */ - - /** - * Constructs a new PromiseAttribute. - * @memberof flyteidl.core - * @classdesc Represents a PromiseAttribute. - * @implements IPromiseAttribute - * @constructor - * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set - */ - function PromiseAttribute(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PromiseAttribute stringValue. - * @member {string} stringValue - * @memberof flyteidl.core.PromiseAttribute - * @instance - */ - PromiseAttribute.prototype.stringValue = ""; - - /** - * PromiseAttribute intValue. - * @member {number} intValue - * @memberof flyteidl.core.PromiseAttribute - * @instance - */ - PromiseAttribute.prototype.intValue = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * PromiseAttribute value. - * @member {"stringValue"|"intValue"|undefined} value - * @memberof flyteidl.core.PromiseAttribute - * @instance - */ - Object.defineProperty(PromiseAttribute.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["stringValue", "intValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PromiseAttribute instance using the specified properties. - * @function create - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set - * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute instance - */ - PromiseAttribute.create = function create(properties) { - return new PromiseAttribute(properties); - }; - - /** - * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {flyteidl.core.IPromiseAttribute} message PromiseAttribute message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PromiseAttribute.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); - if (message.intValue != null && message.hasOwnProperty("intValue")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue); - return writer; - }; - - /** - * Decodes a PromiseAttribute message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PromiseAttribute.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.PromiseAttribute(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stringValue = reader.string(); - break; - case 2: - message.intValue = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PromiseAttribute message. - * @function verify - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PromiseAttribute.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isInteger(message.intValue)) - return "intValue: integer expected"; - } - return null; - }; - - return PromiseAttribute; - })(); - - core.Error = (function() { - - /** - * Properties of an Error. - * @memberof flyteidl.core - * @interface IError - * @property {string|null} [failedNodeId] Error failedNodeId - * @property {string|null} [message] Error message - */ - - /** - * Constructs a new Error. - * @memberof flyteidl.core - * @classdesc Represents an Error. - * @implements IError - * @constructor - * @param {flyteidl.core.IError=} [properties] Properties to set - */ - function Error(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Error failedNodeId. - * @member {string} failedNodeId - * @memberof flyteidl.core.Error - * @instance - */ - Error.prototype.failedNodeId = ""; - - /** - * Error message. - * @member {string} message - * @memberof flyteidl.core.Error - * @instance - */ - Error.prototype.message = ""; - - /** - * Creates a new Error instance using the specified properties. - * @function create - * @memberof flyteidl.core.Error - * @static - * @param {flyteidl.core.IError=} [properties] Properties to set - * @returns {flyteidl.core.Error} Error instance - */ - Error.create = function create(properties) { - return new Error(properties); - }; - - /** - * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Error - * @static - * @param {flyteidl.core.IError} message Error message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Error.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; - - /** - * Decodes an Error message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Error - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Error} Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Error.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.failedNodeId = reader.string(); - break; - case 2: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Error message. - * @function verify - * @memberof flyteidl.core.Error - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Error.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) - if (!$util.isString(message.failedNodeId)) - return "failedNodeId: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - return Error; - })(); - - core.Primitive = (function() { - - /** - * Properties of a Primitive. - * @memberof flyteidl.core - * @interface IPrimitive - * @property {Long|null} [integer] Primitive integer - * @property {number|null} [floatValue] Primitive floatValue - * @property {string|null} [stringValue] Primitive stringValue - * @property {boolean|null} [boolean] Primitive boolean - * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime - * @property {google.protobuf.IDuration|null} [duration] Primitive duration - */ - - /** - * Constructs a new Primitive. - * @memberof flyteidl.core - * @classdesc Represents a Primitive. - * @implements IPrimitive - * @constructor - * @param {flyteidl.core.IPrimitive=} [properties] Properties to set - */ - function Primitive(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Primitive integer. - * @member {Long} integer - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Primitive floatValue. - * @member {number} floatValue - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.floatValue = 0; - - /** - * Primitive stringValue. - * @member {string} stringValue - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.stringValue = ""; - - /** - * Primitive boolean. - * @member {boolean} boolean - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.boolean = false; - - /** - * Primitive datetime. - * @member {google.protobuf.ITimestamp|null|undefined} datetime - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.datetime = null; - - /** - * Primitive duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.duration = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Primitive value. - * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value - * @memberof flyteidl.core.Primitive - * @instance - */ - Object.defineProperty(Primitive.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Primitive instance using the specified properties. - * @function create - * @memberof flyteidl.core.Primitive - * @static - * @param {flyteidl.core.IPrimitive=} [properties] Properties to set - * @returns {flyteidl.core.Primitive} Primitive instance - */ - Primitive.create = function create(properties) { - return new Primitive(properties); - }; - - /** - * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Primitive - * @static - * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Primitive.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.integer != null && message.hasOwnProperty("integer")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); - if (message.floatValue != null && message.hasOwnProperty("floatValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolean != null && message.hasOwnProperty("boolean")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); - if (message.datetime != null && message.hasOwnProperty("datetime")) - $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Primitive message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Primitive - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Primitive} Primitive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Primitive.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.integer = reader.int64(); - break; - case 2: - message.floatValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolean = reader.bool(); - break; - case 5: - message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Primitive message. - * @function verify - * @memberof flyteidl.core.Primitive - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Primitive.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.integer != null && message.hasOwnProperty("integer")) { - properties.value = 1; - if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) - return "integer: integer|Long expected"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.floatValue !== "number") - return "floatValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolean != null && message.hasOwnProperty("boolean")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.boolean !== "boolean") - return "boolean: boolean expected"; - } - if (message.datetime != null && message.hasOwnProperty("datetime")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.datetime); - if (error) - return "datetime." + error; - } - } - if (message.duration != null && message.hasOwnProperty("duration")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - } - return null; - }; - - return Primitive; - })(); - - core.Void = (function() { - - /** - * Properties of a Void. - * @memberof flyteidl.core - * @interface IVoid - */ - - /** - * Constructs a new Void. - * @memberof flyteidl.core - * @classdesc Represents a Void. - * @implements IVoid - * @constructor - * @param {flyteidl.core.IVoid=} [properties] Properties to set - */ - function Void(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Void instance using the specified properties. - * @function create - * @memberof flyteidl.core.Void - * @static - * @param {flyteidl.core.IVoid=} [properties] Properties to set - * @returns {flyteidl.core.Void} Void instance - */ - Void.create = function create(properties) { - return new Void(properties); - }; - - /** - * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Void - * @static - * @param {flyteidl.core.IVoid} message Void message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Void.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a Void message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Void - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Void} Void - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Void.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Void message. - * @function verify - * @memberof flyteidl.core.Void - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Void.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return Void; - })(); - - core.Blob = (function() { - - /** - * Properties of a Blob. - * @memberof flyteidl.core - * @interface IBlob - * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata - * @property {string|null} [uri] Blob uri - */ - - /** - * Constructs a new Blob. - * @memberof flyteidl.core - * @classdesc Represents a Blob. - * @implements IBlob - * @constructor - * @param {flyteidl.core.IBlob=} [properties] Properties to set - */ - function Blob(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Blob metadata. - * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata - * @memberof flyteidl.core.Blob - * @instance - */ - Blob.prototype.metadata = null; - - /** - * Blob uri. - * @member {string} uri - * @memberof flyteidl.core.Blob - * @instance - */ - Blob.prototype.uri = ""; - - /** - * Creates a new Blob instance using the specified properties. - * @function create - * @memberof flyteidl.core.Blob - * @static - * @param {flyteidl.core.IBlob=} [properties] Properties to set - * @returns {flyteidl.core.Blob} Blob instance - */ - Blob.create = function create(properties) { - return new Blob(properties); - }; - - /** - * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Blob - * @static - * @param {flyteidl.core.IBlob} message Blob message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Blob.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); - return writer; - }; - - /** - * Decodes a Blob message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Blob - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Blob} Blob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Blob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); - break; - case 3: - message.uri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Blob message. - * @function verify - * @memberof flyteidl.core.Blob - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Blob.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - return null; - }; - - return Blob; - })(); - - core.BlobMetadata = (function() { - - /** - * Properties of a BlobMetadata. - * @memberof flyteidl.core - * @interface IBlobMetadata - * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type - */ - - /** - * Constructs a new BlobMetadata. - * @memberof flyteidl.core - * @classdesc Represents a BlobMetadata. - * @implements IBlobMetadata - * @constructor - * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set - */ - function BlobMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BlobMetadata type. - * @member {flyteidl.core.IBlobType|null|undefined} type - * @memberof flyteidl.core.BlobMetadata - * @instance - */ - BlobMetadata.prototype.type = null; - - /** - * Creates a new BlobMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set - * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance - */ - BlobMetadata.create = function create(properties) { - return new BlobMetadata(properties); - }; - - /** - * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlobMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BlobMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BlobMetadata} BlobMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlobMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BlobMetadata message. - * @function verify - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlobMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.BlobType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return BlobMetadata; - })(); - - core.Binary = (function() { - - /** - * Properties of a Binary. - * @memberof flyteidl.core - * @interface IBinary - * @property {Uint8Array|null} [value] Binary value - * @property {string|null} [tag] Binary tag - */ - - /** - * Constructs a new Binary. - * @memberof flyteidl.core - * @classdesc Represents a Binary. - * @implements IBinary - * @constructor - * @param {flyteidl.core.IBinary=} [properties] Properties to set - */ - function Binary(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Binary value. - * @member {Uint8Array} value - * @memberof flyteidl.core.Binary - * @instance - */ - Binary.prototype.value = $util.newBuffer([]); - - /** - * Binary tag. - * @member {string} tag - * @memberof flyteidl.core.Binary - * @instance - */ - Binary.prototype.tag = ""; - - /** - * Creates a new Binary instance using the specified properties. - * @function create - * @memberof flyteidl.core.Binary - * @static - * @param {flyteidl.core.IBinary=} [properties] Properties to set - * @returns {flyteidl.core.Binary} Binary instance - */ - Binary.create = function create(properties) { - return new Binary(properties); - }; - - /** - * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Binary - * @static - * @param {flyteidl.core.IBinary} message Binary message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Binary.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); - if (message.tag != null && message.hasOwnProperty("tag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); - return writer; - }; - - /** - * Decodes a Binary message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Binary - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Binary} Binary - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Binary.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.bytes(); - break; - case 2: - message.tag = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Binary message. - * @function verify - * @memberof flyteidl.core.Binary - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Binary.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - return null; - }; - - return Binary; - })(); - - core.Schema = (function() { - - /** - * Properties of a Schema. - * @memberof flyteidl.core - * @interface ISchema - * @property {string|null} [uri] Schema uri - * @property {flyteidl.core.ISchemaType|null} [type] Schema type - */ - - /** - * Constructs a new Schema. - * @memberof flyteidl.core - * @classdesc Represents a Schema. - * @implements ISchema - * @constructor - * @param {flyteidl.core.ISchema=} [properties] Properties to set - */ - function Schema(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Schema uri. - * @member {string} uri - * @memberof flyteidl.core.Schema - * @instance - */ - Schema.prototype.uri = ""; - - /** - * Schema type. - * @member {flyteidl.core.ISchemaType|null|undefined} type - * @memberof flyteidl.core.Schema - * @instance - */ - Schema.prototype.type = null; - - /** - * Creates a new Schema instance using the specified properties. - * @function create - * @memberof flyteidl.core.Schema - * @static - * @param {flyteidl.core.ISchema=} [properties] Properties to set - * @returns {flyteidl.core.Schema} Schema instance - */ - Schema.create = function create(properties) { - return new Schema(properties); - }; - - /** - * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Schema - * @static - * @param {flyteidl.core.ISchema} message Schema message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Schema.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Schema message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Schema - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Schema} Schema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Schema.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 3: - message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Schema message. - * @function verify - * @memberof flyteidl.core.Schema - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Schema.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.SchemaType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return Schema; - })(); - - core.Union = (function() { - - /** - * Properties of an Union. - * @memberof flyteidl.core - * @interface IUnion - * @property {flyteidl.core.ILiteral|null} [value] Union value - * @property {flyteidl.core.ILiteralType|null} [type] Union type - */ - - /** - * Constructs a new Union. - * @memberof flyteidl.core - * @classdesc Represents an Union. - * @implements IUnion - * @constructor - * @param {flyteidl.core.IUnion=} [properties] Properties to set - */ - function Union(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Union value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.core.Union - * @instance - */ - Union.prototype.value = null; - - /** - * Union type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.Union - * @instance - */ - Union.prototype.type = null; - - /** - * Creates a new Union instance using the specified properties. - * @function create - * @memberof flyteidl.core.Union - * @static - * @param {flyteidl.core.IUnion=} [properties] Properties to set - * @returns {flyteidl.core.Union} Union instance - */ - Union.create = function create(properties) { - return new Union(properties); - }; - - /** - * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Union - * @static - * @param {flyteidl.core.IUnion} message Union message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Union.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Union message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Union - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Union} Union - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Union.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Union message. - * @function verify - * @memberof flyteidl.core.Union - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Union.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return Union; - })(); - - core.StructuredDatasetMetadata = (function() { - - /** - * Properties of a StructuredDatasetMetadata. - * @memberof flyteidl.core - * @interface IStructuredDatasetMetadata - * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType - */ - - /** - * Constructs a new StructuredDatasetMetadata. - * @memberof flyteidl.core - * @classdesc Represents a StructuredDatasetMetadata. - * @implements IStructuredDatasetMetadata - * @constructor - * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set - */ - function StructuredDatasetMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StructuredDatasetMetadata structuredDatasetType. - * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType - * @memberof flyteidl.core.StructuredDatasetMetadata - * @instance - */ - StructuredDatasetMetadata.prototype.structuredDatasetType = null; - - /** - * Creates a new StructuredDatasetMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance - */ - StructuredDatasetMetadata.create = function create(properties) { - return new StructuredDatasetMetadata(properties); - }; - - /** - * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StructuredDatasetMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) - $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StructuredDatasetMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StructuredDatasetMetadata message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StructuredDatasetMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { - var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); - if (error) - return "structuredDatasetType." + error; - } - return null; - }; - - return StructuredDatasetMetadata; - })(); - - core.StructuredDataset = (function() { - - /** - * Properties of a StructuredDataset. - * @memberof flyteidl.core - * @interface IStructuredDataset - * @property {string|null} [uri] StructuredDataset uri - * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata - */ - - /** - * Constructs a new StructuredDataset. - * @memberof flyteidl.core - * @classdesc Represents a StructuredDataset. - * @implements IStructuredDataset - * @constructor - * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set - */ - function StructuredDataset(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StructuredDataset uri. - * @member {string} uri - * @memberof flyteidl.core.StructuredDataset - * @instance - */ - StructuredDataset.prototype.uri = ""; - - /** - * StructuredDataset metadata. - * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata - * @memberof flyteidl.core.StructuredDataset - * @instance - */ - StructuredDataset.prototype.metadata = null; - - /** - * Creates a new StructuredDataset instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance - */ - StructuredDataset.create = function create(properties) { - return new StructuredDataset(properties); - }; - - /** - * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StructuredDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a StructuredDataset message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDataset} StructuredDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StructuredDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StructuredDataset message. - * @function verify - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StructuredDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return StructuredDataset; - })(); - - core.Scalar = (function() { - - /** - * Properties of a Scalar. - * @memberof flyteidl.core - * @interface IScalar - * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive - * @property {flyteidl.core.IBlob|null} [blob] Scalar blob - * @property {flyteidl.core.IBinary|null} [binary] Scalar binary - * @property {flyteidl.core.ISchema|null} [schema] Scalar schema - * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType - * @property {flyteidl.core.IError|null} [error] Scalar error - * @property {google.protobuf.IStruct|null} [generic] Scalar generic - * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset - * @property {flyteidl.core.IUnion|null} [union] Scalar union - */ - - /** - * Constructs a new Scalar. - * @memberof flyteidl.core - * @classdesc Represents a Scalar. - * @implements IScalar - * @constructor - * @param {flyteidl.core.IScalar=} [properties] Properties to set - */ - function Scalar(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Scalar primitive. - * @member {flyteidl.core.IPrimitive|null|undefined} primitive - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.primitive = null; - - /** - * Scalar blob. - * @member {flyteidl.core.IBlob|null|undefined} blob - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.blob = null; - - /** - * Scalar binary. - * @member {flyteidl.core.IBinary|null|undefined} binary - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.binary = null; - - /** - * Scalar schema. - * @member {flyteidl.core.ISchema|null|undefined} schema - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.schema = null; - - /** - * Scalar noneType. - * @member {flyteidl.core.IVoid|null|undefined} noneType - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.noneType = null; - - /** - * Scalar error. - * @member {flyteidl.core.IError|null|undefined} error - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.error = null; - - /** - * Scalar generic. - * @member {google.protobuf.IStruct|null|undefined} generic - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.generic = null; - - /** - * Scalar structuredDataset. - * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.structuredDataset = null; - - /** - * Scalar union. - * @member {flyteidl.core.IUnion|null|undefined} union - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.union = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Scalar value. - * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value - * @memberof flyteidl.core.Scalar - * @instance - */ - Object.defineProperty(Scalar.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Scalar instance using the specified properties. - * @function create - * @memberof flyteidl.core.Scalar - * @static - * @param {flyteidl.core.IScalar=} [properties] Properties to set - * @returns {flyteidl.core.Scalar} Scalar instance - */ - Scalar.create = function create(properties) { - return new Scalar(properties); - }; - - /** - * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Scalar - * @static - * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Scalar.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.primitive != null && message.hasOwnProperty("primitive")) - $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.blob != null && message.hasOwnProperty("blob")) - $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.binary != null && message.hasOwnProperty("binary")) - $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.schema != null && message.hasOwnProperty("schema")) - $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.noneType != null && message.hasOwnProperty("noneType")) - $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.generic != null && message.hasOwnProperty("generic")) - $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) - $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.union != null && message.hasOwnProperty("union")) - $root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Scalar message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Scalar - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Scalar} Scalar - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Scalar.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); - break; - case 2: - message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); - break; - case 3: - message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); - break; - case 4: - message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); - break; - case 5: - message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); - break; - case 6: - message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); - break; - case 7: - message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 8: - message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32()); - break; - case 9: - message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Scalar message. - * @function verify - * @memberof flyteidl.core.Scalar - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Scalar.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.primitive != null && message.hasOwnProperty("primitive")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Primitive.verify(message.primitive); - if (error) - return "primitive." + error; - } - } - if (message.blob != null && message.hasOwnProperty("blob")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Blob.verify(message.blob); - if (error) - return "blob." + error; - } - } - if (message.binary != null && message.hasOwnProperty("binary")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Binary.verify(message.binary); - if (error) - return "binary." + error; - } - } - if (message.schema != null && message.hasOwnProperty("schema")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Schema.verify(message.schema); - if (error) - return "schema." + error; - } - } - if (message.noneType != null && message.hasOwnProperty("noneType")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Void.verify(message.noneType); - if (error) - return "noneType." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Error.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.generic != null && message.hasOwnProperty("generic")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Struct.verify(message.generic); - if (error) - return "generic." + error; - } - } - if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset); - if (error) - return "structuredDataset." + error; - } - } - if (message.union != null && message.hasOwnProperty("union")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Union.verify(message.union); - if (error) - return "union." + error; - } - } - return null; - }; - - return Scalar; - })(); - - core.Literal = (function() { - - /** - * Properties of a Literal. - * @memberof flyteidl.core - * @interface ILiteral - * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar - * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection - * @property {flyteidl.core.ILiteralMap|null} [map] Literal map - * @property {string|null} [hash] Literal hash - * @property {Object.|null} [metadata] Literal metadata - */ - - /** - * Constructs a new Literal. - * @memberof flyteidl.core - * @classdesc Represents a Literal. - * @implements ILiteral - * @constructor - * @param {flyteidl.core.ILiteral=} [properties] Properties to set - */ - function Literal(properties) { - this.metadata = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Literal scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.scalar = null; - - /** - * Literal collection. - * @member {flyteidl.core.ILiteralCollection|null|undefined} collection - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.collection = null; - - /** - * Literal map. - * @member {flyteidl.core.ILiteralMap|null|undefined} map - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.map = null; - - /** - * Literal hash. - * @member {string} hash - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.hash = ""; - - /** - * Literal metadata. - * @member {Object.} metadata - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.metadata = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Literal value. - * @member {"scalar"|"collection"|"map"|undefined} value - * @memberof flyteidl.core.Literal - * @instance - */ - Object.defineProperty(Literal.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Literal instance using the specified properties. - * @function create - * @memberof flyteidl.core.Literal - * @static - * @param {flyteidl.core.ILiteral=} [properties] Properties to set - * @returns {flyteidl.core.Literal} Literal instance - */ - Literal.create = function create(properties) { - return new Literal(properties); - }; - - /** - * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Literal - * @static - * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Literal.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.collection != null && message.hasOwnProperty("collection")) - $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.map != null && message.hasOwnProperty("map")) - $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.hash != null && message.hasOwnProperty("hash")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.hash); - if (message.metadata != null && message.hasOwnProperty("metadata")) - for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a Literal message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Literal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Literal} Literal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Literal.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); - break; - case 2: - message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); - break; - case 3: - message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.hash = reader.string(); - break; - case 5: - reader.skip().pos++; - if (message.metadata === $util.emptyObject) - message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Literal message. - * @function verify - * @memberof flyteidl.core.Literal - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Literal.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.scalar != null && message.hasOwnProperty("scalar")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } - } - if (message.collection != null && message.hasOwnProperty("collection")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.LiteralCollection.verify(message.collection); - if (error) - return "collection." + error; - } - } - if (message.map != null && message.hasOwnProperty("map")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.map); - if (error) - return "map." + error; - } - } - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - if (!$util.isObject(message.metadata)) - return "metadata: object expected"; - var key = Object.keys(message.metadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.metadata[key[i]])) - return "metadata: string{k:string} expected"; - } - return null; - }; - - return Literal; - })(); - - core.LiteralCollection = (function() { - - /** - * Properties of a LiteralCollection. - * @memberof flyteidl.core - * @interface ILiteralCollection - * @property {Array.|null} [literals] LiteralCollection literals - */ - - /** - * Constructs a new LiteralCollection. - * @memberof flyteidl.core - * @classdesc Represents a LiteralCollection. - * @implements ILiteralCollection - * @constructor - * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set - */ - function LiteralCollection(properties) { - this.literals = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralCollection literals. - * @member {Array.} literals - * @memberof flyteidl.core.LiteralCollection - * @instance - */ - LiteralCollection.prototype.literals = $util.emptyArray; - - /** - * Creates a new LiteralCollection instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set - * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance - */ - LiteralCollection.create = function create(properties) { - return new LiteralCollection(properties); - }; - - /** - * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralCollection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literals != null && message.literals.length) - for (var i = 0; i < message.literals.length; ++i) - $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LiteralCollection message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralCollection} LiteralCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralCollection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.literals && message.literals.length)) - message.literals = []; - message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralCollection message. - * @function verify - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralCollection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.literals != null && message.hasOwnProperty("literals")) { - if (!Array.isArray(message.literals)) - return "literals: array expected"; - for (var i = 0; i < message.literals.length; ++i) { - var error = $root.flyteidl.core.Literal.verify(message.literals[i]); - if (error) - return "literals." + error; - } - } - return null; - }; - - return LiteralCollection; - })(); - - core.LiteralMap = (function() { - - /** - * Properties of a LiteralMap. - * @memberof flyteidl.core - * @interface ILiteralMap - * @property {Object.|null} [literals] LiteralMap literals - */ - - /** - * Constructs a new LiteralMap. - * @memberof flyteidl.core - * @classdesc Represents a LiteralMap. - * @implements ILiteralMap - * @constructor - * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set - */ - function LiteralMap(properties) { - this.literals = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralMap literals. - * @member {Object.} literals - * @memberof flyteidl.core.LiteralMap - * @instance - */ - LiteralMap.prototype.literals = $util.emptyObject; - - /** - * Creates a new LiteralMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralMap - * @static - * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set - * @returns {flyteidl.core.LiteralMap} LiteralMap instance - */ - LiteralMap.create = function create(properties) { - return new LiteralMap(properties); - }; - - /** - * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralMap - * @static - * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literals != null && message.hasOwnProperty("literals")) - for (var keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a LiteralMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralMap} LiteralMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.literals === $util.emptyObject) - message.literals = {}; - key = reader.string(); - reader.pos++; - message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralMap message. - * @function verify - * @memberof flyteidl.core.LiteralMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.literals != null && message.hasOwnProperty("literals")) { - if (!$util.isObject(message.literals)) - return "literals: object expected"; - var key = Object.keys(message.literals); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); - if (error) - return "literals." + error; - } - } - return null; - }; - - return LiteralMap; - })(); - - core.BindingDataCollection = (function() { - - /** - * Properties of a BindingDataCollection. - * @memberof flyteidl.core - * @interface IBindingDataCollection - * @property {Array.|null} [bindings] BindingDataCollection bindings - */ - - /** - * Constructs a new BindingDataCollection. - * @memberof flyteidl.core - * @classdesc Represents a BindingDataCollection. - * @implements IBindingDataCollection - * @constructor - * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set - */ - function BindingDataCollection(properties) { - this.bindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BindingDataCollection bindings. - * @member {Array.} bindings - * @memberof flyteidl.core.BindingDataCollection - * @instance - */ - BindingDataCollection.prototype.bindings = $util.emptyArray; - - /** - * Creates a new BindingDataCollection instance using the specified properties. - * @function create - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set - * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance - */ - BindingDataCollection.create = function create(properties) { - return new BindingDataCollection(properties); - }; - - /** - * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BindingDataCollection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bindings != null && message.bindings.length) - for (var i = 0; i < message.bindings.length; ++i) - $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BindingDataCollection message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BindingDataCollection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.bindings && message.bindings.length)) - message.bindings = []; - message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BindingDataCollection message. - * @function verify - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BindingDataCollection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bindings != null && message.hasOwnProperty("bindings")) { - if (!Array.isArray(message.bindings)) - return "bindings: array expected"; - for (var i = 0; i < message.bindings.length; ++i) { - var error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); - if (error) - return "bindings." + error; - } - } - return null; - }; - - return BindingDataCollection; - })(); - - core.BindingDataMap = (function() { - - /** - * Properties of a BindingDataMap. - * @memberof flyteidl.core - * @interface IBindingDataMap - * @property {Object.|null} [bindings] BindingDataMap bindings - */ - - /** - * Constructs a new BindingDataMap. - * @memberof flyteidl.core - * @classdesc Represents a BindingDataMap. - * @implements IBindingDataMap - * @constructor - * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set - */ - function BindingDataMap(properties) { - this.bindings = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BindingDataMap bindings. - * @member {Object.} bindings - * @memberof flyteidl.core.BindingDataMap - * @instance - */ - BindingDataMap.prototype.bindings = $util.emptyObject; - - /** - * Creates a new BindingDataMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set - * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance - */ - BindingDataMap.create = function create(properties) { - return new BindingDataMap(properties); - }; - - /** - * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BindingDataMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bindings != null && message.hasOwnProperty("bindings")) - for (var keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a BindingDataMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingDataMap} BindingDataMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BindingDataMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.bindings === $util.emptyObject) - message.bindings = {}; - key = reader.string(); - reader.pos++; - message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BindingDataMap message. - * @function verify - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BindingDataMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bindings != null && message.hasOwnProperty("bindings")) { - if (!$util.isObject(message.bindings)) - return "bindings: object expected"; - var key = Object.keys(message.bindings); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); - if (error) - return "bindings." + error; - } - } - return null; - }; - - return BindingDataMap; - })(); - - core.UnionInfo = (function() { - - /** - * Properties of an UnionInfo. - * @memberof flyteidl.core - * @interface IUnionInfo - * @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType - */ - - /** - * Constructs a new UnionInfo. - * @memberof flyteidl.core - * @classdesc Represents an UnionInfo. - * @implements IUnionInfo - * @constructor - * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set - */ - function UnionInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UnionInfo targetType. - * @member {flyteidl.core.ILiteralType|null|undefined} targetType - * @memberof flyteidl.core.UnionInfo - * @instance - */ - UnionInfo.prototype.targetType = null; - - /** - * Creates a new UnionInfo instance using the specified properties. - * @function create - * @memberof flyteidl.core.UnionInfo - * @static - * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set - * @returns {flyteidl.core.UnionInfo} UnionInfo instance - */ - UnionInfo.create = function create(properties) { - return new UnionInfo(properties); - }; - - /** - * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.UnionInfo - * @static - * @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnionInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.targetType != null && message.hasOwnProperty("targetType")) - $root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an UnionInfo message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.UnionInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.UnionInfo} UnionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnionInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UnionInfo message. - * @function verify - * @memberof flyteidl.core.UnionInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UnionInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.targetType != null && message.hasOwnProperty("targetType")) { - var error = $root.flyteidl.core.LiteralType.verify(message.targetType); - if (error) - return "targetType." + error; - } - return null; - }; - - return UnionInfo; - })(); - - core.BindingData = (function() { - - /** - * Properties of a BindingData. - * @memberof flyteidl.core - * @interface IBindingData - * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar - * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection - * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise - * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map - * @property {flyteidl.core.IUnionInfo|null} [union] BindingData union - */ - - /** - * Constructs a new BindingData. - * @memberof flyteidl.core - * @classdesc Represents a BindingData. - * @implements IBindingData - * @constructor - * @param {flyteidl.core.IBindingData=} [properties] Properties to set - */ - function BindingData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BindingData scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.scalar = null; - - /** - * BindingData collection. - * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.collection = null; - - /** - * BindingData promise. - * @member {flyteidl.core.IOutputReference|null|undefined} promise - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.promise = null; - - /** - * BindingData map. - * @member {flyteidl.core.IBindingDataMap|null|undefined} map - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.map = null; - - /** - * BindingData union. - * @member {flyteidl.core.IUnionInfo|null|undefined} union - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.union = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * BindingData value. - * @member {"scalar"|"collection"|"promise"|"map"|undefined} value - * @memberof flyteidl.core.BindingData - * @instance - */ - Object.defineProperty(BindingData.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new BindingData instance using the specified properties. - * @function create - * @memberof flyteidl.core.BindingData - * @static - * @param {flyteidl.core.IBindingData=} [properties] Properties to set - * @returns {flyteidl.core.BindingData} BindingData instance - */ - BindingData.create = function create(properties) { - return new BindingData(properties); - }; - - /** - * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BindingData - * @static - * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BindingData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.collection != null && message.hasOwnProperty("collection")) - $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.promise != null && message.hasOwnProperty("promise")) - $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.map != null && message.hasOwnProperty("map")) - $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.union != null && message.hasOwnProperty("union")) - $root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BindingData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BindingData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingData} BindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BindingData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); - break; - case 2: - message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); - break; - case 3: - message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); - break; - case 4: - message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); - break; - case 5: - message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BindingData message. - * @function verify - * @memberof flyteidl.core.BindingData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BindingData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.scalar != null && message.hasOwnProperty("scalar")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } - } - if (message.collection != null && message.hasOwnProperty("collection")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); - if (error) - return "collection." + error; - } - } - if (message.promise != null && message.hasOwnProperty("promise")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.OutputReference.verify(message.promise); - if (error) - return "promise." + error; - } - } - if (message.map != null && message.hasOwnProperty("map")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.BindingDataMap.verify(message.map); - if (error) - return "map." + error; - } - } - if (message.union != null && message.hasOwnProperty("union")) { - var error = $root.flyteidl.core.UnionInfo.verify(message.union); - if (error) - return "union." + error; - } - return null; - }; - - return BindingData; - })(); - - core.Binding = (function() { - - /** - * Properties of a Binding. - * @memberof flyteidl.core - * @interface IBinding - * @property {string|null} ["var"] Binding var - * @property {flyteidl.core.IBindingData|null} [binding] Binding binding - */ - - /** - * Constructs a new Binding. - * @memberof flyteidl.core - * @classdesc Represents a Binding. - * @implements IBinding - * @constructor - * @param {flyteidl.core.IBinding=} [properties] Properties to set - */ - function Binding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Binding var. - * @member {string} var - * @memberof flyteidl.core.Binding - * @instance - */ - Binding.prototype["var"] = ""; - - /** - * Binding binding. - * @member {flyteidl.core.IBindingData|null|undefined} binding - * @memberof flyteidl.core.Binding - * @instance - */ - Binding.prototype.binding = null; - - /** - * Creates a new Binding instance using the specified properties. - * @function create - * @memberof flyteidl.core.Binding - * @static - * @param {flyteidl.core.IBinding=} [properties] Properties to set - * @returns {flyteidl.core.Binding} Binding instance - */ - Binding.create = function create(properties) { - return new Binding(properties); - }; - - /** - * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Binding - * @static - * @param {flyteidl.core.IBinding} message Binding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Binding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - if (message.binding != null && message.hasOwnProperty("binding")) - $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Binding message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Binding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Binding} Binding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Binding.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = reader.string(); - break; - case 2: - message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Binding message. - * @function verify - * @memberof flyteidl.core.Binding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Binding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.binding != null && message.hasOwnProperty("binding")) { - var error = $root.flyteidl.core.BindingData.verify(message.binding); - if (error) - return "binding." + error; - } - return null; - }; - - return Binding; - })(); - - core.KeyValuePair = (function() { - - /** - * Properties of a KeyValuePair. - * @memberof flyteidl.core - * @interface IKeyValuePair - * @property {string|null} [key] KeyValuePair key - * @property {string|null} [value] KeyValuePair value - */ - - /** - * Constructs a new KeyValuePair. - * @memberof flyteidl.core - * @classdesc Represents a KeyValuePair. - * @implements IKeyValuePair - * @constructor - * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set - */ - function KeyValuePair(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KeyValuePair key. - * @member {string} key - * @memberof flyteidl.core.KeyValuePair - * @instance - */ - KeyValuePair.prototype.key = ""; - - /** - * KeyValuePair value. - * @member {string} value - * @memberof flyteidl.core.KeyValuePair - * @instance - */ - KeyValuePair.prototype.value = ""; - - /** - * Creates a new KeyValuePair instance using the specified properties. - * @function create - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set - * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance - */ - KeyValuePair.create = function create(properties) { - return new KeyValuePair(properties); - }; - - /** - * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyValuePair.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - return writer; - }; - - /** - * Decodes a KeyValuePair message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.KeyValuePair} KeyValuePair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyValuePair.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a KeyValuePair message. - * @function verify - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KeyValuePair.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return KeyValuePair; - })(); - - core.RetryStrategy = (function() { - - /** - * Properties of a RetryStrategy. - * @memberof flyteidl.core - * @interface IRetryStrategy - * @property {number|null} [retries] RetryStrategy retries - */ - - /** - * Constructs a new RetryStrategy. - * @memberof flyteidl.core - * @classdesc Represents a RetryStrategy. - * @implements IRetryStrategy - * @constructor - * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set - */ - function RetryStrategy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RetryStrategy retries. - * @member {number} retries - * @memberof flyteidl.core.RetryStrategy - * @instance - */ - RetryStrategy.prototype.retries = 0; - - /** - * Creates a new RetryStrategy instance using the specified properties. - * @function create - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set - * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance - */ - RetryStrategy.create = function create(properties) { - return new RetryStrategy(properties); - }; - - /** - * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RetryStrategy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.retries != null && message.hasOwnProperty("retries")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); - return writer; - }; - - /** - * Decodes a RetryStrategy message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.RetryStrategy} RetryStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RetryStrategy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: - message.retries = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a RetryStrategy message. - * @function verify - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RetryStrategy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.retries != null && message.hasOwnProperty("retries")) - if (!$util.isInteger(message.retries)) - return "retries: integer expected"; - return null; - }; - - return RetryStrategy; - })(); - - core.IfBlock = (function() { - - /** - * Properties of an IfBlock. - * @memberof flyteidl.core - * @interface IIfBlock - * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition - * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode - */ - - /** - * Constructs a new IfBlock. - * @memberof flyteidl.core - * @classdesc Represents an IfBlock. - * @implements IIfBlock - * @constructor - * @param {flyteidl.core.IIfBlock=} [properties] Properties to set - */ - function IfBlock(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IfBlock condition. - * @member {flyteidl.core.IBooleanExpression|null|undefined} condition - * @memberof flyteidl.core.IfBlock - * @instance - */ - IfBlock.prototype.condition = null; - - /** - * IfBlock thenNode. - * @member {flyteidl.core.INode|null|undefined} thenNode - * @memberof flyteidl.core.IfBlock - * @instance - */ - IfBlock.prototype.thenNode = null; - - /** - * Creates a new IfBlock instance using the specified properties. - * @function create - * @memberof flyteidl.core.IfBlock - * @static - * @param {flyteidl.core.IIfBlock=} [properties] Properties to set - * @returns {flyteidl.core.IfBlock} IfBlock instance - */ - IfBlock.create = function create(properties) { - return new IfBlock(properties); - }; - - /** - * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.IfBlock - * @static - * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IfBlock.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.condition != null && message.hasOwnProperty("condition")) - $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.thenNode != null && message.hasOwnProperty("thenNode")) - $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an IfBlock message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.IfBlock - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IfBlock} IfBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IfBlock.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); - break; - case 2: - message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an IfBlock message. - * @function verify - * @memberof flyteidl.core.IfBlock - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IfBlock.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.condition != null && message.hasOwnProperty("condition")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.condition); - if (error) - return "condition." + error; - } - if (message.thenNode != null && message.hasOwnProperty("thenNode")) { - var error = $root.flyteidl.core.Node.verify(message.thenNode); - if (error) - return "thenNode." + error; - } - return null; - }; - - return IfBlock; - })(); - - core.IfElseBlock = (function() { - - /** - * Properties of an IfElseBlock. - * @memberof flyteidl.core - * @interface IIfElseBlock - * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case - * @property {Array.|null} [other] IfElseBlock other - * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode - * @property {flyteidl.core.IError|null} [error] IfElseBlock error - */ - - /** - * Constructs a new IfElseBlock. - * @memberof flyteidl.core - * @classdesc Represents an IfElseBlock. - * @implements IIfElseBlock - * @constructor - * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set - */ - function IfElseBlock(properties) { - this.other = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IfElseBlock case. - * @member {flyteidl.core.IIfBlock|null|undefined} case - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype["case"] = null; - - /** - * IfElseBlock other. - * @member {Array.} other - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.other = $util.emptyArray; - - /** - * IfElseBlock elseNode. - * @member {flyteidl.core.INode|null|undefined} elseNode - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.elseNode = null; - - /** - * IfElseBlock error. - * @member {flyteidl.core.IError|null|undefined} error - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.error = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * IfElseBlock default. - * @member {"elseNode"|"error"|undefined} default_ - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - Object.defineProperty(IfElseBlock.prototype, "default", { - get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new IfElseBlock instance using the specified properties. - * @function create - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set - * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance - */ - IfElseBlock.create = function create(properties) { - return new IfElseBlock(properties); - }; - - /** - * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IfElseBlock.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["case"] != null && message.hasOwnProperty("case")) - $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.other != null && message.other.length) - for (var i = 0; i < message.other.length; ++i) - $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.elseNode != null && message.hasOwnProperty("elseNode")) - $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an IfElseBlock message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IfElseBlock} IfElseBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IfElseBlock.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.other && message.other.length)) - message.other = []; - message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); - break; - case 3: - message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 4: - message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an IfElseBlock message. - * @function verify - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IfElseBlock.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message["case"] != null && message.hasOwnProperty("case")) { - var error = $root.flyteidl.core.IfBlock.verify(message["case"]); - if (error) - return "case." + error; - } - if (message.other != null && message.hasOwnProperty("other")) { - if (!Array.isArray(message.other)) - return "other: array expected"; - for (var i = 0; i < message.other.length; ++i) { - var error = $root.flyteidl.core.IfBlock.verify(message.other[i]); - if (error) - return "other." + error; - } - } - if (message.elseNode != null && message.hasOwnProperty("elseNode")) { - properties["default"] = 1; - { - var error = $root.flyteidl.core.Node.verify(message.elseNode); - if (error) - return "elseNode." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties["default"] === 1) - return "default: multiple values"; - properties["default"] = 1; - { - var error = $root.flyteidl.core.Error.verify(message.error); - if (error) - return "error." + error; - } - } - return null; - }; - - return IfElseBlock; - })(); - - core.BranchNode = (function() { - - /** - * Properties of a BranchNode. - * @memberof flyteidl.core - * @interface IBranchNode - * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse - */ - - /** - * Constructs a new BranchNode. - * @memberof flyteidl.core - * @classdesc Represents a BranchNode. - * @implements IBranchNode - * @constructor - * @param {flyteidl.core.IBranchNode=} [properties] Properties to set - */ - function BranchNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BranchNode ifElse. - * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse - * @memberof flyteidl.core.BranchNode - * @instance - */ - BranchNode.prototype.ifElse = null; - - /** - * Creates a new BranchNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.BranchNode - * @static - * @param {flyteidl.core.IBranchNode=} [properties] Properties to set - * @returns {flyteidl.core.BranchNode} BranchNode instance - */ - BranchNode.create = function create(properties) { - return new BranchNode(properties); - }; - - /** - * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BranchNode - * @static - * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BranchNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ifElse != null && message.hasOwnProperty("ifElse")) - $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BranchNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BranchNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BranchNode} BranchNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BranchNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BranchNode message. - * @function verify - * @memberof flyteidl.core.BranchNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BranchNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ifElse != null && message.hasOwnProperty("ifElse")) { - var error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); - if (error) - return "ifElse." + error; - } - return null; - }; - - return BranchNode; - })(); - - core.TaskNode = (function() { - - /** - * Properties of a TaskNode. - * @memberof flyteidl.core - * @interface ITaskNode - * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId - * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskNode overrides - */ - - /** - * Constructs a new TaskNode. - * @memberof flyteidl.core - * @classdesc Represents a TaskNode. - * @implements ITaskNode - * @constructor - * @param {flyteidl.core.ITaskNode=} [properties] Properties to set - */ - function TaskNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNode referenceId. - * @member {flyteidl.core.IIdentifier|null|undefined} referenceId - * @memberof flyteidl.core.TaskNode - * @instance - */ - TaskNode.prototype.referenceId = null; - - /** - * TaskNode overrides. - * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides - * @memberof flyteidl.core.TaskNode - * @instance - */ - TaskNode.prototype.overrides = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskNode reference. - * @member {"referenceId"|undefined} reference - * @memberof flyteidl.core.TaskNode - * @instance - */ - Object.defineProperty(TaskNode.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["referenceId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskNode - * @static - * @param {flyteidl.core.ITaskNode=} [properties] Properties to set - * @returns {flyteidl.core.TaskNode} TaskNode instance - */ - TaskNode.create = function create(properties) { - return new TaskNode(properties); - }; - - /** - * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskNode - * @static - * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.referenceId != null && message.hasOwnProperty("referenceId")) - $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.overrides != null && message.hasOwnProperty("overrides")) - $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskNode} TaskNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNode message. - * @function verify - * @memberof flyteidl.core.TaskNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.referenceId != null && message.hasOwnProperty("referenceId")) { - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.referenceId); - if (error) - return "referenceId." + error; - } - } - if (message.overrides != null && message.hasOwnProperty("overrides")) { - var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); - if (error) - return "overrides." + error; - } - return null; - }; - - return TaskNode; - })(); - - core.WorkflowNode = (function() { - - /** - * Properties of a WorkflowNode. - * @memberof flyteidl.core - * @interface IWorkflowNode - * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef - * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef - */ - - /** - * Constructs a new WorkflowNode. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowNode. - * @implements IWorkflowNode - * @constructor - * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set - */ - function WorkflowNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowNode launchplanRef. - * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - WorkflowNode.prototype.launchplanRef = null; - - /** - * WorkflowNode subWorkflowRef. - * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - WorkflowNode.prototype.subWorkflowRef = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WorkflowNode reference. - * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - Object.defineProperty(WorkflowNode.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new WorkflowNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance - */ - WorkflowNode.create = function create(properties) { - return new WorkflowNode(properties); - }; - - /** - * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) - $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) - $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowNode} WorkflowNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowNode message. - * @function verify - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); - if (error) - return "launchplanRef." + error; - } - } - if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); - if (error) - return "subWorkflowRef." + error; - } - } - return null; - }; - - return WorkflowNode; - })(); - - core.ApproveCondition = (function() { - - /** - * Properties of an ApproveCondition. - * @memberof flyteidl.core - * @interface IApproveCondition - * @property {string|null} [signalId] ApproveCondition signalId - */ - - /** - * Constructs a new ApproveCondition. - * @memberof flyteidl.core - * @classdesc Represents an ApproveCondition. - * @implements IApproveCondition - * @constructor - * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set - */ - function ApproveCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ApproveCondition signalId. - * @member {string} signalId - * @memberof flyteidl.core.ApproveCondition - * @instance - */ - ApproveCondition.prototype.signalId = ""; - - /** - * Creates a new ApproveCondition instance using the specified properties. - * @function create - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set - * @returns {flyteidl.core.ApproveCondition} ApproveCondition instance - */ - ApproveCondition.create = function create(properties) { - return new ApproveCondition(properties); - }; - - /** - * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {flyteidl.core.IApproveCondition} message ApproveCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - return writer; - }; - - /** - * Decodes an ApproveCondition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ApproveCondition} ApproveCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ApproveCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ApproveCondition message. - * @function verify - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ApproveCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - return null; - }; - - return ApproveCondition; - })(); - - core.SignalCondition = (function() { - - /** - * Properties of a SignalCondition. - * @memberof flyteidl.core - * @interface ISignalCondition - * @property {string|null} [signalId] SignalCondition signalId - * @property {flyteidl.core.ILiteralType|null} [type] SignalCondition type - * @property {string|null} [outputVariableName] SignalCondition outputVariableName - */ - - /** - * Constructs a new SignalCondition. - * @memberof flyteidl.core - * @classdesc Represents a SignalCondition. - * @implements ISignalCondition - * @constructor - * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set - */ - function SignalCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalCondition signalId. - * @member {string} signalId - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.signalId = ""; - - /** - * SignalCondition type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.type = null; - - /** - * SignalCondition outputVariableName. - * @member {string} outputVariableName - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.outputVariableName = ""; - - /** - * Creates a new SignalCondition instance using the specified properties. - * @function create - * @memberof flyteidl.core.SignalCondition - * @static - * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set - * @returns {flyteidl.core.SignalCondition} SignalCondition instance - */ - SignalCondition.create = function create(properties) { - return new SignalCondition(properties); - }; - - /** - * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SignalCondition - * @static - * @param {flyteidl.core.ISignalCondition} message SignalCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputVariableName); - return writer; - }; - - /** - * Decodes a SignalCondition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SignalCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SignalCondition} SignalCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 3: - message.outputVariableName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalCondition message. - * @function verify - * @memberof flyteidl.core.SignalCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) - if (!$util.isString(message.outputVariableName)) - return "outputVariableName: string expected"; - return null; - }; - - return SignalCondition; - })(); - - core.SleepCondition = (function() { - - /** - * Properties of a SleepCondition. - * @memberof flyteidl.core - * @interface ISleepCondition - * @property {google.protobuf.IDuration|null} [duration] SleepCondition duration - */ - - /** - * Constructs a new SleepCondition. - * @memberof flyteidl.core - * @classdesc Represents a SleepCondition. - * @implements ISleepCondition - * @constructor - * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set - */ - function SleepCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SleepCondition duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.core.SleepCondition - * @instance - */ - SleepCondition.prototype.duration = null; - - /** - * Creates a new SleepCondition instance using the specified properties. - * @function create - * @memberof flyteidl.core.SleepCondition - * @static - * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set - * @returns {flyteidl.core.SleepCondition} SleepCondition instance - */ - SleepCondition.create = function create(properties) { - return new SleepCondition(properties); - }; - - /** - * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SleepCondition - * @static - * @param {flyteidl.core.ISleepCondition} message SleepCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SleepCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SleepCondition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SleepCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SleepCondition} SleepCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SleepCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SleepCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SleepCondition message. - * @function verify - * @memberof flyteidl.core.SleepCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SleepCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - return null; - }; - - return SleepCondition; - })(); - - core.GateNode = (function() { - - /** - * Properties of a GateNode. - * @memberof flyteidl.core - * @interface IGateNode - * @property {flyteidl.core.IApproveCondition|null} [approve] GateNode approve - * @property {flyteidl.core.ISignalCondition|null} [signal] GateNode signal - * @property {flyteidl.core.ISleepCondition|null} [sleep] GateNode sleep - */ - - /** - * Constructs a new GateNode. - * @memberof flyteidl.core - * @classdesc Represents a GateNode. - * @implements IGateNode - * @constructor - * @param {flyteidl.core.IGateNode=} [properties] Properties to set - */ - function GateNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GateNode approve. - * @member {flyteidl.core.IApproveCondition|null|undefined} approve - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.approve = null; - - /** - * GateNode signal. - * @member {flyteidl.core.ISignalCondition|null|undefined} signal - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.signal = null; - - /** - * GateNode sleep. - * @member {flyteidl.core.ISleepCondition|null|undefined} sleep - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.sleep = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GateNode condition. - * @member {"approve"|"signal"|"sleep"|undefined} condition - * @memberof flyteidl.core.GateNode - * @instance - */ - Object.defineProperty(GateNode.prototype, "condition", { - get: $util.oneOfGetter($oneOfFields = ["approve", "signal", "sleep"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GateNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.GateNode - * @static - * @param {flyteidl.core.IGateNode=} [properties] Properties to set - * @returns {flyteidl.core.GateNode} GateNode instance - */ - GateNode.create = function create(properties) { - return new GateNode(properties); - }; - - /** - * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.GateNode - * @static - * @param {flyteidl.core.IGateNode} message GateNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GateNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.approve != null && message.hasOwnProperty("approve")) - $root.flyteidl.core.ApproveCondition.encode(message.approve, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.signal != null && message.hasOwnProperty("signal")) - $root.flyteidl.core.SignalCondition.encode(message.signal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sleep != null && message.hasOwnProperty("sleep")) - $root.flyteidl.core.SleepCondition.encode(message.sleep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GateNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.GateNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.GateNode} GateNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GateNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GateNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.approve = $root.flyteidl.core.ApproveCondition.decode(reader, reader.uint32()); - break; - case 2: - message.signal = $root.flyteidl.core.SignalCondition.decode(reader, reader.uint32()); - break; - case 3: - message.sleep = $root.flyteidl.core.SleepCondition.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GateNode message. - * @function verify - * @memberof flyteidl.core.GateNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GateNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.approve != null && message.hasOwnProperty("approve")) { - properties.condition = 1; - { - var error = $root.flyteidl.core.ApproveCondition.verify(message.approve); - if (error) - return "approve." + error; - } - } - if (message.signal != null && message.hasOwnProperty("signal")) { - if (properties.condition === 1) - return "condition: multiple values"; - properties.condition = 1; - { - var error = $root.flyteidl.core.SignalCondition.verify(message.signal); - if (error) - return "signal." + error; - } - } - if (message.sleep != null && message.hasOwnProperty("sleep")) { - if (properties.condition === 1) - return "condition: multiple values"; - properties.condition = 1; - { - var error = $root.flyteidl.core.SleepCondition.verify(message.sleep); - if (error) - return "sleep." + error; - } - } - return null; - }; - - return GateNode; - })(); - - core.ArrayNode = (function() { - - /** - * Properties of an ArrayNode. - * @memberof flyteidl.core - * @interface IArrayNode - * @property {flyteidl.core.INode|null} [node] ArrayNode node - * @property {number|null} [parallelism] ArrayNode parallelism - * @property {number|null} [minSuccesses] ArrayNode minSuccesses - * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio - */ - - /** - * Constructs a new ArrayNode. - * @memberof flyteidl.core - * @classdesc Represents an ArrayNode. - * @implements IArrayNode - * @constructor - * @param {flyteidl.core.IArrayNode=} [properties] Properties to set - */ - function ArrayNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArrayNode node. - * @member {flyteidl.core.INode|null|undefined} node - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.node = null; - - /** - * ArrayNode parallelism. - * @member {number} parallelism - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.parallelism = 0; - - /** - * ArrayNode minSuccesses. - * @member {number} minSuccesses - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.minSuccesses = 0; - - /** - * ArrayNode minSuccessRatio. - * @member {number} minSuccessRatio - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.minSuccessRatio = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArrayNode successCriteria. - * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria - * @memberof flyteidl.core.ArrayNode - * @instance - */ - Object.defineProperty(ArrayNode.prototype, "successCriteria", { - get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ArrayNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArrayNode - * @static - * @param {flyteidl.core.IArrayNode=} [properties] Properties to set - * @returns {flyteidl.core.ArrayNode} ArrayNode instance - */ - ArrayNode.create = function create(properties) { - return new ArrayNode(properties); - }; - - /** - * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArrayNode - * @static - * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArrayNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.node != null && message.hasOwnProperty("node")) - $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism); - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses); - if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio); - return writer; - }; - - /** - * Decodes an ArrayNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArrayNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArrayNode} ArrayNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArrayNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 2: - message.parallelism = reader.uint32(); - break; - case 3: - message.minSuccesses = reader.uint32(); - break; - case 4: - message.minSuccessRatio = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArrayNode message. - * @function verify - * @memberof flyteidl.core.ArrayNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArrayNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.node != null && message.hasOwnProperty("node")) { - var error = $root.flyteidl.core.Node.verify(message.node); - if (error) - return "node." + error; - } - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (!$util.isInteger(message.parallelism)) - return "parallelism: integer expected"; - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) { - properties.successCriteria = 1; - if (!$util.isInteger(message.minSuccesses)) - return "minSuccesses: integer expected"; - } - if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) { - if (properties.successCriteria === 1) - return "successCriteria: multiple values"; - properties.successCriteria = 1; - if (typeof message.minSuccessRatio !== "number") - return "minSuccessRatio: number expected"; - } - return null; - }; - - return ArrayNode; - })(); - - core.NodeMetadata = (function() { - - /** - * Properties of a NodeMetadata. - * @memberof flyteidl.core - * @interface INodeMetadata - * @property {string|null} [name] NodeMetadata name - * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout - * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries - * @property {boolean|null} [interruptible] NodeMetadata interruptible - * @property {boolean|null} [cacheable] NodeMetadata cacheable - * @property {string|null} [cacheVersion] NodeMetadata cacheVersion - * @property {boolean|null} [cacheSerializable] NodeMetadata cacheSerializable - */ - - /** - * Constructs a new NodeMetadata. - * @memberof flyteidl.core - * @classdesc Represents a NodeMetadata. - * @implements INodeMetadata - * @constructor - * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set - */ - function NodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeMetadata name. - * @member {string} name - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.name = ""; - - /** - * NodeMetadata timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.timeout = null; - - /** - * NodeMetadata retries. - * @member {flyteidl.core.IRetryStrategy|null|undefined} retries - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.retries = null; - - /** - * NodeMetadata interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.interruptible = false; - - /** - * NodeMetadata cacheable. - * @member {boolean} cacheable - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.cacheable = false; - - /** - * NodeMetadata cacheVersion. - * @member {string} cacheVersion - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.cacheVersion = ""; - - /** - * NodeMetadata cacheSerializable. - * @member {boolean} cacheSerializable - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.cacheSerializable = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * NodeMetadata interruptibleValue. - * @member {"interruptible"|undefined} interruptibleValue - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - Object.defineProperty(NodeMetadata.prototype, "interruptibleValue", { - get: $util.oneOfGetter($oneOfFields = ["interruptible"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeMetadata cacheableValue. - * @member {"cacheable"|undefined} cacheableValue - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - Object.defineProperty(NodeMetadata.prototype, "cacheableValue", { - get: $util.oneOfGetter($oneOfFields = ["cacheable"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeMetadata cacheVersionValue. - * @member {"cacheVersion"|undefined} cacheVersionValue - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - Object.defineProperty(NodeMetadata.prototype, "cacheVersionValue", { - get: $util.oneOfGetter($oneOfFields = ["cacheVersion"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeMetadata cacheSerializableValue. - * @member {"cacheSerializable"|undefined} cacheSerializableValue - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - Object.defineProperty(NodeMetadata.prototype, "cacheSerializableValue", { - get: $util.oneOfGetter($oneOfFields = ["cacheSerializable"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new NodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set - * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance - */ - NodeMetadata.create = function create(properties) { - return new NodeMetadata(properties); - }; - - /** - * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.timeout != null && message.hasOwnProperty("timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.retries != null && message.hasOwnProperty("retries")) - $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interruptible); - if (message.cacheable != null && message.hasOwnProperty("cacheable")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.cacheable); - if (message.cacheVersion != null && message.hasOwnProperty("cacheVersion")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.cacheVersion); - if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); - return writer; - }; - - /** - * Decodes a NodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeMetadata} NodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 4: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); - break; - case 6: - message.interruptible = reader.bool(); - break; - case 7: - message.cacheable = reader.bool(); - break; - case 8: - message.cacheVersion = reader.string(); - break; - case 9: - message.cacheSerializable = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeMetadata message. - * @function verify - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.retries != null && message.hasOwnProperty("retries")) { - var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); - if (error) - return "retries." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - properties.interruptibleValue = 1; - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - } - if (message.cacheable != null && message.hasOwnProperty("cacheable")) { - properties.cacheableValue = 1; - if (typeof message.cacheable !== "boolean") - return "cacheable: boolean expected"; - } - if (message.cacheVersion != null && message.hasOwnProperty("cacheVersion")) { - properties.cacheVersionValue = 1; - if (!$util.isString(message.cacheVersion)) - return "cacheVersion: string expected"; - } - if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) { - properties.cacheSerializableValue = 1; - if (typeof message.cacheSerializable !== "boolean") - return "cacheSerializable: boolean expected"; - } - return null; - }; - - return NodeMetadata; - })(); - - core.Alias = (function() { - - /** - * Properties of an Alias. - * @memberof flyteidl.core - * @interface IAlias - * @property {string|null} ["var"] Alias var - * @property {string|null} [alias] Alias alias - */ - - /** - * Constructs a new Alias. - * @memberof flyteidl.core - * @classdesc Represents an Alias. - * @implements IAlias - * @constructor - * @param {flyteidl.core.IAlias=} [properties] Properties to set - */ - function Alias(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Alias var. - * @member {string} var - * @memberof flyteidl.core.Alias - * @instance - */ - Alias.prototype["var"] = ""; - - /** - * Alias alias. - * @member {string} alias - * @memberof flyteidl.core.Alias - * @instance - */ - Alias.prototype.alias = ""; - - /** - * Creates a new Alias instance using the specified properties. - * @function create - * @memberof flyteidl.core.Alias - * @static - * @param {flyteidl.core.IAlias=} [properties] Properties to set - * @returns {flyteidl.core.Alias} Alias instance - */ - Alias.create = function create(properties) { - return new Alias(properties); - }; - - /** - * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Alias - * @static - * @param {flyteidl.core.IAlias} message Alias message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Alias.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - if (message.alias != null && message.hasOwnProperty("alias")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); - return writer; - }; - - /** - * Decodes an Alias message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Alias - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Alias} Alias - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Alias.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = reader.string(); - break; - case 2: - message.alias = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Alias message. - * @function verify - * @memberof flyteidl.core.Alias - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Alias.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - return null; - }; - - return Alias; - })(); - - core.Node = (function() { - - /** - * Properties of a Node. - * @memberof flyteidl.core - * @interface INode - * @property {string|null} [id] Node id - * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata - * @property {Array.|null} [inputs] Node inputs - * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds - * @property {Array.|null} [outputAliases] Node outputAliases - * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode - * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode - * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode - * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode - * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode - */ - - /** - * Constructs a new Node. - * @memberof flyteidl.core - * @classdesc Represents a Node. - * @implements INode - * @constructor - * @param {flyteidl.core.INode=} [properties] Properties to set - */ - function Node(properties) { - this.inputs = []; - this.upstreamNodeIds = []; - this.outputAliases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Node id. - * @member {string} id - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.id = ""; - - /** - * Node metadata. - * @member {flyteidl.core.INodeMetadata|null|undefined} metadata - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.metadata = null; - - /** - * Node inputs. - * @member {Array.} inputs - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.inputs = $util.emptyArray; - - /** - * Node upstreamNodeIds. - * @member {Array.} upstreamNodeIds - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.upstreamNodeIds = $util.emptyArray; - - /** - * Node outputAliases. - * @member {Array.} outputAliases - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.outputAliases = $util.emptyArray; - - /** - * Node taskNode. - * @member {flyteidl.core.ITaskNode|null|undefined} taskNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.taskNode = null; - - /** - * Node workflowNode. - * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.workflowNode = null; - - /** - * Node branchNode. - * @member {flyteidl.core.IBranchNode|null|undefined} branchNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.branchNode = null; - - /** - * Node gateNode. - * @member {flyteidl.core.IGateNode|null|undefined} gateNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.gateNode = null; - - /** - * Node arrayNode. - * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.arrayNode = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Node target. - * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target - * @memberof flyteidl.core.Node - * @instance - */ - Object.defineProperty(Node.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Node instance using the specified properties. - * @function create - * @memberof flyteidl.core.Node - * @static - * @param {flyteidl.core.INode=} [properties] Properties to set - * @returns {flyteidl.core.Node} Node instance - */ - Node.create = function create(properties) { - return new Node(properties); - }; - - /** - * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Node - * @static - * @param {flyteidl.core.INode} message Node message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Node.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) - for (var i = 0; i < message.upstreamNodeIds.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); - if (message.outputAliases != null && message.outputAliases.length) - for (var i = 0; i < message.outputAliases.length; ++i) - $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.taskNode != null && message.hasOwnProperty("taskNode")) - $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) - $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.branchNode != null && message.hasOwnProperty("branchNode")) - $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.gateNode != null && message.hasOwnProperty("gateNode")) - $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) - $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Node message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Node - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Node} Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Node.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) - message.upstreamNodeIds = []; - message.upstreamNodeIds.push(reader.string()); - break; - case 5: - if (!(message.outputAliases && message.outputAliases.length)) - message.outputAliases = []; - message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); - break; - case 6: - message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); - break; - case 7: - message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); - break; - case 8: - message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); - break; - case 9: - message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32()); - break; - case 10: - message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Node message. - * @function verify - * @memberof flyteidl.core.Node - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Node.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { - if (!Array.isArray(message.upstreamNodeIds)) - return "upstreamNodeIds: array expected"; - for (var i = 0; i < message.upstreamNodeIds.length; ++i) - if (!$util.isString(message.upstreamNodeIds[i])) - return "upstreamNodeIds: string[] expected"; - } - if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { - if (!Array.isArray(message.outputAliases)) - return "outputAliases: array expected"; - for (var i = 0; i < message.outputAliases.length; ++i) { - var error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); - if (error) - return "outputAliases." + error; - } - } - if (message.taskNode != null && message.hasOwnProperty("taskNode")) { - properties.target = 1; - { - var error = $root.flyteidl.core.TaskNode.verify(message.taskNode); - if (error) - return "taskNode." + error; - } - } - if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); - if (error) - return "workflowNode." + error; - } - } - if (message.branchNode != null && message.hasOwnProperty("branchNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.BranchNode.verify(message.branchNode); - if (error) - return "branchNode." + error; - } - } - if (message.gateNode != null && message.hasOwnProperty("gateNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.GateNode.verify(message.gateNode); - if (error) - return "gateNode." + error; - } - } - if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode); - if (error) - return "arrayNode." + error; - } - } - return null; - }; - - return Node; - })(); - - core.WorkflowMetadata = (function() { - - /** - * Properties of a WorkflowMetadata. - * @memberof flyteidl.core - * @interface IWorkflowMetadata - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService - * @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure - * @property {Object.|null} [tags] WorkflowMetadata tags - */ - - /** - * Constructs a new WorkflowMetadata. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowMetadata. - * @implements IWorkflowMetadata - * @constructor - * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set - */ - function WorkflowMetadata(properties) { - this.tags = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowMetadata qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.core.WorkflowMetadata - * @instance - */ - WorkflowMetadata.prototype.qualityOfService = null; - - /** - * WorkflowMetadata onFailure. - * @member {flyteidl.core.WorkflowMetadata.OnFailurePolicy} onFailure - * @memberof flyteidl.core.WorkflowMetadata - * @instance - */ - WorkflowMetadata.prototype.onFailure = 0; - - /** - * WorkflowMetadata tags. - * @member {Object.} tags - * @memberof flyteidl.core.WorkflowMetadata - * @instance - */ - WorkflowMetadata.prototype.tags = $util.emptyObject; - - /** - * Creates a new WorkflowMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance - */ - WorkflowMetadata.create = function create(properties) { - return new WorkflowMetadata(properties); - }; - - /** - * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.onFailure != null && message.hasOwnProperty("onFailure")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure); - if (message.tags != null && message.hasOwnProperty("tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 2: - message.onFailure = reader.int32(); - break; - case 3: - reader.skip().pos++; - if (message.tags === $util.emptyObject) - message.tags = {}; - key = reader.string(); - reader.pos++; - message.tags[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowMetadata message. - * @function verify - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - if (message.onFailure != null && message.hasOwnProperty("onFailure")) - switch (message.onFailure) { - default: - return "onFailure: enum value expected"; - case 0: - case 1: - break; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } - return null; - }; - - /** - * OnFailurePolicy enum. - * @name flyteidl.core.WorkflowMetadata.OnFailurePolicy - * @enum {string} - * @property {number} FAIL_IMMEDIATELY=0 FAIL_IMMEDIATELY value - * @property {number} FAIL_AFTER_EXECUTABLE_NODES_COMPLETE=1 FAIL_AFTER_EXECUTABLE_NODES_COMPLETE value - */ - WorkflowMetadata.OnFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FAIL_IMMEDIATELY"] = 0; - values[valuesById[1] = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE"] = 1; - return values; - })(); - - return WorkflowMetadata; - })(); - - core.WorkflowMetadataDefaults = (function() { - - /** - * Properties of a WorkflowMetadataDefaults. - * @memberof flyteidl.core - * @interface IWorkflowMetadataDefaults - * @property {boolean|null} [interruptible] WorkflowMetadataDefaults interruptible - */ - - /** - * Constructs a new WorkflowMetadataDefaults. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowMetadataDefaults. - * @implements IWorkflowMetadataDefaults - * @constructor - * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set - */ - function WorkflowMetadataDefaults(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowMetadataDefaults interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @instance - */ - WorkflowMetadataDefaults.prototype.interruptible = false; - - /** - * Creates a new WorkflowMetadataDefaults instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults instance - */ - WorkflowMetadataDefaults.create = function create(properties) { - return new WorkflowMetadataDefaults(properties); - }; - - /** - * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {flyteidl.core.IWorkflowMetadataDefaults} message WorkflowMetadataDefaults message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowMetadataDefaults.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.interruptible); - return writer; - }; - - /** - * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowMetadataDefaults.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadataDefaults(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interruptible = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowMetadataDefaults message. - * @function verify - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowMetadataDefaults.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - return null; - }; - - return WorkflowMetadataDefaults; - })(); - - core.WorkflowTemplate = (function() { - - /** - * Properties of a WorkflowTemplate. - * @memberof flyteidl.core - * @interface IWorkflowTemplate - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id - * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata - * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface - * @property {Array.|null} [nodes] WorkflowTemplate nodes - * @property {Array.|null} [outputs] WorkflowTemplate outputs - * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode - * @property {flyteidl.core.IWorkflowMetadataDefaults|null} [metadataDefaults] WorkflowTemplate metadataDefaults - */ - - /** - * Constructs a new WorkflowTemplate. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowTemplate. - * @implements IWorkflowTemplate - * @constructor - * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set - */ - function WorkflowTemplate(properties) { - this.nodes = []; - this.outputs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowTemplate id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.id = null; - - /** - * WorkflowTemplate metadata. - * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.metadata = null; - - /** - * WorkflowTemplate interface. - * @member {flyteidl.core.ITypedInterface|null|undefined} interface - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype["interface"] = null; - - /** - * WorkflowTemplate nodes. - * @member {Array.} nodes - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.nodes = $util.emptyArray; - - /** - * WorkflowTemplate outputs. - * @member {Array.} outputs - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.outputs = $util.emptyArray; - - /** - * WorkflowTemplate failureNode. - * @member {flyteidl.core.INode|null|undefined} failureNode - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.failureNode = null; - - /** - * WorkflowTemplate metadataDefaults. - * @member {flyteidl.core.IWorkflowMetadataDefaults|null|undefined} metadataDefaults - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.metadataDefaults = null; - - /** - * Creates a new WorkflowTemplate instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance - */ - WorkflowTemplate.create = function create(properties) { - return new WorkflowTemplate(properties); - }; - - /** - * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowTemplate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message["interface"] != null && message.hasOwnProperty("interface")) - $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.nodes != null && message.nodes.length) - for (var i = 0; i < message.nodes.length; ++i) - $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.failureNode != null && message.hasOwnProperty("failureNode")) - $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) - $root.flyteidl.core.WorkflowMetadataDefaults.encode(message.metadataDefaults, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowTemplate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); - break; - case 3: - message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.nodes && message.nodes.length)) - message.nodes = []; - message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 6: - message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 7: - message.metadataDefaults = $root.flyteidl.core.WorkflowMetadataDefaults.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowTemplate message. - * @function verify - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message["interface"] != null && message.hasOwnProperty("interface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); - if (error) - return "interface." + error; - } - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; - for (var i = 0; i < message.nodes.length; ++i) { - var error = $root.flyteidl.core.Node.verify(message.nodes[i]); - if (error) - return "nodes." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.failureNode != null && message.hasOwnProperty("failureNode")) { - var error = $root.flyteidl.core.Node.verify(message.failureNode); - if (error) - return "failureNode." + error; - } - if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) { - var error = $root.flyteidl.core.WorkflowMetadataDefaults.verify(message.metadataDefaults); - if (error) - return "metadataDefaults." + error; - } - return null; - }; - - return WorkflowTemplate; - })(); - - core.TaskNodeOverrides = (function() { - - /** - * Properties of a TaskNodeOverrides. - * @memberof flyteidl.core - * @interface ITaskNodeOverrides - * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources - * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources - */ - - /** - * Constructs a new TaskNodeOverrides. - * @memberof flyteidl.core - * @classdesc Represents a TaskNodeOverrides. - * @implements ITaskNodeOverrides - * @constructor - * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set - */ - function TaskNodeOverrides(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNodeOverrides resources. - * @member {flyteidl.core.IResources|null|undefined} resources - * @memberof flyteidl.core.TaskNodeOverrides - * @instance - */ - TaskNodeOverrides.prototype.resources = null; - - /** - * TaskNodeOverrides extendedResources. - * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources - * @memberof flyteidl.core.TaskNodeOverrides - * @instance - */ - TaskNodeOverrides.prototype.extendedResources = null; - - /** - * Creates a new TaskNodeOverrides instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set - * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides instance - */ - TaskNodeOverrides.create = function create(properties) { - return new TaskNodeOverrides(properties); - }; - - /** - * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {flyteidl.core.ITaskNodeOverrides} message TaskNodeOverrides message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNodeOverrides.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resources != null && message.hasOwnProperty("resources")) - $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) - $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskNodeOverrides message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNodeOverrides.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNodeOverrides(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); - break; - case 2: - message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNodeOverrides message. - * @function verify - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNodeOverrides.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resources != null && message.hasOwnProperty("resources")) { - var error = $root.flyteidl.core.Resources.verify(message.resources); - if (error) - return "resources." + error; - } - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { - var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); - if (error) - return "extendedResources." + error; - } - return null; - }; - - return TaskNodeOverrides; - })(); - - core.LaunchPlanTemplate = (function() { - - /** - * Properties of a LaunchPlanTemplate. - * @memberof flyteidl.core - * @interface ILaunchPlanTemplate - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanTemplate id - * @property {flyteidl.core.ITypedInterface|null} ["interface"] LaunchPlanTemplate interface - * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanTemplate fixedInputs - */ - - /** - * Constructs a new LaunchPlanTemplate. - * @memberof flyteidl.core - * @classdesc Represents a LaunchPlanTemplate. - * @implements ILaunchPlanTemplate - * @constructor - * @param {flyteidl.core.ILaunchPlanTemplate=} [properties] Properties to set - */ - function LaunchPlanTemplate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanTemplate id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.core.LaunchPlanTemplate - * @instance - */ - LaunchPlanTemplate.prototype.id = null; - - /** - * LaunchPlanTemplate interface. - * @member {flyteidl.core.ITypedInterface|null|undefined} interface - * @memberof flyteidl.core.LaunchPlanTemplate - * @instance - */ - LaunchPlanTemplate.prototype["interface"] = null; - - /** - * LaunchPlanTemplate fixedInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs - * @memberof flyteidl.core.LaunchPlanTemplate - * @instance - */ - LaunchPlanTemplate.prototype.fixedInputs = null; - - /** - * Creates a new LaunchPlanTemplate instance using the specified properties. - * @function create - * @memberof flyteidl.core.LaunchPlanTemplate - * @static - * @param {flyteidl.core.ILaunchPlanTemplate=} [properties] Properties to set - * @returns {flyteidl.core.LaunchPlanTemplate} LaunchPlanTemplate instance - */ - LaunchPlanTemplate.create = function create(properties) { - return new LaunchPlanTemplate(properties); - }; - - /** - * Encodes the specified LaunchPlanTemplate message. Does not implicitly {@link flyteidl.core.LaunchPlanTemplate.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LaunchPlanTemplate - * @static - * @param {flyteidl.core.ILaunchPlanTemplate} message LaunchPlanTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanTemplate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["interface"] != null && message.hasOwnProperty("interface")) - $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanTemplate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LaunchPlanTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LaunchPlanTemplate} LaunchPlanTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LaunchPlanTemplate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 3: - message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanTemplate message. - * @function verify - * @memberof flyteidl.core.LaunchPlanTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message["interface"] != null && message.hasOwnProperty("interface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); - if (error) - return "interface." + error; - } - if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); - if (error) - return "fixedInputs." + error; - } - return null; - }; - - return LaunchPlanTemplate; - })(); - - core.ComparisonExpression = (function() { - - /** - * Properties of a ComparisonExpression. - * @memberof flyteidl.core - * @interface IComparisonExpression - * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator - * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue - * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue - */ - - /** - * Constructs a new ComparisonExpression. - * @memberof flyteidl.core - * @classdesc Represents a ComparisonExpression. - * @implements IComparisonExpression - * @constructor - * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set - */ - function ComparisonExpression(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ComparisonExpression operator. - * @member {flyteidl.core.ComparisonExpression.Operator} operator - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.operator = 0; - - /** - * ComparisonExpression leftValue. - * @member {flyteidl.core.IOperand|null|undefined} leftValue - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.leftValue = null; - - /** - * ComparisonExpression rightValue. - * @member {flyteidl.core.IOperand|null|undefined} rightValue - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.rightValue = null; - - /** - * Creates a new ComparisonExpression instance using the specified properties. - * @function create - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set - * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance - */ - ComparisonExpression.create = function create(properties) { - return new ComparisonExpression(properties); - }; - - /** - * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComparisonExpression.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.operator != null && message.hasOwnProperty("operator")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); - if (message.leftValue != null && message.hasOwnProperty("leftValue")) - $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rightValue != null && message.hasOwnProperty("rightValue")) - $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ComparisonExpression message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComparisonExpression.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operator = reader.int32(); - break; - case 2: - message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); - break; - case 3: - message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ComparisonExpression message. - * @function verify - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ComparisonExpression.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.operator != null && message.hasOwnProperty("operator")) - switch (message.operator) { - default: - return "operator: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.leftValue != null && message.hasOwnProperty("leftValue")) { - var error = $root.flyteidl.core.Operand.verify(message.leftValue); - if (error) - return "leftValue." + error; - } - if (message.rightValue != null && message.hasOwnProperty("rightValue")) { - var error = $root.flyteidl.core.Operand.verify(message.rightValue); - if (error) - return "rightValue." + error; - } - return null; - }; - - /** - * Operator enum. - * @name flyteidl.core.ComparisonExpression.Operator - * @enum {string} - * @property {number} EQ=0 EQ value - * @property {number} NEQ=1 NEQ value - * @property {number} GT=2 GT value - * @property {number} GTE=3 GTE value - * @property {number} LT=4 LT value - * @property {number} LTE=5 LTE value - */ - ComparisonExpression.Operator = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EQ"] = 0; - values[valuesById[1] = "NEQ"] = 1; - values[valuesById[2] = "GT"] = 2; - values[valuesById[3] = "GTE"] = 3; - values[valuesById[4] = "LT"] = 4; - values[valuesById[5] = "LTE"] = 5; - return values; - })(); - - return ComparisonExpression; - })(); - - core.Operand = (function() { - - /** - * Properties of an Operand. - * @memberof flyteidl.core - * @interface IOperand - * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive - * @property {string|null} ["var"] Operand var - * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar - */ - - /** - * Constructs a new Operand. - * @memberof flyteidl.core - * @classdesc Represents an Operand. - * @implements IOperand - * @constructor - * @param {flyteidl.core.IOperand=} [properties] Properties to set - */ - function Operand(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Operand primitive. - * @member {flyteidl.core.IPrimitive|null|undefined} primitive - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype.primitive = null; - - /** - * Operand var. - * @member {string} var - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype["var"] = ""; - - /** - * Operand scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype.scalar = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Operand val. - * @member {"primitive"|"var"|"scalar"|undefined} val - * @memberof flyteidl.core.Operand - * @instance - */ - Object.defineProperty(Operand.prototype, "val", { - get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Operand instance using the specified properties. - * @function create - * @memberof flyteidl.core.Operand - * @static - * @param {flyteidl.core.IOperand=} [properties] Properties to set - * @returns {flyteidl.core.Operand} Operand instance - */ - Operand.create = function create(properties) { - return new Operand(properties); - }; - - /** - * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Operand - * @static - * @param {flyteidl.core.IOperand} message Operand message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Operand.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.primitive != null && message.hasOwnProperty("primitive")) - $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Operand message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Operand - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Operand} Operand - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Operand.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); - break; - case 2: - message["var"] = reader.string(); - break; - case 3: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Operand message. - * @function verify - * @memberof flyteidl.core.Operand - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Operand.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.primitive != null && message.hasOwnProperty("primitive")) { - properties.val = 1; - { - var error = $root.flyteidl.core.Primitive.verify(message.primitive); - if (error) - return "primitive." + error; - } - } - if (message["var"] != null && message.hasOwnProperty("var")) { - if (properties.val === 1) - return "val: multiple values"; - properties.val = 1; - if (!$util.isString(message["var"])) - return "var: string expected"; - } - if (message.scalar != null && message.hasOwnProperty("scalar")) { - if (properties.val === 1) - return "val: multiple values"; - properties.val = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } - } - return null; - }; - - return Operand; - })(); - - core.BooleanExpression = (function() { - - /** - * Properties of a BooleanExpression. - * @memberof flyteidl.core - * @interface IBooleanExpression - * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction - * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison - */ - - /** - * Constructs a new BooleanExpression. - * @memberof flyteidl.core - * @classdesc Represents a BooleanExpression. - * @implements IBooleanExpression - * @constructor - * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set - */ - function BooleanExpression(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BooleanExpression conjunction. - * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - BooleanExpression.prototype.conjunction = null; - - /** - * BooleanExpression comparison. - * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - BooleanExpression.prototype.comparison = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * BooleanExpression expr. - * @member {"conjunction"|"comparison"|undefined} expr - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - Object.defineProperty(BooleanExpression.prototype, "expr", { - get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new BooleanExpression instance using the specified properties. - * @function create - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set - * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance - */ - BooleanExpression.create = function create(properties) { - return new BooleanExpression(properties); - }; - - /** - * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BooleanExpression.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.conjunction != null && message.hasOwnProperty("conjunction")) - $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.comparison != null && message.hasOwnProperty("comparison")) - $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BooleanExpression message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BooleanExpression} BooleanExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BooleanExpression.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); - break; - case 2: - message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BooleanExpression message. - * @function verify - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BooleanExpression.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.conjunction != null && message.hasOwnProperty("conjunction")) { - properties.expr = 1; - { - var error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); - if (error) - return "conjunction." + error; - } - } - if (message.comparison != null && message.hasOwnProperty("comparison")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); - if (error) - return "comparison." + error; - } - } - return null; - }; - - return BooleanExpression; - })(); - - core.ConjunctionExpression = (function() { - - /** - * Properties of a ConjunctionExpression. - * @memberof flyteidl.core - * @interface IConjunctionExpression - * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator - * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression - * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression - */ - - /** - * Constructs a new ConjunctionExpression. - * @memberof flyteidl.core - * @classdesc Represents a ConjunctionExpression. - * @implements IConjunctionExpression - * @constructor - * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set - */ - function ConjunctionExpression(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ConjunctionExpression operator. - * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.operator = 0; - - /** - * ConjunctionExpression leftExpression. - * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.leftExpression = null; - - /** - * ConjunctionExpression rightExpression. - * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.rightExpression = null; - - /** - * Creates a new ConjunctionExpression instance using the specified properties. - * @function create - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set - * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance - */ - ConjunctionExpression.create = function create(properties) { - return new ConjunctionExpression(properties); - }; - - /** - * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConjunctionExpression.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.operator != null && message.hasOwnProperty("operator")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); - if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) - $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) - $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ConjunctionExpression message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConjunctionExpression.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operator = reader.int32(); - break; - case 2: - message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); - break; - case 3: - message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ConjunctionExpression message. - * @function verify - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConjunctionExpression.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.operator != null && message.hasOwnProperty("operator")) - switch (message.operator) { - default: - return "operator: enum value expected"; - case 0: - case 1: - break; - } - if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); - if (error) - return "leftExpression." + error; - } - if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); - if (error) - return "rightExpression." + error; - } - return null; - }; - - /** - * LogicalOperator enum. - * @name flyteidl.core.ConjunctionExpression.LogicalOperator - * @enum {string} - * @property {number} AND=0 AND value - * @property {number} OR=1 OR value - */ - ConjunctionExpression.LogicalOperator = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AND"] = 0; - values[valuesById[1] = "OR"] = 1; - return values; - })(); - - return ConjunctionExpression; - })(); - - core.WorkflowExecution = (function() { - - /** - * Properties of a WorkflowExecution. - * @memberof flyteidl.core - * @interface IWorkflowExecution - */ - - /** - * Constructs a new WorkflowExecution. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowExecution. - * @implements IWorkflowExecution - * @constructor - * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set - */ - function WorkflowExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowExecution instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance - */ - WorkflowExecution.create = function create(properties) { - return new WorkflowExecution(properties); - }; - - /** - * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecution message. - * @function verify - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Phase enum. - * @name flyteidl.core.WorkflowExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDING=3 SUCCEEDING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} FAILING=5 FAILING value - * @property {number} FAILED=6 FAILED value - * @property {number} ABORTED=7 ABORTED value - * @property {number} TIMED_OUT=8 TIMED_OUT value - * @property {number} ABORTING=9 ABORTING value - */ - WorkflowExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "FAILING"] = 5; - values[valuesById[6] = "FAILED"] = 6; - values[valuesById[7] = "ABORTED"] = 7; - values[valuesById[8] = "TIMED_OUT"] = 8; - values[valuesById[9] = "ABORTING"] = 9; - return values; - })(); - - return WorkflowExecution; - })(); - - core.NodeExecution = (function() { - - /** - * Properties of a NodeExecution. - * @memberof flyteidl.core - * @interface INodeExecution - */ - - /** - * Constructs a new NodeExecution. - * @memberof flyteidl.core - * @classdesc Represents a NodeExecution. - * @implements INodeExecution - * @constructor - * @param {flyteidl.core.INodeExecution=} [properties] Properties to set - */ - function NodeExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new NodeExecution instance using the specified properties. - * @function create - * @memberof flyteidl.core.NodeExecution - * @static - * @param {flyteidl.core.INodeExecution=} [properties] Properties to set - * @returns {flyteidl.core.NodeExecution} NodeExecution instance - */ - NodeExecution.create = function create(properties) { - return new NodeExecution(properties); - }; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.NodeExecution - * @static - * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.NodeExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeExecution} NodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecution message. - * @function verify - * @memberof flyteidl.core.NodeExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Phase enum. - * @name flyteidl.core.NodeExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} FAILING=4 FAILING value - * @property {number} FAILED=5 FAILED value - * @property {number} ABORTED=6 ABORTED value - * @property {number} SKIPPED=7 SKIPPED value - * @property {number} TIMED_OUT=8 TIMED_OUT value - * @property {number} DYNAMIC_RUNNING=9 DYNAMIC_RUNNING value - * @property {number} RECOVERED=10 RECOVERED value - */ - NodeExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "FAILING"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "ABORTED"] = 6; - values[valuesById[7] = "SKIPPED"] = 7; - values[valuesById[8] = "TIMED_OUT"] = 8; - values[valuesById[9] = "DYNAMIC_RUNNING"] = 9; - values[valuesById[10] = "RECOVERED"] = 10; - return values; - })(); - - return NodeExecution; - })(); - - core.TaskExecution = (function() { - - /** - * Properties of a TaskExecution. - * @memberof flyteidl.core - * @interface ITaskExecution - */ - - /** - * Constructs a new TaskExecution. - * @memberof flyteidl.core - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution - * @constructor - * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set - */ - function TaskExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskExecution instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskExecution - * @static - * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set - * @returns {flyteidl.core.TaskExecution} TaskExecution instance - */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); - }; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskExecution - * @static - * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskExecution} TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecution message. - * @function verify - * @memberof flyteidl.core.TaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Phase enum. - * @name flyteidl.core.TaskExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} ABORTED=4 ABORTED value - * @property {number} FAILED=5 FAILED value - * @property {number} INITIALIZING=6 INITIALIZING value - * @property {number} WAITING_FOR_RESOURCES=7 WAITING_FOR_RESOURCES value - */ - TaskExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "ABORTED"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "INITIALIZING"] = 6; - values[valuesById[7] = "WAITING_FOR_RESOURCES"] = 7; - return values; - })(); - - return TaskExecution; - })(); - - core.ExecutionError = (function() { - - /** - * Properties of an ExecutionError. - * @memberof flyteidl.core - * @interface IExecutionError - * @property {string|null} [code] ExecutionError code - * @property {string|null} [message] ExecutionError message - * @property {string|null} [errorUri] ExecutionError errorUri - * @property {flyteidl.core.ExecutionError.ErrorKind|null} [kind] ExecutionError kind - */ - - /** - * Constructs a new ExecutionError. - * @memberof flyteidl.core - * @classdesc Represents an ExecutionError. - * @implements IExecutionError - * @constructor - * @param {flyteidl.core.IExecutionError=} [properties] Properties to set - */ - function ExecutionError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionError code. - * @member {string} code - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.code = ""; - - /** - * ExecutionError message. - * @member {string} message - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.message = ""; - - /** - * ExecutionError errorUri. - * @member {string} errorUri - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.errorUri = ""; - - /** - * ExecutionError kind. - * @member {flyteidl.core.ExecutionError.ErrorKind} kind - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.kind = 0; - - /** - * Creates a new ExecutionError instance using the specified properties. - * @function create - * @memberof flyteidl.core.ExecutionError - * @static - * @param {flyteidl.core.IExecutionError=} [properties] Properties to set - * @returns {flyteidl.core.ExecutionError} ExecutionError instance - */ - ExecutionError.create = function create(properties) { - return new ExecutionError(properties); - }; - - /** - * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ExecutionError - * @static - * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.kind); - return writer; - }; - - /** - * Decodes an ExecutionError message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ExecutionError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ExecutionError} ExecutionError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.string(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.errorUri = reader.string(); - break; - case 4: - message.kind = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionError message. - * @function verify - * @memberof flyteidl.core.ExecutionError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - if (!$util.isString(message.errorUri)) - return "errorUri: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * ErrorKind enum. - * @name flyteidl.core.ExecutionError.ErrorKind - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - */ - ExecutionError.ErrorKind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - return values; - })(); - - return ExecutionError; - })(); - - core.TaskLog = (function() { - - /** - * Properties of a TaskLog. - * @memberof flyteidl.core - * @interface ITaskLog - * @property {string|null} [uri] TaskLog uri - * @property {string|null} [name] TaskLog name - * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat - * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl - */ - - /** - * Constructs a new TaskLog. - * @memberof flyteidl.core - * @classdesc Represents a TaskLog. - * @implements ITaskLog - * @constructor - * @param {flyteidl.core.ITaskLog=} [properties] Properties to set - */ - function TaskLog(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskLog uri. - * @member {string} uri - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.uri = ""; - - /** - * TaskLog name. - * @member {string} name - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.name = ""; - - /** - * TaskLog messageFormat. - * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.messageFormat = 0; - - /** - * TaskLog ttl. - * @member {google.protobuf.IDuration|null|undefined} ttl - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.ttl = null; - - /** - * Creates a new TaskLog instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskLog - * @static - * @param {flyteidl.core.ITaskLog=} [properties] Properties to set - * @returns {flyteidl.core.TaskLog} TaskLog instance - */ - TaskLog.create = function create(properties) { - return new TaskLog(properties); - }; - - /** - * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskLog - * @static - * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskLog.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); - if (message.ttl != null && message.hasOwnProperty("ttl")) - $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskLog message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskLog - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskLog} TaskLog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskLog.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.messageFormat = reader.int32(); - break; - case 4: - message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskLog message. - * @function verify - * @memberof flyteidl.core.TaskLog - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskLog.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) - switch (message.messageFormat) { - default: - return "messageFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.ttl != null && message.hasOwnProperty("ttl")) { - var error = $root.google.protobuf.Duration.verify(message.ttl); - if (error) - return "ttl." + error; - } - return null; - }; - - /** - * MessageFormat enum. - * @name flyteidl.core.TaskLog.MessageFormat - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} CSV=1 CSV value - * @property {number} JSON=2 JSON value - */ - TaskLog.MessageFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "CSV"] = 1; - values[valuesById[2] = "JSON"] = 2; - return values; - })(); - - return TaskLog; - })(); - - core.QualityOfServiceSpec = (function() { - - /** - * Properties of a QualityOfServiceSpec. - * @memberof flyteidl.core - * @interface IQualityOfServiceSpec - * @property {google.protobuf.IDuration|null} [queueingBudget] QualityOfServiceSpec queueingBudget - */ - - /** - * Constructs a new QualityOfServiceSpec. - * @memberof flyteidl.core - * @classdesc Represents a QualityOfServiceSpec. - * @implements IQualityOfServiceSpec - * @constructor - * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set - */ - function QualityOfServiceSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QualityOfServiceSpec queueingBudget. - * @member {google.protobuf.IDuration|null|undefined} queueingBudget - * @memberof flyteidl.core.QualityOfServiceSpec - * @instance - */ - QualityOfServiceSpec.prototype.queueingBudget = null; - - /** - * Creates a new QualityOfServiceSpec instance using the specified properties. - * @function create - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set - * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec instance - */ - QualityOfServiceSpec.create = function create(properties) { - return new QualityOfServiceSpec(properties); - }; - - /** - * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {flyteidl.core.IQualityOfServiceSpec} message QualityOfServiceSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QualityOfServiceSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) - $root.google.protobuf.Duration.encode(message.queueingBudget, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a QualityOfServiceSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QualityOfServiceSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfServiceSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueingBudget = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a QualityOfServiceSpec message. - * @function verify - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QualityOfServiceSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) { - var error = $root.google.protobuf.Duration.verify(message.queueingBudget); - if (error) - return "queueingBudget." + error; - } - return null; - }; - - return QualityOfServiceSpec; - })(); - - core.QualityOfService = (function() { - - /** - * Properties of a QualityOfService. - * @memberof flyteidl.core - * @interface IQualityOfService - * @property {flyteidl.core.QualityOfService.Tier|null} [tier] QualityOfService tier - * @property {flyteidl.core.IQualityOfServiceSpec|null} [spec] QualityOfService spec - */ - - /** - * Constructs a new QualityOfService. - * @memberof flyteidl.core - * @classdesc Represents a QualityOfService. - * @implements IQualityOfService - * @constructor - * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set - */ - function QualityOfService(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QualityOfService tier. - * @member {flyteidl.core.QualityOfService.Tier} tier - * @memberof flyteidl.core.QualityOfService - * @instance - */ - QualityOfService.prototype.tier = 0; - - /** - * QualityOfService spec. - * @member {flyteidl.core.IQualityOfServiceSpec|null|undefined} spec - * @memberof flyteidl.core.QualityOfService - * @instance - */ - QualityOfService.prototype.spec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * QualityOfService designation. - * @member {"tier"|"spec"|undefined} designation - * @memberof flyteidl.core.QualityOfService - * @instance - */ - Object.defineProperty(QualityOfService.prototype, "designation", { - get: $util.oneOfGetter($oneOfFields = ["tier", "spec"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new QualityOfService instance using the specified properties. - * @function create - * @memberof flyteidl.core.QualityOfService - * @static - * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set - * @returns {flyteidl.core.QualityOfService} QualityOfService instance - */ - QualityOfService.create = function create(properties) { - return new QualityOfService(properties); - }; - - /** - * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.QualityOfService - * @static - * @param {flyteidl.core.IQualityOfService} message QualityOfService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QualityOfService.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tier != null && message.hasOwnProperty("tier")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tier); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.core.QualityOfServiceSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a QualityOfService message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.QualityOfService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.QualityOfService} QualityOfService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QualityOfService.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfService(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tier = reader.int32(); - break; - case 2: - message.spec = $root.flyteidl.core.QualityOfServiceSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a QualityOfService message. - * @function verify - * @memberof flyteidl.core.QualityOfService - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QualityOfService.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.tier != null && message.hasOwnProperty("tier")) { - properties.designation = 1; - switch (message.tier) { - default: - return "tier: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.spec != null && message.hasOwnProperty("spec")) { - if (properties.designation === 1) - return "designation: multiple values"; - properties.designation = 1; - { - var error = $root.flyteidl.core.QualityOfServiceSpec.verify(message.spec); - if (error) - return "spec." + error; - } - } - return null; - }; - - /** - * Tier enum. - * @name flyteidl.core.QualityOfService.Tier - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} HIGH=1 HIGH value - * @property {number} MEDIUM=2 MEDIUM value - * @property {number} LOW=3 LOW value - */ - QualityOfService.Tier = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "HIGH"] = 1; - values[valuesById[2] = "MEDIUM"] = 2; - values[valuesById[3] = "LOW"] = 3; - return values; - })(); - - return QualityOfService; - })(); - - core.Resources = (function() { - - /** - * Properties of a Resources. - * @memberof flyteidl.core - * @interface IResources - * @property {Array.|null} [requests] Resources requests - * @property {Array.|null} [limits] Resources limits - */ - - /** - * Constructs a new Resources. - * @memberof flyteidl.core - * @classdesc Represents a Resources. - * @implements IResources - * @constructor - * @param {flyteidl.core.IResources=} [properties] Properties to set - */ - function Resources(properties) { - this.requests = []; - this.limits = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Resources requests. - * @member {Array.} requests - * @memberof flyteidl.core.Resources - * @instance - */ - Resources.prototype.requests = $util.emptyArray; - - /** - * Resources limits. - * @member {Array.} limits - * @memberof flyteidl.core.Resources - * @instance - */ - Resources.prototype.limits = $util.emptyArray; - - /** - * Creates a new Resources instance using the specified properties. - * @function create - * @memberof flyteidl.core.Resources - * @static - * @param {flyteidl.core.IResources=} [properties] Properties to set - * @returns {flyteidl.core.Resources} Resources instance - */ - Resources.create = function create(properties) { - return new Resources(properties); - }; - - /** - * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Resources - * @static - * @param {flyteidl.core.IResources} message Resources message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Resources.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.flyteidl.core.Resources.ResourceEntry.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limits != null && message.limits.length) - for (var i = 0; i < message.limits.length; ++i) - $root.flyteidl.core.Resources.ResourceEntry.encode(message.limits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Resources message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Resources - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Resources} Resources - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Resources.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.limits && message.limits.length)) - message.limits = []; - message.limits.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Resources message. - * @function verify - * @memberof flyteidl.core.Resources - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Resources.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.requests[i]); - if (error) - return "requests." + error; - } - } - if (message.limits != null && message.hasOwnProperty("limits")) { - if (!Array.isArray(message.limits)) - return "limits: array expected"; - for (var i = 0; i < message.limits.length; ++i) { - var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.limits[i]); - if (error) - return "limits." + error; - } - } - return null; - }; - - /** - * ResourceName enum. - * @name flyteidl.core.Resources.ResourceName - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} CPU=1 CPU value - * @property {number} GPU=2 GPU value - * @property {number} MEMORY=3 MEMORY value - * @property {number} STORAGE=4 STORAGE value - * @property {number} EPHEMERAL_STORAGE=5 EPHEMERAL_STORAGE value - */ - Resources.ResourceName = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "CPU"] = 1; - values[valuesById[2] = "GPU"] = 2; - values[valuesById[3] = "MEMORY"] = 3; - values[valuesById[4] = "STORAGE"] = 4; - values[valuesById[5] = "EPHEMERAL_STORAGE"] = 5; - return values; - })(); - - Resources.ResourceEntry = (function() { - - /** - * Properties of a ResourceEntry. - * @memberof flyteidl.core.Resources - * @interface IResourceEntry - * @property {flyteidl.core.Resources.ResourceName|null} [name] ResourceEntry name - * @property {string|null} [value] ResourceEntry value - */ - - /** - * Constructs a new ResourceEntry. - * @memberof flyteidl.core.Resources - * @classdesc Represents a ResourceEntry. - * @implements IResourceEntry - * @constructor - * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set - */ - function ResourceEntry(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourceEntry name. - * @member {flyteidl.core.Resources.ResourceName} name - * @memberof flyteidl.core.Resources.ResourceEntry - * @instance - */ - ResourceEntry.prototype.name = 0; - - /** - * ResourceEntry value. - * @member {string} value - * @memberof flyteidl.core.Resources.ResourceEntry - * @instance - */ - ResourceEntry.prototype.value = ""; - - /** - * Creates a new ResourceEntry instance using the specified properties. - * @function create - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set - * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry instance - */ - ResourceEntry.create = function create(properties) { - return new ResourceEntry(properties); - }; - - /** - * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {flyteidl.core.Resources.IResourceEntry} message ResourceEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - return writer; - }; - - /** - * Decodes a ResourceEntry message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources.ResourceEntry(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.int32(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ResourceEntry message. - * @function verify - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - switch (message.name) { - default: - return "name: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return ResourceEntry; - })(); - - return Resources; - })(); - - core.GPUAccelerator = (function() { - - /** - * Properties of a GPUAccelerator. - * @memberof flyteidl.core - * @interface IGPUAccelerator - * @property {string|null} [device] GPUAccelerator device - * @property {boolean|null} [unpartitioned] GPUAccelerator unpartitioned - * @property {string|null} [partitionSize] GPUAccelerator partitionSize - */ - - /** - * Constructs a new GPUAccelerator. - * @memberof flyteidl.core - * @classdesc Represents a GPUAccelerator. - * @implements IGPUAccelerator - * @constructor - * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set - */ - function GPUAccelerator(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GPUAccelerator device. - * @member {string} device - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - GPUAccelerator.prototype.device = ""; - - /** - * GPUAccelerator unpartitioned. - * @member {boolean} unpartitioned - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - GPUAccelerator.prototype.unpartitioned = false; - - /** - * GPUAccelerator partitionSize. - * @member {string} partitionSize - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - GPUAccelerator.prototype.partitionSize = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GPUAccelerator partitionSizeValue. - * @member {"unpartitioned"|"partitionSize"|undefined} partitionSizeValue - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - Object.defineProperty(GPUAccelerator.prototype, "partitionSizeValue", { - get: $util.oneOfGetter($oneOfFields = ["unpartitioned", "partitionSize"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GPUAccelerator instance using the specified properties. - * @function create - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set - * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator instance - */ - GPUAccelerator.create = function create(properties) { - return new GPUAccelerator(properties); - }; - - /** - * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {flyteidl.core.IGPUAccelerator} message GPUAccelerator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GPUAccelerator.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.device != null && message.hasOwnProperty("device")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.device); - if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.unpartitioned); - if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.partitionSize); - return writer; - }; - - /** - * Decodes a GPUAccelerator message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GPUAccelerator.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GPUAccelerator(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.device = reader.string(); - break; - case 2: - message.unpartitioned = reader.bool(); - break; - case 3: - message.partitionSize = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GPUAccelerator message. - * @function verify - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GPUAccelerator.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.device != null && message.hasOwnProperty("device")) - if (!$util.isString(message.device)) - return "device: string expected"; - if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) { - properties.partitionSizeValue = 1; - if (typeof message.unpartitioned !== "boolean") - return "unpartitioned: boolean expected"; - } - if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) { - if (properties.partitionSizeValue === 1) - return "partitionSizeValue: multiple values"; - properties.partitionSizeValue = 1; - if (!$util.isString(message.partitionSize)) - return "partitionSize: string expected"; - } - return null; - }; - - return GPUAccelerator; - })(); - - core.ExtendedResources = (function() { - - /** - * Properties of an ExtendedResources. - * @memberof flyteidl.core - * @interface IExtendedResources - * @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ExtendedResources gpuAccelerator - */ - - /** - * Constructs a new ExtendedResources. - * @memberof flyteidl.core - * @classdesc Represents an ExtendedResources. - * @implements IExtendedResources - * @constructor - * @param {flyteidl.core.IExtendedResources=} [properties] Properties to set - */ - function ExtendedResources(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtendedResources gpuAccelerator. - * @member {flyteidl.core.IGPUAccelerator|null|undefined} gpuAccelerator - * @memberof flyteidl.core.ExtendedResources - * @instance - */ - ExtendedResources.prototype.gpuAccelerator = null; - - /** - * Creates a new ExtendedResources instance using the specified properties. - * @function create - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {flyteidl.core.IExtendedResources=} [properties] Properties to set - * @returns {flyteidl.core.ExtendedResources} ExtendedResources instance - */ - ExtendedResources.create = function create(properties) { - return new ExtendedResources(properties); - }; - - /** - * Encodes the specified ExtendedResources message. Does not implicitly {@link flyteidl.core.ExtendedResources.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {flyteidl.core.IExtendedResources} message ExtendedResources message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtendedResources.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) - $root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExtendedResources message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ExtendedResources} ExtendedResources - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtendedResources.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExtendedResources(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExtendedResources message. - * @function verify - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtendedResources.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) { - var error = $root.flyteidl.core.GPUAccelerator.verify(message.gpuAccelerator); - if (error) - return "gpuAccelerator." + error; - } - return null; - }; - - return ExtendedResources; - })(); - - core.RuntimeMetadata = (function() { - - /** - * Properties of a RuntimeMetadata. - * @memberof flyteidl.core - * @interface IRuntimeMetadata - * @property {flyteidl.core.RuntimeMetadata.RuntimeType|null} [type] RuntimeMetadata type - * @property {string|null} [version] RuntimeMetadata version - * @property {string|null} [flavor] RuntimeMetadata flavor - */ - - /** - * Constructs a new RuntimeMetadata. - * @memberof flyteidl.core - * @classdesc Represents a RuntimeMetadata. - * @implements IRuntimeMetadata - * @constructor - * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set - */ - function RuntimeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RuntimeMetadata type. - * @member {flyteidl.core.RuntimeMetadata.RuntimeType} type - * @memberof flyteidl.core.RuntimeMetadata - * @instance - */ - RuntimeMetadata.prototype.type = 0; - - /** - * RuntimeMetadata version. - * @member {string} version - * @memberof flyteidl.core.RuntimeMetadata - * @instance - */ - RuntimeMetadata.prototype.version = ""; - - /** - * RuntimeMetadata flavor. - * @member {string} flavor - * @memberof flyteidl.core.RuntimeMetadata - * @instance - */ - RuntimeMetadata.prototype.flavor = ""; - - /** - * Creates a new RuntimeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set - * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata instance - */ - RuntimeMetadata.create = function create(properties) { - return new RuntimeMetadata(properties); - }; - - /** - * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {flyteidl.core.IRuntimeMetadata} message RuntimeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - if (message.flavor != null && message.hasOwnProperty("flavor")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.flavor); - return writer; - }; - - /** - * Decodes a RuntimeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RuntimeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.flavor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a RuntimeMetadata message. - * @function verify - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.flavor != null && message.hasOwnProperty("flavor")) - if (!$util.isString(message.flavor)) - return "flavor: string expected"; - return null; - }; - - /** - * RuntimeType enum. - * @name flyteidl.core.RuntimeMetadata.RuntimeType - * @enum {string} - * @property {number} OTHER=0 OTHER value - * @property {number} FLYTE_SDK=1 FLYTE_SDK value - */ - RuntimeMetadata.RuntimeType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OTHER"] = 0; - values[valuesById[1] = "FLYTE_SDK"] = 1; - return values; - })(); - - return RuntimeMetadata; - })(); - - core.TaskMetadata = (function() { - - /** - * Properties of a TaskMetadata. - * @memberof flyteidl.core - * @interface ITaskMetadata - * @property {boolean|null} [discoverable] TaskMetadata discoverable - * @property {flyteidl.core.IRuntimeMetadata|null} [runtime] TaskMetadata runtime - * @property {google.protobuf.IDuration|null} [timeout] TaskMetadata timeout - * @property {flyteidl.core.IRetryStrategy|null} [retries] TaskMetadata retries - * @property {string|null} [discoveryVersion] TaskMetadata discoveryVersion - * @property {string|null} [deprecatedErrorMessage] TaskMetadata deprecatedErrorMessage - * @property {boolean|null} [interruptible] TaskMetadata interruptible - * @property {boolean|null} [cacheSerializable] TaskMetadata cacheSerializable - * @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck - * @property {Object.|null} [tags] TaskMetadata tags - * @property {string|null} [podTemplateName] TaskMetadata podTemplateName - * @property {Array.|null} [cacheIgnoreInputVars] TaskMetadata cacheIgnoreInputVars - */ - - /** - * Constructs a new TaskMetadata. - * @memberof flyteidl.core - * @classdesc Represents a TaskMetadata. - * @implements ITaskMetadata - * @constructor - * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set - */ - function TaskMetadata(properties) { - this.tags = {}; - this.cacheIgnoreInputVars = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskMetadata discoverable. - * @member {boolean} discoverable - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.discoverable = false; - - /** - * TaskMetadata runtime. - * @member {flyteidl.core.IRuntimeMetadata|null|undefined} runtime - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.runtime = null; - - /** - * TaskMetadata timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.timeout = null; - - /** - * TaskMetadata retries. - * @member {flyteidl.core.IRetryStrategy|null|undefined} retries - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.retries = null; - - /** - * TaskMetadata discoveryVersion. - * @member {string} discoveryVersion - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.discoveryVersion = ""; - - /** - * TaskMetadata deprecatedErrorMessage. - * @member {string} deprecatedErrorMessage - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.deprecatedErrorMessage = ""; - - /** - * TaskMetadata interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.interruptible = false; - - /** - * TaskMetadata cacheSerializable. - * @member {boolean} cacheSerializable - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.cacheSerializable = false; - - /** - * TaskMetadata generatesDeck. - * @member {boolean} generatesDeck - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.generatesDeck = false; - - /** - * TaskMetadata tags. - * @member {Object.} tags - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.tags = $util.emptyObject; - - /** - * TaskMetadata podTemplateName. - * @member {string} podTemplateName - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.podTemplateName = ""; - - /** - * TaskMetadata cacheIgnoreInputVars. - * @member {Array.} cacheIgnoreInputVars - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.cacheIgnoreInputVars = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskMetadata interruptibleValue. - * @member {"interruptible"|undefined} interruptibleValue - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - Object.defineProperty(TaskMetadata.prototype, "interruptibleValue", { - get: $util.oneOfGetter($oneOfFields = ["interruptible"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set - * @returns {flyteidl.core.TaskMetadata} TaskMetadata instance - */ - TaskMetadata.create = function create(properties) { - return new TaskMetadata(properties); - }; - - /** - * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {flyteidl.core.ITaskMetadata} message TaskMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.discoverable != null && message.hasOwnProperty("discoverable")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.discoverable); - if (message.runtime != null && message.hasOwnProperty("runtime")) - $root.flyteidl.core.RuntimeMetadata.encode(message.runtime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timeout != null && message.hasOwnProperty("timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.retries != null && message.hasOwnProperty("retries")) - $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.discoveryVersion); - if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.deprecatedErrorMessage); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); - if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); - if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.generatesDeck); - if (message.tags != null && message.hasOwnProperty("tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.podTemplateName); - if (message.cacheIgnoreInputVars != null && message.cacheIgnoreInputVars.length) - for (var i = 0; i < message.cacheIgnoreInputVars.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.cacheIgnoreInputVars[i]); - return writer; - }; - - /** - * Decodes a TaskMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskMetadata} TaskMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.discoverable = reader.bool(); - break; - case 2: - message.runtime = $root.flyteidl.core.RuntimeMetadata.decode(reader, reader.uint32()); - break; - case 4: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); - break; - case 6: - message.discoveryVersion = reader.string(); - break; - case 7: - message.deprecatedErrorMessage = reader.string(); - break; - case 8: - message.interruptible = reader.bool(); - break; - case 9: - message.cacheSerializable = reader.bool(); - break; - case 10: - message.generatesDeck = reader.bool(); - break; - case 11: - reader.skip().pos++; - if (message.tags === $util.emptyObject) - message.tags = {}; - key = reader.string(); - reader.pos++; - message.tags[key] = reader.string(); - break; - case 12: - message.podTemplateName = reader.string(); - break; - case 13: - if (!(message.cacheIgnoreInputVars && message.cacheIgnoreInputVars.length)) - message.cacheIgnoreInputVars = []; - message.cacheIgnoreInputVars.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskMetadata message. - * @function verify - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.discoverable != null && message.hasOwnProperty("discoverable")) - if (typeof message.discoverable !== "boolean") - return "discoverable: boolean expected"; - if (message.runtime != null && message.hasOwnProperty("runtime")) { - var error = $root.flyteidl.core.RuntimeMetadata.verify(message.runtime); - if (error) - return "runtime." + error; - } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.retries != null && message.hasOwnProperty("retries")) { - var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); - if (error) - return "retries." + error; - } - if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) - if (!$util.isString(message.discoveryVersion)) - return "discoveryVersion: string expected"; - if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) - if (!$util.isString(message.deprecatedErrorMessage)) - return "deprecatedErrorMessage: string expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - properties.interruptibleValue = 1; - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - } - if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) - if (typeof message.cacheSerializable !== "boolean") - return "cacheSerializable: boolean expected"; - if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) - if (typeof message.generatesDeck !== "boolean") - return "generatesDeck: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } - if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) - if (!$util.isString(message.podTemplateName)) - return "podTemplateName: string expected"; - if (message.cacheIgnoreInputVars != null && message.hasOwnProperty("cacheIgnoreInputVars")) { - if (!Array.isArray(message.cacheIgnoreInputVars)) - return "cacheIgnoreInputVars: array expected"; - for (var i = 0; i < message.cacheIgnoreInputVars.length; ++i) - if (!$util.isString(message.cacheIgnoreInputVars[i])) - return "cacheIgnoreInputVars: string[] expected"; - } - return null; - }; - - return TaskMetadata; - })(); - - core.TaskTemplate = (function() { - - /** - * Properties of a TaskTemplate. - * @memberof flyteidl.core - * @interface ITaskTemplate - * @property {flyteidl.core.IIdentifier|null} [id] TaskTemplate id - * @property {string|null} [type] TaskTemplate type - * @property {flyteidl.core.ITaskMetadata|null} [metadata] TaskTemplate metadata - * @property {flyteidl.core.ITypedInterface|null} ["interface"] TaskTemplate interface - * @property {google.protobuf.IStruct|null} [custom] TaskTemplate custom - * @property {flyteidl.core.IContainer|null} [container] TaskTemplate container - * @property {flyteidl.core.IK8sPod|null} [k8sPod] TaskTemplate k8sPod - * @property {flyteidl.core.ISql|null} [sql] TaskTemplate sql - * @property {number|null} [taskTypeVersion] TaskTemplate taskTypeVersion - * @property {flyteidl.core.ISecurityContext|null} [securityContext] TaskTemplate securityContext - * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskTemplate extendedResources - * @property {Object.|null} [config] TaskTemplate config - */ - - /** - * Constructs a new TaskTemplate. - * @memberof flyteidl.core - * @classdesc Represents a TaskTemplate. - * @implements ITaskTemplate - * @constructor - * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set - */ - function TaskTemplate(properties) { - this.config = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskTemplate id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.id = null; - - /** - * TaskTemplate type. - * @member {string} type - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.type = ""; - - /** - * TaskTemplate metadata. - * @member {flyteidl.core.ITaskMetadata|null|undefined} metadata - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.metadata = null; - - /** - * TaskTemplate interface. - * @member {flyteidl.core.ITypedInterface|null|undefined} interface - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype["interface"] = null; - - /** - * TaskTemplate custom. - * @member {google.protobuf.IStruct|null|undefined} custom - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.custom = null; - - /** - * TaskTemplate container. - * @member {flyteidl.core.IContainer|null|undefined} container - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.container = null; - - /** - * TaskTemplate k8sPod. - * @member {flyteidl.core.IK8sPod|null|undefined} k8sPod - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.k8sPod = null; - - /** - * TaskTemplate sql. - * @member {flyteidl.core.ISql|null|undefined} sql - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.sql = null; - - /** - * TaskTemplate taskTypeVersion. - * @member {number} taskTypeVersion - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.taskTypeVersion = 0; - - /** - * TaskTemplate securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.securityContext = null; - - /** - * TaskTemplate extendedResources. - * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.extendedResources = null; - - /** - * TaskTemplate config. - * @member {Object.} config - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.config = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskTemplate target. - * @member {"container"|"k8sPod"|"sql"|undefined} target - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - Object.defineProperty(TaskTemplate.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["container", "k8sPod", "sql"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskTemplate instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set - * @returns {flyteidl.core.TaskTemplate} TaskTemplate instance - */ - TaskTemplate.create = function create(properties) { - return new TaskTemplate(properties); - }; - - /** - * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {flyteidl.core.ITaskTemplate} message TaskTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskTemplate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.TaskMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message["interface"] != null && message.hasOwnProperty("interface")) - $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.custom != null && message.hasOwnProperty("custom")) - $root.google.protobuf.Struct.encode(message.custom, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.container != null && message.hasOwnProperty("container")) - $root.flyteidl.core.Container.encode(message.container, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.taskTypeVersion); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) - $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.config != null && message.hasOwnProperty("config")) - for (var keys = Object.keys(message.config), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim(); - if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) - $root.flyteidl.core.K8sPod.encode(message.k8sPod, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.sql != null && message.hasOwnProperty("sql")) - $root.flyteidl.core.Sql.encode(message.sql, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskTemplate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskTemplate} TaskTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskTemplate(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = reader.string(); - break; - case 3: - message.metadata = $root.flyteidl.core.TaskMetadata.decode(reader, reader.uint32()); - break; - case 4: - message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 5: - message.custom = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.container = $root.flyteidl.core.Container.decode(reader, reader.uint32()); - break; - case 17: - message.k8sPod = $root.flyteidl.core.K8sPod.decode(reader, reader.uint32()); - break; - case 18: - message.sql = $root.flyteidl.core.Sql.decode(reader, reader.uint32()); - break; - case 7: - message.taskTypeVersion = reader.int32(); - break; - case 8: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 9: - message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); - break; - case 16: - reader.skip().pos++; - if (message.config === $util.emptyObject) - message.config = {}; - key = reader.string(); - reader.pos++; - message.config[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskTemplate message. - * @function verify - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.TaskMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message["interface"] != null && message.hasOwnProperty("interface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); - if (error) - return "interface." + error; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - var error = $root.google.protobuf.Struct.verify(message.custom); - if (error) - return "custom." + error; - } - if (message.container != null && message.hasOwnProperty("container")) { - properties.target = 1; - { - var error = $root.flyteidl.core.Container.verify(message.container); - if (error) - return "container." + error; - } - } - if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.K8sPod.verify(message.k8sPod); - if (error) - return "k8sPod." + error; - } - } - if (message.sql != null && message.hasOwnProperty("sql")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.Sql.verify(message.sql); - if (error) - return "sql." + error; - } - } - if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) - if (!$util.isInteger(message.taskTypeVersion)) - return "taskTypeVersion: integer expected"; - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { - var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); - if (error) - return "extendedResources." + error; - } - if (message.config != null && message.hasOwnProperty("config")) { - if (!$util.isObject(message.config)) - return "config: object expected"; - var key = Object.keys(message.config); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.config[key[i]])) - return "config: string{k:string} expected"; - } - return null; - }; - - return TaskTemplate; - })(); - - core.ContainerPort = (function() { - - /** - * Properties of a ContainerPort. - * @memberof flyteidl.core - * @interface IContainerPort - * @property {number|null} [containerPort] ContainerPort containerPort - */ - - /** - * Constructs a new ContainerPort. - * @memberof flyteidl.core - * @classdesc Represents a ContainerPort. - * @implements IContainerPort - * @constructor - * @param {flyteidl.core.IContainerPort=} [properties] Properties to set - */ - function ContainerPort(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ContainerPort containerPort. - * @member {number} containerPort - * @memberof flyteidl.core.ContainerPort - * @instance - */ - ContainerPort.prototype.containerPort = 0; - - /** - * Creates a new ContainerPort instance using the specified properties. - * @function create - * @memberof flyteidl.core.ContainerPort - * @static - * @param {flyteidl.core.IContainerPort=} [properties] Properties to set - * @returns {flyteidl.core.ContainerPort} ContainerPort instance - */ - ContainerPort.create = function create(properties) { - return new ContainerPort(properties); - }; - - /** - * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ContainerPort - * @static - * @param {flyteidl.core.IContainerPort} message ContainerPort message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerPort.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.containerPort != null && message.hasOwnProperty("containerPort")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.containerPort); - return writer; - }; - - /** - * Decodes a ContainerPort message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ContainerPort - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ContainerPort} ContainerPort - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerPort.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerPort(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.containerPort = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ContainerPort message. - * @function verify - * @memberof flyteidl.core.ContainerPort - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerPort.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.containerPort != null && message.hasOwnProperty("containerPort")) - if (!$util.isInteger(message.containerPort)) - return "containerPort: integer expected"; - return null; - }; - - return ContainerPort; - })(); - - core.Container = (function() { - - /** - * Properties of a Container. - * @memberof flyteidl.core - * @interface IContainer - * @property {string|null} [image] Container image - * @property {Array.|null} [command] Container command - * @property {Array.|null} [args] Container args - * @property {flyteidl.core.IResources|null} [resources] Container resources - * @property {Array.|null} [env] Container env - * @property {Array.|null} [config] Container config - * @property {Array.|null} [ports] Container ports - * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] Container dataConfig - * @property {flyteidl.core.Container.Architecture|null} [architecture] Container architecture - */ - - /** - * Constructs a new Container. - * @memberof flyteidl.core - * @classdesc Represents a Container. - * @implements IContainer - * @constructor - * @param {flyteidl.core.IContainer=} [properties] Properties to set - */ - function Container(properties) { - this.command = []; - this.args = []; - this.env = []; - this.config = []; - this.ports = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Container image. - * @member {string} image - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.image = ""; - - /** - * Container command. - * @member {Array.} command - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.command = $util.emptyArray; - - /** - * Container args. - * @member {Array.} args - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.args = $util.emptyArray; - - /** - * Container resources. - * @member {flyteidl.core.IResources|null|undefined} resources - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.resources = null; - - /** - * Container env. - * @member {Array.} env - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.env = $util.emptyArray; - - /** - * Container config. - * @member {Array.} config - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.config = $util.emptyArray; - - /** - * Container ports. - * @member {Array.} ports - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.ports = $util.emptyArray; - - /** - * Container dataConfig. - * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.dataConfig = null; - - /** - * Container architecture. - * @member {flyteidl.core.Container.Architecture} architecture - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.architecture = 0; - - /** - * Creates a new Container instance using the specified properties. - * @function create - * @memberof flyteidl.core.Container - * @static - * @param {flyteidl.core.IContainer=} [properties] Properties to set - * @returns {flyteidl.core.Container} Container instance - */ - Container.create = function create(properties) { - return new Container(properties); - }; - - /** - * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Container - * @static - * @param {flyteidl.core.IContainer} message Container message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Container.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.image != null && message.hasOwnProperty("image")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.image); - if (message.command != null && message.command.length) - for (var i = 0; i < message.command.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); - if (message.resources != null && message.hasOwnProperty("resources")) - $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.env != null && message.env.length) - for (var i = 0; i < message.env.length; ++i) - $root.flyteidl.core.KeyValuePair.encode(message.env[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.config != null && message.config.length) - for (var i = 0; i < message.config.length; ++i) - $root.flyteidl.core.KeyValuePair.encode(message.config[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.ports != null && message.ports.length) - for (var i = 0; i < message.ports.length; ++i) - $root.flyteidl.core.ContainerPort.encode(message.ports[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) - $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.architecture != null && message.hasOwnProperty("architecture")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.architecture); - return writer; - }; - - /** - * Decodes a Container message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Container - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Container} Container - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Container.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Container(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.image = reader.string(); - break; - case 2: - if (!(message.command && message.command.length)) - message.command = []; - message.command.push(reader.string()); - break; - case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); - break; - case 4: - message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.env && message.env.length)) - message.env = []; - message.env.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.config && message.config.length)) - message.config = []; - message.config.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.ports && message.ports.length)) - message.ports = []; - message.ports.push($root.flyteidl.core.ContainerPort.decode(reader, reader.uint32())); - break; - case 9: - message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); - break; - case 10: - message.architecture = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Container message. - * @function verify - * @memberof flyteidl.core.Container - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Container.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.image != null && message.hasOwnProperty("image")) - if (!$util.isString(message.image)) - return "image: string expected"; - if (message.command != null && message.hasOwnProperty("command")) { - if (!Array.isArray(message.command)) - return "command: array expected"; - for (var i = 0; i < message.command.length; ++i) - if (!$util.isString(message.command[i])) - return "command: string[] expected"; - } - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; - } - if (message.resources != null && message.hasOwnProperty("resources")) { - var error = $root.flyteidl.core.Resources.verify(message.resources); - if (error) - return "resources." + error; - } - if (message.env != null && message.hasOwnProperty("env")) { - if (!Array.isArray(message.env)) - return "env: array expected"; - for (var i = 0; i < message.env.length; ++i) { - var error = $root.flyteidl.core.KeyValuePair.verify(message.env[i]); - if (error) - return "env." + error; - } - } - if (message.config != null && message.hasOwnProperty("config")) { - if (!Array.isArray(message.config)) - return "config: array expected"; - for (var i = 0; i < message.config.length; ++i) { - var error = $root.flyteidl.core.KeyValuePair.verify(message.config[i]); - if (error) - return "config." + error; - } - } - if (message.ports != null && message.hasOwnProperty("ports")) { - if (!Array.isArray(message.ports)) - return "ports: array expected"; - for (var i = 0; i < message.ports.length; ++i) { - var error = $root.flyteidl.core.ContainerPort.verify(message.ports[i]); - if (error) - return "ports." + error; - } - } - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { - var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); - if (error) - return "dataConfig." + error; - } - if (message.architecture != null && message.hasOwnProperty("architecture")) - switch (message.architecture) { - default: - return "architecture: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - - /** - * Architecture enum. - * @name flyteidl.core.Container.Architecture - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} AMD64=1 AMD64 value - * @property {number} ARM64=2 ARM64 value - * @property {number} ARM_V6=3 ARM_V6 value - * @property {number} ARM_V7=4 ARM_V7 value - */ - Container.Architecture = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "AMD64"] = 1; - values[valuesById[2] = "ARM64"] = 2; - values[valuesById[3] = "ARM_V6"] = 3; - values[valuesById[4] = "ARM_V7"] = 4; - return values; - })(); - - return Container; - })(); - - core.IOStrategy = (function() { - - /** - * Properties of a IOStrategy. - * @memberof flyteidl.core - * @interface IIOStrategy - * @property {flyteidl.core.IOStrategy.DownloadMode|null} [downloadMode] IOStrategy downloadMode - * @property {flyteidl.core.IOStrategy.UploadMode|null} [uploadMode] IOStrategy uploadMode - */ - - /** - * Constructs a new IOStrategy. - * @memberof flyteidl.core - * @classdesc Represents a IOStrategy. - * @implements IIOStrategy - * @constructor - * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set - */ - function IOStrategy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IOStrategy downloadMode. - * @member {flyteidl.core.IOStrategy.DownloadMode} downloadMode - * @memberof flyteidl.core.IOStrategy - * @instance - */ - IOStrategy.prototype.downloadMode = 0; - - /** - * IOStrategy uploadMode. - * @member {flyteidl.core.IOStrategy.UploadMode} uploadMode - * @memberof flyteidl.core.IOStrategy - * @instance - */ - IOStrategy.prototype.uploadMode = 0; - - /** - * Creates a new IOStrategy instance using the specified properties. - * @function create - * @memberof flyteidl.core.IOStrategy - * @static - * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set - * @returns {flyteidl.core.IOStrategy} IOStrategy instance - */ - IOStrategy.create = function create(properties) { - return new IOStrategy(properties); - }; - - /** - * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.IOStrategy - * @static - * @param {flyteidl.core.IIOStrategy} message IOStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IOStrategy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.downloadMode); - if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.uploadMode); - return writer; - }; - - /** - * Decodes a IOStrategy message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.IOStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IOStrategy} IOStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IOStrategy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IOStrategy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.downloadMode = reader.int32(); - break; - case 2: - message.uploadMode = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a IOStrategy message. - * @function verify - * @memberof flyteidl.core.IOStrategy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IOStrategy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) - switch (message.downloadMode) { - default: - return "downloadMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) - switch (message.uploadMode) { - default: - return "uploadMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * DownloadMode enum. - * @name flyteidl.core.IOStrategy.DownloadMode - * @enum {string} - * @property {number} DOWNLOAD_EAGER=0 DOWNLOAD_EAGER value - * @property {number} DOWNLOAD_STREAM=1 DOWNLOAD_STREAM value - * @property {number} DO_NOT_DOWNLOAD=2 DO_NOT_DOWNLOAD value - */ - IOStrategy.DownloadMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DOWNLOAD_EAGER"] = 0; - values[valuesById[1] = "DOWNLOAD_STREAM"] = 1; - values[valuesById[2] = "DO_NOT_DOWNLOAD"] = 2; - return values; - })(); - - /** - * UploadMode enum. - * @name flyteidl.core.IOStrategy.UploadMode - * @enum {string} - * @property {number} UPLOAD_ON_EXIT=0 UPLOAD_ON_EXIT value - * @property {number} UPLOAD_EAGER=1 UPLOAD_EAGER value - * @property {number} DO_NOT_UPLOAD=2 DO_NOT_UPLOAD value - */ - IOStrategy.UploadMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UPLOAD_ON_EXIT"] = 0; - values[valuesById[1] = "UPLOAD_EAGER"] = 1; - values[valuesById[2] = "DO_NOT_UPLOAD"] = 2; - return values; - })(); - - return IOStrategy; - })(); - - core.DataLoadingConfig = (function() { - - /** - * Properties of a DataLoadingConfig. - * @memberof flyteidl.core - * @interface IDataLoadingConfig - * @property {boolean|null} [enabled] DataLoadingConfig enabled - * @property {string|null} [inputPath] DataLoadingConfig inputPath - * @property {string|null} [outputPath] DataLoadingConfig outputPath - * @property {flyteidl.core.DataLoadingConfig.LiteralMapFormat|null} [format] DataLoadingConfig format - * @property {flyteidl.core.IIOStrategy|null} [ioStrategy] DataLoadingConfig ioStrategy - */ - - /** - * Constructs a new DataLoadingConfig. - * @memberof flyteidl.core - * @classdesc Represents a DataLoadingConfig. - * @implements IDataLoadingConfig - * @constructor - * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set - */ - function DataLoadingConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DataLoadingConfig enabled. - * @member {boolean} enabled - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.enabled = false; - - /** - * DataLoadingConfig inputPath. - * @member {string} inputPath - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.inputPath = ""; - - /** - * DataLoadingConfig outputPath. - * @member {string} outputPath - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.outputPath = ""; - - /** - * DataLoadingConfig format. - * @member {flyteidl.core.DataLoadingConfig.LiteralMapFormat} format - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.format = 0; - - /** - * DataLoadingConfig ioStrategy. - * @member {flyteidl.core.IIOStrategy|null|undefined} ioStrategy - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.ioStrategy = null; - - /** - * Creates a new DataLoadingConfig instance using the specified properties. - * @function create - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set - * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig instance - */ - DataLoadingConfig.create = function create(properties) { - return new DataLoadingConfig(properties); - }; - - /** - * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {flyteidl.core.IDataLoadingConfig} message DataLoadingConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLoadingConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.inputPath != null && message.hasOwnProperty("inputPath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputPath); - if (message.outputPath != null && message.hasOwnProperty("outputPath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPath); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.format); - if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) - $root.flyteidl.core.IOStrategy.encode(message.ioStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DataLoadingConfig message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLoadingConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DataLoadingConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - case 2: - message.inputPath = reader.string(); - break; - case 3: - message.outputPath = reader.string(); - break; - case 4: - message.format = reader.int32(); - break; - case 5: - message.ioStrategy = $root.flyteidl.core.IOStrategy.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DataLoadingConfig message. - * @function verify - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLoadingConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.inputPath != null && message.hasOwnProperty("inputPath")) - if (!$util.isString(message.inputPath)) - return "inputPath: string expected"; - if (message.outputPath != null && message.hasOwnProperty("outputPath")) - if (!$util.isString(message.outputPath)) - return "outputPath: string expected"; - if (message.format != null && message.hasOwnProperty("format")) - switch (message.format) { - default: - return "format: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) { - var error = $root.flyteidl.core.IOStrategy.verify(message.ioStrategy); - if (error) - return "ioStrategy." + error; - } - return null; - }; - - /** - * LiteralMapFormat enum. - * @name flyteidl.core.DataLoadingConfig.LiteralMapFormat - * @enum {string} - * @property {number} JSON=0 JSON value - * @property {number} YAML=1 YAML value - * @property {number} PROTO=2 PROTO value - */ - DataLoadingConfig.LiteralMapFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JSON"] = 0; - values[valuesById[1] = "YAML"] = 1; - values[valuesById[2] = "PROTO"] = 2; - return values; - })(); - - return DataLoadingConfig; - })(); - - core.K8sPod = (function() { - - /** - * Properties of a K8sPod. - * @memberof flyteidl.core - * @interface IK8sPod - * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata - * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec - * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig - */ - - /** - * Constructs a new K8sPod. - * @memberof flyteidl.core - * @classdesc Represents a K8sPod. - * @implements IK8sPod - * @constructor - * @param {flyteidl.core.IK8sPod=} [properties] Properties to set - */ - function K8sPod(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * K8sPod metadata. - * @member {flyteidl.core.IK8sObjectMetadata|null|undefined} metadata - * @memberof flyteidl.core.K8sPod - * @instance - */ - K8sPod.prototype.metadata = null; - - /** - * K8sPod podSpec. - * @member {google.protobuf.IStruct|null|undefined} podSpec - * @memberof flyteidl.core.K8sPod - * @instance - */ - K8sPod.prototype.podSpec = null; - - /** - * K8sPod dataConfig. - * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig - * @memberof flyteidl.core.K8sPod - * @instance - */ - K8sPod.prototype.dataConfig = null; - - /** - * Creates a new K8sPod instance using the specified properties. - * @function create - * @memberof flyteidl.core.K8sPod - * @static - * @param {flyteidl.core.IK8sPod=} [properties] Properties to set - * @returns {flyteidl.core.K8sPod} K8sPod instance - */ - K8sPod.create = function create(properties) { - return new K8sPod(properties); - }; - - /** - * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.K8sPod - * @static - * @param {flyteidl.core.IK8sPod} message K8sPod message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - K8sPod.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.K8sObjectMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.podSpec != null && message.hasOwnProperty("podSpec")) - $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) - $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a K8sPod message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.K8sPod - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.K8sPod} K8sPod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - K8sPod.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sPod(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = $root.flyteidl.core.K8sObjectMetadata.decode(reader, reader.uint32()); - break; - case 2: - message.podSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a K8sPod message. - * @function verify - * @memberof flyteidl.core.K8sPod - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - K8sPod.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.K8sObjectMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.podSpec != null && message.hasOwnProperty("podSpec")) { - var error = $root.google.protobuf.Struct.verify(message.podSpec); - if (error) - return "podSpec." + error; - } - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { - var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); - if (error) - return "dataConfig." + error; - } - return null; - }; - - return K8sPod; - })(); - - core.K8sObjectMetadata = (function() { - - /** - * Properties of a K8sObjectMetadata. - * @memberof flyteidl.core - * @interface IK8sObjectMetadata - * @property {Object.|null} [labels] K8sObjectMetadata labels - * @property {Object.|null} [annotations] K8sObjectMetadata annotations - */ - - /** - * Constructs a new K8sObjectMetadata. - * @memberof flyteidl.core - * @classdesc Represents a K8sObjectMetadata. - * @implements IK8sObjectMetadata - * @constructor - * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set - */ - function K8sObjectMetadata(properties) { - this.labels = {}; - this.annotations = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * K8sObjectMetadata labels. - * @member {Object.} labels - * @memberof flyteidl.core.K8sObjectMetadata - * @instance - */ - K8sObjectMetadata.prototype.labels = $util.emptyObject; - - /** - * K8sObjectMetadata annotations. - * @member {Object.} annotations - * @memberof flyteidl.core.K8sObjectMetadata - * @instance - */ - K8sObjectMetadata.prototype.annotations = $util.emptyObject; - - /** - * Creates a new K8sObjectMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set - * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata instance - */ - K8sObjectMetadata.create = function create(properties) { - return new K8sObjectMetadata(properties); - }; - - /** - * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {flyteidl.core.IK8sObjectMetadata} message K8sObjectMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - K8sObjectMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.labels != null && message.hasOwnProperty("labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a K8sObjectMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - K8sObjectMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sObjectMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.labels === $util.emptyObject) - message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); - break; - case 2: - reader.skip().pos++; - if (message.annotations === $util.emptyObject) - message.annotations = {}; - key = reader.string(); - reader.pos++; - message.annotations[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a K8sObjectMetadata message. - * @function verify - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - K8sObjectMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - if (!$util.isObject(message.annotations)) - return "annotations: object expected"; - var key = Object.keys(message.annotations); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.annotations[key[i]])) - return "annotations: string{k:string} expected"; - } - return null; - }; - - return K8sObjectMetadata; - })(); - - core.Sql = (function() { - - /** - * Properties of a Sql. - * @memberof flyteidl.core - * @interface ISql - * @property {string|null} [statement] Sql statement - * @property {flyteidl.core.Sql.Dialect|null} [dialect] Sql dialect - */ - - /** - * Constructs a new Sql. - * @memberof flyteidl.core - * @classdesc Represents a Sql. - * @implements ISql - * @constructor - * @param {flyteidl.core.ISql=} [properties] Properties to set - */ - function Sql(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Sql statement. - * @member {string} statement - * @memberof flyteidl.core.Sql - * @instance - */ - Sql.prototype.statement = ""; - - /** - * Sql dialect. - * @member {flyteidl.core.Sql.Dialect} dialect - * @memberof flyteidl.core.Sql - * @instance - */ - Sql.prototype.dialect = 0; - - /** - * Creates a new Sql instance using the specified properties. - * @function create - * @memberof flyteidl.core.Sql - * @static - * @param {flyteidl.core.ISql=} [properties] Properties to set - * @returns {flyteidl.core.Sql} Sql instance - */ - Sql.create = function create(properties) { - return new Sql(properties); - }; - - /** - * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Sql - * @static - * @param {flyteidl.core.ISql} message Sql message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sql.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.statement != null && message.hasOwnProperty("statement")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.statement); - if (message.dialect != null && message.hasOwnProperty("dialect")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dialect); - return writer; - }; - - /** - * Decodes a Sql message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Sql - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Sql} Sql - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sql.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Sql(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.statement = reader.string(); - break; - case 2: - message.dialect = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Sql message. - * @function verify - * @memberof flyteidl.core.Sql - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Sql.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.statement != null && message.hasOwnProperty("statement")) - if (!$util.isString(message.statement)) - return "statement: string expected"; - if (message.dialect != null && message.hasOwnProperty("dialect")) - switch (message.dialect) { - default: - return "dialect: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Dialect enum. - * @name flyteidl.core.Sql.Dialect - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} ANSI=1 ANSI value - * @property {number} HIVE=2 HIVE value - * @property {number} OTHER=3 OTHER value - */ - Sql.Dialect = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "ANSI"] = 1; - values[valuesById[2] = "HIVE"] = 2; - values[valuesById[3] = "OTHER"] = 3; - return values; - })(); - - return Sql; - })(); - - core.Secret = (function() { - - /** - * Properties of a Secret. - * @memberof flyteidl.core - * @interface ISecret - * @property {string|null} [group] Secret group - * @property {string|null} [groupVersion] Secret groupVersion - * @property {string|null} [key] Secret key - * @property {flyteidl.core.Secret.MountType|null} [mountRequirement] Secret mountRequirement - */ - - /** - * Constructs a new Secret. - * @memberof flyteidl.core - * @classdesc Represents a Secret. - * @implements ISecret - * @constructor - * @param {flyteidl.core.ISecret=} [properties] Properties to set - */ - function Secret(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Secret group. - * @member {string} group - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.group = ""; - - /** - * Secret groupVersion. - * @member {string} groupVersion - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.groupVersion = ""; - - /** - * Secret key. - * @member {string} key - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.key = ""; - - /** - * Secret mountRequirement. - * @member {flyteidl.core.Secret.MountType} mountRequirement - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.mountRequirement = 0; - - /** - * Creates a new Secret instance using the specified properties. - * @function create - * @memberof flyteidl.core.Secret - * @static - * @param {flyteidl.core.ISecret=} [properties] Properties to set - * @returns {flyteidl.core.Secret} Secret instance - */ - Secret.create = function create(properties) { - return new Secret(properties); - }; - - /** - * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Secret - * @static - * @param {flyteidl.core.ISecret} message Secret message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Secret.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.group != null && message.hasOwnProperty("group")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.group); - if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupVersion); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); - if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mountRequirement); - return writer; - }; - - /** - * Decodes a Secret message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Secret - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Secret} Secret - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Secret.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Secret(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.group = reader.string(); - break; - case 2: - message.groupVersion = reader.string(); - break; - case 3: - message.key = reader.string(); - break; - case 4: - message.mountRequirement = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Secret message. - * @function verify - * @memberof flyteidl.core.Secret - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Secret.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.group != null && message.hasOwnProperty("group")) - if (!$util.isString(message.group)) - return "group: string expected"; - if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) - if (!$util.isString(message.groupVersion)) - return "groupVersion: string expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) - switch (message.mountRequirement) { - default: - return "mountRequirement: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * MountType enum. - * @name flyteidl.core.Secret.MountType - * @enum {string} - * @property {number} ANY=0 ANY value - * @property {number} ENV_VAR=1 ENV_VAR value - * @property {number} FILE=2 FILE value - */ - Secret.MountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ANY"] = 0; - values[valuesById[1] = "ENV_VAR"] = 1; - values[valuesById[2] = "FILE"] = 2; - return values; - })(); - - return Secret; - })(); - - core.OAuth2Client = (function() { - - /** - * Properties of a OAuth2Client. - * @memberof flyteidl.core - * @interface IOAuth2Client - * @property {string|null} [clientId] OAuth2Client clientId - * @property {flyteidl.core.ISecret|null} [clientSecret] OAuth2Client clientSecret - */ - - /** - * Constructs a new OAuth2Client. - * @memberof flyteidl.core - * @classdesc Represents a OAuth2Client. - * @implements IOAuth2Client - * @constructor - * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set - */ - function OAuth2Client(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OAuth2Client clientId. - * @member {string} clientId - * @memberof flyteidl.core.OAuth2Client - * @instance - */ - OAuth2Client.prototype.clientId = ""; - - /** - * OAuth2Client clientSecret. - * @member {flyteidl.core.ISecret|null|undefined} clientSecret - * @memberof flyteidl.core.OAuth2Client - * @instance - */ - OAuth2Client.prototype.clientSecret = null; - - /** - * Creates a new OAuth2Client instance using the specified properties. - * @function create - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set - * @returns {flyteidl.core.OAuth2Client} OAuth2Client instance - */ - OAuth2Client.create = function create(properties) { - return new OAuth2Client(properties); - }; - - /** - * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {flyteidl.core.IOAuth2Client} message OAuth2Client message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2Client.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientId != null && message.hasOwnProperty("clientId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); - if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) - $root.flyteidl.core.Secret.encode(message.clientSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a OAuth2Client message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OAuth2Client} OAuth2Client - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2Client.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2Client(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientSecret = $root.flyteidl.core.Secret.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2Client message. - * @function verify - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2Client.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) { - var error = $root.flyteidl.core.Secret.verify(message.clientSecret); - if (error) - return "clientSecret." + error; - } - return null; - }; - - return OAuth2Client; - })(); - - core.Identity = (function() { - - /** - * Properties of an Identity. - * @memberof flyteidl.core - * @interface IIdentity - * @property {string|null} [iamRole] Identity iamRole - * @property {string|null} [k8sServiceAccount] Identity k8sServiceAccount - * @property {flyteidl.core.IOAuth2Client|null} [oauth2Client] Identity oauth2Client - * @property {string|null} [executionIdentity] Identity executionIdentity - */ - - /** - * Constructs a new Identity. - * @memberof flyteidl.core - * @classdesc Represents an Identity. - * @implements IIdentity - * @constructor - * @param {flyteidl.core.IIdentity=} [properties] Properties to set - */ - function Identity(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Identity iamRole. - * @member {string} iamRole - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.iamRole = ""; - - /** - * Identity k8sServiceAccount. - * @member {string} k8sServiceAccount - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.k8sServiceAccount = ""; - - /** - * Identity oauth2Client. - * @member {flyteidl.core.IOAuth2Client|null|undefined} oauth2Client - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.oauth2Client = null; - - /** - * Identity executionIdentity. - * @member {string} executionIdentity - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.executionIdentity = ""; - - /** - * Creates a new Identity instance using the specified properties. - * @function create - * @memberof flyteidl.core.Identity - * @static - * @param {flyteidl.core.IIdentity=} [properties] Properties to set - * @returns {flyteidl.core.Identity} Identity instance - */ - Identity.create = function create(properties) { - return new Identity(properties); - }; - - /** - * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Identity - * @static - * @param {flyteidl.core.IIdentity} message Identity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Identity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.iamRole != null && message.hasOwnProperty("iamRole")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.iamRole); - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.k8sServiceAccount); - if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) - $root.flyteidl.core.OAuth2Client.encode(message.oauth2Client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.executionIdentity); - return writer; - }; - - /** - * Decodes an Identity message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Identity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Identity} Identity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Identity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iamRole = reader.string(); - break; - case 2: - message.k8sServiceAccount = reader.string(); - break; - case 3: - message.oauth2Client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); - break; - case 4: - message.executionIdentity = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Identity message. - * @function verify - * @memberof flyteidl.core.Identity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Identity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.iamRole != null && message.hasOwnProperty("iamRole")) - if (!$util.isString(message.iamRole)) - return "iamRole: string expected"; - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - if (!$util.isString(message.k8sServiceAccount)) - return "k8sServiceAccount: string expected"; - if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) { - var error = $root.flyteidl.core.OAuth2Client.verify(message.oauth2Client); - if (error) - return "oauth2Client." + error; - } - if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) - if (!$util.isString(message.executionIdentity)) - return "executionIdentity: string expected"; - return null; - }; - - return Identity; - })(); - - core.OAuth2TokenRequest = (function() { - - /** - * Properties of a OAuth2TokenRequest. - * @memberof flyteidl.core - * @interface IOAuth2TokenRequest - * @property {string|null} [name] OAuth2TokenRequest name - * @property {flyteidl.core.OAuth2TokenRequest.Type|null} [type] OAuth2TokenRequest type - * @property {flyteidl.core.IOAuth2Client|null} [client] OAuth2TokenRequest client - * @property {string|null} [idpDiscoveryEndpoint] OAuth2TokenRequest idpDiscoveryEndpoint - * @property {string|null} [tokenEndpoint] OAuth2TokenRequest tokenEndpoint - */ - - /** - * Constructs a new OAuth2TokenRequest. - * @memberof flyteidl.core - * @classdesc Represents a OAuth2TokenRequest. - * @implements IOAuth2TokenRequest - * @constructor - * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set - */ - function OAuth2TokenRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OAuth2TokenRequest name. - * @member {string} name - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.name = ""; - - /** - * OAuth2TokenRequest type. - * @member {flyteidl.core.OAuth2TokenRequest.Type} type - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.type = 0; - - /** - * OAuth2TokenRequest client. - * @member {flyteidl.core.IOAuth2Client|null|undefined} client - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.client = null; - - /** - * OAuth2TokenRequest idpDiscoveryEndpoint. - * @member {string} idpDiscoveryEndpoint - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.idpDiscoveryEndpoint = ""; - - /** - * OAuth2TokenRequest tokenEndpoint. - * @member {string} tokenEndpoint - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.tokenEndpoint = ""; - - /** - * Creates a new OAuth2TokenRequest instance using the specified properties. - * @function create - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set - * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest instance - */ - OAuth2TokenRequest.create = function create(properties) { - return new OAuth2TokenRequest(properties); - }; - - /** - * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {flyteidl.core.IOAuth2TokenRequest} message OAuth2TokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2TokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.client != null && message.hasOwnProperty("client")) - $root.flyteidl.core.OAuth2Client.encode(message.client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.idpDiscoveryEndpoint); - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tokenEndpoint); - return writer; - }; - - /** - * Decodes a OAuth2TokenRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2TokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2TokenRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - case 3: - message.client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); - break; - case 4: - message.idpDiscoveryEndpoint = reader.string(); - break; - case 5: - message.tokenEndpoint = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2TokenRequest message. - * @function verify - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2TokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - break; - } - if (message.client != null && message.hasOwnProperty("client")) { - var error = $root.flyteidl.core.OAuth2Client.verify(message.client); - if (error) - return "client." + error; - } - if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) - if (!$util.isString(message.idpDiscoveryEndpoint)) - return "idpDiscoveryEndpoint: string expected"; - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - if (!$util.isString(message.tokenEndpoint)) - return "tokenEndpoint: string expected"; - return null; - }; - - /** - * Type enum. - * @name flyteidl.core.OAuth2TokenRequest.Type - * @enum {string} - * @property {number} CLIENT_CREDENTIALS=0 CLIENT_CREDENTIALS value - */ - OAuth2TokenRequest.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CLIENT_CREDENTIALS"] = 0; - return values; - })(); - - return OAuth2TokenRequest; - })(); - - core.SecurityContext = (function() { - - /** - * Properties of a SecurityContext. - * @memberof flyteidl.core - * @interface ISecurityContext - * @property {flyteidl.core.IIdentity|null} [runAs] SecurityContext runAs - * @property {Array.|null} [secrets] SecurityContext secrets - * @property {Array.|null} [tokens] SecurityContext tokens - */ - - /** - * Constructs a new SecurityContext. - * @memberof flyteidl.core - * @classdesc Represents a SecurityContext. - * @implements ISecurityContext - * @constructor - * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set - */ - function SecurityContext(properties) { - this.secrets = []; - this.tokens = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SecurityContext runAs. - * @member {flyteidl.core.IIdentity|null|undefined} runAs - * @memberof flyteidl.core.SecurityContext - * @instance - */ - SecurityContext.prototype.runAs = null; - - /** - * SecurityContext secrets. - * @member {Array.} secrets - * @memberof flyteidl.core.SecurityContext - * @instance - */ - SecurityContext.prototype.secrets = $util.emptyArray; - - /** - * SecurityContext tokens. - * @member {Array.} tokens - * @memberof flyteidl.core.SecurityContext - * @instance - */ - SecurityContext.prototype.tokens = $util.emptyArray; - - /** - * Creates a new SecurityContext instance using the specified properties. - * @function create - * @memberof flyteidl.core.SecurityContext - * @static - * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set - * @returns {flyteidl.core.SecurityContext} SecurityContext instance - */ - SecurityContext.create = function create(properties) { - return new SecurityContext(properties); - }; - - /** - * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SecurityContext - * @static - * @param {flyteidl.core.ISecurityContext} message SecurityContext message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityContext.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.runAs != null && message.hasOwnProperty("runAs")) - $root.flyteidl.core.Identity.encode(message.runAs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.secrets != null && message.secrets.length) - for (var i = 0; i < message.secrets.length; ++i) - $root.flyteidl.core.Secret.encode(message.secrets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tokens != null && message.tokens.length) - for (var i = 0; i < message.tokens.length; ++i) - $root.flyteidl.core.OAuth2TokenRequest.encode(message.tokens[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SecurityContext message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SecurityContext - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SecurityContext} SecurityContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityContext.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SecurityContext(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.runAs = $root.flyteidl.core.Identity.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.secrets && message.secrets.length)) - message.secrets = []; - message.secrets.push($root.flyteidl.core.Secret.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.tokens && message.tokens.length)) - message.tokens = []; - message.tokens.push($root.flyteidl.core.OAuth2TokenRequest.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SecurityContext message. - * @function verify - * @memberof flyteidl.core.SecurityContext - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SecurityContext.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.runAs != null && message.hasOwnProperty("runAs")) { - var error = $root.flyteidl.core.Identity.verify(message.runAs); - if (error) - return "runAs." + error; - } - if (message.secrets != null && message.hasOwnProperty("secrets")) { - if (!Array.isArray(message.secrets)) - return "secrets: array expected"; - for (var i = 0; i < message.secrets.length; ++i) { - var error = $root.flyteidl.core.Secret.verify(message.secrets[i]); - if (error) - return "secrets." + error; - } - } - if (message.tokens != null && message.hasOwnProperty("tokens")) { - if (!Array.isArray(message.tokens)) - return "tokens: array expected"; - for (var i = 0; i < message.tokens.length; ++i) { - var error = $root.flyteidl.core.OAuth2TokenRequest.verify(message.tokens[i]); - if (error) - return "tokens." + error; - } - } - return null; - }; - - return SecurityContext; - })(); - - core.DynamicJobSpec = (function() { - - /** - * Properties of a DynamicJobSpec. - * @memberof flyteidl.core - * @interface IDynamicJobSpec - * @property {Array.|null} [nodes] DynamicJobSpec nodes - * @property {Long|null} [minSuccesses] DynamicJobSpec minSuccesses - * @property {Array.|null} [outputs] DynamicJobSpec outputs - * @property {Array.|null} [tasks] DynamicJobSpec tasks - * @property {Array.|null} [subworkflows] DynamicJobSpec subworkflows - */ - - /** - * Constructs a new DynamicJobSpec. - * @memberof flyteidl.core - * @classdesc Represents a DynamicJobSpec. - * @implements IDynamicJobSpec - * @constructor - * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set - */ - function DynamicJobSpec(properties) { - this.nodes = []; - this.outputs = []; - this.tasks = []; - this.subworkflows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicJobSpec nodes. - * @member {Array.} nodes - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.nodes = $util.emptyArray; - - /** - * DynamicJobSpec minSuccesses. - * @member {Long} minSuccesses - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.minSuccesses = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * DynamicJobSpec outputs. - * @member {Array.} outputs - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.outputs = $util.emptyArray; - - /** - * DynamicJobSpec tasks. - * @member {Array.} tasks - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.tasks = $util.emptyArray; - - /** - * DynamicJobSpec subworkflows. - * @member {Array.} subworkflows - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.subworkflows = $util.emptyArray; - - /** - * Creates a new DynamicJobSpec instance using the specified properties. - * @function create - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set - * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec instance - */ - DynamicJobSpec.create = function create(properties) { - return new DynamicJobSpec(properties); - }; - - /** - * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {flyteidl.core.IDynamicJobSpec} message DynamicJobSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicJobSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodes != null && message.nodes.length) - for (var i = 0; i < message.nodes.length; ++i) - $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minSuccesses); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.subworkflows != null && message.subworkflows.length) - for (var i = 0; i < message.subworkflows.length; ++i) - $root.flyteidl.core.WorkflowTemplate.encode(message.subworkflows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DynamicJobSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicJobSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DynamicJobSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.nodes && message.nodes.length)) - message.nodes = []; - message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); - break; - case 2: - message.minSuccesses = reader.int64(); - break; - case 3: - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.subworkflows && message.subworkflows.length)) - message.subworkflows = []; - message.subworkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicJobSpec message. - * @function verify - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicJobSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; - for (var i = 0; i < message.nodes.length; ++i) { - var error = $root.flyteidl.core.Node.verify(message.nodes[i]); - if (error) - return "nodes." + error; - } - } - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - if (!$util.isInteger(message.minSuccesses) && !(message.minSuccesses && $util.isInteger(message.minSuccesses.low) && $util.isInteger(message.minSuccesses.high))) - return "minSuccesses: integer|Long expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - if (message.subworkflows != null && message.hasOwnProperty("subworkflows")) { - if (!Array.isArray(message.subworkflows)) - return "subworkflows: array expected"; - for (var i = 0; i < message.subworkflows.length; ++i) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subworkflows[i]); - if (error) - return "subworkflows." + error; - } - } - return null; - }; - - return DynamicJobSpec; - })(); - - core.ContainerError = (function() { - - /** - * Properties of a ContainerError. - * @memberof flyteidl.core - * @interface IContainerError - * @property {string|null} [code] ContainerError code - * @property {string|null} [message] ContainerError message - * @property {flyteidl.core.ContainerError.Kind|null} [kind] ContainerError kind - * @property {flyteidl.core.ExecutionError.ErrorKind|null} [origin] ContainerError origin - */ - - /** - * Constructs a new ContainerError. - * @memberof flyteidl.core - * @classdesc Represents a ContainerError. - * @implements IContainerError - * @constructor - * @param {flyteidl.core.IContainerError=} [properties] Properties to set - */ - function ContainerError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ContainerError code. - * @member {string} code - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.code = ""; - - /** - * ContainerError message. - * @member {string} message - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.message = ""; - - /** - * ContainerError kind. - * @member {flyteidl.core.ContainerError.Kind} kind - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.kind = 0; - - /** - * ContainerError origin. - * @member {flyteidl.core.ExecutionError.ErrorKind} origin - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.origin = 0; - - /** - * Creates a new ContainerError instance using the specified properties. - * @function create - * @memberof flyteidl.core.ContainerError - * @static - * @param {flyteidl.core.IContainerError=} [properties] Properties to set - * @returns {flyteidl.core.ContainerError} ContainerError instance - */ - ContainerError.create = function create(properties) { - return new ContainerError(properties); - }; - - /** - * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ContainerError - * @static - * @param {flyteidl.core.IContainerError} message ContainerError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); - if (message.origin != null && message.hasOwnProperty("origin")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.origin); - return writer; - }; - - /** - * Decodes a ContainerError message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ContainerError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ContainerError} ContainerError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.string(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.kind = reader.int32(); - break; - case 4: - message.origin = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ContainerError message. - * @function verify - * @memberof flyteidl.core.ContainerError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - break; - } - if (message.origin != null && message.hasOwnProperty("origin")) - switch (message.origin) { - default: - return "origin: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Kind enum. - * @name flyteidl.core.ContainerError.Kind - * @enum {string} - * @property {number} NON_RECOVERABLE=0 NON_RECOVERABLE value - * @property {number} RECOVERABLE=1 RECOVERABLE value - */ - ContainerError.Kind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NON_RECOVERABLE"] = 0; - values[valuesById[1] = "RECOVERABLE"] = 1; - return values; - })(); - - return ContainerError; - })(); - - core.ErrorDocument = (function() { - - /** - * Properties of an ErrorDocument. - * @memberof flyteidl.core - * @interface IErrorDocument - * @property {flyteidl.core.IContainerError|null} [error] ErrorDocument error - */ - - /** - * Constructs a new ErrorDocument. - * @memberof flyteidl.core - * @classdesc Represents an ErrorDocument. - * @implements IErrorDocument - * @constructor - * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set - */ - function ErrorDocument(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ErrorDocument error. - * @member {flyteidl.core.IContainerError|null|undefined} error - * @memberof flyteidl.core.ErrorDocument - * @instance - */ - ErrorDocument.prototype.error = null; - - /** - * Creates a new ErrorDocument instance using the specified properties. - * @function create - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set - * @returns {flyteidl.core.ErrorDocument} ErrorDocument instance - */ - ErrorDocument.create = function create(properties) { - return new ErrorDocument(properties); - }; - - /** - * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {flyteidl.core.IErrorDocument} message ErrorDocument message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ErrorDocument.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ContainerError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ErrorDocument message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ErrorDocument} ErrorDocument - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ErrorDocument.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ErrorDocument(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.error = $root.flyteidl.core.ContainerError.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ErrorDocument message. - * @function verify - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ErrorDocument.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.flyteidl.core.ContainerError.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - return ErrorDocument; - })(); - - core.Span = (function() { - - /** - * Properties of a Span. - * @memberof flyteidl.core - * @interface ISpan - * @property {google.protobuf.ITimestamp|null} [startTime] Span startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Span endTime - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowId] Span workflowId - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeId] Span nodeId - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskId] Span taskId - * @property {string|null} [operationId] Span operationId - * @property {Array.|null} [spans] Span spans - */ - - /** - * Constructs a new Span. - * @memberof flyteidl.core - * @classdesc Represents a Span. - * @implements ISpan - * @constructor - * @param {flyteidl.core.ISpan=} [properties] Properties to set - */ - function Span(properties) { - this.spans = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Span startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.startTime = null; - - /** - * Span endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.endTime = null; - - /** - * Span workflowId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.workflowId = null; - - /** - * Span nodeId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.nodeId = null; - - /** - * Span taskId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.taskId = null; - - /** - * Span operationId. - * @member {string} operationId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.operationId = ""; - - /** - * Span spans. - * @member {Array.} spans - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.spans = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Span id. - * @member {"workflowId"|"nodeId"|"taskId"|"operationId"|undefined} id - * @memberof flyteidl.core.Span - * @instance - */ - Object.defineProperty(Span.prototype, "id", { - get: $util.oneOfGetter($oneOfFields = ["workflowId", "nodeId", "taskId", "operationId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Span instance using the specified properties. - * @function create - * @memberof flyteidl.core.Span - * @static - * @param {flyteidl.core.ISpan=} [properties] Properties to set - * @returns {flyteidl.core.Span} Span instance - */ - Span.create = function create(properties) { - return new Span(properties); - }; - - /** - * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Span - * @static - * @param {flyteidl.core.ISpan} message Span message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Span.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeId, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.taskId != null && message.hasOwnProperty("taskId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.operationId != null && message.hasOwnProperty("operationId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.operationId); - if (message.spans != null && message.spans.length) - for (var i = 0; i < message.spans.length; ++i) - $root.flyteidl.core.Span.encode(message.spans[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Span message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Span - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Span} Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Span.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Span(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.workflowId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 4: - message.nodeId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 5: - message.taskId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 6: - message.operationId = reader.string(); - break; - case 7: - if (!(message.spans && message.spans.length)) - message.spans = []; - message.spans.push($root.flyteidl.core.Span.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Span message. - * @function verify - * @memberof flyteidl.core.Span - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Span.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - properties.id = 1; - { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeId); - if (error) - return "nodeId." + error; - } - } - if (message.taskId != null && message.hasOwnProperty("taskId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskId); - if (error) - return "taskId." + error; - } - } - if (message.operationId != null && message.hasOwnProperty("operationId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - if (!$util.isString(message.operationId)) - return "operationId: string expected"; - } - if (message.spans != null && message.hasOwnProperty("spans")) { - if (!Array.isArray(message.spans)) - return "spans: array expected"; - for (var i = 0; i < message.spans.length; ++i) { - var error = $root.flyteidl.core.Span.verify(message.spans[i]); - if (error) - return "spans." + error; - } - } - return null; - }; - - return Span; - })(); - - core.ExecutionMetricResult = (function() { - - /** - * Properties of an ExecutionMetricResult. - * @memberof flyteidl.core - * @interface IExecutionMetricResult - * @property {string|null} [metric] ExecutionMetricResult metric - * @property {google.protobuf.IStruct|null} [data] ExecutionMetricResult data - */ - - /** - * Constructs a new ExecutionMetricResult. - * @memberof flyteidl.core - * @classdesc Represents an ExecutionMetricResult. - * @implements IExecutionMetricResult - * @constructor - * @param {flyteidl.core.IExecutionMetricResult=} [properties] Properties to set - */ - function ExecutionMetricResult(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionMetricResult metric. - * @member {string} metric - * @memberof flyteidl.core.ExecutionMetricResult - * @instance - */ - ExecutionMetricResult.prototype.metric = ""; - - /** - * ExecutionMetricResult data. - * @member {google.protobuf.IStruct|null|undefined} data - * @memberof flyteidl.core.ExecutionMetricResult - * @instance - */ - ExecutionMetricResult.prototype.data = null; - - /** - * Creates a new ExecutionMetricResult instance using the specified properties. - * @function create - * @memberof flyteidl.core.ExecutionMetricResult - * @static - * @param {flyteidl.core.IExecutionMetricResult=} [properties] Properties to set - * @returns {flyteidl.core.ExecutionMetricResult} ExecutionMetricResult instance - */ - ExecutionMetricResult.create = function create(properties) { - return new ExecutionMetricResult(properties); - }; - - /** - * Encodes the specified ExecutionMetricResult message. Does not implicitly {@link flyteidl.core.ExecutionMetricResult.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ExecutionMetricResult - * @static - * @param {flyteidl.core.IExecutionMetricResult} message ExecutionMetricResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionMetricResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metric != null && message.hasOwnProperty("metric")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metric); - if (message.data != null && message.hasOwnProperty("data")) - $root.google.protobuf.Struct.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionMetricResult message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ExecutionMetricResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ExecutionMetricResult} ExecutionMetricResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionMetricResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionMetricResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metric = reader.string(); - break; - case 2: - message.data = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionMetricResult message. - * @function verify - * @memberof flyteidl.core.ExecutionMetricResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionMetricResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metric != null && message.hasOwnProperty("metric")) - if (!$util.isString(message.metric)) - return "metric: string expected"; - if (message.data != null && message.hasOwnProperty("data")) { - var error = $root.google.protobuf.Struct.verify(message.data); - if (error) - return "data." + error; - } - return null; - }; - - return ExecutionMetricResult; - })(); - - core.WorkflowClosure = (function() { - - /** - * Properties of a WorkflowClosure. - * @memberof flyteidl.core - * @interface IWorkflowClosure - * @property {flyteidl.core.IWorkflowTemplate|null} [workflow] WorkflowClosure workflow - * @property {Array.|null} [tasks] WorkflowClosure tasks - */ - - /** - * Constructs a new WorkflowClosure. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowClosure. - * @implements IWorkflowClosure - * @constructor - * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set - */ - function WorkflowClosure(properties) { - this.tasks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowClosure workflow. - * @member {flyteidl.core.IWorkflowTemplate|null|undefined} workflow - * @memberof flyteidl.core.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.workflow = null; - - /** - * WorkflowClosure tasks. - * @member {Array.} tasks - * @memberof flyteidl.core.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.tasks = $util.emptyArray; - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure instance - */ - WorkflowClosure.create = function create(properties) { - return new WorkflowClosure(properties); - }; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {flyteidl.core.IWorkflowClosure} message WorkflowClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflow != null && message.hasOwnProperty("workflow")) - $root.flyteidl.core.WorkflowTemplate.encode(message.workflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflow = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowClosure message. - * @function verify - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.workflow); - if (error) - return "workflow." + error; - } - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - return null; - }; - - return WorkflowClosure; - })(); - - return core; - })(); - - flyteidl.event = (function() { - - /** - * Namespace event. - * @memberof flyteidl - * @namespace - */ - var event = {}; - - event.CloudEventWorkflowExecution = (function() { - - /** - * Properties of a CloudEventWorkflowExecution. - * @memberof flyteidl.event - * @interface ICloudEventWorkflowExecution - * @property {flyteidl.event.IWorkflowExecutionEvent|null} [rawEvent] CloudEventWorkflowExecution rawEvent - * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventWorkflowExecution outputInterface - * @property {Array.|null} [artifactIds] CloudEventWorkflowExecution artifactIds - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] CloudEventWorkflowExecution referenceExecution - * @property {string|null} [principal] CloudEventWorkflowExecution principal - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventWorkflowExecution launchPlanId - */ - - /** - * Constructs a new CloudEventWorkflowExecution. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventWorkflowExecution. - * @implements ICloudEventWorkflowExecution - * @constructor - * @param {flyteidl.event.ICloudEventWorkflowExecution=} [properties] Properties to set - */ - function CloudEventWorkflowExecution(properties) { - this.artifactIds = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventWorkflowExecution rawEvent. - * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} rawEvent - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.rawEvent = null; - - /** - * CloudEventWorkflowExecution outputInterface. - * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.outputInterface = null; - - /** - * CloudEventWorkflowExecution artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventWorkflowExecution referenceExecution. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.referenceExecution = null; - - /** - * CloudEventWorkflowExecution principal. - * @member {string} principal - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.principal = ""; - - /** - * CloudEventWorkflowExecution launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.launchPlanId = null; - - /** - * Creates a new CloudEventWorkflowExecution instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {flyteidl.event.ICloudEventWorkflowExecution=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventWorkflowExecution} CloudEventWorkflowExecution instance - */ - CloudEventWorkflowExecution.create = function create(properties) { - return new CloudEventWorkflowExecution(properties); - }; - - /** - * Encodes the specified CloudEventWorkflowExecution message. Does not implicitly {@link flyteidl.event.CloudEventWorkflowExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {flyteidl.event.ICloudEventWorkflowExecution} message CloudEventWorkflowExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventWorkflowExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) - $root.flyteidl.event.WorkflowExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) - $root.flyteidl.core.TypedInterface.encode(message.outputInterface, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.principal); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CloudEventWorkflowExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventWorkflowExecution} CloudEventWorkflowExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventWorkflowExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventWorkflowExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rawEvent = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.outputInterface = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - case 4: - message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 5: - message.principal = reader.string(); - break; - case 6: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventWorkflowExecution message. - * @function verify - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventWorkflowExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { - var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.rawEvent); - if (error) - return "rawEvent." + error; - } - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message.outputInterface); - if (error) - return "outputInterface." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); - if (error) - return "referenceExecution." + error; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } - return null; - }; - - return CloudEventWorkflowExecution; - })(); - - event.CloudEventNodeExecution = (function() { - - /** - * Properties of a CloudEventNodeExecution. - * @memberof flyteidl.event - * @interface ICloudEventNodeExecution - * @property {flyteidl.event.INodeExecutionEvent|null} [rawEvent] CloudEventNodeExecution rawEvent - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecId] CloudEventNodeExecution taskExecId - * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventNodeExecution outputInterface - * @property {Array.|null} [artifactIds] CloudEventNodeExecution artifactIds - * @property {string|null} [principal] CloudEventNodeExecution principal - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventNodeExecution launchPlanId - */ - - /** - * Constructs a new CloudEventNodeExecution. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventNodeExecution. - * @implements ICloudEventNodeExecution - * @constructor - * @param {flyteidl.event.ICloudEventNodeExecution=} [properties] Properties to set - */ - function CloudEventNodeExecution(properties) { - this.artifactIds = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventNodeExecution rawEvent. - * @member {flyteidl.event.INodeExecutionEvent|null|undefined} rawEvent - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.rawEvent = null; - - /** - * CloudEventNodeExecution taskExecId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecId - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.taskExecId = null; - - /** - * CloudEventNodeExecution outputInterface. - * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.outputInterface = null; - - /** - * CloudEventNodeExecution artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventNodeExecution principal. - * @member {string} principal - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.principal = ""; - - /** - * CloudEventNodeExecution launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.launchPlanId = null; - - /** - * Creates a new CloudEventNodeExecution instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {flyteidl.event.ICloudEventNodeExecution=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventNodeExecution} CloudEventNodeExecution instance - */ - CloudEventNodeExecution.create = function create(properties) { - return new CloudEventNodeExecution(properties); - }; - - /** - * Encodes the specified CloudEventNodeExecution message. Does not implicitly {@link flyteidl.event.CloudEventNodeExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {flyteidl.event.ICloudEventNodeExecution} message CloudEventNodeExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventNodeExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) - $root.flyteidl.event.NodeExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.taskExecId != null && message.hasOwnProperty("taskExecId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) - $root.flyteidl.core.TypedInterface.encode(message.outputInterface, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.principal); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CloudEventNodeExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventNodeExecution} CloudEventNodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventNodeExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventNodeExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rawEvent = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.taskExecId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.outputInterface = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - case 5: - message.principal = reader.string(); - break; - case 6: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventNodeExecution message. - * @function verify - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventNodeExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { - var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.rawEvent); - if (error) - return "rawEvent." + error; - } - if (message.taskExecId != null && message.hasOwnProperty("taskExecId")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecId); - if (error) - return "taskExecId." + error; - } - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message.outputInterface); - if (error) - return "outputInterface." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } - return null; - }; - - return CloudEventNodeExecution; - })(); - - event.CloudEventTaskExecution = (function() { - - /** - * Properties of a CloudEventTaskExecution. - * @memberof flyteidl.event - * @interface ICloudEventTaskExecution - * @property {flyteidl.event.ITaskExecutionEvent|null} [rawEvent] CloudEventTaskExecution rawEvent - */ - - /** - * Constructs a new CloudEventTaskExecution. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventTaskExecution. - * @implements ICloudEventTaskExecution - * @constructor - * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set - */ - function CloudEventTaskExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventTaskExecution rawEvent. - * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} rawEvent - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.rawEvent = null; - - /** - * Creates a new CloudEventTaskExecution instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventTaskExecution} CloudEventTaskExecution instance - */ - CloudEventTaskExecution.create = function create(properties) { - return new CloudEventTaskExecution(properties); - }; - - /** - * Encodes the specified CloudEventTaskExecution message. Does not implicitly {@link flyteidl.event.CloudEventTaskExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {flyteidl.event.ICloudEventTaskExecution} message CloudEventTaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventTaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) - $root.flyteidl.event.TaskExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CloudEventTaskExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventTaskExecution} CloudEventTaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventTaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventTaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rawEvent = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventTaskExecution message. - * @function verify - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventTaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { - var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.rawEvent); - if (error) - return "rawEvent." + error; - } - return null; - }; - - return CloudEventTaskExecution; - })(); - - event.CloudEventExecutionStart = (function() { - - /** - * Properties of a CloudEventExecutionStart. - * @memberof flyteidl.event - * @interface ICloudEventExecutionStart - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] CloudEventExecutionStart executionId - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventExecutionStart launchPlanId - * @property {flyteidl.core.IIdentifier|null} [workflowId] CloudEventExecutionStart workflowId - * @property {Array.|null} [artifactIds] CloudEventExecutionStart artifactIds - * @property {Array.|null} [artifactTrackers] CloudEventExecutionStart artifactTrackers - * @property {string|null} [principal] CloudEventExecutionStart principal - */ - - /** - * Constructs a new CloudEventExecutionStart. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventExecutionStart. - * @implements ICloudEventExecutionStart - * @constructor - * @param {flyteidl.event.ICloudEventExecutionStart=} [properties] Properties to set - */ - function CloudEventExecutionStart(properties) { - this.artifactIds = []; - this.artifactTrackers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventExecutionStart executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.executionId = null; - - /** - * CloudEventExecutionStart launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.launchPlanId = null; - - /** - * CloudEventExecutionStart workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.workflowId = null; - - /** - * CloudEventExecutionStart artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventExecutionStart artifactTrackers. - * @member {Array.} artifactTrackers - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.artifactTrackers = $util.emptyArray; - - /** - * CloudEventExecutionStart principal. - * @member {string} principal - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.principal = ""; - - /** - * Creates a new CloudEventExecutionStart instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {flyteidl.event.ICloudEventExecutionStart=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventExecutionStart} CloudEventExecutionStart instance - */ - CloudEventExecutionStart.create = function create(properties) { - return new CloudEventExecutionStart(properties); - }; - - /** - * Encodes the specified CloudEventExecutionStart message. Does not implicitly {@link flyteidl.event.CloudEventExecutionStart.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {flyteidl.event.ICloudEventExecutionStart} message CloudEventExecutionStart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventExecutionStart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.artifactTrackers != null && message.artifactTrackers.length) - for (var i = 0; i < message.artifactTrackers.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.artifactTrackers[i]); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.principal); - return writer; - }; - - /** - * Decodes a CloudEventExecutionStart message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventExecutionStart} CloudEventExecutionStart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventExecutionStart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventExecutionStart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 3: - message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.artifactTrackers && message.artifactTrackers.length)) - message.artifactTrackers = []; - message.artifactTrackers.push(reader.string()); - break; - case 6: - message.principal = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventExecutionStart message. - * @function verify - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventExecutionStart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - var error = $root.flyteidl.core.Identifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - if (message.artifactTrackers != null && message.hasOwnProperty("artifactTrackers")) { - if (!Array.isArray(message.artifactTrackers)) - return "artifactTrackers: array expected"; - for (var i = 0; i < message.artifactTrackers.length; ++i) - if (!$util.isString(message.artifactTrackers[i])) - return "artifactTrackers: string[] expected"; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - return null; - }; - - return CloudEventExecutionStart; - })(); - - event.WorkflowExecutionEvent = (function() { - - /** - * Properties of a WorkflowExecutionEvent. - * @memberof flyteidl.event - * @interface IWorkflowExecutionEvent - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowExecutionEvent executionId - * @property {string|null} [producerId] WorkflowExecutionEvent producerId - * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] WorkflowExecutionEvent phase - * @property {google.protobuf.ITimestamp|null} [occurredAt] WorkflowExecutionEvent occurredAt - * @property {string|null} [outputUri] WorkflowExecutionEvent outputUri - * @property {flyteidl.core.IExecutionError|null} [error] WorkflowExecutionEvent error - * @property {flyteidl.core.ILiteralMap|null} [outputData] WorkflowExecutionEvent outputData - */ - - /** - * Constructs a new WorkflowExecutionEvent. - * @memberof flyteidl.event - * @classdesc Represents a WorkflowExecutionEvent. - * @implements IWorkflowExecutionEvent - * @constructor - * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set - */ - function WorkflowExecutionEvent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionEvent executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.executionId = null; - - /** - * WorkflowExecutionEvent producerId. - * @member {string} producerId - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.producerId = ""; - - /** - * WorkflowExecutionEvent phase. - * @member {flyteidl.core.WorkflowExecution.Phase} phase - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.phase = 0; - - /** - * WorkflowExecutionEvent occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.occurredAt = null; - - /** - * WorkflowExecutionEvent outputUri. - * @member {string} outputUri - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.outputUri = ""; - - /** - * WorkflowExecutionEvent error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.error = null; - - /** - * WorkflowExecutionEvent outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.outputData = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WorkflowExecutionEvent outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - Object.defineProperty(WorkflowExecutionEvent.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new WorkflowExecutionEvent instance using the specified properties. - * @function create - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set - * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent instance - */ - WorkflowExecutionEvent.create = function create(properties) { - return new WorkflowExecutionEvent(properties); - }; - - /** - * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {flyteidl.event.IWorkflowExecutionEvent} message WorkflowExecutionEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.producerId != null && message.hasOwnProperty("producerId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowExecutionEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.producerId = reader.string(); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.outputUri = reader.string(); - break; - case 6: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 7: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionEvent message. - * @function verify - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - if (message.producerId != null && message.hasOwnProperty("producerId")) - if (!$util.isString(message.producerId)) - return "producerId: string expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - return null; - }; - - return WorkflowExecutionEvent; - })(); - - event.NodeExecutionEvent = (function() { - - /** - * Properties of a NodeExecutionEvent. - * @memberof flyteidl.event - * @interface INodeExecutionEvent - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionEvent id - * @property {string|null} [producerId] NodeExecutionEvent producerId - * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionEvent phase - * @property {google.protobuf.ITimestamp|null} [occurredAt] NodeExecutionEvent occurredAt - * @property {string|null} [inputUri] NodeExecutionEvent inputUri - * @property {flyteidl.core.ILiteralMap|null} [inputData] NodeExecutionEvent inputData - * @property {string|null} [outputUri] NodeExecutionEvent outputUri - * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionEvent error - * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionEvent outputData - * @property {flyteidl.event.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionEvent workflowNodeMetadata - * @property {flyteidl.event.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionEvent taskNodeMetadata - * @property {flyteidl.event.IParentTaskExecutionMetadata|null} [parentTaskMetadata] NodeExecutionEvent parentTaskMetadata - * @property {flyteidl.event.IParentNodeExecutionMetadata|null} [parentNodeMetadata] NodeExecutionEvent parentNodeMetadata - * @property {string|null} [retryGroup] NodeExecutionEvent retryGroup - * @property {string|null} [specNodeId] NodeExecutionEvent specNodeId - * @property {string|null} [nodeName] NodeExecutionEvent nodeName - * @property {number|null} [eventVersion] NodeExecutionEvent eventVersion - * @property {boolean|null} [isParent] NodeExecutionEvent isParent - * @property {boolean|null} [isDynamic] NodeExecutionEvent isDynamic - * @property {string|null} [deckUri] NodeExecutionEvent deckUri - * @property {google.protobuf.ITimestamp|null} [reportedAt] NodeExecutionEvent reportedAt - * @property {boolean|null} [isArray] NodeExecutionEvent isArray - */ - - /** - * Constructs a new NodeExecutionEvent. - * @memberof flyteidl.event - * @classdesc Represents a NodeExecutionEvent. - * @implements INodeExecutionEvent - * @constructor - * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set - */ - function NodeExecutionEvent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionEvent id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.id = null; - - /** - * NodeExecutionEvent producerId. - * @member {string} producerId - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.producerId = ""; - - /** - * NodeExecutionEvent phase. - * @member {flyteidl.core.NodeExecution.Phase} phase - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.phase = 0; - - /** - * NodeExecutionEvent occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.occurredAt = null; - - /** - * NodeExecutionEvent inputUri. - * @member {string} inputUri - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.inputUri = ""; - - /** - * NodeExecutionEvent inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.inputData = null; - - /** - * NodeExecutionEvent outputUri. - * @member {string} outputUri - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.outputUri = ""; - - /** - * NodeExecutionEvent error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.error = null; - - /** - * NodeExecutionEvent outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.outputData = null; - - /** - * NodeExecutionEvent workflowNodeMetadata. - * @member {flyteidl.event.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.workflowNodeMetadata = null; - - /** - * NodeExecutionEvent taskNodeMetadata. - * @member {flyteidl.event.ITaskNodeMetadata|null|undefined} taskNodeMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.taskNodeMetadata = null; - - /** - * NodeExecutionEvent parentTaskMetadata. - * @member {flyteidl.event.IParentTaskExecutionMetadata|null|undefined} parentTaskMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.parentTaskMetadata = null; - - /** - * NodeExecutionEvent parentNodeMetadata. - * @member {flyteidl.event.IParentNodeExecutionMetadata|null|undefined} parentNodeMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.parentNodeMetadata = null; - - /** - * NodeExecutionEvent retryGroup. - * @member {string} retryGroup - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.retryGroup = ""; - - /** - * NodeExecutionEvent specNodeId. - * @member {string} specNodeId - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.specNodeId = ""; - - /** - * NodeExecutionEvent nodeName. - * @member {string} nodeName - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.nodeName = ""; - - /** - * NodeExecutionEvent eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.eventVersion = 0; - - /** - * NodeExecutionEvent isParent. - * @member {boolean} isParent - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.isParent = false; - - /** - * NodeExecutionEvent isDynamic. - * @member {boolean} isDynamic - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.isDynamic = false; - - /** - * NodeExecutionEvent deckUri. - * @member {string} deckUri - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.deckUri = ""; - - /** - * NodeExecutionEvent reportedAt. - * @member {google.protobuf.ITimestamp|null|undefined} reportedAt - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.reportedAt = null; - - /** - * NodeExecutionEvent isArray. - * @member {boolean} isArray - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.isArray = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * NodeExecutionEvent inputValue. - * @member {"inputUri"|"inputData"|undefined} inputValue - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - Object.defineProperty(NodeExecutionEvent.prototype, "inputValue", { - get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeExecutionEvent outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - Object.defineProperty(NodeExecutionEvent.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeExecutionEvent targetMetadata. - * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - Object.defineProperty(NodeExecutionEvent.prototype, "targetMetadata", { - get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new NodeExecutionEvent instance using the specified properties. - * @function create - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set - * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent instance - */ - NodeExecutionEvent.create = function create(properties) { - return new NodeExecutionEvent(properties); - }; - - /** - * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {flyteidl.event.INodeExecutionEvent} message NodeExecutionEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.producerId != null && message.hasOwnProperty("producerId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.inputUri); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) - $root.flyteidl.event.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) - $root.flyteidl.event.ParentTaskExecutionMetadata.encode(message.parentTaskMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) - $root.flyteidl.event.ParentNodeExecutionMetadata.encode(message.parentNodeMetadata, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.retryGroup); - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.specNodeId); - if (message.nodeName != null && message.hasOwnProperty("nodeName")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.nodeName); - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) - $root.flyteidl.event.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.eventVersion); - if (message.isParent != null && message.hasOwnProperty("isParent")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.isParent); - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDynamic); - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.deckUri); - if (message.inputData != null && message.hasOwnProperty("inputData")) - $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) - $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.isArray != null && message.hasOwnProperty("isArray")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.isArray); - return writer; - }; - - /** - * Decodes a NodeExecutionEvent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.NodeExecutionEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.producerId = reader.string(); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.inputUri = reader.string(); - break; - case 20: - message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 6: - message.outputUri = reader.string(); - break; - case 7: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 15: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 8: - message.workflowNodeMetadata = $root.flyteidl.event.WorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - case 14: - message.taskNodeMetadata = $root.flyteidl.event.TaskNodeMetadata.decode(reader, reader.uint32()); - break; - case 9: - message.parentTaskMetadata = $root.flyteidl.event.ParentTaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 10: - message.parentNodeMetadata = $root.flyteidl.event.ParentNodeExecutionMetadata.decode(reader, reader.uint32()); - break; - case 11: - message.retryGroup = reader.string(); - break; - case 12: - message.specNodeId = reader.string(); - break; - case 13: - message.nodeName = reader.string(); - break; - case 16: - message.eventVersion = reader.int32(); - break; - case 17: - message.isParent = reader.bool(); - break; - case 18: - message.isDynamic = reader.bool(); - break; - case 19: - message.deckUri = reader.string(); - break; - case 21: - message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 22: - message.isArray = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionEvent message. - * @function verify - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.producerId != null && message.hasOwnProperty("producerId")) - if (!$util.isString(message.producerId)) - return "producerId: string expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) { - properties.inputValue = 1; - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - } - if (message.inputData != null && message.hasOwnProperty("inputData")) { - if (properties.inputValue === 1) - return "inputValue: multiple values"; - properties.inputValue = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); - if (error) - return "inputData." + error; - } - } - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { - properties.targetMetadata = 1; - { - var error = $root.flyteidl.event.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); - if (error) - return "workflowNodeMetadata." + error; - } - } - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { - if (properties.targetMetadata === 1) - return "targetMetadata: multiple values"; - properties.targetMetadata = 1; - { - var error = $root.flyteidl.event.TaskNodeMetadata.verify(message.taskNodeMetadata); - if (error) - return "taskNodeMetadata." + error; - } - } - if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) { - var error = $root.flyteidl.event.ParentTaskExecutionMetadata.verify(message.parentTaskMetadata); - if (error) - return "parentTaskMetadata." + error; - } - if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) { - var error = $root.flyteidl.event.ParentNodeExecutionMetadata.verify(message.parentNodeMetadata); - if (error) - return "parentNodeMetadata." + error; - } - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - if (!$util.isString(message.retryGroup)) - return "retryGroup: string expected"; - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - if (!$util.isString(message.specNodeId)) - return "specNodeId: string expected"; - if (message.nodeName != null && message.hasOwnProperty("nodeName")) - if (!$util.isString(message.nodeName)) - return "nodeName: string expected"; - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - if (!$util.isInteger(message.eventVersion)) - return "eventVersion: integer expected"; - if (message.isParent != null && message.hasOwnProperty("isParent")) - if (typeof message.isParent !== "boolean") - return "isParent: boolean expected"; - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - if (typeof message.isDynamic !== "boolean") - return "isDynamic: boolean expected"; - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - if (!$util.isString(message.deckUri)) - return "deckUri: string expected"; - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); - if (error) - return "reportedAt." + error; - } - if (message.isArray != null && message.hasOwnProperty("isArray")) - if (typeof message.isArray !== "boolean") - return "isArray: boolean expected"; - return null; - }; - - return NodeExecutionEvent; - })(); - - event.WorkflowNodeMetadata = (function() { - - /** - * Properties of a WorkflowNodeMetadata. - * @memberof flyteidl.event - * @interface IWorkflowNodeMetadata - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId - */ - - /** - * Constructs a new WorkflowNodeMetadata. - * @memberof flyteidl.event - * @classdesc Represents a WorkflowNodeMetadata. - * @implements IWorkflowNodeMetadata - * @constructor - * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set - */ - function WorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowNodeMetadata executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.event.WorkflowNodeMetadata - * @instance - */ - WorkflowNodeMetadata.prototype.executionId = null; - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata instance - */ - WorkflowNodeMetadata.create = function create(properties) { - return new WorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {flyteidl.event.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return WorkflowNodeMetadata; - })(); - - event.TaskNodeMetadata = (function() { - - /** - * Properties of a TaskNodeMetadata. - * @memberof flyteidl.event - * @interface ITaskNodeMetadata - * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus - * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey - * @property {flyteidl.core.CatalogReservation.Status|null} [reservationStatus] TaskNodeMetadata reservationStatus - * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri - * @property {flyteidl.event.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] TaskNodeMetadata dynamicWorkflow - */ - - /** - * Constructs a new TaskNodeMetadata. - * @memberof flyteidl.event - * @classdesc Represents a TaskNodeMetadata. - * @implements ITaskNodeMetadata - * @constructor - * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set - */ - function TaskNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNodeMetadata cacheStatus. - * @member {flyteidl.core.CatalogCacheStatus} cacheStatus - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.cacheStatus = 0; - - /** - * TaskNodeMetadata catalogKey. - * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.catalogKey = null; - - /** - * TaskNodeMetadata reservationStatus. - * @member {flyteidl.core.CatalogReservation.Status} reservationStatus - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.reservationStatus = 0; - - /** - * TaskNodeMetadata checkpointUri. - * @member {string} checkpointUri - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.checkpointUri = ""; - - /** - * TaskNodeMetadata dynamicWorkflow. - * @member {flyteidl.event.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.dynamicWorkflow = null; - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata instance - */ - TaskNodeMetadata.create = function create(properties) { - return new TaskNodeMetadata(properties); - }; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {flyteidl.event.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) - $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.reservationStatus); - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) - $root.flyteidl.event.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cacheStatus = reader.int32(); - break; - case 2: - message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); - break; - case 3: - message.reservationStatus = reader.int32(); - break; - case 4: - message.checkpointUri = reader.string(); - break; - case 16: - message.dynamicWorkflow = $root.flyteidl.event.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNodeMetadata message. - * @function verify - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { - var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); - if (error) - return "catalogKey." + error; - } - if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) - switch (message.reservationStatus) { - default: - return "reservationStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - if (!$util.isString(message.checkpointUri)) - return "checkpointUri: string expected"; - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { - var error = $root.flyteidl.event.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); - if (error) - return "dynamicWorkflow." + error; - } - return null; - }; - - return TaskNodeMetadata; - })(); - - event.DynamicWorkflowNodeMetadata = (function() { - - /** - * Properties of a DynamicWorkflowNodeMetadata. - * @memberof flyteidl.event - * @interface IDynamicWorkflowNodeMetadata - * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow - * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri - */ - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @memberof flyteidl.event - * @classdesc Represents a DynamicWorkflowNodeMetadata. - * @implements IDynamicWorkflowNodeMetadata - * @constructor - * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - */ - function DynamicWorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicWorkflowNodeMetadata id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.id = null; - - /** - * DynamicWorkflowNodeMetadata compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; - - /** - * DynamicWorkflowNodeMetadata dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance - */ - DynamicWorkflowNodeMetadata.create = function create(properties) { - return new DynamicWorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.event.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); - return writer; - }; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.DynamicWorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - case 3: - message.dynamicJobSpecUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicWorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicWorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - if (!$util.isString(message.dynamicJobSpecUri)) - return "dynamicJobSpecUri: string expected"; - return null; - }; - - return DynamicWorkflowNodeMetadata; - })(); - - event.ParentTaskExecutionMetadata = (function() { - - /** - * Properties of a ParentTaskExecutionMetadata. - * @memberof flyteidl.event - * @interface IParentTaskExecutionMetadata - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] ParentTaskExecutionMetadata id - */ - - /** - * Constructs a new ParentTaskExecutionMetadata. - * @memberof flyteidl.event - * @classdesc Represents a ParentTaskExecutionMetadata. - * @implements IParentTaskExecutionMetadata - * @constructor - * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set - */ - function ParentTaskExecutionMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParentTaskExecutionMetadata id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @instance - */ - ParentTaskExecutionMetadata.prototype.id = null; - - /** - * Creates a new ParentTaskExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata instance - */ - ParentTaskExecutionMetadata.create = function create(properties) { - return new ParentTaskExecutionMetadata(properties); - }; - - /** - * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {flyteidl.event.IParentTaskExecutionMetadata} message ParentTaskExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParentTaskExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParentTaskExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentTaskExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ParentTaskExecutionMetadata message. - * @function verify - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParentTaskExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ParentTaskExecutionMetadata; - })(); - - event.ParentNodeExecutionMetadata = (function() { - - /** - * Properties of a ParentNodeExecutionMetadata. - * @memberof flyteidl.event - * @interface IParentNodeExecutionMetadata - * @property {string|null} [nodeId] ParentNodeExecutionMetadata nodeId - */ - - /** - * Constructs a new ParentNodeExecutionMetadata. - * @memberof flyteidl.event - * @classdesc Represents a ParentNodeExecutionMetadata. - * @implements IParentNodeExecutionMetadata - * @constructor - * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set - */ - function ParentNodeExecutionMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParentNodeExecutionMetadata nodeId. - * @member {string} nodeId - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @instance - */ - ParentNodeExecutionMetadata.prototype.nodeId = ""; - - /** - * Creates a new ParentNodeExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata instance - */ - ParentNodeExecutionMetadata.create = function create(properties) { - return new ParentNodeExecutionMetadata(properties); - }; - - /** - * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {flyteidl.event.IParentNodeExecutionMetadata} message ParentNodeExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParentNodeExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - return writer; - }; - - /** - * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParentNodeExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentNodeExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ParentNodeExecutionMetadata message. - * @function verify - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParentNodeExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - return null; - }; - - return ParentNodeExecutionMetadata; - })(); - - event.EventReason = (function() { - - /** - * Properties of an EventReason. - * @memberof flyteidl.event - * @interface IEventReason - * @property {string|null} [reason] EventReason reason - * @property {google.protobuf.ITimestamp|null} [occurredAt] EventReason occurredAt - */ - - /** - * Constructs a new EventReason. - * @memberof flyteidl.event - * @classdesc Represents an EventReason. - * @implements IEventReason - * @constructor - * @param {flyteidl.event.IEventReason=} [properties] Properties to set - */ - function EventReason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventReason reason. - * @member {string} reason - * @memberof flyteidl.event.EventReason - * @instance - */ - EventReason.prototype.reason = ""; - - /** - * EventReason occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.EventReason - * @instance - */ - EventReason.prototype.occurredAt = null; - - /** - * Creates a new EventReason instance using the specified properties. - * @function create - * @memberof flyteidl.event.EventReason - * @static - * @param {flyteidl.event.IEventReason=} [properties] Properties to set - * @returns {flyteidl.event.EventReason} EventReason instance - */ - EventReason.create = function create(properties) { - return new EventReason(properties); - }; - - /** - * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.EventReason - * @static - * @param {flyteidl.event.IEventReason} message EventReason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventReason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && message.hasOwnProperty("reason")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EventReason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.EventReason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.EventReason} EventReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventReason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.EventReason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - case 2: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventReason message. - * @function verify - * @memberof flyteidl.event.EventReason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventReason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - return null; - }; - - return EventReason; - })(); - - event.TaskExecutionEvent = (function() { - - /** - * Properties of a TaskExecutionEvent. - * @memberof flyteidl.event - * @interface ITaskExecutionEvent - * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionEvent taskId - * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecutionId] TaskExecutionEvent parentNodeExecutionId - * @property {number|null} [retryAttempt] TaskExecutionEvent retryAttempt - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionEvent phase - * @property {string|null} [producerId] TaskExecutionEvent producerId - * @property {Array.|null} [logs] TaskExecutionEvent logs - * @property {google.protobuf.ITimestamp|null} [occurredAt] TaskExecutionEvent occurredAt - * @property {string|null} [inputUri] TaskExecutionEvent inputUri - * @property {flyteidl.core.ILiteralMap|null} [inputData] TaskExecutionEvent inputData - * @property {string|null} [outputUri] TaskExecutionEvent outputUri - * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionEvent error - * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionEvent outputData - * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo - * @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion - * @property {string|null} [reason] TaskExecutionEvent reason - * @property {Array.|null} [reasons] TaskExecutionEvent reasons - * @property {string|null} [taskType] TaskExecutionEvent taskType - * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionEvent metadata - * @property {number|null} [eventVersion] TaskExecutionEvent eventVersion - * @property {google.protobuf.ITimestamp|null} [reportedAt] TaskExecutionEvent reportedAt - */ - - /** - * Constructs a new TaskExecutionEvent. - * @memberof flyteidl.event - * @classdesc Represents a TaskExecutionEvent. - * @implements ITaskExecutionEvent - * @constructor - * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set - */ - function TaskExecutionEvent(properties) { - this.logs = []; - this.reasons = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionEvent taskId. - * @member {flyteidl.core.IIdentifier|null|undefined} taskId - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.taskId = null; - - /** - * TaskExecutionEvent parentNodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecutionId - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.parentNodeExecutionId = null; - - /** - * TaskExecutionEvent retryAttempt. - * @member {number} retryAttempt - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.retryAttempt = 0; - - /** - * TaskExecutionEvent phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.phase = 0; - - /** - * TaskExecutionEvent producerId. - * @member {string} producerId - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.producerId = ""; - - /** - * TaskExecutionEvent logs. - * @member {Array.} logs - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.logs = $util.emptyArray; - - /** - * TaskExecutionEvent occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.occurredAt = null; - - /** - * TaskExecutionEvent inputUri. - * @member {string} inputUri - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.inputUri = ""; - - /** - * TaskExecutionEvent inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.inputData = null; - - /** - * TaskExecutionEvent outputUri. - * @member {string} outputUri - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.outputUri = ""; - - /** - * TaskExecutionEvent error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.error = null; - - /** - * TaskExecutionEvent outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.outputData = null; - - /** - * TaskExecutionEvent customInfo. - * @member {google.protobuf.IStruct|null|undefined} customInfo - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.customInfo = null; - - /** - * TaskExecutionEvent phaseVersion. - * @member {number} phaseVersion - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.phaseVersion = 0; - - /** - * TaskExecutionEvent reason. - * @member {string} reason - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.reason = ""; - - /** - * TaskExecutionEvent reasons. - * @member {Array.} reasons - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.reasons = $util.emptyArray; - - /** - * TaskExecutionEvent taskType. - * @member {string} taskType - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.taskType = ""; - - /** - * TaskExecutionEvent metadata. - * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.metadata = null; - - /** - * TaskExecutionEvent eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.eventVersion = 0; - - /** - * TaskExecutionEvent reportedAt. - * @member {google.protobuf.ITimestamp|null|undefined} reportedAt - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.reportedAt = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskExecutionEvent inputValue. - * @member {"inputUri"|"inputData"|undefined} inputValue - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - Object.defineProperty(TaskExecutionEvent.prototype, "inputValue", { - get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * TaskExecutionEvent outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - Object.defineProperty(TaskExecutionEvent.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskExecutionEvent instance using the specified properties. - * @function create - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set - * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent instance - */ - TaskExecutionEvent.create = function create(properties) { - return new TaskExecutionEvent(properties); - }; - - /** - * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {flyteidl.event.ITaskExecutionEvent} message TaskExecutionEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskId != null && message.hasOwnProperty("taskId")) - $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); - if (message.producerId != null && message.hasOwnProperty("producerId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.producerId); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.inputUri); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.customInfo != null && message.hasOwnProperty("customInfo")) - $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) - writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.phaseVersion); - if (message.reason != null && message.hasOwnProperty("reason")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.reason); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.taskType); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.eventVersion); - if (message.inputData != null && message.hasOwnProperty("inputData")) - $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) - $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.reasons != null && message.reasons.length) - for (var i = 0; i < message.reasons.length; ++i) - $root.flyteidl.event.EventReason.encode(message.reasons[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionEvent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.parentNodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.retryAttempt = reader.uint32(); - break; - case 4: - message.phase = reader.int32(); - break; - case 5: - message.producerId = reader.string(); - break; - case 6: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - case 7: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.inputUri = reader.string(); - break; - case 19: - message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 9: - message.outputUri = reader.string(); - break; - case 10: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 17: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 11: - message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 12: - message.phaseVersion = reader.uint32(); - break; - case 13: - message.reason = reader.string(); - break; - case 21: - if (!(message.reasons && message.reasons.length)) - message.reasons = []; - message.reasons.push($root.flyteidl.event.EventReason.decode(reader, reader.uint32())); - break; - case 14: - message.taskType = reader.string(); - break; - case 16: - message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 18: - message.eventVersion = reader.int32(); - break; - case 20: - message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionEvent message. - * @function verify - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.taskId != null && message.hasOwnProperty("taskId")) { - var error = $root.flyteidl.core.Identifier.verify(message.taskId); - if (error) - return "taskId." + error; - } - if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecutionId); - if (error) - return "parentNodeExecutionId." + error; - } - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - if (!$util.isInteger(message.retryAttempt)) - return "retryAttempt: integer expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.producerId != null && message.hasOwnProperty("producerId")) - if (!$util.isString(message.producerId)) - return "producerId: string expected"; - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) { - properties.inputValue = 1; - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - } - if (message.inputData != null && message.hasOwnProperty("inputData")) { - if (properties.inputValue === 1) - return "inputValue: multiple values"; - properties.inputValue = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); - if (error) - return "inputData." + error; - } - } - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.customInfo != null && message.hasOwnProperty("customInfo")) { - var error = $root.google.protobuf.Struct.verify(message.customInfo); - if (error) - return "customInfo." + error; - } - if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) - if (!$util.isInteger(message.phaseVersion)) - return "phaseVersion: integer expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.reasons != null && message.hasOwnProperty("reasons")) { - if (!Array.isArray(message.reasons)) - return "reasons: array expected"; - for (var i = 0; i < message.reasons.length; ++i) { - var error = $root.flyteidl.event.EventReason.verify(message.reasons[i]); - if (error) - return "reasons." + error; - } - } - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - if (!$util.isInteger(message.eventVersion)) - return "eventVersion: integer expected"; - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); - if (error) - return "reportedAt." + error; - } - return null; - }; - - return TaskExecutionEvent; - })(); - - event.ExternalResourceInfo = (function() { - - /** - * Properties of an ExternalResourceInfo. - * @memberof flyteidl.event - * @interface IExternalResourceInfo - * @property {string|null} [externalId] ExternalResourceInfo externalId - * @property {number|null} [index] ExternalResourceInfo index - * @property {number|null} [retryAttempt] ExternalResourceInfo retryAttempt - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] ExternalResourceInfo phase - * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] ExternalResourceInfo cacheStatus - * @property {Array.|null} [logs] ExternalResourceInfo logs - */ - - /** - * Constructs a new ExternalResourceInfo. - * @memberof flyteidl.event - * @classdesc Represents an ExternalResourceInfo. - * @implements IExternalResourceInfo - * @constructor - * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set - */ - function ExternalResourceInfo(properties) { - this.logs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExternalResourceInfo externalId. - * @member {string} externalId - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.externalId = ""; - - /** - * ExternalResourceInfo index. - * @member {number} index - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.index = 0; - - /** - * ExternalResourceInfo retryAttempt. - * @member {number} retryAttempt - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.retryAttempt = 0; - - /** - * ExternalResourceInfo phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.phase = 0; - - /** - * ExternalResourceInfo cacheStatus. - * @member {flyteidl.core.CatalogCacheStatus} cacheStatus - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.cacheStatus = 0; - - /** - * ExternalResourceInfo logs. - * @member {Array.} logs - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.logs = $util.emptyArray; - - /** - * Creates a new ExternalResourceInfo instance using the specified properties. - * @function create - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set - * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo instance - */ - ExternalResourceInfo.create = function create(properties) { - return new ExternalResourceInfo(properties); - }; - - /** - * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {flyteidl.event.IExternalResourceInfo} message ExternalResourceInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExternalResourceInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.externalId != null && message.hasOwnProperty("externalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.externalId); - if (message.index != null && message.hasOwnProperty("index")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.index); - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.cacheStatus); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExternalResourceInfo message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExternalResourceInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ExternalResourceInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.externalId = reader.string(); - break; - case 2: - message.index = reader.uint32(); - break; - case 3: - message.retryAttempt = reader.uint32(); - break; - case 4: - message.phase = reader.int32(); - break; - case 5: - message.cacheStatus = reader.int32(); - break; - case 6: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExternalResourceInfo message. - * @function verify - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExternalResourceInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.externalId != null && message.hasOwnProperty("externalId")) - if (!$util.isString(message.externalId)) - return "externalId: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - if (!$util.isInteger(message.retryAttempt)) - return "retryAttempt: integer expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - return null; - }; - - return ExternalResourceInfo; - })(); - - event.ResourcePoolInfo = (function() { - - /** - * Properties of a ResourcePoolInfo. - * @memberof flyteidl.event - * @interface IResourcePoolInfo - * @property {string|null} [allocationToken] ResourcePoolInfo allocationToken - * @property {string|null} [namespace] ResourcePoolInfo namespace - */ - - /** - * Constructs a new ResourcePoolInfo. - * @memberof flyteidl.event - * @classdesc Represents a ResourcePoolInfo. - * @implements IResourcePoolInfo - * @constructor - * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set - */ - function ResourcePoolInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourcePoolInfo allocationToken. - * @member {string} allocationToken - * @memberof flyteidl.event.ResourcePoolInfo - * @instance - */ - ResourcePoolInfo.prototype.allocationToken = ""; - - /** - * ResourcePoolInfo namespace. - * @member {string} namespace - * @memberof flyteidl.event.ResourcePoolInfo - * @instance - */ - ResourcePoolInfo.prototype.namespace = ""; - - /** - * Creates a new ResourcePoolInfo instance using the specified properties. - * @function create - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set - * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo instance - */ - ResourcePoolInfo.create = function create(properties) { - return new ResourcePoolInfo(properties); - }; - - /** - * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {flyteidl.event.IResourcePoolInfo} message ResourcePoolInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourcePoolInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allocationToken); - if (message.namespace != null && message.hasOwnProperty("namespace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); - return writer; - }; - - /** - * Decodes a ResourcePoolInfo message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourcePoolInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ResourcePoolInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allocationToken = reader.string(); - break; - case 2: - message.namespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ResourcePoolInfo message. - * @function verify - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourcePoolInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) - if (!$util.isString(message.allocationToken)) - return "allocationToken: string expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - return null; - }; - - return ResourcePoolInfo; - })(); - - event.TaskExecutionMetadata = (function() { - - /** - * Properties of a TaskExecutionMetadata. - * @memberof flyteidl.event - * @interface ITaskExecutionMetadata - * @property {string|null} [generatedName] TaskExecutionMetadata generatedName - * @property {Array.|null} [externalResources] TaskExecutionMetadata externalResources - * @property {Array.|null} [resourcePoolInfo] TaskExecutionMetadata resourcePoolInfo - * @property {string|null} [pluginIdentifier] TaskExecutionMetadata pluginIdentifier - * @property {flyteidl.event.TaskExecutionMetadata.InstanceClass|null} [instanceClass] TaskExecutionMetadata instanceClass - */ - - /** - * Constructs a new TaskExecutionMetadata. - * @memberof flyteidl.event - * @classdesc Represents a TaskExecutionMetadata. - * @implements ITaskExecutionMetadata - * @constructor - * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set - */ - function TaskExecutionMetadata(properties) { - this.externalResources = []; - this.resourcePoolInfo = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionMetadata generatedName. - * @member {string} generatedName - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.generatedName = ""; - - /** - * TaskExecutionMetadata externalResources. - * @member {Array.} externalResources - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.externalResources = $util.emptyArray; - - /** - * TaskExecutionMetadata resourcePoolInfo. - * @member {Array.} resourcePoolInfo - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.resourcePoolInfo = $util.emptyArray; - - /** - * TaskExecutionMetadata pluginIdentifier. - * @member {string} pluginIdentifier - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.pluginIdentifier = ""; - - /** - * TaskExecutionMetadata instanceClass. - * @member {flyteidl.event.TaskExecutionMetadata.InstanceClass} instanceClass - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.instanceClass = 0; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata instance - */ - TaskExecutionMetadata.create = function create(properties) { - return new TaskExecutionMetadata(properties); - }; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {flyteidl.event.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.generatedName != null && message.hasOwnProperty("generatedName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.generatedName); - if (message.externalResources != null && message.externalResources.length) - for (var i = 0; i < message.externalResources.length; ++i) - $root.flyteidl.event.ExternalResourceInfo.encode(message.externalResources[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resourcePoolInfo != null && message.resourcePoolInfo.length) - for (var i = 0; i < message.resourcePoolInfo.length; ++i) - $root.flyteidl.event.ResourcePoolInfo.encode(message.resourcePoolInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pluginIdentifier); - if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.instanceClass); - return writer; - }; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.generatedName = reader.string(); - break; - case 2: - if (!(message.externalResources && message.externalResources.length)) - message.externalResources = []; - message.externalResources.push($root.flyteidl.event.ExternalResourceInfo.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.resourcePoolInfo && message.resourcePoolInfo.length)) - message.resourcePoolInfo = []; - message.resourcePoolInfo.push($root.flyteidl.event.ResourcePoolInfo.decode(reader, reader.uint32())); - break; - case 4: - message.pluginIdentifier = reader.string(); - break; - case 16: - message.instanceClass = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionMetadata message. - * @function verify - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.generatedName != null && message.hasOwnProperty("generatedName")) - if (!$util.isString(message.generatedName)) - return "generatedName: string expected"; - if (message.externalResources != null && message.hasOwnProperty("externalResources")) { - if (!Array.isArray(message.externalResources)) - return "externalResources: array expected"; - for (var i = 0; i < message.externalResources.length; ++i) { - var error = $root.flyteidl.event.ExternalResourceInfo.verify(message.externalResources[i]); - if (error) - return "externalResources." + error; - } - } - if (message.resourcePoolInfo != null && message.hasOwnProperty("resourcePoolInfo")) { - if (!Array.isArray(message.resourcePoolInfo)) - return "resourcePoolInfo: array expected"; - for (var i = 0; i < message.resourcePoolInfo.length; ++i) { - var error = $root.flyteidl.event.ResourcePoolInfo.verify(message.resourcePoolInfo[i]); - if (error) - return "resourcePoolInfo." + error; - } - } - if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) - if (!$util.isString(message.pluginIdentifier)) - return "pluginIdentifier: string expected"; - if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) - switch (message.instanceClass) { - default: - return "instanceClass: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * InstanceClass enum. - * @name flyteidl.event.TaskExecutionMetadata.InstanceClass - * @enum {string} - * @property {number} DEFAULT=0 DEFAULT value - * @property {number} INTERRUPTIBLE=1 INTERRUPTIBLE value - */ - TaskExecutionMetadata.InstanceClass = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT"] = 0; - values[valuesById[1] = "INTERRUPTIBLE"] = 1; - return values; - })(); - - return TaskExecutionMetadata; - })(); - - return event; - })(); - - flyteidl.admin = (function() { - - /** - * Namespace admin. - * @memberof flyteidl - * @namespace - */ - var admin = {}; - - /** - * State enum. - * @name flyteidl.admin.State - * @enum {string} - * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value - * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value - * @property {number} PENDING=2 PENDING value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - */ - admin.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; - values[valuesById[1] = "PERMANENT_FAILURE"] = 1; - values[valuesById[2] = "PENDING"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - return values; - })(); - - admin.TaskExecutionMetadata = (function() { - - /** - * Properties of a TaskExecutionMetadata. - * @memberof flyteidl.admin - * @interface ITaskExecutionMetadata - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] TaskExecutionMetadata taskExecutionId - * @property {string|null} [namespace] TaskExecutionMetadata namespace - * @property {Object.|null} [labels] TaskExecutionMetadata labels - * @property {Object.|null} [annotations] TaskExecutionMetadata annotations - * @property {string|null} [k8sServiceAccount] TaskExecutionMetadata k8sServiceAccount - * @property {Object.|null} [environmentVariables] TaskExecutionMetadata environmentVariables - * @property {number|null} [maxAttempts] TaskExecutionMetadata maxAttempts - * @property {boolean|null} [interruptible] TaskExecutionMetadata interruptible - * @property {number|null} [interruptibleFailureThreshold] TaskExecutionMetadata interruptibleFailureThreshold - * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskExecutionMetadata overrides - */ - - /** - * Constructs a new TaskExecutionMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionMetadata. - * @implements ITaskExecutionMetadata - * @constructor - * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set - */ - function TaskExecutionMetadata(properties) { - this.labels = {}; - this.annotations = {}; - this.environmentVariables = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionMetadata taskExecutionId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.taskExecutionId = null; - - /** - * TaskExecutionMetadata namespace. - * @member {string} namespace - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.namespace = ""; - - /** - * TaskExecutionMetadata labels. - * @member {Object.} labels - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.labels = $util.emptyObject; - - /** - * TaskExecutionMetadata annotations. - * @member {Object.} annotations - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.annotations = $util.emptyObject; - - /** - * TaskExecutionMetadata k8sServiceAccount. - * @member {string} k8sServiceAccount - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.k8sServiceAccount = ""; - - /** - * TaskExecutionMetadata environmentVariables. - * @member {Object.} environmentVariables - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.environmentVariables = $util.emptyObject; - - /** - * TaskExecutionMetadata maxAttempts. - * @member {number} maxAttempts - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.maxAttempts = 0; - - /** - * TaskExecutionMetadata interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.interruptible = false; - - /** - * TaskExecutionMetadata interruptibleFailureThreshold. - * @member {number} interruptibleFailureThreshold - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.interruptibleFailureThreshold = 0; - - /** - * TaskExecutionMetadata overrides. - * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.overrides = null; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata instance - */ - TaskExecutionMetadata.create = function create(properties) { - return new TaskExecutionMetadata(properties); - }; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {flyteidl.admin.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.namespace != null && message.hasOwnProperty("namespace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); - if (message.labels != null && message.hasOwnProperty("labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.k8sServiceAccount); - if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) - for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim(); - if (message.maxAttempts != null && message.hasOwnProperty("maxAttempts")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxAttempts); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); - if (message.interruptibleFailureThreshold != null && message.hasOwnProperty("interruptibleFailureThreshold")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.interruptibleFailureThreshold); - if (message.overrides != null && message.hasOwnProperty("overrides")) - $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.namespace = reader.string(); - break; - case 3: - reader.skip().pos++; - if (message.labels === $util.emptyObject) - message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); - break; - case 4: - reader.skip().pos++; - if (message.annotations === $util.emptyObject) - message.annotations = {}; - key = reader.string(); - reader.pos++; - message.annotations[key] = reader.string(); - break; - case 5: - message.k8sServiceAccount = reader.string(); - break; - case 6: - reader.skip().pos++; - if (message.environmentVariables === $util.emptyObject) - message.environmentVariables = {}; - key = reader.string(); - reader.pos++; - message.environmentVariables[key] = reader.string(); - break; - case 7: - message.maxAttempts = reader.int32(); - break; - case 8: - message.interruptible = reader.bool(); - break; - case 9: - message.interruptibleFailureThreshold = reader.int32(); - break; - case 10: - message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionMetadata message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); - if (error) - return "taskExecutionId." + error; - } - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - if (!$util.isObject(message.annotations)) - return "annotations: object expected"; - var key = Object.keys(message.annotations); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.annotations[key[i]])) - return "annotations: string{k:string} expected"; - } - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - if (!$util.isString(message.k8sServiceAccount)) - return "k8sServiceAccount: string expected"; - if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) { - if (!$util.isObject(message.environmentVariables)) - return "environmentVariables: object expected"; - var key = Object.keys(message.environmentVariables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.environmentVariables[key[i]])) - return "environmentVariables: string{k:string} expected"; - } - if (message.maxAttempts != null && message.hasOwnProperty("maxAttempts")) - if (!$util.isInteger(message.maxAttempts)) - return "maxAttempts: integer expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - if (message.interruptibleFailureThreshold != null && message.hasOwnProperty("interruptibleFailureThreshold")) - if (!$util.isInteger(message.interruptibleFailureThreshold)) - return "interruptibleFailureThreshold: integer expected"; - if (message.overrides != null && message.hasOwnProperty("overrides")) { - var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); - if (error) - return "overrides." + error; - } - return null; - }; - - return TaskExecutionMetadata; - })(); - - admin.CreateTaskRequest = (function() { - - /** - * Properties of a CreateTaskRequest. - * @memberof flyteidl.admin - * @interface ICreateTaskRequest - * @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs - * @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template - * @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix - * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateTaskRequest taskExecutionMetadata - */ - - /** - * Constructs a new CreateTaskRequest. - * @memberof flyteidl.admin - * @classdesc Represents a CreateTaskRequest. - * @implements ICreateTaskRequest - * @constructor - * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set - */ - function CreateTaskRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTaskRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.inputs = null; - - /** - * CreateTaskRequest template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.template = null; - - /** - * CreateTaskRequest outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.outputPrefix = ""; - - /** - * CreateTaskRequest taskExecutionMetadata. - * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.taskExecutionMetadata = null; - - /** - * Creates a new CreateTaskRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance - */ - CreateTaskRequest.create = function create(properties) { - return new CreateTaskRequest(properties); - }; - - /** - * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) - $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 3: - message.outputPrefix = reader.string(); - break; - case 4: - message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateTaskRequest message. - * @function verify - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { - var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); - if (error) - return "taskExecutionMetadata." + error; - } - return null; - }; - - return CreateTaskRequest; - })(); - - admin.CreateTaskResponse = (function() { - - /** - * Properties of a CreateTaskResponse. - * @memberof flyteidl.admin - * @interface ICreateTaskResponse - * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta - */ - - /** - * Constructs a new CreateTaskResponse. - * @memberof flyteidl.admin - * @classdesc Represents a CreateTaskResponse. - * @implements ICreateTaskResponse - * @constructor - * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set - */ - function CreateTaskResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTaskResponse resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.CreateTaskResponse - * @instance - */ - CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); - - /** - * Creates a new CreateTaskResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance - */ - CreateTaskResponse.create = function create(properties) { - return new CreateTaskResponse(properties); - }; - - /** - * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTaskResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); - return writer; - }; - - /** - * Decodes a CreateTaskResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTaskResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceMeta = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateTaskResponse message. - * @function verify - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTaskResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - return null; - }; - - return CreateTaskResponse; - })(); - - admin.CreateRequestHeader = (function() { - - /** - * Properties of a CreateRequestHeader. - * @memberof flyteidl.admin - * @interface ICreateRequestHeader - * @property {flyteidl.core.ITaskTemplate|null} [template] CreateRequestHeader template - * @property {string|null} [outputPrefix] CreateRequestHeader outputPrefix - * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateRequestHeader taskExecutionMetadata - * @property {Long|null} [maxDatasetSizeBytes] CreateRequestHeader maxDatasetSizeBytes - */ - - /** - * Constructs a new CreateRequestHeader. - * @memberof flyteidl.admin - * @classdesc Represents a CreateRequestHeader. - * @implements ICreateRequestHeader - * @constructor - * @param {flyteidl.admin.ICreateRequestHeader=} [properties] Properties to set - */ - function CreateRequestHeader(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateRequestHeader template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.CreateRequestHeader - * @instance - */ - CreateRequestHeader.prototype.template = null; - - /** - * CreateRequestHeader outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.admin.CreateRequestHeader - * @instance - */ - CreateRequestHeader.prototype.outputPrefix = ""; - - /** - * CreateRequestHeader taskExecutionMetadata. - * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata - * @memberof flyteidl.admin.CreateRequestHeader - * @instance - */ - CreateRequestHeader.prototype.taskExecutionMetadata = null; - - /** - * CreateRequestHeader maxDatasetSizeBytes. - * @member {Long} maxDatasetSizeBytes - * @memberof flyteidl.admin.CreateRequestHeader - * @instance - */ - CreateRequestHeader.prototype.maxDatasetSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new CreateRequestHeader instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CreateRequestHeader - * @static - * @param {flyteidl.admin.ICreateRequestHeader=} [properties] Properties to set - * @returns {flyteidl.admin.CreateRequestHeader} CreateRequestHeader instance - */ - CreateRequestHeader.create = function create(properties) { - return new CreateRequestHeader(properties); - }; - - /** - * Encodes the specified CreateRequestHeader message. Does not implicitly {@link flyteidl.admin.CreateRequestHeader.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CreateRequestHeader - * @static - * @param {flyteidl.admin.ICreateRequestHeader} message CreateRequestHeader message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateRequestHeader.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputPrefix); - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) - $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maxDatasetSizeBytes != null && message.hasOwnProperty("maxDatasetSizeBytes")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.maxDatasetSizeBytes); - return writer; - }; - - /** - * Decodes a CreateRequestHeader message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CreateRequestHeader - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateRequestHeader} CreateRequestHeader - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateRequestHeader.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateRequestHeader(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 2: - message.outputPrefix = reader.string(); - break; - case 3: - message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 4: - message.maxDatasetSizeBytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateRequestHeader message. - * @function verify - * @memberof flyteidl.admin.CreateRequestHeader - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateRequestHeader.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { - var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); - if (error) - return "taskExecutionMetadata." + error; - } - if (message.maxDatasetSizeBytes != null && message.hasOwnProperty("maxDatasetSizeBytes")) - if (!$util.isInteger(message.maxDatasetSizeBytes) && !(message.maxDatasetSizeBytes && $util.isInteger(message.maxDatasetSizeBytes.low) && $util.isInteger(message.maxDatasetSizeBytes.high))) - return "maxDatasetSizeBytes: integer|Long expected"; - return null; - }; - - return CreateRequestHeader; - })(); - - admin.ExecuteTaskSyncRequest = (function() { - - /** - * Properties of an ExecuteTaskSyncRequest. - * @memberof flyteidl.admin - * @interface IExecuteTaskSyncRequest - * @property {flyteidl.admin.ICreateRequestHeader|null} [header] ExecuteTaskSyncRequest header - * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecuteTaskSyncRequest inputs - */ - - /** - * Constructs a new ExecuteTaskSyncRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecuteTaskSyncRequest. - * @implements IExecuteTaskSyncRequest - * @constructor - * @param {flyteidl.admin.IExecuteTaskSyncRequest=} [properties] Properties to set - */ - function ExecuteTaskSyncRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecuteTaskSyncRequest header. - * @member {flyteidl.admin.ICreateRequestHeader|null|undefined} header - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @instance - */ - ExecuteTaskSyncRequest.prototype.header = null; - - /** - * ExecuteTaskSyncRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @instance - */ - ExecuteTaskSyncRequest.prototype.inputs = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecuteTaskSyncRequest part. - * @member {"header"|"inputs"|undefined} part - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @instance - */ - Object.defineProperty(ExecuteTaskSyncRequest.prototype, "part", { - get: $util.oneOfGetter($oneOfFields = ["header", "inputs"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecuteTaskSyncRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @static - * @param {flyteidl.admin.IExecuteTaskSyncRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecuteTaskSyncRequest} ExecuteTaskSyncRequest instance - */ - ExecuteTaskSyncRequest.create = function create(properties) { - return new ExecuteTaskSyncRequest(properties); - }; - - /** - * Encodes the specified ExecuteTaskSyncRequest message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @static - * @param {flyteidl.admin.IExecuteTaskSyncRequest} message ExecuteTaskSyncRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteTaskSyncRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.header != null && message.hasOwnProperty("header")) - $root.flyteidl.admin.CreateRequestHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecuteTaskSyncRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecuteTaskSyncRequest} ExecuteTaskSyncRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteTaskSyncRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = $root.flyteidl.admin.CreateRequestHeader.decode(reader, reader.uint32()); - break; - case 2: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecuteTaskSyncRequest message. - * @function verify - * @memberof flyteidl.admin.ExecuteTaskSyncRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecuteTaskSyncRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.header != null && message.hasOwnProperty("header")) { - properties.part = 1; - { - var error = $root.flyteidl.admin.CreateRequestHeader.verify(message.header); - if (error) - return "header." + error; - } - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (properties.part === 1) - return "part: multiple values"; - properties.part = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - } - return null; - }; - - return ExecuteTaskSyncRequest; - })(); - - admin.ExecuteTaskSyncResponseHeader = (function() { - - /** - * Properties of an ExecuteTaskSyncResponseHeader. - * @memberof flyteidl.admin - * @interface IExecuteTaskSyncResponseHeader - * @property {flyteidl.admin.IResource|null} [resource] ExecuteTaskSyncResponseHeader resource - */ - - /** - * Constructs a new ExecuteTaskSyncResponseHeader. - * @memberof flyteidl.admin - * @classdesc Represents an ExecuteTaskSyncResponseHeader. - * @implements IExecuteTaskSyncResponseHeader - * @constructor - * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader=} [properties] Properties to set - */ - function ExecuteTaskSyncResponseHeader(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecuteTaskSyncResponseHeader resource. - * @member {flyteidl.admin.IResource|null|undefined} resource - * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader - * @instance - */ - ExecuteTaskSyncResponseHeader.prototype.resource = null; - - /** - * Creates a new ExecuteTaskSyncResponseHeader instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader - * @static - * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader=} [properties] Properties to set - * @returns {flyteidl.admin.ExecuteTaskSyncResponseHeader} ExecuteTaskSyncResponseHeader instance - */ - ExecuteTaskSyncResponseHeader.create = function create(properties) { - return new ExecuteTaskSyncResponseHeader(properties); - }; - - /** - * Encodes the specified ExecuteTaskSyncResponseHeader message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponseHeader.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader - * @static - * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader} message ExecuteTaskSyncResponseHeader message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteTaskSyncResponseHeader.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resource != null && message.hasOwnProperty("resource")) - $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecuteTaskSyncResponseHeader message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecuteTaskSyncResponseHeader} ExecuteTaskSyncResponseHeader - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteTaskSyncResponseHeader.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncResponseHeader(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecuteTaskSyncResponseHeader message. - * @function verify - * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecuteTaskSyncResponseHeader.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resource != null && message.hasOwnProperty("resource")) { - var error = $root.flyteidl.admin.Resource.verify(message.resource); - if (error) - return "resource." + error; - } - return null; - }; - - return ExecuteTaskSyncResponseHeader; - })(); - - admin.ExecuteTaskSyncResponse = (function() { - - /** - * Properties of an ExecuteTaskSyncResponse. - * @memberof flyteidl.admin - * @interface IExecuteTaskSyncResponse - * @property {flyteidl.admin.IExecuteTaskSyncResponseHeader|null} [header] ExecuteTaskSyncResponse header - * @property {flyteidl.core.ILiteralMap|null} [outputs] ExecuteTaskSyncResponse outputs - */ - - /** - * Constructs a new ExecuteTaskSyncResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecuteTaskSyncResponse. - * @implements IExecuteTaskSyncResponse - * @constructor - * @param {flyteidl.admin.IExecuteTaskSyncResponse=} [properties] Properties to set - */ - function ExecuteTaskSyncResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecuteTaskSyncResponse header. - * @member {flyteidl.admin.IExecuteTaskSyncResponseHeader|null|undefined} header - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @instance - */ - ExecuteTaskSyncResponse.prototype.header = null; - - /** - * ExecuteTaskSyncResponse outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @instance - */ - ExecuteTaskSyncResponse.prototype.outputs = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecuteTaskSyncResponse res. - * @member {"header"|"outputs"|undefined} res - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @instance - */ - Object.defineProperty(ExecuteTaskSyncResponse.prototype, "res", { - get: $util.oneOfGetter($oneOfFields = ["header", "outputs"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecuteTaskSyncResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @static - * @param {flyteidl.admin.IExecuteTaskSyncResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecuteTaskSyncResponse} ExecuteTaskSyncResponse instance - */ - ExecuteTaskSyncResponse.create = function create(properties) { - return new ExecuteTaskSyncResponse(properties); - }; - - /** - * Encodes the specified ExecuteTaskSyncResponse message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @static - * @param {flyteidl.admin.IExecuteTaskSyncResponse} message ExecuteTaskSyncResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecuteTaskSyncResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.header != null && message.hasOwnProperty("header")) - $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecuteTaskSyncResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecuteTaskSyncResponse} ExecuteTaskSyncResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecuteTaskSyncResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecuteTaskSyncResponse message. - * @function verify - * @memberof flyteidl.admin.ExecuteTaskSyncResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecuteTaskSyncResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.header != null && message.hasOwnProperty("header")) { - properties.res = 1; - { - var error = $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.verify(message.header); - if (error) - return "header." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (properties.res === 1) - return "res: multiple values"; - properties.res = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - } - return null; - }; - - return ExecuteTaskSyncResponse; - })(); - - admin.GetTaskRequest = (function() { - - /** - * Properties of a GetTaskRequest. - * @memberof flyteidl.admin - * @interface IGetTaskRequest - * @property {string|null} [deprecatedTaskType] GetTaskRequest deprecatedTaskType - * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskRequest taskType - */ - - /** - * Constructs a new GetTaskRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskRequest. - * @implements IGetTaskRequest - * @constructor - * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set - */ - function GetTaskRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskRequest deprecatedTaskType. - * @member {string} deprecatedTaskType - * @memberof flyteidl.admin.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.deprecatedTaskType = ""; - - /** - * GetTaskRequest resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); - - /** - * GetTaskRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType - * @memberof flyteidl.admin.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.taskType = null; - - /** - * Creates a new GetTaskRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest instance - */ - GetTaskRequest.create = function create(properties) { - return new GetTaskRequest(properties); - }; - - /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {flyteidl.admin.IGetTaskRequest} message GetTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecatedTaskType = reader.string(); - break; - case 2: - message.resourceMeta = reader.bytes(); - break; - case 3: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskRequest message. - * @function verify - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } - return null; - }; - - return GetTaskRequest; - })(); - - admin.GetTaskResponse = (function() { - - /** - * Properties of a GetTaskResponse. - * @memberof flyteidl.admin - * @interface IGetTaskResponse - * @property {flyteidl.admin.IResource|null} [resource] GetTaskResponse resource - */ - - /** - * Constructs a new GetTaskResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskResponse. - * @implements IGetTaskResponse - * @constructor - * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set - */ - function GetTaskResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskResponse resource. - * @member {flyteidl.admin.IResource|null|undefined} resource - * @memberof flyteidl.admin.GetTaskResponse - * @instance - */ - GetTaskResponse.prototype.resource = null; - - /** - * Creates a new GetTaskResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse instance - */ - GetTaskResponse.create = function create(properties) { - return new GetTaskResponse(properties); - }; - - /** - * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {flyteidl.admin.IGetTaskResponse} message GetTaskResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resource != null && message.hasOwnProperty("resource")) - $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskResponse message. - * @function verify - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resource != null && message.hasOwnProperty("resource")) { - var error = $root.flyteidl.admin.Resource.verify(message.resource); - if (error) - return "resource." + error; - } - return null; - }; - - return GetTaskResponse; - })(); - - admin.Resource = (function() { - - /** - * Properties of a Resource. - * @memberof flyteidl.admin - * @interface IResource - * @property {flyteidl.admin.State|null} [state] Resource state - * @property {flyteidl.core.ILiteralMap|null} [outputs] Resource outputs - * @property {string|null} [message] Resource message - * @property {Array.|null} [logLinks] Resource logLinks - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] Resource phase - */ - - /** - * Constructs a new Resource. - * @memberof flyteidl.admin - * @classdesc Represents a Resource. - * @implements IResource - * @constructor - * @param {flyteidl.admin.IResource=} [properties] Properties to set - */ - function Resource(properties) { - this.logLinks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Resource state. - * @member {flyteidl.admin.State} state - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.state = 0; - - /** - * Resource outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.outputs = null; - - /** - * Resource message. - * @member {string} message - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.message = ""; - - /** - * Resource logLinks. - * @member {Array.} logLinks - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.logLinks = $util.emptyArray; - - /** - * Resource phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.phase = 0; - - /** - * Creates a new Resource instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Resource - * @static - * @param {flyteidl.admin.IResource=} [properties] Properties to set - * @returns {flyteidl.admin.Resource} Resource instance - */ - Resource.create = function create(properties) { - return new Resource(properties); - }; - - /** - * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Resource - * @static - * @param {flyteidl.admin.IResource} message Resource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Resource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.logLinks != null && message.logLinks.length) - for (var i = 0; i < message.logLinks.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.phase); - return writer; - }; - - /** - * Decodes a Resource message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Resource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Resource} Resource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Resource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Resource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.message = reader.string(); - break; - case 4: - if (!(message.logLinks && message.logLinks.length)) - message.logLinks = []; - message.logLinks.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - case 5: - message.phase = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Resource message. - * @function verify - * @memberof flyteidl.admin.Resource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Resource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.logLinks != null && message.hasOwnProperty("logLinks")) { - if (!Array.isArray(message.logLinks)) - return "logLinks: array expected"; - for (var i = 0; i < message.logLinks.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logLinks[i]); - if (error) - return "logLinks." + error; - } - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return Resource; - })(); - - admin.DeleteTaskRequest = (function() { - - /** - * Properties of a DeleteTaskRequest. - * @memberof flyteidl.admin - * @interface IDeleteTaskRequest - * @property {string|null} [deprecatedTaskType] DeleteTaskRequest deprecatedTaskType - * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta - * @property {flyteidl.admin.ITaskType|null} [taskType] DeleteTaskRequest taskType - */ - - /** - * Constructs a new DeleteTaskRequest. - * @memberof flyteidl.admin - * @classdesc Represents a DeleteTaskRequest. - * @implements IDeleteTaskRequest - * @constructor - * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set - */ - function DeleteTaskRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteTaskRequest deprecatedTaskType. - * @member {string} deprecatedTaskType - * @memberof flyteidl.admin.DeleteTaskRequest - * @instance - */ - DeleteTaskRequest.prototype.deprecatedTaskType = ""; - - /** - * DeleteTaskRequest resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.DeleteTaskRequest - * @instance - */ - DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); - - /** - * DeleteTaskRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType - * @memberof flyteidl.admin.DeleteTaskRequest - * @instance - */ - DeleteTaskRequest.prototype.taskType = null; - - /** - * Creates a new DeleteTaskRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest instance - */ - DeleteTaskRequest.create = function create(properties) { - return new DeleteTaskRequest(properties); - }; - - /** - * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {flyteidl.admin.IDeleteTaskRequest} message DeleteTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DeleteTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecatedTaskType = reader.string(); - break; - case 2: - message.resourceMeta = reader.bytes(); - break; - case 3: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DeleteTaskRequest message. - * @function verify - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } - return null; - }; - - return DeleteTaskRequest; - })(); - - admin.DeleteTaskResponse = (function() { - - /** - * Properties of a DeleteTaskResponse. - * @memberof flyteidl.admin - * @interface IDeleteTaskResponse - */ - - /** - * Constructs a new DeleteTaskResponse. - * @memberof flyteidl.admin - * @classdesc Represents a DeleteTaskResponse. - * @implements IDeleteTaskResponse - * @constructor - * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set - */ - function DeleteTaskResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new DeleteTaskResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse instance - */ - DeleteTaskResponse.create = function create(properties) { - return new DeleteTaskResponse(properties); - }; - - /** - * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {flyteidl.admin.IDeleteTaskResponse} message DeleteTaskResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTaskResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a DeleteTaskResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTaskResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DeleteTaskResponse message. - * @function verify - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTaskResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return DeleteTaskResponse; - })(); - - admin.Agent = (function() { - - /** - * Properties of an Agent. - * @memberof flyteidl.admin - * @interface IAgent - * @property {string|null} [name] Agent name - * @property {Array.|null} [deprecatedSupportedTaskTypes] Agent deprecatedSupportedTaskTypes - * @property {boolean|null} [isSync] Agent isSync - * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes - */ - - /** - * Constructs a new Agent. - * @memberof flyteidl.admin - * @classdesc Represents an Agent. - * @implements IAgent - * @constructor - * @param {flyteidl.admin.IAgent=} [properties] Properties to set - */ - function Agent(properties) { - this.deprecatedSupportedTaskTypes = []; - this.supportedTaskTypes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Agent name. - * @member {string} name - * @memberof flyteidl.admin.Agent - * @instance - */ - Agent.prototype.name = ""; - - /** - * Agent deprecatedSupportedTaskTypes. - * @member {Array.} deprecatedSupportedTaskTypes - * @memberof flyteidl.admin.Agent - * @instance - */ - Agent.prototype.deprecatedSupportedTaskTypes = $util.emptyArray; - - /** - * Agent isSync. - * @member {boolean} isSync - * @memberof flyteidl.admin.Agent - * @instance - */ - Agent.prototype.isSync = false; - - /** - * Agent supportedTaskTypes. - * @member {Array.} supportedTaskTypes - * @memberof flyteidl.admin.Agent - * @instance - */ - Agent.prototype.supportedTaskTypes = $util.emptyArray; - - /** - * Creates a new Agent instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Agent - * @static - * @param {flyteidl.admin.IAgent=} [properties] Properties to set - * @returns {flyteidl.admin.Agent} Agent instance - */ - Agent.create = function create(properties) { - return new Agent(properties); - }; - - /** - * Encodes the specified Agent message. Does not implicitly {@link flyteidl.admin.Agent.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Agent - * @static - * @param {flyteidl.admin.IAgent} message Agent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Agent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.deprecatedSupportedTaskTypes != null && message.deprecatedSupportedTaskTypes.length) - for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deprecatedSupportedTaskTypes[i]); - if (message.isSync != null && message.hasOwnProperty("isSync")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); - if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) - for (var i = 0; i < message.supportedTaskTypes.length; ++i) - $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Agent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Agent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Agent} Agent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Agent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Agent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.deprecatedSupportedTaskTypes && message.deprecatedSupportedTaskTypes.length)) - message.deprecatedSupportedTaskTypes = []; - message.deprecatedSupportedTaskTypes.push(reader.string()); - break; - case 3: - message.isSync = reader.bool(); - break; - case 4: - if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) - message.supportedTaskTypes = []; - message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Agent message. - * @function verify - * @memberof flyteidl.admin.Agent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Agent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.deprecatedSupportedTaskTypes != null && message.hasOwnProperty("deprecatedSupportedTaskTypes")) { - if (!Array.isArray(message.deprecatedSupportedTaskTypes)) - return "deprecatedSupportedTaskTypes: array expected"; - for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) - if (!$util.isString(message.deprecatedSupportedTaskTypes[i])) - return "deprecatedSupportedTaskTypes: string[] expected"; - } - if (message.isSync != null && message.hasOwnProperty("isSync")) - if (typeof message.isSync !== "boolean") - return "isSync: boolean expected"; - if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { - if (!Array.isArray(message.supportedTaskTypes)) - return "supportedTaskTypes: array expected"; - for (var i = 0; i < message.supportedTaskTypes.length; ++i) { - var error = $root.flyteidl.admin.TaskType.verify(message.supportedTaskTypes[i]); - if (error) - return "supportedTaskTypes." + error; - } - } - return null; - }; - - return Agent; - })(); - - admin.TaskType = (function() { - - /** - * Properties of a TaskType. - * @memberof flyteidl.admin - * @interface ITaskType - * @property {string|null} [name] TaskType name - * @property {number|null} [version] TaskType version - */ - - /** - * Constructs a new TaskType. - * @memberof flyteidl.admin - * @classdesc Represents a TaskType. - * @implements ITaskType - * @constructor - * @param {flyteidl.admin.ITaskType=} [properties] Properties to set - */ - function TaskType(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskType name. - * @member {string} name - * @memberof flyteidl.admin.TaskType - * @instance - */ - TaskType.prototype.name = ""; - - /** - * TaskType version. - * @member {number} version - * @memberof flyteidl.admin.TaskType - * @instance - */ - TaskType.prototype.version = 0; - - /** - * Creates a new TaskType instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskType - * @static - * @param {flyteidl.admin.ITaskType=} [properties] Properties to set - * @returns {flyteidl.admin.TaskType} TaskType instance - */ - TaskType.create = function create(properties) { - return new TaskType(properties); - }; - - /** - * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskType - * @static - * @param {flyteidl.admin.ITaskType} message TaskType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); - return writer; - }; - - /** - * Decodes a TaskType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskType} TaskType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.version = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskType message. - * @function verify - * @memberof flyteidl.admin.TaskType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - return null; - }; - - return TaskType; - })(); - - admin.GetAgentRequest = (function() { - - /** - * Properties of a GetAgentRequest. - * @memberof flyteidl.admin - * @interface IGetAgentRequest - * @property {string|null} [name] GetAgentRequest name - */ - - /** - * Constructs a new GetAgentRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetAgentRequest. - * @implements IGetAgentRequest - * @constructor - * @param {flyteidl.admin.IGetAgentRequest=} [properties] Properties to set - */ - function GetAgentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAgentRequest name. - * @member {string} name - * @memberof flyteidl.admin.GetAgentRequest - * @instance - */ - GetAgentRequest.prototype.name = ""; - - /** - * Creates a new GetAgentRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {flyteidl.admin.IGetAgentRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest instance - */ - GetAgentRequest.create = function create(properties) { - return new GetAgentRequest(properties); - }; - - /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link flyteidl.admin.GetAgentRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {flyteidl.admin.IGetAgentRequest} message GetAgentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAgentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Decodes a GetAgentRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAgentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetAgentRequest message. - * @function verify - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAgentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return GetAgentRequest; - })(); - - admin.GetAgentResponse = (function() { - - /** - * Properties of a GetAgentResponse. - * @memberof flyteidl.admin - * @interface IGetAgentResponse - * @property {flyteidl.admin.IAgent|null} [agent] GetAgentResponse agent - */ - - /** - * Constructs a new GetAgentResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetAgentResponse. - * @implements IGetAgentResponse - * @constructor - * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set - */ - function GetAgentResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAgentResponse agent. - * @member {flyteidl.admin.IAgent|null|undefined} agent - * @memberof flyteidl.admin.GetAgentResponse - * @instance - */ - GetAgentResponse.prototype.agent = null; - - /** - * Creates a new GetAgentResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse instance - */ - GetAgentResponse.create = function create(properties) { - return new GetAgentResponse(properties); - }; - - /** - * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {flyteidl.admin.IGetAgentResponse} message GetAgentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAgentResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.agent != null && message.hasOwnProperty("agent")) - $root.flyteidl.admin.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetAgentResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAgentResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.agent = $root.flyteidl.admin.Agent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetAgentResponse message. - * @function verify - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAgentResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) { - var error = $root.flyteidl.admin.Agent.verify(message.agent); - if (error) - return "agent." + error; - } - return null; - }; - - return GetAgentResponse; - })(); - - admin.ListAgentsRequest = (function() { - - /** - * Properties of a ListAgentsRequest. - * @memberof flyteidl.admin - * @interface IListAgentsRequest - */ - - /** - * Constructs a new ListAgentsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ListAgentsRequest. - * @implements IListAgentsRequest - * @constructor - * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set - */ - function ListAgentsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ListAgentsRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest instance - */ - ListAgentsRequest.create = function create(properties) { - return new ListAgentsRequest(properties); - }; - - /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {flyteidl.admin.IListAgentsRequest} message ListAgentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListAgentsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListAgentsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListAgentsRequest message. - * @function verify - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListAgentsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ListAgentsRequest; - })(); - - admin.ListAgentsResponse = (function() { - - /** - * Properties of a ListAgentsResponse. - * @memberof flyteidl.admin - * @interface IListAgentsResponse - * @property {Array.|null} [agents] ListAgentsResponse agents - */ - - /** - * Constructs a new ListAgentsResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ListAgentsResponse. - * @implements IListAgentsResponse - * @constructor - * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set - */ - function ListAgentsResponse(properties) { - this.agents = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListAgentsResponse agents. - * @member {Array.} agents - * @memberof flyteidl.admin.ListAgentsResponse - * @instance - */ - ListAgentsResponse.prototype.agents = $util.emptyArray; - - /** - * Creates a new ListAgentsResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse instance - */ - ListAgentsResponse.create = function create(properties) { - return new ListAgentsResponse(properties); - }; - - /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {flyteidl.admin.IListAgentsResponse} message ListAgentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListAgentsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.agents != null && message.agents.length) - for (var i = 0; i < message.agents.length; ++i) - $root.flyteidl.admin.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListAgentsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.agents && message.agents.length)) - message.agents = []; - message.agents.push($root.flyteidl.admin.Agent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListAgentsResponse message. - * @function verify - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListAgentsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.agents != null && message.hasOwnProperty("agents")) { - if (!Array.isArray(message.agents)) - return "agents: array expected"; - for (var i = 0; i < message.agents.length; ++i) { - var error = $root.flyteidl.admin.Agent.verify(message.agents[i]); - if (error) - return "agents." + error; - } - } - return null; - }; - - return ListAgentsResponse; - })(); - - admin.GetTaskMetricsRequest = (function() { - - /** - * Properties of a GetTaskMetricsRequest. - * @memberof flyteidl.admin - * @interface IGetTaskMetricsRequest - * @property {string|null} [deprecatedTaskType] GetTaskMetricsRequest deprecatedTaskType - * @property {Uint8Array|null} [resourceMeta] GetTaskMetricsRequest resourceMeta - * @property {Array.|null} [queries] GetTaskMetricsRequest queries - * @property {google.protobuf.ITimestamp|null} [startTime] GetTaskMetricsRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] GetTaskMetricsRequest endTime - * @property {google.protobuf.IDuration|null} [step] GetTaskMetricsRequest step - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskMetricsRequest taskType - */ - - /** - * Constructs a new GetTaskMetricsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskMetricsRequest. - * @implements IGetTaskMetricsRequest - * @constructor - * @param {flyteidl.admin.IGetTaskMetricsRequest=} [properties] Properties to set - */ - function GetTaskMetricsRequest(properties) { - this.queries = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskMetricsRequest deprecatedTaskType. - * @member {string} deprecatedTaskType - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.deprecatedTaskType = ""; - - /** - * GetTaskMetricsRequest resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.resourceMeta = $util.newBuffer([]); - - /** - * GetTaskMetricsRequest queries. - * @member {Array.} queries - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.queries = $util.emptyArray; - - /** - * GetTaskMetricsRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.startTime = null; - - /** - * GetTaskMetricsRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.endTime = null; - - /** - * GetTaskMetricsRequest step. - * @member {google.protobuf.IDuration|null|undefined} step - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.step = null; - - /** - * GetTaskMetricsRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @instance - */ - GetTaskMetricsRequest.prototype.taskType = null; - - /** - * Creates a new GetTaskMetricsRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @static - * @param {flyteidl.admin.IGetTaskMetricsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskMetricsRequest} GetTaskMetricsRequest instance - */ - GetTaskMetricsRequest.create = function create(properties) { - return new GetTaskMetricsRequest(properties); - }; - - /** - * Encodes the specified GetTaskMetricsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @static - * @param {flyteidl.admin.IGetTaskMetricsRequest} message GetTaskMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskMetricsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - if (message.queries != null && message.queries.length) - for (var i = 0; i < message.queries.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.queries[i]); - if (message.startTime != null && message.hasOwnProperty("startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.step != null && message.hasOwnProperty("step")) - $root.google.protobuf.Duration.encode(message.step, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskMetricsRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskMetricsRequest} GetTaskMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskMetricsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskMetricsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecatedTaskType = reader.string(); - break; - case 2: - message.resourceMeta = reader.bytes(); - break; - case 3: - if (!(message.queries && message.queries.length)) - message.queries = []; - message.queries.push(reader.string()); - break; - case 4: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.step = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 7: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskMetricsRequest message. - * @function verify - * @memberof flyteidl.admin.GetTaskMetricsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskMetricsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - if (message.queries != null && message.hasOwnProperty("queries")) { - if (!Array.isArray(message.queries)) - return "queries: array expected"; - for (var i = 0; i < message.queries.length; ++i) - if (!$util.isString(message.queries[i])) - return "queries: string[] expected"; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.step != null && message.hasOwnProperty("step")) { - var error = $root.google.protobuf.Duration.verify(message.step); - if (error) - return "step." + error; - } - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } - return null; - }; - - return GetTaskMetricsRequest; - })(); - - admin.GetTaskMetricsResponse = (function() { - - /** - * Properties of a GetTaskMetricsResponse. - * @memberof flyteidl.admin - * @interface IGetTaskMetricsResponse - * @property {Array.|null} [results] GetTaskMetricsResponse results - */ - - /** - * Constructs a new GetTaskMetricsResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskMetricsResponse. - * @implements IGetTaskMetricsResponse - * @constructor - * @param {flyteidl.admin.IGetTaskMetricsResponse=} [properties] Properties to set - */ - function GetTaskMetricsResponse(properties) { - this.results = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskMetricsResponse results. - * @member {Array.} results - * @memberof flyteidl.admin.GetTaskMetricsResponse - * @instance - */ - GetTaskMetricsResponse.prototype.results = $util.emptyArray; - - /** - * Creates a new GetTaskMetricsResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskMetricsResponse - * @static - * @param {flyteidl.admin.IGetTaskMetricsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskMetricsResponse} GetTaskMetricsResponse instance - */ - GetTaskMetricsResponse.create = function create(properties) { - return new GetTaskMetricsResponse(properties); - }; - - /** - * Encodes the specified GetTaskMetricsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskMetricsResponse - * @static - * @param {flyteidl.admin.IGetTaskMetricsResponse} message GetTaskMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskMetricsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - $root.flyteidl.core.ExecutionMetricResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskMetricsResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskMetricsResponse} GetTaskMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskMetricsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskMetricsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.flyteidl.core.ExecutionMetricResult.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskMetricsResponse message. - * @function verify - * @memberof flyteidl.admin.GetTaskMetricsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskMetricsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) { - var error = $root.flyteidl.core.ExecutionMetricResult.verify(message.results[i]); - if (error) - return "results." + error; - } - } - return null; - }; - - return GetTaskMetricsResponse; - })(); - - admin.GetTaskLogsRequest = (function() { - - /** - * Properties of a GetTaskLogsRequest. - * @memberof flyteidl.admin - * @interface IGetTaskLogsRequest - * @property {string|null} [deprecatedTaskType] GetTaskLogsRequest deprecatedTaskType - * @property {Uint8Array|null} [resourceMeta] GetTaskLogsRequest resourceMeta - * @property {Long|null} [lines] GetTaskLogsRequest lines - * @property {string|null} [token] GetTaskLogsRequest token - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskLogsRequest taskType - */ - - /** - * Constructs a new GetTaskLogsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskLogsRequest. - * @implements IGetTaskLogsRequest - * @constructor - * @param {flyteidl.admin.IGetTaskLogsRequest=} [properties] Properties to set - */ - function GetTaskLogsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskLogsRequest deprecatedTaskType. - * @member {string} deprecatedTaskType - * @memberof flyteidl.admin.GetTaskLogsRequest - * @instance - */ - GetTaskLogsRequest.prototype.deprecatedTaskType = ""; - - /** - * GetTaskLogsRequest resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.GetTaskLogsRequest - * @instance - */ - GetTaskLogsRequest.prototype.resourceMeta = $util.newBuffer([]); - - /** - * GetTaskLogsRequest lines. - * @member {Long} lines - * @memberof flyteidl.admin.GetTaskLogsRequest - * @instance - */ - GetTaskLogsRequest.prototype.lines = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GetTaskLogsRequest token. - * @member {string} token - * @memberof flyteidl.admin.GetTaskLogsRequest - * @instance - */ - GetTaskLogsRequest.prototype.token = ""; - - /** - * GetTaskLogsRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType - * @memberof flyteidl.admin.GetTaskLogsRequest - * @instance - */ - GetTaskLogsRequest.prototype.taskType = null; - - /** - * Creates a new GetTaskLogsRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskLogsRequest - * @static - * @param {flyteidl.admin.IGetTaskLogsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskLogsRequest} GetTaskLogsRequest instance - */ - GetTaskLogsRequest.create = function create(properties) { - return new GetTaskLogsRequest(properties); - }; - - /** - * Encodes the specified GetTaskLogsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskLogsRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskLogsRequest - * @static - * @param {flyteidl.admin.IGetTaskLogsRequest} message GetTaskLogsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskLogsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - if (message.lines != null && message.hasOwnProperty("lines")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.lines); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskLogsRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskLogsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskLogsRequest} GetTaskLogsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskLogsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecatedTaskType = reader.string(); - break; - case 2: - message.resourceMeta = reader.bytes(); - break; - case 3: - message.lines = reader.uint64(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskLogsRequest message. - * @function verify - * @memberof flyteidl.admin.GetTaskLogsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskLogsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - if (message.lines != null && message.hasOwnProperty("lines")) - if (!$util.isInteger(message.lines) && !(message.lines && $util.isInteger(message.lines.low) && $util.isInteger(message.lines.high))) - return "lines: integer|Long expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); - if (error) - return "taskType." + error; - } - return null; - }; - - return GetTaskLogsRequest; - })(); - - admin.GetTaskLogsResponseHeader = (function() { - - /** - * Properties of a GetTaskLogsResponseHeader. - * @memberof flyteidl.admin - * @interface IGetTaskLogsResponseHeader - * @property {string|null} [token] GetTaskLogsResponseHeader token - */ - - /** - * Constructs a new GetTaskLogsResponseHeader. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskLogsResponseHeader. - * @implements IGetTaskLogsResponseHeader - * @constructor - * @param {flyteidl.admin.IGetTaskLogsResponseHeader=} [properties] Properties to set - */ - function GetTaskLogsResponseHeader(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskLogsResponseHeader token. - * @member {string} token - * @memberof flyteidl.admin.GetTaskLogsResponseHeader - * @instance - */ - GetTaskLogsResponseHeader.prototype.token = ""; - - /** - * Creates a new GetTaskLogsResponseHeader instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskLogsResponseHeader - * @static - * @param {flyteidl.admin.IGetTaskLogsResponseHeader=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskLogsResponseHeader} GetTaskLogsResponseHeader instance - */ - GetTaskLogsResponseHeader.create = function create(properties) { - return new GetTaskLogsResponseHeader(properties); - }; - - /** - * Encodes the specified GetTaskLogsResponseHeader message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseHeader.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskLogsResponseHeader - * @static - * @param {flyteidl.admin.IGetTaskLogsResponseHeader} message GetTaskLogsResponseHeader message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskLogsResponseHeader.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); - return writer; - }; - - /** - * Decodes a GetTaskLogsResponseHeader message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskLogsResponseHeader - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskLogsResponseHeader} GetTaskLogsResponseHeader - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskLogsResponseHeader.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponseHeader(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskLogsResponseHeader message. - * @function verify - * @memberof flyteidl.admin.GetTaskLogsResponseHeader - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskLogsResponseHeader.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return GetTaskLogsResponseHeader; - })(); - - admin.GetTaskLogsResponseBody = (function() { - - /** - * Properties of a GetTaskLogsResponseBody. - * @memberof flyteidl.admin - * @interface IGetTaskLogsResponseBody - * @property {Array.|null} [results] GetTaskLogsResponseBody results - */ - - /** - * Constructs a new GetTaskLogsResponseBody. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskLogsResponseBody. - * @implements IGetTaskLogsResponseBody - * @constructor - * @param {flyteidl.admin.IGetTaskLogsResponseBody=} [properties] Properties to set - */ - function GetTaskLogsResponseBody(properties) { - this.results = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskLogsResponseBody results. - * @member {Array.} results - * @memberof flyteidl.admin.GetTaskLogsResponseBody - * @instance - */ - GetTaskLogsResponseBody.prototype.results = $util.emptyArray; - - /** - * Creates a new GetTaskLogsResponseBody instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskLogsResponseBody - * @static - * @param {flyteidl.admin.IGetTaskLogsResponseBody=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskLogsResponseBody} GetTaskLogsResponseBody instance - */ - GetTaskLogsResponseBody.create = function create(properties) { - return new GetTaskLogsResponseBody(properties); - }; - - /** - * Encodes the specified GetTaskLogsResponseBody message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseBody.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskLogsResponseBody - * @static - * @param {flyteidl.admin.IGetTaskLogsResponseBody} message GetTaskLogsResponseBody message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskLogsResponseBody.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.results != null && message.results.length) - for (var i = 0; i < message.results.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); - return writer; - }; - - /** - * Decodes a GetTaskLogsResponseBody message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskLogsResponseBody - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskLogsResponseBody} GetTaskLogsResponseBody - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskLogsResponseBody.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponseBody(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.results && message.results.length)) - message.results = []; - message.results.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskLogsResponseBody message. - * @function verify - * @memberof flyteidl.admin.GetTaskLogsResponseBody - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskLogsResponseBody.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; - for (var i = 0; i < message.results.length; ++i) - if (!$util.isString(message.results[i])) - return "results: string[] expected"; - } - return null; - }; - - return GetTaskLogsResponseBody; - })(); - - admin.GetTaskLogsResponse = (function() { - - /** - * Properties of a GetTaskLogsResponse. - * @memberof flyteidl.admin - * @interface IGetTaskLogsResponse - * @property {flyteidl.admin.IGetTaskLogsResponseHeader|null} [header] GetTaskLogsResponse header - * @property {flyteidl.admin.IGetTaskLogsResponseBody|null} [body] GetTaskLogsResponse body - */ - - /** - * Constructs a new GetTaskLogsResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskLogsResponse. - * @implements IGetTaskLogsResponse - * @constructor - * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set - */ - function GetTaskLogsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskLogsResponse header. - * @member {flyteidl.admin.IGetTaskLogsResponseHeader|null|undefined} header - * @memberof flyteidl.admin.GetTaskLogsResponse - * @instance - */ - GetTaskLogsResponse.prototype.header = null; - - /** - * GetTaskLogsResponse body. - * @member {flyteidl.admin.IGetTaskLogsResponseBody|null|undefined} body - * @memberof flyteidl.admin.GetTaskLogsResponse - * @instance - */ - GetTaskLogsResponse.prototype.body = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetTaskLogsResponse part. - * @member {"header"|"body"|undefined} part - * @memberof flyteidl.admin.GetTaskLogsResponse - * @instance - */ - Object.defineProperty(GetTaskLogsResponse.prototype, "part", { - get: $util.oneOfGetter($oneOfFields = ["header", "body"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetTaskLogsResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskLogsResponse - * @static - * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskLogsResponse} GetTaskLogsResponse instance - */ - GetTaskLogsResponse.create = function create(properties) { - return new GetTaskLogsResponse(properties); - }; - - /** - * Encodes the specified GetTaskLogsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskLogsResponse - * @static - * @param {flyteidl.admin.IGetTaskLogsResponse} message GetTaskLogsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskLogsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.header != null && message.hasOwnProperty("header")) - $root.flyteidl.admin.GetTaskLogsResponseHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.body != null && message.hasOwnProperty("body")) - $root.flyteidl.admin.GetTaskLogsResponseBody.encode(message.body, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskLogsResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskLogsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskLogsResponse} GetTaskLogsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskLogsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.header = $root.flyteidl.admin.GetTaskLogsResponseHeader.decode(reader, reader.uint32()); - break; - case 2: - message.body = $root.flyteidl.admin.GetTaskLogsResponseBody.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskLogsResponse message. - * @function verify - * @memberof flyteidl.admin.GetTaskLogsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskLogsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.header != null && message.hasOwnProperty("header")) { - properties.part = 1; - { - var error = $root.flyteidl.admin.GetTaskLogsResponseHeader.verify(message.header); - if (error) - return "header." + error; - } - } - if (message.body != null && message.hasOwnProperty("body")) { - if (properties.part === 1) - return "part: multiple values"; - properties.part = 1; - { - var error = $root.flyteidl.admin.GetTaskLogsResponseBody.verify(message.body); - if (error) - return "body." + error; - } - } - return null; - }; - - return GetTaskLogsResponse; - })(); - - admin.ClusterAssignment = (function() { - - /** - * Properties of a ClusterAssignment. - * @memberof flyteidl.admin - * @interface IClusterAssignment - * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName - */ - - /** - * Constructs a new ClusterAssignment. - * @memberof flyteidl.admin - * @classdesc Represents a ClusterAssignment. - * @implements IClusterAssignment - * @constructor - * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set - */ - function ClusterAssignment(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClusterAssignment clusterPoolName. - * @member {string} clusterPoolName - * @memberof flyteidl.admin.ClusterAssignment - * @instance - */ - ClusterAssignment.prototype.clusterPoolName = ""; - - /** - * Creates a new ClusterAssignment instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set - * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment instance - */ - ClusterAssignment.create = function create(properties) { - return new ClusterAssignment(properties); - }; - - /** - * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {flyteidl.admin.IClusterAssignment} message ClusterAssignment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClusterAssignment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterPoolName); - return writer; - }; - - /** - * Decodes a ClusterAssignment message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClusterAssignment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterAssignment(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - message.clusterPoolName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ClusterAssignment message. - * @function verify - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterAssignment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) - if (!$util.isString(message.clusterPoolName)) - return "clusterPoolName: string expected"; - return null; - }; - - return ClusterAssignment; - })(); - - admin.NamedEntityIdentifier = (function() { - - /** - * Properties of a NamedEntityIdentifier. - * @memberof flyteidl.admin - * @interface INamedEntityIdentifier - * @property {string|null} [project] NamedEntityIdentifier project - * @property {string|null} [domain] NamedEntityIdentifier domain - * @property {string|null} [name] NamedEntityIdentifier name - * @property {string|null} [org] NamedEntityIdentifier org - */ - - /** - * Constructs a new NamedEntityIdentifier. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifier. - * @implements INamedEntityIdentifier - * @constructor - * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set - */ - function NamedEntityIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityIdentifier project. - * @member {string} project - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.project = ""; - - /** - * NamedEntityIdentifier domain. - * @member {string} domain - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.domain = ""; - - /** - * NamedEntityIdentifier name. - * @member {string} name - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.name = ""; - - /** - * NamedEntityIdentifier org. - * @member {string} org - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.org = ""; - - /** - * Creates a new NamedEntityIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance - */ - NamedEntityIdentifier.create = function create(properties) { - return new NamedEntityIdentifier(properties); - }; - - /** - * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); - return writer; - }; - - /** - * Decodes a NamedEntityIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityIdentifier message. - * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return NamedEntityIdentifier; - })(); - - /** - * NamedEntityState enum. - * @name flyteidl.admin.NamedEntityState - * @enum {string} - * @property {number} NAMED_ENTITY_ACTIVE=0 NAMED_ENTITY_ACTIVE value - * @property {number} NAMED_ENTITY_ARCHIVED=1 NAMED_ENTITY_ARCHIVED value - * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value - */ - admin.NamedEntityState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NAMED_ENTITY_ACTIVE"] = 0; - values[valuesById[1] = "NAMED_ENTITY_ARCHIVED"] = 1; - values[valuesById[2] = "SYSTEM_GENERATED"] = 2; - return values; - })(); - - admin.NamedEntityMetadata = (function() { - - /** - * Properties of a NamedEntityMetadata. - * @memberof flyteidl.admin - * @interface INamedEntityMetadata - * @property {string|null} [description] NamedEntityMetadata description - * @property {flyteidl.admin.NamedEntityState|null} [state] NamedEntityMetadata state - */ - - /** - * Constructs a new NamedEntityMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityMetadata. - * @implements INamedEntityMetadata - * @constructor - * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set - */ - function NamedEntityMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityMetadata description. - * @member {string} description - * @memberof flyteidl.admin.NamedEntityMetadata - * @instance - */ - NamedEntityMetadata.prototype.description = ""; - - /** - * NamedEntityMetadata state. - * @member {flyteidl.admin.NamedEntityState} state - * @memberof flyteidl.admin.NamedEntityMetadata - * @instance - */ - NamedEntityMetadata.prototype.state = 0; - - /** - * Creates a new NamedEntityMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata instance - */ - NamedEntityMetadata.create = function create(properties) { - return new NamedEntityMetadata(properties); - }; - - /** - * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {flyteidl.admin.INamedEntityMetadata} message NamedEntityMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Decodes a NamedEntityMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = reader.string(); - break; - case 2: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityMetadata message. - * @function verify - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - return NamedEntityMetadata; - })(); - - admin.NamedEntity = (function() { - - /** - * Properties of a NamedEntity. - * @memberof flyteidl.admin - * @interface INamedEntity - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntity resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntity id - * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntity metadata - */ - - /** - * Constructs a new NamedEntity. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntity. - * @implements INamedEntity - * @constructor - * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set - */ - function NamedEntity(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntity resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntity - * @instance - */ - NamedEntity.prototype.resourceType = 0; - - /** - * NamedEntity id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntity - * @instance - */ - NamedEntity.prototype.id = null; - - /** - * NamedEntity metadata. - * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata - * @memberof flyteidl.admin.NamedEntity - * @instance - */ - NamedEntity.prototype.metadata = null; - - /** - * Creates a new NamedEntity instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntity} NamedEntity instance - */ - NamedEntity.create = function create(properties) { - return new NamedEntity(properties); - }; - - /** - * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {flyteidl.admin.INamedEntity} message NamedEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NamedEntity message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntity} NamedEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntity message. - * @function verify - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return NamedEntity; - })(); - - admin.Sort = (function() { - - /** - * Properties of a Sort. - * @memberof flyteidl.admin - * @interface ISort - * @property {string|null} [key] Sort key - * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction - */ - - /** - * Constructs a new Sort. - * @memberof flyteidl.admin - * @classdesc Represents a Sort. - * @implements ISort - * @constructor - * @param {flyteidl.admin.ISort=} [properties] Properties to set - */ - function Sort(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Sort key. - * @member {string} key - * @memberof flyteidl.admin.Sort - * @instance - */ - Sort.prototype.key = ""; - - /** - * Sort direction. - * @member {flyteidl.admin.Sort.Direction} direction - * @memberof flyteidl.admin.Sort - * @instance - */ - Sort.prototype.direction = 0; - - /** - * Creates a new Sort instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Sort - * @static - * @param {flyteidl.admin.ISort=} [properties] Properties to set - * @returns {flyteidl.admin.Sort} Sort instance - */ - Sort.create = function create(properties) { - return new Sort(properties); - }; - - /** - * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Sort - * @static - * @param {flyteidl.admin.ISort} message Sort message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sort.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.direction != null && message.hasOwnProperty("direction")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.direction); - return writer; - }; - - /** - * Decodes a Sort message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Sort - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Sort} Sort - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sort.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Sort(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.direction = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Sort message. - * @function verify - * @memberof flyteidl.admin.Sort - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Sort.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.direction != null && message.hasOwnProperty("direction")) - switch (message.direction) { - default: - return "direction: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * Direction enum. - * @name flyteidl.admin.Sort.Direction - * @enum {string} - * @property {number} DESCENDING=0 DESCENDING value - * @property {number} ASCENDING=1 ASCENDING value - */ - Sort.Direction = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DESCENDING"] = 0; - values[valuesById[1] = "ASCENDING"] = 1; - return values; - })(); - - return Sort; - })(); - - admin.NamedEntityIdentifierListRequest = (function() { - - /** - * Properties of a NamedEntityIdentifierListRequest. - * @memberof flyteidl.admin - * @interface INamedEntityIdentifierListRequest - * @property {string|null} [project] NamedEntityIdentifierListRequest project - * @property {string|null} [domain] NamedEntityIdentifierListRequest domain - * @property {number|null} [limit] NamedEntityIdentifierListRequest limit - * @property {string|null} [token] NamedEntityIdentifierListRequest token - * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityIdentifierListRequest sortBy - * @property {string|null} [filters] NamedEntityIdentifierListRequest filters - * @property {string|null} [org] NamedEntityIdentifierListRequest org - */ - - /** - * Constructs a new NamedEntityIdentifierListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifierListRequest. - * @implements INamedEntityIdentifierListRequest - * @constructor - * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set - */ - function NamedEntityIdentifierListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityIdentifierListRequest project. - * @member {string} project - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.project = ""; - - /** - * NamedEntityIdentifierListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.domain = ""; - - /** - * NamedEntityIdentifierListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.limit = 0; - - /** - * NamedEntityIdentifierListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.token = ""; - - /** - * NamedEntityIdentifierListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.sortBy = null; - - /** - * NamedEntityIdentifierListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.filters = ""; - - /** - * NamedEntityIdentifierListRequest org. - * @member {string} org - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.org = ""; - - /** - * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest instance - */ - NamedEntityIdentifierListRequest.create = function create(properties) { - return new NamedEntityIdentifierListRequest(properties); - }; - - /** - * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} message NamedEntityIdentifierListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityIdentifierListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.filters); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.org); - return writer; - }; - - /** - * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityIdentifierListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.limit = reader.uint32(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 6: - message.filters = reader.string(); - break; - case 7: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityIdentifierListRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityIdentifierListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return NamedEntityIdentifierListRequest; - })(); - - admin.NamedEntityListRequest = (function() { - - /** - * Properties of a NamedEntityListRequest. - * @memberof flyteidl.admin - * @interface INamedEntityListRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityListRequest resourceType - * @property {string|null} [project] NamedEntityListRequest project - * @property {string|null} [domain] NamedEntityListRequest domain - * @property {number|null} [limit] NamedEntityListRequest limit - * @property {string|null} [token] NamedEntityListRequest token - * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityListRequest sortBy - * @property {string|null} [filters] NamedEntityListRequest filters - * @property {string|null} [org] NamedEntityListRequest org - */ - - /** - * Constructs a new NamedEntityListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityListRequest. - * @implements INamedEntityListRequest - * @constructor - * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set - */ - function NamedEntityListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityListRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.resourceType = 0; - - /** - * NamedEntityListRequest project. - * @member {string} project - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.project = ""; - - /** - * NamedEntityListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.domain = ""; - - /** - * NamedEntityListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.limit = 0; - - /** - * NamedEntityListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.token = ""; - - /** - * NamedEntityListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.sortBy = null; - - /** - * NamedEntityListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.filters = ""; - - /** - * NamedEntityListRequest org. - * @member {string} org - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.org = ""; - - /** - * Creates a new NamedEntityListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest instance - */ - NamedEntityListRequest.create = function create(properties) { - return new NamedEntityListRequest(properties); - }; - - /** - * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {flyteidl.admin.INamedEntityListRequest} message NamedEntityListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.token); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.filters); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.org); - return writer; - }; - - /** - * Decodes a NamedEntityListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.project = reader.string(); - break; - case 3: - message.domain = reader.string(); - break; - case 4: - message.limit = reader.uint32(); - break; - case 5: - message.token = reader.string(); - break; - case 6: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 7: - message.filters = reader.string(); - break; - case 8: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityListRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return NamedEntityListRequest; - })(); - - admin.NamedEntityIdentifierList = (function() { - - /** - * Properties of a NamedEntityIdentifierList. - * @memberof flyteidl.admin - * @interface INamedEntityIdentifierList - * @property {Array.|null} [entities] NamedEntityIdentifierList entities - * @property {string|null} [token] NamedEntityIdentifierList token - */ - - /** - * Constructs a new NamedEntityIdentifierList. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifierList. - * @implements INamedEntityIdentifierList - * @constructor - * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set - */ - function NamedEntityIdentifierList(properties) { - this.entities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityIdentifierList entities. - * @member {Array.} entities - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @instance - */ - NamedEntityIdentifierList.prototype.entities = $util.emptyArray; - - /** - * NamedEntityIdentifierList token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @instance - */ - NamedEntityIdentifierList.prototype.token = ""; - - /** - * Creates a new NamedEntityIdentifierList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance - */ - NamedEntityIdentifierList.create = function create(properties) { - return new NamedEntityIdentifierList(properties); - }; - - /** - * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityIdentifierList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityIdentifierList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityIdentifierList message. - * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityIdentifierList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.entities[i]); - if (error) - return "entities." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return NamedEntityIdentifierList; - })(); - - admin.NamedEntityList = (function() { - - /** - * Properties of a NamedEntityList. - * @memberof flyteidl.admin - * @interface INamedEntityList - * @property {Array.|null} [entities] NamedEntityList entities - * @property {string|null} [token] NamedEntityList token - */ - - /** - * Constructs a new NamedEntityList. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityList. - * @implements INamedEntityList - * @constructor - * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set - */ - function NamedEntityList(properties) { - this.entities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityList entities. - * @member {Array.} entities - * @memberof flyteidl.admin.NamedEntityList - * @instance - */ - NamedEntityList.prototype.entities = $util.emptyArray; - - /** - * NamedEntityList token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityList - * @instance - */ - NamedEntityList.prototype.token = ""; - - /** - * Creates a new NamedEntityList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityList} NamedEntityList instance - */ - NamedEntityList.create = function create(properties) { - return new NamedEntityList(properties); - }; - - /** - * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {flyteidl.admin.INamedEntityList} message NamedEntityList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.flyteidl.admin.NamedEntity.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a NamedEntityList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityList} NamedEntityList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.flyteidl.admin.NamedEntity.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityList message. - * @function verify - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.flyteidl.admin.NamedEntity.verify(message.entities[i]); - if (error) - return "entities." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return NamedEntityList; - })(); - - admin.NamedEntityGetRequest = (function() { - - /** - * Properties of a NamedEntityGetRequest. - * @memberof flyteidl.admin - * @interface INamedEntityGetRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityGetRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityGetRequest id - */ - - /** - * Constructs a new NamedEntityGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityGetRequest. - * @implements INamedEntityGetRequest - * @constructor - * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set - */ - function NamedEntityGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityGetRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityGetRequest - * @instance - */ - NamedEntityGetRequest.prototype.resourceType = 0; - - /** - * NamedEntityGetRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntityGetRequest - * @instance - */ - NamedEntityGetRequest.prototype.id = null; - - /** - * Creates a new NamedEntityGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest instance - */ - NamedEntityGetRequest.create = function create(properties) { - return new NamedEntityGetRequest(properties); - }; - - /** - * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {flyteidl.admin.INamedEntityGetRequest} message NamedEntityGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NamedEntityGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityGetRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return NamedEntityGetRequest; - })(); - - admin.NamedEntityUpdateRequest = (function() { - - /** - * Properties of a NamedEntityUpdateRequest. - * @memberof flyteidl.admin - * @interface INamedEntityUpdateRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityUpdateRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityUpdateRequest id - * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntityUpdateRequest metadata - */ - - /** - * Constructs a new NamedEntityUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityUpdateRequest. - * @implements INamedEntityUpdateRequest - * @constructor - * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set - */ - function NamedEntityUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityUpdateRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @instance - */ - NamedEntityUpdateRequest.prototype.resourceType = 0; - - /** - * NamedEntityUpdateRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @instance - */ - NamedEntityUpdateRequest.prototype.id = null; - - /** - * NamedEntityUpdateRequest metadata. - * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @instance - */ - NamedEntityUpdateRequest.prototype.metadata = null; - - /** - * Creates a new NamedEntityUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest instance - */ - NamedEntityUpdateRequest.create = function create(properties) { - return new NamedEntityUpdateRequest(properties); - }; - - /** - * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {flyteidl.admin.INamedEntityUpdateRequest} message NamedEntityUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return NamedEntityUpdateRequest; - })(); - - admin.NamedEntityUpdateResponse = (function() { - - /** - * Properties of a NamedEntityUpdateResponse. - * @memberof flyteidl.admin - * @interface INamedEntityUpdateResponse - */ - - /** - * Constructs a new NamedEntityUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityUpdateResponse. - * @implements INamedEntityUpdateResponse - * @constructor - * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set - */ - function NamedEntityUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new NamedEntityUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse instance - */ - NamedEntityUpdateResponse.create = function create(properties) { - return new NamedEntityUpdateResponse(properties); - }; - - /** - * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {flyteidl.admin.INamedEntityUpdateResponse} message NamedEntityUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return NamedEntityUpdateResponse; - })(); - - admin.ObjectGetRequest = (function() { - - /** - * Properties of an ObjectGetRequest. - * @memberof flyteidl.admin - * @interface IObjectGetRequest - * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id - */ - - /** - * Constructs a new ObjectGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ObjectGetRequest. - * @implements IObjectGetRequest - * @constructor - * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set - */ - function ObjectGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ObjectGetRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.ObjectGetRequest - * @instance - */ - ObjectGetRequest.prototype.id = null; - - /** - * Creates a new ObjectGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest instance - */ - ObjectGetRequest.create = function create(properties) { - return new ObjectGetRequest(properties); - }; - - /** - * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {flyteidl.admin.IObjectGetRequest} message ObjectGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ObjectGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ObjectGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ObjectGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ObjectGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ObjectGetRequest message. - * @function verify - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ObjectGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ObjectGetRequest; - })(); - - admin.ResourceListRequest = (function() { - - /** - * Properties of a ResourceListRequest. - * @memberof flyteidl.admin - * @interface IResourceListRequest - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ResourceListRequest id - * @property {number|null} [limit] ResourceListRequest limit - * @property {string|null} [token] ResourceListRequest token - * @property {string|null} [filters] ResourceListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] ResourceListRequest sortBy - */ - - /** - * Constructs a new ResourceListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ResourceListRequest. - * @implements IResourceListRequest - * @constructor - * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set - */ - function ResourceListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourceListRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.id = null; - - /** - * ResourceListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.limit = 0; - - /** - * ResourceListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.token = ""; - - /** - * ResourceListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.filters = ""; - - /** - * ResourceListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.sortBy = null; - - /** - * Creates a new ResourceListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance - */ - ResourceListRequest.create = function create(properties) { - return new ResourceListRequest(properties); - }; - - /** - * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ResourceListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ResourceListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ResourceListRequest message. - * @function verify - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return ResourceListRequest; - })(); - - admin.EmailNotification = (function() { - - /** - * Properties of an EmailNotification. - * @memberof flyteidl.admin - * @interface IEmailNotification - * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail - */ - - /** - * Constructs a new EmailNotification. - * @memberof flyteidl.admin - * @classdesc Represents an EmailNotification. - * @implements IEmailNotification - * @constructor - * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set - */ - function EmailNotification(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EmailNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.EmailNotification - * @instance - */ - EmailNotification.prototype.recipientsEmail = $util.emptyArray; - - /** - * Creates a new EmailNotification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set - * @returns {flyteidl.admin.EmailNotification} EmailNotification instance - */ - EmailNotification.create = function create(properties) { - return new EmailNotification(properties); - }; - - /** - * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailNotification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - return writer; - }; - - /** - * Decodes an EmailNotification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EmailNotification} EmailNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailNotification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailNotification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EmailNotification message. - * @function verify - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EmailNotification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - return null; - }; - - return EmailNotification; - })(); - - admin.PagerDutyNotification = (function() { - - /** - * Properties of a PagerDutyNotification. - * @memberof flyteidl.admin - * @interface IPagerDutyNotification - * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail - */ - - /** - * Constructs a new PagerDutyNotification. - * @memberof flyteidl.admin - * @classdesc Represents a PagerDutyNotification. - * @implements IPagerDutyNotification - * @constructor - * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set - */ - function PagerDutyNotification(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PagerDutyNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.PagerDutyNotification - * @instance - */ - PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; - - /** - * Creates a new PagerDutyNotification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set - * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance - */ - PagerDutyNotification.create = function create(properties) { - return new PagerDutyNotification(properties); - }; - - /** - * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PagerDutyNotification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - return writer; - }; - - /** - * Decodes a PagerDutyNotification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PagerDutyNotification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PagerDutyNotification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PagerDutyNotification message. - * @function verify - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PagerDutyNotification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - return null; - }; - - return PagerDutyNotification; - })(); - - admin.SlackNotification = (function() { - - /** - * Properties of a SlackNotification. - * @memberof flyteidl.admin - * @interface ISlackNotification - * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail - */ - - /** - * Constructs a new SlackNotification. - * @memberof flyteidl.admin - * @classdesc Represents a SlackNotification. - * @implements ISlackNotification - * @constructor - * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set - */ - function SlackNotification(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SlackNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.SlackNotification - * @instance - */ - SlackNotification.prototype.recipientsEmail = $util.emptyArray; - - /** - * Creates a new SlackNotification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set - * @returns {flyteidl.admin.SlackNotification} SlackNotification instance - */ - SlackNotification.create = function create(properties) { - return new SlackNotification(properties); - }; - - /** - * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SlackNotification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - return writer; - }; - - /** - * Decodes a SlackNotification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SlackNotification} SlackNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SlackNotification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SlackNotification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SlackNotification message. - * @function verify - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SlackNotification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - return null; - }; - - return SlackNotification; - })(); - - admin.Notification = (function() { - - /** - * Properties of a Notification. - * @memberof flyteidl.admin - * @interface INotification - * @property {Array.|null} [phases] Notification phases - * @property {flyteidl.admin.IEmailNotification|null} [email] Notification email - * @property {flyteidl.admin.IPagerDutyNotification|null} [pagerDuty] Notification pagerDuty - * @property {flyteidl.admin.ISlackNotification|null} [slack] Notification slack - */ - - /** - * Constructs a new Notification. - * @memberof flyteidl.admin - * @classdesc Represents a Notification. - * @implements INotification - * @constructor - * @param {flyteidl.admin.INotification=} [properties] Properties to set - */ - function Notification(properties) { - this.phases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Notification phases. - * @member {Array.} phases - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.phases = $util.emptyArray; - - /** - * Notification email. - * @member {flyteidl.admin.IEmailNotification|null|undefined} email - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.email = null; - - /** - * Notification pagerDuty. - * @member {flyteidl.admin.IPagerDutyNotification|null|undefined} pagerDuty - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.pagerDuty = null; - - /** - * Notification slack. - * @member {flyteidl.admin.ISlackNotification|null|undefined} slack - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.slack = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Notification type. - * @member {"email"|"pagerDuty"|"slack"|undefined} type - * @memberof flyteidl.admin.Notification - * @instance - */ - Object.defineProperty(Notification.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["email", "pagerDuty", "slack"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Notification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Notification - * @static - * @param {flyteidl.admin.INotification=} [properties] Properties to set - * @returns {flyteidl.admin.Notification} Notification instance - */ - Notification.create = function create(properties) { - return new Notification(properties); - }; - - /** - * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Notification - * @static - * @param {flyteidl.admin.INotification} message Notification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Notification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.phases != null && message.phases.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.phases.length; ++i) - writer.int32(message.phases[i]); - writer.ldelim(); - } - if (message.email != null && message.hasOwnProperty("email")) - $root.flyteidl.admin.EmailNotification.encode(message.email, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) - $root.flyteidl.admin.PagerDutyNotification.encode(message.pagerDuty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.slack != null && message.hasOwnProperty("slack")) - $root.flyteidl.admin.SlackNotification.encode(message.slack, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Notification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Notification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Notification} Notification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Notification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Notification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.phases && message.phases.length)) - message.phases = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.phases.push(reader.int32()); - } else - message.phases.push(reader.int32()); - break; - case 2: - message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); - break; - case 3: - message.pagerDuty = $root.flyteidl.admin.PagerDutyNotification.decode(reader, reader.uint32()); - break; - case 4: - message.slack = $root.flyteidl.admin.SlackNotification.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Notification message. - * @function verify - * @memberof flyteidl.admin.Notification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Notification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.phases != null && message.hasOwnProperty("phases")) { - if (!Array.isArray(message.phases)) - return "phases: array expected"; - for (var i = 0; i < message.phases.length; ++i) - switch (message.phases[i]) { - default: - return "phases: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.email != null && message.hasOwnProperty("email")) { - properties.type = 1; - { - var error = $root.flyteidl.admin.EmailNotification.verify(message.email); - if (error) - return "email." + error; - } - } - if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.admin.PagerDutyNotification.verify(message.pagerDuty); - if (error) - return "pagerDuty." + error; - } - } - if (message.slack != null && message.hasOwnProperty("slack")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.admin.SlackNotification.verify(message.slack); - if (error) - return "slack." + error; - } - } - return null; - }; - - return Notification; - })(); - - admin.UrlBlob = (function() { - - /** - * Properties of an UrlBlob. - * @memberof flyteidl.admin - * @interface IUrlBlob - * @property {string|null} [url] UrlBlob url - * @property {Long|null} [bytes] UrlBlob bytes - */ - - /** - * Constructs a new UrlBlob. - * @memberof flyteidl.admin - * @classdesc Represents an UrlBlob. - * @implements IUrlBlob - * @constructor - * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set - */ - function UrlBlob(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UrlBlob url. - * @member {string} url - * @memberof flyteidl.admin.UrlBlob - * @instance - */ - UrlBlob.prototype.url = ""; - - /** - * UrlBlob bytes. - * @member {Long} bytes - * @memberof flyteidl.admin.UrlBlob - * @instance - */ - UrlBlob.prototype.bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new UrlBlob instance using the specified properties. - * @function create - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set - * @returns {flyteidl.admin.UrlBlob} UrlBlob instance - */ - UrlBlob.create = function create(properties) { - return new UrlBlob(properties); - }; - - /** - * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UrlBlob.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.url != null && message.hasOwnProperty("url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); - if (message.bytes != null && message.hasOwnProperty("bytes")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bytes); - return writer; - }; - - /** - * Decodes an UrlBlob message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.UrlBlob} UrlBlob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UrlBlob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.UrlBlob(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.bytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UrlBlob message. - * @function verify - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UrlBlob.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.bytes != null && message.hasOwnProperty("bytes")) - if (!$util.isInteger(message.bytes) && !(message.bytes && $util.isInteger(message.bytes.low) && $util.isInteger(message.bytes.high))) - return "bytes: integer|Long expected"; - return null; - }; - - return UrlBlob; - })(); - - admin.Labels = (function() { - - /** - * Properties of a Labels. - * @memberof flyteidl.admin - * @interface ILabels - * @property {Object.|null} [values] Labels values - */ - - /** - * Constructs a new Labels. - * @memberof flyteidl.admin - * @classdesc Represents a Labels. - * @implements ILabels - * @constructor - * @param {flyteidl.admin.ILabels=} [properties] Properties to set - */ - function Labels(properties) { - this.values = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Labels values. - * @member {Object.} values - * @memberof flyteidl.admin.Labels - * @instance - */ - Labels.prototype.values = $util.emptyObject; - - /** - * Creates a new Labels instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Labels - * @static - * @param {flyteidl.admin.ILabels=} [properties] Properties to set - * @returns {flyteidl.admin.Labels} Labels instance - */ - Labels.create = function create(properties) { - return new Labels(properties); - }; - - /** - * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Labels - * @static - * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Labels.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.hasOwnProperty("values")) - for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a Labels message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Labels - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Labels} Labels - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Labels.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Labels(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.values === $util.emptyObject) - message.values = {}; - key = reader.string(); - reader.pos++; - message.values[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Labels message. - * @function verify - * @memberof flyteidl.admin.Labels - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Labels.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!$util.isObject(message.values)) - return "values: object expected"; - var key = Object.keys(message.values); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.values[key[i]])) - return "values: string{k:string} expected"; - } - return null; - }; - - return Labels; - })(); - - admin.Annotations = (function() { - - /** - * Properties of an Annotations. - * @memberof flyteidl.admin - * @interface IAnnotations - * @property {Object.|null} [values] Annotations values - */ - - /** - * Constructs a new Annotations. - * @memberof flyteidl.admin - * @classdesc Represents an Annotations. - * @implements IAnnotations - * @constructor - * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set - */ - function Annotations(properties) { - this.values = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Annotations values. - * @member {Object.} values - * @memberof flyteidl.admin.Annotations - * @instance - */ - Annotations.prototype.values = $util.emptyObject; - - /** - * Creates a new Annotations instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Annotations - * @static - * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set - * @returns {flyteidl.admin.Annotations} Annotations instance - */ - Annotations.create = function create(properties) { - return new Annotations(properties); - }; - - /** - * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Annotations - * @static - * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotations.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.hasOwnProperty("values")) - for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes an Annotations message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Annotations - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Annotations} Annotations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotations.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Annotations(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.values === $util.emptyObject) - message.values = {}; - key = reader.string(); - reader.pos++; - message.values[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Annotations message. - * @function verify - * @memberof flyteidl.admin.Annotations - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotations.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!$util.isObject(message.values)) - return "values: object expected"; - var key = Object.keys(message.values); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.values[key[i]])) - return "values: string{k:string} expected"; - } - return null; - }; - - return Annotations; - })(); - - admin.Envs = (function() { - - /** - * Properties of an Envs. - * @memberof flyteidl.admin - * @interface IEnvs - * @property {Array.|null} [values] Envs values - */ - - /** - * Constructs a new Envs. - * @memberof flyteidl.admin - * @classdesc Represents an Envs. - * @implements IEnvs - * @constructor - * @param {flyteidl.admin.IEnvs=} [properties] Properties to set - */ - function Envs(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Envs values. - * @member {Array.} values - * @memberof flyteidl.admin.Envs - * @instance - */ - Envs.prototype.values = $util.emptyArray; - - /** - * Creates a new Envs instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Envs - * @static - * @param {flyteidl.admin.IEnvs=} [properties] Properties to set - * @returns {flyteidl.admin.Envs} Envs instance - */ - Envs.create = function create(properties) { - return new Envs(properties); - }; - - /** - * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Envs - * @static - * @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Envs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.flyteidl.core.KeyValuePair.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Envs message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Envs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Envs} Envs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Envs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Envs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Envs message. - * @function verify - * @memberof flyteidl.admin.Envs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Envs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.flyteidl.core.KeyValuePair.verify(message.values[i]); - if (error) - return "values." + error; - } - } - return null; - }; - - return Envs; - })(); - - admin.AuthRole = (function() { - - /** - * Properties of an AuthRole. - * @memberof flyteidl.admin - * @interface IAuthRole - * @property {string|null} [assumableIamRole] AuthRole assumableIamRole - * @property {string|null} [kubernetesServiceAccount] AuthRole kubernetesServiceAccount - */ - - /** - * Constructs a new AuthRole. - * @memberof flyteidl.admin - * @classdesc Represents an AuthRole. - * @implements IAuthRole - * @constructor - * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set - */ - function AuthRole(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuthRole assumableIamRole. - * @member {string} assumableIamRole - * @memberof flyteidl.admin.AuthRole - * @instance - */ - AuthRole.prototype.assumableIamRole = ""; - - /** - * AuthRole kubernetesServiceAccount. - * @member {string} kubernetesServiceAccount - * @memberof flyteidl.admin.AuthRole - * @instance - */ - AuthRole.prototype.kubernetesServiceAccount = ""; - - /** - * Creates a new AuthRole instance using the specified properties. - * @function create - * @memberof flyteidl.admin.AuthRole - * @static - * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set - * @returns {flyteidl.admin.AuthRole} AuthRole instance - */ - AuthRole.create = function create(properties) { - return new AuthRole(properties); - }; - - /** - * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.AuthRole - * @static - * @param {flyteidl.admin.IAuthRole} message AuthRole message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthRole.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); - return writer; - }; - - /** - * Decodes an AuthRole message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.AuthRole - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.AuthRole} AuthRole - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthRole.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AuthRole(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.assumableIamRole = reader.string(); - break; - case 2: - message.kubernetesServiceAccount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an AuthRole message. - * @function verify - * @memberof flyteidl.admin.AuthRole - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuthRole.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - if (!$util.isString(message.assumableIamRole)) - return "assumableIamRole: string expected"; - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - if (!$util.isString(message.kubernetesServiceAccount)) - return "kubernetesServiceAccount: string expected"; - return null; - }; - - return AuthRole; - })(); - - admin.RawOutputDataConfig = (function() { - - /** - * Properties of a RawOutputDataConfig. - * @memberof flyteidl.admin - * @interface IRawOutputDataConfig - * @property {string|null} [outputLocationPrefix] RawOutputDataConfig outputLocationPrefix - */ - - /** - * Constructs a new RawOutputDataConfig. - * @memberof flyteidl.admin - * @classdesc Represents a RawOutputDataConfig. - * @implements IRawOutputDataConfig - * @constructor - * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set - */ - function RawOutputDataConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RawOutputDataConfig outputLocationPrefix. - * @member {string} outputLocationPrefix - * @memberof flyteidl.admin.RawOutputDataConfig - * @instance - */ - RawOutputDataConfig.prototype.outputLocationPrefix = ""; - - /** - * Creates a new RawOutputDataConfig instance using the specified properties. - * @function create - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set - * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig instance - */ - RawOutputDataConfig.create = function create(properties) { - return new RawOutputDataConfig(properties); - }; - - /** - * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {flyteidl.admin.IRawOutputDataConfig} message RawOutputDataConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RawOutputDataConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputLocationPrefix); - return writer; - }; - - /** - * Decodes a RawOutputDataConfig message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RawOutputDataConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.RawOutputDataConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputLocationPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a RawOutputDataConfig message. - * @function verify - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RawOutputDataConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) - if (!$util.isString(message.outputLocationPrefix)) - return "outputLocationPrefix: string expected"; - return null; - }; - - return RawOutputDataConfig; - })(); - - admin.FlyteURLs = (function() { - - /** - * Properties of a FlyteURLs. - * @memberof flyteidl.admin - * @interface IFlyteURLs - * @property {string|null} [inputs] FlyteURLs inputs - * @property {string|null} [outputs] FlyteURLs outputs - * @property {string|null} [deck] FlyteURLs deck - */ - - /** - * Constructs a new FlyteURLs. - * @memberof flyteidl.admin - * @classdesc Represents a FlyteURLs. - * @implements IFlyteURLs - * @constructor - * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set - */ - function FlyteURLs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FlyteURLs inputs. - * @member {string} inputs - * @memberof flyteidl.admin.FlyteURLs - * @instance - */ - FlyteURLs.prototype.inputs = ""; - - /** - * FlyteURLs outputs. - * @member {string} outputs - * @memberof flyteidl.admin.FlyteURLs - * @instance - */ - FlyteURLs.prototype.outputs = ""; - - /** - * FlyteURLs deck. - * @member {string} deck - * @memberof flyteidl.admin.FlyteURLs - * @instance - */ - FlyteURLs.prototype.deck = ""; - - /** - * Creates a new FlyteURLs instance using the specified properties. - * @function create - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set - * @returns {flyteidl.admin.FlyteURLs} FlyteURLs instance - */ - FlyteURLs.create = function create(properties) { - return new FlyteURLs(properties); - }; - - /** - * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {flyteidl.admin.IFlyteURLs} message FlyteURLs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FlyteURLs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputs); - if (message.outputs != null && message.hasOwnProperty("outputs")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputs); - if (message.deck != null && message.hasOwnProperty("deck")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deck); - return writer; - }; - - /** - * Decodes a FlyteURLs message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.FlyteURLs} FlyteURLs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FlyteURLs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FlyteURLs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = reader.string(); - break; - case 2: - message.outputs = reader.string(); - break; - case 3: - message.deck = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FlyteURLs message. - * @function verify - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FlyteURLs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) - if (!$util.isString(message.inputs)) - return "inputs: string expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) - if (!$util.isString(message.outputs)) - return "outputs: string expected"; - if (message.deck != null && message.hasOwnProperty("deck")) - if (!$util.isString(message.deck)) - return "deck: string expected"; - return null; - }; - - return FlyteURLs; - })(); - - admin.DescriptionEntity = (function() { - - /** - * Properties of a DescriptionEntity. - * @memberof flyteidl.admin - * @interface IDescriptionEntity - * @property {flyteidl.core.IIdentifier|null} [id] DescriptionEntity id - * @property {string|null} [shortDescription] DescriptionEntity shortDescription - * @property {flyteidl.admin.IDescription|null} [longDescription] DescriptionEntity longDescription - * @property {flyteidl.admin.ISourceCode|null} [sourceCode] DescriptionEntity sourceCode - * @property {Array.|null} [tags] DescriptionEntity tags - */ - - /** - * Constructs a new DescriptionEntity. - * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntity. - * @implements IDescriptionEntity - * @constructor - * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set - */ - function DescriptionEntity(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptionEntity id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.id = null; - - /** - * DescriptionEntity shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.shortDescription = ""; - - /** - * DescriptionEntity longDescription. - * @member {flyteidl.admin.IDescription|null|undefined} longDescription - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.longDescription = null; - - /** - * DescriptionEntity sourceCode. - * @member {flyteidl.admin.ISourceCode|null|undefined} sourceCode - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.sourceCode = null; - - /** - * DescriptionEntity tags. - * @member {Array.} tags - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.tags = $util.emptyArray; - - /** - * Creates a new DescriptionEntity instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity instance - */ - DescriptionEntity.create = function create(properties) { - return new DescriptionEntity(properties); - }; - - /** - * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {flyteidl.admin.IDescriptionEntity} message DescriptionEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptionEntity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shortDescription); - if (message.longDescription != null && message.hasOwnProperty("longDescription")) - $root.flyteidl.admin.Description.encode(message.longDescription, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) - $root.flyteidl.admin.SourceCode.encode(message.sourceCode, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tags[i]); - return writer; - }; - - /** - * Decodes a DescriptionEntity message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptionEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.shortDescription = reader.string(); - break; - case 3: - message.longDescription = $root.flyteidl.admin.Description.decode(reader, reader.uint32()); - break; - case 4: - message.sourceCode = $root.flyteidl.admin.SourceCode.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptionEntity message. - * @function verify - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptionEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; - if (message.longDescription != null && message.hasOwnProperty("longDescription")) { - var error = $root.flyteidl.admin.Description.verify(message.longDescription); - if (error) - return "longDescription." + error; - } - if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) { - var error = $root.flyteidl.admin.SourceCode.verify(message.sourceCode); - if (error) - return "sourceCode." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - return DescriptionEntity; - })(); - - /** - * DescriptionFormat enum. - * @name flyteidl.admin.DescriptionFormat - * @enum {string} - * @property {number} DESCRIPTION_FORMAT_UNKNOWN=0 DESCRIPTION_FORMAT_UNKNOWN value - * @property {number} DESCRIPTION_FORMAT_MARKDOWN=1 DESCRIPTION_FORMAT_MARKDOWN value - * @property {number} DESCRIPTION_FORMAT_HTML=2 DESCRIPTION_FORMAT_HTML value - * @property {number} DESCRIPTION_FORMAT_RST=3 DESCRIPTION_FORMAT_RST value - */ - admin.DescriptionFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DESCRIPTION_FORMAT_UNKNOWN"] = 0; - values[valuesById[1] = "DESCRIPTION_FORMAT_MARKDOWN"] = 1; - values[valuesById[2] = "DESCRIPTION_FORMAT_HTML"] = 2; - values[valuesById[3] = "DESCRIPTION_FORMAT_RST"] = 3; - return values; - })(); - - admin.Description = (function() { - - /** - * Properties of a Description. - * @memberof flyteidl.admin - * @interface IDescription - * @property {string|null} [value] Description value - * @property {string|null} [uri] Description uri - * @property {flyteidl.admin.DescriptionFormat|null} [format] Description format - * @property {string|null} [iconLink] Description iconLink - */ - - /** - * Constructs a new Description. - * @memberof flyteidl.admin - * @classdesc Represents a Description. - * @implements IDescription - * @constructor - * @param {flyteidl.admin.IDescription=} [properties] Properties to set - */ - function Description(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Description value. - * @member {string} value - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.value = ""; - - /** - * Description uri. - * @member {string} uri - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.uri = ""; - - /** - * Description format. - * @member {flyteidl.admin.DescriptionFormat} format - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.format = 0; - - /** - * Description iconLink. - * @member {string} iconLink - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.iconLink = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Description content. - * @member {"value"|"uri"|undefined} content - * @memberof flyteidl.admin.Description - * @instance - */ - Object.defineProperty(Description.prototype, "content", { - get: $util.oneOfGetter($oneOfFields = ["value", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Description instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Description - * @static - * @param {flyteidl.admin.IDescription=} [properties] Properties to set - * @returns {flyteidl.admin.Description} Description instance - */ - Description.create = function create(properties) { - return new Description(properties); - }; - - /** - * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Description - * @static - * @param {flyteidl.admin.IDescription} message Description message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Description.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.format); - if (message.iconLink != null && message.hasOwnProperty("iconLink")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.iconLink); - return writer; - }; - - /** - * Decodes a Description message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Description - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Description} Description - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Description.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Description(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - case 2: - message.uri = reader.string(); - break; - case 3: - message.format = reader.int32(); - break; - case 4: - message.iconLink = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Description message. - * @function verify - * @memberof flyteidl.admin.Description - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Description.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.content = 1; - if (!$util.isString(message.value)) - return "value: string expected"; - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.content === 1) - return "content: multiple values"; - properties.content = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.format != null && message.hasOwnProperty("format")) - switch (message.format) { - default: - return "format: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.iconLink != null && message.hasOwnProperty("iconLink")) - if (!$util.isString(message.iconLink)) - return "iconLink: string expected"; - return null; - }; - - return Description; - })(); - - admin.SourceCode = (function() { - - /** - * Properties of a SourceCode. - * @memberof flyteidl.admin - * @interface ISourceCode - * @property {string|null} [link] SourceCode link - */ - - /** - * Constructs a new SourceCode. - * @memberof flyteidl.admin - * @classdesc Represents a SourceCode. - * @implements ISourceCode - * @constructor - * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set - */ - function SourceCode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SourceCode link. - * @member {string} link - * @memberof flyteidl.admin.SourceCode - * @instance - */ - SourceCode.prototype.link = ""; - - /** - * Creates a new SourceCode instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SourceCode - * @static - * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set - * @returns {flyteidl.admin.SourceCode} SourceCode instance - */ - SourceCode.create = function create(properties) { - return new SourceCode(properties); - }; - - /** - * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SourceCode - * @static - * @param {flyteidl.admin.ISourceCode} message SourceCode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.link != null && message.hasOwnProperty("link")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); - return writer; - }; - - /** - * Decodes a SourceCode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SourceCode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SourceCode} SourceCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SourceCode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.link = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SourceCode message. - * @function verify - * @memberof flyteidl.admin.SourceCode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceCode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.link != null && message.hasOwnProperty("link")) - if (!$util.isString(message.link)) - return "link: string expected"; - return null; - }; - - return SourceCode; - })(); - - admin.DescriptionEntityList = (function() { - - /** - * Properties of a DescriptionEntityList. - * @memberof flyteidl.admin - * @interface IDescriptionEntityList - * @property {Array.|null} [descriptionEntities] DescriptionEntityList descriptionEntities - * @property {string|null} [token] DescriptionEntityList token - */ - - /** - * Constructs a new DescriptionEntityList. - * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntityList. - * @implements IDescriptionEntityList - * @constructor - * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set - */ - function DescriptionEntityList(properties) { - this.descriptionEntities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptionEntityList descriptionEntities. - * @member {Array.} descriptionEntities - * @memberof flyteidl.admin.DescriptionEntityList - * @instance - */ - DescriptionEntityList.prototype.descriptionEntities = $util.emptyArray; - - /** - * DescriptionEntityList token. - * @member {string} token - * @memberof flyteidl.admin.DescriptionEntityList - * @instance - */ - DescriptionEntityList.prototype.token = ""; - - /** - * Creates a new DescriptionEntityList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList instance - */ - DescriptionEntityList.create = function create(properties) { - return new DescriptionEntityList(properties); - }; - - /** - * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {flyteidl.admin.IDescriptionEntityList} message DescriptionEntityList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptionEntityList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.descriptionEntities != null && message.descriptionEntities.length) - for (var i = 0; i < message.descriptionEntities.length; ++i) - $root.flyteidl.admin.DescriptionEntity.encode(message.descriptionEntities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a DescriptionEntityList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptionEntityList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.descriptionEntities && message.descriptionEntities.length)) - message.descriptionEntities = []; - message.descriptionEntities.push($root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptionEntityList message. - * @function verify - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptionEntityList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.descriptionEntities != null && message.hasOwnProperty("descriptionEntities")) { - if (!Array.isArray(message.descriptionEntities)) - return "descriptionEntities: array expected"; - for (var i = 0; i < message.descriptionEntities.length; ++i) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.descriptionEntities[i]); - if (error) - return "descriptionEntities." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return DescriptionEntityList; - })(); - - admin.DescriptionEntityListRequest = (function() { - - /** - * Properties of a DescriptionEntityListRequest. - * @memberof flyteidl.admin - * @interface IDescriptionEntityListRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] DescriptionEntityListRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] DescriptionEntityListRequest id - * @property {number|null} [limit] DescriptionEntityListRequest limit - * @property {string|null} [token] DescriptionEntityListRequest token - * @property {string|null} [filters] DescriptionEntityListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] DescriptionEntityListRequest sortBy - */ - - /** - * Constructs a new DescriptionEntityListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntityListRequest. - * @implements IDescriptionEntityListRequest - * @constructor - * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set - */ - function DescriptionEntityListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptionEntityListRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.resourceType = 0; - - /** - * DescriptionEntityListRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.id = null; - - /** - * DescriptionEntityListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.limit = 0; - - /** - * DescriptionEntityListRequest token. - * @member {string} token - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.token = ""; - - /** - * DescriptionEntityListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.filters = ""; - - /** - * DescriptionEntityListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.sortBy = null; - - /** - * Creates a new DescriptionEntityListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest instance - */ - DescriptionEntityListRequest.create = function create(properties) { - return new DescriptionEntityListRequest(properties); - }; - - /** - * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {flyteidl.admin.IDescriptionEntityListRequest} message DescriptionEntityListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptionEntityListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptionEntityListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.limit = reader.uint32(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.filters = reader.string(); - break; - case 6: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptionEntityListRequest message. - * @function verify - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptionEntityListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return DescriptionEntityListRequest; - })(); - - admin.EventErrorAlreadyInTerminalState = (function() { - - /** - * Properties of an EventErrorAlreadyInTerminalState. - * @memberof flyteidl.admin - * @interface IEventErrorAlreadyInTerminalState - * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase - */ - - /** - * Constructs a new EventErrorAlreadyInTerminalState. - * @memberof flyteidl.admin - * @classdesc Represents an EventErrorAlreadyInTerminalState. - * @implements IEventErrorAlreadyInTerminalState - * @constructor - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set - */ - function EventErrorAlreadyInTerminalState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventErrorAlreadyInTerminalState currentPhase. - * @member {string} currentPhase - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @instance - */ - EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; - - /** - * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set - * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance - */ - EventErrorAlreadyInTerminalState.create = function create(properties) { - return new EventErrorAlreadyInTerminalState(properties); - }; - - /** - * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventErrorAlreadyInTerminalState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPhase); - return writer; - }; - - /** - * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventErrorAlreadyInTerminalState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorAlreadyInTerminalState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentPhase = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventErrorAlreadyInTerminalState message. - * @function verify - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventErrorAlreadyInTerminalState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) - if (!$util.isString(message.currentPhase)) - return "currentPhase: string expected"; - return null; - }; - - return EventErrorAlreadyInTerminalState; - })(); - - admin.EventErrorIncompatibleCluster = (function() { - - /** - * Properties of an EventErrorIncompatibleCluster. - * @memberof flyteidl.admin - * @interface IEventErrorIncompatibleCluster - * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster - */ - - /** - * Constructs a new EventErrorIncompatibleCluster. - * @memberof flyteidl.admin - * @classdesc Represents an EventErrorIncompatibleCluster. - * @implements IEventErrorIncompatibleCluster - * @constructor - * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set - */ - function EventErrorIncompatibleCluster(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventErrorIncompatibleCluster cluster. - * @member {string} cluster - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @instance - */ - EventErrorIncompatibleCluster.prototype.cluster = ""; - - /** - * Creates a new EventErrorIncompatibleCluster instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set - * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance - */ - EventErrorIncompatibleCluster.create = function create(properties) { - return new EventErrorIncompatibleCluster(properties); - }; - - /** - * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventErrorIncompatibleCluster.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cluster != null && message.hasOwnProperty("cluster")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster); - return writer; - }; - - /** - * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventErrorIncompatibleCluster.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorIncompatibleCluster(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cluster = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventErrorIncompatibleCluster message. - * @function verify - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventErrorIncompatibleCluster.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) - if (!$util.isString(message.cluster)) - return "cluster: string expected"; - return null; - }; - - return EventErrorIncompatibleCluster; - })(); - - admin.EventFailureReason = (function() { - - /** - * Properties of an EventFailureReason. - * @memberof flyteidl.admin - * @interface IEventFailureReason - * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState - * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster - */ - - /** - * Constructs a new EventFailureReason. - * @memberof flyteidl.admin - * @classdesc Represents an EventFailureReason. - * @implements IEventFailureReason - * @constructor - * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set - */ - function EventFailureReason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventFailureReason alreadyInTerminalState. - * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState - * @memberof flyteidl.admin.EventFailureReason - * @instance - */ - EventFailureReason.prototype.alreadyInTerminalState = null; - - /** - * EventFailureReason incompatibleCluster. - * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster - * @memberof flyteidl.admin.EventFailureReason - * @instance - */ - EventFailureReason.prototype.incompatibleCluster = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * EventFailureReason reason. - * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason - * @memberof flyteidl.admin.EventFailureReason - * @instance - */ - Object.defineProperty(EventFailureReason.prototype, "reason", { - get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new EventFailureReason instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set - * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance - */ - EventFailureReason.create = function create(properties) { - return new EventFailureReason(properties); - }; - - /** - * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventFailureReason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) - $root.flyteidl.admin.EventErrorAlreadyInTerminalState.encode(message.alreadyInTerminalState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) - $root.flyteidl.admin.EventErrorIncompatibleCluster.encode(message.incompatibleCluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EventFailureReason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EventFailureReason} EventFailureReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventFailureReason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventFailureReason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); - break; - case 2: - message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventFailureReason message. - * @function verify - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventFailureReason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) { - properties.reason = 1; - { - var error = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.verify(message.alreadyInTerminalState); - if (error) - return "alreadyInTerminalState." + error; - } - } - if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) { - if (properties.reason === 1) - return "reason: multiple values"; - properties.reason = 1; - { - var error = $root.flyteidl.admin.EventErrorIncompatibleCluster.verify(message.incompatibleCluster); - if (error) - return "incompatibleCluster." + error; - } - } - return null; - }; - - return EventFailureReason; - })(); - - admin.WorkflowExecutionEventRequest = (function() { - - /** - * Properties of a WorkflowExecutionEventRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionEventRequest - * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId - * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event - */ - - /** - * Constructs a new WorkflowExecutionEventRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionEventRequest. - * @implements IWorkflowExecutionEventRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set - */ - function WorkflowExecutionEventRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @instance - */ - WorkflowExecutionEventRequest.prototype.requestId = ""; - - /** - * WorkflowExecutionEventRequest event. - * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @instance - */ - WorkflowExecutionEventRequest.prototype.event = null; - - /** - * Creates a new WorkflowExecutionEventRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest instance - */ - WorkflowExecutionEventRequest.create = function create(properties) { - return new WorkflowExecutionEventRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} message WorkflowExecutionEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requestId != null && message.hasOwnProperty("requestId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); - if (message.event != null && message.hasOwnProperty("event")) - $root.flyteidl.event.WorkflowExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionEventRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.event); - if (error) - return "event." + error; - } - return null; - }; - - return WorkflowExecutionEventRequest; - })(); - - admin.WorkflowExecutionEventResponse = (function() { - - /** - * Properties of a WorkflowExecutionEventResponse. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionEventResponse - */ - - /** - * Constructs a new WorkflowExecutionEventResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionEventResponse. - * @implements IWorkflowExecutionEventResponse - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set - */ - function WorkflowExecutionEventResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowExecutionEventResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance - */ - WorkflowExecutionEventResponse.create = function create(properties) { - return new WorkflowExecutionEventResponse(properties); - }; - - /** - * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionEventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionEventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionEventResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionEventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowExecutionEventResponse; - })(); - - admin.NodeExecutionEventRequest = (function() { - - /** - * Properties of a NodeExecutionEventRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionEventRequest - * @property {string|null} [requestId] NodeExecutionEventRequest requestId - * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event - */ - - /** - * Constructs a new NodeExecutionEventRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionEventRequest. - * @implements INodeExecutionEventRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set - */ - function NodeExecutionEventRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @instance - */ - NodeExecutionEventRequest.prototype.requestId = ""; - - /** - * NodeExecutionEventRequest event. - * @member {flyteidl.event.INodeExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @instance - */ - NodeExecutionEventRequest.prototype.event = null; - - /** - * Creates a new NodeExecutionEventRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance - */ - NodeExecutionEventRequest.create = function create(properties) { - return new NodeExecutionEventRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requestId != null && message.hasOwnProperty("requestId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); - if (message.event != null && message.hasOwnProperty("event")) - $root.flyteidl.event.NodeExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionEventRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.event); - if (error) - return "event." + error; - } - return null; - }; - - return NodeExecutionEventRequest; - })(); - - admin.NodeExecutionEventResponse = (function() { - - /** - * Properties of a NodeExecutionEventResponse. - * @memberof flyteidl.admin - * @interface INodeExecutionEventResponse - */ - - /** - * Constructs a new NodeExecutionEventResponse. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionEventResponse. - * @implements INodeExecutionEventResponse - * @constructor - * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set - */ - function NodeExecutionEventResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new NodeExecutionEventResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance - */ - NodeExecutionEventResponse.create = function create(properties) { - return new NodeExecutionEventResponse(properties); - }; - - /** - * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionEventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionEventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionEventResponse message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionEventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return NodeExecutionEventResponse; - })(); - - admin.TaskExecutionEventRequest = (function() { - - /** - * Properties of a TaskExecutionEventRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionEventRequest - * @property {string|null} [requestId] TaskExecutionEventRequest requestId - * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event - */ - - /** - * Constructs a new TaskExecutionEventRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionEventRequest. - * @implements ITaskExecutionEventRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set - */ - function TaskExecutionEventRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @instance - */ - TaskExecutionEventRequest.prototype.requestId = ""; - - /** - * TaskExecutionEventRequest event. - * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @instance - */ - TaskExecutionEventRequest.prototype.event = null; - - /** - * Creates a new TaskExecutionEventRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance - */ - TaskExecutionEventRequest.create = function create(properties) { - return new TaskExecutionEventRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requestId != null && message.hasOwnProperty("requestId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); - if (message.event != null && message.hasOwnProperty("event")) - $root.flyteidl.event.TaskExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionEventRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.event); - if (error) - return "event." + error; - } - return null; - }; - - return TaskExecutionEventRequest; - })(); - - admin.TaskExecutionEventResponse = (function() { - - /** - * Properties of a TaskExecutionEventResponse. - * @memberof flyteidl.admin - * @interface ITaskExecutionEventResponse - */ - - /** - * Constructs a new TaskExecutionEventResponse. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionEventResponse. - * @implements ITaskExecutionEventResponse - * @constructor - * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set - */ - function TaskExecutionEventResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskExecutionEventResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance - */ - TaskExecutionEventResponse.create = function create(properties) { - return new TaskExecutionEventResponse(properties); - }; - - /** - * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionEventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionEventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionEventResponse message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionEventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return TaskExecutionEventResponse; - })(); - - admin.ExecutionCreateRequest = (function() { - - /** - * Properties of an ExecutionCreateRequest. - * @memberof flyteidl.admin - * @interface IExecutionCreateRequest - * @property {string|null} [project] ExecutionCreateRequest project - * @property {string|null} [domain] ExecutionCreateRequest domain - * @property {string|null} [name] ExecutionCreateRequest name - * @property {flyteidl.admin.IExecutionSpec|null} [spec] ExecutionCreateRequest spec - * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionCreateRequest inputs - * @property {string|null} [org] ExecutionCreateRequest org - */ - - /** - * Constructs a new ExecutionCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionCreateRequest. - * @implements IExecutionCreateRequest - * @constructor - * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set - */ - function ExecutionCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionCreateRequest project. - * @member {string} project - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.project = ""; - - /** - * ExecutionCreateRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.domain = ""; - - /** - * ExecutionCreateRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.name = ""; - - /** - * ExecutionCreateRequest spec. - * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.spec = null; - - /** - * ExecutionCreateRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.inputs = null; - - /** - * ExecutionCreateRequest org. - * @member {string} org - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.org = ""; - - /** - * Creates a new ExecutionCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance - */ - ExecutionCreateRequest.create = function create(properties) { - return new ExecutionCreateRequest(properties); - }; - - /** - * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); - return writer; - }; - - /** - * Decodes an ExecutionCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); - break; - case 5: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 6: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionCreateRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ExecutionCreateRequest; - })(); - - admin.ExecutionRelaunchRequest = (function() { - - /** - * Properties of an ExecutionRelaunchRequest. - * @memberof flyteidl.admin - * @interface IExecutionRelaunchRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRelaunchRequest id - * @property {string|null} [name] ExecutionRelaunchRequest name - * @property {boolean|null} [overwriteCache] ExecutionRelaunchRequest overwriteCache - */ - - /** - * Constructs a new ExecutionRelaunchRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionRelaunchRequest. - * @implements IExecutionRelaunchRequest - * @constructor - * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set - */ - function ExecutionRelaunchRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionRelaunchRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @instance - */ - ExecutionRelaunchRequest.prototype.id = null; - - /** - * ExecutionRelaunchRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @instance - */ - ExecutionRelaunchRequest.prototype.name = ""; - - /** - * ExecutionRelaunchRequest overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @instance - */ - ExecutionRelaunchRequest.prototype.overwriteCache = false; - - /** - * Creates a new ExecutionRelaunchRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance - */ - ExecutionRelaunchRequest.create = function create(properties) { - return new ExecutionRelaunchRequest(properties); - }; - - /** - * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionRelaunchRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.overwriteCache); - return writer; - }; - - /** - * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionRelaunchRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRelaunchRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.overwriteCache = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionRelaunchRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionRelaunchRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - return null; - }; - - return ExecutionRelaunchRequest; - })(); - - admin.ExecutionRecoverRequest = (function() { - - /** - * Properties of an ExecutionRecoverRequest. - * @memberof flyteidl.admin - * @interface IExecutionRecoverRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRecoverRequest id - * @property {string|null} [name] ExecutionRecoverRequest name - * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionRecoverRequest metadata - */ - - /** - * Constructs a new ExecutionRecoverRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionRecoverRequest. - * @implements IExecutionRecoverRequest - * @constructor - * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set - */ - function ExecutionRecoverRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionRecoverRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @instance - */ - ExecutionRecoverRequest.prototype.id = null; - - /** - * ExecutionRecoverRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @instance - */ - ExecutionRecoverRequest.prototype.name = ""; - - /** - * ExecutionRecoverRequest metadata. - * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @instance - */ - ExecutionRecoverRequest.prototype.metadata = null; - - /** - * Creates a new ExecutionRecoverRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest instance - */ - ExecutionRecoverRequest.create = function create(properties) { - return new ExecutionRecoverRequest(properties); - }; - - /** - * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {flyteidl.admin.IExecutionRecoverRequest} message ExecutionRecoverRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionRecoverRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionRecoverRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRecoverRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionRecoverRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionRecoverRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return ExecutionRecoverRequest; - })(); - - admin.ExecutionCreateResponse = (function() { - - /** - * Properties of an ExecutionCreateResponse. - * @memberof flyteidl.admin - * @interface IExecutionCreateResponse - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id - */ - - /** - * Constructs a new ExecutionCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionCreateResponse. - * @implements IExecutionCreateResponse - * @constructor - * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set - */ - function ExecutionCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionCreateResponse id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionCreateResponse - * @instance - */ - ExecutionCreateResponse.prototype.id = null; - - /** - * Creates a new ExecutionCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance - */ - ExecutionCreateResponse.create = function create(properties) { - return new ExecutionCreateResponse(properties); - }; - - /** - * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionCreateResponse message. - * @function verify - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ExecutionCreateResponse; - })(); - - admin.WorkflowExecutionGetRequest = (function() { - - /** - * Properties of a WorkflowExecutionGetRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id - */ - - /** - * Constructs a new WorkflowExecutionGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetRequest. - * @implements IWorkflowExecutionGetRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set - */ - function WorkflowExecutionGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @instance - */ - WorkflowExecutionGetRequest.prototype.id = null; - - /** - * Creates a new WorkflowExecutionGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance - */ - WorkflowExecutionGetRequest.create = function create(properties) { - return new WorkflowExecutionGetRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return WorkflowExecutionGetRequest; - })(); - - admin.Execution = (function() { - - /** - * Properties of an Execution. - * @memberof flyteidl.admin - * @interface IExecution - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] Execution id - * @property {flyteidl.admin.IExecutionSpec|null} [spec] Execution spec - * @property {flyteidl.admin.IExecutionClosure|null} [closure] Execution closure - */ - - /** - * Constructs a new Execution. - * @memberof flyteidl.admin - * @classdesc Represents an Execution. - * @implements IExecution - * @constructor - * @param {flyteidl.admin.IExecution=} [properties] Properties to set - */ - function Execution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Execution id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.Execution - * @instance - */ - Execution.prototype.id = null; - - /** - * Execution spec. - * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec - * @memberof flyteidl.admin.Execution - * @instance - */ - Execution.prototype.spec = null; - - /** - * Execution closure. - * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.Execution - * @instance - */ - Execution.prototype.closure = null; - - /** - * Creates a new Execution instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Execution - * @static - * @param {flyteidl.admin.IExecution=} [properties] Properties to set - * @returns {flyteidl.admin.Execution} Execution instance - */ - Execution.create = function create(properties) { - return new Execution(properties); - }; - - /** - * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Execution - * @static - * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Execution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.ExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Execution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Execution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Execution} Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Execution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Execution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); - break; - case 3: - message.closure = $root.flyteidl.admin.ExecutionClosure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Execution message. - * @function verify - * @memberof flyteidl.admin.Execution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Execution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.ExecutionClosure.verify(message.closure); - if (error) - return "closure." + error; - } - return null; - }; - - return Execution; - })(); - - admin.ExecutionList = (function() { - - /** - * Properties of an ExecutionList. - * @memberof flyteidl.admin - * @interface IExecutionList - * @property {Array.|null} [executions] ExecutionList executions - * @property {string|null} [token] ExecutionList token - */ - - /** - * Constructs a new ExecutionList. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionList. - * @implements IExecutionList - * @constructor - * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set - */ - function ExecutionList(properties) { - this.executions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionList executions. - * @member {Array.} executions - * @memberof flyteidl.admin.ExecutionList - * @instance - */ - ExecutionList.prototype.executions = $util.emptyArray; - - /** - * ExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.ExecutionList - * @instance - */ - ExecutionList.prototype.token = ""; - - /** - * Creates a new ExecutionList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionList} ExecutionList instance - */ - ExecutionList.create = function create(properties) { - return new ExecutionList(properties); - }; - - /** - * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.flyteidl.admin.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes an ExecutionList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionList} ExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.flyteidl.admin.Execution.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionList message. - * @function verify - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.flyteidl.admin.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return ExecutionList; - })(); - - admin.LiteralMapBlob = (function() { - - /** - * Properties of a LiteralMapBlob. - * @memberof flyteidl.admin - * @interface ILiteralMapBlob - * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values - * @property {string|null} [uri] LiteralMapBlob uri - */ - - /** - * Constructs a new LiteralMapBlob. - * @memberof flyteidl.admin - * @classdesc Represents a LiteralMapBlob. - * @implements ILiteralMapBlob - * @constructor - * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set - */ - function LiteralMapBlob(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralMapBlob values. - * @member {flyteidl.core.ILiteralMap|null|undefined} values - * @memberof flyteidl.admin.LiteralMapBlob - * @instance - */ - LiteralMapBlob.prototype.values = null; - - /** - * LiteralMapBlob uri. - * @member {string} uri - * @memberof flyteidl.admin.LiteralMapBlob - * @instance - */ - LiteralMapBlob.prototype.uri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LiteralMapBlob data. - * @member {"values"|"uri"|undefined} data - * @memberof flyteidl.admin.LiteralMapBlob - * @instance - */ - Object.defineProperty(LiteralMapBlob.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LiteralMapBlob instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set - * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance - */ - LiteralMapBlob.create = function create(properties) { - return new LiteralMapBlob(properties); - }; - - /** - * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralMapBlob.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.hasOwnProperty("values")) - $root.flyteidl.core.LiteralMap.encode(message.values, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - return writer; - }; - - /** - * Decodes a LiteralMapBlob message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralMapBlob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LiteralMapBlob(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.values = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.uri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralMapBlob message. - * @function verify - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralMapBlob.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.values != null && message.hasOwnProperty("values")) { - properties.data = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.values); - if (error) - return "values." + error; - } - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - return null; - }; - - return LiteralMapBlob; - })(); - - admin.AbortMetadata = (function() { - - /** - * Properties of an AbortMetadata. - * @memberof flyteidl.admin - * @interface IAbortMetadata - * @property {string|null} [cause] AbortMetadata cause - * @property {string|null} [principal] AbortMetadata principal - */ - - /** - * Constructs a new AbortMetadata. - * @memberof flyteidl.admin - * @classdesc Represents an AbortMetadata. - * @implements IAbortMetadata - * @constructor - * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set - */ - function AbortMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AbortMetadata cause. - * @member {string} cause - * @memberof flyteidl.admin.AbortMetadata - * @instance - */ - AbortMetadata.prototype.cause = ""; - - /** - * AbortMetadata principal. - * @member {string} principal - * @memberof flyteidl.admin.AbortMetadata - * @instance - */ - AbortMetadata.prototype.principal = ""; - - /** - * Creates a new AbortMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.AbortMetadata} AbortMetadata instance - */ - AbortMetadata.create = function create(properties) { - return new AbortMetadata(properties); - }; - - /** - * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {flyteidl.admin.IAbortMetadata} message AbortMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AbortMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cause != null && message.hasOwnProperty("cause")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cause); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); - return writer; - }; - - /** - * Decodes an AbortMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.AbortMetadata} AbortMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AbortMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AbortMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cause = reader.string(); - break; - case 2: - message.principal = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an AbortMetadata message. - * @function verify - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AbortMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cause != null && message.hasOwnProperty("cause")) - if (!$util.isString(message.cause)) - return "cause: string expected"; - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - return null; - }; - - return AbortMetadata; - })(); - - admin.ExecutionClosure = (function() { - - /** - * Properties of an ExecutionClosure. - * @memberof flyteidl.admin - * @interface IExecutionClosure - * @property {flyteidl.admin.ILiteralMapBlob|null} [outputs] ExecutionClosure outputs - * @property {flyteidl.core.IExecutionError|null} [error] ExecutionClosure error - * @property {string|null} [abortCause] ExecutionClosure abortCause - * @property {flyteidl.admin.IAbortMetadata|null} [abortMetadata] ExecutionClosure abortMetadata - * @property {flyteidl.core.ILiteralMap|null} [outputData] ExecutionClosure outputData - * @property {flyteidl.core.ILiteralMap|null} [computedInputs] ExecutionClosure computedInputs - * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] ExecutionClosure phase - * @property {google.protobuf.ITimestamp|null} [startedAt] ExecutionClosure startedAt - * @property {google.protobuf.IDuration|null} [duration] ExecutionClosure duration - * @property {google.protobuf.ITimestamp|null} [createdAt] ExecutionClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] ExecutionClosure updatedAt - * @property {Array.|null} [notifications] ExecutionClosure notifications - * @property {flyteidl.core.IIdentifier|null} [workflowId] ExecutionClosure workflowId - * @property {flyteidl.admin.IExecutionStateChangeDetails|null} [stateChangeDetails] ExecutionClosure stateChangeDetails - */ - - /** - * Constructs a new ExecutionClosure. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionClosure. - * @implements IExecutionClosure - * @constructor - * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set - */ - function ExecutionClosure(properties) { - this.notifications = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionClosure outputs. - * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.outputs = null; - - /** - * ExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.error = null; - - /** - * ExecutionClosure abortCause. - * @member {string} abortCause - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.abortCause = ""; - - /** - * ExecutionClosure abortMetadata. - * @member {flyteidl.admin.IAbortMetadata|null|undefined} abortMetadata - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.abortMetadata = null; - - /** - * ExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.outputData = null; - - /** - * ExecutionClosure computedInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.computedInputs = null; - - /** - * ExecutionClosure phase. - * @member {flyteidl.core.WorkflowExecution.Phase} phase - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.phase = 0; - - /** - * ExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.startedAt = null; - - /** - * ExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.duration = null; - - /** - * ExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.createdAt = null; - - /** - * ExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.updatedAt = null; - - /** - * ExecutionClosure notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.notifications = $util.emptyArray; - - /** - * ExecutionClosure workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.workflowId = null; - - /** - * ExecutionClosure stateChangeDetails. - * @member {flyteidl.admin.IExecutionStateChangeDetails|null|undefined} stateChangeDetails - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.stateChangeDetails = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecutionClosure outputResult. - * @member {"outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - Object.defineProperty(ExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputs", "error", "abortCause", "abortMetadata", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecutionClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance - */ - ExecutionClosure.create = function create(properties) { - return new ExecutionClosure(properties); - }; - - /** - * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.LiteralMapBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) - $root.flyteidl.core.LiteralMap.encode(message.computedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); - if (message.startedAt != null && message.hasOwnProperty("startedAt")) - $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.abortCause != null && message.hasOwnProperty("abortCause")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.abortCause); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) - $root.flyteidl.admin.AbortMetadata.encode(message.abortMetadata, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) - $root.flyteidl.admin.ExecutionStateChangeDetails.encode(message.stateChangeDetails, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputs = $root.flyteidl.admin.LiteralMapBlob.decode(reader, reader.uint32()); - break; - case 2: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 10: - message.abortCause = reader.string(); - break; - case 12: - message.abortMetadata = $root.flyteidl.admin.AbortMetadata.decode(reader, reader.uint32()); - break; - case 13: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.computedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.phase = reader.int32(); - break; - case 5: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 7: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); - break; - case 11: - message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 14: - message.stateChangeDetails = $root.flyteidl.admin.ExecutionStateChangeDetails.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionClosure message. - * @function verify - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - properties.outputResult = 1; - { - var error = $root.flyteidl.admin.LiteralMapBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.abortCause != null && message.hasOwnProperty("abortCause")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - if (!$util.isString(message.abortCause)) - return "abortCause: string expected"; - } - if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.admin.AbortMetadata.verify(message.abortMetadata); - if (error) - return "abortMetadata." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.computedInputs); - if (error) - return "computedInputs." + error; - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.startedAt != null && message.hasOwnProperty("startedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.startedAt); - if (error) - return "startedAt." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); - if (error) - return "notifications." + error; - } - } - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - var error = $root.flyteidl.core.Identifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) { - var error = $root.flyteidl.admin.ExecutionStateChangeDetails.verify(message.stateChangeDetails); - if (error) - return "stateChangeDetails." + error; - } - return null; - }; - - return ExecutionClosure; - })(); - - admin.SystemMetadata = (function() { - - /** - * Properties of a SystemMetadata. - * @memberof flyteidl.admin - * @interface ISystemMetadata - * @property {string|null} [executionCluster] SystemMetadata executionCluster - * @property {string|null} [namespace] SystemMetadata namespace - */ - - /** - * Constructs a new SystemMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a SystemMetadata. - * @implements ISystemMetadata - * @constructor - * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set - */ - function SystemMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SystemMetadata executionCluster. - * @member {string} executionCluster - * @memberof flyteidl.admin.SystemMetadata - * @instance - */ - SystemMetadata.prototype.executionCluster = ""; - - /** - * SystemMetadata namespace. - * @member {string} namespace - * @memberof flyteidl.admin.SystemMetadata - * @instance - */ - SystemMetadata.prototype.namespace = ""; - - /** - * Creates a new SystemMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.SystemMetadata} SystemMetadata instance - */ - SystemMetadata.create = function create(properties) { - return new SystemMetadata(properties); - }; - - /** - * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {flyteidl.admin.ISystemMetadata} message SystemMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SystemMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionCluster); - if (message.namespace != null && message.hasOwnProperty("namespace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); - return writer; - }; - - /** - * Decodes a SystemMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SystemMetadata} SystemMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SystemMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SystemMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionCluster = reader.string(); - break; - case 2: - message.namespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SystemMetadata message. - * @function verify - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SystemMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) - if (!$util.isString(message.executionCluster)) - return "executionCluster: string expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - return null; - }; - - return SystemMetadata; - })(); - - admin.ExecutionMetadata = (function() { - - /** - * Properties of an ExecutionMetadata. - * @memberof flyteidl.admin - * @interface IExecutionMetadata - * @property {flyteidl.admin.ExecutionMetadata.ExecutionMode|null} [mode] ExecutionMetadata mode - * @property {string|null} [principal] ExecutionMetadata principal - * @property {number|null} [nesting] ExecutionMetadata nesting - * @property {google.protobuf.ITimestamp|null} [scheduledAt] ExecutionMetadata scheduledAt - * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] ExecutionMetadata parentNodeExecution - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] ExecutionMetadata referenceExecution - * @property {flyteidl.admin.ISystemMetadata|null} [systemMetadata] ExecutionMetadata systemMetadata - * @property {Array.|null} [artifactIds] ExecutionMetadata artifactIds - */ - - /** - * Constructs a new ExecutionMetadata. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionMetadata. - * @implements IExecutionMetadata - * @constructor - * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set - */ - function ExecutionMetadata(properties) { - this.artifactIds = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionMetadata mode. - * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.mode = 0; - - /** - * ExecutionMetadata principal. - * @member {string} principal - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.principal = ""; - - /** - * ExecutionMetadata nesting. - * @member {number} nesting - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.nesting = 0; - - /** - * ExecutionMetadata scheduledAt. - * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.scheduledAt = null; - - /** - * ExecutionMetadata parentNodeExecution. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.parentNodeExecution = null; - - /** - * ExecutionMetadata referenceExecution. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.referenceExecution = null; - - /** - * ExecutionMetadata systemMetadata. - * @member {flyteidl.admin.ISystemMetadata|null|undefined} systemMetadata - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.systemMetadata = null; - - /** - * ExecutionMetadata artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.artifactIds = $util.emptyArray; - - /** - * Creates a new ExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata instance - */ - ExecutionMetadata.create = function create(properties) { - return new ExecutionMetadata(properties); - }; - - /** - * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mode != null && message.hasOwnProperty("mode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); - if (message.nesting != null && message.hasOwnProperty("nesting")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.nesting); - if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) - $root.google.protobuf.Timestamp.encode(message.scheduledAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) - $root.flyteidl.admin.SystemMetadata.encode(message.systemMetadata, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = reader.int32(); - break; - case 2: - message.principal = reader.string(); - break; - case 3: - message.nesting = reader.uint32(); - break; - case 4: - message.scheduledAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 16: - message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 17: - message.systemMetadata = $root.flyteidl.admin.SystemMetadata.decode(reader, reader.uint32()); - break; - case 18: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionMetadata message. - * @function verify - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mode != null && message.hasOwnProperty("mode")) - switch (message.mode) { - default: - return "mode: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.nesting != null && message.hasOwnProperty("nesting")) - if (!$util.isInteger(message.nesting)) - return "nesting: integer expected"; - if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); - if (error) - return "scheduledAt." + error; - } - if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecution); - if (error) - return "parentNodeExecution." + error; - } - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); - if (error) - return "referenceExecution." + error; - } - if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) { - var error = $root.flyteidl.admin.SystemMetadata.verify(message.systemMetadata); - if (error) - return "systemMetadata." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - return null; - }; - - /** - * ExecutionMode enum. - * @name flyteidl.admin.ExecutionMetadata.ExecutionMode - * @enum {string} - * @property {number} MANUAL=0 MANUAL value - * @property {number} SCHEDULED=1 SCHEDULED value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} RELAUNCH=3 RELAUNCH value - * @property {number} CHILD_WORKFLOW=4 CHILD_WORKFLOW value - * @property {number} RECOVERED=5 RECOVERED value - */ - ExecutionMetadata.ExecutionMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MANUAL"] = 0; - values[valuesById[1] = "SCHEDULED"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "RELAUNCH"] = 3; - values[valuesById[4] = "CHILD_WORKFLOW"] = 4; - values[valuesById[5] = "RECOVERED"] = 5; - return values; - })(); - - return ExecutionMetadata; - })(); - - admin.NotificationList = (function() { - - /** - * Properties of a NotificationList. - * @memberof flyteidl.admin - * @interface INotificationList - * @property {Array.|null} [notifications] NotificationList notifications - */ - - /** - * Constructs a new NotificationList. - * @memberof flyteidl.admin - * @classdesc Represents a NotificationList. - * @implements INotificationList - * @constructor - * @param {flyteidl.admin.INotificationList=} [properties] Properties to set - */ - function NotificationList(properties) { - this.notifications = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NotificationList notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.NotificationList - * @instance - */ - NotificationList.prototype.notifications = $util.emptyArray; - - /** - * Creates a new NotificationList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NotificationList - * @static - * @param {flyteidl.admin.INotificationList=} [properties] Properties to set - * @returns {flyteidl.admin.NotificationList} NotificationList instance - */ - NotificationList.create = function create(properties) { - return new NotificationList(properties); - }; - - /** - * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NotificationList - * @static - * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NotificationList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NotificationList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NotificationList} NotificationList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NotificationList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NotificationList message. - * @function verify - * @memberof flyteidl.admin.NotificationList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NotificationList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); - if (error) - return "notifications." + error; - } - } - return null; - }; - - return NotificationList; - })(); - - admin.ExecutionSpec = (function() { - - /** - * Properties of an ExecutionSpec. - * @memberof flyteidl.admin - * @interface IExecutionSpec - * @property {flyteidl.core.IIdentifier|null} [launchPlan] ExecutionSpec launchPlan - * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionSpec inputs - * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionSpec metadata - * @property {flyteidl.admin.INotificationList|null} [notifications] ExecutionSpec notifications - * @property {boolean|null} [disableAll] ExecutionSpec disableAll - * @property {flyteidl.admin.ILabels|null} [labels] ExecutionSpec labels - * @property {flyteidl.admin.IAnnotations|null} [annotations] ExecutionSpec annotations - * @property {flyteidl.core.ISecurityContext|null} [securityContext] ExecutionSpec securityContext - * @property {flyteidl.admin.IAuthRole|null} [authRole] ExecutionSpec authRole - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] ExecutionSpec qualityOfService - * @property {number|null} [maxParallelism] ExecutionSpec maxParallelism - * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] ExecutionSpec rawOutputDataConfig - * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] ExecutionSpec clusterAssignment - * @property {google.protobuf.IBoolValue|null} [interruptible] ExecutionSpec interruptible - * @property {boolean|null} [overwriteCache] ExecutionSpec overwriteCache - * @property {flyteidl.admin.IEnvs|null} [envs] ExecutionSpec envs - * @property {Array.|null} [tags] ExecutionSpec tags - */ - - /** - * Constructs a new ExecutionSpec. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionSpec. - * @implements IExecutionSpec - * @constructor - * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set - */ - function ExecutionSpec(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionSpec launchPlan. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlan - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.launchPlan = null; - - /** - * ExecutionSpec inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.inputs = null; - - /** - * ExecutionSpec metadata. - * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.metadata = null; - - /** - * ExecutionSpec notifications. - * @member {flyteidl.admin.INotificationList|null|undefined} notifications - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.notifications = null; - - /** - * ExecutionSpec disableAll. - * @member {boolean} disableAll - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.disableAll = false; - - /** - * ExecutionSpec labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.labels = null; - - /** - * ExecutionSpec annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.annotations = null; - - /** - * ExecutionSpec securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.securityContext = null; - - /** - * ExecutionSpec authRole. - * @member {flyteidl.admin.IAuthRole|null|undefined} authRole - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.authRole = null; - - /** - * ExecutionSpec qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.qualityOfService = null; - - /** - * ExecutionSpec maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.maxParallelism = 0; - - /** - * ExecutionSpec rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.rawOutputDataConfig = null; - - /** - * ExecutionSpec clusterAssignment. - * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.clusterAssignment = null; - - /** - * ExecutionSpec interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.interruptible = null; - - /** - * ExecutionSpec overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.overwriteCache = false; - - /** - * ExecutionSpec envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.envs = null; - - /** - * ExecutionSpec tags. - * @member {Array.} tags - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.tags = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecutionSpec notificationOverrides. - * @member {"notifications"|"disableAll"|undefined} notificationOverrides - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - Object.defineProperty(ExecutionSpec.prototype, "notificationOverrides", { - get: $util.oneOfGetter($oneOfFields = ["notifications", "disableAll"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecutionSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance - */ - ExecutionSpec.create = function create(properties) { - return new ExecutionSpec(properties); - }; - - /** - * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) - $root.flyteidl.core.Identifier.encode(message.launchPlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.notifications != null && message.hasOwnProperty("notifications")) - $root.flyteidl.admin.NotificationList.encode(message.notifications, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.disableAll != null && message.hasOwnProperty("disableAll")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disableAll); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.authRole != null && message.hasOwnProperty("authRole")) - $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) - $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) - $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.overwriteCache); - if (message.envs != null && message.hasOwnProperty("envs")) - $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 24, wireType 2 =*/194).string(message.tags[i]); - return writer; - }; - - /** - * Decodes an ExecutionSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); - break; - case 5: - message.notifications = $root.flyteidl.admin.NotificationList.decode(reader, reader.uint32()); - break; - case 6: - message.disableAll = reader.bool(); - break; - case 7: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 8: - message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); - break; - case 10: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 16: - message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); - break; - case 17: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 18: - message.maxParallelism = reader.int32(); - break; - case 19: - message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); - break; - case 20: - message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); - break; - case 21: - message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 22: - message.overwriteCache = reader.bool(); - break; - case 23: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); - break; - case 24: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionSpec message. - * @function verify - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlan); - if (error) - return "launchPlan." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - properties.notificationOverrides = 1; - { - var error = $root.flyteidl.admin.NotificationList.verify(message.notifications); - if (error) - return "notifications." + error; - } - } - if (message.disableAll != null && message.hasOwnProperty("disableAll")) { - if (properties.notificationOverrides === 1) - return "notificationOverrides: multiple values"; - properties.notificationOverrides = 1; - if (typeof message.disableAll !== "boolean") - return "disableAll: boolean expected"; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.flyteidl.admin.Annotations.verify(message.annotations); - if (error) - return "annotations." + error; - } - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.authRole != null && message.hasOwnProperty("authRole")) { - var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); - if (error) - return "authRole." + error; - } - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - if (!$util.isInteger(message.maxParallelism)) - return "maxParallelism: integer expected"; - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { - var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); - if (error) - return "rawOutputDataConfig." + error; - } - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { - var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); - if (error) - return "clusterAssignment." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; - } - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - if (message.envs != null && message.hasOwnProperty("envs")) { - var error = $root.flyteidl.admin.Envs.verify(message.envs); - if (error) - return "envs." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - return ExecutionSpec; - })(); - - admin.ExecutionTerminateRequest = (function() { - - /** - * Properties of an ExecutionTerminateRequest. - * @memberof flyteidl.admin - * @interface IExecutionTerminateRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id - * @property {string|null} [cause] ExecutionTerminateRequest cause - */ - - /** - * Constructs a new ExecutionTerminateRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionTerminateRequest. - * @implements IExecutionTerminateRequest - * @constructor - * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set - */ - function ExecutionTerminateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionTerminateRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @instance - */ - ExecutionTerminateRequest.prototype.id = null; - - /** - * ExecutionTerminateRequest cause. - * @member {string} cause - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @instance - */ - ExecutionTerminateRequest.prototype.cause = ""; - - /** - * Creates a new ExecutionTerminateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance - */ - ExecutionTerminateRequest.create = function create(properties) { - return new ExecutionTerminateRequest(properties); - }; - - /** - * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionTerminateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.cause != null && message.hasOwnProperty("cause")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cause); - return writer; - }; - - /** - * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionTerminateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.cause = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionTerminateRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionTerminateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.cause != null && message.hasOwnProperty("cause")) - if (!$util.isString(message.cause)) - return "cause: string expected"; - return null; - }; - - return ExecutionTerminateRequest; - })(); - - admin.ExecutionTerminateResponse = (function() { - - /** - * Properties of an ExecutionTerminateResponse. - * @memberof flyteidl.admin - * @interface IExecutionTerminateResponse - */ - - /** - * Constructs a new ExecutionTerminateResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionTerminateResponse. - * @implements IExecutionTerminateResponse - * @constructor - * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set - */ - function ExecutionTerminateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ExecutionTerminateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse instance - */ - ExecutionTerminateResponse.create = function create(properties) { - return new ExecutionTerminateResponse(properties); - }; - - /** - * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {flyteidl.admin.IExecutionTerminateResponse} message ExecutionTerminateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionTerminateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionTerminateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionTerminateResponse message. - * @function verify - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionTerminateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ExecutionTerminateResponse; - })(); - - admin.WorkflowExecutionGetDataRequest = (function() { - - /** - * Properties of a WorkflowExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetDataRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id - */ - - /** - * Constructs a new WorkflowExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetDataRequest. - * @implements IWorkflowExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set - */ - function WorkflowExecutionGetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetDataRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @instance - */ - WorkflowExecutionGetDataRequest.prototype.id = null; - - /** - * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance - */ - WorkflowExecutionGetDataRequest.create = function create(properties) { - return new WorkflowExecutionGetDataRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetDataRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return WorkflowExecutionGetDataRequest; - })(); - - admin.WorkflowExecutionGetDataResponse = (function() { - - /** - * Properties of a WorkflowExecutionGetDataResponse. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetDataResponse - * @property {flyteidl.admin.IUrlBlob|null} [outputs] WorkflowExecutionGetDataResponse outputs - * @property {flyteidl.admin.IUrlBlob|null} [inputs] WorkflowExecutionGetDataResponse inputs - * @property {flyteidl.core.ILiteralMap|null} [fullInputs] WorkflowExecutionGetDataResponse fullInputs - * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] WorkflowExecutionGetDataResponse fullOutputs - */ - - /** - * Constructs a new WorkflowExecutionGetDataResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetDataResponse. - * @implements IWorkflowExecutionGetDataResponse - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set - */ - function WorkflowExecutionGetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetDataResponse outputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.outputs = null; - - /** - * WorkflowExecutionGetDataResponse inputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.inputs = null; - - /** - * WorkflowExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.fullInputs = null; - - /** - * WorkflowExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.fullOutputs = null; - - /** - * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance - */ - WorkflowExecutionGetDataResponse.create = function create(properties) { - return new WorkflowExecutionGetDataResponse(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 2: - message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetDataResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); - if (error) - return "fullInputs." + error; - } - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); - if (error) - return "fullOutputs." + error; - } - return null; - }; - - return WorkflowExecutionGetDataResponse; - })(); - - /** - * ExecutionState enum. - * @name flyteidl.admin.ExecutionState - * @enum {string} - * @property {number} EXECUTION_ACTIVE=0 EXECUTION_ACTIVE value - * @property {number} EXECUTION_ARCHIVED=1 EXECUTION_ARCHIVED value - */ - admin.ExecutionState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EXECUTION_ACTIVE"] = 0; - values[valuesById[1] = "EXECUTION_ARCHIVED"] = 1; - return values; - })(); - - admin.ExecutionUpdateRequest = (function() { - - /** - * Properties of an ExecutionUpdateRequest. - * @memberof flyteidl.admin - * @interface IExecutionUpdateRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionUpdateRequest id - * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionUpdateRequest state - */ - - /** - * Constructs a new ExecutionUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionUpdateRequest. - * @implements IExecutionUpdateRequest - * @constructor - * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set - */ - function ExecutionUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionUpdateRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @instance - */ - ExecutionUpdateRequest.prototype.id = null; - - /** - * ExecutionUpdateRequest state. - * @member {flyteidl.admin.ExecutionState} state - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @instance - */ - ExecutionUpdateRequest.prototype.state = 0; - - /** - * Creates a new ExecutionUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest instance - */ - ExecutionUpdateRequest.create = function create(properties) { - return new ExecutionUpdateRequest(properties); - }; - - /** - * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {flyteidl.admin.IExecutionUpdateRequest} message ExecutionUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - return ExecutionUpdateRequest; - })(); - - admin.ExecutionStateChangeDetails = (function() { - - /** - * Properties of an ExecutionStateChangeDetails. - * @memberof flyteidl.admin - * @interface IExecutionStateChangeDetails - * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionStateChangeDetails state - * @property {google.protobuf.ITimestamp|null} [occurredAt] ExecutionStateChangeDetails occurredAt - * @property {string|null} [principal] ExecutionStateChangeDetails principal - */ - - /** - * Constructs a new ExecutionStateChangeDetails. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionStateChangeDetails. - * @implements IExecutionStateChangeDetails - * @constructor - * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set - */ - function ExecutionStateChangeDetails(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionStateChangeDetails state. - * @member {flyteidl.admin.ExecutionState} state - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @instance - */ - ExecutionStateChangeDetails.prototype.state = 0; - - /** - * ExecutionStateChangeDetails occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @instance - */ - ExecutionStateChangeDetails.prototype.occurredAt = null; - - /** - * ExecutionStateChangeDetails principal. - * @member {string} principal - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @instance - */ - ExecutionStateChangeDetails.prototype.principal = ""; - - /** - * Creates a new ExecutionStateChangeDetails instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails instance - */ - ExecutionStateChangeDetails.create = function create(properties) { - return new ExecutionStateChangeDetails(properties); - }; - - /** - * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {flyteidl.admin.IExecutionStateChangeDetails} message ExecutionStateChangeDetails message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionStateChangeDetails.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.principal); - return writer; - }; - - /** - * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionStateChangeDetails.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionStateChangeDetails(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.principal = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionStateChangeDetails message. - * @function verify - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionStateChangeDetails.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - return null; - }; - - return ExecutionStateChangeDetails; - })(); - - admin.ExecutionUpdateResponse = (function() { - - /** - * Properties of an ExecutionUpdateResponse. - * @memberof flyteidl.admin - * @interface IExecutionUpdateResponse - */ - - /** - * Constructs a new ExecutionUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionUpdateResponse. - * @implements IExecutionUpdateResponse - * @constructor - * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set - */ - function ExecutionUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ExecutionUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse instance - */ - ExecutionUpdateResponse.create = function create(properties) { - return new ExecutionUpdateResponse(properties); - }; - - /** - * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {flyteidl.admin.IExecutionUpdateResponse} message ExecutionUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ExecutionUpdateResponse; - })(); - - admin.WorkflowExecutionGetMetricsRequest = (function() { - - /** - * Properties of a WorkflowExecutionGetMetricsRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetMetricsRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetMetricsRequest id - * @property {number|null} [depth] WorkflowExecutionGetMetricsRequest depth - */ - - /** - * Constructs a new WorkflowExecutionGetMetricsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetMetricsRequest. - * @implements IWorkflowExecutionGetMetricsRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set - */ - function WorkflowExecutionGetMetricsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetMetricsRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @instance - */ - WorkflowExecutionGetMetricsRequest.prototype.id = null; - - /** - * WorkflowExecutionGetMetricsRequest depth. - * @member {number} depth - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @instance - */ - WorkflowExecutionGetMetricsRequest.prototype.depth = 0; - - /** - * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest instance - */ - WorkflowExecutionGetMetricsRequest.create = function create(properties) { - return new WorkflowExecutionGetMetricsRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} message WorkflowExecutionGetMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetMetricsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.depth != null && message.hasOwnProperty("depth")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.depth); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetMetricsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.depth = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetMetricsRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetMetricsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.depth != null && message.hasOwnProperty("depth")) - if (!$util.isInteger(message.depth)) - return "depth: integer expected"; - return null; - }; - - return WorkflowExecutionGetMetricsRequest; - })(); - - admin.WorkflowExecutionGetMetricsResponse = (function() { - - /** - * Properties of a WorkflowExecutionGetMetricsResponse. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetMetricsResponse - * @property {flyteidl.core.ISpan|null} [span] WorkflowExecutionGetMetricsResponse span - */ - - /** - * Constructs a new WorkflowExecutionGetMetricsResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetMetricsResponse. - * @implements IWorkflowExecutionGetMetricsResponse - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set - */ - function WorkflowExecutionGetMetricsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetMetricsResponse span. - * @member {flyteidl.core.ISpan|null|undefined} span - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @instance - */ - WorkflowExecutionGetMetricsResponse.prototype.span = null; - - /** - * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse instance - */ - WorkflowExecutionGetMetricsResponse.create = function create(properties) { - return new WorkflowExecutionGetMetricsResponse(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse} message WorkflowExecutionGetMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetMetricsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.span != null && message.hasOwnProperty("span")) - $root.flyteidl.core.Span.encode(message.span, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetMetricsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.span = $root.flyteidl.core.Span.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetMetricsResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetMetricsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.span != null && message.hasOwnProperty("span")) { - var error = $root.flyteidl.core.Span.verify(message.span); - if (error) - return "span." + error; - } - return null; - }; - - return WorkflowExecutionGetMetricsResponse; - })(); - - admin.LaunchPlanCreateRequest = (function() { - - /** - * Properties of a LaunchPlanCreateRequest. - * @memberof flyteidl.admin - * @interface ILaunchPlanCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id - * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec - */ - - /** - * Constructs a new LaunchPlanCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanCreateRequest. - * @implements ILaunchPlanCreateRequest - * @constructor - * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set - */ - function LaunchPlanCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @instance - */ - LaunchPlanCreateRequest.prototype.id = null; - - /** - * LaunchPlanCreateRequest spec. - * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @instance - */ - LaunchPlanCreateRequest.prototype.spec = null; - - /** - * Creates a new LaunchPlanCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance - */ - LaunchPlanCreateRequest.create = function create(properties) { - return new LaunchPlanCreateRequest(properties); - }; - - /** - * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanCreateRequest message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); - if (error) - return "spec." + error; - } - return null; - }; - - return LaunchPlanCreateRequest; - })(); - - admin.LaunchPlanCreateResponse = (function() { - - /** - * Properties of a LaunchPlanCreateResponse. - * @memberof flyteidl.admin - * @interface ILaunchPlanCreateResponse - */ - - /** - * Constructs a new LaunchPlanCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanCreateResponse. - * @implements ILaunchPlanCreateResponse - * @constructor - * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set - */ - function LaunchPlanCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new LaunchPlanCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance - */ - LaunchPlanCreateResponse.create = function create(properties) { - return new LaunchPlanCreateResponse(properties); - }; - - /** - * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanCreateResponse message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return LaunchPlanCreateResponse; - })(); - - /** - * LaunchPlanState enum. - * @name flyteidl.admin.LaunchPlanState - * @enum {string} - * @property {number} INACTIVE=0 INACTIVE value - * @property {number} ACTIVE=1 ACTIVE value - */ - admin.LaunchPlanState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INACTIVE"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - return values; - })(); - - admin.LaunchPlan = (function() { - - /** - * Properties of a LaunchPlan. - * @memberof flyteidl.admin - * @interface ILaunchPlan - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlan id - * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlan spec - * @property {flyteidl.admin.ILaunchPlanClosure|null} [closure] LaunchPlan closure - */ - - /** - * Constructs a new LaunchPlan. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlan. - * @implements ILaunchPlan - * @constructor - * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set - */ - function LaunchPlan(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlan id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlan - * @instance - */ - LaunchPlan.prototype.id = null; - - /** - * LaunchPlan spec. - * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec - * @memberof flyteidl.admin.LaunchPlan - * @instance - */ - LaunchPlan.prototype.spec = null; - - /** - * LaunchPlan closure. - * @member {flyteidl.admin.ILaunchPlanClosure|null|undefined} closure - * @memberof flyteidl.admin.LaunchPlan - * @instance - */ - LaunchPlan.prototype.closure = null; - - /** - * Creates a new LaunchPlan instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance - */ - LaunchPlan.create = function create(properties) { - return new LaunchPlan(properties); - }; - - /** - * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.LaunchPlanClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlan message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlan} LaunchPlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlan.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlan(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); - break; - case 3: - message.closure = $root.flyteidl.admin.LaunchPlanClosure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlan message. - * @function verify - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlan.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.LaunchPlanClosure.verify(message.closure); - if (error) - return "closure." + error; - } - return null; - }; - - return LaunchPlan; - })(); - - admin.LaunchPlanList = (function() { - - /** - * Properties of a LaunchPlanList. - * @memberof flyteidl.admin - * @interface ILaunchPlanList - * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans - * @property {string|null} [token] LaunchPlanList token - */ - - /** - * Constructs a new LaunchPlanList. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanList. - * @implements ILaunchPlanList - * @constructor - * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set - */ - function LaunchPlanList(properties) { - this.launchPlans = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanList launchPlans. - * @member {Array.} launchPlans - * @memberof flyteidl.admin.LaunchPlanList - * @instance - */ - LaunchPlanList.prototype.launchPlans = $util.emptyArray; - - /** - * LaunchPlanList token. - * @member {string} token - * @memberof flyteidl.admin.LaunchPlanList - * @instance - */ - LaunchPlanList.prototype.token = ""; - - /** - * Creates a new LaunchPlanList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance - */ - LaunchPlanList.create = function create(properties) { - return new LaunchPlanList(properties); - }; - - /** - * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.launchPlans != null && message.launchPlans.length) - for (var i = 0; i < message.launchPlans.length; ++i) - $root.flyteidl.admin.LaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a LaunchPlanList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.launchPlans && message.launchPlans.length)) - message.launchPlans = []; - message.launchPlans.push($root.flyteidl.admin.LaunchPlan.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanList message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { - if (!Array.isArray(message.launchPlans)) - return "launchPlans: array expected"; - for (var i = 0; i < message.launchPlans.length; ++i) { - var error = $root.flyteidl.admin.LaunchPlan.verify(message.launchPlans[i]); - if (error) - return "launchPlans." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return LaunchPlanList; - })(); - - admin.Auth = (function() { - - /** - * Properties of an Auth. - * @memberof flyteidl.admin - * @interface IAuth - * @property {string|null} [assumableIamRole] Auth assumableIamRole - * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount - */ - - /** - * Constructs a new Auth. - * @memberof flyteidl.admin - * @classdesc Represents an Auth. - * @implements IAuth - * @constructor - * @param {flyteidl.admin.IAuth=} [properties] Properties to set - */ - function Auth(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Auth assumableIamRole. - * @member {string} assumableIamRole - * @memberof flyteidl.admin.Auth - * @instance - */ - Auth.prototype.assumableIamRole = ""; - - /** - * Auth kubernetesServiceAccount. - * @member {string} kubernetesServiceAccount - * @memberof flyteidl.admin.Auth - * @instance - */ - Auth.prototype.kubernetesServiceAccount = ""; - - /** - * Creates a new Auth instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Auth - * @static - * @param {flyteidl.admin.IAuth=} [properties] Properties to set - * @returns {flyteidl.admin.Auth} Auth instance - */ - Auth.create = function create(properties) { - return new Auth(properties); - }; - - /** - * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Auth - * @static - * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Auth.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); - return writer; - }; - - /** - * Decodes an Auth message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Auth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Auth} Auth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Auth.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Auth(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.assumableIamRole = reader.string(); - break; - case 2: - message.kubernetesServiceAccount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Auth message. - * @function verify - * @memberof flyteidl.admin.Auth - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Auth.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - if (!$util.isString(message.assumableIamRole)) - return "assumableIamRole: string expected"; - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - if (!$util.isString(message.kubernetesServiceAccount)) - return "kubernetesServiceAccount: string expected"; - return null; - }; - - return Auth; - })(); - - admin.LaunchPlanSpec = (function() { - - /** - * Properties of a LaunchPlanSpec. - * @memberof flyteidl.admin - * @interface ILaunchPlanSpec - * @property {flyteidl.core.IIdentifier|null} [workflowId] LaunchPlanSpec workflowId - * @property {flyteidl.admin.ILaunchPlanMetadata|null} [entityMetadata] LaunchPlanSpec entityMetadata - * @property {flyteidl.core.IParameterMap|null} [defaultInputs] LaunchPlanSpec defaultInputs - * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanSpec fixedInputs - * @property {string|null} [role] LaunchPlanSpec role - * @property {flyteidl.admin.ILabels|null} [labels] LaunchPlanSpec labels - * @property {flyteidl.admin.IAnnotations|null} [annotations] LaunchPlanSpec annotations - * @property {flyteidl.admin.IAuth|null} [auth] LaunchPlanSpec auth - * @property {flyteidl.admin.IAuthRole|null} [authRole] LaunchPlanSpec authRole - * @property {flyteidl.core.ISecurityContext|null} [securityContext] LaunchPlanSpec securityContext - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] LaunchPlanSpec qualityOfService - * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] LaunchPlanSpec rawOutputDataConfig - * @property {number|null} [maxParallelism] LaunchPlanSpec maxParallelism - * @property {google.protobuf.IBoolValue|null} [interruptible] LaunchPlanSpec interruptible - * @property {boolean|null} [overwriteCache] LaunchPlanSpec overwriteCache - * @property {flyteidl.admin.IEnvs|null} [envs] LaunchPlanSpec envs - */ - - /** - * Constructs a new LaunchPlanSpec. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanSpec. - * @implements ILaunchPlanSpec - * @constructor - * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set - */ - function LaunchPlanSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanSpec workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.workflowId = null; - - /** - * LaunchPlanSpec entityMetadata. - * @member {flyteidl.admin.ILaunchPlanMetadata|null|undefined} entityMetadata - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.entityMetadata = null; - - /** - * LaunchPlanSpec defaultInputs. - * @member {flyteidl.core.IParameterMap|null|undefined} defaultInputs - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.defaultInputs = null; - - /** - * LaunchPlanSpec fixedInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.fixedInputs = null; - - /** - * LaunchPlanSpec role. - * @member {string} role - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.role = ""; - - /** - * LaunchPlanSpec labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.labels = null; - - /** - * LaunchPlanSpec annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.annotations = null; - - /** - * LaunchPlanSpec auth. - * @member {flyteidl.admin.IAuth|null|undefined} auth - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.auth = null; - - /** - * LaunchPlanSpec authRole. - * @member {flyteidl.admin.IAuthRole|null|undefined} authRole - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.authRole = null; - - /** - * LaunchPlanSpec securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.securityContext = null; - - /** - * LaunchPlanSpec qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.qualityOfService = null; - - /** - * LaunchPlanSpec rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.rawOutputDataConfig = null; - - /** - * LaunchPlanSpec maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.maxParallelism = 0; - - /** - * LaunchPlanSpec interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.interruptible = null; - - /** - * LaunchPlanSpec overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.overwriteCache = false; - - /** - * LaunchPlanSpec envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.envs = null; - - /** - * Creates a new LaunchPlanSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance - */ - LaunchPlanSpec.create = function create(properties) { - return new LaunchPlanSpec(properties); - }; - - /** - * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) - $root.flyteidl.admin.LaunchPlanMetadata.encode(message.entityMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) - $root.flyteidl.core.ParameterMap.encode(message.defaultInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.role != null && message.hasOwnProperty("role")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.role); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.auth != null && message.hasOwnProperty("auth")) - $root.flyteidl.admin.Auth.encode(message.auth, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.authRole != null && message.hasOwnProperty("authRole")) - $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) - $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.overwriteCache); - if (message.envs != null && message.hasOwnProperty("envs")) - $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.entityMetadata = $root.flyteidl.admin.LaunchPlanMetadata.decode(reader, reader.uint32()); - break; - case 3: - message.defaultInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); - break; - case 4: - message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 5: - message.role = reader.string(); - break; - case 6: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 7: - message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); - break; - case 8: - message.auth = $root.flyteidl.admin.Auth.decode(reader, reader.uint32()); - break; - case 9: - message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); - break; - case 10: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 16: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 17: - message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); - break; - case 18: - message.maxParallelism = reader.int32(); - break; - case 19: - message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 20: - message.overwriteCache = reader.bool(); - break; - case 21: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanSpec message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - var error = $root.flyteidl.core.Identifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) { - var error = $root.flyteidl.admin.LaunchPlanMetadata.verify(message.entityMetadata); - if (error) - return "entityMetadata." + error; - } - if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) { - var error = $root.flyteidl.core.ParameterMap.verify(message.defaultInputs); - if (error) - return "defaultInputs." + error; - } - if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); - if (error) - return "fixedInputs." + error; - } - if (message.role != null && message.hasOwnProperty("role")) - if (!$util.isString(message.role)) - return "role: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.flyteidl.admin.Annotations.verify(message.annotations); - if (error) - return "annotations." + error; - } - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.flyteidl.admin.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.authRole != null && message.hasOwnProperty("authRole")) { - var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); - if (error) - return "authRole." + error; - } - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { - var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); - if (error) - return "rawOutputDataConfig." + error; - } - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - if (!$util.isInteger(message.maxParallelism)) - return "maxParallelism: integer expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; - } - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - if (message.envs != null && message.hasOwnProperty("envs")) { - var error = $root.flyteidl.admin.Envs.verify(message.envs); - if (error) - return "envs." + error; - } - return null; - }; - - return LaunchPlanSpec; - })(); - - admin.LaunchPlanClosure = (function() { - - /** - * Properties of a LaunchPlanClosure. - * @memberof flyteidl.admin - * @interface ILaunchPlanClosure - * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanClosure state - * @property {flyteidl.core.IParameterMap|null} [expectedInputs] LaunchPlanClosure expectedInputs - * @property {flyteidl.core.IVariableMap|null} [expectedOutputs] LaunchPlanClosure expectedOutputs - * @property {google.protobuf.ITimestamp|null} [createdAt] LaunchPlanClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] LaunchPlanClosure updatedAt - */ - - /** - * Constructs a new LaunchPlanClosure. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanClosure. - * @implements ILaunchPlanClosure - * @constructor - * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set - */ - function LaunchPlanClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanClosure state. - * @member {flyteidl.admin.LaunchPlanState} state - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.state = 0; - - /** - * LaunchPlanClosure expectedInputs. - * @member {flyteidl.core.IParameterMap|null|undefined} expectedInputs - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.expectedInputs = null; - - /** - * LaunchPlanClosure expectedOutputs. - * @member {flyteidl.core.IVariableMap|null|undefined} expectedOutputs - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.expectedOutputs = null; - - /** - * LaunchPlanClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.createdAt = null; - - /** - * LaunchPlanClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.updatedAt = null; - - /** - * Creates a new LaunchPlanClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance - */ - LaunchPlanClosure.create = function create(properties) { - return new LaunchPlanClosure(properties); - }; - - /** - * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) - $root.flyteidl.core.ParameterMap.encode(message.expectedInputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) - $root.flyteidl.core.VariableMap.encode(message.expectedOutputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.expectedInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); - break; - case 3: - message.expectedOutputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); - break; - case 4: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanClosure message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) { - var error = $root.flyteidl.core.ParameterMap.verify(message.expectedInputs); - if (error) - return "expectedInputs." + error; - } - if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.expectedOutputs); - if (error) - return "expectedOutputs." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - return null; - }; - - return LaunchPlanClosure; - })(); - - admin.LaunchPlanMetadata = (function() { - - /** - * Properties of a LaunchPlanMetadata. - * @memberof flyteidl.admin - * @interface ILaunchPlanMetadata - * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule - * @property {Array.|null} [notifications] LaunchPlanMetadata notifications - * @property {google.protobuf.IAny|null} [launchConditions] LaunchPlanMetadata launchConditions - */ - - /** - * Constructs a new LaunchPlanMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanMetadata. - * @implements ILaunchPlanMetadata - * @constructor - * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set - */ - function LaunchPlanMetadata(properties) { - this.notifications = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanMetadata schedule. - * @member {flyteidl.admin.ISchedule|null|undefined} schedule - * @memberof flyteidl.admin.LaunchPlanMetadata - * @instance - */ - LaunchPlanMetadata.prototype.schedule = null; - - /** - * LaunchPlanMetadata notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.LaunchPlanMetadata - * @instance - */ - LaunchPlanMetadata.prototype.notifications = $util.emptyArray; - - /** - * LaunchPlanMetadata launchConditions. - * @member {google.protobuf.IAny|null|undefined} launchConditions - * @memberof flyteidl.admin.LaunchPlanMetadata - * @instance - */ - LaunchPlanMetadata.prototype.launchConditions = null; - - /** - * Creates a new LaunchPlanMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance - */ - LaunchPlanMetadata.create = function create(properties) { - return new LaunchPlanMetadata(properties); - }; - - /** - * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.schedule != null && message.hasOwnProperty("schedule")) - $root.flyteidl.admin.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.launchConditions != null && message.hasOwnProperty("launchConditions")) - $root.google.protobuf.Any.encode(message.launchConditions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); - break; - case 3: - message.launchConditions = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanMetadata message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) { - var error = $root.flyteidl.admin.Schedule.verify(message.schedule); - if (error) - return "schedule." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); - if (error) - return "notifications." + error; - } - } - if (message.launchConditions != null && message.hasOwnProperty("launchConditions")) { - var error = $root.google.protobuf.Any.verify(message.launchConditions); - if (error) - return "launchConditions." + error; - } - return null; - }; - - return LaunchPlanMetadata; - })(); - - admin.LaunchPlanUpdateRequest = (function() { - - /** - * Properties of a LaunchPlanUpdateRequest. - * @memberof flyteidl.admin - * @interface ILaunchPlanUpdateRequest - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id - * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state - */ - - /** - * Constructs a new LaunchPlanUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanUpdateRequest. - * @implements ILaunchPlanUpdateRequest - * @constructor - * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set - */ - function LaunchPlanUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanUpdateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @instance - */ - LaunchPlanUpdateRequest.prototype.id = null; - - /** - * LaunchPlanUpdateRequest state. - * @member {flyteidl.admin.LaunchPlanState} state - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @instance - */ - LaunchPlanUpdateRequest.prototype.state = 0; - - /** - * Creates a new LaunchPlanUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance - */ - LaunchPlanUpdateRequest.create = function create(properties) { - return new LaunchPlanUpdateRequest(properties); - }; - - /** - * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - return LaunchPlanUpdateRequest; - })(); - - admin.LaunchPlanUpdateResponse = (function() { - - /** - * Properties of a LaunchPlanUpdateResponse. - * @memberof flyteidl.admin - * @interface ILaunchPlanUpdateResponse - */ - - /** - * Constructs a new LaunchPlanUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanUpdateResponse. - * @implements ILaunchPlanUpdateResponse - * @constructor - * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set - */ - function LaunchPlanUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new LaunchPlanUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance - */ - LaunchPlanUpdateResponse.create = function create(properties) { - return new LaunchPlanUpdateResponse(properties); - }; - - /** - * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return LaunchPlanUpdateResponse; - })(); - - admin.ActiveLaunchPlanRequest = (function() { - - /** - * Properties of an ActiveLaunchPlanRequest. - * @memberof flyteidl.admin - * @interface IActiveLaunchPlanRequest - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ActiveLaunchPlanRequest id - */ - - /** - * Constructs a new ActiveLaunchPlanRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ActiveLaunchPlanRequest. - * @implements IActiveLaunchPlanRequest - * @constructor - * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set - */ - function ActiveLaunchPlanRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveLaunchPlanRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @instance - */ - ActiveLaunchPlanRequest.prototype.id = null; - - /** - * Creates a new ActiveLaunchPlanRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest instance - */ - ActiveLaunchPlanRequest.create = function create(properties) { - return new ActiveLaunchPlanRequest(properties); - }; - - /** - * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanRequest} message ActiveLaunchPlanRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveLaunchPlanRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveLaunchPlanRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ActiveLaunchPlanRequest message. - * @function verify - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveLaunchPlanRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ActiveLaunchPlanRequest; - })(); - - admin.ActiveLaunchPlanListRequest = (function() { - - /** - * Properties of an ActiveLaunchPlanListRequest. - * @memberof flyteidl.admin - * @interface IActiveLaunchPlanListRequest - * @property {string|null} [project] ActiveLaunchPlanListRequest project - * @property {string|null} [domain] ActiveLaunchPlanListRequest domain - * @property {number|null} [limit] ActiveLaunchPlanListRequest limit - * @property {string|null} [token] ActiveLaunchPlanListRequest token - * @property {flyteidl.admin.ISort|null} [sortBy] ActiveLaunchPlanListRequest sortBy - * @property {string|null} [org] ActiveLaunchPlanListRequest org - */ - - /** - * Constructs a new ActiveLaunchPlanListRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ActiveLaunchPlanListRequest. - * @implements IActiveLaunchPlanListRequest - * @constructor - * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set - */ - function ActiveLaunchPlanListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveLaunchPlanListRequest project. - * @member {string} project - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.project = ""; - - /** - * ActiveLaunchPlanListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.domain = ""; - - /** - * ActiveLaunchPlanListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.limit = 0; - - /** - * ActiveLaunchPlanListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.token = ""; - - /** - * ActiveLaunchPlanListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.sortBy = null; - - /** - * ActiveLaunchPlanListRequest org. - * @member {string} org - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.org = ""; - - /** - * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest instance - */ - ActiveLaunchPlanListRequest.create = function create(properties) { - return new ActiveLaunchPlanListRequest(properties); - }; - - /** - * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} message ActiveLaunchPlanListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveLaunchPlanListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); - return writer; - }; - - /** - * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveLaunchPlanListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.limit = reader.uint32(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 6: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ActiveLaunchPlanListRequest message. - * @function verify - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveLaunchPlanListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ActiveLaunchPlanListRequest; - })(); - - /** - * FixedRateUnit enum. - * @name flyteidl.admin.FixedRateUnit - * @enum {string} - * @property {number} MINUTE=0 MINUTE value - * @property {number} HOUR=1 HOUR value - * @property {number} DAY=2 DAY value - */ - admin.FixedRateUnit = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MINUTE"] = 0; - values[valuesById[1] = "HOUR"] = 1; - values[valuesById[2] = "DAY"] = 2; - return values; - })(); - - admin.FixedRate = (function() { - - /** - * Properties of a FixedRate. - * @memberof flyteidl.admin - * @interface IFixedRate - * @property {number|null} [value] FixedRate value - * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit - */ - - /** - * Constructs a new FixedRate. - * @memberof flyteidl.admin - * @classdesc Represents a FixedRate. - * @implements IFixedRate - * @constructor - * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set - */ - function FixedRate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FixedRate value. - * @member {number} value - * @memberof flyteidl.admin.FixedRate - * @instance - */ - FixedRate.prototype.value = 0; - - /** - * FixedRate unit. - * @member {flyteidl.admin.FixedRateUnit} unit - * @memberof flyteidl.admin.FixedRate - * @instance - */ - FixedRate.prototype.unit = 0; - - /** - * Creates a new FixedRate instance using the specified properties. - * @function create - * @memberof flyteidl.admin.FixedRate - * @static - * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set - * @returns {flyteidl.admin.FixedRate} FixedRate instance - */ - FixedRate.create = function create(properties) { - return new FixedRate(properties); - }; - - /** - * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.FixedRate - * @static - * @param {flyteidl.admin.IFixedRate} message FixedRate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FixedRate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); - if (message.unit != null && message.hasOwnProperty("unit")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unit); - return writer; - }; - - /** - * Decodes a FixedRate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.FixedRate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.FixedRate} FixedRate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FixedRate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FixedRate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.uint32(); - break; - case 2: - message.unit = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FixedRate message. - * @function verify - * @memberof flyteidl.admin.FixedRate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FixedRate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value)) - return "value: integer expected"; - if (message.unit != null && message.hasOwnProperty("unit")) - switch (message.unit) { - default: - return "unit: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - return FixedRate; - })(); - - admin.CronSchedule = (function() { - - /** - * Properties of a CronSchedule. - * @memberof flyteidl.admin - * @interface ICronSchedule - * @property {string|null} [schedule] CronSchedule schedule - * @property {string|null} [offset] CronSchedule offset - */ - - /** - * Constructs a new CronSchedule. - * @memberof flyteidl.admin - * @classdesc Represents a CronSchedule. - * @implements ICronSchedule - * @constructor - * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set - */ - function CronSchedule(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CronSchedule schedule. - * @member {string} schedule - * @memberof flyteidl.admin.CronSchedule - * @instance - */ - CronSchedule.prototype.schedule = ""; - - /** - * CronSchedule offset. - * @member {string} offset - * @memberof flyteidl.admin.CronSchedule - * @instance - */ - CronSchedule.prototype.offset = ""; - - /** - * Creates a new CronSchedule instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set - * @returns {flyteidl.admin.CronSchedule} CronSchedule instance - */ - CronSchedule.create = function create(properties) { - return new CronSchedule(properties); - }; - - /** - * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {flyteidl.admin.ICronSchedule} message CronSchedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CronSchedule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.schedule != null && message.hasOwnProperty("schedule")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); - if (message.offset != null && message.hasOwnProperty("offset")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.offset); - return writer; - }; - - /** - * Decodes a CronSchedule message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CronSchedule} CronSchedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CronSchedule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CronSchedule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schedule = reader.string(); - break; - case 2: - message.offset = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CronSchedule message. - * @function verify - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CronSchedule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string expected"; - if (message.offset != null && message.hasOwnProperty("offset")) - if (!$util.isString(message.offset)) - return "offset: string expected"; - return null; - }; - - return CronSchedule; - })(); - - admin.Schedule = (function() { - - /** - * Properties of a Schedule. - * @memberof flyteidl.admin - * @interface ISchedule - * @property {string|null} [cronExpression] Schedule cronExpression - * @property {flyteidl.admin.IFixedRate|null} [rate] Schedule rate - * @property {flyteidl.admin.ICronSchedule|null} [cronSchedule] Schedule cronSchedule - * @property {string|null} [kickoffTimeInputArg] Schedule kickoffTimeInputArg - */ - - /** - * Constructs a new Schedule. - * @memberof flyteidl.admin - * @classdesc Represents a Schedule. - * @implements ISchedule - * @constructor - * @param {flyteidl.admin.ISchedule=} [properties] Properties to set - */ - function Schedule(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Schedule cronExpression. - * @member {string} cronExpression - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.cronExpression = ""; - - /** - * Schedule rate. - * @member {flyteidl.admin.IFixedRate|null|undefined} rate - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.rate = null; - - /** - * Schedule cronSchedule. - * @member {flyteidl.admin.ICronSchedule|null|undefined} cronSchedule - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.cronSchedule = null; - - /** - * Schedule kickoffTimeInputArg. - * @member {string} kickoffTimeInputArg - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.kickoffTimeInputArg = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Schedule ScheduleExpression. - * @member {"cronExpression"|"rate"|"cronSchedule"|undefined} ScheduleExpression - * @memberof flyteidl.admin.Schedule - * @instance - */ - Object.defineProperty(Schedule.prototype, "ScheduleExpression", { - get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate", "cronSchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Schedule instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Schedule - * @static - * @param {flyteidl.admin.ISchedule=} [properties] Properties to set - * @returns {flyteidl.admin.Schedule} Schedule instance - */ - Schedule.create = function create(properties) { - return new Schedule(properties); - }; - - /** - * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Schedule - * @static - * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Schedule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cronExpression); - if (message.rate != null && message.hasOwnProperty("rate")) - $root.flyteidl.admin.FixedRate.encode(message.rate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.kickoffTimeInputArg); - if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) - $root.flyteidl.admin.CronSchedule.encode(message.cronSchedule, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Schedule message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Schedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Schedule} Schedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Schedule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Schedule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cronExpression = reader.string(); - break; - case 2: - message.rate = $root.flyteidl.admin.FixedRate.decode(reader, reader.uint32()); - break; - case 4: - message.cronSchedule = $root.flyteidl.admin.CronSchedule.decode(reader, reader.uint32()); - break; - case 3: - message.kickoffTimeInputArg = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Schedule message. - * @function verify - * @memberof flyteidl.admin.Schedule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Schedule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) { - properties.ScheduleExpression = 1; - if (!$util.isString(message.cronExpression)) - return "cronExpression: string expected"; - } - if (message.rate != null && message.hasOwnProperty("rate")) { - if (properties.ScheduleExpression === 1) - return "ScheduleExpression: multiple values"; - properties.ScheduleExpression = 1; - { - var error = $root.flyteidl.admin.FixedRate.verify(message.rate); - if (error) - return "rate." + error; - } - } - if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) { - if (properties.ScheduleExpression === 1) - return "ScheduleExpression: multiple values"; - properties.ScheduleExpression = 1; - { - var error = $root.flyteidl.admin.CronSchedule.verify(message.cronSchedule); - if (error) - return "cronSchedule." + error; - } - } - if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) - if (!$util.isString(message.kickoffTimeInputArg)) - return "kickoffTimeInputArg: string expected"; - return null; - }; - - return Schedule; - })(); - - /** - * MatchableResource enum. - * @name flyteidl.admin.MatchableResource - * @enum {string} - * @property {number} TASK_RESOURCE=0 TASK_RESOURCE value - * @property {number} CLUSTER_RESOURCE=1 CLUSTER_RESOURCE value - * @property {number} EXECUTION_QUEUE=2 EXECUTION_QUEUE value - * @property {number} EXECUTION_CLUSTER_LABEL=3 EXECUTION_CLUSTER_LABEL value - * @property {number} QUALITY_OF_SERVICE_SPECIFICATION=4 QUALITY_OF_SERVICE_SPECIFICATION value - * @property {number} PLUGIN_OVERRIDE=5 PLUGIN_OVERRIDE value - * @property {number} WORKFLOW_EXECUTION_CONFIG=6 WORKFLOW_EXECUTION_CONFIG value - * @property {number} CLUSTER_ASSIGNMENT=7 CLUSTER_ASSIGNMENT value - */ - admin.MatchableResource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TASK_RESOURCE"] = 0; - values[valuesById[1] = "CLUSTER_RESOURCE"] = 1; - values[valuesById[2] = "EXECUTION_QUEUE"] = 2; - values[valuesById[3] = "EXECUTION_CLUSTER_LABEL"] = 3; - values[valuesById[4] = "QUALITY_OF_SERVICE_SPECIFICATION"] = 4; - values[valuesById[5] = "PLUGIN_OVERRIDE"] = 5; - values[valuesById[6] = "WORKFLOW_EXECUTION_CONFIG"] = 6; - values[valuesById[7] = "CLUSTER_ASSIGNMENT"] = 7; - return values; - })(); - - admin.TaskResourceSpec = (function() { - - /** - * Properties of a TaskResourceSpec. - * @memberof flyteidl.admin - * @interface ITaskResourceSpec - * @property {string|null} [cpu] TaskResourceSpec cpu - * @property {string|null} [gpu] TaskResourceSpec gpu - * @property {string|null} [memory] TaskResourceSpec memory - * @property {string|null} [storage] TaskResourceSpec storage - * @property {string|null} [ephemeralStorage] TaskResourceSpec ephemeralStorage - */ - - /** - * Constructs a new TaskResourceSpec. - * @memberof flyteidl.admin - * @classdesc Represents a TaskResourceSpec. - * @implements ITaskResourceSpec - * @constructor - * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set - */ - function TaskResourceSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskResourceSpec cpu. - * @member {string} cpu - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.cpu = ""; - - /** - * TaskResourceSpec gpu. - * @member {string} gpu - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.gpu = ""; - - /** - * TaskResourceSpec memory. - * @member {string} memory - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.memory = ""; - - /** - * TaskResourceSpec storage. - * @member {string} storage - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.storage = ""; - - /** - * TaskResourceSpec ephemeralStorage. - * @member {string} ephemeralStorage - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.ephemeralStorage = ""; - - /** - * Creates a new TaskResourceSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set - * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec instance - */ - TaskResourceSpec.create = function create(properties) { - return new TaskResourceSpec(properties); - }; - - /** - * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {flyteidl.admin.ITaskResourceSpec} message TaskResourceSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskResourceSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cpu != null && message.hasOwnProperty("cpu")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cpu); - if (message.gpu != null && message.hasOwnProperty("gpu")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gpu); - if (message.memory != null && message.hasOwnProperty("memory")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.memory); - if (message.storage != null && message.hasOwnProperty("storage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.storage); - if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.ephemeralStorage); - return writer; - }; - - /** - * Decodes a TaskResourceSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskResourceSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cpu = reader.string(); - break; - case 2: - message.gpu = reader.string(); - break; - case 3: - message.memory = reader.string(); - break; - case 4: - message.storage = reader.string(); - break; - case 5: - message.ephemeralStorage = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskResourceSpec message. - * @function verify - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskResourceSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cpu != null && message.hasOwnProperty("cpu")) - if (!$util.isString(message.cpu)) - return "cpu: string expected"; - if (message.gpu != null && message.hasOwnProperty("gpu")) - if (!$util.isString(message.gpu)) - return "gpu: string expected"; - if (message.memory != null && message.hasOwnProperty("memory")) - if (!$util.isString(message.memory)) - return "memory: string expected"; - if (message.storage != null && message.hasOwnProperty("storage")) - if (!$util.isString(message.storage)) - return "storage: string expected"; - if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) - if (!$util.isString(message.ephemeralStorage)) - return "ephemeralStorage: string expected"; - return null; - }; - - return TaskResourceSpec; - })(); - - admin.TaskResourceAttributes = (function() { - - /** - * Properties of a TaskResourceAttributes. - * @memberof flyteidl.admin - * @interface ITaskResourceAttributes - * @property {flyteidl.admin.ITaskResourceSpec|null} [defaults] TaskResourceAttributes defaults - * @property {flyteidl.admin.ITaskResourceSpec|null} [limits] TaskResourceAttributes limits - */ - - /** - * Constructs a new TaskResourceAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a TaskResourceAttributes. - * @implements ITaskResourceAttributes - * @constructor - * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set - */ - function TaskResourceAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskResourceAttributes defaults. - * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} defaults - * @memberof flyteidl.admin.TaskResourceAttributes - * @instance - */ - TaskResourceAttributes.prototype.defaults = null; - - /** - * TaskResourceAttributes limits. - * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} limits - * @memberof flyteidl.admin.TaskResourceAttributes - * @instance - */ - TaskResourceAttributes.prototype.limits = null; - - /** - * Creates a new TaskResourceAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes instance - */ - TaskResourceAttributes.create = function create(properties) { - return new TaskResourceAttributes(properties); - }; - - /** - * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {flyteidl.admin.ITaskResourceAttributes} message TaskResourceAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskResourceAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.defaults != null && message.hasOwnProperty("defaults")) - $root.flyteidl.admin.TaskResourceSpec.encode(message.defaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limits != null && message.hasOwnProperty("limits")) - $root.flyteidl.admin.TaskResourceSpec.encode(message.limits, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskResourceAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskResourceAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.defaults = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); - break; - case 2: - message.limits = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskResourceAttributes message. - * @function verify - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskResourceAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.defaults != null && message.hasOwnProperty("defaults")) { - var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.defaults); - if (error) - return "defaults." + error; - } - if (message.limits != null && message.hasOwnProperty("limits")) { - var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.limits); - if (error) - return "limits." + error; - } - return null; - }; - - return TaskResourceAttributes; - })(); - - admin.ClusterResourceAttributes = (function() { - - /** - * Properties of a ClusterResourceAttributes. - * @memberof flyteidl.admin - * @interface IClusterResourceAttributes - * @property {Object.|null} [attributes] ClusterResourceAttributes attributes - */ - - /** - * Constructs a new ClusterResourceAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a ClusterResourceAttributes. - * @implements IClusterResourceAttributes - * @constructor - * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set - */ - function ClusterResourceAttributes(properties) { - this.attributes = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClusterResourceAttributes attributes. - * @member {Object.} attributes - * @memberof flyteidl.admin.ClusterResourceAttributes - * @instance - */ - ClusterResourceAttributes.prototype.attributes = $util.emptyObject; - - /** - * Creates a new ClusterResourceAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes instance - */ - ClusterResourceAttributes.create = function create(properties) { - return new ClusterResourceAttributes(properties); - }; - - /** - * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {flyteidl.admin.IClusterResourceAttributes} message ClusterResourceAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClusterResourceAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a ClusterResourceAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClusterResourceAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterResourceAttributes(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.attributes === $util.emptyObject) - message.attributes = {}; - key = reader.string(); - reader.pos++; - message.attributes[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ClusterResourceAttributes message. - * @function verify - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterResourceAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - if (!$util.isObject(message.attributes)) - return "attributes: object expected"; - var key = Object.keys(message.attributes); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.attributes[key[i]])) - return "attributes: string{k:string} expected"; - } - return null; - }; - - return ClusterResourceAttributes; - })(); - - admin.ExecutionQueueAttributes = (function() { - - /** - * Properties of an ExecutionQueueAttributes. - * @memberof flyteidl.admin - * @interface IExecutionQueueAttributes - * @property {Array.|null} [tags] ExecutionQueueAttributes tags - */ - - /** - * Constructs a new ExecutionQueueAttributes. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionQueueAttributes. - * @implements IExecutionQueueAttributes - * @constructor - * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set - */ - function ExecutionQueueAttributes(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionQueueAttributes tags. - * @member {Array.} tags - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @instance - */ - ExecutionQueueAttributes.prototype.tags = $util.emptyArray; - - /** - * Creates a new ExecutionQueueAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes instance - */ - ExecutionQueueAttributes.create = function create(properties) { - return new ExecutionQueueAttributes(properties); - }; - - /** - * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {flyteidl.admin.IExecutionQueueAttributes} message ExecutionQueueAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionQueueAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]); - return writer; - }; - - /** - * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionQueueAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionQueueAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionQueueAttributes message. - * @function verify - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionQueueAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - return ExecutionQueueAttributes; - })(); - - admin.ExecutionClusterLabel = (function() { - - /** - * Properties of an ExecutionClusterLabel. - * @memberof flyteidl.admin - * @interface IExecutionClusterLabel - * @property {string|null} [value] ExecutionClusterLabel value - */ - - /** - * Constructs a new ExecutionClusterLabel. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionClusterLabel. - * @implements IExecutionClusterLabel - * @constructor - * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set - */ - function ExecutionClusterLabel(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionClusterLabel value. - * @member {string} value - * @memberof flyteidl.admin.ExecutionClusterLabel - * @instance - */ - ExecutionClusterLabel.prototype.value = ""; - - /** - * Creates a new ExecutionClusterLabel instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel instance - */ - ExecutionClusterLabel.create = function create(properties) { - return new ExecutionClusterLabel(properties); - }; - - /** - * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {flyteidl.admin.IExecutionClusterLabel} message ExecutionClusterLabel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionClusterLabel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - return writer; - }; - - /** - * Decodes an ExecutionClusterLabel message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionClusterLabel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClusterLabel(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionClusterLabel message. - * @function verify - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionClusterLabel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return ExecutionClusterLabel; - })(); - - admin.PluginOverride = (function() { - - /** - * Properties of a PluginOverride. - * @memberof flyteidl.admin - * @interface IPluginOverride - * @property {string|null} [taskType] PluginOverride taskType - * @property {Array.|null} [pluginId] PluginOverride pluginId - * @property {flyteidl.admin.PluginOverride.MissingPluginBehavior|null} [missingPluginBehavior] PluginOverride missingPluginBehavior - */ - - /** - * Constructs a new PluginOverride. - * @memberof flyteidl.admin - * @classdesc Represents a PluginOverride. - * @implements IPluginOverride - * @constructor - * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set - */ - function PluginOverride(properties) { - this.pluginId = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PluginOverride taskType. - * @member {string} taskType - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.taskType = ""; - - /** - * PluginOverride pluginId. - * @member {Array.} pluginId - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.pluginId = $util.emptyArray; - - /** - * PluginOverride missingPluginBehavior. - * @member {flyteidl.admin.PluginOverride.MissingPluginBehavior} missingPluginBehavior - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.missingPluginBehavior = 0; - - /** - * Creates a new PluginOverride instance using the specified properties. - * @function create - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set - * @returns {flyteidl.admin.PluginOverride} PluginOverride instance - */ - PluginOverride.create = function create(properties) { - return new PluginOverride(properties); - }; - - /** - * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {flyteidl.admin.IPluginOverride} message PluginOverride message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PluginOverride.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.pluginId != null && message.pluginId.length) - for (var i = 0; i < message.pluginId.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pluginId[i]); - if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.missingPluginBehavior); - return writer; - }; - - /** - * Decodes a PluginOverride message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.PluginOverride} PluginOverride - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PluginOverride.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverride(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - if (!(message.pluginId && message.pluginId.length)) - message.pluginId = []; - message.pluginId.push(reader.string()); - break; - case 4: - message.missingPluginBehavior = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PluginOverride message. - * @function verify - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PluginOverride.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.pluginId != null && message.hasOwnProperty("pluginId")) { - if (!Array.isArray(message.pluginId)) - return "pluginId: array expected"; - for (var i = 0; i < message.pluginId.length; ++i) - if (!$util.isString(message.pluginId[i])) - return "pluginId: string[] expected"; - } - if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) - switch (message.missingPluginBehavior) { - default: - return "missingPluginBehavior: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * MissingPluginBehavior enum. - * @name flyteidl.admin.PluginOverride.MissingPluginBehavior - * @enum {string} - * @property {number} FAIL=0 FAIL value - * @property {number} USE_DEFAULT=1 USE_DEFAULT value - */ - PluginOverride.MissingPluginBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FAIL"] = 0; - values[valuesById[1] = "USE_DEFAULT"] = 1; - return values; - })(); - - return PluginOverride; - })(); - - admin.PluginOverrides = (function() { - - /** - * Properties of a PluginOverrides. - * @memberof flyteidl.admin - * @interface IPluginOverrides - * @property {Array.|null} [overrides] PluginOverrides overrides - */ - - /** - * Constructs a new PluginOverrides. - * @memberof flyteidl.admin - * @classdesc Represents a PluginOverrides. - * @implements IPluginOverrides - * @constructor - * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set - */ - function PluginOverrides(properties) { - this.overrides = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PluginOverrides overrides. - * @member {Array.} overrides - * @memberof flyteidl.admin.PluginOverrides - * @instance - */ - PluginOverrides.prototype.overrides = $util.emptyArray; - - /** - * Creates a new PluginOverrides instance using the specified properties. - * @function create - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set - * @returns {flyteidl.admin.PluginOverrides} PluginOverrides instance - */ - PluginOverrides.create = function create(properties) { - return new PluginOverrides(properties); - }; - - /** - * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {flyteidl.admin.IPluginOverrides} message PluginOverrides message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PluginOverrides.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.overrides != null && message.overrides.length) - for (var i = 0; i < message.overrides.length; ++i) - $root.flyteidl.admin.PluginOverride.encode(message.overrides[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a PluginOverrides message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.PluginOverrides} PluginOverrides - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PluginOverrides.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverrides(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.overrides && message.overrides.length)) - message.overrides = []; - message.overrides.push($root.flyteidl.admin.PluginOverride.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PluginOverrides message. - * @function verify - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PluginOverrides.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.overrides != null && message.hasOwnProperty("overrides")) { - if (!Array.isArray(message.overrides)) - return "overrides: array expected"; - for (var i = 0; i < message.overrides.length; ++i) { - var error = $root.flyteidl.admin.PluginOverride.verify(message.overrides[i]); - if (error) - return "overrides." + error; - } - } - return null; - }; - - return PluginOverrides; - })(); - - admin.WorkflowExecutionConfig = (function() { - - /** - * Properties of a WorkflowExecutionConfig. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionConfig - * @property {number|null} [maxParallelism] WorkflowExecutionConfig maxParallelism - * @property {flyteidl.core.ISecurityContext|null} [securityContext] WorkflowExecutionConfig securityContext - * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] WorkflowExecutionConfig rawOutputDataConfig - * @property {flyteidl.admin.ILabels|null} [labels] WorkflowExecutionConfig labels - * @property {flyteidl.admin.IAnnotations|null} [annotations] WorkflowExecutionConfig annotations - * @property {google.protobuf.IBoolValue|null} [interruptible] WorkflowExecutionConfig interruptible - * @property {boolean|null} [overwriteCache] WorkflowExecutionConfig overwriteCache - * @property {flyteidl.admin.IEnvs|null} [envs] WorkflowExecutionConfig envs - */ - - /** - * Constructs a new WorkflowExecutionConfig. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionConfig. - * @implements IWorkflowExecutionConfig - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set - */ - function WorkflowExecutionConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionConfig maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.maxParallelism = 0; - - /** - * WorkflowExecutionConfig securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.securityContext = null; - - /** - * WorkflowExecutionConfig rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.rawOutputDataConfig = null; - - /** - * WorkflowExecutionConfig labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.labels = null; - - /** - * WorkflowExecutionConfig annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.annotations = null; - - /** - * WorkflowExecutionConfig interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.interruptible = null; - - /** - * WorkflowExecutionConfig overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.overwriteCache = false; - - /** - * WorkflowExecutionConfig envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.envs = null; - - /** - * Creates a new WorkflowExecutionConfig instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig instance - */ - WorkflowExecutionConfig.create = function create(properties) { - return new WorkflowExecutionConfig(properties); - }; - - /** - * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {flyteidl.admin.IWorkflowExecutionConfig} message WorkflowExecutionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxParallelism); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) - $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.overwriteCache); - if (message.envs != null && message.hasOwnProperty("envs")) - $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxParallelism = reader.int32(); - break; - case 2: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 3: - message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); - break; - case 4: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 5: - message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); - break; - case 6: - message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 7: - message.overwriteCache = reader.bool(); - break; - case 8: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionConfig message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - if (!$util.isInteger(message.maxParallelism)) - return "maxParallelism: integer expected"; - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { - var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); - if (error) - return "rawOutputDataConfig." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.flyteidl.admin.Annotations.verify(message.annotations); - if (error) - return "annotations." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; - } - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - if (message.envs != null && message.hasOwnProperty("envs")) { - var error = $root.flyteidl.admin.Envs.verify(message.envs); - if (error) - return "envs." + error; - } - return null; - }; - - return WorkflowExecutionConfig; - })(); - - admin.MatchingAttributes = (function() { - - /** - * Properties of a MatchingAttributes. - * @memberof flyteidl.admin - * @interface IMatchingAttributes - * @property {flyteidl.admin.ITaskResourceAttributes|null} [taskResourceAttributes] MatchingAttributes taskResourceAttributes - * @property {flyteidl.admin.IClusterResourceAttributes|null} [clusterResourceAttributes] MatchingAttributes clusterResourceAttributes - * @property {flyteidl.admin.IExecutionQueueAttributes|null} [executionQueueAttributes] MatchingAttributes executionQueueAttributes - * @property {flyteidl.admin.IExecutionClusterLabel|null} [executionClusterLabel] MatchingAttributes executionClusterLabel - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] MatchingAttributes qualityOfService - * @property {flyteidl.admin.IPluginOverrides|null} [pluginOverrides] MatchingAttributes pluginOverrides - * @property {flyteidl.admin.IWorkflowExecutionConfig|null} [workflowExecutionConfig] MatchingAttributes workflowExecutionConfig - * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] MatchingAttributes clusterAssignment - */ - - /** - * Constructs a new MatchingAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a MatchingAttributes. - * @implements IMatchingAttributes - * @constructor - * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set - */ - function MatchingAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MatchingAttributes taskResourceAttributes. - * @member {flyteidl.admin.ITaskResourceAttributes|null|undefined} taskResourceAttributes - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.taskResourceAttributes = null; - - /** - * MatchingAttributes clusterResourceAttributes. - * @member {flyteidl.admin.IClusterResourceAttributes|null|undefined} clusterResourceAttributes - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.clusterResourceAttributes = null; - - /** - * MatchingAttributes executionQueueAttributes. - * @member {flyteidl.admin.IExecutionQueueAttributes|null|undefined} executionQueueAttributes - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.executionQueueAttributes = null; - - /** - * MatchingAttributes executionClusterLabel. - * @member {flyteidl.admin.IExecutionClusterLabel|null|undefined} executionClusterLabel - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.executionClusterLabel = null; - - /** - * MatchingAttributes qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.qualityOfService = null; - - /** - * MatchingAttributes pluginOverrides. - * @member {flyteidl.admin.IPluginOverrides|null|undefined} pluginOverrides - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.pluginOverrides = null; - - /** - * MatchingAttributes workflowExecutionConfig. - * @member {flyteidl.admin.IWorkflowExecutionConfig|null|undefined} workflowExecutionConfig - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.workflowExecutionConfig = null; - - /** - * MatchingAttributes clusterAssignment. - * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.clusterAssignment = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MatchingAttributes target. - * @member {"taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"|undefined} target - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - Object.defineProperty(MatchingAttributes.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["taskResourceAttributes", "clusterResourceAttributes", "executionQueueAttributes", "executionClusterLabel", "qualityOfService", "pluginOverrides", "workflowExecutionConfig", "clusterAssignment"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new MatchingAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes instance - */ - MatchingAttributes.create = function create(properties) { - return new MatchingAttributes(properties); - }; - - /** - * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {flyteidl.admin.IMatchingAttributes} message MatchingAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MatchingAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) - $root.flyteidl.admin.TaskResourceAttributes.encode(message.taskResourceAttributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) - $root.flyteidl.admin.ClusterResourceAttributes.encode(message.clusterResourceAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) - $root.flyteidl.admin.ExecutionQueueAttributes.encode(message.executionQueueAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) - $root.flyteidl.admin.ExecutionClusterLabel.encode(message.executionClusterLabel, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) - $root.flyteidl.admin.PluginOverrides.encode(message.pluginOverrides, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) - $root.flyteidl.admin.WorkflowExecutionConfig.encode(message.workflowExecutionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) - $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a MatchingAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MatchingAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchingAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskResourceAttributes = $root.flyteidl.admin.TaskResourceAttributes.decode(reader, reader.uint32()); - break; - case 2: - message.clusterResourceAttributes = $root.flyteidl.admin.ClusterResourceAttributes.decode(reader, reader.uint32()); - break; - case 3: - message.executionQueueAttributes = $root.flyteidl.admin.ExecutionQueueAttributes.decode(reader, reader.uint32()); - break; - case 4: - message.executionClusterLabel = $root.flyteidl.admin.ExecutionClusterLabel.decode(reader, reader.uint32()); - break; - case 5: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 6: - message.pluginOverrides = $root.flyteidl.admin.PluginOverrides.decode(reader, reader.uint32()); - break; - case 7: - message.workflowExecutionConfig = $root.flyteidl.admin.WorkflowExecutionConfig.decode(reader, reader.uint32()); - break; - case 8: - message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MatchingAttributes message. - * @function verify - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MatchingAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) { - properties.target = 1; - { - var error = $root.flyteidl.admin.TaskResourceAttributes.verify(message.taskResourceAttributes); - if (error) - return "taskResourceAttributes." + error; - } - } - if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ClusterResourceAttributes.verify(message.clusterResourceAttributes); - if (error) - return "clusterResourceAttributes." + error; - } - } - if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ExecutionQueueAttributes.verify(message.executionQueueAttributes); - if (error) - return "executionQueueAttributes." + error; - } - } - if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ExecutionClusterLabel.verify(message.executionClusterLabel); - if (error) - return "executionClusterLabel." + error; - } - } - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - } - if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.PluginOverrides.verify(message.pluginOverrides); - if (error) - return "pluginOverrides." + error; - } - } - if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.WorkflowExecutionConfig.verify(message.workflowExecutionConfig); - if (error) - return "workflowExecutionConfig." + error; - } - } - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); - if (error) - return "clusterAssignment." + error; - } - } - return null; - }; - - return MatchingAttributes; - })(); - - admin.MatchableAttributesConfiguration = (function() { - - /** - * Properties of a MatchableAttributesConfiguration. - * @memberof flyteidl.admin - * @interface IMatchableAttributesConfiguration - * @property {flyteidl.admin.IMatchingAttributes|null} [attributes] MatchableAttributesConfiguration attributes - * @property {string|null} [domain] MatchableAttributesConfiguration domain - * @property {string|null} [project] MatchableAttributesConfiguration project - * @property {string|null} [workflow] MatchableAttributesConfiguration workflow - * @property {string|null} [launchPlan] MatchableAttributesConfiguration launchPlan - * @property {string|null} [org] MatchableAttributesConfiguration org - */ - - /** - * Constructs a new MatchableAttributesConfiguration. - * @memberof flyteidl.admin - * @classdesc Represents a MatchableAttributesConfiguration. - * @implements IMatchableAttributesConfiguration - * @constructor - * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set - */ - function MatchableAttributesConfiguration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MatchableAttributesConfiguration attributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} attributes - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.attributes = null; - - /** - * MatchableAttributesConfiguration domain. - * @member {string} domain - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.domain = ""; - - /** - * MatchableAttributesConfiguration project. - * @member {string} project - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.project = ""; - - /** - * MatchableAttributesConfiguration workflow. - * @member {string} workflow - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.workflow = ""; - - /** - * MatchableAttributesConfiguration launchPlan. - * @member {string} launchPlan - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.launchPlan = ""; - - /** - * MatchableAttributesConfiguration org. - * @member {string} org - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.org = ""; - - /** - * Creates a new MatchableAttributesConfiguration instance using the specified properties. - * @function create - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set - * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration instance - */ - MatchableAttributesConfiguration.create = function create(properties) { - return new MatchableAttributesConfiguration(properties); - }; - - /** - * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {flyteidl.admin.IMatchableAttributesConfiguration} message MatchableAttributesConfiguration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MatchableAttributesConfiguration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.project); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow); - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.launchPlan); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); - return writer; - }; - - /** - * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MatchableAttributesConfiguration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchableAttributesConfiguration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.project = reader.string(); - break; - case 4: - message.workflow = reader.string(); - break; - case 5: - message.launchPlan = reader.string(); - break; - case 6: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MatchableAttributesConfiguration message. - * @function verify - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MatchableAttributesConfiguration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) - if (!$util.isString(message.launchPlan)) - return "launchPlan: string expected"; - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return MatchableAttributesConfiguration; - })(); - - admin.ListMatchableAttributesRequest = (function() { - - /** - * Properties of a ListMatchableAttributesRequest. - * @memberof flyteidl.admin - * @interface IListMatchableAttributesRequest - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ListMatchableAttributesRequest resourceType - * @property {string|null} [org] ListMatchableAttributesRequest org - */ - - /** - * Constructs a new ListMatchableAttributesRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ListMatchableAttributesRequest. - * @implements IListMatchableAttributesRequest - * @constructor - * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set - */ - function ListMatchableAttributesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListMatchableAttributesRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @instance - */ - ListMatchableAttributesRequest.prototype.resourceType = 0; - - /** - * ListMatchableAttributesRequest org. - * @member {string} org - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @instance - */ - ListMatchableAttributesRequest.prototype.org = ""; - - /** - * Creates a new ListMatchableAttributesRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest instance - */ - ListMatchableAttributesRequest.create = function create(properties) { - return new ListMatchableAttributesRequest(properties); - }; - - /** - * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {flyteidl.admin.IListMatchableAttributesRequest} message ListMatchableAttributesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMatchableAttributesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.org); - return writer; - }; - - /** - * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMatchableAttributesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListMatchableAttributesRequest message. - * @function verify - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMatchableAttributesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ListMatchableAttributesRequest; - })(); - - admin.ListMatchableAttributesResponse = (function() { - - /** - * Properties of a ListMatchableAttributesResponse. - * @memberof flyteidl.admin - * @interface IListMatchableAttributesResponse - * @property {Array.|null} [configurations] ListMatchableAttributesResponse configurations - */ - - /** - * Constructs a new ListMatchableAttributesResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ListMatchableAttributesResponse. - * @implements IListMatchableAttributesResponse - * @constructor - * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set - */ - function ListMatchableAttributesResponse(properties) { - this.configurations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListMatchableAttributesResponse configurations. - * @member {Array.} configurations - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @instance - */ - ListMatchableAttributesResponse.prototype.configurations = $util.emptyArray; - - /** - * Creates a new ListMatchableAttributesResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse instance - */ - ListMatchableAttributesResponse.create = function create(properties) { - return new ListMatchableAttributesResponse(properties); - }; - - /** - * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {flyteidl.admin.IListMatchableAttributesResponse} message ListMatchableAttributesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMatchableAttributesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.configurations != null && message.configurations.length) - for (var i = 0; i < message.configurations.length; ++i) - $root.flyteidl.admin.MatchableAttributesConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMatchableAttributesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.configurations && message.configurations.length)) - message.configurations = []; - message.configurations.push($root.flyteidl.admin.MatchableAttributesConfiguration.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListMatchableAttributesResponse message. - * @function verify - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMatchableAttributesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.configurations != null && message.hasOwnProperty("configurations")) { - if (!Array.isArray(message.configurations)) - return "configurations: array expected"; - for (var i = 0; i < message.configurations.length; ++i) { - var error = $root.flyteidl.admin.MatchableAttributesConfiguration.verify(message.configurations[i]); - if (error) - return "configurations." + error; - } - } - return null; - }; - - return ListMatchableAttributesResponse; - })(); - - admin.NodeExecutionGetRequest = (function() { - - /** - * Properties of a NodeExecutionGetRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionGetRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id - */ - - /** - * Constructs a new NodeExecutionGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetRequest. - * @implements INodeExecutionGetRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set - */ - function NodeExecutionGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionGetRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @instance - */ - NodeExecutionGetRequest.prototype.id = null; - - /** - * Creates a new NodeExecutionGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance - */ - NodeExecutionGetRequest.create = function create(properties) { - return new NodeExecutionGetRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionGetRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return NodeExecutionGetRequest; - })(); - - admin.NodeExecutionListRequest = (function() { - - /** - * Properties of a NodeExecutionListRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionListRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] NodeExecutionListRequest workflowExecutionId - * @property {number|null} [limit] NodeExecutionListRequest limit - * @property {string|null} [token] NodeExecutionListRequest token - * @property {string|null} [filters] NodeExecutionListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionListRequest sortBy - * @property {string|null} [uniqueParentId] NodeExecutionListRequest uniqueParentId - */ - - /** - * Constructs a new NodeExecutionListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionListRequest. - * @implements INodeExecutionListRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set - */ - function NodeExecutionListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionListRequest workflowExecutionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.workflowExecutionId = null; - - /** - * NodeExecutionListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.limit = 0; - - /** - * NodeExecutionListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.token = ""; - - /** - * NodeExecutionListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.filters = ""; - - /** - * NodeExecutionListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.sortBy = null; - - /** - * NodeExecutionListRequest uniqueParentId. - * @member {string} uniqueParentId - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.uniqueParentId = ""; - - /** - * Creates a new NodeExecutionListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest instance - */ - NodeExecutionListRequest.create = function create(properties) { - return new NodeExecutionListRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.uniqueParentId); - return writer; - }; - - /** - * Decodes a NodeExecutionListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 6: - message.uniqueParentId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionListRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); - if (error) - return "workflowExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) - if (!$util.isString(message.uniqueParentId)) - return "uniqueParentId: string expected"; - return null; - }; - - return NodeExecutionListRequest; - })(); - - admin.NodeExecutionForTaskListRequest = (function() { - - /** - * Properties of a NodeExecutionForTaskListRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionForTaskListRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] NodeExecutionForTaskListRequest taskExecutionId - * @property {number|null} [limit] NodeExecutionForTaskListRequest limit - * @property {string|null} [token] NodeExecutionForTaskListRequest token - * @property {string|null} [filters] NodeExecutionForTaskListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionForTaskListRequest sortBy - */ - - /** - * Constructs a new NodeExecutionForTaskListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionForTaskListRequest. - * @implements INodeExecutionForTaskListRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set - */ - function NodeExecutionForTaskListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionForTaskListRequest taskExecutionId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.taskExecutionId = null; - - /** - * NodeExecutionForTaskListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.limit = 0; - - /** - * NodeExecutionForTaskListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.token = ""; - - /** - * NodeExecutionForTaskListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.filters = ""; - - /** - * NodeExecutionForTaskListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.sortBy = null; - - /** - * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance - */ - NodeExecutionForTaskListRequest.create = function create(properties) { - return new NodeExecutionForTaskListRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionForTaskListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionForTaskListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionForTaskListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionForTaskListRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionForTaskListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); - if (error) - return "taskExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return NodeExecutionForTaskListRequest; - })(); - - admin.NodeExecution = (function() { - - /** - * Properties of a NodeExecution. - * @memberof flyteidl.admin - * @interface INodeExecution - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecution id - * @property {string|null} [inputUri] NodeExecution inputUri - * @property {flyteidl.admin.INodeExecutionClosure|null} [closure] NodeExecution closure - * @property {flyteidl.admin.INodeExecutionMetaData|null} [metadata] NodeExecution metadata - */ - - /** - * Constructs a new NodeExecution. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecution. - * @implements INodeExecution - * @constructor - * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set - */ - function NodeExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecution id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.id = null; - - /** - * NodeExecution inputUri. - * @member {string} inputUri - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.inputUri = ""; - - /** - * NodeExecution closure. - * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.closure = null; - - /** - * NodeExecution metadata. - * @member {flyteidl.admin.INodeExecutionMetaData|null|undefined} metadata - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.metadata = null; - - /** - * Creates a new NodeExecution instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecution} NodeExecution instance - */ - NodeExecution.create = function create(properties) { - return new NodeExecution(properties); - }; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.NodeExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.NodeExecutionMetaData.encode(message.metadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecution} NodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.inputUri = reader.string(); - break; - case 3: - message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); - break; - case 4: - message.metadata = $root.flyteidl.admin.NodeExecutionMetaData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecution message. - * @function verify - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.NodeExecutionClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NodeExecutionMetaData.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return NodeExecution; - })(); - - admin.NodeExecutionMetaData = (function() { - - /** - * Properties of a NodeExecutionMetaData. - * @memberof flyteidl.admin - * @interface INodeExecutionMetaData - * @property {string|null} [retryGroup] NodeExecutionMetaData retryGroup - * @property {boolean|null} [isParentNode] NodeExecutionMetaData isParentNode - * @property {string|null} [specNodeId] NodeExecutionMetaData specNodeId - * @property {boolean|null} [isDynamic] NodeExecutionMetaData isDynamic - * @property {boolean|null} [isArray] NodeExecutionMetaData isArray - */ - - /** - * Constructs a new NodeExecutionMetaData. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionMetaData. - * @implements INodeExecutionMetaData - * @constructor - * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set - */ - function NodeExecutionMetaData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionMetaData retryGroup. - * @member {string} retryGroup - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.retryGroup = ""; - - /** - * NodeExecutionMetaData isParentNode. - * @member {boolean} isParentNode - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.isParentNode = false; - - /** - * NodeExecutionMetaData specNodeId. - * @member {string} specNodeId - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.specNodeId = ""; - - /** - * NodeExecutionMetaData isDynamic. - * @member {boolean} isDynamic - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.isDynamic = false; - - /** - * NodeExecutionMetaData isArray. - * @member {boolean} isArray - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.isArray = false; - - /** - * Creates a new NodeExecutionMetaData instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData instance - */ - NodeExecutionMetaData.create = function create(properties) { - return new NodeExecutionMetaData(properties); - }; - - /** - * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {flyteidl.admin.INodeExecutionMetaData} message NodeExecutionMetaData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionMetaData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.retryGroup); - if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isParentNode); - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.specNodeId); - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isDynamic); - if (message.isArray != null && message.hasOwnProperty("isArray")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isArray); - return writer; - }; - - /** - * Decodes a NodeExecutionMetaData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionMetaData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionMetaData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.retryGroup = reader.string(); - break; - case 2: - message.isParentNode = reader.bool(); - break; - case 3: - message.specNodeId = reader.string(); - break; - case 4: - message.isDynamic = reader.bool(); - break; - case 5: - message.isArray = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionMetaData message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionMetaData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - if (!$util.isString(message.retryGroup)) - return "retryGroup: string expected"; - if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) - if (typeof message.isParentNode !== "boolean") - return "isParentNode: boolean expected"; - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - if (!$util.isString(message.specNodeId)) - return "specNodeId: string expected"; - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - if (typeof message.isDynamic !== "boolean") - return "isDynamic: boolean expected"; - if (message.isArray != null && message.hasOwnProperty("isArray")) - if (typeof message.isArray !== "boolean") - return "isArray: boolean expected"; - return null; - }; - - return NodeExecutionMetaData; - })(); - - admin.NodeExecutionList = (function() { - - /** - * Properties of a NodeExecutionList. - * @memberof flyteidl.admin - * @interface INodeExecutionList - * @property {Array.|null} [nodeExecutions] NodeExecutionList nodeExecutions - * @property {string|null} [token] NodeExecutionList token - */ - - /** - * Constructs a new NodeExecutionList. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionList. - * @implements INodeExecutionList - * @constructor - * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set - */ - function NodeExecutionList(properties) { - this.nodeExecutions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionList nodeExecutions. - * @member {Array.} nodeExecutions - * @memberof flyteidl.admin.NodeExecutionList - * @instance - */ - NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; - - /** - * NodeExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionList - * @instance - */ - NodeExecutionList.prototype.token = ""; - - /** - * Creates a new NodeExecutionList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance - */ - NodeExecutionList.create = function create(properties) { - return new NodeExecutionList(properties); - }; - - /** - * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeExecutions != null && message.nodeExecutions.length) - for (var i = 0; i < message.nodeExecutions.length; ++i) - $root.flyteidl.admin.NodeExecution.encode(message.nodeExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a NodeExecutionList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.nodeExecutions && message.nodeExecutions.length)) - message.nodeExecutions = []; - message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionList message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeExecutions != null && message.hasOwnProperty("nodeExecutions")) { - if (!Array.isArray(message.nodeExecutions)) - return "nodeExecutions: array expected"; - for (var i = 0; i < message.nodeExecutions.length; ++i) { - var error = $root.flyteidl.admin.NodeExecution.verify(message.nodeExecutions[i]); - if (error) - return "nodeExecutions." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return NodeExecutionList; - })(); - - admin.NodeExecutionClosure = (function() { - - /** - * Properties of a NodeExecutionClosure. - * @memberof flyteidl.admin - * @interface INodeExecutionClosure - * @property {string|null} [outputUri] NodeExecutionClosure outputUri - * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionClosure error - * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionClosure outputData - * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionClosure phase - * @property {google.protobuf.ITimestamp|null} [startedAt] NodeExecutionClosure startedAt - * @property {google.protobuf.IDuration|null} [duration] NodeExecutionClosure duration - * @property {google.protobuf.ITimestamp|null} [createdAt] NodeExecutionClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] NodeExecutionClosure updatedAt - * @property {flyteidl.admin.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionClosure workflowNodeMetadata - * @property {flyteidl.admin.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionClosure taskNodeMetadata - * @property {string|null} [deckUri] NodeExecutionClosure deckUri - * @property {string|null} [dynamicJobSpecUri] NodeExecutionClosure dynamicJobSpecUri - */ - - /** - * Constructs a new NodeExecutionClosure. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionClosure. - * @implements INodeExecutionClosure - * @constructor - * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set - */ - function NodeExecutionClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionClosure outputUri. - * @member {string} outputUri - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.outputUri = ""; - - /** - * NodeExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.error = null; - - /** - * NodeExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.outputData = null; - - /** - * NodeExecutionClosure phase. - * @member {flyteidl.core.NodeExecution.Phase} phase - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.phase = 0; - - /** - * NodeExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.startedAt = null; - - /** - * NodeExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.duration = null; - - /** - * NodeExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.createdAt = null; - - /** - * NodeExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.updatedAt = null; - - /** - * NodeExecutionClosure workflowNodeMetadata. - * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.workflowNodeMetadata = null; - - /** - * NodeExecutionClosure taskNodeMetadata. - * @member {flyteidl.admin.ITaskNodeMetadata|null|undefined} taskNodeMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.taskNodeMetadata = null; - - /** - * NodeExecutionClosure deckUri. - * @member {string} deckUri - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.deckUri = ""; - - /** - * NodeExecutionClosure dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.dynamicJobSpecUri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * NodeExecutionClosure outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - Object.defineProperty(NodeExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeExecutionClosure targetMetadata. - * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - Object.defineProperty(NodeExecutionClosure.prototype, "targetMetadata", { - get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new NodeExecutionClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance - */ - NodeExecutionClosure.create = function create(properties) { - return new NodeExecutionClosure(properties); - }; - - /** - * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.startedAt != null && message.hasOwnProperty("startedAt")) - $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) - $root.flyteidl.admin.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) - $root.flyteidl.admin.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.deckUri); - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.dynamicJobSpecUri); - return writer; - }; - - /** - * Decodes a NodeExecutionClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputUri = reader.string(); - break; - case 2: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 10: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 6: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.workflowNodeMetadata = $root.flyteidl.admin.WorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - case 9: - message.taskNodeMetadata = $root.flyteidl.admin.TaskNodeMetadata.decode(reader, reader.uint32()); - break; - case 11: - message.deckUri = reader.string(); - break; - case 12: - message.dynamicJobSpecUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionClosure message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.startedAt != null && message.hasOwnProperty("startedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.startedAt); - if (error) - return "startedAt." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { - properties.targetMetadata = 1; - { - var error = $root.flyteidl.admin.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); - if (error) - return "workflowNodeMetadata." + error; - } - } - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { - if (properties.targetMetadata === 1) - return "targetMetadata: multiple values"; - properties.targetMetadata = 1; - { - var error = $root.flyteidl.admin.TaskNodeMetadata.verify(message.taskNodeMetadata); - if (error) - return "taskNodeMetadata." + error; - } - } - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - if (!$util.isString(message.deckUri)) - return "deckUri: string expected"; - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - if (!$util.isString(message.dynamicJobSpecUri)) - return "dynamicJobSpecUri: string expected"; - return null; - }; - - return NodeExecutionClosure; - })(); - - admin.WorkflowNodeMetadata = (function() { - - /** - * Properties of a WorkflowNodeMetadata. - * @memberof flyteidl.admin - * @interface IWorkflowNodeMetadata - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId - */ - - /** - * Constructs a new WorkflowNodeMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowNodeMetadata. - * @implements IWorkflowNodeMetadata - * @constructor - * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set - */ - function WorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowNodeMetadata executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @instance - */ - WorkflowNodeMetadata.prototype.executionId = null; - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance - */ - WorkflowNodeMetadata.create = function create(properties) { - return new WorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return WorkflowNodeMetadata; - })(); - - admin.TaskNodeMetadata = (function() { - - /** - * Properties of a TaskNodeMetadata. - * @memberof flyteidl.admin - * @interface ITaskNodeMetadata - * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus - * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey - * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri - */ - - /** - * Constructs a new TaskNodeMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a TaskNodeMetadata. - * @implements ITaskNodeMetadata - * @constructor - * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set - */ - function TaskNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNodeMetadata cacheStatus. - * @member {flyteidl.core.CatalogCacheStatus} cacheStatus - * @memberof flyteidl.admin.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.cacheStatus = 0; - - /** - * TaskNodeMetadata catalogKey. - * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey - * @memberof flyteidl.admin.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.catalogKey = null; - - /** - * TaskNodeMetadata checkpointUri. - * @member {string} checkpointUri - * @memberof flyteidl.admin.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.checkpointUri = ""; - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata instance - */ - TaskNodeMetadata.create = function create(properties) { - return new TaskNodeMetadata(properties); - }; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {flyteidl.admin.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) - $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); - return writer; - }; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cacheStatus = reader.int32(); - break; - case 2: - message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); - break; - case 4: - message.checkpointUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNodeMetadata message. - * @function verify - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { - var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); - if (error) - return "catalogKey." + error; - } - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - if (!$util.isString(message.checkpointUri)) - return "checkpointUri: string expected"; - return null; - }; - - return TaskNodeMetadata; - })(); - - admin.DynamicWorkflowNodeMetadata = (function() { - - /** - * Properties of a DynamicWorkflowNodeMetadata. - * @memberof flyteidl.admin - * @interface IDynamicWorkflowNodeMetadata - * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow - * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri - */ - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a DynamicWorkflowNodeMetadata. - * @implements IDynamicWorkflowNodeMetadata - * @constructor - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - */ - function DynamicWorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicWorkflowNodeMetadata id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.id = null; - - /** - * DynamicWorkflowNodeMetadata compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; - - /** - * DynamicWorkflowNodeMetadata dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance - */ - DynamicWorkflowNodeMetadata.create = function create(properties) { - return new DynamicWorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); - return writer; - }; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DynamicWorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - case 3: - message.dynamicJobSpecUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicWorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicWorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - if (!$util.isString(message.dynamicJobSpecUri)) - return "dynamicJobSpecUri: string expected"; - return null; - }; - - return DynamicWorkflowNodeMetadata; - })(); - - admin.NodeExecutionGetDataRequest = (function() { - - /** - * Properties of a NodeExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionGetDataRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id - */ - - /** - * Constructs a new NodeExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetDataRequest. - * @implements INodeExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set - */ - function NodeExecutionGetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionGetDataRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @instance - */ - NodeExecutionGetDataRequest.prototype.id = null; - - /** - * Creates a new NodeExecutionGetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest instance - */ - NodeExecutionGetDataRequest.create = function create(properties) { - return new NodeExecutionGetDataRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionGetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionGetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionGetDataRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionGetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return NodeExecutionGetDataRequest; - })(); - - admin.NodeExecutionGetDataResponse = (function() { - - /** - * Properties of a NodeExecutionGetDataResponse. - * @memberof flyteidl.admin - * @interface INodeExecutionGetDataResponse - * @property {flyteidl.admin.IUrlBlob|null} [inputs] NodeExecutionGetDataResponse inputs - * @property {flyteidl.admin.IUrlBlob|null} [outputs] NodeExecutionGetDataResponse outputs - * @property {flyteidl.core.ILiteralMap|null} [fullInputs] NodeExecutionGetDataResponse fullInputs - * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] NodeExecutionGetDataResponse fullOutputs - * @property {flyteidl.admin.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] NodeExecutionGetDataResponse dynamicWorkflow - * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] NodeExecutionGetDataResponse flyteUrls - */ - - /** - * Constructs a new NodeExecutionGetDataResponse. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetDataResponse. - * @implements INodeExecutionGetDataResponse - * @constructor - * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set - */ - function NodeExecutionGetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionGetDataResponse inputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.inputs = null; - - /** - * NodeExecutionGetDataResponse outputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.outputs = null; - - /** - * NodeExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.fullInputs = null; - - /** - * NodeExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.fullOutputs = null; - - /** - * NodeExecutionGetDataResponse dynamicWorkflow. - * @member {flyteidl.admin.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.dynamicWorkflow = null; - - /** - * NodeExecutionGetDataResponse flyteUrls. - * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.flyteUrls = null; - - /** - * Creates a new NodeExecutionGetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance - */ - NodeExecutionGetDataResponse.create = function create(properties) { - return new NodeExecutionGetDataResponse(properties); - }; - - /** - * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionGetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) - $root.flyteidl.admin.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) - $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionGetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 16: - message.dynamicWorkflow = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - case 17: - message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionGetDataResponse message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionGetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); - if (error) - return "fullInputs." + error; - } - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); - if (error) - return "fullOutputs." + error; - } - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { - var error = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); - if (error) - return "dynamicWorkflow." + error; - } - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { - var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); - if (error) - return "flyteUrls." + error; - } - return null; - }; - - return NodeExecutionGetDataResponse; - })(); - - admin.GetDynamicNodeWorkflowRequest = (function() { - - /** - * Properties of a GetDynamicNodeWorkflowRequest. - * @memberof flyteidl.admin - * @interface IGetDynamicNodeWorkflowRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] GetDynamicNodeWorkflowRequest id - */ - - /** - * Constructs a new GetDynamicNodeWorkflowRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetDynamicNodeWorkflowRequest. - * @implements IGetDynamicNodeWorkflowRequest - * @constructor - * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest=} [properties] Properties to set - */ - function GetDynamicNodeWorkflowRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetDynamicNodeWorkflowRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest - * @instance - */ - GetDynamicNodeWorkflowRequest.prototype.id = null; - - /** - * Creates a new GetDynamicNodeWorkflowRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest - * @static - * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetDynamicNodeWorkflowRequest} GetDynamicNodeWorkflowRequest instance - */ - GetDynamicNodeWorkflowRequest.create = function create(properties) { - return new GetDynamicNodeWorkflowRequest(properties); - }; - - /** - * Encodes the specified GetDynamicNodeWorkflowRequest message. Does not implicitly {@link flyteidl.admin.GetDynamicNodeWorkflowRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest - * @static - * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest} message GetDynamicNodeWorkflowRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDynamicNodeWorkflowRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetDynamicNodeWorkflowRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetDynamicNodeWorkflowRequest} GetDynamicNodeWorkflowRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDynamicNodeWorkflowRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetDynamicNodeWorkflowRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetDynamicNodeWorkflowRequest message. - * @function verify - * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDynamicNodeWorkflowRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return GetDynamicNodeWorkflowRequest; - })(); - - admin.DynamicNodeWorkflowResponse = (function() { - - /** - * Properties of a DynamicNodeWorkflowResponse. - * @memberof flyteidl.admin - * @interface IDynamicNodeWorkflowResponse - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicNodeWorkflowResponse compiledWorkflow - */ - - /** - * Constructs a new DynamicNodeWorkflowResponse. - * @memberof flyteidl.admin - * @classdesc Represents a DynamicNodeWorkflowResponse. - * @implements IDynamicNodeWorkflowResponse - * @constructor - * @param {flyteidl.admin.IDynamicNodeWorkflowResponse=} [properties] Properties to set - */ - function DynamicNodeWorkflowResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicNodeWorkflowResponse compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.admin.DynamicNodeWorkflowResponse - * @instance - */ - DynamicNodeWorkflowResponse.prototype.compiledWorkflow = null; - - /** - * Creates a new DynamicNodeWorkflowResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DynamicNodeWorkflowResponse - * @static - * @param {flyteidl.admin.IDynamicNodeWorkflowResponse=} [properties] Properties to set - * @returns {flyteidl.admin.DynamicNodeWorkflowResponse} DynamicNodeWorkflowResponse instance - */ - DynamicNodeWorkflowResponse.create = function create(properties) { - return new DynamicNodeWorkflowResponse(properties); - }; - - /** - * Encodes the specified DynamicNodeWorkflowResponse message. Does not implicitly {@link flyteidl.admin.DynamicNodeWorkflowResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DynamicNodeWorkflowResponse - * @static - * @param {flyteidl.admin.IDynamicNodeWorkflowResponse} message DynamicNodeWorkflowResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicNodeWorkflowResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DynamicNodeWorkflowResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DynamicNodeWorkflowResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DynamicNodeWorkflowResponse} DynamicNodeWorkflowResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicNodeWorkflowResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DynamicNodeWorkflowResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicNodeWorkflowResponse message. - * @function verify - * @memberof flyteidl.admin.DynamicNodeWorkflowResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicNodeWorkflowResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - return null; - }; - - return DynamicNodeWorkflowResponse; - })(); - - admin.EmailMessage = (function() { - - /** - * Properties of an EmailMessage. - * @memberof flyteidl.admin - * @interface IEmailMessage - * @property {Array.|null} [recipientsEmail] EmailMessage recipientsEmail - * @property {string|null} [senderEmail] EmailMessage senderEmail - * @property {string|null} [subjectLine] EmailMessage subjectLine - * @property {string|null} [body] EmailMessage body - */ - - /** - * Constructs a new EmailMessage. - * @memberof flyteidl.admin - * @classdesc Represents an EmailMessage. - * @implements IEmailMessage - * @constructor - * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set - */ - function EmailMessage(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EmailMessage recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.recipientsEmail = $util.emptyArray; - - /** - * EmailMessage senderEmail. - * @member {string} senderEmail - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.senderEmail = ""; - - /** - * EmailMessage subjectLine. - * @member {string} subjectLine - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.subjectLine = ""; - - /** - * EmailMessage body. - * @member {string} body - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.body = ""; - - /** - * Creates a new EmailMessage instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set - * @returns {flyteidl.admin.EmailMessage} EmailMessage instance - */ - EmailMessage.create = function create(properties) { - return new EmailMessage(properties); - }; - - /** - * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailMessage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.senderEmail); - if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subjectLine); - if (message.body != null && message.hasOwnProperty("body")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.body); - return writer; - }; - - /** - * Decodes an EmailMessage message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EmailMessage} EmailMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailMessage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailMessage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - case 2: - message.senderEmail = reader.string(); - break; - case 3: - message.subjectLine = reader.string(); - break; - case 4: - message.body = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EmailMessage message. - * @function verify - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EmailMessage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) - if (!$util.isString(message.senderEmail)) - return "senderEmail: string expected"; - if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) - if (!$util.isString(message.subjectLine)) - return "subjectLine: string expected"; - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - return null; - }; - - return EmailMessage; - })(); - - admin.Domain = (function() { - - /** - * Properties of a Domain. - * @memberof flyteidl.admin - * @interface IDomain - * @property {string|null} [id] Domain id - * @property {string|null} [name] Domain name - */ - - /** - * Constructs a new Domain. - * @memberof flyteidl.admin - * @classdesc Represents a Domain. - * @implements IDomain - * @constructor - * @param {flyteidl.admin.IDomain=} [properties] Properties to set - */ - function Domain(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Domain id. - * @member {string} id - * @memberof flyteidl.admin.Domain - * @instance - */ - Domain.prototype.id = ""; - - /** - * Domain name. - * @member {string} name - * @memberof flyteidl.admin.Domain - * @instance - */ - Domain.prototype.name = ""; - - /** - * Creates a new Domain instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Domain - * @static - * @param {flyteidl.admin.IDomain=} [properties] Properties to set - * @returns {flyteidl.admin.Domain} Domain instance - */ - Domain.create = function create(properties) { - return new Domain(properties); - }; - - /** - * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Domain - * @static - * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Domain.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - return writer; - }; - - /** - * Decodes a Domain message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Domain - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Domain} Domain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Domain.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Domain(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Domain message. - * @function verify - * @memberof flyteidl.admin.Domain - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Domain.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return Domain; - })(); - - admin.Project = (function() { - - /** - * Properties of a Project. - * @memberof flyteidl.admin - * @interface IProject - * @property {string|null} [id] Project id - * @property {string|null} [name] Project name - * @property {Array.|null} [domains] Project domains - * @property {string|null} [description] Project description - * @property {flyteidl.admin.ILabels|null} [labels] Project labels - * @property {flyteidl.admin.Project.ProjectState|null} [state] Project state - * @property {string|null} [org] Project org - */ - - /** - * Constructs a new Project. - * @memberof flyteidl.admin - * @classdesc Represents a Project. - * @implements IProject - * @constructor - * @param {flyteidl.admin.IProject=} [properties] Properties to set - */ - function Project(properties) { - this.domains = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Project id. - * @member {string} id - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.id = ""; - - /** - * Project name. - * @member {string} name - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.name = ""; - - /** - * Project domains. - * @member {Array.} domains - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.domains = $util.emptyArray; - - /** - * Project description. - * @member {string} description - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.description = ""; - - /** - * Project labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.labels = null; - - /** - * Project state. - * @member {flyteidl.admin.Project.ProjectState} state - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.state = 0; - - /** - * Project org. - * @member {string} org - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.org = ""; - - /** - * Creates a new Project instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Project - * @static - * @param {flyteidl.admin.IProject=} [properties] Properties to set - * @returns {flyteidl.admin.Project} Project instance - */ - Project.create = function create(properties) { - return new Project(properties); - }; - - /** - * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Project - * @static - * @param {flyteidl.admin.IProject} message Project message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Project.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.domains != null && message.domains.length) - for (var i = 0; i < message.domains.length; ++i) - $root.flyteidl.admin.Domain.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.org); - return writer; - }; - - /** - * Decodes a Project message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Project - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Project} Project - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Project.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Project(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - if (!(message.domains && message.domains.length)) - message.domains = []; - message.domains.push($root.flyteidl.admin.Domain.decode(reader, reader.uint32())); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 6: - message.state = reader.int32(); - break; - case 7: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Project message. - * @function verify - * @memberof flyteidl.admin.Project - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Project.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.domains != null && message.hasOwnProperty("domains")) { - if (!Array.isArray(message.domains)) - return "domains: array expected"; - for (var i = 0; i < message.domains.length; ++i) { - var error = $root.flyteidl.admin.Domain.verify(message.domains[i]); - if (error) - return "domains." + error; - } - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - /** - * ProjectState enum. - * @name flyteidl.admin.Project.ProjectState - * @enum {string} - * @property {number} ACTIVE=0 ACTIVE value - * @property {number} ARCHIVED=1 ARCHIVED value - * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value - */ - Project.ProjectState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTIVE"] = 0; - values[valuesById[1] = "ARCHIVED"] = 1; - values[valuesById[2] = "SYSTEM_GENERATED"] = 2; - return values; - })(); - - return Project; - })(); - - admin.Projects = (function() { - - /** - * Properties of a Projects. - * @memberof flyteidl.admin - * @interface IProjects - * @property {Array.|null} [projects] Projects projects - * @property {string|null} [token] Projects token - */ - - /** - * Constructs a new Projects. - * @memberof flyteidl.admin - * @classdesc Represents a Projects. - * @implements IProjects - * @constructor - * @param {flyteidl.admin.IProjects=} [properties] Properties to set - */ - function Projects(properties) { - this.projects = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Projects projects. - * @member {Array.} projects - * @memberof flyteidl.admin.Projects - * @instance - */ - Projects.prototype.projects = $util.emptyArray; - - /** - * Projects token. - * @member {string} token - * @memberof flyteidl.admin.Projects - * @instance - */ - Projects.prototype.token = ""; - - /** - * Creates a new Projects instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Projects - * @static - * @param {flyteidl.admin.IProjects=} [properties] Properties to set - * @returns {flyteidl.admin.Projects} Projects instance - */ - Projects.create = function create(properties) { - return new Projects(properties); - }; - - /** - * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Projects - * @static - * @param {flyteidl.admin.IProjects} message Projects message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Projects.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.projects != null && message.projects.length) - for (var i = 0; i < message.projects.length; ++i) - $root.flyteidl.admin.Project.encode(message.projects[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a Projects message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Projects - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Projects} Projects - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Projects.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Projects(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.projects && message.projects.length)) - message.projects = []; - message.projects.push($root.flyteidl.admin.Project.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Projects message. - * @function verify - * @memberof flyteidl.admin.Projects - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Projects.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.projects != null && message.hasOwnProperty("projects")) { - if (!Array.isArray(message.projects)) - return "projects: array expected"; - for (var i = 0; i < message.projects.length; ++i) { - var error = $root.flyteidl.admin.Project.verify(message.projects[i]); - if (error) - return "projects." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return Projects; - })(); - - admin.ProjectListRequest = (function() { - - /** - * Properties of a ProjectListRequest. - * @memberof flyteidl.admin - * @interface IProjectListRequest - * @property {number|null} [limit] ProjectListRequest limit - * @property {string|null} [token] ProjectListRequest token - * @property {string|null} [filters] ProjectListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] ProjectListRequest sortBy - * @property {string|null} [org] ProjectListRequest org - */ - - /** - * Constructs a new ProjectListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectListRequest. - * @implements IProjectListRequest - * @constructor - * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set - */ - function ProjectListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.limit = 0; - - /** - * ProjectListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.token = ""; - - /** - * ProjectListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.filters = ""; - - /** - * ProjectListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.sortBy = null; - - /** - * ProjectListRequest org. - * @member {string} org - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.org = ""; - - /** - * Creates a new ProjectListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance - */ - ProjectListRequest.create = function create(properties) { - return new ProjectListRequest(properties); - }; - - /** - * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.limit = reader.uint32(); - break; - case 2: - message.token = reader.string(); - break; - case 3: - message.filters = reader.string(); - break; - case 4: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 5: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectListRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectListRequest; - })(); - - admin.ProjectRegisterRequest = (function() { - - /** - * Properties of a ProjectRegisterRequest. - * @memberof flyteidl.admin - * @interface IProjectRegisterRequest - * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project - */ - - /** - * Constructs a new ProjectRegisterRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectRegisterRequest. - * @implements IProjectRegisterRequest - * @constructor - * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set - */ - function ProjectRegisterRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectRegisterRequest project. - * @member {flyteidl.admin.IProject|null|undefined} project - * @memberof flyteidl.admin.ProjectRegisterRequest - * @instance - */ - ProjectRegisterRequest.prototype.project = null; - - /** - * Creates a new ProjectRegisterRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance - */ - ProjectRegisterRequest.create = function create(properties) { - return new ProjectRegisterRequest(properties); - }; - - /** - * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectRegisterRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - $root.flyteidl.admin.Project.encode(message.project, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectRegisterRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectRegisterRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectRegisterRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectRegisterRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) { - var error = $root.flyteidl.admin.Project.verify(message.project); - if (error) - return "project." + error; - } - return null; - }; - - return ProjectRegisterRequest; - })(); - - admin.ProjectRegisterResponse = (function() { - - /** - * Properties of a ProjectRegisterResponse. - * @memberof flyteidl.admin - * @interface IProjectRegisterResponse - */ - - /** - * Constructs a new ProjectRegisterResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectRegisterResponse. - * @implements IProjectRegisterResponse - * @constructor - * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set - */ - function ProjectRegisterResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectRegisterResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance - */ - ProjectRegisterResponse.create = function create(properties) { - return new ProjectRegisterResponse(properties); - }; - - /** - * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectRegisterResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectRegisterResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectRegisterResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectRegisterResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectRegisterResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectRegisterResponse; - })(); - - admin.ProjectUpdateResponse = (function() { - - /** - * Properties of a ProjectUpdateResponse. - * @memberof flyteidl.admin - * @interface IProjectUpdateResponse - */ - - /** - * Constructs a new ProjectUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectUpdateResponse. - * @implements IProjectUpdateResponse - * @constructor - * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set - */ - function ProjectUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse instance - */ - ProjectUpdateResponse.create = function create(properties) { - return new ProjectUpdateResponse(properties); - }; - - /** - * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {flyteidl.admin.IProjectUpdateResponse} message ProjectUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectUpdateResponse; - })(); - - admin.ProjectAttributes = (function() { - - /** - * Properties of a ProjectAttributes. - * @memberof flyteidl.admin - * @interface IProjectAttributes - * @property {string|null} [project] ProjectAttributes project - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectAttributes matchingAttributes - * @property {string|null} [org] ProjectAttributes org - */ - - /** - * Constructs a new ProjectAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributes. - * @implements IProjectAttributes - * @constructor - * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set - */ - function ProjectAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributes project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributes - * @instance - */ - ProjectAttributes.prototype.project = ""; - - /** - * ProjectAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.ProjectAttributes - * @instance - */ - ProjectAttributes.prototype.matchingAttributes = null; - - /** - * ProjectAttributes org. - * @member {string} org - * @memberof flyteidl.admin.ProjectAttributes - * @instance - */ - ProjectAttributes.prototype.org = ""; - - /** - * Creates a new ProjectAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes instance - */ - ProjectAttributes.create = function create(properties) { - return new ProjectAttributes(properties); - }; - - /** - * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {flyteidl.admin.IProjectAttributes} message ProjectAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - case 3: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributes message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); - if (error) - return "matchingAttributes." + error; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectAttributes; - })(); - - admin.ProjectAttributesUpdateRequest = (function() { - - /** - * Properties of a ProjectAttributesUpdateRequest. - * @memberof flyteidl.admin - * @interface IProjectAttributesUpdateRequest - * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesUpdateRequest attributes - */ - - /** - * Constructs a new ProjectAttributesUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesUpdateRequest. - * @implements IProjectAttributesUpdateRequest - * @constructor - * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set - */ - function ProjectAttributesUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @instance - */ - ProjectAttributesUpdateRequest.prototype.attributes = null; - - /** - * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest instance - */ - ProjectAttributesUpdateRequest.create = function create(properties) { - return new ProjectAttributesUpdateRequest(properties); - }; - - /** - * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} message ProjectAttributesUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectAttributesUpdateRequest; - })(); - - admin.ProjectAttributesUpdateResponse = (function() { - - /** - * Properties of a ProjectAttributesUpdateResponse. - * @memberof flyteidl.admin - * @interface IProjectAttributesUpdateResponse - */ - - /** - * Constructs a new ProjectAttributesUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesUpdateResponse. - * @implements IProjectAttributesUpdateResponse - * @constructor - * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set - */ - function ProjectAttributesUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse instance - */ - ProjectAttributesUpdateResponse.create = function create(properties) { - return new ProjectAttributesUpdateResponse(properties); - }; - - /** - * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateResponse} message ProjectAttributesUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectAttributesUpdateResponse; - })(); - - admin.ProjectAttributesGetRequest = (function() { - - /** - * Properties of a ProjectAttributesGetRequest. - * @memberof flyteidl.admin - * @interface IProjectAttributesGetRequest - * @property {string|null} [project] ProjectAttributesGetRequest project - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesGetRequest resourceType - * @property {string|null} [org] ProjectAttributesGetRequest org - */ - - /** - * Constructs a new ProjectAttributesGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesGetRequest. - * @implements IProjectAttributesGetRequest - * @constructor - * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set - */ - function ProjectAttributesGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @instance - */ - ProjectAttributesGetRequest.prototype.project = ""; - - /** - * ProjectAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @instance - */ - ProjectAttributesGetRequest.prototype.resourceType = 0; - - /** - * ProjectAttributesGetRequest org. - * @member {string} org - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @instance - */ - ProjectAttributesGetRequest.prototype.org = ""; - - /** - * Creates a new ProjectAttributesGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest instance - */ - ProjectAttributesGetRequest.create = function create(properties) { - return new ProjectAttributesGetRequest(properties); - }; - - /** - * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectAttributesGetRequest} message ProjectAttributesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.resourceType = reader.int32(); - break; - case 3: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesGetRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectAttributesGetRequest; - })(); - - admin.ProjectAttributesGetResponse = (function() { - - /** - * Properties of a ProjectAttributesGetResponse. - * @memberof flyteidl.admin - * @interface IProjectAttributesGetResponse - * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesGetResponse attributes - */ - - /** - * Constructs a new ProjectAttributesGetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesGetResponse. - * @implements IProjectAttributesGetResponse - * @constructor - * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set - */ - function ProjectAttributesGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesGetResponse attributes. - * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @instance - */ - ProjectAttributesGetResponse.prototype.attributes = null; - - /** - * Creates a new ProjectAttributesGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse instance - */ - ProjectAttributesGetResponse.create = function create(properties) { - return new ProjectAttributesGetResponse(properties); - }; - - /** - * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectAttributesGetResponse} message ProjectAttributesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesGetResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectAttributesGetResponse; - })(); - - admin.ProjectAttributesDeleteRequest = (function() { - - /** - * Properties of a ProjectAttributesDeleteRequest. - * @memberof flyteidl.admin - * @interface IProjectAttributesDeleteRequest - * @property {string|null} [project] ProjectAttributesDeleteRequest project - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesDeleteRequest resourceType - * @property {string|null} [org] ProjectAttributesDeleteRequest org - */ - - /** - * Constructs a new ProjectAttributesDeleteRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesDeleteRequest. - * @implements IProjectAttributesDeleteRequest - * @constructor - * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set - */ - function ProjectAttributesDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @instance - */ - ProjectAttributesDeleteRequest.prototype.project = ""; - - /** - * ProjectAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @instance - */ - ProjectAttributesDeleteRequest.prototype.resourceType = 0; - - /** - * ProjectAttributesDeleteRequest org. - * @member {string} org - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @instance - */ - ProjectAttributesDeleteRequest.prototype.org = ""; - - /** - * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest instance - */ - ProjectAttributesDeleteRequest.create = function create(properties) { - return new ProjectAttributesDeleteRequest(properties); - }; - - /** - * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} message ProjectAttributesDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.resourceType = reader.int32(); - break; - case 3: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesDeleteRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectAttributesDeleteRequest; - })(); - - admin.ProjectAttributesDeleteResponse = (function() { - - /** - * Properties of a ProjectAttributesDeleteResponse. - * @memberof flyteidl.admin - * @interface IProjectAttributesDeleteResponse - */ - - /** - * Constructs a new ProjectAttributesDeleteResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesDeleteResponse. - * @implements IProjectAttributesDeleteResponse - * @constructor - * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set - */ - function ProjectAttributesDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse instance - */ - ProjectAttributesDeleteResponse.create = function create(properties) { - return new ProjectAttributesDeleteResponse(properties); - }; - - /** - * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteResponse} message ProjectAttributesDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesDeleteResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectAttributesDeleteResponse; - })(); - - admin.ProjectDomainAttributes = (function() { - - /** - * Properties of a ProjectDomainAttributes. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributes - * @property {string|null} [project] ProjectDomainAttributes project - * @property {string|null} [domain] ProjectDomainAttributes domain - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectDomainAttributes matchingAttributes - * @property {string|null} [org] ProjectDomainAttributes org - */ - - /** - * Constructs a new ProjectDomainAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributes. - * @implements IProjectDomainAttributes - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set - */ - function ProjectDomainAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributes project. - * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.project = ""; - - /** - * ProjectDomainAttributes domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.domain = ""; - - /** - * ProjectDomainAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.matchingAttributes = null; - - /** - * ProjectDomainAttributes org. - * @member {string} org - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.org = ""; - - /** - * Creates a new ProjectDomainAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes instance - */ - ProjectDomainAttributes.create = function create(properties) { - return new ProjectDomainAttributes(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {flyteidl.admin.IProjectDomainAttributes} message ProjectDomainAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - case 4: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributes message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); - if (error) - return "matchingAttributes." + error; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectDomainAttributes; - })(); - - admin.ProjectDomainAttributesUpdateRequest = (function() { - - /** - * Properties of a ProjectDomainAttributesUpdateRequest. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesUpdateRequest - * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesUpdateRequest attributes - */ - - /** - * Constructs a new ProjectDomainAttributesUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesUpdateRequest. - * @implements IProjectDomainAttributesUpdateRequest - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set - */ - function ProjectDomainAttributesUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @instance - */ - ProjectDomainAttributesUpdateRequest.prototype.attributes = null; - - /** - * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest instance - */ - ProjectDomainAttributesUpdateRequest.create = function create(properties) { - return new ProjectDomainAttributesUpdateRequest(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} message ProjectDomainAttributesUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectDomainAttributesUpdateRequest; - })(); - - admin.ProjectDomainAttributesUpdateResponse = (function() { - - /** - * Properties of a ProjectDomainAttributesUpdateResponse. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesUpdateResponse - */ - - /** - * Constructs a new ProjectDomainAttributesUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesUpdateResponse. - * @implements IProjectDomainAttributesUpdateResponse - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set - */ - function ProjectDomainAttributesUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse instance - */ - ProjectDomainAttributesUpdateResponse.create = function create(properties) { - return new ProjectDomainAttributesUpdateResponse(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse} message ProjectDomainAttributesUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectDomainAttributesUpdateResponse; - })(); - - admin.ProjectDomainAttributesGetRequest = (function() { - - /** - * Properties of a ProjectDomainAttributesGetRequest. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesGetRequest - * @property {string|null} [project] ProjectDomainAttributesGetRequest project - * @property {string|null} [domain] ProjectDomainAttributesGetRequest domain - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesGetRequest resourceType - * @property {string|null} [org] ProjectDomainAttributesGetRequest org - */ - - /** - * Constructs a new ProjectDomainAttributesGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesGetRequest. - * @implements IProjectDomainAttributesGetRequest - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set - */ - function ProjectDomainAttributesGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.project = ""; - - /** - * ProjectDomainAttributesGetRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.domain = ""; - - /** - * ProjectDomainAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.resourceType = 0; - - /** - * ProjectDomainAttributesGetRequest org. - * @member {string} org - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.org = ""; - - /** - * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest instance - */ - ProjectDomainAttributesGetRequest.create = function create(properties) { - return new ProjectDomainAttributesGetRequest(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} message ProjectDomainAttributesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.resourceType = reader.int32(); - break; - case 4: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesGetRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectDomainAttributesGetRequest; - })(); - - admin.ProjectDomainAttributesGetResponse = (function() { - - /** - * Properties of a ProjectDomainAttributesGetResponse. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesGetResponse - * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesGetResponse attributes - */ - - /** - * Constructs a new ProjectDomainAttributesGetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesGetResponse. - * @implements IProjectDomainAttributesGetResponse - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set - */ - function ProjectDomainAttributesGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesGetResponse attributes. - * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @instance - */ - ProjectDomainAttributesGetResponse.prototype.attributes = null; - - /** - * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse instance - */ - ProjectDomainAttributesGetResponse.create = function create(properties) { - return new ProjectDomainAttributesGetResponse(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse} message ProjectDomainAttributesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesGetResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectDomainAttributesGetResponse; - })(); - - admin.ProjectDomainAttributesDeleteRequest = (function() { - - /** - * Properties of a ProjectDomainAttributesDeleteRequest. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesDeleteRequest - * @property {string|null} [project] ProjectDomainAttributesDeleteRequest project - * @property {string|null} [domain] ProjectDomainAttributesDeleteRequest domain - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesDeleteRequest resourceType - * @property {string|null} [org] ProjectDomainAttributesDeleteRequest org - */ - - /** - * Constructs a new ProjectDomainAttributesDeleteRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesDeleteRequest. - * @implements IProjectDomainAttributesDeleteRequest - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set - */ - function ProjectDomainAttributesDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.project = ""; - - /** - * ProjectDomainAttributesDeleteRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.domain = ""; - - /** - * ProjectDomainAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.resourceType = 0; - - /** - * ProjectDomainAttributesDeleteRequest org. - * @member {string} org - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.org = ""; - - /** - * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest instance - */ - ProjectDomainAttributesDeleteRequest.create = function create(properties) { - return new ProjectDomainAttributesDeleteRequest(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} message ProjectDomainAttributesDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.resourceType = reader.int32(); - break; - case 4: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesDeleteRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return ProjectDomainAttributesDeleteRequest; - })(); - - admin.ProjectDomainAttributesDeleteResponse = (function() { - - /** - * Properties of a ProjectDomainAttributesDeleteResponse. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesDeleteResponse - */ - - /** - * Constructs a new ProjectDomainAttributesDeleteResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesDeleteResponse. - * @implements IProjectDomainAttributesDeleteResponse - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set - */ - function ProjectDomainAttributesDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse instance - */ - ProjectDomainAttributesDeleteResponse.create = function create(properties) { - return new ProjectDomainAttributesDeleteResponse(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse} message ProjectDomainAttributesDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesDeleteResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectDomainAttributesDeleteResponse; - })(); - - admin.SignalGetOrCreateRequest = (function() { - - /** - * Properties of a SignalGetOrCreateRequest. - * @memberof flyteidl.admin - * @interface ISignalGetOrCreateRequest - * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalGetOrCreateRequest id - * @property {flyteidl.core.ILiteralType|null} [type] SignalGetOrCreateRequest type - */ - - /** - * Constructs a new SignalGetOrCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a SignalGetOrCreateRequest. - * @implements ISignalGetOrCreateRequest - * @constructor - * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set - */ - function SignalGetOrCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalGetOrCreateRequest id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @instance - */ - SignalGetOrCreateRequest.prototype.id = null; - - /** - * SignalGetOrCreateRequest type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @instance - */ - SignalGetOrCreateRequest.prototype.type = null; - - /** - * Creates a new SignalGetOrCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest instance - */ - SignalGetOrCreateRequest.create = function create(properties) { - return new SignalGetOrCreateRequest(properties); - }; - - /** - * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {flyteidl.admin.ISignalGetOrCreateRequest} message SignalGetOrCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalGetOrCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalGetOrCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalGetOrCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalGetOrCreateRequest message. - * @function verify - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalGetOrCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return SignalGetOrCreateRequest; - })(); - - admin.SignalListRequest = (function() { - - /** - * Properties of a SignalListRequest. - * @memberof flyteidl.admin - * @interface ISignalListRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] SignalListRequest workflowExecutionId - * @property {number|null} [limit] SignalListRequest limit - * @property {string|null} [token] SignalListRequest token - * @property {string|null} [filters] SignalListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] SignalListRequest sortBy - */ - - /** - * Constructs a new SignalListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a SignalListRequest. - * @implements ISignalListRequest - * @constructor - * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set - */ - function SignalListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalListRequest workflowExecutionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.workflowExecutionId = null; - - /** - * SignalListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.limit = 0; - - /** - * SignalListRequest token. - * @member {string} token - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.token = ""; - - /** - * SignalListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.filters = ""; - - /** - * SignalListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.sortBy = null; - - /** - * Creates a new SignalListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalListRequest} SignalListRequest instance - */ - SignalListRequest.create = function create(properties) { - return new SignalListRequest(properties); - }; - - /** - * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {flyteidl.admin.ISignalListRequest} message SignalListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalListRequest} SignalListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalListRequest message. - * @function verify - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); - if (error) - return "workflowExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return SignalListRequest; - })(); - - admin.SignalList = (function() { - - /** - * Properties of a SignalList. - * @memberof flyteidl.admin - * @interface ISignalList - * @property {Array.|null} [signals] SignalList signals - * @property {string|null} [token] SignalList token - */ - - /** - * Constructs a new SignalList. - * @memberof flyteidl.admin - * @classdesc Represents a SignalList. - * @implements ISignalList - * @constructor - * @param {flyteidl.admin.ISignalList=} [properties] Properties to set - */ - function SignalList(properties) { - this.signals = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalList signals. - * @member {Array.} signals - * @memberof flyteidl.admin.SignalList - * @instance - */ - SignalList.prototype.signals = $util.emptyArray; - - /** - * SignalList token. - * @member {string} token - * @memberof flyteidl.admin.SignalList - * @instance - */ - SignalList.prototype.token = ""; - - /** - * Creates a new SignalList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalList - * @static - * @param {flyteidl.admin.ISignalList=} [properties] Properties to set - * @returns {flyteidl.admin.SignalList} SignalList instance - */ - SignalList.create = function create(properties) { - return new SignalList(properties); - }; - - /** - * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalList - * @static - * @param {flyteidl.admin.ISignalList} message SignalList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signals != null && message.signals.length) - for (var i = 0; i < message.signals.length; ++i) - $root.flyteidl.admin.Signal.encode(message.signals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a SignalList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalList} SignalList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.signals && message.signals.length)) - message.signals = []; - message.signals.push($root.flyteidl.admin.Signal.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalList message. - * @function verify - * @memberof flyteidl.admin.SignalList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signals != null && message.hasOwnProperty("signals")) { - if (!Array.isArray(message.signals)) - return "signals: array expected"; - for (var i = 0; i < message.signals.length; ++i) { - var error = $root.flyteidl.admin.Signal.verify(message.signals[i]); - if (error) - return "signals." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return SignalList; - })(); - - admin.SignalSetRequest = (function() { - - /** - * Properties of a SignalSetRequest. - * @memberof flyteidl.admin - * @interface ISignalSetRequest - * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalSetRequest id - * @property {flyteidl.core.ILiteral|null} [value] SignalSetRequest value - */ - - /** - * Constructs a new SignalSetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a SignalSetRequest. - * @implements ISignalSetRequest - * @constructor - * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set - */ - function SignalSetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalSetRequest id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.SignalSetRequest - * @instance - */ - SignalSetRequest.prototype.id = null; - - /** - * SignalSetRequest value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.admin.SignalSetRequest - * @instance - */ - SignalSetRequest.prototype.value = null; - - /** - * Creates a new SignalSetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest instance - */ - SignalSetRequest.create = function create(properties) { - return new SignalSetRequest(properties); - }; - - /** - * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {flyteidl.admin.ISignalSetRequest} message SignalSetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalSetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalSetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalSetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalSetRequest message. - * @function verify - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalSetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return SignalSetRequest; - })(); - - admin.SignalSetResponse = (function() { - - /** - * Properties of a SignalSetResponse. - * @memberof flyteidl.admin - * @interface ISignalSetResponse - */ - - /** - * Constructs a new SignalSetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a SignalSetResponse. - * @implements ISignalSetResponse - * @constructor - * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set - */ - function SignalSetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new SignalSetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse instance - */ - SignalSetResponse.create = function create(properties) { - return new SignalSetResponse(properties); - }; - - /** - * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {flyteidl.admin.ISignalSetResponse} message SignalSetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalSetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a SignalSetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalSetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalSetResponse message. - * @function verify - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalSetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return SignalSetResponse; - })(); - - admin.Signal = (function() { - - /** - * Properties of a Signal. - * @memberof flyteidl.admin - * @interface ISignal - * @property {flyteidl.core.ISignalIdentifier|null} [id] Signal id - * @property {flyteidl.core.ILiteralType|null} [type] Signal type - * @property {flyteidl.core.ILiteral|null} [value] Signal value - */ - - /** - * Constructs a new Signal. - * @memberof flyteidl.admin - * @classdesc Represents a Signal. - * @implements ISignal - * @constructor - * @param {flyteidl.admin.ISignal=} [properties] Properties to set - */ - function Signal(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Signal id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.Signal - * @instance - */ - Signal.prototype.id = null; - - /** - * Signal type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.admin.Signal - * @instance - */ - Signal.prototype.type = null; - - /** - * Signal value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.admin.Signal - * @instance - */ - Signal.prototype.value = null; - - /** - * Creates a new Signal instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Signal - * @static - * @param {flyteidl.admin.ISignal=} [properties] Properties to set - * @returns {flyteidl.admin.Signal} Signal instance - */ - Signal.create = function create(properties) { - return new Signal(properties); - }; - - /** - * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Signal - * @static - * @param {flyteidl.admin.ISignal} message Signal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Signal.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Signal message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Signal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Signal} Signal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Signal.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Signal(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 3: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Signal message. - * @function verify - * @memberof flyteidl.admin.Signal - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Signal.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return Signal; - })(); - - admin.TaskCreateRequest = (function() { - - /** - * Properties of a TaskCreateRequest. - * @memberof flyteidl.admin - * @interface ITaskCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id - * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec - */ - - /** - * Constructs a new TaskCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest - * @constructor - * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set - */ - function TaskCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.id = null; - - /** - * TaskCreateRequest spec. - * @member {flyteidl.admin.ITaskSpec|null|undefined} spec - * @memberof flyteidl.admin.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.spec = null; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest instance - */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); - }; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {flyteidl.admin.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.TaskSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.TaskSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateRequest message. - * @function verify - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.TaskSpec.verify(message.spec); - if (error) - return "spec." + error; - } - return null; - }; - - return TaskCreateRequest; - })(); - - admin.TaskCreateResponse = (function() { - - /** - * Properties of a TaskCreateResponse. - * @memberof flyteidl.admin - * @interface ITaskCreateResponse - */ - - /** - * Constructs a new TaskCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse - * @constructor - * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set - */ - function TaskCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse instance - */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); - }; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {flyteidl.admin.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateResponse message. - * @function verify - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return TaskCreateResponse; - })(); - - admin.Task = (function() { - - /** - * Properties of a Task. - * @memberof flyteidl.admin - * @interface ITask - * @property {flyteidl.core.IIdentifier|null} [id] Task id - * @property {flyteidl.admin.ITaskClosure|null} [closure] Task closure - * @property {string|null} [shortDescription] Task shortDescription - */ - - /** - * Constructs a new Task. - * @memberof flyteidl.admin - * @classdesc Represents a Task. - * @implements ITask - * @constructor - * @param {flyteidl.admin.ITask=} [properties] Properties to set - */ - function Task(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Task id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.Task - * @instance - */ - Task.prototype.id = null; - - /** - * Task closure. - * @member {flyteidl.admin.ITaskClosure|null|undefined} closure - * @memberof flyteidl.admin.Task - * @instance - */ - Task.prototype.closure = null; - - /** - * Task shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.Task - * @instance - */ - Task.prototype.shortDescription = ""; - - /** - * Creates a new Task instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Task - * @static - * @param {flyteidl.admin.ITask=} [properties] Properties to set - * @returns {flyteidl.admin.Task} Task instance - */ - Task.create = function create(properties) { - return new Task(properties); - }; - - /** - * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Task - * @static - * @param {flyteidl.admin.ITask} message Task message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Task.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.TaskClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); - return writer; - }; - - /** - * Decodes a Task message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Task - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Task} Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Task.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Task(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.closure = $root.flyteidl.admin.TaskClosure.decode(reader, reader.uint32()); - break; - case 3: - message.shortDescription = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Task message. - * @function verify - * @memberof flyteidl.admin.Task - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Task.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.TaskClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; - return null; - }; - - return Task; - })(); - - admin.TaskList = (function() { - - /** - * Properties of a TaskList. - * @memberof flyteidl.admin - * @interface ITaskList - * @property {Array.|null} [tasks] TaskList tasks - * @property {string|null} [token] TaskList token - */ - - /** - * Constructs a new TaskList. - * @memberof flyteidl.admin - * @classdesc Represents a TaskList. - * @implements ITaskList - * @constructor - * @param {flyteidl.admin.ITaskList=} [properties] Properties to set - */ - function TaskList(properties) { - this.tasks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskList tasks. - * @member {Array.} tasks - * @memberof flyteidl.admin.TaskList - * @instance - */ - TaskList.prototype.tasks = $util.emptyArray; - - /** - * TaskList token. - * @member {string} token - * @memberof flyteidl.admin.TaskList - * @instance - */ - TaskList.prototype.token = ""; - - /** - * Creates a new TaskList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskList - * @static - * @param {flyteidl.admin.ITaskList=} [properties] Properties to set - * @returns {flyteidl.admin.TaskList} TaskList instance - */ - TaskList.create = function create(properties) { - return new TaskList(properties); - }; - - /** - * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskList - * @static - * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.admin.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a TaskList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskList} TaskList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.admin.Task.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskList message. - * @function verify - * @memberof flyteidl.admin.TaskList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.admin.Task.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return TaskList; - })(); - - admin.TaskSpec = (function() { - - /** - * Properties of a TaskSpec. - * @memberof flyteidl.admin - * @interface ITaskSpec - * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template - * @property {flyteidl.admin.IDescriptionEntity|null} [description] TaskSpec description - */ - - /** - * Constructs a new TaskSpec. - * @memberof flyteidl.admin - * @classdesc Represents a TaskSpec. - * @implements ITaskSpec - * @constructor - * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set - */ - function TaskSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskSpec template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.TaskSpec - * @instance - */ - TaskSpec.prototype.template = null; - - /** - * TaskSpec description. - * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description - * @memberof flyteidl.admin.TaskSpec - * @instance - */ - TaskSpec.prototype.description = null; - - /** - * Creates a new TaskSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set - * @returns {flyteidl.admin.TaskSpec} TaskSpec instance - */ - TaskSpec.create = function create(properties) { - return new TaskSpec(properties); - }; - - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskSpec} TaskSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 2: - message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskSpec message. - * @function verify - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.description != null && message.hasOwnProperty("description")) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); - if (error) - return "description." + error; - } - return null; - }; - - return TaskSpec; - })(); - - admin.TaskClosure = (function() { - - /** - * Properties of a TaskClosure. - * @memberof flyteidl.admin - * @interface ITaskClosure - * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask - * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt - */ - - /** - * Constructs a new TaskClosure. - * @memberof flyteidl.admin - * @classdesc Represents a TaskClosure. - * @implements ITaskClosure - * @constructor - * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set - */ - function TaskClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskClosure compiledTask. - * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask - * @memberof flyteidl.admin.TaskClosure - * @instance - */ - TaskClosure.prototype.compiledTask = null; - - /** - * TaskClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.TaskClosure - * @instance - */ - TaskClosure.prototype.createdAt = null; - - /** - * Creates a new TaskClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set - * @returns {flyteidl.admin.TaskClosure} TaskClosure instance - */ - TaskClosure.create = function create(properties) { - return new TaskClosure(properties); - }; - - /** - * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) - $root.flyteidl.core.CompiledTask.encode(message.compiledTask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskClosure} TaskClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compiledTask = $root.flyteidl.core.CompiledTask.decode(reader, reader.uint32()); - break; - case 2: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskClosure message. - * @function verify - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) { - var error = $root.flyteidl.core.CompiledTask.verify(message.compiledTask); - if (error) - return "compiledTask." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - return null; - }; - - return TaskClosure; - })(); - - admin.TaskExecutionGetRequest = (function() { - - /** - * Properties of a TaskExecutionGetRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionGetRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id - */ - - /** - * Constructs a new TaskExecutionGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetRequest. - * @implements ITaskExecutionGetRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set - */ - function TaskExecutionGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionGetRequest id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @instance - */ - TaskExecutionGetRequest.prototype.id = null; - - /** - * Creates a new TaskExecutionGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance - */ - TaskExecutionGetRequest.create = function create(properties) { - return new TaskExecutionGetRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionGetRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return TaskExecutionGetRequest; - })(); - - admin.TaskExecutionListRequest = (function() { - - /** - * Properties of a TaskExecutionListRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionListRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionListRequest nodeExecutionId - * @property {number|null} [limit] TaskExecutionListRequest limit - * @property {string|null} [token] TaskExecutionListRequest token - * @property {string|null} [filters] TaskExecutionListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] TaskExecutionListRequest sortBy - */ - - /** - * Constructs a new TaskExecutionListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionListRequest. - * @implements ITaskExecutionListRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set - */ - function TaskExecutionListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionListRequest nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.nodeExecutionId = null; - - /** - * TaskExecutionListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.limit = 0; - - /** - * TaskExecutionListRequest token. - * @member {string} token - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.token = ""; - - /** - * TaskExecutionListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.filters = ""; - - /** - * TaskExecutionListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.sortBy = null; - - /** - * Creates a new TaskExecutionListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance - */ - TaskExecutionListRequest.create = function create(properties) { - return new TaskExecutionListRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionListRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return TaskExecutionListRequest; - })(); - - admin.TaskExecution = (function() { - - /** - * Properties of a TaskExecution. - * @memberof flyteidl.admin - * @interface ITaskExecution - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecution id - * @property {string|null} [inputUri] TaskExecution inputUri - * @property {flyteidl.admin.ITaskExecutionClosure|null} [closure] TaskExecution closure - * @property {boolean|null} [isParent] TaskExecution isParent - */ - - /** - * Constructs a new TaskExecution. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution - * @constructor - * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set - */ - function TaskExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecution id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.id = null; - - /** - * TaskExecution inputUri. - * @member {string} inputUri - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.inputUri = ""; - - /** - * TaskExecution closure. - * @member {flyteidl.admin.ITaskExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.closure = null; - - /** - * TaskExecution isParent. - * @member {boolean} isParent - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.isParent = false; - - /** - * Creates a new TaskExecution instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecution} TaskExecution instance - */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); - }; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.TaskExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.isParent != null && message.hasOwnProperty("isParent")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isParent); - return writer; - }; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecution} TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.inputUri = reader.string(); - break; - case 3: - message.closure = $root.flyteidl.admin.TaskExecutionClosure.decode(reader, reader.uint32()); - break; - case 4: - message.isParent = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecution message. - * @function verify - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.TaskExecutionClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.isParent != null && message.hasOwnProperty("isParent")) - if (typeof message.isParent !== "boolean") - return "isParent: boolean expected"; - return null; - }; - - return TaskExecution; - })(); - - admin.TaskExecutionList = (function() { - - /** - * Properties of a TaskExecutionList. - * @memberof flyteidl.admin - * @interface ITaskExecutionList - * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions - * @property {string|null} [token] TaskExecutionList token - */ - - /** - * Constructs a new TaskExecutionList. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionList. - * @implements ITaskExecutionList - * @constructor - * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set - */ - function TaskExecutionList(properties) { - this.taskExecutions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionList taskExecutions. - * @member {Array.} taskExecutions - * @memberof flyteidl.admin.TaskExecutionList - * @instance - */ - TaskExecutionList.prototype.taskExecutions = $util.emptyArray; - - /** - * TaskExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.TaskExecutionList - * @instance - */ - TaskExecutionList.prototype.token = ""; - - /** - * Creates a new TaskExecutionList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance - */ - TaskExecutionList.create = function create(properties) { - return new TaskExecutionList(properties); - }; - - /** - * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskExecutions != null && message.taskExecutions.length) - for (var i = 0; i < message.taskExecutions.length; ++i) - $root.flyteidl.admin.TaskExecution.encode(message.taskExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a TaskExecutionList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.taskExecutions && message.taskExecutions.length)) - message.taskExecutions = []; - message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionList message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskExecutions != null && message.hasOwnProperty("taskExecutions")) { - if (!Array.isArray(message.taskExecutions)) - return "taskExecutions: array expected"; - for (var i = 0; i < message.taskExecutions.length; ++i) { - var error = $root.flyteidl.admin.TaskExecution.verify(message.taskExecutions[i]); - if (error) - return "taskExecutions." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return TaskExecutionList; - })(); - - admin.TaskExecutionClosure = (function() { - - /** - * Properties of a TaskExecutionClosure. - * @memberof flyteidl.admin - * @interface ITaskExecutionClosure - * @property {string|null} [outputUri] TaskExecutionClosure outputUri - * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionClosure error - * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionClosure outputData - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionClosure phase - * @property {Array.|null} [logs] TaskExecutionClosure logs - * @property {google.protobuf.ITimestamp|null} [startedAt] TaskExecutionClosure startedAt - * @property {google.protobuf.IDuration|null} [duration] TaskExecutionClosure duration - * @property {google.protobuf.ITimestamp|null} [createdAt] TaskExecutionClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] TaskExecutionClosure updatedAt - * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionClosure customInfo - * @property {string|null} [reason] TaskExecutionClosure reason - * @property {string|null} [taskType] TaskExecutionClosure taskType - * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionClosure metadata - * @property {number|null} [eventVersion] TaskExecutionClosure eventVersion - * @property {Array.|null} [reasons] TaskExecutionClosure reasons - */ - - /** - * Constructs a new TaskExecutionClosure. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionClosure. - * @implements ITaskExecutionClosure - * @constructor - * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set - */ - function TaskExecutionClosure(properties) { - this.logs = []; - this.reasons = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionClosure outputUri. - * @member {string} outputUri - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.outputUri = ""; - - /** - * TaskExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.error = null; - - /** - * TaskExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.outputData = null; - - /** - * TaskExecutionClosure phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.phase = 0; - - /** - * TaskExecutionClosure logs. - * @member {Array.} logs - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.logs = $util.emptyArray; - - /** - * TaskExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.startedAt = null; - - /** - * TaskExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.duration = null; - - /** - * TaskExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.createdAt = null; - - /** - * TaskExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.updatedAt = null; - - /** - * TaskExecutionClosure customInfo. - * @member {google.protobuf.IStruct|null|undefined} customInfo - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.customInfo = null; - - /** - * TaskExecutionClosure reason. - * @member {string} reason - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.reason = ""; - - /** - * TaskExecutionClosure taskType. - * @member {string} taskType - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.taskType = ""; - - /** - * TaskExecutionClosure metadata. - * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.metadata = null; - - /** - * TaskExecutionClosure eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.eventVersion = 0; - - /** - * TaskExecutionClosure reasons. - * @member {Array.} reasons - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.reasons = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskExecutionClosure outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - Object.defineProperty(TaskExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskExecutionClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance - */ - TaskExecutionClosure.create = function create(properties) { - return new TaskExecutionClosure(properties); - }; - - /** - * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startedAt != null && message.hasOwnProperty("startedAt")) - $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.customInfo != null && message.hasOwnProperty("customInfo")) - $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reason != null && message.hasOwnProperty("reason")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reason); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.taskType); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.eventVersion); - if (message.reasons != null && message.reasons.length) - for (var i = 0; i < message.reasons.length; ++i) - $root.flyteidl.admin.Reason.encode(message.reasons[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputUri = reader.string(); - break; - case 2: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 12: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - case 5: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 7: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 10: - message.reason = reader.string(); - break; - case 11: - message.taskType = reader.string(); - break; - case 16: - message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 17: - message.eventVersion = reader.int32(); - break; - case 18: - if (!(message.reasons && message.reasons.length)) - message.reasons = []; - message.reasons.push($root.flyteidl.admin.Reason.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionClosure message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - if (message.startedAt != null && message.hasOwnProperty("startedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.startedAt); - if (error) - return "startedAt." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - if (message.customInfo != null && message.hasOwnProperty("customInfo")) { - var error = $root.google.protobuf.Struct.verify(message.customInfo); - if (error) - return "customInfo." + error; - } - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - if (!$util.isInteger(message.eventVersion)) - return "eventVersion: integer expected"; - if (message.reasons != null && message.hasOwnProperty("reasons")) { - if (!Array.isArray(message.reasons)) - return "reasons: array expected"; - for (var i = 0; i < message.reasons.length; ++i) { - var error = $root.flyteidl.admin.Reason.verify(message.reasons[i]); - if (error) - return "reasons." + error; - } - } - return null; - }; - - return TaskExecutionClosure; - })(); - - admin.Reason = (function() { - - /** - * Properties of a Reason. - * @memberof flyteidl.admin - * @interface IReason - * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt - * @property {string|null} [message] Reason message - */ - - /** - * Constructs a new Reason. - * @memberof flyteidl.admin - * @classdesc Represents a Reason. - * @implements IReason - * @constructor - * @param {flyteidl.admin.IReason=} [properties] Properties to set - */ - function Reason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Reason occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.admin.Reason - * @instance - */ - Reason.prototype.occurredAt = null; - - /** - * Reason message. - * @member {string} message - * @memberof flyteidl.admin.Reason - * @instance - */ - Reason.prototype.message = ""; - - /** - * Creates a new Reason instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Reason - * @static - * @param {flyteidl.admin.IReason=} [properties] Properties to set - * @returns {flyteidl.admin.Reason} Reason instance - */ - Reason.create = function create(properties) { - return new Reason(properties); - }; - - /** - * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Reason - * @static - * @param {flyteidl.admin.IReason} message Reason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Reason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; - - /** - * Decodes a Reason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Reason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Reason} Reason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Reason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Reason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Reason message. - * @function verify - * @memberof flyteidl.admin.Reason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Reason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - return Reason; - })(); - - admin.TaskExecutionGetDataRequest = (function() { - - /** - * Properties of a TaskExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionGetDataRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id - */ - - /** - * Constructs a new TaskExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetDataRequest. - * @implements ITaskExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set - */ - function TaskExecutionGetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionGetDataRequest id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @instance - */ - TaskExecutionGetDataRequest.prototype.id = null; - - /** - * Creates a new TaskExecutionGetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance - */ - TaskExecutionGetDataRequest.create = function create(properties) { - return new TaskExecutionGetDataRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionGetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionGetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionGetDataRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionGetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return TaskExecutionGetDataRequest; - })(); - - admin.TaskExecutionGetDataResponse = (function() { - - /** - * Properties of a TaskExecutionGetDataResponse. - * @memberof flyteidl.admin - * @interface ITaskExecutionGetDataResponse - * @property {flyteidl.admin.IUrlBlob|null} [inputs] TaskExecutionGetDataResponse inputs - * @property {flyteidl.admin.IUrlBlob|null} [outputs] TaskExecutionGetDataResponse outputs - * @property {flyteidl.core.ILiteralMap|null} [fullInputs] TaskExecutionGetDataResponse fullInputs - * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] TaskExecutionGetDataResponse fullOutputs - * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] TaskExecutionGetDataResponse flyteUrls - */ - - /** - * Constructs a new TaskExecutionGetDataResponse. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetDataResponse. - * @implements ITaskExecutionGetDataResponse - * @constructor - * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set - */ - function TaskExecutionGetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionGetDataResponse inputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.inputs = null; - - /** - * TaskExecutionGetDataResponse outputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.outputs = null; - - /** - * TaskExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.fullInputs = null; - - /** - * TaskExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.fullOutputs = null; - - /** - * TaskExecutionGetDataResponse flyteUrls. - * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.flyteUrls = null; - - /** - * Creates a new TaskExecutionGetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance - */ - TaskExecutionGetDataResponse.create = function create(properties) { - return new TaskExecutionGetDataResponse(properties); - }; - - /** - * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionGetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) - $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionGetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 5: - message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionGetDataResponse message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionGetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); - if (error) - return "fullInputs." + error; - } - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); - if (error) - return "fullOutputs." + error; - } - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { - var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); - if (error) - return "flyteUrls." + error; - } - return null; - }; - - return TaskExecutionGetDataResponse; - })(); - - admin.GetVersionResponse = (function() { - - /** - * Properties of a GetVersionResponse. - * @memberof flyteidl.admin - * @interface IGetVersionResponse - * @property {flyteidl.admin.IVersion|null} [controlPlaneVersion] GetVersionResponse controlPlaneVersion - */ - - /** - * Constructs a new GetVersionResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetVersionResponse. - * @implements IGetVersionResponse - * @constructor - * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set - */ - function GetVersionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetVersionResponse controlPlaneVersion. - * @member {flyteidl.admin.IVersion|null|undefined} controlPlaneVersion - * @memberof flyteidl.admin.GetVersionResponse - * @instance - */ - GetVersionResponse.prototype.controlPlaneVersion = null; - - /** - * Creates a new GetVersionResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse instance - */ - GetVersionResponse.create = function create(properties) { - return new GetVersionResponse(properties); - }; - - /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {flyteidl.admin.IGetVersionResponse} message GetVersionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) - $root.flyteidl.admin.Version.encode(message.controlPlaneVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.controlPlaneVersion = $root.flyteidl.admin.Version.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetVersionResponse message. - * @function verify - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVersionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) { - var error = $root.flyteidl.admin.Version.verify(message.controlPlaneVersion); - if (error) - return "controlPlaneVersion." + error; - } - return null; - }; - - return GetVersionResponse; - })(); - - admin.Version = (function() { - - /** - * Properties of a Version. - * @memberof flyteidl.admin - * @interface IVersion - * @property {string|null} [Build] Version Build - * @property {string|null} [Version] Version Version - * @property {string|null} [BuildTime] Version BuildTime - */ - - /** - * Constructs a new Version. - * @memberof flyteidl.admin - * @classdesc Represents a Version. - * @implements IVersion - * @constructor - * @param {flyteidl.admin.IVersion=} [properties] Properties to set - */ - function Version(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Version Build. - * @member {string} Build - * @memberof flyteidl.admin.Version - * @instance - */ - Version.prototype.Build = ""; - - /** - * Version Version. - * @member {string} Version - * @memberof flyteidl.admin.Version - * @instance - */ - Version.prototype.Version = ""; - - /** - * Version BuildTime. - * @member {string} BuildTime - * @memberof flyteidl.admin.Version - * @instance - */ - Version.prototype.BuildTime = ""; - - /** - * Creates a new Version instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Version - * @static - * @param {flyteidl.admin.IVersion=} [properties] Properties to set - * @returns {flyteidl.admin.Version} Version instance - */ - Version.create = function create(properties) { - return new Version(properties); - }; - - /** - * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Version - * @static - * @param {flyteidl.admin.IVersion} message Version message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Version.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.Build != null && message.hasOwnProperty("Build")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.Build); - if (message.Version != null && message.hasOwnProperty("Version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.Version); - if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.BuildTime); - return writer; - }; - - /** - * Decodes a Version message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Version - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Version} Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Version.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Version(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.Build = reader.string(); - break; - case 2: - message.Version = reader.string(); - break; - case 3: - message.BuildTime = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Version message. - * @function verify - * @memberof flyteidl.admin.Version - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Version.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.Build != null && message.hasOwnProperty("Build")) - if (!$util.isString(message.Build)) - return "Build: string expected"; - if (message.Version != null && message.hasOwnProperty("Version")) - if (!$util.isString(message.Version)) - return "Version: string expected"; - if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) - if (!$util.isString(message.BuildTime)) - return "BuildTime: string expected"; - return null; - }; - - return Version; - })(); - - admin.GetVersionRequest = (function() { - - /** - * Properties of a GetVersionRequest. - * @memberof flyteidl.admin - * @interface IGetVersionRequest - */ - - /** - * Constructs a new GetVersionRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest - * @constructor - * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set - */ - function GetVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest instance - */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); - }; - - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {flyteidl.admin.IGetVersionRequest} message GetVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetVersionRequest message. - * @function verify - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return GetVersionRequest; - })(); - - admin.WorkflowCreateRequest = (function() { - - /** - * Properties of a WorkflowCreateRequest. - * @memberof flyteidl.admin - * @interface IWorkflowCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id - * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec - */ - - /** - * Constructs a new WorkflowCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowCreateRequest. - * @implements IWorkflowCreateRequest - * @constructor - * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set - */ - function WorkflowCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowCreateRequest - * @instance - */ - WorkflowCreateRequest.prototype.id = null; - - /** - * WorkflowCreateRequest spec. - * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec - * @memberof flyteidl.admin.WorkflowCreateRequest - * @instance - */ - WorkflowCreateRequest.prototype.spec = null; - - /** - * Creates a new WorkflowCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance - */ - WorkflowCreateRequest.create = function create(properties) { - return new WorkflowCreateRequest(properties); - }; - - /** - * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.WorkflowSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowCreateRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.WorkflowSpec.verify(message.spec); - if (error) - return "spec." + error; - } - return null; - }; - - return WorkflowCreateRequest; - })(); - - admin.WorkflowCreateResponse = (function() { - - /** - * Properties of a WorkflowCreateResponse. - * @memberof flyteidl.admin - * @interface IWorkflowCreateResponse - */ - - /** - * Constructs a new WorkflowCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowCreateResponse. - * @implements IWorkflowCreateResponse - * @constructor - * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set - */ - function WorkflowCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse instance - */ - WorkflowCreateResponse.create = function create(properties) { - return new WorkflowCreateResponse(properties); - }; - - /** - * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {flyteidl.admin.IWorkflowCreateResponse} message WorkflowCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowCreateResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowCreateResponse; - })(); - - admin.Workflow = (function() { - - /** - * Properties of a Workflow. - * @memberof flyteidl.admin - * @interface IWorkflow - * @property {flyteidl.core.IIdentifier|null} [id] Workflow id - * @property {flyteidl.admin.IWorkflowClosure|null} [closure] Workflow closure - * @property {string|null} [shortDescription] Workflow shortDescription - */ - - /** - * Constructs a new Workflow. - * @memberof flyteidl.admin - * @classdesc Represents a Workflow. - * @implements IWorkflow - * @constructor - * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set - */ - function Workflow(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Workflow id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.Workflow - * @instance - */ - Workflow.prototype.id = null; - - /** - * Workflow closure. - * @member {flyteidl.admin.IWorkflowClosure|null|undefined} closure - * @memberof flyteidl.admin.Workflow - * @instance - */ - Workflow.prototype.closure = null; - - /** - * Workflow shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.Workflow - * @instance - */ - Workflow.prototype.shortDescription = ""; - - /** - * Creates a new Workflow instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Workflow - * @static - * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set - * @returns {flyteidl.admin.Workflow} Workflow instance - */ - Workflow.create = function create(properties) { - return new Workflow(properties); - }; - - /** - * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Workflow - * @static - * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Workflow.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.WorkflowClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); - return writer; - }; - - /** - * Decodes a Workflow message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Workflow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Workflow} Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Workflow.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Workflow(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.closure = $root.flyteidl.admin.WorkflowClosure.decode(reader, reader.uint32()); - break; - case 3: - message.shortDescription = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Workflow message. - * @function verify - * @memberof flyteidl.admin.Workflow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Workflow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.WorkflowClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; - return null; - }; - - return Workflow; - })(); - - admin.WorkflowList = (function() { - - /** - * Properties of a WorkflowList. - * @memberof flyteidl.admin - * @interface IWorkflowList - * @property {Array.|null} [workflows] WorkflowList workflows - * @property {string|null} [token] WorkflowList token - */ - - /** - * Constructs a new WorkflowList. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowList. - * @implements IWorkflowList - * @constructor - * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set - */ - function WorkflowList(properties) { - this.workflows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowList workflows. - * @member {Array.} workflows - * @memberof flyteidl.admin.WorkflowList - * @instance - */ - WorkflowList.prototype.workflows = $util.emptyArray; - - /** - * WorkflowList token. - * @member {string} token - * @memberof flyteidl.admin.WorkflowList - * @instance - */ - WorkflowList.prototype.token = ""; - - /** - * Creates a new WorkflowList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowList} WorkflowList instance - */ - WorkflowList.create = function create(properties) { - return new WorkflowList(properties); - }; - - /** - * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflows != null && message.workflows.length) - for (var i = 0; i < message.workflows.length; ++i) - $root.flyteidl.admin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a WorkflowList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowList} WorkflowList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.workflows && message.workflows.length)) - message.workflows = []; - message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowList message. - * @function verify - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflows != null && message.hasOwnProperty("workflows")) { - if (!Array.isArray(message.workflows)) - return "workflows: array expected"; - for (var i = 0; i < message.workflows.length; ++i) { - var error = $root.flyteidl.admin.Workflow.verify(message.workflows[i]); - if (error) - return "workflows." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return WorkflowList; - })(); - - admin.WorkflowSpec = (function() { - - /** - * Properties of a WorkflowSpec. - * @memberof flyteidl.admin - * @interface IWorkflowSpec - * @property {flyteidl.core.IWorkflowTemplate|null} [template] WorkflowSpec template - * @property {Array.|null} [subWorkflows] WorkflowSpec subWorkflows - * @property {flyteidl.admin.IDescriptionEntity|null} [description] WorkflowSpec description - */ - - /** - * Constructs a new WorkflowSpec. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowSpec. - * @implements IWorkflowSpec - * @constructor - * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set - */ - function WorkflowSpec(properties) { - this.subWorkflows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowSpec template. - * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template - * @memberof flyteidl.admin.WorkflowSpec - * @instance - */ - WorkflowSpec.prototype.template = null; - - /** - * WorkflowSpec subWorkflows. - * @member {Array.} subWorkflows - * @memberof flyteidl.admin.WorkflowSpec - * @instance - */ - WorkflowSpec.prototype.subWorkflows = $util.emptyArray; - - /** - * WorkflowSpec description. - * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description - * @memberof flyteidl.admin.WorkflowSpec - * @instance - */ - WorkflowSpec.prototype.description = null; - - /** - * Creates a new WorkflowSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance - */ - WorkflowSpec.create = function create(properties) { - return new WorkflowSpec(properties); - }; - - /** - * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflows != null && message.subWorkflows.length) - for (var i = 0; i < message.subWorkflows.length; ++i) - $root.flyteidl.core.WorkflowTemplate.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.subWorkflows && message.subWorkflows.length)) - message.subWorkflows = []; - message.subWorkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); - break; - case 3: - message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowSpec message. - * @function verify - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { - if (!Array.isArray(message.subWorkflows)) - return "subWorkflows: array expected"; - for (var i = 0; i < message.subWorkflows.length; ++i) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subWorkflows[i]); - if (error) - return "subWorkflows." + error; - } - } - if (message.description != null && message.hasOwnProperty("description")) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); - if (error) - return "description." + error; - } - return null; - }; - - return WorkflowSpec; - })(); - - admin.WorkflowClosure = (function() { - - /** - * Properties of a WorkflowClosure. - * @memberof flyteidl.admin - * @interface IWorkflowClosure - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow - * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt - */ - - /** - * Constructs a new WorkflowClosure. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowClosure. - * @implements IWorkflowClosure - * @constructor - * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set - */ - function WorkflowClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowClosure compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.admin.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.compiledWorkflow = null; - - /** - * WorkflowClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.createdAt = null; - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance - */ - WorkflowClosure.create = function create(properties) { - return new WorkflowClosure(properties); - }; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - case 2: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowClosure message. - * @function verify - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - return null; - }; - - return WorkflowClosure; - })(); - - admin.WorkflowErrorExistsDifferentStructure = (function() { - - /** - * Properties of a WorkflowErrorExistsDifferentStructure. - * @memberof flyteidl.admin - * @interface IWorkflowErrorExistsDifferentStructure - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id - */ - - /** - * Constructs a new WorkflowErrorExistsDifferentStructure. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowErrorExistsDifferentStructure. - * @implements IWorkflowErrorExistsDifferentStructure - * @constructor - * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set - */ - function WorkflowErrorExistsDifferentStructure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowErrorExistsDifferentStructure id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure - * @instance - */ - WorkflowErrorExistsDifferentStructure.prototype.id = null; - - /** - * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure - * @static - * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance - */ - WorkflowErrorExistsDifferentStructure.create = function create(properties) { - return new WorkflowErrorExistsDifferentStructure(properties); - }; - - /** - * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure - * @static - * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowErrorExistsDifferentStructure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowErrorExistsDifferentStructure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowErrorExistsDifferentStructure message. - * @function verify - * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowErrorExistsDifferentStructure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return WorkflowErrorExistsDifferentStructure; - })(); - - admin.WorkflowErrorExistsIdenticalStructure = (function() { - - /** - * Properties of a WorkflowErrorExistsIdenticalStructure. - * @memberof flyteidl.admin - * @interface IWorkflowErrorExistsIdenticalStructure - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id - */ - - /** - * Constructs a new WorkflowErrorExistsIdenticalStructure. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowErrorExistsIdenticalStructure. - * @implements IWorkflowErrorExistsIdenticalStructure - * @constructor - * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set - */ - function WorkflowErrorExistsIdenticalStructure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowErrorExistsIdenticalStructure id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure - * @instance - */ - WorkflowErrorExistsIdenticalStructure.prototype.id = null; - - /** - * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure - * @static - * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance - */ - WorkflowErrorExistsIdenticalStructure.create = function create(properties) { - return new WorkflowErrorExistsIdenticalStructure(properties); - }; - - /** - * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure - * @static - * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure} message WorkflowErrorExistsIdenticalStructure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowErrorExistsIdenticalStructure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowErrorExistsIdenticalStructure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowErrorExistsIdenticalStructure message. - * @function verify - * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowErrorExistsIdenticalStructure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return WorkflowErrorExistsIdenticalStructure; - })(); - - admin.CreateWorkflowFailureReason = (function() { - - /** - * Properties of a CreateWorkflowFailureReason. - * @memberof flyteidl.admin - * @interface ICreateWorkflowFailureReason - * @property {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null} [existsDifferentStructure] CreateWorkflowFailureReason existsDifferentStructure - * @property {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null} [existsIdenticalStructure] CreateWorkflowFailureReason existsIdenticalStructure - */ - - /** - * Constructs a new CreateWorkflowFailureReason. - * @memberof flyteidl.admin - * @classdesc Represents a CreateWorkflowFailureReason. - * @implements ICreateWorkflowFailureReason - * @constructor - * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set - */ - function CreateWorkflowFailureReason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateWorkflowFailureReason existsDifferentStructure. - * @member {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null|undefined} existsDifferentStructure - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @instance - */ - CreateWorkflowFailureReason.prototype.existsDifferentStructure = null; - - /** - * CreateWorkflowFailureReason existsIdenticalStructure. - * @member {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null|undefined} existsIdenticalStructure - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @instance - */ - CreateWorkflowFailureReason.prototype.existsIdenticalStructure = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CreateWorkflowFailureReason reason. - * @member {"existsDifferentStructure"|"existsIdenticalStructure"|undefined} reason - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @instance - */ - Object.defineProperty(CreateWorkflowFailureReason.prototype, "reason", { - get: $util.oneOfGetter($oneOfFields = ["existsDifferentStructure", "existsIdenticalStructure"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CreateWorkflowFailureReason instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @static - * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set - * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason instance - */ - CreateWorkflowFailureReason.create = function create(properties) { - return new CreateWorkflowFailureReason(properties); - }; - - /** - * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @static - * @param {flyteidl.admin.ICreateWorkflowFailureReason} message CreateWorkflowFailureReason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateWorkflowFailureReason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) - $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.encode(message.existsDifferentStructure, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) - $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.encode(message.existsIdenticalStructure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateWorkflowFailureReason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateWorkflowFailureReason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.existsDifferentStructure = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.decode(reader, reader.uint32()); - break; - case 2: - message.existsIdenticalStructure = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateWorkflowFailureReason message. - * @function verify - * @memberof flyteidl.admin.CreateWorkflowFailureReason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateWorkflowFailureReason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) { - properties.reason = 1; - { - var error = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify(message.existsDifferentStructure); - if (error) - return "existsDifferentStructure." + error; - } - } - if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) { - if (properties.reason === 1) - return "reason: multiple values"; - properties.reason = 1; - { - var error = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify(message.existsIdenticalStructure); - if (error) - return "existsIdenticalStructure." + error; - } - } - return null; - }; - - return CreateWorkflowFailureReason; - })(); - - admin.WorkflowAttributes = (function() { - - /** - * Properties of a WorkflowAttributes. - * @memberof flyteidl.admin - * @interface IWorkflowAttributes - * @property {string|null} [project] WorkflowAttributes project - * @property {string|null} [domain] WorkflowAttributes domain - * @property {string|null} [workflow] WorkflowAttributes workflow - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] WorkflowAttributes matchingAttributes - * @property {string|null} [org] WorkflowAttributes org - */ - - /** - * Constructs a new WorkflowAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributes. - * @implements IWorkflowAttributes - * @constructor - * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set - */ - function WorkflowAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributes project. - * @member {string} project - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.project = ""; - - /** - * WorkflowAttributes domain. - * @member {string} domain - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.domain = ""; - - /** - * WorkflowAttributes workflow. - * @member {string} workflow - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.workflow = ""; - - /** - * WorkflowAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.matchingAttributes = null; - - /** - * WorkflowAttributes org. - * @member {string} org - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.org = ""; - - /** - * Creates a new WorkflowAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes instance - */ - WorkflowAttributes.create = function create(properties) { - return new WorkflowAttributes(properties); - }; - - /** - * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {flyteidl.admin.IWorkflowAttributes} message WorkflowAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); - return writer; - }; - - /** - * Decodes a WorkflowAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - case 5: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributes message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); - if (error) - return "matchingAttributes." + error; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return WorkflowAttributes; - })(); - - admin.WorkflowAttributesUpdateRequest = (function() { - - /** - * Properties of a WorkflowAttributesUpdateRequest. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesUpdateRequest - * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesUpdateRequest attributes - */ - - /** - * Constructs a new WorkflowAttributesUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesUpdateRequest. - * @implements IWorkflowAttributesUpdateRequest - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set - */ - function WorkflowAttributesUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @instance - */ - WorkflowAttributesUpdateRequest.prototype.attributes = null; - - /** - * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest instance - */ - WorkflowAttributesUpdateRequest.create = function create(properties) { - return new WorkflowAttributesUpdateRequest(properties); - }; - - /** - * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} message WorkflowAttributesUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return WorkflowAttributesUpdateRequest; - })(); - - admin.WorkflowAttributesUpdateResponse = (function() { - - /** - * Properties of a WorkflowAttributesUpdateResponse. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesUpdateResponse - */ - - /** - * Constructs a new WorkflowAttributesUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesUpdateResponse. - * @implements IWorkflowAttributesUpdateResponse - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set - */ - function WorkflowAttributesUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse instance - */ - WorkflowAttributesUpdateResponse.create = function create(properties) { - return new WorkflowAttributesUpdateResponse(properties); - }; - - /** - * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse} message WorkflowAttributesUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowAttributesUpdateResponse; - })(); - - admin.WorkflowAttributesGetRequest = (function() { - - /** - * Properties of a WorkflowAttributesGetRequest. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesGetRequest - * @property {string|null} [project] WorkflowAttributesGetRequest project - * @property {string|null} [domain] WorkflowAttributesGetRequest domain - * @property {string|null} [workflow] WorkflowAttributesGetRequest workflow - * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesGetRequest resourceType - * @property {string|null} [org] WorkflowAttributesGetRequest org - */ - - /** - * Constructs a new WorkflowAttributesGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesGetRequest. - * @implements IWorkflowAttributesGetRequest - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set - */ - function WorkflowAttributesGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.project = ""; - - /** - * WorkflowAttributesGetRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.domain = ""; - - /** - * WorkflowAttributesGetRequest workflow. - * @member {string} workflow - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.workflow = ""; - - /** - * WorkflowAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.resourceType = 0; - - /** - * WorkflowAttributesGetRequest org. - * @member {string} org - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.org = ""; - - /** - * Creates a new WorkflowAttributesGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest instance - */ - WorkflowAttributesGetRequest.create = function create(properties) { - return new WorkflowAttributesGetRequest(properties); - }; - - /** - * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} message WorkflowAttributesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); - return writer; - }; - - /** - * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.resourceType = reader.int32(); - break; - case 5: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesGetRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return WorkflowAttributesGetRequest; - })(); - - admin.WorkflowAttributesGetResponse = (function() { - - /** - * Properties of a WorkflowAttributesGetResponse. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesGetResponse - * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesGetResponse attributes - */ - - /** - * Constructs a new WorkflowAttributesGetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesGetResponse. - * @implements IWorkflowAttributesGetResponse - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set - */ - function WorkflowAttributesGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesGetResponse attributes. - * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @instance - */ - WorkflowAttributesGetResponse.prototype.attributes = null; - - /** - * Creates a new WorkflowAttributesGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse instance - */ - WorkflowAttributesGetResponse.create = function create(properties) { - return new WorkflowAttributesGetResponse(properties); - }; - - /** - * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetResponse} message WorkflowAttributesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesGetResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return WorkflowAttributesGetResponse; - })(); - - admin.WorkflowAttributesDeleteRequest = (function() { - - /** - * Properties of a WorkflowAttributesDeleteRequest. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesDeleteRequest - * @property {string|null} [project] WorkflowAttributesDeleteRequest project - * @property {string|null} [domain] WorkflowAttributesDeleteRequest domain - * @property {string|null} [workflow] WorkflowAttributesDeleteRequest workflow - * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesDeleteRequest resourceType - * @property {string|null} [org] WorkflowAttributesDeleteRequest org - */ - - /** - * Constructs a new WorkflowAttributesDeleteRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesDeleteRequest. - * @implements IWorkflowAttributesDeleteRequest - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set - */ - function WorkflowAttributesDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.project = ""; - - /** - * WorkflowAttributesDeleteRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.domain = ""; - - /** - * WorkflowAttributesDeleteRequest workflow. - * @member {string} workflow - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.workflow = ""; - - /** - * WorkflowAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.resourceType = 0; - - /** - * WorkflowAttributesDeleteRequest org. - * @member {string} org - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.org = ""; - - /** - * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest instance - */ - WorkflowAttributesDeleteRequest.create = function create(properties) { - return new WorkflowAttributesDeleteRequest(properties); - }; - - /** - * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} message WorkflowAttributesDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); - if (message.org != null && message.hasOwnProperty("org")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); - return writer; - }; - - /** - * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.resourceType = reader.int32(); - break; - case 5: - message.org = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesDeleteRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.org != null && message.hasOwnProperty("org")) - if (!$util.isString(message.org)) - return "org: string expected"; - return null; - }; - - return WorkflowAttributesDeleteRequest; - })(); - - admin.WorkflowAttributesDeleteResponse = (function() { - - /** - * Properties of a WorkflowAttributesDeleteResponse. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesDeleteResponse - */ - - /** - * Constructs a new WorkflowAttributesDeleteResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesDeleteResponse. - * @implements IWorkflowAttributesDeleteResponse - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set - */ - function WorkflowAttributesDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse instance - */ - WorkflowAttributesDeleteResponse.create = function create(properties) { - return new WorkflowAttributesDeleteResponse(properties); - }; - - /** - * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse} message WorkflowAttributesDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesDeleteResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowAttributesDeleteResponse; - })(); - - return admin; - })(); - - flyteidl.service = (function() { - - /** - * Namespace service. - * @memberof flyteidl - * @namespace - */ - var service = {}; - - service.AdminService = (function() { - - /** - * Constructs a new AdminService service. - * @memberof flyteidl.service - * @classdesc Represents an AdminService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AdminService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AdminService; - - /** - * Creates new AdminService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AdminService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AdminService} RPC service. Useful where requests and/or responses are streamed. - */ - AdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTask}. - * @memberof flyteidl.service.AdminService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskCreateResponse} [response] TaskCreateResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.admin.TaskCreateRequest, $root.flyteidl.admin.TaskCreateResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTask}. - * @memberof flyteidl.service.AdminService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Task} [response] Task - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Task, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. - * @memberof flyteidl.service.AdminService - * @typedef ListTaskIdsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList - */ - - /** - * Calls ListTaskIds. - * @function listTaskIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @param {flyteidl.service.AdminService.ListTaskIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listTaskIds = function listTaskIds(request, callback) { - return this.rpcCall(listTaskIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListTaskIds" }); - - /** - * Calls ListTaskIds. - * @function listTaskIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTasks}. - * @memberof flyteidl.service.AdminService - * @typedef ListTasksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskList} [response] TaskList - */ - - /** - * Calls ListTasks. - * @function listTasks - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListTasksCallback} callback Node-style callback called with the error, if any, and TaskList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listTasks = function listTasks(request, callback) { - return this.rpcCall(listTasks, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.TaskList, request, callback); - }, "name", { value: "ListTasks" }); - - /** - * Calls ListTasks. - * @function listTasks - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. - * @memberof flyteidl.service.AdminService - * @typedef CreateWorkflowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowCreateResponse} [response] WorkflowCreateResponse - */ - - /** - * Calls CreateWorkflow. - * @function createWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateWorkflowCallback} callback Node-style callback called with the error, if any, and WorkflowCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createWorkflow = function createWorkflow(request, callback) { - return this.rpcCall(createWorkflow, $root.flyteidl.admin.WorkflowCreateRequest, $root.flyteidl.admin.WorkflowCreateResponse, request, callback); - }, "name", { value: "CreateWorkflow" }); - - /** - * Calls CreateWorkflow. - * @function createWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. - * @memberof flyteidl.service.AdminService - * @typedef GetWorkflowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Workflow} [response] Workflow - */ - - /** - * Calls GetWorkflow. - * @function getWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetWorkflowCallback} callback Node-style callback called with the error, if any, and Workflow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getWorkflow = function getWorkflow(request, callback) { - return this.rpcCall(getWorkflow, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Workflow, request, callback); - }, "name", { value: "GetWorkflow" }); - - /** - * Calls GetWorkflow. - * @function getWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. - * @memberof flyteidl.service.AdminService - * @typedef ListWorkflowIdsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList - */ - - /** - * Calls ListWorkflowIds. - * @function listWorkflowIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @param {flyteidl.service.AdminService.ListWorkflowIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listWorkflowIds = function listWorkflowIds(request, callback) { - return this.rpcCall(listWorkflowIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListWorkflowIds" }); - - /** - * Calls ListWorkflowIds. - * @function listWorkflowIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. - * @memberof flyteidl.service.AdminService - * @typedef ListWorkflowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowList} [response] WorkflowList - */ - - /** - * Calls ListWorkflows. - * @function listWorkflows - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListWorkflowsCallback} callback Node-style callback called with the error, if any, and WorkflowList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listWorkflows = function listWorkflows(request, callback) { - return this.rpcCall(listWorkflows, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.WorkflowList, request, callback); - }, "name", { value: "ListWorkflows" }); - - /** - * Calls ListWorkflows. - * @function listWorkflows - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef CreateLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanCreateResponse} [response] LaunchPlanCreateResponse - */ - - /** - * Calls CreateLaunchPlan. - * @function createLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createLaunchPlan = function createLaunchPlan(request, callback) { - return this.rpcCall(createLaunchPlan, $root.flyteidl.admin.LaunchPlanCreateRequest, $root.flyteidl.admin.LaunchPlanCreateResponse, request, callback); - }, "name", { value: "CreateLaunchPlan" }); - - /** - * Calls CreateLaunchPlan. - * @function createLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef GetLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan - */ - - /** - * Calls GetLaunchPlan. - * @function getLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getLaunchPlan = function getLaunchPlan(request, callback) { - return this.rpcCall(getLaunchPlan, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.LaunchPlan, request, callback); - }, "name", { value: "GetLaunchPlan" }); - - /** - * Calls GetLaunchPlan. - * @function getLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef GetActiveLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan - */ - - /** - * Calls GetActiveLaunchPlan. - * @function getActiveLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object - * @param {flyteidl.service.AdminService.GetActiveLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getActiveLaunchPlan = function getActiveLaunchPlan(request, callback) { - return this.rpcCall(getActiveLaunchPlan, $root.flyteidl.admin.ActiveLaunchPlanRequest, $root.flyteidl.admin.LaunchPlan, request, callback); - }, "name", { value: "GetActiveLaunchPlan" }); - - /** - * Calls GetActiveLaunchPlan. - * @function getActiveLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. - * @memberof flyteidl.service.AdminService - * @typedef ListActiveLaunchPlansCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList - */ - - /** - * Calls ListActiveLaunchPlans. - * @function listActiveLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object - * @param {flyteidl.service.AdminService.ListActiveLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listActiveLaunchPlans = function listActiveLaunchPlans(request, callback) { - return this.rpcCall(listActiveLaunchPlans, $root.flyteidl.admin.ActiveLaunchPlanListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); - }, "name", { value: "ListActiveLaunchPlans" }); - - /** - * Calls ListActiveLaunchPlans. - * @function listActiveLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. - * @memberof flyteidl.service.AdminService - * @typedef ListLaunchPlanIdsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList - */ - - /** - * Calls ListLaunchPlanIds. - * @function listLaunchPlanIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @param {flyteidl.service.AdminService.ListLaunchPlanIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listLaunchPlanIds = function listLaunchPlanIds(request, callback) { - return this.rpcCall(listLaunchPlanIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListLaunchPlanIds" }); - - /** - * Calls ListLaunchPlanIds. - * @function listLaunchPlanIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. - * @memberof flyteidl.service.AdminService - * @typedef ListLaunchPlansCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList - */ - - /** - * Calls ListLaunchPlans. - * @function listLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listLaunchPlans = function listLaunchPlans(request, callback) { - return this.rpcCall(listLaunchPlans, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); - }, "name", { value: "ListLaunchPlans" }); - - /** - * Calls ListLaunchPlans. - * @function listLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse - */ - - /** - * Calls UpdateLaunchPlan. - * @function updateLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateLaunchPlan = function updateLaunchPlan(request, callback) { - return this.rpcCall(updateLaunchPlan, $root.flyteidl.admin.LaunchPlanUpdateRequest, $root.flyteidl.admin.LaunchPlanUpdateResponse, request, callback); - }, "name", { value: "UpdateLaunchPlan" }); - - /** - * Calls UpdateLaunchPlan. - * @function updateLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createExecution}. - * @memberof flyteidl.service.AdminService - * @typedef CreateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse - */ - - /** - * Calls CreateExecution. - * @function createExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.flyteidl.admin.ExecutionCreateRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "CreateExecution" }); - - /** - * Calls CreateExecution. - * @function createExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. - * @memberof flyteidl.service.AdminService - * @typedef RelaunchExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse - */ - - /** - * Calls RelaunchExecution. - * @function relaunchExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object - * @param {flyteidl.service.AdminService.RelaunchExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.relaunchExecution = function relaunchExecution(request, callback) { - return this.rpcCall(relaunchExecution, $root.flyteidl.admin.ExecutionRelaunchRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "RelaunchExecution" }); - - /** - * Calls RelaunchExecution. - * @function relaunchExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. - * @memberof flyteidl.service.AdminService - * @typedef RecoverExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse - */ - - /** - * Calls RecoverExecution. - * @function recoverExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object - * @param {flyteidl.service.AdminService.RecoverExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.recoverExecution = function recoverExecution(request, callback) { - return this.rpcCall(recoverExecution, $root.flyteidl.admin.ExecutionRecoverRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "RecoverExecution" }); - - /** - * Calls RecoverExecution. - * @function recoverExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecution}. - * @memberof flyteidl.service.AdminService - * @typedef GetExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Execution} [response] Execution - */ - - /** - * Calls GetExecution. - * @function getExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.flyteidl.admin.WorkflowExecutionGetRequest, $root.flyteidl.admin.Execution, request, callback); - }, "name", { value: "GetExecution" }); - - /** - * Calls GetExecution. - * @function getExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionUpdateResponse} [response] ExecutionUpdateResponse - */ - - /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.flyteidl.admin.ExecutionUpdateRequest, $root.flyteidl.admin.ExecutionUpdateResponse, request, callback); - }, "name", { value: "UpdateExecution" }); - - /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. - * @memberof flyteidl.service.AdminService - * @typedef GetExecutionDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse - */ - - /** - * Calls GetExecutionData. - * @function getExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object - * @param {flyteidl.service.AdminService.GetExecutionDataCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getExecutionData = function getExecutionData(request, callback) { - return this.rpcCall(getExecutionData, $root.flyteidl.admin.WorkflowExecutionGetDataRequest, $root.flyteidl.admin.WorkflowExecutionGetDataResponse, request, callback); - }, "name", { value: "GetExecutionData" }); - - /** - * Calls GetExecutionData. - * @function getExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. - * @memberof flyteidl.service.AdminService - * @typedef ListExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionList} [response] ExecutionList - */ - - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.ExecutionList, request, callback); - }, "name", { value: "ListExecutions" }); - - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. - * @memberof flyteidl.service.AdminService - * @typedef TerminateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse - */ - - /** - * Calls TerminateExecution. - * @function terminateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object - * @param {flyteidl.service.AdminService.TerminateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionTerminateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.terminateExecution = function terminateExecution(request, callback) { - return this.rpcCall(terminateExecution, $root.flyteidl.admin.ExecutionTerminateRequest, $root.flyteidl.admin.ExecutionTerminateResponse, request, callback); - }, "name", { value: "TerminateExecution" }); - - /** - * Calls TerminateExecution. - * @function terminateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. - * @memberof flyteidl.service.AdminService - * @typedef GetNodeExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecution} [response] NodeExecution - */ - - /** - * Calls GetNodeExecution. - * @function getNodeExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetNodeExecutionCallback} callback Node-style callback called with the error, if any, and NodeExecution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getNodeExecution = function getNodeExecution(request, callback) { - return this.rpcCall(getNodeExecution, $root.flyteidl.admin.NodeExecutionGetRequest, $root.flyteidl.admin.NodeExecution, request, callback); - }, "name", { value: "GetNodeExecution" }); - - /** - * Calls GetNodeExecution. - * @function getNodeExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getDynamicNodeWorkflow}. - * @memberof flyteidl.service.AdminService - * @typedef GetDynamicNodeWorkflowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DynamicNodeWorkflowResponse} [response] DynamicNodeWorkflowResponse - */ - - /** - * Calls GetDynamicNodeWorkflow. - * @function getDynamicNodeWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest} request GetDynamicNodeWorkflowRequest message or plain object - * @param {flyteidl.service.AdminService.GetDynamicNodeWorkflowCallback} callback Node-style callback called with the error, if any, and DynamicNodeWorkflowResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getDynamicNodeWorkflow = function getDynamicNodeWorkflow(request, callback) { - return this.rpcCall(getDynamicNodeWorkflow, $root.flyteidl.admin.GetDynamicNodeWorkflowRequest, $root.flyteidl.admin.DynamicNodeWorkflowResponse, request, callback); - }, "name", { value: "GetDynamicNodeWorkflow" }); - - /** - * Calls GetDynamicNodeWorkflow. - * @function getDynamicNodeWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest} request GetDynamicNodeWorkflowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. - * @memberof flyteidl.service.AdminService - * @typedef ListNodeExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList - */ - - /** - * Calls ListNodeExecutions. - * @function listNodeExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object - * @param {flyteidl.service.AdminService.ListNodeExecutionsCallback} callback Node-style callback called with the error, if any, and NodeExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listNodeExecutions = function listNodeExecutions(request, callback) { - return this.rpcCall(listNodeExecutions, $root.flyteidl.admin.NodeExecutionListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); - }, "name", { value: "ListNodeExecutions" }); - - /** - * Calls ListNodeExecutions. - * @function listNodeExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. - * @memberof flyteidl.service.AdminService - * @typedef ListNodeExecutionsForTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList - */ - - /** - * Calls ListNodeExecutionsForTask. - * @function listNodeExecutionsForTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object - * @param {flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback} callback Node-style callback called with the error, if any, and NodeExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listNodeExecutionsForTask = function listNodeExecutionsForTask(request, callback) { - return this.rpcCall(listNodeExecutionsForTask, $root.flyteidl.admin.NodeExecutionForTaskListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); - }, "name", { value: "ListNodeExecutionsForTask" }); - - /** - * Calls ListNodeExecutionsForTask. - * @function listNodeExecutionsForTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. - * @memberof flyteidl.service.AdminService - * @typedef GetNodeExecutionDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse - */ - - /** - * Calls GetNodeExecutionData. - * @function getNodeExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object - * @param {flyteidl.service.AdminService.GetNodeExecutionDataCallback} callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getNodeExecutionData = function getNodeExecutionData(request, callback) { - return this.rpcCall(getNodeExecutionData, $root.flyteidl.admin.NodeExecutionGetDataRequest, $root.flyteidl.admin.NodeExecutionGetDataResponse, request, callback); - }, "name", { value: "GetNodeExecutionData" }); - - /** - * Calls GetNodeExecutionData. - * @function getNodeExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#registerProject}. - * @memberof flyteidl.service.AdminService - * @typedef RegisterProjectCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse - */ - - /** - * Calls RegisterProject. - * @function registerProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object - * @param {flyteidl.service.AdminService.RegisterProjectCallback} callback Node-style callback called with the error, if any, and ProjectRegisterResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.registerProject = function registerProject(request, callback) { - return this.rpcCall(registerProject, $root.flyteidl.admin.ProjectRegisterRequest, $root.flyteidl.admin.ProjectRegisterResponse, request, callback); - }, "name", { value: "RegisterProject" }); - - /** - * Calls RegisterProject. - * @function registerProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProject}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectUpdateResponse} [response] ProjectUpdateResponse - */ - - /** - * Calls UpdateProject. - * @function updateProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProject} request Project message or plain object - * @param {flyteidl.service.AdminService.UpdateProjectCallback} callback Node-style callback called with the error, if any, and ProjectUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateProject = function updateProject(request, callback) { - return this.rpcCall(updateProject, $root.flyteidl.admin.Project, $root.flyteidl.admin.ProjectUpdateResponse, request, callback); - }, "name", { value: "UpdateProject" }); - - /** - * Calls UpdateProject. - * @function updateProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProject} request Project message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listProjects}. - * @memberof flyteidl.service.AdminService - * @typedef ListProjectsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Projects} [response] Projects - */ - - /** - * Calls ListProjects. - * @function listProjects - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object - * @param {flyteidl.service.AdminService.ListProjectsCallback} callback Node-style callback called with the error, if any, and Projects - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listProjects = function listProjects(request, callback) { - return this.rpcCall(listProjects, $root.flyteidl.admin.ProjectListRequest, $root.flyteidl.admin.Projects, request, callback); - }, "name", { value: "ListProjects" }); - - /** - * Calls ListProjects. - * @function listProjects - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. - * @memberof flyteidl.service.AdminService - * @typedef CreateWorkflowEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse - */ - - /** - * Calls CreateWorkflowEvent. - * @function createWorkflowEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object - * @param {flyteidl.service.AdminService.CreateWorkflowEventCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createWorkflowEvent = function createWorkflowEvent(request, callback) { - return this.rpcCall(createWorkflowEvent, $root.flyteidl.admin.WorkflowExecutionEventRequest, $root.flyteidl.admin.WorkflowExecutionEventResponse, request, callback); - }, "name", { value: "CreateWorkflowEvent" }); - - /** - * Calls CreateWorkflowEvent. - * @function createWorkflowEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. - * @memberof flyteidl.service.AdminService - * @typedef CreateNodeEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse - */ - - /** - * Calls CreateNodeEvent. - * @function createNodeEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object - * @param {flyteidl.service.AdminService.CreateNodeEventCallback} callback Node-style callback called with the error, if any, and NodeExecutionEventResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createNodeEvent = function createNodeEvent(request, callback) { - return this.rpcCall(createNodeEvent, $root.flyteidl.admin.NodeExecutionEventRequest, $root.flyteidl.admin.NodeExecutionEventResponse, request, callback); - }, "name", { value: "CreateNodeEvent" }); - - /** - * Calls CreateNodeEvent. - * @function createNodeEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. - * @memberof flyteidl.service.AdminService - * @typedef CreateTaskEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse - */ - - /** - * Calls CreateTaskEvent. - * @function createTaskEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object - * @param {flyteidl.service.AdminService.CreateTaskEventCallback} callback Node-style callback called with the error, if any, and TaskExecutionEventResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createTaskEvent = function createTaskEvent(request, callback) { - return this.rpcCall(createTaskEvent, $root.flyteidl.admin.TaskExecutionEventRequest, $root.flyteidl.admin.TaskExecutionEventResponse, request, callback); - }, "name", { value: "CreateTaskEvent" }); - - /** - * Calls CreateTaskEvent. - * @function createTaskEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. - * @memberof flyteidl.service.AdminService - * @typedef GetTaskExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecution} [response] TaskExecution - */ - - /** - * Calls GetTaskExecution. - * @function getTaskExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetTaskExecutionCallback} callback Node-style callback called with the error, if any, and TaskExecution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getTaskExecution = function getTaskExecution(request, callback) { - return this.rpcCall(getTaskExecution, $root.flyteidl.admin.TaskExecutionGetRequest, $root.flyteidl.admin.TaskExecution, request, callback); - }, "name", { value: "GetTaskExecution" }); - - /** - * Calls GetTaskExecution. - * @function getTaskExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. - * @memberof flyteidl.service.AdminService - * @typedef ListTaskExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList - */ - - /** - * Calls ListTaskExecutions. - * @function listTaskExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object - * @param {flyteidl.service.AdminService.ListTaskExecutionsCallback} callback Node-style callback called with the error, if any, and TaskExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listTaskExecutions = function listTaskExecutions(request, callback) { - return this.rpcCall(listTaskExecutions, $root.flyteidl.admin.TaskExecutionListRequest, $root.flyteidl.admin.TaskExecutionList, request, callback); - }, "name", { value: "ListTaskExecutions" }); - - /** - * Calls ListTaskExecutions. - * @function listTaskExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. - * @memberof flyteidl.service.AdminService - * @typedef GetTaskExecutionDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse - */ - - /** - * Calls GetTaskExecutionData. - * @function getTaskExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object - * @param {flyteidl.service.AdminService.GetTaskExecutionDataCallback} callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getTaskExecutionData = function getTaskExecutionData(request, callback) { - return this.rpcCall(getTaskExecutionData, $root.flyteidl.admin.TaskExecutionGetDataRequest, $root.flyteidl.admin.TaskExecutionGetDataResponse, request, callback); - }, "name", { value: "GetTaskExecutionData" }); - - /** - * Calls GetTaskExecutionData. - * @function getTaskExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectDomainAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesUpdateResponse} [response] ProjectDomainAttributesUpdateResponse - */ - - /** - * Calls UpdateProjectDomainAttributes. - * @function updateProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateProjectDomainAttributes = function updateProjectDomainAttributes(request, callback) { - return this.rpcCall(updateProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest, $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateProjectDomainAttributes" }); - - /** - * Calls UpdateProjectDomainAttributes. - * @function updateProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef GetProjectDomainAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesGetResponse} [response] ProjectDomainAttributesGetResponse - */ - - /** - * Calls GetProjectDomainAttributes. - * @function getProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getProjectDomainAttributes = function getProjectDomainAttributes(request, callback) { - return this.rpcCall(getProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesGetRequest, $root.flyteidl.admin.ProjectDomainAttributesGetResponse, request, callback); - }, "name", { value: "GetProjectDomainAttributes" }); - - /** - * Calls GetProjectDomainAttributes. - * @function getProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef DeleteProjectDomainAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesDeleteResponse} [response] ProjectDomainAttributesDeleteResponse - */ - - /** - * Calls DeleteProjectDomainAttributes. - * @function deleteProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object - * @param {flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.deleteProjectDomainAttributes = function deleteProjectDomainAttributes(request, callback) { - return this.rpcCall(deleteProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest, $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteProjectDomainAttributes" }); - - /** - * Calls DeleteProjectDomainAttributes. - * @function deleteProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesUpdateResponse} [response] ProjectAttributesUpdateResponse - */ - - /** - * Calls UpdateProjectAttributes. - * @function updateProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateProjectAttributes = function updateProjectAttributes(request, callback) { - return this.rpcCall(updateProjectAttributes, $root.flyteidl.admin.ProjectAttributesUpdateRequest, $root.flyteidl.admin.ProjectAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateProjectAttributes" }); - - /** - * Calls UpdateProjectAttributes. - * @function updateProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef GetProjectAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesGetResponse} [response] ProjectAttributesGetResponse - */ - - /** - * Calls GetProjectAttributes. - * @function getProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getProjectAttributes = function getProjectAttributes(request, callback) { - return this.rpcCall(getProjectAttributes, $root.flyteidl.admin.ProjectAttributesGetRequest, $root.flyteidl.admin.ProjectAttributesGetResponse, request, callback); - }, "name", { value: "GetProjectAttributes" }); - - /** - * Calls GetProjectAttributes. - * @function getProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef DeleteProjectAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesDeleteResponse} [response] ProjectAttributesDeleteResponse - */ - - /** - * Calls DeleteProjectAttributes. - * @function deleteProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object - * @param {flyteidl.service.AdminService.DeleteProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.deleteProjectAttributes = function deleteProjectAttributes(request, callback) { - return this.rpcCall(deleteProjectAttributes, $root.flyteidl.admin.ProjectAttributesDeleteRequest, $root.flyteidl.admin.ProjectAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteProjectAttributes" }); - - /** - * Calls DeleteProjectAttributes. - * @function deleteProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateWorkflowAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesUpdateResponse} [response] WorkflowAttributesUpdateResponse - */ - - /** - * Calls UpdateWorkflowAttributes. - * @function updateWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateWorkflowAttributes = function updateWorkflowAttributes(request, callback) { - return this.rpcCall(updateWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesUpdateRequest, $root.flyteidl.admin.WorkflowAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateWorkflowAttributes" }); - - /** - * Calls UpdateWorkflowAttributes. - * @function updateWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef GetWorkflowAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesGetResponse} [response] WorkflowAttributesGetResponse - */ - - /** - * Calls GetWorkflowAttributes. - * @function getWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getWorkflowAttributes = function getWorkflowAttributes(request, callback) { - return this.rpcCall(getWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesGetRequest, $root.flyteidl.admin.WorkflowAttributesGetResponse, request, callback); - }, "name", { value: "GetWorkflowAttributes" }); - - /** - * Calls GetWorkflowAttributes. - * @function getWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef DeleteWorkflowAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesDeleteResponse} [response] WorkflowAttributesDeleteResponse - */ - - /** - * Calls DeleteWorkflowAttributes. - * @function deleteWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object - * @param {flyteidl.service.AdminService.DeleteWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.deleteWorkflowAttributes = function deleteWorkflowAttributes(request, callback) { - return this.rpcCall(deleteWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesDeleteRequest, $root.flyteidl.admin.WorkflowAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteWorkflowAttributes" }); - - /** - * Calls DeleteWorkflowAttributes. - * @function deleteWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef ListMatchableAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ListMatchableAttributesResponse} [response] ListMatchableAttributesResponse - */ - - /** - * Calls ListMatchableAttributes. - * @function listMatchableAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object - * @param {flyteidl.service.AdminService.ListMatchableAttributesCallback} callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listMatchableAttributes = function listMatchableAttributes(request, callback) { - return this.rpcCall(listMatchableAttributes, $root.flyteidl.admin.ListMatchableAttributesRequest, $root.flyteidl.admin.ListMatchableAttributesResponse, request, callback); - }, "name", { value: "ListMatchableAttributes" }); - - /** - * Calls ListMatchableAttributes. - * @function listMatchableAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. - * @memberof flyteidl.service.AdminService - * @typedef ListNamedEntitiesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityList} [response] NamedEntityList - */ - - /** - * Calls ListNamedEntities. - * @function listNamedEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object - * @param {flyteidl.service.AdminService.ListNamedEntitiesCallback} callback Node-style callback called with the error, if any, and NamedEntityList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listNamedEntities = function listNamedEntities(request, callback) { - return this.rpcCall(listNamedEntities, $root.flyteidl.admin.NamedEntityListRequest, $root.flyteidl.admin.NamedEntityList, request, callback); - }, "name", { value: "ListNamedEntities" }); - - /** - * Calls ListNamedEntities. - * @function listNamedEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. - * @memberof flyteidl.service.AdminService - * @typedef GetNamedEntityCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntity} [response] NamedEntity - */ - - /** - * Calls GetNamedEntity. - * @function getNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntity - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getNamedEntity = function getNamedEntity(request, callback) { - return this.rpcCall(getNamedEntity, $root.flyteidl.admin.NamedEntityGetRequest, $root.flyteidl.admin.NamedEntity, request, callback); - }, "name", { value: "GetNamedEntity" }); - - /** - * Calls GetNamedEntity. - * @function getNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateNamedEntityCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityUpdateResponse} [response] NamedEntityUpdateResponse - */ - - /** - * Calls UpdateNamedEntity. - * @function updateNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateNamedEntity = function updateNamedEntity(request, callback) { - return this.rpcCall(updateNamedEntity, $root.flyteidl.admin.NamedEntityUpdateRequest, $root.flyteidl.admin.NamedEntityUpdateResponse, request, callback); - }, "name", { value: "UpdateNamedEntity" }); - - /** - * Calls UpdateNamedEntity. - * @function updateNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getVersion}. - * @memberof flyteidl.service.AdminService - * @typedef GetVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetVersionResponse} [response] GetVersionResponse - */ - - /** - * Calls GetVersion. - * @function getVersion - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {flyteidl.service.AdminService.GetVersionCallback} callback Node-style callback called with the error, if any, and GetVersionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getVersion = function getVersion(request, callback) { - return this.rpcCall(getVersion, $root.flyteidl.admin.GetVersionRequest, $root.flyteidl.admin.GetVersionResponse, request, callback); - }, "name", { value: "GetVersion" }); - - /** - * Calls GetVersion. - * @function getVersion - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. - * @memberof flyteidl.service.AdminService - * @typedef GetDescriptionEntityCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DescriptionEntity} [response] DescriptionEntity - */ - - /** - * Calls GetDescriptionEntity. - * @function getDescriptionEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetDescriptionEntityCallback} callback Node-style callback called with the error, if any, and DescriptionEntity - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getDescriptionEntity = function getDescriptionEntity(request, callback) { - return this.rpcCall(getDescriptionEntity, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.DescriptionEntity, request, callback); - }, "name", { value: "GetDescriptionEntity" }); - - /** - * Calls GetDescriptionEntity. - * @function getDescriptionEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. - * @memberof flyteidl.service.AdminService - * @typedef ListDescriptionEntitiesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DescriptionEntityList} [response] DescriptionEntityList - */ - - /** - * Calls ListDescriptionEntities. - * @function listDescriptionEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object - * @param {flyteidl.service.AdminService.ListDescriptionEntitiesCallback} callback Node-style callback called with the error, if any, and DescriptionEntityList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listDescriptionEntities = function listDescriptionEntities(request, callback) { - return this.rpcCall(listDescriptionEntities, $root.flyteidl.admin.DescriptionEntityListRequest, $root.flyteidl.admin.DescriptionEntityList, request, callback); - }, "name", { value: "ListDescriptionEntities" }); - - /** - * Calls ListDescriptionEntities. - * @function listDescriptionEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. - * @memberof flyteidl.service.AdminService - * @typedef GetExecutionMetricsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionGetMetricsResponse} [response] WorkflowExecutionGetMetricsResponse - */ - - /** - * Calls GetExecutionMetrics. - * @function getExecutionMetrics - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object - * @param {flyteidl.service.AdminService.GetExecutionMetricsCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getExecutionMetrics = function getExecutionMetrics(request, callback) { - return this.rpcCall(getExecutionMetrics, $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest, $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse, request, callback); - }, "name", { value: "GetExecutionMetrics" }); - - /** - * Calls GetExecutionMetrics. - * @function getExecutionMetrics - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AdminService; - })(); - - service.SyncAgentService = (function() { - - /** - * Constructs a new SyncAgentService service. - * @memberof flyteidl.service - * @classdesc Represents a SyncAgentService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SyncAgentService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SyncAgentService; - - /** - * Creates new SyncAgentService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.SyncAgentService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SyncAgentService} RPC service. Useful where requests and/or responses are streamed. - */ - SyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.SyncAgentService#executeTaskSync}. - * @memberof flyteidl.service.SyncAgentService - * @typedef ExecuteTaskSyncCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecuteTaskSyncResponse} [response] ExecuteTaskSyncResponse - */ - - /** - * Calls ExecuteTaskSync. - * @function executeTaskSync - * @memberof flyteidl.service.SyncAgentService - * @instance - * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object - * @param {flyteidl.service.SyncAgentService.ExecuteTaskSyncCallback} callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SyncAgentService.prototype.executeTaskSync = function executeTaskSync(request, callback) { - return this.rpcCall(executeTaskSync, $root.flyteidl.admin.ExecuteTaskSyncRequest, $root.flyteidl.admin.ExecuteTaskSyncResponse, request, callback); - }, "name", { value: "ExecuteTaskSync" }); - - /** - * Calls ExecuteTaskSync. - * @function executeTaskSync - * @memberof flyteidl.service.SyncAgentService - * @instance - * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return SyncAgentService; - })(); - - service.AsyncAgentService = (function() { - - /** - * Constructs a new AsyncAgentService service. - * @memberof flyteidl.service - * @classdesc Represents an AsyncAgentService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; - - /** - * Creates new AsyncAgentService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AsyncAgentService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AsyncAgentService} RPC service. Useful where requests and/or responses are streamed. - */ - AsyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.CreateTaskResponse} [response] CreateTaskResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.CreateTaskCallback} callback Node-style callback called with the error, if any, and CreateTaskResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.admin.CreateTaskRequest, $root.flyteidl.admin.CreateTaskResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetTaskResponse} [response] GetTaskResponse - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.GetTaskCallback} callback Node-style callback called with the error, if any, and GetTaskResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.admin.GetTaskRequest, $root.flyteidl.admin.GetTaskResponse, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef DeleteTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DeleteTaskResponse} [response] DeleteTaskResponse - */ - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and DeleteTaskResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.deleteTask = function deleteTask(request, callback) { - return this.rpcCall(deleteTask, $root.flyteidl.admin.DeleteTaskRequest, $root.flyteidl.admin.DeleteTaskResponse, request, callback); - }, "name", { value: "DeleteTask" }); - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskMetrics}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef GetTaskMetricsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetTaskMetricsResponse} [response] GetTaskMetricsResponse - */ - - /** - * Calls GetTaskMetrics. - * @function getTaskMetrics - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskMetricsRequest} request GetTaskMetricsRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.GetTaskMetricsCallback} callback Node-style callback called with the error, if any, and GetTaskMetricsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.getTaskMetrics = function getTaskMetrics(request, callback) { - return this.rpcCall(getTaskMetrics, $root.flyteidl.admin.GetTaskMetricsRequest, $root.flyteidl.admin.GetTaskMetricsResponse, request, callback); - }, "name", { value: "GetTaskMetrics" }); - - /** - * Calls GetTaskMetrics. - * @function getTaskMetrics - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskMetricsRequest} request GetTaskMetricsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskLogs}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef GetTaskLogsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetTaskLogsResponse} [response] GetTaskLogsResponse - */ - - /** - * Calls GetTaskLogs. - * @function getTaskLogs - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskLogsRequest} request GetTaskLogsRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.GetTaskLogsCallback} callback Node-style callback called with the error, if any, and GetTaskLogsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.getTaskLogs = function getTaskLogs(request, callback) { - return this.rpcCall(getTaskLogs, $root.flyteidl.admin.GetTaskLogsRequest, $root.flyteidl.admin.GetTaskLogsResponse, request, callback); - }, "name", { value: "GetTaskLogs" }); - - /** - * Calls GetTaskLogs. - * @function getTaskLogs - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskLogsRequest} request GetTaskLogsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AsyncAgentService; - })(); - - service.AgentMetadataService = (function() { - - /** - * Constructs a new AgentMetadataService service. - * @memberof flyteidl.service - * @classdesc Represents an AgentMetadataService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AgentMetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AgentMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AgentMetadataService; - - /** - * Creates new AgentMetadataService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AgentMetadataService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AgentMetadataService} RPC service. Useful where requests and/or responses are streamed. - */ - AgentMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#getAgent}. - * @memberof flyteidl.service.AgentMetadataService - * @typedef GetAgentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetAgentResponse} [response] GetAgentResponse - */ - - /** - * Calls GetAgent. - * @function getAgent - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IGetAgentRequest} request GetAgentRequest message or plain object - * @param {flyteidl.service.AgentMetadataService.GetAgentCallback} callback Node-style callback called with the error, if any, and GetAgentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AgentMetadataService.prototype.getAgent = function getAgent(request, callback) { - return this.rpcCall(getAgent, $root.flyteidl.admin.GetAgentRequest, $root.flyteidl.admin.GetAgentResponse, request, callback); - }, "name", { value: "GetAgent" }); - - /** - * Calls GetAgent. - * @function getAgent - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IGetAgentRequest} request GetAgentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#listAgents}. - * @memberof flyteidl.service.AgentMetadataService - * @typedef ListAgentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ListAgentsResponse} [response] ListAgentsResponse - */ - - /** - * Calls ListAgents. - * @function listAgents - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IListAgentsRequest} request ListAgentsRequest message or plain object - * @param {flyteidl.service.AgentMetadataService.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AgentMetadataService.prototype.listAgents = function listAgents(request, callback) { - return this.rpcCall(listAgents, $root.flyteidl.admin.ListAgentsRequest, $root.flyteidl.admin.ListAgentsResponse, request, callback); - }, "name", { value: "ListAgents" }); - - /** - * Calls ListAgents. - * @function listAgents - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IListAgentsRequest} request ListAgentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AgentMetadataService; - })(); - - service.OAuth2MetadataRequest = (function() { - - /** - * Properties of a OAuth2MetadataRequest. - * @memberof flyteidl.service - * @interface IOAuth2MetadataRequest - */ - - /** - * Constructs a new OAuth2MetadataRequest. - * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataRequest. - * @implements IOAuth2MetadataRequest - * @constructor - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set - */ - function OAuth2MetadataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest instance - */ - OAuth2MetadataRequest.create = function create(properties) { - return new OAuth2MetadataRequest(properties); - }; - - /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2MetadataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2MetadataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2MetadataRequest message. - * @function verify - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2MetadataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return OAuth2MetadataRequest; - })(); - - service.OAuth2MetadataResponse = (function() { - - /** - * Properties of a OAuth2MetadataResponse. - * @memberof flyteidl.service - * @interface IOAuth2MetadataResponse - * @property {string|null} [issuer] OAuth2MetadataResponse issuer - * @property {string|null} [authorizationEndpoint] OAuth2MetadataResponse authorizationEndpoint - * @property {string|null} [tokenEndpoint] OAuth2MetadataResponse tokenEndpoint - * @property {Array.|null} [responseTypesSupported] OAuth2MetadataResponse responseTypesSupported - * @property {Array.|null} [scopesSupported] OAuth2MetadataResponse scopesSupported - * @property {Array.|null} [tokenEndpointAuthMethodsSupported] OAuth2MetadataResponse tokenEndpointAuthMethodsSupported - * @property {string|null} [jwksUri] OAuth2MetadataResponse jwksUri - * @property {Array.|null} [codeChallengeMethodsSupported] OAuth2MetadataResponse codeChallengeMethodsSupported - * @property {Array.|null} [grantTypesSupported] OAuth2MetadataResponse grantTypesSupported - * @property {string|null} [deviceAuthorizationEndpoint] OAuth2MetadataResponse deviceAuthorizationEndpoint - */ - - /** - * Constructs a new OAuth2MetadataResponse. - * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataResponse. - * @implements IOAuth2MetadataResponse - * @constructor - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set - */ - function OAuth2MetadataResponse(properties) { - this.responseTypesSupported = []; - this.scopesSupported = []; - this.tokenEndpointAuthMethodsSupported = []; - this.codeChallengeMethodsSupported = []; - this.grantTypesSupported = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OAuth2MetadataResponse issuer. - * @member {string} issuer - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.issuer = ""; - - /** - * OAuth2MetadataResponse authorizationEndpoint. - * @member {string} authorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; - - /** - * OAuth2MetadataResponse tokenEndpoint. - * @member {string} tokenEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.tokenEndpoint = ""; - - /** - * OAuth2MetadataResponse responseTypesSupported. - * @member {Array.} responseTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse scopesSupported. - * @member {Array.} scopesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. - * @member {Array.} tokenEndpointAuthMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse jwksUri. - * @member {string} jwksUri - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.jwksUri = ""; - - /** - * OAuth2MetadataResponse codeChallengeMethodsSupported. - * @member {Array.} codeChallengeMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse grantTypesSupported. - * @member {Array.} grantTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse deviceAuthorizationEndpoint. - * @member {string} deviceAuthorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; - - /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance - */ - OAuth2MetadataResponse.create = function create(properties) { - return new OAuth2MetadataResponse(properties); - }; - - /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2MetadataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.issuer != null && message.hasOwnProperty("issuer")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); - if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.authorizationEndpoint); - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tokenEndpoint); - if (message.responseTypesSupported != null && message.responseTypesSupported.length) - for (var i = 0; i < message.responseTypesSupported.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseTypesSupported[i]); - if (message.scopesSupported != null && message.scopesSupported.length) - for (var i = 0; i < message.scopesSupported.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.scopesSupported[i]); - if (message.tokenEndpointAuthMethodsSupported != null && message.tokenEndpointAuthMethodsSupported.length) - for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.tokenEndpointAuthMethodsSupported[i]); - if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.jwksUri); - if (message.codeChallengeMethodsSupported != null && message.codeChallengeMethodsSupported.length) - for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.codeChallengeMethodsSupported[i]); - if (message.grantTypesSupported != null && message.grantTypesSupported.length) - for (var i = 0; i < message.grantTypesSupported.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.grantTypesSupported[i]); - if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.deviceAuthorizationEndpoint); - return writer; - }; - - /** - * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2MetadataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.authorizationEndpoint = reader.string(); - break; - case 3: - message.tokenEndpoint = reader.string(); - break; - case 4: - if (!(message.responseTypesSupported && message.responseTypesSupported.length)) - message.responseTypesSupported = []; - message.responseTypesSupported.push(reader.string()); - break; - case 5: - if (!(message.scopesSupported && message.scopesSupported.length)) - message.scopesSupported = []; - message.scopesSupported.push(reader.string()); - break; - case 6: - if (!(message.tokenEndpointAuthMethodsSupported && message.tokenEndpointAuthMethodsSupported.length)) - message.tokenEndpointAuthMethodsSupported = []; - message.tokenEndpointAuthMethodsSupported.push(reader.string()); - break; - case 7: - message.jwksUri = reader.string(); - break; - case 8: - if (!(message.codeChallengeMethodsSupported && message.codeChallengeMethodsSupported.length)) - message.codeChallengeMethodsSupported = []; - message.codeChallengeMethodsSupported.push(reader.string()); - break; - case 9: - if (!(message.grantTypesSupported && message.grantTypesSupported.length)) - message.grantTypesSupported = []; - message.grantTypesSupported.push(reader.string()); - break; - case 10: - message.deviceAuthorizationEndpoint = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2MetadataResponse message. - * @function verify - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2MetadataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.issuer != null && message.hasOwnProperty("issuer")) - if (!$util.isString(message.issuer)) - return "issuer: string expected"; - if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) - if (!$util.isString(message.authorizationEndpoint)) - return "authorizationEndpoint: string expected"; - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - if (!$util.isString(message.tokenEndpoint)) - return "tokenEndpoint: string expected"; - if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { - if (!Array.isArray(message.responseTypesSupported)) - return "responseTypesSupported: array expected"; - for (var i = 0; i < message.responseTypesSupported.length; ++i) - if (!$util.isString(message.responseTypesSupported[i])) - return "responseTypesSupported: string[] expected"; - } - if (message.scopesSupported != null && message.hasOwnProperty("scopesSupported")) { - if (!Array.isArray(message.scopesSupported)) - return "scopesSupported: array expected"; - for (var i = 0; i < message.scopesSupported.length; ++i) - if (!$util.isString(message.scopesSupported[i])) - return "scopesSupported: string[] expected"; - } - if (message.tokenEndpointAuthMethodsSupported != null && message.hasOwnProperty("tokenEndpointAuthMethodsSupported")) { - if (!Array.isArray(message.tokenEndpointAuthMethodsSupported)) - return "tokenEndpointAuthMethodsSupported: array expected"; - for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) - if (!$util.isString(message.tokenEndpointAuthMethodsSupported[i])) - return "tokenEndpointAuthMethodsSupported: string[] expected"; - } - if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) - if (!$util.isString(message.jwksUri)) - return "jwksUri: string expected"; - if (message.codeChallengeMethodsSupported != null && message.hasOwnProperty("codeChallengeMethodsSupported")) { - if (!Array.isArray(message.codeChallengeMethodsSupported)) - return "codeChallengeMethodsSupported: array expected"; - for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) - if (!$util.isString(message.codeChallengeMethodsSupported[i])) - return "codeChallengeMethodsSupported: string[] expected"; - } - if (message.grantTypesSupported != null && message.hasOwnProperty("grantTypesSupported")) { - if (!Array.isArray(message.grantTypesSupported)) - return "grantTypesSupported: array expected"; - for (var i = 0; i < message.grantTypesSupported.length; ++i) - if (!$util.isString(message.grantTypesSupported[i])) - return "grantTypesSupported: string[] expected"; - } - if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) - if (!$util.isString(message.deviceAuthorizationEndpoint)) - return "deviceAuthorizationEndpoint: string expected"; - return null; - }; - - return OAuth2MetadataResponse; - })(); - - service.PublicClientAuthConfigRequest = (function() { - - /** - * Properties of a PublicClientAuthConfigRequest. - * @memberof flyteidl.service - * @interface IPublicClientAuthConfigRequest - */ - - /** - * Constructs a new PublicClientAuthConfigRequest. - * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigRequest. - * @implements IPublicClientAuthConfigRequest - * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set - */ - function PublicClientAuthConfigRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance - */ - PublicClientAuthConfigRequest.create = function create(properties) { - return new PublicClientAuthConfigRequest(properties); - }; - - /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicClientAuthConfigRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicClientAuthConfigRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PublicClientAuthConfigRequest message. - * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PublicClientAuthConfigRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return PublicClientAuthConfigRequest; - })(); - - service.PublicClientAuthConfigResponse = (function() { - - /** - * Properties of a PublicClientAuthConfigResponse. - * @memberof flyteidl.service - * @interface IPublicClientAuthConfigResponse - * @property {string|null} [clientId] PublicClientAuthConfigResponse clientId - * @property {string|null} [redirectUri] PublicClientAuthConfigResponse redirectUri - * @property {Array.|null} [scopes] PublicClientAuthConfigResponse scopes - * @property {string|null} [authorizationMetadataKey] PublicClientAuthConfigResponse authorizationMetadataKey - * @property {string|null} [serviceHttpEndpoint] PublicClientAuthConfigResponse serviceHttpEndpoint - * @property {string|null} [audience] PublicClientAuthConfigResponse audience - */ - - /** - * Constructs a new PublicClientAuthConfigResponse. - * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigResponse. - * @implements IPublicClientAuthConfigResponse - * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set - */ - function PublicClientAuthConfigResponse(properties) { - this.scopes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PublicClientAuthConfigResponse clientId. - * @member {string} clientId - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.clientId = ""; - - /** - * PublicClientAuthConfigResponse redirectUri. - * @member {string} redirectUri - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.redirectUri = ""; - - /** - * PublicClientAuthConfigResponse scopes. - * @member {Array.} scopes - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.scopes = $util.emptyArray; - - /** - * PublicClientAuthConfigResponse authorizationMetadataKey. - * @member {string} authorizationMetadataKey - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.authorizationMetadataKey = ""; - - /** - * PublicClientAuthConfigResponse serviceHttpEndpoint. - * @member {string} serviceHttpEndpoint - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; - - /** - * PublicClientAuthConfigResponse audience. - * @member {string} audience - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.audience = ""; - - /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance - */ - PublicClientAuthConfigResponse.create = function create(properties) { - return new PublicClientAuthConfigResponse(properties); - }; - - /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicClientAuthConfigResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientId != null && message.hasOwnProperty("clientId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); - if (message.scopes != null && message.scopes.length) - for (var i = 0; i < message.scopes.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.scopes[i]); - if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizationMetadataKey); - if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceHttpEndpoint); - if (message.audience != null && message.hasOwnProperty("audience")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.audience); - return writer; - }; - - /** - * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicClientAuthConfigResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.redirectUri = reader.string(); - break; - case 3: - if (!(message.scopes && message.scopes.length)) - message.scopes = []; - message.scopes.push(reader.string()); - break; - case 4: - message.authorizationMetadataKey = reader.string(); - break; - case 5: - message.serviceHttpEndpoint = reader.string(); - break; - case 6: - message.audience = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PublicClientAuthConfigResponse message. - * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PublicClientAuthConfigResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - if (!$util.isString(message.redirectUri)) - return "redirectUri: string expected"; - if (message.scopes != null && message.hasOwnProperty("scopes")) { - if (!Array.isArray(message.scopes)) - return "scopes: array expected"; - for (var i = 0; i < message.scopes.length; ++i) - if (!$util.isString(message.scopes[i])) - return "scopes: string[] expected"; - } - if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) - if (!$util.isString(message.authorizationMetadataKey)) - return "authorizationMetadataKey: string expected"; - if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) - if (!$util.isString(message.serviceHttpEndpoint)) - return "serviceHttpEndpoint: string expected"; - if (message.audience != null && message.hasOwnProperty("audience")) - if (!$util.isString(message.audience)) - return "audience: string expected"; - return null; - }; - - return PublicClientAuthConfigResponse; - })(); - - service.AuthMetadataService = (function() { - - /** - * Constructs a new AuthMetadataService service. - * @memberof flyteidl.service - * @classdesc Represents an AuthMetadataService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AuthMetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AuthMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AuthMetadataService; - - /** - * Creates new AuthMetadataService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AuthMetadataService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AuthMetadataService} RPC service. Useful where requests and/or responses are streamed. - */ - AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @memberof flyteidl.service.AuthMetadataService - * @typedef GetOAuth2MetadataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.OAuth2MetadataResponse} [response] OAuth2MetadataResponse - */ - - /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @param {flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback} callback Node-style callback called with the error, if any, and OAuth2MetadataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AuthMetadataService.prototype.getOAuth2Metadata = function getOAuth2Metadata(request, callback) { - return this.rpcCall(getOAuth2Metadata, $root.flyteidl.service.OAuth2MetadataRequest, $root.flyteidl.service.OAuth2MetadataResponse, request, callback); - }, "name", { value: "GetOAuth2Metadata" }); - - /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @memberof flyteidl.service.AuthMetadataService - * @typedef GetPublicClientConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.PublicClientAuthConfigResponse} [response] PublicClientAuthConfigResponse - */ - - /** - * Calls GetPublicClientConfig. - * @function getPublicClientConfig - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object - * @param {flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback} callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AuthMetadataService.prototype.getPublicClientConfig = function getPublicClientConfig(request, callback) { - return this.rpcCall(getPublicClientConfig, $root.flyteidl.service.PublicClientAuthConfigRequest, $root.flyteidl.service.PublicClientAuthConfigResponse, request, callback); - }, "name", { value: "GetPublicClientConfig" }); - - /** - * Calls GetPublicClientConfig. - * @function getPublicClientConfig - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AuthMetadataService; - })(); - - service.CreateUploadLocationResponse = (function() { - - /** - * Properties of a CreateUploadLocationResponse. - * @memberof flyteidl.service - * @interface ICreateUploadLocationResponse - * @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl - * @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt - */ - - /** - * Constructs a new CreateUploadLocationResponse. - * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationResponse. - * @implements ICreateUploadLocationResponse - * @constructor - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set - */ - function CreateUploadLocationResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateUploadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.signedUrl = ""; - - /** - * CreateUploadLocationResponse nativeUrl. - * @member {string} nativeUrl - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.nativeUrl = ""; - - /** - * CreateUploadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.expiresAt = null; - - /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance - */ - CreateUploadLocationResponse.create = function create(properties) { - return new CreateUploadLocationResponse(properties); - }; - - /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateUploadLocationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateUploadLocationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedUrl = reader.string(); - break; - case 2: - message.nativeUrl = reader.string(); - break; - case 3: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateUploadLocationResponse message. - * @function verify - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateUploadLocationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - if (!$util.isString(message.signedUrl)) - return "signedUrl: string expected"; - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - if (!$util.isString(message.nativeUrl)) - return "nativeUrl: string expected"; - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - return null; - }; - - return CreateUploadLocationResponse; - })(); - - service.CreateUploadLocationRequest = (function() { - - /** - * Properties of a CreateUploadLocationRequest. - * @memberof flyteidl.service - * @interface ICreateUploadLocationRequest - * @property {string|null} [project] CreateUploadLocationRequest project - * @property {string|null} [domain] CreateUploadLocationRequest domain - * @property {string|null} [filename] CreateUploadLocationRequest filename - * @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn - * @property {Uint8Array|null} [contentMd5] CreateUploadLocationRequest contentMd5 - * @property {string|null} [filenameRoot] CreateUploadLocationRequest filenameRoot - */ - - /** - * Constructs a new CreateUploadLocationRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationRequest. - * @implements ICreateUploadLocationRequest - * @constructor - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set - */ - function CreateUploadLocationRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateUploadLocationRequest project. - * @member {string} project - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.project = ""; - - /** - * CreateUploadLocationRequest domain. - * @member {string} domain - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.domain = ""; - - /** - * CreateUploadLocationRequest filename. - * @member {string} filename - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.filename = ""; - - /** - * CreateUploadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.expiresIn = null; - - /** - * CreateUploadLocationRequest contentMd5. - * @member {Uint8Array} contentMd5 - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]); - - /** - * CreateUploadLocationRequest filenameRoot. - * @member {string} filenameRoot - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.filenameRoot = ""; - - /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance - */ - CreateUploadLocationRequest.create = function create(properties) { - return new CreateUploadLocationRequest(properties); - }; - - /** - * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateUploadLocationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.filename != null && message.hasOwnProperty("filename")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filename); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.contentMd5); - if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.filenameRoot); - return writer; - }; - - /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateUploadLocationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.filename = reader.string(); - break; - case 4: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.contentMd5 = reader.bytes(); - break; - case 6: - message.filenameRoot = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateUploadLocationRequest message. - * @function verify - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateUploadLocationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) - if (!(message.contentMd5 && typeof message.contentMd5.length === "number" || $util.isString(message.contentMd5))) - return "contentMd5: buffer expected"; - if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) - if (!$util.isString(message.filenameRoot)) - return "filenameRoot: string expected"; - return null; - }; - - return CreateUploadLocationRequest; - })(); - - service.CreateDownloadLocationRequest = (function() { - - /** - * Properties of a CreateDownloadLocationRequest. - * @memberof flyteidl.service - * @interface ICreateDownloadLocationRequest - * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl - * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn - */ - - /** - * Constructs a new CreateDownloadLocationRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationRequest. - * @implements ICreateDownloadLocationRequest - * @constructor - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set - */ - function CreateDownloadLocationRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLocationRequest nativeUrl. - * @member {string} nativeUrl - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @instance - */ - CreateDownloadLocationRequest.prototype.nativeUrl = ""; - - /** - * CreateDownloadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @instance - */ - CreateDownloadLocationRequest.prototype.expiresIn = null; - - /** - * Creates a new CreateDownloadLocationRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance - */ - CreateDownloadLocationRequest.create = function create(properties) { - return new CreateDownloadLocationRequest(properties); - }; - - /** - * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {flyteidl.service.ICreateDownloadLocationRequest} message CreateDownloadLocationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLocationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nativeUrl); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLocationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nativeUrl = reader.string(); - break; - case 2: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLocationRequest message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLocationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - if (!$util.isString(message.nativeUrl)) - return "nativeUrl: string expected"; - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - return null; - }; - - return CreateDownloadLocationRequest; - })(); - - service.CreateDownloadLocationResponse = (function() { - - /** - * Properties of a CreateDownloadLocationResponse. - * @memberof flyteidl.service - * @interface ICreateDownloadLocationResponse - * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt - */ - - /** - * Constructs a new CreateDownloadLocationResponse. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationResponse. - * @implements ICreateDownloadLocationResponse - * @constructor - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set - */ - function CreateDownloadLocationResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @instance - */ - CreateDownloadLocationResponse.prototype.signedUrl = ""; - - /** - * CreateDownloadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @instance - */ - CreateDownloadLocationResponse.prototype.expiresAt = null; - - /** - * Creates a new CreateDownloadLocationResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance - */ - CreateDownloadLocationResponse.create = function create(properties) { - return new CreateDownloadLocationResponse(properties); - }; - - /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLocationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLocationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedUrl = reader.string(); - break; - case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLocationResponse message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLocationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - if (!$util.isString(message.signedUrl)) - return "signedUrl: string expected"; - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - return null; - }; - - return CreateDownloadLocationResponse; - })(); - - /** - * ArtifactType enum. - * @name flyteidl.service.ArtifactType - * @enum {string} - * @property {number} ARTIFACT_TYPE_UNDEFINED=0 ARTIFACT_TYPE_UNDEFINED value - * @property {number} ARTIFACT_TYPE_DECK=1 ARTIFACT_TYPE_DECK value - */ - service.ArtifactType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ARTIFACT_TYPE_UNDEFINED"] = 0; - values[valuesById[1] = "ARTIFACT_TYPE_DECK"] = 1; - return values; - })(); - - service.CreateDownloadLinkRequest = (function() { - - /** - * Properties of a CreateDownloadLinkRequest. - * @memberof flyteidl.service - * @interface ICreateDownloadLinkRequest - * @property {flyteidl.service.ArtifactType|null} [artifactType] CreateDownloadLinkRequest artifactType - * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLinkRequest expiresIn - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] CreateDownloadLinkRequest nodeExecutionId - */ - - /** - * Constructs a new CreateDownloadLinkRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkRequest. - * @implements ICreateDownloadLinkRequest - * @constructor - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set - */ - function CreateDownloadLinkRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLinkRequest artifactType. - * @member {flyteidl.service.ArtifactType} artifactType - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - CreateDownloadLinkRequest.prototype.artifactType = 0; - - /** - * CreateDownloadLinkRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - CreateDownloadLinkRequest.prototype.expiresIn = null; - - /** - * CreateDownloadLinkRequest nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - CreateDownloadLinkRequest.prototype.nodeExecutionId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CreateDownloadLinkRequest source. - * @member {"nodeExecutionId"|undefined} source - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance - */ - CreateDownloadLinkRequest.create = function create(properties) { - return new CreateDownloadLinkRequest(properties); - }; - - /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLinkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactType != null && message.hasOwnProperty("artifactType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.artifactType); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLinkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactType = reader.int32(); - break; - case 2: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLinkRequest message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLinkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactType != null && message.hasOwnProperty("artifactType")) - switch (message.artifactType) { - default: - return "artifactType: enum value expected"; - case 0: - case 1: - break; - } - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - properties.source = 1; - { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - } - return null; - }; - - return CreateDownloadLinkRequest; - })(); - - service.CreateDownloadLinkResponse = (function() { - - /** - * Properties of a CreateDownloadLinkResponse. - * @memberof flyteidl.service - * @interface ICreateDownloadLinkResponse - * @property {Array.|null} [signedUrl] CreateDownloadLinkResponse signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLinkResponse expiresAt - * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] CreateDownloadLinkResponse preSignedUrls - */ - - /** - * Constructs a new CreateDownloadLinkResponse. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkResponse. - * @implements ICreateDownloadLinkResponse - * @constructor - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set - */ - function CreateDownloadLinkResponse(properties) { - this.signedUrl = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLinkResponse signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @instance - */ - CreateDownloadLinkResponse.prototype.signedUrl = $util.emptyArray; - - /** - * CreateDownloadLinkResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @instance - */ - CreateDownloadLinkResponse.prototype.expiresAt = null; - - /** - * CreateDownloadLinkResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @instance - */ - CreateDownloadLinkResponse.prototype.preSignedUrls = null; - - /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance - */ - CreateDownloadLinkResponse.create = function create(properties) { - return new CreateDownloadLinkResponse(properties); - }; - - /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLinkResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.signedUrl.length) - for (var i = 0; i < message.signedUrl.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) - $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLinkResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); - break; - case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLinkResponse message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLinkResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { - if (!Array.isArray(message.signedUrl)) - return "signedUrl: array expected"; - for (var i = 0; i < message.signedUrl.length; ++i) - if (!$util.isString(message.signedUrl[i])) - return "signedUrl: string[] expected"; - } - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { - var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); - if (error) - return "preSignedUrls." + error; - } - return null; - }; - - return CreateDownloadLinkResponse; - })(); - - service.PreSignedURLs = (function() { - - /** - * Properties of a PreSignedURLs. - * @memberof flyteidl.service - * @interface IPreSignedURLs - * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt - */ - - /** - * Constructs a new PreSignedURLs. - * @memberof flyteidl.service - * @classdesc Represents a PreSignedURLs. - * @implements IPreSignedURLs - * @constructor - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set - */ - function PreSignedURLs(properties) { - this.signedUrl = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PreSignedURLs signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.PreSignedURLs - * @instance - */ - PreSignedURLs.prototype.signedUrl = $util.emptyArray; - - /** - * PreSignedURLs expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.PreSignedURLs - * @instance - */ - PreSignedURLs.prototype.expiresAt = null; - - /** - * Creates a new PreSignedURLs instance using the specified properties. - * @function create - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set - * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance - */ - PreSignedURLs.create = function create(properties) { - return new PreSignedURLs(properties); - }; - - /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PreSignedURLs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.signedUrl.length) - for (var i = 0; i < message.signedUrl.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a PreSignedURLs message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PreSignedURLs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PreSignedURLs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); - break; - case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PreSignedURLs message. - * @function verify - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PreSignedURLs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { - if (!Array.isArray(message.signedUrl)) - return "signedUrl: array expected"; - for (var i = 0; i < message.signedUrl.length; ++i) - if (!$util.isString(message.signedUrl[i])) - return "signedUrl: string[] expected"; - } - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - return null; - }; - - return PreSignedURLs; - })(); - - service.GetDataRequest = (function() { - - /** - * Properties of a GetDataRequest. - * @memberof flyteidl.service - * @interface IGetDataRequest - * @property {string|null} [flyteUrl] GetDataRequest flyteUrl - */ - - /** - * Constructs a new GetDataRequest. - * @memberof flyteidl.service - * @classdesc Represents a GetDataRequest. - * @implements IGetDataRequest - * @constructor - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set - */ - function GetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetDataRequest flyteUrl. - * @member {string} flyteUrl - * @memberof flyteidl.service.GetDataRequest - * @instance - */ - GetDataRequest.prototype.flyteUrl = ""; - - /** - * Creates a new GetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance - */ - GetDataRequest.create = function create(properties) { - return new GetDataRequest(properties); - }; - - /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {flyteidl.service.IGetDataRequest} message GetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flyteUrl); - return writer; - }; - - /** - * Decodes a GetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.GetDataRequest} GetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.flyteUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetDataRequest message. - * @function verify - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) - if (!$util.isString(message.flyteUrl)) - return "flyteUrl: string expected"; - return null; - }; - - return GetDataRequest; - })(); - - service.GetDataResponse = (function() { - - /** - * Properties of a GetDataResponse. - * @memberof flyteidl.service - * @interface IGetDataResponse - * @property {flyteidl.core.ILiteralMap|null} [literalMap] GetDataResponse literalMap - * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] GetDataResponse preSignedUrls - * @property {flyteidl.core.ILiteral|null} [literal] GetDataResponse literal - */ - - /** - * Constructs a new GetDataResponse. - * @memberof flyteidl.service - * @classdesc Represents a GetDataResponse. - * @implements IGetDataResponse - * @constructor - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set - */ - function GetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetDataResponse literalMap. - * @member {flyteidl.core.ILiteralMap|null|undefined} literalMap - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.literalMap = null; - - /** - * GetDataResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.preSignedUrls = null; - - /** - * GetDataResponse literal. - * @member {flyteidl.core.ILiteral|null|undefined} literal - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.literal = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetDataResponse data. - * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - Object.defineProperty(GetDataResponse.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance - */ - GetDataResponse.create = function create(properties) { - return new GetDataResponse(properties); - }; - - /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {flyteidl.service.IGetDataResponse} message GetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literalMap != null && message.hasOwnProperty("literalMap")) - $root.flyteidl.core.LiteralMap.encode(message.literalMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) - $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.literal != null && message.hasOwnProperty("literal")) - $root.flyteidl.core.Literal.encode(message.literal, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.GetDataResponse} GetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); - break; - case 3: - message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetDataResponse message. - * @function verify - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.literalMap != null && message.hasOwnProperty("literalMap")) { - properties.data = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.literalMap); - if (error) - return "literalMap." + error; - } - } - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); - if (error) - return "preSignedUrls." + error; - } - } - if (message.literal != null && message.hasOwnProperty("literal")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.flyteidl.core.Literal.verify(message.literal); - if (error) - return "literal." + error; - } - } - return null; - }; - - return GetDataResponse; - })(); - - service.DataProxyService = (function() { - - /** - * Constructs a new DataProxyService service. - * @memberof flyteidl.service - * @classdesc Represents a DataProxyService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function DataProxyService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (DataProxyService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxyService; - - /** - * Creates new DataProxyService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.DataProxyService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {DataProxyService} RPC service. Useful where requests and/or responses are streamed. - */ - DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. - * @memberof flyteidl.service.DataProxyService - * @typedef CreateUploadLocationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse - */ - - /** - * Calls CreateUploadLocation. - * @function createUploadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createUploadLocation = function createUploadLocation(request, callback) { - return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback); - }, "name", { value: "CreateUploadLocation" }); - - /** - * Calls CreateUploadLocation. - * @function createUploadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. - * @memberof flyteidl.service.DataProxyService - * @typedef CreateDownloadLocationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.CreateDownloadLocationResponse} [response] CreateDownloadLocationResponse - */ - - /** - * Calls CreateDownloadLocation. - * @function createDownloadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateDownloadLocationCallback} callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createDownloadLocation = function createDownloadLocation(request, callback) { - return this.rpcCall(createDownloadLocation, $root.flyteidl.service.CreateDownloadLocationRequest, $root.flyteidl.service.CreateDownloadLocationResponse, request, callback); - }, "name", { value: "CreateDownloadLocation" }); - - /** - * Calls CreateDownloadLocation. - * @function createDownloadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. - * @memberof flyteidl.service.DataProxyService - * @typedef CreateDownloadLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.CreateDownloadLinkResponse} [response] CreateDownloadLinkResponse - */ - - /** - * Calls CreateDownloadLink. - * @function createDownloadLink - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateDownloadLinkCallback} callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createDownloadLink = function createDownloadLink(request, callback) { - return this.rpcCall(createDownloadLink, $root.flyteidl.service.CreateDownloadLinkRequest, $root.flyteidl.service.CreateDownloadLinkResponse, request, callback); - }, "name", { value: "CreateDownloadLink" }); - - /** - * Calls CreateDownloadLink. - * @function createDownloadLink - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#getData}. - * @memberof flyteidl.service.DataProxyService - * @typedef GetDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.GetDataResponse} [response] GetDataResponse - */ - - /** - * Calls GetData. - * @function getData - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object - * @param {flyteidl.service.DataProxyService.GetDataCallback} callback Node-style callback called with the error, if any, and GetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.getData = function getData(request, callback) { - return this.rpcCall(getData, $root.flyteidl.service.GetDataRequest, $root.flyteidl.service.GetDataResponse, request, callback); - }, "name", { value: "GetData" }); - - /** - * Calls GetData. - * @function getData - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return DataProxyService; - })(); - - service.ExternalPluginService = (function() { - - /** - * Constructs a new ExternalPluginService service. - * @memberof flyteidl.service - * @classdesc Represents an ExternalPluginService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ExternalPluginService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ExternalPluginService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ExternalPluginService; - - /** - * Creates new ExternalPluginService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.ExternalPluginService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ExternalPluginService} RPC service. Useful where requests and/or responses are streamed. - */ - ExternalPluginService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskCreateResponse} [response] TaskCreateResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.service.TaskCreateRequest, $root.flyteidl.service.TaskCreateResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskGetResponse} [response] TaskGetResponse - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.GetTaskCallback} callback Node-style callback called with the error, if any, and TaskGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.service.TaskGetRequest, $root.flyteidl.service.TaskGetResponse, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef DeleteTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskDeleteResponse} [response] TaskDeleteResponse - */ - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and TaskDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.deleteTask = function deleteTask(request, callback) { - return this.rpcCall(deleteTask, $root.flyteidl.service.TaskDeleteRequest, $root.flyteidl.service.TaskDeleteResponse, request, callback); - }, "name", { value: "DeleteTask" }); - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return ExternalPluginService; - })(); - - /** - * State enum. - * @name flyteidl.service.State - * @enum {string} - * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value - * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value - * @property {number} PENDING=2 PENDING value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - */ - service.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; - values[valuesById[1] = "PERMANENT_FAILURE"] = 1; - values[valuesById[2] = "PENDING"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - return values; - })(); - - service.TaskCreateRequest = (function() { - - /** - * Properties of a TaskCreateRequest. - * @memberof flyteidl.service - * @interface ITaskCreateRequest - * @property {flyteidl.core.ILiteralMap|null} [inputs] TaskCreateRequest inputs - * @property {flyteidl.core.ITaskTemplate|null} [template] TaskCreateRequest template - * @property {string|null} [outputPrefix] TaskCreateRequest outputPrefix - */ - - /** - * Constructs a new TaskCreateRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest - * @constructor - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - */ - function TaskCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.inputs = null; - - /** - * TaskCreateRequest template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.template = null; - - /** - * TaskCreateRequest outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.outputPrefix = ""; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance - */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); - }; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); - return writer; - }; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 3: - message.outputPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateRequest message. - * @function verify - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - return null; - }; - - return TaskCreateRequest; - })(); - - service.TaskCreateResponse = (function() { - - /** - * Properties of a TaskCreateResponse. - * @memberof flyteidl.service - * @interface ITaskCreateResponse - * @property {string|null} [jobId] TaskCreateResponse jobId - */ - - /** - * Constructs a new TaskCreateResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse - * @constructor - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - */ - function TaskCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateResponse jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskCreateResponse - * @instance - */ - TaskCreateResponse.prototype.jobId = ""; - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance - */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); - }; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.jobId != null && message.hasOwnProperty("jobId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobId); - return writer; - }; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.jobId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateResponse message. - * @function verify - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - return null; - }; - - return TaskCreateResponse; - })(); - - service.TaskGetRequest = (function() { - - /** - * Properties of a TaskGetRequest. - * @memberof flyteidl.service - * @interface ITaskGetRequest - * @property {string|null} [taskType] TaskGetRequest taskType - * @property {string|null} [jobId] TaskGetRequest jobId - */ - - /** - * Constructs a new TaskGetRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskGetRequest. - * @implements ITaskGetRequest - * @constructor - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set - */ - function TaskGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskGetRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskGetRequest - * @instance - */ - TaskGetRequest.prototype.taskType = ""; - - /** - * TaskGetRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskGetRequest - * @instance - */ - TaskGetRequest.prototype.jobId = ""; - - /** - * Creates a new TaskGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance - */ - TaskGetRequest.create = function create(properties) { - return new TaskGetRequest(properties); - }; - - /** - * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {flyteidl.service.ITaskGetRequest} message TaskGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.jobId != null && message.hasOwnProperty("jobId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); - return writer; - }; - - /** - * Decodes a TaskGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - message.jobId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskGetRequest message. - * @function verify - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - return null; - }; - - return TaskGetRequest; - })(); - - service.TaskGetResponse = (function() { - - /** - * Properties of a TaskGetResponse. - * @memberof flyteidl.service - * @interface ITaskGetResponse - * @property {flyteidl.service.State|null} [state] TaskGetResponse state - * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs - */ - - /** - * Constructs a new TaskGetResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskGetResponse. - * @implements ITaskGetResponse - * @constructor - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set - */ - function TaskGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskGetResponse state. - * @member {flyteidl.service.State} state - * @memberof flyteidl.service.TaskGetResponse - * @instance - */ - TaskGetResponse.prototype.state = 0; - - /** - * TaskGetResponse outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.service.TaskGetResponse - * @instance - */ - TaskGetResponse.prototype.outputs = null; - - /** - * Creates a new TaskGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance - */ - TaskGetResponse.create = function create(properties) { - return new TaskGetResponse(properties); - }; - - /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskGetResponse message. - * @function verify - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - return null; - }; - - return TaskGetResponse; - })(); - - service.TaskDeleteRequest = (function() { - - /** - * Properties of a TaskDeleteRequest. - * @memberof flyteidl.service - * @interface ITaskDeleteRequest - * @property {string|null} [taskType] TaskDeleteRequest taskType - * @property {string|null} [jobId] TaskDeleteRequest jobId - */ - - /** - * Constructs a new TaskDeleteRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteRequest. - * @implements ITaskDeleteRequest - * @constructor - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set - */ - function TaskDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskDeleteRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskDeleteRequest - * @instance - */ - TaskDeleteRequest.prototype.taskType = ""; - - /** - * TaskDeleteRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskDeleteRequest - * @instance - */ - TaskDeleteRequest.prototype.jobId = ""; - - /** - * Creates a new TaskDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance - */ - TaskDeleteRequest.create = function create(properties) { - return new TaskDeleteRequest(properties); - }; - - /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.jobId != null && message.hasOwnProperty("jobId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); - return writer; - }; - - /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - message.jobId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskDeleteRequest message. - * @function verify - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - return null; - }; - - return TaskDeleteRequest; - })(); - - service.TaskDeleteResponse = (function() { - - /** - * Properties of a TaskDeleteResponse. - * @memberof flyteidl.service - * @interface ITaskDeleteResponse - */ - - /** - * Constructs a new TaskDeleteResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteResponse. - * @implements ITaskDeleteResponse - * @constructor - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set - */ - function TaskDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance - */ - TaskDeleteResponse.create = function create(properties) { - return new TaskDeleteResponse(properties); - }; - - /** - * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskDeleteResponse message. - * @function verify - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return TaskDeleteResponse; - })(); - - service.UserInfoRequest = (function() { - - /** - * Properties of a UserInfoRequest. - * @memberof flyteidl.service - * @interface IUserInfoRequest - */ - - /** - * Constructs a new UserInfoRequest. - * @memberof flyteidl.service - * @classdesc Represents a UserInfoRequest. - * @implements IUserInfoRequest - * @constructor - * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set - */ - function UserInfoRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new UserInfoRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set - * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest instance - */ - UserInfoRequest.create = function create(properties) { - return new UserInfoRequest(properties); - }; - - /** - * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {flyteidl.service.IUserInfoRequest} message UserInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInfoRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a UserInfoRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInfoRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UserInfoRequest message. - * @function verify - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInfoRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return UserInfoRequest; - })(); - - service.UserInfoResponse = (function() { - - /** - * Properties of a UserInfoResponse. - * @memberof flyteidl.service - * @interface IUserInfoResponse - * @property {string|null} [subject] UserInfoResponse subject - * @property {string|null} [name] UserInfoResponse name - * @property {string|null} [preferredUsername] UserInfoResponse preferredUsername - * @property {string|null} [givenName] UserInfoResponse givenName - * @property {string|null} [familyName] UserInfoResponse familyName - * @property {string|null} [email] UserInfoResponse email - * @property {string|null} [picture] UserInfoResponse picture - * @property {google.protobuf.IStruct|null} [additionalClaims] UserInfoResponse additionalClaims - */ - - /** - * Constructs a new UserInfoResponse. - * @memberof flyteidl.service - * @classdesc Represents a UserInfoResponse. - * @implements IUserInfoResponse - * @constructor - * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set - */ - function UserInfoResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UserInfoResponse subject. - * @member {string} subject - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.subject = ""; - - /** - * UserInfoResponse name. - * @member {string} name - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.name = ""; - - /** - * UserInfoResponse preferredUsername. - * @member {string} preferredUsername - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.preferredUsername = ""; - - /** - * UserInfoResponse givenName. - * @member {string} givenName - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.givenName = ""; - - /** - * UserInfoResponse familyName. - * @member {string} familyName - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.familyName = ""; - - /** - * UserInfoResponse email. - * @member {string} email - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.email = ""; - - /** - * UserInfoResponse picture. - * @member {string} picture - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.picture = ""; - - /** - * UserInfoResponse additionalClaims. - * @member {google.protobuf.IStruct|null|undefined} additionalClaims - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.additionalClaims = null; - - /** - * Creates a new UserInfoResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set - * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse instance - */ - UserInfoResponse.create = function create(properties) { - return new UserInfoResponse(properties); - }; - - /** - * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {flyteidl.service.IUserInfoResponse} message UserInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subject != null && message.hasOwnProperty("subject")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.preferredUsername); - if (message.givenName != null && message.hasOwnProperty("givenName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.givenName); - if (message.familyName != null && message.hasOwnProperty("familyName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.familyName); - if (message.email != null && message.hasOwnProperty("email")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.email); - if (message.picture != null && message.hasOwnProperty("picture")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.picture); - if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) - $root.google.protobuf.Struct.encode(message.additionalClaims, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a UserInfoResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subject = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.preferredUsername = reader.string(); - break; - case 4: - message.givenName = reader.string(); - break; - case 5: - message.familyName = reader.string(); - break; - case 6: - message.email = reader.string(); - break; - case 7: - message.picture = reader.string(); - break; - case 8: - message.additionalClaims = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UserInfoResponse message. - * @function verify - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) - if (!$util.isString(message.preferredUsername)) - return "preferredUsername: string expected"; - if (message.givenName != null && message.hasOwnProperty("givenName")) - if (!$util.isString(message.givenName)) - return "givenName: string expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.picture != null && message.hasOwnProperty("picture")) - if (!$util.isString(message.picture)) - return "picture: string expected"; - if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) { - var error = $root.google.protobuf.Struct.verify(message.additionalClaims); - if (error) - return "additionalClaims." + error; - } - return null; - }; - - return UserInfoResponse; - })(); - - service.IdentityService = (function() { - - /** - * Constructs a new IdentityService service. - * @memberof flyteidl.service - * @classdesc Represents an IdentityService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IdentityService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IdentityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IdentityService; - - /** - * Creates new IdentityService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.IdentityService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IdentityService} RPC service. Useful where requests and/or responses are streamed. - */ - IdentityService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. - * @memberof flyteidl.service.IdentityService - * @typedef UserInfoCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.UserInfoResponse} [response] UserInfoResponse - */ - - /** - * Calls UserInfo. - * @function userInfo - * @memberof flyteidl.service.IdentityService - * @instance - * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object - * @param {flyteidl.service.IdentityService.UserInfoCallback} callback Node-style callback called with the error, if any, and UserInfoResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IdentityService.prototype.userInfo = function userInfo(request, callback) { - return this.rpcCall(userInfo, $root.flyteidl.service.UserInfoRequest, $root.flyteidl.service.UserInfoResponse, request, callback); - }, "name", { value: "UserInfo" }); - - /** - * Calls UserInfo. - * @function userInfo - * @memberof flyteidl.service.IdentityService - * @instance - * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return IdentityService; - })(); - - service.SignalService = (function() { - - /** - * Constructs a new SignalService service. - * @memberof flyteidl.service - * @classdesc Represents a SignalService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SignalService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SignalService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SignalService; - - /** - * Creates new SignalService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.SignalService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SignalService} RPC service. Useful where requests and/or responses are streamed. - */ - SignalService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. - * @memberof flyteidl.service.SignalService - * @typedef GetOrCreateSignalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Signal} [response] Signal - */ - - /** - * Calls GetOrCreateSignal. - * @function getOrCreateSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object - * @param {flyteidl.service.SignalService.GetOrCreateSignalCallback} callback Node-style callback called with the error, if any, and Signal - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SignalService.prototype.getOrCreateSignal = function getOrCreateSignal(request, callback) { - return this.rpcCall(getOrCreateSignal, $root.flyteidl.admin.SignalGetOrCreateRequest, $root.flyteidl.admin.Signal, request, callback); - }, "name", { value: "GetOrCreateSignal" }); - - /** - * Calls GetOrCreateSignal. - * @function getOrCreateSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.SignalService#listSignals}. - * @memberof flyteidl.service.SignalService - * @typedef ListSignalsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.SignalList} [response] SignalList - */ - - /** - * Calls ListSignals. - * @function listSignals - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object - * @param {flyteidl.service.SignalService.ListSignalsCallback} callback Node-style callback called with the error, if any, and SignalList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SignalService.prototype.listSignals = function listSignals(request, callback) { - return this.rpcCall(listSignals, $root.flyteidl.admin.SignalListRequest, $root.flyteidl.admin.SignalList, request, callback); - }, "name", { value: "ListSignals" }); - - /** - * Calls ListSignals. - * @function listSignals - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.SignalService#setSignal}. - * @memberof flyteidl.service.SignalService - * @typedef SetSignalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.SignalSetResponse} [response] SignalSetResponse - */ - - /** - * Calls SetSignal. - * @function setSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object - * @param {flyteidl.service.SignalService.SetSignalCallback} callback Node-style callback called with the error, if any, and SignalSetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SignalService.prototype.setSignal = function setSignal(request, callback) { - return this.rpcCall(setSignal, $root.flyteidl.admin.SignalSetRequest, $root.flyteidl.admin.SignalSetResponse, request, callback); - }, "name", { value: "SetSignal" }); - - /** - * Calls SetSignal. - * @function setSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return SignalService; - })(); - - return service; - })(); - - return flyteidl; - })(); - - $root.google = (function() { - - /** - * Namespace google. - * @exports google - * @namespace - */ - var google = {}; - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.Timestamp = (function() { - - /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos - */ - - /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - */ - function Timestamp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Timestamp seconds. - * @member {Long} seconds - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.nanos = 0; - - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - return Timestamp; - })(); - - protobuf.Struct = (function() { - - /** - * Properties of a Struct. - * @memberof google.protobuf - * @interface IStruct - * @property {Object.|null} [fields] Struct fields - */ - - /** - * Constructs a new Struct. - * @memberof google.protobuf - * @classdesc Represents a Struct. - * @implements IStruct - * @constructor - * @param {google.protobuf.IStruct=} [properties] Properties to set - */ - function Struct(properties) { - this.fields = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Struct fields. - * @member {Object.} fields - * @memberof google.protobuf.Struct - * @instance - */ - Struct.prototype.fields = $util.emptyObject; - - /** - * Creates a new Struct instance using the specified properties. - * @function create - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.IStruct=} [properties] Properties to set - * @returns {google.protobuf.Struct} Struct instance - */ - Struct.create = function create(properties) { - return new Struct(properties); - }; - - /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.IStruct} message Struct message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Struct.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fields != null && message.hasOwnProperty("fields")) - for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a Struct message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Struct - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Struct} Struct - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Struct.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.fields === $util.emptyObject) - message.fields = {}; - key = reader.string(); - reader.pos++; - message.fields[key] = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Struct message. - * @function verify - * @memberof google.protobuf.Struct - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Struct.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!$util.isObject(message.fields)) - return "fields: object expected"; - var key = Object.keys(message.fields); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); - if (error) - return "fields." + error; - } - } - return null; - }; - - return Struct; - })(); - - protobuf.Value = (function() { - - /** - * Properties of a Value. - * @memberof google.protobuf - * @interface IValue - * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue - * @property {number|null} [numberValue] Value numberValue - * @property {string|null} [stringValue] Value stringValue - * @property {boolean|null} [boolValue] Value boolValue - * @property {google.protobuf.IStruct|null} [structValue] Value structValue - * @property {google.protobuf.IListValue|null} [listValue] Value listValue - */ - - /** - * Constructs a new Value. - * @memberof google.protobuf - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.protobuf.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Value nullValue. - * @member {google.protobuf.NullValue} nullValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.nullValue = 0; - - /** - * Value numberValue. - * @member {number} numberValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.numberValue = 0; - - /** - * Value stringValue. - * @member {string} stringValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.stringValue = ""; - - /** - * Value boolValue. - * @member {boolean} boolValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.boolValue = false; - - /** - * Value structValue. - * @member {google.protobuf.IStruct|null|undefined} structValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.structValue = null; - - /** - * Value listValue. - * @member {google.protobuf.IListValue|null|undefined} listValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.listValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Value kind. - * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind - * @memberof google.protobuf.Value - * @instance - */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.IValue=} [properties] Properties to set - * @returns {google.protobuf.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nullValue != null && message.hasOwnProperty("nullValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); - if (message.numberValue != null && message.hasOwnProperty("numberValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolValue != null && message.hasOwnProperty("boolValue")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); - if (message.structValue != null && message.hasOwnProperty("structValue")) - $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.listValue != null && message.hasOwnProperty("listValue")) - $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nullValue = reader.int32(); - break; - case 2: - message.numberValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolValue = reader.bool(); - break; - case 5: - message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Value message. - * @function verify - * @memberof google.protobuf.Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - properties.kind = 1; - switch (message.nullValue) { - default: - return "nullValue: enum value expected"; - case 0: - break; - } - } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.numberValue !== "number") - return "numberValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.Struct.verify(message.structValue); - if (error) - return "structValue." + error; - } - } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.ListValue.verify(message.listValue); - if (error) - return "listValue." + error; - } - } - return null; - }; - - return Value; - })(); - - /** - * NullValue enum. - * @name google.protobuf.NullValue - * @enum {string} - * @property {number} NULL_VALUE=0 NULL_VALUE value - */ - protobuf.NullValue = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_VALUE"] = 0; - return values; - })(); - - protobuf.ListValue = (function() { - - /** - * Properties of a ListValue. - * @memberof google.protobuf - * @interface IListValue - * @property {Array.|null} [values] ListValue values - */ - - /** - * Constructs a new ListValue. - * @memberof google.protobuf - * @classdesc Represents a ListValue. - * @implements IListValue - * @constructor - * @param {google.protobuf.IListValue=} [properties] Properties to set - */ - function ListValue(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListValue values. - * @member {Array.} values - * @memberof google.protobuf.ListValue - * @instance - */ - ListValue.prototype.values = $util.emptyArray; - - /** - * Creates a new ListValue instance using the specified properties. - * @function create - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.IListValue=} [properties] Properties to set - * @returns {google.protobuf.ListValue} ListValue instance - */ - ListValue.create = function create(properties) { - return new ListValue(properties); - }; - - /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.IListValue} message ListValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ListValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ListValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ListValue} ListValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListValue message. - * @function verify - * @memberof google.protobuf.ListValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.values[i]); - if (error) - return "values." + error; - } - } - return null; - }; - - return ListValue; - })(); - - protobuf.Duration = (function() { - - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ - - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Duration seconds. - * @member {Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; - - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - return Duration; - })(); - - protobuf.DoubleValue = (function() { - - /** - * Properties of a DoubleValue. - * @memberof google.protobuf - * @interface IDoubleValue - * @property {number|null} [value] DoubleValue value - */ - - /** - * Constructs a new DoubleValue. - * @memberof google.protobuf - * @classdesc Represents a DoubleValue. - * @implements IDoubleValue - * @constructor - * @param {google.protobuf.IDoubleValue=} [properties] Properties to set - */ - function DoubleValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DoubleValue value. - * @member {number} value - * @memberof google.protobuf.DoubleValue - * @instance - */ - DoubleValue.prototype.value = 0; - - /** - * Creates a new DoubleValue instance using the specified properties. - * @function create - * @memberof google.protobuf.DoubleValue - * @static - * @param {google.protobuf.IDoubleValue=} [properties] Properties to set - * @returns {google.protobuf.DoubleValue} DoubleValue instance - */ - DoubleValue.create = function create(properties) { - return new DoubleValue(properties); - }; - - /** - * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DoubleValue - * @static - * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DoubleValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - return writer; - }; - - /** - * Decodes a DoubleValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DoubleValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DoubleValue} DoubleValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DoubleValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DoubleValue message. - * @function verify - * @memberof google.protobuf.DoubleValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DoubleValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - return DoubleValue; - })(); - - protobuf.FloatValue = (function() { - - /** - * Properties of a FloatValue. - * @memberof google.protobuf - * @interface IFloatValue - * @property {number|null} [value] FloatValue value - */ - - /** - * Constructs a new FloatValue. - * @memberof google.protobuf - * @classdesc Represents a FloatValue. - * @implements IFloatValue - * @constructor - * @param {google.protobuf.IFloatValue=} [properties] Properties to set - */ - function FloatValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FloatValue value. - * @member {number} value - * @memberof google.protobuf.FloatValue - * @instance - */ - FloatValue.prototype.value = 0; - - /** - * Creates a new FloatValue instance using the specified properties. - * @function create - * @memberof google.protobuf.FloatValue - * @static - * @param {google.protobuf.IFloatValue=} [properties] Properties to set - * @returns {google.protobuf.FloatValue} FloatValue instance - */ - FloatValue.create = function create(properties) { - return new FloatValue(properties); - }; - - /** - * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FloatValue - * @static - * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FloatValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); - return writer; - }; - - /** - * Decodes a FloatValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FloatValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FloatValue} FloatValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FloatValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FloatValue message. - * @function verify - * @memberof google.protobuf.FloatValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FloatValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - return FloatValue; - })(); - - protobuf.Int64Value = (function() { - - /** - * Properties of an Int64Value. - * @memberof google.protobuf - * @interface IInt64Value - * @property {Long|null} [value] Int64Value value - */ - - /** - * Constructs a new Int64Value. - * @memberof google.protobuf - * @classdesc Represents an Int64Value. - * @implements IInt64Value - * @constructor - * @param {google.protobuf.IInt64Value=} [properties] Properties to set - */ - function Int64Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Int64Value value. - * @member {Long} value - * @memberof google.protobuf.Int64Value - * @instance - */ - Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new Int64Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Int64Value - * @static - * @param {google.protobuf.IInt64Value=} [properties] Properties to set - * @returns {google.protobuf.Int64Value} Int64Value instance - */ - Int64Value.create = function create(properties) { - return new Int64Value(properties); - }; - - /** - * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Int64Value - * @static - * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Int64Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); - return writer; - }; - - /** - * Decodes an Int64Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Int64Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Int64Value} Int64Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Int64Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Int64Value message. - * @function verify - * @memberof google.protobuf.Int64Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Int64Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) - return "value: integer|Long expected"; - return null; - }; - - return Int64Value; - })(); - - protobuf.UInt64Value = (function() { - - /** - * Properties of a UInt64Value. - * @memberof google.protobuf - * @interface IUInt64Value - * @property {Long|null} [value] UInt64Value value - */ - - /** - * Constructs a new UInt64Value. - * @memberof google.protobuf - * @classdesc Represents a UInt64Value. - * @implements IUInt64Value - * @constructor - * @param {google.protobuf.IUInt64Value=} [properties] Properties to set - */ - function UInt64Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UInt64Value value. - * @member {Long} value - * @memberof google.protobuf.UInt64Value - * @instance - */ - UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new UInt64Value instance using the specified properties. - * @function create - * @memberof google.protobuf.UInt64Value - * @static - * @param {google.protobuf.IUInt64Value=} [properties] Properties to set - * @returns {google.protobuf.UInt64Value} UInt64Value instance - */ - UInt64Value.create = function create(properties) { - return new UInt64Value(properties); - }; - - /** - * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UInt64Value - * @static - * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UInt64Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); - return writer; - }; - - /** - * Decodes a UInt64Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UInt64Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UInt64Value} UInt64Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UInt64Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UInt64Value message. - * @function verify - * @memberof google.protobuf.UInt64Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UInt64Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) - return "value: integer|Long expected"; - return null; - }; - - return UInt64Value; - })(); - - protobuf.Int32Value = (function() { - - /** - * Properties of an Int32Value. - * @memberof google.protobuf - * @interface IInt32Value - * @property {number|null} [value] Int32Value value - */ - - /** - * Constructs a new Int32Value. - * @memberof google.protobuf - * @classdesc Represents an Int32Value. - * @implements IInt32Value - * @constructor - * @param {google.protobuf.IInt32Value=} [properties] Properties to set - */ - function Int32Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Int32Value value. - * @member {number} value - * @memberof google.protobuf.Int32Value - * @instance - */ - Int32Value.prototype.value = 0; - - /** - * Creates a new Int32Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Int32Value - * @static - * @param {google.protobuf.IInt32Value=} [properties] Properties to set - * @returns {google.protobuf.Int32Value} Int32Value instance - */ - Int32Value.create = function create(properties) { - return new Int32Value(properties); - }; - - /** - * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Int32Value - * @static - * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Int32Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); - return writer; - }; - - /** - * Decodes an Int32Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Int32Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Int32Value} Int32Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Int32Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Int32Value message. - * @function verify - * @memberof google.protobuf.Int32Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Int32Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value)) - return "value: integer expected"; - return null; - }; - - return Int32Value; - })(); - - protobuf.UInt32Value = (function() { - - /** - * Properties of a UInt32Value. - * @memberof google.protobuf - * @interface IUInt32Value - * @property {number|null} [value] UInt32Value value - */ - - /** - * Constructs a new UInt32Value. - * @memberof google.protobuf - * @classdesc Represents a UInt32Value. - * @implements IUInt32Value - * @constructor - * @param {google.protobuf.IUInt32Value=} [properties] Properties to set - */ - function UInt32Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UInt32Value value. - * @member {number} value - * @memberof google.protobuf.UInt32Value - * @instance - */ - UInt32Value.prototype.value = 0; - - /** - * Creates a new UInt32Value instance using the specified properties. - * @function create - * @memberof google.protobuf.UInt32Value - * @static - * @param {google.protobuf.IUInt32Value=} [properties] Properties to set - * @returns {google.protobuf.UInt32Value} UInt32Value instance - */ - UInt32Value.create = function create(properties) { - return new UInt32Value(properties); - }; - - /** - * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UInt32Value - * @static - * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UInt32Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); - return writer; - }; - - /** - * Decodes a UInt32Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UInt32Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UInt32Value} UInt32Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UInt32Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UInt32Value message. - * @function verify - * @memberof google.protobuf.UInt32Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UInt32Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value)) - return "value: integer expected"; - return null; - }; - - return UInt32Value; - })(); - - protobuf.BoolValue = (function() { - - /** - * Properties of a BoolValue. - * @memberof google.protobuf - * @interface IBoolValue - * @property {boolean|null} [value] BoolValue value - */ - - /** - * Constructs a new BoolValue. - * @memberof google.protobuf - * @classdesc Represents a BoolValue. - * @implements IBoolValue - * @constructor - * @param {google.protobuf.IBoolValue=} [properties] Properties to set - */ - function BoolValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BoolValue value. - * @member {boolean} value - * @memberof google.protobuf.BoolValue - * @instance - */ - BoolValue.prototype.value = false; - - /** - * Creates a new BoolValue instance using the specified properties. - * @function create - * @memberof google.protobuf.BoolValue - * @static - * @param {google.protobuf.IBoolValue=} [properties] Properties to set - * @returns {google.protobuf.BoolValue} BoolValue instance - */ - BoolValue.create = function create(properties) { - return new BoolValue(properties); - }; - - /** - * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.BoolValue - * @static - * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BoolValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); - return writer; - }; - - /** - * Decodes a BoolValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.BoolValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.BoolValue} BoolValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BoolValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BoolValue message. - * @function verify - * @memberof google.protobuf.BoolValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BoolValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "boolean") - return "value: boolean expected"; - return null; - }; - - return BoolValue; - })(); - - protobuf.StringValue = (function() { - - /** - * Properties of a StringValue. - * @memberof google.protobuf - * @interface IStringValue - * @property {string|null} [value] StringValue value - */ - - /** - * Constructs a new StringValue. - * @memberof google.protobuf - * @classdesc Represents a StringValue. - * @implements IStringValue - * @constructor - * @param {google.protobuf.IStringValue=} [properties] Properties to set - */ - function StringValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StringValue value. - * @member {string} value - * @memberof google.protobuf.StringValue - * @instance - */ - StringValue.prototype.value = ""; - - /** - * Creates a new StringValue instance using the specified properties. - * @function create - * @memberof google.protobuf.StringValue - * @static - * @param {google.protobuf.IStringValue=} [properties] Properties to set - * @returns {google.protobuf.StringValue} StringValue instance - */ - StringValue.create = function create(properties) { - return new StringValue(properties); - }; - - /** - * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.StringValue - * @static - * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - return writer; - }; - - /** - * Decodes a StringValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.StringValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.StringValue} StringValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StringValue message. - * @function verify - * @memberof google.protobuf.StringValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StringValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return StringValue; - })(); - - protobuf.BytesValue = (function() { - - /** - * Properties of a BytesValue. - * @memberof google.protobuf - * @interface IBytesValue - * @property {Uint8Array|null} [value] BytesValue value - */ - - /** - * Constructs a new BytesValue. - * @memberof google.protobuf - * @classdesc Represents a BytesValue. - * @implements IBytesValue - * @constructor - * @param {google.protobuf.IBytesValue=} [properties] Properties to set - */ - function BytesValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BytesValue value. - * @member {Uint8Array} value - * @memberof google.protobuf.BytesValue - * @instance - */ - BytesValue.prototype.value = $util.newBuffer([]); - - /** - * Creates a new BytesValue instance using the specified properties. - * @function create - * @memberof google.protobuf.BytesValue - * @static - * @param {google.protobuf.IBytesValue=} [properties] Properties to set - * @returns {google.protobuf.BytesValue} BytesValue instance - */ - BytesValue.create = function create(properties) { - return new BytesValue(properties); - }; - - /** - * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.BytesValue - * @static - * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BytesValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); - return writer; - }; - - /** - * Decodes a BytesValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.BytesValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.BytesValue} BytesValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BytesValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BytesValue message. - * @function verify - * @memberof google.protobuf.BytesValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BytesValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; - - return BytesValue; - })(); - - protobuf.Any = (function() { - - /** - * Properties of an Any. - * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value - */ - - /** - * Constructs a new Any. - * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny - * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set - */ - function Any(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.type_url = ""; - - /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.value = $util.newBuffer([]); - - /** - * Creates a new Any instance using the specified properties. - * @function create - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny=} [properties] Properties to set - * @returns {google.protobuf.Any} Any instance - */ - Any.create = function create(properties) { - return new Any(properties); - }; - - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Any.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type_url != null && message.hasOwnProperty("type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - return writer; - }; - - /** - * Decodes an Any message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Any - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Any.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type_url = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Any message. - * @function verify - * @memberof google.protobuf.Any - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Any.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; - - return Any; - })(); - - protobuf.FileDescriptorSet = (function() { - - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ - - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance - */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); - }; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; - - return FileDescriptorSet; - })(); - - protobuf.FileDescriptorProto = (function() { - - /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax - */ - - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; - - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; - - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; - - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; - - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; - - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; - - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; - - /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.sourceCodeInfo = null; - - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance - */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); - }; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && message.hasOwnProperty("package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && message.hasOwnProperty("syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - return writer; - }; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); - if (error) - return "sourceCodeInfo." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - return null; - }; - - return FileDescriptorProto; - })(); - - protobuf.DescriptorProto = (function() { - - /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName - */ - - /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto - * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; - - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; - - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; - - /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nestedType = $util.emptyArray; - - /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; - - /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; - - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; - - /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; - - /** - * DescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedName = $util.emptyArray; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance - */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); - }; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); - return writer; - }; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); - if (error) - return "oneofDecl." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - return null; - }; - - DescriptorProto.ExtensionRange = (function() { - - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - */ - - /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange - * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - */ - function ExtensionRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; - - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance - */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - return ExtensionRange; - })(); - - DescriptorProto.ReservedRange = (function() { - - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ - - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; - - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - return ReservedRange; - })(); - - return DescriptorProto; - })(); - - protobuf.FieldDescriptorProto = (function() { - - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - */ - - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; - - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; - - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; - - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; - - /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.typeName = ""; - - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; - - /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.defaultValue = ""; - - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; - - /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.jsonName = ""; - - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance - */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); - }; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && message.hasOwnProperty("extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && message.hasOwnProperty("number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && message.hasOwnProperty("label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && message.hasOwnProperty("typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - return writer; - }; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {string} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); - - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {string} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); - - return FieldDescriptorProto; - })(); - - protobuf.OneofDescriptorProto = (function() { - - /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options - */ - - /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto - * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - */ - function OneofDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; - - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.options = null; - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance - */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); - }; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return OneofDescriptorProto; - })(); - - protobuf.EnumDescriptorProto = (function() { - - /** - * Properties of an EnumDescriptorProto. - * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - */ - - /** - * Constructs a new EnumDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto - * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - */ - function EnumDescriptorProto(properties) { - this.value = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; - - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; - - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.options = null; - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance - */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); - }; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return EnumDescriptorProto; - })(); - - protobuf.EnumValueDescriptorProto = (function() { - - /** - * Properties of an EnumValueDescriptorProto. - * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options - */ - - /** - * Constructs a new EnumValueDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto - * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - */ - function EnumValueDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; - - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.number = 0; - - /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.options = null; - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance - */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); - }; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && message.hasOwnProperty("number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return EnumValueDescriptorProto; - })(); - - protobuf.ServiceDescriptorProto = (function() { - - /** - * Properties of a ServiceDescriptorProto. - * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options - */ - - /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto - * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - */ - function ServiceDescriptorProto(properties) { - this.method = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.name = ""; - - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; - - /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.options = null; - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance - */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); - }; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ServiceDescriptorProto message. - * @function verify - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); - if (error) - return "method." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return ServiceDescriptorProto; - })(); - - protobuf.MethodDescriptorProto = (function() { - - /** - * Properties of a MethodDescriptorProto. - * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming - */ - - /** - * Constructs a new MethodDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto - * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - */ - function MethodDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.name = ""; - - /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.inputType = ""; - - /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.outputType = ""; - - /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.options = null; - - /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.clientStreaming = false; - - /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.serverStreaming = false; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance - */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); - }; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && message.hasOwnProperty("inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && message.hasOwnProperty("outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); - return writer; - }; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MethodDescriptorProto message. - * @function verify - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; - return null; - }; - - return MethodDescriptorProto; - })(); - - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaPackage = ""; - - /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaOuterClassname = ""; - - /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaMultipleFiles = false; - - /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; - - /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaStringCheckUtf8 = false; - - /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimizeFor = 1; - - /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.goPackage = ""; - - /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccGenericServices = false; - - /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenericServices = false; - - /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.pyGenericServices = false; - - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; - - /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccEnableArenas = false; - - /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objcClassPrefix = ""; - - /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharpNamespace = ""; - - /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new FileOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance - */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); - }; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode - * @enum {string} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value - */ - FileOptions.OptimizeMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; - return values; - })(); - - return FileOptions; - })(); - - protobuf.MessageOptions = (function() { - - /** - * Properties of a MessageOptions. - * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption - */ - - /** - * Constructs a new MessageOptions. - * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions - * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - */ - function MessageOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.messageSetWireFormat = false; - - /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.mapEntry = false; - - /** - * MessageOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance - */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); - }; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MessageOptions message. - * @function verify - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MessageOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return MessageOptions; - })(); - - protobuf.FieldOptions = (function() { - - /** - * Properties of a FieldOptions. - * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - */ - - /** - * Constructs a new FieldOptions. - * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions - * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - */ - function FieldOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.lazy = false; - - /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.deprecated = false; - - /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.weak = false; - - /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance - */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); - }; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ctype != null && message.hasOwnProperty("ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && message.hasOwnProperty("packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && message.hasOwnProperty("lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && message.hasOwnProperty("jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && message.hasOwnProperty("weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FieldOptions message. - * @function verify - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {string} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); - - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {string} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); - - return FieldOptions; - })(); - - protobuf.OneofOptions = (function() { - - /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption - */ - - /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - */ - function OneofOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an OneofOptions message. - * @function verify - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return OneofOptions; - })(); - - protobuf.EnumOptions = (function() { - - /** - * Properties of an EnumOptions. - * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption - */ - - /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - */ - function EnumOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allowAlias = false; - - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; - - /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance - */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); - }; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { - - /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption - */ - - /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.deprecated = false; - - /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumValueOptions message. - * @function verify - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return EnumValueOptions; - })(); - - protobuf.ServiceOptions = (function() { - - /** - * Properties of a ServiceOptions. - * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - */ - - /** - * Constructs a new ServiceOptions. - * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions - * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; - - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance - */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); - }; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return ServiceOptions; - })(); - - protobuf.MethodOptions = (function() { - - /** - * Properties of a MethodOptions. - * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - */ - - /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.deprecated = false; - - /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.http"] = null; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance - */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); - }; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - return null; - }; - - return MethodOptions; - })(); - - protobuf.UninterpretedOption = (function() { - - /** - * Properties of an UninterpretedOption. - * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue - */ - - /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - */ - function UninterpretedOption(properties) { - this.name = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.name = $util.emptyArray; - - /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.identifierValue = ""; - - /** - * UninterpretedOption positiveIntValue. - * @member {Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * UninterpretedOption negativeIntValue. - * @member {Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.doubleValue = 0; - - /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - - /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.aggregateValue = ""; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance - */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); - }; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); - return writer; - }; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UninterpretedOption message. - * @function verify - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UninterpretedOption.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); - if (error) - return "name." + error; - } - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; - return null; - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; - - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; - - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; - - return NamePart; - })(); - - return UninterpretedOption; - })(); - - protobuf.SourceCodeInfo = (function() { - - /** - * Properties of a SourceCodeInfo. - * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location - */ - - /** - * Constructs a new SourceCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo - * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - */ - function SourceCodeInfo(properties) { - this.location = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo - * @instance - */ - SourceCodeInfo.prototype.location = $util.emptyArray; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance - */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); - }; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SourceCodeInfo message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); - if (error) - return "location." + error; - } - } - return null; - }; - - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; - - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; - - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; - - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; - - return Location; - })(); - - return SourceCodeInfo; - })(); - - protobuf.GeneratedCodeInfo = (function() { - - /** - * Properties of a GeneratedCodeInfo. - * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation - */ - - /** - * Constructs a new GeneratedCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo - * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - */ - function GeneratedCodeInfo(properties) { - this.annotation = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance - */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); - }; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GeneratedCodeInfo message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GeneratedCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); - if (error) - return "annotation." + error; - } - } - return null; - }; - - GeneratedCodeInfo.Annotation = (function() { - - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - */ - - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; - - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; - - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; - - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && message.hasOwnProperty("begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - return writer; - }; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - return Annotation; - })(); - - return GeneratedCodeInfo; - })(); - - return protobuf; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; - - api.Http = (function() { - - /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - */ - - /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp - * @constructor - * @param {google.api.IHttp=} [properties] Properties to set - */ - function Http(properties) { - this.rules = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; - - /** - * Creates a new Http instance using the specified properties. - * @function create - * @memberof google.api.Http - * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance - */ - Http.create = function create(properties) { - return new Http(properties); - }; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encode - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Http message from the specified reader or buffer. - * @function decode - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - return null; - }; - - return Http; - })(); - - api.HttpRule = (function() { - - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [body] HttpRule body - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings - */ - - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additionalBindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * HttpRule get. - * @member {string} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = ""; - - /** - * HttpRule put. - * @member {string} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = ""; - - /** - * HttpRule post. - * @member {string} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = ""; - - /** - * HttpRule delete. - * @member {string} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = ""; - - /** - * HttpRule patch. - * @member {string} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = ""; - - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; - - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; - - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; - - /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.additionalBindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule - * @instance - */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new HttpRule instance using the specified properties. - * @function create - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance - */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); - }; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encode - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selector != null && message.hasOwnProperty("selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && message.hasOwnProperty("get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && message.hasOwnProperty("put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && message.hasOwnProperty("post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && message.hasOwnProperty("delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && message.hasOwnProperty("patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && message.hasOwnProperty("body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && message.hasOwnProperty("custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @function decode - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 1: - message.selector = reader.string(); - break; - case 7: - message.body = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a HttpRule message. - * @function verify - * @memberof google.api.HttpRule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HttpRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); - if (error) - return "additionalBindings." + error; - } - } - return null; - }; - - return HttpRule; - })(); - - api.CustomHttpPattern = (function() { - - /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path - */ - - /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern - * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - */ - function CustomHttpPattern(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.kind = ""; - - /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.path = ""; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @function create - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance - */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); - }; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encode - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && message.hasOwnProperty("path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - return writer; - }; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @function decode - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomHttpPattern.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - - return CustomHttpPattern; - })(); - - return api; - })(); - - return google; - })(); - - return $root; -}); diff --git a/flyteidl/gen/pb_python/__init__.py b/flyteidl/gen/pb_python/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/__init__.py b/flyteidl/gen/pb_python/flyteidl/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/__init__.py b/flyteidl/gen/pb_python/flyteidl/admin/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py deleted file mode 100644 index d95e6571ac..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ /dev/null @@ -1,109 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/agent.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\xa2\x01\n\x0eGetTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xf9\x01\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\"\xa5\x01\n\x11\x44\x65leteTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"\x14\n\x12\x44\x65leteTaskResponse\"\xcb\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12I\n\x1f\x64\x65precated_supported_task_types\x18\x02 \x03(\tB\x02\x18\x01R\x1c\x64\x65precatedSupportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12J\n\x14supported_task_types\x18\x04 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xe4\x02\n\x15GetTaskMetricsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x35\n\ttask_type\x18\x07 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xd2\x01\n\x12GetTaskLogsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x35\n\ttask_type\x18\x05 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.agent_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nAgentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _STATE._options = None - _STATE._serialized_options = b'\030\001' - _TASKEXECUTIONMETADATA_LABELSENTRY._options = None - _TASKEXECUTIONMETADATA_LABELSENTRY._serialized_options = b'8\001' - _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._options = None - _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' - _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None - _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' - _GETTASKREQUEST.fields_by_name['deprecated_task_type']._options = None - _GETTASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _RESOURCE.fields_by_name['state']._options = None - _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._options = None - _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _AGENT.fields_by_name['deprecated_supported_task_types']._options = None - _AGENT.fields_by_name['deprecated_supported_task_types']._serialized_options = b'\030\001' - _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._options = None - _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._options = None - _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=4222 - _globals['_STATE']._serialized_end=4320 - _globals['_TASKEXECUTIONMETADATA']._serialized_start=291 - _globals['_TASKEXECUTIONMETADATA']._serialized_end=1164 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=970 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=1027 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=1029 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=1091 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=1093 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=1164 - _globals['_CREATETASKREQUEST']._serialized_start=1167 - _globals['_CREATETASKREQUEST']._serialized_end=1426 - _globals['_CREATETASKRESPONSE']._serialized_start=1428 - _globals['_CREATETASKRESPONSE']._serialized_end=1485 - _globals['_CREATEREQUESTHEADER']._serialized_start=1488 - _globals['_CREATEREQUESTHEADER']._serialized_end=1751 - _globals['_EXECUTETASKSYNCREQUEST']._serialized_start=1754 - _globals['_EXECUTETASKSYNCREQUEST']._serialized_end=1902 - _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_start=1904 - _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_end=1989 - _globals['_EXECUTETASKSYNCRESPONSE']._serialized_start=1992 - _globals['_EXECUTETASKSYNCRESPONSE']._serialized_end=2152 - _globals['_GETTASKREQUEST']._serialized_start=2155 - _globals['_GETTASKREQUEST']._serialized_end=2317 - _globals['_GETTASKRESPONSE']._serialized_start=2319 - _globals['_GETTASKRESPONSE']._serialized_end=2390 - _globals['_RESOURCE']._serialized_start=2393 - _globals['_RESOURCE']._serialized_end=2642 - _globals['_DELETETASKREQUEST']._serialized_start=2645 - _globals['_DELETETASKREQUEST']._serialized_end=2810 - _globals['_DELETETASKRESPONSE']._serialized_start=2812 - _globals['_DELETETASKRESPONSE']._serialized_end=2832 - _globals['_AGENT']._serialized_start=2835 - _globals['_AGENT']._serialized_end=3038 - _globals['_TASKTYPE']._serialized_start=3040 - _globals['_TASKTYPE']._serialized_end=3096 - _globals['_GETAGENTREQUEST']._serialized_start=3098 - _globals['_GETAGENTREQUEST']._serialized_end=3135 - _globals['_GETAGENTRESPONSE']._serialized_start=3137 - _globals['_GETAGENTRESPONSE']._serialized_end=3200 - _globals['_LISTAGENTSREQUEST']._serialized_start=3202 - _globals['_LISTAGENTSREQUEST']._serialized_end=3221 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3223 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3290 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3293 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3649 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3651 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3739 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3742 - _globals['_GETTASKLOGSREQUEST']._serialized_end=3952 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=3954 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4003 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4005 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4056 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=4059 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=4220 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi deleted file mode 100644 index 680c4427e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ /dev/null @@ -1,269 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import metrics_pb2 as _metrics_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RETRYABLE_FAILURE: _ClassVar[State] - PERMANENT_FAILURE: _ClassVar[State] - PENDING: _ClassVar[State] - RUNNING: _ClassVar[State] - SUCCEEDED: _ClassVar[State] -RETRYABLE_FAILURE: State -PERMANENT_FAILURE: State -PENDING: State -RUNNING: State -SUCCEEDED: State - -class TaskExecutionMetadata(_message.Message): - __slots__ = ["task_execution_id", "namespace", "labels", "annotations", "k8s_service_account", "environment_variables", "max_attempts", "interruptible", "interruptible_failure_threshold", "overrides"] - class LabelsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class AnnotationsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class EnvironmentVariablesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - NAMESPACE_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_VARIABLES_FIELD_NUMBER: _ClassVar[int] - MAX_ATTEMPTS_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FAILURE_THRESHOLD_FIELD_NUMBER: _ClassVar[int] - OVERRIDES_FIELD_NUMBER: _ClassVar[int] - task_execution_id: _identifier_pb2.TaskExecutionIdentifier - namespace: str - labels: _containers.ScalarMap[str, str] - annotations: _containers.ScalarMap[str, str] - k8s_service_account: str - environment_variables: _containers.ScalarMap[str, str] - max_attempts: int - interruptible: bool - interruptible_failure_threshold: int - overrides: _workflow_pb2.TaskNodeOverrides - def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., namespace: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ..., k8s_service_account: _Optional[str] = ..., environment_variables: _Optional[_Mapping[str, str]] = ..., max_attempts: _Optional[int] = ..., interruptible: bool = ..., interruptible_failure_threshold: _Optional[int] = ..., overrides: _Optional[_Union[_workflow_pb2.TaskNodeOverrides, _Mapping]] = ...) -> None: ... - -class CreateTaskRequest(_message.Message): - __slots__ = ["inputs", "template", "output_prefix", "task_execution_metadata"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] - TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] - inputs: _literals_pb2.LiteralMap - template: _tasks_pb2.TaskTemplate - output_prefix: str - task_execution_metadata: TaskExecutionMetadata - def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ...) -> None: ... - -class CreateTaskResponse(_message.Message): - __slots__ = ["resource_meta"] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - resource_meta: bytes - def __init__(self, resource_meta: _Optional[bytes] = ...) -> None: ... - -class CreateRequestHeader(_message.Message): - __slots__ = ["template", "output_prefix", "task_execution_metadata", "max_dataset_size_bytes"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] - TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] - MAX_DATASET_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] - template: _tasks_pb2.TaskTemplate - output_prefix: str - task_execution_metadata: TaskExecutionMetadata - max_dataset_size_bytes: int - def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., max_dataset_size_bytes: _Optional[int] = ...) -> None: ... - -class ExecuteTaskSyncRequest(_message.Message): - __slots__ = ["header", "inputs"] - HEADER_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - header: CreateRequestHeader - inputs: _literals_pb2.LiteralMap - def __init__(self, header: _Optional[_Union[CreateRequestHeader, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class ExecuteTaskSyncResponseHeader(_message.Message): - __slots__ = ["resource"] - RESOURCE_FIELD_NUMBER: _ClassVar[int] - resource: Resource - def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... - -class ExecuteTaskSyncResponse(_message.Message): - __slots__ = ["header", "outputs"] - HEADER_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - header: ExecuteTaskSyncResponseHeader - outputs: _literals_pb2.LiteralMap - def __init__(self, header: _Optional[_Union[ExecuteTaskSyncResponseHeader, _Mapping]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class GetTaskRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str - resource_meta: bytes - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... - -class GetTaskResponse(_message.Message): - __slots__ = ["resource"] - RESOURCE_FIELD_NUMBER: _ClassVar[int] - resource: Resource - def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... - -class Resource(_message.Message): - __slots__ = ["state", "outputs", "message", "log_links", "phase"] - STATE_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - LOG_LINKS_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - state: State - outputs: _literals_pb2.LiteralMap - message: str - log_links: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - phase: _execution_pb2.TaskExecution.Phase - def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., message: _Optional[str] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ...) -> None: ... - -class DeleteTaskRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str - resource_meta: bytes - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... - -class DeleteTaskResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Agent(_message.Message): - __slots__ = ["name", "deprecated_supported_task_types", "is_sync", "supported_task_types"] - NAME_FIELD_NUMBER: _ClassVar[int] - DEPRECATED_SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] - IS_SYNC_FIELD_NUMBER: _ClassVar[int] - SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] - name: str - deprecated_supported_task_types: _containers.RepeatedScalarFieldContainer[str] - is_sync: bool - supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] - def __init__(self, name: _Optional[str] = ..., deprecated_supported_task_types: _Optional[_Iterable[str]] = ..., is_sync: bool = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... - -class TaskType(_message.Message): - __slots__ = ["name", "version"] - NAME_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - name: str - version: int - def __init__(self, name: _Optional[str] = ..., version: _Optional[int] = ...) -> None: ... - -class GetAgentRequest(_message.Message): - __slots__ = ["name"] - NAME_FIELD_NUMBER: _ClassVar[int] - name: str - def __init__(self, name: _Optional[str] = ...) -> None: ... - -class GetAgentResponse(_message.Message): - __slots__ = ["agent"] - AGENT_FIELD_NUMBER: _ClassVar[int] - agent: Agent - def __init__(self, agent: _Optional[_Union[Agent, _Mapping]] = ...) -> None: ... - -class ListAgentsRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ListAgentsResponse(_message.Message): - __slots__ = ["agents"] - AGENTS_FIELD_NUMBER: _ClassVar[int] - agents: _containers.RepeatedCompositeFieldContainer[Agent] - def __init__(self, agents: _Optional[_Iterable[_Union[Agent, _Mapping]]] = ...) -> None: ... - -class GetTaskMetricsRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "queries", "start_time", "end_time", "step", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - QUERIES_FIELD_NUMBER: _ClassVar[int] - START_TIME_FIELD_NUMBER: _ClassVar[int] - END_TIME_FIELD_NUMBER: _ClassVar[int] - STEP_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str - resource_meta: bytes - queries: _containers.RepeatedScalarFieldContainer[str] - start_time: _timestamp_pb2.Timestamp - end_time: _timestamp_pb2.Timestamp - step: _duration_pb2.Duration - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... - -class GetTaskMetricsResponse(_message.Message): - __slots__ = ["results"] - RESULTS_FIELD_NUMBER: _ClassVar[int] - results: _containers.RepeatedCompositeFieldContainer[_metrics_pb2.ExecutionMetricResult] - def __init__(self, results: _Optional[_Iterable[_Union[_metrics_pb2.ExecutionMetricResult, _Mapping]]] = ...) -> None: ... - -class GetTaskLogsRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "lines", "token", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - LINES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str - resource_meta: bytes - lines: int - token: str - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... - -class GetTaskLogsResponseHeader(_message.Message): - __slots__ = ["token"] - TOKEN_FIELD_NUMBER: _ClassVar[int] - token: str - def __init__(self, token: _Optional[str] = ...) -> None: ... - -class GetTaskLogsResponseBody(_message.Message): - __slots__ = ["results"] - RESULTS_FIELD_NUMBER: _ClassVar[int] - results: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, results: _Optional[_Iterable[str]] = ...) -> None: ... - -class GetTaskLogsResponse(_message.Message): - __slots__ = ["header", "body"] - HEADER_FIELD_NUMBER: _ClassVar[int] - BODY_FIELD_NUMBER: _ClassVar[int] - header: GetTaskLogsResponseHeader - body: GetTaskLogsResponseBody - def __init__(self, header: _Optional[_Union[GetTaskLogsResponseHeader, _Mapping]] = ..., body: _Optional[_Union[GetTaskLogsResponseBody, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py deleted file mode 100644 index ab2330e69e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/cluster_assignment.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/cluster_assignment.proto\x12\x0e\x66lyteidl.admin\"K\n\x11\x43lusterAssignment\x12*\n\x11\x63luster_pool_name\x18\x03 \x01(\tR\x0f\x63lusterPoolNameJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16\x43lusterAssignmentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.cluster_assignment_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ClusterAssignmentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_CLUSTERASSIGNMENT']._serialized_start=59 - _globals['_CLUSTERASSIGNMENT']._serialized_end=134 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi deleted file mode 100644 index d18fe1bf3d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class ClusterAssignment(_message.Message): - __slots__ = ["cluster_pool_name"] - CLUSTER_POOL_NAME_FIELD_NUMBER: _ClassVar[int] - cluster_pool_name: str - def __init__(self, cluster_pool_name: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py deleted file mode 100644 index c12fa17b0f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/common.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/common.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"o\n\x15NamedEntityIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"o\n\x13NamedEntityMetadata\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32 .flyteidl.admin.NamedEntityStateR\x05state\"\xc7\x01\n\x0bNamedEntity\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x82\x01\n\x04Sort\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\tdirection\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.Sort.DirectionR\tdirection\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\xdb\x01\n NamedEntityIdentifierListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x06 \x01(\tR\x07\x66ilters\x12\x10\n\x03org\x18\x07 \x01(\tR\x03org\"\x93\x02\n\x16NamedEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x04 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x07 \x01(\tR\x07\x66ilters\x12\x10\n\x03org\x18\x08 \x01(\tR\x03org\"t\n\x19NamedEntityIdentifierList\x12\x41\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"`\n\x0fNamedEntityList\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1b.flyteidl.admin.NamedEntityR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x90\x01\n\x15NamedEntityGetRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xd4\x01\n\x18NamedEntityUpdateRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x1b\n\x19NamedEntityUpdateResponse\"=\n\x10ObjectGetRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\xc1\x01\n\x13ResourceListRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\">\n\x11\x45mailNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"B\n\x15PagerDutyNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\">\n\x11SlackNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"\x94\x02\n\x0cNotification\x12>\n\x06phases\x18\x01 \x03(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x06phases\x12\x39\n\x05\x65mail\x18\x02 \x01(\x0b\x32!.flyteidl.admin.EmailNotificationH\x00R\x05\x65mail\x12\x46\n\npager_duty\x18\x03 \x01(\x0b\x32%.flyteidl.admin.PagerDutyNotificationH\x00R\tpagerDuty\x12\x39\n\x05slack\x18\x04 \x01(\x0b\x32!.flyteidl.admin.SlackNotificationH\x00R\x05slackB\x06\n\x04type\"5\n\x07UrlBlob\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\x12\x14\n\x05\x62ytes\x18\x02 \x01(\x03R\x05\x62ytes:\x02\x18\x01\"\x7f\n\x06Labels\x12:\n\x06values\x18\x01 \x03(\x0b\x32\".flyteidl.admin.Labels.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x89\x01\n\x0b\x41nnotations\x12?\n\x06values\x18\x01 \x03(\x0b\x32\'.flyteidl.admin.Annotations.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\";\n\x04\x45nvs\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x06values\"z\n\x08\x41uthRole\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"K\n\x13RawOutputDataConfig\x12\x34\n\x16output_location_prefix\x18\x01 \x01(\tR\x14outputLocationPrefix\"Q\n\tFlyteURLs\x12\x16\n\x06inputs\x18\x01 \x01(\tR\x06inputs\x12\x18\n\x07outputs\x18\x02 \x01(\tR\x07outputs\x12\x12\n\x04\x64\x65\x63k\x18\x03 \x01(\tR\x04\x64\x65\x63k*\\\n\x10NamedEntityState\x12\x17\n\x13NAMED_ENTITY_ACTIVE\x10\x00\x12\x19\n\x15NAMED_ENTITY_ARCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\x42\xb7\x01\n\x12\x63om.flyteidl.adminB\x0b\x43ommonProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.common_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013CommonProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _URLBLOB._options = None - _URLBLOB._serialized_options = b'\030\001' - _LABELS_VALUESENTRY._options = None - _LABELS_VALUESENTRY._serialized_options = b'8\001' - _ANNOTATIONS_VALUESENTRY._options = None - _ANNOTATIONS_VALUESENTRY._serialized_options = b'8\001' - _AUTHROLE._options = None - _AUTHROLE._serialized_options = b'\030\001' - _globals['_NAMEDENTITYSTATE']._serialized_start=3244 - _globals['_NAMEDENTITYSTATE']._serialized_end=3336 - _globals['_NAMEDENTITYIDENTIFIER']._serialized_start=173 - _globals['_NAMEDENTITYIDENTIFIER']._serialized_end=284 - _globals['_NAMEDENTITYMETADATA']._serialized_start=286 - _globals['_NAMEDENTITYMETADATA']._serialized_end=397 - _globals['_NAMEDENTITY']._serialized_start=400 - _globals['_NAMEDENTITY']._serialized_end=599 - _globals['_SORT']._serialized_start=602 - _globals['_SORT']._serialized_end=732 - _globals['_SORT_DIRECTION']._serialized_start=690 - _globals['_SORT_DIRECTION']._serialized_end=732 - _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_start=735 - _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_end=954 - _globals['_NAMEDENTITYLISTREQUEST']._serialized_start=957 - _globals['_NAMEDENTITYLISTREQUEST']._serialized_end=1232 - _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_start=1234 - _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_end=1350 - _globals['_NAMEDENTITYLIST']._serialized_start=1352 - _globals['_NAMEDENTITYLIST']._serialized_end=1448 - _globals['_NAMEDENTITYGETREQUEST']._serialized_start=1451 - _globals['_NAMEDENTITYGETREQUEST']._serialized_end=1595 - _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_start=1598 - _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_end=1810 - _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_start=1812 - _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_end=1839 - _globals['_OBJECTGETREQUEST']._serialized_start=1841 - _globals['_OBJECTGETREQUEST']._serialized_end=1902 - _globals['_RESOURCELISTREQUEST']._serialized_start=1905 - _globals['_RESOURCELISTREQUEST']._serialized_end=2098 - _globals['_EMAILNOTIFICATION']._serialized_start=2100 - _globals['_EMAILNOTIFICATION']._serialized_end=2162 - _globals['_PAGERDUTYNOTIFICATION']._serialized_start=2164 - _globals['_PAGERDUTYNOTIFICATION']._serialized_end=2230 - _globals['_SLACKNOTIFICATION']._serialized_start=2232 - _globals['_SLACKNOTIFICATION']._serialized_end=2294 - _globals['_NOTIFICATION']._serialized_start=2297 - _globals['_NOTIFICATION']._serialized_end=2573 - _globals['_URLBLOB']._serialized_start=2575 - _globals['_URLBLOB']._serialized_end=2628 - _globals['_LABELS']._serialized_start=2630 - _globals['_LABELS']._serialized_end=2757 - _globals['_LABELS_VALUESENTRY']._serialized_start=2700 - _globals['_LABELS_VALUESENTRY']._serialized_end=2757 - _globals['_ANNOTATIONS']._serialized_start=2760 - _globals['_ANNOTATIONS']._serialized_end=2897 - _globals['_ANNOTATIONS_VALUESENTRY']._serialized_start=2700 - _globals['_ANNOTATIONS_VALUESENTRY']._serialized_end=2757 - _globals['_ENVS']._serialized_start=2899 - _globals['_ENVS']._serialized_end=2958 - _globals['_AUTHROLE']._serialized_start=2960 - _globals['_AUTHROLE']._serialized_end=3082 - _globals['_RAWOUTPUTDATACONFIG']._serialized_start=3084 - _globals['_RAWOUTPUTDATACONFIG']._serialized_end=3159 - _globals['_FLYTEURLS']._serialized_start=3161 - _globals['_FLYTEURLS']._serialized_end=3242 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi deleted file mode 100644 index 420818fb95..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi +++ /dev/null @@ -1,254 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class NamedEntityState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - NAMED_ENTITY_ACTIVE: _ClassVar[NamedEntityState] - NAMED_ENTITY_ARCHIVED: _ClassVar[NamedEntityState] - SYSTEM_GENERATED: _ClassVar[NamedEntityState] -NAMED_ENTITY_ACTIVE: NamedEntityState -NAMED_ENTITY_ARCHIVED: NamedEntityState -SYSTEM_GENERATED: NamedEntityState - -class NamedEntityIdentifier(_message.Message): - __slots__ = ["project", "domain", "name", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class NamedEntityMetadata(_message.Message): - __slots__ = ["description", "state"] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - description: str - state: NamedEntityState - def __init__(self, description: _Optional[str] = ..., state: _Optional[_Union[NamedEntityState, str]] = ...) -> None: ... - -class NamedEntity(_message.Message): - __slots__ = ["resource_type", "id", "metadata"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: NamedEntityIdentifier - metadata: NamedEntityMetadata - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... - -class Sort(_message.Message): - __slots__ = ["key", "direction"] - class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DESCENDING: _ClassVar[Sort.Direction] - ASCENDING: _ClassVar[Sort.Direction] - DESCENDING: Sort.Direction - ASCENDING: Sort.Direction - KEY_FIELD_NUMBER: _ClassVar[int] - DIRECTION_FIELD_NUMBER: _ClassVar[int] - key: str - direction: Sort.Direction - def __init__(self, key: _Optional[str] = ..., direction: _Optional[_Union[Sort.Direction, str]] = ...) -> None: ... - -class NamedEntityIdentifierListRequest(_message.Message): - __slots__ = ["project", "domain", "limit", "token", "sort_by", "filters", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - limit: int - token: str - sort_by: Sort - filters: str - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class NamedEntityListRequest(_message.Message): - __slots__ = ["resource_type", "project", "domain", "limit", "token", "sort_by", "filters", "org"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - project: str - domain: str - limit: int - token: str - sort_by: Sort - filters: str - org: str - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class NamedEntityIdentifierList(_message.Message): - __slots__ = ["entities", "token"] - ENTITIES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - entities: _containers.RepeatedCompositeFieldContainer[NamedEntityIdentifier] - token: str - def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntityIdentifier, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class NamedEntityList(_message.Message): - __slots__ = ["entities", "token"] - ENTITIES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - entities: _containers.RepeatedCompositeFieldContainer[NamedEntity] - token: str - def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class NamedEntityGetRequest(_message.Message): - __slots__ = ["resource_type", "id"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: NamedEntityIdentifier - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ...) -> None: ... - -class NamedEntityUpdateRequest(_message.Message): - __slots__ = ["resource_type", "id", "metadata"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: NamedEntityIdentifier - metadata: NamedEntityMetadata - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... - -class NamedEntityUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ObjectGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class ResourceListRequest(_message.Message): - __slots__ = ["id", "limit", "token", "filters", "sort_by"] - ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - id: NamedEntityIdentifier - limit: int - token: str - filters: str - sort_by: Sort - def __init__(self, id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ...) -> None: ... - -class EmailNotification(_message.Message): - __slots__ = ["recipients_email"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... - -class PagerDutyNotification(_message.Message): - __slots__ = ["recipients_email"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... - -class SlackNotification(_message.Message): - __slots__ = ["recipients_email"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... - -class Notification(_message.Message): - __slots__ = ["phases", "email", "pager_duty", "slack"] - PHASES_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - PAGER_DUTY_FIELD_NUMBER: _ClassVar[int] - SLACK_FIELD_NUMBER: _ClassVar[int] - phases: _containers.RepeatedScalarFieldContainer[_execution_pb2.WorkflowExecution.Phase] - email: EmailNotification - pager_duty: PagerDutyNotification - slack: SlackNotification - def __init__(self, phases: _Optional[_Iterable[_Union[_execution_pb2.WorkflowExecution.Phase, str]]] = ..., email: _Optional[_Union[EmailNotification, _Mapping]] = ..., pager_duty: _Optional[_Union[PagerDutyNotification, _Mapping]] = ..., slack: _Optional[_Union[SlackNotification, _Mapping]] = ...) -> None: ... - -class UrlBlob(_message.Message): - __slots__ = ["url", "bytes"] - URL_FIELD_NUMBER: _ClassVar[int] - BYTES_FIELD_NUMBER: _ClassVar[int] - url: str - bytes: int - def __init__(self, url: _Optional[str] = ..., bytes: _Optional[int] = ...) -> None: ... - -class Labels(_message.Message): - __slots__ = ["values"] - class ValuesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.ScalarMap[str, str] - def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class Annotations(_message.Message): - __slots__ = ["values"] - class ValuesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.ScalarMap[str, str] - def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class Envs(_message.Message): - __slots__ = ["values"] - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] - def __init__(self, values: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ...) -> None: ... - -class AuthRole(_message.Message): - __slots__ = ["assumable_iam_role", "kubernetes_service_account"] - ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] - KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - assumable_iam_role: str - kubernetes_service_account: str - def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... - -class RawOutputDataConfig(_message.Message): - __slots__ = ["output_location_prefix"] - OUTPUT_LOCATION_PREFIX_FIELD_NUMBER: _ClassVar[int] - output_location_prefix: str - def __init__(self, output_location_prefix: _Optional[str] = ...) -> None: ... - -class FlyteURLs(_message.Message): - __slots__ = ["inputs", "outputs", "deck"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - DECK_FIELD_NUMBER: _ClassVar[int] - inputs: str - outputs: str - deck: str - def __init__(self, inputs: _Optional[str] = ..., outputs: _Optional[str] = ..., deck: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py deleted file mode 100644 index af96988c48..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/description_entity.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/description_entity.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/admin/common.proto\"\x84\x02\n\x11\x44\x65scriptionEntity\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12+\n\x11short_description\x18\x02 \x01(\tR\x10shortDescription\x12\x46\n\x10long_description\x18\x03 \x01(\x0b\x32\x1b.flyteidl.admin.DescriptionR\x0flongDescription\x12;\n\x0bsource_code\x18\x04 \x01(\x0b\x32\x1a.flyteidl.admin.SourceCodeR\nsourceCode\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\"\x9c\x01\n\x0b\x44\x65scription\x12\x16\n\x05value\x18\x01 \x01(\tH\x00R\x05value\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uri\x12\x39\n\x06\x66ormat\x18\x03 \x01(\x0e\x32!.flyteidl.admin.DescriptionFormatR\x06\x66ormat\x12\x1b\n\ticon_link\x18\x04 \x01(\tR\x08iconLinkB\t\n\x07\x63ontent\" \n\nSourceCode\x12\x12\n\x04link\x18\x01 \x01(\tR\x04link\"\x82\x01\n\x15\x44\x65scriptionEntityList\x12S\n\x13\x64\x65scriptionEntities\x18\x01 \x03(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x13\x64\x65scriptionEntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x8c\x02\n\x1c\x44\x65scriptionEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x05 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy*\x8d\x01\n\x11\x44\x65scriptionFormat\x12\x1e\n\x1a\x44\x45SCRIPTION_FORMAT_UNKNOWN\x10\x00\x12\x1f\n\x1b\x44\x45SCRIPTION_FORMAT_MARKDOWN\x10\x01\x12\x1b\n\x17\x44\x45SCRIPTION_FORMAT_HTML\x10\x02\x12\x1a\n\x16\x44\x45SCRIPTION_FORMAT_RST\x10\x03\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16\x44\x65scriptionEntityProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.description_entity_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026DescriptionEntityProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_DESCRIPTIONFORMAT']._serialized_start=981 - _globals['_DESCRIPTIONFORMAT']._serialized_end=1122 - _globals['_DESCRIPTIONENTITY']._serialized_start=121 - _globals['_DESCRIPTIONENTITY']._serialized_end=381 - _globals['_DESCRIPTION']._serialized_start=384 - _globals['_DESCRIPTION']._serialized_end=540 - _globals['_SOURCECODE']._serialized_start=542 - _globals['_SOURCECODE']._serialized_end=574 - _globals['_DESCRIPTIONENTITYLIST']._serialized_start=577 - _globals['_DESCRIPTIONENTITYLIST']._serialized_end=707 - _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_start=710 - _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_end=978 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi deleted file mode 100644 index 200778457d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi +++ /dev/null @@ -1,76 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DescriptionFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DESCRIPTION_FORMAT_UNKNOWN: _ClassVar[DescriptionFormat] - DESCRIPTION_FORMAT_MARKDOWN: _ClassVar[DescriptionFormat] - DESCRIPTION_FORMAT_HTML: _ClassVar[DescriptionFormat] - DESCRIPTION_FORMAT_RST: _ClassVar[DescriptionFormat] -DESCRIPTION_FORMAT_UNKNOWN: DescriptionFormat -DESCRIPTION_FORMAT_MARKDOWN: DescriptionFormat -DESCRIPTION_FORMAT_HTML: DescriptionFormat -DESCRIPTION_FORMAT_RST: DescriptionFormat - -class DescriptionEntity(_message.Message): - __slots__ = ["id", "short_description", "long_description", "source_code", "tags"] - ID_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - LONG_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - SOURCE_CODE_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - short_description: str - long_description: Description - source_code: SourceCode - tags: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., short_description: _Optional[str] = ..., long_description: _Optional[_Union[Description, _Mapping]] = ..., source_code: _Optional[_Union[SourceCode, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... - -class Description(_message.Message): - __slots__ = ["value", "uri", "format", "icon_link"] - VALUE_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - ICON_LINK_FIELD_NUMBER: _ClassVar[int] - value: str - uri: str - format: DescriptionFormat - icon_link: str - def __init__(self, value: _Optional[str] = ..., uri: _Optional[str] = ..., format: _Optional[_Union[DescriptionFormat, str]] = ..., icon_link: _Optional[str] = ...) -> None: ... - -class SourceCode(_message.Message): - __slots__ = ["link"] - LINK_FIELD_NUMBER: _ClassVar[int] - link: str - def __init__(self, link: _Optional[str] = ...) -> None: ... - -class DescriptionEntityList(_message.Message): - __slots__ = ["descriptionEntities", "token"] - DESCRIPTIONENTITIES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - descriptionEntities: _containers.RepeatedCompositeFieldContainer[DescriptionEntity] - token: str - def __init__(self, descriptionEntities: _Optional[_Iterable[_Union[DescriptionEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class DescriptionEntityListRequest(_message.Message): - __slots__ = ["resource_type", "id", "limit", "token", "filters", "sort_by"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: _common_pb2.NamedEntityIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py deleted file mode 100644 index 7f2ba1e6ba..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/event.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/event.proto\x12\x0e\x66lyteidl.admin\x1a\x1a\x66lyteidl/event/event.proto\"G\n EventErrorAlreadyInTerminalState\x12#\n\rcurrent_phase\x18\x01 \x01(\tR\x0c\x63urrentPhase\"9\n\x1d\x45ventErrorIncompatibleCluster\x12\x18\n\x07\x63luster\x18\x01 \x01(\tR\x07\x63luster\"\xf1\x01\n\x12\x45ventFailureReason\x12m\n\x19\x61lready_in_terminal_state\x18\x01 \x01(\x0b\x32\x30.flyteidl.admin.EventErrorAlreadyInTerminalStateH\x00R\x16\x61lreadyInTerminalState\x12\x62\n\x14incompatible_cluster\x18\x02 \x01(\x0b\x32-.flyteidl.admin.EventErrorIncompatibleClusterH\x00R\x13incompatibleClusterB\x08\n\x06reason\"|\n\x1dWorkflowExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12<\n\x05\x65vent\x18\x02 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x05\x65vent\" \n\x1eWorkflowExecutionEventResponse\"t\n\x19NodeExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x05\x65vent\"\x1c\n\x1aNodeExecutionEventResponse\"t\n\x19TaskExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x05\x65vent\"\x1c\n\x1aTaskExecutionEventResponseB\xb6\x01\n\x12\x63om.flyteidl.adminB\nEventProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.event_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nEventProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_start=74 - _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_end=145 - _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_start=147 - _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_end=204 - _globals['_EVENTFAILUREREASON']._serialized_start=207 - _globals['_EVENTFAILUREREASON']._serialized_end=448 - _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_start=450 - _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_end=574 - _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_start=576 - _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_end=608 - _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_start=610 - _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_end=726 - _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_start=728 - _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_end=756 - _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_start=758 - _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_end=874 - _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_start=876 - _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_end=904 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi deleted file mode 100644 index 47eac9aa7f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from flyteidl.event import event_pb2 as _event_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class EventErrorAlreadyInTerminalState(_message.Message): - __slots__ = ["current_phase"] - CURRENT_PHASE_FIELD_NUMBER: _ClassVar[int] - current_phase: str - def __init__(self, current_phase: _Optional[str] = ...) -> None: ... - -class EventErrorIncompatibleCluster(_message.Message): - __slots__ = ["cluster"] - CLUSTER_FIELD_NUMBER: _ClassVar[int] - cluster: str - def __init__(self, cluster: _Optional[str] = ...) -> None: ... - -class EventFailureReason(_message.Message): - __slots__ = ["already_in_terminal_state", "incompatible_cluster"] - ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER: _ClassVar[int] - INCOMPATIBLE_CLUSTER_FIELD_NUMBER: _ClassVar[int] - already_in_terminal_state: EventErrorAlreadyInTerminalState - incompatible_cluster: EventErrorIncompatibleCluster - def __init__(self, already_in_terminal_state: _Optional[_Union[EventErrorAlreadyInTerminalState, _Mapping]] = ..., incompatible_cluster: _Optional[_Union[EventErrorIncompatibleCluster, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionEventRequest(_message.Message): - __slots__ = ["request_id", "event"] - REQUEST_ID_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - request_id: str - event: _event_pb2.WorkflowExecutionEvent - def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionEventResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class NodeExecutionEventRequest(_message.Message): - __slots__ = ["request_id", "event"] - REQUEST_ID_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - request_id: str - event: _event_pb2.NodeExecutionEvent - def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ...) -> None: ... - -class NodeExecutionEventResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class TaskExecutionEventRequest(_message.Message): - __slots__ = ["request_id", "event"] - REQUEST_ID_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - request_id: str - event: _event_pb2.TaskExecutionEvent - def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... - -class TaskExecutionEventResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py deleted file mode 100644 index 918db78e56..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/admin/execution.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd6\x01\n\x16\x45xecutionCreateRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x31\n\x04spec\x18\x04 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12\x31\n\x06inputs\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"\x99\x01\n\x18\x45xecutionRelaunchRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\'\n\x0foverwrite_cache\x18\x04 \x01(\x08R\x0eoverwriteCacheJ\x04\x08\x02\x10\x03\"\xa8\x01\n\x17\x45xecutionRecoverRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\"U\n\x17\x45xecutionCreateResponse\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"Y\n\x1bWorkflowExecutionGetRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\xb6\x01\n\tExecution\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x31\n\x04spec\x18\x02 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12:\n\x07\x63losure\x18\x03 \x01(\x0b\x32 .flyteidl.admin.ExecutionClosureR\x07\x63losure\"`\n\rExecutionList\x12\x39\n\nexecutions\x18\x01 \x03(\x0b\x32\x19.flyteidl.admin.ExecutionR\nexecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"e\n\x0eLiteralMapBlob\x12\x37\n\x06values\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\x06values\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uriB\x06\n\x04\x64\x61ta\"C\n\rAbortMetadata\x12\x14\n\x05\x63\x61use\x18\x01 \x01(\tR\x05\x63\x61use\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\"\x98\x07\n\x10\x45xecutionClosure\x12>\n\x07outputs\x18\x01 \x01(\x0b\x32\x1e.flyteidl.admin.LiteralMapBlobB\x02\x18\x01H\x00R\x07outputs\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12%\n\x0b\x61\x62ort_cause\x18\n \x01(\tB\x02\x18\x01H\x00R\nabortCause\x12\x46\n\x0e\x61\x62ort_metadata\x18\x0c \x01(\x0b\x32\x1d.flyteidl.admin.AbortMetadataH\x00R\rabortMetadata\x12@\n\x0boutput_data\x18\r \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x46\n\x0f\x63omputed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x0e\x63omputedInputs\x12<\n\x05phase\x18\x04 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x42\n\rnotifications\x18\t \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12:\n\x0bworkflow_id\x18\x0b \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12]\n\x14state_change_details\x18\x0e \x01(\x0b\x32+.flyteidl.admin.ExecutionStateChangeDetailsR\x12stateChangeDetailsB\x0f\n\routput_result\"[\n\x0eSystemMetadata\x12+\n\x11\x65xecution_cluster\x18\x01 \x01(\tR\x10\x65xecutionCluster\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\xf8\x04\n\x11\x45xecutionMetadata\x12\x43\n\x04mode\x18\x01 \x01(\x0e\x32/.flyteidl.admin.ExecutionMetadata.ExecutionModeR\x04mode\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\x12\x18\n\x07nesting\x18\x03 \x01(\rR\x07nesting\x12=\n\x0cscheduled_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12Z\n\x15parent_node_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x13parentNodeExecution\x12[\n\x13reference_execution\x18\x10 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12G\n\x0fsystem_metadata\x18\x11 \x01(\x0b\x32\x1e.flyteidl.admin.SystemMetadataR\x0esystemMetadata\x12<\n\x0c\x61rtifact_ids\x18\x12 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\"g\n\rExecutionMode\x12\n\n\x06MANUAL\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0c\n\x08RELAUNCH\x10\x03\x12\x12\n\x0e\x43HILD_WORKFLOW\x10\x04\x12\r\n\tRECOVERED\x10\x05\"V\n\x10NotificationList\x12\x42\n\rnotifications\x18\x01 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\"\x90\x08\n\rExecutionSpec\x12:\n\x0blaunch_plan\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nlaunchPlan\x12\x35\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x06inputs\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\x12H\n\rnotifications\x18\x05 \x01(\x0b\x32 .flyteidl.admin.NotificationListH\x00R\rnotifications\x12!\n\x0b\x64isable_all\x18\x06 \x01(\x08H\x00R\ndisableAll\x12.\n\x06labels\x18\x07 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x08 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12\x39\n\tauth_role\x18\x10 \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12M\n\x12quality_of_service\x18\x11 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12X\n\x16raw_output_data_config\x18\x13 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12P\n\x12\x63luster_assignment\x18\x14 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentR\x11\x63lusterAssignment\x12@\n\rinterruptible\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x16 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x17 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\x12\x12\n\x04tags\x18\x18 \x03(\tR\x04tagsB\x18\n\x16notification_overridesJ\x04\x08\x04\x10\x05\"m\n\x19\x45xecutionTerminateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x63\x61use\x18\x02 \x01(\tR\x05\x63\x61use\"\x1c\n\x1a\x45xecutionTerminateResponse\"]\n\x1fWorkflowExecutionGetDataRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\x88\x02\n WorkflowExecutionGetDataResponse\x12\x35\n\x07outputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\"\x8a\x01\n\x16\x45xecutionUpdateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\"\xae\x01\n\x1b\x45xecutionStateChangeDetails\x12\x34\n\x05state\x18\x01 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\"\x19\n\x17\x45xecutionUpdateResponse\"v\n\"WorkflowExecutionGetMetricsRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x05R\x05\x64\x65pth\"N\n#WorkflowExecutionGetMetricsResponse\x12\'\n\x04span\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.SpanR\x04span*>\n\x0e\x45xecutionState\x12\x14\n\x10\x45XECUTION_ACTIVE\x10\x00\x12\x16\n\x12\x45XECUTION_ARCHIVED\x10\x01\x42\xba\x01\n\x12\x63om.flyteidl.adminB\x0e\x45xecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\016ExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _LITERALMAPBLOB.fields_by_name['values']._options = None - _LITERALMAPBLOB.fields_by_name['values']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['outputs']._options = None - _EXECUTIONCLOSURE.fields_by_name['outputs']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['abort_cause']._options = None - _EXECUTIONCLOSURE.fields_by_name['abort_cause']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['output_data']._options = None - _EXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._options = None - _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._serialized_options = b'\030\001' - _EXECUTIONSPEC.fields_by_name['inputs']._options = None - _EXECUTIONSPEC.fields_by_name['inputs']._serialized_options = b'\030\001' - _EXECUTIONSPEC.fields_by_name['auth_role']._options = None - _EXECUTIONSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' - _globals['_EXECUTIONSTATE']._serialized_start=5409 - _globals['_EXECUTIONSTATE']._serialized_end=5471 - _globals['_EXECUTIONCREATEREQUEST']._serialized_start=403 - _globals['_EXECUTIONCREATEREQUEST']._serialized_end=617 - _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_start=620 - _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_end=773 - _globals['_EXECUTIONRECOVERREQUEST']._serialized_start=776 - _globals['_EXECUTIONRECOVERREQUEST']._serialized_end=944 - _globals['_EXECUTIONCREATERESPONSE']._serialized_start=946 - _globals['_EXECUTIONCREATERESPONSE']._serialized_end=1031 - _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_start=1033 - _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_end=1122 - _globals['_EXECUTION']._serialized_start=1125 - _globals['_EXECUTION']._serialized_end=1307 - _globals['_EXECUTIONLIST']._serialized_start=1309 - _globals['_EXECUTIONLIST']._serialized_end=1405 - _globals['_LITERALMAPBLOB']._serialized_start=1407 - _globals['_LITERALMAPBLOB']._serialized_end=1508 - _globals['_ABORTMETADATA']._serialized_start=1510 - _globals['_ABORTMETADATA']._serialized_end=1577 - _globals['_EXECUTIONCLOSURE']._serialized_start=1580 - _globals['_EXECUTIONCLOSURE']._serialized_end=2500 - _globals['_SYSTEMMETADATA']._serialized_start=2502 - _globals['_SYSTEMMETADATA']._serialized_end=2593 - _globals['_EXECUTIONMETADATA']._serialized_start=2596 - _globals['_EXECUTIONMETADATA']._serialized_end=3228 - _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_start=3125 - _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_end=3228 - _globals['_NOTIFICATIONLIST']._serialized_start=3230 - _globals['_NOTIFICATIONLIST']._serialized_end=3316 - _globals['_EXECUTIONSPEC']._serialized_start=3319 - _globals['_EXECUTIONSPEC']._serialized_end=4359 - _globals['_EXECUTIONTERMINATEREQUEST']._serialized_start=4361 - _globals['_EXECUTIONTERMINATEREQUEST']._serialized_end=4470 - _globals['_EXECUTIONTERMINATERESPONSE']._serialized_start=4472 - _globals['_EXECUTIONTERMINATERESPONSE']._serialized_end=4500 - _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_start=4502 - _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_end=4595 - _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_start=4598 - _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_end=4862 - _globals['_EXECUTIONUPDATEREQUEST']._serialized_start=4865 - _globals['_EXECUTIONUPDATEREQUEST']._serialized_end=5003 - _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_start=5006 - _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_end=5180 - _globals['_EXECUTIONUPDATERESPONSE']._serialized_start=5182 - _globals['_EXECUTIONUPDATERESPONSE']._serialized_end=5207 - _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_start=5209 - _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_end=5327 - _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_start=5329 - _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_end=5407 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi deleted file mode 100644 index bee241d74d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi +++ /dev/null @@ -1,291 +0,0 @@ -from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import metrics_pb2 as _metrics_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import wrappers_pb2 as _wrappers_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ExecutionState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EXECUTION_ACTIVE: _ClassVar[ExecutionState] - EXECUTION_ARCHIVED: _ClassVar[ExecutionState] -EXECUTION_ACTIVE: ExecutionState -EXECUTION_ARCHIVED: ExecutionState - -class ExecutionCreateRequest(_message.Message): - __slots__ = ["project", "domain", "name", "spec", "inputs", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - spec: ExecutionSpec - inputs: _literals_pb2.LiteralMap - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... - -class ExecutionRelaunchRequest(_message.Message): - __slots__ = ["id", "name", "overwrite_cache"] - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - name: str - overwrite_cache: bool - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., overwrite_cache: bool = ...) -> None: ... - -class ExecutionRecoverRequest(_message.Message): - __slots__ = ["id", "name", "metadata"] - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - name: str - metadata: ExecutionMetadata - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ...) -> None: ... - -class ExecutionCreateResponse(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class Execution(_message.Message): - __slots__ = ["id", "spec", "closure"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - spec: ExecutionSpec - closure: ExecutionClosure - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., closure: _Optional[_Union[ExecutionClosure, _Mapping]] = ...) -> None: ... - -class ExecutionList(_message.Message): - __slots__ = ["executions", "token"] - EXECUTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - executions: _containers.RepeatedCompositeFieldContainer[Execution] - token: str - def __init__(self, executions: _Optional[_Iterable[_Union[Execution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class LiteralMapBlob(_message.Message): - __slots__ = ["values", "uri"] - VALUES_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - values: _literals_pb2.LiteralMap - uri: str - def __init__(self, values: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... - -class AbortMetadata(_message.Message): - __slots__ = ["cause", "principal"] - CAUSE_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - cause: str - principal: str - def __init__(self, cause: _Optional[str] = ..., principal: _Optional[str] = ...) -> None: ... - -class ExecutionClosure(_message.Message): - __slots__ = ["outputs", "error", "abort_cause", "abort_metadata", "output_data", "computed_inputs", "phase", "started_at", "duration", "created_at", "updated_at", "notifications", "workflow_id", "state_change_details"] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - ABORT_CAUSE_FIELD_NUMBER: _ClassVar[int] - ABORT_METADATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - COMPUTED_INPUTS_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - STARTED_AT_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - STATE_CHANGE_DETAILS_FIELD_NUMBER: _ClassVar[int] - outputs: LiteralMapBlob - error: _execution_pb2.ExecutionError - abort_cause: str - abort_metadata: AbortMetadata - output_data: _literals_pb2.LiteralMap - computed_inputs: _literals_pb2.LiteralMap - phase: _execution_pb2.WorkflowExecution.Phase - started_at: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] - workflow_id: _identifier_pb2.Identifier - state_change_details: ExecutionStateChangeDetails - def __init__(self, outputs: _Optional[_Union[LiteralMapBlob, _Mapping]] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., abort_cause: _Optional[str] = ..., abort_metadata: _Optional[_Union[AbortMetadata, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., computed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state_change_details: _Optional[_Union[ExecutionStateChangeDetails, _Mapping]] = ...) -> None: ... - -class SystemMetadata(_message.Message): - __slots__ = ["execution_cluster", "namespace"] - EXECUTION_CLUSTER_FIELD_NUMBER: _ClassVar[int] - NAMESPACE_FIELD_NUMBER: _ClassVar[int] - execution_cluster: str - namespace: str - def __init__(self, execution_cluster: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... - -class ExecutionMetadata(_message.Message): - __slots__ = ["mode", "principal", "nesting", "scheduled_at", "parent_node_execution", "reference_execution", "system_metadata", "artifact_ids"] - class ExecutionMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - MANUAL: _ClassVar[ExecutionMetadata.ExecutionMode] - SCHEDULED: _ClassVar[ExecutionMetadata.ExecutionMode] - SYSTEM: _ClassVar[ExecutionMetadata.ExecutionMode] - RELAUNCH: _ClassVar[ExecutionMetadata.ExecutionMode] - CHILD_WORKFLOW: _ClassVar[ExecutionMetadata.ExecutionMode] - RECOVERED: _ClassVar[ExecutionMetadata.ExecutionMode] - MANUAL: ExecutionMetadata.ExecutionMode - SCHEDULED: ExecutionMetadata.ExecutionMode - SYSTEM: ExecutionMetadata.ExecutionMode - RELAUNCH: ExecutionMetadata.ExecutionMode - CHILD_WORKFLOW: ExecutionMetadata.ExecutionMode - RECOVERED: ExecutionMetadata.ExecutionMode - MODE_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - NESTING_FIELD_NUMBER: _ClassVar[int] - SCHEDULED_AT_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - SYSTEM_METADATA_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - mode: ExecutionMetadata.ExecutionMode - principal: str - nesting: int - scheduled_at: _timestamp_pb2.Timestamp - parent_node_execution: _identifier_pb2.NodeExecutionIdentifier - reference_execution: _identifier_pb2.WorkflowExecutionIdentifier - system_metadata: SystemMetadata - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - def __init__(self, mode: _Optional[_Union[ExecutionMetadata.ExecutionMode, str]] = ..., principal: _Optional[str] = ..., nesting: _Optional[int] = ..., scheduled_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., parent_node_execution: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., system_metadata: _Optional[_Union[SystemMetadata, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ...) -> None: ... - -class NotificationList(_message.Message): - __slots__ = ["notifications"] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] - def __init__(self, notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ...) -> None: ... - -class ExecutionSpec(_message.Message): - __slots__ = ["launch_plan", "inputs", "metadata", "notifications", "disable_all", "labels", "annotations", "security_context", "auth_role", "quality_of_service", "max_parallelism", "raw_output_data_config", "cluster_assignment", "interruptible", "overwrite_cache", "envs", "tags"] - LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - DISABLE_ALL_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] - RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - ENVS_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - launch_plan: _identifier_pb2.Identifier - inputs: _literals_pb2.LiteralMap - metadata: ExecutionMetadata - notifications: NotificationList - disable_all: bool - labels: _common_pb2.Labels - annotations: _common_pb2.Annotations - security_context: _security_pb2.SecurityContext - auth_role: _common_pb2.AuthRole - quality_of_service: _execution_pb2.QualityOfService - max_parallelism: int - raw_output_data_config: _common_pb2.RawOutputDataConfig - cluster_assignment: _cluster_assignment_pb2.ClusterAssignment - interruptible: _wrappers_pb2.BoolValue - overwrite_cache: bool - envs: _common_pb2.Envs - tags: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, launch_plan: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ..., notifications: _Optional[_Union[NotificationList, _Mapping]] = ..., disable_all: bool = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... - -class ExecutionTerminateRequest(_message.Message): - __slots__ = ["id", "cause"] - ID_FIELD_NUMBER: _ClassVar[int] - CAUSE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - cause: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., cause: _Optional[str] = ...) -> None: ... - -class ExecutionTerminateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class WorkflowExecutionGetDataRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionGetDataResponse(_message.Message): - __slots__ = ["outputs", "inputs", "full_inputs", "full_outputs"] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - outputs: _common_pb2.UrlBlob - inputs: _common_pb2.UrlBlob - full_inputs: _literals_pb2.LiteralMap - full_outputs: _literals_pb2.LiteralMap - def __init__(self, outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class ExecutionUpdateRequest(_message.Message): - __slots__ = ["id", "state"] - ID_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - state: ExecutionState - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., state: _Optional[_Union[ExecutionState, str]] = ...) -> None: ... - -class ExecutionStateChangeDetails(_message.Message): - __slots__ = ["state", "occurred_at", "principal"] - STATE_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - state: ExecutionState - occurred_at: _timestamp_pb2.Timestamp - principal: str - def __init__(self, state: _Optional[_Union[ExecutionState, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., principal: _Optional[str] = ...) -> None: ... - -class ExecutionUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class WorkflowExecutionGetMetricsRequest(_message.Message): - __slots__ = ["id", "depth"] - ID_FIELD_NUMBER: _ClassVar[int] - DEPTH_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - depth: int - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., depth: _Optional[int] = ...) -> None: ... - -class WorkflowExecutionGetMetricsResponse(_message.Message): - __slots__ = ["span"] - SPAN_FIELD_NUMBER: _ClassVar[int] - span: _metrics_pb2.Span - def __init__(self, span: _Optional[_Union[_metrics_pb2.Span, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py deleted file mode 100644 index 68d9cdbd65..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/launch_plan.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from flyteidl.admin import schedule_pb2 as flyteidl_dot_admin_dot_schedule__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/admin/launch_plan.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1d\x66lyteidl/admin/schedule.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"x\n\x17LaunchPlanCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\"\x1a\n\x18LaunchPlanCreateResponse\"\xa8\x01\n\nLaunchPlan\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\x12;\n\x07\x63losure\x18\x03 \x01(\x0b\x32!.flyteidl.admin.LaunchPlanClosureR\x07\x63losure\"e\n\x0eLaunchPlanList\x12=\n\x0claunch_plans\x18\x01 \x03(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x0blaunchPlans\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"v\n\x04\x41uth\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"\xbd\x07\n\x0eLaunchPlanSpec\x12:\n\x0bworkflow_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12K\n\x0f\x65ntity_metadata\x18\x02 \x01(\x0b\x32\".flyteidl.admin.LaunchPlanMetadataR\x0e\x65ntityMetadata\x12\x42\n\x0e\x64\x65\x66\x61ult_inputs\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\rdefaultInputs\x12<\n\x0c\x66ixed_inputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ixedInputs\x12\x16\n\x04role\x18\x05 \x01(\tB\x02\x18\x01R\x04role\x12.\n\x06labels\x18\x06 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x07 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12,\n\x04\x61uth\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.AuthB\x02\x18\x01R\x04\x61uth\x12\x39\n\tauth_role\x18\t \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12M\n\x12quality_of_service\x18\x10 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12X\n\x16raw_output_data_config\x18\x11 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12@\n\rinterruptible\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x14 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x15 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\xcd\x02\n\x11LaunchPlanClosure\x12\x35\n\x05state\x18\x01 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\x12\x44\n\x0f\x65xpected_inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x0e\x65xpectedInputs\x12\x45\n\x10\x65xpected_outputs\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x0f\x65xpectedOutputs\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"\xd1\x01\n\x12LaunchPlanMetadata\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ScheduleR\x08schedule\x12\x42\n\rnotifications\x18\x02 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12\x41\n\x11launch_conditions\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyR\x10launchConditions\"{\n\x17LaunchPlanUpdateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x05state\x18\x02 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\"\x1a\n\x18LaunchPlanUpdateResponse\"P\n\x17\x41\x63tiveLaunchPlanRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xbc\x01\n\x1b\x41\x63tiveLaunchPlanListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org*+\n\x0fLaunchPlanState\x12\x0c\n\x08INACTIVE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x42\xbb\x01\n\x12\x63om.flyteidl.adminB\x0fLaunchPlanProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.launch_plan_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\017LaunchPlanProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _AUTH._options = None - _AUTH._serialized_options = b'\030\001' - _LAUNCHPLANSPEC.fields_by_name['role']._options = None - _LAUNCHPLANSPEC.fields_by_name['role']._serialized_options = b'\030\001' - _LAUNCHPLANSPEC.fields_by_name['auth']._options = None - _LAUNCHPLANSPEC.fields_by_name['auth']._serialized_options = b'\030\001' - _LAUNCHPLANSPEC.fields_by_name['auth_role']._options = None - _LAUNCHPLANSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' - _globals['_LAUNCHPLANSTATE']._serialized_start=2836 - _globals['_LAUNCHPLANSTATE']._serialized_end=2879 - _globals['_LAUNCHPLANCREATEREQUEST']._serialized_start=358 - _globals['_LAUNCHPLANCREATEREQUEST']._serialized_end=478 - _globals['_LAUNCHPLANCREATERESPONSE']._serialized_start=480 - _globals['_LAUNCHPLANCREATERESPONSE']._serialized_end=506 - _globals['_LAUNCHPLAN']._serialized_start=509 - _globals['_LAUNCHPLAN']._serialized_end=677 - _globals['_LAUNCHPLANLIST']._serialized_start=679 - _globals['_LAUNCHPLANLIST']._serialized_end=780 - _globals['_AUTH']._serialized_start=782 - _globals['_AUTH']._serialized_end=900 - _globals['_LAUNCHPLANSPEC']._serialized_start=903 - _globals['_LAUNCHPLANSPEC']._serialized_end=1860 - _globals['_LAUNCHPLANCLOSURE']._serialized_start=1863 - _globals['_LAUNCHPLANCLOSURE']._serialized_end=2196 - _globals['_LAUNCHPLANMETADATA']._serialized_start=2199 - _globals['_LAUNCHPLANMETADATA']._serialized_end=2408 - _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_start=2410 - _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_end=2533 - _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_start=2535 - _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_end=2561 - _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_start=2563 - _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_end=2643 - _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_start=2646 - _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_end=2834 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi deleted file mode 100644 index a047c8d473..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi +++ /dev/null @@ -1,156 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from flyteidl.admin import schedule_pb2 as _schedule_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from google.protobuf import any_pb2 as _any_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import wrappers_pb2 as _wrappers_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class LaunchPlanState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - INACTIVE: _ClassVar[LaunchPlanState] - ACTIVE: _ClassVar[LaunchPlanState] -INACTIVE: LaunchPlanState -ACTIVE: LaunchPlanState - -class LaunchPlanCreateRequest(_message.Message): - __slots__ = ["id", "spec"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: LaunchPlanSpec - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ...) -> None: ... - -class LaunchPlanCreateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class LaunchPlan(_message.Message): - __slots__ = ["id", "spec", "closure"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: LaunchPlanSpec - closure: LaunchPlanClosure - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ..., closure: _Optional[_Union[LaunchPlanClosure, _Mapping]] = ...) -> None: ... - -class LaunchPlanList(_message.Message): - __slots__ = ["launch_plans", "token"] - LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - launch_plans: _containers.RepeatedCompositeFieldContainer[LaunchPlan] - token: str - def __init__(self, launch_plans: _Optional[_Iterable[_Union[LaunchPlan, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class Auth(_message.Message): - __slots__ = ["assumable_iam_role", "kubernetes_service_account"] - ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] - KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - assumable_iam_role: str - kubernetes_service_account: str - def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... - -class LaunchPlanSpec(_message.Message): - __slots__ = ["workflow_id", "entity_metadata", "default_inputs", "fixed_inputs", "role", "labels", "annotations", "auth", "auth_role", "security_context", "quality_of_service", "raw_output_data_config", "max_parallelism", "interruptible", "overwrite_cache", "envs"] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - ENTITY_METADATA_FIELD_NUMBER: _ClassVar[int] - DEFAULT_INPUTS_FIELD_NUMBER: _ClassVar[int] - FIXED_INPUTS_FIELD_NUMBER: _ClassVar[int] - ROLE_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - AUTH_FIELD_NUMBER: _ClassVar[int] - AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - ENVS_FIELD_NUMBER: _ClassVar[int] - workflow_id: _identifier_pb2.Identifier - entity_metadata: LaunchPlanMetadata - default_inputs: _interface_pb2.ParameterMap - fixed_inputs: _literals_pb2.LiteralMap - role: str - labels: _common_pb2.Labels - annotations: _common_pb2.Annotations - auth: Auth - auth_role: _common_pb2.AuthRole - security_context: _security_pb2.SecurityContext - quality_of_service: _execution_pb2.QualityOfService - raw_output_data_config: _common_pb2.RawOutputDataConfig - max_parallelism: int - interruptible: _wrappers_pb2.BoolValue - overwrite_cache: bool - envs: _common_pb2.Envs - def __init__(self, workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., entity_metadata: _Optional[_Union[LaunchPlanMetadata, _Mapping]] = ..., default_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., fixed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., role: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., auth: _Optional[_Union[Auth, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... - -class LaunchPlanClosure(_message.Message): - __slots__ = ["state", "expected_inputs", "expected_outputs", "created_at", "updated_at"] - STATE_FIELD_NUMBER: _ClassVar[int] - EXPECTED_INPUTS_FIELD_NUMBER: _ClassVar[int] - EXPECTED_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - state: LaunchPlanState - expected_inputs: _interface_pb2.ParameterMap - expected_outputs: _interface_pb2.VariableMap - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, state: _Optional[_Union[LaunchPlanState, str]] = ..., expected_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., expected_outputs: _Optional[_Union[_interface_pb2.VariableMap, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class LaunchPlanMetadata(_message.Message): - __slots__ = ["schedule", "notifications", "launch_conditions"] - SCHEDULE_FIELD_NUMBER: _ClassVar[int] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - LAUNCH_CONDITIONS_FIELD_NUMBER: _ClassVar[int] - schedule: _schedule_pb2.Schedule - notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] - launch_conditions: _any_pb2.Any - def __init__(self, schedule: _Optional[_Union[_schedule_pb2.Schedule, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., launch_conditions: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... - -class LaunchPlanUpdateRequest(_message.Message): - __slots__ = ["id", "state"] - ID_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - state: LaunchPlanState - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state: _Optional[_Union[LaunchPlanState, str]] = ...) -> None: ... - -class LaunchPlanUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ActiveLaunchPlanRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _common_pb2.NamedEntityIdentifier - def __init__(self, id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ...) -> None: ... - -class ActiveLaunchPlanListRequest(_message.Message): - __slots__ = ["project", "domain", "limit", "token", "sort_by", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - limit: int - token: str - sort_by: _common_pb2.Sort - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py deleted file mode 100644 index 94748a4932..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/matchable_resource.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/matchable_resource.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x95\x01\n\x10TaskResourceSpec\x12\x10\n\x03\x63pu\x18\x01 \x01(\tR\x03\x63pu\x12\x10\n\x03gpu\x18\x02 \x01(\tR\x03gpu\x12\x16\n\x06memory\x18\x03 \x01(\tR\x06memory\x12\x18\n\x07storage\x18\x04 \x01(\tR\x07storage\x12+\n\x11\x65phemeral_storage\x18\x05 \x01(\tR\x10\x65phemeralStorage\"\x90\x01\n\x16TaskResourceAttributes\x12<\n\x08\x64\x65\x66\x61ults\x18\x01 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x08\x64\x65\x66\x61ults\x12\x38\n\x06limits\x18\x02 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x06limits\"\xb5\x01\n\x19\x43lusterResourceAttributes\x12Y\n\nattributes\x18\x01 \x03(\x0b\x32\x39.flyteidl.admin.ClusterResourceAttributes.AttributesEntryR\nattributes\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\".\n\x18\x45xecutionQueueAttributes\x12\x12\n\x04tags\x18\x01 \x03(\tR\x04tags\"-\n\x15\x45xecutionClusterLabel\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"\xec\x01\n\x0ePluginOverride\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x1b\n\tplugin_id\x18\x02 \x03(\tR\x08pluginId\x12l\n\x17missing_plugin_behavior\x18\x04 \x01(\x0e\x32\x34.flyteidl.admin.PluginOverride.MissingPluginBehaviorR\x15missingPluginBehavior\"2\n\x15MissingPluginBehavior\x12\x08\n\x04\x46\x41IL\x10\x00\x12\x0f\n\x0bUSE_DEFAULT\x10\x01\"O\n\x0fPluginOverrides\x12<\n\toverrides\x18\x01 \x03(\x0b\x32\x1e.flyteidl.admin.PluginOverrideR\toverrides\"\xeb\x03\n\x17WorkflowExecutionConfig\x12\'\n\x0fmax_parallelism\x18\x01 \x01(\x05R\x0emaxParallelism\x12I\n\x10security_context\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12X\n\x16raw_output_data_config\x18\x03 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12.\n\x06labels\x18\x04 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x05 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12@\n\rinterruptible\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x07 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\x94\x06\n\x12MatchingAttributes\x12\x62\n\x18task_resource_attributes\x18\x01 \x01(\x0b\x32&.flyteidl.admin.TaskResourceAttributesH\x00R\x16taskResourceAttributes\x12k\n\x1b\x63luster_resource_attributes\x18\x02 \x01(\x0b\x32).flyteidl.admin.ClusterResourceAttributesH\x00R\x19\x63lusterResourceAttributes\x12h\n\x1a\x65xecution_queue_attributes\x18\x03 \x01(\x0b\x32(.flyteidl.admin.ExecutionQueueAttributesH\x00R\x18\x65xecutionQueueAttributes\x12_\n\x17\x65xecution_cluster_label\x18\x04 \x01(\x0b\x32%.flyteidl.admin.ExecutionClusterLabelH\x00R\x15\x65xecutionClusterLabel\x12O\n\x12quality_of_service\x18\x05 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceH\x00R\x10qualityOfService\x12L\n\x10plugin_overrides\x18\x06 \x01(\x0b\x32\x1f.flyteidl.admin.PluginOverridesH\x00R\x0fpluginOverrides\x12\x65\n\x19workflow_execution_config\x18\x07 \x01(\x0b\x32\'.flyteidl.admin.WorkflowExecutionConfigH\x00R\x17workflowExecutionConfig\x12R\n\x12\x63luster_assignment\x18\x08 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentH\x00R\x11\x63lusterAssignmentB\x08\n\x06target\"\xe7\x01\n MatchableAttributesConfiguration\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\nattributes\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x18\n\x07project\x18\x03 \x01(\tR\x07project\x12\x1a\n\x08workflow\x18\x04 \x01(\tR\x08workflow\x12\x1f\n\x0blaunch_plan\x18\x05 \x01(\tR\nlaunchPlan\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"z\n\x1eListMatchableAttributesRequest\x12\x46\n\rresource_type\x18\x01 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x02 \x01(\tR\x03org\"{\n\x1fListMatchableAttributesResponse\x12X\n\x0e\x63onfigurations\x18\x01 \x03(\x0b\x32\x30.flyteidl.admin.MatchableAttributesConfigurationR\x0e\x63onfigurations*\xe0\x01\n\x11MatchableResource\x12\x11\n\rTASK_RESOURCE\x10\x00\x12\x14\n\x10\x43LUSTER_RESOURCE\x10\x01\x12\x13\n\x0f\x45XECUTION_QUEUE\x10\x02\x12\x1b\n\x17\x45XECUTION_CLUSTER_LABEL\x10\x03\x12$\n QUALITY_OF_SERVICE_SPECIFICATION\x10\x04\x12\x13\n\x0fPLUGIN_OVERRIDE\x10\x05\x12\x1d\n\x19WORKFLOW_EXECUTION_CONFIG\x10\x06\x12\x16\n\x12\x43LUSTER_ASSIGNMENT\x10\x07\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16MatchableResourceProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.matchable_resource_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026MatchableResourceProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._options = None - _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._serialized_options = b'8\001' - _globals['_MATCHABLERESOURCE']._serialized_start=2889 - _globals['_MATCHABLERESOURCE']._serialized_end=3113 - _globals['_TASKRESOURCESPEC']._serialized_start=223 - _globals['_TASKRESOURCESPEC']._serialized_end=372 - _globals['_TASKRESOURCEATTRIBUTES']._serialized_start=375 - _globals['_TASKRESOURCEATTRIBUTES']._serialized_end=519 - _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_start=522 - _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_end=703 - _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_start=642 - _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_end=703 - _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_start=705 - _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_end=751 - _globals['_EXECUTIONCLUSTERLABEL']._serialized_start=753 - _globals['_EXECUTIONCLUSTERLABEL']._serialized_end=798 - _globals['_PLUGINOVERRIDE']._serialized_start=801 - _globals['_PLUGINOVERRIDE']._serialized_end=1037 - _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_start=987 - _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_end=1037 - _globals['_PLUGINOVERRIDES']._serialized_start=1039 - _globals['_PLUGINOVERRIDES']._serialized_end=1118 - _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_start=1121 - _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_end=1612 - _globals['_MATCHINGATTRIBUTES']._serialized_start=1615 - _globals['_MATCHINGATTRIBUTES']._serialized_end=2403 - _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_start=2406 - _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_end=2637 - _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_start=2639 - _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_end=2761 - _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_start=2763 - _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_end=2886 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi deleted file mode 100644 index cc19f2d146..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi +++ /dev/null @@ -1,170 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import wrappers_pb2 as _wrappers_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class MatchableResource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - TASK_RESOURCE: _ClassVar[MatchableResource] - CLUSTER_RESOURCE: _ClassVar[MatchableResource] - EXECUTION_QUEUE: _ClassVar[MatchableResource] - EXECUTION_CLUSTER_LABEL: _ClassVar[MatchableResource] - QUALITY_OF_SERVICE_SPECIFICATION: _ClassVar[MatchableResource] - PLUGIN_OVERRIDE: _ClassVar[MatchableResource] - WORKFLOW_EXECUTION_CONFIG: _ClassVar[MatchableResource] - CLUSTER_ASSIGNMENT: _ClassVar[MatchableResource] -TASK_RESOURCE: MatchableResource -CLUSTER_RESOURCE: MatchableResource -EXECUTION_QUEUE: MatchableResource -EXECUTION_CLUSTER_LABEL: MatchableResource -QUALITY_OF_SERVICE_SPECIFICATION: MatchableResource -PLUGIN_OVERRIDE: MatchableResource -WORKFLOW_EXECUTION_CONFIG: MatchableResource -CLUSTER_ASSIGNMENT: MatchableResource - -class TaskResourceSpec(_message.Message): - __slots__ = ["cpu", "gpu", "memory", "storage", "ephemeral_storage"] - CPU_FIELD_NUMBER: _ClassVar[int] - GPU_FIELD_NUMBER: _ClassVar[int] - MEMORY_FIELD_NUMBER: _ClassVar[int] - STORAGE_FIELD_NUMBER: _ClassVar[int] - EPHEMERAL_STORAGE_FIELD_NUMBER: _ClassVar[int] - cpu: str - gpu: str - memory: str - storage: str - ephemeral_storage: str - def __init__(self, cpu: _Optional[str] = ..., gpu: _Optional[str] = ..., memory: _Optional[str] = ..., storage: _Optional[str] = ..., ephemeral_storage: _Optional[str] = ...) -> None: ... - -class TaskResourceAttributes(_message.Message): - __slots__ = ["defaults", "limits"] - DEFAULTS_FIELD_NUMBER: _ClassVar[int] - LIMITS_FIELD_NUMBER: _ClassVar[int] - defaults: TaskResourceSpec - limits: TaskResourceSpec - def __init__(self, defaults: _Optional[_Union[TaskResourceSpec, _Mapping]] = ..., limits: _Optional[_Union[TaskResourceSpec, _Mapping]] = ...) -> None: ... - -class ClusterResourceAttributes(_message.Message): - __slots__ = ["attributes"] - class AttributesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: _containers.ScalarMap[str, str] - def __init__(self, attributes: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class ExecutionQueueAttributes(_message.Message): - __slots__ = ["tags"] - TAGS_FIELD_NUMBER: _ClassVar[int] - tags: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, tags: _Optional[_Iterable[str]] = ...) -> None: ... - -class ExecutionClusterLabel(_message.Message): - __slots__ = ["value"] - VALUE_FIELD_NUMBER: _ClassVar[int] - value: str - def __init__(self, value: _Optional[str] = ...) -> None: ... - -class PluginOverride(_message.Message): - __slots__ = ["task_type", "plugin_id", "missing_plugin_behavior"] - class MissingPluginBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - FAIL: _ClassVar[PluginOverride.MissingPluginBehavior] - USE_DEFAULT: _ClassVar[PluginOverride.MissingPluginBehavior] - FAIL: PluginOverride.MissingPluginBehavior - USE_DEFAULT: PluginOverride.MissingPluginBehavior - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - PLUGIN_ID_FIELD_NUMBER: _ClassVar[int] - MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER: _ClassVar[int] - task_type: str - plugin_id: _containers.RepeatedScalarFieldContainer[str] - missing_plugin_behavior: PluginOverride.MissingPluginBehavior - def __init__(self, task_type: _Optional[str] = ..., plugin_id: _Optional[_Iterable[str]] = ..., missing_plugin_behavior: _Optional[_Union[PluginOverride.MissingPluginBehavior, str]] = ...) -> None: ... - -class PluginOverrides(_message.Message): - __slots__ = ["overrides"] - OVERRIDES_FIELD_NUMBER: _ClassVar[int] - overrides: _containers.RepeatedCompositeFieldContainer[PluginOverride] - def __init__(self, overrides: _Optional[_Iterable[_Union[PluginOverride, _Mapping]]] = ...) -> None: ... - -class WorkflowExecutionConfig(_message.Message): - __slots__ = ["max_parallelism", "security_context", "raw_output_data_config", "labels", "annotations", "interruptible", "overwrite_cache", "envs"] - MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - ENVS_FIELD_NUMBER: _ClassVar[int] - max_parallelism: int - security_context: _security_pb2.SecurityContext - raw_output_data_config: _common_pb2.RawOutputDataConfig - labels: _common_pb2.Labels - annotations: _common_pb2.Annotations - interruptible: _wrappers_pb2.BoolValue - overwrite_cache: bool - envs: _common_pb2.Envs - def __init__(self, max_parallelism: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... - -class MatchingAttributes(_message.Message): - __slots__ = ["task_resource_attributes", "cluster_resource_attributes", "execution_queue_attributes", "execution_cluster_label", "quality_of_service", "plugin_overrides", "workflow_execution_config", "cluster_assignment"] - TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - EXECUTION_CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - PLUGIN_OVERRIDES_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER: _ClassVar[int] - CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] - task_resource_attributes: TaskResourceAttributes - cluster_resource_attributes: ClusterResourceAttributes - execution_queue_attributes: ExecutionQueueAttributes - execution_cluster_label: ExecutionClusterLabel - quality_of_service: _execution_pb2.QualityOfService - plugin_overrides: PluginOverrides - workflow_execution_config: WorkflowExecutionConfig - cluster_assignment: _cluster_assignment_pb2.ClusterAssignment - def __init__(self, task_resource_attributes: _Optional[_Union[TaskResourceAttributes, _Mapping]] = ..., cluster_resource_attributes: _Optional[_Union[ClusterResourceAttributes, _Mapping]] = ..., execution_queue_attributes: _Optional[_Union[ExecutionQueueAttributes, _Mapping]] = ..., execution_cluster_label: _Optional[_Union[ExecutionClusterLabel, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., plugin_overrides: _Optional[_Union[PluginOverrides, _Mapping]] = ..., workflow_execution_config: _Optional[_Union[WorkflowExecutionConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ...) -> None: ... - -class MatchableAttributesConfiguration(_message.Message): - __slots__ = ["attributes", "domain", "project", "workflow", "launch_plan", "org"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - PROJECT_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - attributes: MatchingAttributes - domain: str - project: str - workflow: str - launch_plan: str - org: str - def __init__(self, attributes: _Optional[_Union[MatchingAttributes, _Mapping]] = ..., domain: _Optional[str] = ..., project: _Optional[str] = ..., workflow: _Optional[str] = ..., launch_plan: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class ListMatchableAttributesRequest(_message.Message): - __slots__ = ["resource_type", "org"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - resource_type: MatchableResource - org: str - def __init__(self, resource_type: _Optional[_Union[MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class ListMatchableAttributesResponse(_message.Message): - __slots__ = ["configurations"] - CONFIGURATIONS_FIELD_NUMBER: _ClassVar[int] - configurations: _containers.RepeatedCompositeFieldContainer[MatchableAttributesConfiguration] - def __init__(self, configurations: _Optional[_Iterable[_Union[MatchableAttributesConfiguration, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py deleted file mode 100644 index 93a29df4d6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/node_execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/node_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"Q\n\x17NodeExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x99\x02\n\x18NodeExecutionListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12(\n\x10unique_parent_id\x18\x06 \x01(\tR\x0euniqueParentId\"\xea\x01\n\x1fNodeExecutionForTaskListRequest\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xe7\x01\n\rNodeExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.NodeExecutionClosureR\x07\x63losure\x12\x41\n\x08metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.NodeExecutionMetaDataR\x08metadata\"\xba\x01\n\x15NodeExecutionMetaData\x12\x1f\n\x0bretry_group\x18\x01 \x01(\tR\nretryGroup\x12$\n\x0eis_parent_node\x18\x02 \x01(\x08R\x0cisParentNode\x12 \n\x0cspec_node_id\x18\x03 \x01(\tR\nspecNodeId\x12\x1d\n\nis_dynamic\x18\x04 \x01(\x08R\tisDynamic\x12\x19\n\x08is_array\x18\x05 \x01(\x08R\x07isArray\"q\n\x11NodeExecutionList\x12\x46\n\x0fnode_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.NodeExecutionR\x0enodeExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xf6\x05\n\x14NodeExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\n \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.admin.WorkflowNodeMetadataH\x01R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\t \x01(\x0b\x32 .flyteidl.admin.TaskNodeMetadataH\x01R\x10taskNodeMetadata\x12\x19\n\x08\x64\x65\x63k_uri\x18\x0b \x01(\tR\x07\x64\x65\x63kUri\x12/\n\x14\x64ynamic_job_spec_uri\x18\x0c \x01(\tR\x11\x64ynamicJobSpecUriB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"d\n\x14WorkflowNodeMetadata\x12L\n\x0b\x65xecutionId\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc0\x01\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bNodeExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x96\x03\n\x1cNodeExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.admin.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\x12\x38\n\nflyte_urls\x18\x11 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrls\"W\n\x1dGetDynamicNodeWorkflowRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"r\n\x1b\x44ynamicNodeWorkflowResponse\x12S\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflowB\xbe\x01\n\x12\x63om.flyteidl.adminB\x12NodeExecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.node_execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022NodeExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None - _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' - _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._options = None - _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' - _globals['_NODEEXECUTIONGETREQUEST']._serialized_start=301 - _globals['_NODEEXECUTIONGETREQUEST']._serialized_end=382 - _globals['_NODEEXECUTIONLISTREQUEST']._serialized_start=385 - _globals['_NODEEXECUTIONLISTREQUEST']._serialized_end=666 - _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_start=669 - _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_end=903 - _globals['_NODEEXECUTION']._serialized_start=906 - _globals['_NODEEXECUTION']._serialized_end=1137 - _globals['_NODEEXECUTIONMETADATA']._serialized_start=1140 - _globals['_NODEEXECUTIONMETADATA']._serialized_end=1326 - _globals['_NODEEXECUTIONLIST']._serialized_start=1328 - _globals['_NODEEXECUTIONLIST']._serialized_end=1441 - _globals['_NODEEXECUTIONCLOSURE']._serialized_start=1444 - _globals['_NODEEXECUTIONCLOSURE']._serialized_end=2202 - _globals['_WORKFLOWNODEMETADATA']._serialized_start=2204 - _globals['_WORKFLOWNODEMETADATA']._serialized_end=2304 - _globals['_TASKNODEMETADATA']._serialized_start=2307 - _globals['_TASKNODEMETADATA']._serialized_end=2499 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2502 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2708 - _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_start=2710 - _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_end=2795 - _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_start=2798 - _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_end=3204 - _globals['_GETDYNAMICNODEWORKFLOWREQUEST']._serialized_start=3206 - _globals['_GETDYNAMICNODEWORKFLOWREQUEST']._serialized_end=3293 - _globals['_DYNAMICNODEWORKFLOWRESPONSE']._serialized_start=3295 - _globals['_DYNAMICNODEWORKFLOWRESPONSE']._serialized_end=3409 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi deleted file mode 100644 index 9bf601847d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi +++ /dev/null @@ -1,172 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import catalog_pb2 as _catalog_pb2 -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class NodeExecutionGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class NodeExecutionListRequest(_message.Message): - __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by", "unique_parent_id"] - WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - UNIQUE_PARENT_ID_FIELD_NUMBER: _ClassVar[int] - workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - unique_parent_id: str - def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., unique_parent_id: _Optional[str] = ...) -> None: ... - -class NodeExecutionForTaskListRequest(_message.Message): - __slots__ = ["task_execution_id", "limit", "token", "filters", "sort_by"] - TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - task_execution_id: _identifier_pb2.TaskExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class NodeExecution(_message.Message): - __slots__ = ["id", "input_uri", "closure", "metadata"] - ID_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - input_uri: str - closure: NodeExecutionClosure - metadata: NodeExecutionMetaData - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[NodeExecutionClosure, _Mapping]] = ..., metadata: _Optional[_Union[NodeExecutionMetaData, _Mapping]] = ...) -> None: ... - -class NodeExecutionMetaData(_message.Message): - __slots__ = ["retry_group", "is_parent_node", "spec_node_id", "is_dynamic", "is_array"] - RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] - IS_PARENT_NODE_FIELD_NUMBER: _ClassVar[int] - SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] - IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] - IS_ARRAY_FIELD_NUMBER: _ClassVar[int] - retry_group: str - is_parent_node: bool - spec_node_id: str - is_dynamic: bool - is_array: bool - def __init__(self, retry_group: _Optional[str] = ..., is_parent_node: bool = ..., spec_node_id: _Optional[str] = ..., is_dynamic: bool = ..., is_array: bool = ...) -> None: ... - -class NodeExecutionList(_message.Message): - __slots__ = ["node_executions", "token"] - NODE_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - node_executions: _containers.RepeatedCompositeFieldContainer[NodeExecution] - token: str - def __init__(self, node_executions: _Optional[_Iterable[_Union[NodeExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class NodeExecutionClosure(_message.Message): - __slots__ = ["output_uri", "error", "output_data", "phase", "started_at", "duration", "created_at", "updated_at", "workflow_node_metadata", "task_node_metadata", "deck_uri", "dynamic_job_spec_uri"] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - STARTED_AT_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - DECK_URI_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - phase: _execution_pb2.NodeExecution.Phase - started_at: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - workflow_node_metadata: WorkflowNodeMetadata - task_node_metadata: TaskNodeMetadata - deck_uri: str - dynamic_job_spec_uri: str - def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., deck_uri: _Optional[str] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... - -class WorkflowNodeMetadata(_message.Message): - __slots__ = ["executionId"] - EXECUTIONID_FIELD_NUMBER: _ClassVar[int] - executionId: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, executionId: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskNodeMetadata(_message.Message): - __slots__ = ["cache_status", "catalog_key", "checkpoint_uri"] - CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] - CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] - CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] - cache_status: _catalog_pb2.CatalogCacheStatus - catalog_key: _catalog_pb2.CatalogMetadata - checkpoint_uri: str - def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., checkpoint_uri: _Optional[str] = ...) -> None: ... - -class DynamicWorkflowNodeMetadata(_message.Message): - __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] - ID_FIELD_NUMBER: _ClassVar[int] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - dynamic_job_spec_uri: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... - -class NodeExecutionGetDataRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class NodeExecutionGetDataResponse(_message.Message): - __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "dynamic_workflow", "flyte_urls"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] - inputs: _common_pb2.UrlBlob - outputs: _common_pb2.UrlBlob - full_inputs: _literals_pb2.LiteralMap - full_outputs: _literals_pb2.LiteralMap - dynamic_workflow: DynamicWorkflowNodeMetadata - flyte_urls: _common_pb2.FlyteURLs - def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... - -class GetDynamicNodeWorkflowRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class DynamicNodeWorkflowResponse(_message.Message): - __slots__ = ["compiled_workflow"] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - def __init__(self, compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py deleted file mode 100644 index 5f247002e5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/notification.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/admin/notification.proto\x12\x0e\x66lyteidl.admin\"\x93\x01\n\x0c\x45mailMessage\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\x12!\n\x0csender_email\x18\x02 \x01(\tR\x0bsenderEmail\x12!\n\x0csubject_line\x18\x03 \x01(\tR\x0bsubjectLine\x12\x12\n\x04\x62ody\x18\x04 \x01(\tR\x04\x62odyB\xbd\x01\n\x12\x63om.flyteidl.adminB\x11NotificationProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.notification_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\021NotificationProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_EMAILMESSAGE']._serialized_start=54 - _globals['_EMAILMESSAGE']._serialized_end=201 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi deleted file mode 100644 index 5a06a72f34..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class EmailMessage(_message.Message): - __slots__ = ["recipients_email", "sender_email", "subject_line", "body"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - SENDER_EMAIL_FIELD_NUMBER: _ClassVar[int] - SUBJECT_LINE_FIELD_NUMBER: _ClassVar[int] - BODY_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - sender_email: str - subject_line: str - body: str - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ..., sender_email: _Optional[str] = ..., subject_line: _Optional[str] = ..., body: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py deleted file mode 100644 index 46808ec536..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/project_attributes.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/project_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\x94\x01\n\x11ProjectAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12S\n\x13matching_attributes\x18\x02 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\x12\x10\n\x03org\x18\x03 \x01(\tR\x03org\"c\n\x1eProjectAttributesUpdateRequest\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"!\n\x1fProjectAttributesUpdateResponse\"\x91\x01\n\x1bProjectAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x03 \x01(\tR\x03org\"a\n\x1cProjectAttributesGetResponse\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"\x94\x01\n\x1eProjectAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x03 \x01(\tR\x03org\"!\n\x1fProjectAttributesDeleteResponseB\xc2\x01\n\x12\x63om.flyteidl.adminB\x16ProjectAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_attributes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ProjectAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_PROJECTATTRIBUTES']._serialized_start=101 - _globals['_PROJECTATTRIBUTES']._serialized_end=249 - _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_start=251 - _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_end=350 - _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_start=352 - _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_end=385 - _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_start=388 - _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_end=533 - _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_start=535 - _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_end=632 - _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_start=635 - _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_end=783 - _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_start=785 - _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_end=818 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi deleted file mode 100644 index 6581a30a15..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi +++ /dev/null @@ -1,56 +0,0 @@ -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ProjectAttributes(_message.Message): - __slots__ = ["project", "matching_attributes", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - matching_attributes: _matchable_resource_pb2.MatchingAttributes - org: str - def __init__(self, project: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectAttributesUpdateRequest(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectAttributes - def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... - -class ProjectAttributesUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ProjectAttributesGetRequest(_message.Message): - __slots__ = ["project", "resource_type", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - resource_type: _matchable_resource_pb2.MatchableResource - org: str - def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectAttributesGetResponse(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectAttributes - def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... - -class ProjectAttributesDeleteRequest(_message.Message): - __slots__ = ["project", "resource_type", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - resource_type: _matchable_resource_pb2.MatchableResource - org: str - def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectAttributesDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py deleted file mode 100644 index 3d80159af4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/project_domain_attributes.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/admin/project_domain_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xb2\x01\n\x17ProjectDomainAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12S\n\x13matching_attributes\x18\x03 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"o\n$ProjectDomainAttributesUpdateRequest\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\'\n%ProjectDomainAttributesUpdateResponse\"\xaf\x01\n!ProjectDomainAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"m\n\"ProjectDomainAttributesGetResponse\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\xb2\x01\n$ProjectDomainAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"\'\n%ProjectDomainAttributesDeleteResponseB\xc8\x01\n\x12\x63om.flyteidl.adminB\x1cProjectDomainAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_domain_attributes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\034ProjectDomainAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_PROJECTDOMAINATTRIBUTES']._serialized_start=108 - _globals['_PROJECTDOMAINATTRIBUTES']._serialized_end=286 - _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_start=288 - _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_end=399 - _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_start=401 - _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_end=440 - _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_start=443 - _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_end=618 - _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_start=620 - _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_end=729 - _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_start=732 - _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_end=910 - _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_start=912 - _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_end=951 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi deleted file mode 100644 index 40a7a38bc7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ProjectDomainAttributes(_message.Message): - __slots__ = ["project", "domain", "matching_attributes", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - matching_attributes: _matchable_resource_pb2.MatchingAttributes - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectDomainAttributesUpdateRequest(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectDomainAttributes - def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... - -class ProjectDomainAttributesUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ProjectDomainAttributesGetRequest(_message.Message): - __slots__ = ["project", "domain", "resource_type", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - resource_type: _matchable_resource_pb2.MatchableResource - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectDomainAttributesGetResponse(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectDomainAttributes - def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... - -class ProjectDomainAttributesDeleteRequest(_message.Message): - __slots__ = ["project", "domain", "resource_type", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - resource_type: _matchable_resource_pb2.MatchableResource - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectDomainAttributesDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py deleted file mode 100644 index d0b442e3a5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/project.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/project.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\",\n\x06\x44omain\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\xbf\x02\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x30\n\x07\x64omains\x18\x03 \x03(\x0b\x32\x16.flyteidl.admin.DomainR\x07\x64omains\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12.\n\x06labels\x18\x05 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12:\n\x05state\x18\x06 \x01(\x0e\x32$.flyteidl.admin.Project.ProjectStateR\x05state\x12\x10\n\x03org\x18\x07 \x01(\tR\x03org\">\n\x0cProjectState\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x41RCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\"U\n\x08Projects\x12\x33\n\x08projects\x18\x01 \x03(\x0b\x32\x17.flyteidl.admin.ProjectR\x08projects\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x9b\x01\n\x12ProjectListRequest\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x03 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x04 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"K\n\x16ProjectRegisterRequest\x12\x31\n\x07project\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.ProjectR\x07project\"\x19\n\x17ProjectRegisterResponse\"\x17\n\x15ProjectUpdateResponseB\xb8\x01\n\x12\x63om.flyteidl.adminB\x0cProjectProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014ProjectProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_DOMAIN']._serialized_start=77 - _globals['_DOMAIN']._serialized_end=121 - _globals['_PROJECT']._serialized_start=124 - _globals['_PROJECT']._serialized_end=443 - _globals['_PROJECT_PROJECTSTATE']._serialized_start=381 - _globals['_PROJECT_PROJECTSTATE']._serialized_end=443 - _globals['_PROJECTS']._serialized_start=445 - _globals['_PROJECTS']._serialized_end=530 - _globals['_PROJECTLISTREQUEST']._serialized_start=533 - _globals['_PROJECTLISTREQUEST']._serialized_end=688 - _globals['_PROJECTREGISTERREQUEST']._serialized_start=690 - _globals['_PROJECTREGISTERREQUEST']._serialized_end=765 - _globals['_PROJECTREGISTERRESPONSE']._serialized_start=767 - _globals['_PROJECTREGISTERRESPONSE']._serialized_end=792 - _globals['_PROJECTUPDATERESPONSE']._serialized_start=794 - _globals['_PROJECTUPDATERESPONSE']._serialized_end=817 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi deleted file mode 100644 index 1379fa3c0c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi +++ /dev/null @@ -1,78 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Domain(_message.Message): - __slots__ = ["id", "name"] - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class Project(_message.Message): - __slots__ = ["id", "name", "domains", "description", "labels", "state", "org"] - class ProjectState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - ACTIVE: _ClassVar[Project.ProjectState] - ARCHIVED: _ClassVar[Project.ProjectState] - SYSTEM_GENERATED: _ClassVar[Project.ProjectState] - ACTIVE: Project.ProjectState - ARCHIVED: Project.ProjectState - SYSTEM_GENERATED: Project.ProjectState - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DOMAINS_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - domains: _containers.RepeatedCompositeFieldContainer[Domain] - description: str - labels: _common_pb2.Labels - state: Project.ProjectState - org: str - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., domains: _Optional[_Iterable[_Union[Domain, _Mapping]]] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., state: _Optional[_Union[Project.ProjectState, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class Projects(_message.Message): - __slots__ = ["projects", "token"] - PROJECTS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - projects: _containers.RepeatedCompositeFieldContainer[Project] - token: str - def __init__(self, projects: _Optional[_Iterable[_Union[Project, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class ProjectListRequest(_message.Message): - __slots__ = ["limit", "token", "filters", "sort_by", "org"] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - org: str - def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... - -class ProjectRegisterRequest(_message.Message): - __slots__ = ["project"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - project: Project - def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ...) -> None: ... - -class ProjectRegisterResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ProjectUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py deleted file mode 100644 index 42af3da7a2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/schedule.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/schedule.proto\x12\x0e\x66lyteidl.admin\"T\n\tFixedRate\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\x12\x31\n\x04unit\x18\x02 \x01(\x0e\x32\x1d.flyteidl.admin.FixedRateUnitR\x04unit\"B\n\x0c\x43ronSchedule\x12\x1a\n\x08schedule\x18\x01 \x01(\tR\x08schedule\x12\x16\n\x06offset\x18\x02 \x01(\tR\x06offset\"\xfa\x01\n\x08Schedule\x12-\n\x0f\x63ron_expression\x18\x01 \x01(\tB\x02\x18\x01H\x00R\x0e\x63ronExpression\x12/\n\x04rate\x18\x02 \x01(\x0b\x32\x19.flyteidl.admin.FixedRateH\x00R\x04rate\x12\x43\n\rcron_schedule\x18\x04 \x01(\x0b\x32\x1c.flyteidl.admin.CronScheduleH\x00R\x0c\x63ronSchedule\x12\x33\n\x16kickoff_time_input_arg\x18\x03 \x01(\tR\x13kickoffTimeInputArgB\x14\n\x12ScheduleExpression*.\n\rFixedRateUnit\x12\n\n\x06MINUTE\x10\x00\x12\x08\n\x04HOUR\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x42\xb9\x01\n\x12\x63om.flyteidl.adminB\rScheduleProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.schedule_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rScheduleProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _SCHEDULE.fields_by_name['cron_expression']._options = None - _SCHEDULE.fields_by_name['cron_expression']._serialized_options = b'\030\001' - _globals['_FIXEDRATEUNIT']._serialized_start=456 - _globals['_FIXEDRATEUNIT']._serialized_end=502 - _globals['_FIXEDRATE']._serialized_start=49 - _globals['_FIXEDRATE']._serialized_end=133 - _globals['_CRONSCHEDULE']._serialized_start=135 - _globals['_CRONSCHEDULE']._serialized_end=201 - _globals['_SCHEDULE']._serialized_start=204 - _globals['_SCHEDULE']._serialized_end=454 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi deleted file mode 100644 index a9f1a2d133..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi +++ /dev/null @@ -1,43 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class FixedRateUnit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - MINUTE: _ClassVar[FixedRateUnit] - HOUR: _ClassVar[FixedRateUnit] - DAY: _ClassVar[FixedRateUnit] -MINUTE: FixedRateUnit -HOUR: FixedRateUnit -DAY: FixedRateUnit - -class FixedRate(_message.Message): - __slots__ = ["value", "unit"] - VALUE_FIELD_NUMBER: _ClassVar[int] - UNIT_FIELD_NUMBER: _ClassVar[int] - value: int - unit: FixedRateUnit - def __init__(self, value: _Optional[int] = ..., unit: _Optional[_Union[FixedRateUnit, str]] = ...) -> None: ... - -class CronSchedule(_message.Message): - __slots__ = ["schedule", "offset"] - SCHEDULE_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - schedule: str - offset: str - def __init__(self, schedule: _Optional[str] = ..., offset: _Optional[str] = ...) -> None: ... - -class Schedule(_message.Message): - __slots__ = ["cron_expression", "rate", "cron_schedule", "kickoff_time_input_arg"] - CRON_EXPRESSION_FIELD_NUMBER: _ClassVar[int] - RATE_FIELD_NUMBER: _ClassVar[int] - CRON_SCHEDULE_FIELD_NUMBER: _ClassVar[int] - KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER: _ClassVar[int] - cron_expression: str - rate: FixedRate - cron_schedule: CronSchedule - kickoff_time_input_arg: str - def __init__(self, cron_expression: _Optional[str] = ..., rate: _Optional[_Union[FixedRate, _Mapping]] = ..., cron_schedule: _Optional[_Union[CronSchedule, _Mapping]] = ..., kickoff_time_input_arg: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py deleted file mode 100644 index be296a4ae8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/signal.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/signal.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\"{\n\x18SignalGetOrCreateRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"\xe8\x01\n\x11SignalListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"T\n\nSignalList\x12\x30\n\x07signals\x18\x01 \x03(\x0b\x32\x16.flyteidl.admin.SignalR\x07signals\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"q\n\x10SignalSetRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"\x13\n\x11SignalSetResponse\"\x97\x01\n\x06Signal\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12,\n\x05value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05valueB\xb7\x01\n\x12\x63om.flyteidl.adminB\x0bSignalProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.signal_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013SignalProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_SIGNALGETORCREATEREQUEST']._serialized_start=165 - _globals['_SIGNALGETORCREATEREQUEST']._serialized_end=288 - _globals['_SIGNALLISTREQUEST']._serialized_start=291 - _globals['_SIGNALLISTREQUEST']._serialized_end=523 - _globals['_SIGNALLIST']._serialized_start=525 - _globals['_SIGNALLIST']._serialized_end=609 - _globals['_SIGNALSETREQUEST']._serialized_start=611 - _globals['_SIGNALSETREQUEST']._serialized_end=724 - _globals['_SIGNALSETRESPONSE']._serialized_start=726 - _globals['_SIGNALSETRESPONSE']._serialized_end=745 - _globals['_SIGNAL']._serialized_start=748 - _globals['_SIGNAL']._serialized_end=899 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi deleted file mode 100644 index 8dfac31435..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class SignalGetOrCreateRequest(_message.Message): - __slots__ = ["id", "type"] - ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.SignalIdentifier - type: _types_pb2.LiteralType - def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... - -class SignalListRequest(_message.Message): - __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by"] - WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class SignalList(_message.Message): - __slots__ = ["signals", "token"] - SIGNALS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - signals: _containers.RepeatedCompositeFieldContainer[Signal] - token: str - def __init__(self, signals: _Optional[_Iterable[_Union[Signal, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class SignalSetRequest(_message.Message): - __slots__ = ["id", "value"] - ID_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.SignalIdentifier - value: _literals_pb2.Literal - def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... - -class SignalSetResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Signal(_message.Message): - __slots__ = ["id", "type", "value"] - ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.SignalIdentifier - type: _types_pb2.LiteralType - value: _literals_pb2.Literal - def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py deleted file mode 100644 index 226866f72d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/task_execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/task_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"Q\n\x17TaskExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xe3\x01\n\x18TaskExecutionListRequest\x12R\n\x11node_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xc1\x01\n\rTaskExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.TaskExecutionClosureR\x07\x63losure\x12\x1b\n\tis_parent\x18\x04 \x01(\x08R\x08isParent\"q\n\x11TaskExecutionList\x12\x46\n\x0ftask_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.TaskExecutionR\x0etaskExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x9c\x06\n\x14TaskExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\x0c \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12*\n\x04logs\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x38\n\x0b\x63ustom_info\x18\t \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12\x16\n\x06reason\x18\n \x01(\tR\x06reason\x12\x1b\n\ttask_type\x18\x0b \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x11 \x01(\x05R\x0c\x65ventVersion\x12\x30\n\x07reasons\x18\x12 \x03(\x0b\x32\x16.flyteidl.admin.ReasonR\x07reasonsB\x0f\n\routput_result\"_\n\x06Reason\x12;\n\x0boccurred_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"U\n\x1bTaskExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xbe\x02\n\x1cTaskExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12\x38\n\nflyte_urls\x18\x05 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrlsB\xbe\x01\n\x12\x63om.flyteidl.adminB\x12TaskExecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022TaskExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None - _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' - _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._options = None - _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' - _globals['_TASKEXECUTIONGETREQUEST']._serialized_start=300 - _globals['_TASKEXECUTIONGETREQUEST']._serialized_end=381 - _globals['_TASKEXECUTIONLISTREQUEST']._serialized_start=384 - _globals['_TASKEXECUTIONLISTREQUEST']._serialized_end=611 - _globals['_TASKEXECUTION']._serialized_start=614 - _globals['_TASKEXECUTION']._serialized_end=807 - _globals['_TASKEXECUTIONLIST']._serialized_start=809 - _globals['_TASKEXECUTIONLIST']._serialized_end=922 - _globals['_TASKEXECUTIONCLOSURE']._serialized_start=925 - _globals['_TASKEXECUTIONCLOSURE']._serialized_end=1721 - _globals['_REASON']._serialized_start=1723 - _globals['_REASON']._serialized_end=1818 - _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_start=1820 - _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_end=1905 - _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_start=1908 - _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_end=2226 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi deleted file mode 100644 index 7f675cc7db..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi +++ /dev/null @@ -1,116 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.event import event_pb2 as _event_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class TaskExecutionGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskExecutionListRequest(_message.Message): - __slots__ = ["node_execution_id", "limit", "token", "filters", "sort_by"] - NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - node_execution_id: _identifier_pb2.NodeExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class TaskExecution(_message.Message): - __slots__ = ["id", "input_uri", "closure", "is_parent"] - ID_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - IS_PARENT_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - input_uri: str - closure: TaskExecutionClosure - is_parent: bool - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[TaskExecutionClosure, _Mapping]] = ..., is_parent: bool = ...) -> None: ... - -class TaskExecutionList(_message.Message): - __slots__ = ["task_executions", "token"] - TASK_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - task_executions: _containers.RepeatedCompositeFieldContainer[TaskExecution] - token: str - def __init__(self, task_executions: _Optional[_Iterable[_Union[TaskExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class TaskExecutionClosure(_message.Message): - __slots__ = ["output_uri", "error", "output_data", "phase", "logs", "started_at", "duration", "created_at", "updated_at", "custom_info", "reason", "task_type", "metadata", "event_version", "reasons"] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - LOGS_FIELD_NUMBER: _ClassVar[int] - STARTED_AT_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] - REASON_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] - REASONS_FIELD_NUMBER: _ClassVar[int] - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - phase: _execution_pb2.TaskExecution.Phase - logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - started_at: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - custom_info: _struct_pb2.Struct - reason: str - task_type: str - metadata: _event_pb2.TaskExecutionMetadata - event_version: int - reasons: _containers.RepeatedCompositeFieldContainer[Reason] - def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., reason: _Optional[str] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[_event_pb2.TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reasons: _Optional[_Iterable[_Union[Reason, _Mapping]]] = ...) -> None: ... - -class Reason(_message.Message): - __slots__ = ["occurred_at", "message"] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - occurred_at: _timestamp_pb2.Timestamp - message: str - def __init__(self, occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ...) -> None: ... - -class TaskExecutionGetDataRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskExecutionGetDataResponse(_message.Message): - __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "flyte_urls"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] - inputs: _common_pb2.UrlBlob - outputs: _common_pb2.UrlBlob - full_inputs: _literals_pb2.LiteralMap - full_outputs: _literals_pb2.LiteralMap - flyte_urls: _common_pb2.FlyteURLs - def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py deleted file mode 100644 index 97dc00dfef..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/task.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/admin/task.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\x11TaskCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12,\n\x04spec\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.TaskSpecR\x04spec\"\x14\n\x12TaskCreateResponse\"\x95\x01\n\x04Task\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1b.flyteidl.admin.TaskClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"L\n\x08TaskList\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x14.flyteidl.admin.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x88\x01\n\x08TaskSpec\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12\x43\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\x8a\x01\n\x0bTaskClosure\x12@\n\rcompiled_task\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x0c\x63ompiledTask\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAtB\xb5\x01\n\x12\x63om.flyteidl.adminB\tTaskProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\tTaskProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_TASKCREATEREQUEST']._serialized_start=208 - _globals['_TASKCREATEREQUEST']._serialized_end=316 - _globals['_TASKCREATERESPONSE']._serialized_start=318 - _globals['_TASKCREATERESPONSE']._serialized_end=338 - _globals['_TASK']._serialized_start=341 - _globals['_TASK']._serialized_end=490 - _globals['_TASKLIST']._serialized_start=492 - _globals['_TASKLIST']._serialized_end=568 - _globals['_TASKSPEC']._serialized_start=571 - _globals['_TASKSPEC']._serialized_end=707 - _globals['_TASKCLOSURE']._serialized_start=710 - _globals['_TASKCLOSURE']._serialized_end=848 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi deleted file mode 100644 index 2e6370fba5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi +++ /dev/null @@ -1,57 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class TaskCreateRequest(_message.Message): - __slots__ = ["id", "spec"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: TaskSpec - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[TaskSpec, _Mapping]] = ...) -> None: ... - -class TaskCreateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Task(_message.Message): - __slots__ = ["id", "closure", "short_description"] - ID_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - closure: TaskClosure - short_description: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[TaskClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... - -class TaskList(_message.Message): - __slots__ = ["tasks", "token"] - TASKS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - tasks: _containers.RepeatedCompositeFieldContainer[Task] - token: str - def __init__(self, tasks: _Optional[_Iterable[_Union[Task, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class TaskSpec(_message.Message): - __slots__ = ["template", "description"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - template: _tasks_pb2.TaskTemplate - description: _description_entity_pb2.DescriptionEntity - def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... - -class TaskClosure(_message.Message): - __slots__ = ["compiled_task", "created_at"] - COMPILED_TASK_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - compiled_task: _compiler_pb2.CompiledTask - created_at: _timestamp_pb2.Timestamp - def __init__(self, compiled_task: _Optional[_Union[_compiler_pb2.CompiledTask, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py deleted file mode 100644 index bcdc4a9ea0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/version.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/version.proto\x12\x0e\x66lyteidl.admin\"a\n\x12GetVersionResponse\x12K\n\x15\x63ontrol_plane_version\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.VersionR\x13\x63ontrolPlaneVersion\"W\n\x07Version\x12\x14\n\x05\x42uild\x18\x01 \x01(\tR\x05\x42uild\x12\x18\n\x07Version\x18\x02 \x01(\tR\x07Version\x12\x1c\n\tBuildTime\x18\x03 \x01(\tR\tBuildTime\"\x13\n\x11GetVersionRequestB\xb8\x01\n\x12\x63om.flyteidl.adminB\x0cVersionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.version_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014VersionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_GETVERSIONRESPONSE']._serialized_start=48 - _globals['_GETVERSIONRESPONSE']._serialized_end=145 - _globals['_VERSION']._serialized_start=147 - _globals['_VERSION']._serialized_end=234 - _globals['_GETVERSIONREQUEST']._serialized_start=236 - _globals['_GETVERSIONREQUEST']._serialized_end=255 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi deleted file mode 100644 index a83d0baa8f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class GetVersionResponse(_message.Message): - __slots__ = ["control_plane_version"] - CONTROL_PLANE_VERSION_FIELD_NUMBER: _ClassVar[int] - control_plane_version: Version - def __init__(self, control_plane_version: _Optional[_Union[Version, _Mapping]] = ...) -> None: ... - -class Version(_message.Message): - __slots__ = ["Build", "Version", "BuildTime"] - BUILD_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - BUILDTIME_FIELD_NUMBER: _ClassVar[int] - Build: str - Version: str - BuildTime: str - def __init__(self, Build: _Optional[str] = ..., Version: _Optional[str] = ..., BuildTime: _Optional[str] = ...) -> None: ... - -class GetVersionRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py deleted file mode 100644 index 1a8ee5c48e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/workflow_attributes.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(flyteidl/admin/workflow_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xc9\x01\n\x12WorkflowAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12S\n\x13matching_attributes\x18\x04 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"e\n\x1fWorkflowAttributesUpdateRequest\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\"\n WorkflowAttributesUpdateResponse\"\xc6\x01\n\x1cWorkflowAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"c\n\x1dWorkflowAttributesGetResponse\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\xc9\x01\n\x1fWorkflowAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"\"\n WorkflowAttributesDeleteResponseB\xc3\x01\n\x12\x63om.flyteidl.adminB\x17WorkflowAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_attributes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\027WorkflowAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_WORKFLOWATTRIBUTES']._serialized_start=102 - _globals['_WORKFLOWATTRIBUTES']._serialized_end=303 - _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_start=305 - _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_end=406 - _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_start=408 - _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_end=442 - _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_start=445 - _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_end=643 - _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_start=645 - _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_end=744 - _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_start=747 - _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_end=948 - _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_start=950 - _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_end=984 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi deleted file mode 100644 index 57c7d80c80..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi +++ /dev/null @@ -1,68 +0,0 @@ -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowAttributes(_message.Message): - __slots__ = ["project", "domain", "workflow", "matching_attributes", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - workflow: str - matching_attributes: _matchable_resource_pb2.MatchingAttributes - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... - -class WorkflowAttributesUpdateRequest(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: WorkflowAttributes - def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... - -class WorkflowAttributesUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class WorkflowAttributesGetRequest(_message.Message): - __slots__ = ["project", "domain", "workflow", "resource_type", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - workflow: str - resource_type: _matchable_resource_pb2.MatchableResource - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class WorkflowAttributesGetResponse(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: WorkflowAttributes - def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... - -class WorkflowAttributesDeleteRequest(_message.Message): - __slots__ = ["project", "domain", "workflow", "resource_type", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - workflow: str - resource_type: _matchable_resource_pb2.MatchableResource - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... - -class WorkflowAttributesDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py deleted file mode 100644 index 360e634029..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/workflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/workflow.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x15WorkflowCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x30\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpecR\x04spec\"\x18\n\x16WorkflowCreateResponse\"\x9d\x01\n\x08Workflow\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x39\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"\\\n\x0cWorkflowList\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.WorkflowR\tworkflows\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xd6\x01\n\x0cWorkflowSpec\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubWorkflows\x12\x43\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\xa1\x01\n\x0fWorkflowClosure\x12S\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"R\n%WorkflowErrorExistsDifferentStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"R\n%WorkflowErrorExistsIdenticalStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\x95\x02\n\x1b\x43reateWorkflowFailureReason\x12u\n\x1a\x65xists_different_structure\x18\x01 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsDifferentStructureH\x00R\x18\x65xistsDifferentStructure\x12u\n\x1a\x65xists_identical_structure\x18\x02 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsIdenticalStructureH\x00R\x18\x65xistsIdenticalStructureB\x08\n\x06reasonB\xb9\x01\n\x12\x63om.flyteidl.adminB\rWorkflowProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rWorkflowProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_WORKFLOWCREATEREQUEST']._serialized_start=215 - _globals['_WORKFLOWCREATEREQUEST']._serialized_end=331 - _globals['_WORKFLOWCREATERESPONSE']._serialized_start=333 - _globals['_WORKFLOWCREATERESPONSE']._serialized_end=357 - _globals['_WORKFLOW']._serialized_start=360 - _globals['_WORKFLOW']._serialized_end=517 - _globals['_WORKFLOWLIST']._serialized_start=519 - _globals['_WORKFLOWLIST']._serialized_end=611 - _globals['_WORKFLOWSPEC']._serialized_start=614 - _globals['_WORKFLOWSPEC']._serialized_end=828 - _globals['_WORKFLOWCLOSURE']._serialized_start=831 - _globals['_WORKFLOWCLOSURE']._serialized_end=992 - _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_start=994 - _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_end=1076 - _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_start=1078 - _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_end=1160 - _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_start=1163 - _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_end=1440 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi deleted file mode 100644 index 294d595855..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi +++ /dev/null @@ -1,79 +0,0 @@ -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowCreateRequest(_message.Message): - __slots__ = ["id", "spec"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: WorkflowSpec - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[WorkflowSpec, _Mapping]] = ...) -> None: ... - -class WorkflowCreateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Workflow(_message.Message): - __slots__ = ["id", "closure", "short_description"] - ID_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - closure: WorkflowClosure - short_description: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[WorkflowClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... - -class WorkflowList(_message.Message): - __slots__ = ["workflows", "token"] - WORKFLOWS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - workflows: _containers.RepeatedCompositeFieldContainer[Workflow] - token: str - def __init__(self, workflows: _Optional[_Iterable[_Union[Workflow, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class WorkflowSpec(_message.Message): - __slots__ = ["template", "sub_workflows", "description"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - template: _workflow_pb2.WorkflowTemplate - sub_workflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] - description: _description_entity_pb2.DescriptionEntity - def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... - -class WorkflowClosure(_message.Message): - __slots__ = ["compiled_workflow", "created_at"] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - created_at: _timestamp_pb2.Timestamp - def __init__(self, compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class WorkflowErrorExistsDifferentStructure(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class WorkflowErrorExistsIdenticalStructure(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class CreateWorkflowFailureReason(_message.Message): - __slots__ = ["exists_different_structure", "exists_identical_structure"] - EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER: _ClassVar[int] - EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER: _ClassVar[int] - exists_different_structure: WorkflowErrorExistsDifferentStructure - exists_identical_structure: WorkflowErrorExistsIdenticalStructure - def __init__(self, exists_different_structure: _Optional[_Union[WorkflowErrorExistsDifferentStructure, _Mapping]] = ..., exists_identical_structure: _Optional[_Union[WorkflowErrorExistsIdenticalStructure, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/__init__.py b/flyteidl/gen/pb_python/flyteidl/core/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py deleted file mode 100644 index 06e8ff7f81..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/artifact_id.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/artifact_id.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"e\n\x0b\x41rtifactKey\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"\xb9\x01\n\x13\x41rtifactBindingData\x12\x14\n\x05index\x18\x01 \x01(\rR\x05index\x12%\n\rpartition_key\x18\x02 \x01(\tH\x00R\x0cpartitionKey\x12\x35\n\x16\x62ind_to_time_partition\x18\x03 \x01(\x08H\x00R\x13\x62indToTimePartition\x12\x1c\n\ttransform\x18\x04 \x01(\tR\ttransformB\x10\n\x0epartition_data\"$\n\x10InputBindingData\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\"\x92\x02\n\nLabelValue\x12#\n\x0cstatic_value\x18\x01 \x01(\tH\x00R\x0bstaticValue\x12;\n\ntime_value\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\ttimeValue\x12Q\n\x11triggered_binding\x18\x03 \x01(\x0b\x32\".flyteidl.core.ArtifactBindingDataH\x00R\x10triggeredBinding\x12\x46\n\rinput_binding\x18\x04 \x01(\x0b\x32\x1f.flyteidl.core.InputBindingDataH\x00R\x0cinputBindingB\x07\n\x05value\"\x9d\x01\n\nPartitions\x12:\n\x05value\x18\x01 \x03(\x0b\x32$.flyteidl.core.Partitions.ValueEntryR\x05value\x1aS\n\nValueEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value:\x02\x38\x01\"@\n\rTimePartition\x12/\n\x05value\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value\"\xe5\x01\n\nArtifactID\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x39\n\npartitions\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.PartitionsR\npartitions\x12\x43\n\x0etime_partition\x18\x04 \x01(\x0b\x32\x1c.flyteidl.core.TimePartitionR\rtimePartition\"}\n\x0b\x41rtifactTag\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value\"\xf0\x01\n\rArtifactQuery\x12<\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDH\x00R\nartifactId\x12?\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactTagH\x00R\x0b\x61rtifactTag\x12\x12\n\x03uri\x18\x03 \x01(\tH\x00R\x03uri\x12>\n\x07\x62inding\x18\x04 \x01(\x0b\x32\".flyteidl.core.ArtifactBindingDataH\x00R\x07\x62indingB\x0c\n\nidentifierB\xb5\x01\n\x11\x63om.flyteidl.coreB\x0f\x41rtifactIdProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.artifact_id_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017ArtifactIdProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _PARTITIONS_VALUEENTRY._options = None - _PARTITIONS_VALUEENTRY._serialized_options = b'8\001' - _globals['_ARTIFACTKEY']._serialized_start=115 - _globals['_ARTIFACTKEY']._serialized_end=216 - _globals['_ARTIFACTBINDINGDATA']._serialized_start=219 - _globals['_ARTIFACTBINDINGDATA']._serialized_end=404 - _globals['_INPUTBINDINGDATA']._serialized_start=406 - _globals['_INPUTBINDINGDATA']._serialized_end=442 - _globals['_LABELVALUE']._serialized_start=445 - _globals['_LABELVALUE']._serialized_end=719 - _globals['_PARTITIONS']._serialized_start=722 - _globals['_PARTITIONS']._serialized_end=879 - _globals['_PARTITIONS_VALUEENTRY']._serialized_start=796 - _globals['_PARTITIONS_VALUEENTRY']._serialized_end=879 - _globals['_TIMEPARTITION']._serialized_start=881 - _globals['_TIMEPARTITION']._serialized_end=945 - _globals['_ARTIFACTID']._serialized_start=948 - _globals['_ARTIFACTID']._serialized_end=1177 - _globals['_ARTIFACTTAG']._serialized_start=1179 - _globals['_ARTIFACTTAG']._serialized_end=1304 - _globals['_ARTIFACTQUERY']._serialized_start=1307 - _globals['_ARTIFACTQUERY']._serialized_end=1547 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi deleted file mode 100644 index 5eacdbb52f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi +++ /dev/null @@ -1,101 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ArtifactKey(_message.Message): - __slots__ = ["project", "domain", "name", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class ArtifactBindingData(_message.Message): - __slots__ = ["index", "partition_key", "bind_to_time_partition", "transform"] - INDEX_FIELD_NUMBER: _ClassVar[int] - PARTITION_KEY_FIELD_NUMBER: _ClassVar[int] - BIND_TO_TIME_PARTITION_FIELD_NUMBER: _ClassVar[int] - TRANSFORM_FIELD_NUMBER: _ClassVar[int] - index: int - partition_key: str - bind_to_time_partition: bool - transform: str - def __init__(self, index: _Optional[int] = ..., partition_key: _Optional[str] = ..., bind_to_time_partition: bool = ..., transform: _Optional[str] = ...) -> None: ... - -class InputBindingData(_message.Message): - __slots__ = ["var"] - VAR_FIELD_NUMBER: _ClassVar[int] - var: str - def __init__(self, var: _Optional[str] = ...) -> None: ... - -class LabelValue(_message.Message): - __slots__ = ["static_value", "time_value", "triggered_binding", "input_binding"] - STATIC_VALUE_FIELD_NUMBER: _ClassVar[int] - TIME_VALUE_FIELD_NUMBER: _ClassVar[int] - TRIGGERED_BINDING_FIELD_NUMBER: _ClassVar[int] - INPUT_BINDING_FIELD_NUMBER: _ClassVar[int] - static_value: str - time_value: _timestamp_pb2.Timestamp - triggered_binding: ArtifactBindingData - input_binding: InputBindingData - def __init__(self, static_value: _Optional[str] = ..., time_value: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., triggered_binding: _Optional[_Union[ArtifactBindingData, _Mapping]] = ..., input_binding: _Optional[_Union[InputBindingData, _Mapping]] = ...) -> None: ... - -class Partitions(_message.Message): - __slots__ = ["value"] - class ValueEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: LabelValue - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... - VALUE_FIELD_NUMBER: _ClassVar[int] - value: _containers.MessageMap[str, LabelValue] - def __init__(self, value: _Optional[_Mapping[str, LabelValue]] = ...) -> None: ... - -class TimePartition(_message.Message): - __slots__ = ["value"] - VALUE_FIELD_NUMBER: _ClassVar[int] - value: LabelValue - def __init__(self, value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... - -class ArtifactID(_message.Message): - __slots__ = ["artifact_key", "version", "partitions", "time_partition"] - ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - PARTITIONS_FIELD_NUMBER: _ClassVar[int] - TIME_PARTITION_FIELD_NUMBER: _ClassVar[int] - artifact_key: ArtifactKey - version: str - partitions: Partitions - time_partition: TimePartition - def __init__(self, artifact_key: _Optional[_Union[ArtifactKey, _Mapping]] = ..., version: _Optional[str] = ..., partitions: _Optional[_Union[Partitions, _Mapping]] = ..., time_partition: _Optional[_Union[TimePartition, _Mapping]] = ...) -> None: ... - -class ArtifactTag(_message.Message): - __slots__ = ["artifact_key", "value"] - ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - artifact_key: ArtifactKey - value: LabelValue - def __init__(self, artifact_key: _Optional[_Union[ArtifactKey, _Mapping]] = ..., value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... - -class ArtifactQuery(_message.Message): - __slots__ = ["artifact_id", "artifact_tag", "uri", "binding"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - BINDING_FIELD_NUMBER: _ClassVar[int] - artifact_id: ArtifactID - artifact_tag: ArtifactTag - uri: str - binding: ArtifactBindingData - def __init__(self, artifact_id: _Optional[_Union[ArtifactID, _Mapping]] = ..., artifact_tag: _Optional[_Union[ArtifactTag, _Mapping]] = ..., uri: _Optional[str] = ..., binding: _Optional[_Union[ArtifactBindingData, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py deleted file mode 100644 index 2635c044db..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/catalog.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/catalog.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\"I\n\x12\x43\x61talogArtifactTag\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\x83\x02\n\x0f\x43\x61talogMetadata\x12\x38\n\ndataset_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\tdatasetId\x12\x44\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32!.flyteidl.core.CatalogArtifactTagR\x0b\x61rtifactTag\x12\\\n\x15source_task_execution\x18\x03 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x13sourceTaskExecutionB\x12\n\x10source_execution\"\x9e\x01\n\x12\x43\x61talogReservation\"\x87\x01\n\x06Status\x12\x18\n\x14RESERVATION_DISABLED\x10\x00\x12\x18\n\x14RESERVATION_ACQUIRED\x10\x01\x12\x16\n\x12RESERVATION_EXISTS\x10\x02\x12\x18\n\x14RESERVATION_RELEASED\x10\x03\x12\x17\n\x13RESERVATION_FAILURE\x10\x04*\xb3\x01\n\x12\x43\x61talogCacheStatus\x12\x12\n\x0e\x43\x41\x43HE_DISABLED\x10\x00\x12\x0e\n\nCACHE_MISS\x10\x01\x12\r\n\tCACHE_HIT\x10\x02\x12\x13\n\x0f\x43\x41\x43HE_POPULATED\x10\x03\x12\x18\n\x14\x43\x41\x43HE_LOOKUP_FAILURE\x10\x04\x12\x15\n\x11\x43\x41\x43HE_PUT_FAILURE\x10\x05\x12\x11\n\rCACHE_SKIPPED\x10\x06\x12\x11\n\rCACHE_EVICTED\x10\x07\x42\xb2\x01\n\x11\x63om.flyteidl.coreB\x0c\x43\x61talogProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.catalog_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014CatalogProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_CATALOGCACHESTATUS']._serialized_start=577 - _globals['_CATALOGCACHESTATUS']._serialized_end=756 - _globals['_CATALOGARTIFACTTAG']._serialized_start=78 - _globals['_CATALOGARTIFACTTAG']._serialized_end=151 - _globals['_CATALOGMETADATA']._serialized_start=154 - _globals['_CATALOGMETADATA']._serialized_end=413 - _globals['_CATALOGRESERVATION']._serialized_start=416 - _globals['_CATALOGRESERVATION']._serialized_end=574 - _globals['_CATALOGRESERVATION_STATUS']._serialized_start=439 - _globals['_CATALOGRESERVATION_STATUS']._serialized_end=574 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi deleted file mode 100644 index f28fadcccd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi +++ /dev/null @@ -1,60 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CatalogCacheStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CACHE_DISABLED: _ClassVar[CatalogCacheStatus] - CACHE_MISS: _ClassVar[CatalogCacheStatus] - CACHE_HIT: _ClassVar[CatalogCacheStatus] - CACHE_POPULATED: _ClassVar[CatalogCacheStatus] - CACHE_LOOKUP_FAILURE: _ClassVar[CatalogCacheStatus] - CACHE_PUT_FAILURE: _ClassVar[CatalogCacheStatus] - CACHE_SKIPPED: _ClassVar[CatalogCacheStatus] - CACHE_EVICTED: _ClassVar[CatalogCacheStatus] -CACHE_DISABLED: CatalogCacheStatus -CACHE_MISS: CatalogCacheStatus -CACHE_HIT: CatalogCacheStatus -CACHE_POPULATED: CatalogCacheStatus -CACHE_LOOKUP_FAILURE: CatalogCacheStatus -CACHE_PUT_FAILURE: CatalogCacheStatus -CACHE_SKIPPED: CatalogCacheStatus -CACHE_EVICTED: CatalogCacheStatus - -class CatalogArtifactTag(_message.Message): - __slots__ = ["artifact_id", "name"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - artifact_id: str - name: str - def __init__(self, artifact_id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class CatalogMetadata(_message.Message): - __slots__ = ["dataset_id", "artifact_tag", "source_task_execution"] - DATASET_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] - SOURCE_TASK_EXECUTION_FIELD_NUMBER: _ClassVar[int] - dataset_id: _identifier_pb2.Identifier - artifact_tag: CatalogArtifactTag - source_task_execution: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, dataset_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_tag: _Optional[_Union[CatalogArtifactTag, _Mapping]] = ..., source_task_execution: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class CatalogReservation(_message.Message): - __slots__ = [] - class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RESERVATION_DISABLED: _ClassVar[CatalogReservation.Status] - RESERVATION_ACQUIRED: _ClassVar[CatalogReservation.Status] - RESERVATION_EXISTS: _ClassVar[CatalogReservation.Status] - RESERVATION_RELEASED: _ClassVar[CatalogReservation.Status] - RESERVATION_FAILURE: _ClassVar[CatalogReservation.Status] - RESERVATION_DISABLED: CatalogReservation.Status - RESERVATION_ACQUIRED: CatalogReservation.Status - RESERVATION_EXISTS: CatalogReservation.Status - RESERVATION_RELEASED: CatalogReservation.Status - RESERVATION_FAILURE: CatalogReservation.Status - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py deleted file mode 100644 index 6ecd85a11d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/compiler.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x87\x03\n\rConnectionSet\x12L\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntryR\ndownstream\x12\x46\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntryR\x08upstream\x1a\x1a\n\x06IdList\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x62\n\x0f\x44ownstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\x1a`\n\rUpstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\"\x8f\x01\n\x10\x43ompiledWorkflow\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12>\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSetR\x0b\x63onnections\"S\n\x12\x43ompiledLaunchPlan\x12=\n\x08template\x18\x01 \x01(\x0b\x32!.flyteidl.core.LaunchPlanTemplateR\x08template\"G\n\x0c\x43ompiledTask\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\"\x93\x02\n\x17\x43ompiledWorkflowClosure\x12\x39\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x07primary\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x0csubWorkflows\x12\x31\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x05tasks\x12\x44\n\x0claunch_plans\x18\x04 \x03(\x0b\x32!.flyteidl.core.CompiledLaunchPlanR\x0blaunchPlansB\xb3\x01\n\x11\x63om.flyteidl.coreB\rCompilerProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.compiler_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rCompilerProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _CONNECTIONSET_DOWNSTREAMENTRY._options = None - _CONNECTIONSET_DOWNSTREAMENTRY._serialized_options = b'8\001' - _CONNECTIONSET_UPSTREAMENTRY._options = None - _CONNECTIONSET_UPSTREAMENTRY._serialized_options = b'8\001' - _globals['_CONNECTIONSET']._serialized_start=168 - _globals['_CONNECTIONSET']._serialized_end=559 - _globals['_CONNECTIONSET_IDLIST']._serialized_start=335 - _globals['_CONNECTIONSET_IDLIST']._serialized_end=361 - _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_start=363 - _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_end=461 - _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_start=463 - _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_end=559 - _globals['_COMPILEDWORKFLOW']._serialized_start=562 - _globals['_COMPILEDWORKFLOW']._serialized_end=705 - _globals['_COMPILEDLAUNCHPLAN']._serialized_start=707 - _globals['_COMPILEDLAUNCHPLAN']._serialized_end=790 - _globals['_COMPILEDTASK']._serialized_start=792 - _globals['_COMPILEDTASK']._serialized_end=863 - _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_start=866 - _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_end=1141 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi deleted file mode 100644 index 26b6caa4aa..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi +++ /dev/null @@ -1,69 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ConnectionSet(_message.Message): - __slots__ = ["downstream", "upstream"] - class IdList(_message.Message): - __slots__ = ["ids"] - IDS_FIELD_NUMBER: _ClassVar[int] - ids: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ... - class DownstreamEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: ConnectionSet.IdList - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... - class UpstreamEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: ConnectionSet.IdList - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... - DOWNSTREAM_FIELD_NUMBER: _ClassVar[int] - UPSTREAM_FIELD_NUMBER: _ClassVar[int] - downstream: _containers.MessageMap[str, ConnectionSet.IdList] - upstream: _containers.MessageMap[str, ConnectionSet.IdList] - def __init__(self, downstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ..., upstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ...) -> None: ... - -class CompiledWorkflow(_message.Message): - __slots__ = ["template", "connections"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - CONNECTIONS_FIELD_NUMBER: _ClassVar[int] - template: _workflow_pb2.WorkflowTemplate - connections: ConnectionSet - def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., connections: _Optional[_Union[ConnectionSet, _Mapping]] = ...) -> None: ... - -class CompiledLaunchPlan(_message.Message): - __slots__ = ["template"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - template: _workflow_pb2.LaunchPlanTemplate - def __init__(self, template: _Optional[_Union[_workflow_pb2.LaunchPlanTemplate, _Mapping]] = ...) -> None: ... - -class CompiledTask(_message.Message): - __slots__ = ["template"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - template: _tasks_pb2.TaskTemplate - def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ...) -> None: ... - -class CompiledWorkflowClosure(_message.Message): - __slots__ = ["primary", "sub_workflows", "tasks", "launch_plans"] - PRIMARY_FIELD_NUMBER: _ClassVar[int] - SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] - TASKS_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] - primary: CompiledWorkflow - sub_workflows: _containers.RepeatedCompositeFieldContainer[CompiledWorkflow] - tasks: _containers.RepeatedCompositeFieldContainer[CompiledTask] - launch_plans: _containers.RepeatedCompositeFieldContainer[CompiledLaunchPlan] - def __init__(self, primary: _Optional[_Union[CompiledWorkflow, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[CompiledWorkflow, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[CompiledTask, _Mapping]]] = ..., launch_plans: _Optional[_Iterable[_Union[CompiledLaunchPlan, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py deleted file mode 100644 index ffa115e024..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/condition.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/condition.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/literals.proto\"\x8f\x02\n\x14\x43omparisonExpression\x12H\n\x08operator\x18\x01 \x01(\x0e\x32,.flyteidl.core.ComparisonExpression.OperatorR\x08operator\x12\x35\n\nleft_value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.OperandR\tleftValue\x12\x37\n\x0bright_value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.OperandR\nrightValue\"=\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03NEQ\x10\x01\x12\x06\n\x02GT\x10\x02\x12\x07\n\x03GTE\x10\x03\x12\x06\n\x02LT\x10\x04\x12\x07\n\x03LTE\x10\x05\"\x93\x01\n\x07Operand\x12<\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveB\x02\x18\x01H\x00R\tprimitive\x12\x12\n\x03var\x18\x02 \x01(\tH\x00R\x03var\x12/\n\x06scalar\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalarB\x05\n\x03val\"\xac\x01\n\x11\x42ooleanExpression\x12H\n\x0b\x63onjunction\x18\x01 \x01(\x0b\x32$.flyteidl.core.ConjunctionExpressionH\x00R\x0b\x63onjunction\x12\x45\n\ncomparison\x18\x02 \x01(\x0b\x32#.flyteidl.core.ComparisonExpressionH\x00R\ncomparisonB\x06\n\x04\x65xpr\"\xa5\x02\n\x15\x43onjunctionExpression\x12P\n\x08operator\x18\x01 \x01(\x0e\x32\x34.flyteidl.core.ConjunctionExpression.LogicalOperatorR\x08operator\x12I\n\x0fleft_expression\x18\x02 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0eleftExpression\x12K\n\x10right_expression\x18\x03 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0frightExpression\"\"\n\x0fLogicalOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x42\xb4\x01\n\x11\x63om.flyteidl.coreB\x0e\x43onditionProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.condition_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ConditionProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _OPERAND.fields_by_name['primitive']._options = None - _OPERAND.fields_by_name['primitive']._serialized_options = b'\030\001' - _globals['_COMPARISONEXPRESSION']._serialized_start=79 - _globals['_COMPARISONEXPRESSION']._serialized_end=350 - _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_start=289 - _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_end=350 - _globals['_OPERAND']._serialized_start=353 - _globals['_OPERAND']._serialized_end=500 - _globals['_BOOLEANEXPRESSION']._serialized_start=503 - _globals['_BOOLEANEXPRESSION']._serialized_end=675 - _globals['_CONJUNCTIONEXPRESSION']._serialized_start=678 - _globals['_CONJUNCTIONEXPRESSION']._serialized_end=971 - _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_start=937 - _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_end=971 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi deleted file mode 100644 index 4f4de63ad7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi +++ /dev/null @@ -1,65 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ComparisonExpression(_message.Message): - __slots__ = ["operator", "left_value", "right_value"] - class Operator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EQ: _ClassVar[ComparisonExpression.Operator] - NEQ: _ClassVar[ComparisonExpression.Operator] - GT: _ClassVar[ComparisonExpression.Operator] - GTE: _ClassVar[ComparisonExpression.Operator] - LT: _ClassVar[ComparisonExpression.Operator] - LTE: _ClassVar[ComparisonExpression.Operator] - EQ: ComparisonExpression.Operator - NEQ: ComparisonExpression.Operator - GT: ComparisonExpression.Operator - GTE: ComparisonExpression.Operator - LT: ComparisonExpression.Operator - LTE: ComparisonExpression.Operator - OPERATOR_FIELD_NUMBER: _ClassVar[int] - LEFT_VALUE_FIELD_NUMBER: _ClassVar[int] - RIGHT_VALUE_FIELD_NUMBER: _ClassVar[int] - operator: ComparisonExpression.Operator - left_value: Operand - right_value: Operand - def __init__(self, operator: _Optional[_Union[ComparisonExpression.Operator, str]] = ..., left_value: _Optional[_Union[Operand, _Mapping]] = ..., right_value: _Optional[_Union[Operand, _Mapping]] = ...) -> None: ... - -class Operand(_message.Message): - __slots__ = ["primitive", "var", "scalar"] - PRIMITIVE_FIELD_NUMBER: _ClassVar[int] - VAR_FIELD_NUMBER: _ClassVar[int] - SCALAR_FIELD_NUMBER: _ClassVar[int] - primitive: _literals_pb2.Primitive - var: str - scalar: _literals_pb2.Scalar - def __init__(self, primitive: _Optional[_Union[_literals_pb2.Primitive, _Mapping]] = ..., var: _Optional[str] = ..., scalar: _Optional[_Union[_literals_pb2.Scalar, _Mapping]] = ...) -> None: ... - -class BooleanExpression(_message.Message): - __slots__ = ["conjunction", "comparison"] - CONJUNCTION_FIELD_NUMBER: _ClassVar[int] - COMPARISON_FIELD_NUMBER: _ClassVar[int] - conjunction: ConjunctionExpression - comparison: ComparisonExpression - def __init__(self, conjunction: _Optional[_Union[ConjunctionExpression, _Mapping]] = ..., comparison: _Optional[_Union[ComparisonExpression, _Mapping]] = ...) -> None: ... - -class ConjunctionExpression(_message.Message): - __slots__ = ["operator", "left_expression", "right_expression"] - class LogicalOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - AND: _ClassVar[ConjunctionExpression.LogicalOperator] - OR: _ClassVar[ConjunctionExpression.LogicalOperator] - AND: ConjunctionExpression.LogicalOperator - OR: ConjunctionExpression.LogicalOperator - OPERATOR_FIELD_NUMBER: _ClassVar[int] - LEFT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] - RIGHT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] - operator: ConjunctionExpression.LogicalOperator - left_expression: BooleanExpression - right_expression: BooleanExpression - def __init__(self, operator: _Optional[_Union[ConjunctionExpression.LogicalOperator, str]] = ..., left_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ..., right_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py deleted file mode 100644 index 583a11294e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/dynamic_job.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/dynamic_job.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x8a\x02\n\x0e\x44ynamicJobSpec\x12)\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12#\n\rmin_successes\x18\x02 \x01(\x03R\x0cminSuccesses\x12\x30\n\x07outputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x31\n\x05tasks\x18\x04 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasks\x12\x43\n\x0csubworkflows\x18\x05 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubworkflowsB\xb5\x01\n\x11\x63om.flyteidl.coreB\x0f\x44ynamicJobProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.dynamic_job_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017DynamicJobProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_DYNAMICJOBSPEC']._serialized_start=138 - _globals['_DYNAMICJOBSPEC']._serialized_end=404 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi deleted file mode 100644 index 20ca83f300..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi +++ /dev/null @@ -1,23 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DynamicJobSpec(_message.Message): - __slots__ = ["nodes", "min_successes", "outputs", "tasks", "subworkflows"] - NODES_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - TASKS_FIELD_NUMBER: _ClassVar[int] - SUBWORKFLOWS_FIELD_NUMBER: _ClassVar[int] - nodes: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.Node] - min_successes: int - outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] - tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] - subworkflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] - def __init__(self, nodes: _Optional[_Iterable[_Union[_workflow_pb2.Node, _Mapping]]] = ..., min_successes: _Optional[int] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ..., subworkflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py deleted file mode 100644 index 68182fd259..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/errors.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/execution.proto\"\xe5\x01\n\x0e\x43ontainerError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.KindR\x04kind\x12?\n\x06origin\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x06origin\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"D\n\rErrorDocument\x12\x33\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorR\x05\x65rrorB\xb1\x01\n\x11\x63om.flyteidl.coreB\x0b\x45rrorsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.errors_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\013ErrorsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_CONTAINERERROR']._serialized_start=77 - _globals['_CONTAINERERROR']._serialized_end=306 - _globals['_CONTAINERERROR_KIND']._serialized_start=262 - _globals['_CONTAINERERROR_KIND']._serialized_end=306 - _globals['_ERRORDOCUMENT']._serialized_start=308 - _globals['_ERRORDOCUMENT']._serialized_end=376 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi deleted file mode 100644 index b13aa40915..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi +++ /dev/null @@ -1,31 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ContainerError(_message.Message): - __slots__ = ["code", "message", "kind", "origin"] - class Kind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - NON_RECOVERABLE: _ClassVar[ContainerError.Kind] - RECOVERABLE: _ClassVar[ContainerError.Kind] - NON_RECOVERABLE: ContainerError.Kind - RECOVERABLE: ContainerError.Kind - CODE_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - KIND_FIELD_NUMBER: _ClassVar[int] - ORIGIN_FIELD_NUMBER: _ClassVar[int] - code: str - message: str - kind: ContainerError.Kind - origin: _execution_pb2.ExecutionError.ErrorKind - def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., kind: _Optional[_Union[ContainerError.Kind, str]] = ..., origin: _Optional[_Union[_execution_pb2.ExecutionError.ErrorKind, str]] = ...) -> None: ... - -class ErrorDocument(_message.Message): - __slots__ = ["error"] - ERROR_FIELD_NUMBER: _ClassVar[int] - error: ContainerError - def __init__(self, error: _Optional[_Union[ContainerError, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py deleted file mode 100644 index c2c9810083..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/execution.proto\x12\rflyteidl.core\x1a\x1egoogle/protobuf/duration.proto\"\xa7\x01\n\x11WorkflowExecution\"\x91\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nSUCCEEDING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0b\n\x07\x46\x41ILING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x41\x42ORTED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x0c\n\x08\x41\x42ORTING\x10\t\"\xb6\x01\n\rNodeExecution\"\xa4\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x46\x41ILING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x13\n\x0f\x44YNAMIC_RUNNING\x10\t\x12\r\n\tRECOVERED\x10\n\"\x96\x01\n\rTaskExecution\"\x84\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x41\x42ORTED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x10\n\x0cINITIALIZING\x10\x06\x12\x19\n\x15WAITING_FOR_RESOURCES\x10\x07\"\xc8\x01\n\x0e\x45xecutionError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1b\n\terror_uri\x18\x03 \x01(\tR\x08\x65rrorUri\x12;\n\x04kind\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x04kind\".\n\tErrorKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\"\xda\x01\n\x07TaskLog\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12K\n\x0emessage_format\x18\x03 \x01(\x0e\x32$.flyteidl.core.TaskLog.MessageFormatR\rmessageFormat\x12+\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x03ttl\"/\n\rMessageFormat\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43SV\x10\x01\x12\x08\n\x04JSON\x10\x02\"Z\n\x14QualityOfServiceSpec\x12\x42\n\x0fqueueing_budget\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0equeueingBudget\"\xce\x01\n\x10QualityOfService\x12:\n\x04tier\x18\x01 \x01(\x0e\x32$.flyteidl.core.QualityOfService.TierH\x00R\x04tier\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32#.flyteidl.core.QualityOfServiceSpecH\x00R\x04spec\"4\n\x04Tier\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x42\r\n\x0b\x64\x65signationB\xb4\x01\n\x11\x63om.flyteidl.coreB\x0e\x45xecutionProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ExecutionProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_WORKFLOWEXECUTION']._serialized_start=81 - _globals['_WORKFLOWEXECUTION']._serialized_end=248 - _globals['_WORKFLOWEXECUTION_PHASE']._serialized_start=103 - _globals['_WORKFLOWEXECUTION_PHASE']._serialized_end=248 - _globals['_NODEEXECUTION']._serialized_start=251 - _globals['_NODEEXECUTION']._serialized_end=433 - _globals['_NODEEXECUTION_PHASE']._serialized_start=269 - _globals['_NODEEXECUTION_PHASE']._serialized_end=433 - _globals['_TASKEXECUTION']._serialized_start=436 - _globals['_TASKEXECUTION']._serialized_end=586 - _globals['_TASKEXECUTION_PHASE']._serialized_start=454 - _globals['_TASKEXECUTION_PHASE']._serialized_end=586 - _globals['_EXECUTIONERROR']._serialized_start=589 - _globals['_EXECUTIONERROR']._serialized_end=789 - _globals['_EXECUTIONERROR_ERRORKIND']._serialized_start=743 - _globals['_EXECUTIONERROR_ERRORKIND']._serialized_end=789 - _globals['_TASKLOG']._serialized_start=792 - _globals['_TASKLOG']._serialized_end=1010 - _globals['_TASKLOG_MESSAGEFORMAT']._serialized_start=963 - _globals['_TASKLOG_MESSAGEFORMAT']._serialized_end=1010 - _globals['_QUALITYOFSERVICESPEC']._serialized_start=1012 - _globals['_QUALITYOFSERVICESPEC']._serialized_end=1102 - _globals['_QUALITYOFSERVICE']._serialized_start=1105 - _globals['_QUALITYOFSERVICE']._serialized_end=1311 - _globals['_QUALITYOFSERVICE_TIER']._serialized_start=1244 - _globals['_QUALITYOFSERVICE_TIER']._serialized_end=1296 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi deleted file mode 100644 index 2508c1b4ac..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi +++ /dev/null @@ -1,147 +0,0 @@ -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowExecution(_message.Message): - __slots__ = [] - class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[WorkflowExecution.Phase] - QUEUED: _ClassVar[WorkflowExecution.Phase] - RUNNING: _ClassVar[WorkflowExecution.Phase] - SUCCEEDING: _ClassVar[WorkflowExecution.Phase] - SUCCEEDED: _ClassVar[WorkflowExecution.Phase] - FAILING: _ClassVar[WorkflowExecution.Phase] - FAILED: _ClassVar[WorkflowExecution.Phase] - ABORTED: _ClassVar[WorkflowExecution.Phase] - TIMED_OUT: _ClassVar[WorkflowExecution.Phase] - ABORTING: _ClassVar[WorkflowExecution.Phase] - UNDEFINED: WorkflowExecution.Phase - QUEUED: WorkflowExecution.Phase - RUNNING: WorkflowExecution.Phase - SUCCEEDING: WorkflowExecution.Phase - SUCCEEDED: WorkflowExecution.Phase - FAILING: WorkflowExecution.Phase - FAILED: WorkflowExecution.Phase - ABORTED: WorkflowExecution.Phase - TIMED_OUT: WorkflowExecution.Phase - ABORTING: WorkflowExecution.Phase - def __init__(self) -> None: ... - -class NodeExecution(_message.Message): - __slots__ = [] - class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[NodeExecution.Phase] - QUEUED: _ClassVar[NodeExecution.Phase] - RUNNING: _ClassVar[NodeExecution.Phase] - SUCCEEDED: _ClassVar[NodeExecution.Phase] - FAILING: _ClassVar[NodeExecution.Phase] - FAILED: _ClassVar[NodeExecution.Phase] - ABORTED: _ClassVar[NodeExecution.Phase] - SKIPPED: _ClassVar[NodeExecution.Phase] - TIMED_OUT: _ClassVar[NodeExecution.Phase] - DYNAMIC_RUNNING: _ClassVar[NodeExecution.Phase] - RECOVERED: _ClassVar[NodeExecution.Phase] - UNDEFINED: NodeExecution.Phase - QUEUED: NodeExecution.Phase - RUNNING: NodeExecution.Phase - SUCCEEDED: NodeExecution.Phase - FAILING: NodeExecution.Phase - FAILED: NodeExecution.Phase - ABORTED: NodeExecution.Phase - SKIPPED: NodeExecution.Phase - TIMED_OUT: NodeExecution.Phase - DYNAMIC_RUNNING: NodeExecution.Phase - RECOVERED: NodeExecution.Phase - def __init__(self) -> None: ... - -class TaskExecution(_message.Message): - __slots__ = [] - class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[TaskExecution.Phase] - QUEUED: _ClassVar[TaskExecution.Phase] - RUNNING: _ClassVar[TaskExecution.Phase] - SUCCEEDED: _ClassVar[TaskExecution.Phase] - ABORTED: _ClassVar[TaskExecution.Phase] - FAILED: _ClassVar[TaskExecution.Phase] - INITIALIZING: _ClassVar[TaskExecution.Phase] - WAITING_FOR_RESOURCES: _ClassVar[TaskExecution.Phase] - UNDEFINED: TaskExecution.Phase - QUEUED: TaskExecution.Phase - RUNNING: TaskExecution.Phase - SUCCEEDED: TaskExecution.Phase - ABORTED: TaskExecution.Phase - FAILED: TaskExecution.Phase - INITIALIZING: TaskExecution.Phase - WAITING_FOR_RESOURCES: TaskExecution.Phase - def __init__(self) -> None: ... - -class ExecutionError(_message.Message): - __slots__ = ["code", "message", "error_uri", "kind"] - class ErrorKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[ExecutionError.ErrorKind] - USER: _ClassVar[ExecutionError.ErrorKind] - SYSTEM: _ClassVar[ExecutionError.ErrorKind] - UNKNOWN: ExecutionError.ErrorKind - USER: ExecutionError.ErrorKind - SYSTEM: ExecutionError.ErrorKind - CODE_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - ERROR_URI_FIELD_NUMBER: _ClassVar[int] - KIND_FIELD_NUMBER: _ClassVar[int] - code: str - message: str - error_uri: str - kind: ExecutionError.ErrorKind - def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., error_uri: _Optional[str] = ..., kind: _Optional[_Union[ExecutionError.ErrorKind, str]] = ...) -> None: ... - -class TaskLog(_message.Message): - __slots__ = ["uri", "name", "message_format", "ttl"] - class MessageFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[TaskLog.MessageFormat] - CSV: _ClassVar[TaskLog.MessageFormat] - JSON: _ClassVar[TaskLog.MessageFormat] - UNKNOWN: TaskLog.MessageFormat - CSV: TaskLog.MessageFormat - JSON: TaskLog.MessageFormat - URI_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FORMAT_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] - uri: str - name: str - message_format: TaskLog.MessageFormat - ttl: _duration_pb2.Duration - def __init__(self, uri: _Optional[str] = ..., name: _Optional[str] = ..., message_format: _Optional[_Union[TaskLog.MessageFormat, str]] = ..., ttl: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class QualityOfServiceSpec(_message.Message): - __slots__ = ["queueing_budget"] - QUEUEING_BUDGET_FIELD_NUMBER: _ClassVar[int] - queueing_budget: _duration_pb2.Duration - def __init__(self, queueing_budget: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class QualityOfService(_message.Message): - __slots__ = ["tier", "spec"] - class Tier(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[QualityOfService.Tier] - HIGH: _ClassVar[QualityOfService.Tier] - MEDIUM: _ClassVar[QualityOfService.Tier] - LOW: _ClassVar[QualityOfService.Tier] - UNDEFINED: QualityOfService.Tier - HIGH: QualityOfService.Tier - MEDIUM: QualityOfService.Tier - LOW: QualityOfService.Tier - TIER_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - tier: QualityOfService.Tier - spec: QualityOfServiceSpec - def __init__(self, tier: _Optional[_Union[QualityOfService.Tier, str]] = ..., spec: _Optional[_Union[QualityOfServiceSpec, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py deleted file mode 100644 index 5068f3edb4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/identifier.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/core/identifier.proto\x12\rflyteidl.core\"\xc0\x01\n\nIdentifier\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n\x07version\x18\x05 \x01(\tR\x07version\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"u\n\x1bWorkflowExecutionIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"\x81\x01\n\x17NodeExecutionIdentifier\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc6\x01\n\x17TaskExecutionIdentifier\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12R\n\x11node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\"~\n\x10SignalIdentifier\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId*U\n\x0cResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04TASK\x10\x01\x12\x0c\n\x08WORKFLOW\x10\x02\x12\x0f\n\x0bLAUNCH_PLAN\x10\x03\x12\x0b\n\x07\x44\x41TASET\x10\x04\x42\xb5\x01\n\x11\x63om.flyteidl.coreB\x0fIdentifierProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.identifier_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017IdentifierProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_RESOURCETYPE']._serialized_start=824 - _globals['_RESOURCETYPE']._serialized_end=909 - _globals['_IDENTIFIER']._serialized_start=50 - _globals['_IDENTIFIER']._serialized_end=242 - _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_start=244 - _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_end=361 - _globals['_NODEEXECUTIONIDENTIFIER']._serialized_start=364 - _globals['_NODEEXECUTIONIDENTIFIER']._serialized_end=493 - _globals['_TASKEXECUTIONIDENTIFIER']._serialized_start=496 - _globals['_TASKEXECUTIONIDENTIFIER']._serialized_end=694 - _globals['_SIGNALIDENTIFIER']._serialized_start=696 - _globals['_SIGNALIDENTIFIER']._serialized_end=822 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi deleted file mode 100644 index 5d3857195e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi +++ /dev/null @@ -1,73 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ResourceType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNSPECIFIED: _ClassVar[ResourceType] - TASK: _ClassVar[ResourceType] - WORKFLOW: _ClassVar[ResourceType] - LAUNCH_PLAN: _ClassVar[ResourceType] - DATASET: _ClassVar[ResourceType] -UNSPECIFIED: ResourceType -TASK: ResourceType -WORKFLOW: ResourceType -LAUNCH_PLAN: ResourceType -DATASET: ResourceType - -class Identifier(_message.Message): - __slots__ = ["resource_type", "project", "domain", "name", "version", "org"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - resource_type: ResourceType - project: str - domain: str - name: str - version: str - org: str - def __init__(self, resource_type: _Optional[_Union[ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., version: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class WorkflowExecutionIdentifier(_message.Message): - __slots__ = ["project", "domain", "name", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - org: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class NodeExecutionIdentifier(_message.Message): - __slots__ = ["node_id", "execution_id"] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - node_id: str - execution_id: WorkflowExecutionIdentifier - def __init__(self, node_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskExecutionIdentifier(_message.Message): - __slots__ = ["task_id", "node_execution_id", "retry_attempt"] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - task_id: Identifier - node_execution_id: NodeExecutionIdentifier - retry_attempt: int - def __init__(self, task_id: _Optional[_Union[Identifier, _Mapping]] = ..., node_execution_id: _Optional[_Union[NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ...) -> None: ... - -class SignalIdentifier(_message.Message): - __slots__ = ["signal_id", "execution_id"] - SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - signal_id: str - execution_id: WorkflowExecutionIdentifier - def __init__(self, signal_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py deleted file mode 100644 index 5a35294103..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/interface.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/interface.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\"\xe6\x01\n\x08Variable\x12.\n\x04type\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12I\n\x13\x61rtifact_partial_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x11\x61rtifactPartialId\x12=\n\x0c\x61rtifact_tag\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactTagR\x0b\x61rtifactTag\"\xad\x01\n\x0bVariableMap\x12G\n\tvariables\x18\x01 \x03(\x0b\x32).flyteidl.core.VariableMap.VariablesEntryR\tvariables\x1aU\n\x0eVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x05value:\x02\x38\x01\"z\n\x0eTypedInterface\x12\x32\n\x06inputs\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\x99\x02\n\tParameter\x12)\n\x03var\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x03var\x12\x32\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07\x64\x65\x66\x61ult\x12\x1c\n\x08required\x18\x03 \x01(\x08H\x00R\x08required\x12\x45\n\x0e\x61rtifact_query\x18\x04 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryH\x00R\rartifactQuery\x12<\n\x0b\x61rtifact_id\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDH\x00R\nartifactIdB\n\n\x08\x62\x65havior\"\xb4\x01\n\x0cParameterMap\x12K\n\nparameters\x18\x01 \x03(\x0b\x32+.flyteidl.core.ParameterMap.ParametersEntryR\nparameters\x1aW\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ParameterR\x05value:\x02\x38\x01\x42\xb4\x01\n\x11\x63om.flyteidl.coreB\x0eInterfaceProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.interface_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016InterfaceProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _VARIABLEMAP_VARIABLESENTRY._options = None - _VARIABLEMAP_VARIABLESENTRY._serialized_options = b'8\001' - _PARAMETERMAP_PARAMETERSENTRY._options = None - _PARAMETERMAP_PARAMETERSENTRY._serialized_options = b'8\001' - _globals['_VARIABLE']._serialized_start=139 - _globals['_VARIABLE']._serialized_end=369 - _globals['_VARIABLEMAP']._serialized_start=372 - _globals['_VARIABLEMAP']._serialized_end=545 - _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_start=460 - _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_end=545 - _globals['_TYPEDINTERFACE']._serialized_start=547 - _globals['_TYPEDINTERFACE']._serialized_end=669 - _globals['_PARAMETER']._serialized_start=672 - _globals['_PARAMETER']._serialized_end=953 - _globals['_PARAMETERMAP']._serialized_start=956 - _globals['_PARAMETERMAP']._serialized_end=1136 - _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_start=1049 - _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_end=1136 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi deleted file mode 100644 index ee3ac9c2b5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi +++ /dev/null @@ -1,69 +0,0 @@ -from flyteidl.core import types_pb2 as _types_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Variable(_message.Message): - __slots__ = ["type", "description", "artifact_partial_id", "artifact_tag"] - TYPE_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_PARTIAL_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] - type: _types_pb2.LiteralType - description: str - artifact_partial_id: _artifact_id_pb2.ArtifactID - artifact_tag: _artifact_id_pb2.ArtifactTag - def __init__(self, type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., description: _Optional[str] = ..., artifact_partial_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., artifact_tag: _Optional[_Union[_artifact_id_pb2.ArtifactTag, _Mapping]] = ...) -> None: ... - -class VariableMap(_message.Message): - __slots__ = ["variables"] - class VariablesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Variable - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Variable, _Mapping]] = ...) -> None: ... - VARIABLES_FIELD_NUMBER: _ClassVar[int] - variables: _containers.MessageMap[str, Variable] - def __init__(self, variables: _Optional[_Mapping[str, Variable]] = ...) -> None: ... - -class TypedInterface(_message.Message): - __slots__ = ["inputs", "outputs"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - inputs: VariableMap - outputs: VariableMap - def __init__(self, inputs: _Optional[_Union[VariableMap, _Mapping]] = ..., outputs: _Optional[_Union[VariableMap, _Mapping]] = ...) -> None: ... - -class Parameter(_message.Message): - __slots__ = ["var", "default", "required", "artifact_query", "artifact_id"] - VAR_FIELD_NUMBER: _ClassVar[int] - DEFAULT_FIELD_NUMBER: _ClassVar[int] - REQUIRED_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_QUERY_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - var: Variable - default: _literals_pb2.Literal - required: bool - artifact_query: _artifact_id_pb2.ArtifactQuery - artifact_id: _artifact_id_pb2.ArtifactID - def __init__(self, var: _Optional[_Union[Variable, _Mapping]] = ..., default: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., required: bool = ..., artifact_query: _Optional[_Union[_artifact_id_pb2.ArtifactQuery, _Mapping]] = ..., artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ...) -> None: ... - -class ParameterMap(_message.Message): - __slots__ = ["parameters"] - class ParametersEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Parameter - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Parameter, _Mapping]] = ...) -> None: ... - PARAMETERS_FIELD_NUMBER: _ClassVar[int] - parameters: _containers.MessageMap[str, Parameter] - def __init__(self, parameters: _Optional[_Mapping[str, Parameter]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py deleted file mode 100644 index 77bc3ea3f0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py +++ /dev/null @@ -1,81 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/literals.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/literals.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x19\x66lyteidl/core/types.proto\"\x87\x02\n\tPrimitive\x12\x1a\n\x07integer\x18\x01 \x01(\x03H\x00R\x07integer\x12!\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00R\nfloatValue\x12#\n\x0cstring_value\x18\x03 \x01(\tH\x00R\x0bstringValue\x12\x1a\n\x07\x62oolean\x18\x04 \x01(\x08H\x00R\x07\x62oolean\x12\x38\n\x08\x64\x61tetime\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x08\x64\x61tetime\x12\x37\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00R\x08\x64urationB\x07\n\x05value\"\x06\n\x04Void\"Q\n\x04\x42lob\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.BlobMetadataR\x08metadata\x12\x10\n\x03uri\x18\x03 \x01(\tR\x03uri\";\n\x0c\x42lobMetadata\x12+\n\x04type\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeR\x04type\"0\n\x06\x42inary\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\x12\x10\n\x03tag\x18\x02 \x01(\tR\x03tag\"I\n\x06Schema\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12-\n\x04type\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeR\x04type\"e\n\x05Union\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"y\n\x19StructuredDatasetMetadata\x12\\\n\x17structured_dataset_type\x18\x01 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeR\x15structuredDatasetType\"k\n\x11StructuredDataset\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x44\n\x08metadata\x18\x02 \x01(\x0b\x32(.flyteidl.core.StructuredDatasetMetadataR\x08metadata\"\xf0\x03\n\x06Scalar\x12\x38\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveH\x00R\tprimitive\x12)\n\x04\x62lob\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.BlobH\x00R\x04\x62lob\x12/\n\x06\x62inary\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.BinaryH\x00R\x06\x62inary\x12/\n\x06schema\x18\x04 \x01(\x0b\x32\x15.flyteidl.core.SchemaH\x00R\x06schema\x12\x32\n\tnone_type\x18\x05 \x01(\x0b\x32\x13.flyteidl.core.VoidH\x00R\x08noneType\x12,\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rror\x12\x33\n\x07generic\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x07generic\x12Q\n\x12structured_dataset\x18\x08 \x01(\x0b\x32 .flyteidl.core.StructuredDatasetH\x00R\x11structuredDataset\x12,\n\x05union\x18\t \x01(\x0b\x32\x14.flyteidl.core.UnionH\x00R\x05unionB\x07\n\x05value\"\xc9\x02\n\x07Literal\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x42\n\ncollection\x18\x02 \x01(\x0b\x32 .flyteidl.core.LiteralCollectionH\x00R\ncollection\x12-\n\x03map\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x03map\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12@\n\x08metadata\x18\x05 \x03(\x0b\x32$.flyteidl.core.Literal.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05value\"G\n\x11LiteralCollection\x12\x32\n\x08literals\x18\x01 \x03(\x0b\x32\x16.flyteidl.core.LiteralR\x08literals\"\xa6\x01\n\nLiteralMap\x12\x43\n\x08literals\x18\x01 \x03(\x0b\x32\'.flyteidl.core.LiteralMap.LiteralsEntryR\x08literals\x1aS\n\rLiteralsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value:\x02\x38\x01\"O\n\x15\x42indingDataCollection\x12\x36\n\x08\x62indings\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.BindingDataR\x08\x62indings\"\xb2\x01\n\x0e\x42indingDataMap\x12G\n\x08\x62indings\x18\x01 \x03(\x0b\x32+.flyteidl.core.BindingDataMap.BindingsEntryR\x08\x62indings\x1aW\n\rBindingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x05value:\x02\x38\x01\"G\n\tUnionInfo\x12:\n\ntargetType\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\ntargetType\"\xae\x02\n\x0b\x42indingData\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x46\n\ncollection\x18\x02 \x01(\x0b\x32$.flyteidl.core.BindingDataCollectionH\x00R\ncollection\x12:\n\x07promise\x18\x03 \x01(\x0b\x32\x1e.flyteidl.core.OutputReferenceH\x00R\x07promise\x12\x31\n\x03map\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.BindingDataMapH\x00R\x03map\x12.\n\x05union\x18\x05 \x01(\x0b\x32\x18.flyteidl.core.UnionInfoR\x05unionB\x07\n\x05value\"Q\n\x07\x42inding\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x34\n\x07\x62inding\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x07\x62inding\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\")\n\rRetryStrategy\x12\x18\n\x07retries\x18\x05 \x01(\rR\x07retriesB\xb3\x01\n\x11\x63om.flyteidl.coreB\rLiteralsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.literals_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rLiteralsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _LITERAL_METADATAENTRY._options = None - _LITERAL_METADATAENTRY._serialized_options = b'8\001' - _LITERALMAP_LITERALSENTRY._options = None - _LITERALMAP_LITERALSENTRY._serialized_options = b'8\001' - _BINDINGDATAMAP_BINDINGSENTRY._options = None - _BINDINGDATAMAP_BINDINGSENTRY._serialized_options = b'8\001' - _globals['_PRIMITIVE']._serialized_start=170 - _globals['_PRIMITIVE']._serialized_end=433 - _globals['_VOID']._serialized_start=435 - _globals['_VOID']._serialized_end=441 - _globals['_BLOB']._serialized_start=443 - _globals['_BLOB']._serialized_end=524 - _globals['_BLOBMETADATA']._serialized_start=526 - _globals['_BLOBMETADATA']._serialized_end=585 - _globals['_BINARY']._serialized_start=587 - _globals['_BINARY']._serialized_end=635 - _globals['_SCHEMA']._serialized_start=637 - _globals['_SCHEMA']._serialized_end=710 - _globals['_UNION']._serialized_start=712 - _globals['_UNION']._serialized_end=813 - _globals['_STRUCTUREDDATASETMETADATA']._serialized_start=815 - _globals['_STRUCTUREDDATASETMETADATA']._serialized_end=936 - _globals['_STRUCTUREDDATASET']._serialized_start=938 - _globals['_STRUCTUREDDATASET']._serialized_end=1045 - _globals['_SCALAR']._serialized_start=1048 - _globals['_SCALAR']._serialized_end=1544 - _globals['_LITERAL']._serialized_start=1547 - _globals['_LITERAL']._serialized_end=1876 - _globals['_LITERAL_METADATAENTRY']._serialized_start=1808 - _globals['_LITERAL_METADATAENTRY']._serialized_end=1867 - _globals['_LITERALCOLLECTION']._serialized_start=1878 - _globals['_LITERALCOLLECTION']._serialized_end=1949 - _globals['_LITERALMAP']._serialized_start=1952 - _globals['_LITERALMAP']._serialized_end=2118 - _globals['_LITERALMAP_LITERALSENTRY']._serialized_start=2035 - _globals['_LITERALMAP_LITERALSENTRY']._serialized_end=2118 - _globals['_BINDINGDATACOLLECTION']._serialized_start=2120 - _globals['_BINDINGDATACOLLECTION']._serialized_end=2199 - _globals['_BINDINGDATAMAP']._serialized_start=2202 - _globals['_BINDINGDATAMAP']._serialized_end=2380 - _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_start=2293 - _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_end=2380 - _globals['_UNIONINFO']._serialized_start=2382 - _globals['_UNIONINFO']._serialized_end=2453 - _globals['_BINDINGDATA']._serialized_start=2456 - _globals['_BINDINGDATA']._serialized_end=2758 - _globals['_BINDING']._serialized_start=2760 - _globals['_BINDING']._serialized_end=2841 - _globals['_KEYVALUEPAIR']._serialized_start=2843 - _globals['_KEYVALUEPAIR']._serialized_end=2897 - _globals['_RETRYSTRATEGY']._serialized_start=2899 - _globals['_RETRYSTRATEGY']._serialized_end=2940 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi deleted file mode 100644 index 62622203bd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi +++ /dev/null @@ -1,205 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Primitive(_message.Message): - __slots__ = ["integer", "float_value", "string_value", "boolean", "datetime", "duration"] - INTEGER_FIELD_NUMBER: _ClassVar[int] - FLOAT_VALUE_FIELD_NUMBER: _ClassVar[int] - STRING_VALUE_FIELD_NUMBER: _ClassVar[int] - BOOLEAN_FIELD_NUMBER: _ClassVar[int] - DATETIME_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - integer: int - float_value: float - string_value: str - boolean: bool - datetime: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - def __init__(self, integer: _Optional[int] = ..., float_value: _Optional[float] = ..., string_value: _Optional[str] = ..., boolean: bool = ..., datetime: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class Void(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Blob(_message.Message): - __slots__ = ["metadata", "uri"] - METADATA_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - metadata: BlobMetadata - uri: str - def __init__(self, metadata: _Optional[_Union[BlobMetadata, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... - -class BlobMetadata(_message.Message): - __slots__ = ["type"] - TYPE_FIELD_NUMBER: _ClassVar[int] - type: _types_pb2.BlobType - def __init__(self, type: _Optional[_Union[_types_pb2.BlobType, _Mapping]] = ...) -> None: ... - -class Binary(_message.Message): - __slots__ = ["value", "tag"] - VALUE_FIELD_NUMBER: _ClassVar[int] - TAG_FIELD_NUMBER: _ClassVar[int] - value: bytes - tag: str - def __init__(self, value: _Optional[bytes] = ..., tag: _Optional[str] = ...) -> None: ... - -class Schema(_message.Message): - __slots__ = ["uri", "type"] - URI_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - uri: str - type: _types_pb2.SchemaType - def __init__(self, uri: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.SchemaType, _Mapping]] = ...) -> None: ... - -class Union(_message.Message): - __slots__ = ["value", "type"] - VALUE_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - value: Literal - type: _types_pb2.LiteralType - def __init__(self, value: _Optional[_Union[Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... - -class StructuredDatasetMetadata(_message.Message): - __slots__ = ["structured_dataset_type"] - STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] - structured_dataset_type: _types_pb2.StructuredDatasetType - def __init__(self, structured_dataset_type: _Optional[_Union[_types_pb2.StructuredDatasetType, _Mapping]] = ...) -> None: ... - -class StructuredDataset(_message.Message): - __slots__ = ["uri", "metadata"] - URI_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - uri: str - metadata: StructuredDatasetMetadata - def __init__(self, uri: _Optional[str] = ..., metadata: _Optional[_Union[StructuredDatasetMetadata, _Mapping]] = ...) -> None: ... - -class Scalar(_message.Message): - __slots__ = ["primitive", "blob", "binary", "schema", "none_type", "error", "generic", "structured_dataset", "union"] - PRIMITIVE_FIELD_NUMBER: _ClassVar[int] - BLOB_FIELD_NUMBER: _ClassVar[int] - BINARY_FIELD_NUMBER: _ClassVar[int] - SCHEMA_FIELD_NUMBER: _ClassVar[int] - NONE_TYPE_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - GENERIC_FIELD_NUMBER: _ClassVar[int] - STRUCTURED_DATASET_FIELD_NUMBER: _ClassVar[int] - UNION_FIELD_NUMBER: _ClassVar[int] - primitive: Primitive - blob: Blob - binary: Binary - schema: Schema - none_type: Void - error: _types_pb2.Error - generic: _struct_pb2.Struct - structured_dataset: StructuredDataset - union: Union - def __init__(self, primitive: _Optional[_Union[Primitive, _Mapping]] = ..., blob: _Optional[_Union[Blob, _Mapping]] = ..., binary: _Optional[_Union[Binary, _Mapping]] = ..., schema: _Optional[_Union[Schema, _Mapping]] = ..., none_type: _Optional[_Union[Void, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ..., generic: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., structured_dataset: _Optional[_Union[StructuredDataset, _Mapping]] = ..., union: _Optional[_Union[Union, _Mapping]] = ...) -> None: ... - -class Literal(_message.Message): - __slots__ = ["scalar", "collection", "map", "hash", "metadata"] - class MetadataEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - SCALAR_FIELD_NUMBER: _ClassVar[int] - COLLECTION_FIELD_NUMBER: _ClassVar[int] - MAP_FIELD_NUMBER: _ClassVar[int] - HASH_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - scalar: Scalar - collection: LiteralCollection - map: LiteralMap - hash: str - metadata: _containers.ScalarMap[str, str] - def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[LiteralCollection, _Mapping]] = ..., map: _Optional[_Union[LiteralMap, _Mapping]] = ..., hash: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class LiteralCollection(_message.Message): - __slots__ = ["literals"] - LITERALS_FIELD_NUMBER: _ClassVar[int] - literals: _containers.RepeatedCompositeFieldContainer[Literal] - def __init__(self, literals: _Optional[_Iterable[_Union[Literal, _Mapping]]] = ...) -> None: ... - -class LiteralMap(_message.Message): - __slots__ = ["literals"] - class LiteralsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Literal - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Literal, _Mapping]] = ...) -> None: ... - LITERALS_FIELD_NUMBER: _ClassVar[int] - literals: _containers.MessageMap[str, Literal] - def __init__(self, literals: _Optional[_Mapping[str, Literal]] = ...) -> None: ... - -class BindingDataCollection(_message.Message): - __slots__ = ["bindings"] - BINDINGS_FIELD_NUMBER: _ClassVar[int] - bindings: _containers.RepeatedCompositeFieldContainer[BindingData] - def __init__(self, bindings: _Optional[_Iterable[_Union[BindingData, _Mapping]]] = ...) -> None: ... - -class BindingDataMap(_message.Message): - __slots__ = ["bindings"] - class BindingsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: BindingData - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... - BINDINGS_FIELD_NUMBER: _ClassVar[int] - bindings: _containers.MessageMap[str, BindingData] - def __init__(self, bindings: _Optional[_Mapping[str, BindingData]] = ...) -> None: ... - -class UnionInfo(_message.Message): - __slots__ = ["targetType"] - TARGETTYPE_FIELD_NUMBER: _ClassVar[int] - targetType: _types_pb2.LiteralType - def __init__(self, targetType: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... - -class BindingData(_message.Message): - __slots__ = ["scalar", "collection", "promise", "map", "union"] - SCALAR_FIELD_NUMBER: _ClassVar[int] - COLLECTION_FIELD_NUMBER: _ClassVar[int] - PROMISE_FIELD_NUMBER: _ClassVar[int] - MAP_FIELD_NUMBER: _ClassVar[int] - UNION_FIELD_NUMBER: _ClassVar[int] - scalar: Scalar - collection: BindingDataCollection - promise: _types_pb2.OutputReference - map: BindingDataMap - union: UnionInfo - def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[BindingDataCollection, _Mapping]] = ..., promise: _Optional[_Union[_types_pb2.OutputReference, _Mapping]] = ..., map: _Optional[_Union[BindingDataMap, _Mapping]] = ..., union: _Optional[_Union[UnionInfo, _Mapping]] = ...) -> None: ... - -class Binding(_message.Message): - __slots__ = ["var", "binding"] - VAR_FIELD_NUMBER: _ClassVar[int] - BINDING_FIELD_NUMBER: _ClassVar[int] - var: str - binding: BindingData - def __init__(self, var: _Optional[str] = ..., binding: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... - -class KeyValuePair(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class RetryStrategy(_message.Message): - __slots__ = ["retries"] - RETRIES_FIELD_NUMBER: _ClassVar[int] - retries: int - def __init__(self, retries: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py deleted file mode 100644 index 4624badde3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/metrics.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/metrics.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa3\x03\n\x04Span\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12M\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\nworkflowId\x12\x41\n\x07node_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x06nodeId\x12\x41\n\x07task_id\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x06taskId\x12#\n\x0coperation_id\x18\x06 \x01(\tH\x00R\x0boperationId\x12)\n\x05spans\x18\x07 \x03(\x0b\x32\x13.flyteidl.core.SpanR\x05spansB\x04\n\x02id\"\\\n\x15\x45xecutionMetricResult\x12\x16\n\x06metric\x18\x01 \x01(\tR\x06metric\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x04\x64\x61taB\xb2\x01\n\x11\x63om.flyteidl.coreB\x0cMetricsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.metrics_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014MetricsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_SPAN']._serialized_start=142 - _globals['_SPAN']._serialized_end=561 - _globals['_EXECUTIONMETRICRESULT']._serialized_start=563 - _globals['_EXECUTIONMETRICRESULT']._serialized_end=655 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi deleted file mode 100644 index 5e3c7d871e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi +++ /dev/null @@ -1,35 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Span(_message.Message): - __slots__ = ["start_time", "end_time", "workflow_id", "node_id", "task_id", "operation_id", "spans"] - START_TIME_FIELD_NUMBER: _ClassVar[int] - END_TIME_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - OPERATION_ID_FIELD_NUMBER: _ClassVar[int] - SPANS_FIELD_NUMBER: _ClassVar[int] - start_time: _timestamp_pb2.Timestamp - end_time: _timestamp_pb2.Timestamp - workflow_id: _identifier_pb2.WorkflowExecutionIdentifier - node_id: _identifier_pb2.NodeExecutionIdentifier - task_id: _identifier_pb2.TaskExecutionIdentifier - operation_id: str - spans: _containers.RepeatedCompositeFieldContainer[Span] - def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., operation_id: _Optional[str] = ..., spans: _Optional[_Iterable[_Union[Span, _Mapping]]] = ...) -> None: ... - -class ExecutionMetricResult(_message.Message): - __slots__ = ["metric", "data"] - METRIC_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - metric: str - data: _struct_pb2.Struct - def __init__(self, metric: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py deleted file mode 100644 index 023c8e4aa3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/security.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/security.proto\x12\rflyteidl.core\"\xd0\x01\n\x06Secret\x12\x14\n\x05group\x18\x01 \x01(\tR\x05group\x12#\n\rgroup_version\x18\x02 \x01(\tR\x0cgroupVersion\x12\x10\n\x03key\x18\x03 \x01(\tR\x03key\x12L\n\x11mount_requirement\x18\x04 \x01(\x0e\x32\x1f.flyteidl.core.Secret.MountTypeR\x10mountRequirement\"+\n\tMountType\x12\x07\n\x03\x41NY\x10\x00\x12\x0b\n\x07\x45NV_VAR\x10\x01\x12\x08\n\x04\x46ILE\x10\x02\"g\n\x0cOAuth2Client\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12:\n\rclient_secret\x18\x02 \x01(\x0b\x32\x15.flyteidl.core.SecretR\x0c\x63lientSecret\"\xc6\x01\n\x08Identity\x12\x19\n\x08iam_role\x18\x01 \x01(\tR\x07iamRole\x12.\n\x13k8s_service_account\x18\x02 \x01(\tR\x11k8sServiceAccount\x12@\n\roauth2_client\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x0coauth2Client\x12-\n\x12\x65xecution_identity\x18\x04 \x01(\tR\x11\x65xecutionIdentity\"\x96\x02\n\x12OAuth2TokenRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12:\n\x04type\x18\x02 \x01(\x0e\x32&.flyteidl.core.OAuth2TokenRequest.TypeR\x04type\x12\x33\n\x06\x63lient\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x06\x63lient\x12\x34\n\x16idp_discovery_endpoint\x18\x04 \x01(\tR\x14idpDiscoveryEndpoint\x12%\n\x0etoken_endpoint\x18\x05 \x01(\tR\rtokenEndpoint\"\x1e\n\x04Type\x12\x16\n\x12\x43LIENT_CREDENTIALS\x10\x00\"\xad\x01\n\x0fSecurityContext\x12.\n\x06run_as\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.IdentityR\x05runAs\x12/\n\x07secrets\x18\x02 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x07secrets\x12\x39\n\x06tokens\x18\x03 \x03(\x0b\x32!.flyteidl.core.OAuth2TokenRequestR\x06tokensB\xb3\x01\n\x11\x63om.flyteidl.coreB\rSecurityProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.security_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rSecurityProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_SECRET']._serialized_start=48 - _globals['_SECRET']._serialized_end=256 - _globals['_SECRET_MOUNTTYPE']._serialized_start=213 - _globals['_SECRET_MOUNTTYPE']._serialized_end=256 - _globals['_OAUTH2CLIENT']._serialized_start=258 - _globals['_OAUTH2CLIENT']._serialized_end=361 - _globals['_IDENTITY']._serialized_start=364 - _globals['_IDENTITY']._serialized_end=562 - _globals['_OAUTH2TOKENREQUEST']._serialized_start=565 - _globals['_OAUTH2TOKENREQUEST']._serialized_end=843 - _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_start=813 - _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_end=843 - _globals['_SECURITYCONTEXT']._serialized_start=846 - _globals['_SECURITYCONTEXT']._serialized_end=1019 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi deleted file mode 100644 index 028f85204a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi +++ /dev/null @@ -1,75 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Secret(_message.Message): - __slots__ = ["group", "group_version", "key", "mount_requirement"] - class MountType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - ANY: _ClassVar[Secret.MountType] - ENV_VAR: _ClassVar[Secret.MountType] - FILE: _ClassVar[Secret.MountType] - ANY: Secret.MountType - ENV_VAR: Secret.MountType - FILE: Secret.MountType - GROUP_FIELD_NUMBER: _ClassVar[int] - GROUP_VERSION_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - MOUNT_REQUIREMENT_FIELD_NUMBER: _ClassVar[int] - group: str - group_version: str - key: str - mount_requirement: Secret.MountType - def __init__(self, group: _Optional[str] = ..., group_version: _Optional[str] = ..., key: _Optional[str] = ..., mount_requirement: _Optional[_Union[Secret.MountType, str]] = ...) -> None: ... - -class OAuth2Client(_message.Message): - __slots__ = ["client_id", "client_secret"] - CLIENT_ID_FIELD_NUMBER: _ClassVar[int] - CLIENT_SECRET_FIELD_NUMBER: _ClassVar[int] - client_id: str - client_secret: Secret - def __init__(self, client_id: _Optional[str] = ..., client_secret: _Optional[_Union[Secret, _Mapping]] = ...) -> None: ... - -class Identity(_message.Message): - __slots__ = ["iam_role", "k8s_service_account", "oauth2_client", "execution_identity"] - IAM_ROLE_FIELD_NUMBER: _ClassVar[int] - K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - OAUTH2_CLIENT_FIELD_NUMBER: _ClassVar[int] - EXECUTION_IDENTITY_FIELD_NUMBER: _ClassVar[int] - iam_role: str - k8s_service_account: str - oauth2_client: OAuth2Client - execution_identity: str - def __init__(self, iam_role: _Optional[str] = ..., k8s_service_account: _Optional[str] = ..., oauth2_client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., execution_identity: _Optional[str] = ...) -> None: ... - -class OAuth2TokenRequest(_message.Message): - __slots__ = ["name", "type", "client", "idp_discovery_endpoint", "token_endpoint"] - class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CLIENT_CREDENTIALS: _ClassVar[OAuth2TokenRequest.Type] - CLIENT_CREDENTIALS: OAuth2TokenRequest.Type - NAME_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - CLIENT_FIELD_NUMBER: _ClassVar[int] - IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - name: str - type: OAuth2TokenRequest.Type - client: OAuth2Client - idp_discovery_endpoint: str - token_endpoint: str - def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[OAuth2TokenRequest.Type, str]] = ..., client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., idp_discovery_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ...) -> None: ... - -class SecurityContext(_message.Message): - __slots__ = ["run_as", "secrets", "tokens"] - RUN_AS_FIELD_NUMBER: _ClassVar[int] - SECRETS_FIELD_NUMBER: _ClassVar[int] - TOKENS_FIELD_NUMBER: _ClassVar[int] - run_as: Identity - secrets: _containers.RepeatedCompositeFieldContainer[Secret] - tokens: _containers.RepeatedCompositeFieldContainer[OAuth2TokenRequest] - def __init__(self, run_as: _Optional[_Union[Identity, _Mapping]] = ..., secrets: _Optional[_Iterable[_Union[Secret, _Mapping]]] = ..., tokens: _Optional[_Iterable[_Union[OAuth2TokenRequest, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py deleted file mode 100644 index 6add4552b9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py +++ /dev/null @@ -1,91 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/tasks.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/tasks.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd0\x02\n\tResources\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x08requests\x12>\n\x06limits\x18\x02 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x06limits\x1a`\n\rResourceEntry\x12\x39\n\x04name\x18\x01 \x01(\x0e\x32%.flyteidl.core.Resources.ResourceNameR\x04name\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"]\n\x0cResourceName\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x07\n\x03GPU\x10\x02\x12\n\n\x06MEMORY\x10\x03\x12\x0b\n\x07STORAGE\x10\x04\x12\x15\n\x11\x45PHEMERAL_STORAGE\x10\x05\"\x91\x01\n\x0eGPUAccelerator\x12\x16\n\x06\x64\x65vice\x18\x01 \x01(\tR\x06\x64\x65vice\x12&\n\runpartitioned\x18\x02 \x01(\x08H\x00R\runpartitioned\x12\'\n\x0epartition_size\x18\x03 \x01(\tH\x00R\rpartitionSizeB\x16\n\x14partition_size_value\"[\n\x11\x45xtendedResources\x12\x46\n\x0fgpu_accelerator\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.GPUAcceleratorR\x0egpuAccelerator\"\xac\x01\n\x0fRuntimeMetadata\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.flyteidl.core.RuntimeMetadata.RuntimeTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x16\n\x06\x66lavor\x18\x03 \x01(\tR\x06\x66lavor\"\'\n\x0bRuntimeType\x12\t\n\x05OTHER\x10\x00\x12\r\n\tFLYTE_SDK\x10\x01\"\xac\x05\n\x0cTaskMetadata\x12\"\n\x0c\x64iscoverable\x18\x01 \x01(\x08R\x0c\x64iscoverable\x12\x38\n\x07runtime\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.RuntimeMetadataR\x07runtime\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12+\n\x11\x64iscovery_version\x18\x06 \x01(\tR\x10\x64iscoveryVersion\x12\x38\n\x18\x64\x65precated_error_message\x18\x07 \x01(\tR\x16\x64\x65precatedErrorMessage\x12&\n\rinterruptible\x18\x08 \x01(\x08H\x00R\rinterruptible\x12-\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08R\x11\x63\x61\x63heSerializable\x12%\n\x0egenerates_deck\x18\n \x01(\x08R\rgeneratesDeck\x12\x39\n\x04tags\x18\x0b \x03(\x0b\x32%.flyteidl.core.TaskMetadata.TagsEntryR\x04tags\x12*\n\x11pod_template_name\x18\x0c \x01(\tR\x0fpodTemplateName\x12\x35\n\x17\x63\x61\x63he_ignore_input_vars\x18\r \x03(\tR\x14\x63\x61\x63heIgnoreInputVars\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x15\n\x13interruptible_value\"\xd6\x05\n\x0cTaskTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x37\n\x08metadata\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.TaskMetadataR\x08metadata\x12;\n\tinterface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12/\n\x06\x63ustom\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructR\x06\x63ustom\x12\x38\n\tcontainer\x18\x06 \x01(\x0b\x32\x18.flyteidl.core.ContainerH\x00R\tcontainer\x12\x30\n\x07k8s_pod\x18\x11 \x01(\x0b\x32\x15.flyteidl.core.K8sPodH\x00R\x06k8sPod\x12&\n\x03sql\x18\x12 \x01(\x0b\x32\x12.flyteidl.core.SqlH\x00R\x03sql\x12*\n\x11task_type_version\x18\x07 \x01(\x05R\x0ftaskTypeVersion\x12I\n\x10security_context\x18\x08 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12O\n\x12\x65xtended_resources\x18\t \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResources\x12?\n\x06\x63onfig\x18\x10 \x03(\x0b\x32\'.flyteidl.core.TaskTemplate.ConfigEntryR\x06\x63onfig\x1a\x39\n\x0b\x43onfigEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06target\"6\n\rContainerPort\x12%\n\x0e\x63ontainer_port\x18\x01 \x01(\rR\rcontainerPort\"\xfc\x03\n\tContainer\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x18\n\x07\x63ommand\x18\x02 \x03(\tR\x07\x63ommand\x12\x12\n\x04\x61rgs\x18\x03 \x03(\tR\x04\x61rgs\x12\x36\n\tresources\x18\x04 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12-\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x03\x65nv\x12\x37\n\x06\x63onfig\x18\x06 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairB\x02\x18\x01R\x06\x63onfig\x12\x32\n\x05ports\x18\x07 \x03(\x0b\x32\x1c.flyteidl.core.ContainerPortR\x05ports\x12\x41\n\x0b\x64\x61ta_config\x18\t \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\x12I\n\x0c\x61rchitecture\x18\n \x01(\x0e\x32%.flyteidl.core.Container.ArchitectureR\x0c\x61rchitecture\"I\n\x0c\x41rchitecture\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41MD64\x10\x01\x12\t\n\x05\x41RM64\x10\x02\x12\n\n\x06\x41RM_V6\x10\x03\x12\n\n\x06\x41RM_V7\x10\x04\"\xb5\x02\n\nIOStrategy\x12K\n\rdownload_mode\x18\x01 \x01(\x0e\x32&.flyteidl.core.IOStrategy.DownloadModeR\x0c\x64ownloadMode\x12\x45\n\x0bupload_mode\x18\x02 \x01(\x0e\x32$.flyteidl.core.IOStrategy.UploadModeR\nuploadMode\"L\n\x0c\x44ownloadMode\x12\x12\n\x0e\x44OWNLOAD_EAGER\x10\x00\x12\x13\n\x0f\x44OWNLOAD_STREAM\x10\x01\x12\x13\n\x0f\x44O_NOT_DOWNLOAD\x10\x02\"E\n\nUploadMode\x12\x12\n\x0eUPLOAD_ON_EXIT\x10\x00\x12\x10\n\x0cUPLOAD_EAGER\x10\x01\x12\x11\n\rDO_NOT_UPLOAD\x10\x02\"\xa7\x02\n\x11\x44\x61taLoadingConfig\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x1d\n\ninput_path\x18\x02 \x01(\tR\tinputPath\x12\x1f\n\x0boutput_path\x18\x03 \x01(\tR\noutputPath\x12I\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\x31.flyteidl.core.DataLoadingConfig.LiteralMapFormatR\x06\x66ormat\x12:\n\x0bio_strategy\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.IOStrategyR\nioStrategy\"1\n\x10LiteralMapFormat\x12\x08\n\x04JSON\x10\x00\x12\x08\n\x04YAML\x10\x01\x12\t\n\x05PROTO\x10\x02\"\xbd\x01\n\x06K8sPod\x12<\n\x08metadata\x18\x01 \x01(\x0b\x32 .flyteidl.core.K8sObjectMetadataR\x08metadata\x12\x32\n\x08pod_spec\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x07podSpec\x12\x41\n\x0b\x64\x61ta_config\x18\x03 \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\"\xa9\x02\n\x11K8sObjectMetadata\x12\x44\n\x06labels\x18\x01 \x03(\x0b\x32,.flyteidl.core.K8sObjectMetadata.LabelsEntryR\x06labels\x12S\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32\x31.flyteidl.core.K8sObjectMetadata.AnnotationsEntryR\x0b\x61nnotations\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x92\x01\n\x03Sql\x12\x1c\n\tstatement\x18\x01 \x01(\tR\tstatement\x12\x34\n\x07\x64ialect\x18\x02 \x01(\x0e\x32\x1a.flyteidl.core.Sql.DialectR\x07\x64ialect\"7\n\x07\x44ialect\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04\x41NSI\x10\x01\x12\x08\n\x04HIVE\x10\x02\x12\t\n\x05OTHER\x10\x03\x42\xb0\x01\n\x11\x63om.flyteidl.coreB\nTasksProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.tasks_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTasksProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _TASKMETADATA_TAGSENTRY._options = None - _TASKMETADATA_TAGSENTRY._serialized_options = b'8\001' - _TASKTEMPLATE_CONFIGENTRY._options = None - _TASKTEMPLATE_CONFIGENTRY._serialized_options = b'8\001' - _CONTAINER.fields_by_name['config']._options = None - _CONTAINER.fields_by_name['config']._serialized_options = b'\030\001' - _K8SOBJECTMETADATA_LABELSENTRY._options = None - _K8SOBJECTMETADATA_LABELSENTRY._serialized_options = b'8\001' - _K8SOBJECTMETADATA_ANNOTATIONSENTRY._options = None - _K8SOBJECTMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' - _globals['_RESOURCES']._serialized_start=230 - _globals['_RESOURCES']._serialized_end=566 - _globals['_RESOURCES_RESOURCEENTRY']._serialized_start=375 - _globals['_RESOURCES_RESOURCEENTRY']._serialized_end=471 - _globals['_RESOURCES_RESOURCENAME']._serialized_start=473 - _globals['_RESOURCES_RESOURCENAME']._serialized_end=566 - _globals['_GPUACCELERATOR']._serialized_start=569 - _globals['_GPUACCELERATOR']._serialized_end=714 - _globals['_EXTENDEDRESOURCES']._serialized_start=716 - _globals['_EXTENDEDRESOURCES']._serialized_end=807 - _globals['_RUNTIMEMETADATA']._serialized_start=810 - _globals['_RUNTIMEMETADATA']._serialized_end=982 - _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_start=943 - _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_end=982 - _globals['_TASKMETADATA']._serialized_start=985 - _globals['_TASKMETADATA']._serialized_end=1669 - _globals['_TASKMETADATA_TAGSENTRY']._serialized_start=1591 - _globals['_TASKMETADATA_TAGSENTRY']._serialized_end=1646 - _globals['_TASKTEMPLATE']._serialized_start=1672 - _globals['_TASKTEMPLATE']._serialized_end=2398 - _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_start=2331 - _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_end=2388 - _globals['_CONTAINERPORT']._serialized_start=2400 - _globals['_CONTAINERPORT']._serialized_end=2454 - _globals['_CONTAINER']._serialized_start=2457 - _globals['_CONTAINER']._serialized_end=2965 - _globals['_CONTAINER_ARCHITECTURE']._serialized_start=2892 - _globals['_CONTAINER_ARCHITECTURE']._serialized_end=2965 - _globals['_IOSTRATEGY']._serialized_start=2968 - _globals['_IOSTRATEGY']._serialized_end=3277 - _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_start=3130 - _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_end=3206 - _globals['_IOSTRATEGY_UPLOADMODE']._serialized_start=3208 - _globals['_IOSTRATEGY_UPLOADMODE']._serialized_end=3277 - _globals['_DATALOADINGCONFIG']._serialized_start=3280 - _globals['_DATALOADINGCONFIG']._serialized_end=3575 - _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_start=3526 - _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_end=3575 - _globals['_K8SPOD']._serialized_start=3578 - _globals['_K8SPOD']._serialized_end=3767 - _globals['_K8SOBJECTMETADATA']._serialized_start=3770 - _globals['_K8SOBJECTMETADATA']._serialized_end=4067 - _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_start=3946 - _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_end=4003 - _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_start=4005 - _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_end=4067 - _globals['_SQL']._serialized_start=4070 - _globals['_SQL']._serialized_end=4216 - _globals['_SQL_DIALECT']._serialized_start=4161 - _globals['_SQL_DIALECT']._serialized_end=4216 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi deleted file mode 100644 index 98d1792aee..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi +++ /dev/null @@ -1,280 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Resources(_message.Message): - __slots__ = ["requests", "limits"] - class ResourceName(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[Resources.ResourceName] - CPU: _ClassVar[Resources.ResourceName] - GPU: _ClassVar[Resources.ResourceName] - MEMORY: _ClassVar[Resources.ResourceName] - STORAGE: _ClassVar[Resources.ResourceName] - EPHEMERAL_STORAGE: _ClassVar[Resources.ResourceName] - UNKNOWN: Resources.ResourceName - CPU: Resources.ResourceName - GPU: Resources.ResourceName - MEMORY: Resources.ResourceName - STORAGE: Resources.ResourceName - EPHEMERAL_STORAGE: Resources.ResourceName - class ResourceEntry(_message.Message): - __slots__ = ["name", "value"] - NAME_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - name: Resources.ResourceName - value: str - def __init__(self, name: _Optional[_Union[Resources.ResourceName, str]] = ..., value: _Optional[str] = ...) -> None: ... - REQUESTS_FIELD_NUMBER: _ClassVar[int] - LIMITS_FIELD_NUMBER: _ClassVar[int] - requests: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] - limits: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] - def __init__(self, requests: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ..., limits: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ...) -> None: ... - -class GPUAccelerator(_message.Message): - __slots__ = ["device", "unpartitioned", "partition_size"] - DEVICE_FIELD_NUMBER: _ClassVar[int] - UNPARTITIONED_FIELD_NUMBER: _ClassVar[int] - PARTITION_SIZE_FIELD_NUMBER: _ClassVar[int] - device: str - unpartitioned: bool - partition_size: str - def __init__(self, device: _Optional[str] = ..., unpartitioned: bool = ..., partition_size: _Optional[str] = ...) -> None: ... - -class ExtendedResources(_message.Message): - __slots__ = ["gpu_accelerator"] - GPU_ACCELERATOR_FIELD_NUMBER: _ClassVar[int] - gpu_accelerator: GPUAccelerator - def __init__(self, gpu_accelerator: _Optional[_Union[GPUAccelerator, _Mapping]] = ...) -> None: ... - -class RuntimeMetadata(_message.Message): - __slots__ = ["type", "version", "flavor"] - class RuntimeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - OTHER: _ClassVar[RuntimeMetadata.RuntimeType] - FLYTE_SDK: _ClassVar[RuntimeMetadata.RuntimeType] - OTHER: RuntimeMetadata.RuntimeType - FLYTE_SDK: RuntimeMetadata.RuntimeType - TYPE_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - FLAVOR_FIELD_NUMBER: _ClassVar[int] - type: RuntimeMetadata.RuntimeType - version: str - flavor: str - def __init__(self, type: _Optional[_Union[RuntimeMetadata.RuntimeType, str]] = ..., version: _Optional[str] = ..., flavor: _Optional[str] = ...) -> None: ... - -class TaskMetadata(_message.Message): - __slots__ = ["discoverable", "runtime", "timeout", "retries", "discovery_version", "deprecated_error_message", "interruptible", "cache_serializable", "generates_deck", "tags", "pod_template_name", "cache_ignore_input_vars"] - class TagsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - DISCOVERABLE_FIELD_NUMBER: _ClassVar[int] - RUNTIME_FIELD_NUMBER: _ClassVar[int] - TIMEOUT_FIELD_NUMBER: _ClassVar[int] - RETRIES_FIELD_NUMBER: _ClassVar[int] - DISCOVERY_VERSION_FIELD_NUMBER: _ClassVar[int] - DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] - GENERATES_DECK_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - POD_TEMPLATE_NAME_FIELD_NUMBER: _ClassVar[int] - CACHE_IGNORE_INPUT_VARS_FIELD_NUMBER: _ClassVar[int] - discoverable: bool - runtime: RuntimeMetadata - timeout: _duration_pb2.Duration - retries: _literals_pb2.RetryStrategy - discovery_version: str - deprecated_error_message: str - interruptible: bool - cache_serializable: bool - generates_deck: bool - tags: _containers.ScalarMap[str, str] - pod_template_name: str - cache_ignore_input_vars: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, discoverable: bool = ..., runtime: _Optional[_Union[RuntimeMetadata, _Mapping]] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., discovery_version: _Optional[str] = ..., deprecated_error_message: _Optional[str] = ..., interruptible: bool = ..., cache_serializable: bool = ..., generates_deck: bool = ..., tags: _Optional[_Mapping[str, str]] = ..., pod_template_name: _Optional[str] = ..., cache_ignore_input_vars: _Optional[_Iterable[str]] = ...) -> None: ... - -class TaskTemplate(_message.Message): - __slots__ = ["id", "type", "metadata", "interface", "custom", "container", "k8s_pod", "sql", "task_type_version", "security_context", "extended_resources", "config"] - class ConfigEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - INTERFACE_FIELD_NUMBER: _ClassVar[int] - CUSTOM_FIELD_NUMBER: _ClassVar[int] - CONTAINER_FIELD_NUMBER: _ClassVar[int] - K8S_POD_FIELD_NUMBER: _ClassVar[int] - SQL_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_VERSION_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - EXTENDED_RESOURCES_FIELD_NUMBER: _ClassVar[int] - CONFIG_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - type: str - metadata: TaskMetadata - interface: _interface_pb2.TypedInterface - custom: _struct_pb2.Struct - container: Container - k8s_pod: K8sPod - sql: Sql - task_type_version: int - security_context: _security_pb2.SecurityContext - extended_resources: ExtendedResources - config: _containers.ScalarMap[str, str] - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., type: _Optional[str] = ..., metadata: _Optional[_Union[TaskMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., custom: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., container: _Optional[_Union[Container, _Mapping]] = ..., k8s_pod: _Optional[_Union[K8sPod, _Mapping]] = ..., sql: _Optional[_Union[Sql, _Mapping]] = ..., task_type_version: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., extended_resources: _Optional[_Union[ExtendedResources, _Mapping]] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class ContainerPort(_message.Message): - __slots__ = ["container_port"] - CONTAINER_PORT_FIELD_NUMBER: _ClassVar[int] - container_port: int - def __init__(self, container_port: _Optional[int] = ...) -> None: ... - -class Container(_message.Message): - __slots__ = ["image", "command", "args", "resources", "env", "config", "ports", "data_config", "architecture"] - class Architecture(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[Container.Architecture] - AMD64: _ClassVar[Container.Architecture] - ARM64: _ClassVar[Container.Architecture] - ARM_V6: _ClassVar[Container.Architecture] - ARM_V7: _ClassVar[Container.Architecture] - UNKNOWN: Container.Architecture - AMD64: Container.Architecture - ARM64: Container.Architecture - ARM_V6: Container.Architecture - ARM_V7: Container.Architecture - IMAGE_FIELD_NUMBER: _ClassVar[int] - COMMAND_FIELD_NUMBER: _ClassVar[int] - ARGS_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - ENV_FIELD_NUMBER: _ClassVar[int] - CONFIG_FIELD_NUMBER: _ClassVar[int] - PORTS_FIELD_NUMBER: _ClassVar[int] - DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - ARCHITECTURE_FIELD_NUMBER: _ClassVar[int] - image: str - command: _containers.RepeatedScalarFieldContainer[str] - args: _containers.RepeatedScalarFieldContainer[str] - resources: Resources - env: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] - config: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] - ports: _containers.RepeatedCompositeFieldContainer[ContainerPort] - data_config: DataLoadingConfig - architecture: Container.Architecture - def __init__(self, image: _Optional[str] = ..., command: _Optional[_Iterable[str]] = ..., args: _Optional[_Iterable[str]] = ..., resources: _Optional[_Union[Resources, _Mapping]] = ..., env: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., config: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., ports: _Optional[_Iterable[_Union[ContainerPort, _Mapping]]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ..., architecture: _Optional[_Union[Container.Architecture, str]] = ...) -> None: ... - -class IOStrategy(_message.Message): - __slots__ = ["download_mode", "upload_mode"] - class DownloadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DOWNLOAD_EAGER: _ClassVar[IOStrategy.DownloadMode] - DOWNLOAD_STREAM: _ClassVar[IOStrategy.DownloadMode] - DO_NOT_DOWNLOAD: _ClassVar[IOStrategy.DownloadMode] - DOWNLOAD_EAGER: IOStrategy.DownloadMode - DOWNLOAD_STREAM: IOStrategy.DownloadMode - DO_NOT_DOWNLOAD: IOStrategy.DownloadMode - class UploadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UPLOAD_ON_EXIT: _ClassVar[IOStrategy.UploadMode] - UPLOAD_EAGER: _ClassVar[IOStrategy.UploadMode] - DO_NOT_UPLOAD: _ClassVar[IOStrategy.UploadMode] - UPLOAD_ON_EXIT: IOStrategy.UploadMode - UPLOAD_EAGER: IOStrategy.UploadMode - DO_NOT_UPLOAD: IOStrategy.UploadMode - DOWNLOAD_MODE_FIELD_NUMBER: _ClassVar[int] - UPLOAD_MODE_FIELD_NUMBER: _ClassVar[int] - download_mode: IOStrategy.DownloadMode - upload_mode: IOStrategy.UploadMode - def __init__(self, download_mode: _Optional[_Union[IOStrategy.DownloadMode, str]] = ..., upload_mode: _Optional[_Union[IOStrategy.UploadMode, str]] = ...) -> None: ... - -class DataLoadingConfig(_message.Message): - __slots__ = ["enabled", "input_path", "output_path", "format", "io_strategy"] - class LiteralMapFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - JSON: _ClassVar[DataLoadingConfig.LiteralMapFormat] - YAML: _ClassVar[DataLoadingConfig.LiteralMapFormat] - PROTO: _ClassVar[DataLoadingConfig.LiteralMapFormat] - JSON: DataLoadingConfig.LiteralMapFormat - YAML: DataLoadingConfig.LiteralMapFormat - PROTO: DataLoadingConfig.LiteralMapFormat - ENABLED_FIELD_NUMBER: _ClassVar[int] - INPUT_PATH_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - IO_STRATEGY_FIELD_NUMBER: _ClassVar[int] - enabled: bool - input_path: str - output_path: str - format: DataLoadingConfig.LiteralMapFormat - io_strategy: IOStrategy - def __init__(self, enabled: bool = ..., input_path: _Optional[str] = ..., output_path: _Optional[str] = ..., format: _Optional[_Union[DataLoadingConfig.LiteralMapFormat, str]] = ..., io_strategy: _Optional[_Union[IOStrategy, _Mapping]] = ...) -> None: ... - -class K8sPod(_message.Message): - __slots__ = ["metadata", "pod_spec", "data_config"] - METADATA_FIELD_NUMBER: _ClassVar[int] - POD_SPEC_FIELD_NUMBER: _ClassVar[int] - DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - metadata: K8sObjectMetadata - pod_spec: _struct_pb2.Struct - data_config: DataLoadingConfig - def __init__(self, metadata: _Optional[_Union[K8sObjectMetadata, _Mapping]] = ..., pod_spec: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ...) -> None: ... - -class K8sObjectMetadata(_message.Message): - __slots__ = ["labels", "annotations"] - class LabelsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class AnnotationsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - labels: _containers.ScalarMap[str, str] - annotations: _containers.ScalarMap[str, str] - def __init__(self, labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class Sql(_message.Message): - __slots__ = ["statement", "dialect"] - class Dialect(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[Sql.Dialect] - ANSI: _ClassVar[Sql.Dialect] - HIVE: _ClassVar[Sql.Dialect] - OTHER: _ClassVar[Sql.Dialect] - UNDEFINED: Sql.Dialect - ANSI: Sql.Dialect - HIVE: Sql.Dialect - OTHER: Sql.Dialect - STATEMENT_FIELD_NUMBER: _ClassVar[int] - DIALECT_FIELD_NUMBER: _ClassVar[int] - statement: str - dialect: Sql.Dialect - def __init__(self, statement: _Optional[str] = ..., dialect: _Optional[_Union[Sql.Dialect, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py deleted file mode 100644 index 3043a0cf6b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/types.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/types.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\xa1\x02\n\nSchemaType\x12@\n\x07\x63olumns\x18\x03 \x03(\x0b\x32&.flyteidl.core.SchemaType.SchemaColumnR\x07\x63olumns\x1a\xd0\x01\n\x0cSchemaColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12K\n\x04type\x18\x02 \x01(\x0e\x32\x37.flyteidl.core.SchemaType.SchemaColumn.SchemaColumnTypeR\x04type\"_\n\x10SchemaColumnType\x12\x0b\n\x07INTEGER\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0b\n\x07\x42OOLEAN\x10\x03\x12\x0c\n\x08\x44\x41TETIME\x10\x04\x12\x0c\n\x08\x44URATION\x10\x05\"\xc7\x02\n\x15StructuredDatasetType\x12L\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x32.flyteidl.core.StructuredDatasetType.DatasetColumnR\x07\x63olumns\x12\x16\n\x06\x66ormat\x18\x02 \x01(\tR\x06\x66ormat\x12\x30\n\x14\x65xternal_schema_type\x18\x03 \x01(\tR\x12\x65xternalSchemaType\x12\x32\n\x15\x65xternal_schema_bytes\x18\x04 \x01(\x0cR\x13\x65xternalSchemaBytes\x1a\x62\n\rDatasetColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12=\n\x0cliteral_type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x0bliteralType\"\xa7\x01\n\x08\x42lobType\x12\x16\n\x06\x66ormat\x18\x01 \x01(\tR\x06\x66ormat\x12R\n\x0e\x64imensionality\x18\x02 \x01(\x0e\x32*.flyteidl.core.BlobType.BlobDimensionalityR\x0e\x64imensionality\"/\n\x12\x42lobDimensionality\x12\n\n\x06SINGLE\x10\x00\x12\r\n\tMULTIPART\x10\x01\"\"\n\x08\x45numType\x12\x16\n\x06values\x18\x01 \x03(\tR\x06values\"C\n\tUnionType\x12\x36\n\x08variants\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x08variants\"\xd7\x01\n\rTypeStructure\x12\x10\n\x03tag\x18\x01 \x01(\tR\x03tag\x12V\n\x0e\x64\x61taclass_type\x18\x02 \x03(\x0b\x32/.flyteidl.core.TypeStructure.DataclassTypeEntryR\rdataclassType\x1a\\\n\x12\x44\x61taclassTypeEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x05value:\x02\x38\x01\"K\n\x0eTypeAnnotation\x12\x39\n\x0b\x61nnotations\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x0b\x61nnotations\"\xbc\x05\n\x0bLiteralType\x12\x33\n\x06simple\x18\x01 \x01(\x0e\x32\x19.flyteidl.core.SimpleTypeH\x00R\x06simple\x12\x33\n\x06schema\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeH\x00R\x06schema\x12\x45\n\x0f\x63ollection_type\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0e\x63ollectionType\x12\x42\n\x0emap_value_type\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0cmapValueType\x12-\n\x04\x62lob\x18\x05 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeH\x00R\x04\x62lob\x12\x36\n\tenum_type\x18\x07 \x01(\x0b\x32\x17.flyteidl.core.EnumTypeH\x00R\x08\x65numType\x12^\n\x17structured_dataset_type\x18\x08 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeH\x00R\x15structuredDatasetType\x12\x39\n\nunion_type\x18\n \x01(\x0b\x32\x18.flyteidl.core.UnionTypeH\x00R\tunionType\x12\x33\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\x08metadata\x12=\n\nannotation\x18\t \x01(\x0b\x32\x1d.flyteidl.core.TypeAnnotationR\nannotation\x12:\n\tstructure\x18\x0b \x01(\x0b\x32\x1c.flyteidl.core.TypeStructureR\tstructureB\x06\n\x04type\"z\n\x0fOutputReference\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x10\n\x03var\x18\x02 \x01(\tR\x03var\x12<\n\tattr_path\x18\x03 \x03(\x0b\x32\x1f.flyteidl.core.PromiseAttributeR\x08\x61ttrPath\"_\n\x10PromiseAttribute\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x05H\x00R\x08intValueB\x07\n\x05value\"G\n\x05\x45rror\x12$\n\x0e\x66\x61iled_node_id\x18\x01 \x01(\tR\x0c\x66\x61iledNodeId\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message*\x86\x01\n\nSimpleType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07INTEGER\x10\x01\x12\t\n\x05\x46LOAT\x10\x02\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0c\n\x08\x44\x41TETIME\x10\x05\x12\x0c\n\x08\x44URATION\x10\x06\x12\n\n\x06\x42INARY\x10\x07\x12\t\n\x05\x45RROR\x10\x08\x12\n\n\x06STRUCT\x10\tB\xb0\x01\n\x11\x63om.flyteidl.coreB\nTypesProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.types_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTypesProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _TYPESTRUCTURE_DATACLASSTYPEENTRY._options = None - _TYPESTRUCTURE_DATACLASSTYPEENTRY._serialized_options = b'8\001' - _globals['_SIMPLETYPE']._serialized_start=2264 - _globals['_SIMPLETYPE']._serialized_end=2398 - _globals['_SCHEMATYPE']._serialized_start=75 - _globals['_SCHEMATYPE']._serialized_end=364 - _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_start=156 - _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_end=364 - _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_start=269 - _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_end=364 - _globals['_STRUCTUREDDATASETTYPE']._serialized_start=367 - _globals['_STRUCTUREDDATASETTYPE']._serialized_end=694 - _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_start=596 - _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_end=694 - _globals['_BLOBTYPE']._serialized_start=697 - _globals['_BLOBTYPE']._serialized_end=864 - _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_start=817 - _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_end=864 - _globals['_ENUMTYPE']._serialized_start=866 - _globals['_ENUMTYPE']._serialized_end=900 - _globals['_UNIONTYPE']._serialized_start=902 - _globals['_UNIONTYPE']._serialized_end=969 - _globals['_TYPESTRUCTURE']._serialized_start=972 - _globals['_TYPESTRUCTURE']._serialized_end=1187 - _globals['_TYPESTRUCTURE_DATACLASSTYPEENTRY']._serialized_start=1095 - _globals['_TYPESTRUCTURE_DATACLASSTYPEENTRY']._serialized_end=1187 - _globals['_TYPEANNOTATION']._serialized_start=1189 - _globals['_TYPEANNOTATION']._serialized_end=1264 - _globals['_LITERALTYPE']._serialized_start=1267 - _globals['_LITERALTYPE']._serialized_end=1967 - _globals['_OUTPUTREFERENCE']._serialized_start=1969 - _globals['_OUTPUTREFERENCE']._serialized_end=2091 - _globals['_PROMISEATTRIBUTE']._serialized_start=2093 - _globals['_PROMISEATTRIBUTE']._serialized_end=2188 - _globals['_ERROR']._serialized_start=2190 - _globals['_ERROR']._serialized_end=2261 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi deleted file mode 100644 index 9028afabd5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi +++ /dev/null @@ -1,176 +0,0 @@ -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class SimpleType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - NONE: _ClassVar[SimpleType] - INTEGER: _ClassVar[SimpleType] - FLOAT: _ClassVar[SimpleType] - STRING: _ClassVar[SimpleType] - BOOLEAN: _ClassVar[SimpleType] - DATETIME: _ClassVar[SimpleType] - DURATION: _ClassVar[SimpleType] - BINARY: _ClassVar[SimpleType] - ERROR: _ClassVar[SimpleType] - STRUCT: _ClassVar[SimpleType] -NONE: SimpleType -INTEGER: SimpleType -FLOAT: SimpleType -STRING: SimpleType -BOOLEAN: SimpleType -DATETIME: SimpleType -DURATION: SimpleType -BINARY: SimpleType -ERROR: SimpleType -STRUCT: SimpleType - -class SchemaType(_message.Message): - __slots__ = ["columns"] - class SchemaColumn(_message.Message): - __slots__ = ["name", "type"] - class SchemaColumnType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - INTEGER: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - FLOAT: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - STRING: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - BOOLEAN: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - DATETIME: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - DURATION: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - INTEGER: SchemaType.SchemaColumn.SchemaColumnType - FLOAT: SchemaType.SchemaColumn.SchemaColumnType - STRING: SchemaType.SchemaColumn.SchemaColumnType - BOOLEAN: SchemaType.SchemaColumn.SchemaColumnType - DATETIME: SchemaType.SchemaColumn.SchemaColumnType - DURATION: SchemaType.SchemaColumn.SchemaColumnType - NAME_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - name: str - type: SchemaType.SchemaColumn.SchemaColumnType - def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[SchemaType.SchemaColumn.SchemaColumnType, str]] = ...) -> None: ... - COLUMNS_FIELD_NUMBER: _ClassVar[int] - columns: _containers.RepeatedCompositeFieldContainer[SchemaType.SchemaColumn] - def __init__(self, columns: _Optional[_Iterable[_Union[SchemaType.SchemaColumn, _Mapping]]] = ...) -> None: ... - -class StructuredDatasetType(_message.Message): - __slots__ = ["columns", "format", "external_schema_type", "external_schema_bytes"] - class DatasetColumn(_message.Message): - __slots__ = ["name", "literal_type"] - NAME_FIELD_NUMBER: _ClassVar[int] - LITERAL_TYPE_FIELD_NUMBER: _ClassVar[int] - name: str - literal_type: LiteralType - def __init__(self, name: _Optional[str] = ..., literal_type: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... - COLUMNS_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER: _ClassVar[int] - columns: _containers.RepeatedCompositeFieldContainer[StructuredDatasetType.DatasetColumn] - format: str - external_schema_type: str - external_schema_bytes: bytes - def __init__(self, columns: _Optional[_Iterable[_Union[StructuredDatasetType.DatasetColumn, _Mapping]]] = ..., format: _Optional[str] = ..., external_schema_type: _Optional[str] = ..., external_schema_bytes: _Optional[bytes] = ...) -> None: ... - -class BlobType(_message.Message): - __slots__ = ["format", "dimensionality"] - class BlobDimensionality(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - SINGLE: _ClassVar[BlobType.BlobDimensionality] - MULTIPART: _ClassVar[BlobType.BlobDimensionality] - SINGLE: BlobType.BlobDimensionality - MULTIPART: BlobType.BlobDimensionality - FORMAT_FIELD_NUMBER: _ClassVar[int] - DIMENSIONALITY_FIELD_NUMBER: _ClassVar[int] - format: str - dimensionality: BlobType.BlobDimensionality - def __init__(self, format: _Optional[str] = ..., dimensionality: _Optional[_Union[BlobType.BlobDimensionality, str]] = ...) -> None: ... - -class EnumType(_message.Message): - __slots__ = ["values"] - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ... - -class UnionType(_message.Message): - __slots__ = ["variants"] - VARIANTS_FIELD_NUMBER: _ClassVar[int] - variants: _containers.RepeatedCompositeFieldContainer[LiteralType] - def __init__(self, variants: _Optional[_Iterable[_Union[LiteralType, _Mapping]]] = ...) -> None: ... - -class TypeStructure(_message.Message): - __slots__ = ["tag", "dataclass_type"] - class DataclassTypeEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: LiteralType - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... - TAG_FIELD_NUMBER: _ClassVar[int] - DATACLASS_TYPE_FIELD_NUMBER: _ClassVar[int] - tag: str - dataclass_type: _containers.MessageMap[str, LiteralType] - def __init__(self, tag: _Optional[str] = ..., dataclass_type: _Optional[_Mapping[str, LiteralType]] = ...) -> None: ... - -class TypeAnnotation(_message.Message): - __slots__ = ["annotations"] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - annotations: _struct_pb2.Struct - def __init__(self, annotations: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... - -class LiteralType(_message.Message): - __slots__ = ["simple", "schema", "collection_type", "map_value_type", "blob", "enum_type", "structured_dataset_type", "union_type", "metadata", "annotation", "structure"] - SIMPLE_FIELD_NUMBER: _ClassVar[int] - SCHEMA_FIELD_NUMBER: _ClassVar[int] - COLLECTION_TYPE_FIELD_NUMBER: _ClassVar[int] - MAP_VALUE_TYPE_FIELD_NUMBER: _ClassVar[int] - BLOB_FIELD_NUMBER: _ClassVar[int] - ENUM_TYPE_FIELD_NUMBER: _ClassVar[int] - STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] - UNION_TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - ANNOTATION_FIELD_NUMBER: _ClassVar[int] - STRUCTURE_FIELD_NUMBER: _ClassVar[int] - simple: SimpleType - schema: SchemaType - collection_type: LiteralType - map_value_type: LiteralType - blob: BlobType - enum_type: EnumType - structured_dataset_type: StructuredDatasetType - union_type: UnionType - metadata: _struct_pb2.Struct - annotation: TypeAnnotation - structure: TypeStructure - def __init__(self, simple: _Optional[_Union[SimpleType, str]] = ..., schema: _Optional[_Union[SchemaType, _Mapping]] = ..., collection_type: _Optional[_Union[LiteralType, _Mapping]] = ..., map_value_type: _Optional[_Union[LiteralType, _Mapping]] = ..., blob: _Optional[_Union[BlobType, _Mapping]] = ..., enum_type: _Optional[_Union[EnumType, _Mapping]] = ..., structured_dataset_type: _Optional[_Union[StructuredDatasetType, _Mapping]] = ..., union_type: _Optional[_Union[UnionType, _Mapping]] = ..., metadata: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., annotation: _Optional[_Union[TypeAnnotation, _Mapping]] = ..., structure: _Optional[_Union[TypeStructure, _Mapping]] = ...) -> None: ... - -class OutputReference(_message.Message): - __slots__ = ["node_id", "var", "attr_path"] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - VAR_FIELD_NUMBER: _ClassVar[int] - ATTR_PATH_FIELD_NUMBER: _ClassVar[int] - node_id: str - var: str - attr_path: _containers.RepeatedCompositeFieldContainer[PromiseAttribute] - def __init__(self, node_id: _Optional[str] = ..., var: _Optional[str] = ..., attr_path: _Optional[_Iterable[_Union[PromiseAttribute, _Mapping]]] = ...) -> None: ... - -class PromiseAttribute(_message.Message): - __slots__ = ["string_value", "int_value"] - STRING_VALUE_FIELD_NUMBER: _ClassVar[int] - INT_VALUE_FIELD_NUMBER: _ClassVar[int] - string_value: str - int_value: int - def __init__(self, string_value: _Optional[str] = ..., int_value: _Optional[int] = ...) -> None: ... - -class Error(_message.Message): - __slots__ = ["failed_node_id", "message"] - FAILED_NODE_ID_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - failed_node_id: str - message: str - def __init__(self, failed_node_id: _Optional[str] = ..., message: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py deleted file mode 100644 index e7a1b9ee93..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/workflow_closure.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$flyteidl/core/workflow_closure.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x81\x01\n\x0fWorkflowClosure\x12;\n\x08workflow\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08workflow\x12\x31\n\x05tasks\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasksB\xba\x01\n\x11\x63om.flyteidl.coreB\x14WorkflowClosureProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_closure_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\024WorkflowClosureProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_WORKFLOWCLOSURE']._serialized_start=113 - _globals['_WORKFLOWCLOSURE']._serialized_end=242 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi deleted file mode 100644 index ae93cec11f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowClosure(_message.Message): - __slots__ = ["workflow", "tasks"] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - TASKS_FIELD_NUMBER: _ClassVar[int] - workflow: _workflow_pb2.WorkflowTemplate - tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] - def __init__(self, workflow: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py deleted file mode 100644 index ab629c2b9f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py +++ /dev/null @@ -1,76 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/workflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import condition_pb2 as flyteidl_dot_core_dot_condition__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\"{\n\x07IfBlock\x12>\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\tcondition\x12\x30\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x08thenNode\"\xd4\x01\n\x0bIfElseBlock\x12*\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlockR\x04\x63\x61se\x12,\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlockR\x05other\x12\x32\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00R\x08\x65lseNode\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rrorB\t\n\x07\x64\x65\x66\x61ult\"A\n\nBranchNode\x12\x33\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlockR\x06ifElse\"\x97\x01\n\x08TaskNode\x12>\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0breferenceId\x12>\n\toverrides\x18\x02 \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverridesB\x0b\n\treference\"\xa6\x01\n\x0cWorkflowNode\x12\x42\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\rlaunchplanRef\x12\x45\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0esubWorkflowRefB\x0b\n\treference\"/\n\x10\x41pproveCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\"\x90\x01\n\x0fSignalCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x30\n\x14output_variable_name\x18\x03 \x01(\tR\x12outputVariableName\"G\n\x0eSleepCondition\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\"\xc5\x01\n\x08GateNode\x12;\n\x07\x61pprove\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.ApproveConditionH\x00R\x07\x61pprove\x12\x38\n\x06signal\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SignalConditionH\x00R\x06signal\x12\x35\n\x05sleep\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.SleepConditionH\x00R\x05sleepB\x0b\n\tcondition\"\xbf\x01\n\tArrayNode\x12\'\n\x04node\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x04node\x12 \n\x0bparallelism\x18\x02 \x01(\rR\x0bparallelism\x12%\n\rmin_successes\x18\x03 \x01(\rH\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteria\"\x8c\x03\n\x0cNodeMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12&\n\rinterruptible\x18\x06 \x01(\x08H\x00R\rinterruptible\x12\x1e\n\tcacheable\x18\x07 \x01(\x08H\x01R\tcacheable\x12%\n\rcache_version\x18\x08 \x01(\tH\x02R\x0c\x63\x61\x63heVersion\x12/\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08H\x03R\x11\x63\x61\x63heSerializableB\x15\n\x13interruptible_valueB\x11\n\x0f\x63\x61\x63heable_valueB\x15\n\x13\x63\x61\x63he_version_valueB\x1a\n\x18\x63\x61\x63he_serializable_value\"/\n\x05\x41lias\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x14\n\x05\x61lias\x18\x02 \x01(\tR\x05\x61lias\"\x9f\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadataR\x08metadata\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x06inputs\x12*\n\x11upstream_node_ids\x18\x04 \x03(\tR\x0fupstreamNodeIds\x12;\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.AliasR\routputAliases\x12\x36\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00R\x08taskNode\x12\x42\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00R\x0cworkflowNode\x12<\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00R\nbranchNode\x12\x36\n\tgate_node\x18\t \x01(\x0b\x32\x17.flyteidl.core.GateNodeH\x00R\x08gateNode\x12\x39\n\narray_node\x18\n \x01(\x0b\x32\x18.flyteidl.core.ArrayNodeH\x00R\tarrayNodeB\x08\n\x06target\"\xfc\x02\n\x10WorkflowMetadata\x12M\n\x12quality_of_service\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12N\n\non_failure\x18\x02 \x01(\x0e\x32/.flyteidl.core.WorkflowMetadata.OnFailurePolicyR\tonFailure\x12=\n\x04tags\x18\x03 \x03(\x0b\x32).flyteidl.core.WorkflowMetadata.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"Q\n\x0fOnFailurePolicy\x12\x14\n\x10\x46\x41IL_IMMEDIATELY\x10\x00\x12(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\x10\x01\"@\n\x18WorkflowMetadataDefaults\x12$\n\rinterruptible\x18\x01 \x01(\x08R\rinterruptible\"\xa2\x03\n\x10WorkflowTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadataR\x08metadata\x12;\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12)\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12\x30\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x36\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x0b\x66\x61ilureNode\x12T\n\x11metadata_defaults\x18\x07 \x01(\x0b\x32\'.flyteidl.core.WorkflowMetadataDefaultsR\x10metadataDefaults\"\x9c\x01\n\x11TaskNodeOverrides\x12\x36\n\tresources\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x12\x65xtended_resources\x18\x02 \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResources\"\xba\x01\n\x12LaunchPlanTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\tinterface\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12<\n\x0c\x66ixed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ixedInputsB\xb3\x01\n\x11\x63om.flyteidl.coreB\rWorkflowProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rWorkflowProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _WORKFLOWMETADATA_TAGSENTRY._options = None - _WORKFLOWMETADATA_TAGSENTRY._serialized_options = b'8\001' - _globals['_IFBLOCK']._serialized_start=318 - _globals['_IFBLOCK']._serialized_end=441 - _globals['_IFELSEBLOCK']._serialized_start=444 - _globals['_IFELSEBLOCK']._serialized_end=656 - _globals['_BRANCHNODE']._serialized_start=658 - _globals['_BRANCHNODE']._serialized_end=723 - _globals['_TASKNODE']._serialized_start=726 - _globals['_TASKNODE']._serialized_end=877 - _globals['_WORKFLOWNODE']._serialized_start=880 - _globals['_WORKFLOWNODE']._serialized_end=1046 - _globals['_APPROVECONDITION']._serialized_start=1048 - _globals['_APPROVECONDITION']._serialized_end=1095 - _globals['_SIGNALCONDITION']._serialized_start=1098 - _globals['_SIGNALCONDITION']._serialized_end=1242 - _globals['_SLEEPCONDITION']._serialized_start=1244 - _globals['_SLEEPCONDITION']._serialized_end=1315 - _globals['_GATENODE']._serialized_start=1318 - _globals['_GATENODE']._serialized_end=1515 - _globals['_ARRAYNODE']._serialized_start=1518 - _globals['_ARRAYNODE']._serialized_end=1709 - _globals['_NODEMETADATA']._serialized_start=1712 - _globals['_NODEMETADATA']._serialized_end=2108 - _globals['_ALIAS']._serialized_start=2110 - _globals['_ALIAS']._serialized_end=2157 - _globals['_NODE']._serialized_start=2160 - _globals['_NODE']._serialized_end=2703 - _globals['_WORKFLOWMETADATA']._serialized_start=2706 - _globals['_WORKFLOWMETADATA']._serialized_end=3086 - _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_start=2948 - _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_end=3003 - _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_start=3005 - _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_end=3086 - _globals['_WORKFLOWMETADATADEFAULTS']._serialized_start=3088 - _globals['_WORKFLOWMETADATADEFAULTS']._serialized_end=3152 - _globals['_WORKFLOWTEMPLATE']._serialized_start=3155 - _globals['_WORKFLOWTEMPLATE']._serialized_end=3573 - _globals['_TASKNODEOVERRIDES']._serialized_start=3576 - _globals['_TASKNODEOVERRIDES']._serialized_end=3732 - _globals['_LAUNCHPLANTEMPLATE']._serialized_start=3735 - _globals['_LAUNCHPLANTEMPLATE']._serialized_end=3921 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi deleted file mode 100644 index efee1e9ec2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi +++ /dev/null @@ -1,217 +0,0 @@ -from flyteidl.core import condition_pb2 as _condition_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class IfBlock(_message.Message): - __slots__ = ["condition", "then_node"] - CONDITION_FIELD_NUMBER: _ClassVar[int] - THEN_NODE_FIELD_NUMBER: _ClassVar[int] - condition: _condition_pb2.BooleanExpression - then_node: Node - def __init__(self, condition: _Optional[_Union[_condition_pb2.BooleanExpression, _Mapping]] = ..., then_node: _Optional[_Union[Node, _Mapping]] = ...) -> None: ... - -class IfElseBlock(_message.Message): - __slots__ = ["case", "other", "else_node", "error"] - CASE_FIELD_NUMBER: _ClassVar[int] - OTHER_FIELD_NUMBER: _ClassVar[int] - ELSE_NODE_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - case: IfBlock - other: _containers.RepeatedCompositeFieldContainer[IfBlock] - else_node: Node - error: _types_pb2.Error - def __init__(self, case: _Optional[_Union[IfBlock, _Mapping]] = ..., other: _Optional[_Iterable[_Union[IfBlock, _Mapping]]] = ..., else_node: _Optional[_Union[Node, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ...) -> None: ... - -class BranchNode(_message.Message): - __slots__ = ["if_else"] - IF_ELSE_FIELD_NUMBER: _ClassVar[int] - if_else: IfElseBlock - def __init__(self, if_else: _Optional[_Union[IfElseBlock, _Mapping]] = ...) -> None: ... - -class TaskNode(_message.Message): - __slots__ = ["reference_id", "overrides"] - REFERENCE_ID_FIELD_NUMBER: _ClassVar[int] - OVERRIDES_FIELD_NUMBER: _ClassVar[int] - reference_id: _identifier_pb2.Identifier - overrides: TaskNodeOverrides - def __init__(self, reference_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., overrides: _Optional[_Union[TaskNodeOverrides, _Mapping]] = ...) -> None: ... - -class WorkflowNode(_message.Message): - __slots__ = ["launchplan_ref", "sub_workflow_ref"] - LAUNCHPLAN_REF_FIELD_NUMBER: _ClassVar[int] - SUB_WORKFLOW_REF_FIELD_NUMBER: _ClassVar[int] - launchplan_ref: _identifier_pb2.Identifier - sub_workflow_ref: _identifier_pb2.Identifier - def __init__(self, launchplan_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., sub_workflow_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class ApproveCondition(_message.Message): - __slots__ = ["signal_id"] - SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] - signal_id: str - def __init__(self, signal_id: _Optional[str] = ...) -> None: ... - -class SignalCondition(_message.Message): - __slots__ = ["signal_id", "type", "output_variable_name"] - SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_VARIABLE_NAME_FIELD_NUMBER: _ClassVar[int] - signal_id: str - type: _types_pb2.LiteralType - output_variable_name: str - def __init__(self, signal_id: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., output_variable_name: _Optional[str] = ...) -> None: ... - -class SleepCondition(_message.Message): - __slots__ = ["duration"] - DURATION_FIELD_NUMBER: _ClassVar[int] - duration: _duration_pb2.Duration - def __init__(self, duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class GateNode(_message.Message): - __slots__ = ["approve", "signal", "sleep"] - APPROVE_FIELD_NUMBER: _ClassVar[int] - SIGNAL_FIELD_NUMBER: _ClassVar[int] - SLEEP_FIELD_NUMBER: _ClassVar[int] - approve: ApproveCondition - signal: SignalCondition - sleep: SleepCondition - def __init__(self, approve: _Optional[_Union[ApproveCondition, _Mapping]] = ..., signal: _Optional[_Union[SignalCondition, _Mapping]] = ..., sleep: _Optional[_Union[SleepCondition, _Mapping]] = ...) -> None: ... - -class ArrayNode(_message.Message): - __slots__ = ["node", "parallelism", "min_successes", "min_success_ratio"] - NODE_FIELD_NUMBER: _ClassVar[int] - PARALLELISM_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] - node: Node - parallelism: int - min_successes: int - min_success_ratio: float - def __init__(self, node: _Optional[_Union[Node, _Mapping]] = ..., parallelism: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... - -class NodeMetadata(_message.Message): - __slots__ = ["name", "timeout", "retries", "interruptible", "cacheable", "cache_version", "cache_serializable"] - NAME_FIELD_NUMBER: _ClassVar[int] - TIMEOUT_FIELD_NUMBER: _ClassVar[int] - RETRIES_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - CACHEABLE_FIELD_NUMBER: _ClassVar[int] - CACHE_VERSION_FIELD_NUMBER: _ClassVar[int] - CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] - name: str - timeout: _duration_pb2.Duration - retries: _literals_pb2.RetryStrategy - interruptible: bool - cacheable: bool - cache_version: str - cache_serializable: bool - def __init__(self, name: _Optional[str] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., interruptible: bool = ..., cacheable: bool = ..., cache_version: _Optional[str] = ..., cache_serializable: bool = ...) -> None: ... - -class Alias(_message.Message): - __slots__ = ["var", "alias"] - VAR_FIELD_NUMBER: _ClassVar[int] - ALIAS_FIELD_NUMBER: _ClassVar[int] - var: str - alias: str - def __init__(self, var: _Optional[str] = ..., alias: _Optional[str] = ...) -> None: ... - -class Node(_message.Message): - __slots__ = ["id", "metadata", "inputs", "upstream_node_ids", "output_aliases", "task_node", "workflow_node", "branch_node", "gate_node", "array_node"] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - UPSTREAM_NODE_IDS_FIELD_NUMBER: _ClassVar[int] - OUTPUT_ALIASES_FIELD_NUMBER: _ClassVar[int] - TASK_NODE_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_NODE_FIELD_NUMBER: _ClassVar[int] - BRANCH_NODE_FIELD_NUMBER: _ClassVar[int] - GATE_NODE_FIELD_NUMBER: _ClassVar[int] - ARRAY_NODE_FIELD_NUMBER: _ClassVar[int] - id: str - metadata: NodeMetadata - inputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] - upstream_node_ids: _containers.RepeatedScalarFieldContainer[str] - output_aliases: _containers.RepeatedCompositeFieldContainer[Alias] - task_node: TaskNode - workflow_node: WorkflowNode - branch_node: BranchNode - gate_node: GateNode - array_node: ArrayNode - def __init__(self, id: _Optional[str] = ..., metadata: _Optional[_Union[NodeMetadata, _Mapping]] = ..., inputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., upstream_node_ids: _Optional[_Iterable[str]] = ..., output_aliases: _Optional[_Iterable[_Union[Alias, _Mapping]]] = ..., task_node: _Optional[_Union[TaskNode, _Mapping]] = ..., workflow_node: _Optional[_Union[WorkflowNode, _Mapping]] = ..., branch_node: _Optional[_Union[BranchNode, _Mapping]] = ..., gate_node: _Optional[_Union[GateNode, _Mapping]] = ..., array_node: _Optional[_Union[ArrayNode, _Mapping]] = ...) -> None: ... - -class WorkflowMetadata(_message.Message): - __slots__ = ["quality_of_service", "on_failure", "tags"] - class OnFailurePolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - FAIL_IMMEDIATELY: _ClassVar[WorkflowMetadata.OnFailurePolicy] - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: _ClassVar[WorkflowMetadata.OnFailurePolicy] - FAIL_IMMEDIATELY: WorkflowMetadata.OnFailurePolicy - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: WorkflowMetadata.OnFailurePolicy - class TagsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - ON_FAILURE_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - quality_of_service: _execution_pb2.QualityOfService - on_failure: WorkflowMetadata.OnFailurePolicy - tags: _containers.ScalarMap[str, str] - def __init__(self, quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., on_failure: _Optional[_Union[WorkflowMetadata.OnFailurePolicy, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class WorkflowMetadataDefaults(_message.Message): - __slots__ = ["interruptible"] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - interruptible: bool - def __init__(self, interruptible: bool = ...) -> None: ... - -class WorkflowTemplate(_message.Message): - __slots__ = ["id", "metadata", "interface", "nodes", "outputs", "failure_node", "metadata_defaults"] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - INTERFACE_FIELD_NUMBER: _ClassVar[int] - NODES_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FAILURE_NODE_FIELD_NUMBER: _ClassVar[int] - METADATA_DEFAULTS_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - metadata: WorkflowMetadata - interface: _interface_pb2.TypedInterface - nodes: _containers.RepeatedCompositeFieldContainer[Node] - outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] - failure_node: Node - metadata_defaults: WorkflowMetadataDefaults - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., metadata: _Optional[_Union[WorkflowMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., nodes: _Optional[_Iterable[_Union[Node, _Mapping]]] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., failure_node: _Optional[_Union[Node, _Mapping]] = ..., metadata_defaults: _Optional[_Union[WorkflowMetadataDefaults, _Mapping]] = ...) -> None: ... - -class TaskNodeOverrides(_message.Message): - __slots__ = ["resources", "extended_resources"] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - EXTENDED_RESOURCES_FIELD_NUMBER: _ClassVar[int] - resources: _tasks_pb2.Resources - extended_resources: _tasks_pb2.ExtendedResources - def __init__(self, resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., extended_resources: _Optional[_Union[_tasks_pb2.ExtendedResources, _Mapping]] = ...) -> None: ... - -class LaunchPlanTemplate(_message.Message): - __slots__ = ["id", "interface", "fixed_inputs"] - ID_FIELD_NUMBER: _ClassVar[int] - INTERFACE_FIELD_NUMBER: _ClassVar[int] - FIXED_INPUTS_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - interface: _interface_pb2.TypedInterface - fixed_inputs: _literals_pb2.LiteralMap - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., fixed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py deleted file mode 100644 index c5699b3c85..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py +++ /dev/null @@ -1,114 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/datacatalog/datacatalog.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"F\n\x14\x43reateDatasetRequest\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x17\n\x15\x43reateDatasetResponse\"E\n\x11GetDatasetRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"D\n\x12GetDatasetResponse\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x96\x01\n\x12GetArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"H\n\x13GetArtifactResponse\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"J\n\x15\x43reateArtifactRequest\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"\x18\n\x16\x43reateArtifactResponse\"3\n\rAddTagRequest\x12\"\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.TagR\x03tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xbf\x01\n\x14ListArtifactsRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12\x35\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"k\n\x15ListArtifactsResponse\x12\x33\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.ArtifactR\tartifacts\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\x8c\x01\n\x13ListDatasetsRequest\x12\x35\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"g\n\x14ListDatasetsResponse\x12\x30\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.DatasetR\x08\x64\x61tasets\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\xfb\x01\n\x15UpdateArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagName\x12-\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x05 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadataB\x0e\n\x0cquery_handle\"9\n\x16UpdateArtifactResponse\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\"a\n\rReservationID\x12\x35\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\tdatasetId\x12\x19\n\x08tag_name\x18\x02 \x01(\tR\x07tagName\"\xc7\x01\n\x1dGetOrExtendReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\"\xa3\x02\n\x0bReservation\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\x12\x39\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x31\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\"\\\n\x1eGetOrExtendReservationResponse\x12:\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.ReservationR\x0breservation\"y\n\x19ReleaseReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\"\x1c\n\x1aReleaseReservationResponse\"\x8a\x01\n\x07\x44\x61taset\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x02id\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12$\n\rpartitionKeys\x18\x03 \x03(\tR\rpartitionKeys\"3\n\tPartition\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x91\x01\n\tDatasetID\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12\x12\n\x04UUID\x18\x05 \x01(\tR\x04UUID\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"\xc7\x02\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x30\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12-\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12\x36\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.PartitionR\npartitions\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.TagR\x04tags\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"P\n\x0c\x41rtifactData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"l\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x0b\x61rtifact_id\x18\x02 \x01(\tR\nartifactId\x12\x30\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"\x81\x01\n\x08Metadata\x12:\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntryR\x06keyMap\x1a\x39\n\x0bKeyMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"O\n\x10\x46ilterExpression\x12;\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilterR\x07\x66ilters\"\xce\x03\n\x14SinglePropertyFilter\x12?\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00R\ttagFilter\x12Q\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00R\x0fpartitionFilter\x12N\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00R\x0e\x61rtifactFilter\x12K\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00R\rdatasetFilter\x12P\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperatorR\x08operator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\"G\n\x16\x41rtifactPropertyFilter\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00R\nartifactIdB\n\n\x08property\"<\n\x11TagPropertyFilter\x12\x1b\n\x08tag_name\x18\x01 \x01(\tH\x00R\x07tagNameB\n\n\x08property\"[\n\x17PartitionPropertyFilter\x12\x34\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00R\x06keyValB\n\n\x08property\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x9f\x01\n\x15\x44\x61tasetPropertyFilter\x12\x1a\n\x07project\x18\x01 \x01(\tH\x00R\x07project\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x12\x18\n\x06\x64omain\x18\x03 \x01(\tH\x00R\x06\x64omain\x12\x1a\n\x07version\x18\x04 \x01(\tH\x00R\x07version\x12\x12\n\x03org\x18\x05 \x01(\tH\x00R\x03orgB\n\n\x08property\"\x93\x02\n\x11PaginationOptions\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12@\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKeyR\x07sortKey\x12\x46\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrderR\tsortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\x86\x07\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB\xb2\x01\n\x0f\x63om.datacatalogB\x10\x44\x61tacatalogProtoP\x01ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\xa2\x02\x03\x44XX\xaa\x02\x0b\x44\x61tacatalog\xca\x02\x0b\x44\x61tacatalog\xe2\x02\x17\x44\x61tacatalog\\GPBMetadata\xea\x02\x0b\x44\x61tacatalogb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.datacatalog.datacatalog_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\017com.datacatalogB\020DatacatalogProtoP\001ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\242\002\003DXX\252\002\013Datacatalog\312\002\013Datacatalog\342\002\027Datacatalog\\GPBMetadata\352\002\013Datacatalog' - _METADATA_KEYMAPENTRY._options = None - _METADATA_KEYMAPENTRY._serialized_options = b'8\001' - _globals['_CREATEDATASETREQUEST']._serialized_start=150 - _globals['_CREATEDATASETREQUEST']._serialized_end=220 - _globals['_CREATEDATASETRESPONSE']._serialized_start=222 - _globals['_CREATEDATASETRESPONSE']._serialized_end=245 - _globals['_GETDATASETREQUEST']._serialized_start=247 - _globals['_GETDATASETREQUEST']._serialized_end=316 - _globals['_GETDATASETRESPONSE']._serialized_start=318 - _globals['_GETDATASETRESPONSE']._serialized_end=386 - _globals['_GETARTIFACTREQUEST']._serialized_start=389 - _globals['_GETARTIFACTREQUEST']._serialized_end=539 - _globals['_GETARTIFACTRESPONSE']._serialized_start=541 - _globals['_GETARTIFACTRESPONSE']._serialized_end=613 - _globals['_CREATEARTIFACTREQUEST']._serialized_start=615 - _globals['_CREATEARTIFACTREQUEST']._serialized_end=689 - _globals['_CREATEARTIFACTRESPONSE']._serialized_start=691 - _globals['_CREATEARTIFACTRESPONSE']._serialized_end=715 - _globals['_ADDTAGREQUEST']._serialized_start=717 - _globals['_ADDTAGREQUEST']._serialized_end=768 - _globals['_ADDTAGRESPONSE']._serialized_start=770 - _globals['_ADDTAGRESPONSE']._serialized_end=786 - _globals['_LISTARTIFACTSREQUEST']._serialized_start=789 - _globals['_LISTARTIFACTSREQUEST']._serialized_end=980 - _globals['_LISTARTIFACTSRESPONSE']._serialized_start=982 - _globals['_LISTARTIFACTSRESPONSE']._serialized_end=1089 - _globals['_LISTDATASETSREQUEST']._serialized_start=1092 - _globals['_LISTDATASETSREQUEST']._serialized_end=1232 - _globals['_LISTDATASETSRESPONSE']._serialized_start=1234 - _globals['_LISTDATASETSRESPONSE']._serialized_end=1337 - _globals['_UPDATEARTIFACTREQUEST']._serialized_start=1340 - _globals['_UPDATEARTIFACTREQUEST']._serialized_end=1591 - _globals['_UPDATEARTIFACTRESPONSE']._serialized_start=1593 - _globals['_UPDATEARTIFACTRESPONSE']._serialized_end=1650 - _globals['_RESERVATIONID']._serialized_start=1652 - _globals['_RESERVATIONID']._serialized_end=1749 - _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_start=1752 - _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_end=1951 - _globals['_RESERVATION']._serialized_start=1954 - _globals['_RESERVATION']._serialized_end=2245 - _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_start=2247 - _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_end=2339 - _globals['_RELEASERESERVATIONREQUEST']._serialized_start=2341 - _globals['_RELEASERESERVATIONREQUEST']._serialized_end=2462 - _globals['_RELEASERESERVATIONRESPONSE']._serialized_start=2464 - _globals['_RELEASERESERVATIONRESPONSE']._serialized_end=2492 - _globals['_DATASET']._serialized_start=2495 - _globals['_DATASET']._serialized_end=2633 - _globals['_PARTITION']._serialized_start=2635 - _globals['_PARTITION']._serialized_end=2686 - _globals['_DATASETID']._serialized_start=2689 - _globals['_DATASETID']._serialized_end=2834 - _globals['_ARTIFACT']._serialized_start=2837 - _globals['_ARTIFACT']._serialized_end=3164 - _globals['_ARTIFACTDATA']._serialized_start=3166 - _globals['_ARTIFACTDATA']._serialized_end=3246 - _globals['_TAG']._serialized_start=3248 - _globals['_TAG']._serialized_end=3356 - _globals['_METADATA']._serialized_start=3359 - _globals['_METADATA']._serialized_end=3488 - _globals['_METADATA_KEYMAPENTRY']._serialized_start=3431 - _globals['_METADATA_KEYMAPENTRY']._serialized_end=3488 - _globals['_FILTEREXPRESSION']._serialized_start=3490 - _globals['_FILTEREXPRESSION']._serialized_end=3569 - _globals['_SINGLEPROPERTYFILTER']._serialized_start=3572 - _globals['_SINGLEPROPERTYFILTER']._serialized_end=4034 - _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_start=3983 - _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_end=4015 - _globals['_ARTIFACTPROPERTYFILTER']._serialized_start=4036 - _globals['_ARTIFACTPROPERTYFILTER']._serialized_end=4107 - _globals['_TAGPROPERTYFILTER']._serialized_start=4109 - _globals['_TAGPROPERTYFILTER']._serialized_end=4169 - _globals['_PARTITIONPROPERTYFILTER']._serialized_start=4171 - _globals['_PARTITIONPROPERTYFILTER']._serialized_end=4262 - _globals['_KEYVALUEPAIR']._serialized_start=4264 - _globals['_KEYVALUEPAIR']._serialized_end=4318 - _globals['_DATASETPROPERTYFILTER']._serialized_start=4321 - _globals['_DATASETPROPERTYFILTER']._serialized_end=4480 - _globals['_PAGINATIONOPTIONS']._serialized_start=4483 - _globals['_PAGINATIONOPTIONS']._serialized_end=4758 - _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_start=4686 - _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_end=4728 - _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_start=4730 - _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_end=4758 - _globals['_DATACATALOG']._serialized_start=4761 - _globals['_DATACATALOG']._serialized_end=5663 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi deleted file mode 100644 index 22dd8edbfe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi +++ /dev/null @@ -1,341 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CreateDatasetRequest(_message.Message): - __slots__ = ["dataset"] - DATASET_FIELD_NUMBER: _ClassVar[int] - dataset: Dataset - def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... - -class CreateDatasetResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class GetDatasetRequest(_message.Message): - __slots__ = ["dataset"] - DATASET_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... - -class GetDatasetResponse(_message.Message): - __slots__ = ["dataset"] - DATASET_FIELD_NUMBER: _ClassVar[int] - dataset: Dataset - def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... - -class GetArtifactRequest(_message.Message): - __slots__ = ["dataset", "artifact_id", "tag_name"] - DATASET_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - artifact_id: str - tag_name: str - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ...) -> None: ... - -class GetArtifactResponse(_message.Message): - __slots__ = ["artifact"] - ARTIFACT_FIELD_NUMBER: _ClassVar[int] - artifact: Artifact - def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... - -class CreateArtifactRequest(_message.Message): - __slots__ = ["artifact"] - ARTIFACT_FIELD_NUMBER: _ClassVar[int] - artifact: Artifact - def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... - -class CreateArtifactResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class AddTagRequest(_message.Message): - __slots__ = ["tag"] - TAG_FIELD_NUMBER: _ClassVar[int] - tag: Tag - def __init__(self, tag: _Optional[_Union[Tag, _Mapping]] = ...) -> None: ... - -class AddTagResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ListArtifactsRequest(_message.Message): - __slots__ = ["dataset", "filter", "pagination"] - DATASET_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] - PAGINATION_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - filter: FilterExpression - pagination: PaginationOptions - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... - -class ListArtifactsResponse(_message.Message): - __slots__ = ["artifacts", "next_token"] - ARTIFACTS_FIELD_NUMBER: _ClassVar[int] - NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] - artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] - next_token: str - def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... - -class ListDatasetsRequest(_message.Message): - __slots__ = ["filter", "pagination"] - FILTER_FIELD_NUMBER: _ClassVar[int] - PAGINATION_FIELD_NUMBER: _ClassVar[int] - filter: FilterExpression - pagination: PaginationOptions - def __init__(self, filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... - -class ListDatasetsResponse(_message.Message): - __slots__ = ["datasets", "next_token"] - DATASETS_FIELD_NUMBER: _ClassVar[int] - NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] - datasets: _containers.RepeatedCompositeFieldContainer[Dataset] - next_token: str - def __init__(self, datasets: _Optional[_Iterable[_Union[Dataset, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... - -class UpdateArtifactRequest(_message.Message): - __slots__ = ["dataset", "artifact_id", "tag_name", "data", "metadata"] - DATASET_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - artifact_id: str - tag_name: str - data: _containers.RepeatedCompositeFieldContainer[ArtifactData] - metadata: Metadata - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... - -class UpdateArtifactResponse(_message.Message): - __slots__ = ["artifact_id"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - artifact_id: str - def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... - -class ReservationID(_message.Message): - __slots__ = ["dataset_id", "tag_name"] - DATASET_ID_FIELD_NUMBER: _ClassVar[int] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - dataset_id: DatasetID - tag_name: str - def __init__(self, dataset_id: _Optional[_Union[DatasetID, _Mapping]] = ..., tag_name: _Optional[str] = ...) -> None: ... - -class GetOrExtendReservationRequest(_message.Message): - __slots__ = ["reservation_id", "owner_id", "heartbeat_interval"] - RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] - OWNER_ID_FIELD_NUMBER: _ClassVar[int] - HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] - reservation_id: ReservationID - owner_id: str - heartbeat_interval: _duration_pb2.Duration - def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class Reservation(_message.Message): - __slots__ = ["reservation_id", "owner_id", "heartbeat_interval", "expires_at", "metadata"] - RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] - OWNER_ID_FIELD_NUMBER: _ClassVar[int] - HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - reservation_id: ReservationID - owner_id: str - heartbeat_interval: _duration_pb2.Duration - expires_at: _timestamp_pb2.Timestamp - metadata: Metadata - def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... - -class GetOrExtendReservationResponse(_message.Message): - __slots__ = ["reservation"] - RESERVATION_FIELD_NUMBER: _ClassVar[int] - reservation: Reservation - def __init__(self, reservation: _Optional[_Union[Reservation, _Mapping]] = ...) -> None: ... - -class ReleaseReservationRequest(_message.Message): - __slots__ = ["reservation_id", "owner_id"] - RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] - OWNER_ID_FIELD_NUMBER: _ClassVar[int] - reservation_id: ReservationID - owner_id: str - def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ...) -> None: ... - -class ReleaseReservationResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Dataset(_message.Message): - __slots__ = ["id", "metadata", "partitionKeys"] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - PARTITIONKEYS_FIELD_NUMBER: _ClassVar[int] - id: DatasetID - metadata: Metadata - partitionKeys: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, id: _Optional[_Union[DatasetID, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitionKeys: _Optional[_Iterable[str]] = ...) -> None: ... - -class Partition(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class DatasetID(_message.Message): - __slots__ = ["project", "name", "domain", "version", "UUID", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - UUID_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - name: str - domain: str - version: str - UUID: str - org: str - def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ..., UUID: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class Artifact(_message.Message): - __slots__ = ["id", "dataset", "data", "metadata", "partitions", "tags", "created_at"] - ID_FIELD_NUMBER: _ClassVar[int] - DATASET_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - PARTITIONS_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - id: str - dataset: DatasetID - data: _containers.RepeatedCompositeFieldContainer[ArtifactData] - metadata: Metadata - partitions: _containers.RepeatedCompositeFieldContainer[Partition] - tags: _containers.RepeatedCompositeFieldContainer[Tag] - created_at: _timestamp_pb2.Timestamp - def __init__(self, id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitions: _Optional[_Iterable[_Union[Partition, _Mapping]]] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class ArtifactData(_message.Message): - __slots__ = ["name", "value"] - NAME_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - name: str - value: _literals_pb2.Literal - def __init__(self, name: _Optional[str] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... - -class Tag(_message.Message): - __slots__ = ["name", "artifact_id", "dataset"] - NAME_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - DATASET_FIELD_NUMBER: _ClassVar[int] - name: str - artifact_id: str - dataset: DatasetID - def __init__(self, name: _Optional[str] = ..., artifact_id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... - -class Metadata(_message.Message): - __slots__ = ["key_map"] - class KeyMapEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - KEY_MAP_FIELD_NUMBER: _ClassVar[int] - key_map: _containers.ScalarMap[str, str] - def __init__(self, key_map: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class FilterExpression(_message.Message): - __slots__ = ["filters"] - FILTERS_FIELD_NUMBER: _ClassVar[int] - filters: _containers.RepeatedCompositeFieldContainer[SinglePropertyFilter] - def __init__(self, filters: _Optional[_Iterable[_Union[SinglePropertyFilter, _Mapping]]] = ...) -> None: ... - -class SinglePropertyFilter(_message.Message): - __slots__ = ["tag_filter", "partition_filter", "artifact_filter", "dataset_filter", "operator"] - class ComparisonOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EQUALS: _ClassVar[SinglePropertyFilter.ComparisonOperator] - EQUALS: SinglePropertyFilter.ComparisonOperator - TAG_FILTER_FIELD_NUMBER: _ClassVar[int] - PARTITION_FILTER_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_FILTER_FIELD_NUMBER: _ClassVar[int] - DATASET_FILTER_FIELD_NUMBER: _ClassVar[int] - OPERATOR_FIELD_NUMBER: _ClassVar[int] - tag_filter: TagPropertyFilter - partition_filter: PartitionPropertyFilter - artifact_filter: ArtifactPropertyFilter - dataset_filter: DatasetPropertyFilter - operator: SinglePropertyFilter.ComparisonOperator - def __init__(self, tag_filter: _Optional[_Union[TagPropertyFilter, _Mapping]] = ..., partition_filter: _Optional[_Union[PartitionPropertyFilter, _Mapping]] = ..., artifact_filter: _Optional[_Union[ArtifactPropertyFilter, _Mapping]] = ..., dataset_filter: _Optional[_Union[DatasetPropertyFilter, _Mapping]] = ..., operator: _Optional[_Union[SinglePropertyFilter.ComparisonOperator, str]] = ...) -> None: ... - -class ArtifactPropertyFilter(_message.Message): - __slots__ = ["artifact_id"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - artifact_id: str - def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... - -class TagPropertyFilter(_message.Message): - __slots__ = ["tag_name"] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - tag_name: str - def __init__(self, tag_name: _Optional[str] = ...) -> None: ... - -class PartitionPropertyFilter(_message.Message): - __slots__ = ["key_val"] - KEY_VAL_FIELD_NUMBER: _ClassVar[int] - key_val: KeyValuePair - def __init__(self, key_val: _Optional[_Union[KeyValuePair, _Mapping]] = ...) -> None: ... - -class KeyValuePair(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class DatasetPropertyFilter(_message.Message): - __slots__ = ["project", "name", "domain", "version", "org"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - ORG_FIELD_NUMBER: _ClassVar[int] - project: str - name: str - domain: str - version: str - org: str - def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... - -class PaginationOptions(_message.Message): - __slots__ = ["limit", "token", "sortKey", "sortOrder"] - class SortOrder(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DESCENDING: _ClassVar[PaginationOptions.SortOrder] - ASCENDING: _ClassVar[PaginationOptions.SortOrder] - DESCENDING: PaginationOptions.SortOrder - ASCENDING: PaginationOptions.SortOrder - class SortKey(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CREATION_TIME: _ClassVar[PaginationOptions.SortKey] - CREATION_TIME: PaginationOptions.SortKey - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORTKEY_FIELD_NUMBER: _ClassVar[int] - SORTORDER_FIELD_NUMBER: _ClassVar[int] - limit: int - token: str - sortKey: PaginationOptions.SortKey - sortOrder: PaginationOptions.SortOrder - def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., sortKey: _Optional[_Union[PaginationOptions.SortKey, str]] = ..., sortOrder: _Optional[_Union[PaginationOptions.SortOrder, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py deleted file mode 100644 index b78b2fa78b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py +++ /dev/null @@ -1,398 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2 - - -class DataCatalogStub(object): - """ - Data Catalog service definition - Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - Artifacts are associated with a Dataset, and can be tagged for retrieval. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateDataset = channel.unary_unary( - '/datacatalog.DataCatalog/CreateDataset', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, - ) - self.GetDataset = channel.unary_unary( - '/datacatalog.DataCatalog/GetDataset', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, - ) - self.CreateArtifact = channel.unary_unary( - '/datacatalog.DataCatalog/CreateArtifact', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, - ) - self.GetArtifact = channel.unary_unary( - '/datacatalog.DataCatalog/GetArtifact', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, - ) - self.AddTag = channel.unary_unary( - '/datacatalog.DataCatalog/AddTag', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, - ) - self.ListArtifacts = channel.unary_unary( - '/datacatalog.DataCatalog/ListArtifacts', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, - ) - self.ListDatasets = channel.unary_unary( - '/datacatalog.DataCatalog/ListDatasets', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, - ) - self.UpdateArtifact = channel.unary_unary( - '/datacatalog.DataCatalog/UpdateArtifact', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, - ) - self.GetOrExtendReservation = channel.unary_unary( - '/datacatalog.DataCatalog/GetOrExtendReservation', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, - ) - self.ReleaseReservation = channel.unary_unary( - '/datacatalog.DataCatalog/ReleaseReservation', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, - ) - - -class DataCatalogServicer(object): - """ - Data Catalog service definition - Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - Artifacts are associated with a Dataset, and can be tagged for retrieval. - """ - - def CreateDataset(self, request, context): - """Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - Each dataset can have one or more artifacts - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDataset(self, request, context): - """Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateArtifact(self, request, context): - """Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - files or data values - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetArtifact(self, request, context): - """Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddTag(self, request, context): - """Associate a tag with an artifact. Tags are unique within a Dataset. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListArtifacts(self, request, context): - """Return a paginated list of artifacts - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListDatasets(self, request, context): - """Return a paginated list of datasets - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateArtifact(self, request, context): - """Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetOrExtendReservation(self, request, context): - """Attempts to get or extend a reservation for the corresponding artifact. If one already exists - (ie. another entity owns the reservation) then that reservation is retrieved. - Once you acquire a reservation, you need to periodically extend the reservation with an - identical call. If the reservation is not extended before the defined expiration, it may be - acquired by another task. - Note: We may have multiple concurrent tasks with the same signature and the same input that - try to populate the same artifact at the same time. Thus with reservation, only one task can - run at a time, until the reservation expires. - Note: If task A does not extend the reservation in time and the reservation expires, another - task B may take over the reservation, resulting in two tasks A and B running in parallel. So - a third task C may get the Artifact from A or B, whichever writes last. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReleaseReservation(self, request, context): - """Release the reservation when the task holding the spot fails so that the other tasks - can grab the spot. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DataCatalogServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateDataset': grpc.unary_unary_rpc_method_handler( - servicer.CreateDataset, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.SerializeToString, - ), - 'GetDataset': grpc.unary_unary_rpc_method_handler( - servicer.GetDataset, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.SerializeToString, - ), - 'CreateArtifact': grpc.unary_unary_rpc_method_handler( - servicer.CreateArtifact, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.SerializeToString, - ), - 'GetArtifact': grpc.unary_unary_rpc_method_handler( - servicer.GetArtifact, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.SerializeToString, - ), - 'AddTag': grpc.unary_unary_rpc_method_handler( - servicer.AddTag, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.SerializeToString, - ), - 'ListArtifacts': grpc.unary_unary_rpc_method_handler( - servicer.ListArtifacts, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.SerializeToString, - ), - 'ListDatasets': grpc.unary_unary_rpc_method_handler( - servicer.ListDatasets, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.SerializeToString, - ), - 'UpdateArtifact': grpc.unary_unary_rpc_method_handler( - servicer.UpdateArtifact, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.SerializeToString, - ), - 'GetOrExtendReservation': grpc.unary_unary_rpc_method_handler( - servicer.GetOrExtendReservation, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.SerializeToString, - ), - 'ReleaseReservation': grpc.unary_unary_rpc_method_handler( - servicer.ReleaseReservation, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'datacatalog.DataCatalog', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DataCatalog(object): - """ - Data Catalog service definition - Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - Artifacts are associated with a Dataset, and can be tagged for retrieval. - """ - - @staticmethod - def CreateDataset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateDataset', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDataset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetDataset', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateArtifact', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetArtifact', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddTag(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/AddTag', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListArtifacts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListArtifacts', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListDatasets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListDatasets', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/UpdateArtifact', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetOrExtendReservation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetOrExtendReservation', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReleaseReservation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ReleaseReservation', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/event/__init__.py b/flyteidl/gen/pb_python/flyteidl/event/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py deleted file mode 100644 index 7addfe281f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/event/cloudevents.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/event/cloudevents.proto\x12\x0e\x66lyteidl.event\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x03\n\x1b\x43loudEventWorkflowExecution\x12\x43\n\traw_event\x18\x01 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x08rawEvent\x12H\n\x10output_interface\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12<\n\x0c\x61rtifact_ids\x18\x03 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12[\n\x13reference_execution\x18\x04 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x06 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\x8b\x03\n\x17\x43loudEventNodeExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x08rawEvent\x12H\n\x0ctask_exec_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\ntaskExecId\x12H\n\x10output_interface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x06 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"Z\n\x17\x43loudEventTaskExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x08rawEvent\"\xef\x02\n\x18\x43loudEventExecutionStart\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12?\n\x0elaunch_plan_id\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\x12:\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12+\n\x11\x61rtifact_trackers\x18\x05 \x03(\tR\x10\x61rtifactTrackers\x12\x1c\n\tprincipal\x18\x06 \x01(\tR\tprincipalB\xbc\x01\n\x12\x63om.flyteidl.eventB\x10\x43loudeventsProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.cloudevents_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\020CloudeventsProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' - _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_start=240 - _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_end=662 - _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=665 - _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=1060 - _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1062 - _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1152 - _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1155 - _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1522 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi deleted file mode 100644 index b79750c9ca..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi +++ /dev/null @@ -1,66 +0,0 @@ -from flyteidl.event import event_pb2 as _event_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CloudEventWorkflowExecution(_message.Message): - __slots__ = ["raw_event", "output_interface", "artifact_ids", "reference_execution", "principal", "launch_plan_id"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.WorkflowExecutionEvent - output_interface: _interface_pb2.TypedInterface - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - reference_execution: _identifier_pb2.WorkflowExecutionIdentifier - principal: str - launch_plan_id: _identifier_pb2.Identifier - def __init__(self, raw_event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class CloudEventNodeExecution(_message.Message): - __slots__ = ["raw_event", "task_exec_id", "output_interface", "artifact_ids", "principal", "launch_plan_id"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - TASK_EXEC_ID_FIELD_NUMBER: _ClassVar[int] - OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.NodeExecutionEvent - task_exec_id: _identifier_pb2.TaskExecutionIdentifier - output_interface: _interface_pb2.TypedInterface - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - principal: str - launch_plan_id: _identifier_pb2.Identifier - def __init__(self, raw_event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ..., task_exec_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class CloudEventTaskExecution(_message.Message): - __slots__ = ["raw_event"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.TaskExecutionEvent - def __init__(self, raw_event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... - -class CloudEventExecutionStart(_message.Message): - __slots__ = ["execution_id", "launch_plan_id", "workflow_id", "artifact_ids", "artifact_trackers", "principal"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TRACKERS_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - launch_plan_id: _identifier_pb2.Identifier - workflow_id: _identifier_pb2.Identifier - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - artifact_trackers: _containers.RepeatedScalarFieldContainer[str] - principal: str - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., artifact_trackers: _Optional[_Iterable[str]] = ..., principal: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py deleted file mode 100644 index f1740e326a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/event/event.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/event/event.proto\x12\x0e\x66lyteidl.event\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xaa\x03\n\x16WorkflowExecutionEvent\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12<\n\x05phase\x18\x03 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1f\n\noutput_uri\x18\x05 \x01(\tH\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12<\n\x0boutput_data\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\noutputDataB\x0f\n\routput_result\"\xaa\t\n\x12NodeExecutionEvent\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x05 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x14 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\x06 \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x0f \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.event.WorkflowNodeMetadataH\x02R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\x0e \x01(\x0b\x32 .flyteidl.event.TaskNodeMetadataH\x02R\x10taskNodeMetadata\x12]\n\x14parent_task_metadata\x18\t \x01(\x0b\x32+.flyteidl.event.ParentTaskExecutionMetadataR\x12parentTaskMetadata\x12]\n\x14parent_node_metadata\x18\n \x01(\x0b\x32+.flyteidl.event.ParentNodeExecutionMetadataR\x12parentNodeMetadata\x12\x1f\n\x0bretry_group\x18\x0b \x01(\tR\nretryGroup\x12 \n\x0cspec_node_id\x18\x0c \x01(\tR\nspecNodeId\x12\x1b\n\tnode_name\x18\r \x01(\tR\x08nodeName\x12#\n\revent_version\x18\x10 \x01(\x05R\x0c\x65ventVersion\x12\x1b\n\tis_parent\x18\x11 \x01(\x08R\x08isParent\x12\x1d\n\nis_dynamic\x18\x12 \x01(\x08R\tisDynamic\x12\x19\n\x08\x64\x65\x63k_uri\x18\x13 \x01(\tR\x07\x64\x65\x63kUri\x12;\n\x0breported_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAt\x12\x19\n\x08is_array\x18\x16 \x01(\x08R\x07isArrayB\r\n\x0binput_valueB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"e\n\x14WorkflowNodeMetadata\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xf1\x02\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12W\n\x12reservation_status\x18\x03 \x01(\x0e\x32(.flyteidl.core.CatalogReservation.StatusR\x11reservationStatus\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.event.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bParentTaskExecutionMetadata\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"6\n\x1bParentNodeExecutionMetadata\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\"b\n\x0b\x45ventReason\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\"\x97\x08\n\x12TaskExecutionEvent\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12_\n\x18parent_node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x15parentNodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x1f\n\x0bproducer_id\x18\x05 \x01(\tR\nproducerId\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12;\n\x0boccurred_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x08 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x13 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\t \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\n \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x11 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\x38\n\x0b\x63ustom_info\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12#\n\rphase_version\x18\x0c \x01(\rR\x0cphaseVersion\x12\x1a\n\x06reason\x18\r \x01(\tB\x02\x18\x01R\x06reason\x12\x35\n\x07reasons\x18\x15 \x03(\x0b\x32\x1b.flyteidl.event.EventReasonR\x07reasons\x12\x1b\n\ttask_type\x18\x0e \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x12 \x01(\x05R\x0c\x65ventVersion\x12;\n\x0breported_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAtB\r\n\x0binput_valueB\x0f\n\routput_result\"\x9e\x02\n\x14\x45xternalResourceInfo\x12\x1f\n\x0b\x65xternal_id\x18\x01 \x01(\tR\nexternalId\x12\x14\n\x05index\x18\x02 \x01(\rR\x05index\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x44\n\x0c\x63\x61\x63he_status\x18\x05 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\"[\n\x10ResourcePoolInfo\x12)\n\x10\x61llocation_token\x18\x01 \x01(\tR\x0f\x61llocationToken\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x9d\x03\n\x15TaskExecutionMetadata\x12%\n\x0egenerated_name\x18\x01 \x01(\tR\rgeneratedName\x12S\n\x12\x65xternal_resources\x18\x02 \x03(\x0b\x32$.flyteidl.event.ExternalResourceInfoR\x11\x65xternalResources\x12N\n\x12resource_pool_info\x18\x03 \x03(\x0b\x32 .flyteidl.event.ResourcePoolInfoR\x10resourcePoolInfo\x12+\n\x11plugin_identifier\x18\x04 \x01(\tR\x10pluginIdentifier\x12Z\n\x0einstance_class\x18\x10 \x01(\x0e\x32\x33.flyteidl.event.TaskExecutionMetadata.InstanceClassR\rinstanceClass\"/\n\rInstanceClass\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x11\n\rINTERRUPTIBLE\x10\x01\x42\xb6\x01\n\x12\x63om.flyteidl.eventB\nEventProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.event_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\nEventProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' - _TASKEXECUTIONEVENT.fields_by_name['reason']._options = None - _TASKEXECUTIONEVENT.fields_by_name['reason']._serialized_options = b'\030\001' - _globals['_WORKFLOWEXECUTIONEVENT']._serialized_start=262 - _globals['_WORKFLOWEXECUTIONEVENT']._serialized_end=688 - _globals['_NODEEXECUTIONEVENT']._serialized_start=691 - _globals['_NODEEXECUTIONEVENT']._serialized_end=1885 - _globals['_WORKFLOWNODEMETADATA']._serialized_start=1887 - _globals['_WORKFLOWNODEMETADATA']._serialized_end=1988 - _globals['_TASKNODEMETADATA']._serialized_start=1991 - _globals['_TASKNODEMETADATA']._serialized_end=2360 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2363 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2569 - _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_start=2571 - _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_end=2656 - _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_start=2658 - _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_end=2712 - _globals['_EVENTREASON']._serialized_start=2714 - _globals['_EVENTREASON']._serialized_end=2812 - _globals['_TASKEXECUTIONEVENT']._serialized_start=2815 - _globals['_TASKEXECUTIONEVENT']._serialized_end=3862 - _globals['_EXTERNALRESOURCEINFO']._serialized_start=3865 - _globals['_EXTERNALRESOURCEINFO']._serialized_end=4151 - _globals['_RESOURCEPOOLINFO']._serialized_start=4153 - _globals['_RESOURCEPOOLINFO']._serialized_end=4244 - _globals['_TASKEXECUTIONMETADATA']._serialized_start=4247 - _globals['_TASKEXECUTIONMETADATA']._serialized_end=4660 - _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_start=4613 - _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_end=4660 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi deleted file mode 100644 index 3297975f5d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi +++ /dev/null @@ -1,218 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import catalog_pb2 as _catalog_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowExecutionEvent(_message.Message): - __slots__ = ["execution_id", "producer_id", "phase", "occurred_at", "output_uri", "error", "output_data"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - producer_id: str - phase: _execution_pb2.WorkflowExecution.Phase - occurred_at: _timestamp_pb2.Timestamp - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class NodeExecutionEvent(_message.Message): - __slots__ = ["id", "producer_id", "phase", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "workflow_node_metadata", "task_node_metadata", "parent_task_metadata", "parent_node_metadata", "retry_group", "spec_node_id", "node_name", "event_version", "is_parent", "is_dynamic", "deck_uri", "reported_at", "is_array"] - ID_FIELD_NUMBER: _ClassVar[int] - PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - INPUT_DATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - PARENT_TASK_METADATA_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] - SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] - NODE_NAME_FIELD_NUMBER: _ClassVar[int] - EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] - IS_PARENT_FIELD_NUMBER: _ClassVar[int] - IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] - DECK_URI_FIELD_NUMBER: _ClassVar[int] - REPORTED_AT_FIELD_NUMBER: _ClassVar[int] - IS_ARRAY_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - producer_id: str - phase: _execution_pb2.NodeExecution.Phase - occurred_at: _timestamp_pb2.Timestamp - input_uri: str - input_data: _literals_pb2.LiteralMap - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - workflow_node_metadata: WorkflowNodeMetadata - task_node_metadata: TaskNodeMetadata - parent_task_metadata: ParentTaskExecutionMetadata - parent_node_metadata: ParentNodeExecutionMetadata - retry_group: str - spec_node_id: str - node_name: str - event_version: int - is_parent: bool - is_dynamic: bool - deck_uri: str - reported_at: _timestamp_pb2.Timestamp - is_array: bool - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., parent_task_metadata: _Optional[_Union[ParentTaskExecutionMetadata, _Mapping]] = ..., parent_node_metadata: _Optional[_Union[ParentNodeExecutionMetadata, _Mapping]] = ..., retry_group: _Optional[str] = ..., spec_node_id: _Optional[str] = ..., node_name: _Optional[str] = ..., event_version: _Optional[int] = ..., is_parent: bool = ..., is_dynamic: bool = ..., deck_uri: _Optional[str] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., is_array: bool = ...) -> None: ... - -class WorkflowNodeMetadata(_message.Message): - __slots__ = ["execution_id"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskNodeMetadata(_message.Message): - __slots__ = ["cache_status", "catalog_key", "reservation_status", "checkpoint_uri", "dynamic_workflow"] - CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] - CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] - RESERVATION_STATUS_FIELD_NUMBER: _ClassVar[int] - CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - cache_status: _catalog_pb2.CatalogCacheStatus - catalog_key: _catalog_pb2.CatalogMetadata - reservation_status: _catalog_pb2.CatalogReservation.Status - checkpoint_uri: str - dynamic_workflow: DynamicWorkflowNodeMetadata - def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., reservation_status: _Optional[_Union[_catalog_pb2.CatalogReservation.Status, str]] = ..., checkpoint_uri: _Optional[str] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ...) -> None: ... - -class DynamicWorkflowNodeMetadata(_message.Message): - __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] - ID_FIELD_NUMBER: _ClassVar[int] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - dynamic_job_spec_uri: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... - -class ParentTaskExecutionMetadata(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class ParentNodeExecutionMetadata(_message.Message): - __slots__ = ["node_id"] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - node_id: str - def __init__(self, node_id: _Optional[str] = ...) -> None: ... - -class EventReason(_message.Message): - __slots__ = ["reason", "occurred_at"] - REASON_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - reason: str - occurred_at: _timestamp_pb2.Timestamp - def __init__(self, reason: _Optional[str] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class TaskExecutionEvent(_message.Message): - __slots__ = ["task_id", "parent_node_execution_id", "retry_attempt", "phase", "producer_id", "logs", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "custom_info", "phase_version", "reason", "reasons", "task_type", "metadata", "event_version", "reported_at"] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] - LOGS_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - INPUT_DATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] - PHASE_VERSION_FIELD_NUMBER: _ClassVar[int] - REASON_FIELD_NUMBER: _ClassVar[int] - REASONS_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] - REPORTED_AT_FIELD_NUMBER: _ClassVar[int] - task_id: _identifier_pb2.Identifier - parent_node_execution_id: _identifier_pb2.NodeExecutionIdentifier - retry_attempt: int - phase: _execution_pb2.TaskExecution.Phase - producer_id: str - logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - occurred_at: _timestamp_pb2.Timestamp - input_uri: str - input_data: _literals_pb2.LiteralMap - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - custom_info: _struct_pb2.Struct - phase_version: int - reason: str - reasons: _containers.RepeatedCompositeFieldContainer[EventReason] - task_type: str - metadata: TaskExecutionMetadata - event_version: int - reported_at: _timestamp_pb2.Timestamp - def __init__(self, task_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., parent_node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., producer_id: _Optional[str] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., phase_version: _Optional[int] = ..., reason: _Optional[str] = ..., reasons: _Optional[_Iterable[_Union[EventReason, _Mapping]]] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class ExternalResourceInfo(_message.Message): - __slots__ = ["external_id", "index", "retry_attempt", "phase", "cache_status", "logs"] - EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int] - INDEX_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] - LOGS_FIELD_NUMBER: _ClassVar[int] - external_id: str - index: int - retry_attempt: int - phase: _execution_pb2.TaskExecution.Phase - cache_status: _catalog_pb2.CatalogCacheStatus - logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - def __init__(self, external_id: _Optional[str] = ..., index: _Optional[int] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... - -class ResourcePoolInfo(_message.Message): - __slots__ = ["allocation_token", "namespace"] - ALLOCATION_TOKEN_FIELD_NUMBER: _ClassVar[int] - NAMESPACE_FIELD_NUMBER: _ClassVar[int] - allocation_token: str - namespace: str - def __init__(self, allocation_token: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... - -class TaskExecutionMetadata(_message.Message): - __slots__ = ["generated_name", "external_resources", "resource_pool_info", "plugin_identifier", "instance_class"] - class InstanceClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DEFAULT: _ClassVar[TaskExecutionMetadata.InstanceClass] - INTERRUPTIBLE: _ClassVar[TaskExecutionMetadata.InstanceClass] - DEFAULT: TaskExecutionMetadata.InstanceClass - INTERRUPTIBLE: TaskExecutionMetadata.InstanceClass - GENERATED_NAME_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESOURCE_POOL_INFO_FIELD_NUMBER: _ClassVar[int] - PLUGIN_IDENTIFIER_FIELD_NUMBER: _ClassVar[int] - INSTANCE_CLASS_FIELD_NUMBER: _ClassVar[int] - generated_name: str - external_resources: _containers.RepeatedCompositeFieldContainer[ExternalResourceInfo] - resource_pool_info: _containers.RepeatedCompositeFieldContainer[ResourcePoolInfo] - plugin_identifier: str - instance_class: TaskExecutionMetadata.InstanceClass - def __init__(self, generated_name: _Optional[str] = ..., external_resources: _Optional[_Iterable[_Union[ExternalResourceInfo, _Mapping]]] = ..., resource_pool_info: _Optional[_Iterable[_Union[ResourcePoolInfo, _Mapping]]] = ..., plugin_identifier: _Optional[str] = ..., instance_class: _Optional[_Union[TaskExecutionMetadata.InstanceClass, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py deleted file mode 100644 index 7334e20277..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/array_job.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/plugins/array_job.proto\x12\x10\x66lyteidl.plugins\"\xa9\x01\n\x08\x41rrayJob\x12 \n\x0bparallelism\x18\x01 \x01(\x03R\x0bparallelism\x12\x12\n\x04size\x18\x02 \x01(\x03R\x04size\x12%\n\rmin_successes\x18\x03 \x01(\x03H\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteriaB\xc5\x01\n\x14\x63om.flyteidl.pluginsB\rArrayJobProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.array_job_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rArrayJobProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_ARRAYJOB']._serialized_start=55 - _globals['_ARRAYJOB']._serialized_end=224 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi deleted file mode 100644 index 160cb5f007..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class ArrayJob(_message.Message): - __slots__ = ["parallelism", "size", "min_successes", "min_success_ratio"] - PARALLELISM_FIELD_NUMBER: _ClassVar[int] - SIZE_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] - parallelism: int - size: int - min_successes: int - min_success_ratio: float - def __init__(self, parallelism: _Optional[int] = ..., size: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py deleted file mode 100644 index 931fd999ed..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/dask.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/plugins/dask.proto\x12\x10\x66lyteidl.plugins\x1a\x19\x66lyteidl/core/tasks.proto\"\x85\x01\n\x07\x44\x61skJob\x12=\n\tscheduler\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.DaskSchedulerR\tscheduler\x12;\n\x07workers\x18\x02 \x01(\x0b\x32!.flyteidl.plugins.DaskWorkerGroupR\x07workers\"]\n\rDaskScheduler\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\"\x8b\x01\n\x0f\x44\x61skWorkerGroup\x12*\n\x11number_of_workers\x18\x01 \x01(\rR\x0fnumberOfWorkers\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresourcesB\xc1\x01\n\x14\x63om.flyteidl.pluginsB\tDaskProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.dask_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\tDaskProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_DASKJOB']._serialized_start=77 - _globals['_DASKJOB']._serialized_end=210 - _globals['_DASKSCHEDULER']._serialized_start=212 - _globals['_DASKSCHEDULER']._serialized_end=305 - _globals['_DASKWORKERGROUP']._serialized_start=308 - _globals['_DASKWORKERGROUP']._serialized_end=447 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi deleted file mode 100644 index df94d33778..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi +++ /dev/null @@ -1,32 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DaskJob(_message.Message): - __slots__ = ["scheduler", "workers"] - SCHEDULER_FIELD_NUMBER: _ClassVar[int] - WORKERS_FIELD_NUMBER: _ClassVar[int] - scheduler: DaskScheduler - workers: DaskWorkerGroup - def __init__(self, scheduler: _Optional[_Union[DaskScheduler, _Mapping]] = ..., workers: _Optional[_Union[DaskWorkerGroup, _Mapping]] = ...) -> None: ... - -class DaskScheduler(_message.Message): - __slots__ = ["image", "resources"] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - image: str - resources: _tasks_pb2.Resources - def __init__(self, image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... - -class DaskWorkerGroup(_message.Message): - __slots__ = ["number_of_workers", "image", "resources"] - NUMBER_OF_WORKERS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - number_of_workers: int - image: str - resources: _tasks_pb2.Resources - def __init__(self, number_of_workers: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py deleted file mode 100644 index d09a4aba41..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/common.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/plugins/kubeflow/common.proto\x12\x19\x66lyteidl.plugins.kubeflow\"\xfa\x01\n\tRunPolicy\x12S\n\x10\x63lean_pod_policy\x18\x01 \x01(\x0e\x32).flyteidl.plugins.kubeflow.CleanPodPolicyR\x0e\x63leanPodPolicy\x12;\n\x1attl_seconds_after_finished\x18\x02 \x01(\x05R\x17ttlSecondsAfterFinished\x12\x36\n\x17\x61\x63tive_deadline_seconds\x18\x03 \x01(\x05R\x15\x61\x63tiveDeadlineSeconds\x12#\n\rbackoff_limit\x18\x04 \x01(\x05R\x0c\x62\x61\x63koffLimit*c\n\rRestartPolicy\x12\x18\n\x14RESTART_POLICY_NEVER\x10\x00\x12\x1d\n\x19RESTART_POLICY_ON_FAILURE\x10\x01\x12\x19\n\x15RESTART_POLICY_ALWAYS\x10\x02*`\n\x0e\x43leanPodPolicy\x12\x18\n\x14\x43LEANPOD_POLICY_NONE\x10\x00\x12\x1b\n\x17\x43LEANPOD_POLICY_RUNNING\x10\x01\x12\x17\n\x13\x43LEANPOD_POLICY_ALL\x10\x02\x42\xf1\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0b\x43ommonProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.common_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\013CommonProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_RESTARTPOLICY']._serialized_start=322 - _globals['_RESTARTPOLICY']._serialized_end=421 - _globals['_CLEANPODPOLICY']._serialized_start=423 - _globals['_CLEANPODPOLICY']._serialized_end=519 - _globals['_RUNPOLICY']._serialized_start=70 - _globals['_RUNPOLICY']._serialized_end=320 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi deleted file mode 100644 index 916c3344b2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi +++ /dev/null @@ -1,36 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class RestartPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RESTART_POLICY_NEVER: _ClassVar[RestartPolicy] - RESTART_POLICY_ON_FAILURE: _ClassVar[RestartPolicy] - RESTART_POLICY_ALWAYS: _ClassVar[RestartPolicy] - -class CleanPodPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CLEANPOD_POLICY_NONE: _ClassVar[CleanPodPolicy] - CLEANPOD_POLICY_RUNNING: _ClassVar[CleanPodPolicy] - CLEANPOD_POLICY_ALL: _ClassVar[CleanPodPolicy] -RESTART_POLICY_NEVER: RestartPolicy -RESTART_POLICY_ON_FAILURE: RestartPolicy -RESTART_POLICY_ALWAYS: RestartPolicy -CLEANPOD_POLICY_NONE: CleanPodPolicy -CLEANPOD_POLICY_RUNNING: CleanPodPolicy -CLEANPOD_POLICY_ALL: CleanPodPolicy - -class RunPolicy(_message.Message): - __slots__ = ["clean_pod_policy", "ttl_seconds_after_finished", "active_deadline_seconds", "backoff_limit"] - CLEAN_POD_POLICY_FIELD_NUMBER: _ClassVar[int] - TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] - ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER: _ClassVar[int] - BACKOFF_LIMIT_FIELD_NUMBER: _ClassVar[int] - clean_pod_policy: CleanPodPolicy - ttl_seconds_after_finished: int - active_deadline_seconds: int - backoff_limit: int - def __init__(self, clean_pod_policy: _Optional[_Union[CleanPodPolicy, str]] = ..., ttl_seconds_after_finished: _Optional[int] = ..., active_deadline_seconds: _Optional[int] = ..., backoff_limit: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py deleted file mode 100644 index 4ed3f22be7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/mpi.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/plugins/kubeflow/mpi.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc9\x02\n\x1a\x44istributedMPITrainingTask\x12\x65\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x11launcher_replicas\x18\x02 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x10launcherReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12\x14\n\x05slots\x18\x04 \x01(\x05R\x05slots\"\xf8\x01\n!DistributedMPITrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicy\x12\x18\n\x07\x63ommand\x18\x05 \x03(\tR\x07\x63ommandB\xee\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x08MpiProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.mpi_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\010MpiProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=134 - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=463 - _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_start=466 - _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_end=714 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi deleted file mode 100644 index 6258542993..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedMPITrainingTask(_message.Message): - __slots__ = ["worker_replicas", "launcher_replicas", "run_policy", "slots"] - WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RUN_POLICY_FIELD_NUMBER: _ClassVar[int] - SLOTS_FIELD_NUMBER: _ClassVar[int] - worker_replicas: DistributedMPITrainingReplicaSpec - launcher_replicas: DistributedMPITrainingReplicaSpec - run_policy: _common_pb2.RunPolicy - slots: int - def __init__(self, worker_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., launcher_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., slots: _Optional[int] = ...) -> None: ... - -class DistributedMPITrainingReplicaSpec(_message.Message): - __slots__ = ["replicas", "image", "resources", "restart_policy", "command"] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - COMMAND_FIELD_NUMBER: _ClassVar[int] - replicas: int - image: str - resources: _tasks_pb2.Resources - restart_policy: _common_pb2.RestartPolicy - command: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ..., command: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py deleted file mode 100644 index 46f574228a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/pytorch.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/plugins/kubeflow/pytorch.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x8c\x03\n\x1e\x44istributedPyTorchTrainingTask\x12i\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x0fmaster_replicas\x18\x02 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0emasterReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12O\n\x0e\x65lastic_config\x18\x04 \x01(\x0b\x32(.flyteidl.plugins.kubeflow.ElasticConfigR\relasticConfig\"\xe2\x01\n%DistributedPyTorchTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xf2\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0cPytorchProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.pytorch_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\014PytorchProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_ELASTICCONFIG']._serialized_start=138 - _globals['_ELASTICCONFIG']._serialized_end=331 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=334 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=730 - _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_start=733 - _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_end=959 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi deleted file mode 100644 index ee6599ad82..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi +++ /dev/null @@ -1,45 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ElasticConfig(_message.Message): - __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] - RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] - MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] - NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] - MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] - rdzv_backend: str - min_replicas: int - max_replicas: int - nproc_per_node: int - max_restarts: int - def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... - -class DistributedPyTorchTrainingTask(_message.Message): - __slots__ = ["worker_replicas", "master_replicas", "run_policy", "elastic_config"] - WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MASTER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RUN_POLICY_FIELD_NUMBER: _ClassVar[int] - ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] - worker_replicas: DistributedPyTorchTrainingReplicaSpec - master_replicas: DistributedPyTorchTrainingReplicaSpec - run_policy: _common_pb2.RunPolicy - elastic_config: ElasticConfig - def __init__(self, worker_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., master_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... - -class DistributedPyTorchTrainingReplicaSpec(_message.Message): - __slots__ = ["replicas", "image", "resources", "restart_policy"] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - replicas: int - image: str - resources: _tasks_pb2.Resources - restart_policy: _common_pb2.RestartPolicy - def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py deleted file mode 100644 index f0c086f9e7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/tensorflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*flyteidl/plugins/kubeflow/tensorflow.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\x9c\x04\n!DistributedTensorflowTrainingTask\x12l\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x0eworkerReplicas\x12\x64\n\x0bps_replicas\x18\x02 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\npsReplicas\x12j\n\x0e\x63hief_replicas\x18\x03 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\rchiefReplicas\x12\x43\n\nrun_policy\x18\x04 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12r\n\x12\x65valuator_replicas\x18\x05 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x11\x65valuatorReplicas\"\xe5\x01\n(DistributedTensorflowTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xf5\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0fTensorflowProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.tensorflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\017TensorflowProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=141 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=681 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_start=684 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_end=913 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi deleted file mode 100644 index 4a999f70e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi +++ /dev/null @@ -1,33 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedTensorflowTrainingTask(_message.Message): - __slots__ = ["worker_replicas", "ps_replicas", "chief_replicas", "run_policy", "evaluator_replicas"] - WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] - CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RUN_POLICY_FIELD_NUMBER: _ClassVar[int] - EVALUATOR_REPLICAS_FIELD_NUMBER: _ClassVar[int] - worker_replicas: DistributedTensorflowTrainingReplicaSpec - ps_replicas: DistributedTensorflowTrainingReplicaSpec - chief_replicas: DistributedTensorflowTrainingReplicaSpec - run_policy: _common_pb2.RunPolicy - evaluator_replicas: DistributedTensorflowTrainingReplicaSpec - def __init__(self, worker_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., ps_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., chief_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., evaluator_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ...) -> None: ... - -class DistributedTensorflowTrainingReplicaSpec(_message.Message): - __slots__ = ["replicas", "image", "resources", "restart_policy"] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - replicas: int - image: str - resources: _tasks_pb2.Resources - restart_policy: _common_pb2.RestartPolicy - def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py deleted file mode 100644 index 7552fe1010..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/mpi.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/mpi.proto\x12\x10\x66lyteidl.plugins\"\x87\x01\n\x1a\x44istributedMPITrainingTask\x12\x1f\n\x0bnum_workers\x18\x01 \x01(\x05R\nnumWorkers\x12\x32\n\x15num_launcher_replicas\x18\x02 \x01(\x05R\x13numLauncherReplicas\x12\x14\n\x05slots\x18\x03 \x01(\x05R\x05slotsB\xc0\x01\n\x14\x63om.flyteidl.pluginsB\x08MpiProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.mpi_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010MpiProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=49 - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=184 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi deleted file mode 100644 index b907bede41..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi +++ /dev/null @@ -1,15 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedMPITrainingTask(_message.Message): - __slots__ = ["num_workers", "num_launcher_replicas", "slots"] - NUM_WORKERS_FIELD_NUMBER: _ClassVar[int] - NUM_LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - SLOTS_FIELD_NUMBER: _ClassVar[int] - num_workers: int - num_launcher_replicas: int - slots: int - def __init__(self, num_workers: _Optional[int] = ..., num_launcher_replicas: _Optional[int] = ..., slots: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py deleted file mode 100644 index b70acbd2a5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/presto.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/presto.proto\x12\x10\x66lyteidl.plugins\"\x82\x01\n\x0bPrestoQuery\x12#\n\rrouting_group\x18\x01 \x01(\tR\x0croutingGroup\x12\x18\n\x07\x63\x61talog\x18\x02 \x01(\tR\x07\x63\x61talog\x12\x16\n\x06schema\x18\x03 \x01(\tR\x06schema\x12\x1c\n\tstatement\x18\x04 \x01(\tR\tstatementB\xc3\x01\n\x14\x63om.flyteidl.pluginsB\x0bPrestoProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.presto_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013PrestoProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_PRESTOQUERY']._serialized_start=52 - _globals['_PRESTOQUERY']._serialized_end=182 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi deleted file mode 100644 index 6f185403e4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class PrestoQuery(_message.Message): - __slots__ = ["routing_group", "catalog", "schema", "statement"] - ROUTING_GROUP_FIELD_NUMBER: _ClassVar[int] - CATALOG_FIELD_NUMBER: _ClassVar[int] - SCHEMA_FIELD_NUMBER: _ClassVar[int] - STATEMENT_FIELD_NUMBER: _ClassVar[int] - routing_group: str - catalog: str - schema: str - statement: str - def __init__(self, routing_group: _Optional[str] = ..., catalog: _Optional[str] = ..., schema: _Optional[str] = ..., statement: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py deleted file mode 100644 index 03333857ab..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/pytorch.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/plugins/pytorch.proto\x12\x10\x66lyteidl.plugins\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x82\x01\n\x1e\x44istributedPyTorchTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x46\n\x0e\x65lastic_config\x18\x02 \x01(\x0b\x32\x1f.flyteidl.plugins.ElasticConfigR\relasticConfigB\xc4\x01\n\x14\x63om.flyteidl.pluginsB\x0cPytorchProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.pytorch_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\014PytorchProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_ELASTICCONFIG']._serialized_start=53 - _globals['_ELASTICCONFIG']._serialized_end=246 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=249 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=379 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi deleted file mode 100644 index 882c38d2de..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ElasticConfig(_message.Message): - __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] - RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] - MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] - NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] - MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] - rdzv_backend: str - min_replicas: int - max_replicas: int - nproc_per_node: int - max_restarts: int - def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... - -class DistributedPyTorchTrainingTask(_message.Message): - __slots__ = ["workers", "elastic_config"] - WORKERS_FIELD_NUMBER: _ClassVar[int] - ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] - workers: int - elastic_config: ElasticConfig - def __init__(self, workers: _Optional[int] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py deleted file mode 100644 index d3f6cc135d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/qubole.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/qubole.proto\x12\x10\x66lyteidl.plugins\"b\n\tHiveQuery\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x1f\n\x0btimeout_sec\x18\x02 \x01(\rR\ntimeoutSec\x12\x1e\n\nretryCount\x18\x03 \x01(\rR\nretryCount\"L\n\x13HiveQueryCollection\x12\x35\n\x07queries\x18\x02 \x03(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x07queries\"\xd1\x01\n\rQuboleHiveJob\x12#\n\rcluster_label\x18\x01 \x01(\tR\x0c\x63lusterLabel\x12T\n\x10query_collection\x18\x02 \x01(\x0b\x32%.flyteidl.plugins.HiveQueryCollectionB\x02\x18\x01R\x0fqueryCollection\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x31\n\x05query\x18\x04 \x01(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x05queryB\xc3\x01\n\x14\x63om.flyteidl.pluginsB\x0bQuboleProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.qubole_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013QuboleProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _QUBOLEHIVEJOB.fields_by_name['query_collection']._options = None - _QUBOLEHIVEJOB.fields_by_name['query_collection']._serialized_options = b'\030\001' - _globals['_HIVEQUERY']._serialized_start=51 - _globals['_HIVEQUERY']._serialized_end=149 - _globals['_HIVEQUERYCOLLECTION']._serialized_start=151 - _globals['_HIVEQUERYCOLLECTION']._serialized_end=227 - _globals['_QUBOLEHIVEJOB']._serialized_start=230 - _globals['_QUBOLEHIVEJOB']._serialized_end=439 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi deleted file mode 100644 index 71e6bd6698..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class HiveQuery(_message.Message): - __slots__ = ["query", "timeout_sec", "retryCount"] - QUERY_FIELD_NUMBER: _ClassVar[int] - TIMEOUT_SEC_FIELD_NUMBER: _ClassVar[int] - RETRYCOUNT_FIELD_NUMBER: _ClassVar[int] - query: str - timeout_sec: int - retryCount: int - def __init__(self, query: _Optional[str] = ..., timeout_sec: _Optional[int] = ..., retryCount: _Optional[int] = ...) -> None: ... - -class HiveQueryCollection(_message.Message): - __slots__ = ["queries"] - QUERIES_FIELD_NUMBER: _ClassVar[int] - queries: _containers.RepeatedCompositeFieldContainer[HiveQuery] - def __init__(self, queries: _Optional[_Iterable[_Union[HiveQuery, _Mapping]]] = ...) -> None: ... - -class QuboleHiveJob(_message.Message): - __slots__ = ["cluster_label", "query_collection", "tags", "query"] - CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] - QUERY_COLLECTION_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - QUERY_FIELD_NUMBER: _ClassVar[int] - cluster_label: str - query_collection: HiveQueryCollection - tags: _containers.RepeatedScalarFieldContainer[str] - query: HiveQuery - def __init__(self, cluster_label: _Optional[str] = ..., query_collection: _Optional[_Union[HiveQueryCollection, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ..., query: _Optional[_Union[HiveQuery, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py deleted file mode 100644 index 1c5de3b666..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/ray.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/ray.proto\x12\x10\x66lyteidl.plugins\"\xe4\x01\n\x06RayJob\x12=\n\x0bray_cluster\x18\x01 \x01(\x0b\x32\x1c.flyteidl.plugins.RayClusterR\nrayCluster\x12\x1f\n\x0bruntime_env\x18\x02 \x01(\tR\nruntimeEnv\x12=\n\x1bshutdown_after_job_finishes\x18\x03 \x01(\x08R\x18shutdownAfterJobFinishes\x12;\n\x1attl_seconds_after_finished\x18\x04 \x01(\x05R\x17ttlSecondsAfterFinished\"\xd3\x01\n\nRayCluster\x12G\n\x0fhead_group_spec\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.HeadGroupSpecR\rheadGroupSpec\x12M\n\x11worker_group_spec\x18\x02 \x03(\x0b\x32!.flyteidl.plugins.WorkerGroupSpecR\x0fworkerGroupSpec\x12-\n\x12\x65nable_autoscaling\x18\x03 \x01(\x08R\x11\x65nableAutoscaling\"\xb1\x01\n\rHeadGroupSpec\x12]\n\x10ray_start_params\x18\x01 \x03(\x0b\x32\x33.flyteidl.plugins.HeadGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb6\x02\n\x0fWorkerGroupSpec\x12\x1d\n\ngroup_name\x18\x01 \x01(\tR\tgroupName\x12\x1a\n\x08replicas\x18\x02 \x01(\x05R\x08replicas\x12!\n\x0cmin_replicas\x18\x03 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x04 \x01(\x05R\x0bmaxReplicas\x12_\n\x10ray_start_params\x18\x05 \x03(\x0b\x32\x35.flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xc0\x01\n\x14\x63om.flyteidl.pluginsB\x08RayProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.ray_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010RayProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._options = None - _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' - _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._options = None - _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' - _globals['_RAYJOB']._serialized_start=49 - _globals['_RAYJOB']._serialized_end=277 - _globals['_RAYCLUSTER']._serialized_start=280 - _globals['_RAYCLUSTER']._serialized_end=491 - _globals['_HEADGROUPSPEC']._serialized_start=494 - _globals['_HEADGROUPSPEC']._serialized_end=671 - _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=606 - _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=671 - _globals['_WORKERGROUPSPEC']._serialized_start=674 - _globals['_WORKERGROUPSPEC']._serialized_end=984 - _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=606 - _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=671 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi deleted file mode 100644 index 15c78912bd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class RayJob(_message.Message): - __slots__ = ["ray_cluster", "runtime_env", "shutdown_after_job_finishes", "ttl_seconds_after_finished"] - RAY_CLUSTER_FIELD_NUMBER: _ClassVar[int] - RUNTIME_ENV_FIELD_NUMBER: _ClassVar[int] - SHUTDOWN_AFTER_JOB_FINISHES_FIELD_NUMBER: _ClassVar[int] - TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] - ray_cluster: RayCluster - runtime_env: str - shutdown_after_job_finishes: bool - ttl_seconds_after_finished: int - def __init__(self, ray_cluster: _Optional[_Union[RayCluster, _Mapping]] = ..., runtime_env: _Optional[str] = ..., shutdown_after_job_finishes: bool = ..., ttl_seconds_after_finished: _Optional[int] = ...) -> None: ... - -class RayCluster(_message.Message): - __slots__ = ["head_group_spec", "worker_group_spec", "enable_autoscaling"] - HEAD_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] - WORKER_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] - ENABLE_AUTOSCALING_FIELD_NUMBER: _ClassVar[int] - head_group_spec: HeadGroupSpec - worker_group_spec: _containers.RepeatedCompositeFieldContainer[WorkerGroupSpec] - enable_autoscaling: bool - def __init__(self, head_group_spec: _Optional[_Union[HeadGroupSpec, _Mapping]] = ..., worker_group_spec: _Optional[_Iterable[_Union[WorkerGroupSpec, _Mapping]]] = ..., enable_autoscaling: bool = ...) -> None: ... - -class HeadGroupSpec(_message.Message): - __slots__ = ["ray_start_params"] - class RayStartParamsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] - ray_start_params: _containers.ScalarMap[str, str] - def __init__(self, ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class WorkerGroupSpec(_message.Message): - __slots__ = ["group_name", "replicas", "min_replicas", "max_replicas", "ray_start_params"] - class RayStartParamsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - GROUP_NAME_FIELD_NUMBER: _ClassVar[int] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] - group_name: str - replicas: int - min_replicas: int - max_replicas: int - ray_start_params: _containers.ScalarMap[str, str] - def __init__(self, group_name: _Optional[str] = ..., replicas: _Optional[int] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py deleted file mode 100644 index 8ee1759390..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/spark.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/plugins/spark.proto\x12\x10\x66lyteidl.plugins\x1a\x1cgoogle/protobuf/struct.proto\"B\n\x10SparkApplication\".\n\x04Type\x12\n\n\x06PYTHON\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\t\n\x05SCALA\x10\x02\x12\x05\n\x01R\x10\x03\"\xfe\x04\n\x08SparkJob\x12Q\n\x0f\x61pplicationType\x18\x01 \x01(\x0e\x32\'.flyteidl.plugins.SparkApplication.TypeR\x0f\x61pplicationType\x12\x30\n\x13mainApplicationFile\x18\x02 \x01(\tR\x13mainApplicationFile\x12\x1c\n\tmainClass\x18\x03 \x01(\tR\tmainClass\x12G\n\tsparkConf\x18\x04 \x03(\x0b\x32).flyteidl.plugins.SparkJob.SparkConfEntryR\tsparkConf\x12J\n\nhadoopConf\x18\x05 \x03(\x0b\x32*.flyteidl.plugins.SparkJob.HadoopConfEntryR\nhadoopConf\x12\"\n\x0c\x65xecutorPath\x18\x06 \x01(\tR\x0c\x65xecutorPath\x12?\n\x0e\x64\x61tabricksConf\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x0e\x64\x61tabricksConf\x12(\n\x0f\x64\x61tabricksToken\x18\x08 \x01(\tR\x0f\x64\x61tabricksToken\x12.\n\x12\x64\x61tabricksInstance\x18\t \x01(\tR\x12\x64\x61tabricksInstance\x1a<\n\x0eSparkConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a=\n\x0fHadoopConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xc2\x01\n\x14\x63om.flyteidl.pluginsB\nSparkProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.spark_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\nSparkProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _SPARKJOB_SPARKCONFENTRY._options = None - _SPARKJOB_SPARKCONFENTRY._serialized_options = b'8\001' - _SPARKJOB_HADOOPCONFENTRY._options = None - _SPARKJOB_HADOOPCONFENTRY._serialized_options = b'8\001' - _globals['_SPARKAPPLICATION']._serialized_start=80 - _globals['_SPARKAPPLICATION']._serialized_end=146 - _globals['_SPARKAPPLICATION_TYPE']._serialized_start=100 - _globals['_SPARKAPPLICATION_TYPE']._serialized_end=146 - _globals['_SPARKJOB']._serialized_start=149 - _globals['_SPARKJOB']._serialized_end=787 - _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_start=664 - _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_end=724 - _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_start=726 - _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_end=787 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi deleted file mode 100644 index e6b9e4eb68..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi +++ /dev/null @@ -1,58 +0,0 @@ -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class SparkApplication(_message.Message): - __slots__ = [] - class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - PYTHON: _ClassVar[SparkApplication.Type] - JAVA: _ClassVar[SparkApplication.Type] - SCALA: _ClassVar[SparkApplication.Type] - R: _ClassVar[SparkApplication.Type] - PYTHON: SparkApplication.Type - JAVA: SparkApplication.Type - SCALA: SparkApplication.Type - R: SparkApplication.Type - def __init__(self) -> None: ... - -class SparkJob(_message.Message): - __slots__ = ["applicationType", "mainApplicationFile", "mainClass", "sparkConf", "hadoopConf", "executorPath", "databricksConf", "databricksToken", "databricksInstance"] - class SparkConfEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class HadoopConfEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - APPLICATIONTYPE_FIELD_NUMBER: _ClassVar[int] - MAINAPPLICATIONFILE_FIELD_NUMBER: _ClassVar[int] - MAINCLASS_FIELD_NUMBER: _ClassVar[int] - SPARKCONF_FIELD_NUMBER: _ClassVar[int] - HADOOPCONF_FIELD_NUMBER: _ClassVar[int] - EXECUTORPATH_FIELD_NUMBER: _ClassVar[int] - DATABRICKSCONF_FIELD_NUMBER: _ClassVar[int] - DATABRICKSTOKEN_FIELD_NUMBER: _ClassVar[int] - DATABRICKSINSTANCE_FIELD_NUMBER: _ClassVar[int] - applicationType: SparkApplication.Type - mainApplicationFile: str - mainClass: str - sparkConf: _containers.ScalarMap[str, str] - hadoopConf: _containers.ScalarMap[str, str] - executorPath: str - databricksConf: _struct_pb2.Struct - databricksToken: str - databricksInstance: str - def __init__(self, applicationType: _Optional[_Union[SparkApplication.Type, str]] = ..., mainApplicationFile: _Optional[str] = ..., mainClass: _Optional[str] = ..., sparkConf: _Optional[_Mapping[str, str]] = ..., hadoopConf: _Optional[_Mapping[str, str]] = ..., executorPath: _Optional[str] = ..., databricksConf: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., databricksToken: _Optional[str] = ..., databricksInstance: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py deleted file mode 100644 index ceed4231bb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/tensorflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/plugins/tensorflow.proto\x12\x10\x66lyteidl.plugins\"\xb4\x01\n!DistributedTensorflowTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x1f\n\x0bps_replicas\x18\x02 \x01(\x05R\npsReplicas\x12%\n\x0e\x63hief_replicas\x18\x03 \x01(\x05R\rchiefReplicas\x12-\n\x12\x65valuator_replicas\x18\x04 \x01(\x05R\x11\x65valuatorReplicasB\xc7\x01\n\x14\x63om.flyteidl.pluginsB\x0fTensorflowProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.tensorflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\017TensorflowProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=56 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=236 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi deleted file mode 100644 index 81e2bc30b9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedTensorflowTrainingTask(_message.Message): - __slots__ = ["workers", "ps_replicas", "chief_replicas", "evaluator_replicas"] - WORKERS_FIELD_NUMBER: _ClassVar[int] - PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] - CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] - EVALUATOR_REPLICAS_FIELD_NUMBER: _ClassVar[int] - workers: int - ps_replicas: int - chief_replicas: int - evaluator_replicas: int - def __init__(self, workers: _Optional[int] = ..., ps_replicas: _Optional[int] = ..., chief_replicas: _Optional[int] = ..., evaluator_replicas: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py deleted file mode 100644 index fac91e450d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/waitable.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/plugins/waitable.proto\x12\x10\x66lyteidl.plugins\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xb3\x01\n\x08Waitable\x12H\n\nwf_exec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x08wfExecId\x12<\n\x05phase\x18\x02 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x1f\n\x0bworkflow_id\x18\x03 \x01(\tR\nworkflowIdB\xc5\x01\n\x14\x63om.flyteidl.pluginsB\rWaitableProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.waitable_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rWaitableProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_WAITABLE']._serialized_start=117 - _globals['_WAITABLE']._serialized_end=296 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi deleted file mode 100644 index 25db3d143b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Waitable(_message.Message): - __slots__ = ["wf_exec_id", "phase", "workflow_id"] - WF_EXEC_ID_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - wf_exec_id: _identifier_pb2.WorkflowExecutionIdentifier - phase: _execution_pb2.WorkflowExecution.Phase - workflow_id: str - def __init__(self, wf_exec_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., workflow_id: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/service/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py deleted file mode 100644 index f2b5a55db6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py +++ /dev/null @@ -1,152 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/admin.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 -from flyteidl.admin import project_domain_attributes_pb2 as flyteidl_dot_admin_dot_project__domain__attributes__pb2 -from flyteidl.admin import project_attributes_pb2 as flyteidl_dot_admin_dot_project__attributes__pb2 -from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 -from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 -from flyteidl.admin import workflow_attributes_pb2 as flyteidl_dot_admin_dot_workflow__attributes__pb2 -from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 -from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 -from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 -from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 -from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 -from flyteidl.admin import version_pb2 as flyteidl_dot_admin_dot_version__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/admin.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x66lyteidl/admin/project.proto\x1a.flyteidl/admin/project_domain_attributes.proto\x1a\'flyteidl/admin/project_attributes.proto\x1a\x19\x66lyteidl/admin/task.proto\x1a\x1d\x66lyteidl/admin/workflow.proto\x1a(flyteidl/admin/workflow_attributes.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1a\x66lyteidl/admin/event.proto\x1a\x1e\x66lyteidl/admin/execution.proto\x1a\'flyteidl/admin/matchable_resource.proto\x1a#flyteidl/admin/node_execution.proto\x1a#flyteidl/admin/task_execution.proto\x1a\x1c\x66lyteidl/admin/version.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/description_entity.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\x89r\n\x0c\x41\x64minService\x12\xc5\x02\n\nCreateTask\x12!.flyteidl.admin.TaskCreateRequest\x1a\".flyteidl.admin.TaskCreateResponse\"\xef\x01\x92\x41\xd3\x01\x1a&Create and register a task definition.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/v1/tasks\x12\xb2\x01\n\x07GetTask\x12 .flyteidl.admin.ObjectGetRequest\x1a\x14.flyteidl.admin.Task\"o\x92\x41\'\x1a%Retrieve an existing task definition.\x82\xd3\xe4\x93\x02?\x12=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xde\x01\n\x0bListTaskIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"r\x92\x41\x44\x1a\x42\x46\x65tch existing task definition identifiers matching input filters.\x82\xd3\xe4\x93\x02%\x12#/api/v1/task_ids/{project}/{domain}\x12\xeb\x01\n\tListTasks\x12#.flyteidl.admin.ResourceListRequest\x1a\x18.flyteidl.admin.TaskList\"\x9e\x01\x92\x41\x39\x1a\x37\x46\x65tch existing task definitions matching input filters.\x82\xd3\xe4\x93\x02\\Z(\x12&/api/v1/tasks/{id.project}/{id.domain}\x12\x30/api/v1/tasks/{id.project}/{id.domain}/{id.name}\x12\xd9\x02\n\x0e\x43reateWorkflow\x12%.flyteidl.admin.WorkflowCreateRequest\x1a&.flyteidl.admin.WorkflowCreateResponse\"\xf7\x01\x92\x41\xd7\x01\x1a*Create and register a workflow definition.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/api/v1/workflows\x12\xc2\x01\n\x0bGetWorkflow\x12 .flyteidl.admin.ObjectGetRequest\x1a\x18.flyteidl.admin.Workflow\"w\x92\x41+\x1a)Retrieve an existing workflow definition.\x82\xd3\xe4\x93\x02\x43\x12\x41/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x9f\x01\n\x0fListWorkflowIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"/\x82\xd3\xe4\x93\x02)\x12\'/api/v1/workflow_ids/{project}/{domain}\x12\xff\x01\n\rListWorkflows\x12#.flyteidl.admin.ResourceListRequest\x1a\x1c.flyteidl.admin.WorkflowList\"\xaa\x01\x92\x41=\x1a;Fetch existing workflow definitions matching input filters.\x82\xd3\xe4\x93\x02\x64Z,\x12*/api/v1/workflows/{id.project}/{id.domain}\x12\x34/api/v1/workflows/{id.project}/{id.domain}/{id.name}\x12\xe5\x02\n\x10\x43reateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanCreateRequest\x1a(.flyteidl.admin.LaunchPlanCreateResponse\"\xfd\x01\x92\x41\xda\x01\x1a-Create and register a launch plan definition.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/launch_plans\x12\xcc\x01\n\rGetLaunchPlan\x12 .flyteidl.admin.ObjectGetRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"}\x92\x41.\x1a,Retrieve an existing launch plan definition.\x82\xd3\xe4\x93\x02\x46\x12\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xf3\x01\n\x13GetActiveLaunchPlan\x12\'.flyteidl.admin.ActiveLaunchPlanRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"\x96\x01\x92\x41M\x1aKRetrieve the active launch plan version specified by input request filters.\x82\xd3\xe4\x93\x02@\x12>/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}\x12\xeb\x01\n\x15ListActiveLaunchPlans\x12+.flyteidl.admin.ActiveLaunchPlanListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"\x84\x01\x92\x41K\x1aIFetch the active launch plan versions specified by input request filters.\x82\xd3\xe4\x93\x02\x30\x12./api/v1/active_launch_plans/{project}/{domain}\x12\xf3\x01\n\x11ListLaunchPlanIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"\x80\x01\x92\x41K\x1aIFetch existing launch plan definition identifiers matching input filters.\x82\xd3\xe4\x93\x02,\x12*/api/v1/launch_plan_ids/{project}/{domain}\x12\x8c\x02\n\x0fListLaunchPlans\x12#.flyteidl.admin.ResourceListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"\xb3\x01\x92\x41@\x1a>Fetch existing launch plan definitions matching input filters.\x82\xd3\xe4\x93\x02jZ/\x12-/api/v1/launch_plans/{id.project}/{id.domain}\x12\x37/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}\x12\xc0\x06\n\x10UpdateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanUpdateRequest\x1a(.flyteidl.admin.LaunchPlanUpdateResponse\"\xd8\x05\x92\x41\x85\x05\x1a\x82\x05Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.\x82\xd3\xe4\x93\x02I:\x01*\x1a\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xa2\x01\n\x0f\x43reateExecution\x12&.flyteidl.admin.ExecutionCreateRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\">\x92\x41\x1e\x1a\x1c\x43reate a workflow execution.\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/executions\x12\xb1\x01\n\x11RelaunchExecution\x12(.flyteidl.admin.ExecutionRelaunchRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"I\x92\x41 \x1a\x1eRelaunch a workflow execution.\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v1/executions/relaunch\x12\x9d\x05\n\x10RecoverExecution\x12\'.flyteidl.admin.ExecutionRecoverRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"\xb6\x04\x92\x41\x8d\x04\x1a\x8a\x04Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v1/executions/recover\x12\xc2\x01\n\x0cGetExecution\x12+.flyteidl.admin.WorkflowExecutionGetRequest\x1a\x19.flyteidl.admin.Execution\"j\x92\x41*\x1a(Retrieve an existing workflow execution.\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xa4\x01\n\x0fUpdateExecution\x12&.flyteidl.admin.ExecutionUpdateRequest\x1a\'.flyteidl.admin.ExecutionUpdateResponse\"@\x82\xd3\xe4\x93\x02::\x01*\x1a\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xb9\x01\n\x10GetExecutionData\x12/.flyteidl.admin.WorkflowExecutionGetDataRequest\x1a\x30.flyteidl.admin.WorkflowExecutionGetDataResponse\"B\x82\xd3\xe4\x93\x02<\x12:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}\x12\x89\x01\n\x0eListExecutions\x12#.flyteidl.admin.ResourceListRequest\x1a\x1d.flyteidl.admin.ExecutionList\"3\x82\xd3\xe4\x93\x02-\x12+/api/v1/executions/{id.project}/{id.domain}\x12\xad\x01\n\x12TerminateExecution\x12).flyteidl.admin.ExecutionTerminateRequest\x1a*.flyteidl.admin.ExecutionTerminateResponse\"@\x82\xd3\xe4\x93\x02::\x01**5/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xd2\x01\n\x10GetNodeExecution\x12\'.flyteidl.admin.NodeExecutionGetRequest\x1a\x1d.flyteidl.admin.NodeExecution\"v\x82\xd3\xe4\x93\x02p\x12n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\xff\x01\n\x16GetDynamicNodeWorkflow\x12-.flyteidl.admin.GetDynamicNodeWorkflowRequest\x1a+.flyteidl.admin.DynamicNodeWorkflowResponse\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01\x12\x7f/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow\x12\xde\x01\n\x12ListNodeExecutions\x12(.flyteidl.admin.NodeExecutionListRequest\x1a!.flyteidl.admin.NodeExecutionList\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xa5\x04\n\x19ListNodeExecutionsForTask\x12/.flyteidl.admin.NodeExecutionForTaskListRequest\x1a!.flyteidl.admin.NodeExecutionList\"\xb3\x03\x82\xd3\xe4\x93\x02\xac\x03\x12\xa9\x03/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}\x12\xee\x01\n\x14GetNodeExecutionData\x12+.flyteidl.admin.NodeExecutionGetDataRequest\x1a,.flyteidl.admin.NodeExecutionGetDataResponse\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\x7f\n\x0fRegisterProject\x12&.flyteidl.admin.ProjectRegisterRequest\x1a\'.flyteidl.admin.ProjectRegisterResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/v1/projects\x12\x87\x01\n\rUpdateProject\x12\x17.flyteidl.admin.Project\x1a%.flyteidl.admin.ProjectUpdateResponse\"6\x92\x41\x13\x1a\x11Update a project.\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/v1/projects/{id}\x12\x85\x01\n\x0cListProjects\x12\".flyteidl.admin.ProjectListRequest\x1a\x18.flyteidl.admin.Projects\"7\x92\x41\x1c\x1a\x1a\x46\x65tch registered projects.\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/projects\x12\xdd\x01\n\x13\x43reateWorkflowEvent\x12-.flyteidl.admin.WorkflowExecutionEventRequest\x1a..flyteidl.admin.WorkflowExecutionEventResponse\"g\x92\x41\x41\x1a?Create a workflow execution event recording a phase transition.\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/events/workflows\x12\xc9\x01\n\x0f\x43reateNodeEvent\x12).flyteidl.admin.NodeExecutionEventRequest\x1a*.flyteidl.admin.NodeExecutionEventResponse\"_\x92\x41=\x1a;Create a node execution event recording a phase transition.\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/nodes\x12\xc9\x01\n\x0f\x43reateTaskEvent\x12).flyteidl.admin.TaskExecutionEventRequest\x1a*.flyteidl.admin.TaskExecutionEventResponse\"_\x92\x41=\x1a;Create a task execution event recording a phase transition.\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/tasks\x12\xa9\x03\n\x10GetTaskExecution\x12\'.flyteidl.admin.TaskExecutionGetRequest\x1a\x1d.flyteidl.admin.TaskExecution\"\xcc\x02\x92\x41&\x1a$Retrieve an existing task execution.\x82\xd3\xe4\x93\x02\x9c\x02\x12\x99\x02/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\xd3\x02\n\x12ListTaskExecutions\x12(.flyteidl.admin.TaskExecutionListRequest\x1a!.flyteidl.admin.TaskExecutionList\"\xef\x01\x92\x41\x38\x1a\x36\x46\x65tch existing task executions matching input filters.\x82\xd3\xe4\x93\x02\xad\x01\x12\xaa\x01/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}\x12\xe0\x03\n\x14GetTaskExecutionData\x12+.flyteidl.admin.TaskExecutionGetDataRequest\x1a,.flyteidl.admin.TaskExecutionGetDataResponse\"\xec\x02\x92\x41\x41\x1a?Retrieve input and output data from an existing task execution.\x82\xd3\xe4\x93\x02\xa1\x02\x12\x9e\x02/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\xbf\x02\n\x1dUpdateProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesUpdateRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesUpdateResponse\"\xb0\x01\x92\x41X\x1aVUpdate the customized resource attributes associated with a project-domain combination\x82\xd3\xe4\x93\x02O:\x01*\x1aJ/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}\x12\x9f\x02\n\x1aGetProjectDomainAttributes\x12\x31.flyteidl.admin.ProjectDomainAttributesGetRequest\x1a\x32.flyteidl.admin.ProjectDomainAttributesGetResponse\"\x99\x01\x92\x41Z\x1aXRetrieve the customized resource attributes associated with a project-domain combination\x82\xd3\xe4\x93\x02\x36\x12\x34/api/v1/project_domain_attributes/{project}/{domain}\x12\xa9\x02\n\x1d\x44\x65leteProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesDeleteRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesDeleteResponse\"\x9a\x01\x92\x41X\x1aVDelete the customized resource attributes associated with a project-domain combination\x82\xd3\xe4\x93\x02\x39:\x01**4/api/v1/project_domain_attributes/{project}/{domain}\x12\xff\x01\n\x17UpdateProjectAttributes\x12..flyteidl.admin.ProjectAttributesUpdateRequest\x1a/.flyteidl.admin.ProjectAttributesUpdateResponse\"\x82\x01\x92\x41\x45\x1a\x43Update the customized resource attributes associated with a project\x82\xd3\xe4\x93\x02\x34:\x01*\x1a//api/v1/project_attributes/{attributes.project}\x12\xe9\x01\n\x14GetProjectAttributes\x12+.flyteidl.admin.ProjectAttributesGetRequest\x1a,.flyteidl.admin.ProjectAttributesGetResponse\"v\x92\x41G\x1a\x45Retrieve the customized resource attributes associated with a project\x82\xd3\xe4\x93\x02&\x12$/api/v1/project_attributes/{project}\x12\xf3\x01\n\x17\x44\x65leteProjectAttributes\x12..flyteidl.admin.ProjectAttributesDeleteRequest\x1a/.flyteidl.admin.ProjectAttributesDeleteResponse\"w\x92\x41\x45\x1a\x43\x44\x65lete the customized resource attributes associated with a project\x82\xd3\xe4\x93\x02):\x01**$/api/v1/project_attributes/{project}\x12\xce\x02\n\x18UpdateWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesUpdateRequest\x1a\x30.flyteidl.admin.WorkflowAttributesUpdateResponse\"\xce\x01\x92\x41\x66\x1a\x64Update the customized resource attributes associated with a project, domain and workflow combination\x82\xd3\xe4\x93\x02_:\x01*\x1aZ/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}\x12\xa3\x02\n\x15GetWorkflowAttributes\x12,.flyteidl.admin.WorkflowAttributesGetRequest\x1a-.flyteidl.admin.WorkflowAttributesGetResponse\"\xac\x01\x92\x41h\x1a\x66Retrieve the customized resource attributes associated with a project, domain and workflow combination\x82\xd3\xe4\x93\x02;\x12\x39/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xad\x02\n\x18\x44\x65leteWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesDeleteRequest\x1a\x30.flyteidl.admin.WorkflowAttributesDeleteResponse\"\xad\x01\x92\x41\x66\x1a\x64\x44\x65lete the customized resource attributes associated with a project, domain and workflow combination\x82\xd3\xe4\x93\x02>:\x01**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xe1\x01\n\x17ListMatchableAttributes\x12..flyteidl.admin.ListMatchableAttributesRequest\x1a/.flyteidl.admin.ListMatchableAttributesResponse\"e\x92\x41>\x1a/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._options = None - _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._serialized_options = b'\222AK\032IFetch the active launch plan versions specified by input request filters.\202\323\344\223\0020\022./api/v1/active_launch_plans/{project}/{domain}' - _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._options = None - _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._serialized_options = b'\222AK\032IFetch existing launch plan definition identifiers matching input filters.\202\323\344\223\002,\022*/api/v1/launch_plan_ids/{project}/{domain}' - _ADMINSERVICE.methods_by_name['ListLaunchPlans']._options = None - _ADMINSERVICE.methods_by_name['ListLaunchPlans']._serialized_options = b'\222A@\032>Fetch existing launch plan definitions matching input filters.\202\323\344\223\002jZ/\022-/api/v1/launch_plans/{id.project}/{id.domain}\0227/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._options = None - _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._serialized_options = b'\222A\205\005\032\202\005Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.\202\323\344\223\002I:\001*\032D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}' - _ADMINSERVICE.methods_by_name['CreateExecution']._options = None - _ADMINSERVICE.methods_by_name['CreateExecution']._serialized_options = b'\222A\036\032\034Create a workflow execution.\202\323\344\223\002\027:\001*\"\022/api/v1/executions' - _ADMINSERVICE.methods_by_name['RelaunchExecution']._options = None - _ADMINSERVICE.methods_by_name['RelaunchExecution']._serialized_options = b'\222A \032\036Relaunch a workflow execution.\202\323\344\223\002 :\001*\"\033/api/v1/executions/relaunch' - _ADMINSERVICE.methods_by_name['RecoverExecution']._options = None - _ADMINSERVICE.methods_by_name['RecoverExecution']._serialized_options = b'\222A\215\004\032\212\004Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\202\323\344\223\002\037:\001*\"\032/api/v1/executions/recover' - _ADMINSERVICE.methods_by_name['GetExecution']._options = None - _ADMINSERVICE.methods_by_name['GetExecution']._serialized_options = b'\222A*\032(Retrieve an existing workflow execution.\202\323\344\223\0027\0225/api/v1/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['UpdateExecution']._options = None - _ADMINSERVICE.methods_by_name['UpdateExecution']._serialized_options = b'\202\323\344\223\002::\001*\0325/api/v1/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['GetExecutionData']._options = None - _ADMINSERVICE.methods_by_name['GetExecutionData']._serialized_options = b'\202\323\344\223\002<\022:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['ListExecutions']._options = None - _ADMINSERVICE.methods_by_name['ListExecutions']._serialized_options = b'\202\323\344\223\002-\022+/api/v1/executions/{id.project}/{id.domain}' - _ADMINSERVICE.methods_by_name['TerminateExecution']._options = None - _ADMINSERVICE.methods_by_name['TerminateExecution']._serialized_options = b'\202\323\344\223\002::\001**5/api/v1/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['GetNodeExecution']._options = None - _ADMINSERVICE.methods_by_name['GetNodeExecution']._serialized_options = b'\202\323\344\223\002p\022n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' - _ADMINSERVICE.methods_by_name['GetDynamicNodeWorkflow']._options = None - _ADMINSERVICE.methods_by_name['GetDynamicNodeWorkflow']._serialized_options = b'\202\323\344\223\002\201\001\022\177/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow' - _ADMINSERVICE.methods_by_name['ListNodeExecutions']._options = None - _ADMINSERVICE.methods_by_name['ListNodeExecutions']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' - _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._options = None - _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._serialized_options = b'\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}' - _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._options = None - _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' - _ADMINSERVICE.methods_by_name['RegisterProject']._options = None - _ADMINSERVICE.methods_by_name['RegisterProject']._serialized_options = b'\202\323\344\223\002\025:\001*\"\020/api/v1/projects' - _ADMINSERVICE.methods_by_name['UpdateProject']._options = None - _ADMINSERVICE.methods_by_name['UpdateProject']._serialized_options = b'\222A\023\032\021Update a project.\202\323\344\223\002\032:\001*\032\025/api/v1/projects/{id}' - _ADMINSERVICE.methods_by_name['ListProjects']._options = None - _ADMINSERVICE.methods_by_name['ListProjects']._serialized_options = b'\222A\034\032\032Fetch registered projects.\202\323\344\223\002\022\022\020/api/v1/projects' - _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._options = None - _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._serialized_options = b'\222AA\032?Create a workflow execution event recording a phase transition.\202\323\344\223\002\035:\001*\"\030/api/v1/events/workflows' - _ADMINSERVICE.methods_by_name['CreateNodeEvent']._options = None - _ADMINSERVICE.methods_by_name['CreateNodeEvent']._serialized_options = b'\222A=\032;Create a node execution event recording a phase transition.\202\323\344\223\002\031:\001*\"\024/api/v1/events/nodes' - _ADMINSERVICE.methods_by_name['CreateTaskEvent']._options = None - _ADMINSERVICE.methods_by_name['CreateTaskEvent']._serialized_options = b'\222A=\032;Create a task execution event recording a phase transition.\202\323\344\223\002\031:\001*\"\024/api/v1/events/tasks' - _ADMINSERVICE.methods_by_name['GetTaskExecution']._options = None - _ADMINSERVICE.methods_by_name['GetTaskExecution']._serialized_options = b'\222A&\032$Retrieve an existing task execution.\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' - _ADMINSERVICE.methods_by_name['ListTaskExecutions']._options = None - _ADMINSERVICE.methods_by_name['ListTaskExecutions']._serialized_options = b'\222A8\0326Fetch existing task executions matching input filters.\202\323\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}' - _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._options = None - _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._serialized_options = b'\222AA\032?Retrieve input and output data from an existing task execution.\202\323\344\223\002\241\002\022\236\002/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' - _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._options = None - _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._serialized_options = b'\222AX\032VUpdate the customized resource attributes associated with a project-domain combination\202\323\344\223\002O:\001*\032J/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}' - _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._options = None - _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._serialized_options = b'\222AZ\032XRetrieve the customized resource attributes associated with a project-domain combination\202\323\344\223\0026\0224/api/v1/project_domain_attributes/{project}/{domain}' - _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._options = None - _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._serialized_options = b'\222AX\032VDelete the customized resource attributes associated with a project-domain combination\202\323\344\223\0029:\001**4/api/v1/project_domain_attributes/{project}/{domain}' - _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._options = None - _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._serialized_options = b'\222AE\032CUpdate the customized resource attributes associated with a project\202\323\344\223\0024:\001*\032//api/v1/project_attributes/{attributes.project}' - _ADMINSERVICE.methods_by_name['GetProjectAttributes']._options = None - _ADMINSERVICE.methods_by_name['GetProjectAttributes']._serialized_options = b'\222AG\032ERetrieve the customized resource attributes associated with a project\202\323\344\223\002&\022$/api/v1/project_attributes/{project}' - _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._options = None - _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._serialized_options = b'\222AE\032CDelete the customized resource attributes associated with a project\202\323\344\223\002):\001**$/api/v1/project_attributes/{project}' - _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._options = None - _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._serialized_options = b'\222Af\032dUpdate the customized resource attributes associated with a project, domain and workflow combination\202\323\344\223\002_:\001*\032Z/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}' - _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._options = None - _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._serialized_options = b'\222Ah\032fRetrieve the customized resource attributes associated with a project, domain and workflow combination\202\323\344\223\002;\0229/api/v1/workflow_attributes/{project}/{domain}/{workflow}' - _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._options = None - _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._serialized_options = b'\222Af\032dDelete the customized resource attributes associated with a project, domain and workflow combination\202\323\344\223\002>:\001**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}' - _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._options = None - _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._serialized_options = b'\222A>\032 None: ... - -class OAuth2MetadataResponse(_message.Message): - __slots__ = ["issuer", "authorization_endpoint", "token_endpoint", "response_types_supported", "scopes_supported", "token_endpoint_auth_methods_supported", "jwks_uri", "code_challenge_methods_supported", "grant_types_supported", "device_authorization_endpoint"] - ISSUER_FIELD_NUMBER: _ClassVar[int] - AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - SCOPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - JWKS_URI_FIELD_NUMBER: _ClassVar[int] - CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - GRANT_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - issuer: str - authorization_endpoint: str - token_endpoint: str - response_types_supported: _containers.RepeatedScalarFieldContainer[str] - scopes_supported: _containers.RepeatedScalarFieldContainer[str] - token_endpoint_auth_methods_supported: _containers.RepeatedScalarFieldContainer[str] - jwks_uri: str - code_challenge_methods_supported: _containers.RepeatedScalarFieldContainer[str] - grant_types_supported: _containers.RepeatedScalarFieldContainer[str] - device_authorization_endpoint: str - def __init__(self, issuer: _Optional[str] = ..., authorization_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ..., response_types_supported: _Optional[_Iterable[str]] = ..., scopes_supported: _Optional[_Iterable[str]] = ..., token_endpoint_auth_methods_supported: _Optional[_Iterable[str]] = ..., jwks_uri: _Optional[str] = ..., code_challenge_methods_supported: _Optional[_Iterable[str]] = ..., grant_types_supported: _Optional[_Iterable[str]] = ..., device_authorization_endpoint: _Optional[str] = ...) -> None: ... - -class PublicClientAuthConfigRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class PublicClientAuthConfigResponse(_message.Message): - __slots__ = ["client_id", "redirect_uri", "scopes", "authorization_metadata_key", "service_http_endpoint", "audience"] - CLIENT_ID_FIELD_NUMBER: _ClassVar[int] - REDIRECT_URI_FIELD_NUMBER: _ClassVar[int] - SCOPES_FIELD_NUMBER: _ClassVar[int] - AUTHORIZATION_METADATA_KEY_FIELD_NUMBER: _ClassVar[int] - SERVICE_HTTP_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - AUDIENCE_FIELD_NUMBER: _ClassVar[int] - client_id: str - redirect_uri: str - scopes: _containers.RepeatedScalarFieldContainer[str] - authorization_metadata_key: str - service_http_endpoint: str - audience: str - def __init__(self, client_id: _Optional[str] = ..., redirect_uri: _Optional[str] = ..., scopes: _Optional[_Iterable[str]] = ..., authorization_metadata_key: _Optional[str] = ..., service_http_endpoint: _Optional[str] = ..., audience: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py deleted file mode 100644 index 155b8ca575..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py +++ /dev/null @@ -1,111 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import auth_pb2 as flyteidl_dot_service_dot_auth__pb2 - - -class AuthMetadataServiceStub(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - RPCs defined in this service must be anonymously accessible. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetOAuth2Metadata = channel.unary_unary( - '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', - request_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, - ) - self.GetPublicClientConfig = channel.unary_unary( - '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', - request_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, - ) - - -class AuthMetadataServiceServicer(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - RPCs defined in this service must be anonymously accessible. - """ - - def GetOAuth2Metadata(self, request, context): - """Anonymously accessible. Retrieves local or external oauth authorization server metadata. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPublicClientConfig(self, request, context): - """Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - requests. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AuthMetadataServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetOAuth2Metadata': grpc.unary_unary_rpc_method_handler( - servicer.GetOAuth2Metadata, - request_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.FromString, - response_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.SerializeToString, - ), - 'GetPublicClientConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetPublicClientConfig, - request_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.FromString, - response_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.AuthMetadataService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class AuthMetadataService(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - RPCs defined in this service must be anonymously accessible. - """ - - @staticmethod - def GetOAuth2Metadata(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', - flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, - flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPublicClientConfig(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', - flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, - flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py deleted file mode 100644 index feced8c21e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/dataproxy.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/service/dataproxy.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x97\x01\n\x1c\x43reateUploadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x1d\n\nnative_url\x18\x02 \x01(\tR\tnativeUrl\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"\xeb\x01\n\x1b\x43reateUploadLocationRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08\x66ilename\x18\x03 \x01(\tR\x08\x66ilename\x12\x38\n\nexpires_in\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12\x1f\n\x0b\x63ontent_md5\x18\x05 \x01(\x0cR\ncontentMd5\x12#\n\rfilename_root\x18\x06 \x01(\tR\x0c\x66ilenameRoot\"|\n\x1d\x43reateDownloadLocationRequest\x12\x1d\n\nnative_url\x18\x01 \x01(\tR\tnativeUrl\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn:\x02\x18\x01\"~\n\x1e\x43reateDownloadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt:\x02\x18\x01\"\xfa\x01\n\x19\x43reateDownloadLinkRequest\x12\x43\n\rartifact_type\x18\x01 \x01(\x0e\x32\x1e.flyteidl.service.ArtifactTypeR\x0c\x61rtifactType\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12T\n\x11node_execution_id\x18\x03 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x0fnodeExecutionIdB\x08\n\x06source\"\xc7\x01\n\x1a\x43reateDownloadLinkResponse\x12!\n\nsigned_url\x18\x01 \x03(\tB\x02\x18\x01R\tsignedUrl\x12=\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01R\texpiresAt\x12G\n\x0fpre_signed_urls\x18\x03 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsR\rpreSignedUrls\"i\n\rPreSignedURLs\x12\x1d\n\nsigned_url\x18\x01 \x03(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"-\n\x0eGetDataRequest\x12\x1b\n\tflyte_url\x18\x01 \x01(\tR\x08\x66lyteUrl\"\xd6\x01\n\x0fGetDataResponse\x12<\n\x0bliteral_map\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\nliteralMap\x12I\n\x0fpre_signed_urls\x18\x02 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsH\x00R\rpreSignedUrls\x12\x32\n\x07literal\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07literalB\x06\n\x04\x64\x61ta*C\n\x0c\x41rtifactType\x12\x1b\n\x17\x41RTIFACT_TYPE_UNDEFINED\x10\x00\x12\x16\n\x12\x41RTIFACT_TYPE_DECK\x10\x01\x32\x84\x07\n\x10\x44\x61taProxyService\x12\xf0\x01\n\x14\x43reateUploadLocation\x12-.flyteidl.service.CreateUploadLocationRequest\x1a..flyteidl.service.CreateUploadLocationResponse\"y\x92\x41M\x1aKCreates a write-only http location that is accessible for tasks at runtime.\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/v1/dataproxy/artifact_urn\x12\xa9\x02\n\x16\x43reateDownloadLocation\x12/.flyteidl.service.CreateDownloadLocationRequest\x1a\x30.flyteidl.service.CreateDownloadLocationResponse\"\xab\x01\x88\x02\x01\x92\x41\x7f\x1a}Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime.\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/dataproxy/artifact_urn\x12\xea\x01\n\x12\x43reateDownloadLink\x12+.flyteidl.service.CreateDownloadLinkRequest\x1a,.flyteidl.service.CreateDownloadLinkResponse\"y\x92\x41L\x1aJCreates a read-only http location that is accessible for tasks at runtime.\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v1/dataproxy/artifact_link\x12\x64\n\x07GetData\x12 .flyteidl.service.GetDataRequest\x1a!.flyteidl.service.GetDataResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v1/dataB\xc6\x01\n\x14\x63om.flyteidl.serviceB\x0e\x44\x61taproxyProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.dataproxy_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\016DataproxyProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _CREATEDOWNLOADLOCATIONREQUEST._options = None - _CREATEDOWNLOADLOCATIONREQUEST._serialized_options = b'\030\001' - _CREATEDOWNLOADLOCATIONRESPONSE._options = None - _CREATEDOWNLOADLOCATIONRESPONSE._serialized_options = b'\030\001' - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._options = None - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._serialized_options = b'\030\001' - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._options = None - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._serialized_options = b'\030\001' - _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._options = None - _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._serialized_options = b'\222AM\032KCreates a write-only http location that is accessible for tasks at runtime.\202\323\344\223\002#:\001*\"\036/api/v1/dataproxy/artifact_urn' - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._options = None - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._serialized_options = b'\210\002\001\222A\177\032}Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime.\202\323\344\223\002 \022\036/api/v1/dataproxy/artifact_urn' - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._options = None - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._serialized_options = b'\222AL\032JCreates a read-only http location that is accessible for tasks at runtime.\202\323\344\223\002$:\001*\"\037/api/v1/dataproxy/artifact_link' - _DATAPROXYSERVICE.methods_by_name['GetData']._options = None - _DATAPROXYSERVICE.methods_by_name['GetData']._serialized_options = b'\202\323\344\223\002\016\022\014/api/v1/data' - _globals['_ARTIFACTTYPE']._serialized_start=1731 - _globals['_ARTIFACTTYPE']._serialized_end=1798 - _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_start=260 - _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_end=411 - _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_start=414 - _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_end=649 - _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_start=651 - _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_end=775 - _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_start=777 - _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_end=903 - _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_start=906 - _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_end=1156 - _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_start=1159 - _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_end=1358 - _globals['_PRESIGNEDURLS']._serialized_start=1360 - _globals['_PRESIGNEDURLS']._serialized_end=1465 - _globals['_GETDATAREQUEST']._serialized_start=1467 - _globals['_GETDATAREQUEST']._serialized_end=1512 - _globals['_GETDATARESPONSE']._serialized_start=1515 - _globals['_GETDATARESPONSE']._serialized_end=1729 - _globals['_DATAPROXYSERVICE']._serialized_start=1801 - _globals['_DATAPROXYSERVICE']._serialized_end=2701 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi deleted file mode 100644 index 40245087ab..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi +++ /dev/null @@ -1,106 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ArtifactType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - ARTIFACT_TYPE_UNDEFINED: _ClassVar[ArtifactType] - ARTIFACT_TYPE_DECK: _ClassVar[ArtifactType] -ARTIFACT_TYPE_UNDEFINED: ArtifactType -ARTIFACT_TYPE_DECK: ArtifactType - -class CreateUploadLocationResponse(_message.Message): - __slots__ = ["signed_url", "native_url", "expires_at"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - NATIVE_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - signed_url: str - native_url: str - expires_at: _timestamp_pb2.Timestamp - def __init__(self, signed_url: _Optional[str] = ..., native_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class CreateUploadLocationRequest(_message.Message): - __slots__ = ["project", "domain", "filename", "expires_in", "content_md5", "filename_root"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - FILENAME_FIELD_NUMBER: _ClassVar[int] - EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] - CONTENT_MD5_FIELD_NUMBER: _ClassVar[int] - FILENAME_ROOT_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - filename: str - expires_in: _duration_pb2.Duration - content_md5: bytes - filename_root: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., filename: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., content_md5: _Optional[bytes] = ..., filename_root: _Optional[str] = ...) -> None: ... - -class CreateDownloadLocationRequest(_message.Message): - __slots__ = ["native_url", "expires_in"] - NATIVE_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] - native_url: str - expires_in: _duration_pb2.Duration - def __init__(self, native_url: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class CreateDownloadLocationResponse(_message.Message): - __slots__ = ["signed_url", "expires_at"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - signed_url: str - expires_at: _timestamp_pb2.Timestamp - def __init__(self, signed_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class CreateDownloadLinkRequest(_message.Message): - __slots__ = ["artifact_type", "expires_in", "node_execution_id"] - ARTIFACT_TYPE_FIELD_NUMBER: _ClassVar[int] - EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] - NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - artifact_type: ArtifactType - expires_in: _duration_pb2.Duration - node_execution_id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, artifact_type: _Optional[_Union[ArtifactType, str]] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class CreateDownloadLinkResponse(_message.Message): - __slots__ = ["signed_url", "expires_at", "pre_signed_urls"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] - signed_url: _containers.RepeatedScalarFieldContainer[str] - expires_at: _timestamp_pb2.Timestamp - pre_signed_urls: PreSignedURLs - def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ...) -> None: ... - -class PreSignedURLs(_message.Message): - __slots__ = ["signed_url", "expires_at"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - signed_url: _containers.RepeatedScalarFieldContainer[str] - expires_at: _timestamp_pb2.Timestamp - def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class GetDataRequest(_message.Message): - __slots__ = ["flyte_url"] - FLYTE_URL_FIELD_NUMBER: _ClassVar[int] - flyte_url: str - def __init__(self, flyte_url: _Optional[str] = ...) -> None: ... - -class GetDataResponse(_message.Message): - __slots__ = ["literal_map", "pre_signed_urls", "literal"] - LITERAL_MAP_FIELD_NUMBER: _ClassVar[int] - PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] - LITERAL_FIELD_NUMBER: _ClassVar[int] - literal_map: _literals_pb2.LiteralMap - pre_signed_urls: PreSignedURLs - literal: _literals_pb2.Literal - def __init__(self, literal_map: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ..., literal: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py deleted file mode 100644 index 601d1cbf56..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py +++ /dev/null @@ -1,171 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import dataproxy_pb2 as flyteidl_dot_service_dot_dataproxy__pb2 - - -class DataProxyServiceStub(object): - """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateUploadLocation = channel.unary_unary( - '/flyteidl.service.DataProxyService/CreateUploadLocation', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, - ) - self.CreateDownloadLocation = channel.unary_unary( - '/flyteidl.service.DataProxyService/CreateDownloadLocation', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, - ) - self.CreateDownloadLink = channel.unary_unary( - '/flyteidl.service.DataProxyService/CreateDownloadLink', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, - ) - self.GetData = channel.unary_unary( - '/flyteidl.service.DataProxyService/GetData', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, - ) - - -class DataProxyServiceServicer(object): - """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - """ - - def CreateUploadLocation(self, request, context): - """CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDownloadLocation(self, request, context): - """CreateDownloadLocation creates a signed url to download artifacts. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDownloadLink(self, request, context): - """CreateDownloadLocation creates a signed url to download artifacts. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DataProxyServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateUploadLocation': grpc.unary_unary_rpc_method_handler( - servicer.CreateUploadLocation, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.SerializeToString, - ), - 'CreateDownloadLocation': grpc.unary_unary_rpc_method_handler( - servicer.CreateDownloadLocation, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.SerializeToString, - ), - 'CreateDownloadLink': grpc.unary_unary_rpc_method_handler( - servicer.CreateDownloadLink, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.SerializeToString, - ), - 'GetData': grpc.unary_unary_rpc_method_handler( - servicer.GetData, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.DataProxyService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DataProxyService(object): - """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - """ - - @staticmethod - def CreateUploadLocation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateUploadLocation', - flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDownloadLocation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLocation', - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDownloadLink(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLink', - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/GetData', - flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py deleted file mode 100644 index db56c22adf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/external_plugin_service.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/service/external_plugin_service.proto\x12\x10\x66lyteidl.service\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xa8\x01\n\x11TaskCreateRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix:\x02\x18\x01\"/\n\x12TaskCreateResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId:\x02\x18\x01\"H\n\x0eTaskGetRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"y\n\x0fTaskGetResponse\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x17.flyteidl.service.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs:\x02\x18\x01\"K\n\x11TaskDeleteRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"\x18\n\x12TaskDeleteResponse:\x02\x18\x01*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x32\xa8\x02\n\x15\x45xternalPluginService\x12\\\n\nCreateTask\x12#.flyteidl.service.TaskCreateRequest\x1a$.flyteidl.service.TaskCreateResponse\"\x03\x88\x02\x01\x12S\n\x07GetTask\x12 .flyteidl.service.TaskGetRequest\x1a!.flyteidl.service.TaskGetResponse\"\x03\x88\x02\x01\x12\\\n\nDeleteTask\x12#.flyteidl.service.TaskDeleteRequest\x1a$.flyteidl.service.TaskDeleteResponse\"\x03\x88\x02\x01\x42\xd2\x01\n\x14\x63om.flyteidl.serviceB\x1a\x45xternalPluginServiceProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.external_plugin_service_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\032ExternalPluginServiceProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _STATE._options = None - _STATE._serialized_options = b'\030\001' - _TASKCREATEREQUEST._options = None - _TASKCREATEREQUEST._serialized_options = b'\030\001' - _TASKCREATERESPONSE._options = None - _TASKCREATERESPONSE._serialized_options = b'\030\001' - _TASKGETREQUEST._options = None - _TASKGETREQUEST._serialized_options = b'\030\001' - _TASKGETRESPONSE._options = None - _TASKGETRESPONSE._serialized_options = b'\030\001' - _TASKDELETEREQUEST._options = None - _TASKDELETEREQUEST._serialized_options = b'\030\001' - _TASKDELETERESPONSE._options = None - _TASKDELETERESPONSE._serialized_options = b'\030\001' - _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._options = None - _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._serialized_options = b'\210\002\001' - _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._options = None - _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._serialized_options = b'\210\002\001' - _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._options = None - _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\210\002\001' - _globals['_STATE']._serialized_start=645 - _globals['_STATE']._serialized_end=743 - _globals['_TASKCREATEREQUEST']._serialized_start=126 - _globals['_TASKCREATEREQUEST']._serialized_end=294 - _globals['_TASKCREATERESPONSE']._serialized_start=296 - _globals['_TASKCREATERESPONSE']._serialized_end=343 - _globals['_TASKGETREQUEST']._serialized_start=345 - _globals['_TASKGETREQUEST']._serialized_end=417 - _globals['_TASKGETRESPONSE']._serialized_start=419 - _globals['_TASKGETRESPONSE']._serialized_end=540 - _globals['_TASKDELETEREQUEST']._serialized_start=542 - _globals['_TASKDELETEREQUEST']._serialized_end=617 - _globals['_TASKDELETERESPONSE']._serialized_start=619 - _globals['_TASKDELETERESPONSE']._serialized_end=643 - _globals['_EXTERNALPLUGINSERVICE']._serialized_start=746 - _globals['_EXTERNALPLUGINSERVICE']._serialized_end=1042 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi deleted file mode 100644 index c09566929f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi +++ /dev/null @@ -1,65 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RETRYABLE_FAILURE: _ClassVar[State] - PERMANENT_FAILURE: _ClassVar[State] - PENDING: _ClassVar[State] - RUNNING: _ClassVar[State] - SUCCEEDED: _ClassVar[State] -RETRYABLE_FAILURE: State -PERMANENT_FAILURE: State -PENDING: State -RUNNING: State -SUCCEEDED: State - -class TaskCreateRequest(_message.Message): - __slots__ = ["inputs", "template", "output_prefix"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] - inputs: _literals_pb2.LiteralMap - template: _tasks_pb2.TaskTemplate - output_prefix: str - def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ...) -> None: ... - -class TaskCreateResponse(_message.Message): - __slots__ = ["job_id"] - JOB_ID_FIELD_NUMBER: _ClassVar[int] - job_id: str - def __init__(self, job_id: _Optional[str] = ...) -> None: ... - -class TaskGetRequest(_message.Message): - __slots__ = ["task_type", "job_id"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - JOB_ID_FIELD_NUMBER: _ClassVar[int] - task_type: str - job_id: str - def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... - -class TaskGetResponse(_message.Message): - __slots__ = ["state", "outputs"] - STATE_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - state: State - outputs: _literals_pb2.LiteralMap - def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class TaskDeleteRequest(_message.Message): - __slots__ = ["task_type", "job_id"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - JOB_ID_FIELD_NUMBER: _ClassVar[int] - task_type: str - job_id: str - def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... - -class TaskDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py deleted file mode 100644 index 6607d36710..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py +++ /dev/null @@ -1,138 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import external_plugin_service_pb2 as flyteidl_dot_service_dot_external__plugin__service__pb2 - - -class ExternalPluginServiceStub(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateTask = channel.unary_unary( - '/flyteidl.service.ExternalPluginService/CreateTask', - request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, - ) - self.GetTask = channel.unary_unary( - '/flyteidl.service.ExternalPluginService/GetTask', - request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, - ) - self.DeleteTask = channel.unary_unary( - '/flyteidl.service.ExternalPluginService/DeleteTask', - request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, - ) - - -class ExternalPluginServiceServicer(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - """ - - def CreateTask(self, request, context): - """Send a task create request to the backend plugin server. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTask(self, request, context): - """Get job status. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteTask(self, request, context): - """Delete the task resource. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ExternalPluginServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateTask': grpc.unary_unary_rpc_method_handler( - servicer.CreateTask, - request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.FromString, - response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.SerializeToString, - ), - 'GetTask': grpc.unary_unary_rpc_method_handler( - servicer.GetTask, - request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.FromString, - response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.SerializeToString, - ), - 'DeleteTask': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTask, - request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.FromString, - response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.ExternalPluginService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class ExternalPluginService(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - """ - - @staticmethod - def CreateTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/CreateTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/GetTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/DeleteTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py deleted file mode 100644 index c4406115bb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/identity.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/service/identity.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x11\n\x0fUserInfoRequest\"\xa5\x02\n\x10UserInfoResponse\x12\x18\n\x07subject\x18\x01 \x01(\tR\x07subject\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12-\n\x12preferred_username\x18\x03 \x01(\tR\x11preferredUsername\x12\x1d\n\ngiven_name\x18\x04 \x01(\tR\tgivenName\x12\x1f\n\x0b\x66\x61mily_name\x18\x05 \x01(\tR\nfamilyName\x12\x14\n\x05\x65mail\x18\x06 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x07 \x01(\tR\x07picture\x12\x44\n\x11\x61\x64\x64itional_claims\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructR\x10\x61\x64\x64itionalClaims2\x9d\x01\n\x0fIdentityService\x12\x89\x01\n\x08UserInfo\x12!.flyteidl.service.UserInfoRequest\x1a\".flyteidl.service.UserInfoResponse\"6\x92\x41(\x1a&Retrieves authenticated identity info.\x82\xd3\xe4\x93\x02\x05\x12\x03/meB\xc5\x01\n\x14\x63om.flyteidl.serviceB\rIdentityProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.identity_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\rIdentityProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _IDENTITYSERVICE.methods_by_name['UserInfo']._options = None - _IDENTITYSERVICE.methods_by_name['UserInfo']._serialized_options = b'\222A(\032&Retrieves authenticated identity info.\202\323\344\223\002\005\022\003/me' - _globals['_USERINFOREQUEST']._serialized_start=161 - _globals['_USERINFOREQUEST']._serialized_end=178 - _globals['_USERINFORESPONSE']._serialized_start=181 - _globals['_USERINFORESPONSE']._serialized_end=474 - _globals['_IDENTITYSERVICE']._serialized_start=477 - _globals['_IDENTITYSERVICE']._serialized_end=634 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi deleted file mode 100644 index ea342b8c60..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi +++ /dev/null @@ -1,32 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class UserInfoRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class UserInfoResponse(_message.Message): - __slots__ = ["subject", "name", "preferred_username", "given_name", "family_name", "email", "picture", "additional_claims"] - SUBJECT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - PREFERRED_USERNAME_FIELD_NUMBER: _ClassVar[int] - GIVEN_NAME_FIELD_NUMBER: _ClassVar[int] - FAMILY_NAME_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - PICTURE_FIELD_NUMBER: _ClassVar[int] - ADDITIONAL_CLAIMS_FIELD_NUMBER: _ClassVar[int] - subject: str - name: str - preferred_username: str - given_name: str - family_name: str - email: str - picture: str - additional_claims: _struct_pb2.Struct - def __init__(self, subject: _Optional[str] = ..., name: _Optional[str] = ..., preferred_username: _Optional[str] = ..., given_name: _Optional[str] = ..., family_name: _Optional[str] = ..., email: _Optional[str] = ..., picture: _Optional[str] = ..., additional_claims: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py deleted file mode 100644 index 0754d44ffe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py +++ /dev/null @@ -1,70 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import identity_pb2 as flyteidl_dot_service_dot_identity__pb2 - - -class IdentityServiceStub(object): - """IdentityService defines an RPC Service that interacts with user/app identities. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.UserInfo = channel.unary_unary( - '/flyteidl.service.IdentityService/UserInfo', - request_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, - ) - - -class IdentityServiceServicer(object): - """IdentityService defines an RPC Service that interacts with user/app identities. - """ - - def UserInfo(self, request, context): - """Retrieves user information about the currently logged in user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_IdentityServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'UserInfo': grpc.unary_unary_rpc_method_handler( - servicer.UserInfo, - request_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.FromString, - response_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.IdentityService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class IdentityService(object): - """IdentityService defines an RPC Service that interacts with user/app identities. - """ - - @staticmethod - def UserInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.IdentityService/UserInfo', - flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, - flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py deleted file mode 100644 index ff5eab1c2f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/signal.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/service/signal.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1b\x66lyteidl/admin/signal.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xe7\x05\n\rSignalService\x12\x90\x01\n\x11GetOrCreateSignal\x12(.flyteidl.admin.SignalGetOrCreateRequest\x1a\x16.flyteidl.admin.Signal\"9\x92\x41\x36\x1a\x34Retrieve a signal, creating it if it does not exist.\x12\x8e\x02\n\x0bListSignals\x12!.flyteidl.admin.SignalListRequest\x1a\x1a.flyteidl.admin.SignalList\"\xbf\x01\x92\x41I\x1aGFetch existing signal definitions matching the input signal id filters.\x82\xd3\xe4\x93\x02m\x12k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xb1\x02\n\tSetSignal\x12 .flyteidl.admin.SignalSetRequest\x1a!.flyteidl.admin.SignalSetResponse\"\xde\x01\x92\x41\xc0\x01\x1a\x13Set a signal value.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/api/v1/signalsB\xc3\x01\n\x14\x63om.flyteidl.serviceB\x0bSignalProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.signal_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\013SignalProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _SIGNALSERVICE.methods_by_name['GetOrCreateSignal']._options = None - _SIGNALSERVICE.methods_by_name['GetOrCreateSignal']._serialized_options = b'\222A6\0324Retrieve a signal, creating it if it does not exist.' - _SIGNALSERVICE.methods_by_name['ListSignals']._options = None - _SIGNALSERVICE.methods_by_name['ListSignals']._serialized_options = b'\222AI\032GFetch existing signal definitions matching the input signal id filters.\202\323\344\223\002m\022k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' - _SIGNALSERVICE.methods_by_name['SetSignal']._options = None - _SIGNALSERVICE.methods_by_name['SetSignal']._serialized_options = b'\222A\300\001\032\023Set a signal value.JB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.\202\323\344\223\002\024:\001*\"\017/api/v1/signals' - _globals['_SIGNALSERVICE']._serialized_start=159 - _globals['_SIGNALSERVICE']._serialized_end=902 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi deleted file mode 100644 index 30389f9908..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi +++ /dev/null @@ -1,7 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from flyteidl.admin import signal_pb2 as _signal_pb2 -from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 -from google.protobuf import descriptor as _descriptor -from typing import ClassVar as _ClassVar - -DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py deleted file mode 100644 index 78a8e4cb99..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py +++ /dev/null @@ -1,138 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 - - -class SignalServiceStub(object): - """SignalService defines an RPC Service that may create, update, and retrieve signal(s). - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetOrCreateSignal = channel.unary_unary( - '/flyteidl.service.SignalService/GetOrCreateSignal', - request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, - ) - self.ListSignals = channel.unary_unary( - '/flyteidl.service.SignalService/ListSignals', - request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, - ) - self.SetSignal = channel.unary_unary( - '/flyteidl.service.SignalService/SetSignal', - request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, - ) - - -class SignalServiceServicer(object): - """SignalService defines an RPC Service that may create, update, and retrieve signal(s). - """ - - def GetOrCreateSignal(self, request, context): - """Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListSignals(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetSignal(self, request, context): - """Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_SignalServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetOrCreateSignal': grpc.unary_unary_rpc_method_handler( - servicer.GetOrCreateSignal, - request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_signal__pb2.Signal.SerializeToString, - ), - 'ListSignals': grpc.unary_unary_rpc_method_handler( - servicer.ListSignals, - request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.SerializeToString, - ), - 'SetSignal': grpc.unary_unary_rpc_method_handler( - servicer.SetSignal, - request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.SignalService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class SignalService(object): - """SignalService defines an RPC Service that may create, update, and retrieve signal(s). - """ - - @staticmethod - def GetOrCreateSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/GetOrCreateSignal', - flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, - flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListSignals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/ListSignals', - flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, - flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/SetSignal', - flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, - flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_rust/datacatalog.rs b/flyteidl/gen/pb_rust/datacatalog.rs deleted file mode 100644 index ac2c695cab..0000000000 --- a/flyteidl/gen/pb_rust/datacatalog.rs +++ /dev/null @@ -1,565 +0,0 @@ -// @generated -/// -/// Request message for creating a Dataset. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDatasetRequest { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, -} -/// -/// Response message for creating a Dataset -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDatasetResponse { -} -/// -/// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier -/// which is a combination of several fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDatasetRequest { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, -} -/// -/// Response message for retrieving a Dataset. The response will include the metadata for the -/// Dataset. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDatasetResponse { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, -} -/// -/// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that -/// can be one of artifact_id or tag. The result returned will include the artifact data and metadata -/// associated with the artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetArtifactRequest { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, - #[prost(oneof="get_artifact_request::QueryHandle", tags="2, 3")] - pub query_handle: ::core::option::Option, -} -/// Nested message and enum types in `GetArtifactRequest`. -pub mod get_artifact_request { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum QueryHandle { - #[prost(string, tag="2")] - ArtifactId(::prost::alloc::string::String), - #[prost(string, tag="3")] - TagName(::prost::alloc::string::String), - } -} -/// -/// Response message for retrieving an Artifact. The result returned will include the artifact data -/// and metadata associated with the artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetArtifactResponse { - #[prost(message, optional, tag="1")] - pub artifact: ::core::option::Option, -} -/// -/// Request message for creating an Artifact and its associated artifact Data. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateArtifactRequest { - #[prost(message, optional, tag="1")] - pub artifact: ::core::option::Option, -} -/// -/// Response message for creating an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateArtifactResponse { -} -/// -/// Request message for tagging an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AddTagRequest { - #[prost(message, optional, tag="1")] - pub tag: ::core::option::Option, -} -/// -/// Response message for tagging an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AddTagResponse { -} -/// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListArtifactsRequest { - /// Use a datasetID for which you want to retrieve the artifacts - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, - /// Apply the filter expression to this query - #[prost(message, optional, tag="2")] - pub filter: ::core::option::Option, - /// Pagination options to get a page of artifacts - #[prost(message, optional, tag="3")] - pub pagination: ::core::option::Option, -} -/// Response to list artifacts -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListArtifactsResponse { - /// The list of artifacts - #[prost(message, repeated, tag="1")] - pub artifacts: ::prost::alloc::vec::Vec, - /// Token to use to request the next page, pass this into the next requests PaginationOptions - #[prost(string, tag="2")] - pub next_token: ::prost::alloc::string::String, -} -/// List the datasets for the given query -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListDatasetsRequest { - /// Apply the filter expression to this query - #[prost(message, optional, tag="1")] - pub filter: ::core::option::Option, - /// Pagination options to get a page of datasets - #[prost(message, optional, tag="2")] - pub pagination: ::core::option::Option, -} -/// List the datasets response with token for next pagination -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListDatasetsResponse { - /// The list of datasets - #[prost(message, repeated, tag="1")] - pub datasets: ::prost::alloc::vec::Vec, - /// Token to use to request the next page, pass this into the next requests PaginationOptions - #[prost(string, tag="2")] - pub next_token: ::prost::alloc::string::String, -} -/// -/// Request message for updating an Artifact and overwriting its associated ArtifactData. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UpdateArtifactRequest { - /// ID of dataset the artifact is associated with - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, - /// List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing - /// ArtifactData entries will be removed from the underlying blob storage and database. - #[prost(message, repeated, tag="4")] - pub data: ::prost::alloc::vec::Vec, - /// Update execution metadata(including execution domain, name, node, project data) when overwriting cache - #[prost(message, optional, tag="5")] - pub metadata: ::core::option::Option, - /// Either ID of artifact or name of tag to retrieve existing artifact from - #[prost(oneof="update_artifact_request::QueryHandle", tags="2, 3")] - pub query_handle: ::core::option::Option, -} -/// Nested message and enum types in `UpdateArtifactRequest`. -pub mod update_artifact_request { - /// Either ID of artifact or name of tag to retrieve existing artifact from - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum QueryHandle { - #[prost(string, tag="2")] - ArtifactId(::prost::alloc::string::String), - #[prost(string, tag="3")] - TagName(::prost::alloc::string::String), - } -} -/// -/// Response message for updating an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UpdateArtifactResponse { - /// The unique ID of the artifact updated - #[prost(string, tag="1")] - pub artifact_id: ::prost::alloc::string::String, -} -/// -/// ReservationID message that is composed of several string fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReservationId { - /// The unique ID for the reserved dataset - #[prost(message, optional, tag="1")] - pub dataset_id: ::core::option::Option, - /// The specific artifact tag for the reservation - #[prost(string, tag="2")] - pub tag_name: ::prost::alloc::string::String, -} -/// Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetOrExtendReservationRequest { - /// The unique ID for the reservation - #[prost(message, optional, tag="1")] - pub reservation_id: ::core::option::Option, - /// The unique ID of the owner for the reservation - #[prost(string, tag="2")] - pub owner_id: ::prost::alloc::string::String, - /// Requested reservation extension heartbeat interval - #[prost(message, optional, tag="3")] - pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, -} -/// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Reservation { - /// The unique ID for the reservation - #[prost(message, optional, tag="1")] - pub reservation_id: ::core::option::Option, - /// The unique ID of the owner for the reservation - #[prost(string, tag="2")] - pub owner_id: ::prost::alloc::string::String, - /// Recommended heartbeat interval to extend reservation - #[prost(message, optional, tag="3")] - pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, - /// Expiration timestamp of this reservation - #[prost(message, optional, tag="4")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, - /// Free-form metadata associated with the artifact - #[prost(message, optional, tag="6")] - pub metadata: ::core::option::Option, -} -/// Response including either a newly minted reservation or the existing reservation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetOrExtendReservationResponse { - /// The reservation to be acquired or extended - #[prost(message, optional, tag="1")] - pub reservation: ::core::option::Option, -} -/// Request to release reservation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReleaseReservationRequest { - /// The unique ID for the reservation - #[prost(message, optional, tag="1")] - pub reservation_id: ::core::option::Option, - /// The unique ID of the owner for the reservation - #[prost(string, tag="2")] - pub owner_id: ::prost::alloc::string::String, -} -/// Response to release reservation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReleaseReservationResponse { -} -/// -/// Dataset message. It is uniquely identified by DatasetID. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Dataset { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, - #[prost(string, repeated, tag="3")] - pub partition_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// -/// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Partition { - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, -} -/// -/// DatasetID message that is composed of several string fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DatasetId { - /// The name of the project - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// The name of the dataset - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - /// The domain (eg. environment) - #[prost(string, tag="3")] - pub domain: ::prost::alloc::string::String, - /// Version of the data schema - #[prost(string, tag="4")] - pub version: ::prost::alloc::string::String, - /// UUID for the dataset (if set the above fields are optional) - #[prost(string, tag="5")] - pub uuid: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="6")] - pub org: ::prost::alloc::string::String, -} -/// -/// Artifact message. It is composed of several string fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Artifact { - /// The unique ID of the artifact - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// The Dataset that the artifact belongs to - #[prost(message, optional, tag="2")] - pub dataset: ::core::option::Option, - /// A list of data that is associated with the artifact - #[prost(message, repeated, tag="3")] - pub data: ::prost::alloc::vec::Vec, - /// Free-form metadata associated with the artifact - #[prost(message, optional, tag="4")] - pub metadata: ::core::option::Option, - #[prost(message, repeated, tag="5")] - pub partitions: ::prost::alloc::vec::Vec, - #[prost(message, repeated, tag="6")] - pub tags: ::prost::alloc::vec::Vec, - /// creation timestamp of artifact, autogenerated by service - #[prost(message, optional, tag="7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// -/// ArtifactData that belongs to an artifact -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactData { - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub value: ::core::option::Option, -} -/// -/// Tag message that is unique to a Dataset. It is associated to a single artifact and -/// can be retrieved by name later. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Tag { - /// Name of tag - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The tagged artifact - #[prost(string, tag="2")] - pub artifact_id: ::prost::alloc::string::String, - /// The Dataset that this tag belongs to - #[prost(message, optional, tag="3")] - pub dataset: ::core::option::Option, -} -/// -/// Metadata representation for artifacts and datasets -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Metadata { - /// key map is a dictionary of key/val strings that represent metadata - #[prost(map="string, string", tag="1")] - pub key_map: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Filter expression that is composed of a combination of single filters -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FilterExpression { - #[prost(message, repeated, tag="1")] - pub filters: ::prost::alloc::vec::Vec, -} -/// A single property to filter on. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SinglePropertyFilter { - /// field 10 in case we add more entities to query - #[prost(enumeration="single_property_filter::ComparisonOperator", tag="10")] - pub operator: i32, - #[prost(oneof="single_property_filter::PropertyFilter", tags="1, 2, 3, 4")] - pub property_filter: ::core::option::Option, -} -/// Nested message and enum types in `SinglePropertyFilter`. -pub mod single_property_filter { - /// as use-cases come up we can add more operators, ex: gte, like, not eq etc. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ComparisonOperator { - Equals = 0, - } - impl ComparisonOperator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ComparisonOperator::Equals => "EQUALS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EQUALS" => Some(Self::Equals), - _ => None, - } - } - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum PropertyFilter { - #[prost(message, tag="1")] - TagFilter(super::TagPropertyFilter), - #[prost(message, tag="2")] - PartitionFilter(super::PartitionPropertyFilter), - #[prost(message, tag="3")] - ArtifactFilter(super::ArtifactPropertyFilter), - #[prost(message, tag="4")] - DatasetFilter(super::DatasetPropertyFilter), - } -} -/// Artifact properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactPropertyFilter { - /// oneof because we can add more properties in the future - #[prost(oneof="artifact_property_filter::Property", tags="1")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `ArtifactPropertyFilter`. -pub mod artifact_property_filter { - /// oneof because we can add more properties in the future - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(string, tag="1")] - ArtifactId(::prost::alloc::string::String), - } -} -/// Tag properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TagPropertyFilter { - #[prost(oneof="tag_property_filter::Property", tags="1")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `TagPropertyFilter`. -pub mod tag_property_filter { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(string, tag="1")] - TagName(::prost::alloc::string::String), - } -} -/// Partition properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PartitionPropertyFilter { - #[prost(oneof="partition_property_filter::Property", tags="1")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `PartitionPropertyFilter`. -pub mod partition_property_filter { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(message, tag="1")] - KeyVal(super::KeyValuePair), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct KeyValuePair { - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, -} -/// Dataset properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DatasetPropertyFilter { - #[prost(oneof="dataset_property_filter::Property", tags="1, 2, 3, 4, 5")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `DatasetPropertyFilter`. -pub mod dataset_property_filter { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(string, tag="1")] - Project(::prost::alloc::string::String), - #[prost(string, tag="2")] - Name(::prost::alloc::string::String), - #[prost(string, tag="3")] - Domain(::prost::alloc::string::String), - #[prost(string, tag="4")] - Version(::prost::alloc::string::String), - /// Optional, org key applied to the dataset. - #[prost(string, tag="5")] - Org(::prost::alloc::string::String), - } -} -/// Pagination options for making list requests -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PaginationOptions { - /// the max number of results to return - #[prost(uint32, tag="1")] - pub limit: u32, - /// the token to pass to fetch the next page - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, - /// the property that we want to sort the results by - #[prost(enumeration="pagination_options::SortKey", tag="3")] - pub sort_key: i32, - /// the sort order of the results - #[prost(enumeration="pagination_options::SortOrder", tag="4")] - pub sort_order: i32, -} -/// Nested message and enum types in `PaginationOptions`. -pub mod pagination_options { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum SortOrder { - Descending = 0, - Ascending = 1, - } - impl SortOrder { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SortOrder::Descending => "DESCENDING", - SortOrder::Ascending => "ASCENDING", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DESCENDING" => Some(Self::Descending), - "ASCENDING" => Some(Self::Ascending), - _ => None, - } - } - } - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum SortKey { - CreationTime = 0, - } - impl SortKey { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SortKey::CreationTime => "CREATION_TIME", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CREATION_TIME" => Some(Self::CreationTime), - _ => None, - } - } - } -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs deleted file mode 100644 index 4175e52561..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ /dev/null @@ -1,3291 +0,0 @@ -// @generated -/// Represents a subset of runtime task execution metadata that are relevant to external plugins. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionMetadata { - /// ID of the task execution - #[prost(message, optional, tag="1")] - pub task_execution_id: ::core::option::Option, - /// k8s namespace where the task is executed in - #[prost(string, tag="2")] - pub namespace: ::prost::alloc::string::String, - /// Labels attached to the task execution - #[prost(map="string, string", tag="3")] - pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Annotations attached to the task execution - #[prost(map="string, string", tag="4")] - pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// k8s service account associated with the task execution - #[prost(string, tag="5")] - pub k8s_service_account: ::prost::alloc::string::String, - /// Environment variables attached to the task execution - #[prost(map="string, string", tag="6")] - pub environment_variables: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - #[prost(int32, tag="7")] - pub max_attempts: i32, - #[prost(bool, tag="8")] - pub interruptible: bool, - #[prost(int32, tag="9")] - pub interruptible_failure_threshold: i32, - #[prost(message, optional, tag="10")] - pub overrides: ::core::option::Option, -} -/// Represents a request structure to create task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateTaskRequest { - /// The inputs required to start the execution. All required inputs must be - /// included in this map. If not required and not provided, defaults apply. - /// +optional - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="2")] - pub template: ::core::option::Option, - /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - #[prost(string, tag="3")] - pub output_prefix: ::prost::alloc::string::String, - /// subset of runtime task execution metadata. - #[prost(message, optional, tag="4")] - pub task_execution_metadata: ::core::option::Option, -} -/// Represents a create response structure. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateTaskResponse { - /// ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - #[prost(bytes="vec", tag="1")] - pub resource_meta: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateRequestHeader { - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - #[prost(string, tag="2")] - pub output_prefix: ::prost::alloc::string::String, - /// subset of runtime task execution metadata. - #[prost(message, optional, tag="3")] - pub task_execution_metadata: ::core::option::Option, - /// MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. - #[prost(int64, tag="4")] - pub max_dataset_size_bytes: i64, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecuteTaskSyncRequest { - #[prost(oneof="execute_task_sync_request::Part", tags="1, 2")] - pub part: ::core::option::Option, -} -/// Nested message and enum types in `ExecuteTaskSyncRequest`. -pub mod execute_task_sync_request { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Part { - #[prost(message, tag="1")] - Header(super::CreateRequestHeader), - #[prost(message, tag="2")] - Inputs(super::super::core::LiteralMap), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecuteTaskSyncResponseHeader { - #[prost(message, optional, tag="1")] - pub resource: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecuteTaskSyncResponse { - /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - /// Resource is for synchronous task execution. - #[prost(oneof="execute_task_sync_response::Res", tags="1, 2")] - pub res: ::core::option::Option, -} -/// Nested message and enum types in `ExecuteTaskSyncResponse`. -pub mod execute_task_sync_response { - /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - /// Resource is for synchronous task execution. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Res { - #[prost(message, tag="1")] - Header(super::ExecuteTaskSyncResponseHeader), - #[prost(message, tag="2")] - Outputs(super::super::core::LiteralMap), - } -} -/// A message used to fetch a job resource from flyte agent server. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskRequest { - /// A predefined yet extensible Task type identifier. - #[deprecated] - #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, - /// Metadata about the resource to be pass to the agent. - #[prost(bytes="vec", tag="2")] - pub resource_meta: ::prost::alloc::vec::Vec, - /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="3")] - pub task_type: ::core::option::Option, -} -/// Response to get an individual task resource. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskResponse { - #[prost(message, optional, tag="1")] - pub resource: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Resource { - /// DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI. - #[deprecated] - #[prost(enumeration="State", tag="1")] - pub state: i32, - /// The outputs of the execution. It's typically used by sql task. Agent service will create a - /// Structured dataset pointing to the query result table. - /// +optional - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, - /// A descriptive message for the current state. e.g. waiting for cluster. - #[prost(string, tag="3")] - pub message: ::prost::alloc::string::String, - /// log information for the task execution. - #[prost(message, repeated, tag="4")] - pub log_links: ::prost::alloc::vec::Vec, - /// The phase of the execution is used to determine the phase of the plugin's execution. - #[prost(enumeration="super::core::task_execution::Phase", tag="5")] - pub phase: i32, -} -/// A message used to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteTaskRequest { - /// A predefined yet extensible Task type identifier. - #[deprecated] - #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, - /// Metadata about the resource to be pass to the agent. - #[prost(bytes="vec", tag="2")] - pub resource_meta: ::prost::alloc::vec::Vec, - /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="3")] - pub task_type: ::core::option::Option, -} -/// Response to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteTaskResponse { -} -/// A message containing the agent metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Agent { - /// Name is the developer-assigned name of the agent. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// SupportedTaskTypes are the types of the tasks that the agent can handle. - #[deprecated] - #[prost(string, repeated, tag="2")] - pub deprecated_supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their - /// results synchronously when called by propeller. Given that sync agents can affect the performance - /// of the system, it's important to enforce strict timeout policies. - /// An Async agent, on the other hand, is required to be able to identify jobs by an - /// identifier and query for job statuses as jobs progress. - #[prost(bool, tag="3")] - pub is_sync: bool, - /// SupportedTaskTypes are the types of the tasks that the agent can handle. - #[prost(message, repeated, tag="4")] - pub supported_task_types: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskType { - /// The name of the task type. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The version of the task type. - #[prost(int32, tag="2")] - pub version: i32, -} -/// A request to get an agent. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetAgentRequest { - /// The name of the agent. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, -} -/// A response containing an agent. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetAgentResponse { - #[prost(message, optional, tag="1")] - pub agent: ::core::option::Option, -} -/// A request to list all agents. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListAgentsRequest { -} -/// A response containing a list of agents. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListAgentsResponse { - #[prost(message, repeated, tag="1")] - pub agents: ::prost::alloc::vec::Vec, -} -/// A request to get the metrics from a task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskMetricsRequest { - /// A predefined yet extensible Task type identifier. - #[deprecated] - #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, - /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - #[prost(bytes="vec", tag="2")] - pub resource_meta: ::prost::alloc::vec::Vec, - /// The metrics to query. If empty, will return a default set of metrics. - /// e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG - #[prost(string, repeated, tag="3")] - pub queries: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Start timestamp, inclusive. - #[prost(message, optional, tag="4")] - pub start_time: ::core::option::Option<::prost_types::Timestamp>, - /// End timestamp, inclusive.. - #[prost(message, optional, tag="5")] - pub end_time: ::core::option::Option<::prost_types::Timestamp>, - /// Query resolution step width in duration format or float number of seconds. - #[prost(message, optional, tag="6")] - pub step: ::core::option::Option<::prost_types::Duration>, - /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="7")] - pub task_type: ::core::option::Option, -} -/// A response containing a list of metrics for a task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskMetricsResponse { - /// The execution metric results. - #[prost(message, repeated, tag="1")] - pub results: ::prost::alloc::vec::Vec, -} -/// A request to get the log from a task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskLogsRequest { - /// A predefined yet extensible Task type identifier. - #[deprecated] - #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, - /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - #[prost(bytes="vec", tag="2")] - pub resource_meta: ::prost::alloc::vec::Vec, - /// Number of lines to return. - #[prost(uint64, tag="3")] - pub lines: u64, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// A predefined yet extensible Task type identifier. - #[prost(message, optional, tag="5")] - pub task_type: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskLogsResponseHeader { - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="1")] - pub token: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskLogsResponseBody { - /// The execution log results. - #[prost(string, repeated, tag="1")] - pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// A response containing the logs for a task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskLogsResponse { - #[prost(oneof="get_task_logs_response::Part", tags="1, 2")] - pub part: ::core::option::Option, -} -/// Nested message and enum types in `GetTaskLogsResponse`. -pub mod get_task_logs_response { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Part { - #[prost(message, tag="1")] - Header(super::GetTaskLogsResponseHeader), - #[prost(message, tag="2")] - Body(super::GetTaskLogsResponseBody), - } -} -/// The state of the execution is used to control its visibility in the UI/CLI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum State { - RetryableFailure = 0, - PermanentFailure = 1, - Pending = 2, - Running = 3, - Succeeded = 4, -} -impl State { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - State::RetryableFailure => "RETRYABLE_FAILURE", - State::PermanentFailure => "PERMANENT_FAILURE", - State::Pending => "PENDING", - State::Running => "RUNNING", - State::Succeeded => "SUCCEEDED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), - "PERMANENT_FAILURE" => Some(Self::PermanentFailure), - "PENDING" => Some(Self::Pending), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - _ => None, - } - } -} -/// Encapsulates specifications for routing an execution onto a specific cluster. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ClusterAssignment { - #[prost(string, tag="3")] - pub cluster_pool_name: ::prost::alloc::string::String, -} -/// Encapsulation of fields that identifies a Flyte resource. -/// A Flyte resource can be a task, workflow or launch plan. -/// A resource can internally have multiple versions and is uniquely identified -/// by project, domain, and name. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityIdentifier { - /// Name of the project the resource belongs to. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the resource belongs to. - /// A domain can be considered as a subset within a specific project. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// User provided value for the resource. - /// The combination of project + domain + name uniquely identifies the resource. - /// +optional - in certain contexts - like 'List API', 'Launch plans' - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="4")] - pub org: ::prost::alloc::string::String, -} -/// Additional metadata around a named entity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityMetadata { - /// Common description across all versions of the entity - /// +optional - #[prost(string, tag="1")] - pub description: ::prost::alloc::string::String, - /// Shared state across all version of the entity - /// At this point in time, only workflow entities can have their state archived. - #[prost(enumeration="NamedEntityState", tag="2")] - pub state: i32, -} -/// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, -/// workflow or launch plan. A NamedEntity is exclusively identified by its resource type -/// and identifier. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntity { - /// Resource type of the named entity. One of Task, Workflow or LaunchPlan. - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, - /// Additional metadata around a named entity. - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, -} -/// Specifies sort ordering in a list request. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Sort { - /// Indicates an attribute to sort the response values. - /// +required - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - /// Indicates the direction to apply sort key for response values. - /// +optional - #[prost(enumeration="sort::Direction", tag="2")] - pub direction: i32, -} -/// Nested message and enum types in `Sort`. -pub mod sort { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Direction { - /// By default, fields are sorted in descending order. - Descending = 0, - Ascending = 1, - } - impl Direction { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Direction::Descending => "DESCENDING", - Direction::Ascending => "ASCENDING", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DESCENDING" => Some(Self::Descending), - "ASCENDING" => Some(Self::Ascending), - _ => None, - } - } - } -} -/// Represents a request structure to list NamedEntityIdentifiers. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityIdentifierListRequest { - /// Name of the project that contains the identifiers. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the identifiers belongs to within the project. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="3")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// Specifies how listed entities should be sorted in the response. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, - /// Indicates a list of filters passed as string. - /// +optional - #[prost(string, tag="6")] - pub filters: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="7")] - pub org: ::prost::alloc::string::String, -} -/// Represents a request structure to list NamedEntity objects -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityListRequest { - /// Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. - /// +required - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// Name of the project that contains the identifiers. - /// +required - #[prost(string, tag="2")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the identifiers belongs to within the project. - #[prost(string, tag="3")] - pub domain: ::prost::alloc::string::String, - /// Indicates the number of resources to be returned. - #[prost(uint32, tag="4")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="5")] - pub token: ::prost::alloc::string::String, - /// Specifies how listed entities should be sorted in the response. - /// +optional - #[prost(message, optional, tag="6")] - pub sort_by: ::core::option::Option, - /// Indicates a list of filters passed as string. - /// +optional - #[prost(string, tag="7")] - pub filters: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="8")] - pub org: ::prost::alloc::string::String, -} -/// Represents a list of NamedEntityIdentifiers. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityIdentifierList { - /// A list of identifiers. - #[prost(message, repeated, tag="1")] - pub entities: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a list of NamedEntityIdentifiers. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityList { - /// A list of NamedEntity objects - #[prost(message, repeated, tag="1")] - pub entities: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// A request to retrieve the metadata associated with a NamedEntityIdentifier -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityGetRequest { - /// Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. - /// +required - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// The identifier for the named entity for which to fetch metadata. - /// +required - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, -} -/// Request to set the referenced named entity state to the configured value. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityUpdateRequest { - /// Resource type of the metadata to update - /// +required - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// Identifier of the metadata to update - /// +required - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, - /// Metadata object to set as the new value - /// +required - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityUpdateResponse { -} -/// Shared request structure to fetch a single resource. -/// Resources include: Task, Workflow, LaunchPlan -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ObjectGetRequest { - /// Indicates a unique version of resource. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Shared request structure to retrieve a list of resources. -/// Resources include: Task, Workflow, LaunchPlan -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ResourceListRequest { - /// id represents the unique identifier of the resource. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// Defines an email notification specification. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EmailNotification { - /// The list of email addresses recipients for this notification. - /// +required - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Defines a pager duty notification specification. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PagerDutyNotification { - /// Currently, PagerDuty notifications leverage email to trigger a notification. - /// +required - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Defines a slack notification specification. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SlackNotification { - /// Currently, Slack notifications leverage email to trigger a notification. - /// +required - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Represents a structure for notifications based on execution status. -/// The notification content is configured within flyte admin but can be templatized. -/// Future iterations could expose configuring notifications with custom content. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Notification { - /// A list of phases to which users can associate the notifications to. - /// +required - #[prost(enumeration="super::core::workflow_execution::Phase", repeated, tag="1")] - pub phases: ::prost::alloc::vec::Vec, - /// The type of notification to trigger. - /// +required - #[prost(oneof="notification::Type", tags="2, 3, 4")] - pub r#type: ::core::option::Option, -} -/// Nested message and enum types in `Notification`. -pub mod notification { - /// The type of notification to trigger. - /// +required - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Type { - #[prost(message, tag="2")] - Email(super::EmailNotification), - #[prost(message, tag="3")] - PagerDuty(super::PagerDutyNotification), - #[prost(message, tag="4")] - Slack(super::SlackNotification), - } -} -/// Represents a string url and associated metadata used throughout the platform. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UrlBlob { - /// Actual url value. - #[prost(string, tag="1")] - pub url: ::prost::alloc::string::String, - /// Represents the size of the file accessible at the above url. - #[prost(int64, tag="2")] - pub bytes: i64, -} -/// Label values to be applied to an execution resource. -/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -/// to specify how to merge labels defined at registration and execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Labels { - /// Map of custom labels to be applied to the execution resource. - #[prost(map="string, string", tag="1")] - pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Annotation values to be applied to an execution resource. -/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -/// to specify how to merge annotations defined at registration and execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Annotations { - /// Map of custom annotations to be applied to the execution resource. - #[prost(map="string, string", tag="1")] - pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Environment variable values to be applied to an execution resource. -/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -/// to specify how to merge environment variables defined at registration and execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Envs { - /// Map of custom environment variables to be applied to the execution resource. - #[prost(message, repeated, tag="1")] - pub values: ::prost::alloc::vec::Vec, -} -/// Defines permissions associated with executions created by this launch plan spec. -/// Use either of these roles when they have permissions required by your workflow execution. -/// Deprecated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AuthRole { - /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="1")] - pub assumable_iam_role: ::prost::alloc::string::String, - /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="2")] - pub kubernetes_service_account: ::prost::alloc::string::String, -} -/// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). -/// See for more background information. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RawOutputDataConfig { - /// Prefix for where offloaded data from user workflows will be written - /// e.g. s3://bucket/key or s3://bucket/ - #[prost(string, tag="1")] - pub output_location_prefix: ::prost::alloc::string::String, -} -/// These URLs are returned as part of node and task execution data requests. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FlyteUrLs { - #[prost(string, tag="1")] - pub inputs: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub outputs: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub deck: ::prost::alloc::string::String, -} -/// The status of the named entity is used to control its visibility in the UI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum NamedEntityState { - /// By default, all named entities are considered active and under development. - NamedEntityActive = 0, - /// Archived named entities are no longer visible in the UI. - NamedEntityArchived = 1, - /// System generated entities that aren't explicitly created or managed by a user. - SystemGenerated = 2, -} -impl NamedEntityState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - NamedEntityState::NamedEntityActive => "NAMED_ENTITY_ACTIVE", - NamedEntityState::NamedEntityArchived => "NAMED_ENTITY_ARCHIVED", - NamedEntityState::SystemGenerated => "SYSTEM_GENERATED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "NAMED_ENTITY_ACTIVE" => Some(Self::NamedEntityActive), - "NAMED_ENTITY_ARCHIVED" => Some(Self::NamedEntityArchived), - "SYSTEM_GENERATED" => Some(Self::SystemGenerated), - _ => None, - } - } -} -/// DescriptionEntity contains detailed description for the task/workflow. -/// Documentation could provide insight into the algorithms, business use case, etc. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DescriptionEntity { - /// id represents the unique identifier of the description entity. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// One-liner overview of the entity. - #[prost(string, tag="2")] - pub short_description: ::prost::alloc::string::String, - /// Full user description with formatting preserved. - #[prost(message, optional, tag="3")] - pub long_description: ::core::option::Option, - /// Optional link to source code used to define this entity. - #[prost(message, optional, tag="4")] - pub source_code: ::core::option::Option, - /// User-specified tags. These are arbitrary and can be used for searching - /// filtering and discovering tasks. - #[prost(string, repeated, tag="5")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Full user description with formatting preserved. This can be rendered -/// by clients, such as the console or command line tools with in-tact -/// formatting. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Description { - /// Format of the long description - #[prost(enumeration="DescriptionFormat", tag="3")] - pub format: i32, - /// Optional link to an icon for the entity - #[prost(string, tag="4")] - pub icon_link: ::prost::alloc::string::String, - #[prost(oneof="description::Content", tags="1, 2")] - pub content: ::core::option::Option, -} -/// Nested message and enum types in `Description`. -pub mod description { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Content { - /// long description - no more than 4KB - #[prost(string, tag="1")] - Value(::prost::alloc::string::String), - /// if the description sizes exceed some threshold we can offload the entire - /// description proto altogether to an external data store, like S3 rather than store inline in the db - #[prost(string, tag="2")] - Uri(::prost::alloc::string::String), - } -} -/// Link to source code used to define this entity -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SourceCode { - #[prost(string, tag="1")] - pub link: ::prost::alloc::string::String, -} -/// Represents a list of DescriptionEntities returned from the admin. -/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DescriptionEntityList { - /// A list of DescriptionEntities returned based on the request. - #[prost(message, repeated, tag="1")] - pub description_entities: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a request structure to retrieve a list of DescriptionEntities. -/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DescriptionEntityListRequest { - /// Identifies the specific type of resource that this identifier corresponds to. - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// The identifier for the description entity. - /// +required - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="3")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="5")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering for returned list. - /// +optional - #[prost(message, optional, tag="6")] - pub sort_by: ::core::option::Option, -} -/// The format of the long description -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum DescriptionFormat { - Unknown = 0, - Markdown = 1, - Html = 2, - /// python default documentation - comments is rst - Rst = 3, -} -impl DescriptionFormat { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - DescriptionFormat::Unknown => "DESCRIPTION_FORMAT_UNKNOWN", - DescriptionFormat::Markdown => "DESCRIPTION_FORMAT_MARKDOWN", - DescriptionFormat::Html => "DESCRIPTION_FORMAT_HTML", - DescriptionFormat::Rst => "DESCRIPTION_FORMAT_RST", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DESCRIPTION_FORMAT_UNKNOWN" => Some(Self::Unknown), - "DESCRIPTION_FORMAT_MARKDOWN" => Some(Self::Markdown), - "DESCRIPTION_FORMAT_HTML" => Some(Self::Html), - "DESCRIPTION_FORMAT_RST" => Some(Self::Rst), - _ => None, - } - } -} -/// Indicates that a sent event was not used to update execution state due to -/// the referenced execution already being terminated (and therefore ineligible -/// for further state transitions). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventErrorAlreadyInTerminalState { - /// +required - #[prost(string, tag="1")] - pub current_phase: ::prost::alloc::string::String, -} -/// Indicates an event was rejected because it came from a different cluster than -/// is on record as running the execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventErrorIncompatibleCluster { - /// The cluster which has been recorded as processing the execution. - /// +required - #[prost(string, tag="1")] - pub cluster: ::prost::alloc::string::String, -} -/// Indicates why a sent event was not used to update execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventFailureReason { - /// +required - #[prost(oneof="event_failure_reason::Reason", tags="1, 2")] - pub reason: ::core::option::Option, -} -/// Nested message and enum types in `EventFailureReason`. -pub mod event_failure_reason { - /// +required - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reason { - #[prost(message, tag="1")] - AlreadyInTerminalState(super::EventErrorAlreadyInTerminalState), - #[prost(message, tag="2")] - IncompatibleCluster(super::EventErrorIncompatibleCluster), - } -} -/// Request to send a notification that a workflow execution event has occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionEventRequest { - /// Unique ID for this request that can be traced between services - #[prost(string, tag="1")] - pub request_id: ::prost::alloc::string::String, - /// Details about the event that occurred. - #[prost(message, optional, tag="2")] - pub event: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionEventResponse { -} -/// Request to send a notification that a node execution event has occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionEventRequest { - /// Unique ID for this request that can be traced between services - #[prost(string, tag="1")] - pub request_id: ::prost::alloc::string::String, - /// Details about the event that occurred. - #[prost(message, optional, tag="2")] - pub event: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionEventResponse { -} -/// Request to send a notification that a task execution event has occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionEventRequest { - /// Unique ID for this request that can be traced between services - #[prost(string, tag="1")] - pub request_id: ::prost::alloc::string::String, - /// Details about the event that occurred. - #[prost(message, optional, tag="2")] - pub event: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionEventResponse { -} -/// Request to launch an execution with the given project, domain and optionally-assigned name. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionCreateRequest { - /// Name of the project the execution belongs to. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the execution belongs to. - /// A domain can be considered as a subset within a specific project. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// User provided value for the resource. - /// If none is provided the system will generate a unique string. - /// +optional - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - /// Additional fields necessary to launch the execution. - /// +optional - #[prost(message, optional, tag="4")] - pub spec: ::core::option::Option, - /// The inputs required to start the execution. All required inputs must be - /// included in this map. If not required and not provided, defaults apply. - /// +optional - #[prost(message, optional, tag="5")] - pub inputs: ::core::option::Option, - /// Optional, org key applied to the resource. - #[prost(string, tag="6")] - pub org: ::prost::alloc::string::String, -} -/// Request to relaunch the referenced execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionRelaunchRequest { - /// Identifier of the workflow execution to relaunch. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User provided value for the relaunched execution. - /// If none is provided the system will generate a unique string. - /// +optional - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="4")] - pub overwrite_cache: bool, -} -/// Request to recover the referenced execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionRecoverRequest { - /// Identifier of the workflow execution to recover. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User provided value for the recovered execution. - /// If none is provided the system will generate a unique string. - /// +optional - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - /// Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, -} -/// The unique identifier for a successfully created execution. -/// If the name was *not* specified in the create request, this identifier will include a generated name. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionCreateResponse { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// A message used to fetch a single workflow execution entity. -/// See :ref:`ref_flyteidl.admin.Execution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetRequest { - /// Uniquely identifies an individual workflow execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// A workflow execution represents an instantiated workflow, including all inputs and additional -/// metadata as well as computed results included state, outputs, and duration-based attributes. -/// Used as a response object used in Get and List execution requests. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Execution { - /// Unique identifier of the workflow execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User-provided configuration and inputs for launching the execution. - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, - /// Execution results. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, -} -/// Used as a response for request to list executions. -/// See :ref:`ref_flyteidl.admin.Execution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionList { - #[prost(message, repeated, tag="1")] - pub executions: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Input/output data can represented by actual values or a link to where values are stored -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralMapBlob { - #[prost(oneof="literal_map_blob::Data", tags="1, 2")] - pub data: ::core::option::Option, -} -/// Nested message and enum types in `LiteralMapBlob`. -pub mod literal_map_blob { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Data { - /// Data in LiteralMap format - #[prost(message, tag="1")] - Values(super::super::core::LiteralMap), - /// In the event that the map is too large, we return a uri to the data - #[prost(string, tag="2")] - Uri(::prost::alloc::string::String), - } -} -/// Specifies metadata around an aborted workflow execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AbortMetadata { - /// In the case of a user-specified abort, this will pass along the user-supplied cause. - #[prost(string, tag="1")] - pub cause: ::prost::alloc::string::String, - /// Identifies the entity (if any) responsible for terminating the execution - #[prost(string, tag="2")] - pub principal: ::prost::alloc::string::String, -} -/// Encapsulates the results of the Execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionClosure { - /// Inputs computed and passed for execution. - /// computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan - #[deprecated] - #[prost(message, optional, tag="3")] - pub computed_inputs: ::core::option::Option, - /// Most recent recorded phase for the execution. - #[prost(enumeration="super::core::workflow_execution::Phase", tag="4")] - pub phase: i32, - /// Reported time at which the execution began running. - #[prost(message, optional, tag="5")] - pub started_at: ::core::option::Option<::prost_types::Timestamp>, - /// The amount of time the execution spent running. - #[prost(message, optional, tag="6")] - pub duration: ::core::option::Option<::prost_types::Duration>, - /// Reported time at which the execution was created. - #[prost(message, optional, tag="7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Reported time at which the execution was last updated. - #[prost(message, optional, tag="8")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, - /// The notification settings to use after merging the CreateExecutionRequest and the launch plan - /// notification settings. An execution launched with notifications will always prefer that definition - /// to notifications defined statically in a launch plan. - #[prost(message, repeated, tag="9")] - pub notifications: ::prost::alloc::vec::Vec, - /// Identifies the workflow definition for this execution. - #[prost(message, optional, tag="11")] - pub workflow_id: ::core::option::Option, - /// Provides the details of the last stage change - #[prost(message, optional, tag="14")] - pub state_change_details: ::core::option::Option, - /// A result produced by a terminated execution. - /// A pending (non-terminal) execution will not have any output result. - #[prost(oneof="execution_closure::OutputResult", tags="1, 2, 10, 12, 13")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `ExecutionClosure`. -pub mod execution_closure { - /// A result produced by a terminated execution. - /// A pending (non-terminal) execution will not have any output result. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// Output URI in the case of a successful execution. - /// DEPRECATED. Use GetExecutionData to fetch output data instead. - #[prost(message, tag="1")] - Outputs(super::LiteralMapBlob), - /// Error information in the case of a failed execution. - #[prost(message, tag="2")] - Error(super::super::core::ExecutionError), - /// In the case of a user-specified abort, this will pass along the user-supplied cause. - #[prost(string, tag="10")] - AbortCause(::prost::alloc::string::String), - /// In the case of a user-specified abort, this will pass along the user and their supplied cause. - #[prost(message, tag="12")] - AbortMetadata(super::AbortMetadata), - /// Raw output data produced by this execution. - /// DEPRECATED. Use GetExecutionData to fetch output data instead. - #[prost(message, tag="13")] - OutputData(super::super::core::LiteralMap), - } -} -/// Represents system, rather than user-facing, metadata about an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SystemMetadata { - /// Which execution cluster this execution ran on. - #[prost(string, tag="1")] - pub execution_cluster: ::prost::alloc::string::String, - /// Which kubernetes namespace the execution ran under. - #[prost(string, tag="2")] - pub namespace: ::prost::alloc::string::String, -} -/// Represents attributes about an execution which are not required to launch the execution but are useful to record. -/// These attributes are assigned at launch time and do not change. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionMetadata { - #[prost(enumeration="execution_metadata::ExecutionMode", tag="1")] - pub mode: i32, - /// Identifier of the entity that triggered this execution. - /// For systems using back-end authentication any value set here will be discarded in favor of the - /// authenticated user context. - #[prost(string, tag="2")] - pub principal: ::prost::alloc::string::String, - /// Indicates the nestedness of this execution. - /// If a user launches a workflow execution, the default nesting is 0. - /// If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 - /// Generally, if workflow at nesting level k launches a workflow then the child workflow will have - /// nesting = k + 1. - #[prost(uint32, tag="3")] - pub nesting: u32, - /// For scheduled executions, the requested time for execution for this specific schedule invocation. - #[prost(message, optional, tag="4")] - pub scheduled_at: ::core::option::Option<::prost_types::Timestamp>, - /// Which subworkflow node (if any) launched this execution - #[prost(message, optional, tag="5")] - pub parent_node_execution: ::core::option::Option, - /// Optional, a reference workflow execution related to this execution. - /// In the case of a relaunch, this references the original workflow execution. - #[prost(message, optional, tag="16")] - pub reference_execution: ::core::option::Option, - /// Optional, platform-specific metadata about the execution. - /// In this the future this may be gated behind an ACL or some sort of authorization. - #[prost(message, optional, tag="17")] - pub system_metadata: ::core::option::Option, - /// Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping - /// since we don't have a structure to handle nested ones anyways. - #[prost(message, repeated, tag="18")] - pub artifact_ids: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `ExecutionMetadata`. -pub mod execution_metadata { - /// The method by which this execution was launched. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ExecutionMode { - /// The default execution mode, MANUAL implies that an execution was launched by an individual. - Manual = 0, - /// A schedule triggered this execution launch. - Scheduled = 1, - /// A system process was responsible for launching this execution rather an individual. - System = 2, - /// This execution was launched with identical inputs as a previous execution. - Relaunch = 3, - /// This execution was triggered by another execution. - ChildWorkflow = 4, - /// This execution was recovered from another execution. - Recovered = 5, - } - impl ExecutionMode { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ExecutionMode::Manual => "MANUAL", - ExecutionMode::Scheduled => "SCHEDULED", - ExecutionMode::System => "SYSTEM", - ExecutionMode::Relaunch => "RELAUNCH", - ExecutionMode::ChildWorkflow => "CHILD_WORKFLOW", - ExecutionMode::Recovered => "RECOVERED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "MANUAL" => Some(Self::Manual), - "SCHEDULED" => Some(Self::Scheduled), - "SYSTEM" => Some(Self::System), - "RELAUNCH" => Some(Self::Relaunch), - "CHILD_WORKFLOW" => Some(Self::ChildWorkflow), - "RECOVERED" => Some(Self::Recovered), - _ => None, - } - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NotificationList { - #[prost(message, repeated, tag="1")] - pub notifications: ::prost::alloc::vec::Vec, -} -/// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime -/// of an execution as it progresses across phase changes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionSpec { - /// Launch plan to be executed - #[prost(message, optional, tag="1")] - pub launch_plan: ::core::option::Option, - /// Input values to be passed for the execution - #[deprecated] - #[prost(message, optional, tag="2")] - pub inputs: ::core::option::Option, - /// Metadata for the execution - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, - /// Labels to apply to the execution resource. - #[prost(message, optional, tag="7")] - pub labels: ::core::option::Option, - /// Annotations to apply to the execution resource. - #[prost(message, optional, tag="8")] - pub annotations: ::core::option::Option, - /// Optional: security context override to apply this execution. - #[prost(message, optional, tag="10")] - pub security_context: ::core::option::Option, - /// Optional: auth override to apply this execution. - #[deprecated] - #[prost(message, optional, tag="16")] - pub auth_role: ::core::option::Option, - /// Indicates the runtime priority of the execution. - #[prost(message, optional, tag="17")] - pub quality_of_service: ::core::option::Option, - /// Controls the maximum number of task nodes that can be run in parallel for the entire workflow. - /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - /// and parallelism/concurrency of MapTasks is independent from this. - #[prost(int32, tag="18")] - pub max_parallelism: i32, - /// User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). - /// This should be a prefix like s3://my-bucket/my-data - #[prost(message, optional, tag="19")] - pub raw_output_data_config: ::core::option::Option, - /// Controls how to select an available cluster on which this execution should run. - #[prost(message, optional, tag="20")] - pub cluster_assignment: ::core::option::Option, - /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. - /// Omitting this field uses the workflow's value as a default. - /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - /// around the bool field. - #[prost(message, optional, tag="21")] - pub interruptible: ::core::option::Option, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="22")] - pub overwrite_cache: bool, - /// Environment variables to be set for the execution. - #[prost(message, optional, tag="23")] - pub envs: ::core::option::Option, - /// Tags to be set for the execution. - #[prost(string, repeated, tag="24")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(oneof="execution_spec::NotificationOverrides", tags="5, 6")] - pub notification_overrides: ::core::option::Option, -} -/// Nested message and enum types in `ExecutionSpec`. -pub mod execution_spec { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum NotificationOverrides { - /// List of notifications based on Execution status transitions - /// When this list is not empty it is used rather than any notifications defined in the referenced launch plan. - /// When this list is empty, the notifications defined for the launch plan will be applied. - #[prost(message, tag="5")] - Notifications(super::NotificationList), - /// This should be set to true if all notifications are intended to be disabled for this execution. - #[prost(bool, tag="6")] - DisableAll(bool), - } -} -/// Request to terminate an in-progress execution. This action is irreversible. -/// If an execution is already terminated, this request will simply be a no-op. -/// This request will fail if it references a non-existent execution. -/// If the request succeeds the phase "ABORTED" will be recorded for the termination -/// with the optional cause added to the output_result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionTerminateRequest { - /// Uniquely identifies the individual workflow execution to be terminated. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Optional reason for aborting. - #[prost(string, tag="2")] - pub cause: ::prost::alloc::string::String, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionTerminateResponse { -} -/// Request structure to fetch inputs, output and other data produced by an execution. -/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetDataRequest { - /// The identifier of the execution for which to fetch inputs and outputs. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetDataResponse { - /// Signed url to fetch a core.LiteralMap of execution outputs. - /// Deprecated: Please use full_outputs instead. - #[deprecated] - #[prost(message, optional, tag="1")] - pub outputs: ::core::option::Option, - /// Signed url to fetch a core.LiteralMap of execution inputs. - /// Deprecated: Please use full_inputs instead. - #[deprecated] - #[prost(message, optional, tag="2")] - pub inputs: ::core::option::Option, - /// Full_inputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="3")] - pub full_inputs: ::core::option::Option, - /// Full_outputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="4")] - pub full_outputs: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionUpdateRequest { - /// Identifier of the execution to update - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// State to set as the new value active/archive - #[prost(enumeration="ExecutionState", tag="2")] - pub state: i32, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionStateChangeDetails { - /// The state of the execution is used to control its visibility in the UI/CLI. - #[prost(enumeration="ExecutionState", tag="1")] - pub state: i32, - /// This timestamp represents when the state changed. - #[prost(message, optional, tag="2")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// Identifies the entity (if any) responsible for causing the state change of the execution - #[prost(string, tag="3")] - pub principal: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionUpdateResponse { -} -/// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetMetricsRequest { - /// id defines the workflow execution to query for. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// depth defines the number of Flyte entity levels to traverse when breaking down execution details. - #[prost(int32, tag="2")] - pub depth: i32, -} -/// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetMetricsResponse { - /// Span defines the top-level breakdown of the workflows execution. More precise information is nested in a - /// hierarchical structure using Flyte entity references. - #[prost(message, optional, tag="1")] - pub span: ::core::option::Option, -} -/// The state of the execution is used to control its visibility in the UI/CLI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum ExecutionState { - /// By default, all executions are considered active. - ExecutionActive = 0, - /// Archived executions are no longer visible in the UI. - ExecutionArchived = 1, -} -impl ExecutionState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ExecutionState::ExecutionActive => "EXECUTION_ACTIVE", - ExecutionState::ExecutionArchived => "EXECUTION_ARCHIVED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EXECUTION_ACTIVE" => Some(Self::ExecutionActive), - "EXECUTION_ARCHIVED" => Some(Self::ExecutionArchived), - _ => None, - } - } -} -/// Option for schedules run at a certain frequency e.g. every 2 minutes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FixedRate { - #[prost(uint32, tag="1")] - pub value: u32, - #[prost(enumeration="FixedRateUnit", tag="2")] - pub unit: i32, -} -/// Options for schedules to run according to a cron expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CronSchedule { - /// Standard/default cron implementation as described by - /// Also supports nonstandard predefined scheduling definitions - /// as described by - /// except @reboot - #[prost(string, tag="1")] - pub schedule: ::prost::alloc::string::String, - /// ISO 8601 duration as described by - #[prost(string, tag="2")] - pub offset: ::prost::alloc::string::String, -} -/// Defines complete set of information required to trigger an execution on a schedule. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Schedule { - /// Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. - #[prost(string, tag="3")] - pub kickoff_time_input_arg: ::prost::alloc::string::String, - #[prost(oneof="schedule::ScheduleExpression", tags="1, 2, 4")] - pub schedule_expression: ::core::option::Option, -} -/// Nested message and enum types in `Schedule`. -pub mod schedule { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum ScheduleExpression { - /// Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year - /// e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * - #[prost(string, tag="1")] - CronExpression(::prost::alloc::string::String), - #[prost(message, tag="2")] - Rate(super::FixedRate), - #[prost(message, tag="4")] - CronSchedule(super::CronSchedule), - } -} -/// Represents a frequency at which to run a schedule. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum FixedRateUnit { - Minute = 0, - Hour = 1, - Day = 2, -} -impl FixedRateUnit { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - FixedRateUnit::Minute => "MINUTE", - FixedRateUnit::Hour => "HOUR", - FixedRateUnit::Day => "DAY", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "MINUTE" => Some(Self::Minute), - "HOUR" => Some(Self::Hour), - "DAY" => Some(Self::Day), - _ => None, - } - } -} -/// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required -/// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to -/// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanCreateRequest { - /// Uniquely identifies a launch plan entity. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User-provided launch plan details, including reference workflow, inputs and other metadata. - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanCreateResponse { -} -/// A LaunchPlan provides the capability to templatize workflow executions. -/// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. -/// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow -/// definition doesn't necessarily have a default value for said input. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlan { - /// Uniquely identifies a launch plan entity. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User-provided launch plan details, including reference workflow, inputs and other metadata. - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, - /// Values computed by the flyte platform after launch plan registration. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, -} -/// Response object for list launch plan requests. -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanList { - #[prost(message, repeated, tag="1")] - pub launch_plans: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Defines permissions associated with executions created by this launch plan spec. -/// Use either of these roles when they have permissions required by your workflow execution. -/// Deprecated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Auth { - /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="1")] - pub assumable_iam_role: ::prost::alloc::string::String, - /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="2")] - pub kubernetes_service_account: ::prost::alloc::string::String, -} -/// User-provided launch plan definition and configuration values. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanSpec { - /// Reference to the Workflow template that the launch plan references - #[prost(message, optional, tag="1")] - pub workflow_id: ::core::option::Option, - /// Metadata for the Launch Plan - #[prost(message, optional, tag="2")] - pub entity_metadata: ::core::option::Option, - /// Input values to be passed for the execution. - /// These can be overridden when an execution is created with this launch plan. - #[prost(message, optional, tag="3")] - pub default_inputs: ::core::option::Option, - /// Fixed, non-overridable inputs for the Launch Plan. - /// These can not be overridden when an execution is created with this launch plan. - #[prost(message, optional, tag="4")] - pub fixed_inputs: ::core::option::Option, - /// String to indicate the role to use to execute the workflow underneath - #[deprecated] - #[prost(string, tag="5")] - pub role: ::prost::alloc::string::String, - /// Custom labels to be applied to the execution resource. - #[prost(message, optional, tag="6")] - pub labels: ::core::option::Option, - /// Custom annotations to be applied to the execution resource. - #[prost(message, optional, tag="7")] - pub annotations: ::core::option::Option, - /// Indicates the permission associated with workflow executions triggered with this launch plan. - #[deprecated] - #[prost(message, optional, tag="8")] - pub auth: ::core::option::Option, - #[deprecated] - #[prost(message, optional, tag="9")] - pub auth_role: ::core::option::Option, - /// Indicates security context for permissions triggered with this launch plan - #[prost(message, optional, tag="10")] - pub security_context: ::core::option::Option, - /// Indicates the runtime priority of the execution. - #[prost(message, optional, tag="16")] - pub quality_of_service: ::core::option::Option, - /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - #[prost(message, optional, tag="17")] - pub raw_output_data_config: ::core::option::Option, - /// Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. - /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - /// and parallelism/concurrency of MapTasks is independent from this. - #[prost(int32, tag="18")] - pub max_parallelism: i32, - /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. - /// Omitting this field uses the workflow's value as a default. - /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - /// around the bool field. - #[prost(message, optional, tag="19")] - pub interruptible: ::core::option::Option, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="20")] - pub overwrite_cache: bool, - /// Environment variables to be set for the execution. - #[prost(message, optional, tag="21")] - pub envs: ::core::option::Option, -} -/// Values computed by the flyte platform after launch plan registration. -/// These include expected_inputs required to be present in a CreateExecutionRequest -/// to launch the reference workflow as well timestamp values associated with the launch plan. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanClosure { - /// Indicate the Launch plan state. - #[prost(enumeration="LaunchPlanState", tag="1")] - pub state: i32, - /// Indicates the set of inputs expected when creating an execution with the Launch plan - #[prost(message, optional, tag="2")] - pub expected_inputs: ::core::option::Option, - /// Indicates the set of outputs expected to be produced by creating an execution with the Launch plan - #[prost(message, optional, tag="3")] - pub expected_outputs: ::core::option::Option, - /// Time at which the launch plan was created. - #[prost(message, optional, tag="4")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Time at which the launch plan was last updated. - #[prost(message, optional, tag="5")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch -/// the reference workflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanMetadata { - /// Schedule to execute the Launch Plan - #[prost(message, optional, tag="1")] - pub schedule: ::core::option::Option, - /// List of notifications based on Execution status transitions - #[prost(message, repeated, tag="2")] - pub notifications: ::prost::alloc::vec::Vec, - /// Additional metadata for how to launch the launch plan - #[prost(message, optional, tag="3")] - pub launch_conditions: ::core::option::Option<::prost_types::Any>, -} -/// Request to set the referenced launch plan state to the configured value. -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanUpdateRequest { - /// Identifier of launch plan for which to change state. - /// +required. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Desired state to apply to the launch plan. - /// +required. - #[prost(enumeration="LaunchPlanState", tag="2")] - pub state: i32, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanUpdateResponse { -} -/// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ActiveLaunchPlanRequest { - /// +required. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Represents a request structure to list active launch plans within a project/domain and optional org. -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ActiveLaunchPlanListRequest { - /// Name of the project that contains the identifiers. - /// +required. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the identifiers belongs to within the project. - /// +required. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Indicates the number of resources to be returned. - /// +required. - #[prost(uint32, tag="3")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, - /// Optional, org key applied to the resource. - #[prost(string, tag="6")] - pub org: ::prost::alloc::string::String, -} -/// By default any launch plan regardless of state can be used to launch a workflow execution. -/// However, at most one version of a launch plan -/// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be -/// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier -/// group will be observed and trigger executions at a defined cadence. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum LaunchPlanState { - Inactive = 0, - Active = 1, -} -impl LaunchPlanState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LaunchPlanState::Inactive => "INACTIVE", - LaunchPlanState::Active => "ACTIVE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "INACTIVE" => Some(Self::Inactive), - "ACTIVE" => Some(Self::Active), - _ => None, - } - } -} -/// Defines a set of overridable task resource attributes set during task registration. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskResourceSpec { - #[prost(string, tag="1")] - pub cpu: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub gpu: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub memory: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub storage: ::prost::alloc::string::String, - #[prost(string, tag="5")] - pub ephemeral_storage: ::prost::alloc::string::String, -} -/// Defines task resource defaults and limits that will be applied at task registration. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskResourceAttributes { - #[prost(message, optional, tag="1")] - pub defaults: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub limits: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ClusterResourceAttributes { - /// Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). - /// Map keys are the *case-sensitive* names of variables in templatized resource files. - /// Map values should be the custom values which get substituted during resource creation. - #[prost(map="string, string", tag="1")] - pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionQueueAttributes { - /// Tags used for assigning execution queues for tasks defined within this project. - #[prost(string, repeated, tag="1")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionClusterLabel { - /// Label value to determine where the execution will be run - #[prost(string, tag="1")] - pub value: ::prost::alloc::string::String, -} -/// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. -/// In addition to an override implementation a selection of fallbacks can be provided or other modes -/// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PluginOverride { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. - #[prost(string, repeated, tag="2")] - pub plugin_id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Defines the behavior when no plugin from the plugin_id list is not found. - #[prost(enumeration="plugin_override::MissingPluginBehavior", tag="4")] - pub missing_plugin_behavior: i32, -} -/// Nested message and enum types in `PluginOverride`. -pub mod plugin_override { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum MissingPluginBehavior { - /// By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - Fail = 0, - /// Uses the system-configured default implementation. - UseDefault = 1, - } - impl MissingPluginBehavior { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MissingPluginBehavior::Fail => "FAIL", - MissingPluginBehavior::UseDefault => "USE_DEFAULT", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "FAIL" => Some(Self::Fail), - "USE_DEFAULT" => Some(Self::UseDefault), - _ => None, - } - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PluginOverrides { - #[prost(message, repeated, tag="1")] - pub overrides: ::prost::alloc::vec::Vec, -} -/// Adds defaults for customizable workflow-execution specifications and overrides. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionConfig { - /// Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. - #[prost(int32, tag="1")] - pub max_parallelism: i32, - /// Indicates security context permissions for executions triggered with this matchable attribute. - #[prost(message, optional, tag="2")] - pub security_context: ::core::option::Option, - /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - #[prost(message, optional, tag="3")] - pub raw_output_data_config: ::core::option::Option, - /// Custom labels to be applied to a triggered execution resource. - #[prost(message, optional, tag="4")] - pub labels: ::core::option::Option, - /// Custom annotations to be applied to a triggered execution resource. - #[prost(message, optional, tag="5")] - pub annotations: ::core::option::Option, - /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. - /// Omitting this field uses the workflow's value as a default. - /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - /// around the bool field. - #[prost(message, optional, tag="6")] - pub interruptible: ::core::option::Option, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="7")] - pub overwrite_cache: bool, - /// Environment variables to be set for the execution. - #[prost(message, optional, tag="8")] - pub envs: ::core::option::Option, -} -/// Generic container for encapsulating all types of the above attributes messages. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct MatchingAttributes { - #[prost(oneof="matching_attributes::Target", tags="1, 2, 3, 4, 5, 6, 7, 8")] - pub target: ::core::option::Option, -} -/// Nested message and enum types in `MatchingAttributes`. -pub mod matching_attributes { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Target { - #[prost(message, tag="1")] - TaskResourceAttributes(super::TaskResourceAttributes), - #[prost(message, tag="2")] - ClusterResourceAttributes(super::ClusterResourceAttributes), - #[prost(message, tag="3")] - ExecutionQueueAttributes(super::ExecutionQueueAttributes), - #[prost(message, tag="4")] - ExecutionClusterLabel(super::ExecutionClusterLabel), - #[prost(message, tag="5")] - QualityOfService(super::super::core::QualityOfService), - #[prost(message, tag="6")] - PluginOverrides(super::PluginOverrides), - #[prost(message, tag="7")] - WorkflowExecutionConfig(super::WorkflowExecutionConfig), - #[prost(message, tag="8")] - ClusterAssignment(super::ClusterAssignment), - } -} -/// Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org); -/// or domain, project and workflow name (and optional org). -/// These are used to override system level defaults for kubernetes cluster resource management, -/// default execution values, and more all across different levels of specificity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct MatchableAttributesConfiguration { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub project: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub workflow: ::prost::alloc::string::String, - #[prost(string, tag="5")] - pub launch_plan: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="6")] - pub org: ::prost::alloc::string::String, -} -/// Request all matching resource attributes for a resource type. -/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListMatchableAttributesRequest { - /// +required - #[prost(enumeration="MatchableResource", tag="1")] - pub resource_type: i32, - /// Optional, org filter applied to list project requests. - #[prost(string, tag="2")] - pub org: ::prost::alloc::string::String, -} -/// Response for a request for all matching resource attributes for a resource type. -/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListMatchableAttributesResponse { - #[prost(message, repeated, tag="1")] - pub configurations: ::prost::alloc::vec::Vec, -} -/// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes -/// based on matching tags. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum MatchableResource { - /// Applies to customizable task resource requests and limits. - TaskResource = 0, - /// Applies to configuring templated kubernetes cluster resources. - ClusterResource = 1, - /// Configures task and dynamic task execution queue assignment. - ExecutionQueue = 2, - /// Configures the K8s cluster label to be used for execution to be run - ExecutionClusterLabel = 3, - /// Configures default quality of service when undefined in an execution spec. - QualityOfServiceSpecification = 4, - /// Selects configurable plugin implementation behavior for a given task type. - PluginOverride = 5, - /// Adds defaults for customizable workflow-execution specifications and overrides. - WorkflowExecutionConfig = 6, - /// Controls how to select an available cluster on which this execution should run. - ClusterAssignment = 7, -} -impl MatchableResource { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MatchableResource::TaskResource => "TASK_RESOURCE", - MatchableResource::ClusterResource => "CLUSTER_RESOURCE", - MatchableResource::ExecutionQueue => "EXECUTION_QUEUE", - MatchableResource::ExecutionClusterLabel => "EXECUTION_CLUSTER_LABEL", - MatchableResource::QualityOfServiceSpecification => "QUALITY_OF_SERVICE_SPECIFICATION", - MatchableResource::PluginOverride => "PLUGIN_OVERRIDE", - MatchableResource::WorkflowExecutionConfig => "WORKFLOW_EXECUTION_CONFIG", - MatchableResource::ClusterAssignment => "CLUSTER_ASSIGNMENT", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "TASK_RESOURCE" => Some(Self::TaskResource), - "CLUSTER_RESOURCE" => Some(Self::ClusterResource), - "EXECUTION_QUEUE" => Some(Self::ExecutionQueue), - "EXECUTION_CLUSTER_LABEL" => Some(Self::ExecutionClusterLabel), - "QUALITY_OF_SERVICE_SPECIFICATION" => Some(Self::QualityOfServiceSpecification), - "PLUGIN_OVERRIDE" => Some(Self::PluginOverride), - "WORKFLOW_EXECUTION_CONFIG" => Some(Self::WorkflowExecutionConfig), - "CLUSTER_ASSIGNMENT" => Some(Self::ClusterAssignment), - _ => None, - } - } -} -/// A message used to fetch a single node execution entity. -/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionGetRequest { - /// Uniquely identifies an individual node execution. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Represents a request structure to retrieve a list of node execution entities. -/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionListRequest { - /// Indicates the workflow execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub workflow_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - // in a query. - // +optional - - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, - /// Unique identifier of the parent node in the execution - /// +optional - #[prost(string, tag="6")] - pub unique_parent_id: ::prost::alloc::string::String, -} -/// Represents a request structure to retrieve a list of node execution entities launched by a specific task. -/// This can arise when a task yields a subworkflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionForTaskListRequest { - /// Indicates the node execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub task_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// Encapsulates all details for a single node execution entity. -/// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested -/// sub-workflow, or even a separate child-workflow execution. -/// The same task can be called repeatedly in a single workflow but each node is unique. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecution { - /// Uniquely identifies an individual node execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Path to remote data store where input blob is stored. - #[prost(string, tag="2")] - pub input_uri: ::prost::alloc::string::String, - /// Computed results associated with this node execution. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, - /// Metadata for Node Execution - #[prost(message, optional, tag="4")] - pub metadata: ::core::option::Option, -} -/// Represents additional attributes related to a Node Execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionMetaData { - /// Node executions are grouped depending on retries of the parent - /// Retry group is unique within the context of a parent node. - #[prost(string, tag="1")] - pub retry_group: ::prost::alloc::string::String, - /// Boolean flag indicating if the node has child nodes under it - /// This can be true when a node contains a dynamic workflow which then produces - /// child nodes. - #[prost(bool, tag="2")] - pub is_parent_node: bool, - /// Node id of the node in the original workflow - /// This maps to value of WorkflowTemplate.nodes\[X\].id - #[prost(string, tag="3")] - pub spec_node_id: ::prost::alloc::string::String, - /// Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. - /// This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. - #[prost(bool, tag="4")] - pub is_dynamic: bool, - /// Boolean flag indicating if the node is an array node. This is intended to uniquely identify - /// array nodes from other nodes which can have is_parent_node as true. - #[prost(bool, tag="5")] - pub is_array: bool, -} -/// Request structure to retrieve a list of node execution entities. -/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionList { - #[prost(message, repeated, tag="1")] - pub node_executions: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Container for node execution details and results. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionClosure { - /// The last recorded phase for this node execution. - #[prost(enumeration="super::core::node_execution::Phase", tag="3")] - pub phase: i32, - /// Time at which the node execution began running. - #[prost(message, optional, tag="4")] - pub started_at: ::core::option::Option<::prost_types::Timestamp>, - /// The amount of time the node execution spent running. - #[prost(message, optional, tag="5")] - pub duration: ::core::option::Option<::prost_types::Duration>, - /// Time at which the node execution was created. - #[prost(message, optional, tag="6")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Time at which the node execution was last updated. - #[prost(message, optional, tag="7")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, - /// String location uniquely identifying where the deck HTML file is. - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="11")] - pub deck_uri: ::prost::alloc::string::String, - /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required - /// to correctly recover partially completed executions where the subworkflow has already been compiled. - #[prost(string, tag="12")] - pub dynamic_job_spec_uri: ::prost::alloc::string::String, - /// Only a node in a terminal state will have a non-empty output_result. - #[prost(oneof="node_execution_closure::OutputResult", tags="1, 2, 10")] - pub output_result: ::core::option::Option, - /// Store metadata for what the node launched. - /// for ex: if this is a workflow node, we store information for the launched workflow. - #[prost(oneof="node_execution_closure::TargetMetadata", tags="8, 9")] - pub target_metadata: ::core::option::Option, -} -/// Nested message and enum types in `NodeExecutionClosure`. -pub mod node_execution_closure { - /// Only a node in a terminal state will have a non-empty output_result. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// Links to a remotely stored, serialized core.LiteralMap of node execution outputs. - /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - #[prost(string, tag="1")] - OutputUri(::prost::alloc::string::String), - /// Error information for the Node - #[prost(message, tag="2")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this node execution. - /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - #[prost(message, tag="10")] - OutputData(super::super::core::LiteralMap), - } - /// Store metadata for what the node launched. - /// for ex: if this is a workflow node, we store information for the launched workflow. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum TargetMetadata { - #[prost(message, tag="8")] - WorkflowNodeMetadata(super::WorkflowNodeMetadata), - #[prost(message, tag="9")] - TaskNodeMetadata(super::TaskNodeMetadata), - } -} -/// Metadata for a WorkflowNode -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowNodeMetadata { - /// The identifier for a workflow execution launched by a node. - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, -} -/// Metadata for the case in which the node is a TaskNode -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNodeMetadata { - /// Captures the status of caching for this execution. - #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] - pub cache_status: i32, - /// This structure carries the catalog artifact information - #[prost(message, optional, tag="2")] - pub catalog_key: ::core::option::Option, - /// The latest checkpoint location - #[prost(string, tag="4")] - pub checkpoint_uri: ::prost::alloc::string::String, -} -/// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicWorkflowNodeMetadata { - /// id represents the unique identifier of the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the compiled representation of the embedded dynamic workflow. - #[prost(message, optional, tag="2")] - pub compiled_workflow: ::core::option::Option, - /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - /// required to correctly recover partially completed executions where the subworkflow has already been compiled. - #[prost(string, tag="3")] - pub dynamic_job_spec_uri: ::prost::alloc::string::String, -} -/// Request structure to fetch inputs and output for a node execution. -/// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionGetDataRequest { - /// The identifier of the node execution for which to fetch inputs and outputs. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionGetDataResponse { - /// Signed url to fetch a core.LiteralMap of node execution inputs. - /// Deprecated: Please use full_inputs instead. - #[deprecated] - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Signed url to fetch a core.LiteralMap of node execution outputs. - /// Deprecated: Please use full_outputs instead. - #[deprecated] - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, - /// Full_inputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="3")] - pub full_inputs: ::core::option::Option, - /// Full_outputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="4")] - pub full_outputs: ::core::option::Option, - /// Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. - #[prost(message, optional, tag="16")] - pub dynamic_workflow: ::core::option::Option, - #[prost(message, optional, tag="17")] - pub flyte_urls: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDynamicNodeWorkflowRequest { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicNodeWorkflowResponse { - #[prost(message, optional, tag="1")] - pub compiled_workflow: ::core::option::Option, -} -/// Represents the Email object that is sent to a publisher/subscriber -/// to forward the notification. -/// Note: This is internal to Admin and doesn't need to be exposed to other components. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EmailMessage { - /// The list of email addresses to receive an email with the content populated in the other fields. - /// Currently, each email recipient will receive its own email. - /// This populates the TO field. - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// The email of the sender. - /// This populates the FROM field. - #[prost(string, tag="2")] - pub sender_email: ::prost::alloc::string::String, - /// The content of the subject line. - /// This populates the SUBJECT field. - #[prost(string, tag="3")] - pub subject_line: ::prost::alloc::string::String, - /// The content of the email body. - /// This populates the BODY field. - #[prost(string, tag="4")] - pub body: ::prost::alloc::string::String, -} -/// Namespace within a project commonly used to differentiate between different service instances. -/// e.g. "production", "development", etc. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Domain { - /// Globally unique domain name. - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// Display name. - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, -} -/// Top-level namespace used to classify different entities like workflows and executions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Project { - /// Globally unique project name. - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// Display name. - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - #[prost(message, repeated, tag="3")] - pub domains: ::prost::alloc::vec::Vec, - #[prost(string, tag="4")] - pub description: ::prost::alloc::string::String, - /// Leverage Labels from flyteidl.admin.common.proto to - /// tag projects with ownership information. - #[prost(message, optional, tag="5")] - pub labels: ::core::option::Option, - #[prost(enumeration="project::ProjectState", tag="6")] - pub state: i32, - /// Optional, org key applied to the resource. - #[prost(string, tag="7")] - pub org: ::prost::alloc::string::String, -} -/// Nested message and enum types in `Project`. -pub mod project { - /// The state of the project is used to control its visibility in the UI and validity. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ProjectState { - /// By default, all projects are considered active. - Active = 0, - /// Archived projects are no longer visible in the UI and no longer valid. - Archived = 1, - /// System generated projects that aren't explicitly created or managed by a user. - SystemGenerated = 2, - } - impl ProjectState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ProjectState::Active => "ACTIVE", - ProjectState::Archived => "ARCHIVED", - ProjectState::SystemGenerated => "SYSTEM_GENERATED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "ACTIVE" => Some(Self::Active), - "ARCHIVED" => Some(Self::Archived), - "SYSTEM_GENERATED" => Some(Self::SystemGenerated), - _ => None, - } - } - } -} -/// Represents a list of projects. -/// See :ref:`ref_flyteidl.admin.Project` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Projects { - #[prost(message, repeated, tag="1")] - pub projects: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Request to retrieve a list of projects matching specified filters. -/// See :ref:`ref_flyteidl.admin.Project` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectListRequest { - /// Indicates the number of projects to be returned. - /// +required - #[prost(uint32, tag="1")] - pub limit: u32, - /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="3")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="4")] - pub sort_by: ::core::option::Option, - /// Optional, org filter applied to list project requests. - #[prost(string, tag="5")] - pub org: ::prost::alloc::string::String, -} -/// Adds a new user-project within the Flyte deployment. -/// See :ref:`ref_flyteidl.admin.Project` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectRegisterRequest { - /// +required - #[prost(message, optional, tag="1")] - pub project: ::core::option::Option, -} -/// Purposefully empty, may be updated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectRegisterResponse { -} -/// Purposefully empty, may be updated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectUpdateResponse { -} -/// Defines a set of custom matching attributes at the project level. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributes { - /// Unique project id for which this set of attributes will be applied. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub matching_attributes: ::core::option::Option, - /// Optional, org key applied to the project. - #[prost(string, tag="3")] - pub org: ::prost::alloc::string::String, -} -/// Sets custom attributes for a project -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesUpdateRequest { - /// +required - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesUpdateResponse { -} -/// Request to get an individual project level attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesGetRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Which type of matchable attributes to return. - /// +required - #[prost(enumeration="MatchableResource", tag="2")] - pub resource_type: i32, - /// Optional, org key applied to the project. - #[prost(string, tag="3")] - pub org: ::prost::alloc::string::String, -} -/// Response to get an individual project level attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesGetResponse { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Request to delete a set matchable project level attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesDeleteRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Which type of matchable attributes to delete. - /// +required - #[prost(enumeration="MatchableResource", tag="2")] - pub resource_type: i32, - /// Optional, org key applied to the project. - #[prost(string, tag="3")] - pub org: ::prost::alloc::string::String, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesDeleteResponse { -} -/// Defines a set of custom matching attributes which defines resource defaults for a project and domain. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributes { - /// Unique project id for which this set of attributes will be applied. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id for which this set of attributes will be applied. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - #[prost(message, optional, tag="3")] - pub matching_attributes: ::core::option::Option, - /// Optional, org key applied to the attributes. - #[prost(string, tag="4")] - pub org: ::prost::alloc::string::String, -} -/// Sets custom attributes for a project-domain combination. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesUpdateRequest { - /// +required - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesUpdateResponse { -} -/// Request to get an individual project domain attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesGetRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Which type of matchable attributes to return. - /// +required - #[prost(enumeration="MatchableResource", tag="3")] - pub resource_type: i32, - /// Optional, org key applied to the attributes. - #[prost(string, tag="4")] - pub org: ::prost::alloc::string::String, -} -/// Response to get an individual project domain attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesGetResponse { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Request to delete a set matchable project domain attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesDeleteRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Which type of matchable attributes to delete. - /// +required - #[prost(enumeration="MatchableResource", tag="3")] - pub resource_type: i32, - /// Optional, org key applied to the attributes. - #[prost(string, tag="4")] - pub org: ::prost::alloc::string::String, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesDeleteResponse { -} -/// SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalGetOrCreateRequest { - /// A unique identifier for the requested signal. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// A type denoting the required value type for this signal. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, -} -/// SignalListRequest represents a request structure to retrieve a collection of signals. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalListRequest { - /// Indicates the workflow execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub workflow_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// SignalList represents collection of signals along with the token of the last result. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalList { - /// A list of signals matching the input filters. - #[prost(message, repeated, tag="1")] - pub signals: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal -/// effetively satisfies the signal condition within a Flyte workflow. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalSetRequest { - /// A unique identifier for the requested signal. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// The value of this signal, must match the defining signal type. - #[prost(message, optional, tag="2")] - pub value: ::core::option::Option, -} -/// SignalSetResponse represents a response structure if signal setting succeeds. -/// -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalSetResponse { -} -/// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte -/// signal. Signals may exist either without a set value (representing a signal request) or with a -/// populated value (indicating the signal has been given). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Signal { - /// A unique identifier for the requested signal. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// A type denoting the required value type for this signal. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, - /// The value of the signal. This is only available if the signal has been "set" and must match - /// the defined the type. - #[prost(message, optional, tag="3")] - pub value: ::core::option::Option, -} -/// Represents a request structure to create a revision of a task. -/// See :ref:`ref_flyteidl.admin.Task` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateRequest { - /// id represents the unique identifier of the task. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the specification for task. - /// +required - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, -} -/// Represents a response structure if task creation succeeds. -/// -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateResponse { -} -/// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks -/// arranged to process workflow inputs and produce a deterministic set of outputs. -/// Tasks can come in many varieties tuned for specialized behavior. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Task { - /// id represents the unique identifier of the task. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// closure encapsulates all the fields that maps to a compiled version of the task. - #[prost(message, optional, tag="2")] - pub closure: ::core::option::Option, - /// One-liner overview of the entity. - #[prost(string, tag="3")] - pub short_description: ::prost::alloc::string::String, -} -/// Represents a list of tasks returned from the admin. -/// See :ref:`ref_flyteidl.admin.Task` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskList { - /// A list of tasks returned based on the request. - #[prost(message, repeated, tag="1")] - pub tasks: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a structure that encapsulates the user-configured specification of the task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskSpec { - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// Represents the specification for description entity. - #[prost(message, optional, tag="2")] - pub description: ::core::option::Option, -} -/// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data -/// and task metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskClosure { - /// Represents the compiled representation of the task from the specification provided. - #[prost(message, optional, tag="1")] - pub compiled_task: ::core::option::Option, - /// Time at which the task was created. - #[prost(message, optional, tag="2")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// A message used to fetch a single task execution entity. -/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionGetRequest { - /// Unique identifier for the task execution. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. -/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionListRequest { - /// Indicates the node execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub node_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering for returned list. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// Encapsulates all details for a single task execution entity. -/// A task execution represents an instantiated task, including all inputs and additional -/// metadata as well as computed results included state, outputs, and duration-based attributes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecution { - /// Unique identifier for the task execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Path to remote data store where input blob is stored. - #[prost(string, tag="2")] - pub input_uri: ::prost::alloc::string::String, - /// Task execution details and results. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, - /// Whether this task spawned nodes. - #[prost(bool, tag="4")] - pub is_parent: bool, -} -/// Response structure for a query to list of task execution entities. -/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionList { - #[prost(message, repeated, tag="1")] - pub task_executions: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Container for task execution details and results. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionClosure { - /// The last recorded phase for this task execution. - #[prost(enumeration="super::core::task_execution::Phase", tag="3")] - pub phase: i32, - /// Detailed log information output by the task execution. - #[prost(message, repeated, tag="4")] - pub logs: ::prost::alloc::vec::Vec, - /// Time at which the task execution began running. - #[prost(message, optional, tag="5")] - pub started_at: ::core::option::Option<::prost_types::Timestamp>, - /// The amount of time the task execution spent running. - #[prost(message, optional, tag="6")] - pub duration: ::core::option::Option<::prost_types::Duration>, - /// Time at which the task execution was created. - #[prost(message, optional, tag="7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Time at which the task execution was last updated. - #[prost(message, optional, tag="8")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, - /// Custom data specific to the task plugin. - #[prost(message, optional, tag="9")] - pub custom_info: ::core::option::Option<::prost_types::Struct>, - /// If there is an explanation for the most recent phase transition, the reason will capture it. - #[prost(string, tag="10")] - pub reason: ::prost::alloc::string::String, - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="11")] - pub task_type: ::prost::alloc::string::String, - /// Metadata around how a task was executed. - #[prost(message, optional, tag="16")] - pub metadata: ::core::option::Option, - /// The event version is used to indicate versioned changes in how data is maintained using this - /// proto message. For example, event_verison > 0 means that maps tasks logs use the - /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - /// in this message. - #[prost(int32, tag="17")] - pub event_version: i32, - /// A time-series of the phase transition or update explanations. This, when compared to storing a singular reason - /// as previously done, is much more valuable in visualizing and understanding historical evaluations. - #[prost(message, repeated, tag="18")] - pub reasons: ::prost::alloc::vec::Vec, - #[prost(oneof="task_execution_closure::OutputResult", tags="1, 2, 12")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `TaskExecutionClosure`. -pub mod task_execution_closure { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). - /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - #[prost(string, tag="1")] - OutputUri(::prost::alloc::string::String), - /// Error information for the task execution. Populated if the execution failed. - #[prost(message, tag="2")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this task execution. - /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - #[prost(message, tag="12")] - OutputData(super::super::core::LiteralMap), - } -} -/// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Reason { - /// occurred_at is the timestamp indicating the instant that this reason happened. - #[prost(message, optional, tag="1")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// message is the explanation for the most recent phase transition or status update. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, -} -/// Request structure to fetch inputs and output for a task execution. -/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionGetDataRequest { - /// The identifier of the task execution for which to fetch inputs and outputs. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionGetDataResponse { - /// Signed url to fetch a core.LiteralMap of task execution inputs. - /// Deprecated: Please use full_inputs instead. - #[deprecated] - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Signed url to fetch a core.LiteralMap of task execution outputs. - /// Deprecated: Please use full_outputs instead. - #[deprecated] - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, - /// Full_inputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="3")] - pub full_inputs: ::core::option::Option, - /// Full_outputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="4")] - pub full_outputs: ::core::option::Option, - /// flyte tiny url to fetch a core.LiteralMap of task execution's IO - /// Deck will be empty for task - #[prost(message, optional, tag="5")] - pub flyte_urls: ::core::option::Option, -} -/// Response for the GetVersion API -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetVersionResponse { - /// The control plane version information. FlyteAdmin and related components - /// form the control plane of Flyte - #[prost(message, optional, tag="1")] - pub control_plane_version: ::core::option::Option, -} -/// Provides Version information for a component -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Version { - /// Specifies the GIT sha of the build - #[prost(string, tag="1")] - pub build: ::prost::alloc::string::String, - /// Version for the build, should follow a semver - #[prost(string, tag="2")] - pub version: ::prost::alloc::string::String, - /// Build timestamp - #[prost(string, tag="3")] - pub build_time: ::prost::alloc::string::String, -} -/// Empty request for GetVersion -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetVersionRequest { -} -/// Represents a request structure to create a revision of a workflow. -/// See :ref:`ref_flyteidl.admin.Workflow` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowCreateRequest { - /// id represents the unique identifier of the workflow. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the specification for workflow. - /// +required - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowCreateResponse { -} -/// Represents the workflow structure stored in the Admin -/// A workflow is created by ordering tasks and associating outputs to inputs -/// in order to produce a directed-acyclic execution graph. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Workflow { - /// id represents the unique identifier of the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// closure encapsulates all the fields that maps to a compiled version of the workflow. - #[prost(message, optional, tag="2")] - pub closure: ::core::option::Option, - /// One-liner overview of the entity. - #[prost(string, tag="3")] - pub short_description: ::prost::alloc::string::String, -} -/// Represents a list of workflows returned from the admin. -/// See :ref:`ref_flyteidl.admin.Workflow` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowList { - /// A list of workflows returned based on the request. - #[prost(message, repeated, tag="1")] - pub workflows: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a structure that encapsulates the specification of the workflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowSpec { - /// Template of the task that encapsulates all the metadata of the workflow. - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the - /// propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out - /// to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. - #[prost(message, repeated, tag="2")] - pub sub_workflows: ::prost::alloc::vec::Vec, - /// Represents the specification for description entity. - #[prost(message, optional, tag="3")] - pub description: ::core::option::Option, -} -/// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowClosure { - /// Represents the compiled representation of the workflow from the specification provided. - #[prost(message, optional, tag="1")] - pub compiled_workflow: ::core::option::Option, - /// Time at which the workflow was created. - #[prost(message, optional, tag="2")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// The workflow id is already used and the structure is different -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowErrorExistsDifferentStructure { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// The workflow id is already used with an identical sctructure -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowErrorExistsIdenticalStructure { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// When a CreateWorkflowRequest fails due to matching id -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateWorkflowFailureReason { - #[prost(oneof="create_workflow_failure_reason::Reason", tags="1, 2")] - pub reason: ::core::option::Option, -} -/// Nested message and enum types in `CreateWorkflowFailureReason`. -pub mod create_workflow_failure_reason { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reason { - #[prost(message, tag="1")] - ExistsDifferentStructure(super::WorkflowErrorExistsDifferentStructure), - #[prost(message, tag="2")] - ExistsIdenticalStructure(super::WorkflowErrorExistsIdenticalStructure), - } -} -/// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributes { - /// Unique project id for which this set of attributes will be applied. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id for which this set of attributes will be applied. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Workflow name for which this set of attributes will be applied. - #[prost(string, tag="3")] - pub workflow: ::prost::alloc::string::String, - #[prost(message, optional, tag="4")] - pub matching_attributes: ::core::option::Option, - /// Optional, org key applied to the attributes. - #[prost(string, tag="5")] - pub org: ::prost::alloc::string::String, -} -/// Sets custom attributes for a project, domain and workflow combination. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesUpdateRequest { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesUpdateResponse { -} -/// Request to get an individual workflow attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesGetRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Workflow name which this set of attributes references. - /// +required - #[prost(string, tag="3")] - pub workflow: ::prost::alloc::string::String, - /// Which type of matchable attributes to return. - /// +required - #[prost(enumeration="MatchableResource", tag="4")] - pub resource_type: i32, - /// Optional, org key applied to the attributes. - #[prost(string, tag="5")] - pub org: ::prost::alloc::string::String, -} -/// Response to get an individual workflow attribute override. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesGetResponse { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Request to delete a set matchable workflow attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesDeleteRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Workflow name which this set of attributes references. - /// +required - #[prost(string, tag="3")] - pub workflow: ::prost::alloc::string::String, - /// Which type of matchable attributes to delete. - /// +required - #[prost(enumeration="MatchableResource", tag="4")] - pub resource_type: i32, - /// Optional, org key applied to the attributes. - #[prost(string, tag="5")] - pub org: ::prost::alloc::string::String, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesDeleteResponse { -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs deleted file mode 100644 index abd88f4233..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ /dev/null @@ -1,2955 +0,0 @@ -// @generated -/// Defines schema columns and types to strongly type-validate schemas interoperability. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SchemaType { - /// A list of ordered columns this schema comprises of. - #[prost(message, repeated, tag="3")] - pub columns: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `SchemaType`. -pub mod schema_type { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct SchemaColumn { - /// A unique name -within the schema type- for the column - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The column type. This allows a limited set of types currently. - #[prost(enumeration="schema_column::SchemaColumnType", tag="2")] - pub r#type: i32, - } - /// Nested message and enum types in `SchemaColumn`. - pub mod schema_column { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum SchemaColumnType { - Integer = 0, - Float = 1, - String = 2, - Boolean = 3, - Datetime = 4, - Duration = 5, - } - impl SchemaColumnType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SchemaColumnType::Integer => "INTEGER", - SchemaColumnType::Float => "FLOAT", - SchemaColumnType::String => "STRING", - SchemaColumnType::Boolean => "BOOLEAN", - SchemaColumnType::Datetime => "DATETIME", - SchemaColumnType::Duration => "DURATION", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "INTEGER" => Some(Self::Integer), - "FLOAT" => Some(Self::Float), - "STRING" => Some(Self::String), - "BOOLEAN" => Some(Self::Boolean), - "DATETIME" => Some(Self::Datetime), - "DURATION" => Some(Self::Duration), - _ => None, - } - } - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct StructuredDatasetType { - /// A list of ordered columns this schema comprises of. - #[prost(message, repeated, tag="1")] - pub columns: ::prost::alloc::vec::Vec, - /// This is the storage format, the format of the bits at rest - /// parquet, feather, csv, etc. - /// For two types to be compatible, the format will need to be an exact match. - #[prost(string, tag="2")] - pub format: ::prost::alloc::string::String, - /// This is a string representing the type that the bytes in external_schema_bytes are formatted in. - /// This is an optional field that will not be used for type checking. - #[prost(string, tag="3")] - pub external_schema_type: ::prost::alloc::string::String, - /// The serialized bytes of a third-party schema library like Arrow. - /// This is an optional field that will not be used for type checking. - #[prost(bytes="vec", tag="4")] - pub external_schema_bytes: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `StructuredDatasetType`. -pub mod structured_dataset_type { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct DatasetColumn { - /// A unique name within the schema type for the column. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The column type. - #[prost(message, optional, tag="2")] - pub literal_type: ::core::option::Option, - } -} -/// Defines type behavior for blob objects -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BlobType { - /// Format can be a free form string understood by SDK/UI etc like - /// csv, parquet etc - #[prost(string, tag="1")] - pub format: ::prost::alloc::string::String, - #[prost(enumeration="blob_type::BlobDimensionality", tag="2")] - pub dimensionality: i32, -} -/// Nested message and enum types in `BlobType`. -pub mod blob_type { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum BlobDimensionality { - Single = 0, - Multipart = 1, - } - impl BlobDimensionality { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - BlobDimensionality::Single => "SINGLE", - BlobDimensionality::Multipart => "MULTIPART", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "SINGLE" => Some(Self::Single), - "MULTIPART" => Some(Self::Multipart), - _ => None, - } - } - } -} -/// Enables declaring enum types, with predefined string values -/// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish -/// To provide no defaults, make the first value as undefined. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EnumType { - /// Predefined set of enum values. - #[prost(string, repeated, tag="1")] - pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Defines a tagged union type, also known as a variant (and formally as the sum type). -/// -/// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag -/// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by -/// storing the varaint's tag with the literal value and can be examined in runtime. -/// -/// Type S is typically written as -/// S := Apple A | Banana B | Cantaloupe C | ... -/// -/// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: -/// Optional X := X | Null -/// -/// See also: -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UnionType { - /// Predefined set of variants in union. - #[prost(message, repeated, tag="1")] - pub variants: ::prost::alloc::vec::Vec, -} -/// Hints to improve type matching -/// e.g. allows distinguishing output from custom type transformers -/// even if the underlying IDL serialization matches. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TypeStructure { - /// Must exactly match for types to be castable - #[prost(string, tag="1")] - pub tag: ::prost::alloc::string::String, - /// dataclass_type only exists for dataclasses. - /// This is used to resolve the type of the fields of dataclass - /// The key is the field name, and the value is the literal type of the field - /// e.g. For dataclass Foo, with fields a, and a is a string - /// Foo.a will be resolved as a literal type of string from dataclass_type - #[prost(map="string, message", tag="2")] - pub dataclass_type: ::std::collections::HashMap<::prost::alloc::string::String, LiteralType>, -} -/// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TypeAnnotation { - /// A arbitrary JSON payload to describe a type. - #[prost(message, optional, tag="1")] - pub annotations: ::core::option::Option<::prost_types::Struct>, -} -/// Defines a strong type to allow type checking between interfaces. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralType { - /// This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by - /// consumers to identify special behavior or display extended information for the type. - #[prost(message, optional, tag="6")] - pub metadata: ::core::option::Option<::prost_types::Struct>, - /// This field contains arbitrary data that might have special semantic - /// meaning for the client but does not effect internal flyte behavior. - #[prost(message, optional, tag="9")] - pub annotation: ::core::option::Option, - /// Hints to improve type matching. - #[prost(message, optional, tag="11")] - pub structure: ::core::option::Option, - #[prost(oneof="literal_type::Type", tags="1, 2, 3, 4, 5, 7, 8, 10")] - pub r#type: ::core::option::Option, -} -/// Nested message and enum types in `LiteralType`. -pub mod literal_type { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Type { - /// A simple type that can be compared one-to-one with another. - #[prost(enumeration="super::SimpleType", tag="1")] - Simple(i32), - /// A complex type that requires matching of inner fields. - #[prost(message, tag="2")] - Schema(super::SchemaType), - /// Defines the type of the value of a collection. Only homogeneous collections are allowed. - #[prost(message, tag="3")] - CollectionType(::prost::alloc::boxed::Box), - /// Defines the type of the value of a map type. The type of the key is always a string. - #[prost(message, tag="4")] - MapValueType(::prost::alloc::boxed::Box), - /// A blob might have specialized implementation details depending on associated metadata. - #[prost(message, tag="5")] - Blob(super::BlobType), - /// Defines an enum with pre-defined string values. - #[prost(message, tag="7")] - EnumType(super::EnumType), - /// Generalized schema support - #[prost(message, tag="8")] - StructuredDatasetType(super::StructuredDatasetType), - /// Defines an union type with pre-defined LiteralTypes. - #[prost(message, tag="10")] - UnionType(super::UnionType), - } -} -/// A reference to an output produced by a node. The type can be retrieved -and validated- from -/// the underlying interface of the node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OutputReference { - /// Node id must exist at the graph layer. - #[prost(string, tag="1")] - pub node_id: ::prost::alloc::string::String, - /// Variable name must refer to an output variable for the node. - #[prost(string, tag="2")] - pub var: ::prost::alloc::string::String, - #[prost(message, repeated, tag="3")] - pub attr_path: ::prost::alloc::vec::Vec, -} -// PromiseAttribute stores the attribute path of a promise, which will be resolved at runtime. -// The attribute path is a list of strings and integers. -// In the following example, -// ``` -// @workflow -// def wf(): -// o = t1() -// t2(o.a["b"][0]) -// ``` -// the output reference t2 binds to has a list of PromiseAttribute \["a", "b", 0\] - -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PromiseAttribute { - #[prost(oneof="promise_attribute::Value", tags="1, 2")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `PromiseAttribute`. -pub mod promise_attribute { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(string, tag="1")] - StringValue(::prost::alloc::string::String), - #[prost(int32, tag="2")] - IntValue(i32), - } -} -/// Represents an error thrown from a node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Error { - /// The node id that threw the error. - #[prost(string, tag="1")] - pub failed_node_id: ::prost::alloc::string::String, - /// Error message thrown. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, -} -/// Define a set of simple types. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum SimpleType { - None = 0, - Integer = 1, - Float = 2, - String = 3, - Boolean = 4, - Datetime = 5, - Duration = 6, - Binary = 7, - Error = 8, - Struct = 9, -} -impl SimpleType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SimpleType::None => "NONE", - SimpleType::Integer => "INTEGER", - SimpleType::Float => "FLOAT", - SimpleType::String => "STRING", - SimpleType::Boolean => "BOOLEAN", - SimpleType::Datetime => "DATETIME", - SimpleType::Duration => "DURATION", - SimpleType::Binary => "BINARY", - SimpleType::Error => "ERROR", - SimpleType::Struct => "STRUCT", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "NONE" => Some(Self::None), - "INTEGER" => Some(Self::Integer), - "FLOAT" => Some(Self::Float), - "STRING" => Some(Self::String), - "BOOLEAN" => Some(Self::Boolean), - "DATETIME" => Some(Self::Datetime), - "DURATION" => Some(Self::Duration), - "BINARY" => Some(Self::Binary), - "ERROR" => Some(Self::Error), - "STRUCT" => Some(Self::Struct), - _ => None, - } - } -} -/// Primitive Types -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Primitive { - /// Defines one of simple primitive types. These types will get translated into different programming languages as - /// described in - #[prost(oneof="primitive::Value", tags="1, 2, 3, 4, 5, 6")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `Primitive`. -pub mod primitive { - /// Defines one of simple primitive types. These types will get translated into different programming languages as - /// described in - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(int64, tag="1")] - Integer(i64), - #[prost(double, tag="2")] - FloatValue(f64), - #[prost(string, tag="3")] - StringValue(::prost::alloc::string::String), - #[prost(bool, tag="4")] - Boolean(bool), - #[prost(message, tag="5")] - Datetime(::prost_types::Timestamp), - #[prost(message, tag="6")] - Duration(::prost_types::Duration), - } -} -/// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally -/// undefined since it can be assigned to a scalar of any LiteralType. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Void { -} -/// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. -/// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Blob { - #[prost(message, optional, tag="1")] - pub metadata: ::core::option::Option, - #[prost(string, tag="3")] - pub uri: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BlobMetadata { - #[prost(message, optional, tag="1")] - pub r#type: ::core::option::Option, -} -/// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. -/// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Binary { - #[prost(bytes="vec", tag="1")] - pub value: ::prost::alloc::vec::Vec, - #[prost(string, tag="2")] - pub tag: ::prost::alloc::string::String, -} -/// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Schema { - #[prost(string, tag="1")] - pub uri: ::prost::alloc::string::String, - #[prost(message, optional, tag="3")] - pub r#type: ::core::option::Option, -} -/// The runtime representation of a tagged union value. See `UnionType` for more details. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Union { - #[prost(message, optional, boxed, tag="1")] - pub value: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct StructuredDatasetMetadata { - /// Bundle the type information along with the literal. - /// This is here because StructuredDatasets can often be more defined at run time than at compile time. - /// That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, - /// without any column information, but at run time, you might have that column information. - /// flytekit python will copy this type information into the literal, from the type information, if not provided by - /// the various plugins (encoders). - /// Since this field is run time generated, it's not used for any type checking. - #[prost(message, optional, tag="1")] - pub structured_dataset_type: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct StructuredDataset { - /// String location uniquely identifying where the data is. - /// Should start with the storage location (e.g. s3://, gs://, bq://, etc.) - #[prost(string, tag="1")] - pub uri: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Scalar { - #[prost(oneof="scalar::Value", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `Scalar`. -pub mod scalar { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(message, tag="1")] - Primitive(super::Primitive), - #[prost(message, tag="2")] - Blob(super::Blob), - #[prost(message, tag="3")] - Binary(super::Binary), - #[prost(message, tag="4")] - Schema(super::Schema), - #[prost(message, tag="5")] - NoneType(super::Void), - #[prost(message, tag="6")] - Error(super::Error), - #[prost(message, tag="7")] - Generic(::prost_types::Struct), - #[prost(message, tag="8")] - StructuredDataset(super::StructuredDataset), - #[prost(message, tag="9")] - Union(::prost::alloc::boxed::Box), - } -} -/// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Literal { - /// A hash representing this literal. - /// This is used for caching purposes. For more details refer to RFC 1893 - /// () - #[prost(string, tag="4")] - pub hash: ::prost::alloc::string::String, - /// Additional metadata for literals. - #[prost(map="string, string", tag="5")] - pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - #[prost(oneof="literal::Value", tags="1, 2, 3")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `Literal`. -pub mod literal { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - /// A simple value. - #[prost(message, tag="1")] - Scalar(::prost::alloc::boxed::Box), - /// A collection of literals to allow nesting. - #[prost(message, tag="2")] - Collection(super::LiteralCollection), - /// A map of strings to literals. - #[prost(message, tag="3")] - Map(super::LiteralMap), - } -} -/// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralCollection { - #[prost(message, repeated, tag="1")] - pub literals: ::prost::alloc::vec::Vec, -} -/// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralMap { - #[prost(map="string, message", tag="1")] - pub literals: ::std::collections::HashMap<::prost::alloc::string::String, Literal>, -} -/// A collection of BindingData items. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BindingDataCollection { - #[prost(message, repeated, tag="1")] - pub bindings: ::prost::alloc::vec::Vec, -} -/// A map of BindingData items. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BindingDataMap { - #[prost(map="string, message", tag="1")] - pub bindings: ::std::collections::HashMap<::prost::alloc::string::String, BindingData>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UnionInfo { - #[prost(message, optional, tag="1")] - pub target_type: ::core::option::Option, -} -/// Specifies either a simple value or a reference to another output. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BindingData { - #[prost(message, optional, tag="5")] - pub union: ::core::option::Option, - #[prost(oneof="binding_data::Value", tags="1, 2, 3, 4")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `BindingData`. -pub mod binding_data { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - /// A simple scalar value. - #[prost(message, tag="1")] - Scalar(super::Scalar), - /// A collection of binding data. This allows nesting of binding data to any number - /// of levels. - #[prost(message, tag="2")] - Collection(super::BindingDataCollection), - /// References an output promised by another node. - #[prost(message, tag="3")] - Promise(super::OutputReference), - /// A map of bindings. The key is always a string. - #[prost(message, tag="4")] - Map(super::BindingDataMap), - } -} -/// An input/output binding of a variable to either static value or a node output. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Binding { - /// Variable name must match an input/output variable of the node. - #[prost(string, tag="1")] - pub var: ::prost::alloc::string::String, - /// Data to use to bind this variable. - #[prost(message, optional, tag="2")] - pub binding: ::core::option::Option, -} -/// A generic key value pair. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct KeyValuePair { - /// required. - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - /// +optional. - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, -} -/// Retry strategy associated with an executable unit. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RetryStrategy { - /// Number of retries. Retries will be consumed when the job fails with a recoverable error. - /// The number of retries must be less than or equals to 10. - #[prost(uint32, tag="5")] - pub retries: u32, -} -/// Encapsulation of fields that uniquely identifies a Flyte resource. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Identifier { - /// Identifies the specific type of resource that this identifier corresponds to. - #[prost(enumeration="ResourceType", tag="1")] - pub resource_type: i32, - /// Name of the project the resource belongs to. - #[prost(string, tag="2")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the resource belongs to. - /// A domain can be considered as a subset within a specific project. - #[prost(string, tag="3")] - pub domain: ::prost::alloc::string::String, - /// User provided value for the resource. - #[prost(string, tag="4")] - pub name: ::prost::alloc::string::String, - /// Specific version of the resource. - #[prost(string, tag="5")] - pub version: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="6")] - pub org: ::prost::alloc::string::String, -} -/// Encapsulation of fields that uniquely identifies a Flyte workflow execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionIdentifier { - /// Name of the project the resource belongs to. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the resource belongs to. - /// A domain can be considered as a subset within a specific project. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// User or system provided value for the resource. - #[prost(string, tag="4")] - pub name: ::prost::alloc::string::String, - /// Optional, org key applied to the resource. - #[prost(string, tag="5")] - pub org: ::prost::alloc::string::String, -} -/// Encapsulation of fields that identify a Flyte node execution entity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionIdentifier { - #[prost(string, tag="1")] - pub node_id: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub execution_id: ::core::option::Option, -} -/// Encapsulation of fields that identify a Flyte task execution entity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionIdentifier { - #[prost(message, optional, tag="1")] - pub task_id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub node_execution_id: ::core::option::Option, - #[prost(uint32, tag="3")] - pub retry_attempt: u32, -} -/// Encapsulation of fields the uniquely identify a signal. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalIdentifier { - /// Unique identifier for a signal. - #[prost(string, tag="1")] - pub signal_id: ::prost::alloc::string::String, - /// Identifies the Flyte workflow execution this signal belongs to. - #[prost(message, optional, tag="2")] - pub execution_id: ::core::option::Option, -} -/// Indicates a resource type within Flyte. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum ResourceType { - Unspecified = 0, - Task = 1, - Workflow = 2, - LaunchPlan = 3, - /// A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. - /// Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects - /// in a similar manner to other Flyte objects - Dataset = 4, -} -impl ResourceType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ResourceType::Unspecified => "UNSPECIFIED", - ResourceType::Task => "TASK", - ResourceType::Workflow => "WORKFLOW", - ResourceType::LaunchPlan => "LAUNCH_PLAN", - ResourceType::Dataset => "DATASET", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNSPECIFIED" => Some(Self::Unspecified), - "TASK" => Some(Self::Task), - "WORKFLOW" => Some(Self::Workflow), - "LAUNCH_PLAN" => Some(Self::LaunchPlan), - "DATASET" => Some(Self::Dataset), - _ => None, - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactKey { - /// Project and domain and suffix needs to be unique across a given artifact store. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub org: ::prost::alloc::string::String, -} -/// Only valid for triggers -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactBindingData { - #[prost(uint32, tag="1")] - pub index: u32, - /// This is only relevant in the time partition case - #[prost(string, tag="4")] - pub transform: ::prost::alloc::string::String, - /// These two fields are only relevant in the partition value case - #[prost(oneof="artifact_binding_data::PartitionData", tags="2, 3")] - pub partition_data: ::core::option::Option, -} -/// Nested message and enum types in `ArtifactBindingData`. -pub mod artifact_binding_data { - /// These two fields are only relevant in the partition value case - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum PartitionData { - #[prost(string, tag="2")] - PartitionKey(::prost::alloc::string::String), - #[prost(bool, tag="3")] - BindToTimePartition(bool), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct InputBindingData { - #[prost(string, tag="1")] - pub var: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LabelValue { - #[prost(oneof="label_value::Value", tags="1, 2, 3, 4")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `LabelValue`. -pub mod label_value { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - /// The string static value is for use in the Partitions object - #[prost(string, tag="1")] - StaticValue(::prost::alloc::string::String), - /// The time value is for use in the TimePartition case - #[prost(message, tag="2")] - TimeValue(::prost_types::Timestamp), - #[prost(message, tag="3")] - TriggeredBinding(super::ArtifactBindingData), - #[prost(message, tag="4")] - InputBinding(super::InputBindingData), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Partitions { - #[prost(map="string, message", tag="1")] - pub value: ::std::collections::HashMap<::prost::alloc::string::String, LabelValue>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TimePartition { - #[prost(message, optional, tag="1")] - pub value: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactId { - #[prost(message, optional, tag="1")] - pub artifact_key: ::core::option::Option, - #[prost(string, tag="2")] - pub version: ::prost::alloc::string::String, - /// Think of a partition as a tag on an Artifact, except it's a key-value pair. - /// Different partitions naturally have different versions (execution ids). - #[prost(message, optional, tag="3")] - pub partitions: ::core::option::Option, - /// There is no such thing as an empty time partition - if it's not set, then there is no time partition. - #[prost(message, optional, tag="4")] - pub time_partition: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactTag { - #[prost(message, optional, tag="1")] - pub artifact_key: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub value: ::core::option::Option, -} -/// Uniqueness constraints for Artifacts -/// - project, domain, name, version, partitions -/// Option 2 (tags are standalone, point to an individual artifact id): -/// - project, domain, name, alias (points to one partition if partitioned) -/// - project, domain, name, partition key, partition value -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactQuery { - #[prost(oneof="artifact_query::Identifier", tags="1, 2, 3, 4")] - pub identifier: ::core::option::Option, -} -/// Nested message and enum types in `ArtifactQuery`. -pub mod artifact_query { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Identifier { - #[prost(message, tag="1")] - ArtifactId(super::ArtifactId), - #[prost(message, tag="2")] - ArtifactTag(super::ArtifactTag), - #[prost(string, tag="3")] - Uri(::prost::alloc::string::String), - /// This is used in the trigger case, where a user specifies a value for an input that is one of the triggering - /// artifacts, or a partition value derived from a triggering artifact. - #[prost(message, tag="4")] - Binding(super::ArtifactBindingData), - } -} -/// Defines a strongly typed variable. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Variable { - /// Variable literal type. - #[prost(message, optional, tag="1")] - pub r#type: ::core::option::Option, - /// +optional string describing input variable - #[prost(string, tag="2")] - pub description: ::prost::alloc::string::String, - /// +optional This object allows the user to specify how Artifacts are created. - /// name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. - #[prost(message, optional, tag="3")] - pub artifact_partial_id: ::core::option::Option, - #[prost(message, optional, tag="4")] - pub artifact_tag: ::core::option::Option, -} -/// A map of Variables -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct VariableMap { - /// Defines a map of variable names to variables. - #[prost(map="string, message", tag="1")] - pub variables: ::std::collections::HashMap<::prost::alloc::string::String, Variable>, -} -/// Defines strongly typed inputs and outputs. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TypedInterface { - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, -} -/// A parameter is used as input to a launch plan and has -/// the special ability to have a default value or mark itself as required. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Parameter { - /// +required Variable. Defines the type of the variable backing this parameter. - #[prost(message, optional, tag="1")] - pub var: ::core::option::Option, - /// +optional - #[prost(oneof="parameter::Behavior", tags="2, 3, 4, 5")] - pub behavior: ::core::option::Option, -} -/// Nested message and enum types in `Parameter`. -pub mod parameter { - /// +optional - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Behavior { - /// Defines a default value that has to match the variable type defined. - #[prost(message, tag="2")] - Default(super::Literal), - /// +optional, is this value required to be filled. - #[prost(bool, tag="3")] - Required(bool), - /// This is an execution time search basically that should result in exactly one Artifact with a Type that - /// matches the type of the variable. - #[prost(message, tag="4")] - ArtifactQuery(super::ArtifactQuery), - #[prost(message, tag="5")] - ArtifactId(super::ArtifactId), - } -} -/// A map of Parameters. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ParameterMap { - /// Defines a map of parameter names to parameters. - #[prost(map="string, message", tag="1")] - pub parameters: ::std::collections::HashMap<::prost::alloc::string::String, Parameter>, -} -/// Secret encapsulates information about the secret a task needs to proceed. An environment variable -/// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -/// secrets are passed through environment variables. -/// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets -/// are passed through file mounts. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Secret { - /// The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of - /// the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. - /// For AWS Secret Manager, this should be the name of the secret. - /// +required - #[prost(string, tag="1")] - pub group: ::prost::alloc::string::String, - /// The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones - /// that do not support it. - /// +optional - #[prost(string, tag="2")] - pub group_version: ::prost::alloc::string::String, - /// The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation - /// of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should - /// match one of the keys inside the secret. For AWS Secret Manager, it's ignored. - /// +optional - #[prost(string, tag="3")] - pub key: ::prost::alloc::string::String, - /// mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail - /// if the underlying key management system cannot satisfy that requirement. If not provided, the default location - /// will depend on the key management system. - /// +optional - #[prost(enumeration="secret::MountType", tag="4")] - pub mount_requirement: i32, -} -/// Nested message and enum types in `Secret`. -pub mod secret { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum MountType { - /// Default case, indicates the client can tolerate either mounting options. - Any = 0, - /// ENV_VAR indicates the secret needs to be mounted as an environment variable. - EnvVar = 1, - /// FILE indicates the secret needs to be mounted as a file. - File = 2, - } - impl MountType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MountType::Any => "ANY", - MountType::EnvVar => "ENV_VAR", - MountType::File => "FILE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "ANY" => Some(Self::Any), - "ENV_VAR" => Some(Self::EnvVar), - "FILE" => Some(Self::File), - _ => None, - } - } - } -} -/// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2Client { - /// client_id is the public id for the client to use. The system will not perform any pre-auth validation that the - /// secret requested matches the client_id indicated here. - /// +required - #[prost(string, tag="1")] - pub client_id: ::prost::alloc::string::String, - /// client_secret is a reference to the secret used to authenticate the OAuth2 client. - /// +required - #[prost(message, optional, tag="2")] - pub client_secret: ::core::option::Option, -} -/// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the -/// right identity for the execution environment. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Identity { - /// iam_role references the fully qualified name of Identity & Access Management role to impersonate. - #[prost(string, tag="1")] - pub iam_role: ::prost::alloc::string::String, - /// k8s_service_account references a kubernetes service account to impersonate. - #[prost(string, tag="2")] - pub k8s_service_account: ::prost::alloc::string::String, - /// oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when - /// making external calls. - #[prost(message, optional, tag="3")] - pub oauth2_client: ::core::option::Option, - /// execution_identity references the subject who makes the execution - #[prost(string, tag="4")] - pub execution_identity: ::prost::alloc::string::String, -} -/// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. -/// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -/// tokens are passed through environment variables. -/// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens -/// are passed through file mounts. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2TokenRequest { - /// name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for - /// environment variables and as a filename for mounting tokens as files. - /// +required - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. - /// +required - #[prost(enumeration="o_auth2_token_request::Type", tag="2")] - pub r#type: i32, - /// client references the client_id/secret to use to request the OAuth2 token. - /// +required - #[prost(message, optional, tag="3")] - pub client: ::core::option::Option, - /// idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related - /// information. - /// +optional - #[prost(string, tag="4")] - pub idp_discovery_endpoint: ::prost::alloc::string::String, - /// token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is - /// mandatory. - /// +optional - #[prost(string, tag="5")] - pub token_endpoint: ::prost::alloc::string::String, -} -/// Nested message and enum types in `OAuth2TokenRequest`. -pub mod o_auth2_token_request { - /// Type of the token requested. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Type { - /// CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. - ClientCredentials = 0, - } - impl Type { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Type::ClientCredentials => "CLIENT_CREDENTIALS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CLIENT_CREDENTIALS" => Some(Self::ClientCredentials), - _ => None, - } - } - } -} -/// SecurityContext holds security attributes that apply to tasks. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SecurityContext { - /// run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the - /// backend plugin to choose the appropriate identity for the execution engine the task will run on. - #[prost(message, optional, tag="1")] - pub run_as: ::core::option::Option, - /// secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the - /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - /// to the secret) and to pass it to the remote execution engine. - #[prost(message, repeated, tag="2")] - pub secrets: ::prost::alloc::vec::Vec, - /// tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the - /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - /// to the secret) and to pass it to the remote execution engine. - #[prost(message, repeated, tag="3")] - pub tokens: ::prost::alloc::vec::Vec, -} -/// A customizable interface to convey resources requested for a container. This can be interpreted differently for different -/// container engines. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Resources { - /// The desired set of resources requested. ResourceNames must be unique within the list. - #[prost(message, repeated, tag="1")] - pub requests: ::prost::alloc::vec::Vec, - /// Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique - /// within the list. - #[prost(message, repeated, tag="2")] - pub limits: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `Resources`. -pub mod resources { - /// Encapsulates a resource name and value. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct ResourceEntry { - /// Resource name. - #[prost(enumeration="ResourceName", tag="1")] - pub name: i32, - /// Value must be a valid k8s quantity. See - /// - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, - } - /// Known resource names. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ResourceName { - Unknown = 0, - Cpu = 1, - Gpu = 2, - Memory = 3, - Storage = 4, - /// For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. - EphemeralStorage = 5, - } - impl ResourceName { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ResourceName::Unknown => "UNKNOWN", - ResourceName::Cpu => "CPU", - ResourceName::Gpu => "GPU", - ResourceName::Memory => "MEMORY", - ResourceName::Storage => "STORAGE", - ResourceName::EphemeralStorage => "EPHEMERAL_STORAGE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "CPU" => Some(Self::Cpu), - "GPU" => Some(Self::Gpu), - "MEMORY" => Some(Self::Memory), - "STORAGE" => Some(Self::Storage), - "EPHEMERAL_STORAGE" => Some(Self::EphemeralStorage), - _ => None, - } - } - } -} -/// Metadata associated with the GPU accelerator to allocate to a task. Contains -/// information about device type, and for multi-instance GPUs, the partition size to -/// use. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GpuAccelerator { - /// This can be any arbitrary string, and should be informed by the labels or taints - /// associated with the nodes in question. Default cloud provider labels typically - /// use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. - #[prost(string, tag="1")] - pub device: ::prost::alloc::string::String, - #[prost(oneof="gpu_accelerator::PartitionSizeValue", tags="2, 3")] - pub partition_size_value: ::core::option::Option, -} -/// Nested message and enum types in `GPUAccelerator`. -pub mod gpu_accelerator { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum PartitionSizeValue { - #[prost(bool, tag="2")] - Unpartitioned(bool), - /// Like `device`, this can be any arbitrary string, and should be informed by - /// the labels or taints associated with the nodes in question. Default cloud - /// provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. - #[prost(string, tag="3")] - PartitionSize(::prost::alloc::string::String), - } -} -/// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to -/// allocate to a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExtendedResources { - /// GPU accelerator to select for task. Contains information about device type, and - /// for multi-instance GPUs, the partition size to use. - #[prost(message, optional, tag="1")] - pub gpu_accelerator: ::core::option::Option, -} -/// Runtime information. This is loosely defined to allow for extensibility. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RuntimeMetadata { - /// Type of runtime. - #[prost(enumeration="runtime_metadata::RuntimeType", tag="1")] - pub r#type: i32, - /// Version of the runtime. All versions should be backward compatible. However, certain cases call for version - /// checks to ensure tighter validation or setting expectations. - #[prost(string, tag="2")] - pub version: ::prost::alloc::string::String, - /// +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). - #[prost(string, tag="3")] - pub flavor: ::prost::alloc::string::String, -} -/// Nested message and enum types in `RuntimeMetadata`. -pub mod runtime_metadata { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum RuntimeType { - Other = 0, - FlyteSdk = 1, - } - impl RuntimeType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - RuntimeType::Other => "OTHER", - RuntimeType::FlyteSdk => "FLYTE_SDK", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "OTHER" => Some(Self::Other), - "FLYTE_SDK" => Some(Self::FlyteSdk), - _ => None, - } - } - } -} -/// Task Metadata -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskMetadata { - /// Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. - #[prost(bool, tag="1")] - pub discoverable: bool, - /// Runtime information about the task. - #[prost(message, optional, tag="2")] - pub runtime: ::core::option::Option, - /// The overall timeout of a task including user-triggered retries. - #[prost(message, optional, tag="4")] - pub timeout: ::core::option::Option<::prost_types::Duration>, - /// Number of retries per task. - #[prost(message, optional, tag="5")] - pub retries: ::core::option::Option, - /// Indicates a logical version to apply to this task for the purpose of discovery. - #[prost(string, tag="6")] - pub discovery_version: ::prost::alloc::string::String, - /// If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers - /// of the ending of support for a given task. - #[prost(string, tag="7")] - pub deprecated_error_message: ::prost::alloc::string::String, - /// Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work - #[prost(bool, tag="9")] - pub cache_serializable: bool, - /// Indicates whether the task will generate a Deck URI when it finishes executing. - #[prost(bool, tag="10")] - pub generates_deck: bool, - /// Arbitrary tags that allow users and the platform to store small but arbitrary labels - #[prost(map="string, string", tag="11")] - pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this - /// task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied - /// identically as, the default PodTemplate configured in FlytePropeller. - #[prost(string, tag="12")] - pub pod_template_name: ::prost::alloc::string::String, - /// cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. - #[prost(string, repeated, tag="13")] - pub cache_ignore_input_vars: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - // For interruptible we will populate it at the node level but require it be part of TaskMetadata - // for a user to set the value. - // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being - // set by the user or defaulting to false. - // The logic of handling precedence will be done as part of flytepropeller. - - /// Identify whether task is interruptible - #[prost(oneof="task_metadata::InterruptibleValue", tags="8")] - pub interruptible_value: ::core::option::Option, -} -/// Nested message and enum types in `TaskMetadata`. -pub mod task_metadata { - // For interruptible we will populate it at the node level but require it be part of TaskMetadata - // for a user to set the value. - // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being - // set by the user or defaulting to false. - // The logic of handling precedence will be done as part of flytepropeller. - - /// Identify whether task is interruptible - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InterruptibleValue { - #[prost(bool, tag="8")] - Interruptible(bool), - } -} -/// A Task structure that uniquely identifies a task in the system -/// Tasks are registered as a first step in the system. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskTemplate { - /// Auto generated taskId by the system. Task Id uniquely identifies this task globally. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no - /// extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the - /// implementation registered for the TaskCategory. - #[prost(string, tag="2")] - pub r#type: ::prost::alloc::string::String, - /// Extra metadata about the task. - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, - /// A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees - /// compile-time validation of the workflow to avoid costly runtime failures. - #[prost(message, optional, tag="4")] - pub interface: ::core::option::Option, - /// Custom data about the task. This is extensible to allow various plugins in the system. - #[prost(message, optional, tag="5")] - pub custom: ::core::option::Option<::prost_types::Struct>, - /// This can be used to customize task handling at execution time for the same task type. - #[prost(int32, tag="7")] - pub task_type_version: i32, - /// security_context encapsulates security attributes requested to run this task. - #[prost(message, optional, tag="8")] - pub security_context: ::core::option::Option, - /// Encapsulates all non-standard resources, not captured by - /// v1.ResourceRequirements, to allocate to a task. - #[prost(message, optional, tag="9")] - pub extended_resources: ::core::option::Option, - /// Metadata about the custom defined for this task. This is extensible to allow various plugins in the system - /// to use as required. - /// reserve the field numbers 1 through 15 for very frequently occurring message elements - #[prost(map="string, string", tag="16")] - pub config: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - /// handlers. - #[prost(oneof="task_template::Target", tags="6, 17, 18")] - pub target: ::core::option::Option, -} -/// Nested message and enum types in `TaskTemplate`. -pub mod task_template { - /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - /// handlers. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Target { - #[prost(message, tag="6")] - Container(super::Container), - #[prost(message, tag="17")] - K8sPod(super::K8sPod), - #[prost(message, tag="18")] - Sql(super::Sql), - } -} -// ----------------- First class Plugins - -/// Defines port properties for a container. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ContainerPort { - /// Number of port to expose on the pod's IP address. - /// This must be a valid port number, 0 < x < 65536. - #[prost(uint32, tag="1")] - pub container_port: u32, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Container { - /// Container image url. Eg: docker/redis:latest - #[prost(string, tag="1")] - pub image: ::prost::alloc::string::String, - /// Command to be executed, if not provided, the default entrypoint in the container image will be used. - #[prost(string, repeated, tag="2")] - pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// These will default to Flyte given paths. If provided, the system will not append known paths. If the task still - /// needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the - /// system will populate these before executing the container. - #[prost(string, repeated, tag="3")] - pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Container resources requirement as specified by the container engine. - #[prost(message, optional, tag="4")] - pub resources: ::core::option::Option, - /// Environment variables will be set as the container is starting up. - #[prost(message, repeated, tag="5")] - pub env: ::prost::alloc::vec::Vec, - /// Allows extra configs to be available for the container. - /// TODO: elaborate on how configs will become available. - /// Deprecated, please use TaskTemplate.config instead. - #[deprecated] - #[prost(message, repeated, tag="6")] - pub config: ::prost::alloc::vec::Vec, - /// Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but - /// not supported on AWS Batch) - /// Only K8s - #[prost(message, repeated, tag="7")] - pub ports: ::prost::alloc::vec::Vec, - /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. - /// This makes it possible to to run a completely portable container, that uses inputs and outputs - /// only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. - /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - /// to understand the default paths. - /// Only K8s - #[prost(message, optional, tag="9")] - pub data_config: ::core::option::Option, - #[prost(enumeration="container::Architecture", tag="10")] - pub architecture: i32, -} -/// Nested message and enum types in `Container`. -pub mod container { - /// Architecture-type the container image supports. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Architecture { - Unknown = 0, - Amd64 = 1, - Arm64 = 2, - ArmV6 = 3, - ArmV7 = 4, - } - impl Architecture { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Architecture::Unknown => "UNKNOWN", - Architecture::Amd64 => "AMD64", - Architecture::Arm64 => "ARM64", - Architecture::ArmV6 => "ARM_V6", - Architecture::ArmV7 => "ARM_V7", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "AMD64" => Some(Self::Amd64), - "ARM64" => Some(Self::Arm64), - "ARM_V6" => Some(Self::ArmV6), - "ARM_V7" => Some(Self::ArmV7), - _ => None, - } - } - } -} -/// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IoStrategy { - /// Mode to use to manage downloads - #[prost(enumeration="io_strategy::DownloadMode", tag="1")] - pub download_mode: i32, - /// Mode to use to manage uploads - #[prost(enumeration="io_strategy::UploadMode", tag="2")] - pub upload_mode: i32, -} -/// Nested message and enum types in `IOStrategy`. -pub mod io_strategy { - /// Mode to use for downloading - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum DownloadMode { - /// All data will be downloaded before the main container is executed - DownloadEager = 0, - /// Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - DownloadStream = 1, - /// Large objects (offloaded) will not be downloaded - DoNotDownload = 2, - } - impl DownloadMode { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - DownloadMode::DownloadEager => "DOWNLOAD_EAGER", - DownloadMode::DownloadStream => "DOWNLOAD_STREAM", - DownloadMode::DoNotDownload => "DO_NOT_DOWNLOAD", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DOWNLOAD_EAGER" => Some(Self::DownloadEager), - "DOWNLOAD_STREAM" => Some(Self::DownloadStream), - "DO_NOT_DOWNLOAD" => Some(Self::DoNotDownload), - _ => None, - } - } - } - /// Mode to use for uploading - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum UploadMode { - /// All data will be uploaded after the main container exits - UploadOnExit = 0, - /// Data will be uploaded as it appears. Refer to protocol specification for details - UploadEager = 1, - /// Data will not be uploaded, only references will be written - DoNotUpload = 2, - } - impl UploadMode { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - UploadMode::UploadOnExit => "UPLOAD_ON_EXIT", - UploadMode::UploadEager => "UPLOAD_EAGER", - UploadMode::DoNotUpload => "DO_NOT_UPLOAD", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UPLOAD_ON_EXIT" => Some(Self::UploadOnExit), - "UPLOAD_EAGER" => Some(Self::UploadEager), - "DO_NOT_UPLOAD" => Some(Self::DoNotUpload), - _ => None, - } - } - } -} -/// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. -/// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path -/// Any outputs generated by the user container - within output_path are automatically uploaded. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DataLoadingConfig { - /// Flag enables DataLoading Config. If this is not set, data loading will not be used! - #[prost(bool, tag="1")] - pub enabled: bool, - /// File system path (start at root). This folder will contain all the inputs exploded to a separate file. - /// Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like - /// /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations - /// /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format - /// /var/flyte/inputs/y -> Y is a file in Binary format - /// /var/flyte/inputs/z/... -> Note Z itself is a directory - /// More information about the protocol - refer to docs #TODO reference docs here - #[prost(string, tag="2")] - pub input_path: ::prost::alloc::string::String, - /// File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file - #[prost(string, tag="3")] - pub output_path: ::prost::alloc::string::String, - /// In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. - /// This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding - #[prost(enumeration="data_loading_config::LiteralMapFormat", tag="4")] - pub format: i32, - #[prost(message, optional, tag="5")] - pub io_strategy: ::core::option::Option, -} -/// Nested message and enum types in `DataLoadingConfig`. -pub mod data_loading_config { - /// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. - /// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. - /// JSON and YAML do not need any protobuf definitions to read it - /// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum LiteralMapFormat { - /// JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - - Json = 0, - Yaml = 1, - /// Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core - Proto = 2, - } - impl LiteralMapFormat { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LiteralMapFormat::Json => "JSON", - LiteralMapFormat::Yaml => "YAML", - LiteralMapFormat::Proto => "PROTO", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "JSON" => Some(Self::Json), - "YAML" => Some(Self::Yaml), - "PROTO" => Some(Self::Proto), - _ => None, - } - } - } -} -/// Defines a pod spec and additional pod metadata that is created when a task is executed. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct K8sPod { - /// Contains additional metadata for building a kubernetes pod. - #[prost(message, optional, tag="1")] - pub metadata: ::core::option::Option, - /// Defines the primary pod spec created when a task is executed. - /// This should be a JSON-marshalled pod spec, which can be defined in - /// - go, using: - /// - python: using - #[prost(message, optional, tag="2")] - pub pod_spec: ::core::option::Option<::prost_types::Struct>, - /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. - /// This makes it possible to to run a completely portable container, that uses inputs and outputs - /// only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. - /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - /// to understand the default paths. - /// Only K8s - #[prost(message, optional, tag="3")] - pub data_config: ::core::option::Option, -} -/// Metadata for building a kubernetes object when a task is executed. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct K8sObjectMetadata { - /// Optional labels to add to the pod definition. - #[prost(map="string, string", tag="1")] - pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Optional annotations to add to the pod definition. - #[prost(map="string, string", tag="2")] - pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Sql represents a generic sql workload with a statement and dialect. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Sql { - /// The actual query to run, the query can have templated parameters. - /// We use Flyte's Golang templating format for Query templating. - /// Refer to the templating documentation. - /// - /// For example, - /// insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet - /// select * - /// from my_table - /// where ds = '{{ .Inputs.ds }}' - #[prost(string, tag="1")] - pub statement: ::prost::alloc::string::String, - #[prost(enumeration="sql::Dialect", tag="2")] - pub dialect: i32, -} -/// Nested message and enum types in `Sql`. -pub mod sql { - /// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid - /// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. - /// We support the following dialect: ansi, hive. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Dialect { - Undefined = 0, - Ansi = 1, - Hive = 2, - Other = 3, - } - impl Dialect { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Dialect::Undefined => "UNDEFINED", - Dialect::Ansi => "ANSI", - Dialect::Hive => "HIVE", - Dialect::Other => "OTHER", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "ANSI" => Some(Self::Ansi), - "HIVE" => Some(Self::Hive), - "OTHER" => Some(Self::Other), - _ => None, - } - } - } -} -/// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. -/// Each expression results in a boolean result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ComparisonExpression { - #[prost(enumeration="comparison_expression::Operator", tag="1")] - pub operator: i32, - #[prost(message, optional, tag="2")] - pub left_value: ::core::option::Option, - #[prost(message, optional, tag="3")] - pub right_value: ::core::option::Option, -} -/// Nested message and enum types in `ComparisonExpression`. -pub mod comparison_expression { - /// Binary Operator for each expression - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Operator { - Eq = 0, - Neq = 1, - /// Greater Than - Gt = 2, - Gte = 3, - /// Less Than - Lt = 4, - Lte = 5, - } - impl Operator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Operator::Eq => "EQ", - Operator::Neq => "NEQ", - Operator::Gt => "GT", - Operator::Gte => "GTE", - Operator::Lt => "LT", - Operator::Lte => "LTE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EQ" => Some(Self::Eq), - "NEQ" => Some(Self::Neq), - "GT" => Some(Self::Gt), - "GTE" => Some(Self::Gte), - "LT" => Some(Self::Lt), - "LTE" => Some(Self::Lte), - _ => None, - } - } - } -} -/// Defines an operand to a comparison expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Operand { - #[prost(oneof="operand::Val", tags="1, 2, 3")] - pub val: ::core::option::Option, -} -/// Nested message and enum types in `Operand`. -pub mod operand { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Val { - /// Can be a constant - #[prost(message, tag="1")] - Primitive(super::Primitive), - /// Or one of this node's input variables - #[prost(string, tag="2")] - Var(::prost::alloc::string::String), - /// Replace the primitive field - #[prost(message, tag="3")] - Scalar(super::Scalar), - } -} -/// Defines a boolean expression tree. It can be a simple or a conjunction expression. -/// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BooleanExpression { - #[prost(oneof="boolean_expression::Expr", tags="1, 2")] - pub expr: ::core::option::Option, -} -/// Nested message and enum types in `BooleanExpression`. -pub mod boolean_expression { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Expr { - #[prost(message, tag="1")] - Conjunction(::prost::alloc::boxed::Box), - #[prost(message, tag="2")] - Comparison(super::ComparisonExpression), - } -} -/// Defines a conjunction expression of two boolean expressions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ConjunctionExpression { - #[prost(enumeration="conjunction_expression::LogicalOperator", tag="1")] - pub operator: i32, - #[prost(message, optional, boxed, tag="2")] - pub left_expression: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(message, optional, boxed, tag="3")] - pub right_expression: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Nested message and enum types in `ConjunctionExpression`. -pub mod conjunction_expression { - /// Nested conditions. They can be conjoined using AND / OR - /// Order of evaluation is not important as the operators are Commutative - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum LogicalOperator { - /// Conjunction - And = 0, - Or = 1, - } - impl LogicalOperator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LogicalOperator::And => "AND", - LogicalOperator::Or => "OR", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "AND" => Some(Self::And), - "OR" => Some(Self::Or), - _ => None, - } - } - } -} -/// Indicates various phases of Workflow Execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecution { -} -/// Nested message and enum types in `WorkflowExecution`. -pub mod workflow_execution { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Phase { - Undefined = 0, - Queued = 1, - Running = 2, - Succeeding = 3, - Succeeded = 4, - Failing = 5, - Failed = 6, - Aborted = 7, - TimedOut = 8, - Aborting = 9, - } - impl Phase { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Phase::Undefined => "UNDEFINED", - Phase::Queued => "QUEUED", - Phase::Running => "RUNNING", - Phase::Succeeding => "SUCCEEDING", - Phase::Succeeded => "SUCCEEDED", - Phase::Failing => "FAILING", - Phase::Failed => "FAILED", - Phase::Aborted => "ABORTED", - Phase::TimedOut => "TIMED_OUT", - Phase::Aborting => "ABORTING", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "QUEUED" => Some(Self::Queued), - "RUNNING" => Some(Self::Running), - "SUCCEEDING" => Some(Self::Succeeding), - "SUCCEEDED" => Some(Self::Succeeded), - "FAILING" => Some(Self::Failing), - "FAILED" => Some(Self::Failed), - "ABORTED" => Some(Self::Aborted), - "TIMED_OUT" => Some(Self::TimedOut), - "ABORTING" => Some(Self::Aborting), - _ => None, - } - } - } -} -/// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecution { -} -/// Nested message and enum types in `NodeExecution`. -pub mod node_execution { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Phase { - Undefined = 0, - Queued = 1, - Running = 2, - Succeeded = 3, - Failing = 4, - Failed = 5, - Aborted = 6, - Skipped = 7, - TimedOut = 8, - DynamicRunning = 9, - Recovered = 10, - } - impl Phase { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Phase::Undefined => "UNDEFINED", - Phase::Queued => "QUEUED", - Phase::Running => "RUNNING", - Phase::Succeeded => "SUCCEEDED", - Phase::Failing => "FAILING", - Phase::Failed => "FAILED", - Phase::Aborted => "ABORTED", - Phase::Skipped => "SKIPPED", - Phase::TimedOut => "TIMED_OUT", - Phase::DynamicRunning => "DYNAMIC_RUNNING", - Phase::Recovered => "RECOVERED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "QUEUED" => Some(Self::Queued), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - "FAILING" => Some(Self::Failing), - "FAILED" => Some(Self::Failed), - "ABORTED" => Some(Self::Aborted), - "SKIPPED" => Some(Self::Skipped), - "TIMED_OUT" => Some(Self::TimedOut), - "DYNAMIC_RUNNING" => Some(Self::DynamicRunning), - "RECOVERED" => Some(Self::Recovered), - _ => None, - } - } - } -} -/// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, -/// but this is the cumulative list that customers may want to know about for their task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecution { -} -/// Nested message and enum types in `TaskExecution`. -pub mod task_execution { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Phase { - Undefined = 0, - Queued = 1, - Running = 2, - Succeeded = 3, - Aborted = 4, - Failed = 5, - /// To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing - Initializing = 6, - /// To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded - WaitingForResources = 7, - } - impl Phase { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Phase::Undefined => "UNDEFINED", - Phase::Queued => "QUEUED", - Phase::Running => "RUNNING", - Phase::Succeeded => "SUCCEEDED", - Phase::Aborted => "ABORTED", - Phase::Failed => "FAILED", - Phase::Initializing => "INITIALIZING", - Phase::WaitingForResources => "WAITING_FOR_RESOURCES", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "QUEUED" => Some(Self::Queued), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - "ABORTED" => Some(Self::Aborted), - "FAILED" => Some(Self::Failed), - "INITIALIZING" => Some(Self::Initializing), - "WAITING_FOR_RESOURCES" => Some(Self::WaitingForResources), - _ => None, - } - } - } -} -/// Represents the error message from the execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionError { - /// Error code indicates a grouping of a type of error. - /// More Info: - #[prost(string, tag="1")] - pub code: ::prost::alloc::string::String, - /// Detailed description of the error - including stack trace. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, - /// Full error contents accessible via a URI - #[prost(string, tag="3")] - pub error_uri: ::prost::alloc::string::String, - #[prost(enumeration="execution_error::ErrorKind", tag="4")] - pub kind: i32, -} -/// Nested message and enum types in `ExecutionError`. -pub mod execution_error { - /// Error type: System or User - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ErrorKind { - Unknown = 0, - User = 1, - System = 2, - } - impl ErrorKind { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ErrorKind::Unknown => "UNKNOWN", - ErrorKind::User => "USER", - ErrorKind::System => "SYSTEM", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "USER" => Some(Self::User), - "SYSTEM" => Some(Self::System), - _ => None, - } - } - } -} -/// Log information for the task that is specific to a log sink -/// When our log story is flushed out, we may have more metadata here like log link expiry -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskLog { - #[prost(string, tag="1")] - pub uri: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - #[prost(enumeration="task_log::MessageFormat", tag="3")] - pub message_format: i32, - #[prost(message, optional, tag="4")] - pub ttl: ::core::option::Option<::prost_types::Duration>, -} -/// Nested message and enum types in `TaskLog`. -pub mod task_log { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum MessageFormat { - Unknown = 0, - Csv = 1, - Json = 2, - } - impl MessageFormat { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MessageFormat::Unknown => "UNKNOWN", - MessageFormat::Csv => "CSV", - MessageFormat::Json => "JSON", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "CSV" => Some(Self::Csv), - "JSON" => Some(Self::Json), - _ => None, - } - } - } -} -/// Represents customized execution run-time attributes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QualityOfServiceSpec { - /// Indicates how much queueing delay an execution can tolerate. - #[prost(message, optional, tag="1")] - pub queueing_budget: ::core::option::Option<::prost_types::Duration>, -} -/// Indicates the priority of an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QualityOfService { - #[prost(oneof="quality_of_service::Designation", tags="1, 2")] - pub designation: ::core::option::Option, -} -/// Nested message and enum types in `QualityOfService`. -pub mod quality_of_service { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Tier { - /// Default: no quality of service specified. - Undefined = 0, - High = 1, - Medium = 2, - Low = 3, - } - impl Tier { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Tier::Undefined => "UNDEFINED", - Tier::High => "HIGH", - Tier::Medium => "MEDIUM", - Tier::Low => "LOW", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "HIGH" => Some(Self::High), - "MEDIUM" => Some(Self::Medium), - "LOW" => Some(Self::Low), - _ => None, - } - } - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Designation { - #[prost(enumeration="Tier", tag="1")] - Tier(i32), - #[prost(message, tag="2")] - Spec(super::QualityOfServiceSpec), - } -} -/// Defines a condition and the execution unit that should be executed if the condition is satisfied. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IfBlock { - #[prost(message, optional, tag="1")] - pub condition: ::core::option::Option, - #[prost(message, optional, boxed, tag="2")] - pub then_node: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. -/// If no conditions were satisfied, the else_node or the error will execute. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IfElseBlock { - /// +required. First condition to evaluate. - #[prost(message, optional, boxed, tag="1")] - pub case: ::core::option::Option<::prost::alloc::boxed::Box>, - /// +optional. Additional branches to evaluate. - #[prost(message, repeated, tag="2")] - pub other: ::prost::alloc::vec::Vec, - /// +required. - #[prost(oneof="if_else_block::Default", tags="3, 4")] - pub default: ::core::option::Option, -} -/// Nested message and enum types in `IfElseBlock`. -pub mod if_else_block { - /// +required. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Default { - /// The node to execute in case none of the branches were taken. - #[prost(message, tag="3")] - ElseNode(::prost::alloc::boxed::Box), - /// An error to throw in case none of the branches were taken. - #[prost(message, tag="4")] - Error(super::Error), - } -} -/// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at -/// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BranchNode { - /// +required - #[prost(message, optional, boxed, tag="1")] - pub if_else: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Refers to the task that the Node is to execute. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNode { - /// Optional overrides applied at task execution time. - #[prost(message, optional, tag="2")] - pub overrides: ::core::option::Option, - #[prost(oneof="task_node::Reference", tags="1")] - pub reference: ::core::option::Option, -} -/// Nested message and enum types in `TaskNode`. -pub mod task_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reference { - /// A globally unique identifier for the task. - #[prost(message, tag="1")] - ReferenceId(super::Identifier), - } -} -/// Refers to a the workflow the node is to execute. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowNode { - #[prost(oneof="workflow_node::Reference", tags="1, 2")] - pub reference: ::core::option::Option, -} -/// Nested message and enum types in `WorkflowNode`. -pub mod workflow_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reference { - /// A globally unique identifier for the launch plan. - #[prost(message, tag="1")] - LaunchplanRef(super::Identifier), - /// Reference to a subworkflow, that should be defined with the compiler context - #[prost(message, tag="2")] - SubWorkflowRef(super::Identifier), - } -} -/// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean -/// signal with the provided signal_id. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ApproveCondition { - /// A unique identifier for the requested boolean signal. - #[prost(string, tag="1")] - pub signal_id: ::prost::alloc::string::String, -} -/// SignalCondition represents a dependency on an signal. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalCondition { - /// A unique identifier for the requested signal. - #[prost(string, tag="1")] - pub signal_id: ::prost::alloc::string::String, - /// A type denoting the required value type for this signal. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, - /// The variable name for the signal value in this nodes outputs. - #[prost(string, tag="3")] - pub output_variable_name: ::prost::alloc::string::String, -} -/// SleepCondition represents a dependency on waiting for the specified duration. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SleepCondition { - /// The overall duration for this sleep. - #[prost(message, optional, tag="1")] - pub duration: ::core::option::Option<::prost_types::Duration>, -} -/// GateNode refers to the condition that is required for the gate to successfully complete. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GateNode { - #[prost(oneof="gate_node::Condition", tags="1, 2, 3")] - pub condition: ::core::option::Option, -} -/// Nested message and enum types in `GateNode`. -pub mod gate_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Condition { - /// ApproveCondition represents a dependency on an external approval provided by a boolean signal. - #[prost(message, tag="1")] - Approve(super::ApproveCondition), - /// SignalCondition represents a dependency on an signal. - #[prost(message, tag="2")] - Signal(super::SignalCondition), - /// SleepCondition represents a dependency on waiting for the specified duration. - #[prost(message, tag="3")] - Sleep(super::SleepCondition), - } -} -/// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input -/// values. An ArrayNode can be executed with configurable parallelism (separate from the parent -/// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArrayNode { - /// node is the sub-node that will be executed for each element in the array. - #[prost(message, optional, boxed, tag="1")] - pub node: ::core::option::Option<::prost::alloc::boxed::Box>, - /// parallelism defines the minimum number of instances to bring up concurrently at any given - /// point. Note that this is an optimistic restriction and that, due to network partitioning or - /// other failures, the actual number of currently running instances might be more. This has to - /// be a positive number if assigned. Default value is size. - #[prost(uint32, tag="2")] - pub parallelism: u32, - #[prost(oneof="array_node::SuccessCriteria", tags="3, 4")] - pub success_criteria: ::core::option::Option, -} -/// Nested message and enum types in `ArrayNode`. -pub mod array_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum SuccessCriteria { - /// min_successes is an absolute number of the minimum number of successful completions of - /// sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful - /// and outputs will be computed. This has to be a non-negative number if assigned. Default - /// value is size (if specified). - #[prost(uint32, tag="3")] - MinSuccesses(u32), - /// If the array job size is not known beforehand, the min_success_ratio can instead be used - /// to determine when an ArrayNode can be marked successful. - #[prost(float, tag="4")] - MinSuccessRatio(f32), - } -} -/// Defines extra information about the Node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeMetadata { - /// A friendly name for the Node - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The overall timeout of a task. - #[prost(message, optional, tag="4")] - pub timeout: ::core::option::Option<::prost_types::Duration>, - /// Number of retries per task. - #[prost(message, optional, tag="5")] - pub retries: ::core::option::Option, - /// Identify whether node is interruptible - #[prost(oneof="node_metadata::InterruptibleValue", tags="6")] - pub interruptible_value: ::core::option::Option, - /// Identify whether a node should have it's outputs cached. - #[prost(oneof="node_metadata::CacheableValue", tags="7")] - pub cacheable_value: ::core::option::Option, - /// The version of the cache to use. - #[prost(oneof="node_metadata::CacheVersionValue", tags="8")] - pub cache_version_value: ::core::option::Option, - /// Identify whether caching operations involving this node should be serialized. - #[prost(oneof="node_metadata::CacheSerializableValue", tags="9")] - pub cache_serializable_value: ::core::option::Option, -} -/// Nested message and enum types in `NodeMetadata`. -pub mod node_metadata { - /// Identify whether node is interruptible - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InterruptibleValue { - #[prost(bool, tag="6")] - Interruptible(bool), - } - /// Identify whether a node should have it's outputs cached. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum CacheableValue { - #[prost(bool, tag="7")] - Cacheable(bool), - } - /// The version of the cache to use. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum CacheVersionValue { - #[prost(string, tag="8")] - CacheVersion(::prost::alloc::string::String), - } - /// Identify whether caching operations involving this node should be serialized. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum CacheSerializableValue { - #[prost(bool, tag="9")] - CacheSerializable(bool), - } -} -/// Links a variable to an alias. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Alias { - /// Must match one of the output variable names on a node. - #[prost(string, tag="1")] - pub var: ::prost::alloc::string::String, - /// A workflow-level unique alias that downstream nodes can refer to in their input. - #[prost(string, tag="2")] - pub alias: ::prost::alloc::string::String, -} -/// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch -/// node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Node { - /// A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved - /// node ids that cannot be used by other nodes. - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// Extra metadata about the node. - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, - /// Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface - /// must be fulfilled. - #[prost(message, repeated, tag="3")] - pub inputs: ::prost::alloc::vec::Vec, - /// +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its - /// upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs - /// field. - #[prost(string, repeated, tag="4")] - pub upstream_node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes - /// need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this - /// nodes outputs using the alias if one's specified. - #[prost(message, repeated, tag="5")] - pub output_aliases: ::prost::alloc::vec::Vec, - /// Information about the target to execute in this node. - #[prost(oneof="node::Target", tags="6, 7, 8, 9, 10")] - pub target: ::core::option::Option, -} -/// Nested message and enum types in `Node`. -pub mod node { - /// Information about the target to execute in this node. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Target { - /// Information about the Task to execute in this node. - #[prost(message, tag="6")] - TaskNode(super::TaskNode), - /// Information about the Workflow to execute in this mode. - #[prost(message, tag="7")] - WorkflowNode(super::WorkflowNode), - /// Information about the branch node to evaluate in this node. - #[prost(message, tag="8")] - BranchNode(::prost::alloc::boxed::Box), - /// Information about the condition to evaluate in this node. - #[prost(message, tag="9")] - GateNode(super::GateNode), - /// Information about the sub-node executions for each value in the list of this nodes - /// inputs values. - #[prost(message, tag="10")] - ArrayNode(::prost::alloc::boxed::Box), - } -} -/// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not -/// percolate down to child entities (like tasks) launched by the workflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowMetadata { - /// Indicates the runtime priority of workflow executions. - #[prost(message, optional, tag="1")] - pub quality_of_service: ::core::option::Option, - /// Defines how the system should behave when a failure is detected in the workflow execution. - #[prost(enumeration="workflow_metadata::OnFailurePolicy", tag="2")] - pub on_failure: i32, - /// Arbitrary tags that allow users and the platform to store small but arbitrary labels - #[prost(map="string, string", tag="3")] - pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Nested message and enum types in `WorkflowMetadata`. -pub mod workflow_metadata { - /// Failure Handling Strategy - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum OnFailurePolicy { - /// FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically - /// abort all currently running nodes and clean up resources before finally marking the workflow executions as - /// failed. - FailImmediately = 0, - /// FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will - /// not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. - /// Other nodes that will be executed to completion before cleaning up resources and marking the workflow - /// execution as failed. - FailAfterExecutableNodesComplete = 1, - } - impl OnFailurePolicy { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - OnFailurePolicy::FailImmediately => "FAIL_IMMEDIATELY", - OnFailurePolicy::FailAfterExecutableNodesComplete => "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "FAIL_IMMEDIATELY" => Some(Self::FailImmediately), - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" => Some(Self::FailAfterExecutableNodesComplete), - _ => None, - } - } - } -} -/// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to -/// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it -/// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes -/// unless explicitly overridden at the node layer. -/// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be -/// added to both this object and the WorkflowMetadata object above. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowMetadataDefaults { - /// Whether child nodes of the workflow are interruptible. - #[prost(bool, tag="1")] - pub interruptible: bool, -} -/// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, -/// directed acyclic graph. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowTemplate { - /// A globally unique identifier for the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Extra metadata about the workflow. - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, - /// Defines a strongly typed interface for the Workflow. This can include some optional parameters. - #[prost(message, optional, tag="3")] - pub interface: ::core::option::Option, - /// A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. - #[prost(message, repeated, tag="4")] - pub nodes: ::prost::alloc::vec::Vec, - /// A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or - /// specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow - /// to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to - /// bind final outputs. - /// Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can - /// just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling - /// outputs from the output of a task. - #[prost(message, repeated, tag="5")] - pub outputs: ::prost::alloc::vec::Vec, - /// +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. - /// The interface of this node must match the Workflow interface with an additional input named 'error' of type - /// pb.lyft.flyte.core.Error. - #[prost(message, optional, tag="6")] - pub failure_node: ::core::option::Option, - /// workflow defaults - #[prost(message, optional, tag="7")] - pub metadata_defaults: ::core::option::Option, -} -/// Optional task node overrides that will be applied at task execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNodeOverrides { - /// A customizable interface to convey resources requested for a task container. - #[prost(message, optional, tag="1")] - pub resources: ::core::option::Option, - /// Overrides for all non-standard resources, not captured by - /// v1.ResourceRequirements, to allocate to a task. - #[prost(message, optional, tag="2")] - pub extended_resources: ::core::option::Option, -} -/// A structure that uniquely identifies a launch plan in the system. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanTemplate { - /// A globally unique identifier for the launch plan. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// The input and output interface for the launch plan - #[prost(message, optional, tag="2")] - pub interface: ::core::option::Option, - /// A collection of input literals that are fixed for the launch plan - #[prost(message, optional, tag="3")] - pub fixed_inputs: ::core::option::Option, -} -/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation -/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more -/// precise definitions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Span { - /// start_time defines the instance this span began. - #[prost(message, optional, tag="1")] - pub start_time: ::core::option::Option<::prost_types::Timestamp>, - /// end_time defines the instance this span completed. - #[prost(message, optional, tag="2")] - pub end_time: ::core::option::Option<::prost_types::Timestamp>, - /// spans defines a collection of Spans that breakdown this execution. - #[prost(message, repeated, tag="7")] - pub spans: ::prost::alloc::vec::Vec, - #[prost(oneof="span::Id", tags="3, 4, 5, 6")] - pub id: ::core::option::Option, -} -/// Nested message and enum types in `Span`. -pub mod span { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Id { - /// workflow_id is the id of the workflow execution this Span represents. - #[prost(message, tag="3")] - WorkflowId(super::WorkflowExecutionIdentifier), - /// node_id is the id of the node execution this Span represents. - #[prost(message, tag="4")] - NodeId(super::NodeExecutionIdentifier), - /// task_id is the id of the task execution this Span represents. - #[prost(message, tag="5")] - TaskId(super::TaskExecutionIdentifier), - /// operation_id is the id of a unique operation that this Span represents. - #[prost(string, tag="6")] - OperationId(::prost::alloc::string::String), - } -} -/// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionMetricResult { - /// The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. - #[prost(string, tag="1")] - pub metric: ::prost::alloc::string::String, - /// The result data in prometheus range query result format - /// - /// This may include multiple time series, differentiated by their metric labels. - /// Start time is greater of (execution attempt start, 48h ago) - /// End time is lesser of (execution attempt end, now) - #[prost(message, optional, tag="2")] - pub data: ::core::option::Option<::prost_types::Struct>, -} -/// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation -/// step uses this created ConnectionSet -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ConnectionSet { - /// A list of all the node ids that are downstream from a given node id - #[prost(map="string, message", tag="7")] - pub downstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, - /// A list of all the node ids, that are upstream of this node id - #[prost(map="string, message", tag="8")] - pub upstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, -} -/// Nested message and enum types in `ConnectionSet`. -pub mod connection_set { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct IdList { - #[prost(string, repeated, tag="1")] - pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - } -} -/// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledWorkflow { - /// Completely contained Workflow Template - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. - #[prost(message, optional, tag="2")] - pub connections: ::core::option::Option, -} -/// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledLaunchPlan { - /// Completely contained LaunchPlan Template - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, -} -/// Output of the Compilation step. This object represent one Task. We store more metadata at this layer -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledTask { - /// Completely contained TaskTemplate - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, -} -/// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow -/// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that -/// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of -/// compiled subworkflows. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledWorkflowClosure { - /// +required - #[prost(message, optional, tag="1")] - pub primary: ::core::option::Option, - /// Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a - /// unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow - /// as an inlined workflow - /// +optional - #[prost(message, repeated, tag="2")] - pub sub_workflows: ::prost::alloc::vec::Vec, - /// Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id - /// +required (at least 1) - #[prost(message, repeated, tag="3")] - pub tasks: ::prost::alloc::vec::Vec, - /// A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan - /// with a given id, i.e., every launch plan has a unique id. - #[prost(message, repeated, tag="4")] - pub launch_plans: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CatalogArtifactTag { - /// Artifact ID is generated name - #[prost(string, tag="1")] - pub artifact_id: ::prost::alloc::string::String, - /// Flyte computes the tag automatically, as the hash of the values - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, -} -/// Catalog artifact information with specific metadata -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CatalogMetadata { - /// Dataset ID in the catalog - #[prost(message, optional, tag="1")] - pub dataset_id: ::core::option::Option, - /// Artifact tag in the catalog - #[prost(message, optional, tag="2")] - pub artifact_tag: ::core::option::Option, - /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - #[prost(oneof="catalog_metadata::SourceExecution", tags="3")] - pub source_execution: ::core::option::Option, -} -/// Nested message and enum types in `CatalogMetadata`. -pub mod catalog_metadata { - /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum SourceExecution { - /// Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions - #[prost(message, tag="3")] - SourceTaskExecution(super::TaskExecutionIdentifier), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CatalogReservation { -} -/// Nested message and enum types in `CatalogReservation`. -pub mod catalog_reservation { - /// Indicates the status of a catalog reservation operation. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Status { - /// Used to indicate that reservations are disabled - ReservationDisabled = 0, - /// Used to indicate that a reservation was successfully acquired or extended - ReservationAcquired = 1, - /// Used to indicate that an active reservation currently exists - ReservationExists = 2, - /// Used to indicate that the reservation has been successfully released - ReservationReleased = 3, - /// Used to indicate that a reservation operation resulted in failure - ReservationFailure = 4, - } - impl Status { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Status::ReservationDisabled => "RESERVATION_DISABLED", - Status::ReservationAcquired => "RESERVATION_ACQUIRED", - Status::ReservationExists => "RESERVATION_EXISTS", - Status::ReservationReleased => "RESERVATION_RELEASED", - Status::ReservationFailure => "RESERVATION_FAILURE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RESERVATION_DISABLED" => Some(Self::ReservationDisabled), - "RESERVATION_ACQUIRED" => Some(Self::ReservationAcquired), - "RESERVATION_EXISTS" => Some(Self::ReservationExists), - "RESERVATION_RELEASED" => Some(Self::ReservationReleased), - "RESERVATION_FAILURE" => Some(Self::ReservationFailure), - _ => None, - } - } - } -} -/// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum CatalogCacheStatus { - /// Used to indicate that caching was disabled - CacheDisabled = 0, - /// Used to indicate that the cache lookup resulted in no matches - CacheMiss = 1, - /// used to indicate that the associated artifact was a result of a previous execution - CacheHit = 2, - /// used to indicate that the resultant artifact was added to the cache - CachePopulated = 3, - /// Used to indicate that cache lookup failed because of an error - CacheLookupFailure = 4, - /// Used to indicate that cache lookup failed because of an error - CachePutFailure = 5, - /// Used to indicate the cache lookup was skipped - CacheSkipped = 6, - /// Used to indicate that the cache was evicted - CacheEvicted = 7, -} -impl CatalogCacheStatus { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - CatalogCacheStatus::CacheDisabled => "CACHE_DISABLED", - CatalogCacheStatus::CacheMiss => "CACHE_MISS", - CatalogCacheStatus::CacheHit => "CACHE_HIT", - CatalogCacheStatus::CachePopulated => "CACHE_POPULATED", - CatalogCacheStatus::CacheLookupFailure => "CACHE_LOOKUP_FAILURE", - CatalogCacheStatus::CachePutFailure => "CACHE_PUT_FAILURE", - CatalogCacheStatus::CacheSkipped => "CACHE_SKIPPED", - CatalogCacheStatus::CacheEvicted => "CACHE_EVICTED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CACHE_DISABLED" => Some(Self::CacheDisabled), - "CACHE_MISS" => Some(Self::CacheMiss), - "CACHE_HIT" => Some(Self::CacheHit), - "CACHE_POPULATED" => Some(Self::CachePopulated), - "CACHE_LOOKUP_FAILURE" => Some(Self::CacheLookupFailure), - "CACHE_PUT_FAILURE" => Some(Self::CachePutFailure), - "CACHE_SKIPPED" => Some(Self::CacheSkipped), - "CACHE_EVICTED" => Some(Self::CacheEvicted), - _ => None, - } - } -} -/// Describes a set of tasks to execute and how the final outputs are produced. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicJobSpec { - /// A collection of nodes to execute. - #[prost(message, repeated, tag="1")] - pub nodes: ::prost::alloc::vec::Vec, - /// An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this - /// criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number - /// becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < - /// min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not - /// specified, is the count of nodes repeated field. - #[prost(int64, tag="2")] - pub min_successes: i64, - /// Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids - /// in bindings should have the generated id for the subtask. - #[prost(message, repeated, tag="3")] - pub outputs: ::prost::alloc::vec::Vec, - /// \[Optional\] A complete list of task specs referenced in nodes. - #[prost(message, repeated, tag="4")] - pub tasks: ::prost::alloc::vec::Vec, - /// \[Optional\] A complete list of task specs referenced in nodes. - #[prost(message, repeated, tag="5")] - pub subworkflows: ::prost::alloc::vec::Vec, -} -/// Error message to propagate detailed errors from container executions to the execution -/// engine. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ContainerError { - /// A simplified code for errors, so that we can provide a glossary of all possible errors. - #[prost(string, tag="1")] - pub code: ::prost::alloc::string::String, - /// A detailed error message. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, - /// An abstract error kind for this error. Defaults to Non_Recoverable if not specified. - #[prost(enumeration="container_error::Kind", tag="3")] - pub kind: i32, - /// Defines the origin of the error (system, user, unknown). - #[prost(enumeration="execution_error::ErrorKind", tag="4")] - pub origin: i32, -} -/// Nested message and enum types in `ContainerError`. -pub mod container_error { - /// Defines a generic error type that dictates the behavior of the retry strategy. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Kind { - NonRecoverable = 0, - Recoverable = 1, - } - impl Kind { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Kind::NonRecoverable => "NON_RECOVERABLE", - Kind::Recoverable => "RECOVERABLE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "NON_RECOVERABLE" => Some(Self::NonRecoverable), - "RECOVERABLE" => Some(Self::Recoverable), - _ => None, - } - } - } -} -/// Defines the errors.pb file format the container can produce to communicate -/// failure reasons to the execution engine. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ErrorDocument { - /// The error raised during execution. - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, -} -/// Defines an enclosed package of workflow and tasks it references. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowClosure { - /// required. Workflow template. - #[prost(message, optional, tag="1")] - pub workflow: ::core::option::Option, - /// optional. A collection of tasks referenced by the workflow. Only needed if the workflow - /// references tasks. - #[prost(message, repeated, tag="2")] - pub tasks: ::prost::alloc::vec::Vec, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs deleted file mode 100644 index a9f4b224ae..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.event.rs +++ /dev/null @@ -1,461 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionEvent { - /// Workflow execution id - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, - /// the id of the originator (Propeller) of the event - #[prost(string, tag="2")] - pub producer_id: ::prost::alloc::string::String, - #[prost(enumeration="super::core::workflow_execution::Phase", tag="3")] - pub phase: i32, - /// This timestamp represents when the original event occurred, it is generated - /// by the executor of the workflow. - #[prost(message, optional, tag="4")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - #[prost(oneof="workflow_execution_event::OutputResult", tags="5, 6, 7")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `WorkflowExecutionEvent`. -pub mod workflow_execution_event { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// URL to the output of the execution, it encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="5")] - OutputUri(::prost::alloc::string::String), - /// Error information for the execution - #[prost(message, tag="6")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this workflow execution. - #[prost(message, tag="7")] - OutputData(super::super::core::LiteralMap), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionEvent { - /// Unique identifier for this node execution - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// the id of the originator (Propeller) of the event - #[prost(string, tag="2")] - pub producer_id: ::prost::alloc::string::String, - #[prost(enumeration="super::core::node_execution::Phase", tag="3")] - pub phase: i32, - /// This timestamp represents when the original event occurred, it is generated - /// by the executor of the node. - #[prost(message, optional, tag="4")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// \[To be deprecated\] Specifies which task (if any) launched this node. - #[prost(message, optional, tag="9")] - pub parent_task_metadata: ::core::option::Option, - /// Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. - #[prost(message, optional, tag="10")] - pub parent_node_metadata: ::core::option::Option, - /// Retry group to indicate grouping of nodes by retries - #[prost(string, tag="11")] - pub retry_group: ::prost::alloc::string::String, - /// Identifier of the node in the original workflow/graph - /// This maps to value of WorkflowTemplate.nodes\[X\].id - #[prost(string, tag="12")] - pub spec_node_id: ::prost::alloc::string::String, - /// Friendly readable name for the node - #[prost(string, tag="13")] - pub node_name: ::prost::alloc::string::String, - #[prost(int32, tag="16")] - pub event_version: i32, - /// Whether this node launched a subworkflow. - #[prost(bool, tag="17")] - pub is_parent: bool, - /// Whether this node yielded a dynamic workflow. - #[prost(bool, tag="18")] - pub is_dynamic: bool, - /// String location uniquely identifying where the deck HTML file is - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="19")] - pub deck_uri: ::prost::alloc::string::String, - /// This timestamp represents the instant when the event was reported by the executing framework. For example, - /// when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when - /// literal inputs are initially copied. The event however will not be sent until after the copy completes. - /// Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - #[prost(message, optional, tag="21")] - pub reported_at: ::core::option::Option<::prost_types::Timestamp>, - /// Indicates if this node is an ArrayNode. - #[prost(bool, tag="22")] - pub is_array: bool, - #[prost(oneof="node_execution_event::InputValue", tags="5, 20")] - pub input_value: ::core::option::Option, - #[prost(oneof="node_execution_event::OutputResult", tags="6, 7, 15")] - pub output_result: ::core::option::Option, - /// Additional metadata to do with this event's node target based - /// on the node type - #[prost(oneof="node_execution_event::TargetMetadata", tags="8, 14")] - pub target_metadata: ::core::option::Option, -} -/// Nested message and enum types in `NodeExecutionEvent`. -pub mod node_execution_event { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InputValue { - #[prost(string, tag="5")] - InputUri(::prost::alloc::string::String), - /// Raw input data consumed by this node execution. - #[prost(message, tag="20")] - InputData(super::super::core::LiteralMap), - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// URL to the output of the execution, it encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="6")] - OutputUri(::prost::alloc::string::String), - /// Error information for the execution - #[prost(message, tag="7")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this node execution. - #[prost(message, tag="15")] - OutputData(super::super::core::LiteralMap), - } - /// Additional metadata to do with this event's node target based - /// on the node type - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum TargetMetadata { - #[prost(message, tag="8")] - WorkflowNodeMetadata(super::WorkflowNodeMetadata), - #[prost(message, tag="14")] - TaskNodeMetadata(super::TaskNodeMetadata), - } -} -/// For Workflow Nodes we need to send information about the workflow that's launched -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowNodeMetadata { - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNodeMetadata { - /// Captures the status of caching for this execution. - #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] - pub cache_status: i32, - /// This structure carries the catalog artifact information - #[prost(message, optional, tag="2")] - pub catalog_key: ::core::option::Option, - /// Captures the status of cache reservations for this execution. - #[prost(enumeration="super::core::catalog_reservation::Status", tag="3")] - pub reservation_status: i32, - /// The latest checkpoint location - #[prost(string, tag="4")] - pub checkpoint_uri: ::prost::alloc::string::String, - /// In the case this task launched a dynamic workflow we capture its structure here. - #[prost(message, optional, tag="16")] - pub dynamic_workflow: ::core::option::Option, -} -/// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicWorkflowNodeMetadata { - /// id represents the unique identifier of the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the compiled representation of the embedded dynamic workflow. - #[prost(message, optional, tag="2")] - pub compiled_workflow: ::core::option::Option, - /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - /// required to correctly recover partially completed executions where the workflow has already been compiled. - #[prost(string, tag="3")] - pub dynamic_job_spec_uri: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ParentTaskExecutionMetadata { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ParentNodeExecutionMetadata { - /// Unique identifier of the parent node id within the execution - /// This is value of core.NodeExecutionIdentifier.node_id of the parent node - #[prost(string, tag="1")] - pub node_id: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventReason { - /// An explanation for this event - #[prost(string, tag="1")] - pub reason: ::prost::alloc::string::String, - /// The time this reason occurred - #[prost(message, optional, tag="2")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionEvent { - /// ID of the task. In combination with the retryAttempt this will indicate - /// the task execution uniquely for a given parent node execution. - #[prost(message, optional, tag="1")] - pub task_id: ::core::option::Option, - /// A task execution is always kicked off by a node execution, the event consumer - /// will use the parent_id to relate the task to it's parent node execution - #[prost(message, optional, tag="2")] - pub parent_node_execution_id: ::core::option::Option, - /// retry attempt number for this task, ie., 2 for the second attempt - #[prost(uint32, tag="3")] - pub retry_attempt: u32, - /// Phase associated with the event - #[prost(enumeration="super::core::task_execution::Phase", tag="4")] - pub phase: i32, - /// id of the process that sent this event, mainly for trace debugging - #[prost(string, tag="5")] - pub producer_id: ::prost::alloc::string::String, - /// log information for the task execution - #[prost(message, repeated, tag="6")] - pub logs: ::prost::alloc::vec::Vec, - /// This timestamp represents when the original event occurred, it is generated - /// by the executor of the task. - #[prost(message, optional, tag="7")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. - #[prost(message, optional, tag="11")] - pub custom_info: ::core::option::Option<::prost_types::Struct>, - /// Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) - /// that should be recorded regardless of the lack of phase change. - /// The version field should be incremented when metadata changes across the duration of an individual phase. - #[prost(uint32, tag="12")] - pub phase_version: u32, - /// An optional explanation for the phase transition. - /// Deprecated: Use reasons instead. - #[deprecated] - #[prost(string, tag="13")] - pub reason: ::prost::alloc::string::String, - /// An optional list of explanations for the phase transition. - #[prost(message, repeated, tag="21")] - pub reasons: ::prost::alloc::vec::Vec, - /// A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin - /// this type will be identical, but not all task executions necessarily use pre-registered definitions and this - /// type is useful to render the task in the UI, filter task executions, etc. - #[prost(string, tag="14")] - pub task_type: ::prost::alloc::string::String, - /// Metadata around how a task was executed. - #[prost(message, optional, tag="16")] - pub metadata: ::core::option::Option, - /// The event version is used to indicate versioned changes in how data is reported using this - /// proto message. For example, event_verison > 0 means that maps tasks report logs using the - /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - /// in this message. - #[prost(int32, tag="18")] - pub event_version: i32, - /// This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s - /// pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, - /// but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps - /// facilitates a more accurate portrayal of the evaluation time-series. - #[prost(message, optional, tag="20")] - pub reported_at: ::core::option::Option<::prost_types::Timestamp>, - #[prost(oneof="task_execution_event::InputValue", tags="8, 19")] - pub input_value: ::core::option::Option, - #[prost(oneof="task_execution_event::OutputResult", tags="9, 10, 17")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `TaskExecutionEvent`. -pub mod task_execution_event { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InputValue { - /// URI of the input file, it encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="8")] - InputUri(::prost::alloc::string::String), - /// Raw input data consumed by this task execution. - #[prost(message, tag="19")] - InputData(super::super::core::LiteralMap), - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// URI to the output of the execution, it will be in a format that encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="9")] - OutputUri(::prost::alloc::string::String), - /// Error information for the execution - #[prost(message, tag="10")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this task execution. - #[prost(message, tag="17")] - OutputData(super::super::core::LiteralMap), - } -} -/// This message contains metadata about external resources produced or used by a specific task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExternalResourceInfo { - /// Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. - #[prost(string, tag="1")] - pub external_id: ::prost::alloc::string::String, - /// A unique index for the external resource with respect to all external resources for this task. Although the - /// identifier may change between task reporting events or retries, this will remain the same to enable aggregating - /// information from multiple reports. - #[prost(uint32, tag="2")] - pub index: u32, - /// Retry attempt number for this external resource, ie., 2 for the second attempt - #[prost(uint32, tag="3")] - pub retry_attempt: u32, - /// Phase associated with the external resource - #[prost(enumeration="super::core::task_execution::Phase", tag="4")] - pub phase: i32, - /// Captures the status of caching for this external resource execution. - #[prost(enumeration="super::core::CatalogCacheStatus", tag="5")] - pub cache_status: i32, - /// log information for the external resource execution - #[prost(message, repeated, tag="6")] - pub logs: ::prost::alloc::vec::Vec, -} -/// This message holds task execution metadata specific to resource allocation used to manage concurrent -/// executions for a project namespace. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ResourcePoolInfo { - /// Unique resource ID used to identify this execution when allocating a token. - #[prost(string, tag="1")] - pub allocation_token: ::prost::alloc::string::String, - /// Namespace under which this task execution requested an allocation token. - #[prost(string, tag="2")] - pub namespace: ::prost::alloc::string::String, -} -/// Holds metadata around how a task was executed. -/// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, -/// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. -/// Metadata is a container for these attributes across the task execution lifecycle. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionMetadata { - /// Unique, generated name for this task execution used by the backend. - #[prost(string, tag="1")] - pub generated_name: ::prost::alloc::string::String, - /// Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. - #[prost(message, repeated, tag="2")] - pub external_resources: ::prost::alloc::vec::Vec, - /// Includes additional data on concurrent resource management used during execution.. - /// This is a repeated field because a plugin can request multiple resource allocations during execution. - #[prost(message, repeated, tag="3")] - pub resource_pool_info: ::prost::alloc::vec::Vec, - /// The identifier of the plugin used to execute this task. - #[prost(string, tag="4")] - pub plugin_identifier: ::prost::alloc::string::String, - #[prost(enumeration="task_execution_metadata::InstanceClass", tag="16")] - pub instance_class: i32, -} -/// Nested message and enum types in `TaskExecutionMetadata`. -pub mod task_execution_metadata { - /// Includes the broad category of machine used for this specific task execution. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum InstanceClass { - /// The default instance class configured for the flyte application platform. - Default = 0, - /// The instance class configured for interruptible tasks. - Interruptible = 1, - } - impl InstanceClass { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - InstanceClass::Default => "DEFAULT", - InstanceClass::Interruptible => "INTERRUPTIBLE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DEFAULT" => Some(Self::Default), - "INTERRUPTIBLE" => Some(Self::Interruptible), - _ => None, - } - } - } -} -/// This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional -/// information that downstream consumers may find useful. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventWorkflowExecution { - #[prost(message, optional, tag="1")] - pub raw_event: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub output_interface: ::core::option::Option, - /// The following are ExecutionMetadata fields - /// We can't have the ExecutionMetadata object directly because of import cycle - #[prost(message, repeated, tag="3")] - pub artifact_ids: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag="4")] - pub reference_execution: ::core::option::Option, - #[prost(string, tag="5")] - pub principal: ::prost::alloc::string::String, - /// The ID of the LP that generated the execution that generated the Artifact. - /// Here for provenance information. - /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - #[prost(message, optional, tag="6")] - pub launch_plan_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventNodeExecution { - #[prost(message, optional, tag="1")] - pub raw_event: ::core::option::Option, - /// The relevant task execution if applicable - #[prost(message, optional, tag="2")] - pub task_exec_id: ::core::option::Option, - /// The typed interface for the task that produced the event. - #[prost(message, optional, tag="3")] - pub output_interface: ::core::option::Option, - /// The following are ExecutionMetadata fields - /// We can't have the ExecutionMetadata object directly because of import cycle - #[prost(message, repeated, tag="4")] - pub artifact_ids: ::prost::alloc::vec::Vec, - #[prost(string, tag="5")] - pub principal: ::prost::alloc::string::String, - /// The ID of the LP that generated the execution that generated the Artifact. - /// Here for provenance information. - /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - #[prost(message, optional, tag="6")] - pub launch_plan_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventTaskExecution { - #[prost(message, optional, tag="1")] - pub raw_event: ::core::option::Option, -} -/// This event is to be sent by Admin after it creates an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventExecutionStart { - /// The execution created. - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, - /// The launch plan used. - #[prost(message, optional, tag="2")] - pub launch_plan_id: ::core::option::Option, - #[prost(message, optional, tag="3")] - pub workflow_id: ::core::option::Option, - /// Artifact inputs to the workflow execution for which we have the full Artifact ID. These are likely the result of artifact queries that are run. - #[prost(message, repeated, tag="4")] - pub artifact_ids: ::prost::alloc::vec::Vec, - /// Artifact inputs to the workflow execution for which we only have the tracking bit that's installed into the Literal's metadata by the Artifact service. - #[prost(string, repeated, tag="5")] - pub artifact_trackers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(string, tag="6")] - pub principal: ::prost::alloc::string::String, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs deleted file mode 100644 index 96d46653da..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs +++ /dev/null @@ -1,205 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RunPolicy { - /// Defines the policy to kill pods after the job completes. Default to None. - #[prost(enumeration="CleanPodPolicy", tag="1")] - pub clean_pod_policy: i32, - /// TTL to clean up jobs. Default to infinite. - #[prost(int32, tag="2")] - pub ttl_seconds_after_finished: i32, - /// Specifies the duration in seconds relative to the startTime that the job may be active - /// before the system tries to terminate it; value must be positive integer. - #[prost(int32, tag="3")] - pub active_deadline_seconds: i32, - /// Number of retries before marking this job failed. - #[prost(int32, tag="4")] - pub backoff_limit: i32, -} -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum RestartPolicy { - Never = 0, - OnFailure = 1, - Always = 2, -} -impl RestartPolicy { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - RestartPolicy::Never => "RESTART_POLICY_NEVER", - RestartPolicy::OnFailure => "RESTART_POLICY_ON_FAILURE", - RestartPolicy::Always => "RESTART_POLICY_ALWAYS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RESTART_POLICY_NEVER" => Some(Self::Never), - "RESTART_POLICY_ON_FAILURE" => Some(Self::OnFailure), - "RESTART_POLICY_ALWAYS" => Some(Self::Always), - _ => None, - } - } -} -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum CleanPodPolicy { - CleanpodPolicyNone = 0, - CleanpodPolicyRunning = 1, - CleanpodPolicyAll = 2, -} -impl CleanPodPolicy { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - CleanPodPolicy::CleanpodPolicyNone => "CLEANPOD_POLICY_NONE", - CleanPodPolicy::CleanpodPolicyRunning => "CLEANPOD_POLICY_RUNNING", - CleanPodPolicy::CleanpodPolicyAll => "CLEANPOD_POLICY_ALL", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CLEANPOD_POLICY_NONE" => Some(Self::CleanpodPolicyNone), - "CLEANPOD_POLICY_RUNNING" => Some(Self::CleanpodPolicyRunning), - "CLEANPOD_POLICY_ALL" => Some(Self::CleanpodPolicyAll), - _ => None, - } - } -} -/// Proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedMpiTrainingTask { - /// Worker replicas spec - #[prost(message, optional, tag="1")] - pub worker_replicas: ::core::option::Option, - /// Master replicas spec - #[prost(message, optional, tag="2")] - pub launcher_replicas: ::core::option::Option, - /// RunPolicy encapsulates various runtime policies of the distributed training - /// job, for example how to clean up resources and how long the job can stay - /// active. - #[prost(message, optional, tag="3")] - pub run_policy: ::core::option::Option, - /// Number of slots per worker - #[prost(int32, tag="4")] - pub slots: i32, -} -/// Replica specification for distributed MPI training -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedMpiTrainingReplicaSpec { - /// Number of replicas - #[prost(int32, tag="1")] - pub replicas: i32, - /// Image used for the replica group - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources required for the replica group - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, - /// Restart policy determines whether pods will be restarted when they exit - #[prost(enumeration="RestartPolicy", tag="4")] - pub restart_policy: i32, - /// MPI sometimes requires different command set for different replica groups - #[prost(string, repeated, tag="5")] - pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Custom proto for torch elastic config for distributed training using -/// -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ElasticConfig { - #[prost(string, tag="1")] - pub rdzv_backend: ::prost::alloc::string::String, - #[prost(int32, tag="2")] - pub min_replicas: i32, - #[prost(int32, tag="3")] - pub max_replicas: i32, - #[prost(int32, tag="4")] - pub nproc_per_node: i32, - #[prost(int32, tag="5")] - pub max_restarts: i32, -} -/// Proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedPyTorchTrainingTask { - /// Worker replicas spec - #[prost(message, optional, tag="1")] - pub worker_replicas: ::core::option::Option, - /// Master replicas spec, master replicas can only have 1 replica - #[prost(message, optional, tag="2")] - pub master_replicas: ::core::option::Option, - /// RunPolicy encapsulates various runtime policies of the distributed training - /// job, for example how to clean up resources and how long the job can stay - /// active. - #[prost(message, optional, tag="3")] - pub run_policy: ::core::option::Option, - /// config for an elastic pytorch job - #[prost(message, optional, tag="4")] - pub elastic_config: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedPyTorchTrainingReplicaSpec { - /// Number of replicas - #[prost(int32, tag="1")] - pub replicas: i32, - /// Image used for the replica group - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources required for the replica group - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, - /// RestartPolicy determines whether pods will be restarted when they exit - #[prost(enumeration="RestartPolicy", tag="4")] - pub restart_policy: i32, -} -/// Proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedTensorflowTrainingTask { - /// Worker replicas spec - #[prost(message, optional, tag="1")] - pub worker_replicas: ::core::option::Option, - /// Parameter server replicas spec - #[prost(message, optional, tag="2")] - pub ps_replicas: ::core::option::Option, - /// Chief replicas spec - #[prost(message, optional, tag="3")] - pub chief_replicas: ::core::option::Option, - /// RunPolicy encapsulates various runtime policies of the distributed training - /// job, for example how to clean up resources and how long the job can stay - /// active. - #[prost(message, optional, tag="4")] - pub run_policy: ::core::option::Option, - /// Evaluator replicas spec - #[prost(message, optional, tag="5")] - pub evaluator_replicas: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedTensorflowTrainingReplicaSpec { - /// Number of replicas - #[prost(int32, tag="1")] - pub replicas: i32, - /// Image used for the replica group - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources required for the replica group - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, - /// RestartPolicy Determines whether pods will be restarted when they exit - #[prost(enumeration="RestartPolicy", tag="4")] - pub restart_policy: i32, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.rs deleted file mode 100644 index bfed40f1a8..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.plugins.rs +++ /dev/null @@ -1,327 +0,0 @@ -// @generated -/// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component -/// will be executed concurrently. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArrayJob { - /// Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an - /// optimistic restriction and that, due to network partitioning or other failures, the actual number of currently - /// running instances might be more. This has to be a positive number if assigned. Default value is size. - #[prost(int64, tag="1")] - pub parallelism: i64, - /// Defines the number of instances to launch at most. This number should match the size of the input if the job - /// requires processing of all input data. This has to be a positive number. - /// In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. - #[prost(int64, tag="2")] - pub size: i64, - #[prost(oneof="array_job::SuccessCriteria", tags="3, 4")] - pub success_criteria: ::core::option::Option, -} -/// Nested message and enum types in `ArrayJob`. -pub mod array_job { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum SuccessCriteria { - /// An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, - /// the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if - /// assigned. Default value is size (if specified). - #[prost(int64, tag="3")] - MinSuccesses(i64), - /// If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array - /// job can be marked successful. - #[prost(float, tag="4")] - MinSuccessRatio(f32), - } -} -/// Custom Proto for Dask Plugin. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DaskJob { - /// Spec for the scheduler pod. - #[prost(message, optional, tag="1")] - pub scheduler: ::core::option::Option, - /// Spec of the default worker group. - #[prost(message, optional, tag="2")] - pub workers: ::core::option::Option, -} -/// Specification for the scheduler pod. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DaskScheduler { - /// Optional image to use. If unset, will use the default image. - #[prost(string, tag="1")] - pub image: ::prost::alloc::string::String, - /// Resources assigned to the scheduler pod. - #[prost(message, optional, tag="2")] - pub resources: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DaskWorkerGroup { - /// Number of workers in the group. - #[prost(uint32, tag="1")] - pub number_of_workers: u32, - /// Optional image to use for the pods of the worker group. If unset, will use the default image. - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources assigned to the all pods of the worker group. - /// As per - /// it is advised to only set limits. If requests are not explicitly set, the plugin will make - /// sure to set requests==limits. - /// The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, -} -/// MPI operator proposal -/// Custom proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedMpiTrainingTask { - /// number of worker spawned in the cluster for this job - #[prost(int32, tag="1")] - pub num_workers: i32, - /// number of launcher replicas spawned in the cluster for this job - /// The launcher pod invokes mpirun and communicates with worker pods through MPI. - #[prost(int32, tag="2")] - pub num_launcher_replicas: i32, - /// number of slots per worker used in hostfile. - /// The available slots (GPUs) in each pod. - #[prost(int32, tag="3")] - pub slots: i32, -} -/// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field -/// of a Presto task's TaskTemplate -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PrestoQuery { - #[prost(string, tag="1")] - pub routing_group: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub catalog: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub schema: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub statement: ::prost::alloc::string::String, -} -/// Custom proto for torch elastic config for distributed training using -/// -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ElasticConfig { - #[prost(string, tag="1")] - pub rdzv_backend: ::prost::alloc::string::String, - #[prost(int32, tag="2")] - pub min_replicas: i32, - #[prost(int32, tag="3")] - pub max_replicas: i32, - #[prost(int32, tag="4")] - pub nproc_per_node: i32, - #[prost(int32, tag="5")] - pub max_restarts: i32, -} -/// Custom proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedPyTorchTrainingTask { - /// number of worker replicas spawned in the cluster for this job - #[prost(int32, tag="1")] - pub workers: i32, - /// config for an elastic pytorch job - /// - #[prost(message, optional, tag="2")] - pub elastic_config: ::core::option::Option, -} -/// Defines a query to execute on a hive cluster. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct HiveQuery { - #[prost(string, tag="1")] - pub query: ::prost::alloc::string::String, - #[prost(uint32, tag="2")] - pub timeout_sec: u32, - #[prost(uint32, tag="3")] - pub retry_count: u32, -} -/// Defines a collection of hive queries. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct HiveQueryCollection { - #[prost(message, repeated, tag="2")] - pub queries: ::prost::alloc::vec::Vec, -} -/// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field -/// of a hive task's TaskTemplate -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QuboleHiveJob { - #[prost(string, tag="1")] - pub cluster_label: ::prost::alloc::string::String, - #[deprecated] - #[prost(message, optional, tag="2")] - pub query_collection: ::core::option::Option, - #[prost(string, repeated, tag="3")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(message, optional, tag="4")] - pub query: ::core::option::Option, -} -/// RayJobSpec defines the desired state of RayJob -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RayJob { - /// RayClusterSpec is the cluster template to run the job - #[prost(message, optional, tag="1")] - pub ray_cluster: ::core::option::Option, - /// runtime_env is base64 encoded. - /// Ray runtime environments: - #[prost(string, tag="2")] - pub runtime_env: ::prost::alloc::string::String, - /// shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. - #[prost(bool, tag="3")] - pub shutdown_after_job_finishes: bool, - /// ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. - #[prost(int32, tag="4")] - pub ttl_seconds_after_finished: i32, -} -/// Define Ray cluster defines the desired state of RayCluster -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RayCluster { - /// HeadGroupSpecs are the spec for the head pod - #[prost(message, optional, tag="1")] - pub head_group_spec: ::core::option::Option, - /// WorkerGroupSpecs are the specs for the worker pods - #[prost(message, repeated, tag="2")] - pub worker_group_spec: ::prost::alloc::vec::Vec, - /// Whether to enable autoscaling. - #[prost(bool, tag="3")] - pub enable_autoscaling: bool, -} -/// HeadGroupSpec are the spec for the head pod -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct HeadGroupSpec { - /// Optional. RayStartParams are the params of the start command: address, object-store-memory. - /// Refer to - #[prost(map="string, string", tag="1")] - pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// WorkerGroupSpec are the specs for the worker pods -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkerGroupSpec { - /// Required. RayCluster can have multiple worker groups, and it distinguishes them by name - #[prost(string, tag="1")] - pub group_name: ::prost::alloc::string::String, - /// Required. Desired replicas of the worker group. Defaults to 1. - #[prost(int32, tag="2")] - pub replicas: i32, - /// Optional. Min replicas of the worker group. MinReplicas defaults to 1. - #[prost(int32, tag="3")] - pub min_replicas: i32, - /// Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 - #[prost(int32, tag="4")] - pub max_replicas: i32, - /// Optional. RayStartParams are the params of the start command: address, object-store-memory. - /// Refer to - #[prost(map="string, string", tag="5")] - pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SparkApplication { -} -/// Nested message and enum types in `SparkApplication`. -pub mod spark_application { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Type { - Python = 0, - Java = 1, - Scala = 2, - R = 3, - } - impl Type { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Type::Python => "PYTHON", - Type::Java => "JAVA", - Type::Scala => "SCALA", - Type::R => "R", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "PYTHON" => Some(Self::Python), - "JAVA" => Some(Self::Java), - "SCALA" => Some(Self::Scala), - "R" => Some(Self::R), - _ => None, - } - } - } -} -/// Custom Proto for Spark Plugin. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SparkJob { - #[prost(enumeration="spark_application::Type", tag="1")] - pub application_type: i32, - #[prost(string, tag="2")] - pub main_application_file: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub main_class: ::prost::alloc::string::String, - #[prost(map="string, string", tag="4")] - pub spark_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - #[prost(map="string, string", tag="5")] - pub hadoop_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Executor path for Python jobs. - #[prost(string, tag="6")] - pub executor_path: ::prost::alloc::string::String, - /// Databricks job configuration. - /// Config structure can be found here. - #[prost(message, optional, tag="7")] - pub databricks_conf: ::core::option::Option<::prost_types::Struct>, - /// Databricks access token. - /// This token can be set in either flytepropeller or flytekit. - #[prost(string, tag="8")] - pub databricks_token: ::prost::alloc::string::String, - /// Domain name of your deployment. Use the form .cloud.databricks.com. - /// This instance name can be set in either flytepropeller or flytekit. - #[prost(string, tag="9")] - pub databricks_instance: ::prost::alloc::string::String, -} -/// Custom proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedTensorflowTrainingTask { - /// number of worker replicas spawned in the cluster for this job - #[prost(int32, tag="1")] - pub workers: i32, - /// PS -> Parameter server - /// number of ps replicas spawned in the cluster for this job - #[prost(int32, tag="2")] - pub ps_replicas: i32, - /// number of chief replicas spawned in the cluster for this job - #[prost(int32, tag="3")] - pub chief_replicas: i32, - /// number of evaluator replicas spawned in the cluster for this job - #[prost(int32, tag="4")] - pub evaluator_replicas: i32, -} -/// Represents an Execution that was launched and could be waited on. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Waitable { - #[prost(message, optional, tag="1")] - pub wf_exec_id: ::core::option::Option, - #[prost(enumeration="super::core::workflow_execution::Phase", tag="2")] - pub phase: i32, - #[prost(string, tag="3")] - pub workflow_id: ::prost::alloc::string::String, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.service.rs b/flyteidl/gen/pb_rust/flyteidl.service.rs deleted file mode 100644 index c427170333..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.service.rs +++ /dev/null @@ -1,400 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2MetadataRequest { -} -/// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata -/// as defined in -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2MetadataResponse { - /// Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external - /// issuer. - #[prost(string, tag="1")] - pub issuer: ::prost::alloc::string::String, - /// URL of the authorization server's authorization endpoint \[RFC6749\]. This is REQUIRED unless no grant types are - /// supported that use the authorization endpoint. - #[prost(string, tag="2")] - pub authorization_endpoint: ::prost::alloc::string::String, - /// URL of the authorization server's token endpoint \[RFC6749\]. - #[prost(string, tag="3")] - pub token_endpoint: ::prost::alloc::string::String, - /// Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. - #[prost(string, repeated, tag="4")] - pub response_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// JSON array containing a list of the OAuth 2.0 \[RFC6749\] scope values that this authorization server supports. - #[prost(string, repeated, tag="5")] - pub scopes_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// JSON array containing a list of client authentication methods supported by this token endpoint. - #[prost(string, repeated, tag="6")] - pub token_endpoint_auth_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// URL of the authorization server's JWK Set \[JWK\] document. The referenced document contains the signing key(s) the - /// client uses to validate signatures from the authorization server. - #[prost(string, tag="7")] - pub jwks_uri: ::prost::alloc::string::String, - /// JSON array containing a list of Proof Key for Code Exchange (PKCE) \[RFC7636\] code challenge methods supported by - /// this authorization server. - #[prost(string, repeated, tag="8")] - pub code_challenge_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. - #[prost(string, repeated, tag="9")] - pub grant_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of \[RFC8628\] - #[prost(string, tag="10")] - pub device_authorization_endpoint: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PublicClientAuthConfigRequest { -} -/// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PublicClientAuthConfigResponse { - /// client_id to use when initiating OAuth2 authorization requests. - #[prost(string, tag="1")] - pub client_id: ::prost::alloc::string::String, - /// redirect uri to use when initiating OAuth2 authorization requests. - #[prost(string, tag="2")] - pub redirect_uri: ::prost::alloc::string::String, - /// scopes to request when initiating OAuth2 authorization requests. - #[prost(string, repeated, tag="3")] - pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the - /// default http `Authorization` header. - #[prost(string, tag="4")] - pub authorization_metadata_key: ::prost::alloc::string::String, - /// ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used - /// to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between - /// SSL or no SSL connections. - #[prost(string, tag="5")] - pub service_http_endpoint: ::prost::alloc::string::String, - /// audience to use when initiating OAuth2 authorization requests. - #[prost(string, tag="6")] - pub audience: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateUploadLocationResponse { - /// SignedUrl specifies the url to use to upload content to (e.g. ) - #[prost(string, tag="1")] - pub signed_url: ::prost::alloc::string::String, - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="2")] - pub native_url: ::prost::alloc::string::String, - /// ExpiresAt defines when will the signed URL expires. - #[prost(message, optional, tag="3")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// CreateUploadLocationRequest specified request for the CreateUploadLocation API. -/// The implementation in data proxy service will create the s3 location with some server side configured prefixes, -/// and then: -/// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR -/// - project/domain/filename_root (if present)/filename (if present). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateUploadLocationRequest { - /// Project to create the upload location for - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Domain to create the upload location for. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. - /// +optional. By default, the service will generate a consistent name based on the provided parameters. - #[prost(string, tag="3")] - pub filename: ::prost::alloc::string::String, - /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - /// exceeds the platform allowed max. - /// +optional. The default value comes from a global config. - #[prost(message, optional, tag="4")] - pub expires_in: ::core::option::Option<::prost_types::Duration>, - /// ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the - /// generated path. - /// +required - #[prost(bytes="vec", tag="5")] - pub content_md5: ::prost::alloc::vec::Vec, - /// If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included - /// this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix - /// in data proxy config. This option is useful when uploading multiple files. - /// +optional - #[prost(string, tag="6")] - pub filename_root: ::prost::alloc::string::String, -} -/// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLocationRequest { - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="1")] - pub native_url: ::prost::alloc::string::String, - /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - /// exceeds the platform allowed max. - /// +optional. The default value comes from a global config. - #[prost(message, optional, tag="2")] - pub expires_in: ::core::option::Option<::prost_types::Duration>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLocationResponse { - /// SignedUrl specifies the url to use to download content from (e.g. ) - #[prost(string, tag="1")] - pub signed_url: ::prost::alloc::string::String, - /// ExpiresAt defines when will the signed URL expires. - #[prost(message, optional, tag="2")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLinkRequest { - /// ArtifactType of the artifact requested. - #[prost(enumeration="ArtifactType", tag="1")] - pub artifact_type: i32, - /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - /// exceeds the platform allowed max. - /// +optional. The default value comes from a global config. - #[prost(message, optional, tag="2")] - pub expires_in: ::core::option::Option<::prost_types::Duration>, - #[prost(oneof="create_download_link_request::Source", tags="3")] - pub source: ::core::option::Option, -} -/// Nested message and enum types in `CreateDownloadLinkRequest`. -pub mod create_download_link_request { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Source { - /// NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the - /// most recent attempt of the task. - #[prost(message, tag="3")] - NodeExecutionId(super::super::core::NodeExecutionIdentifier), - } -} -/// CreateDownloadLinkResponse defines the response for the generated links -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLinkResponse { - /// SignedUrl specifies the url to use to download content from (e.g. ) - #[deprecated] - #[prost(string, repeated, tag="1")] - pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// ExpiresAt defines when will the signed URL expire. - #[deprecated] - #[prost(message, optional, tag="2")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, - /// New wrapper object containing the signed urls and expiration time - #[prost(message, optional, tag="3")] - pub pre_signed_urls: ::core::option::Option, -} -/// Wrapper object since the message is shared across this and the GetDataResponse -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PreSignedUrLs { - /// SignedUrl specifies the url to use to download content from (e.g. ) - #[prost(string, repeated, tag="1")] - pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// ExpiresAt defines when will the signed URL expire. - #[prost(message, optional, tag="2")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// General request artifact to retrieve data from a Flyte artifact url. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDataRequest { - /// A unique identifier in the form of flyte:// that uniquely, for a given Flyte - /// backend, identifies a Flyte artifact (\[i\]nput, \[o\]output, flyte \[d\]eck, etc.). - /// e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) - /// flyte://v1/proj/development/execid/n2/i (for node execution input) - /// flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) - #[prost(string, tag="1")] - pub flyte_url: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDataResponse { - #[prost(oneof="get_data_response::Data", tags="1, 2, 3")] - pub data: ::core::option::Option, -} -/// Nested message and enum types in `GetDataResponse`. -pub mod get_data_response { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Data { - /// literal map data will be returned - #[prost(message, tag="1")] - LiteralMap(super::super::core::LiteralMap), - /// Flyte deck html will be returned as a signed url users can download - #[prost(message, tag="2")] - PreSignedUrls(super::PreSignedUrLs), - /// Single literal will be returned. This is returned when the user/url requests a specific output or input - /// by name. See the o3 example above. - #[prost(message, tag="3")] - Literal(super::super::core::Literal), - } -} -/// ArtifactType -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum ArtifactType { - /// ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. - Undefined = 0, - /// ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan - /// finishes executing. - Deck = 1, -} -impl ArtifactType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ArtifactType::Undefined => "ARTIFACT_TYPE_UNDEFINED", - ArtifactType::Deck => "ARTIFACT_TYPE_DECK", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "ARTIFACT_TYPE_UNDEFINED" => Some(Self::Undefined), - "ARTIFACT_TYPE_DECK" => Some(Self::Deck), - _ => None, - } - } -} -/// Represents a request structure to create task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateRequest { - /// The inputs required to start the execution. All required inputs must be - /// included in this map. If not required and not provided, defaults apply. - /// +optional - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="2")] - pub template: ::core::option::Option, - /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - #[prost(string, tag="3")] - pub output_prefix: ::prost::alloc::string::String, -} -/// Represents a create response structure. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateResponse { - #[prost(string, tag="1")] - pub job_id: ::prost::alloc::string::String, -} -/// A message used to fetch a job state from backend plugin server. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskGetRequest { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// The unique id identifying the job. - #[prost(string, tag="2")] - pub job_id: ::prost::alloc::string::String, -} -/// Response to get an individual task state. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskGetResponse { - /// The state of the execution is used to control its visibility in the UI/CLI. - #[prost(enumeration="State", tag="1")] - pub state: i32, - /// The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a - /// Structured dataset pointing to the query result table. - /// +optional - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, -} -/// A message used to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskDeleteRequest { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// The unique id identifying the job. - #[prost(string, tag="2")] - pub job_id: ::prost::alloc::string::String, -} -/// Response to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskDeleteResponse { -} -/// The state of the execution is used to control its visibility in the UI/CLI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum State { - RetryableFailure = 0, - PermanentFailure = 1, - Pending = 2, - Running = 3, - Succeeded = 4, -} -impl State { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - State::RetryableFailure => "RETRYABLE_FAILURE", - State::PermanentFailure => "PERMANENT_FAILURE", - State::Pending => "PENDING", - State::Running => "RUNNING", - State::Succeeded => "SUCCEEDED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), - "PERMANENT_FAILURE" => Some(Self::PermanentFailure), - "PENDING" => Some(Self::Pending), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - _ => None, - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UserInfoRequest { -} -/// See the OpenID Connect spec at for more information. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UserInfoResponse { - /// Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed - /// by the Client. - #[prost(string, tag="1")] - pub subject: ::prost::alloc::string::String, - /// Full name - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - /// Shorthand name by which the End-User wishes to be referred to - #[prost(string, tag="3")] - pub preferred_username: ::prost::alloc::string::String, - /// Given name(s) or first name(s) - #[prost(string, tag="4")] - pub given_name: ::prost::alloc::string::String, - /// Surname(s) or last name(s) - #[prost(string, tag="5")] - pub family_name: ::prost::alloc::string::String, - /// Preferred e-mail address - #[prost(string, tag="6")] - pub email: ::prost::alloc::string::String, - /// Profile picture URL - #[prost(string, tag="7")] - pub picture: ::prost::alloc::string::String, - /// Additional claims - #[prost(message, optional, tag="8")] - pub additional_claims: ::core::option::Option<::prost_types::Struct>, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 9d16e2d926..3b6e0ad841 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -122,6 +122,8 @@ message Resource { repeated core.TaskLog log_links = 4; // The phase of the execution is used to determine the phase of the plugin's execution. core.TaskExecution.Phase phase = 5; + // Custom data specific to the agent. + google.protobuf.Struct custom_info = 6; } // A message used to delete a task. diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index b436225fbd..8568a48f90 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -29,7 +29,7 @@ type Agent struct { // identifier and query for job statuses as jobs progress. IsSync bool // AgentDeployment is the agent deployment where this agent is running. - AgentDeployment *AgentDeployment + AgentDeployment *Deployment } // ClientSet contains the clients exposed to communicate with various agent services. @@ -39,7 +39,7 @@ type ClientSet struct { agentMetadataClients map[string]service.AgentMetadataServiceClient // map[endpoint] => AgentMetadataServiceClient } -func getGrpcConnection(ctx context.Context, agent *AgentDeployment) (*grpc.ClientConn, error) { +func getGrpcConnection(ctx context.Context, agent *Deployment) (*grpc.ClientConn, error) { var opts []grpc.DialOption if agent.Insecure { @@ -81,7 +81,7 @@ func getGrpcConnection(ctx context.Context, agent *AgentDeployment) (*grpc.Clien return conn, nil } -func getFinalTimeout(operation string, agent *AgentDeployment) config.Duration { +func getFinalTimeout(operation string, agent *Deployment) config.Duration { if t, exists := agent.Timeouts[operation]; exists { return t } @@ -89,7 +89,7 @@ func getFinalTimeout(operation string, agent *AgentDeployment) config.Duration { return agent.DefaultTimeout } -func getFinalContext(ctx context.Context, operation string, agent *AgentDeployment) (context.Context, context.CancelFunc) { +func getFinalContext(ctx context.Context, operation string, agent *Deployment) (context.Context, context.CancelFunc) { timeout := getFinalTimeout(operation, agent).Duration if timeout == 0 { return ctx, func() {} @@ -101,7 +101,7 @@ func getFinalContext(ctx context.Context, operation string, agent *AgentDeployme func initializeAgentRegistry(cs *ClientSet) (Registry, error) { agentRegistry := make(Registry) cfg := GetConfig() - var agentDeployments []*AgentDeployment + var agentDeployments []*Deployment // Ensure that the old configuration is backward compatible for taskType, agentDeploymentID := range cfg.AgentForTaskTypes { @@ -160,7 +160,7 @@ func initializeClients(ctx context.Context) (*ClientSet, error) { syncAgentClients := make(map[string]service.SyncAgentServiceClient) agentMetadataClients := make(map[string]service.AgentMetadataServiceClient) - var agentDeployments []*AgentDeployment + var agentDeployments []*Deployment cfg := GetConfig() if len(cfg.DefaultAgent.Endpoint) != 0 { diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go index 44fee38e99..4ad7f8cbaa 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client_test.go @@ -9,7 +9,7 @@ import ( func TestInitializeClients(t *testing.T) { cfg := defaultConfig - cfg.AgentDeployments = map[string]*AgentDeployment{ + cfg.AgentDeployments = map[string]*Deployment{ "x": { Endpoint: "x", }, diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/config.go b/flyteplugins/go/tasks/plugins/webapi/agent/config.go index 8cc25962d4..3f9fd354b6 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/config.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/config.go @@ -39,7 +39,7 @@ var ( Value: 50, }, }, - DefaultAgent: AgentDeployment{ + DefaultAgent: Deployment{ Endpoint: "", Insecure: true, DefaultTimeout: config.Duration{Duration: 10 * time.Second}, @@ -61,10 +61,10 @@ type Config struct { ResourceConstraints core.ResourceConstraintsSpec `json:"resourceConstraints" pflag:"-,Defines resource constraints on how many executions to be created per project/overall at any given time."` // The default agent if there does not exist a more specific matching against task types - DefaultAgent AgentDeployment `json:"defaultAgent" pflag:",The default agent."` + DefaultAgent Deployment `json:"defaultAgent" pflag:",The default agent."` // The agents used to match against specific task types. {agentDeploymentID: AgentDeployment} - AgentDeployments map[string]*AgentDeployment `json:"agents" pflag:",The agents."` + AgentDeployments map[string]*Deployment `json:"agents" pflag:",The agents."` // Maps task types to their agents. {TaskType: agentDeploymentID} AgentForTaskTypes map[string]string `json:"agentForTaskTypes" pflag:"-,"` @@ -73,7 +73,7 @@ type Config struct { SupportedTaskTypes []string `json:"supportedTaskTypes" pflag:"-,Defines a list of task types that are supported by this plugin."` } -type AgentDeployment struct { +type Deployment struct { // Endpoint points to an agent gRPC endpoint Endpoint string `json:"endpoint"` diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go index 2c0be1fb0b..09abffb83c 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/config_test.go @@ -27,7 +27,7 @@ func TestGetAndSetConfig(t *testing.T) { }, } cfg.DefaultAgent.DefaultTimeout = config.Duration{Duration: 10 * time.Second} - cfg.AgentDeployments = map[string]*AgentDeployment{ + cfg.AgentDeployments = map[string]*Deployment{ "agent_1": { Insecure: cfg.DefaultAgent.Insecure, DefaultServiceConfig: cfg.DefaultAgent.DefaultServiceConfig, diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index 349b1d65a0..8f0c839ff8 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -323,7 +323,7 @@ func newMockSyncAgentPlugin() webapi.PluginEntry { defaultAgentEndpoint: syncAgentClient, }, }, - agentRegistry: Registry{"openai": {defaultTaskTypeVersion: {AgentDeployment: &AgentDeployment{Endpoint: defaultAgentEndpoint}, IsSync: true}}}, + agentRegistry: Registry{"openai": {defaultTaskTypeVersion: {AgentDeployment: &Deployment{Endpoint: defaultAgentEndpoint}, IsSync: true}}}, }, nil }, } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 703a5c9d92..9b444bbb90 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -285,7 +285,7 @@ func (p Plugin) Status(ctx context.Context, taskCtx webapi.StatusContext) (phase return core.PhaseInfoUndefined, pluginErrors.Errorf(core.SystemErrorCode, "unknown execution state [%v].", resource.State) } -func (p Plugin) getSyncAgentClient(ctx context.Context, agent *AgentDeployment) (service.SyncAgentServiceClient, error) { +func (p Plugin) getSyncAgentClient(ctx context.Context, agent *Deployment) (service.SyncAgentServiceClient, error) { client, ok := p.cs.syncAgentClients[agent.Endpoint] if !ok { conn, err := getGrpcConnection(ctx, agent) @@ -298,7 +298,7 @@ func (p Plugin) getSyncAgentClient(ctx context.Context, agent *AgentDeployment) return client, nil } -func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *AgentDeployment) (service.AsyncAgentServiceClient, error) { +func (p Plugin) getAsyncAgentClient(ctx context.Context, agent *Deployment) (service.AsyncAgentServiceClient, error) { client, ok := p.cs.asyncAgentClients[agent.Endpoint] if !ok { conn, err := getGrpcConnection(ctx, agent) @@ -333,7 +333,7 @@ func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, outputs *fly return taskCtx.OutputWriter().Put(ctx, opReader) } -func getFinalAgent(taskType *admin.TaskType, cfg *Config, agentRegistry Registry) (*AgentDeployment, bool) { +func getFinalAgent(taskType *admin.TaskType, cfg *Config, agentRegistry Registry) (*Deployment, bool) { if agent, exists := agentRegistry[taskType.Name][taskType.Version]; exists { return agent.AgentDeployment, agent.IsSync } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go index 48e0dc3b18..30d786d45b 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go @@ -31,8 +31,8 @@ func TestPlugin(t *testing.T) { cfg := defaultConfig cfg.WebAPI.Caching.Workers = 1 cfg.WebAPI.Caching.ResyncInterval.Duration = 5 * time.Second - cfg.DefaultAgent = AgentDeployment{Endpoint: "test-agent.flyte.svc.cluster.local:80"} - cfg.AgentDeployments = map[string]*AgentDeployment{"spark_agent": {Endpoint: "localhost:80"}} + cfg.DefaultAgent = Deployment{Endpoint: "test-agent.flyte.svc.cluster.local:80"} + cfg.AgentDeployments = map[string]*Deployment{"spark_agent": {Endpoint: "localhost:80"}} cfg.AgentForTaskTypes = map[string]string{"spark": "spark_agent", "bar": "bar_agent"} plugin := Plugin{ @@ -59,7 +59,7 @@ func TestPlugin(t *testing.T) { }) t.Run("test getFinalAgent", func(t *testing.T) { - agent := &Agent{AgentDeployment: &AgentDeployment{Endpoint: "localhost:80"}} + agent := &Agent{AgentDeployment: &Deployment{Endpoint: "localhost:80"}} agentRegistry := Registry{"spark": {defaultTaskTypeVersion: agent}} spark := &admin.TaskType{Name: "spark", Version: defaultTaskTypeVersion} foo := &admin.TaskType{Name: "foo", Version: defaultTaskTypeVersion} @@ -73,17 +73,17 @@ func TestPlugin(t *testing.T) { }) t.Run("test getFinalTimeout", func(t *testing.T) { - timeout := getFinalTimeout("CreateTask", &AgentDeployment{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) + timeout := getFinalTimeout("CreateTask", &Deployment{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) assert.Equal(t, 1*time.Millisecond, timeout.Duration) - timeout = getFinalTimeout("DeleteTask", &AgentDeployment{Endpoint: "localhost:8080", DefaultTimeout: config.Duration{Duration: 10 * time.Second}}) + timeout = getFinalTimeout("DeleteTask", &Deployment{Endpoint: "localhost:8080", DefaultTimeout: config.Duration{Duration: 10 * time.Second}}) assert.Equal(t, 10*time.Second, timeout.Duration) }) t.Run("test getFinalContext", func(t *testing.T) { - ctx, _ := getFinalContext(context.TODO(), "DeleteTask", &AgentDeployment{}) + ctx, _ := getFinalContext(context.TODO(), "DeleteTask", &Deployment{}) assert.Equal(t, context.TODO(), ctx) - ctx, _ = getFinalContext(context.TODO(), "CreateTask", &AgentDeployment{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) + ctx, _ = getFinalContext(context.TODO(), "CreateTask", &Deployment{Endpoint: "localhost:8080", Timeouts: map[string]config.Duration{"CreateTask": {Duration: 1 * time.Millisecond}}}) assert.NotEqual(t, context.TODO(), ctx) }) @@ -303,7 +303,7 @@ func TestInitializeAgentRegistry(t *testing.T) { } cfg := defaultConfig - cfg.AgentDeployments = map[string]*AgentDeployment{"custom_agent": {Endpoint: defaultAgentEndpoint}} + cfg.AgentDeployments = map[string]*Deployment{"custom_agent": {Endpoint: defaultAgentEndpoint}} cfg.AgentForTaskTypes = map[string]string{"task1": "agent-deployment-1", "task2": "agent-deployment-2"} err := SetConfig(&cfg) assert.NoError(t, err) From aa4f21f60be2603f72cbf19f49e5713273e86659 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 12:07:50 -0800 Subject: [PATCH 27/35] make generate Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 1348 + .../flyteidl/admin/cluster_assignment_pb.ts | 47 + .../gen/pb-es/flyteidl/admin/common_pb.ts | 1388 + .../flyteidl/admin/description_entity_pb.ts | 375 + flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts | 395 + .../gen/pb-es/flyteidl/admin/execution_pb.ts | 1574 + .../pb-es/flyteidl/admin/launch_plan_pb.ts | 805 + .../flyteidl/admin/matchable_resource_pb.ts | 794 + .../pb-es/flyteidl/admin/node_execution_pb.ts | 926 + .../pb-es/flyteidl/admin/notification_pb.ts | 80 + .../flyteidl/admin/project_attributes_pb.ts | 333 + .../admin/project_domain_attributes_pb.ts | 359 + .../gen/pb-es/flyteidl/admin/project_pb.ts | 414 + .../gen/pb-es/flyteidl/admin/schedule_pb.ts | 204 + .../gen/pb-es/flyteidl/admin/signal_pb.ts | 339 + .../pb-es/flyteidl/admin/task_execution_pb.ts | 592 + flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts | 308 + .../gen/pb-es/flyteidl/admin/version_pb.ts | 140 + .../flyteidl/admin/workflow_attributes_pb.ts | 382 + .../gen/pb-es/flyteidl/admin/workflow_pb.ts | 445 + .../gen/pb-es/flyteidl/core/artifact_id_pb.ts | 488 + .../gen/pb-es/flyteidl/core/catalog_pb.ts | 276 + .../gen/pb-es/flyteidl/core/compiler_pb.ts | 301 + .../gen/pb-es/flyteidl/core/condition_pb.ts | 306 + .../gen/pb-es/flyteidl/core/dynamic_job_pb.ts | 89 + flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts | 139 + .../gen/pb-es/flyteidl/core/execution_pb.ts | 613 + .../gen/pb-es/flyteidl/core/identifier_pb.ts | 345 + .../gen/pb-es/flyteidl/core/interface_pb.ts | 286 + .../gen/pb-es/flyteidl/core/literals_pb.ts | 1032 + .../gen/pb-es/flyteidl/core/metrics_pb.ts | 162 + .../gen/pb-es/flyteidl/core/security_pb.ts | 406 + flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts | 1264 + flyteidl/gen/pb-es/flyteidl/core/types_pb.ts | 875 + .../flyteidl/core/workflow_closure_pb.ts | 60 + .../gen/pb-es/flyteidl/core/workflow_pb.ts | 1209 + .../datacatalog/datacatalog_connect.ts | 145 + .../flyteidl/datacatalog/datacatalog_pb.ts | 1940 + .../pb-es/flyteidl/event/cloudevents_pb.ts | 281 + flyteidl/gen/pb-es/flyteidl/event/event_pb.ts | 1088 + .../pb-es/flyteidl/plugins/array_job_pb.ts | 88 + .../gen/pb-es/flyteidl/plugins/dask_pb.ts | 166 + .../flyteidl/plugins/kubeflow/common_pb.ts | 124 + .../pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts | 150 + .../flyteidl/plugins/kubeflow/pytorch_pb.ts | 204 + .../plugins/kubeflow/tensorflow_pb.ts | 148 + flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts | 68 + .../gen/pb-es/flyteidl/plugins/presto_pb.ts | 66 + .../gen/pb-es/flyteidl/plugins/pytorch_pb.ts | 122 + .../gen/pb-es/flyteidl/plugins/qubole_pb.ts | 157 + flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts | 247 + .../gen/pb-es/flyteidl/plugins/spark_pb.ts | 169 + .../pb-es/flyteidl/plugins/tensorflow_pb.ts | 74 + .../gen/pb-es/flyteidl/plugins/waitable_pb.ts | 61 + .../pb-es/flyteidl/service/admin_connect.ts | 632 + .../pb-es/flyteidl/service/agent_connect.ts | 134 + .../pb-es/flyteidl/service/auth_connect.ts | 44 + .../gen/pb-es/flyteidl/service/auth_pb.ts | 272 + .../flyteidl/service/dataproxy_connect.ts | 62 + .../pb-es/flyteidl/service/dataproxy_pb.ts | 570 + .../external_plugin_service_connect.ts | 55 + .../service/external_plugin_service_pb.ts | 337 + .../flyteidl/service/identity_connect.ts | 30 + .../gen/pb-es/flyteidl/service/identity_pb.ts | 137 + .../pb-es/flyteidl/service/signal_connect.ts | 52 + flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 2413 + .../flyteidl/admin/cluster_assignment.pb.go | 159 + .../gen/pb-go/flyteidl/admin/common.pb.go | 2331 + .../flyteidl/admin/description_entity.pb.go | 701 + flyteidl/gen/pb-go/flyteidl/admin/event.pb.go | 749 + .../gen/pb-go/flyteidl/admin/execution.pb.go | 2757 + .../pb-go/flyteidl/admin/launch_plan.pb.go | 1429 + .../flyteidl/admin/matchable_resource.pb.go | 1492 + .../pb-go/flyteidl/admin/node_execution.pb.go | 1663 + .../pb-go/flyteidl/admin/notification.pb.go | 198 + .../gen/pb-go/flyteidl/admin/project.pb.go | 735 + .../flyteidl/admin/project_attributes.pb.go | 623 + .../admin/project_domain_attributes.pb.go | 661 + .../gen/pb-go/flyteidl/admin/schedule.pb.go | 447 + .../gen/pb-go/flyteidl/admin/signal.pb.go | 620 + flyteidl/gen/pb-go/flyteidl/admin/task.pb.go | 582 + .../pb-go/flyteidl/admin/task_execution.pb.go | 1083 + .../gen/pb-go/flyteidl/admin/version.pb.go | 301 + .../gen/pb-go/flyteidl/admin/workflow.pb.go | 855 + .../flyteidl/admin/workflow_attributes.pb.go | 690 + .../gen/pb-go/flyteidl/core/artifact_id.pb.go | 1007 + .../gen/pb-go/flyteidl/core/catalog.pb.go | 506 + .../gen/pb-go/flyteidl/core/compiler.pb.go | 605 + .../gen/pb-go/flyteidl/core/condition.pb.go | 651 + .../gen/pb-go/flyteidl/core/dynamic_job.pb.go | 228 + flyteidl/gen/pb-go/flyteidl/core/errors.pb.go | 320 + .../gen/pb-go/flyteidl/core/execution.pb.go | 1040 + .../gen/pb-go/flyteidl/core/identifier.pb.go | 627 + .../gen/pb-go/flyteidl/core/interface.pb.go | 609 + .../gen/pb-go/flyteidl/core/literals.pb.go | 2004 + .../gen/pb-go/flyteidl/core/metrics.pb.go | 381 + .../gen/pb-go/flyteidl/core/security.pb.go | 727 + flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go | 2215 + flyteidl/gen/pb-go/flyteidl/core/types.pb.go | 1559 + .../gen/pb-go/flyteidl/core/workflow.pb.go | 2259 + .../flyteidl/core/workflow_closure.pb.go | 182 + .../flyteidl/datacatalog/datacatalog.pb.go | 3524 + .../datacatalog/datacatalog_grpc.pb.go | 486 + .../pb-go/flyteidl/event/cloudevents.pb.go | 589 + flyteidl/gen/pb-go/flyteidl/event/event.pb.go | 2025 + .../pb-go/flyteidl/plugins/array_job.pb.go | 230 + .../gen/pb-go/flyteidl/plugins/dask.pb.go | 348 + .../flyteidl/plugins/kubeflow/common.pb.go | 317 + .../pb-go/flyteidl/plugins/kubeflow/mpi.pb.go | 336 + .../flyteidl/plugins/kubeflow/pytorch.pb.go | 436 + .../plugins/kubeflow/tensorflow.pb.go | 350 + flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go | 184 + .../gen/pb-go/flyteidl/plugins/presto.pb.go | 187 + .../gen/pb-go/flyteidl/plugins/pytorch.pb.go | 279 + .../gen/pb-go/flyteidl/plugins/qubole.pb.go | 346 + flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go | 490 + .../gen/pb-go/flyteidl/plugins/spark.pb.go | 383 + .../pb-go/flyteidl/plugins/tensorflow.pb.go | 194 + .../gen/pb-go/flyteidl/plugins/waitable.pb.go | 190 + .../gen/pb-go/flyteidl/service/admin.pb.go | 1230 + .../pb-go/flyteidl/service/admin_grpc.pb.go | 2187 + .../gen/pb-go/flyteidl/service/agent.pb.go | 191 + .../pb-go/flyteidl/service/agent_grpc.pb.go | 553 + .../gen/pb-go/flyteidl/service/auth.pb.go | 549 + .../pb-go/flyteidl/service/auth_grpc.pb.go | 150 + .../pb-go/flyteidl/service/dataproxy.pb.go | 1135 + .../flyteidl/service/dataproxy_grpc.pb.go | 227 + .../service/external_plugin_service.pb.go | 651 + .../external_plugin_service_grpc.pb.go | 196 + .../gen/pb-go/flyteidl/service/identity.pb.go | 313 + .../flyteidl/service/identity_grpc.pb.go | 109 + .../gen/pb-go/flyteidl/service/signal.pb.go | 144 + .../pb-go/flyteidl/service/signal_grpc.pb.go | 188 + .../gateway/flyteidl/admin/agent.swagger.json | 46 + .../admin/cluster_assignment.swagger.json | 46 + .../flyteidl/admin/common.swagger.json | 46 + .../admin/description_entity.swagger.json | 46 + .../gateway/flyteidl/admin/event.swagger.json | 46 + .../flyteidl/admin/execution.swagger.json | 46 + .../flyteidl/admin/launch_plan.swagger.json | 46 + .../admin/matchable_resource.swagger.json | 46 + .../admin/node_execution.swagger.json | 46 + .../flyteidl/admin/notification.swagger.json | 46 + .../flyteidl/admin/project.swagger.json | 46 + .../admin/project_attributes.swagger.json | 46 + .../project_domain_attributes.swagger.json | 46 + .../flyteidl/admin/schedule.swagger.json | 46 + .../flyteidl/admin/signal.swagger.json | 46 + .../gateway/flyteidl/admin/task.swagger.json | 46 + .../admin/task_execution.swagger.json | 46 + .../flyteidl/admin/version.swagger.json | 46 + .../flyteidl/admin/workflow.swagger.json | 46 + .../admin/workflow_attributes.swagger.json | 46 + .../flyteidl/core/artifact_id.swagger.json | 46 + .../flyteidl/core/catalog.swagger.json | 46 + .../flyteidl/core/compiler.swagger.json | 46 + .../flyteidl/core/condition.swagger.json | 46 + .../flyteidl/core/dynamic_job.swagger.json | 46 + .../gateway/flyteidl/core/errors.swagger.json | 46 + .../flyteidl/core/execution.swagger.json | 46 + .../flyteidl/core/identifier.swagger.json | 46 + .../flyteidl/core/interface.swagger.json | 46 + .../flyteidl/core/literals.swagger.json | 46 + .../flyteidl/core/metrics.swagger.json | 46 + .../flyteidl/core/security.swagger.json | 46 + .../gateway/flyteidl/core/tasks.swagger.json | 46 + .../gateway/flyteidl/core/types.swagger.json | 46 + .../flyteidl/core/workflow.swagger.json | 46 + .../core/workflow_closure.swagger.json | 46 + .../datacatalog/datacatalog.swagger.json | 908 + .../flyteidl/event/cloudevents.swagger.json | 46 + .../gateway/flyteidl/event/event.swagger.json | 46 + .../flyteidl/plugins/array_job.swagger.json | 46 + .../flyteidl/plugins/dask.swagger.json | 46 + .../plugins/kubeflow/common.swagger.json | 46 + .../plugins/kubeflow/mpi.swagger.json | 46 + .../plugins/kubeflow/pytorch.swagger.json | 46 + .../plugins/kubeflow/tensorflow.swagger.json | 46 + .../gateway/flyteidl/plugins/mpi.swagger.json | 46 + .../flyteidl/plugins/presto.swagger.json | 46 + .../flyteidl/plugins/pytorch.swagger.json | 46 + .../flyteidl/plugins/qubole.swagger.json | 46 + .../gateway/flyteidl/plugins/ray.swagger.json | 46 + .../flyteidl/plugins/spark.swagger.json | 46 + .../flyteidl/plugins/tensorflow.swagger.json | 46 + .../flyteidl/plugins/waitable.swagger.json | 46 + .../gateway/flyteidl/service/admin.pb.gw.go | 8691 +++ .../flyteidl/service/admin.swagger.json | 8976 +++ .../gateway/flyteidl/service/agent.pb.gw.go | 1110 + .../flyteidl/service/agent.swagger.json | 2121 + .../gateway/flyteidl/service/auth.pb.gw.go | 225 + .../flyteidl/service/auth.swagger.json | 194 + .../flyteidl/service/dataproxy.pb.gw.go | 431 + .../flyteidl/service/dataproxy.swagger.json | 809 + .../external_plugin_service.swagger.json | 1314 + .../flyteidl/service/identity.pb.gw.go | 156 + .../flyteidl/service/identity.swagger.json | 122 + .../gateway/flyteidl/service/signal.pb.gw.go | 334 + .../flyteidl/service/signal.swagger.json | 739 + flyteidl/gen/pb-js/flyteidl.d.ts | 26946 +++++++ flyteidl/gen/pb-js/flyteidl.js | 63176 ++++++++++++++++ flyteidl/gen/pb_python/__init__.py | 0 flyteidl/gen/pb_python/flyteidl/__init__.py | 0 .../gen/pb_python/flyteidl/admin/__init__.py | 0 .../gen/pb_python/flyteidl/admin/agent_pb2.py | 110 + .../pb_python/flyteidl/admin/agent_pb2.pyi | 272 + .../flyteidl/admin/agent_pb2_grpc.py | 4 + .../flyteidl/admin/cluster_assignment_pb2.py | 27 + .../flyteidl/admin/cluster_assignment_pb2.pyi | 11 + .../admin/cluster_assignment_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/common_pb2.py | 93 + .../pb_python/flyteidl/admin/common_pb2.pyi | 254 + .../flyteidl/admin/common_pb2_grpc.py | 4 + .../flyteidl/admin/description_entity_pb2.py | 39 + .../flyteidl/admin/description_entity_pb2.pyi | 76 + .../admin/description_entity_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/admin/event_pb2.py | 44 + .../pb_python/flyteidl/admin/event_pb2.pyi | 62 + .../flyteidl/admin/event_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/execution_pb2.py | 104 + .../flyteidl/admin/execution_pb2.pyi | 291 + .../flyteidl/admin/execution_pb2_grpc.py | 4 + .../flyteidl/admin/launch_plan_pb2.py | 69 + .../flyteidl/admin/launch_plan_pb2.pyi | 156 + .../flyteidl/admin/launch_plan_pb2_grpc.py | 4 + .../flyteidl/admin/matchable_resource_pb2.py | 62 + .../flyteidl/admin/matchable_resource_pb2.pyi | 170 + .../admin/matchable_resource_pb2_grpc.py | 4 + .../flyteidl/admin/node_execution_pb2.py | 69 + .../flyteidl/admin/node_execution_pb2.pyi | 172 + .../flyteidl/admin/node_execution_pb2_grpc.py | 4 + .../flyteidl/admin/notification_pb2.py | 27 + .../flyteidl/admin/notification_pb2.pyi | 18 + .../flyteidl/admin/notification_pb2_grpc.py | 4 + .../flyteidl/admin/project_attributes_pb2.py | 40 + .../flyteidl/admin/project_attributes_pb2.pyi | 56 + .../admin/project_attributes_pb2_grpc.py | 4 + .../admin/project_domain_attributes_pb2.py | 40 + .../admin/project_domain_attributes_pb2.pyi | 62 + .../project_domain_attributes_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/project_pb2.py | 42 + .../pb_python/flyteidl/admin/project_pb2.pyi | 78 + .../flyteidl/admin/project_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/schedule_pb2.py | 35 + .../pb_python/flyteidl/admin/schedule_pb2.pyi | 43 + .../flyteidl/admin/schedule_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/signal_pb2.py | 41 + .../pb_python/flyteidl/admin/signal_pb2.pyi | 62 + .../flyteidl/admin/signal_pb2_grpc.py | 4 + .../flyteidl/admin/task_execution_pb2.py | 57 + .../flyteidl/admin/task_execution_pb2.pyi | 116 + .../flyteidl/admin/task_execution_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/admin/task_pb2.py | 42 + .../gen/pb_python/flyteidl/admin/task_pb2.pyi | 57 + .../pb_python/flyteidl/admin/task_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/version_pb2.py | 31 + .../pb_python/flyteidl/admin/version_pb2.pyi | 25 + .../flyteidl/admin/version_pb2_grpc.py | 4 + .../flyteidl/admin/workflow_attributes_pb2.py | 40 + .../admin/workflow_attributes_pb2.pyi | 68 + .../admin/workflow_attributes_pb2_grpc.py | 4 + .../pb_python/flyteidl/admin/workflow_pb2.py | 48 + .../pb_python/flyteidl/admin/workflow_pb2.pyi | 79 + .../flyteidl/admin/workflow_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/core/__init__.py | 0 .../flyteidl/core/artifact_id_pb2.py | 49 + .../flyteidl/core/artifact_id_pb2.pyi | 101 + .../flyteidl/core/artifact_id_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/catalog_pb2.py | 36 + .../pb_python/flyteidl/core/catalog_pb2.pyi | 60 + .../flyteidl/core/catalog_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/compiler_pb2.py | 49 + .../pb_python/flyteidl/core/compiler_pb2.pyi | 69 + .../flyteidl/core/compiler_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/condition_pb2.py | 40 + .../pb_python/flyteidl/core/condition_pb2.pyi | 65 + .../flyteidl/core/condition_pb2_grpc.py | 4 + .../flyteidl/core/dynamic_job_pb2.py | 30 + .../flyteidl/core/dynamic_job_pb2.pyi | 23 + .../flyteidl/core/dynamic_job_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/core/errors_pb2.py | 32 + .../pb_python/flyteidl/core/errors_pb2.pyi | 31 + .../flyteidl/core/errors_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/execution_pb2.py | 52 + .../pb_python/flyteidl/core/execution_pb2.pyi | 147 + .../flyteidl/core/execution_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/identifier_pb2.py | 37 + .../flyteidl/core/identifier_pb2.pyi | 73 + .../flyteidl/core/identifier_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/interface_pb2.py | 46 + .../pb_python/flyteidl/core/interface_pb2.pyi | 69 + .../flyteidl/core/interface_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/literals_pb2.py | 81 + .../pb_python/flyteidl/core/literals_pb2.pyi | 205 + .../flyteidl/core/literals_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/metrics_pb2.py | 32 + .../pb_python/flyteidl/core/metrics_pb2.pyi | 35 + .../flyteidl/core/metrics_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/security_pb2.py | 39 + .../pb_python/flyteidl/core/security_pb2.pyi | 75 + .../flyteidl/core/security_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/core/tasks_pb2.py | 91 + .../gen/pb_python/flyteidl/core/tasks_pb2.pyi | 280 + .../pb_python/flyteidl/core/tasks_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/core/types_pb2.py | 62 + .../gen/pb_python/flyteidl/core/types_pb2.pyi | 176 + .../pb_python/flyteidl/core/types_pb2_grpc.py | 4 + .../flyteidl/core/workflow_closure_pb2.py | 29 + .../flyteidl/core/workflow_closure_pb2.pyi | 16 + .../core/workflow_closure_pb2_grpc.py | 4 + .../pb_python/flyteidl/core/workflow_pb2.py | 76 + .../pb_python/flyteidl/core/workflow_pb2.pyi | 217 + .../flyteidl/core/workflow_pb2_grpc.py | 4 + .../flyteidl/datacatalog/__init__.py | 0 .../flyteidl/datacatalog/datacatalog_pb2.py | 114 + .../flyteidl/datacatalog/datacatalog_pb2.pyi | 341 + .../datacatalog/datacatalog_pb2_grpc.py | 398 + .../gen/pb_python/flyteidl/event/__init__.py | 0 .../flyteidl/event/cloudevents_pb2.py | 39 + .../flyteidl/event/cloudevents_pb2.pyi | 66 + .../flyteidl/event/cloudevents_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/event/event_pb2.py | 60 + .../pb_python/flyteidl/event/event_pb2.pyi | 218 + .../flyteidl/event/event_pb2_grpc.py | 4 + .../pb_python/flyteidl/plugins/__init__.py | 0 .../flyteidl/plugins/array_job_pb2.py | 27 + .../flyteidl/plugins/array_job_pb2.pyi | 17 + .../flyteidl/plugins/array_job_pb2_grpc.py | 4 + .../pb_python/flyteidl/plugins/dask_pb2.py | 32 + .../pb_python/flyteidl/plugins/dask_pb2.pyi | 32 + .../flyteidl/plugins/dask_pb2_grpc.py | 4 + .../flyteidl/plugins/kubeflow/__init__.py | 0 .../flyteidl/plugins/kubeflow/common_pb2.py | 31 + .../flyteidl/plugins/kubeflow/common_pb2.pyi | 36 + .../plugins/kubeflow/common_pb2_grpc.py | 4 + .../flyteidl/plugins/kubeflow/mpi_pb2.py | 31 + .../flyteidl/plugins/kubeflow/mpi_pb2.pyi | 34 + .../flyteidl/plugins/kubeflow/mpi_pb2_grpc.py | 4 + .../flyteidl/plugins/kubeflow/pytorch_pb2.py | 33 + .../flyteidl/plugins/kubeflow/pytorch_pb2.pyi | 45 + .../plugins/kubeflow/pytorch_pb2_grpc.py | 4 + .../plugins/kubeflow/tensorflow_pb2.py | 31 + .../plugins/kubeflow/tensorflow_pb2.pyi | 33 + .../plugins/kubeflow/tensorflow_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/plugins/mpi_pb2.py | 27 + .../pb_python/flyteidl/plugins/mpi_pb2.pyi | 15 + .../flyteidl/plugins/mpi_pb2_grpc.py | 4 + .../pb_python/flyteidl/plugins/presto_pb2.py | 27 + .../pb_python/flyteidl/plugins/presto_pb2.pyi | 17 + .../flyteidl/plugins/presto_pb2_grpc.py | 4 + .../pb_python/flyteidl/plugins/pytorch_pb2.py | 29 + .../flyteidl/plugins/pytorch_pb2.pyi | 27 + .../flyteidl/plugins/pytorch_pb2_grpc.py | 4 + .../pb_python/flyteidl/plugins/qubole_pb2.py | 33 + .../pb_python/flyteidl/plugins/qubole_pb2.pyi | 34 + .../flyteidl/plugins/qubole_pb2_grpc.py | 4 + .../gen/pb_python/flyteidl/plugins/ray_pb2.py | 41 + .../pb_python/flyteidl/plugins/ray_pb2.pyi | 62 + .../flyteidl/plugins/ray_pb2_grpc.py | 4 + .../pb_python/flyteidl/plugins/spark_pb2.py | 40 + .../pb_python/flyteidl/plugins/spark_pb2.pyi | 58 + .../flyteidl/plugins/spark_pb2_grpc.py | 4 + .../flyteidl/plugins/tensorflow_pb2.py | 27 + .../flyteidl/plugins/tensorflow_pb2.pyi | 17 + .../flyteidl/plugins/tensorflow_pb2_grpc.py | 4 + .../flyteidl/plugins/waitable_pb2.py | 29 + .../flyteidl/plugins/waitable_pb2.pyi | 17 + .../flyteidl/plugins/waitable_pb2_grpc.py | 4 + .../pb_python/flyteidl/service/__init__.py | 0 .../pb_python/flyteidl/service/admin_pb2.py | 152 + .../pb_python/flyteidl/service/admin_pb2.pyi | 21 + .../flyteidl/service/admin_pb2_grpc.py | 1894 + .../pb_python/flyteidl/service/agent_pb2.py | 49 + .../pb_python/flyteidl/service/agent_pb2.pyi | 6 + .../flyteidl/service/agent_pb2_grpc.py | 377 + .../pb_python/flyteidl/service/auth_pb2.py | 41 + .../pb_python/flyteidl/service/auth_pb2.pyi | 56 + .../flyteidl/service/auth_pb2_grpc.py | 111 + .../flyteidl/service/dataproxy_pb2.py | 69 + .../flyteidl/service/dataproxy_pb2.pyi | 106 + .../flyteidl/service/dataproxy_pb2_grpc.py | 171 + .../service/external_plugin_service_pb2.py | 63 + .../service/external_plugin_service_pb2.pyi | 65 + .../external_plugin_service_pb2_grpc.py | 138 + .../flyteidl/service/identity_pb2.py | 36 + .../flyteidl/service/identity_pb2.pyi | 32 + .../flyteidl/service/identity_pb2_grpc.py | 70 + .../pb_python/flyteidl/service/signal_pb2.py | 36 + .../pb_python/flyteidl/service/signal_pb2.pyi | 7 + .../flyteidl/service/signal_pb2_grpc.py | 138 + flyteidl/gen/pb_rust/datacatalog.rs | 565 + flyteidl/gen/pb_rust/flyteidl.admin.rs | 3294 + flyteidl/gen/pb_rust/flyteidl.core.rs | 2955 + flyteidl/gen/pb_rust/flyteidl.event.rs | 461 + .../gen/pb_rust/flyteidl.plugins.kubeflow.rs | 205 + flyteidl/gen/pb_rust/flyteidl.plugins.rs | 327 + flyteidl/gen/pb_rust/flyteidl.service.rs | 400 + flyteidl/protos/flyteidl/admin/agent.proto | 1 + 398 files changed, 219275 insertions(+) create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/security_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/types_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/event/event_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts create mode 100644 flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/common.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/event.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/version.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/condition.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/errors.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/execution.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/interface.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/literals.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/security.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/types.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/event/event.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/agent.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/auth.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/identity.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/signal.pb.go create mode 100644 flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go create mode 100644 flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json create mode 100644 flyteidl/gen/pb-js/flyteidl.d.ts create mode 100644 flyteidl/gen/pb-js/flyteidl.js create mode 100644 flyteidl/gen/pb_python/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/security_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/__init__.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py create mode 100644 flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi create mode 100644 flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py create mode 100644 flyteidl/gen/pb_rust/datacatalog.rs create mode 100644 flyteidl/gen/pb_rust/flyteidl.admin.rs create mode 100644 flyteidl/gen/pb_rust/flyteidl.core.rs create mode 100644 flyteidl/gen/pb_rust/flyteidl.event.rs create mode 100644 flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs create mode 100644 flyteidl/gen/pb_rust/flyteidl.plugins.rs create mode 100644 flyteidl/gen/pb_rust/flyteidl.service.rs diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts new file mode 100644 index 0000000000..8452f11f31 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -0,0 +1,1348 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/agent.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, protoInt64, Struct, Timestamp } from "@bufbuild/protobuf"; +import { TaskExecutionIdentifier } from "../core/identifier_pb.js"; +import { TaskNodeOverrides } from "../core/workflow_pb.js"; +import { LiteralMap } from "../core/literals_pb.js"; +import { TaskTemplate } from "../core/tasks_pb.js"; +import { TaskExecution_Phase, TaskLog } from "../core/execution_pb.js"; +import { ExecutionMetricResult } from "../core/metrics_pb.js"; + +/** + * The state of the execution is used to control its visibility in the UI/CLI. + * + * @generated from enum flyteidl.admin.State + * @deprecated + */ +export enum State { + /** + * @generated from enum value: RETRYABLE_FAILURE = 0; + */ + RETRYABLE_FAILURE = 0, + + /** + * @generated from enum value: PERMANENT_FAILURE = 1; + */ + PERMANENT_FAILURE = 1, + + /** + * @generated from enum value: PENDING = 2; + */ + PENDING = 2, + + /** + * @generated from enum value: RUNNING = 3; + */ + RUNNING = 3, + + /** + * @generated from enum value: SUCCEEDED = 4; + */ + SUCCEEDED = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(State) +proto3.util.setEnumType(State, "flyteidl.admin.State", [ + { no: 0, name: "RETRYABLE_FAILURE" }, + { no: 1, name: "PERMANENT_FAILURE" }, + { no: 2, name: "PENDING" }, + { no: 3, name: "RUNNING" }, + { no: 4, name: "SUCCEEDED" }, +]); + +/** + * Represents a subset of runtime task execution metadata that are relevant to external plugins. + * + * @generated from message flyteidl.admin.TaskExecutionMetadata + */ +export class TaskExecutionMetadata extends Message { + /** + * ID of the task execution + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + taskExecutionId?: TaskExecutionIdentifier; + + /** + * k8s namespace where the task is executed in + * + * @generated from field: string namespace = 2; + */ + namespace = ""; + + /** + * Labels attached to the task execution + * + * @generated from field: map labels = 3; + */ + labels: { [key: string]: string } = {}; + + /** + * Annotations attached to the task execution + * + * @generated from field: map annotations = 4; + */ + annotations: { [key: string]: string } = {}; + + /** + * k8s service account associated with the task execution + * + * @generated from field: string k8s_service_account = 5; + */ + k8sServiceAccount = ""; + + /** + * Environment variables attached to the task execution + * + * @generated from field: map environment_variables = 6; + */ + environmentVariables: { [key: string]: string } = {}; + + /** + * @generated from field: int32 max_attempts = 7; + */ + maxAttempts = 0; + + /** + * @generated from field: bool interruptible = 8; + */ + interruptible = false; + + /** + * @generated from field: int32 interruptible_failure_threshold = 9; + */ + interruptibleFailureThreshold = 0; + + /** + * @generated from field: flyteidl.core.TaskNodeOverrides overrides = 10; + */ + overrides?: TaskNodeOverrides; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_execution_id", kind: "message", T: TaskExecutionIdentifier }, + { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 4, name: "annotations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 5, name: "k8s_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "environment_variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 7, name: "max_attempts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 8, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 9, name: "interruptible_failure_threshold", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 10, name: "overrides", kind: "message", T: TaskNodeOverrides }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionMetadata { + return new TaskExecutionMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionMetadata { + return new TaskExecutionMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionMetadata { + return new TaskExecutionMetadata().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionMetadata | PlainMessage | undefined, b: TaskExecutionMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionMetadata, a, b); + } +} + +/** + * Represents a request structure to create task. + * + * @generated from message flyteidl.admin.CreateTaskRequest + */ +export class CreateTaskRequest extends Message { + /** + * The inputs required to start the execution. All required inputs must be + * included in this map. If not required and not provided, defaults apply. + * +optional + * + * @generated from field: flyteidl.core.LiteralMap inputs = 1; + */ + inputs?: LiteralMap; + + /** + * Template of the task that encapsulates all the metadata of the task. + * + * @generated from field: flyteidl.core.TaskTemplate template = 2; + */ + template?: TaskTemplate; + + /** + * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + * + * @generated from field: string output_prefix = 3; + */ + outputPrefix = ""; + + /** + * subset of runtime task execution metadata. + * + * @generated from field: flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; + */ + taskExecutionMetadata?: TaskExecutionMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.CreateTaskRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inputs", kind: "message", T: LiteralMap }, + { no: 2, name: "template", kind: "message", T: TaskTemplate }, + { no: 3, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "task_execution_metadata", kind: "message", T: TaskExecutionMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateTaskRequest { + return new CreateTaskRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateTaskRequest { + return new CreateTaskRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateTaskRequest { + return new CreateTaskRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateTaskRequest | PlainMessage | undefined, b: CreateTaskRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateTaskRequest, a, b); + } +} + +/** + * Represents a create response structure. + * + * @generated from message flyteidl.admin.CreateTaskResponse + */ +export class CreateTaskResponse extends Message { + /** + * ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + * + * @generated from field: bytes resource_meta = 1; + */ + resourceMeta = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.CreateTaskResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateTaskResponse { + return new CreateTaskResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateTaskResponse { + return new CreateTaskResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateTaskResponse { + return new CreateTaskResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateTaskResponse | PlainMessage | undefined, b: CreateTaskResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateTaskResponse, a, b); + } +} + +/** + * @generated from message flyteidl.admin.CreateRequestHeader + */ +export class CreateRequestHeader extends Message { + /** + * Template of the task that encapsulates all the metadata of the task. + * + * @generated from field: flyteidl.core.TaskTemplate template = 1; + */ + template?: TaskTemplate; + + /** + * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + * + * @generated from field: string output_prefix = 2; + */ + outputPrefix = ""; + + /** + * subset of runtime task execution metadata. + * + * @generated from field: flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 3; + */ + taskExecutionMetadata?: TaskExecutionMetadata; + + /** + * MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + * + * @generated from field: int64 max_dataset_size_bytes = 4; + */ + maxDatasetSizeBytes = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.CreateRequestHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: TaskTemplate }, + { no: 2, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "task_execution_metadata", kind: "message", T: TaskExecutionMetadata }, + { no: 4, name: "max_dataset_size_bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateRequestHeader { + return new CreateRequestHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateRequestHeader { + return new CreateRequestHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateRequestHeader { + return new CreateRequestHeader().fromJsonString(jsonString, options); + } + + static equals(a: CreateRequestHeader | PlainMessage | undefined, b: CreateRequestHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateRequestHeader, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecuteTaskSyncRequest + */ +export class ExecuteTaskSyncRequest extends Message { + /** + * @generated from oneof flyteidl.admin.ExecuteTaskSyncRequest.part + */ + part: { + /** + * @generated from field: flyteidl.admin.CreateRequestHeader header = 1; + */ + value: CreateRequestHeader; + case: "header"; + } | { + /** + * @generated from field: flyteidl.core.LiteralMap inputs = 2; + */ + value: LiteralMap; + case: "inputs"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecuteTaskSyncRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "header", kind: "message", T: CreateRequestHeader, oneof: "part" }, + { no: 2, name: "inputs", kind: "message", T: LiteralMap, oneof: "part" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncRequest { + return new ExecuteTaskSyncRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncRequest { + return new ExecuteTaskSyncRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncRequest { + return new ExecuteTaskSyncRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteTaskSyncRequest | PlainMessage | undefined, b: ExecuteTaskSyncRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteTaskSyncRequest, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecuteTaskSyncResponseHeader + */ +export class ExecuteTaskSyncResponseHeader extends Message { + /** + * @generated from field: flyteidl.admin.Resource resource = 1; + */ + resource?: Resource; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecuteTaskSyncResponseHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource", kind: "message", T: Resource }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncResponseHeader { + return new ExecuteTaskSyncResponseHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncResponseHeader { + return new ExecuteTaskSyncResponseHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncResponseHeader { + return new ExecuteTaskSyncResponseHeader().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteTaskSyncResponseHeader | PlainMessage | undefined, b: ExecuteTaskSyncResponseHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteTaskSyncResponseHeader, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecuteTaskSyncResponse + */ +export class ExecuteTaskSyncResponse extends Message { + /** + * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + * Resource is for synchronous task execution. + * + * @generated from oneof flyteidl.admin.ExecuteTaskSyncResponse.res + */ + res: { + /** + * @generated from field: flyteidl.admin.ExecuteTaskSyncResponseHeader header = 1; + */ + value: ExecuteTaskSyncResponseHeader; + case: "header"; + } | { + /** + * @generated from field: flyteidl.core.LiteralMap outputs = 2; + */ + value: LiteralMap; + case: "outputs"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecuteTaskSyncResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "header", kind: "message", T: ExecuteTaskSyncResponseHeader, oneof: "res" }, + { no: 2, name: "outputs", kind: "message", T: LiteralMap, oneof: "res" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecuteTaskSyncResponse { + return new ExecuteTaskSyncResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecuteTaskSyncResponse { + return new ExecuteTaskSyncResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecuteTaskSyncResponse { + return new ExecuteTaskSyncResponse().fromJsonString(jsonString, options); + } + + static equals(a: ExecuteTaskSyncResponse | PlainMessage | undefined, b: ExecuteTaskSyncResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecuteTaskSyncResponse, a, b); + } +} + +/** + * A message used to fetch a job resource from flyte agent server. + * + * @generated from message flyteidl.admin.GetTaskRequest + */ +export class GetTaskRequest extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated + */ + deprecatedTaskType = ""; + + /** + * Metadata about the resource to be pass to the agent. + * + * @generated from field: bytes resource_meta = 2; + */ + resourceMeta = new Uint8Array(0); + + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 3; + */ + taskType?: TaskType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "task_type", kind: "message", T: TaskType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskRequest { + return new GetTaskRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskRequest { + return new GetTaskRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskRequest { + return new GetTaskRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskRequest | PlainMessage | undefined, b: GetTaskRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskRequest, a, b); + } +} + +/** + * Response to get an individual task resource. + * + * @generated from message flyteidl.admin.GetTaskResponse + */ +export class GetTaskResponse extends Message { + /** + * @generated from field: flyteidl.admin.Resource resource = 1; + */ + resource?: Resource; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource", kind: "message", T: Resource }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskResponse { + return new GetTaskResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskResponse { + return new GetTaskResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskResponse { + return new GetTaskResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskResponse | PlainMessage | undefined, b: GetTaskResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskResponse, a, b); + } +} + +/** + * @generated from message flyteidl.admin.Resource + */ +export class Resource extends Message { + /** + * DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI. + * + * @generated from field: flyteidl.admin.State state = 1 [deprecated = true]; + * @deprecated + */ + state = State.RETRYABLE_FAILURE; + + /** + * The outputs of the execution. It's typically used by sql task. Agent service will create a + * Structured dataset pointing to the query result table. + * +optional + * + * @generated from field: flyteidl.core.LiteralMap outputs = 2; + */ + outputs?: LiteralMap; + + /** + * A descriptive message for the current state. e.g. waiting for cluster. + * + * @generated from field: string message = 3; + */ + message = ""; + + /** + * log information for the task execution. + * + * @generated from field: repeated flyteidl.core.TaskLog log_links = 4; + */ + logLinks: TaskLog[] = []; + + /** + * The phase of the execution is used to determine the phase of the plugin's execution. + * + * @generated from field: flyteidl.core.TaskExecution.Phase phase = 5; + */ + phase = TaskExecution_Phase.UNDEFINED; + + /** + * Custom data specific to the agent. + * + * @generated from field: google.protobuf.Struct custom_info = 6; + */ + customInfo?: Struct; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Resource"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 2, name: "outputs", kind: "message", T: LiteralMap }, + { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "log_links", kind: "message", T: TaskLog, repeated: true }, + { no: 5, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, + { no: 6, name: "custom_info", kind: "message", T: Struct }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resource { + return new Resource().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resource { + return new Resource().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resource { + return new Resource().fromJsonString(jsonString, options); + } + + static equals(a: Resource | PlainMessage | undefined, b: Resource | PlainMessage | undefined): boolean { + return proto3.util.equals(Resource, a, b); + } +} + +/** + * A message used to delete a task. + * + * @generated from message flyteidl.admin.DeleteTaskRequest + */ +export class DeleteTaskRequest extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated + */ + deprecatedTaskType = ""; + + /** + * Metadata about the resource to be pass to the agent. + * + * @generated from field: bytes resource_meta = 2; + */ + resourceMeta = new Uint8Array(0); + + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 3; + */ + taskType?: TaskType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DeleteTaskRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "task_type", kind: "message", T: TaskType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteTaskRequest { + return new DeleteTaskRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteTaskRequest { + return new DeleteTaskRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeleteTaskRequest { + return new DeleteTaskRequest().fromJsonString(jsonString, options); + } + + static equals(a: DeleteTaskRequest | PlainMessage | undefined, b: DeleteTaskRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(DeleteTaskRequest, a, b); + } +} + +/** + * Response to delete a task. + * + * @generated from message flyteidl.admin.DeleteTaskResponse + */ +export class DeleteTaskResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DeleteTaskResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DeleteTaskResponse { + return new DeleteTaskResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DeleteTaskResponse { + return new DeleteTaskResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DeleteTaskResponse { + return new DeleteTaskResponse().fromJsonString(jsonString, options); + } + + static equals(a: DeleteTaskResponse | PlainMessage | undefined, b: DeleteTaskResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DeleteTaskResponse, a, b); + } +} + +/** + * A message containing the agent metadata. + * + * @generated from message flyteidl.admin.Agent + */ +export class Agent extends Message { + /** + * Name is the developer-assigned name of the agent. + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * SupportedTaskTypes are the types of the tasks that the agent can handle. + * + * @generated from field: repeated string deprecated_supported_task_types = 2 [deprecated = true]; + * @deprecated + */ + deprecatedSupportedTaskTypes: string[] = []; + + /** + * IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + * results synchronously when called by propeller. Given that sync agents can affect the performance + * of the system, it's important to enforce strict timeout policies. + * An Async agent, on the other hand, is required to be able to identify jobs by an + * identifier and query for job statuses as jobs progress. + * + * @generated from field: bool is_sync = 3; + */ + isSync = false; + + /** + * SupportedTaskTypes are the types of the tasks that the agent can handle. + * + * @generated from field: repeated flyteidl.admin.TaskType supported_task_types = 4; + */ + supportedTaskTypes: TaskType[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Agent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "deprecated_supported_task_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "is_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Agent { + return new Agent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Agent { + return new Agent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Agent { + return new Agent().fromJsonString(jsonString, options); + } + + static equals(a: Agent | PlainMessage | undefined, b: Agent | PlainMessage | undefined): boolean { + return proto3.util.equals(Agent, a, b); + } +} + +/** + * @generated from message flyteidl.admin.TaskType + */ +export class TaskType extends Message { + /** + * The name of the task type. + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * The version of the task type. + * + * @generated from field: int32 version = 2; + */ + version = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskType { + return new TaskType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskType { + return new TaskType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskType { + return new TaskType().fromJsonString(jsonString, options); + } + + static equals(a: TaskType | PlainMessage | undefined, b: TaskType | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskType, a, b); + } +} + +/** + * A request to get an agent. + * + * @generated from message flyteidl.admin.GetAgentRequest + */ +export class GetAgentRequest extends Message { + /** + * The name of the agent. + * + * @generated from field: string name = 1; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetAgentRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAgentRequest { + return new GetAgentRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAgentRequest { + return new GetAgentRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAgentRequest { + return new GetAgentRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetAgentRequest | PlainMessage | undefined, b: GetAgentRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAgentRequest, a, b); + } +} + +/** + * A response containing an agent. + * + * @generated from message flyteidl.admin.GetAgentResponse + */ +export class GetAgentResponse extends Message { + /** + * @generated from field: flyteidl.admin.Agent agent = 1; + */ + agent?: Agent; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetAgentResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "agent", kind: "message", T: Agent }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetAgentResponse { + return new GetAgentResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetAgentResponse { + return new GetAgentResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetAgentResponse { + return new GetAgentResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetAgentResponse | PlainMessage | undefined, b: GetAgentResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetAgentResponse, a, b); + } +} + +/** + * A request to list all agents. + * + * @generated from message flyteidl.admin.ListAgentsRequest + */ +export class ListAgentsRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ListAgentsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListAgentsRequest { + return new ListAgentsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListAgentsRequest { + return new ListAgentsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListAgentsRequest { + return new ListAgentsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListAgentsRequest | PlainMessage | undefined, b: ListAgentsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListAgentsRequest, a, b); + } +} + +/** + * A response containing a list of agents. + * + * @generated from message flyteidl.admin.ListAgentsResponse + */ +export class ListAgentsResponse extends Message { + /** + * @generated from field: repeated flyteidl.admin.Agent agents = 1; + */ + agents: Agent[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ListAgentsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "agents", kind: "message", T: Agent, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListAgentsResponse { + return new ListAgentsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListAgentsResponse { + return new ListAgentsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListAgentsResponse { + return new ListAgentsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListAgentsResponse | PlainMessage | undefined, b: ListAgentsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListAgentsResponse, a, b); + } +} + +/** + * A request to get the metrics from a task execution. + * + * @generated from message flyteidl.admin.GetTaskMetricsRequest + */ +export class GetTaskMetricsRequest extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated + */ + deprecatedTaskType = ""; + + /** + * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + * + * @generated from field: bytes resource_meta = 2; + */ + resourceMeta = new Uint8Array(0); + + /** + * The metrics to query. If empty, will return a default set of metrics. + * e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG + * + * @generated from field: repeated string queries = 3; + */ + queries: string[] = []; + + /** + * Start timestamp, inclusive. + * + * @generated from field: google.protobuf.Timestamp start_time = 4; + */ + startTime?: Timestamp; + + /** + * End timestamp, inclusive.. + * + * @generated from field: google.protobuf.Timestamp end_time = 5; + */ + endTime?: Timestamp; + + /** + * Query resolution step width in duration format or float number of seconds. + * + * @generated from field: google.protobuf.Duration step = 6; + */ + step?: Duration; + + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 7; + */ + taskType?: TaskType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskMetricsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "queries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "start_time", kind: "message", T: Timestamp }, + { no: 5, name: "end_time", kind: "message", T: Timestamp }, + { no: 6, name: "step", kind: "message", T: Duration }, + { no: 7, name: "task_type", kind: "message", T: TaskType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskMetricsRequest { + return new GetTaskMetricsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskMetricsRequest { + return new GetTaskMetricsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskMetricsRequest { + return new GetTaskMetricsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskMetricsRequest | PlainMessage | undefined, b: GetTaskMetricsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskMetricsRequest, a, b); + } +} + +/** + * A response containing a list of metrics for a task execution. + * + * @generated from message flyteidl.admin.GetTaskMetricsResponse + */ +export class GetTaskMetricsResponse extends Message { + /** + * The execution metric results. + * + * @generated from field: repeated flyteidl.core.ExecutionMetricResult results = 1; + */ + results: ExecutionMetricResult[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskMetricsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "results", kind: "message", T: ExecutionMetricResult, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskMetricsResponse { + return new GetTaskMetricsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskMetricsResponse { + return new GetTaskMetricsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskMetricsResponse { + return new GetTaskMetricsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskMetricsResponse | PlainMessage | undefined, b: GetTaskMetricsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskMetricsResponse, a, b); + } +} + +/** + * A request to get the log from a task execution. + * + * @generated from message flyteidl.admin.GetTaskLogsRequest + */ +export class GetTaskLogsRequest extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @deprecated + */ + deprecatedTaskType = ""; + + /** + * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + * + * @generated from field: bytes resource_meta = 2; + */ + resourceMeta = new Uint8Array(0); + + /** + * Number of lines to return. + * + * @generated from field: uint64 lines = 3; + */ + lines = protoInt64.zero; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 4; + */ + token = ""; + + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: flyteidl.admin.TaskType task_type = 5; + */ + taskType?: TaskType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskLogsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 3, name: "lines", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, + { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "task_type", kind: "message", T: TaskType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsRequest { + return new GetTaskLogsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsRequest { + return new GetTaskLogsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsRequest { + return new GetTaskLogsRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskLogsRequest | PlainMessage | undefined, b: GetTaskLogsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskLogsRequest, a, b); + } +} + +/** + * @generated from message flyteidl.admin.GetTaskLogsResponseHeader + */ +export class GetTaskLogsResponseHeader extends Message { + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 1; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskLogsResponseHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponseHeader { + return new GetTaskLogsResponseHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponseHeader { + return new GetTaskLogsResponseHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponseHeader { + return new GetTaskLogsResponseHeader().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskLogsResponseHeader | PlainMessage | undefined, b: GetTaskLogsResponseHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskLogsResponseHeader, a, b); + } +} + +/** + * @generated from message flyteidl.admin.GetTaskLogsResponseBody + */ +export class GetTaskLogsResponseBody extends Message { + /** + * The execution log results. + * + * @generated from field: repeated string results = 1; + */ + results: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskLogsResponseBody"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "results", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponseBody { + return new GetTaskLogsResponseBody().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponseBody { + return new GetTaskLogsResponseBody().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponseBody { + return new GetTaskLogsResponseBody().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskLogsResponseBody | PlainMessage | undefined, b: GetTaskLogsResponseBody | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskLogsResponseBody, a, b); + } +} + +/** + * A response containing the logs for a task execution. + * + * @generated from message flyteidl.admin.GetTaskLogsResponse + */ +export class GetTaskLogsResponse extends Message { + /** + * @generated from oneof flyteidl.admin.GetTaskLogsResponse.part + */ + part: { + /** + * @generated from field: flyteidl.admin.GetTaskLogsResponseHeader header = 1; + */ + value: GetTaskLogsResponseHeader; + case: "header"; + } | { + /** + * @generated from field: flyteidl.admin.GetTaskLogsResponseBody body = 2; + */ + value: GetTaskLogsResponseBody; + case: "body"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetTaskLogsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "header", kind: "message", T: GetTaskLogsResponseHeader, oneof: "part" }, + { no: 2, name: "body", kind: "message", T: GetTaskLogsResponseBody, oneof: "part" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsResponse { + return new GetTaskLogsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetTaskLogsResponse { + return new GetTaskLogsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetTaskLogsResponse { + return new GetTaskLogsResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetTaskLogsResponse | PlainMessage | undefined, b: GetTaskLogsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetTaskLogsResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts new file mode 100644 index 0000000000..257f644343 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/cluster_assignment_pb.ts @@ -0,0 +1,47 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/cluster_assignment.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Encapsulates specifications for routing an execution onto a specific cluster. + * + * @generated from message flyteidl.admin.ClusterAssignment + */ +export class ClusterAssignment extends Message { + /** + * @generated from field: string cluster_pool_name = 3; + */ + clusterPoolName = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ClusterAssignment"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 3, name: "cluster_pool_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClusterAssignment { + return new ClusterAssignment().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClusterAssignment { + return new ClusterAssignment().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClusterAssignment { + return new ClusterAssignment().fromJsonString(jsonString, options); + } + + static equals(a: ClusterAssignment | PlainMessage | undefined, b: ClusterAssignment | PlainMessage | undefined): boolean { + return proto3.util.equals(ClusterAssignment, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts new file mode 100644 index 0000000000..52ee165d36 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/common_pb.ts @@ -0,0 +1,1388 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/common.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Identifier, ResourceType } from "../core/identifier_pb.js"; +import { WorkflowExecution_Phase } from "../core/execution_pb.js"; +import { KeyValuePair } from "../core/literals_pb.js"; + +/** + * The status of the named entity is used to control its visibility in the UI. + * + * @generated from enum flyteidl.admin.NamedEntityState + */ +export enum NamedEntityState { + /** + * By default, all named entities are considered active and under development. + * + * @generated from enum value: NAMED_ENTITY_ACTIVE = 0; + */ + NAMED_ENTITY_ACTIVE = 0, + + /** + * Archived named entities are no longer visible in the UI. + * + * @generated from enum value: NAMED_ENTITY_ARCHIVED = 1; + */ + NAMED_ENTITY_ARCHIVED = 1, + + /** + * System generated entities that aren't explicitly created or managed by a user. + * + * @generated from enum value: SYSTEM_GENERATED = 2; + */ + SYSTEM_GENERATED = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(NamedEntityState) +proto3.util.setEnumType(NamedEntityState, "flyteidl.admin.NamedEntityState", [ + { no: 0, name: "NAMED_ENTITY_ACTIVE" }, + { no: 1, name: "NAMED_ENTITY_ARCHIVED" }, + { no: 2, name: "SYSTEM_GENERATED" }, +]); + +/** + * Encapsulation of fields that identifies a Flyte resource. + * A Flyte resource can be a task, workflow or launch plan. + * A resource can internally have multiple versions and is uniquely identified + * by project, domain, and name. + * + * @generated from message flyteidl.admin.NamedEntityIdentifier + */ +export class NamedEntityIdentifier extends Message { + /** + * Name of the project the resource belongs to. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Name of the domain the resource belongs to. + * A domain can be considered as a subset within a specific project. + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * User provided value for the resource. + * The combination of project + domain + name uniquely identifies the resource. + * +optional - in certain contexts - like 'List API', 'Launch plans' + * + * @generated from field: string name = 3; + */ + name = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 4; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityIdentifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityIdentifier { + return new NamedEntityIdentifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityIdentifier { + return new NamedEntityIdentifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityIdentifier { + return new NamedEntityIdentifier().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityIdentifier | PlainMessage | undefined, b: NamedEntityIdentifier | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityIdentifier, a, b); + } +} + +/** + * Additional metadata around a named entity. + * + * @generated from message flyteidl.admin.NamedEntityMetadata + */ +export class NamedEntityMetadata extends Message { + /** + * Common description across all versions of the entity + * +optional + * + * @generated from field: string description = 1; + */ + description = ""; + + /** + * Shared state across all version of the entity + * At this point in time, only workflow entities can have their state archived. + * + * @generated from field: flyteidl.admin.NamedEntityState state = 2; + */ + state = NamedEntityState.NAMED_ENTITY_ACTIVE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(NamedEntityState) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityMetadata { + return new NamedEntityMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityMetadata { + return new NamedEntityMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityMetadata { + return new NamedEntityMetadata().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityMetadata | PlainMessage | undefined, b: NamedEntityMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityMetadata, a, b); + } +} + +/** + * Encapsulates information common to a NamedEntity, a Flyte resource such as a task, + * workflow or launch plan. A NamedEntity is exclusively identified by its resource type + * and identifier. + * + * @generated from message flyteidl.admin.NamedEntity + */ +export class NamedEntity extends Message { + /** + * Resource type of the named entity. One of Task, Workflow or LaunchPlan. + * + * @generated from field: flyteidl.core.ResourceType resource_type = 1; + */ + resourceType = ResourceType.UNSPECIFIED; + + /** + * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; + */ + id?: NamedEntityIdentifier; + + /** + * Additional metadata around a named entity. + * + * @generated from field: flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + metadata?: NamedEntityMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, + { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, + { no: 3, name: "metadata", kind: "message", T: NamedEntityMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntity { + return new NamedEntity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntity { + return new NamedEntity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntity { + return new NamedEntity().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntity | PlainMessage | undefined, b: NamedEntity | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntity, a, b); + } +} + +/** + * Specifies sort ordering in a list request. + * + * @generated from message flyteidl.admin.Sort + */ +export class Sort extends Message { + /** + * Indicates an attribute to sort the response values. + * +required + * + * @generated from field: string key = 1; + */ + key = ""; + + /** + * Indicates the direction to apply sort key for response values. + * +optional + * + * @generated from field: flyteidl.admin.Sort.Direction direction = 2; + */ + direction = Sort_Direction.DESCENDING; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Sort"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "direction", kind: "enum", T: proto3.getEnumType(Sort_Direction) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Sort { + return new Sort().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Sort { + return new Sort().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Sort { + return new Sort().fromJsonString(jsonString, options); + } + + static equals(a: Sort | PlainMessage | undefined, b: Sort | PlainMessage | undefined): boolean { + return proto3.util.equals(Sort, a, b); + } +} + +/** + * @generated from enum flyteidl.admin.Sort.Direction + */ +export enum Sort_Direction { + /** + * By default, fields are sorted in descending order. + * + * @generated from enum value: DESCENDING = 0; + */ + DESCENDING = 0, + + /** + * @generated from enum value: ASCENDING = 1; + */ + ASCENDING = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(Sort_Direction) +proto3.util.setEnumType(Sort_Direction, "flyteidl.admin.Sort.Direction", [ + { no: 0, name: "DESCENDING" }, + { no: 1, name: "ASCENDING" }, +]); + +/** + * Represents a request structure to list NamedEntityIdentifiers. + * + * @generated from message flyteidl.admin.NamedEntityIdentifierListRequest + */ +export class NamedEntityIdentifierListRequest extends Message { + /** + * Name of the project that contains the identifiers. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Name of the domain the identifiers belongs to within the project. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 3; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 4; + */ + token = ""; + + /** + * Specifies how listed entities should be sorted in the response. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + /** + * Indicates a list of filters passed as string. + * +optional + * + * @generated from field: string filters = 6; + */ + filters = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 7; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityIdentifierListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + { no: 6, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityIdentifierListRequest { + return new NamedEntityIdentifierListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityIdentifierListRequest { + return new NamedEntityIdentifierListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityIdentifierListRequest { + return new NamedEntityIdentifierListRequest().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityIdentifierListRequest | PlainMessage | undefined, b: NamedEntityIdentifierListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityIdentifierListRequest, a, b); + } +} + +/** + * Represents a request structure to list NamedEntity objects + * + * @generated from message flyteidl.admin.NamedEntityListRequest + */ +export class NamedEntityListRequest extends Message { + /** + * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. + * +required + * + * @generated from field: flyteidl.core.ResourceType resource_type = 1; + */ + resourceType = ResourceType.UNSPECIFIED; + + /** + * Name of the project that contains the identifiers. + * +required + * + * @generated from field: string project = 2; + */ + project = ""; + + /** + * Name of the domain the identifiers belongs to within the project. + * + * @generated from field: string domain = 3; + */ + domain = ""; + + /** + * Indicates the number of resources to be returned. + * + * @generated from field: uint32 limit = 4; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 5; + */ + token = ""; + + /** + * Specifies how listed entities should be sorted in the response. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 6; + */ + sortBy?: Sort; + + /** + * Indicates a list of filters passed as string. + * +optional + * + * @generated from field: string filters = 7; + */ + filters = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 8; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, + { no: 2, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 5, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "sort_by", kind: "message", T: Sort }, + { no: 7, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityListRequest { + return new NamedEntityListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityListRequest { + return new NamedEntityListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityListRequest { + return new NamedEntityListRequest().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityListRequest | PlainMessage | undefined, b: NamedEntityListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityListRequest, a, b); + } +} + +/** + * Represents a list of NamedEntityIdentifiers. + * + * @generated from message flyteidl.admin.NamedEntityIdentifierList + */ +export class NamedEntityIdentifierList extends Message { + /** + * A list of identifiers. + * + * @generated from field: repeated flyteidl.admin.NamedEntityIdentifier entities = 1; + */ + entities: NamedEntityIdentifier[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityIdentifierList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entities", kind: "message", T: NamedEntityIdentifier, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityIdentifierList { + return new NamedEntityIdentifierList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityIdentifierList { + return new NamedEntityIdentifierList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityIdentifierList { + return new NamedEntityIdentifierList().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityIdentifierList | PlainMessage | undefined, b: NamedEntityIdentifierList | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityIdentifierList, a, b); + } +} + +/** + * Represents a list of NamedEntityIdentifiers. + * + * @generated from message flyteidl.admin.NamedEntityList + */ +export class NamedEntityList extends Message { + /** + * A list of NamedEntity objects + * + * @generated from field: repeated flyteidl.admin.NamedEntity entities = 1; + */ + entities: NamedEntity[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "entities", kind: "message", T: NamedEntity, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityList { + return new NamedEntityList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityList { + return new NamedEntityList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityList { + return new NamedEntityList().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityList | PlainMessage | undefined, b: NamedEntityList | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityList, a, b); + } +} + +/** + * A request to retrieve the metadata associated with a NamedEntityIdentifier + * + * @generated from message flyteidl.admin.NamedEntityGetRequest + */ +export class NamedEntityGetRequest extends Message { + /** + * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. + * +required + * + * @generated from field: flyteidl.core.ResourceType resource_type = 1; + */ + resourceType = ResourceType.UNSPECIFIED; + + /** + * The identifier for the named entity for which to fetch metadata. + * +required + * + * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; + */ + id?: NamedEntityIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, + { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityGetRequest { + return new NamedEntityGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityGetRequest { + return new NamedEntityGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityGetRequest { + return new NamedEntityGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityGetRequest | PlainMessage | undefined, b: NamedEntityGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityGetRequest, a, b); + } +} + +/** + * Request to set the referenced named entity state to the configured value. + * + * @generated from message flyteidl.admin.NamedEntityUpdateRequest + */ +export class NamedEntityUpdateRequest extends Message { + /** + * Resource type of the metadata to update + * +required + * + * @generated from field: flyteidl.core.ResourceType resource_type = 1; + */ + resourceType = ResourceType.UNSPECIFIED; + + /** + * Identifier of the metadata to update + * +required + * + * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; + */ + id?: NamedEntityIdentifier; + + /** + * Metadata object to set as the new value + * +required + * + * @generated from field: flyteidl.admin.NamedEntityMetadata metadata = 3; + */ + metadata?: NamedEntityMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityUpdateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, + { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, + { no: 3, name: "metadata", kind: "message", T: NamedEntityMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityUpdateRequest { + return new NamedEntityUpdateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityUpdateRequest { + return new NamedEntityUpdateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityUpdateRequest { + return new NamedEntityUpdateRequest().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityUpdateRequest | PlainMessage | undefined, b: NamedEntityUpdateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityUpdateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.NamedEntityUpdateResponse + */ +export class NamedEntityUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NamedEntityUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NamedEntityUpdateResponse { + return new NamedEntityUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NamedEntityUpdateResponse { + return new NamedEntityUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NamedEntityUpdateResponse { + return new NamedEntityUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: NamedEntityUpdateResponse | PlainMessage | undefined, b: NamedEntityUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(NamedEntityUpdateResponse, a, b); + } +} + +/** + * Shared request structure to fetch a single resource. + * Resources include: Task, Workflow, LaunchPlan + * + * @generated from message flyteidl.admin.ObjectGetRequest + */ +export class ObjectGetRequest extends Message { + /** + * Indicates a unique version of resource. + * +required + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ObjectGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ObjectGetRequest { + return new ObjectGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ObjectGetRequest { + return new ObjectGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ObjectGetRequest { + return new ObjectGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: ObjectGetRequest | PlainMessage | undefined, b: ObjectGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ObjectGetRequest, a, b); + } +} + +/** + * Shared request structure to retrieve a list of resources. + * Resources include: Task, Workflow, LaunchPlan + * + * @generated from message flyteidl.admin.ResourceListRequest + */ +export class ResourceListRequest extends Message { + /** + * id represents the unique identifier of the resource. + * +required + * + * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 1; + */ + id?: NamedEntityIdentifier; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 2; + */ + limit = 0; + + /** + * In the case of multiple pages of results, this server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 3; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * More info on constructing filters : + * +optional + * + * @generated from field: string filters = 4; + */ + filters = ""; + + /** + * Sort ordering. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ResourceListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NamedEntityIdentifier }, + { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResourceListRequest { + return new ResourceListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResourceListRequest { + return new ResourceListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResourceListRequest { + return new ResourceListRequest().fromJsonString(jsonString, options); + } + + static equals(a: ResourceListRequest | PlainMessage | undefined, b: ResourceListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ResourceListRequest, a, b); + } +} + +/** + * Defines an email notification specification. + * + * @generated from message flyteidl.admin.EmailNotification + */ +export class EmailNotification extends Message { + /** + * The list of email addresses recipients for this notification. + * +required + * + * @generated from field: repeated string recipients_email = 1; + */ + recipientsEmail: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.EmailNotification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmailNotification { + return new EmailNotification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmailNotification { + return new EmailNotification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmailNotification { + return new EmailNotification().fromJsonString(jsonString, options); + } + + static equals(a: EmailNotification | PlainMessage | undefined, b: EmailNotification | PlainMessage | undefined): boolean { + return proto3.util.equals(EmailNotification, a, b); + } +} + +/** + * Defines a pager duty notification specification. + * + * @generated from message flyteidl.admin.PagerDutyNotification + */ +export class PagerDutyNotification extends Message { + /** + * Currently, PagerDuty notifications leverage email to trigger a notification. + * +required + * + * @generated from field: repeated string recipients_email = 1; + */ + recipientsEmail: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.PagerDutyNotification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PagerDutyNotification { + return new PagerDutyNotification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PagerDutyNotification { + return new PagerDutyNotification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PagerDutyNotification { + return new PagerDutyNotification().fromJsonString(jsonString, options); + } + + static equals(a: PagerDutyNotification | PlainMessage | undefined, b: PagerDutyNotification | PlainMessage | undefined): boolean { + return proto3.util.equals(PagerDutyNotification, a, b); + } +} + +/** + * Defines a slack notification specification. + * + * @generated from message flyteidl.admin.SlackNotification + */ +export class SlackNotification extends Message { + /** + * Currently, Slack notifications leverage email to trigger a notification. + * +required + * + * @generated from field: repeated string recipients_email = 1; + */ + recipientsEmail: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SlackNotification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SlackNotification { + return new SlackNotification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SlackNotification { + return new SlackNotification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SlackNotification { + return new SlackNotification().fromJsonString(jsonString, options); + } + + static equals(a: SlackNotification | PlainMessage | undefined, b: SlackNotification | PlainMessage | undefined): boolean { + return proto3.util.equals(SlackNotification, a, b); + } +} + +/** + * Represents a structure for notifications based on execution status. + * The notification content is configured within flyte admin but can be templatized. + * Future iterations could expose configuring notifications with custom content. + * + * @generated from message flyteidl.admin.Notification + */ +export class Notification extends Message { + /** + * A list of phases to which users can associate the notifications to. + * +required + * + * @generated from field: repeated flyteidl.core.WorkflowExecution.Phase phases = 1; + */ + phases: WorkflowExecution_Phase[] = []; + + /** + * The type of notification to trigger. + * +required + * + * @generated from oneof flyteidl.admin.Notification.type + */ + type: { + /** + * @generated from field: flyteidl.admin.EmailNotification email = 2; + */ + value: EmailNotification; + case: "email"; + } | { + /** + * @generated from field: flyteidl.admin.PagerDutyNotification pager_duty = 3; + */ + value: PagerDutyNotification; + case: "pagerDuty"; + } | { + /** + * @generated from field: flyteidl.admin.SlackNotification slack = 4; + */ + value: SlackNotification; + case: "slack"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Notification"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "phases", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase), repeated: true }, + { no: 2, name: "email", kind: "message", T: EmailNotification, oneof: "type" }, + { no: 3, name: "pager_duty", kind: "message", T: PagerDutyNotification, oneof: "type" }, + { no: 4, name: "slack", kind: "message", T: SlackNotification, oneof: "type" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Notification { + return new Notification().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Notification { + return new Notification().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Notification { + return new Notification().fromJsonString(jsonString, options); + } + + static equals(a: Notification | PlainMessage | undefined, b: Notification | PlainMessage | undefined): boolean { + return proto3.util.equals(Notification, a, b); + } +} + +/** + * Represents a string url and associated metadata used throughout the platform. + * + * @generated from message flyteidl.admin.UrlBlob + * @deprecated + */ +export class UrlBlob extends Message { + /** + * Actual url value. + * + * @generated from field: string url = 1; + */ + url = ""; + + /** + * Represents the size of the file accessible at the above url. + * + * @generated from field: int64 bytes = 2; + */ + bytes = protoInt64.zero; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.UrlBlob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "bytes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UrlBlob { + return new UrlBlob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UrlBlob { + return new UrlBlob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UrlBlob { + return new UrlBlob().fromJsonString(jsonString, options); + } + + static equals(a: UrlBlob | PlainMessage | undefined, b: UrlBlob | PlainMessage | undefined): boolean { + return proto3.util.equals(UrlBlob, a, b); + } +} + +/** + * Label values to be applied to an execution resource. + * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined + * to specify how to merge labels defined at registration and execution time. + * + * @generated from message flyteidl.admin.Labels + */ +export class Labels extends Message { + /** + * Map of custom labels to be applied to the execution resource. + * + * @generated from field: map values = 1; + */ + values: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Labels"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Labels { + return new Labels().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Labels { + return new Labels().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Labels { + return new Labels().fromJsonString(jsonString, options); + } + + static equals(a: Labels | PlainMessage | undefined, b: Labels | PlainMessage | undefined): boolean { + return proto3.util.equals(Labels, a, b); + } +} + +/** + * Annotation values to be applied to an execution resource. + * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined + * to specify how to merge annotations defined at registration and execution time. + * + * @generated from message flyteidl.admin.Annotations + */ +export class Annotations extends Message { + /** + * Map of custom annotations to be applied to the execution resource. + * + * @generated from field: map values = 1; + */ + values: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Annotations"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Annotations { + return new Annotations().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Annotations { + return new Annotations().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Annotations { + return new Annotations().fromJsonString(jsonString, options); + } + + static equals(a: Annotations | PlainMessage | undefined, b: Annotations | PlainMessage | undefined): boolean { + return proto3.util.equals(Annotations, a, b); + } +} + +/** + * Environment variable values to be applied to an execution resource. + * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined + * to specify how to merge environment variables defined at registration and execution time. + * + * @generated from message flyteidl.admin.Envs + */ +export class Envs extends Message { + /** + * Map of custom environment variables to be applied to the execution resource. + * + * @generated from field: repeated flyteidl.core.KeyValuePair values = 1; + */ + values: KeyValuePair[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Envs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "values", kind: "message", T: KeyValuePair, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Envs { + return new Envs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Envs { + return new Envs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Envs { + return new Envs().fromJsonString(jsonString, options); + } + + static equals(a: Envs | PlainMessage | undefined, b: Envs | PlainMessage | undefined): boolean { + return proto3.util.equals(Envs, a, b); + } +} + +/** + * Defines permissions associated with executions created by this launch plan spec. + * Use either of these roles when they have permissions required by your workflow execution. + * Deprecated. + * + * @generated from message flyteidl.admin.AuthRole + * @deprecated + */ +export class AuthRole extends Message { + /** + * Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + * + * @generated from field: string assumable_iam_role = 1; + */ + assumableIamRole = ""; + + /** + * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + * + * @generated from field: string kubernetes_service_account = 2; + */ + kubernetesServiceAccount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.AuthRole"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "assumable_iam_role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "kubernetes_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AuthRole { + return new AuthRole().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AuthRole { + return new AuthRole().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AuthRole { + return new AuthRole().fromJsonString(jsonString, options); + } + + static equals(a: AuthRole | PlainMessage | undefined, b: AuthRole | PlainMessage | undefined): boolean { + return proto3.util.equals(AuthRole, a, b); + } +} + +/** + * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + * See https://github.com/flyteorg/flyte/issues/211 for more background information. + * + * @generated from message flyteidl.admin.RawOutputDataConfig + */ +export class RawOutputDataConfig extends Message { + /** + * Prefix for where offloaded data from user workflows will be written + * e.g. s3://bucket/key or s3://bucket/ + * + * @generated from field: string output_location_prefix = 1; + */ + outputLocationPrefix = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.RawOutputDataConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "output_location_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RawOutputDataConfig { + return new RawOutputDataConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RawOutputDataConfig { + return new RawOutputDataConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RawOutputDataConfig { + return new RawOutputDataConfig().fromJsonString(jsonString, options); + } + + static equals(a: RawOutputDataConfig | PlainMessage | undefined, b: RawOutputDataConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(RawOutputDataConfig, a, b); + } +} + +/** + * These URLs are returned as part of node and task execution data requests. + * + * @generated from message flyteidl.admin.FlyteURLs + */ +export class FlyteURLs extends Message { + /** + * @generated from field: string inputs = 1; + */ + inputs = ""; + + /** + * @generated from field: string outputs = 2; + */ + outputs = ""; + + /** + * @generated from field: string deck = 3; + */ + deck = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.FlyteURLs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inputs", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "outputs", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "deck", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FlyteURLs { + return new FlyteURLs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FlyteURLs { + return new FlyteURLs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FlyteURLs { + return new FlyteURLs().fromJsonString(jsonString, options); + } + + static equals(a: FlyteURLs | PlainMessage | undefined, b: FlyteURLs | PlainMessage | undefined): boolean { + return proto3.util.equals(FlyteURLs, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts new file mode 100644 index 0000000000..fe20c24152 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/description_entity_pb.ts @@ -0,0 +1,375 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/description_entity.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Identifier, ResourceType } from "../core/identifier_pb.js"; +import { NamedEntityIdentifier, Sort } from "./common_pb.js"; + +/** + * The format of the long description + * + * @generated from enum flyteidl.admin.DescriptionFormat + */ +export enum DescriptionFormat { + /** + * @generated from enum value: DESCRIPTION_FORMAT_UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: DESCRIPTION_FORMAT_MARKDOWN = 1; + */ + MARKDOWN = 1, + + /** + * @generated from enum value: DESCRIPTION_FORMAT_HTML = 2; + */ + HTML = 2, + + /** + * python default documentation - comments is rst + * + * @generated from enum value: DESCRIPTION_FORMAT_RST = 3; + */ + RST = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(DescriptionFormat) +proto3.util.setEnumType(DescriptionFormat, "flyteidl.admin.DescriptionFormat", [ + { no: 0, name: "DESCRIPTION_FORMAT_UNKNOWN" }, + { no: 1, name: "DESCRIPTION_FORMAT_MARKDOWN" }, + { no: 2, name: "DESCRIPTION_FORMAT_HTML" }, + { no: 3, name: "DESCRIPTION_FORMAT_RST" }, +]); + +/** + * DescriptionEntity contains detailed description for the task/workflow. + * Documentation could provide insight into the algorithms, business use case, etc. + * + * @generated from message flyteidl.admin.DescriptionEntity + */ +export class DescriptionEntity extends Message { + /** + * id represents the unique identifier of the description entity. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * One-liner overview of the entity. + * + * @generated from field: string short_description = 2; + */ + shortDescription = ""; + + /** + * Full user description with formatting preserved. + * + * @generated from field: flyteidl.admin.Description long_description = 3; + */ + longDescription?: Description; + + /** + * Optional link to source code used to define this entity. + * + * @generated from field: flyteidl.admin.SourceCode source_code = 4; + */ + sourceCode?: SourceCode; + + /** + * User-specified tags. These are arbitrary and can be used for searching + * filtering and discovering tasks. + * + * @generated from field: repeated string tags = 5; + */ + tags: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DescriptionEntity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "short_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "long_description", kind: "message", T: Description }, + { no: 4, name: "source_code", kind: "message", T: SourceCode }, + { no: 5, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DescriptionEntity { + return new DescriptionEntity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DescriptionEntity { + return new DescriptionEntity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DescriptionEntity { + return new DescriptionEntity().fromJsonString(jsonString, options); + } + + static equals(a: DescriptionEntity | PlainMessage | undefined, b: DescriptionEntity | PlainMessage | undefined): boolean { + return proto3.util.equals(DescriptionEntity, a, b); + } +} + +/** + * Full user description with formatting preserved. This can be rendered + * by clients, such as the console or command line tools with in-tact + * formatting. + * + * @generated from message flyteidl.admin.Description + */ +export class Description extends Message { + /** + * @generated from oneof flyteidl.admin.Description.content + */ + content: { + /** + * long description - no more than 4KB + * + * @generated from field: string value = 1; + */ + value: string; + case: "value"; + } | { + /** + * if the description sizes exceed some threshold we can offload the entire + * description proto altogether to an external data store, like S3 rather than store inline in the db + * + * @generated from field: string uri = 2; + */ + value: string; + case: "uri"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Format of the long description + * + * @generated from field: flyteidl.admin.DescriptionFormat format = 3; + */ + format = DescriptionFormat.UNKNOWN; + + /** + * Optional link to an icon for the entity + * + * @generated from field: string icon_link = 4; + */ + iconLink = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Description"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "content" }, + { no: 2, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "content" }, + { no: 3, name: "format", kind: "enum", T: proto3.getEnumType(DescriptionFormat) }, + { no: 4, name: "icon_link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Description { + return new Description().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Description { + return new Description().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Description { + return new Description().fromJsonString(jsonString, options); + } + + static equals(a: Description | PlainMessage | undefined, b: Description | PlainMessage | undefined): boolean { + return proto3.util.equals(Description, a, b); + } +} + +/** + * Link to source code used to define this entity + * + * @generated from message flyteidl.admin.SourceCode + */ +export class SourceCode extends Message { + /** + * @generated from field: string link = 1; + */ + link = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SourceCode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "link", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SourceCode { + return new SourceCode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SourceCode { + return new SourceCode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SourceCode { + return new SourceCode().fromJsonString(jsonString, options); + } + + static equals(a: SourceCode | PlainMessage | undefined, b: SourceCode | PlainMessage | undefined): boolean { + return proto3.util.equals(SourceCode, a, b); + } +} + +/** + * Represents a list of DescriptionEntities returned from the admin. + * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details + * + * @generated from message flyteidl.admin.DescriptionEntityList + */ +export class DescriptionEntityList extends Message { + /** + * A list of DescriptionEntities returned based on the request. + * + * @generated from field: repeated flyteidl.admin.DescriptionEntity descriptionEntities = 1; + */ + descriptionEntities: DescriptionEntity[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DescriptionEntityList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "descriptionEntities", kind: "message", T: DescriptionEntity, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DescriptionEntityList { + return new DescriptionEntityList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DescriptionEntityList { + return new DescriptionEntityList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DescriptionEntityList { + return new DescriptionEntityList().fromJsonString(jsonString, options); + } + + static equals(a: DescriptionEntityList | PlainMessage | undefined, b: DescriptionEntityList | PlainMessage | undefined): boolean { + return proto3.util.equals(DescriptionEntityList, a, b); + } +} + +/** + * Represents a request structure to retrieve a list of DescriptionEntities. + * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details + * + * @generated from message flyteidl.admin.DescriptionEntityListRequest + */ +export class DescriptionEntityListRequest extends Message { + /** + * Identifies the specific type of resource that this identifier corresponds to. + * + * @generated from field: flyteidl.core.ResourceType resource_type = 1; + */ + resourceType = ResourceType.UNSPECIFIED; + + /** + * The identifier for the description entity. + * +required + * + * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 2; + */ + id?: NamedEntityIdentifier; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 3; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 4; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * More info on constructing filters : + * +optional + * + * @generated from field: string filters = 5; + */ + filters = ""; + + /** + * Sort ordering for returned list. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 6; + */ + sortBy?: Sort; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DescriptionEntityListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, + { no: 2, name: "id", kind: "message", T: NamedEntityIdentifier }, + { no: 3, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "sort_by", kind: "message", T: Sort }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DescriptionEntityListRequest { + return new DescriptionEntityListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DescriptionEntityListRequest { + return new DescriptionEntityListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DescriptionEntityListRequest { + return new DescriptionEntityListRequest().fromJsonString(jsonString, options); + } + + static equals(a: DescriptionEntityListRequest | PlainMessage | undefined, b: DescriptionEntityListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(DescriptionEntityListRequest, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts new file mode 100644 index 0000000000..080d93f570 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/event_pb.ts @@ -0,0 +1,395 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/event.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { NodeExecutionEvent, TaskExecutionEvent, WorkflowExecutionEvent } from "../event/event_pb.js"; + +/** + * Indicates that a sent event was not used to update execution state due to + * the referenced execution already being terminated (and therefore ineligible + * for further state transitions). + * + * @generated from message flyteidl.admin.EventErrorAlreadyInTerminalState + */ +export class EventErrorAlreadyInTerminalState extends Message { + /** + * +required + * + * @generated from field: string current_phase = 1; + */ + currentPhase = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.EventErrorAlreadyInTerminalState"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "current_phase", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventErrorAlreadyInTerminalState { + return new EventErrorAlreadyInTerminalState().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventErrorAlreadyInTerminalState { + return new EventErrorAlreadyInTerminalState().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventErrorAlreadyInTerminalState { + return new EventErrorAlreadyInTerminalState().fromJsonString(jsonString, options); + } + + static equals(a: EventErrorAlreadyInTerminalState | PlainMessage | undefined, b: EventErrorAlreadyInTerminalState | PlainMessage | undefined): boolean { + return proto3.util.equals(EventErrorAlreadyInTerminalState, a, b); + } +} + +/** + * Indicates an event was rejected because it came from a different cluster than + * is on record as running the execution. + * + * @generated from message flyteidl.admin.EventErrorIncompatibleCluster + */ +export class EventErrorIncompatibleCluster extends Message { + /** + * The cluster which has been recorded as processing the execution. + * +required + * + * @generated from field: string cluster = 1; + */ + cluster = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.EventErrorIncompatibleCluster"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cluster", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventErrorIncompatibleCluster { + return new EventErrorIncompatibleCluster().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventErrorIncompatibleCluster { + return new EventErrorIncompatibleCluster().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventErrorIncompatibleCluster { + return new EventErrorIncompatibleCluster().fromJsonString(jsonString, options); + } + + static equals(a: EventErrorIncompatibleCluster | PlainMessage | undefined, b: EventErrorIncompatibleCluster | PlainMessage | undefined): boolean { + return proto3.util.equals(EventErrorIncompatibleCluster, a, b); + } +} + +/** + * Indicates why a sent event was not used to update execution. + * + * @generated from message flyteidl.admin.EventFailureReason + */ +export class EventFailureReason extends Message { + /** + * +required + * + * @generated from oneof flyteidl.admin.EventFailureReason.reason + */ + reason: { + /** + * @generated from field: flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; + */ + value: EventErrorAlreadyInTerminalState; + case: "alreadyInTerminalState"; + } | { + /** + * @generated from field: flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; + */ + value: EventErrorIncompatibleCluster; + case: "incompatibleCluster"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.EventFailureReason"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "already_in_terminal_state", kind: "message", T: EventErrorAlreadyInTerminalState, oneof: "reason" }, + { no: 2, name: "incompatible_cluster", kind: "message", T: EventErrorIncompatibleCluster, oneof: "reason" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventFailureReason { + return new EventFailureReason().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventFailureReason { + return new EventFailureReason().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventFailureReason { + return new EventFailureReason().fromJsonString(jsonString, options); + } + + static equals(a: EventFailureReason | PlainMessage | undefined, b: EventFailureReason | PlainMessage | undefined): boolean { + return proto3.util.equals(EventFailureReason, a, b); + } +} + +/** + * Request to send a notification that a workflow execution event has occurred. + * + * @generated from message flyteidl.admin.WorkflowExecutionEventRequest + */ +export class WorkflowExecutionEventRequest extends Message { + /** + * Unique ID for this request that can be traced between services + * + * @generated from field: string request_id = 1; + */ + requestId = ""; + + /** + * Details about the event that occurred. + * + * @generated from field: flyteidl.event.WorkflowExecutionEvent event = 2; + */ + event?: WorkflowExecutionEvent; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionEventRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "event", kind: "message", T: WorkflowExecutionEvent }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionEventRequest { + return new WorkflowExecutionEventRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionEventRequest { + return new WorkflowExecutionEventRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionEventRequest { + return new WorkflowExecutionEventRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionEventRequest | PlainMessage | undefined, b: WorkflowExecutionEventRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionEventRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.WorkflowExecutionEventResponse + */ +export class WorkflowExecutionEventResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionEventResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionEventResponse { + return new WorkflowExecutionEventResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionEventResponse { + return new WorkflowExecutionEventResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionEventResponse { + return new WorkflowExecutionEventResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionEventResponse | PlainMessage | undefined, b: WorkflowExecutionEventResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionEventResponse, a, b); + } +} + +/** + * Request to send a notification that a node execution event has occurred. + * + * @generated from message flyteidl.admin.NodeExecutionEventRequest + */ +export class NodeExecutionEventRequest extends Message { + /** + * Unique ID for this request that can be traced between services + * + * @generated from field: string request_id = 1; + */ + requestId = ""; + + /** + * Details about the event that occurred. + * + * @generated from field: flyteidl.event.NodeExecutionEvent event = 2; + */ + event?: NodeExecutionEvent; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionEventRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "event", kind: "message", T: NodeExecutionEvent }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionEventRequest { + return new NodeExecutionEventRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionEventRequest { + return new NodeExecutionEventRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionEventRequest { + return new NodeExecutionEventRequest().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionEventRequest | PlainMessage | undefined, b: NodeExecutionEventRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionEventRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.NodeExecutionEventResponse + */ +export class NodeExecutionEventResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionEventResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionEventResponse { + return new NodeExecutionEventResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionEventResponse { + return new NodeExecutionEventResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionEventResponse { + return new NodeExecutionEventResponse().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionEventResponse | PlainMessage | undefined, b: NodeExecutionEventResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionEventResponse, a, b); + } +} + +/** + * Request to send a notification that a task execution event has occurred. + * + * @generated from message flyteidl.admin.TaskExecutionEventRequest + */ +export class TaskExecutionEventRequest extends Message { + /** + * Unique ID for this request that can be traced between services + * + * @generated from field: string request_id = 1; + */ + requestId = ""; + + /** + * Details about the event that occurred. + * + * @generated from field: flyteidl.event.TaskExecutionEvent event = 2; + */ + event?: TaskExecutionEvent; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionEventRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "event", kind: "message", T: TaskExecutionEvent }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionEventRequest { + return new TaskExecutionEventRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionEventRequest { + return new TaskExecutionEventRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionEventRequest { + return new TaskExecutionEventRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionEventRequest | PlainMessage | undefined, b: TaskExecutionEventRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionEventRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.TaskExecutionEventResponse + */ +export class TaskExecutionEventResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionEventResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionEventResponse { + return new TaskExecutionEventResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionEventResponse { + return new TaskExecutionEventResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionEventResponse { + return new TaskExecutionEventResponse().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionEventResponse | PlainMessage | undefined, b: TaskExecutionEventResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionEventResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts new file mode 100644 index 0000000000..409a27d96f --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/execution_pb.ts @@ -0,0 +1,1574 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/execution.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { BoolValue, Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { LiteralMap } from "../core/literals_pb.js"; +import { Identifier, NodeExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; +import { ExecutionError, QualityOfService, WorkflowExecution_Phase } from "../core/execution_pb.js"; +import { Annotations, AuthRole, Envs, Labels, Notification, RawOutputDataConfig, UrlBlob } from "./common_pb.js"; +import { ArtifactID } from "../core/artifact_id_pb.js"; +import { SecurityContext } from "../core/security_pb.js"; +import { ClusterAssignment } from "./cluster_assignment_pb.js"; +import { Span } from "../core/metrics_pb.js"; + +/** + * The state of the execution is used to control its visibility in the UI/CLI. + * + * @generated from enum flyteidl.admin.ExecutionState + */ +export enum ExecutionState { + /** + * By default, all executions are considered active. + * + * @generated from enum value: EXECUTION_ACTIVE = 0; + */ + EXECUTION_ACTIVE = 0, + + /** + * Archived executions are no longer visible in the UI. + * + * @generated from enum value: EXECUTION_ARCHIVED = 1; + */ + EXECUTION_ARCHIVED = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ExecutionState) +proto3.util.setEnumType(ExecutionState, "flyteidl.admin.ExecutionState", [ + { no: 0, name: "EXECUTION_ACTIVE" }, + { no: 1, name: "EXECUTION_ARCHIVED" }, +]); + +/** + * Request to launch an execution with the given project, domain and optionally-assigned name. + * + * @generated from message flyteidl.admin.ExecutionCreateRequest + */ +export class ExecutionCreateRequest extends Message { + /** + * Name of the project the execution belongs to. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Name of the domain the execution belongs to. + * A domain can be considered as a subset within a specific project. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * User provided value for the resource. + * If none is provided the system will generate a unique string. + * +optional + * + * @generated from field: string name = 3; + */ + name = ""; + + /** + * Additional fields necessary to launch the execution. + * +optional + * + * @generated from field: flyteidl.admin.ExecutionSpec spec = 4; + */ + spec?: ExecutionSpec; + + /** + * The inputs required to start the execution. All required inputs must be + * included in this map. If not required and not provided, defaults apply. + * +optional + * + * @generated from field: flyteidl.core.LiteralMap inputs = 5; + */ + inputs?: LiteralMap; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 6; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionCreateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "spec", kind: "message", T: ExecutionSpec }, + { no: 5, name: "inputs", kind: "message", T: LiteralMap }, + { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionCreateRequest { + return new ExecutionCreateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionCreateRequest { + return new ExecutionCreateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionCreateRequest { + return new ExecutionCreateRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionCreateRequest | PlainMessage | undefined, b: ExecutionCreateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionCreateRequest, a, b); + } +} + +/** + * Request to relaunch the referenced execution. + * + * @generated from message flyteidl.admin.ExecutionRelaunchRequest + */ +export class ExecutionRelaunchRequest extends Message { + /** + * Identifier of the workflow execution to relaunch. + * +required + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + /** + * User provided value for the relaunched execution. + * If none is provided the system will generate a unique string. + * +optional + * + * @generated from field: string name = 3; + */ + name = ""; + + /** + * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + * If enabled, all calculations are performed even if cached results would be available, overwriting the stored + * data once execution finishes successfully. + * + * @generated from field: bool overwrite_cache = 4; + */ + overwriteCache = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionRelaunchRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionRelaunchRequest { + return new ExecutionRelaunchRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionRelaunchRequest { + return new ExecutionRelaunchRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionRelaunchRequest { + return new ExecutionRelaunchRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionRelaunchRequest | PlainMessage | undefined, b: ExecutionRelaunchRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionRelaunchRequest, a, b); + } +} + +/** + * Request to recover the referenced execution. + * + * @generated from message flyteidl.admin.ExecutionRecoverRequest + */ +export class ExecutionRecoverRequest extends Message { + /** + * Identifier of the workflow execution to recover. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + /** + * User provided value for the recovered execution. + * If none is provided the system will generate a unique string. + * +optional + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + * + * @generated from field: flyteidl.admin.ExecutionMetadata metadata = 3; + */ + metadata?: ExecutionMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionRecoverRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "metadata", kind: "message", T: ExecutionMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionRecoverRequest { + return new ExecutionRecoverRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionRecoverRequest { + return new ExecutionRecoverRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionRecoverRequest { + return new ExecutionRecoverRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionRecoverRequest | PlainMessage | undefined, b: ExecutionRecoverRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionRecoverRequest, a, b); + } +} + +/** + * The unique identifier for a successfully created execution. + * If the name was *not* specified in the create request, this identifier will include a generated name. + * + * @generated from message flyteidl.admin.ExecutionCreateResponse + */ +export class ExecutionCreateResponse extends Message { + /** + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionCreateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionCreateResponse { + return new ExecutionCreateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionCreateResponse { + return new ExecutionCreateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionCreateResponse { + return new ExecutionCreateResponse().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionCreateResponse | PlainMessage | undefined, b: ExecutionCreateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionCreateResponse, a, b); + } +} + +/** + * A message used to fetch a single workflow execution entity. + * See :ref:`ref_flyteidl.admin.Execution` for more details + * + * @generated from message flyteidl.admin.WorkflowExecutionGetRequest + */ +export class WorkflowExecutionGetRequest extends Message { + /** + * Uniquely identifies an individual workflow execution. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetRequest { + return new WorkflowExecutionGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetRequest { + return new WorkflowExecutionGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetRequest { + return new WorkflowExecutionGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionGetRequest | PlainMessage | undefined, b: WorkflowExecutionGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionGetRequest, a, b); + } +} + +/** + * A workflow execution represents an instantiated workflow, including all inputs and additional + * metadata as well as computed results included state, outputs, and duration-based attributes. + * Used as a response object used in Get and List execution requests. + * + * @generated from message flyteidl.admin.Execution + */ +export class Execution extends Message { + /** + * Unique identifier of the workflow execution. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + /** + * User-provided configuration and inputs for launching the execution. + * + * @generated from field: flyteidl.admin.ExecutionSpec spec = 2; + */ + spec?: ExecutionSpec; + + /** + * Execution results. + * + * @generated from field: flyteidl.admin.ExecutionClosure closure = 3; + */ + closure?: ExecutionClosure; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Execution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "spec", kind: "message", T: ExecutionSpec }, + { no: 3, name: "closure", kind: "message", T: ExecutionClosure }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Execution { + return new Execution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Execution { + return new Execution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Execution { + return new Execution().fromJsonString(jsonString, options); + } + + static equals(a: Execution | PlainMessage | undefined, b: Execution | PlainMessage | undefined): boolean { + return proto3.util.equals(Execution, a, b); + } +} + +/** + * Used as a response for request to list executions. + * See :ref:`ref_flyteidl.admin.Execution` for more details + * + * @generated from message flyteidl.admin.ExecutionList + */ +export class ExecutionList extends Message { + /** + * @generated from field: repeated flyteidl.admin.Execution executions = 1; + */ + executions: Execution[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "executions", kind: "message", T: Execution, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionList { + return new ExecutionList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionList { + return new ExecutionList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionList { + return new ExecutionList().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionList | PlainMessage | undefined, b: ExecutionList | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionList, a, b); + } +} + +/** + * Input/output data can represented by actual values or a link to where values are stored + * + * @generated from message flyteidl.admin.LiteralMapBlob + */ +export class LiteralMapBlob extends Message { + /** + * @generated from oneof flyteidl.admin.LiteralMapBlob.data + */ + data: { + /** + * Data in LiteralMap format + * + * @generated from field: flyteidl.core.LiteralMap values = 1 [deprecated = true]; + * @deprecated + */ + value: LiteralMap; + case: "values"; + } | { + /** + * In the event that the map is too large, we return a uri to the data + * + * @generated from field: string uri = 2; + */ + value: string; + case: "uri"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LiteralMapBlob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "values", kind: "message", T: LiteralMap, oneof: "data" }, + { no: 2, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "data" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiteralMapBlob { + return new LiteralMapBlob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiteralMapBlob { + return new LiteralMapBlob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiteralMapBlob { + return new LiteralMapBlob().fromJsonString(jsonString, options); + } + + static equals(a: LiteralMapBlob | PlainMessage | undefined, b: LiteralMapBlob | PlainMessage | undefined): boolean { + return proto3.util.equals(LiteralMapBlob, a, b); + } +} + +/** + * Specifies metadata around an aborted workflow execution. + * + * @generated from message flyteidl.admin.AbortMetadata + */ +export class AbortMetadata extends Message { + /** + * In the case of a user-specified abort, this will pass along the user-supplied cause. + * + * @generated from field: string cause = 1; + */ + cause = ""; + + /** + * Identifies the entity (if any) responsible for terminating the execution + * + * @generated from field: string principal = 2; + */ + principal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.AbortMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cause", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AbortMetadata { + return new AbortMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AbortMetadata { + return new AbortMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AbortMetadata { + return new AbortMetadata().fromJsonString(jsonString, options); + } + + static equals(a: AbortMetadata | PlainMessage | undefined, b: AbortMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(AbortMetadata, a, b); + } +} + +/** + * Encapsulates the results of the Execution + * + * @generated from message flyteidl.admin.ExecutionClosure + */ +export class ExecutionClosure extends Message { + /** + * A result produced by a terminated execution. + * A pending (non-terminal) execution will not have any output result. + * + * @generated from oneof flyteidl.admin.ExecutionClosure.output_result + */ + outputResult: { + /** + * Output URI in the case of a successful execution. + * DEPRECATED. Use GetExecutionData to fetch output data instead. + * + * @generated from field: flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; + * @deprecated + */ + value: LiteralMapBlob; + case: "outputs"; + } | { + /** + * Error information in the case of a failed execution. + * + * @generated from field: flyteidl.core.ExecutionError error = 2; + */ + value: ExecutionError; + case: "error"; + } | { + /** + * In the case of a user-specified abort, this will pass along the user-supplied cause. + * + * @generated from field: string abort_cause = 10 [deprecated = true]; + * @deprecated + */ + value: string; + case: "abortCause"; + } | { + /** + * In the case of a user-specified abort, this will pass along the user and their supplied cause. + * + * @generated from field: flyteidl.admin.AbortMetadata abort_metadata = 12; + */ + value: AbortMetadata; + case: "abortMetadata"; + } | { + /** + * Raw output data produced by this execution. + * DEPRECATED. Use GetExecutionData to fetch output data instead. + * + * @generated from field: flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; + * @deprecated + */ + value: LiteralMap; + case: "outputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Inputs computed and passed for execution. + * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + * + * @generated from field: flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; + * @deprecated + */ + computedInputs?: LiteralMap; + + /** + * Most recent recorded phase for the execution. + * + * @generated from field: flyteidl.core.WorkflowExecution.Phase phase = 4; + */ + phase = WorkflowExecution_Phase.UNDEFINED; + + /** + * Reported time at which the execution began running. + * + * @generated from field: google.protobuf.Timestamp started_at = 5; + */ + startedAt?: Timestamp; + + /** + * The amount of time the execution spent running. + * + * @generated from field: google.protobuf.Duration duration = 6; + */ + duration?: Duration; + + /** + * Reported time at which the execution was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 7; + */ + createdAt?: Timestamp; + + /** + * Reported time at which the execution was last updated. + * + * @generated from field: google.protobuf.Timestamp updated_at = 8; + */ + updatedAt?: Timestamp; + + /** + * The notification settings to use after merging the CreateExecutionRequest and the launch plan + * notification settings. An execution launched with notifications will always prefer that definition + * to notifications defined statically in a launch plan. + * + * @generated from field: repeated flyteidl.admin.Notification notifications = 9; + */ + notifications: Notification[] = []; + + /** + * Identifies the workflow definition for this execution. + * + * @generated from field: flyteidl.core.Identifier workflow_id = 11; + */ + workflowId?: Identifier; + + /** + * Provides the details of the last stage change + * + * @generated from field: flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; + */ + stateChangeDetails?: ExecutionStateChangeDetails; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "outputs", kind: "message", T: LiteralMapBlob, oneof: "output_result" }, + { no: 2, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, + { no: 10, name: "abort_cause", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, + { no: 12, name: "abort_metadata", kind: "message", T: AbortMetadata, oneof: "output_result" }, + { no: 13, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, + { no: 3, name: "computed_inputs", kind: "message", T: LiteralMap }, + { no: 4, name: "phase", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase) }, + { no: 5, name: "started_at", kind: "message", T: Timestamp }, + { no: 6, name: "duration", kind: "message", T: Duration }, + { no: 7, name: "created_at", kind: "message", T: Timestamp }, + { no: 8, name: "updated_at", kind: "message", T: Timestamp }, + { no: 9, name: "notifications", kind: "message", T: Notification, repeated: true }, + { no: 11, name: "workflow_id", kind: "message", T: Identifier }, + { no: 14, name: "state_change_details", kind: "message", T: ExecutionStateChangeDetails }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionClosure { + return new ExecutionClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionClosure { + return new ExecutionClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionClosure { + return new ExecutionClosure().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionClosure | PlainMessage | undefined, b: ExecutionClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionClosure, a, b); + } +} + +/** + * Represents system, rather than user-facing, metadata about an execution. + * + * @generated from message flyteidl.admin.SystemMetadata + */ +export class SystemMetadata extends Message { + /** + * Which execution cluster this execution ran on. + * + * @generated from field: string execution_cluster = 1; + */ + executionCluster = ""; + + /** + * Which kubernetes namespace the execution ran under. + * + * @generated from field: string namespace = 2; + */ + namespace = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SystemMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "execution_cluster", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SystemMetadata { + return new SystemMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SystemMetadata { + return new SystemMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SystemMetadata { + return new SystemMetadata().fromJsonString(jsonString, options); + } + + static equals(a: SystemMetadata | PlainMessage | undefined, b: SystemMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(SystemMetadata, a, b); + } +} + +/** + * Represents attributes about an execution which are not required to launch the execution but are useful to record. + * These attributes are assigned at launch time and do not change. + * + * @generated from message flyteidl.admin.ExecutionMetadata + */ +export class ExecutionMetadata extends Message { + /** + * @generated from field: flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; + */ + mode = ExecutionMetadata_ExecutionMode.MANUAL; + + /** + * Identifier of the entity that triggered this execution. + * For systems using back-end authentication any value set here will be discarded in favor of the + * authenticated user context. + * + * @generated from field: string principal = 2; + */ + principal = ""; + + /** + * Indicates the nestedness of this execution. + * If a user launches a workflow execution, the default nesting is 0. + * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + * Generally, if workflow at nesting level k launches a workflow then the child workflow will have + * nesting = k + 1. + * + * @generated from field: uint32 nesting = 3; + */ + nesting = 0; + + /** + * For scheduled executions, the requested time for execution for this specific schedule invocation. + * + * @generated from field: google.protobuf.Timestamp scheduled_at = 4; + */ + scheduledAt?: Timestamp; + + /** + * Which subworkflow node (if any) launched this execution + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; + */ + parentNodeExecution?: NodeExecutionIdentifier; + + /** + * Optional, a reference workflow execution related to this execution. + * In the case of a relaunch, this references the original workflow execution. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; + */ + referenceExecution?: WorkflowExecutionIdentifier; + + /** + * Optional, platform-specific metadata about the execution. + * In this the future this may be gated behind an ACL or some sort of authorization. + * + * @generated from field: flyteidl.admin.SystemMetadata system_metadata = 17; + */ + systemMetadata?: SystemMetadata; + + /** + * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping + * since we don't have a structure to handle nested ones anyways. + * + * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 18; + */ + artifactIds: ArtifactID[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "mode", kind: "enum", T: proto3.getEnumType(ExecutionMetadata_ExecutionMode) }, + { no: 2, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "nesting", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "scheduled_at", kind: "message", T: Timestamp }, + { no: 5, name: "parent_node_execution", kind: "message", T: NodeExecutionIdentifier }, + { no: 16, name: "reference_execution", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 17, name: "system_metadata", kind: "message", T: SystemMetadata }, + { no: 18, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionMetadata { + return new ExecutionMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionMetadata { + return new ExecutionMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionMetadata { + return new ExecutionMetadata().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionMetadata | PlainMessage | undefined, b: ExecutionMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionMetadata, a, b); + } +} + +/** + * The method by which this execution was launched. + * + * @generated from enum flyteidl.admin.ExecutionMetadata.ExecutionMode + */ +export enum ExecutionMetadata_ExecutionMode { + /** + * The default execution mode, MANUAL implies that an execution was launched by an individual. + * + * @generated from enum value: MANUAL = 0; + */ + MANUAL = 0, + + /** + * A schedule triggered this execution launch. + * + * @generated from enum value: SCHEDULED = 1; + */ + SCHEDULED = 1, + + /** + * A system process was responsible for launching this execution rather an individual. + * + * @generated from enum value: SYSTEM = 2; + */ + SYSTEM = 2, + + /** + * This execution was launched with identical inputs as a previous execution. + * + * @generated from enum value: RELAUNCH = 3; + */ + RELAUNCH = 3, + + /** + * This execution was triggered by another execution. + * + * @generated from enum value: CHILD_WORKFLOW = 4; + */ + CHILD_WORKFLOW = 4, + + /** + * This execution was recovered from another execution. + * + * @generated from enum value: RECOVERED = 5; + */ + RECOVERED = 5, +} +// Retrieve enum metadata with: proto3.getEnumType(ExecutionMetadata_ExecutionMode) +proto3.util.setEnumType(ExecutionMetadata_ExecutionMode, "flyteidl.admin.ExecutionMetadata.ExecutionMode", [ + { no: 0, name: "MANUAL" }, + { no: 1, name: "SCHEDULED" }, + { no: 2, name: "SYSTEM" }, + { no: 3, name: "RELAUNCH" }, + { no: 4, name: "CHILD_WORKFLOW" }, + { no: 5, name: "RECOVERED" }, +]); + +/** + * @generated from message flyteidl.admin.NotificationList + */ +export class NotificationList extends Message { + /** + * @generated from field: repeated flyteidl.admin.Notification notifications = 1; + */ + notifications: Notification[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NotificationList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "notifications", kind: "message", T: Notification, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NotificationList { + return new NotificationList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NotificationList { + return new NotificationList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NotificationList { + return new NotificationList().fromJsonString(jsonString, options); + } + + static equals(a: NotificationList | PlainMessage | undefined, b: NotificationList | PlainMessage | undefined): boolean { + return proto3.util.equals(NotificationList, a, b); + } +} + +/** + * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime + * of an execution as it progresses across phase changes. + * + * @generated from message flyteidl.admin.ExecutionSpec + */ +export class ExecutionSpec extends Message { + /** + * Launch plan to be executed + * + * @generated from field: flyteidl.core.Identifier launch_plan = 1; + */ + launchPlan?: Identifier; + + /** + * Input values to be passed for the execution + * + * @generated from field: flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; + * @deprecated + */ + inputs?: LiteralMap; + + /** + * Metadata for the execution + * + * @generated from field: flyteidl.admin.ExecutionMetadata metadata = 3; + */ + metadata?: ExecutionMetadata; + + /** + * @generated from oneof flyteidl.admin.ExecutionSpec.notification_overrides + */ + notificationOverrides: { + /** + * List of notifications based on Execution status transitions + * When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + * When this list is empty, the notifications defined for the launch plan will be applied. + * + * @generated from field: flyteidl.admin.NotificationList notifications = 5; + */ + value: NotificationList; + case: "notifications"; + } | { + /** + * This should be set to true if all notifications are intended to be disabled for this execution. + * + * @generated from field: bool disable_all = 6; + */ + value: boolean; + case: "disableAll"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Labels to apply to the execution resource. + * + * @generated from field: flyteidl.admin.Labels labels = 7; + */ + labels?: Labels; + + /** + * Annotations to apply to the execution resource. + * + * @generated from field: flyteidl.admin.Annotations annotations = 8; + */ + annotations?: Annotations; + + /** + * Optional: security context override to apply this execution. + * + * @generated from field: flyteidl.core.SecurityContext security_context = 10; + */ + securityContext?: SecurityContext; + + /** + * Optional: auth override to apply this execution. + * + * @generated from field: flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; + * @deprecated + */ + authRole?: AuthRole; + + /** + * Indicates the runtime priority of the execution. + * + * @generated from field: flyteidl.core.QualityOfService quality_of_service = 17; + */ + qualityOfService?: QualityOfService; + + /** + * Controls the maximum number of task nodes that can be run in parallel for the entire workflow. + * This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + * and parallelism/concurrency of MapTasks is independent from this. + * + * @generated from field: int32 max_parallelism = 18; + */ + maxParallelism = 0; + + /** + * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). + * This should be a prefix like s3://my-bucket/my-data + * + * @generated from field: flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; + */ + rawOutputDataConfig?: RawOutputDataConfig; + + /** + * Controls how to select an available cluster on which this execution should run. + * + * @generated from field: flyteidl.admin.ClusterAssignment cluster_assignment = 20; + */ + clusterAssignment?: ClusterAssignment; + + /** + * Allows for the interruptible flag of a workflow to be overwritten for a single execution. + * Omitting this field uses the workflow's value as a default. + * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + * around the bool field. + * + * @generated from field: google.protobuf.BoolValue interruptible = 21; + */ + interruptible?: boolean; + + /** + * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + * If enabled, all calculations are performed even if cached results would be available, overwriting the stored + * data once execution finishes successfully. + * + * @generated from field: bool overwrite_cache = 22; + */ + overwriteCache = false; + + /** + * Environment variables to be set for the execution. + * + * @generated from field: flyteidl.admin.Envs envs = 23; + */ + envs?: Envs; + + /** + * Tags to be set for the execution. + * + * @generated from field: repeated string tags = 24; + */ + tags: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "launch_plan", kind: "message", T: Identifier }, + { no: 2, name: "inputs", kind: "message", T: LiteralMap }, + { no: 3, name: "metadata", kind: "message", T: ExecutionMetadata }, + { no: 5, name: "notifications", kind: "message", T: NotificationList, oneof: "notification_overrides" }, + { no: 6, name: "disable_all", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "notification_overrides" }, + { no: 7, name: "labels", kind: "message", T: Labels }, + { no: 8, name: "annotations", kind: "message", T: Annotations }, + { no: 10, name: "security_context", kind: "message", T: SecurityContext }, + { no: 16, name: "auth_role", kind: "message", T: AuthRole }, + { no: 17, name: "quality_of_service", kind: "message", T: QualityOfService }, + { no: 18, name: "max_parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 19, name: "raw_output_data_config", kind: "message", T: RawOutputDataConfig }, + { no: 20, name: "cluster_assignment", kind: "message", T: ClusterAssignment }, + { no: 21, name: "interruptible", kind: "message", T: BoolValue }, + { no: 22, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 23, name: "envs", kind: "message", T: Envs }, + { no: 24, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionSpec { + return new ExecutionSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionSpec { + return new ExecutionSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionSpec { + return new ExecutionSpec().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionSpec | PlainMessage | undefined, b: ExecutionSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionSpec, a, b); + } +} + +/** + * Request to terminate an in-progress execution. This action is irreversible. + * If an execution is already terminated, this request will simply be a no-op. + * This request will fail if it references a non-existent execution. + * If the request succeeds the phase "ABORTED" will be recorded for the termination + * with the optional cause added to the output_result. + * + * @generated from message flyteidl.admin.ExecutionTerminateRequest + */ +export class ExecutionTerminateRequest extends Message { + /** + * Uniquely identifies the individual workflow execution to be terminated. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + /** + * Optional reason for aborting. + * + * @generated from field: string cause = 2; + */ + cause = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionTerminateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "cause", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionTerminateRequest { + return new ExecutionTerminateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionTerminateRequest { + return new ExecutionTerminateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionTerminateRequest { + return new ExecutionTerminateRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionTerminateRequest | PlainMessage | undefined, b: ExecutionTerminateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionTerminateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.ExecutionTerminateResponse + */ +export class ExecutionTerminateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionTerminateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionTerminateResponse { + return new ExecutionTerminateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionTerminateResponse { + return new ExecutionTerminateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionTerminateResponse { + return new ExecutionTerminateResponse().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionTerminateResponse | PlainMessage | undefined, b: ExecutionTerminateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionTerminateResponse, a, b); + } +} + +/** + * Request structure to fetch inputs, output and other data produced by an execution. + * By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` + * + * @generated from message flyteidl.admin.WorkflowExecutionGetDataRequest + */ +export class WorkflowExecutionGetDataRequest extends Message { + /** + * The identifier of the execution for which to fetch inputs and outputs. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionGetDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetDataRequest { + return new WorkflowExecutionGetDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetDataRequest { + return new WorkflowExecutionGetDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetDataRequest { + return new WorkflowExecutionGetDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionGetDataRequest | PlainMessage | undefined, b: WorkflowExecutionGetDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionGetDataRequest, a, b); + } +} + +/** + * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. + * + * @generated from message flyteidl.admin.WorkflowExecutionGetDataResponse + */ +export class WorkflowExecutionGetDataResponse extends Message { + /** + * Signed url to fetch a core.LiteralMap of execution outputs. + * Deprecated: Please use full_outputs instead. + * + * @generated from field: flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; + * @deprecated + */ + outputs?: UrlBlob; + + /** + * Signed url to fetch a core.LiteralMap of execution inputs. + * Deprecated: Please use full_inputs instead. + * + * @generated from field: flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; + * @deprecated + */ + inputs?: UrlBlob; + + /** + * Full_inputs will only be populated if they are under a configured size threshold. + * + * @generated from field: flyteidl.core.LiteralMap full_inputs = 3; + */ + fullInputs?: LiteralMap; + + /** + * Full_outputs will only be populated if they are under a configured size threshold. + * + * @generated from field: flyteidl.core.LiteralMap full_outputs = 4; + */ + fullOutputs?: LiteralMap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionGetDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "outputs", kind: "message", T: UrlBlob }, + { no: 2, name: "inputs", kind: "message", T: UrlBlob }, + { no: 3, name: "full_inputs", kind: "message", T: LiteralMap }, + { no: 4, name: "full_outputs", kind: "message", T: LiteralMap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetDataResponse { + return new WorkflowExecutionGetDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetDataResponse { + return new WorkflowExecutionGetDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetDataResponse { + return new WorkflowExecutionGetDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionGetDataResponse | PlainMessage | undefined, b: WorkflowExecutionGetDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionGetDataResponse, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecutionUpdateRequest + */ +export class ExecutionUpdateRequest extends Message { + /** + * Identifier of the execution to update + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + /** + * State to set as the new value active/archive + * + * @generated from field: flyteidl.admin.ExecutionState state = 2; + */ + state = ExecutionState.EXECUTION_ACTIVE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionUpdateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(ExecutionState) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionUpdateRequest { + return new ExecutionUpdateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionUpdateRequest { + return new ExecutionUpdateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionUpdateRequest { + return new ExecutionUpdateRequest().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionUpdateRequest | PlainMessage | undefined, b: ExecutionUpdateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionUpdateRequest, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecutionStateChangeDetails + */ +export class ExecutionStateChangeDetails extends Message { + /** + * The state of the execution is used to control its visibility in the UI/CLI. + * + * @generated from field: flyteidl.admin.ExecutionState state = 1; + */ + state = ExecutionState.EXECUTION_ACTIVE; + + /** + * This timestamp represents when the state changed. + * + * @generated from field: google.protobuf.Timestamp occurred_at = 2; + */ + occurredAt?: Timestamp; + + /** + * Identifies the entity (if any) responsible for causing the state change of the execution + * + * @generated from field: string principal = 3; + */ + principal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionStateChangeDetails"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(ExecutionState) }, + { no: 2, name: "occurred_at", kind: "message", T: Timestamp }, + { no: 3, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionStateChangeDetails { + return new ExecutionStateChangeDetails().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionStateChangeDetails { + return new ExecutionStateChangeDetails().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionStateChangeDetails { + return new ExecutionStateChangeDetails().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionStateChangeDetails | PlainMessage | undefined, b: ExecutionStateChangeDetails | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionStateChangeDetails, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecutionUpdateResponse + */ +export class ExecutionUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionUpdateResponse { + return new ExecutionUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionUpdateResponse { + return new ExecutionUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionUpdateResponse { + return new ExecutionUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionUpdateResponse | PlainMessage | undefined, b: ExecutionUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionUpdateResponse, a, b); + } +} + +/** + * WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. + * + * @generated from message flyteidl.admin.WorkflowExecutionGetMetricsRequest + */ +export class WorkflowExecutionGetMetricsRequest extends Message { + /** + * id defines the workflow execution to query for. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier id = 1; + */ + id?: WorkflowExecutionIdentifier; + + /** + * depth defines the number of Flyte entity levels to traverse when breaking down execution details. + * + * @generated from field: int32 depth = 2; + */ + depth = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionGetMetricsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "depth", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetMetricsRequest { + return new WorkflowExecutionGetMetricsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetMetricsRequest { + return new WorkflowExecutionGetMetricsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetMetricsRequest { + return new WorkflowExecutionGetMetricsRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionGetMetricsRequest | PlainMessage | undefined, b: WorkflowExecutionGetMetricsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionGetMetricsRequest, a, b); + } +} + +/** + * WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. + * + * @generated from message flyteidl.admin.WorkflowExecutionGetMetricsResponse + */ +export class WorkflowExecutionGetMetricsResponse extends Message { + /** + * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a + * hierarchical structure using Flyte entity references. + * + * @generated from field: flyteidl.core.Span span = 1; + */ + span?: Span; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionGetMetricsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "span", kind: "message", T: Span }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionGetMetricsResponse { + return new WorkflowExecutionGetMetricsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionGetMetricsResponse { + return new WorkflowExecutionGetMetricsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionGetMetricsResponse { + return new WorkflowExecutionGetMetricsResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionGetMetricsResponse | PlainMessage | undefined, b: WorkflowExecutionGetMetricsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionGetMetricsResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts new file mode 100644 index 0000000000..ee8c14bdcd --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/launch_plan_pb.ts @@ -0,0 +1,805 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/launch_plan.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Any, BoolValue, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Identifier } from "../core/identifier_pb.js"; +import { ParameterMap, VariableMap } from "../core/interface_pb.js"; +import { LiteralMap } from "../core/literals_pb.js"; +import { Annotations, AuthRole, Envs, Labels, NamedEntityIdentifier, Notification, RawOutputDataConfig, Sort } from "./common_pb.js"; +import { SecurityContext } from "../core/security_pb.js"; +import { QualityOfService } from "../core/execution_pb.js"; +import { Schedule } from "./schedule_pb.js"; + +/** + * By default any launch plan regardless of state can be used to launch a workflow execution. + * However, at most one version of a launch plan + * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be + * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier + * group will be observed and trigger executions at a defined cadence. + * + * @generated from enum flyteidl.admin.LaunchPlanState + */ +export enum LaunchPlanState { + /** + * @generated from enum value: INACTIVE = 0; + */ + INACTIVE = 0, + + /** + * @generated from enum value: ACTIVE = 1; + */ + ACTIVE = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(LaunchPlanState) +proto3.util.setEnumType(LaunchPlanState, "flyteidl.admin.LaunchPlanState", [ + { no: 0, name: "INACTIVE" }, + { no: 1, name: "ACTIVE" }, +]); + +/** + * Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required + * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to + * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. + * + * @generated from message flyteidl.admin.LaunchPlanCreateRequest + */ +export class LaunchPlanCreateRequest extends Message { + /** + * Uniquely identifies a launch plan entity. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * User-provided launch plan details, including reference workflow, inputs and other metadata. + * + * @generated from field: flyteidl.admin.LaunchPlanSpec spec = 2; + */ + spec?: LaunchPlanSpec; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanCreateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "spec", kind: "message", T: LaunchPlanSpec }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanCreateRequest { + return new LaunchPlanCreateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanCreateRequest { + return new LaunchPlanCreateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanCreateRequest { + return new LaunchPlanCreateRequest().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanCreateRequest | PlainMessage | undefined, b: LaunchPlanCreateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanCreateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.LaunchPlanCreateResponse + */ +export class LaunchPlanCreateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanCreateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanCreateResponse { + return new LaunchPlanCreateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanCreateResponse { + return new LaunchPlanCreateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanCreateResponse { + return new LaunchPlanCreateResponse().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanCreateResponse | PlainMessage | undefined, b: LaunchPlanCreateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanCreateResponse, a, b); + } +} + +/** + * A LaunchPlan provides the capability to templatize workflow executions. + * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. + * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow + * definition doesn't necessarily have a default value for said input. + * + * @generated from message flyteidl.admin.LaunchPlan + */ +export class LaunchPlan extends Message { + /** + * Uniquely identifies a launch plan entity. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * User-provided launch plan details, including reference workflow, inputs and other metadata. + * + * @generated from field: flyteidl.admin.LaunchPlanSpec spec = 2; + */ + spec?: LaunchPlanSpec; + + /** + * Values computed by the flyte platform after launch plan registration. + * + * @generated from field: flyteidl.admin.LaunchPlanClosure closure = 3; + */ + closure?: LaunchPlanClosure; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlan"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "spec", kind: "message", T: LaunchPlanSpec }, + { no: 3, name: "closure", kind: "message", T: LaunchPlanClosure }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlan { + return new LaunchPlan().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlan { + return new LaunchPlan().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlan { + return new LaunchPlan().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlan | PlainMessage | undefined, b: LaunchPlan | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlan, a, b); + } +} + +/** + * Response object for list launch plan requests. + * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + * + * @generated from message flyteidl.admin.LaunchPlanList + */ +export class LaunchPlanList extends Message { + /** + * @generated from field: repeated flyteidl.admin.LaunchPlan launch_plans = 1; + */ + launchPlans: LaunchPlan[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "launch_plans", kind: "message", T: LaunchPlan, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanList { + return new LaunchPlanList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanList { + return new LaunchPlanList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanList { + return new LaunchPlanList().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanList | PlainMessage | undefined, b: LaunchPlanList | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanList, a, b); + } +} + +/** + * Defines permissions associated with executions created by this launch plan spec. + * Use either of these roles when they have permissions required by your workflow execution. + * Deprecated. + * + * @generated from message flyteidl.admin.Auth + * @deprecated + */ +export class Auth extends Message { + /** + * Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + * + * @generated from field: string assumable_iam_role = 1; + */ + assumableIamRole = ""; + + /** + * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + * + * @generated from field: string kubernetes_service_account = 2; + */ + kubernetesServiceAccount = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Auth"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "assumable_iam_role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "kubernetes_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Auth { + return new Auth().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Auth { + return new Auth().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Auth { + return new Auth().fromJsonString(jsonString, options); + } + + static equals(a: Auth | PlainMessage | undefined, b: Auth | PlainMessage | undefined): boolean { + return proto3.util.equals(Auth, a, b); + } +} + +/** + * User-provided launch plan definition and configuration values. + * + * @generated from message flyteidl.admin.LaunchPlanSpec + */ +export class LaunchPlanSpec extends Message { + /** + * Reference to the Workflow template that the launch plan references + * + * @generated from field: flyteidl.core.Identifier workflow_id = 1; + */ + workflowId?: Identifier; + + /** + * Metadata for the Launch Plan + * + * @generated from field: flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; + */ + entityMetadata?: LaunchPlanMetadata; + + /** + * Input values to be passed for the execution. + * These can be overridden when an execution is created with this launch plan. + * + * @generated from field: flyteidl.core.ParameterMap default_inputs = 3; + */ + defaultInputs?: ParameterMap; + + /** + * Fixed, non-overridable inputs for the Launch Plan. + * These can not be overridden when an execution is created with this launch plan. + * + * @generated from field: flyteidl.core.LiteralMap fixed_inputs = 4; + */ + fixedInputs?: LiteralMap; + + /** + * String to indicate the role to use to execute the workflow underneath + * + * @generated from field: string role = 5 [deprecated = true]; + * @deprecated + */ + role = ""; + + /** + * Custom labels to be applied to the execution resource. + * + * @generated from field: flyteidl.admin.Labels labels = 6; + */ + labels?: Labels; + + /** + * Custom annotations to be applied to the execution resource. + * + * @generated from field: flyteidl.admin.Annotations annotations = 7; + */ + annotations?: Annotations; + + /** + * Indicates the permission associated with workflow executions triggered with this launch plan. + * + * @generated from field: flyteidl.admin.Auth auth = 8 [deprecated = true]; + * @deprecated + */ + auth?: Auth; + + /** + * @generated from field: flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; + * @deprecated + */ + authRole?: AuthRole; + + /** + * Indicates security context for permissions triggered with this launch plan + * + * @generated from field: flyteidl.core.SecurityContext security_context = 10; + */ + securityContext?: SecurityContext; + + /** + * Indicates the runtime priority of the execution. + * + * @generated from field: flyteidl.core.QualityOfService quality_of_service = 16; + */ + qualityOfService?: QualityOfService; + + /** + * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + * + * @generated from field: flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; + */ + rawOutputDataConfig?: RawOutputDataConfig; + + /** + * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. + * This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + * and parallelism/concurrency of MapTasks is independent from this. + * + * @generated from field: int32 max_parallelism = 18; + */ + maxParallelism = 0; + + /** + * Allows for the interruptible flag of a workflow to be overwritten for a single execution. + * Omitting this field uses the workflow's value as a default. + * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + * around the bool field. + * + * @generated from field: google.protobuf.BoolValue interruptible = 19; + */ + interruptible?: boolean; + + /** + * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + * If enabled, all calculations are performed even if cached results would be available, overwriting the stored + * data once execution finishes successfully. + * + * @generated from field: bool overwrite_cache = 20; + */ + overwriteCache = false; + + /** + * Environment variables to be set for the execution. + * + * @generated from field: flyteidl.admin.Envs envs = 21; + */ + envs?: Envs; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workflow_id", kind: "message", T: Identifier }, + { no: 2, name: "entity_metadata", kind: "message", T: LaunchPlanMetadata }, + { no: 3, name: "default_inputs", kind: "message", T: ParameterMap }, + { no: 4, name: "fixed_inputs", kind: "message", T: LiteralMap }, + { no: 5, name: "role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "labels", kind: "message", T: Labels }, + { no: 7, name: "annotations", kind: "message", T: Annotations }, + { no: 8, name: "auth", kind: "message", T: Auth }, + { no: 9, name: "auth_role", kind: "message", T: AuthRole }, + { no: 10, name: "security_context", kind: "message", T: SecurityContext }, + { no: 16, name: "quality_of_service", kind: "message", T: QualityOfService }, + { no: 17, name: "raw_output_data_config", kind: "message", T: RawOutputDataConfig }, + { no: 18, name: "max_parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 19, name: "interruptible", kind: "message", T: BoolValue }, + { no: 20, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 21, name: "envs", kind: "message", T: Envs }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanSpec { + return new LaunchPlanSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanSpec { + return new LaunchPlanSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanSpec { + return new LaunchPlanSpec().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanSpec | PlainMessage | undefined, b: LaunchPlanSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanSpec, a, b); + } +} + +/** + * Values computed by the flyte platform after launch plan registration. + * These include expected_inputs required to be present in a CreateExecutionRequest + * to launch the reference workflow as well timestamp values associated with the launch plan. + * + * @generated from message flyteidl.admin.LaunchPlanClosure + */ +export class LaunchPlanClosure extends Message { + /** + * Indicate the Launch plan state. + * + * @generated from field: flyteidl.admin.LaunchPlanState state = 1; + */ + state = LaunchPlanState.INACTIVE; + + /** + * Indicates the set of inputs expected when creating an execution with the Launch plan + * + * @generated from field: flyteidl.core.ParameterMap expected_inputs = 2; + */ + expectedInputs?: ParameterMap; + + /** + * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan + * + * @generated from field: flyteidl.core.VariableMap expected_outputs = 3; + */ + expectedOutputs?: VariableMap; + + /** + * Time at which the launch plan was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 4; + */ + createdAt?: Timestamp; + + /** + * Time at which the launch plan was last updated. + * + * @generated from field: google.protobuf.Timestamp updated_at = 5; + */ + updatedAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(LaunchPlanState) }, + { no: 2, name: "expected_inputs", kind: "message", T: ParameterMap }, + { no: 3, name: "expected_outputs", kind: "message", T: VariableMap }, + { no: 4, name: "created_at", kind: "message", T: Timestamp }, + { no: 5, name: "updated_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanClosure { + return new LaunchPlanClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanClosure { + return new LaunchPlanClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanClosure { + return new LaunchPlanClosure().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanClosure | PlainMessage | undefined, b: LaunchPlanClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanClosure, a, b); + } +} + +/** + * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch + * the reference workflow. + * + * @generated from message flyteidl.admin.LaunchPlanMetadata + */ +export class LaunchPlanMetadata extends Message { + /** + * Schedule to execute the Launch Plan + * + * @generated from field: flyteidl.admin.Schedule schedule = 1; + */ + schedule?: Schedule; + + /** + * List of notifications based on Execution status transitions + * + * @generated from field: repeated flyteidl.admin.Notification notifications = 2; + */ + notifications: Notification[] = []; + + /** + * Additional metadata for how to launch the launch plan + * + * @generated from field: google.protobuf.Any launch_conditions = 3; + */ + launchConditions?: Any; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule", kind: "message", T: Schedule }, + { no: 2, name: "notifications", kind: "message", T: Notification, repeated: true }, + { no: 3, name: "launch_conditions", kind: "message", T: Any }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanMetadata { + return new LaunchPlanMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanMetadata { + return new LaunchPlanMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanMetadata { + return new LaunchPlanMetadata().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanMetadata | PlainMessage | undefined, b: LaunchPlanMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanMetadata, a, b); + } +} + +/** + * Request to set the referenced launch plan state to the configured value. + * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + * + * @generated from message flyteidl.admin.LaunchPlanUpdateRequest + */ +export class LaunchPlanUpdateRequest extends Message { + /** + * Identifier of launch plan for which to change state. + * +required. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * Desired state to apply to the launch plan. + * +required. + * + * @generated from field: flyteidl.admin.LaunchPlanState state = 2; + */ + state = LaunchPlanState.INACTIVE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanUpdateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "state", kind: "enum", T: proto3.getEnumType(LaunchPlanState) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanUpdateRequest { + return new LaunchPlanUpdateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanUpdateRequest { + return new LaunchPlanUpdateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanUpdateRequest { + return new LaunchPlanUpdateRequest().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanUpdateRequest | PlainMessage | undefined, b: LaunchPlanUpdateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanUpdateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.LaunchPlanUpdateResponse + */ +export class LaunchPlanUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.LaunchPlanUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanUpdateResponse { + return new LaunchPlanUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanUpdateResponse { + return new LaunchPlanUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanUpdateResponse { + return new LaunchPlanUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanUpdateResponse | PlainMessage | undefined, b: LaunchPlanUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanUpdateResponse, a, b); + } +} + +/** + * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier + * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + * + * @generated from message flyteidl.admin.ActiveLaunchPlanRequest + */ +export class ActiveLaunchPlanRequest extends Message { + /** + * +required. + * + * @generated from field: flyteidl.admin.NamedEntityIdentifier id = 1; + */ + id?: NamedEntityIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ActiveLaunchPlanRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NamedEntityIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActiveLaunchPlanRequest { + return new ActiveLaunchPlanRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActiveLaunchPlanRequest { + return new ActiveLaunchPlanRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActiveLaunchPlanRequest { + return new ActiveLaunchPlanRequest().fromJsonString(jsonString, options); + } + + static equals(a: ActiveLaunchPlanRequest | PlainMessage | undefined, b: ActiveLaunchPlanRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ActiveLaunchPlanRequest, a, b); + } +} + +/** + * Represents a request structure to list active launch plans within a project/domain and optional org. + * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details + * + * @generated from message flyteidl.admin.ActiveLaunchPlanListRequest + */ +export class ActiveLaunchPlanListRequest extends Message { + /** + * Name of the project that contains the identifiers. + * +required. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Name of the domain the identifiers belongs to within the project. + * +required. + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Indicates the number of resources to be returned. + * +required. + * + * @generated from field: uint32 limit = 3; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 4; + */ + token = ""; + + /** + * Sort ordering. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 6; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ActiveLaunchPlanListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ActiveLaunchPlanListRequest { + return new ActiveLaunchPlanListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ActiveLaunchPlanListRequest { + return new ActiveLaunchPlanListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ActiveLaunchPlanListRequest { + return new ActiveLaunchPlanListRequest().fromJsonString(jsonString, options); + } + + static equals(a: ActiveLaunchPlanListRequest | PlainMessage | undefined, b: ActiveLaunchPlanListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ActiveLaunchPlanListRequest, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts new file mode 100644 index 0000000000..421358694a --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/matchable_resource_pb.ts @@ -0,0 +1,794 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/matchable_resource.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { BoolValue, Message, proto3 } from "@bufbuild/protobuf"; +import { SecurityContext } from "../core/security_pb.js"; +import { Annotations, Envs, Labels, RawOutputDataConfig } from "./common_pb.js"; +import { QualityOfService } from "../core/execution_pb.js"; +import { ClusterAssignment } from "./cluster_assignment_pb.js"; + +/** + * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes + * based on matching tags. + * + * @generated from enum flyteidl.admin.MatchableResource + */ +export enum MatchableResource { + /** + * Applies to customizable task resource requests and limits. + * + * @generated from enum value: TASK_RESOURCE = 0; + */ + TASK_RESOURCE = 0, + + /** + * Applies to configuring templated kubernetes cluster resources. + * + * @generated from enum value: CLUSTER_RESOURCE = 1; + */ + CLUSTER_RESOURCE = 1, + + /** + * Configures task and dynamic task execution queue assignment. + * + * @generated from enum value: EXECUTION_QUEUE = 2; + */ + EXECUTION_QUEUE = 2, + + /** + * Configures the K8s cluster label to be used for execution to be run + * + * @generated from enum value: EXECUTION_CLUSTER_LABEL = 3; + */ + EXECUTION_CLUSTER_LABEL = 3, + + /** + * Configures default quality of service when undefined in an execution spec. + * + * @generated from enum value: QUALITY_OF_SERVICE_SPECIFICATION = 4; + */ + QUALITY_OF_SERVICE_SPECIFICATION = 4, + + /** + * Selects configurable plugin implementation behavior for a given task type. + * + * @generated from enum value: PLUGIN_OVERRIDE = 5; + */ + PLUGIN_OVERRIDE = 5, + + /** + * Adds defaults for customizable workflow-execution specifications and overrides. + * + * @generated from enum value: WORKFLOW_EXECUTION_CONFIG = 6; + */ + WORKFLOW_EXECUTION_CONFIG = 6, + + /** + * Controls how to select an available cluster on which this execution should run. + * + * @generated from enum value: CLUSTER_ASSIGNMENT = 7; + */ + CLUSTER_ASSIGNMENT = 7, +} +// Retrieve enum metadata with: proto3.getEnumType(MatchableResource) +proto3.util.setEnumType(MatchableResource, "flyteidl.admin.MatchableResource", [ + { no: 0, name: "TASK_RESOURCE" }, + { no: 1, name: "CLUSTER_RESOURCE" }, + { no: 2, name: "EXECUTION_QUEUE" }, + { no: 3, name: "EXECUTION_CLUSTER_LABEL" }, + { no: 4, name: "QUALITY_OF_SERVICE_SPECIFICATION" }, + { no: 5, name: "PLUGIN_OVERRIDE" }, + { no: 6, name: "WORKFLOW_EXECUTION_CONFIG" }, + { no: 7, name: "CLUSTER_ASSIGNMENT" }, +]); + +/** + * Defines a set of overridable task resource attributes set during task registration. + * + * @generated from message flyteidl.admin.TaskResourceSpec + */ +export class TaskResourceSpec extends Message { + /** + * @generated from field: string cpu = 1; + */ + cpu = ""; + + /** + * @generated from field: string gpu = 2; + */ + gpu = ""; + + /** + * @generated from field: string memory = 3; + */ + memory = ""; + + /** + * @generated from field: string storage = 4; + */ + storage = ""; + + /** + * @generated from field: string ephemeral_storage = 5; + */ + ephemeralStorage = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskResourceSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cpu", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "gpu", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "memory", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "storage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "ephemeral_storage", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskResourceSpec { + return new TaskResourceSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskResourceSpec { + return new TaskResourceSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskResourceSpec { + return new TaskResourceSpec().fromJsonString(jsonString, options); + } + + static equals(a: TaskResourceSpec | PlainMessage | undefined, b: TaskResourceSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskResourceSpec, a, b); + } +} + +/** + * Defines task resource defaults and limits that will be applied at task registration. + * + * @generated from message flyteidl.admin.TaskResourceAttributes + */ +export class TaskResourceAttributes extends Message { + /** + * @generated from field: flyteidl.admin.TaskResourceSpec defaults = 1; + */ + defaults?: TaskResourceSpec; + + /** + * @generated from field: flyteidl.admin.TaskResourceSpec limits = 2; + */ + limits?: TaskResourceSpec; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskResourceAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "defaults", kind: "message", T: TaskResourceSpec }, + { no: 2, name: "limits", kind: "message", T: TaskResourceSpec }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskResourceAttributes { + return new TaskResourceAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskResourceAttributes { + return new TaskResourceAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskResourceAttributes { + return new TaskResourceAttributes().fromJsonString(jsonString, options); + } + + static equals(a: TaskResourceAttributes | PlainMessage | undefined, b: TaskResourceAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskResourceAttributes, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ClusterResourceAttributes + */ +export class ClusterResourceAttributes extends Message { + /** + * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). + * Map keys are the *case-sensitive* names of variables in templatized resource files. + * Map values should be the custom values which get substituted during resource creation. + * + * @generated from field: map attributes = 1; + */ + attributes: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ClusterResourceAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ClusterResourceAttributes { + return new ClusterResourceAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ClusterResourceAttributes { + return new ClusterResourceAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ClusterResourceAttributes { + return new ClusterResourceAttributes().fromJsonString(jsonString, options); + } + + static equals(a: ClusterResourceAttributes | PlainMessage | undefined, b: ClusterResourceAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(ClusterResourceAttributes, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecutionQueueAttributes + */ +export class ExecutionQueueAttributes extends Message { + /** + * Tags used for assigning execution queues for tasks defined within this project. + * + * @generated from field: repeated string tags = 1; + */ + tags: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionQueueAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionQueueAttributes { + return new ExecutionQueueAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionQueueAttributes { + return new ExecutionQueueAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionQueueAttributes { + return new ExecutionQueueAttributes().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionQueueAttributes | PlainMessage | undefined, b: ExecutionQueueAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionQueueAttributes, a, b); + } +} + +/** + * @generated from message flyteidl.admin.ExecutionClusterLabel + */ +export class ExecutionClusterLabel extends Message { + /** + * Label value to determine where the execution will be run + * + * @generated from field: string value = 1; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ExecutionClusterLabel"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionClusterLabel { + return new ExecutionClusterLabel().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionClusterLabel { + return new ExecutionClusterLabel().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionClusterLabel { + return new ExecutionClusterLabel().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionClusterLabel | PlainMessage | undefined, b: ExecutionClusterLabel | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionClusterLabel, a, b); + } +} + +/** + * This MatchableAttribute configures selecting alternate plugin implementations for a given task type. + * In addition to an override implementation a selection of fallbacks can be provided or other modes + * for handling cases where the desired plugin override is not enabled in a given Flyte deployment. + * + * @generated from message flyteidl.admin.PluginOverride + */ +export class PluginOverride extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string task_type = 1; + */ + taskType = ""; + + /** + * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + * + * @generated from field: repeated string plugin_id = 2; + */ + pluginId: string[] = []; + + /** + * Defines the behavior when no plugin from the plugin_id list is not found. + * + * @generated from field: flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; + */ + missingPluginBehavior = PluginOverride_MissingPluginBehavior.FAIL; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.PluginOverride"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "plugin_id", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "missing_plugin_behavior", kind: "enum", T: proto3.getEnumType(PluginOverride_MissingPluginBehavior) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PluginOverride { + return new PluginOverride().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PluginOverride { + return new PluginOverride().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PluginOverride { + return new PluginOverride().fromJsonString(jsonString, options); + } + + static equals(a: PluginOverride | PlainMessage | undefined, b: PluginOverride | PlainMessage | undefined): boolean { + return proto3.util.equals(PluginOverride, a, b); + } +} + +/** + * @generated from enum flyteidl.admin.PluginOverride.MissingPluginBehavior + */ +export enum PluginOverride_MissingPluginBehavior { + /** + * By default, if this plugin is not enabled for a Flyte deployment then execution will fail. + * + * @generated from enum value: FAIL = 0; + */ + FAIL = 0, + + /** + * Uses the system-configured default implementation. + * + * @generated from enum value: USE_DEFAULT = 1; + */ + USE_DEFAULT = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(PluginOverride_MissingPluginBehavior) +proto3.util.setEnumType(PluginOverride_MissingPluginBehavior, "flyteidl.admin.PluginOverride.MissingPluginBehavior", [ + { no: 0, name: "FAIL" }, + { no: 1, name: "USE_DEFAULT" }, +]); + +/** + * @generated from message flyteidl.admin.PluginOverrides + */ +export class PluginOverrides extends Message { + /** + * @generated from field: repeated flyteidl.admin.PluginOverride overrides = 1; + */ + overrides: PluginOverride[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.PluginOverrides"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "overrides", kind: "message", T: PluginOverride, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PluginOverrides { + return new PluginOverrides().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PluginOverrides { + return new PluginOverrides().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PluginOverrides { + return new PluginOverrides().fromJsonString(jsonString, options); + } + + static equals(a: PluginOverrides | PlainMessage | undefined, b: PluginOverrides | PlainMessage | undefined): boolean { + return proto3.util.equals(PluginOverrides, a, b); + } +} + +/** + * Adds defaults for customizable workflow-execution specifications and overrides. + * + * @generated from message flyteidl.admin.WorkflowExecutionConfig + */ +export class WorkflowExecutionConfig extends Message { + /** + * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + * + * @generated from field: int32 max_parallelism = 1; + */ + maxParallelism = 0; + + /** + * Indicates security context permissions for executions triggered with this matchable attribute. + * + * @generated from field: flyteidl.core.SecurityContext security_context = 2; + */ + securityContext?: SecurityContext; + + /** + * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + * + * @generated from field: flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; + */ + rawOutputDataConfig?: RawOutputDataConfig; + + /** + * Custom labels to be applied to a triggered execution resource. + * + * @generated from field: flyteidl.admin.Labels labels = 4; + */ + labels?: Labels; + + /** + * Custom annotations to be applied to a triggered execution resource. + * + * @generated from field: flyteidl.admin.Annotations annotations = 5; + */ + annotations?: Annotations; + + /** + * Allows for the interruptible flag of a workflow to be overwritten for a single execution. + * Omitting this field uses the workflow's value as a default. + * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + * around the bool field. + * + * @generated from field: google.protobuf.BoolValue interruptible = 6; + */ + interruptible?: boolean; + + /** + * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + * If enabled, all calculations are performed even if cached results would be available, overwriting the stored + * data once execution finishes successfully. + * + * @generated from field: bool overwrite_cache = 7; + */ + overwriteCache = false; + + /** + * Environment variables to be set for the execution. + * + * @generated from field: flyteidl.admin.Envs envs = 8; + */ + envs?: Envs; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowExecutionConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "max_parallelism", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "security_context", kind: "message", T: SecurityContext }, + { no: 3, name: "raw_output_data_config", kind: "message", T: RawOutputDataConfig }, + { no: 4, name: "labels", kind: "message", T: Labels }, + { no: 5, name: "annotations", kind: "message", T: Annotations }, + { no: 6, name: "interruptible", kind: "message", T: BoolValue }, + { no: 7, name: "overwrite_cache", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 8, name: "envs", kind: "message", T: Envs }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionConfig { + return new WorkflowExecutionConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionConfig { + return new WorkflowExecutionConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionConfig { + return new WorkflowExecutionConfig().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionConfig | PlainMessage | undefined, b: WorkflowExecutionConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionConfig, a, b); + } +} + +/** + * Generic container for encapsulating all types of the above attributes messages. + * + * @generated from message flyteidl.admin.MatchingAttributes + */ +export class MatchingAttributes extends Message { + /** + * @generated from oneof flyteidl.admin.MatchingAttributes.target + */ + target: { + /** + * @generated from field: flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; + */ + value: TaskResourceAttributes; + case: "taskResourceAttributes"; + } | { + /** + * @generated from field: flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; + */ + value: ClusterResourceAttributes; + case: "clusterResourceAttributes"; + } | { + /** + * @generated from field: flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; + */ + value: ExecutionQueueAttributes; + case: "executionQueueAttributes"; + } | { + /** + * @generated from field: flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; + */ + value: ExecutionClusterLabel; + case: "executionClusterLabel"; + } | { + /** + * @generated from field: flyteidl.core.QualityOfService quality_of_service = 5; + */ + value: QualityOfService; + case: "qualityOfService"; + } | { + /** + * @generated from field: flyteidl.admin.PluginOverrides plugin_overrides = 6; + */ + value: PluginOverrides; + case: "pluginOverrides"; + } | { + /** + * @generated from field: flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; + */ + value: WorkflowExecutionConfig; + case: "workflowExecutionConfig"; + } | { + /** + * @generated from field: flyteidl.admin.ClusterAssignment cluster_assignment = 8; + */ + value: ClusterAssignment; + case: "clusterAssignment"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.MatchingAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_resource_attributes", kind: "message", T: TaskResourceAttributes, oneof: "target" }, + { no: 2, name: "cluster_resource_attributes", kind: "message", T: ClusterResourceAttributes, oneof: "target" }, + { no: 3, name: "execution_queue_attributes", kind: "message", T: ExecutionQueueAttributes, oneof: "target" }, + { no: 4, name: "execution_cluster_label", kind: "message", T: ExecutionClusterLabel, oneof: "target" }, + { no: 5, name: "quality_of_service", kind: "message", T: QualityOfService, oneof: "target" }, + { no: 6, name: "plugin_overrides", kind: "message", T: PluginOverrides, oneof: "target" }, + { no: 7, name: "workflow_execution_config", kind: "message", T: WorkflowExecutionConfig, oneof: "target" }, + { no: 8, name: "cluster_assignment", kind: "message", T: ClusterAssignment, oneof: "target" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MatchingAttributes { + return new MatchingAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MatchingAttributes { + return new MatchingAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MatchingAttributes { + return new MatchingAttributes().fromJsonString(jsonString, options); + } + + static equals(a: MatchingAttributes | PlainMessage | undefined, b: MatchingAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(MatchingAttributes, a, b); + } +} + +/** + * Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org); + * or domain, project and workflow name (and optional org). + * These are used to override system level defaults for kubernetes cluster resource management, + * default execution values, and more all across different levels of specificity. + * + * @generated from message flyteidl.admin.MatchableAttributesConfiguration + */ +export class MatchableAttributesConfiguration extends Message { + /** + * @generated from field: flyteidl.admin.MatchingAttributes attributes = 1; + */ + attributes?: MatchingAttributes; + + /** + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * @generated from field: string project = 3; + */ + project = ""; + + /** + * @generated from field: string workflow = 4; + */ + workflow = ""; + + /** + * @generated from field: string launch_plan = 5; + */ + launchPlan = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 6; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.MatchableAttributesConfiguration"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: MatchingAttributes }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "launch_plan", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): MatchableAttributesConfiguration { + return new MatchableAttributesConfiguration().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): MatchableAttributesConfiguration { + return new MatchableAttributesConfiguration().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): MatchableAttributesConfiguration { + return new MatchableAttributesConfiguration().fromJsonString(jsonString, options); + } + + static equals(a: MatchableAttributesConfiguration | PlainMessage | undefined, b: MatchableAttributesConfiguration | PlainMessage | undefined): boolean { + return proto3.util.equals(MatchableAttributesConfiguration, a, b); + } +} + +/** + * Request all matching resource attributes for a resource type. + * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details + * + * @generated from message flyteidl.admin.ListMatchableAttributesRequest + */ +export class ListMatchableAttributesRequest extends Message { + /** + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 1; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org filter applied to list project requests. + * + * @generated from field: string org = 2; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ListMatchableAttributesRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 2, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListMatchableAttributesRequest { + return new ListMatchableAttributesRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListMatchableAttributesRequest { + return new ListMatchableAttributesRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListMatchableAttributesRequest { + return new ListMatchableAttributesRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListMatchableAttributesRequest | PlainMessage | undefined, b: ListMatchableAttributesRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListMatchableAttributesRequest, a, b); + } +} + +/** + * Response for a request for all matching resource attributes for a resource type. + * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details + * + * @generated from message flyteidl.admin.ListMatchableAttributesResponse + */ +export class ListMatchableAttributesResponse extends Message { + /** + * @generated from field: repeated flyteidl.admin.MatchableAttributesConfiguration configurations = 1; + */ + configurations: MatchableAttributesConfiguration[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ListMatchableAttributesResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "configurations", kind: "message", T: MatchableAttributesConfiguration, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListMatchableAttributesResponse { + return new ListMatchableAttributesResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListMatchableAttributesResponse { + return new ListMatchableAttributesResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListMatchableAttributesResponse { + return new ListMatchableAttributesResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListMatchableAttributesResponse | PlainMessage | undefined, b: ListMatchableAttributesResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListMatchableAttributesResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts new file mode 100644 index 0000000000..97b89426fe --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/node_execution_pb.ts @@ -0,0 +1,926 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/node_execution.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Identifier, NodeExecutionIdentifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; +import { FlyteURLs, Sort, UrlBlob } from "./common_pb.js"; +import { ExecutionError, NodeExecution_Phase } from "../core/execution_pb.js"; +import { LiteralMap } from "../core/literals_pb.js"; +import { CatalogCacheStatus, CatalogMetadata } from "../core/catalog_pb.js"; +import { CompiledWorkflowClosure } from "../core/compiler_pb.js"; + +/** + * A message used to fetch a single node execution entity. + * See :ref:`ref_flyteidl.admin.NodeExecution` for more details + * + * @generated from message flyteidl.admin.NodeExecutionGetRequest + */ +export class NodeExecutionGetRequest extends Message { + /** + * Uniquely identifies an individual node execution. + * +required + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; + */ + id?: NodeExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionGetRequest { + return new NodeExecutionGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionGetRequest { + return new NodeExecutionGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionGetRequest { + return new NodeExecutionGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionGetRequest | PlainMessage | undefined, b: NodeExecutionGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionGetRequest, a, b); + } +} + +/** + * Represents a request structure to retrieve a list of node execution entities. + * See :ref:`ref_flyteidl.admin.NodeExecution` for more details + * + * @generated from message flyteidl.admin.NodeExecutionListRequest + */ +export class NodeExecutionListRequest extends Message { + /** + * Indicates the workflow execution to filter by. + * +required + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + workflowExecutionId?: WorkflowExecutionIdentifier; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 2; + */ + limit = 0; + + /** + * @generated from field: string token = 3; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * More info on constructing filters : + * +optional + * + * @generated from field: string filters = 4; + */ + filters = ""; + + /** + * Sort ordering. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + /** + * Unique identifier of the parent node in the execution + * +optional + * + * @generated from field: string unique_parent_id = 6; + */ + uniqueParentId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workflow_execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + { no: 6, name: "unique_parent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionListRequest { + return new NodeExecutionListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionListRequest { + return new NodeExecutionListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionListRequest { + return new NodeExecutionListRequest().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionListRequest | PlainMessage | undefined, b: NodeExecutionListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionListRequest, a, b); + } +} + +/** + * Represents a request structure to retrieve a list of node execution entities launched by a specific task. + * This can arise when a task yields a subworkflow. + * + * @generated from message flyteidl.admin.NodeExecutionForTaskListRequest + */ +export class NodeExecutionForTaskListRequest extends Message { + /** + * Indicates the node execution to filter by. + * +required + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; + */ + taskExecutionId?: TaskExecutionIdentifier; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 2; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 3; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * More info on constructing filters : + * +optional + * + * @generated from field: string filters = 4; + */ + filters = ""; + + /** + * Sort ordering. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionForTaskListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_execution_id", kind: "message", T: TaskExecutionIdentifier }, + { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionForTaskListRequest { + return new NodeExecutionForTaskListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionForTaskListRequest { + return new NodeExecutionForTaskListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionForTaskListRequest { + return new NodeExecutionForTaskListRequest().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionForTaskListRequest | PlainMessage | undefined, b: NodeExecutionForTaskListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionForTaskListRequest, a, b); + } +} + +/** + * Encapsulates all details for a single node execution entity. + * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested + * sub-workflow, or even a separate child-workflow execution. + * The same task can be called repeatedly in a single workflow but each node is unique. + * + * @generated from message flyteidl.admin.NodeExecution + */ +export class NodeExecution extends Message { + /** + * Uniquely identifies an individual node execution. + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; + */ + id?: NodeExecutionIdentifier; + + /** + * Path to remote data store where input blob is stored. + * + * @generated from field: string input_uri = 2; + */ + inputUri = ""; + + /** + * Computed results associated with this node execution. + * + * @generated from field: flyteidl.admin.NodeExecutionClosure closure = 3; + */ + closure?: NodeExecutionClosure; + + /** + * Metadata for Node Execution + * + * @generated from field: flyteidl.admin.NodeExecutionMetaData metadata = 4; + */ + metadata?: NodeExecutionMetaData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, + { no: 2, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "closure", kind: "message", T: NodeExecutionClosure }, + { no: 4, name: "metadata", kind: "message", T: NodeExecutionMetaData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecution { + return new NodeExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecution { + return new NodeExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecution { + return new NodeExecution().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecution | PlainMessage | undefined, b: NodeExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecution, a, b); + } +} + +/** + * Represents additional attributes related to a Node Execution + * + * @generated from message flyteidl.admin.NodeExecutionMetaData + */ +export class NodeExecutionMetaData extends Message { + /** + * Node executions are grouped depending on retries of the parent + * Retry group is unique within the context of a parent node. + * + * @generated from field: string retry_group = 1; + */ + retryGroup = ""; + + /** + * Boolean flag indicating if the node has child nodes under it + * This can be true when a node contains a dynamic workflow which then produces + * child nodes. + * + * @generated from field: bool is_parent_node = 2; + */ + isParentNode = false; + + /** + * Node id of the node in the original workflow + * This maps to value of WorkflowTemplate.nodes[X].id + * + * @generated from field: string spec_node_id = 3; + */ + specNodeId = ""; + + /** + * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. + * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + * + * @generated from field: bool is_dynamic = 4; + */ + isDynamic = false; + + /** + * Boolean flag indicating if the node is an array node. This is intended to uniquely identify + * array nodes from other nodes which can have is_parent_node as true. + * + * @generated from field: bool is_array = 5; + */ + isArray = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionMetaData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "retry_group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "is_parent_node", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "spec_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "is_dynamic", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "is_array", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionMetaData { + return new NodeExecutionMetaData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionMetaData { + return new NodeExecutionMetaData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionMetaData { + return new NodeExecutionMetaData().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionMetaData | PlainMessage | undefined, b: NodeExecutionMetaData | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionMetaData, a, b); + } +} + +/** + * Request structure to retrieve a list of node execution entities. + * See :ref:`ref_flyteidl.admin.NodeExecution` for more details + * + * @generated from message flyteidl.admin.NodeExecutionList + */ +export class NodeExecutionList extends Message { + /** + * @generated from field: repeated flyteidl.admin.NodeExecution node_executions = 1; + */ + nodeExecutions: NodeExecution[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "node_executions", kind: "message", T: NodeExecution, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionList { + return new NodeExecutionList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionList { + return new NodeExecutionList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionList { + return new NodeExecutionList().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionList | PlainMessage | undefined, b: NodeExecutionList | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionList, a, b); + } +} + +/** + * Container for node execution details and results. + * + * @generated from message flyteidl.admin.NodeExecutionClosure + */ +export class NodeExecutionClosure extends Message { + /** + * Only a node in a terminal state will have a non-empty output_result. + * + * @generated from oneof flyteidl.admin.NodeExecutionClosure.output_result + */ + outputResult: { + /** + * Links to a remotely stored, serialized core.LiteralMap of node execution outputs. + * DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + * + * @generated from field: string output_uri = 1 [deprecated = true]; + * @deprecated + */ + value: string; + case: "outputUri"; + } | { + /** + * Error information for the Node + * + * @generated from field: flyteidl.core.ExecutionError error = 2; + */ + value: ExecutionError; + case: "error"; + } | { + /** + * Raw output data produced by this node execution. + * DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + * + * @generated from field: flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; + * @deprecated + */ + value: LiteralMap; + case: "outputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * The last recorded phase for this node execution. + * + * @generated from field: flyteidl.core.NodeExecution.Phase phase = 3; + */ + phase = NodeExecution_Phase.UNDEFINED; + + /** + * Time at which the node execution began running. + * + * @generated from field: google.protobuf.Timestamp started_at = 4; + */ + startedAt?: Timestamp; + + /** + * The amount of time the node execution spent running. + * + * @generated from field: google.protobuf.Duration duration = 5; + */ + duration?: Duration; + + /** + * Time at which the node execution was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 6; + */ + createdAt?: Timestamp; + + /** + * Time at which the node execution was last updated. + * + * @generated from field: google.protobuf.Timestamp updated_at = 7; + */ + updatedAt?: Timestamp; + + /** + * Store metadata for what the node launched. + * for ex: if this is a workflow node, we store information for the launched workflow. + * + * @generated from oneof flyteidl.admin.NodeExecutionClosure.target_metadata + */ + targetMetadata: { + /** + * @generated from field: flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + value: WorkflowNodeMetadata; + case: "workflowNodeMetadata"; + } | { + /** + * @generated from field: flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; + */ + value: TaskNodeMetadata; + case: "taskNodeMetadata"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * String location uniquely identifying where the deck HTML file is. + * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + * + * @generated from field: string deck_uri = 11; + */ + deckUri = ""; + + /** + * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required + * to correctly recover partially completed executions where the subworkflow has already been compiled. + * + * @generated from field: string dynamic_job_spec_uri = 12; + */ + dynamicJobSpecUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, + { no: 2, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, + { no: 10, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, + { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(NodeExecution_Phase) }, + { no: 4, name: "started_at", kind: "message", T: Timestamp }, + { no: 5, name: "duration", kind: "message", T: Duration }, + { no: 6, name: "created_at", kind: "message", T: Timestamp }, + { no: 7, name: "updated_at", kind: "message", T: Timestamp }, + { no: 8, name: "workflow_node_metadata", kind: "message", T: WorkflowNodeMetadata, oneof: "target_metadata" }, + { no: 9, name: "task_node_metadata", kind: "message", T: TaskNodeMetadata, oneof: "target_metadata" }, + { no: 11, name: "deck_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "dynamic_job_spec_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionClosure { + return new NodeExecutionClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionClosure { + return new NodeExecutionClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionClosure { + return new NodeExecutionClosure().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionClosure | PlainMessage | undefined, b: NodeExecutionClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionClosure, a, b); + } +} + +/** + * Metadata for a WorkflowNode + * + * @generated from message flyteidl.admin.WorkflowNodeMetadata + */ +export class WorkflowNodeMetadata extends Message { + /** + * The identifier for a workflow execution launched by a node. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier executionId = 1; + */ + executionId?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowNodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "executionId", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowNodeMetadata { + return new WorkflowNodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowNodeMetadata { + return new WorkflowNodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowNodeMetadata { + return new WorkflowNodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowNodeMetadata | PlainMessage | undefined, b: WorkflowNodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowNodeMetadata, a, b); + } +} + +/** + * Metadata for the case in which the node is a TaskNode + * + * @generated from message flyteidl.admin.TaskNodeMetadata + */ +export class TaskNodeMetadata extends Message { + /** + * Captures the status of caching for this execution. + * + * @generated from field: flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + cacheStatus = CatalogCacheStatus.CACHE_DISABLED; + + /** + * This structure carries the catalog artifact information + * + * @generated from field: flyteidl.core.CatalogMetadata catalog_key = 2; + */ + catalogKey?: CatalogMetadata; + + /** + * The latest checkpoint location + * + * @generated from field: string checkpoint_uri = 4; + */ + checkpointUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskNodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cache_status", kind: "enum", T: proto3.getEnumType(CatalogCacheStatus) }, + { no: 2, name: "catalog_key", kind: "message", T: CatalogMetadata }, + { no: 4, name: "checkpoint_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskNodeMetadata { + return new TaskNodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskNodeMetadata { + return new TaskNodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskNodeMetadata { + return new TaskNodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: TaskNodeMetadata | PlainMessage | undefined, b: TaskNodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskNodeMetadata, a, b); + } +} + +/** + * For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. + * + * @generated from message flyteidl.admin.DynamicWorkflowNodeMetadata + */ +export class DynamicWorkflowNodeMetadata extends Message { + /** + * id represents the unique identifier of the workflow. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * Represents the compiled representation of the embedded dynamic workflow. + * + * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + compiledWorkflow?: CompiledWorkflowClosure; + + /** + * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + * required to correctly recover partially completed executions where the subworkflow has already been compiled. + * + * @generated from field: string dynamic_job_spec_uri = 3; + */ + dynamicJobSpecUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DynamicWorkflowNodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, + { no: 3, name: "dynamic_job_spec_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DynamicWorkflowNodeMetadata { + return new DynamicWorkflowNodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DynamicWorkflowNodeMetadata { + return new DynamicWorkflowNodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DynamicWorkflowNodeMetadata { + return new DynamicWorkflowNodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: DynamicWorkflowNodeMetadata | PlainMessage | undefined, b: DynamicWorkflowNodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(DynamicWorkflowNodeMetadata, a, b); + } +} + +/** + * Request structure to fetch inputs and output for a node execution. + * By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` + * + * @generated from message flyteidl.admin.NodeExecutionGetDataRequest + */ +export class NodeExecutionGetDataRequest extends Message { + /** + * The identifier of the node execution for which to fetch inputs and outputs. + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; + */ + id?: NodeExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionGetDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionGetDataRequest { + return new NodeExecutionGetDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionGetDataRequest { + return new NodeExecutionGetDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionGetDataRequest { + return new NodeExecutionGetDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionGetDataRequest | PlainMessage | undefined, b: NodeExecutionGetDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionGetDataRequest, a, b); + } +} + +/** + * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. + * + * @generated from message flyteidl.admin.NodeExecutionGetDataResponse + */ +export class NodeExecutionGetDataResponse extends Message { + /** + * Signed url to fetch a core.LiteralMap of node execution inputs. + * Deprecated: Please use full_inputs instead. + * + * @generated from field: flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + * @deprecated + */ + inputs?: UrlBlob; + + /** + * Signed url to fetch a core.LiteralMap of node execution outputs. + * Deprecated: Please use full_outputs instead. + * + * @generated from field: flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + * @deprecated + */ + outputs?: UrlBlob; + + /** + * Full_inputs will only be populated if they are under a configured size threshold. + * + * @generated from field: flyteidl.core.LiteralMap full_inputs = 3; + */ + fullInputs?: LiteralMap; + + /** + * Full_outputs will only be populated if they are under a configured size threshold. + * + * @generated from field: flyteidl.core.LiteralMap full_outputs = 4; + */ + fullOutputs?: LiteralMap; + + /** + * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + * + * @generated from field: flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + dynamicWorkflow?: DynamicWorkflowNodeMetadata; + + /** + * @generated from field: flyteidl.admin.FlyteURLs flyte_urls = 17; + */ + flyteUrls?: FlyteURLs; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.NodeExecutionGetDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inputs", kind: "message", T: UrlBlob }, + { no: 2, name: "outputs", kind: "message", T: UrlBlob }, + { no: 3, name: "full_inputs", kind: "message", T: LiteralMap }, + { no: 4, name: "full_outputs", kind: "message", T: LiteralMap }, + { no: 16, name: "dynamic_workflow", kind: "message", T: DynamicWorkflowNodeMetadata }, + { no: 17, name: "flyte_urls", kind: "message", T: FlyteURLs }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionGetDataResponse { + return new NodeExecutionGetDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionGetDataResponse { + return new NodeExecutionGetDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionGetDataResponse { + return new NodeExecutionGetDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionGetDataResponse | PlainMessage | undefined, b: NodeExecutionGetDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionGetDataResponse, a, b); + } +} + +/** + * @generated from message flyteidl.admin.GetDynamicNodeWorkflowRequest + */ +export class GetDynamicNodeWorkflowRequest extends Message { + /** + * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; + */ + id?: NodeExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetDynamicNodeWorkflowRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDynamicNodeWorkflowRequest { + return new GetDynamicNodeWorkflowRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDynamicNodeWorkflowRequest { + return new GetDynamicNodeWorkflowRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDynamicNodeWorkflowRequest { + return new GetDynamicNodeWorkflowRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetDynamicNodeWorkflowRequest | PlainMessage | undefined, b: GetDynamicNodeWorkflowRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDynamicNodeWorkflowRequest, a, b); + } +} + +/** + * @generated from message flyteidl.admin.DynamicNodeWorkflowResponse + */ +export class DynamicNodeWorkflowResponse extends Message { + /** + * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + compiledWorkflow?: CompiledWorkflowClosure; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.DynamicNodeWorkflowResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DynamicNodeWorkflowResponse { + return new DynamicNodeWorkflowResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DynamicNodeWorkflowResponse { + return new DynamicNodeWorkflowResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DynamicNodeWorkflowResponse { + return new DynamicNodeWorkflowResponse().fromJsonString(jsonString, options); + } + + static equals(a: DynamicNodeWorkflowResponse | PlainMessage | undefined, b: DynamicNodeWorkflowResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(DynamicNodeWorkflowResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts new file mode 100644 index 0000000000..ff8e3527da --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/notification_pb.ts @@ -0,0 +1,80 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/notification.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Represents the Email object that is sent to a publisher/subscriber + * to forward the notification. + * Note: This is internal to Admin and doesn't need to be exposed to other components. + * + * @generated from message flyteidl.admin.EmailMessage + */ +export class EmailMessage extends Message { + /** + * The list of email addresses to receive an email with the content populated in the other fields. + * Currently, each email recipient will receive its own email. + * This populates the TO field. + * + * @generated from field: repeated string recipients_email = 1; + */ + recipientsEmail: string[] = []; + + /** + * The email of the sender. + * This populates the FROM field. + * + * @generated from field: string sender_email = 2; + */ + senderEmail = ""; + + /** + * The content of the subject line. + * This populates the SUBJECT field. + * + * @generated from field: string subject_line = 3; + */ + subjectLine = ""; + + /** + * The content of the email body. + * This populates the BODY field. + * + * @generated from field: string body = 4; + */ + body = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.EmailMessage"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "recipients_email", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "sender_email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "subject_line", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "body", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EmailMessage { + return new EmailMessage().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EmailMessage { + return new EmailMessage().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EmailMessage { + return new EmailMessage().fromJsonString(jsonString, options); + } + + static equals(a: EmailMessage | PlainMessage | undefined, b: EmailMessage | PlainMessage | undefined): boolean { + return proto3.util.equals(EmailMessage, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts new file mode 100644 index 0000000000..8fc85a0874 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/project_attributes_pb.ts @@ -0,0 +1,333 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/project_attributes.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { MatchableResource, MatchingAttributes } from "./matchable_resource_pb.js"; + +/** + * Defines a set of custom matching attributes at the project level. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectAttributes + */ +export class ProjectAttributes extends Message { + /** + * Unique project id for which this set of attributes will be applied. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * @generated from field: flyteidl.admin.MatchingAttributes matching_attributes = 2; + */ + matchingAttributes?: MatchingAttributes; + + /** + * Optional, org key applied to the project. + * + * @generated from field: string org = 3; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "matching_attributes", kind: "message", T: MatchingAttributes }, + { no: 3, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributes { + return new ProjectAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributes { + return new ProjectAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributes { + return new ProjectAttributes().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributes | PlainMessage | undefined, b: ProjectAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributes, a, b); + } +} + +/** + * Sets custom attributes for a project + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectAttributesUpdateRequest + */ +export class ProjectAttributesUpdateRequest extends Message { + /** + * +required + * + * @generated from field: flyteidl.admin.ProjectAttributes attributes = 1; + */ + attributes?: ProjectAttributes; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributesUpdateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: ProjectAttributes }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesUpdateRequest { + return new ProjectAttributesUpdateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesUpdateRequest { + return new ProjectAttributesUpdateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesUpdateRequest { + return new ProjectAttributesUpdateRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributesUpdateRequest | PlainMessage | undefined, b: ProjectAttributesUpdateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributesUpdateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.ProjectAttributesUpdateResponse + */ +export class ProjectAttributesUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributesUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesUpdateResponse { + return new ProjectAttributesUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesUpdateResponse { + return new ProjectAttributesUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesUpdateResponse { + return new ProjectAttributesUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributesUpdateResponse | PlainMessage | undefined, b: ProjectAttributesUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributesUpdateResponse, a, b); + } +} + +/** + * Request to get an individual project level attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectAttributesGetRequest + */ +export class ProjectAttributesGetRequest extends Message { + /** + * Unique project id which this set of attributes references. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Which type of matchable attributes to return. + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 2; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org key applied to the project. + * + * @generated from field: string org = 3; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributesGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 3, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesGetRequest { + return new ProjectAttributesGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesGetRequest { + return new ProjectAttributesGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesGetRequest { + return new ProjectAttributesGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributesGetRequest | PlainMessage | undefined, b: ProjectAttributesGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributesGetRequest, a, b); + } +} + +/** + * Response to get an individual project level attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectAttributesGetResponse + */ +export class ProjectAttributesGetResponse extends Message { + /** + * @generated from field: flyteidl.admin.ProjectAttributes attributes = 1; + */ + attributes?: ProjectAttributes; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributesGetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: ProjectAttributes }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesGetResponse { + return new ProjectAttributesGetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesGetResponse { + return new ProjectAttributesGetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesGetResponse { + return new ProjectAttributesGetResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributesGetResponse | PlainMessage | undefined, b: ProjectAttributesGetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributesGetResponse, a, b); + } +} + +/** + * Request to delete a set matchable project level attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectAttributesDeleteRequest + */ +export class ProjectAttributesDeleteRequest extends Message { + /** + * Unique project id which this set of attributes references. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Which type of matchable attributes to delete. + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 2; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org key applied to the project. + * + * @generated from field: string org = 3; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributesDeleteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 3, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesDeleteRequest { + return new ProjectAttributesDeleteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesDeleteRequest { + return new ProjectAttributesDeleteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesDeleteRequest { + return new ProjectAttributesDeleteRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributesDeleteRequest | PlainMessage | undefined, b: ProjectAttributesDeleteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributesDeleteRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.ProjectAttributesDeleteResponse + */ +export class ProjectAttributesDeleteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectAttributesDeleteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectAttributesDeleteResponse { + return new ProjectAttributesDeleteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectAttributesDeleteResponse { + return new ProjectAttributesDeleteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectAttributesDeleteResponse { + return new ProjectAttributesDeleteResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectAttributesDeleteResponse | PlainMessage | undefined, b: ProjectAttributesDeleteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectAttributesDeleteResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts new file mode 100644 index 0000000000..ee43f17890 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/project_domain_attributes_pb.ts @@ -0,0 +1,359 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/project_domain_attributes.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { MatchableResource, MatchingAttributes } from "./matchable_resource_pb.js"; + +/** + * Defines a set of custom matching attributes which defines resource defaults for a project and domain. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectDomainAttributes + */ +export class ProjectDomainAttributes extends Message { + /** + * Unique project id for which this set of attributes will be applied. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Unique domain id for which this set of attributes will be applied. + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * @generated from field: flyteidl.admin.MatchingAttributes matching_attributes = 3; + */ + matchingAttributes?: MatchingAttributes; + + /** + * Optional, org key applied to the attributes. + * + * @generated from field: string org = 4; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "matching_attributes", kind: "message", T: MatchingAttributes }, + { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributes { + return new ProjectDomainAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributes { + return new ProjectDomainAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributes { + return new ProjectDomainAttributes().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributes | PlainMessage | undefined, b: ProjectDomainAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributes, a, b); + } +} + +/** + * Sets custom attributes for a project-domain combination. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectDomainAttributesUpdateRequest + */ +export class ProjectDomainAttributesUpdateRequest extends Message { + /** + * +required + * + * @generated from field: flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + attributes?: ProjectDomainAttributes; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributesUpdateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: ProjectDomainAttributes }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesUpdateRequest { + return new ProjectDomainAttributesUpdateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesUpdateRequest { + return new ProjectDomainAttributesUpdateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesUpdateRequest { + return new ProjectDomainAttributesUpdateRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributesUpdateRequest | PlainMessage | undefined, b: ProjectDomainAttributesUpdateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributesUpdateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.ProjectDomainAttributesUpdateResponse + */ +export class ProjectDomainAttributesUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributesUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesUpdateResponse { + return new ProjectDomainAttributesUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesUpdateResponse { + return new ProjectDomainAttributesUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesUpdateResponse { + return new ProjectDomainAttributesUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributesUpdateResponse | PlainMessage | undefined, b: ProjectDomainAttributesUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributesUpdateResponse, a, b); + } +} + +/** + * Request to get an individual project domain attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectDomainAttributesGetRequest + */ +export class ProjectDomainAttributesGetRequest extends Message { + /** + * Unique project id which this set of attributes references. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Unique domain id which this set of attributes references. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Which type of matchable attributes to return. + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 3; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org key applied to the attributes. + * + * @generated from field: string org = 4; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributesGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesGetRequest { + return new ProjectDomainAttributesGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesGetRequest { + return new ProjectDomainAttributesGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesGetRequest { + return new ProjectDomainAttributesGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributesGetRequest | PlainMessage | undefined, b: ProjectDomainAttributesGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributesGetRequest, a, b); + } +} + +/** + * Response to get an individual project domain attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectDomainAttributesGetResponse + */ +export class ProjectDomainAttributesGetResponse extends Message { + /** + * @generated from field: flyteidl.admin.ProjectDomainAttributes attributes = 1; + */ + attributes?: ProjectDomainAttributes; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributesGetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: ProjectDomainAttributes }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesGetResponse { + return new ProjectDomainAttributesGetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesGetResponse { + return new ProjectDomainAttributesGetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesGetResponse { + return new ProjectDomainAttributesGetResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributesGetResponse | PlainMessage | undefined, b: ProjectDomainAttributesGetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributesGetResponse, a, b); + } +} + +/** + * Request to delete a set matchable project domain attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.ProjectDomainAttributesDeleteRequest + */ +export class ProjectDomainAttributesDeleteRequest extends Message { + /** + * Unique project id which this set of attributes references. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Unique domain id which this set of attributes references. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Which type of matchable attributes to delete. + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 3; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org key applied to the attributes. + * + * @generated from field: string org = 4; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributesDeleteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesDeleteRequest { + return new ProjectDomainAttributesDeleteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesDeleteRequest { + return new ProjectDomainAttributesDeleteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesDeleteRequest { + return new ProjectDomainAttributesDeleteRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributesDeleteRequest | PlainMessage | undefined, b: ProjectDomainAttributesDeleteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributesDeleteRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.ProjectDomainAttributesDeleteResponse + */ +export class ProjectDomainAttributesDeleteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectDomainAttributesDeleteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectDomainAttributesDeleteResponse { + return new ProjectDomainAttributesDeleteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectDomainAttributesDeleteResponse { + return new ProjectDomainAttributesDeleteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectDomainAttributesDeleteResponse { + return new ProjectDomainAttributesDeleteResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectDomainAttributesDeleteResponse | PlainMessage | undefined, b: ProjectDomainAttributesDeleteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectDomainAttributesDeleteResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts new file mode 100644 index 0000000000..647a12c84e --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/project_pb.ts @@ -0,0 +1,414 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/project.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Labels, Sort } from "./common_pb.js"; + +/** + * Namespace within a project commonly used to differentiate between different service instances. + * e.g. "production", "development", etc. + * + * @generated from message flyteidl.admin.Domain + */ +export class Domain extends Message { + /** + * Globally unique domain name. + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * Display name. + * + * @generated from field: string name = 2; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Domain"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Domain { + return new Domain().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Domain { + return new Domain().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Domain { + return new Domain().fromJsonString(jsonString, options); + } + + static equals(a: Domain | PlainMessage | undefined, b: Domain | PlainMessage | undefined): boolean { + return proto3.util.equals(Domain, a, b); + } +} + +/** + * Top-level namespace used to classify different entities like workflows and executions. + * + * @generated from message flyteidl.admin.Project + */ +export class Project extends Message { + /** + * Globally unique project name. + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * Display name. + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * @generated from field: repeated flyteidl.admin.Domain domains = 3; + */ + domains: Domain[] = []; + + /** + * @generated from field: string description = 4; + */ + description = ""; + + /** + * Leverage Labels from flyteidl.admin.common.proto to + * tag projects with ownership information. + * + * @generated from field: flyteidl.admin.Labels labels = 5; + */ + labels?: Labels; + + /** + * @generated from field: flyteidl.admin.Project.ProjectState state = 6; + */ + state = Project_ProjectState.ACTIVE; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 7; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Project"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "domains", kind: "message", T: Domain, repeated: true }, + { no: 4, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "labels", kind: "message", T: Labels }, + { no: 6, name: "state", kind: "enum", T: proto3.getEnumType(Project_ProjectState) }, + { no: 7, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Project { + return new Project().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Project { + return new Project().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Project { + return new Project().fromJsonString(jsonString, options); + } + + static equals(a: Project | PlainMessage | undefined, b: Project | PlainMessage | undefined): boolean { + return proto3.util.equals(Project, a, b); + } +} + +/** + * The state of the project is used to control its visibility in the UI and validity. + * + * @generated from enum flyteidl.admin.Project.ProjectState + */ +export enum Project_ProjectState { + /** + * By default, all projects are considered active. + * + * @generated from enum value: ACTIVE = 0; + */ + ACTIVE = 0, + + /** + * Archived projects are no longer visible in the UI and no longer valid. + * + * @generated from enum value: ARCHIVED = 1; + */ + ARCHIVED = 1, + + /** + * System generated projects that aren't explicitly created or managed by a user. + * + * @generated from enum value: SYSTEM_GENERATED = 2; + */ + SYSTEM_GENERATED = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Project_ProjectState) +proto3.util.setEnumType(Project_ProjectState, "flyteidl.admin.Project.ProjectState", [ + { no: 0, name: "ACTIVE" }, + { no: 1, name: "ARCHIVED" }, + { no: 2, name: "SYSTEM_GENERATED" }, +]); + +/** + * Represents a list of projects. + * See :ref:`ref_flyteidl.admin.Project` for more details + * + * @generated from message flyteidl.admin.Projects + */ +export class Projects extends Message { + /** + * @generated from field: repeated flyteidl.admin.Project projects = 1; + */ + projects: Project[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Projects"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "projects", kind: "message", T: Project, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Projects { + return new Projects().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Projects { + return new Projects().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Projects { + return new Projects().fromJsonString(jsonString, options); + } + + static equals(a: Projects | PlainMessage | undefined, b: Projects | PlainMessage | undefined): boolean { + return proto3.util.equals(Projects, a, b); + } +} + +/** + * Request to retrieve a list of projects matching specified filters. + * See :ref:`ref_flyteidl.admin.Project` for more details + * + * @generated from message flyteidl.admin.ProjectListRequest + */ +export class ProjectListRequest extends Message { + /** + * Indicates the number of projects to be returned. + * +required + * + * @generated from field: uint32 limit = 1; + */ + limit = 0; + + /** + * In the case of multiple pages of results, this server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 2; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * More info on constructing filters : + * +optional + * + * @generated from field: string filters = 3; + */ + filters = ""; + + /** + * Sort ordering. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 4; + */ + sortBy?: Sort; + + /** + * Optional, org filter applied to list project requests. + * + * @generated from field: string org = 5; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sort_by", kind: "message", T: Sort }, + { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectListRequest { + return new ProjectListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectListRequest { + return new ProjectListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectListRequest { + return new ProjectListRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectListRequest | PlainMessage | undefined, b: ProjectListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectListRequest, a, b); + } +} + +/** + * Adds a new user-project within the Flyte deployment. + * See :ref:`ref_flyteidl.admin.Project` for more details + * + * @generated from message flyteidl.admin.ProjectRegisterRequest + */ +export class ProjectRegisterRequest extends Message { + /** + * +required + * + * @generated from field: flyteidl.admin.Project project = 1; + */ + project?: Project; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectRegisterRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "message", T: Project }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectRegisterRequest { + return new ProjectRegisterRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectRegisterRequest { + return new ProjectRegisterRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectRegisterRequest { + return new ProjectRegisterRequest().fromJsonString(jsonString, options); + } + + static equals(a: ProjectRegisterRequest | PlainMessage | undefined, b: ProjectRegisterRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectRegisterRequest, a, b); + } +} + +/** + * Purposefully empty, may be updated in the future. + * + * @generated from message flyteidl.admin.ProjectRegisterResponse + */ +export class ProjectRegisterResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectRegisterResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectRegisterResponse { + return new ProjectRegisterResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectRegisterResponse { + return new ProjectRegisterResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectRegisterResponse { + return new ProjectRegisterResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectRegisterResponse | PlainMessage | undefined, b: ProjectRegisterResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectRegisterResponse, a, b); + } +} + +/** + * Purposefully empty, may be updated in the future. + * + * @generated from message flyteidl.admin.ProjectUpdateResponse + */ +export class ProjectUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.ProjectUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ProjectUpdateResponse { + return new ProjectUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ProjectUpdateResponse { + return new ProjectUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ProjectUpdateResponse { + return new ProjectUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: ProjectUpdateResponse | PlainMessage | undefined, b: ProjectUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ProjectUpdateResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts new file mode 100644 index 0000000000..b691123586 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/schedule_pb.ts @@ -0,0 +1,204 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/schedule.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Represents a frequency at which to run a schedule. + * + * @generated from enum flyteidl.admin.FixedRateUnit + */ +export enum FixedRateUnit { + /** + * @generated from enum value: MINUTE = 0; + */ + MINUTE = 0, + + /** + * @generated from enum value: HOUR = 1; + */ + HOUR = 1, + + /** + * @generated from enum value: DAY = 2; + */ + DAY = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(FixedRateUnit) +proto3.util.setEnumType(FixedRateUnit, "flyteidl.admin.FixedRateUnit", [ + { no: 0, name: "MINUTE" }, + { no: 1, name: "HOUR" }, + { no: 2, name: "DAY" }, +]); + +/** + * Option for schedules run at a certain frequency e.g. every 2 minutes. + * + * @generated from message flyteidl.admin.FixedRate + */ +export class FixedRate extends Message { + /** + * @generated from field: uint32 value = 1; + */ + value = 0; + + /** + * @generated from field: flyteidl.admin.FixedRateUnit unit = 2; + */ + unit = FixedRateUnit.MINUTE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.FixedRate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "unit", kind: "enum", T: proto3.getEnumType(FixedRateUnit) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FixedRate { + return new FixedRate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FixedRate { + return new FixedRate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FixedRate { + return new FixedRate().fromJsonString(jsonString, options); + } + + static equals(a: FixedRate | PlainMessage | undefined, b: FixedRate | PlainMessage | undefined): boolean { + return proto3.util.equals(FixedRate, a, b); + } +} + +/** + * Options for schedules to run according to a cron expression. + * + * @generated from message flyteidl.admin.CronSchedule + */ +export class CronSchedule extends Message { + /** + * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; + * Also supports nonstandard predefined scheduling definitions + * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions + * except @reboot + * + * @generated from field: string schedule = 1; + */ + schedule = ""; + + /** + * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations + * + * @generated from field: string offset = 2; + */ + offset = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.CronSchedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "schedule", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "offset", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CronSchedule { + return new CronSchedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CronSchedule { + return new CronSchedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CronSchedule { + return new CronSchedule().fromJsonString(jsonString, options); + } + + static equals(a: CronSchedule | PlainMessage | undefined, b: CronSchedule | PlainMessage | undefined): boolean { + return proto3.util.equals(CronSchedule, a, b); + } +} + +/** + * Defines complete set of information required to trigger an execution on a schedule. + * + * @generated from message flyteidl.admin.Schedule + */ +export class Schedule extends Message { + /** + * @generated from oneof flyteidl.admin.Schedule.ScheduleExpression + */ + ScheduleExpression: { + /** + * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year + * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * + * + * @generated from field: string cron_expression = 1 [deprecated = true]; + * @deprecated + */ + value: string; + case: "cronExpression"; + } | { + /** + * @generated from field: flyteidl.admin.FixedRate rate = 2; + */ + value: FixedRate; + case: "rate"; + } | { + /** + * @generated from field: flyteidl.admin.CronSchedule cron_schedule = 4; + */ + value: CronSchedule; + case: "cronSchedule"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + * + * @generated from field: string kickoff_time_input_arg = 3; + */ + kickoffTimeInputArg = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Schedule"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cron_expression", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "ScheduleExpression" }, + { no: 2, name: "rate", kind: "message", T: FixedRate, oneof: "ScheduleExpression" }, + { no: 4, name: "cron_schedule", kind: "message", T: CronSchedule, oneof: "ScheduleExpression" }, + { no: 3, name: "kickoff_time_input_arg", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Schedule { + return new Schedule().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Schedule { + return new Schedule().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Schedule { + return new Schedule().fromJsonString(jsonString, options); + } + + static equals(a: Schedule | PlainMessage | undefined, b: Schedule | PlainMessage | undefined): boolean { + return proto3.util.equals(Schedule, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts new file mode 100644 index 0000000000..6bb89c82b5 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/signal_pb.ts @@ -0,0 +1,339 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/signal.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { SignalIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; +import { LiteralType } from "../core/types_pb.js"; +import { Sort } from "./common_pb.js"; +import { Literal } from "../core/literals_pb.js"; + +/** + * SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. + * See :ref:`ref_flyteidl.admin.Signal` for more details + * + * @generated from message flyteidl.admin.SignalGetOrCreateRequest + */ +export class SignalGetOrCreateRequest extends Message { + /** + * A unique identifier for the requested signal. + * + * @generated from field: flyteidl.core.SignalIdentifier id = 1; + */ + id?: SignalIdentifier; + + /** + * A type denoting the required value type for this signal. + * + * @generated from field: flyteidl.core.LiteralType type = 2; + */ + type?: LiteralType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SignalGetOrCreateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: SignalIdentifier }, + { no: 2, name: "type", kind: "message", T: LiteralType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalGetOrCreateRequest { + return new SignalGetOrCreateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalGetOrCreateRequest { + return new SignalGetOrCreateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalGetOrCreateRequest { + return new SignalGetOrCreateRequest().fromJsonString(jsonString, options); + } + + static equals(a: SignalGetOrCreateRequest | PlainMessage | undefined, b: SignalGetOrCreateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalGetOrCreateRequest, a, b); + } +} + +/** + * SignalListRequest represents a request structure to retrieve a collection of signals. + * See :ref:`ref_flyteidl.admin.Signal` for more details + * + * @generated from message flyteidl.admin.SignalListRequest + */ +export class SignalListRequest extends Message { + /** + * Indicates the workflow execution to filter by. + * +required + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; + */ + workflowExecutionId?: WorkflowExecutionIdentifier; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 2; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 3; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * +optional + * + * @generated from field: string filters = 4; + */ + filters = ""; + + /** + * Sort ordering. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SignalListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workflow_execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalListRequest { + return new SignalListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalListRequest { + return new SignalListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalListRequest { + return new SignalListRequest().fromJsonString(jsonString, options); + } + + static equals(a: SignalListRequest | PlainMessage | undefined, b: SignalListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalListRequest, a, b); + } +} + +/** + * SignalList represents collection of signals along with the token of the last result. + * See :ref:`ref_flyteidl.admin.Signal` for more details + * + * @generated from message flyteidl.admin.SignalList + */ +export class SignalList extends Message { + /** + * A list of signals matching the input filters. + * + * @generated from field: repeated flyteidl.admin.Signal signals = 1; + */ + signals: Signal[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SignalList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signals", kind: "message", T: Signal, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalList { + return new SignalList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalList { + return new SignalList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalList { + return new SignalList().fromJsonString(jsonString, options); + } + + static equals(a: SignalList | PlainMessage | undefined, b: SignalList | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalList, a, b); + } +} + +/** + * SignalSetRequest represents a request structure to set the value on a signal. Setting a signal + * effetively satisfies the signal condition within a Flyte workflow. + * See :ref:`ref_flyteidl.admin.Signal` for more details + * + * @generated from message flyteidl.admin.SignalSetRequest + */ +export class SignalSetRequest extends Message { + /** + * A unique identifier for the requested signal. + * + * @generated from field: flyteidl.core.SignalIdentifier id = 1; + */ + id?: SignalIdentifier; + + /** + * The value of this signal, must match the defining signal type. + * + * @generated from field: flyteidl.core.Literal value = 2; + */ + value?: Literal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SignalSetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: SignalIdentifier }, + { no: 2, name: "value", kind: "message", T: Literal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalSetRequest { + return new SignalSetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalSetRequest { + return new SignalSetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalSetRequest { + return new SignalSetRequest().fromJsonString(jsonString, options); + } + + static equals(a: SignalSetRequest | PlainMessage | undefined, b: SignalSetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalSetRequest, a, b); + } +} + +/** + * SignalSetResponse represents a response structure if signal setting succeeds. + * + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.SignalSetResponse + */ +export class SignalSetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.SignalSetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalSetResponse { + return new SignalSetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalSetResponse { + return new SignalSetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalSetResponse { + return new SignalSetResponse().fromJsonString(jsonString, options); + } + + static equals(a: SignalSetResponse | PlainMessage | undefined, b: SignalSetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalSetResponse, a, b); + } +} + +/** + * Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte + * signal. Signals may exist either without a set value (representing a signal request) or with a + * populated value (indicating the signal has been given). + * + * @generated from message flyteidl.admin.Signal + */ +export class Signal extends Message { + /** + * A unique identifier for the requested signal. + * + * @generated from field: flyteidl.core.SignalIdentifier id = 1; + */ + id?: SignalIdentifier; + + /** + * A type denoting the required value type for this signal. + * + * @generated from field: flyteidl.core.LiteralType type = 2; + */ + type?: LiteralType; + + /** + * The value of the signal. This is only available if the signal has been "set" and must match + * the defined the type. + * + * @generated from field: flyteidl.core.Literal value = 3; + */ + value?: Literal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Signal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: SignalIdentifier }, + { no: 2, name: "type", kind: "message", T: LiteralType }, + { no: 3, name: "value", kind: "message", T: Literal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Signal { + return new Signal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Signal { + return new Signal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Signal { + return new Signal().fromJsonString(jsonString, options); + } + + static equals(a: Signal | PlainMessage | undefined, b: Signal | PlainMessage | undefined): boolean { + return proto3.util.equals(Signal, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts new file mode 100644 index 0000000000..539810b38b --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/task_execution_pb.ts @@ -0,0 +1,592 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/task_execution.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; +import { NodeExecutionIdentifier, TaskExecutionIdentifier } from "../core/identifier_pb.js"; +import { FlyteURLs, Sort, UrlBlob } from "./common_pb.js"; +import { ExecutionError, TaskExecution_Phase, TaskLog } from "../core/execution_pb.js"; +import { LiteralMap } from "../core/literals_pb.js"; +import { TaskExecutionMetadata } from "../event/event_pb.js"; + +/** + * A message used to fetch a single task execution entity. + * See :ref:`ref_flyteidl.admin.TaskExecution` for more details + * + * @generated from message flyteidl.admin.TaskExecutionGetRequest + */ +export class TaskExecutionGetRequest extends Message { + /** + * Unique identifier for the task execution. + * +required + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; + */ + id?: TaskExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionGetRequest { + return new TaskExecutionGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionGetRequest { + return new TaskExecutionGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionGetRequest { + return new TaskExecutionGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionGetRequest | PlainMessage | undefined, b: TaskExecutionGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionGetRequest, a, b); + } +} + +/** + * Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. + * See :ref:`ref_flyteidl.admin.TaskExecution` for more details + * + * @generated from message flyteidl.admin.TaskExecutionListRequest + */ +export class TaskExecutionListRequest extends Message { + /** + * Indicates the node execution to filter by. + * +required + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; + */ + nodeExecutionId?: NodeExecutionIdentifier; + + /** + * Indicates the number of resources to be returned. + * +required + * + * @generated from field: uint32 limit = 2; + */ + limit = 0; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. + * +optional + * + * @generated from field: string token = 3; + */ + token = ""; + + /** + * Indicates a list of filters passed as string. + * More info on constructing filters : + * +optional + * + * @generated from field: string filters = 4; + */ + filters = ""; + + /** + * Sort ordering for returned list. + * +optional + * + * @generated from field: flyteidl.admin.Sort sort_by = 5; + */ + sortBy?: Sort; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionListRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "node_execution_id", kind: "message", T: NodeExecutionIdentifier }, + { no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "filters", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "sort_by", kind: "message", T: Sort }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionListRequest { + return new TaskExecutionListRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionListRequest { + return new TaskExecutionListRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionListRequest { + return new TaskExecutionListRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionListRequest | PlainMessage | undefined, b: TaskExecutionListRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionListRequest, a, b); + } +} + +/** + * Encapsulates all details for a single task execution entity. + * A task execution represents an instantiated task, including all inputs and additional + * metadata as well as computed results included state, outputs, and duration-based attributes. + * + * @generated from message flyteidl.admin.TaskExecution + */ +export class TaskExecution extends Message { + /** + * Unique identifier for the task execution. + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; + */ + id?: TaskExecutionIdentifier; + + /** + * Path to remote data store where input blob is stored. + * + * @generated from field: string input_uri = 2; + */ + inputUri = ""; + + /** + * Task execution details and results. + * + * @generated from field: flyteidl.admin.TaskExecutionClosure closure = 3; + */ + closure?: TaskExecutionClosure; + + /** + * Whether this task spawned nodes. + * + * @generated from field: bool is_parent = 4; + */ + isParent = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, + { no: 2, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "closure", kind: "message", T: TaskExecutionClosure }, + { no: 4, name: "is_parent", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecution { + return new TaskExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecution { + return new TaskExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecution { + return new TaskExecution().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecution | PlainMessage | undefined, b: TaskExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecution, a, b); + } +} + +/** + * Response structure for a query to list of task execution entities. + * See :ref:`ref_flyteidl.admin.TaskExecution` for more details + * + * @generated from message flyteidl.admin.TaskExecutionList + */ +export class TaskExecutionList extends Message { + /** + * @generated from field: repeated flyteidl.admin.TaskExecution task_executions = 1; + */ + taskExecutions: TaskExecution[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_executions", kind: "message", T: TaskExecution, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionList { + return new TaskExecutionList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionList { + return new TaskExecutionList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionList { + return new TaskExecutionList().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionList | PlainMessage | undefined, b: TaskExecutionList | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionList, a, b); + } +} + +/** + * Container for task execution details and results. + * + * @generated from message flyteidl.admin.TaskExecutionClosure + */ +export class TaskExecutionClosure extends Message { + /** + * @generated from oneof flyteidl.admin.TaskExecutionClosure.output_result + */ + outputResult: { + /** + * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + * DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + * + * @generated from field: string output_uri = 1 [deprecated = true]; + * @deprecated + */ + value: string; + case: "outputUri"; + } | { + /** + * Error information for the task execution. Populated if the execution failed. + * + * @generated from field: flyteidl.core.ExecutionError error = 2; + */ + value: ExecutionError; + case: "error"; + } | { + /** + * Raw output data produced by this task execution. + * DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + * + * @generated from field: flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; + * @deprecated + */ + value: LiteralMap; + case: "outputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * The last recorded phase for this task execution. + * + * @generated from field: flyteidl.core.TaskExecution.Phase phase = 3; + */ + phase = TaskExecution_Phase.UNDEFINED; + + /** + * Detailed log information output by the task execution. + * + * @generated from field: repeated flyteidl.core.TaskLog logs = 4; + */ + logs: TaskLog[] = []; + + /** + * Time at which the task execution began running. + * + * @generated from field: google.protobuf.Timestamp started_at = 5; + */ + startedAt?: Timestamp; + + /** + * The amount of time the task execution spent running. + * + * @generated from field: google.protobuf.Duration duration = 6; + */ + duration?: Duration; + + /** + * Time at which the task execution was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 7; + */ + createdAt?: Timestamp; + + /** + * Time at which the task execution was last updated. + * + * @generated from field: google.protobuf.Timestamp updated_at = 8; + */ + updatedAt?: Timestamp; + + /** + * Custom data specific to the task plugin. + * + * @generated from field: google.protobuf.Struct custom_info = 9; + */ + customInfo?: Struct; + + /** + * If there is an explanation for the most recent phase transition, the reason will capture it. + * + * @generated from field: string reason = 10; + */ + reason = ""; + + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string task_type = 11; + */ + taskType = ""; + + /** + * Metadata around how a task was executed. + * + * @generated from field: flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + metadata?: TaskExecutionMetadata; + + /** + * The event version is used to indicate versioned changes in how data is maintained using this + * proto message. For example, event_verison > 0 means that maps tasks logs use the + * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + * in this message. + * + * @generated from field: int32 event_version = 17; + */ + eventVersion = 0; + + /** + * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason + * as previously done, is much more valuable in visualizing and understanding historical evaluations. + * + * @generated from field: repeated flyteidl.admin.Reason reasons = 18; + */ + reasons: Reason[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, + { no: 2, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, + { no: 12, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, + { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, + { no: 4, name: "logs", kind: "message", T: TaskLog, repeated: true }, + { no: 5, name: "started_at", kind: "message", T: Timestamp }, + { no: 6, name: "duration", kind: "message", T: Duration }, + { no: 7, name: "created_at", kind: "message", T: Timestamp }, + { no: 8, name: "updated_at", kind: "message", T: Timestamp }, + { no: 9, name: "custom_info", kind: "message", T: Struct }, + { no: 10, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 11, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "metadata", kind: "message", T: TaskExecutionMetadata }, + { no: 17, name: "event_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 18, name: "reasons", kind: "message", T: Reason, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionClosure { + return new TaskExecutionClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionClosure { + return new TaskExecutionClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionClosure { + return new TaskExecutionClosure().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionClosure | PlainMessage | undefined, b: TaskExecutionClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionClosure, a, b); + } +} + +/** + * Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. + * + * @generated from message flyteidl.admin.Reason + */ +export class Reason extends Message { + /** + * occurred_at is the timestamp indicating the instant that this reason happened. + * + * @generated from field: google.protobuf.Timestamp occurred_at = 1; + */ + occurredAt?: Timestamp; + + /** + * message is the explanation for the most recent phase transition or status update. + * + * @generated from field: string message = 2; + */ + message = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Reason"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "occurred_at", kind: "message", T: Timestamp }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Reason { + return new Reason().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Reason { + return new Reason().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Reason { + return new Reason().fromJsonString(jsonString, options); + } + + static equals(a: Reason | PlainMessage | undefined, b: Reason | PlainMessage | undefined): boolean { + return proto3.util.equals(Reason, a, b); + } +} + +/** + * Request structure to fetch inputs and output for a task execution. + * By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` + * + * @generated from message flyteidl.admin.TaskExecutionGetDataRequest + */ +export class TaskExecutionGetDataRequest extends Message { + /** + * The identifier of the task execution for which to fetch inputs and outputs. + * +required + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; + */ + id?: TaskExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionGetDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionGetDataRequest { + return new TaskExecutionGetDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionGetDataRequest { + return new TaskExecutionGetDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionGetDataRequest { + return new TaskExecutionGetDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionGetDataRequest | PlainMessage | undefined, b: TaskExecutionGetDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionGetDataRequest, a, b); + } +} + +/** + * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. + * + * @generated from message flyteidl.admin.TaskExecutionGetDataResponse + */ +export class TaskExecutionGetDataResponse extends Message { + /** + * Signed url to fetch a core.LiteralMap of task execution inputs. + * Deprecated: Please use full_inputs instead. + * + * @generated from field: flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; + * @deprecated + */ + inputs?: UrlBlob; + + /** + * Signed url to fetch a core.LiteralMap of task execution outputs. + * Deprecated: Please use full_outputs instead. + * + * @generated from field: flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; + * @deprecated + */ + outputs?: UrlBlob; + + /** + * Full_inputs will only be populated if they are under a configured size threshold. + * + * @generated from field: flyteidl.core.LiteralMap full_inputs = 3; + */ + fullInputs?: LiteralMap; + + /** + * Full_outputs will only be populated if they are under a configured size threshold. + * + * @generated from field: flyteidl.core.LiteralMap full_outputs = 4; + */ + fullOutputs?: LiteralMap; + + /** + * flyte tiny url to fetch a core.LiteralMap of task execution's IO + * Deck will be empty for task + * + * @generated from field: flyteidl.admin.FlyteURLs flyte_urls = 5; + */ + flyteUrls?: FlyteURLs; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskExecutionGetDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inputs", kind: "message", T: UrlBlob }, + { no: 2, name: "outputs", kind: "message", T: UrlBlob }, + { no: 3, name: "full_inputs", kind: "message", T: LiteralMap }, + { no: 4, name: "full_outputs", kind: "message", T: LiteralMap }, + { no: 5, name: "flyte_urls", kind: "message", T: FlyteURLs }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionGetDataResponse { + return new TaskExecutionGetDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionGetDataResponse { + return new TaskExecutionGetDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionGetDataResponse { + return new TaskExecutionGetDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionGetDataResponse | PlainMessage | undefined, b: TaskExecutionGetDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionGetDataResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts new file mode 100644 index 0000000000..f4b22f068f --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/task_pb.ts @@ -0,0 +1,308 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/task.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Identifier } from "../core/identifier_pb.js"; +import { TaskTemplate } from "../core/tasks_pb.js"; +import { DescriptionEntity } from "./description_entity_pb.js"; +import { CompiledTask } from "../core/compiler_pb.js"; + +/** + * Represents a request structure to create a revision of a task. + * See :ref:`ref_flyteidl.admin.Task` for more details + * + * @generated from message flyteidl.admin.TaskCreateRequest + */ +export class TaskCreateRequest extends Message { + /** + * id represents the unique identifier of the task. + * +required + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * Represents the specification for task. + * +required + * + * @generated from field: flyteidl.admin.TaskSpec spec = 2; + */ + spec?: TaskSpec; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskCreateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "spec", kind: "message", T: TaskSpec }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateRequest { + return new TaskCreateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateRequest { + return new TaskCreateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskCreateRequest { + return new TaskCreateRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskCreateRequest | PlainMessage | undefined, b: TaskCreateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskCreateRequest, a, b); + } +} + +/** + * Represents a response structure if task creation succeeds. + * + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.TaskCreateResponse + */ +export class TaskCreateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskCreateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateResponse { + return new TaskCreateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateResponse { + return new TaskCreateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskCreateResponse { + return new TaskCreateResponse().fromJsonString(jsonString, options); + } + + static equals(a: TaskCreateResponse | PlainMessage | undefined, b: TaskCreateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskCreateResponse, a, b); + } +} + +/** + * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks + * arranged to process workflow inputs and produce a deterministic set of outputs. + * Tasks can come in many varieties tuned for specialized behavior. + * + * @generated from message flyteidl.admin.Task + */ +export class Task extends Message { + /** + * id represents the unique identifier of the task. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * closure encapsulates all the fields that maps to a compiled version of the task. + * + * @generated from field: flyteidl.admin.TaskClosure closure = 2; + */ + closure?: TaskClosure; + + /** + * One-liner overview of the entity. + * + * @generated from field: string short_description = 3; + */ + shortDescription = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Task"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "closure", kind: "message", T: TaskClosure }, + { no: 3, name: "short_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Task { + return new Task().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Task { + return new Task().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Task { + return new Task().fromJsonString(jsonString, options); + } + + static equals(a: Task | PlainMessage | undefined, b: Task | PlainMessage | undefined): boolean { + return proto3.util.equals(Task, a, b); + } +} + +/** + * Represents a list of tasks returned from the admin. + * See :ref:`ref_flyteidl.admin.Task` for more details + * + * @generated from message flyteidl.admin.TaskList + */ +export class TaskList extends Message { + /** + * A list of tasks returned based on the request. + * + * @generated from field: repeated flyteidl.admin.Task tasks = 1; + */ + tasks: Task[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tasks", kind: "message", T: Task, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskList { + return new TaskList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskList { + return new TaskList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskList { + return new TaskList().fromJsonString(jsonString, options); + } + + static equals(a: TaskList | PlainMessage | undefined, b: TaskList | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskList, a, b); + } +} + +/** + * Represents a structure that encapsulates the user-configured specification of the task. + * + * @generated from message flyteidl.admin.TaskSpec + */ +export class TaskSpec extends Message { + /** + * Template of the task that encapsulates all the metadata of the task. + * + * @generated from field: flyteidl.core.TaskTemplate template = 1; + */ + template?: TaskTemplate; + + /** + * Represents the specification for description entity. + * + * @generated from field: flyteidl.admin.DescriptionEntity description = 2; + */ + description?: DescriptionEntity; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: TaskTemplate }, + { no: 2, name: "description", kind: "message", T: DescriptionEntity }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskSpec { + return new TaskSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskSpec { + return new TaskSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskSpec { + return new TaskSpec().fromJsonString(jsonString, options); + } + + static equals(a: TaskSpec | PlainMessage | undefined, b: TaskSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskSpec, a, b); + } +} + +/** + * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data + * and task metadata. + * + * @generated from message flyteidl.admin.TaskClosure + */ +export class TaskClosure extends Message { + /** + * Represents the compiled representation of the task from the specification provided. + * + * @generated from field: flyteidl.core.CompiledTask compiled_task = 1; + */ + compiledTask?: CompiledTask; + + /** + * Time at which the task was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 2; + */ + createdAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.TaskClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "compiled_task", kind: "message", T: CompiledTask }, + { no: 2, name: "created_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskClosure { + return new TaskClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskClosure { + return new TaskClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskClosure { + return new TaskClosure().fromJsonString(jsonString, options); + } + + static equals(a: TaskClosure | PlainMessage | undefined, b: TaskClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskClosure, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts new file mode 100644 index 0000000000..0069dc1aa8 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/version_pb.ts @@ -0,0 +1,140 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/version.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Response for the GetVersion API + * + * @generated from message flyteidl.admin.GetVersionResponse + */ +export class GetVersionResponse extends Message { + /** + * The control plane version information. FlyteAdmin and related components + * form the control plane of Flyte + * + * @generated from field: flyteidl.admin.Version control_plane_version = 1; + */ + controlPlaneVersion?: Version; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetVersionResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "control_plane_version", kind: "message", T: Version }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetVersionResponse { + return new GetVersionResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetVersionResponse { + return new GetVersionResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetVersionResponse { + return new GetVersionResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetVersionResponse | PlainMessage | undefined, b: GetVersionResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetVersionResponse, a, b); + } +} + +/** + * Provides Version information for a component + * + * @generated from message flyteidl.admin.Version + */ +export class Version extends Message { + /** + * Specifies the GIT sha of the build + * + * @generated from field: string Build = 1; + */ + Build = ""; + + /** + * Version for the build, should follow a semver + * + * @generated from field: string Version = 2; + */ + Version = ""; + + /** + * Build timestamp + * + * @generated from field: string BuildTime = 3; + */ + BuildTime = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Version"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "Build", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "Version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "BuildTime", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Version { + return new Version().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Version { + return new Version().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Version { + return new Version().fromJsonString(jsonString, options); + } + + static equals(a: Version | PlainMessage | undefined, b: Version | PlainMessage | undefined): boolean { + return proto3.util.equals(Version, a, b); + } +} + +/** + * Empty request for GetVersion + * + * @generated from message flyteidl.admin.GetVersionRequest + */ +export class GetVersionRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.GetVersionRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetVersionRequest { + return new GetVersionRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetVersionRequest { + return new GetVersionRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetVersionRequest { + return new GetVersionRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetVersionRequest | PlainMessage | undefined, b: GetVersionRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetVersionRequest, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts new file mode 100644 index 0000000000..9f7e48d00b --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/workflow_attributes_pb.ts @@ -0,0 +1,382 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/workflow_attributes.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { MatchableResource, MatchingAttributes } from "./matchable_resource_pb.js"; + +/** + * Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.WorkflowAttributes + */ +export class WorkflowAttributes extends Message { + /** + * Unique project id for which this set of attributes will be applied. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Unique domain id for which this set of attributes will be applied. + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Workflow name for which this set of attributes will be applied. + * + * @generated from field: string workflow = 3; + */ + workflow = ""; + + /** + * @generated from field: flyteidl.admin.MatchingAttributes matching_attributes = 4; + */ + matchingAttributes?: MatchingAttributes; + + /** + * Optional, org key applied to the attributes. + * + * @generated from field: string org = 5; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributes"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "matching_attributes", kind: "message", T: MatchingAttributes }, + { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributes { + return new WorkflowAttributes().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributes { + return new WorkflowAttributes().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributes { + return new WorkflowAttributes().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributes | PlainMessage | undefined, b: WorkflowAttributes | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributes, a, b); + } +} + +/** + * Sets custom attributes for a project, domain and workflow combination. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.WorkflowAttributesUpdateRequest + */ +export class WorkflowAttributesUpdateRequest extends Message { + /** + * @generated from field: flyteidl.admin.WorkflowAttributes attributes = 1; + */ + attributes?: WorkflowAttributes; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributesUpdateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: WorkflowAttributes }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesUpdateRequest { + return new WorkflowAttributesUpdateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesUpdateRequest { + return new WorkflowAttributesUpdateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesUpdateRequest { + return new WorkflowAttributesUpdateRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributesUpdateRequest | PlainMessage | undefined, b: WorkflowAttributesUpdateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributesUpdateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.WorkflowAttributesUpdateResponse + */ +export class WorkflowAttributesUpdateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributesUpdateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesUpdateResponse { + return new WorkflowAttributesUpdateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesUpdateResponse { + return new WorkflowAttributesUpdateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesUpdateResponse { + return new WorkflowAttributesUpdateResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributesUpdateResponse | PlainMessage | undefined, b: WorkflowAttributesUpdateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributesUpdateResponse, a, b); + } +} + +/** + * Request to get an individual workflow attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.WorkflowAttributesGetRequest + */ +export class WorkflowAttributesGetRequest extends Message { + /** + * Unique project id which this set of attributes references. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Unique domain id which this set of attributes references. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Workflow name which this set of attributes references. + * +required + * + * @generated from field: string workflow = 3; + */ + workflow = ""; + + /** + * Which type of matchable attributes to return. + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 4; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org key applied to the attributes. + * + * @generated from field: string org = 5; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributesGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesGetRequest { + return new WorkflowAttributesGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesGetRequest { + return new WorkflowAttributesGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesGetRequest { + return new WorkflowAttributesGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributesGetRequest | PlainMessage | undefined, b: WorkflowAttributesGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributesGetRequest, a, b); + } +} + +/** + * Response to get an individual workflow attribute override. + * + * @generated from message flyteidl.admin.WorkflowAttributesGetResponse + */ +export class WorkflowAttributesGetResponse extends Message { + /** + * @generated from field: flyteidl.admin.WorkflowAttributes attributes = 1; + */ + attributes?: WorkflowAttributes; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributesGetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "attributes", kind: "message", T: WorkflowAttributes }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesGetResponse { + return new WorkflowAttributesGetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesGetResponse { + return new WorkflowAttributesGetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesGetResponse { + return new WorkflowAttributesGetResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributesGetResponse | PlainMessage | undefined, b: WorkflowAttributesGetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributesGetResponse, a, b); + } +} + +/** + * Request to delete a set matchable workflow attribute override. + * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` + * + * @generated from message flyteidl.admin.WorkflowAttributesDeleteRequest + */ +export class WorkflowAttributesDeleteRequest extends Message { + /** + * Unique project id which this set of attributes references. + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Unique domain id which this set of attributes references. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Workflow name which this set of attributes references. + * +required + * + * @generated from field: string workflow = 3; + */ + workflow = ""; + + /** + * Which type of matchable attributes to delete. + * +required + * + * @generated from field: flyteidl.admin.MatchableResource resource_type = 4; + */ + resourceType = MatchableResource.TASK_RESOURCE; + + /** + * Optional, org key applied to the attributes. + * + * @generated from field: string org = 5; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributesDeleteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "workflow", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "resource_type", kind: "enum", T: proto3.getEnumType(MatchableResource) }, + { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesDeleteRequest { + return new WorkflowAttributesDeleteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesDeleteRequest { + return new WorkflowAttributesDeleteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesDeleteRequest { + return new WorkflowAttributesDeleteRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributesDeleteRequest | PlainMessage | undefined, b: WorkflowAttributesDeleteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributesDeleteRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.WorkflowAttributesDeleteResponse + */ +export class WorkflowAttributesDeleteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowAttributesDeleteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowAttributesDeleteResponse { + return new WorkflowAttributesDeleteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowAttributesDeleteResponse { + return new WorkflowAttributesDeleteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowAttributesDeleteResponse { + return new WorkflowAttributesDeleteResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowAttributesDeleteResponse | PlainMessage | undefined, b: WorkflowAttributesDeleteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowAttributesDeleteResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts new file mode 100644 index 0000000000..4238ebce9d --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/admin/workflow_pb.ts @@ -0,0 +1,445 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/admin/workflow.proto (package flyteidl.admin, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Identifier } from "../core/identifier_pb.js"; +import { WorkflowTemplate } from "../core/workflow_pb.js"; +import { DescriptionEntity } from "./description_entity_pb.js"; +import { CompiledWorkflowClosure } from "../core/compiler_pb.js"; + +/** + * Represents a request structure to create a revision of a workflow. + * See :ref:`ref_flyteidl.admin.Workflow` for more details + * + * @generated from message flyteidl.admin.WorkflowCreateRequest + */ +export class WorkflowCreateRequest extends Message { + /** + * id represents the unique identifier of the workflow. + * +required + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * Represents the specification for workflow. + * +required + * + * @generated from field: flyteidl.admin.WorkflowSpec spec = 2; + */ + spec?: WorkflowSpec; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowCreateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "spec", kind: "message", T: WorkflowSpec }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowCreateRequest { + return new WorkflowCreateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowCreateRequest { + return new WorkflowCreateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowCreateRequest { + return new WorkflowCreateRequest().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowCreateRequest | PlainMessage | undefined, b: WorkflowCreateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowCreateRequest, a, b); + } +} + +/** + * Purposefully empty, may be populated in the future. + * + * @generated from message flyteidl.admin.WorkflowCreateResponse + */ +export class WorkflowCreateResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowCreateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowCreateResponse { + return new WorkflowCreateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowCreateResponse { + return new WorkflowCreateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowCreateResponse { + return new WorkflowCreateResponse().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowCreateResponse | PlainMessage | undefined, b: WorkflowCreateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowCreateResponse, a, b); + } +} + +/** + * Represents the workflow structure stored in the Admin + * A workflow is created by ordering tasks and associating outputs to inputs + * in order to produce a directed-acyclic execution graph. + * + * @generated from message flyteidl.admin.Workflow + */ +export class Workflow extends Message { + /** + * id represents the unique identifier of the workflow. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * closure encapsulates all the fields that maps to a compiled version of the workflow. + * + * @generated from field: flyteidl.admin.WorkflowClosure closure = 2; + */ + closure?: WorkflowClosure; + + /** + * One-liner overview of the entity. + * + * @generated from field: string short_description = 3; + */ + shortDescription = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.Workflow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "closure", kind: "message", T: WorkflowClosure }, + { no: 3, name: "short_description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Workflow { + return new Workflow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Workflow { + return new Workflow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Workflow { + return new Workflow().fromJsonString(jsonString, options); + } + + static equals(a: Workflow | PlainMessage | undefined, b: Workflow | PlainMessage | undefined): boolean { + return proto3.util.equals(Workflow, a, b); + } +} + +/** + * Represents a list of workflows returned from the admin. + * See :ref:`ref_flyteidl.admin.Workflow` for more details + * + * @generated from message flyteidl.admin.WorkflowList + */ +export class WorkflowList extends Message { + /** + * A list of workflows returned based on the request. + * + * @generated from field: repeated flyteidl.admin.Workflow workflows = 1; + */ + workflows: Workflow[] = []; + + /** + * In the case of multiple pages of results, the server-provided token can be used to fetch the next page + * in a query. If there are no more results, this value will be empty. + * + * @generated from field: string token = 2; + */ + token = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workflows", kind: "message", T: Workflow, repeated: true }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowList { + return new WorkflowList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowList { + return new WorkflowList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowList { + return new WorkflowList().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowList | PlainMessage | undefined, b: WorkflowList | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowList, a, b); + } +} + +/** + * Represents a structure that encapsulates the specification of the workflow. + * + * @generated from message flyteidl.admin.WorkflowSpec + */ +export class WorkflowSpec extends Message { + /** + * Template of the task that encapsulates all the metadata of the workflow. + * + * @generated from field: flyteidl.core.WorkflowTemplate template = 1; + */ + template?: WorkflowTemplate; + + /** + * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the + * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out + * to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + * + * @generated from field: repeated flyteidl.core.WorkflowTemplate sub_workflows = 2; + */ + subWorkflows: WorkflowTemplate[] = []; + + /** + * Represents the specification for description entity. + * + * @generated from field: flyteidl.admin.DescriptionEntity description = 3; + */ + description?: DescriptionEntity; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: WorkflowTemplate }, + { no: 2, name: "sub_workflows", kind: "message", T: WorkflowTemplate, repeated: true }, + { no: 3, name: "description", kind: "message", T: DescriptionEntity }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowSpec { + return new WorkflowSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowSpec { + return new WorkflowSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowSpec { + return new WorkflowSpec().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowSpec | PlainMessage | undefined, b: WorkflowSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowSpec, a, b); + } +} + +/** + * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. + * + * @generated from message flyteidl.admin.WorkflowClosure + */ +export class WorkflowClosure extends Message { + /** + * Represents the compiled representation of the workflow from the specification provided. + * + * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; + */ + compiledWorkflow?: CompiledWorkflowClosure; + + /** + * Time at which the workflow was created. + * + * @generated from field: google.protobuf.Timestamp created_at = 2; + */ + createdAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, + { no: 2, name: "created_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowClosure { + return new WorkflowClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowClosure { + return new WorkflowClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowClosure { + return new WorkflowClosure().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowClosure | PlainMessage | undefined, b: WorkflowClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowClosure, a, b); + } +} + +/** + * The workflow id is already used and the structure is different + * + * @generated from message flyteidl.admin.WorkflowErrorExistsDifferentStructure + */ +export class WorkflowErrorExistsDifferentStructure extends Message { + /** + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowErrorExistsDifferentStructure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowErrorExistsDifferentStructure { + return new WorkflowErrorExistsDifferentStructure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowErrorExistsDifferentStructure { + return new WorkflowErrorExistsDifferentStructure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowErrorExistsDifferentStructure { + return new WorkflowErrorExistsDifferentStructure().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowErrorExistsDifferentStructure | PlainMessage | undefined, b: WorkflowErrorExistsDifferentStructure | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowErrorExistsDifferentStructure, a, b); + } +} + +/** + * The workflow id is already used with an identical sctructure + * + * @generated from message flyteidl.admin.WorkflowErrorExistsIdenticalStructure + */ +export class WorkflowErrorExistsIdenticalStructure extends Message { + /** + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.WorkflowErrorExistsIdenticalStructure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowErrorExistsIdenticalStructure { + return new WorkflowErrorExistsIdenticalStructure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowErrorExistsIdenticalStructure { + return new WorkflowErrorExistsIdenticalStructure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowErrorExistsIdenticalStructure { + return new WorkflowErrorExistsIdenticalStructure().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowErrorExistsIdenticalStructure | PlainMessage | undefined, b: WorkflowErrorExistsIdenticalStructure | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowErrorExistsIdenticalStructure, a, b); + } +} + +/** + * When a CreateWorkflowRequest fails due to matching id + * + * @generated from message flyteidl.admin.CreateWorkflowFailureReason + */ +export class CreateWorkflowFailureReason extends Message { + /** + * @generated from oneof flyteidl.admin.CreateWorkflowFailureReason.reason + */ + reason: { + /** + * @generated from field: flyteidl.admin.WorkflowErrorExistsDifferentStructure exists_different_structure = 1; + */ + value: WorkflowErrorExistsDifferentStructure; + case: "existsDifferentStructure"; + } | { + /** + * @generated from field: flyteidl.admin.WorkflowErrorExistsIdenticalStructure exists_identical_structure = 2; + */ + value: WorkflowErrorExistsIdenticalStructure; + case: "existsIdenticalStructure"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.admin.CreateWorkflowFailureReason"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "exists_different_structure", kind: "message", T: WorkflowErrorExistsDifferentStructure, oneof: "reason" }, + { no: 2, name: "exists_identical_structure", kind: "message", T: WorkflowErrorExistsIdenticalStructure, oneof: "reason" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateWorkflowFailureReason { + return new CreateWorkflowFailureReason().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateWorkflowFailureReason { + return new CreateWorkflowFailureReason().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateWorkflowFailureReason { + return new CreateWorkflowFailureReason().fromJsonString(jsonString, options); + } + + static equals(a: CreateWorkflowFailureReason | PlainMessage | undefined, b: CreateWorkflowFailureReason | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateWorkflowFailureReason, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts new file mode 100644 index 0000000000..2e03e3916f --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/artifact_id_pb.ts @@ -0,0 +1,488 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/artifact_id.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; + +/** + * @generated from message flyteidl.core.ArtifactKey + */ +export class ArtifactKey extends Message { + /** + * Project and domain and suffix needs to be unique across a given artifact store. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * @generated from field: string name = 3; + */ + name = ""; + + /** + * @generated from field: string org = 4; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ArtifactKey"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactKey { + return new ArtifactKey().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactKey { + return new ArtifactKey().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactKey { + return new ArtifactKey().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactKey | PlainMessage | undefined, b: ArtifactKey | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactKey, a, b); + } +} + +/** + * Only valid for triggers + * + * @generated from message flyteidl.core.ArtifactBindingData + */ +export class ArtifactBindingData extends Message { + /** + * @generated from field: uint32 index = 1; + */ + index = 0; + + /** + * These two fields are only relevant in the partition value case + * + * @generated from oneof flyteidl.core.ArtifactBindingData.partition_data + */ + partitionData: { + /** + * @generated from field: string partition_key = 2; + */ + value: string; + case: "partitionKey"; + } | { + /** + * @generated from field: bool bind_to_time_partition = 3; + */ + value: boolean; + case: "bindToTimePartition"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * This is only relevant in the time partition case + * + * @generated from field: string transform = 4; + */ + transform = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ArtifactBindingData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "partition_key", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "partition_data" }, + { no: 3, name: "bind_to_time_partition", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "partition_data" }, + { no: 4, name: "transform", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactBindingData { + return new ArtifactBindingData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactBindingData { + return new ArtifactBindingData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactBindingData { + return new ArtifactBindingData().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactBindingData | PlainMessage | undefined, b: ArtifactBindingData | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactBindingData, a, b); + } +} + +/** + * @generated from message flyteidl.core.InputBindingData + */ +export class InputBindingData extends Message { + /** + * @generated from field: string var = 1; + */ + var = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.InputBindingData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): InputBindingData { + return new InputBindingData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): InputBindingData { + return new InputBindingData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): InputBindingData { + return new InputBindingData().fromJsonString(jsonString, options); + } + + static equals(a: InputBindingData | PlainMessage | undefined, b: InputBindingData | PlainMessage | undefined): boolean { + return proto3.util.equals(InputBindingData, a, b); + } +} + +/** + * @generated from message flyteidl.core.LabelValue + */ +export class LabelValue extends Message { + /** + * @generated from oneof flyteidl.core.LabelValue.value + */ + value: { + /** + * The string static value is for use in the Partitions object + * + * @generated from field: string static_value = 1; + */ + value: string; + case: "staticValue"; + } | { + /** + * The time value is for use in the TimePartition case + * + * @generated from field: google.protobuf.Timestamp time_value = 2; + */ + value: Timestamp; + case: "timeValue"; + } | { + /** + * @generated from field: flyteidl.core.ArtifactBindingData triggered_binding = 3; + */ + value: ArtifactBindingData; + case: "triggeredBinding"; + } | { + /** + * @generated from field: flyteidl.core.InputBindingData input_binding = 4; + */ + value: InputBindingData; + case: "inputBinding"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.LabelValue"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "static_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, + { no: 2, name: "time_value", kind: "message", T: Timestamp, oneof: "value" }, + { no: 3, name: "triggered_binding", kind: "message", T: ArtifactBindingData, oneof: "value" }, + { no: 4, name: "input_binding", kind: "message", T: InputBindingData, oneof: "value" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LabelValue { + return new LabelValue().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LabelValue { + return new LabelValue().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LabelValue { + return new LabelValue().fromJsonString(jsonString, options); + } + + static equals(a: LabelValue | PlainMessage | undefined, b: LabelValue | PlainMessage | undefined): boolean { + return proto3.util.equals(LabelValue, a, b); + } +} + +/** + * @generated from message flyteidl.core.Partitions + */ +export class Partitions extends Message { + /** + * @generated from field: map value = 1; + */ + value: { [key: string]: LabelValue } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Partitions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: LabelValue} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Partitions { + return new Partitions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Partitions { + return new Partitions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Partitions { + return new Partitions().fromJsonString(jsonString, options); + } + + static equals(a: Partitions | PlainMessage | undefined, b: Partitions | PlainMessage | undefined): boolean { + return proto3.util.equals(Partitions, a, b); + } +} + +/** + * @generated from message flyteidl.core.TimePartition + */ +export class TimePartition extends Message { + /** + * @generated from field: flyteidl.core.LabelValue value = 1; + */ + value?: LabelValue; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TimePartition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "message", T: LabelValue }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TimePartition { + return new TimePartition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TimePartition { + return new TimePartition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TimePartition { + return new TimePartition().fromJsonString(jsonString, options); + } + + static equals(a: TimePartition | PlainMessage | undefined, b: TimePartition | PlainMessage | undefined): boolean { + return proto3.util.equals(TimePartition, a, b); + } +} + +/** + * @generated from message flyteidl.core.ArtifactID + */ +export class ArtifactID extends Message { + /** + * @generated from field: flyteidl.core.ArtifactKey artifact_key = 1; + */ + artifactKey?: ArtifactKey; + + /** + * @generated from field: string version = 2; + */ + version = ""; + + /** + * Think of a partition as a tag on an Artifact, except it's a key-value pair. + * Different partitions naturally have different versions (execution ids). + * + * @generated from field: flyteidl.core.Partitions partitions = 3; + */ + partitions?: Partitions; + + /** + * There is no such thing as an empty time partition - if it's not set, then there is no time partition. + * + * @generated from field: flyteidl.core.TimePartition time_partition = 4; + */ + timePartition?: TimePartition; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ArtifactID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_key", kind: "message", T: ArtifactKey }, + { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "partitions", kind: "message", T: Partitions }, + { no: 4, name: "time_partition", kind: "message", T: TimePartition }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactID { + return new ArtifactID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactID { + return new ArtifactID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactID { + return new ArtifactID().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactID | PlainMessage | undefined, b: ArtifactID | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactID, a, b); + } +} + +/** + * @generated from message flyteidl.core.ArtifactTag + */ +export class ArtifactTag extends Message { + /** + * @generated from field: flyteidl.core.ArtifactKey artifact_key = 1; + */ + artifactKey?: ArtifactKey; + + /** + * @generated from field: flyteidl.core.LabelValue value = 2; + */ + value?: LabelValue; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ArtifactTag"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_key", kind: "message", T: ArtifactKey }, + { no: 2, name: "value", kind: "message", T: LabelValue }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactTag { + return new ArtifactTag().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactTag { + return new ArtifactTag().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactTag { + return new ArtifactTag().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactTag | PlainMessage | undefined, b: ArtifactTag | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactTag, a, b); + } +} + +/** + * Uniqueness constraints for Artifacts + * - project, domain, name, version, partitions + * Option 2 (tags are standalone, point to an individual artifact id): + * - project, domain, name, alias (points to one partition if partitioned) + * - project, domain, name, partition key, partition value + * + * @generated from message flyteidl.core.ArtifactQuery + */ +export class ArtifactQuery extends Message { + /** + * @generated from oneof flyteidl.core.ArtifactQuery.identifier + */ + identifier: { + /** + * @generated from field: flyteidl.core.ArtifactID artifact_id = 1; + */ + value: ArtifactID; + case: "artifactId"; + } | { + /** + * @generated from field: flyteidl.core.ArtifactTag artifact_tag = 2; + */ + value: ArtifactTag; + case: "artifactTag"; + } | { + /** + * @generated from field: string uri = 3; + */ + value: string; + case: "uri"; + } | { + /** + * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering + * artifacts, or a partition value derived from a triggering artifact. + * + * @generated from field: flyteidl.core.ArtifactBindingData binding = 4; + */ + value: ArtifactBindingData; + case: "binding"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ArtifactQuery"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_id", kind: "message", T: ArtifactID, oneof: "identifier" }, + { no: 2, name: "artifact_tag", kind: "message", T: ArtifactTag, oneof: "identifier" }, + { no: 3, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identifier" }, + { no: 4, name: "binding", kind: "message", T: ArtifactBindingData, oneof: "identifier" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactQuery { + return new ArtifactQuery().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactQuery { + return new ArtifactQuery().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactQuery { + return new ArtifactQuery().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactQuery | PlainMessage | undefined, b: ArtifactQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactQuery, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts new file mode 100644 index 0000000000..dd3eab6c4f --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/catalog_pb.ts @@ -0,0 +1,276 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/catalog.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Identifier, TaskExecutionIdentifier } from "./identifier_pb.js"; + +/** + * Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future + * + * @generated from enum flyteidl.core.CatalogCacheStatus + */ +export enum CatalogCacheStatus { + /** + * Used to indicate that caching was disabled + * + * @generated from enum value: CACHE_DISABLED = 0; + */ + CACHE_DISABLED = 0, + + /** + * Used to indicate that the cache lookup resulted in no matches + * + * @generated from enum value: CACHE_MISS = 1; + */ + CACHE_MISS = 1, + + /** + * used to indicate that the associated artifact was a result of a previous execution + * + * @generated from enum value: CACHE_HIT = 2; + */ + CACHE_HIT = 2, + + /** + * used to indicate that the resultant artifact was added to the cache + * + * @generated from enum value: CACHE_POPULATED = 3; + */ + CACHE_POPULATED = 3, + + /** + * Used to indicate that cache lookup failed because of an error + * + * @generated from enum value: CACHE_LOOKUP_FAILURE = 4; + */ + CACHE_LOOKUP_FAILURE = 4, + + /** + * Used to indicate that cache lookup failed because of an error + * + * @generated from enum value: CACHE_PUT_FAILURE = 5; + */ + CACHE_PUT_FAILURE = 5, + + /** + * Used to indicate the cache lookup was skipped + * + * @generated from enum value: CACHE_SKIPPED = 6; + */ + CACHE_SKIPPED = 6, + + /** + * Used to indicate that the cache was evicted + * + * @generated from enum value: CACHE_EVICTED = 7; + */ + CACHE_EVICTED = 7, +} +// Retrieve enum metadata with: proto3.getEnumType(CatalogCacheStatus) +proto3.util.setEnumType(CatalogCacheStatus, "flyteidl.core.CatalogCacheStatus", [ + { no: 0, name: "CACHE_DISABLED" }, + { no: 1, name: "CACHE_MISS" }, + { no: 2, name: "CACHE_HIT" }, + { no: 3, name: "CACHE_POPULATED" }, + { no: 4, name: "CACHE_LOOKUP_FAILURE" }, + { no: 5, name: "CACHE_PUT_FAILURE" }, + { no: 6, name: "CACHE_SKIPPED" }, + { no: 7, name: "CACHE_EVICTED" }, +]); + +/** + * @generated from message flyteidl.core.CatalogArtifactTag + */ +export class CatalogArtifactTag extends Message { + /** + * Artifact ID is generated name + * + * @generated from field: string artifact_id = 1; + */ + artifactId = ""; + + /** + * Flyte computes the tag automatically, as the hash of the values + * + * @generated from field: string name = 2; + */ + name = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CatalogArtifactTag"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CatalogArtifactTag { + return new CatalogArtifactTag().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CatalogArtifactTag { + return new CatalogArtifactTag().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CatalogArtifactTag { + return new CatalogArtifactTag().fromJsonString(jsonString, options); + } + + static equals(a: CatalogArtifactTag | PlainMessage | undefined, b: CatalogArtifactTag | PlainMessage | undefined): boolean { + return proto3.util.equals(CatalogArtifactTag, a, b); + } +} + +/** + * Catalog artifact information with specific metadata + * + * @generated from message flyteidl.core.CatalogMetadata + */ +export class CatalogMetadata extends Message { + /** + * Dataset ID in the catalog + * + * @generated from field: flyteidl.core.Identifier dataset_id = 1; + */ + datasetId?: Identifier; + + /** + * Artifact tag in the catalog + * + * @generated from field: flyteidl.core.CatalogArtifactTag artifact_tag = 2; + */ + artifactTag?: CatalogArtifactTag; + + /** + * Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + * + * @generated from oneof flyteidl.core.CatalogMetadata.source_execution + */ + sourceExecution: { + /** + * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; + */ + value: TaskExecutionIdentifier; + case: "sourceTaskExecution"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CatalogMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset_id", kind: "message", T: Identifier }, + { no: 2, name: "artifact_tag", kind: "message", T: CatalogArtifactTag }, + { no: 3, name: "source_task_execution", kind: "message", T: TaskExecutionIdentifier, oneof: "source_execution" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CatalogMetadata { + return new CatalogMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CatalogMetadata { + return new CatalogMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CatalogMetadata { + return new CatalogMetadata().fromJsonString(jsonString, options); + } + + static equals(a: CatalogMetadata | PlainMessage | undefined, b: CatalogMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(CatalogMetadata, a, b); + } +} + +/** + * @generated from message flyteidl.core.CatalogReservation + */ +export class CatalogReservation extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CatalogReservation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CatalogReservation { + return new CatalogReservation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CatalogReservation { + return new CatalogReservation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CatalogReservation { + return new CatalogReservation().fromJsonString(jsonString, options); + } + + static equals(a: CatalogReservation | PlainMessage | undefined, b: CatalogReservation | PlainMessage | undefined): boolean { + return proto3.util.equals(CatalogReservation, a, b); + } +} + +/** + * Indicates the status of a catalog reservation operation. + * + * @generated from enum flyteidl.core.CatalogReservation.Status + */ +export enum CatalogReservation_Status { + /** + * Used to indicate that reservations are disabled + * + * @generated from enum value: RESERVATION_DISABLED = 0; + */ + RESERVATION_DISABLED = 0, + + /** + * Used to indicate that a reservation was successfully acquired or extended + * + * @generated from enum value: RESERVATION_ACQUIRED = 1; + */ + RESERVATION_ACQUIRED = 1, + + /** + * Used to indicate that an active reservation currently exists + * + * @generated from enum value: RESERVATION_EXISTS = 2; + */ + RESERVATION_EXISTS = 2, + + /** + * Used to indicate that the reservation has been successfully released + * + * @generated from enum value: RESERVATION_RELEASED = 3; + */ + RESERVATION_RELEASED = 3, + + /** + * Used to indicate that a reservation operation resulted in failure + * + * @generated from enum value: RESERVATION_FAILURE = 4; + */ + RESERVATION_FAILURE = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(CatalogReservation_Status) +proto3.util.setEnumType(CatalogReservation_Status, "flyteidl.core.CatalogReservation.Status", [ + { no: 0, name: "RESERVATION_DISABLED" }, + { no: 1, name: "RESERVATION_ACQUIRED" }, + { no: 2, name: "RESERVATION_EXISTS" }, + { no: 3, name: "RESERVATION_RELEASED" }, + { no: 4, name: "RESERVATION_FAILURE" }, +]); + diff --git a/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts new file mode 100644 index 0000000000..7078e7451e --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/compiler_pb.ts @@ -0,0 +1,301 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/compiler.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { LaunchPlanTemplate, WorkflowTemplate } from "./workflow_pb.js"; +import { TaskTemplate } from "./tasks_pb.js"; + +/** + * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation + * step uses this created ConnectionSet + * + * @generated from message flyteidl.core.ConnectionSet + */ +export class ConnectionSet extends Message { + /** + * A list of all the node ids that are downstream from a given node id + * + * @generated from field: map downstream = 7; + */ + downstream: { [key: string]: ConnectionSet_IdList } = {}; + + /** + * A list of all the node ids, that are upstream of this node id + * + * @generated from field: map upstream = 8; + */ + upstream: { [key: string]: ConnectionSet_IdList } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ConnectionSet"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 7, name: "downstream", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ConnectionSet_IdList} }, + { no: 8, name: "upstream", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: ConnectionSet_IdList} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionSet { + return new ConnectionSet().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionSet { + return new ConnectionSet().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConnectionSet { + return new ConnectionSet().fromJsonString(jsonString, options); + } + + static equals(a: ConnectionSet | PlainMessage | undefined, b: ConnectionSet | PlainMessage | undefined): boolean { + return proto3.util.equals(ConnectionSet, a, b); + } +} + +/** + * @generated from message flyteidl.core.ConnectionSet.IdList + */ +export class ConnectionSet_IdList extends Message { + /** + * @generated from field: repeated string ids = 1; + */ + ids: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ConnectionSet.IdList"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConnectionSet_IdList { + return new ConnectionSet_IdList().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConnectionSet_IdList { + return new ConnectionSet_IdList().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConnectionSet_IdList { + return new ConnectionSet_IdList().fromJsonString(jsonString, options); + } + + static equals(a: ConnectionSet_IdList | PlainMessage | undefined, b: ConnectionSet_IdList | PlainMessage | undefined): boolean { + return proto3.util.equals(ConnectionSet_IdList, a, b); + } +} + +/** + * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer + * + * @generated from message flyteidl.core.CompiledWorkflow + */ +export class CompiledWorkflow extends Message { + /** + * Completely contained Workflow Template + * + * @generated from field: flyteidl.core.WorkflowTemplate template = 1; + */ + template?: WorkflowTemplate; + + /** + * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + * + * @generated from field: flyteidl.core.ConnectionSet connections = 2; + */ + connections?: ConnectionSet; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CompiledWorkflow"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: WorkflowTemplate }, + { no: 2, name: "connections", kind: "message", T: ConnectionSet }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompiledWorkflow { + return new CompiledWorkflow().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompiledWorkflow { + return new CompiledWorkflow().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompiledWorkflow { + return new CompiledWorkflow().fromJsonString(jsonString, options); + } + + static equals(a: CompiledWorkflow | PlainMessage | undefined, b: CompiledWorkflow | PlainMessage | undefined): boolean { + return proto3.util.equals(CompiledWorkflow, a, b); + } +} + +/** + * Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer + * + * @generated from message flyteidl.core.CompiledLaunchPlan + */ +export class CompiledLaunchPlan extends Message { + /** + * Completely contained LaunchPlan Template + * + * @generated from field: flyteidl.core.LaunchPlanTemplate template = 1; + */ + template?: LaunchPlanTemplate; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CompiledLaunchPlan"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: LaunchPlanTemplate }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompiledLaunchPlan { + return new CompiledLaunchPlan().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompiledLaunchPlan { + return new CompiledLaunchPlan().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompiledLaunchPlan { + return new CompiledLaunchPlan().fromJsonString(jsonString, options); + } + + static equals(a: CompiledLaunchPlan | PlainMessage | undefined, b: CompiledLaunchPlan | PlainMessage | undefined): boolean { + return proto3.util.equals(CompiledLaunchPlan, a, b); + } +} + +/** + * Output of the Compilation step. This object represent one Task. We store more metadata at this layer + * + * @generated from message flyteidl.core.CompiledTask + */ +export class CompiledTask extends Message { + /** + * Completely contained TaskTemplate + * + * @generated from field: flyteidl.core.TaskTemplate template = 1; + */ + template?: TaskTemplate; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CompiledTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "template", kind: "message", T: TaskTemplate }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompiledTask { + return new CompiledTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompiledTask { + return new CompiledTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompiledTask { + return new CompiledTask().fromJsonString(jsonString, options); + } + + static equals(a: CompiledTask | PlainMessage | undefined, b: CompiledTask | PlainMessage | undefined): boolean { + return proto3.util.equals(CompiledTask, a, b); + } +} + +/** + * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow + * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that + * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of + * compiled subworkflows. + * + * @generated from message flyteidl.core.CompiledWorkflowClosure + */ +export class CompiledWorkflowClosure extends Message { + /** + * +required + * + * @generated from field: flyteidl.core.CompiledWorkflow primary = 1; + */ + primary?: CompiledWorkflow; + + /** + * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + * as an inlined workflow + * +optional + * + * @generated from field: repeated flyteidl.core.CompiledWorkflow sub_workflows = 2; + */ + subWorkflows: CompiledWorkflow[] = []; + + /** + * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + * +required (at least 1) + * + * @generated from field: repeated flyteidl.core.CompiledTask tasks = 3; + */ + tasks: CompiledTask[] = []; + + /** + * A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + * with a given id, i.e., every launch plan has a unique id. + * + * @generated from field: repeated flyteidl.core.CompiledLaunchPlan launch_plans = 4; + */ + launchPlans: CompiledLaunchPlan[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.CompiledWorkflowClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "primary", kind: "message", T: CompiledWorkflow }, + { no: 2, name: "sub_workflows", kind: "message", T: CompiledWorkflow, repeated: true }, + { no: 3, name: "tasks", kind: "message", T: CompiledTask, repeated: true }, + { no: 4, name: "launch_plans", kind: "message", T: CompiledLaunchPlan, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CompiledWorkflowClosure { + return new CompiledWorkflowClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CompiledWorkflowClosure { + return new CompiledWorkflowClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CompiledWorkflowClosure { + return new CompiledWorkflowClosure().fromJsonString(jsonString, options); + } + + static equals(a: CompiledWorkflowClosure | PlainMessage | undefined, b: CompiledWorkflowClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(CompiledWorkflowClosure, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts new file mode 100644 index 0000000000..ba682eb7c5 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/condition_pb.ts @@ -0,0 +1,306 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/condition.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Primitive, Scalar } from "./literals_pb.js"; + +/** + * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. + * Each expression results in a boolean result. + * + * @generated from message flyteidl.core.ComparisonExpression + */ +export class ComparisonExpression extends Message { + /** + * @generated from field: flyteidl.core.ComparisonExpression.Operator operator = 1; + */ + operator = ComparisonExpression_Operator.EQ; + + /** + * @generated from field: flyteidl.core.Operand left_value = 2; + */ + leftValue?: Operand; + + /** + * @generated from field: flyteidl.core.Operand right_value = 3; + */ + rightValue?: Operand; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ComparisonExpression"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator", kind: "enum", T: proto3.getEnumType(ComparisonExpression_Operator) }, + { no: 2, name: "left_value", kind: "message", T: Operand }, + { no: 3, name: "right_value", kind: "message", T: Operand }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ComparisonExpression { + return new ComparisonExpression().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ComparisonExpression { + return new ComparisonExpression().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ComparisonExpression { + return new ComparisonExpression().fromJsonString(jsonString, options); + } + + static equals(a: ComparisonExpression | PlainMessage | undefined, b: ComparisonExpression | PlainMessage | undefined): boolean { + return proto3.util.equals(ComparisonExpression, a, b); + } +} + +/** + * Binary Operator for each expression + * + * @generated from enum flyteidl.core.ComparisonExpression.Operator + */ +export enum ComparisonExpression_Operator { + /** + * @generated from enum value: EQ = 0; + */ + EQ = 0, + + /** + * @generated from enum value: NEQ = 1; + */ + NEQ = 1, + + /** + * Greater Than + * + * @generated from enum value: GT = 2; + */ + GT = 2, + + /** + * @generated from enum value: GTE = 3; + */ + GTE = 3, + + /** + * Less Than + * + * @generated from enum value: LT = 4; + */ + LT = 4, + + /** + * @generated from enum value: LTE = 5; + */ + LTE = 5, +} +// Retrieve enum metadata with: proto3.getEnumType(ComparisonExpression_Operator) +proto3.util.setEnumType(ComparisonExpression_Operator, "flyteidl.core.ComparisonExpression.Operator", [ + { no: 0, name: "EQ" }, + { no: 1, name: "NEQ" }, + { no: 2, name: "GT" }, + { no: 3, name: "GTE" }, + { no: 4, name: "LT" }, + { no: 5, name: "LTE" }, +]); + +/** + * Defines an operand to a comparison expression. + * + * @generated from message flyteidl.core.Operand + */ +export class Operand extends Message { + /** + * @generated from oneof flyteidl.core.Operand.val + */ + val: { + /** + * Can be a constant + * + * @generated from field: flyteidl.core.Primitive primitive = 1 [deprecated = true]; + * @deprecated + */ + value: Primitive; + case: "primitive"; + } | { + /** + * Or one of this node's input variables + * + * @generated from field: string var = 2; + */ + value: string; + case: "var"; + } | { + /** + * Replace the primitive field + * + * @generated from field: flyteidl.core.Scalar scalar = 3; + */ + value: Scalar; + case: "scalar"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Operand"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "primitive", kind: "message", T: Primitive, oneof: "val" }, + { no: 2, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "val" }, + { no: 3, name: "scalar", kind: "message", T: Scalar, oneof: "val" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Operand { + return new Operand().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Operand { + return new Operand().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Operand { + return new Operand().fromJsonString(jsonString, options); + } + + static equals(a: Operand | PlainMessage | undefined, b: Operand | PlainMessage | undefined): boolean { + return proto3.util.equals(Operand, a, b); + } +} + +/** + * Defines a boolean expression tree. It can be a simple or a conjunction expression. + * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. + * + * @generated from message flyteidl.core.BooleanExpression + */ +export class BooleanExpression extends Message { + /** + * @generated from oneof flyteidl.core.BooleanExpression.expr + */ + expr: { + /** + * @generated from field: flyteidl.core.ConjunctionExpression conjunction = 1; + */ + value: ConjunctionExpression; + case: "conjunction"; + } | { + /** + * @generated from field: flyteidl.core.ComparisonExpression comparison = 2; + */ + value: ComparisonExpression; + case: "comparison"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BooleanExpression"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "conjunction", kind: "message", T: ConjunctionExpression, oneof: "expr" }, + { no: 2, name: "comparison", kind: "message", T: ComparisonExpression, oneof: "expr" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BooleanExpression { + return new BooleanExpression().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BooleanExpression { + return new BooleanExpression().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BooleanExpression { + return new BooleanExpression().fromJsonString(jsonString, options); + } + + static equals(a: BooleanExpression | PlainMessage | undefined, b: BooleanExpression | PlainMessage | undefined): boolean { + return proto3.util.equals(BooleanExpression, a, b); + } +} + +/** + * Defines a conjunction expression of two boolean expressions. + * + * @generated from message flyteidl.core.ConjunctionExpression + */ +export class ConjunctionExpression extends Message { + /** + * @generated from field: flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; + */ + operator = ConjunctionExpression_LogicalOperator.AND; + + /** + * @generated from field: flyteidl.core.BooleanExpression left_expression = 2; + */ + leftExpression?: BooleanExpression; + + /** + * @generated from field: flyteidl.core.BooleanExpression right_expression = 3; + */ + rightExpression?: BooleanExpression; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ConjunctionExpression"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "operator", kind: "enum", T: proto3.getEnumType(ConjunctionExpression_LogicalOperator) }, + { no: 2, name: "left_expression", kind: "message", T: BooleanExpression }, + { no: 3, name: "right_expression", kind: "message", T: BooleanExpression }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConjunctionExpression { + return new ConjunctionExpression().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConjunctionExpression { + return new ConjunctionExpression().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConjunctionExpression { + return new ConjunctionExpression().fromJsonString(jsonString, options); + } + + static equals(a: ConjunctionExpression | PlainMessage | undefined, b: ConjunctionExpression | PlainMessage | undefined): boolean { + return proto3.util.equals(ConjunctionExpression, a, b); + } +} + +/** + * Nested conditions. They can be conjoined using AND / OR + * Order of evaluation is not important as the operators are Commutative + * + * @generated from enum flyteidl.core.ConjunctionExpression.LogicalOperator + */ +export enum ConjunctionExpression_LogicalOperator { + /** + * Conjunction + * + * @generated from enum value: AND = 0; + */ + AND = 0, + + /** + * @generated from enum value: OR = 1; + */ + OR = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ConjunctionExpression_LogicalOperator) +proto3.util.setEnumType(ConjunctionExpression_LogicalOperator, "flyteidl.core.ConjunctionExpression.LogicalOperator", [ + { no: 0, name: "AND" }, + { no: 1, name: "OR" }, +]); + diff --git a/flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts new file mode 100644 index 0000000000..a3a396ab7d --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/dynamic_job_pb.ts @@ -0,0 +1,89 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/dynamic_job.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; +import { Node, WorkflowTemplate } from "./workflow_pb.js"; +import { Binding } from "./literals_pb.js"; +import { TaskTemplate } from "./tasks_pb.js"; + +/** + * Describes a set of tasks to execute and how the final outputs are produced. + * + * @generated from message flyteidl.core.DynamicJobSpec + */ +export class DynamicJobSpec extends Message { + /** + * A collection of nodes to execute. + * + * @generated from field: repeated flyteidl.core.Node nodes = 1; + */ + nodes: Node[] = []; + + /** + * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + * specified, is the count of nodes repeated field. + * + * @generated from field: int64 min_successes = 2; + */ + minSuccesses = protoInt64.zero; + + /** + * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + * in bindings should have the generated id for the subtask. + * + * @generated from field: repeated flyteidl.core.Binding outputs = 3; + */ + outputs: Binding[] = []; + + /** + * [Optional] A complete list of task specs referenced in nodes. + * + * @generated from field: repeated flyteidl.core.TaskTemplate tasks = 4; + */ + tasks: TaskTemplate[] = []; + + /** + * [Optional] A complete list of task specs referenced in nodes. + * + * @generated from field: repeated flyteidl.core.WorkflowTemplate subworkflows = 5; + */ + subworkflows: WorkflowTemplate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.DynamicJobSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "nodes", kind: "message", T: Node, repeated: true }, + { no: 2, name: "min_successes", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "outputs", kind: "message", T: Binding, repeated: true }, + { no: 4, name: "tasks", kind: "message", T: TaskTemplate, repeated: true }, + { no: 5, name: "subworkflows", kind: "message", T: WorkflowTemplate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DynamicJobSpec { + return new DynamicJobSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DynamicJobSpec { + return new DynamicJobSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DynamicJobSpec { + return new DynamicJobSpec().fromJsonString(jsonString, options); + } + + static equals(a: DynamicJobSpec | PlainMessage | undefined, b: DynamicJobSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(DynamicJobSpec, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts new file mode 100644 index 0000000000..42b70dec5b --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/errors_pb.ts @@ -0,0 +1,139 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/errors.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { ExecutionError_ErrorKind } from "./execution_pb.js"; + +/** + * Error message to propagate detailed errors from container executions to the execution + * engine. + * + * @generated from message flyteidl.core.ContainerError + */ +export class ContainerError extends Message { + /** + * A simplified code for errors, so that we can provide a glossary of all possible errors. + * + * @generated from field: string code = 1; + */ + code = ""; + + /** + * A detailed error message. + * + * @generated from field: string message = 2; + */ + message = ""; + + /** + * An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + * + * @generated from field: flyteidl.core.ContainerError.Kind kind = 3; + */ + kind = ContainerError_Kind.NON_RECOVERABLE; + + /** + * Defines the origin of the error (system, user, unknown). + * + * @generated from field: flyteidl.core.ExecutionError.ErrorKind origin = 4; + */ + origin = ExecutionError_ErrorKind.UNKNOWN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ContainerError"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "kind", kind: "enum", T: proto3.getEnumType(ContainerError_Kind) }, + { no: 4, name: "origin", kind: "enum", T: proto3.getEnumType(ExecutionError_ErrorKind) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContainerError { + return new ContainerError().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContainerError { + return new ContainerError().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContainerError { + return new ContainerError().fromJsonString(jsonString, options); + } + + static equals(a: ContainerError | PlainMessage | undefined, b: ContainerError | PlainMessage | undefined): boolean { + return proto3.util.equals(ContainerError, a, b); + } +} + +/** + * Defines a generic error type that dictates the behavior of the retry strategy. + * + * @generated from enum flyteidl.core.ContainerError.Kind + */ +export enum ContainerError_Kind { + /** + * @generated from enum value: NON_RECOVERABLE = 0; + */ + NON_RECOVERABLE = 0, + + /** + * @generated from enum value: RECOVERABLE = 1; + */ + RECOVERABLE = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ContainerError_Kind) +proto3.util.setEnumType(ContainerError_Kind, "flyteidl.core.ContainerError.Kind", [ + { no: 0, name: "NON_RECOVERABLE" }, + { no: 1, name: "RECOVERABLE" }, +]); + +/** + * Defines the errors.pb file format the container can produce to communicate + * failure reasons to the execution engine. + * + * @generated from message flyteidl.core.ErrorDocument + */ +export class ErrorDocument extends Message { + /** + * The error raised during execution. + * + * @generated from field: flyteidl.core.ContainerError error = 1; + */ + error?: ContainerError; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ErrorDocument"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "error", kind: "message", T: ContainerError }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ErrorDocument { + return new ErrorDocument().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ErrorDocument { + return new ErrorDocument().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ErrorDocument { + return new ErrorDocument().fromJsonString(jsonString, options); + } + + static equals(a: ErrorDocument | PlainMessage | undefined, b: ErrorDocument | PlainMessage | undefined): boolean { + return proto3.util.equals(ErrorDocument, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts new file mode 100644 index 0000000000..e931e1a789 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/execution_pb.ts @@ -0,0 +1,613 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/execution.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Indicates various phases of Workflow Execution + * + * @generated from message flyteidl.core.WorkflowExecution + */ +export class WorkflowExecution extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecution { + return new WorkflowExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecution { + return new WorkflowExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecution { + return new WorkflowExecution().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecution | PlainMessage | undefined, b: WorkflowExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecution, a, b); + } +} + +/** + * @generated from enum flyteidl.core.WorkflowExecution.Phase + */ +export enum WorkflowExecution_Phase { + /** + * @generated from enum value: UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * @generated from enum value: QUEUED = 1; + */ + QUEUED = 1, + + /** + * @generated from enum value: RUNNING = 2; + */ + RUNNING = 2, + + /** + * @generated from enum value: SUCCEEDING = 3; + */ + SUCCEEDING = 3, + + /** + * @generated from enum value: SUCCEEDED = 4; + */ + SUCCEEDED = 4, + + /** + * @generated from enum value: FAILING = 5; + */ + FAILING = 5, + + /** + * @generated from enum value: FAILED = 6; + */ + FAILED = 6, + + /** + * @generated from enum value: ABORTED = 7; + */ + ABORTED = 7, + + /** + * @generated from enum value: TIMED_OUT = 8; + */ + TIMED_OUT = 8, + + /** + * @generated from enum value: ABORTING = 9; + */ + ABORTING = 9, +} +// Retrieve enum metadata with: proto3.getEnumType(WorkflowExecution_Phase) +proto3.util.setEnumType(WorkflowExecution_Phase, "flyteidl.core.WorkflowExecution.Phase", [ + { no: 0, name: "UNDEFINED" }, + { no: 1, name: "QUEUED" }, + { no: 2, name: "RUNNING" }, + { no: 3, name: "SUCCEEDING" }, + { no: 4, name: "SUCCEEDED" }, + { no: 5, name: "FAILING" }, + { no: 6, name: "FAILED" }, + { no: 7, name: "ABORTED" }, + { no: 8, name: "TIMED_OUT" }, + { no: 9, name: "ABORTING" }, +]); + +/** + * Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows + * + * @generated from message flyteidl.core.NodeExecution + */ +export class NodeExecution extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.NodeExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecution { + return new NodeExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecution { + return new NodeExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecution { + return new NodeExecution().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecution | PlainMessage | undefined, b: NodeExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecution, a, b); + } +} + +/** + * @generated from enum flyteidl.core.NodeExecution.Phase + */ +export enum NodeExecution_Phase { + /** + * @generated from enum value: UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * @generated from enum value: QUEUED = 1; + */ + QUEUED = 1, + + /** + * @generated from enum value: RUNNING = 2; + */ + RUNNING = 2, + + /** + * @generated from enum value: SUCCEEDED = 3; + */ + SUCCEEDED = 3, + + /** + * @generated from enum value: FAILING = 4; + */ + FAILING = 4, + + /** + * @generated from enum value: FAILED = 5; + */ + FAILED = 5, + + /** + * @generated from enum value: ABORTED = 6; + */ + ABORTED = 6, + + /** + * @generated from enum value: SKIPPED = 7; + */ + SKIPPED = 7, + + /** + * @generated from enum value: TIMED_OUT = 8; + */ + TIMED_OUT = 8, + + /** + * @generated from enum value: DYNAMIC_RUNNING = 9; + */ + DYNAMIC_RUNNING = 9, + + /** + * @generated from enum value: RECOVERED = 10; + */ + RECOVERED = 10, +} +// Retrieve enum metadata with: proto3.getEnumType(NodeExecution_Phase) +proto3.util.setEnumType(NodeExecution_Phase, "flyteidl.core.NodeExecution.Phase", [ + { no: 0, name: "UNDEFINED" }, + { no: 1, name: "QUEUED" }, + { no: 2, name: "RUNNING" }, + { no: 3, name: "SUCCEEDED" }, + { no: 4, name: "FAILING" }, + { no: 5, name: "FAILED" }, + { no: 6, name: "ABORTED" }, + { no: 7, name: "SKIPPED" }, + { no: 8, name: "TIMED_OUT" }, + { no: 9, name: "DYNAMIC_RUNNING" }, + { no: 10, name: "RECOVERED" }, +]); + +/** + * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, + * but this is the cumulative list that customers may want to know about for their task. + * + * @generated from message flyteidl.core.TaskExecution + */ +export class TaskExecution extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecution { + return new TaskExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecution { + return new TaskExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecution { + return new TaskExecution().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecution | PlainMessage | undefined, b: TaskExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecution, a, b); + } +} + +/** + * @generated from enum flyteidl.core.TaskExecution.Phase + */ +export enum TaskExecution_Phase { + /** + * @generated from enum value: UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * @generated from enum value: QUEUED = 1; + */ + QUEUED = 1, + + /** + * @generated from enum value: RUNNING = 2; + */ + RUNNING = 2, + + /** + * @generated from enum value: SUCCEEDED = 3; + */ + SUCCEEDED = 3, + + /** + * @generated from enum value: ABORTED = 4; + */ + ABORTED = 4, + + /** + * @generated from enum value: FAILED = 5; + */ + FAILED = 5, + + /** + * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing + * + * @generated from enum value: INITIALIZING = 6; + */ + INITIALIZING = 6, + + /** + * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded + * + * @generated from enum value: WAITING_FOR_RESOURCES = 7; + */ + WAITING_FOR_RESOURCES = 7, +} +// Retrieve enum metadata with: proto3.getEnumType(TaskExecution_Phase) +proto3.util.setEnumType(TaskExecution_Phase, "flyteidl.core.TaskExecution.Phase", [ + { no: 0, name: "UNDEFINED" }, + { no: 1, name: "QUEUED" }, + { no: 2, name: "RUNNING" }, + { no: 3, name: "SUCCEEDED" }, + { no: 4, name: "ABORTED" }, + { no: 5, name: "FAILED" }, + { no: 6, name: "INITIALIZING" }, + { no: 7, name: "WAITING_FOR_RESOURCES" }, +]); + +/** + * Represents the error message from the execution. + * + * @generated from message flyteidl.core.ExecutionError + */ +export class ExecutionError extends Message { + /** + * Error code indicates a grouping of a type of error. + * More Info: + * + * @generated from field: string code = 1; + */ + code = ""; + + /** + * Detailed description of the error - including stack trace. + * + * @generated from field: string message = 2; + */ + message = ""; + + /** + * Full error contents accessible via a URI + * + * @generated from field: string error_uri = 3; + */ + errorUri = ""; + + /** + * @generated from field: flyteidl.core.ExecutionError.ErrorKind kind = 4; + */ + kind = ExecutionError_ErrorKind.UNKNOWN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ExecutionError"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "error_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "kind", kind: "enum", T: proto3.getEnumType(ExecutionError_ErrorKind) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionError { + return new ExecutionError().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionError { + return new ExecutionError().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionError { + return new ExecutionError().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionError | PlainMessage | undefined, b: ExecutionError | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionError, a, b); + } +} + +/** + * Error type: System or User + * + * @generated from enum flyteidl.core.ExecutionError.ErrorKind + */ +export enum ExecutionError_ErrorKind { + /** + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: USER = 1; + */ + USER = 1, + + /** + * @generated from enum value: SYSTEM = 2; + */ + SYSTEM = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(ExecutionError_ErrorKind) +proto3.util.setEnumType(ExecutionError_ErrorKind, "flyteidl.core.ExecutionError.ErrorKind", [ + { no: 0, name: "UNKNOWN" }, + { no: 1, name: "USER" }, + { no: 2, name: "SYSTEM" }, +]); + +/** + * Log information for the task that is specific to a log sink + * When our log story is flushed out, we may have more metadata here like log link expiry + * + * @generated from message flyteidl.core.TaskLog + */ +export class TaskLog extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ""; + + /** + * @generated from field: string name = 2; + */ + name = ""; + + /** + * @generated from field: flyteidl.core.TaskLog.MessageFormat message_format = 3; + */ + messageFormat = TaskLog_MessageFormat.UNKNOWN; + + /** + * @generated from field: google.protobuf.Duration ttl = 4; + */ + ttl?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskLog"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "message_format", kind: "enum", T: proto3.getEnumType(TaskLog_MessageFormat) }, + { no: 4, name: "ttl", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskLog { + return new TaskLog().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskLog { + return new TaskLog().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskLog { + return new TaskLog().fromJsonString(jsonString, options); + } + + static equals(a: TaskLog | PlainMessage | undefined, b: TaskLog | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskLog, a, b); + } +} + +/** + * @generated from enum flyteidl.core.TaskLog.MessageFormat + */ +export enum TaskLog_MessageFormat { + /** + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: CSV = 1; + */ + CSV = 1, + + /** + * @generated from enum value: JSON = 2; + */ + JSON = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(TaskLog_MessageFormat) +proto3.util.setEnumType(TaskLog_MessageFormat, "flyteidl.core.TaskLog.MessageFormat", [ + { no: 0, name: "UNKNOWN" }, + { no: 1, name: "CSV" }, + { no: 2, name: "JSON" }, +]); + +/** + * Represents customized execution run-time attributes. + * + * @generated from message flyteidl.core.QualityOfServiceSpec + */ +export class QualityOfServiceSpec extends Message { + /** + * Indicates how much queueing delay an execution can tolerate. + * + * @generated from field: google.protobuf.Duration queueing_budget = 1; + */ + queueingBudget?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.QualityOfServiceSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "queueing_budget", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QualityOfServiceSpec { + return new QualityOfServiceSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QualityOfServiceSpec { + return new QualityOfServiceSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QualityOfServiceSpec { + return new QualityOfServiceSpec().fromJsonString(jsonString, options); + } + + static equals(a: QualityOfServiceSpec | PlainMessage | undefined, b: QualityOfServiceSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(QualityOfServiceSpec, a, b); + } +} + +/** + * Indicates the priority of an execution. + * + * @generated from message flyteidl.core.QualityOfService + */ +export class QualityOfService extends Message { + /** + * @generated from oneof flyteidl.core.QualityOfService.designation + */ + designation: { + /** + * @generated from field: flyteidl.core.QualityOfService.Tier tier = 1; + */ + value: QualityOfService_Tier; + case: "tier"; + } | { + /** + * @generated from field: flyteidl.core.QualityOfServiceSpec spec = 2; + */ + value: QualityOfServiceSpec; + case: "spec"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.QualityOfService"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tier", kind: "enum", T: proto3.getEnumType(QualityOfService_Tier), oneof: "designation" }, + { no: 2, name: "spec", kind: "message", T: QualityOfServiceSpec, oneof: "designation" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QualityOfService { + return new QualityOfService().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QualityOfService { + return new QualityOfService().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QualityOfService { + return new QualityOfService().fromJsonString(jsonString, options); + } + + static equals(a: QualityOfService | PlainMessage | undefined, b: QualityOfService | PlainMessage | undefined): boolean { + return proto3.util.equals(QualityOfService, a, b); + } +} + +/** + * @generated from enum flyteidl.core.QualityOfService.Tier + */ +export enum QualityOfService_Tier { + /** + * Default: no quality of service specified. + * + * @generated from enum value: UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * @generated from enum value: HIGH = 1; + */ + HIGH = 1, + + /** + * @generated from enum value: MEDIUM = 2; + */ + MEDIUM = 2, + + /** + * @generated from enum value: LOW = 3; + */ + LOW = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(QualityOfService_Tier) +proto3.util.setEnumType(QualityOfService_Tier, "flyteidl.core.QualityOfService.Tier", [ + { no: 0, name: "UNDEFINED" }, + { no: 1, name: "HIGH" }, + { no: 2, name: "MEDIUM" }, + { no: 3, name: "LOW" }, +]); + diff --git a/flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts new file mode 100644 index 0000000000..aacfa6c97d --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/identifier_pb.ts @@ -0,0 +1,345 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/identifier.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Indicates a resource type within Flyte. + * + * @generated from enum flyteidl.core.ResourceType + */ +export enum ResourceType { + /** + * @generated from enum value: UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: TASK = 1; + */ + TASK = 1, + + /** + * @generated from enum value: WORKFLOW = 2; + */ + WORKFLOW = 2, + + /** + * @generated from enum value: LAUNCH_PLAN = 3; + */ + LAUNCH_PLAN = 3, + + /** + * A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. + * Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects + * in a similar manner to other Flyte objects + * + * @generated from enum value: DATASET = 4; + */ + DATASET = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(ResourceType) +proto3.util.setEnumType(ResourceType, "flyteidl.core.ResourceType", [ + { no: 0, name: "UNSPECIFIED" }, + { no: 1, name: "TASK" }, + { no: 2, name: "WORKFLOW" }, + { no: 3, name: "LAUNCH_PLAN" }, + { no: 4, name: "DATASET" }, +]); + +/** + * Encapsulation of fields that uniquely identifies a Flyte resource. + * + * @generated from message flyteidl.core.Identifier + */ +export class Identifier extends Message { + /** + * Identifies the specific type of resource that this identifier corresponds to. + * + * @generated from field: flyteidl.core.ResourceType resource_type = 1; + */ + resourceType = ResourceType.UNSPECIFIED; + + /** + * Name of the project the resource belongs to. + * + * @generated from field: string project = 2; + */ + project = ""; + + /** + * Name of the domain the resource belongs to. + * A domain can be considered as a subset within a specific project. + * + * @generated from field: string domain = 3; + */ + domain = ""; + + /** + * User provided value for the resource. + * + * @generated from field: string name = 4; + */ + name = ""; + + /** + * Specific version of the resource. + * + * @generated from field: string version = 5; + */ + version = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 6; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Identifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resource_type", kind: "enum", T: proto3.getEnumType(ResourceType) }, + { no: 2, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Identifier { + return new Identifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Identifier { + return new Identifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Identifier { + return new Identifier().fromJsonString(jsonString, options); + } + + static equals(a: Identifier | PlainMessage | undefined, b: Identifier | PlainMessage | undefined): boolean { + return proto3.util.equals(Identifier, a, b); + } +} + +/** + * Encapsulation of fields that uniquely identifies a Flyte workflow execution + * + * @generated from message flyteidl.core.WorkflowExecutionIdentifier + */ +export class WorkflowExecutionIdentifier extends Message { + /** + * Name of the project the resource belongs to. + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Name of the domain the resource belongs to. + * A domain can be considered as a subset within a specific project. + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * User or system provided value for the resource. + * + * @generated from field: string name = 4; + */ + name = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 5; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowExecutionIdentifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionIdentifier { + return new WorkflowExecutionIdentifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionIdentifier { + return new WorkflowExecutionIdentifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionIdentifier { + return new WorkflowExecutionIdentifier().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionIdentifier | PlainMessage | undefined, b: WorkflowExecutionIdentifier | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionIdentifier, a, b); + } +} + +/** + * Encapsulation of fields that identify a Flyte node execution entity. + * + * @generated from message flyteidl.core.NodeExecutionIdentifier + */ +export class NodeExecutionIdentifier extends Message { + /** + * @generated from field: string node_id = 1; + */ + nodeId = ""; + + /** + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + executionId?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.NodeExecutionIdentifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionIdentifier { + return new NodeExecutionIdentifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionIdentifier { + return new NodeExecutionIdentifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionIdentifier { + return new NodeExecutionIdentifier().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionIdentifier | PlainMessage | undefined, b: NodeExecutionIdentifier | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionIdentifier, a, b); + } +} + +/** + * Encapsulation of fields that identify a Flyte task execution entity. + * + * @generated from message flyteidl.core.TaskExecutionIdentifier + */ +export class TaskExecutionIdentifier extends Message { + /** + * @generated from field: flyteidl.core.Identifier task_id = 1; + */ + taskId?: Identifier; + + /** + * @generated from field: flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; + */ + nodeExecutionId?: NodeExecutionIdentifier; + + /** + * @generated from field: uint32 retry_attempt = 3; + */ + retryAttempt = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskExecutionIdentifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_id", kind: "message", T: Identifier }, + { no: 2, name: "node_execution_id", kind: "message", T: NodeExecutionIdentifier }, + { no: 3, name: "retry_attempt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionIdentifier { + return new TaskExecutionIdentifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionIdentifier { + return new TaskExecutionIdentifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionIdentifier { + return new TaskExecutionIdentifier().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionIdentifier | PlainMessage | undefined, b: TaskExecutionIdentifier | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionIdentifier, a, b); + } +} + +/** + * Encapsulation of fields the uniquely identify a signal. + * + * @generated from message flyteidl.core.SignalIdentifier + */ +export class SignalIdentifier extends Message { + /** + * Unique identifier for a signal. + * + * @generated from field: string signal_id = 1; + */ + signalId = ""; + + /** + * Identifies the Flyte workflow execution this signal belongs to. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; + */ + executionId?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.SignalIdentifier"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalIdentifier { + return new SignalIdentifier().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalIdentifier { + return new SignalIdentifier().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalIdentifier { + return new SignalIdentifier().fromJsonString(jsonString, options); + } + + static equals(a: SignalIdentifier | PlainMessage | undefined, b: SignalIdentifier | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalIdentifier, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts new file mode 100644 index 0000000000..d8e15d2487 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/interface_pb.ts @@ -0,0 +1,286 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/interface.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { LiteralType } from "./types_pb.js"; +import { ArtifactID, ArtifactQuery, ArtifactTag } from "./artifact_id_pb.js"; +import { Literal } from "./literals_pb.js"; + +/** + * Defines a strongly typed variable. + * + * @generated from message flyteidl.core.Variable + */ +export class Variable extends Message { + /** + * Variable literal type. + * + * @generated from field: flyteidl.core.LiteralType type = 1; + */ + type?: LiteralType; + + /** + * +optional string describing input variable + * + * @generated from field: string description = 2; + */ + description = ""; + + /** + * +optional This object allows the user to specify how Artifacts are created. + * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. + * + * @generated from field: flyteidl.core.ArtifactID artifact_partial_id = 3; + */ + artifactPartialId?: ArtifactID; + + /** + * @generated from field: flyteidl.core.ArtifactTag artifact_tag = 4; + */ + artifactTag?: ArtifactTag; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Variable"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "message", T: LiteralType }, + { no: 2, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "artifact_partial_id", kind: "message", T: ArtifactID }, + { no: 4, name: "artifact_tag", kind: "message", T: ArtifactTag }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Variable { + return new Variable().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Variable { + return new Variable().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Variable { + return new Variable().fromJsonString(jsonString, options); + } + + static equals(a: Variable | PlainMessage | undefined, b: Variable | PlainMessage | undefined): boolean { + return proto3.util.equals(Variable, a, b); + } +} + +/** + * A map of Variables + * + * @generated from message flyteidl.core.VariableMap + */ +export class VariableMap extends Message { + /** + * Defines a map of variable names to variables. + * + * @generated from field: map variables = 1; + */ + variables: { [key: string]: Variable } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.VariableMap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "variables", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Variable} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): VariableMap { + return new VariableMap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): VariableMap { + return new VariableMap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): VariableMap { + return new VariableMap().fromJsonString(jsonString, options); + } + + static equals(a: VariableMap | PlainMessage | undefined, b: VariableMap | PlainMessage | undefined): boolean { + return proto3.util.equals(VariableMap, a, b); + } +} + +/** + * Defines strongly typed inputs and outputs. + * + * @generated from message flyteidl.core.TypedInterface + */ +export class TypedInterface extends Message { + /** + * @generated from field: flyteidl.core.VariableMap inputs = 1; + */ + inputs?: VariableMap; + + /** + * @generated from field: flyteidl.core.VariableMap outputs = 2; + */ + outputs?: VariableMap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TypedInterface"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inputs", kind: "message", T: VariableMap }, + { no: 2, name: "outputs", kind: "message", T: VariableMap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TypedInterface { + return new TypedInterface().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TypedInterface { + return new TypedInterface().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TypedInterface { + return new TypedInterface().fromJsonString(jsonString, options); + } + + static equals(a: TypedInterface | PlainMessage | undefined, b: TypedInterface | PlainMessage | undefined): boolean { + return proto3.util.equals(TypedInterface, a, b); + } +} + +/** + * A parameter is used as input to a launch plan and has + * the special ability to have a default value or mark itself as required. + * + * @generated from message flyteidl.core.Parameter + */ +export class Parameter extends Message { + /** + * +required Variable. Defines the type of the variable backing this parameter. + * + * @generated from field: flyteidl.core.Variable var = 1; + */ + var?: Variable; + + /** + * +optional + * + * @generated from oneof flyteidl.core.Parameter.behavior + */ + behavior: { + /** + * Defines a default value that has to match the variable type defined. + * + * @generated from field: flyteidl.core.Literal default = 2; + */ + value: Literal; + case: "default"; + } | { + /** + * +optional, is this value required to be filled. + * + * @generated from field: bool required = 3; + */ + value: boolean; + case: "required"; + } | { + /** + * This is an execution time search basically that should result in exactly one Artifact with a Type that + * matches the type of the variable. + * + * @generated from field: flyteidl.core.ArtifactQuery artifact_query = 4; + */ + value: ArtifactQuery; + case: "artifactQuery"; + } | { + /** + * @generated from field: flyteidl.core.ArtifactID artifact_id = 5; + */ + value: ArtifactID; + case: "artifactId"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Parameter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "var", kind: "message", T: Variable }, + { no: 2, name: "default", kind: "message", T: Literal, oneof: "behavior" }, + { no: 3, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "behavior" }, + { no: 4, name: "artifact_query", kind: "message", T: ArtifactQuery, oneof: "behavior" }, + { no: 5, name: "artifact_id", kind: "message", T: ArtifactID, oneof: "behavior" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Parameter { + return new Parameter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Parameter { + return new Parameter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Parameter { + return new Parameter().fromJsonString(jsonString, options); + } + + static equals(a: Parameter | PlainMessage | undefined, b: Parameter | PlainMessage | undefined): boolean { + return proto3.util.equals(Parameter, a, b); + } +} + +/** + * A map of Parameters. + * + * @generated from message flyteidl.core.ParameterMap + */ +export class ParameterMap extends Message { + /** + * Defines a map of parameter names to parameters. + * + * @generated from field: map parameters = 1; + */ + parameters: { [key: string]: Parameter } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ParameterMap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "parameters", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Parameter} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParameterMap { + return new ParameterMap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParameterMap { + return new ParameterMap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParameterMap { + return new ParameterMap().fromJsonString(jsonString, options); + } + + static equals(a: ParameterMap | PlainMessage | undefined, b: ParameterMap | PlainMessage | undefined): boolean { + return proto3.util.equals(ParameterMap, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts new file mode 100644 index 0000000000..6cf6b07ca2 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/literals_pb.ts @@ -0,0 +1,1032 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/literals.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; +import { BlobType, Error, LiteralType, OutputReference, SchemaType, StructuredDatasetType } from "./types_pb.js"; + +/** + * Primitive Types + * + * @generated from message flyteidl.core.Primitive + */ +export class Primitive extends Message { + /** + * Defines one of simple primitive types. These types will get translated into different programming languages as + * described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + * + * @generated from oneof flyteidl.core.Primitive.value + */ + value: { + /** + * @generated from field: int64 integer = 1; + */ + value: bigint; + case: "integer"; + } | { + /** + * @generated from field: double float_value = 2; + */ + value: number; + case: "floatValue"; + } | { + /** + * @generated from field: string string_value = 3; + */ + value: string; + case: "stringValue"; + } | { + /** + * @generated from field: bool boolean = 4; + */ + value: boolean; + case: "boolean"; + } | { + /** + * @generated from field: google.protobuf.Timestamp datetime = 5; + */ + value: Timestamp; + case: "datetime"; + } | { + /** + * @generated from field: google.protobuf.Duration duration = 6; + */ + value: Duration; + case: "duration"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Primitive"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "integer", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "value" }, + { no: 2, name: "float_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, oneof: "value" }, + { no: 3, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, + { no: 4, name: "boolean", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "value" }, + { no: 5, name: "datetime", kind: "message", T: Timestamp, oneof: "value" }, + { no: 6, name: "duration", kind: "message", T: Duration, oneof: "value" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Primitive { + return new Primitive().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Primitive { + return new Primitive().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Primitive { + return new Primitive().fromJsonString(jsonString, options); + } + + static equals(a: Primitive | PlainMessage | undefined, b: Primitive | PlainMessage | undefined): boolean { + return proto3.util.equals(Primitive, a, b); + } +} + +/** + * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally + * undefined since it can be assigned to a scalar of any LiteralType. + * + * @generated from message flyteidl.core.Void + */ +export class Void extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Void"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Void { + return new Void().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Void { + return new Void().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Void { + return new Void().fromJsonString(jsonString, options); + } + + static equals(a: Void | PlainMessage | undefined, b: Void | PlainMessage | undefined): boolean { + return proto3.util.equals(Void, a, b); + } +} + +/** + * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. + * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. + * + * @generated from message flyteidl.core.Blob + */ +export class Blob extends Message { + /** + * @generated from field: flyteidl.core.BlobMetadata metadata = 1; + */ + metadata?: BlobMetadata; + + /** + * @generated from field: string uri = 3; + */ + uri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Blob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: BlobMetadata }, + { no: 3, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Blob { + return new Blob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Blob { + return new Blob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Blob { + return new Blob().fromJsonString(jsonString, options); + } + + static equals(a: Blob | PlainMessage | undefined, b: Blob | PlainMessage | undefined): boolean { + return proto3.util.equals(Blob, a, b); + } +} + +/** + * @generated from message flyteidl.core.BlobMetadata + */ +export class BlobMetadata extends Message { + /** + * @generated from field: flyteidl.core.BlobType type = 1; + */ + type?: BlobType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BlobMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "message", T: BlobType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlobMetadata { + return new BlobMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlobMetadata { + return new BlobMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlobMetadata { + return new BlobMetadata().fromJsonString(jsonString, options); + } + + static equals(a: BlobMetadata | PlainMessage | undefined, b: BlobMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(BlobMetadata, a, b); + } +} + +/** + * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. + * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. + * + * @generated from message flyteidl.core.Binary + */ +export class Binary extends Message { + /** + * @generated from field: bytes value = 1; + */ + value = new Uint8Array(0); + + /** + * @generated from field: string tag = 2; + */ + tag = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Binary"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 2, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Binary { + return new Binary().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Binary { + return new Binary().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Binary { + return new Binary().fromJsonString(jsonString, options); + } + + static equals(a: Binary | PlainMessage | undefined, b: Binary | PlainMessage | undefined): boolean { + return proto3.util.equals(Binary, a, b); + } +} + +/** + * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. + * + * @generated from message flyteidl.core.Schema + */ +export class Schema extends Message { + /** + * @generated from field: string uri = 1; + */ + uri = ""; + + /** + * @generated from field: flyteidl.core.SchemaType type = 3; + */ + type?: SchemaType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Schema"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "type", kind: "message", T: SchemaType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Schema { + return new Schema().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Schema { + return new Schema().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Schema { + return new Schema().fromJsonString(jsonString, options); + } + + static equals(a: Schema | PlainMessage | undefined, b: Schema | PlainMessage | undefined): boolean { + return proto3.util.equals(Schema, a, b); + } +} + +/** + * The runtime representation of a tagged union value. See `UnionType` for more details. + * + * @generated from message flyteidl.core.Union + */ +export class Union extends Message { + /** + * @generated from field: flyteidl.core.Literal value = 1; + */ + value?: Literal; + + /** + * @generated from field: flyteidl.core.LiteralType type = 2; + */ + type?: LiteralType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Union"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "value", kind: "message", T: Literal }, + { no: 2, name: "type", kind: "message", T: LiteralType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Union { + return new Union().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Union { + return new Union().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Union { + return new Union().fromJsonString(jsonString, options); + } + + static equals(a: Union | PlainMessage | undefined, b: Union | PlainMessage | undefined): boolean { + return proto3.util.equals(Union, a, b); + } +} + +/** + * @generated from message flyteidl.core.StructuredDatasetMetadata + */ +export class StructuredDatasetMetadata extends Message { + /** + * Bundle the type information along with the literal. + * This is here because StructuredDatasets can often be more defined at run time than at compile time. + * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, + * without any column information, but at run time, you might have that column information. + * flytekit python will copy this type information into the literal, from the type information, if not provided by + * the various plugins (encoders). + * Since this field is run time generated, it's not used for any type checking. + * + * @generated from field: flyteidl.core.StructuredDatasetType structured_dataset_type = 1; + */ + structuredDatasetType?: StructuredDatasetType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.StructuredDatasetMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "structured_dataset_type", kind: "message", T: StructuredDatasetType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDatasetMetadata { + return new StructuredDatasetMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDatasetMetadata { + return new StructuredDatasetMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StructuredDatasetMetadata { + return new StructuredDatasetMetadata().fromJsonString(jsonString, options); + } + + static equals(a: StructuredDatasetMetadata | PlainMessage | undefined, b: StructuredDatasetMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(StructuredDatasetMetadata, a, b); + } +} + +/** + * @generated from message flyteidl.core.StructuredDataset + */ +export class StructuredDataset extends Message { + /** + * String location uniquely identifying where the data is. + * Should start with the storage location (e.g. s3://, gs://, bq://, etc.) + * + * @generated from field: string uri = 1; + */ + uri = ""; + + /** + * @generated from field: flyteidl.core.StructuredDatasetMetadata metadata = 2; + */ + metadata?: StructuredDatasetMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.StructuredDataset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: StructuredDatasetMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDataset { + return new StructuredDataset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDataset { + return new StructuredDataset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StructuredDataset { + return new StructuredDataset().fromJsonString(jsonString, options); + } + + static equals(a: StructuredDataset | PlainMessage | undefined, b: StructuredDataset | PlainMessage | undefined): boolean { + return proto3.util.equals(StructuredDataset, a, b); + } +} + +/** + * @generated from message flyteidl.core.Scalar + */ +export class Scalar extends Message { + /** + * @generated from oneof flyteidl.core.Scalar.value + */ + value: { + /** + * @generated from field: flyteidl.core.Primitive primitive = 1; + */ + value: Primitive; + case: "primitive"; + } | { + /** + * @generated from field: flyteidl.core.Blob blob = 2; + */ + value: Blob; + case: "blob"; + } | { + /** + * @generated from field: flyteidl.core.Binary binary = 3; + */ + value: Binary; + case: "binary"; + } | { + /** + * @generated from field: flyteidl.core.Schema schema = 4; + */ + value: Schema; + case: "schema"; + } | { + /** + * @generated from field: flyteidl.core.Void none_type = 5; + */ + value: Void; + case: "noneType"; + } | { + /** + * @generated from field: flyteidl.core.Error error = 6; + */ + value: Error; + case: "error"; + } | { + /** + * @generated from field: google.protobuf.Struct generic = 7; + */ + value: Struct; + case: "generic"; + } | { + /** + * @generated from field: flyteidl.core.StructuredDataset structured_dataset = 8; + */ + value: StructuredDataset; + case: "structuredDataset"; + } | { + /** + * @generated from field: flyteidl.core.Union union = 9; + */ + value: Union; + case: "union"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Scalar"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "primitive", kind: "message", T: Primitive, oneof: "value" }, + { no: 2, name: "blob", kind: "message", T: Blob, oneof: "value" }, + { no: 3, name: "binary", kind: "message", T: Binary, oneof: "value" }, + { no: 4, name: "schema", kind: "message", T: Schema, oneof: "value" }, + { no: 5, name: "none_type", kind: "message", T: Void, oneof: "value" }, + { no: 6, name: "error", kind: "message", T: Error, oneof: "value" }, + { no: 7, name: "generic", kind: "message", T: Struct, oneof: "value" }, + { no: 8, name: "structured_dataset", kind: "message", T: StructuredDataset, oneof: "value" }, + { no: 9, name: "union", kind: "message", T: Union, oneof: "value" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Scalar { + return new Scalar().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Scalar { + return new Scalar().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Scalar { + return new Scalar().fromJsonString(jsonString, options); + } + + static equals(a: Scalar | PlainMessage | undefined, b: Scalar | PlainMessage | undefined): boolean { + return proto3.util.equals(Scalar, a, b); + } +} + +/** + * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. + * + * @generated from message flyteidl.core.Literal + */ +export class Literal extends Message { + /** + * @generated from oneof flyteidl.core.Literal.value + */ + value: { + /** + * A simple value. + * + * @generated from field: flyteidl.core.Scalar scalar = 1; + */ + value: Scalar; + case: "scalar"; + } | { + /** + * A collection of literals to allow nesting. + * + * @generated from field: flyteidl.core.LiteralCollection collection = 2; + */ + value: LiteralCollection; + case: "collection"; + } | { + /** + * A map of strings to literals. + * + * @generated from field: flyteidl.core.LiteralMap map = 3; + */ + value: LiteralMap; + case: "map"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * A hash representing this literal. + * This is used for caching purposes. For more details refer to RFC 1893 + * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) + * + * @generated from field: string hash = 4; + */ + hash = ""; + + /** + * Additional metadata for literals. + * + * @generated from field: map metadata = 5; + */ + metadata: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Literal"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "scalar", kind: "message", T: Scalar, oneof: "value" }, + { no: 2, name: "collection", kind: "message", T: LiteralCollection, oneof: "value" }, + { no: 3, name: "map", kind: "message", T: LiteralMap, oneof: "value" }, + { no: 4, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "metadata", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Literal { + return new Literal().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Literal { + return new Literal().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Literal { + return new Literal().fromJsonString(jsonString, options); + } + + static equals(a: Literal | PlainMessage | undefined, b: Literal | PlainMessage | undefined): boolean { + return proto3.util.equals(Literal, a, b); + } +} + +/** + * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. + * + * @generated from message flyteidl.core.LiteralCollection + */ +export class LiteralCollection extends Message { + /** + * @generated from field: repeated flyteidl.core.Literal literals = 1; + */ + literals: Literal[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.LiteralCollection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "literals", kind: "message", T: Literal, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiteralCollection { + return new LiteralCollection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiteralCollection { + return new LiteralCollection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiteralCollection { + return new LiteralCollection().fromJsonString(jsonString, options); + } + + static equals(a: LiteralCollection | PlainMessage | undefined, b: LiteralCollection | PlainMessage | undefined): boolean { + return proto3.util.equals(LiteralCollection, a, b); + } +} + +/** + * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. + * + * @generated from message flyteidl.core.LiteralMap + */ +export class LiteralMap extends Message { + /** + * @generated from field: map literals = 1; + */ + literals: { [key: string]: Literal } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.LiteralMap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "literals", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: Literal} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiteralMap { + return new LiteralMap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiteralMap { + return new LiteralMap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiteralMap { + return new LiteralMap().fromJsonString(jsonString, options); + } + + static equals(a: LiteralMap | PlainMessage | undefined, b: LiteralMap | PlainMessage | undefined): boolean { + return proto3.util.equals(LiteralMap, a, b); + } +} + +/** + * A collection of BindingData items. + * + * @generated from message flyteidl.core.BindingDataCollection + */ +export class BindingDataCollection extends Message { + /** + * @generated from field: repeated flyteidl.core.BindingData bindings = 1; + */ + bindings: BindingData[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BindingDataCollection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bindings", kind: "message", T: BindingData, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BindingDataCollection { + return new BindingDataCollection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BindingDataCollection { + return new BindingDataCollection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BindingDataCollection { + return new BindingDataCollection().fromJsonString(jsonString, options); + } + + static equals(a: BindingDataCollection | PlainMessage | undefined, b: BindingDataCollection | PlainMessage | undefined): boolean { + return proto3.util.equals(BindingDataCollection, a, b); + } +} + +/** + * A map of BindingData items. + * + * @generated from message flyteidl.core.BindingDataMap + */ +export class BindingDataMap extends Message { + /** + * @generated from field: map bindings = 1; + */ + bindings: { [key: string]: BindingData } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BindingDataMap"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "bindings", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: BindingData} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BindingDataMap { + return new BindingDataMap().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BindingDataMap { + return new BindingDataMap().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BindingDataMap { + return new BindingDataMap().fromJsonString(jsonString, options); + } + + static equals(a: BindingDataMap | PlainMessage | undefined, b: BindingDataMap | PlainMessage | undefined): boolean { + return proto3.util.equals(BindingDataMap, a, b); + } +} + +/** + * @generated from message flyteidl.core.UnionInfo + */ +export class UnionInfo extends Message { + /** + * @generated from field: flyteidl.core.LiteralType targetType = 1; + */ + targetType?: LiteralType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.UnionInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "targetType", kind: "message", T: LiteralType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnionInfo { + return new UnionInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnionInfo { + return new UnionInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnionInfo { + return new UnionInfo().fromJsonString(jsonString, options); + } + + static equals(a: UnionInfo | PlainMessage | undefined, b: UnionInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(UnionInfo, a, b); + } +} + +/** + * Specifies either a simple value or a reference to another output. + * + * @generated from message flyteidl.core.BindingData + */ +export class BindingData extends Message { + /** + * @generated from oneof flyteidl.core.BindingData.value + */ + value: { + /** + * A simple scalar value. + * + * @generated from field: flyteidl.core.Scalar scalar = 1; + */ + value: Scalar; + case: "scalar"; + } | { + /** + * A collection of binding data. This allows nesting of binding data to any number + * of levels. + * + * @generated from field: flyteidl.core.BindingDataCollection collection = 2; + */ + value: BindingDataCollection; + case: "collection"; + } | { + /** + * References an output promised by another node. + * + * @generated from field: flyteidl.core.OutputReference promise = 3; + */ + value: OutputReference; + case: "promise"; + } | { + /** + * A map of bindings. The key is always a string. + * + * @generated from field: flyteidl.core.BindingDataMap map = 4; + */ + value: BindingDataMap; + case: "map"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * @generated from field: flyteidl.core.UnionInfo union = 5; + */ + union?: UnionInfo; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BindingData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "scalar", kind: "message", T: Scalar, oneof: "value" }, + { no: 2, name: "collection", kind: "message", T: BindingDataCollection, oneof: "value" }, + { no: 3, name: "promise", kind: "message", T: OutputReference, oneof: "value" }, + { no: 4, name: "map", kind: "message", T: BindingDataMap, oneof: "value" }, + { no: 5, name: "union", kind: "message", T: UnionInfo }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BindingData { + return new BindingData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BindingData { + return new BindingData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BindingData { + return new BindingData().fromJsonString(jsonString, options); + } + + static equals(a: BindingData | PlainMessage | undefined, b: BindingData | PlainMessage | undefined): boolean { + return proto3.util.equals(BindingData, a, b); + } +} + +/** + * An input/output binding of a variable to either static value or a node output. + * + * @generated from message flyteidl.core.Binding + */ +export class Binding extends Message { + /** + * Variable name must match an input/output variable of the node. + * + * @generated from field: string var = 1; + */ + var = ""; + + /** + * Data to use to bind this variable. + * + * @generated from field: flyteidl.core.BindingData binding = 2; + */ + binding?: BindingData; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Binding"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "binding", kind: "message", T: BindingData }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Binding { + return new Binding().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Binding { + return new Binding().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Binding { + return new Binding().fromJsonString(jsonString, options); + } + + static equals(a: Binding | PlainMessage | undefined, b: Binding | PlainMessage | undefined): boolean { + return proto3.util.equals(Binding, a, b); + } +} + +/** + * A generic key value pair. + * + * @generated from message flyteidl.core.KeyValuePair + */ +export class KeyValuePair extends Message { + /** + * required. + * + * @generated from field: string key = 1; + */ + key = ""; + + /** + * +optional. + * + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.KeyValuePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KeyValuePair { + return new KeyValuePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KeyValuePair { + return new KeyValuePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KeyValuePair { + return new KeyValuePair().fromJsonString(jsonString, options); + } + + static equals(a: KeyValuePair | PlainMessage | undefined, b: KeyValuePair | PlainMessage | undefined): boolean { + return proto3.util.equals(KeyValuePair, a, b); + } +} + +/** + * Retry strategy associated with an executable unit. + * + * @generated from message flyteidl.core.RetryStrategy + */ +export class RetryStrategy extends Message { + /** + * Number of retries. Retries will be consumed when the job fails with a recoverable error. + * The number of retries must be less than or equals to 10. + * + * @generated from field: uint32 retries = 5; + */ + retries = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.RetryStrategy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 5, name: "retries", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RetryStrategy { + return new RetryStrategy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RetryStrategy { + return new RetryStrategy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RetryStrategy { + return new RetryStrategy().fromJsonString(jsonString, options); + } + + static equals(a: RetryStrategy | PlainMessage | undefined, b: RetryStrategy | PlainMessage | undefined): boolean { + return proto3.util.equals(RetryStrategy, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts new file mode 100644 index 0000000000..e45994727e --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/metrics_pb.ts @@ -0,0 +1,162 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/metrics.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; +import { NodeExecutionIdentifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "./identifier_pb.js"; + +/** + * Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation + * which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more + * precise definitions. + * + * @generated from message flyteidl.core.Span + */ +export class Span extends Message { + /** + * start_time defines the instance this span began. + * + * @generated from field: google.protobuf.Timestamp start_time = 1; + */ + startTime?: Timestamp; + + /** + * end_time defines the instance this span completed. + * + * @generated from field: google.protobuf.Timestamp end_time = 2; + */ + endTime?: Timestamp; + + /** + * @generated from oneof flyteidl.core.Span.id + */ + id: { + /** + * workflow_id is the id of the workflow execution this Span represents. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; + */ + value: WorkflowExecutionIdentifier; + case: "workflowId"; + } | { + /** + * node_id is the id of the node execution this Span represents. + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier node_id = 4; + */ + value: NodeExecutionIdentifier; + case: "nodeId"; + } | { + /** + * task_id is the id of the task execution this Span represents. + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier task_id = 5; + */ + value: TaskExecutionIdentifier; + case: "taskId"; + } | { + /** + * operation_id is the id of a unique operation that this Span represents. + * + * @generated from field: string operation_id = 6; + */ + value: string; + case: "operationId"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * spans defines a collection of Spans that breakdown this execution. + * + * @generated from field: repeated flyteidl.core.Span spans = 7; + */ + spans: Span[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Span"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "start_time", kind: "message", T: Timestamp }, + { no: 2, name: "end_time", kind: "message", T: Timestamp }, + { no: 3, name: "workflow_id", kind: "message", T: WorkflowExecutionIdentifier, oneof: "id" }, + { no: 4, name: "node_id", kind: "message", T: NodeExecutionIdentifier, oneof: "id" }, + { no: 5, name: "task_id", kind: "message", T: TaskExecutionIdentifier, oneof: "id" }, + { no: 6, name: "operation_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "id" }, + { no: 7, name: "spans", kind: "message", T: Span, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Span { + return new Span().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Span { + return new Span().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Span { + return new Span().fromJsonString(jsonString, options); + } + + static equals(a: Span | PlainMessage | undefined, b: Span | PlainMessage | undefined): boolean { + return proto3.util.equals(Span, a, b); + } +} + +/** + * ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. + * + * @generated from message flyteidl.core.ExecutionMetricResult + */ +export class ExecutionMetricResult extends Message { + /** + * The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + * + * @generated from field: string metric = 1; + */ + metric = ""; + + /** + * The result data in prometheus range query result format + * https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats. + * This may include multiple time series, differentiated by their metric labels. + * Start time is greater of (execution attempt start, 48h ago) + * End time is lesser of (execution attempt end, now) + * + * @generated from field: google.protobuf.Struct data = 2; + */ + data?: Struct; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ExecutionMetricResult"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metric", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "data", kind: "message", T: Struct }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExecutionMetricResult { + return new ExecutionMetricResult().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExecutionMetricResult { + return new ExecutionMetricResult().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExecutionMetricResult { + return new ExecutionMetricResult().fromJsonString(jsonString, options); + } + + static equals(a: ExecutionMetricResult | PlainMessage | undefined, b: ExecutionMetricResult | PlainMessage | undefined): boolean { + return proto3.util.equals(ExecutionMetricResult, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/security_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/security_pb.ts new file mode 100644 index 0000000000..7d1ca8bbac --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/security_pb.ts @@ -0,0 +1,406 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/security.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Secret encapsulates information about the secret a task needs to proceed. An environment variable + * FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if + * secrets are passed through environment variables. + * FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets + * are passed through file mounts. + * + * @generated from message flyteidl.core.Secret + */ +export class Secret extends Message { + /** + * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of + * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. + * For AWS Secret Manager, this should be the name of the secret. + * +required + * + * @generated from field: string group = 1; + */ + group = ""; + + /** + * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones + * that do not support it. + * +optional + * + * @generated from field: string group_version = 2; + */ + groupVersion = ""; + + /** + * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation + * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should + * match one of the keys inside the secret. For AWS Secret Manager, it's ignored. + * +optional + * + * @generated from field: string key = 3; + */ + key = ""; + + /** + * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail + * if the underlying key management system cannot satisfy that requirement. If not provided, the default location + * will depend on the key management system. + * +optional + * + * @generated from field: flyteidl.core.Secret.MountType mount_requirement = 4; + */ + mountRequirement = Secret_MountType.ANY; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Secret"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "group_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "mount_requirement", kind: "enum", T: proto3.getEnumType(Secret_MountType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Secret { + return new Secret().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Secret { + return new Secret().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Secret { + return new Secret().fromJsonString(jsonString, options); + } + + static equals(a: Secret | PlainMessage | undefined, b: Secret | PlainMessage | undefined): boolean { + return proto3.util.equals(Secret, a, b); + } +} + +/** + * @generated from enum flyteidl.core.Secret.MountType + */ +export enum Secret_MountType { + /** + * Default case, indicates the client can tolerate either mounting options. + * + * @generated from enum value: ANY = 0; + */ + ANY = 0, + + /** + * ENV_VAR indicates the secret needs to be mounted as an environment variable. + * + * @generated from enum value: ENV_VAR = 1; + */ + ENV_VAR = 1, + + /** + * FILE indicates the secret needs to be mounted as a file. + * + * @generated from enum value: FILE = 2; + */ + FILE = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(Secret_MountType) +proto3.util.setEnumType(Secret_MountType, "flyteidl.core.Secret.MountType", [ + { no: 0, name: "ANY" }, + { no: 1, name: "ENV_VAR" }, + { no: 2, name: "FILE" }, +]); + +/** + * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. + * + * @generated from message flyteidl.core.OAuth2Client + */ +export class OAuth2Client extends Message { + /** + * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the + * secret requested matches the client_id indicated here. + * +required + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * client_secret is a reference to the secret used to authenticate the OAuth2 client. + * +required + * + * @generated from field: flyteidl.core.Secret client_secret = 2; + */ + clientSecret?: Secret; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.OAuth2Client"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "client_secret", kind: "message", T: Secret }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2Client { + return new OAuth2Client().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2Client { + return new OAuth2Client().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OAuth2Client { + return new OAuth2Client().fromJsonString(jsonString, options); + } + + static equals(a: OAuth2Client | PlainMessage | undefined, b: OAuth2Client | PlainMessage | undefined): boolean { + return proto3.util.equals(OAuth2Client, a, b); + } +} + +/** + * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the + * right identity for the execution environment. + * + * @generated from message flyteidl.core.Identity + */ +export class Identity extends Message { + /** + * iam_role references the fully qualified name of Identity & Access Management role to impersonate. + * + * @generated from field: string iam_role = 1; + */ + iamRole = ""; + + /** + * k8s_service_account references a kubernetes service account to impersonate. + * + * @generated from field: string k8s_service_account = 2; + */ + k8sServiceAccount = ""; + + /** + * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when + * making external calls. + * + * @generated from field: flyteidl.core.OAuth2Client oauth2_client = 3; + */ + oauth2Client?: OAuth2Client; + + /** + * execution_identity references the subject who makes the execution + * + * @generated from field: string execution_identity = 4; + */ + executionIdentity = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Identity"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "iam_role", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "k8s_service_account", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "oauth2_client", kind: "message", T: OAuth2Client }, + { no: 4, name: "execution_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Identity { + return new Identity().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Identity { + return new Identity().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Identity { + return new Identity().fromJsonString(jsonString, options); + } + + static equals(a: Identity | PlainMessage | undefined, b: Identity | PlainMessage | undefined): boolean { + return proto3.util.equals(Identity, a, b); + } +} + +/** + * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. + * FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if + * tokens are passed through environment variables. + * FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens + * are passed through file mounts. + * + * @generated from message flyteidl.core.OAuth2TokenRequest + */ +export class OAuth2TokenRequest extends Message { + /** + * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for + * environment variables and as a filename for mounting tokens as files. + * +required + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. + * +required + * + * @generated from field: flyteidl.core.OAuth2TokenRequest.Type type = 2; + */ + type = OAuth2TokenRequest_Type.CLIENT_CREDENTIALS; + + /** + * client references the client_id/secret to use to request the OAuth2 token. + * +required + * + * @generated from field: flyteidl.core.OAuth2Client client = 3; + */ + client?: OAuth2Client; + + /** + * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related + * information. + * +optional + * + * @generated from field: string idp_discovery_endpoint = 4; + */ + idpDiscoveryEndpoint = ""; + + /** + * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is + * mandatory. + * +optional + * + * @generated from field: string token_endpoint = 5; + */ + tokenEndpoint = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.OAuth2TokenRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(OAuth2TokenRequest_Type) }, + { no: 3, name: "client", kind: "message", T: OAuth2Client }, + { no: 4, name: "idp_discovery_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "token_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2TokenRequest { + return new OAuth2TokenRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2TokenRequest { + return new OAuth2TokenRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OAuth2TokenRequest { + return new OAuth2TokenRequest().fromJsonString(jsonString, options); + } + + static equals(a: OAuth2TokenRequest | PlainMessage | undefined, b: OAuth2TokenRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(OAuth2TokenRequest, a, b); + } +} + +/** + * Type of the token requested. + * + * @generated from enum flyteidl.core.OAuth2TokenRequest.Type + */ +export enum OAuth2TokenRequest_Type { + /** + * CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. + * + * @generated from enum value: CLIENT_CREDENTIALS = 0; + */ + CLIENT_CREDENTIALS = 0, +} +// Retrieve enum metadata with: proto3.getEnumType(OAuth2TokenRequest_Type) +proto3.util.setEnumType(OAuth2TokenRequest_Type, "flyteidl.core.OAuth2TokenRequest.Type", [ + { no: 0, name: "CLIENT_CREDENTIALS" }, +]); + +/** + * SecurityContext holds security attributes that apply to tasks. + * + * @generated from message flyteidl.core.SecurityContext + */ +export class SecurityContext extends Message { + /** + * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the + * backend plugin to choose the appropriate identity for the execution engine the task will run on. + * + * @generated from field: flyteidl.core.Identity run_as = 1; + */ + runAs?: Identity; + + /** + * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the + * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + * to the secret) and to pass it to the remote execution engine. + * + * @generated from field: repeated flyteidl.core.Secret secrets = 2; + */ + secrets: Secret[] = []; + + /** + * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the + * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + * to the secret) and to pass it to the remote execution engine. + * + * @generated from field: repeated flyteidl.core.OAuth2TokenRequest tokens = 3; + */ + tokens: OAuth2TokenRequest[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.SecurityContext"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "run_as", kind: "message", T: Identity }, + { no: 2, name: "secrets", kind: "message", T: Secret, repeated: true }, + { no: 3, name: "tokens", kind: "message", T: OAuth2TokenRequest, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SecurityContext { + return new SecurityContext().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SecurityContext { + return new SecurityContext().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SecurityContext { + return new SecurityContext().fromJsonString(jsonString, options); + } + + static equals(a: SecurityContext | PlainMessage | undefined, b: SecurityContext | PlainMessage | undefined): boolean { + return proto3.util.equals(SecurityContext, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts new file mode 100644 index 0000000000..afd4e5f98b --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/tasks_pb.ts @@ -0,0 +1,1264 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/tasks.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Struct } from "@bufbuild/protobuf"; +import { KeyValuePair, RetryStrategy } from "./literals_pb.js"; +import { Identifier } from "./identifier_pb.js"; +import { TypedInterface } from "./interface_pb.js"; +import { SecurityContext } from "./security_pb.js"; + +/** + * A customizable interface to convey resources requested for a container. This can be interpreted differently for different + * container engines. + * + * @generated from message flyteidl.core.Resources + */ +export class Resources extends Message { + /** + * The desired set of resources requested. ResourceNames must be unique within the list. + * + * @generated from field: repeated flyteidl.core.Resources.ResourceEntry requests = 1; + */ + requests: Resources_ResourceEntry[] = []; + + /** + * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + * within the list. + * + * @generated from field: repeated flyteidl.core.Resources.ResourceEntry limits = 2; + */ + limits: Resources_ResourceEntry[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Resources"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "requests", kind: "message", T: Resources_ResourceEntry, repeated: true }, + { no: 2, name: "limits", kind: "message", T: Resources_ResourceEntry, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resources { + return new Resources().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resources { + return new Resources().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resources { + return new Resources().fromJsonString(jsonString, options); + } + + static equals(a: Resources | PlainMessage | undefined, b: Resources | PlainMessage | undefined): boolean { + return proto3.util.equals(Resources, a, b); + } +} + +/** + * Known resource names. + * + * @generated from enum flyteidl.core.Resources.ResourceName + */ +export enum Resources_ResourceName { + /** + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: CPU = 1; + */ + CPU = 1, + + /** + * @generated from enum value: GPU = 2; + */ + GPU = 2, + + /** + * @generated from enum value: MEMORY = 3; + */ + MEMORY = 3, + + /** + * @generated from enum value: STORAGE = 4; + */ + STORAGE = 4, + + /** + * For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. + * + * @generated from enum value: EPHEMERAL_STORAGE = 5; + */ + EPHEMERAL_STORAGE = 5, +} +// Retrieve enum metadata with: proto3.getEnumType(Resources_ResourceName) +proto3.util.setEnumType(Resources_ResourceName, "flyteidl.core.Resources.ResourceName", [ + { no: 0, name: "UNKNOWN" }, + { no: 1, name: "CPU" }, + { no: 2, name: "GPU" }, + { no: 3, name: "MEMORY" }, + { no: 4, name: "STORAGE" }, + { no: 5, name: "EPHEMERAL_STORAGE" }, +]); + +/** + * Encapsulates a resource name and value. + * + * @generated from message flyteidl.core.Resources.ResourceEntry + */ +export class Resources_ResourceEntry extends Message { + /** + * Resource name. + * + * @generated from field: flyteidl.core.Resources.ResourceName name = 1; + */ + name = Resources_ResourceName.UNKNOWN; + + /** + * Value must be a valid k8s quantity. See + * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + * + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Resources.ResourceEntry"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "enum", T: proto3.getEnumType(Resources_ResourceName) }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Resources_ResourceEntry { + return new Resources_ResourceEntry().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Resources_ResourceEntry { + return new Resources_ResourceEntry().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Resources_ResourceEntry { + return new Resources_ResourceEntry().fromJsonString(jsonString, options); + } + + static equals(a: Resources_ResourceEntry | PlainMessage | undefined, b: Resources_ResourceEntry | PlainMessage | undefined): boolean { + return proto3.util.equals(Resources_ResourceEntry, a, b); + } +} + +/** + * Metadata associated with the GPU accelerator to allocate to a task. Contains + * information about device type, and for multi-instance GPUs, the partition size to + * use. + * + * @generated from message flyteidl.core.GPUAccelerator + */ +export class GPUAccelerator extends Message { + /** + * This can be any arbitrary string, and should be informed by the labels or taints + * associated with the nodes in question. Default cloud provider labels typically + * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. + * + * @generated from field: string device = 1; + */ + device = ""; + + /** + * @generated from oneof flyteidl.core.GPUAccelerator.partition_size_value + */ + partitionSizeValue: { + /** + * @generated from field: bool unpartitioned = 2; + */ + value: boolean; + case: "unpartitioned"; + } | { + /** + * Like `device`, this can be any arbitrary string, and should be informed by + * the labels or taints associated with the nodes in question. Default cloud + * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. + * + * @generated from field: string partition_size = 3; + */ + value: string; + case: "partitionSize"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.GPUAccelerator"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "device", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "unpartitioned", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "partition_size_value" }, + { no: 3, name: "partition_size", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "partition_size_value" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GPUAccelerator { + return new GPUAccelerator().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GPUAccelerator { + return new GPUAccelerator().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GPUAccelerator { + return new GPUAccelerator().fromJsonString(jsonString, options); + } + + static equals(a: GPUAccelerator | PlainMessage | undefined, b: GPUAccelerator | PlainMessage | undefined): boolean { + return proto3.util.equals(GPUAccelerator, a, b); + } +} + +/** + * Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to + * allocate to a task. + * + * @generated from message flyteidl.core.ExtendedResources + */ +export class ExtendedResources extends Message { + /** + * GPU accelerator to select for task. Contains information about device type, and + * for multi-instance GPUs, the partition size to use. + * + * @generated from field: flyteidl.core.GPUAccelerator gpu_accelerator = 1; + */ + gpuAccelerator?: GPUAccelerator; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ExtendedResources"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "gpu_accelerator", kind: "message", T: GPUAccelerator }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExtendedResources { + return new ExtendedResources().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExtendedResources { + return new ExtendedResources().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExtendedResources { + return new ExtendedResources().fromJsonString(jsonString, options); + } + + static equals(a: ExtendedResources | PlainMessage | undefined, b: ExtendedResources | PlainMessage | undefined): boolean { + return proto3.util.equals(ExtendedResources, a, b); + } +} + +/** + * Runtime information. This is loosely defined to allow for extensibility. + * + * @generated from message flyteidl.core.RuntimeMetadata + */ +export class RuntimeMetadata extends Message { + /** + * Type of runtime. + * + * @generated from field: flyteidl.core.RuntimeMetadata.RuntimeType type = 1; + */ + type = RuntimeMetadata_RuntimeType.OTHER; + + /** + * Version of the runtime. All versions should be backward compatible. However, certain cases call for version + * checks to ensure tighter validation or setting expectations. + * + * @generated from field: string version = 2; + */ + version = ""; + + /** + * +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + * + * @generated from field: string flavor = 3; + */ + flavor = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.RuntimeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(RuntimeMetadata_RuntimeType) }, + { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "flavor", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RuntimeMetadata { + return new RuntimeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RuntimeMetadata { + return new RuntimeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RuntimeMetadata { + return new RuntimeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: RuntimeMetadata | PlainMessage | undefined, b: RuntimeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(RuntimeMetadata, a, b); + } +} + +/** + * @generated from enum flyteidl.core.RuntimeMetadata.RuntimeType + */ +export enum RuntimeMetadata_RuntimeType { + /** + * @generated from enum value: OTHER = 0; + */ + OTHER = 0, + + /** + * @generated from enum value: FLYTE_SDK = 1; + */ + FLYTE_SDK = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(RuntimeMetadata_RuntimeType) +proto3.util.setEnumType(RuntimeMetadata_RuntimeType, "flyteidl.core.RuntimeMetadata.RuntimeType", [ + { no: 0, name: "OTHER" }, + { no: 1, name: "FLYTE_SDK" }, +]); + +/** + * Task Metadata + * + * @generated from message flyteidl.core.TaskMetadata + */ +export class TaskMetadata extends Message { + /** + * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + * + * @generated from field: bool discoverable = 1; + */ + discoverable = false; + + /** + * Runtime information about the task. + * + * @generated from field: flyteidl.core.RuntimeMetadata runtime = 2; + */ + runtime?: RuntimeMetadata; + + /** + * The overall timeout of a task including user-triggered retries. + * + * @generated from field: google.protobuf.Duration timeout = 4; + */ + timeout?: Duration; + + /** + * Number of retries per task. + * + * @generated from field: flyteidl.core.RetryStrategy retries = 5; + */ + retries?: RetryStrategy; + + /** + * Indicates a logical version to apply to this task for the purpose of discovery. + * + * @generated from field: string discovery_version = 6; + */ + discoveryVersion = ""; + + /** + * If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + * of the ending of support for a given task. + * + * @generated from field: string deprecated_error_message = 7; + */ + deprecatedErrorMessage = ""; + + /** + * Identify whether task is interruptible + * + * @generated from oneof flyteidl.core.TaskMetadata.interruptible_value + */ + interruptibleValue: { + /** + * @generated from field: bool interruptible = 8; + */ + value: boolean; + case: "interruptible"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work + * + * @generated from field: bool cache_serializable = 9; + */ + cacheSerializable = false; + + /** + * Indicates whether the task will generate a Deck URI when it finishes executing. + * + * @generated from field: bool generates_deck = 10; + */ + generatesDeck = false; + + /** + * Arbitrary tags that allow users and the platform to store small but arbitrary labels + * + * @generated from field: map tags = 11; + */ + tags: { [key: string]: string } = {}; + + /** + * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this + * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied + * identically as, the default PodTemplate configured in FlytePropeller. + * + * @generated from field: string pod_template_name = 12; + */ + podTemplateName = ""; + + /** + * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. + * + * @generated from field: repeated string cache_ignore_input_vars = 13; + */ + cacheIgnoreInputVars: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "discoverable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "runtime", kind: "message", T: RuntimeMetadata }, + { no: 4, name: "timeout", kind: "message", T: Duration }, + { no: 5, name: "retries", kind: "message", T: RetryStrategy }, + { no: 6, name: "discovery_version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "deprecated_error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "interruptible_value" }, + { no: 9, name: "cache_serializable", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 10, name: "generates_deck", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 11, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 12, name: "pod_template_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "cache_ignore_input_vars", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskMetadata { + return new TaskMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskMetadata { + return new TaskMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskMetadata { + return new TaskMetadata().fromJsonString(jsonString, options); + } + + static equals(a: TaskMetadata | PlainMessage | undefined, b: TaskMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskMetadata, a, b); + } +} + +/** + * A Task structure that uniquely identifies a task in the system + * Tasks are registered as a first step in the system. + * + * @generated from message flyteidl.core.TaskTemplate + */ +export class TaskTemplate extends Message { + /** + * Auto generated taskId by the system. Task Id uniquely identifies this task globally. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + * implementation registered for the TaskCategory. + * + * @generated from field: string type = 2; + */ + type = ""; + + /** + * Extra metadata about the task. + * + * @generated from field: flyteidl.core.TaskMetadata metadata = 3; + */ + metadata?: TaskMetadata; + + /** + * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees + * compile-time validation of the workflow to avoid costly runtime failures. + * + * @generated from field: flyteidl.core.TypedInterface interface = 4; + */ + interface?: TypedInterface; + + /** + * Custom data about the task. This is extensible to allow various plugins in the system. + * + * @generated from field: google.protobuf.Struct custom = 5; + */ + custom?: Struct; + + /** + * Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + * If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + * handlers. + * + * @generated from oneof flyteidl.core.TaskTemplate.target + */ + target: { + /** + * @generated from field: flyteidl.core.Container container = 6; + */ + value: Container; + case: "container"; + } | { + /** + * @generated from field: flyteidl.core.K8sPod k8s_pod = 17; + */ + value: K8sPod; + case: "k8sPod"; + } | { + /** + * @generated from field: flyteidl.core.Sql sql = 18; + */ + value: Sql; + case: "sql"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * This can be used to customize task handling at execution time for the same task type. + * + * @generated from field: int32 task_type_version = 7; + */ + taskTypeVersion = 0; + + /** + * security_context encapsulates security attributes requested to run this task. + * + * @generated from field: flyteidl.core.SecurityContext security_context = 8; + */ + securityContext?: SecurityContext; + + /** + * Encapsulates all non-standard resources, not captured by + * v1.ResourceRequirements, to allocate to a task. + * + * @generated from field: flyteidl.core.ExtendedResources extended_resources = 9; + */ + extendedResources?: ExtendedResources; + + /** + * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system + * to use as required. + * reserve the field numbers 1 through 15 for very frequently occurring message elements + * + * @generated from field: map config = 16; + */ + config: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskTemplate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "metadata", kind: "message", T: TaskMetadata }, + { no: 4, name: "interface", kind: "message", T: TypedInterface }, + { no: 5, name: "custom", kind: "message", T: Struct }, + { no: 6, name: "container", kind: "message", T: Container, oneof: "target" }, + { no: 17, name: "k8s_pod", kind: "message", T: K8sPod, oneof: "target" }, + { no: 18, name: "sql", kind: "message", T: Sql, oneof: "target" }, + { no: 7, name: "task_type_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 8, name: "security_context", kind: "message", T: SecurityContext }, + { no: 9, name: "extended_resources", kind: "message", T: ExtendedResources }, + { no: 16, name: "config", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskTemplate { + return new TaskTemplate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskTemplate { + return new TaskTemplate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskTemplate { + return new TaskTemplate().fromJsonString(jsonString, options); + } + + static equals(a: TaskTemplate | PlainMessage | undefined, b: TaskTemplate | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskTemplate, a, b); + } +} + +/** + * Defines port properties for a container. + * + * @generated from message flyteidl.core.ContainerPort + */ +export class ContainerPort extends Message { + /** + * Number of port to expose on the pod's IP address. + * This must be a valid port number, 0 < x < 65536. + * + * @generated from field: uint32 container_port = 1; + */ + containerPort = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ContainerPort"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "container_port", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ContainerPort { + return new ContainerPort().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ContainerPort { + return new ContainerPort().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ContainerPort { + return new ContainerPort().fromJsonString(jsonString, options); + } + + static equals(a: ContainerPort | PlainMessage | undefined, b: ContainerPort | PlainMessage | undefined): boolean { + return proto3.util.equals(ContainerPort, a, b); + } +} + +/** + * @generated from message flyteidl.core.Container + */ +export class Container extends Message { + /** + * Container image url. Eg: docker/redis:latest + * + * @generated from field: string image = 1; + */ + image = ""; + + /** + * Command to be executed, if not provided, the default entrypoint in the container image will be used. + * + * @generated from field: repeated string command = 2; + */ + command: string[] = []; + + /** + * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + * system will populate these before executing the container. + * + * @generated from field: repeated string args = 3; + */ + args: string[] = []; + + /** + * Container resources requirement as specified by the container engine. + * + * @generated from field: flyteidl.core.Resources resources = 4; + */ + resources?: Resources; + + /** + * Environment variables will be set as the container is starting up. + * + * @generated from field: repeated flyteidl.core.KeyValuePair env = 5; + */ + env: KeyValuePair[] = []; + + /** + * Allows extra configs to be available for the container. + * TODO: elaborate on how configs will become available. + * Deprecated, please use TaskTemplate.config instead. + * + * @generated from field: repeated flyteidl.core.KeyValuePair config = 6 [deprecated = true]; + * @deprecated + */ + config: KeyValuePair[] = []; + + /** + * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + * not supported on AWS Batch) + * Only K8s + * + * @generated from field: repeated flyteidl.core.ContainerPort ports = 7; + */ + ports: ContainerPort[] = []; + + /** + * BETA: Optional configuration for DataLoading. If not specified, then default values are used. + * This makes it possible to to run a completely portable container, that uses inputs and outputs + * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. + * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + * to understand the default paths. + * Only K8s + * + * @generated from field: flyteidl.core.DataLoadingConfig data_config = 9; + */ + dataConfig?: DataLoadingConfig; + + /** + * @generated from field: flyteidl.core.Container.Architecture architecture = 10; + */ + architecture = Container_Architecture.UNKNOWN; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Container"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 3, name: "args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "resources", kind: "message", T: Resources }, + { no: 5, name: "env", kind: "message", T: KeyValuePair, repeated: true }, + { no: 6, name: "config", kind: "message", T: KeyValuePair, repeated: true }, + { no: 7, name: "ports", kind: "message", T: ContainerPort, repeated: true }, + { no: 9, name: "data_config", kind: "message", T: DataLoadingConfig }, + { no: 10, name: "architecture", kind: "enum", T: proto3.getEnumType(Container_Architecture) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Container { + return new Container().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Container { + return new Container().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Container { + return new Container().fromJsonString(jsonString, options); + } + + static equals(a: Container | PlainMessage | undefined, b: Container | PlainMessage | undefined): boolean { + return proto3.util.equals(Container, a, b); + } +} + +/** + * Architecture-type the container image supports. + * + * @generated from enum flyteidl.core.Container.Architecture + */ +export enum Container_Architecture { + /** + * @generated from enum value: UNKNOWN = 0; + */ + UNKNOWN = 0, + + /** + * @generated from enum value: AMD64 = 1; + */ + AMD64 = 1, + + /** + * @generated from enum value: ARM64 = 2; + */ + ARM64 = 2, + + /** + * @generated from enum value: ARM_V6 = 3; + */ + ARM_V6 = 3, + + /** + * @generated from enum value: ARM_V7 = 4; + */ + ARM_V7 = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(Container_Architecture) +proto3.util.setEnumType(Container_Architecture, "flyteidl.core.Container.Architecture", [ + { no: 0, name: "UNKNOWN" }, + { no: 1, name: "AMD64" }, + { no: 2, name: "ARM64" }, + { no: 3, name: "ARM_V6" }, + { no: 4, name: "ARM_V7" }, +]); + +/** + * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) + * + * @generated from message flyteidl.core.IOStrategy + */ +export class IOStrategy extends Message { + /** + * Mode to use to manage downloads + * + * @generated from field: flyteidl.core.IOStrategy.DownloadMode download_mode = 1; + */ + downloadMode = IOStrategy_DownloadMode.DOWNLOAD_EAGER; + + /** + * Mode to use to manage uploads + * + * @generated from field: flyteidl.core.IOStrategy.UploadMode upload_mode = 2; + */ + uploadMode = IOStrategy_UploadMode.UPLOAD_ON_EXIT; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.IOStrategy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "download_mode", kind: "enum", T: proto3.getEnumType(IOStrategy_DownloadMode) }, + { no: 2, name: "upload_mode", kind: "enum", T: proto3.getEnumType(IOStrategy_UploadMode) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IOStrategy { + return new IOStrategy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IOStrategy { + return new IOStrategy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IOStrategy { + return new IOStrategy().fromJsonString(jsonString, options); + } + + static equals(a: IOStrategy | PlainMessage | undefined, b: IOStrategy | PlainMessage | undefined): boolean { + return proto3.util.equals(IOStrategy, a, b); + } +} + +/** + * Mode to use for downloading + * + * @generated from enum flyteidl.core.IOStrategy.DownloadMode + */ +export enum IOStrategy_DownloadMode { + /** + * All data will be downloaded before the main container is executed + * + * @generated from enum value: DOWNLOAD_EAGER = 0; + */ + DOWNLOAD_EAGER = 0, + + /** + * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details + * + * @generated from enum value: DOWNLOAD_STREAM = 1; + */ + DOWNLOAD_STREAM = 1, + + /** + * Large objects (offloaded) will not be downloaded + * + * @generated from enum value: DO_NOT_DOWNLOAD = 2; + */ + DO_NOT_DOWNLOAD = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(IOStrategy_DownloadMode) +proto3.util.setEnumType(IOStrategy_DownloadMode, "flyteidl.core.IOStrategy.DownloadMode", [ + { no: 0, name: "DOWNLOAD_EAGER" }, + { no: 1, name: "DOWNLOAD_STREAM" }, + { no: 2, name: "DO_NOT_DOWNLOAD" }, +]); + +/** + * Mode to use for uploading + * + * @generated from enum flyteidl.core.IOStrategy.UploadMode + */ +export enum IOStrategy_UploadMode { + /** + * All data will be uploaded after the main container exits + * + * @generated from enum value: UPLOAD_ON_EXIT = 0; + */ + UPLOAD_ON_EXIT = 0, + + /** + * Data will be uploaded as it appears. Refer to protocol specification for details + * + * @generated from enum value: UPLOAD_EAGER = 1; + */ + UPLOAD_EAGER = 1, + + /** + * Data will not be uploaded, only references will be written + * + * @generated from enum value: DO_NOT_UPLOAD = 2; + */ + DO_NOT_UPLOAD = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(IOStrategy_UploadMode) +proto3.util.setEnumType(IOStrategy_UploadMode, "flyteidl.core.IOStrategy.UploadMode", [ + { no: 0, name: "UPLOAD_ON_EXIT" }, + { no: 1, name: "UPLOAD_EAGER" }, + { no: 2, name: "DO_NOT_UPLOAD" }, +]); + +/** + * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. + * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path + * Any outputs generated by the user container - within output_path are automatically uploaded. + * + * @generated from message flyteidl.core.DataLoadingConfig + */ +export class DataLoadingConfig extends Message { + /** + * Flag enables DataLoading Config. If this is not set, data loading will not be used! + * + * @generated from field: bool enabled = 1; + */ + enabled = false; + + /** + * File system path (start at root). This folder will contain all the inputs exploded to a separate file. + * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like + * /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations + * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format + * /var/flyte/inputs/y -> Y is a file in Binary format + * /var/flyte/inputs/z/... -> Note Z itself is a directory + * More information about the protocol - refer to docs #TODO reference docs here + * + * @generated from field: string input_path = 2; + */ + inputPath = ""; + + /** + * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file + * + * @generated from field: string output_path = 3; + */ + outputPath = ""; + + /** + * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. + * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding + * + * @generated from field: flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; + */ + format = DataLoadingConfig_LiteralMapFormat.JSON; + + /** + * @generated from field: flyteidl.core.IOStrategy io_strategy = 5; + */ + ioStrategy?: IOStrategy; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.DataLoadingConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 2, name: "input_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "output_path", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "format", kind: "enum", T: proto3.getEnumType(DataLoadingConfig_LiteralMapFormat) }, + { no: 5, name: "io_strategy", kind: "message", T: IOStrategy }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DataLoadingConfig { + return new DataLoadingConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DataLoadingConfig { + return new DataLoadingConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DataLoadingConfig { + return new DataLoadingConfig().fromJsonString(jsonString, options); + } + + static equals(a: DataLoadingConfig | PlainMessage | undefined, b: DataLoadingConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(DataLoadingConfig, a, b); + } +} + +/** + * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. + * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. + * JSON and YAML do not need any protobuf definitions to read it + * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) + * + * @generated from enum flyteidl.core.DataLoadingConfig.LiteralMapFormat + */ +export enum DataLoadingConfig_LiteralMapFormat { + /** + * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html + * + * @generated from enum value: JSON = 0; + */ + JSON = 0, + + /** + * @generated from enum value: YAML = 1; + */ + YAML = 1, + + /** + * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core + * + * @generated from enum value: PROTO = 2; + */ + PROTO = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(DataLoadingConfig_LiteralMapFormat) +proto3.util.setEnumType(DataLoadingConfig_LiteralMapFormat, "flyteidl.core.DataLoadingConfig.LiteralMapFormat", [ + { no: 0, name: "JSON" }, + { no: 1, name: "YAML" }, + { no: 2, name: "PROTO" }, +]); + +/** + * Defines a pod spec and additional pod metadata that is created when a task is executed. + * + * @generated from message flyteidl.core.K8sPod + */ +export class K8sPod extends Message { + /** + * Contains additional metadata for building a kubernetes pod. + * + * @generated from field: flyteidl.core.K8sObjectMetadata metadata = 1; + */ + metadata?: K8sObjectMetadata; + + /** + * Defines the primary pod spec created when a task is executed. + * This should be a JSON-marshalled pod spec, which can be defined in + * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 + * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py + * + * @generated from field: google.protobuf.Struct pod_spec = 2; + */ + podSpec?: Struct; + + /** + * BETA: Optional configuration for DataLoading. If not specified, then default values are used. + * This makes it possible to to run a completely portable container, that uses inputs and outputs + * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. + * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + * to understand the default paths. + * Only K8s + * + * @generated from field: flyteidl.core.DataLoadingConfig data_config = 3; + */ + dataConfig?: DataLoadingConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.K8sPod"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "metadata", kind: "message", T: K8sObjectMetadata }, + { no: 2, name: "pod_spec", kind: "message", T: Struct }, + { no: 3, name: "data_config", kind: "message", T: DataLoadingConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): K8sPod { + return new K8sPod().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): K8sPod { + return new K8sPod().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): K8sPod { + return new K8sPod().fromJsonString(jsonString, options); + } + + static equals(a: K8sPod | PlainMessage | undefined, b: K8sPod | PlainMessage | undefined): boolean { + return proto3.util.equals(K8sPod, a, b); + } +} + +/** + * Metadata for building a kubernetes object when a task is executed. + * + * @generated from message flyteidl.core.K8sObjectMetadata + */ +export class K8sObjectMetadata extends Message { + /** + * Optional labels to add to the pod definition. + * + * @generated from field: map labels = 1; + */ + labels: { [key: string]: string } = {}; + + /** + * Optional annotations to add to the pod definition. + * + * @generated from field: map annotations = 2; + */ + annotations: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.K8sObjectMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "labels", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 2, name: "annotations", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): K8sObjectMetadata { + return new K8sObjectMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): K8sObjectMetadata { + return new K8sObjectMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): K8sObjectMetadata { + return new K8sObjectMetadata().fromJsonString(jsonString, options); + } + + static equals(a: K8sObjectMetadata | PlainMessage | undefined, b: K8sObjectMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(K8sObjectMetadata, a, b); + } +} + +/** + * Sql represents a generic sql workload with a statement and dialect. + * + * @generated from message flyteidl.core.Sql + */ +export class Sql extends Message { + /** + * The actual query to run, the query can have templated parameters. + * We use Flyte's Golang templating format for Query templating. + * Refer to the templating documentation. + * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py + * For example, + * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet + * select * + * from my_table + * where ds = '{{ .Inputs.ds }}' + * + * @generated from field: string statement = 1; + */ + statement = ""; + + /** + * @generated from field: flyteidl.core.Sql.Dialect dialect = 2; + */ + dialect = Sql_Dialect.UNDEFINED; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Sql"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "statement", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dialect", kind: "enum", T: proto3.getEnumType(Sql_Dialect) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Sql { + return new Sql().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Sql { + return new Sql().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Sql { + return new Sql().fromJsonString(jsonString, options); + } + + static equals(a: Sql | PlainMessage | undefined, b: Sql | PlainMessage | undefined): boolean { + return proto3.util.equals(Sql, a, b); + } +} + +/** + * The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid + * expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. + * We support the following dialect: ansi, hive. + * + * @generated from enum flyteidl.core.Sql.Dialect + */ +export enum Sql_Dialect { + /** + * @generated from enum value: UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * @generated from enum value: ANSI = 1; + */ + ANSI = 1, + + /** + * @generated from enum value: HIVE = 2; + */ + HIVE = 2, + + /** + * @generated from enum value: OTHER = 3; + */ + OTHER = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(Sql_Dialect) +proto3.util.setEnumType(Sql_Dialect, "flyteidl.core.Sql.Dialect", [ + { no: 0, name: "UNDEFINED" }, + { no: 1, name: "ANSI" }, + { no: 2, name: "HIVE" }, + { no: 3, name: "OTHER" }, +]); + diff --git a/flyteidl/gen/pb-es/flyteidl/core/types_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/types_pb.ts new file mode 100644 index 0000000000..f311fa0692 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/types_pb.ts @@ -0,0 +1,875 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/types.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Struct } from "@bufbuild/protobuf"; + +/** + * Define a set of simple types. + * + * @generated from enum flyteidl.core.SimpleType + */ +export enum SimpleType { + /** + * @generated from enum value: NONE = 0; + */ + NONE = 0, + + /** + * @generated from enum value: INTEGER = 1; + */ + INTEGER = 1, + + /** + * @generated from enum value: FLOAT = 2; + */ + FLOAT = 2, + + /** + * @generated from enum value: STRING = 3; + */ + STRING = 3, + + /** + * @generated from enum value: BOOLEAN = 4; + */ + BOOLEAN = 4, + + /** + * @generated from enum value: DATETIME = 5; + */ + DATETIME = 5, + + /** + * @generated from enum value: DURATION = 6; + */ + DURATION = 6, + + /** + * @generated from enum value: BINARY = 7; + */ + BINARY = 7, + + /** + * @generated from enum value: ERROR = 8; + */ + ERROR = 8, + + /** + * @generated from enum value: STRUCT = 9; + */ + STRUCT = 9, +} +// Retrieve enum metadata with: proto3.getEnumType(SimpleType) +proto3.util.setEnumType(SimpleType, "flyteidl.core.SimpleType", [ + { no: 0, name: "NONE" }, + { no: 1, name: "INTEGER" }, + { no: 2, name: "FLOAT" }, + { no: 3, name: "STRING" }, + { no: 4, name: "BOOLEAN" }, + { no: 5, name: "DATETIME" }, + { no: 6, name: "DURATION" }, + { no: 7, name: "BINARY" }, + { no: 8, name: "ERROR" }, + { no: 9, name: "STRUCT" }, +]); + +/** + * Defines schema columns and types to strongly type-validate schemas interoperability. + * + * @generated from message flyteidl.core.SchemaType + */ +export class SchemaType extends Message { + /** + * A list of ordered columns this schema comprises of. + * + * @generated from field: repeated flyteidl.core.SchemaType.SchemaColumn columns = 3; + */ + columns: SchemaType_SchemaColumn[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.SchemaType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 3, name: "columns", kind: "message", T: SchemaType_SchemaColumn, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SchemaType { + return new SchemaType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SchemaType { + return new SchemaType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SchemaType { + return new SchemaType().fromJsonString(jsonString, options); + } + + static equals(a: SchemaType | PlainMessage | undefined, b: SchemaType | PlainMessage | undefined): boolean { + return proto3.util.equals(SchemaType, a, b); + } +} + +/** + * @generated from message flyteidl.core.SchemaType.SchemaColumn + */ +export class SchemaType_SchemaColumn extends Message { + /** + * A unique name -within the schema type- for the column + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * The column type. This allows a limited set of types currently. + * + * @generated from field: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; + */ + type = SchemaType_SchemaColumn_SchemaColumnType.INTEGER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.SchemaType.SchemaColumn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(SchemaType_SchemaColumn_SchemaColumnType) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SchemaType_SchemaColumn { + return new SchemaType_SchemaColumn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SchemaType_SchemaColumn { + return new SchemaType_SchemaColumn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SchemaType_SchemaColumn { + return new SchemaType_SchemaColumn().fromJsonString(jsonString, options); + } + + static equals(a: SchemaType_SchemaColumn | PlainMessage | undefined, b: SchemaType_SchemaColumn | PlainMessage | undefined): boolean { + return proto3.util.equals(SchemaType_SchemaColumn, a, b); + } +} + +/** + * @generated from enum flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + */ +export enum SchemaType_SchemaColumn_SchemaColumnType { + /** + * @generated from enum value: INTEGER = 0; + */ + INTEGER = 0, + + /** + * @generated from enum value: FLOAT = 1; + */ + FLOAT = 1, + + /** + * @generated from enum value: STRING = 2; + */ + STRING = 2, + + /** + * @generated from enum value: BOOLEAN = 3; + */ + BOOLEAN = 3, + + /** + * @generated from enum value: DATETIME = 4; + */ + DATETIME = 4, + + /** + * @generated from enum value: DURATION = 5; + */ + DURATION = 5, +} +// Retrieve enum metadata with: proto3.getEnumType(SchemaType_SchemaColumn_SchemaColumnType) +proto3.util.setEnumType(SchemaType_SchemaColumn_SchemaColumnType, "flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType", [ + { no: 0, name: "INTEGER" }, + { no: 1, name: "FLOAT" }, + { no: 2, name: "STRING" }, + { no: 3, name: "BOOLEAN" }, + { no: 4, name: "DATETIME" }, + { no: 5, name: "DURATION" }, +]); + +/** + * @generated from message flyteidl.core.StructuredDatasetType + */ +export class StructuredDatasetType extends Message { + /** + * A list of ordered columns this schema comprises of. + * + * @generated from field: repeated flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; + */ + columns: StructuredDatasetType_DatasetColumn[] = []; + + /** + * This is the storage format, the format of the bits at rest + * parquet, feather, csv, etc. + * For two types to be compatible, the format will need to be an exact match. + * + * @generated from field: string format = 2; + */ + format = ""; + + /** + * This is a string representing the type that the bytes in external_schema_bytes are formatted in. + * This is an optional field that will not be used for type checking. + * + * @generated from field: string external_schema_type = 3; + */ + externalSchemaType = ""; + + /** + * The serialized bytes of a third-party schema library like Arrow. + * This is an optional field that will not be used for type checking. + * + * @generated from field: bytes external_schema_bytes = 4; + */ + externalSchemaBytes = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.StructuredDatasetType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "columns", kind: "message", T: StructuredDatasetType_DatasetColumn, repeated: true }, + { no: 2, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "external_schema_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "external_schema_bytes", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDatasetType { + return new StructuredDatasetType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDatasetType { + return new StructuredDatasetType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StructuredDatasetType { + return new StructuredDatasetType().fromJsonString(jsonString, options); + } + + static equals(a: StructuredDatasetType | PlainMessage | undefined, b: StructuredDatasetType | PlainMessage | undefined): boolean { + return proto3.util.equals(StructuredDatasetType, a, b); + } +} + +/** + * @generated from message flyteidl.core.StructuredDatasetType.DatasetColumn + */ +export class StructuredDatasetType_DatasetColumn extends Message { + /** + * A unique name within the schema type for the column. + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * The column type. + * + * @generated from field: flyteidl.core.LiteralType literal_type = 2; + */ + literalType?: LiteralType; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.StructuredDatasetType.DatasetColumn"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "literal_type", kind: "message", T: LiteralType }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): StructuredDatasetType_DatasetColumn { + return new StructuredDatasetType_DatasetColumn().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): StructuredDatasetType_DatasetColumn { + return new StructuredDatasetType_DatasetColumn().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): StructuredDatasetType_DatasetColumn { + return new StructuredDatasetType_DatasetColumn().fromJsonString(jsonString, options); + } + + static equals(a: StructuredDatasetType_DatasetColumn | PlainMessage | undefined, b: StructuredDatasetType_DatasetColumn | PlainMessage | undefined): boolean { + return proto3.util.equals(StructuredDatasetType_DatasetColumn, a, b); + } +} + +/** + * Defines type behavior for blob objects + * + * @generated from message flyteidl.core.BlobType + */ +export class BlobType extends Message { + /** + * Format can be a free form string understood by SDK/UI etc like + * csv, parquet etc + * + * @generated from field: string format = 1; + */ + format = ""; + + /** + * @generated from field: flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; + */ + dimensionality = BlobType_BlobDimensionality.SINGLE; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BlobType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "format", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dimensionality", kind: "enum", T: proto3.getEnumType(BlobType_BlobDimensionality) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BlobType { + return new BlobType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BlobType { + return new BlobType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BlobType { + return new BlobType().fromJsonString(jsonString, options); + } + + static equals(a: BlobType | PlainMessage | undefined, b: BlobType | PlainMessage | undefined): boolean { + return proto3.util.equals(BlobType, a, b); + } +} + +/** + * @generated from enum flyteidl.core.BlobType.BlobDimensionality + */ +export enum BlobType_BlobDimensionality { + /** + * @generated from enum value: SINGLE = 0; + */ + SINGLE = 0, + + /** + * @generated from enum value: MULTIPART = 1; + */ + MULTIPART = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(BlobType_BlobDimensionality) +proto3.util.setEnumType(BlobType_BlobDimensionality, "flyteidl.core.BlobType.BlobDimensionality", [ + { no: 0, name: "SINGLE" }, + { no: 1, name: "MULTIPART" }, +]); + +/** + * Enables declaring enum types, with predefined string values + * For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish + * To provide no defaults, make the first value as undefined. + * + * @generated from message flyteidl.core.EnumType + */ +export class EnumType extends Message { + /** + * Predefined set of enum values. + * + * @generated from field: repeated string values = 1; + */ + values: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.EnumType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "values", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EnumType { + return new EnumType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EnumType { + return new EnumType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EnumType { + return new EnumType().fromJsonString(jsonString, options); + } + + static equals(a: EnumType | PlainMessage | undefined, b: EnumType | PlainMessage | undefined): boolean { + return proto3.util.equals(EnumType, a, b); + } +} + +/** + * Defines a tagged union type, also known as a variant (and formally as the sum type). + * + * A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag + * A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by + * storing the varaint's tag with the literal value and can be examined in runtime. + * + * Type S is typically written as + * S := Apple A | Banana B | Cantaloupe C | ... + * + * Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: + * Optional X := X | Null + * + * See also: https://en.wikipedia.org/wiki/Tagged_union + * + * @generated from message flyteidl.core.UnionType + */ +export class UnionType extends Message { + /** + * Predefined set of variants in union. + * + * @generated from field: repeated flyteidl.core.LiteralType variants = 1; + */ + variants: LiteralType[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.UnionType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "variants", kind: "message", T: LiteralType, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UnionType { + return new UnionType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UnionType { + return new UnionType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UnionType { + return new UnionType().fromJsonString(jsonString, options); + } + + static equals(a: UnionType | PlainMessage | undefined, b: UnionType | PlainMessage | undefined): boolean { + return proto3.util.equals(UnionType, a, b); + } +} + +/** + * Hints to improve type matching + * e.g. allows distinguishing output from custom type transformers + * even if the underlying IDL serialization matches. + * + * @generated from message flyteidl.core.TypeStructure + */ +export class TypeStructure extends Message { + /** + * Must exactly match for types to be castable + * + * @generated from field: string tag = 1; + */ + tag = ""; + + /** + * dataclass_type only exists for dataclasses. + * This is used to resolve the type of the fields of dataclass + * The key is the field name, and the value is the literal type of the field + * e.g. For dataclass Foo, with fields a, and a is a string + * Foo.a will be resolved as a literal type of string from dataclass_type + * + * @generated from field: map dataclass_type = 2; + */ + dataclassType: { [key: string]: LiteralType } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TypeStructure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dataclass_type", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "message", T: LiteralType} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TypeStructure { + return new TypeStructure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TypeStructure { + return new TypeStructure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TypeStructure { + return new TypeStructure().fromJsonString(jsonString, options); + } + + static equals(a: TypeStructure | PlainMessage | undefined, b: TypeStructure | PlainMessage | undefined): boolean { + return proto3.util.equals(TypeStructure, a, b); + } +} + +/** + * TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. + * + * @generated from message flyteidl.core.TypeAnnotation + */ +export class TypeAnnotation extends Message { + /** + * A arbitrary JSON payload to describe a type. + * + * @generated from field: google.protobuf.Struct annotations = 1; + */ + annotations?: Struct; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TypeAnnotation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "annotations", kind: "message", T: Struct }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TypeAnnotation { + return new TypeAnnotation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TypeAnnotation { + return new TypeAnnotation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TypeAnnotation { + return new TypeAnnotation().fromJsonString(jsonString, options); + } + + static equals(a: TypeAnnotation | PlainMessage | undefined, b: TypeAnnotation | PlainMessage | undefined): boolean { + return proto3.util.equals(TypeAnnotation, a, b); + } +} + +/** + * Defines a strong type to allow type checking between interfaces. + * + * @generated from message flyteidl.core.LiteralType + */ +export class LiteralType extends Message { + /** + * @generated from oneof flyteidl.core.LiteralType.type + */ + type: { + /** + * A simple type that can be compared one-to-one with another. + * + * @generated from field: flyteidl.core.SimpleType simple = 1; + */ + value: SimpleType; + case: "simple"; + } | { + /** + * A complex type that requires matching of inner fields. + * + * @generated from field: flyteidl.core.SchemaType schema = 2; + */ + value: SchemaType; + case: "schema"; + } | { + /** + * Defines the type of the value of a collection. Only homogeneous collections are allowed. + * + * @generated from field: flyteidl.core.LiteralType collection_type = 3; + */ + value: LiteralType; + case: "collectionType"; + } | { + /** + * Defines the type of the value of a map type. The type of the key is always a string. + * + * @generated from field: flyteidl.core.LiteralType map_value_type = 4; + */ + value: LiteralType; + case: "mapValueType"; + } | { + /** + * A blob might have specialized implementation details depending on associated metadata. + * + * @generated from field: flyteidl.core.BlobType blob = 5; + */ + value: BlobType; + case: "blob"; + } | { + /** + * Defines an enum with pre-defined string values. + * + * @generated from field: flyteidl.core.EnumType enum_type = 7; + */ + value: EnumType; + case: "enumType"; + } | { + /** + * Generalized schema support + * + * @generated from field: flyteidl.core.StructuredDatasetType structured_dataset_type = 8; + */ + value: StructuredDatasetType; + case: "structuredDatasetType"; + } | { + /** + * Defines an union type with pre-defined LiteralTypes. + * + * @generated from field: flyteidl.core.UnionType union_type = 10; + */ + value: UnionType; + case: "unionType"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + * consumers to identify special behavior or display extended information for the type. + * + * @generated from field: google.protobuf.Struct metadata = 6; + */ + metadata?: Struct; + + /** + * This field contains arbitrary data that might have special semantic + * meaning for the client but does not effect internal flyte behavior. + * + * @generated from field: flyteidl.core.TypeAnnotation annotation = 9; + */ + annotation?: TypeAnnotation; + + /** + * Hints to improve type matching. + * + * @generated from field: flyteidl.core.TypeStructure structure = 11; + */ + structure?: TypeStructure; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.LiteralType"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "simple", kind: "enum", T: proto3.getEnumType(SimpleType), oneof: "type" }, + { no: 2, name: "schema", kind: "message", T: SchemaType, oneof: "type" }, + { no: 3, name: "collection_type", kind: "message", T: LiteralType, oneof: "type" }, + { no: 4, name: "map_value_type", kind: "message", T: LiteralType, oneof: "type" }, + { no: 5, name: "blob", kind: "message", T: BlobType, oneof: "type" }, + { no: 7, name: "enum_type", kind: "message", T: EnumType, oneof: "type" }, + { no: 8, name: "structured_dataset_type", kind: "message", T: StructuredDatasetType, oneof: "type" }, + { no: 10, name: "union_type", kind: "message", T: UnionType, oneof: "type" }, + { no: 6, name: "metadata", kind: "message", T: Struct }, + { no: 9, name: "annotation", kind: "message", T: TypeAnnotation }, + { no: 11, name: "structure", kind: "message", T: TypeStructure }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LiteralType { + return new LiteralType().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LiteralType { + return new LiteralType().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LiteralType { + return new LiteralType().fromJsonString(jsonString, options); + } + + static equals(a: LiteralType | PlainMessage | undefined, b: LiteralType | PlainMessage | undefined): boolean { + return proto3.util.equals(LiteralType, a, b); + } +} + +/** + * A reference to an output produced by a node. The type can be retrieved -and validated- from + * the underlying interface of the node. + * + * @generated from message flyteidl.core.OutputReference + */ +export class OutputReference extends Message { + /** + * Node id must exist at the graph layer. + * + * @generated from field: string node_id = 1; + */ + nodeId = ""; + + /** + * Variable name must refer to an output variable for the node. + * + * @generated from field: string var = 2; + */ + var = ""; + + /** + * @generated from field: repeated flyteidl.core.PromiseAttribute attr_path = 3; + */ + attrPath: PromiseAttribute[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.OutputReference"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "attr_path", kind: "message", T: PromiseAttribute, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OutputReference { + return new OutputReference().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OutputReference { + return new OutputReference().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OutputReference { + return new OutputReference().fromJsonString(jsonString, options); + } + + static equals(a: OutputReference | PlainMessage | undefined, b: OutputReference | PlainMessage | undefined): boolean { + return proto3.util.equals(OutputReference, a, b); + } +} + +/** + * @generated from message flyteidl.core.PromiseAttribute + */ +export class PromiseAttribute extends Message { + /** + * @generated from oneof flyteidl.core.PromiseAttribute.value + */ + value: { + /** + * @generated from field: string string_value = 1; + */ + value: string; + case: "stringValue"; + } | { + /** + * @generated from field: int32 int_value = 2; + */ + value: number; + case: "intValue"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.PromiseAttribute"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "string_value", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" }, + { no: 2, name: "int_value", kind: "scalar", T: 5 /* ScalarType.INT32 */, oneof: "value" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PromiseAttribute { + return new PromiseAttribute().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PromiseAttribute { + return new PromiseAttribute().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PromiseAttribute { + return new PromiseAttribute().fromJsonString(jsonString, options); + } + + static equals(a: PromiseAttribute | PlainMessage | undefined, b: PromiseAttribute | PlainMessage | undefined): boolean { + return proto3.util.equals(PromiseAttribute, a, b); + } +} + +/** + * Represents an error thrown from a node. + * + * @generated from message flyteidl.core.Error + */ +export class Error extends Message { + /** + * The node id that threw the error. + * + * @generated from field: string failed_node_id = 1; + */ + failedNodeId = ""; + + /** + * Error message thrown. + * + * @generated from field: string message = 2; + */ + message = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Error"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "failed_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Error { + return new Error().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Error { + return new Error().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Error { + return new Error().fromJsonString(jsonString, options); + } + + static equals(a: Error | PlainMessage | undefined, b: Error | PlainMessage | undefined): boolean { + return proto3.util.equals(Error, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts new file mode 100644 index 0000000000..7a550181f0 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/workflow_closure_pb.ts @@ -0,0 +1,60 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/workflow_closure.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { WorkflowTemplate } from "./workflow_pb.js"; +import { TaskTemplate } from "./tasks_pb.js"; + +/** + * Defines an enclosed package of workflow and tasks it references. + * + * @generated from message flyteidl.core.WorkflowClosure + */ +export class WorkflowClosure extends Message { + /** + * required. Workflow template. + * + * @generated from field: flyteidl.core.WorkflowTemplate workflow = 1; + */ + workflow?: WorkflowTemplate; + + /** + * optional. A collection of tasks referenced by the workflow. Only needed if the workflow + * references tasks. + * + * @generated from field: repeated flyteidl.core.TaskTemplate tasks = 2; + */ + tasks: TaskTemplate[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowClosure"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workflow", kind: "message", T: WorkflowTemplate }, + { no: 2, name: "tasks", kind: "message", T: TaskTemplate, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowClosure { + return new WorkflowClosure().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowClosure { + return new WorkflowClosure().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowClosure { + return new WorkflowClosure().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowClosure | PlainMessage | undefined, b: WorkflowClosure | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowClosure, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts new file mode 100644 index 0000000000..644f792e63 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/core/workflow_pb.ts @@ -0,0 +1,1209 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/core/workflow.proto (package flyteidl.core, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3 } from "@bufbuild/protobuf"; +import { BooleanExpression } from "./condition_pb.js"; +import { Error, LiteralType } from "./types_pb.js"; +import { Identifier } from "./identifier_pb.js"; +import { Binding, LiteralMap, RetryStrategy } from "./literals_pb.js"; +import { QualityOfService } from "./execution_pb.js"; +import { TypedInterface } from "./interface_pb.js"; +import { ExtendedResources, Resources } from "./tasks_pb.js"; + +/** + * Defines a condition and the execution unit that should be executed if the condition is satisfied. + * + * @generated from message flyteidl.core.IfBlock + */ +export class IfBlock extends Message { + /** + * @generated from field: flyteidl.core.BooleanExpression condition = 1; + */ + condition?: BooleanExpression; + + /** + * @generated from field: flyteidl.core.Node then_node = 2; + */ + thenNode?: Node; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.IfBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "condition", kind: "message", T: BooleanExpression }, + { no: 2, name: "then_node", kind: "message", T: Node }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IfBlock { + return new IfBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IfBlock { + return new IfBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IfBlock { + return new IfBlock().fromJsonString(jsonString, options); + } + + static equals(a: IfBlock | PlainMessage | undefined, b: IfBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(IfBlock, a, b); + } +} + +/** + * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. + * If no conditions were satisfied, the else_node or the error will execute. + * + * @generated from message flyteidl.core.IfElseBlock + */ +export class IfElseBlock extends Message { + /** + * +required. First condition to evaluate. + * + * @generated from field: flyteidl.core.IfBlock case = 1; + */ + case?: IfBlock; + + /** + * +optional. Additional branches to evaluate. + * + * @generated from field: repeated flyteidl.core.IfBlock other = 2; + */ + other: IfBlock[] = []; + + /** + * +required. + * + * @generated from oneof flyteidl.core.IfElseBlock.default + */ + default: { + /** + * The node to execute in case none of the branches were taken. + * + * @generated from field: flyteidl.core.Node else_node = 3; + */ + value: Node; + case: "elseNode"; + } | { + /** + * An error to throw in case none of the branches were taken. + * + * @generated from field: flyteidl.core.Error error = 4; + */ + value: Error; + case: "error"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.IfElseBlock"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "case", kind: "message", T: IfBlock }, + { no: 2, name: "other", kind: "message", T: IfBlock, repeated: true }, + { no: 3, name: "else_node", kind: "message", T: Node, oneof: "default" }, + { no: 4, name: "error", kind: "message", T: Error, oneof: "default" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): IfElseBlock { + return new IfElseBlock().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): IfElseBlock { + return new IfElseBlock().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): IfElseBlock { + return new IfElseBlock().fromJsonString(jsonString, options); + } + + static equals(a: IfElseBlock | PlainMessage | undefined, b: IfElseBlock | PlainMessage | undefined): boolean { + return proto3.util.equals(IfElseBlock, a, b); + } +} + +/** + * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at + * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). + * + * @generated from message flyteidl.core.BranchNode + */ +export class BranchNode extends Message { + /** + * +required + * + * @generated from field: flyteidl.core.IfElseBlock if_else = 1; + */ + ifElse?: IfElseBlock; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.BranchNode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "if_else", kind: "message", T: IfElseBlock }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): BranchNode { + return new BranchNode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): BranchNode { + return new BranchNode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): BranchNode { + return new BranchNode().fromJsonString(jsonString, options); + } + + static equals(a: BranchNode | PlainMessage | undefined, b: BranchNode | PlainMessage | undefined): boolean { + return proto3.util.equals(BranchNode, a, b); + } +} + +/** + * Refers to the task that the Node is to execute. + * + * @generated from message flyteidl.core.TaskNode + */ +export class TaskNode extends Message { + /** + * @generated from oneof flyteidl.core.TaskNode.reference + */ + reference: { + /** + * A globally unique identifier for the task. + * + * @generated from field: flyteidl.core.Identifier reference_id = 1; + */ + value: Identifier; + case: "referenceId"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Optional overrides applied at task execution time. + * + * @generated from field: flyteidl.core.TaskNodeOverrides overrides = 2; + */ + overrides?: TaskNodeOverrides; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskNode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reference_id", kind: "message", T: Identifier, oneof: "reference" }, + { no: 2, name: "overrides", kind: "message", T: TaskNodeOverrides }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskNode { + return new TaskNode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskNode { + return new TaskNode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskNode { + return new TaskNode().fromJsonString(jsonString, options); + } + + static equals(a: TaskNode | PlainMessage | undefined, b: TaskNode | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskNode, a, b); + } +} + +/** + * Refers to a the workflow the node is to execute. + * + * @generated from message flyteidl.core.WorkflowNode + */ +export class WorkflowNode extends Message { + /** + * @generated from oneof flyteidl.core.WorkflowNode.reference + */ + reference: { + /** + * A globally unique identifier for the launch plan. + * + * @generated from field: flyteidl.core.Identifier launchplan_ref = 1; + */ + value: Identifier; + case: "launchplanRef"; + } | { + /** + * Reference to a subworkflow, that should be defined with the compiler context + * + * @generated from field: flyteidl.core.Identifier sub_workflow_ref = 2; + */ + value: Identifier; + case: "subWorkflowRef"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowNode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "launchplan_ref", kind: "message", T: Identifier, oneof: "reference" }, + { no: 2, name: "sub_workflow_ref", kind: "message", T: Identifier, oneof: "reference" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowNode { + return new WorkflowNode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowNode { + return new WorkflowNode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowNode { + return new WorkflowNode().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowNode | PlainMessage | undefined, b: WorkflowNode | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowNode, a, b); + } +} + +/** + * ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean + * signal with the provided signal_id. + * + * @generated from message flyteidl.core.ApproveCondition + */ +export class ApproveCondition extends Message { + /** + * A unique identifier for the requested boolean signal. + * + * @generated from field: string signal_id = 1; + */ + signalId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ApproveCondition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ApproveCondition { + return new ApproveCondition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ApproveCondition { + return new ApproveCondition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ApproveCondition { + return new ApproveCondition().fromJsonString(jsonString, options); + } + + static equals(a: ApproveCondition | PlainMessage | undefined, b: ApproveCondition | PlainMessage | undefined): boolean { + return proto3.util.equals(ApproveCondition, a, b); + } +} + +/** + * SignalCondition represents a dependency on an signal. + * + * @generated from message flyteidl.core.SignalCondition + */ +export class SignalCondition extends Message { + /** + * A unique identifier for the requested signal. + * + * @generated from field: string signal_id = 1; + */ + signalId = ""; + + /** + * A type denoting the required value type for this signal. + * + * @generated from field: flyteidl.core.LiteralType type = 2; + */ + type?: LiteralType; + + /** + * The variable name for the signal value in this nodes outputs. + * + * @generated from field: string output_variable_name = 3; + */ + outputVariableName = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.SignalCondition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signal_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "type", kind: "message", T: LiteralType }, + { no: 3, name: "output_variable_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SignalCondition { + return new SignalCondition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SignalCondition { + return new SignalCondition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SignalCondition { + return new SignalCondition().fromJsonString(jsonString, options); + } + + static equals(a: SignalCondition | PlainMessage | undefined, b: SignalCondition | PlainMessage | undefined): boolean { + return proto3.util.equals(SignalCondition, a, b); + } +} + +/** + * SleepCondition represents a dependency on waiting for the specified duration. + * + * @generated from message flyteidl.core.SleepCondition + */ +export class SleepCondition extends Message { + /** + * The overall duration for this sleep. + * + * @generated from field: google.protobuf.Duration duration = 1; + */ + duration?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.SleepCondition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "duration", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SleepCondition { + return new SleepCondition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SleepCondition { + return new SleepCondition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SleepCondition { + return new SleepCondition().fromJsonString(jsonString, options); + } + + static equals(a: SleepCondition | PlainMessage | undefined, b: SleepCondition | PlainMessage | undefined): boolean { + return proto3.util.equals(SleepCondition, a, b); + } +} + +/** + * GateNode refers to the condition that is required for the gate to successfully complete. + * + * @generated from message flyteidl.core.GateNode + */ +export class GateNode extends Message { + /** + * @generated from oneof flyteidl.core.GateNode.condition + */ + condition: { + /** + * ApproveCondition represents a dependency on an external approval provided by a boolean signal. + * + * @generated from field: flyteidl.core.ApproveCondition approve = 1; + */ + value: ApproveCondition; + case: "approve"; + } | { + /** + * SignalCondition represents a dependency on an signal. + * + * @generated from field: flyteidl.core.SignalCondition signal = 2; + */ + value: SignalCondition; + case: "signal"; + } | { + /** + * SleepCondition represents a dependency on waiting for the specified duration. + * + * @generated from field: flyteidl.core.SleepCondition sleep = 3; + */ + value: SleepCondition; + case: "sleep"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.GateNode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "approve", kind: "message", T: ApproveCondition, oneof: "condition" }, + { no: 2, name: "signal", kind: "message", T: SignalCondition, oneof: "condition" }, + { no: 3, name: "sleep", kind: "message", T: SleepCondition, oneof: "condition" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GateNode { + return new GateNode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GateNode { + return new GateNode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GateNode { + return new GateNode().fromJsonString(jsonString, options); + } + + static equals(a: GateNode | PlainMessage | undefined, b: GateNode | PlainMessage | undefined): boolean { + return proto3.util.equals(GateNode, a, b); + } +} + +/** + * ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input + * values. An ArrayNode can be executed with configurable parallelism (separate from the parent + * workflow) and can be configured to succeed when a certain number of sub-nodes succeed. + * + * @generated from message flyteidl.core.ArrayNode + */ +export class ArrayNode extends Message { + /** + * node is the sub-node that will be executed for each element in the array. + * + * @generated from field: flyteidl.core.Node node = 1; + */ + node?: Node; + + /** + * parallelism defines the minimum number of instances to bring up concurrently at any given + * point. Note that this is an optimistic restriction and that, due to network partitioning or + * other failures, the actual number of currently running instances might be more. This has to + * be a positive number if assigned. Default value is size. + * + * @generated from field: uint32 parallelism = 2; + */ + parallelism = 0; + + /** + * @generated from oneof flyteidl.core.ArrayNode.success_criteria + */ + successCriteria: { + /** + * min_successes is an absolute number of the minimum number of successful completions of + * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful + * and outputs will be computed. This has to be a non-negative number if assigned. Default + * value is size (if specified). + * + * @generated from field: uint32 min_successes = 3; + */ + value: number; + case: "minSuccesses"; + } | { + /** + * If the array job size is not known beforehand, the min_success_ratio can instead be used + * to determine when an ArrayNode can be marked successful. + * + * @generated from field: float min_success_ratio = 4; + */ + value: number; + case: "minSuccessRatio"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.ArrayNode"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "node", kind: "message", T: Node }, + { no: 2, name: "parallelism", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "min_successes", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "success_criteria" }, + { no: 4, name: "min_success_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "success_criteria" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArrayNode { + return new ArrayNode().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArrayNode { + return new ArrayNode().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArrayNode { + return new ArrayNode().fromJsonString(jsonString, options); + } + + static equals(a: ArrayNode | PlainMessage | undefined, b: ArrayNode | PlainMessage | undefined): boolean { + return proto3.util.equals(ArrayNode, a, b); + } +} + +/** + * Defines extra information about the Node. + * + * @generated from message flyteidl.core.NodeMetadata + */ +export class NodeMetadata extends Message { + /** + * A friendly name for the Node + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * The overall timeout of a task. + * + * @generated from field: google.protobuf.Duration timeout = 4; + */ + timeout?: Duration; + + /** + * Number of retries per task. + * + * @generated from field: flyteidl.core.RetryStrategy retries = 5; + */ + retries?: RetryStrategy; + + /** + * Identify whether node is interruptible + * + * @generated from oneof flyteidl.core.NodeMetadata.interruptible_value + */ + interruptibleValue: { + /** + * @generated from field: bool interruptible = 6; + */ + value: boolean; + case: "interruptible"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Identify whether a node should have it's outputs cached. + * + * @generated from oneof flyteidl.core.NodeMetadata.cacheable_value + */ + cacheableValue: { + /** + * @generated from field: bool cacheable = 7; + */ + value: boolean; + case: "cacheable"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * The version of the cache to use. + * + * @generated from oneof flyteidl.core.NodeMetadata.cache_version_value + */ + cacheVersionValue: { + /** + * @generated from field: string cache_version = 8; + */ + value: string; + case: "cacheVersion"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Identify whether caching operations involving this node should be serialized. + * + * @generated from oneof flyteidl.core.NodeMetadata.cache_serializable_value + */ + cacheSerializableValue: { + /** + * @generated from field: bool cache_serializable = 9; + */ + value: boolean; + case: "cacheSerializable"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.NodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "timeout", kind: "message", T: Duration }, + { no: 5, name: "retries", kind: "message", T: RetryStrategy }, + { no: 6, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "interruptible_value" }, + { no: 7, name: "cacheable", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "cacheable_value" }, + { no: 8, name: "cache_version", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "cache_version_value" }, + { no: 9, name: "cache_serializable", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "cache_serializable_value" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeMetadata { + return new NodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeMetadata { + return new NodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeMetadata { + return new NodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: NodeMetadata | PlainMessage | undefined, b: NodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeMetadata, a, b); + } +} + +/** + * Links a variable to an alias. + * + * @generated from message flyteidl.core.Alias + */ +export class Alias extends Message { + /** + * Must match one of the output variable names on a node. + * + * @generated from field: string var = 1; + */ + var = ""; + + /** + * A workflow-level unique alias that downstream nodes can refer to in their input. + * + * @generated from field: string alias = 2; + */ + alias = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Alias"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "var", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "alias", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Alias { + return new Alias().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Alias { + return new Alias().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Alias { + return new Alias().fromJsonString(jsonString, options); + } + + static equals(a: Alias | PlainMessage | undefined, b: Alias | PlainMessage | undefined): boolean { + return proto3.util.equals(Alias, a, b); + } +} + +/** + * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch + * node. + * + * @generated from message flyteidl.core.Node + */ +export class Node extends Message { + /** + * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved + * node ids that cannot be used by other nodes. + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * Extra metadata about the node. + * + * @generated from field: flyteidl.core.NodeMetadata metadata = 2; + */ + metadata?: NodeMetadata; + + /** + * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + * must be fulfilled. + * + * @generated from field: repeated flyteidl.core.Binding inputs = 3; + */ + inputs: Binding[] = []; + + /** + * +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its + * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs + * field. + * + * @generated from field: repeated string upstream_node_ids = 4; + */ + upstreamNodeIds: string[] = []; + + /** + * +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + * nodes outputs using the alias if one's specified. + * + * @generated from field: repeated flyteidl.core.Alias output_aliases = 5; + */ + outputAliases: Alias[] = []; + + /** + * Information about the target to execute in this node. + * + * @generated from oneof flyteidl.core.Node.target + */ + target: { + /** + * Information about the Task to execute in this node. + * + * @generated from field: flyteidl.core.TaskNode task_node = 6; + */ + value: TaskNode; + case: "taskNode"; + } | { + /** + * Information about the Workflow to execute in this mode. + * + * @generated from field: flyteidl.core.WorkflowNode workflow_node = 7; + */ + value: WorkflowNode; + case: "workflowNode"; + } | { + /** + * Information about the branch node to evaluate in this node. + * + * @generated from field: flyteidl.core.BranchNode branch_node = 8; + */ + value: BranchNode; + case: "branchNode"; + } | { + /** + * Information about the condition to evaluate in this node. + * + * @generated from field: flyteidl.core.GateNode gate_node = 9; + */ + value: GateNode; + case: "gateNode"; + } | { + /** + * Information about the sub-node executions for each value in the list of this nodes + * inputs values. + * + * @generated from field: flyteidl.core.ArrayNode array_node = 10; + */ + value: ArrayNode; + case: "arrayNode"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.Node"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "metadata", kind: "message", T: NodeMetadata }, + { no: 3, name: "inputs", kind: "message", T: Binding, repeated: true }, + { no: 4, name: "upstream_node_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "output_aliases", kind: "message", T: Alias, repeated: true }, + { no: 6, name: "task_node", kind: "message", T: TaskNode, oneof: "target" }, + { no: 7, name: "workflow_node", kind: "message", T: WorkflowNode, oneof: "target" }, + { no: 8, name: "branch_node", kind: "message", T: BranchNode, oneof: "target" }, + { no: 9, name: "gate_node", kind: "message", T: GateNode, oneof: "target" }, + { no: 10, name: "array_node", kind: "message", T: ArrayNode, oneof: "target" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Node { + return new Node().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Node { + return new Node().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Node { + return new Node().fromJsonString(jsonString, options); + } + + static equals(a: Node | PlainMessage | undefined, b: Node | PlainMessage | undefined): boolean { + return proto3.util.equals(Node, a, b); + } +} + +/** + * This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not + * percolate down to child entities (like tasks) launched by the workflow. + * + * @generated from message flyteidl.core.WorkflowMetadata + */ +export class WorkflowMetadata extends Message { + /** + * Indicates the runtime priority of workflow executions. + * + * @generated from field: flyteidl.core.QualityOfService quality_of_service = 1; + */ + qualityOfService?: QualityOfService; + + /** + * Defines how the system should behave when a failure is detected in the workflow execution. + * + * @generated from field: flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; + */ + onFailure = WorkflowMetadata_OnFailurePolicy.FAIL_IMMEDIATELY; + + /** + * Arbitrary tags that allow users and the platform to store small but arbitrary labels + * + * @generated from field: map tags = 3; + */ + tags: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "quality_of_service", kind: "message", T: QualityOfService }, + { no: 2, name: "on_failure", kind: "enum", T: proto3.getEnumType(WorkflowMetadata_OnFailurePolicy) }, + { no: 3, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowMetadata { + return new WorkflowMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowMetadata { + return new WorkflowMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowMetadata { + return new WorkflowMetadata().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowMetadata | PlainMessage | undefined, b: WorkflowMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowMetadata, a, b); + } +} + +/** + * Failure Handling Strategy + * + * @generated from enum flyteidl.core.WorkflowMetadata.OnFailurePolicy + */ +export enum WorkflowMetadata_OnFailurePolicy { + /** + * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically + * abort all currently running nodes and clean up resources before finally marking the workflow executions as + * failed. + * + * @generated from enum value: FAIL_IMMEDIATELY = 0; + */ + FAIL_IMMEDIATELY = 0, + + /** + * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will + * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. + * Other nodes that will be executed to completion before cleaning up resources and marking the workflow + * execution as failed. + * + * @generated from enum value: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; + */ + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(WorkflowMetadata_OnFailurePolicy) +proto3.util.setEnumType(WorkflowMetadata_OnFailurePolicy, "flyteidl.core.WorkflowMetadata.OnFailurePolicy", [ + { no: 0, name: "FAIL_IMMEDIATELY" }, + { no: 1, name: "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" }, +]); + +/** + * The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to + * a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it + * is only relevant when a task executes. The settings here are the defaults that are passed to all nodes + * unless explicitly overridden at the node layer. + * If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be + * added to both this object and the WorkflowMetadata object above. + * + * @generated from message flyteidl.core.WorkflowMetadataDefaults + */ +export class WorkflowMetadataDefaults extends Message { + /** + * Whether child nodes of the workflow are interruptible. + * + * @generated from field: bool interruptible = 1; + */ + interruptible = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowMetadataDefaults"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "interruptible", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowMetadataDefaults { + return new WorkflowMetadataDefaults().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowMetadataDefaults { + return new WorkflowMetadataDefaults().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowMetadataDefaults { + return new WorkflowMetadataDefaults().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowMetadataDefaults | PlainMessage | undefined, b: WorkflowMetadataDefaults | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowMetadataDefaults, a, b); + } +} + +/** + * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, + * directed acyclic graph. + * + * @generated from message flyteidl.core.WorkflowTemplate + */ +export class WorkflowTemplate extends Message { + /** + * A globally unique identifier for the workflow. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * Extra metadata about the workflow. + * + * @generated from field: flyteidl.core.WorkflowMetadata metadata = 2; + */ + metadata?: WorkflowMetadata; + + /** + * Defines a strongly typed interface for the Workflow. This can include some optional parameters. + * + * @generated from field: flyteidl.core.TypedInterface interface = 3; + */ + interface?: TypedInterface; + + /** + * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + * + * @generated from field: repeated flyteidl.core.Node nodes = 4; + */ + nodes: Node[] = []; + + /** + * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + * bind final outputs. + * Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + * outputs from the output of a task. + * + * @generated from field: repeated flyteidl.core.Binding outputs = 5; + */ + outputs: Binding[] = []; + + /** + * +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + * The interface of this node must match the Workflow interface with an additional input named 'error' of type + * pb.lyft.flyte.core.Error. + * + * @generated from field: flyteidl.core.Node failure_node = 6; + */ + failureNode?: Node; + + /** + * workflow defaults + * + * @generated from field: flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; + */ + metadataDefaults?: WorkflowMetadataDefaults; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.WorkflowTemplate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "metadata", kind: "message", T: WorkflowMetadata }, + { no: 3, name: "interface", kind: "message", T: TypedInterface }, + { no: 4, name: "nodes", kind: "message", T: Node, repeated: true }, + { no: 5, name: "outputs", kind: "message", T: Binding, repeated: true }, + { no: 6, name: "failure_node", kind: "message", T: Node }, + { no: 7, name: "metadata_defaults", kind: "message", T: WorkflowMetadataDefaults }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowTemplate { + return new WorkflowTemplate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowTemplate { + return new WorkflowTemplate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowTemplate { + return new WorkflowTemplate().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowTemplate | PlainMessage | undefined, b: WorkflowTemplate | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowTemplate, a, b); + } +} + +/** + * Optional task node overrides that will be applied at task execution time. + * + * @generated from message flyteidl.core.TaskNodeOverrides + */ +export class TaskNodeOverrides extends Message { + /** + * A customizable interface to convey resources requested for a task container. + * + * @generated from field: flyteidl.core.Resources resources = 1; + */ + resources?: Resources; + + /** + * Overrides for all non-standard resources, not captured by + * v1.ResourceRequirements, to allocate to a task. + * + * @generated from field: flyteidl.core.ExtendedResources extended_resources = 2; + */ + extendedResources?: ExtendedResources; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.TaskNodeOverrides"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "resources", kind: "message", T: Resources }, + { no: 2, name: "extended_resources", kind: "message", T: ExtendedResources }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskNodeOverrides { + return new TaskNodeOverrides().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskNodeOverrides { + return new TaskNodeOverrides().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskNodeOverrides { + return new TaskNodeOverrides().fromJsonString(jsonString, options); + } + + static equals(a: TaskNodeOverrides | PlainMessage | undefined, b: TaskNodeOverrides | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskNodeOverrides, a, b); + } +} + +/** + * A structure that uniquely identifies a launch plan in the system. + * + * @generated from message flyteidl.core.LaunchPlanTemplate + */ +export class LaunchPlanTemplate extends Message { + /** + * A globally unique identifier for the launch plan. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * The input and output interface for the launch plan + * + * @generated from field: flyteidl.core.TypedInterface interface = 2; + */ + interface?: TypedInterface; + + /** + * A collection of input literals that are fixed for the launch plan + * + * @generated from field: flyteidl.core.LiteralMap fixed_inputs = 3; + */ + fixedInputs?: LiteralMap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.core.LaunchPlanTemplate"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "interface", kind: "message", T: TypedInterface }, + { no: 3, name: "fixed_inputs", kind: "message", T: LiteralMap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LaunchPlanTemplate { + return new LaunchPlanTemplate().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LaunchPlanTemplate { + return new LaunchPlanTemplate().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LaunchPlanTemplate { + return new LaunchPlanTemplate().fromJsonString(jsonString, options); + } + + static equals(a: LaunchPlanTemplate | PlainMessage | undefined, b: LaunchPlanTemplate | PlainMessage | undefined): boolean { + return proto3.util.equals(LaunchPlanTemplate, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts b/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts new file mode 100644 index 0000000000..932436b45d --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_connect.ts @@ -0,0 +1,145 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/datacatalog/datacatalog.proto (package datacatalog, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { AddTagRequest, AddTagResponse, CreateArtifactRequest, CreateArtifactResponse, CreateDatasetRequest, CreateDatasetResponse, GetArtifactRequest, GetArtifactResponse, GetDatasetRequest, GetDatasetResponse, GetOrExtendReservationRequest, GetOrExtendReservationResponse, ListArtifactsRequest, ListArtifactsResponse, ListDatasetsRequest, ListDatasetsResponse, ReleaseReservationRequest, ReleaseReservationResponse, UpdateArtifactRequest, UpdateArtifactResponse } from "./datacatalog_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * + * Data Catalog service definition + * Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + * Artifacts are associated with a Dataset, and can be tagged for retrieval. + * + * @generated from service datacatalog.DataCatalog + */ +export const DataCatalog = { + typeName: "datacatalog.DataCatalog", + methods: { + /** + * Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + * Each dataset can have one or more artifacts + * + * @generated from rpc datacatalog.DataCatalog.CreateDataset + */ + createDataset: { + name: "CreateDataset", + I: CreateDatasetRequest, + O: CreateDatasetResponse, + kind: MethodKind.Unary, + }, + /** + * Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + * + * @generated from rpc datacatalog.DataCatalog.GetDataset + */ + getDataset: { + name: "GetDataset", + I: GetDatasetRequest, + O: GetDatasetResponse, + kind: MethodKind.Unary, + }, + /** + * Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + * files or data values + * + * @generated from rpc datacatalog.DataCatalog.CreateArtifact + */ + createArtifact: { + name: "CreateArtifact", + I: CreateArtifactRequest, + O: CreateArtifactResponse, + kind: MethodKind.Unary, + }, + /** + * Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + * + * @generated from rpc datacatalog.DataCatalog.GetArtifact + */ + getArtifact: { + name: "GetArtifact", + I: GetArtifactRequest, + O: GetArtifactResponse, + kind: MethodKind.Unary, + }, + /** + * Associate a tag with an artifact. Tags are unique within a Dataset. + * + * @generated from rpc datacatalog.DataCatalog.AddTag + */ + addTag: { + name: "AddTag", + I: AddTagRequest, + O: AddTagResponse, + kind: MethodKind.Unary, + }, + /** + * Return a paginated list of artifacts + * + * @generated from rpc datacatalog.DataCatalog.ListArtifacts + */ + listArtifacts: { + name: "ListArtifacts", + I: ListArtifactsRequest, + O: ListArtifactsResponse, + kind: MethodKind.Unary, + }, + /** + * Return a paginated list of datasets + * + * @generated from rpc datacatalog.DataCatalog.ListDatasets + */ + listDatasets: { + name: "ListDatasets", + I: ListDatasetsRequest, + O: ListDatasetsResponse, + kind: MethodKind.Unary, + }, + /** + * Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + * + * @generated from rpc datacatalog.DataCatalog.UpdateArtifact + */ + updateArtifact: { + name: "UpdateArtifact", + I: UpdateArtifactRequest, + O: UpdateArtifactResponse, + kind: MethodKind.Unary, + }, + /** + * Attempts to get or extend a reservation for the corresponding artifact. If one already exists + * (ie. another entity owns the reservation) then that reservation is retrieved. + * Once you acquire a reservation, you need to periodically extend the reservation with an + * identical call. If the reservation is not extended before the defined expiration, it may be + * acquired by another task. + * Note: We may have multiple concurrent tasks with the same signature and the same input that + * try to populate the same artifact at the same time. Thus with reservation, only one task can + * run at a time, until the reservation expires. + * Note: If task A does not extend the reservation in time and the reservation expires, another + * task B may take over the reservation, resulting in two tasks A and B running in parallel. So + * a third task C may get the Artifact from A or B, whichever writes last. + * + * @generated from rpc datacatalog.DataCatalog.GetOrExtendReservation + */ + getOrExtendReservation: { + name: "GetOrExtendReservation", + I: GetOrExtendReservationRequest, + O: GetOrExtendReservationResponse, + kind: MethodKind.Unary, + }, + /** + * Release the reservation when the task holding the spot fails so that the other tasks + * can grab the spot. + * + * @generated from rpc datacatalog.DataCatalog.ReleaseReservation + */ + releaseReservation: { + name: "ReleaseReservation", + I: ReleaseReservationRequest, + O: ReleaseReservationResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts b/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts new file mode 100644 index 0000000000..4e1cb2ed41 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/datacatalog/datacatalog_pb.ts @@ -0,0 +1,1940 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/datacatalog/datacatalog.proto (package datacatalog, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { Literal } from "../core/literals_pb.js"; + +/** + * + * Request message for creating a Dataset. + * + * @generated from message datacatalog.CreateDatasetRequest + */ +export class CreateDatasetRequest extends Message { + /** + * @generated from field: datacatalog.Dataset dataset = 1; + */ + dataset?: Dataset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.CreateDatasetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset", kind: "message", T: Dataset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDatasetRequest { + return new CreateDatasetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDatasetRequest { + return new CreateDatasetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDatasetRequest { + return new CreateDatasetRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateDatasetRequest | PlainMessage | undefined, b: CreateDatasetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDatasetRequest, a, b); + } +} + +/** + * + * Response message for creating a Dataset + * + * @generated from message datacatalog.CreateDatasetResponse + */ +export class CreateDatasetResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.CreateDatasetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDatasetResponse { + return new CreateDatasetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDatasetResponse { + return new CreateDatasetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDatasetResponse { + return new CreateDatasetResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateDatasetResponse | PlainMessage | undefined, b: CreateDatasetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDatasetResponse, a, b); + } +} + +/** + * + * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier + * which is a combination of several fields. + * + * @generated from message datacatalog.GetDatasetRequest + */ +export class GetDatasetRequest extends Message { + /** + * @generated from field: datacatalog.DatasetID dataset = 1; + */ + dataset?: DatasetID; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.GetDatasetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset", kind: "message", T: DatasetID }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDatasetRequest { + return new GetDatasetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDatasetRequest { + return new GetDatasetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDatasetRequest { + return new GetDatasetRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetDatasetRequest | PlainMessage | undefined, b: GetDatasetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDatasetRequest, a, b); + } +} + +/** + * + * Response message for retrieving a Dataset. The response will include the metadata for the + * Dataset. + * + * @generated from message datacatalog.GetDatasetResponse + */ +export class GetDatasetResponse extends Message { + /** + * @generated from field: datacatalog.Dataset dataset = 1; + */ + dataset?: Dataset; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.GetDatasetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset", kind: "message", T: Dataset }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDatasetResponse { + return new GetDatasetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDatasetResponse { + return new GetDatasetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDatasetResponse { + return new GetDatasetResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetDatasetResponse | PlainMessage | undefined, b: GetDatasetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDatasetResponse, a, b); + } +} + +/** + * + * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that + * can be one of artifact_id or tag. The result returned will include the artifact data and metadata + * associated with the artifact. + * + * @generated from message datacatalog.GetArtifactRequest + */ +export class GetArtifactRequest extends Message { + /** + * @generated from field: datacatalog.DatasetID dataset = 1; + */ + dataset?: DatasetID; + + /** + * @generated from oneof datacatalog.GetArtifactRequest.query_handle + */ + queryHandle: { + /** + * @generated from field: string artifact_id = 2; + */ + value: string; + case: "artifactId"; + } | { + /** + * @generated from field: string tag_name = 3; + */ + value: string; + case: "tagName"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.GetArtifactRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset", kind: "message", T: DatasetID }, + { no: 2, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, + { no: 3, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetArtifactRequest { + return new GetArtifactRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetArtifactRequest { + return new GetArtifactRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetArtifactRequest { + return new GetArtifactRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetArtifactRequest | PlainMessage | undefined, b: GetArtifactRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetArtifactRequest, a, b); + } +} + +/** + * + * Response message for retrieving an Artifact. The result returned will include the artifact data + * and metadata associated with the artifact. + * + * @generated from message datacatalog.GetArtifactResponse + */ +export class GetArtifactResponse extends Message { + /** + * @generated from field: datacatalog.Artifact artifact = 1; + */ + artifact?: Artifact; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.GetArtifactResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact", kind: "message", T: Artifact }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetArtifactResponse { + return new GetArtifactResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetArtifactResponse { + return new GetArtifactResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetArtifactResponse { + return new GetArtifactResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetArtifactResponse | PlainMessage | undefined, b: GetArtifactResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetArtifactResponse, a, b); + } +} + +/** + * + * Request message for creating an Artifact and its associated artifact Data. + * + * @generated from message datacatalog.CreateArtifactRequest + */ +export class CreateArtifactRequest extends Message { + /** + * @generated from field: datacatalog.Artifact artifact = 1; + */ + artifact?: Artifact; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.CreateArtifactRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact", kind: "message", T: Artifact }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateArtifactRequest { + return new CreateArtifactRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateArtifactRequest { + return new CreateArtifactRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateArtifactRequest { + return new CreateArtifactRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateArtifactRequest | PlainMessage | undefined, b: CreateArtifactRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateArtifactRequest, a, b); + } +} + +/** + * + * Response message for creating an Artifact. + * + * @generated from message datacatalog.CreateArtifactResponse + */ +export class CreateArtifactResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.CreateArtifactResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateArtifactResponse { + return new CreateArtifactResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateArtifactResponse { + return new CreateArtifactResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateArtifactResponse { + return new CreateArtifactResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateArtifactResponse | PlainMessage | undefined, b: CreateArtifactResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateArtifactResponse, a, b); + } +} + +/** + * + * Request message for tagging an Artifact. + * + * @generated from message datacatalog.AddTagRequest + */ +export class AddTagRequest extends Message { + /** + * @generated from field: datacatalog.Tag tag = 1; + */ + tag?: Tag; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.AddTagRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tag", kind: "message", T: Tag }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddTagRequest { + return new AddTagRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddTagRequest { + return new AddTagRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddTagRequest { + return new AddTagRequest().fromJsonString(jsonString, options); + } + + static equals(a: AddTagRequest | PlainMessage | undefined, b: AddTagRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(AddTagRequest, a, b); + } +} + +/** + * + * Response message for tagging an Artifact. + * + * @generated from message datacatalog.AddTagResponse + */ +export class AddTagResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.AddTagResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): AddTagResponse { + return new AddTagResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): AddTagResponse { + return new AddTagResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): AddTagResponse { + return new AddTagResponse().fromJsonString(jsonString, options); + } + + static equals(a: AddTagResponse | PlainMessage | undefined, b: AddTagResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(AddTagResponse, a, b); + } +} + +/** + * List the artifacts that belong to the Dataset, optionally filtered using filtered expression. + * + * @generated from message datacatalog.ListArtifactsRequest + */ +export class ListArtifactsRequest extends Message { + /** + * Use a datasetID for which you want to retrieve the artifacts + * + * @generated from field: datacatalog.DatasetID dataset = 1; + */ + dataset?: DatasetID; + + /** + * Apply the filter expression to this query + * + * @generated from field: datacatalog.FilterExpression filter = 2; + */ + filter?: FilterExpression; + + /** + * Pagination options to get a page of artifacts + * + * @generated from field: datacatalog.PaginationOptions pagination = 3; + */ + pagination?: PaginationOptions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ListArtifactsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset", kind: "message", T: DatasetID }, + { no: 2, name: "filter", kind: "message", T: FilterExpression }, + { no: 3, name: "pagination", kind: "message", T: PaginationOptions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListArtifactsRequest { + return new ListArtifactsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListArtifactsRequest { + return new ListArtifactsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListArtifactsRequest { + return new ListArtifactsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListArtifactsRequest | PlainMessage | undefined, b: ListArtifactsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListArtifactsRequest, a, b); + } +} + +/** + * Response to list artifacts + * + * @generated from message datacatalog.ListArtifactsResponse + */ +export class ListArtifactsResponse extends Message { + /** + * The list of artifacts + * + * @generated from field: repeated datacatalog.Artifact artifacts = 1; + */ + artifacts: Artifact[] = []; + + /** + * Token to use to request the next page, pass this into the next requests PaginationOptions + * + * @generated from field: string next_token = 2; + */ + nextToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ListArtifactsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifacts", kind: "message", T: Artifact, repeated: true }, + { no: 2, name: "next_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListArtifactsResponse { + return new ListArtifactsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListArtifactsResponse { + return new ListArtifactsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListArtifactsResponse { + return new ListArtifactsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListArtifactsResponse | PlainMessage | undefined, b: ListArtifactsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListArtifactsResponse, a, b); + } +} + +/** + * List the datasets for the given query + * + * @generated from message datacatalog.ListDatasetsRequest + */ +export class ListDatasetsRequest extends Message { + /** + * Apply the filter expression to this query + * + * @generated from field: datacatalog.FilterExpression filter = 1; + */ + filter?: FilterExpression; + + /** + * Pagination options to get a page of datasets + * + * @generated from field: datacatalog.PaginationOptions pagination = 2; + */ + pagination?: PaginationOptions; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ListDatasetsRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "filter", kind: "message", T: FilterExpression }, + { no: 2, name: "pagination", kind: "message", T: PaginationOptions }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListDatasetsRequest { + return new ListDatasetsRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListDatasetsRequest { + return new ListDatasetsRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListDatasetsRequest { + return new ListDatasetsRequest().fromJsonString(jsonString, options); + } + + static equals(a: ListDatasetsRequest | PlainMessage | undefined, b: ListDatasetsRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ListDatasetsRequest, a, b); + } +} + +/** + * List the datasets response with token for next pagination + * + * @generated from message datacatalog.ListDatasetsResponse + */ +export class ListDatasetsResponse extends Message { + /** + * The list of datasets + * + * @generated from field: repeated datacatalog.Dataset datasets = 1; + */ + datasets: Dataset[] = []; + + /** + * Token to use to request the next page, pass this into the next requests PaginationOptions + * + * @generated from field: string next_token = 2; + */ + nextToken = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ListDatasetsResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "datasets", kind: "message", T: Dataset, repeated: true }, + { no: 2, name: "next_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ListDatasetsResponse { + return new ListDatasetsResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ListDatasetsResponse { + return new ListDatasetsResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ListDatasetsResponse { + return new ListDatasetsResponse().fromJsonString(jsonString, options); + } + + static equals(a: ListDatasetsResponse | PlainMessage | undefined, b: ListDatasetsResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ListDatasetsResponse, a, b); + } +} + +/** + * + * Request message for updating an Artifact and overwriting its associated ArtifactData. + * + * @generated from message datacatalog.UpdateArtifactRequest + */ +export class UpdateArtifactRequest extends Message { + /** + * ID of dataset the artifact is associated with + * + * @generated from field: datacatalog.DatasetID dataset = 1; + */ + dataset?: DatasetID; + + /** + * Either ID of artifact or name of tag to retrieve existing artifact from + * + * @generated from oneof datacatalog.UpdateArtifactRequest.query_handle + */ + queryHandle: { + /** + * @generated from field: string artifact_id = 2; + */ + value: string; + case: "artifactId"; + } | { + /** + * @generated from field: string tag_name = 3; + */ + value: string; + case: "tagName"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + * ArtifactData entries will be removed from the underlying blob storage and database. + * + * @generated from field: repeated datacatalog.ArtifactData data = 4; + */ + data: ArtifactData[] = []; + + /** + * Update execution metadata(including execution domain, name, node, project data) when overwriting cache + * + * @generated from field: datacatalog.Metadata metadata = 5; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.UpdateArtifactRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset", kind: "message", T: DatasetID }, + { no: 2, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, + { no: 3, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "query_handle" }, + { no: 4, name: "data", kind: "message", T: ArtifactData, repeated: true }, + { no: 5, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateArtifactRequest { + return new UpdateArtifactRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateArtifactRequest { + return new UpdateArtifactRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateArtifactRequest { + return new UpdateArtifactRequest().fromJsonString(jsonString, options); + } + + static equals(a: UpdateArtifactRequest | PlainMessage | undefined, b: UpdateArtifactRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateArtifactRequest, a, b); + } +} + +/** + * + * Response message for updating an Artifact. + * + * @generated from message datacatalog.UpdateArtifactResponse + */ +export class UpdateArtifactResponse extends Message { + /** + * The unique ID of the artifact updated + * + * @generated from field: string artifact_id = 1; + */ + artifactId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.UpdateArtifactResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UpdateArtifactResponse { + return new UpdateArtifactResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UpdateArtifactResponse { + return new UpdateArtifactResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UpdateArtifactResponse { + return new UpdateArtifactResponse().fromJsonString(jsonString, options); + } + + static equals(a: UpdateArtifactResponse | PlainMessage | undefined, b: UpdateArtifactResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UpdateArtifactResponse, a, b); + } +} + +/** + * + * ReservationID message that is composed of several string fields. + * + * @generated from message datacatalog.ReservationID + */ +export class ReservationID extends Message { + /** + * The unique ID for the reserved dataset + * + * @generated from field: datacatalog.DatasetID dataset_id = 1; + */ + datasetId?: DatasetID; + + /** + * The specific artifact tag for the reservation + * + * @generated from field: string tag_name = 2; + */ + tagName = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ReservationID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "dataset_id", kind: "message", T: DatasetID }, + { no: 2, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ReservationID { + return new ReservationID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ReservationID { + return new ReservationID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ReservationID { + return new ReservationID().fromJsonString(jsonString, options); + } + + static equals(a: ReservationID | PlainMessage | undefined, b: ReservationID | PlainMessage | undefined): boolean { + return proto3.util.equals(ReservationID, a, b); + } +} + +/** + * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. + * + * @generated from message datacatalog.GetOrExtendReservationRequest + */ +export class GetOrExtendReservationRequest extends Message { + /** + * The unique ID for the reservation + * + * @generated from field: datacatalog.ReservationID reservation_id = 1; + */ + reservationId?: ReservationID; + + /** + * The unique ID of the owner for the reservation + * + * @generated from field: string owner_id = 2; + */ + ownerId = ""; + + /** + * Requested reservation extension heartbeat interval + * + * @generated from field: google.protobuf.Duration heartbeat_interval = 3; + */ + heartbeatInterval?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.GetOrExtendReservationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reservation_id", kind: "message", T: ReservationID }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "heartbeat_interval", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetOrExtendReservationRequest { + return new GetOrExtendReservationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetOrExtendReservationRequest { + return new GetOrExtendReservationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetOrExtendReservationRequest { + return new GetOrExtendReservationRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetOrExtendReservationRequest | PlainMessage | undefined, b: GetOrExtendReservationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetOrExtendReservationRequest, a, b); + } +} + +/** + * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. + * + * @generated from message datacatalog.Reservation + */ +export class Reservation extends Message { + /** + * The unique ID for the reservation + * + * @generated from field: datacatalog.ReservationID reservation_id = 1; + */ + reservationId?: ReservationID; + + /** + * The unique ID of the owner for the reservation + * + * @generated from field: string owner_id = 2; + */ + ownerId = ""; + + /** + * Recommended heartbeat interval to extend reservation + * + * @generated from field: google.protobuf.Duration heartbeat_interval = 3; + */ + heartbeatInterval?: Duration; + + /** + * Expiration timestamp of this reservation + * + * @generated from field: google.protobuf.Timestamp expires_at = 4; + */ + expiresAt?: Timestamp; + + /** + * Free-form metadata associated with the artifact + * + * @generated from field: datacatalog.Metadata metadata = 6; + */ + metadata?: Metadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.Reservation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reservation_id", kind: "message", T: ReservationID }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "heartbeat_interval", kind: "message", T: Duration }, + { no: 4, name: "expires_at", kind: "message", T: Timestamp }, + { no: 6, name: "metadata", kind: "message", T: Metadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Reservation { + return new Reservation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Reservation { + return new Reservation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Reservation { + return new Reservation().fromJsonString(jsonString, options); + } + + static equals(a: Reservation | PlainMessage | undefined, b: Reservation | PlainMessage | undefined): boolean { + return proto3.util.equals(Reservation, a, b); + } +} + +/** + * Response including either a newly minted reservation or the existing reservation + * + * @generated from message datacatalog.GetOrExtendReservationResponse + */ +export class GetOrExtendReservationResponse extends Message { + /** + * The reservation to be acquired or extended + * + * @generated from field: datacatalog.Reservation reservation = 1; + */ + reservation?: Reservation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.GetOrExtendReservationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reservation", kind: "message", T: Reservation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetOrExtendReservationResponse { + return new GetOrExtendReservationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetOrExtendReservationResponse { + return new GetOrExtendReservationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetOrExtendReservationResponse { + return new GetOrExtendReservationResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetOrExtendReservationResponse | PlainMessage | undefined, b: GetOrExtendReservationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetOrExtendReservationResponse, a, b); + } +} + +/** + * Request to release reservation + * + * @generated from message datacatalog.ReleaseReservationRequest + */ +export class ReleaseReservationRequest extends Message { + /** + * The unique ID for the reservation + * + * @generated from field: datacatalog.ReservationID reservation_id = 1; + */ + reservationId?: ReservationID; + + /** + * The unique ID of the owner for the reservation + * + * @generated from field: string owner_id = 2; + */ + ownerId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ReleaseReservationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reservation_id", kind: "message", T: ReservationID }, + { no: 2, name: "owner_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ReleaseReservationRequest { + return new ReleaseReservationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ReleaseReservationRequest { + return new ReleaseReservationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ReleaseReservationRequest { + return new ReleaseReservationRequest().fromJsonString(jsonString, options); + } + + static equals(a: ReleaseReservationRequest | PlainMessage | undefined, b: ReleaseReservationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ReleaseReservationRequest, a, b); + } +} + +/** + * Response to release reservation + * + * @generated from message datacatalog.ReleaseReservationResponse + */ +export class ReleaseReservationResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ReleaseReservationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ReleaseReservationResponse { + return new ReleaseReservationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ReleaseReservationResponse { + return new ReleaseReservationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ReleaseReservationResponse { + return new ReleaseReservationResponse().fromJsonString(jsonString, options); + } + + static equals(a: ReleaseReservationResponse | PlainMessage | undefined, b: ReleaseReservationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ReleaseReservationResponse, a, b); + } +} + +/** + * + * Dataset message. It is uniquely identified by DatasetID. + * + * @generated from message datacatalog.Dataset + */ +export class Dataset extends Message { + /** + * @generated from field: datacatalog.DatasetID id = 1; + */ + id?: DatasetID; + + /** + * @generated from field: datacatalog.Metadata metadata = 2; + */ + metadata?: Metadata; + + /** + * @generated from field: repeated string partitionKeys = 3; + */ + partitionKeys: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.Dataset"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: DatasetID }, + { no: 2, name: "metadata", kind: "message", T: Metadata }, + { no: 3, name: "partitionKeys", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Dataset { + return new Dataset().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Dataset { + return new Dataset().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Dataset { + return new Dataset().fromJsonString(jsonString, options); + } + + static equals(a: Dataset | PlainMessage | undefined, b: Dataset | PlainMessage | undefined): boolean { + return proto3.util.equals(Dataset, a, b); + } +} + +/** + * + * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair + * + * @generated from message datacatalog.Partition + */ +export class Partition extends Message { + /** + * @generated from field: string key = 1; + */ + key = ""; + + /** + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.Partition"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Partition { + return new Partition().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Partition { + return new Partition().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Partition { + return new Partition().fromJsonString(jsonString, options); + } + + static equals(a: Partition | PlainMessage | undefined, b: Partition | PlainMessage | undefined): boolean { + return proto3.util.equals(Partition, a, b); + } +} + +/** + * + * DatasetID message that is composed of several string fields. + * + * @generated from message datacatalog.DatasetID + */ +export class DatasetID extends Message { + /** + * The name of the project + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * The name of the dataset + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * The domain (eg. environment) + * + * @generated from field: string domain = 3; + */ + domain = ""; + + /** + * Version of the data schema + * + * @generated from field: string version = 4; + */ + version = ""; + + /** + * UUID for the dataset (if set the above fields are optional) + * + * @generated from field: string UUID = 5; + */ + UUID = ""; + + /** + * Optional, org key applied to the resource. + * + * @generated from field: string org = 6; + */ + org = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.DatasetID"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "UUID", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DatasetID { + return new DatasetID().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DatasetID { + return new DatasetID().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DatasetID { + return new DatasetID().fromJsonString(jsonString, options); + } + + static equals(a: DatasetID | PlainMessage | undefined, b: DatasetID | PlainMessage | undefined): boolean { + return proto3.util.equals(DatasetID, a, b); + } +} + +/** + * + * Artifact message. It is composed of several string fields. + * + * @generated from message datacatalog.Artifact + */ +export class Artifact extends Message { + /** + * The unique ID of the artifact + * + * @generated from field: string id = 1; + */ + id = ""; + + /** + * The Dataset that the artifact belongs to + * + * @generated from field: datacatalog.DatasetID dataset = 2; + */ + dataset?: DatasetID; + + /** + * A list of data that is associated with the artifact + * + * @generated from field: repeated datacatalog.ArtifactData data = 3; + */ + data: ArtifactData[] = []; + + /** + * Free-form metadata associated with the artifact + * + * @generated from field: datacatalog.Metadata metadata = 4; + */ + metadata?: Metadata; + + /** + * @generated from field: repeated datacatalog.Partition partitions = 5; + */ + partitions: Partition[] = []; + + /** + * @generated from field: repeated datacatalog.Tag tags = 6; + */ + tags: Tag[] = []; + + /** + * creation timestamp of artifact, autogenerated by service + * + * @generated from field: google.protobuf.Timestamp created_at = 7; + */ + createdAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.Artifact"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "dataset", kind: "message", T: DatasetID }, + { no: 3, name: "data", kind: "message", T: ArtifactData, repeated: true }, + { no: 4, name: "metadata", kind: "message", T: Metadata }, + { no: 5, name: "partitions", kind: "message", T: Partition, repeated: true }, + { no: 6, name: "tags", kind: "message", T: Tag, repeated: true }, + { no: 7, name: "created_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Artifact { + return new Artifact().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Artifact { + return new Artifact().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Artifact { + return new Artifact().fromJsonString(jsonString, options); + } + + static equals(a: Artifact | PlainMessage | undefined, b: Artifact | PlainMessage | undefined): boolean { + return proto3.util.equals(Artifact, a, b); + } +} + +/** + * + * ArtifactData that belongs to an artifact + * + * @generated from message datacatalog.ArtifactData + */ +export class ArtifactData extends Message { + /** + * @generated from field: string name = 1; + */ + name = ""; + + /** + * @generated from field: flyteidl.core.Literal value = 2; + */ + value?: Literal; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ArtifactData"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "message", T: Literal }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactData { + return new ArtifactData().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactData { + return new ArtifactData().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactData { + return new ArtifactData().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactData | PlainMessage | undefined, b: ArtifactData | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactData, a, b); + } +} + +/** + * + * Tag message that is unique to a Dataset. It is associated to a single artifact and + * can be retrieved by name later. + * + * @generated from message datacatalog.Tag + */ +export class Tag extends Message { + /** + * Name of tag + * + * @generated from field: string name = 1; + */ + name = ""; + + /** + * The tagged artifact + * + * @generated from field: string artifact_id = 2; + */ + artifactId = ""; + + /** + * The Dataset that this tag belongs to + * + * @generated from field: datacatalog.DatasetID dataset = 3; + */ + dataset?: DatasetID; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.Tag"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "dataset", kind: "message", T: DatasetID }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Tag { + return new Tag().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Tag { + return new Tag().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Tag { + return new Tag().fromJsonString(jsonString, options); + } + + static equals(a: Tag | PlainMessage | undefined, b: Tag | PlainMessage | undefined): boolean { + return proto3.util.equals(Tag, a, b); + } +} + +/** + * + * Metadata representation for artifacts and datasets + * + * @generated from message datacatalog.Metadata + */ +export class Metadata extends Message { + /** + * key map is a dictionary of key/val strings that represent metadata + * + * @generated from field: map key_map = 1; + */ + keyMap: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.Metadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key_map", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Metadata { + return new Metadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Metadata { + return new Metadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Metadata { + return new Metadata().fromJsonString(jsonString, options); + } + + static equals(a: Metadata | PlainMessage | undefined, b: Metadata | PlainMessage | undefined): boolean { + return proto3.util.equals(Metadata, a, b); + } +} + +/** + * Filter expression that is composed of a combination of single filters + * + * @generated from message datacatalog.FilterExpression + */ +export class FilterExpression extends Message { + /** + * @generated from field: repeated datacatalog.SinglePropertyFilter filters = 1; + */ + filters: SinglePropertyFilter[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.FilterExpression"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "filters", kind: "message", T: SinglePropertyFilter, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): FilterExpression { + return new FilterExpression().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): FilterExpression { + return new FilterExpression().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): FilterExpression { + return new FilterExpression().fromJsonString(jsonString, options); + } + + static equals(a: FilterExpression | PlainMessage | undefined, b: FilterExpression | PlainMessage | undefined): boolean { + return proto3.util.equals(FilterExpression, a, b); + } +} + +/** + * A single property to filter on. + * + * @generated from message datacatalog.SinglePropertyFilter + */ +export class SinglePropertyFilter extends Message { + /** + * @generated from oneof datacatalog.SinglePropertyFilter.property_filter + */ + propertyFilter: { + /** + * @generated from field: datacatalog.TagPropertyFilter tag_filter = 1; + */ + value: TagPropertyFilter; + case: "tagFilter"; + } | { + /** + * @generated from field: datacatalog.PartitionPropertyFilter partition_filter = 2; + */ + value: PartitionPropertyFilter; + case: "partitionFilter"; + } | { + /** + * @generated from field: datacatalog.ArtifactPropertyFilter artifact_filter = 3; + */ + value: ArtifactPropertyFilter; + case: "artifactFilter"; + } | { + /** + * @generated from field: datacatalog.DatasetPropertyFilter dataset_filter = 4; + */ + value: DatasetPropertyFilter; + case: "datasetFilter"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * field 10 in case we add more entities to query + * + * @generated from field: datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; + */ + operator = SinglePropertyFilter_ComparisonOperator.EQUALS; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.SinglePropertyFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tag_filter", kind: "message", T: TagPropertyFilter, oneof: "property_filter" }, + { no: 2, name: "partition_filter", kind: "message", T: PartitionPropertyFilter, oneof: "property_filter" }, + { no: 3, name: "artifact_filter", kind: "message", T: ArtifactPropertyFilter, oneof: "property_filter" }, + { no: 4, name: "dataset_filter", kind: "message", T: DatasetPropertyFilter, oneof: "property_filter" }, + { no: 10, name: "operator", kind: "enum", T: proto3.getEnumType(SinglePropertyFilter_ComparisonOperator) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SinglePropertyFilter { + return new SinglePropertyFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SinglePropertyFilter { + return new SinglePropertyFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SinglePropertyFilter { + return new SinglePropertyFilter().fromJsonString(jsonString, options); + } + + static equals(a: SinglePropertyFilter | PlainMessage | undefined, b: SinglePropertyFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(SinglePropertyFilter, a, b); + } +} + +/** + * as use-cases come up we can add more operators, ex: gte, like, not eq etc. + * + * @generated from enum datacatalog.SinglePropertyFilter.ComparisonOperator + */ +export enum SinglePropertyFilter_ComparisonOperator { + /** + * @generated from enum value: EQUALS = 0; + */ + EQUALS = 0, +} +// Retrieve enum metadata with: proto3.getEnumType(SinglePropertyFilter_ComparisonOperator) +proto3.util.setEnumType(SinglePropertyFilter_ComparisonOperator, "datacatalog.SinglePropertyFilter.ComparisonOperator", [ + { no: 0, name: "EQUALS" }, +]); + +/** + * Artifact properties we can filter by + * + * @generated from message datacatalog.ArtifactPropertyFilter + */ +export class ArtifactPropertyFilter extends Message { + /** + * oneof because we can add more properties in the future + * + * @generated from oneof datacatalog.ArtifactPropertyFilter.property + */ + property: { + /** + * @generated from field: string artifact_id = 1; + */ + value: string; + case: "artifactId"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.ArtifactPropertyFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_id", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArtifactPropertyFilter { + return new ArtifactPropertyFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArtifactPropertyFilter { + return new ArtifactPropertyFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArtifactPropertyFilter { + return new ArtifactPropertyFilter().fromJsonString(jsonString, options); + } + + static equals(a: ArtifactPropertyFilter | PlainMessage | undefined, b: ArtifactPropertyFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(ArtifactPropertyFilter, a, b); + } +} + +/** + * Tag properties we can filter by + * + * @generated from message datacatalog.TagPropertyFilter + */ +export class TagPropertyFilter extends Message { + /** + * @generated from oneof datacatalog.TagPropertyFilter.property + */ + property: { + /** + * @generated from field: string tag_name = 1; + */ + value: string; + case: "tagName"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.TagPropertyFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "tag_name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TagPropertyFilter { + return new TagPropertyFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TagPropertyFilter { + return new TagPropertyFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TagPropertyFilter { + return new TagPropertyFilter().fromJsonString(jsonString, options); + } + + static equals(a: TagPropertyFilter | PlainMessage | undefined, b: TagPropertyFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(TagPropertyFilter, a, b); + } +} + +/** + * Partition properties we can filter by + * + * @generated from message datacatalog.PartitionPropertyFilter + */ +export class PartitionPropertyFilter extends Message { + /** + * @generated from oneof datacatalog.PartitionPropertyFilter.property + */ + property: { + /** + * @generated from field: datacatalog.KeyValuePair key_val = 1; + */ + value: KeyValuePair; + case: "keyVal"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.PartitionPropertyFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key_val", kind: "message", T: KeyValuePair, oneof: "property" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PartitionPropertyFilter { + return new PartitionPropertyFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PartitionPropertyFilter { + return new PartitionPropertyFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PartitionPropertyFilter { + return new PartitionPropertyFilter().fromJsonString(jsonString, options); + } + + static equals(a: PartitionPropertyFilter | PlainMessage | undefined, b: PartitionPropertyFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(PartitionPropertyFilter, a, b); + } +} + +/** + * @generated from message datacatalog.KeyValuePair + */ +export class KeyValuePair extends Message { + /** + * @generated from field: string key = 1; + */ + key = ""; + + /** + * @generated from field: string value = 2; + */ + value = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.KeyValuePair"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KeyValuePair { + return new KeyValuePair().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KeyValuePair { + return new KeyValuePair().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KeyValuePair { + return new KeyValuePair().fromJsonString(jsonString, options); + } + + static equals(a: KeyValuePair | PlainMessage | undefined, b: KeyValuePair | PlainMessage | undefined): boolean { + return proto3.util.equals(KeyValuePair, a, b); + } +} + +/** + * Dataset properties we can filter by + * + * @generated from message datacatalog.DatasetPropertyFilter + */ +export class DatasetPropertyFilter extends Message { + /** + * @generated from oneof datacatalog.DatasetPropertyFilter.property + */ + property: { + /** + * @generated from field: string project = 1; + */ + value: string; + case: "project"; + } | { + /** + * @generated from field: string name = 2; + */ + value: string; + case: "name"; + } | { + /** + * @generated from field: string domain = 3; + */ + value: string; + case: "domain"; + } | { + /** + * @generated from field: string version = 4; + */ + value: string; + case: "version"; + } | { + /** + * Optional, org key applied to the dataset. + * + * @generated from field: string org = 5; + */ + value: string; + case: "org"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.DatasetPropertyFilter"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + { no: 3, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + { no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + { no: 5, name: "org", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "property" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DatasetPropertyFilter { + return new DatasetPropertyFilter().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DatasetPropertyFilter { + return new DatasetPropertyFilter().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DatasetPropertyFilter { + return new DatasetPropertyFilter().fromJsonString(jsonString, options); + } + + static equals(a: DatasetPropertyFilter | PlainMessage | undefined, b: DatasetPropertyFilter | PlainMessage | undefined): boolean { + return proto3.util.equals(DatasetPropertyFilter, a, b); + } +} + +/** + * Pagination options for making list requests + * + * @generated from message datacatalog.PaginationOptions + */ +export class PaginationOptions extends Message { + /** + * the max number of results to return + * + * @generated from field: uint32 limit = 1; + */ + limit = 0; + + /** + * the token to pass to fetch the next page + * + * @generated from field: string token = 2; + */ + token = ""; + + /** + * the property that we want to sort the results by + * + * @generated from field: datacatalog.PaginationOptions.SortKey sortKey = 3; + */ + sortKey = PaginationOptions_SortKey.CREATION_TIME; + + /** + * the sort order of the results + * + * @generated from field: datacatalog.PaginationOptions.SortOrder sortOrder = 4; + */ + sortOrder = PaginationOptions_SortOrder.DESCENDING; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "datacatalog.PaginationOptions"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "sortKey", kind: "enum", T: proto3.getEnumType(PaginationOptions_SortKey) }, + { no: 4, name: "sortOrder", kind: "enum", T: proto3.getEnumType(PaginationOptions_SortOrder) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PaginationOptions { + return new PaginationOptions().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PaginationOptions { + return new PaginationOptions().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PaginationOptions { + return new PaginationOptions().fromJsonString(jsonString, options); + } + + static equals(a: PaginationOptions | PlainMessage | undefined, b: PaginationOptions | PlainMessage | undefined): boolean { + return proto3.util.equals(PaginationOptions, a, b); + } +} + +/** + * @generated from enum datacatalog.PaginationOptions.SortOrder + */ +export enum PaginationOptions_SortOrder { + /** + * @generated from enum value: DESCENDING = 0; + */ + DESCENDING = 0, + + /** + * @generated from enum value: ASCENDING = 1; + */ + ASCENDING = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(PaginationOptions_SortOrder) +proto3.util.setEnumType(PaginationOptions_SortOrder, "datacatalog.PaginationOptions.SortOrder", [ + { no: 0, name: "DESCENDING" }, + { no: 1, name: "ASCENDING" }, +]); + +/** + * @generated from enum datacatalog.PaginationOptions.SortKey + */ +export enum PaginationOptions_SortKey { + /** + * @generated from enum value: CREATION_TIME = 0; + */ + CREATION_TIME = 0, +} +// Retrieve enum metadata with: proto3.getEnumType(PaginationOptions_SortKey) +proto3.util.setEnumType(PaginationOptions_SortKey, "datacatalog.PaginationOptions.SortKey", [ + { no: 0, name: "CREATION_TIME" }, +]); + diff --git a/flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts b/flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts new file mode 100644 index 0000000000..295930930a --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/event/cloudevents_pb.ts @@ -0,0 +1,281 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/event/cloudevents.proto (package flyteidl.event, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { NodeExecutionEvent, TaskExecutionEvent, WorkflowExecutionEvent } from "./event_pb.js"; +import { TypedInterface } from "../core/interface_pb.js"; +import { ArtifactID } from "../core/artifact_id_pb.js"; +import { Identifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; + +/** + * This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional + * information that downstream consumers may find useful. + * + * @generated from message flyteidl.event.CloudEventWorkflowExecution + */ +export class CloudEventWorkflowExecution extends Message { + /** + * @generated from field: flyteidl.event.WorkflowExecutionEvent raw_event = 1; + */ + rawEvent?: WorkflowExecutionEvent; + + /** + * @generated from field: flyteidl.core.TypedInterface output_interface = 2; + */ + outputInterface?: TypedInterface; + + /** + * The following are ExecutionMetadata fields + * We can't have the ExecutionMetadata object directly because of import cycle + * + * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 3; + */ + artifactIds: ArtifactID[] = []; + + /** + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier reference_execution = 4; + */ + referenceExecution?: WorkflowExecutionIdentifier; + + /** + * @generated from field: string principal = 5; + */ + principal = ""; + + /** + * The ID of the LP that generated the execution that generated the Artifact. + * Here for provenance information. + * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. + * + * @generated from field: flyteidl.core.Identifier launch_plan_id = 6; + */ + launchPlanId?: Identifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.CloudEventWorkflowExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "raw_event", kind: "message", T: WorkflowExecutionEvent }, + { no: 2, name: "output_interface", kind: "message", T: TypedInterface }, + { no: 3, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, + { no: 4, name: "reference_execution", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 5, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "launch_plan_id", kind: "message", T: Identifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventWorkflowExecution { + return new CloudEventWorkflowExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventWorkflowExecution { + return new CloudEventWorkflowExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CloudEventWorkflowExecution { + return new CloudEventWorkflowExecution().fromJsonString(jsonString, options); + } + + static equals(a: CloudEventWorkflowExecution | PlainMessage | undefined, b: CloudEventWorkflowExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(CloudEventWorkflowExecution, a, b); + } +} + +/** + * @generated from message flyteidl.event.CloudEventNodeExecution + */ +export class CloudEventNodeExecution extends Message { + /** + * @generated from field: flyteidl.event.NodeExecutionEvent raw_event = 1; + */ + rawEvent?: NodeExecutionEvent; + + /** + * The relevant task execution if applicable + * + * @generated from field: flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; + */ + taskExecId?: TaskExecutionIdentifier; + + /** + * The typed interface for the task that produced the event. + * + * @generated from field: flyteidl.core.TypedInterface output_interface = 3; + */ + outputInterface?: TypedInterface; + + /** + * The following are ExecutionMetadata fields + * We can't have the ExecutionMetadata object directly because of import cycle + * + * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 4; + */ + artifactIds: ArtifactID[] = []; + + /** + * @generated from field: string principal = 5; + */ + principal = ""; + + /** + * The ID of the LP that generated the execution that generated the Artifact. + * Here for provenance information. + * Launch plan IDs are easier to get than workflow IDs so we'll use these for now. + * + * @generated from field: flyteidl.core.Identifier launch_plan_id = 6; + */ + launchPlanId?: Identifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.CloudEventNodeExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "raw_event", kind: "message", T: NodeExecutionEvent }, + { no: 2, name: "task_exec_id", kind: "message", T: TaskExecutionIdentifier }, + { no: 3, name: "output_interface", kind: "message", T: TypedInterface }, + { no: 4, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, + { no: 5, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "launch_plan_id", kind: "message", T: Identifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventNodeExecution { + return new CloudEventNodeExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventNodeExecution { + return new CloudEventNodeExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CloudEventNodeExecution { + return new CloudEventNodeExecution().fromJsonString(jsonString, options); + } + + static equals(a: CloudEventNodeExecution | PlainMessage | undefined, b: CloudEventNodeExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(CloudEventNodeExecution, a, b); + } +} + +/** + * @generated from message flyteidl.event.CloudEventTaskExecution + */ +export class CloudEventTaskExecution extends Message { + /** + * @generated from field: flyteidl.event.TaskExecutionEvent raw_event = 1; + */ + rawEvent?: TaskExecutionEvent; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.CloudEventTaskExecution"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "raw_event", kind: "message", T: TaskExecutionEvent }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventTaskExecution { + return new CloudEventTaskExecution().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventTaskExecution { + return new CloudEventTaskExecution().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CloudEventTaskExecution { + return new CloudEventTaskExecution().fromJsonString(jsonString, options); + } + + static equals(a: CloudEventTaskExecution | PlainMessage | undefined, b: CloudEventTaskExecution | PlainMessage | undefined): boolean { + return proto3.util.equals(CloudEventTaskExecution, a, b); + } +} + +/** + * This event is to be sent by Admin after it creates an execution. + * + * @generated from message flyteidl.event.CloudEventExecutionStart + */ +export class CloudEventExecutionStart extends Message { + /** + * The execution created. + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + executionId?: WorkflowExecutionIdentifier; + + /** + * The launch plan used. + * + * @generated from field: flyteidl.core.Identifier launch_plan_id = 2; + */ + launchPlanId?: Identifier; + + /** + * @generated from field: flyteidl.core.Identifier workflow_id = 3; + */ + workflowId?: Identifier; + + /** + * Artifact inputs to the workflow execution for which we have the full Artifact ID. These are likely the result of artifact queries that are run. + * + * @generated from field: repeated flyteidl.core.ArtifactID artifact_ids = 4; + */ + artifactIds: ArtifactID[] = []; + + /** + * Artifact inputs to the workflow execution for which we only have the tracking bit that's installed into the Literal's metadata by the Artifact service. + * + * @generated from field: repeated string artifact_trackers = 5; + */ + artifactTrackers: string[] = []; + + /** + * @generated from field: string principal = 6; + */ + principal = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.CloudEventExecutionStart"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "launch_plan_id", kind: "message", T: Identifier }, + { no: 3, name: "workflow_id", kind: "message", T: Identifier }, + { no: 4, name: "artifact_ids", kind: "message", T: ArtifactID, repeated: true }, + { no: 5, name: "artifact_trackers", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "principal", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CloudEventExecutionStart { + return new CloudEventExecutionStart().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CloudEventExecutionStart { + return new CloudEventExecutionStart().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CloudEventExecutionStart { + return new CloudEventExecutionStart().fromJsonString(jsonString, options); + } + + static equals(a: CloudEventExecutionStart | PlainMessage | undefined, b: CloudEventExecutionStart | PlainMessage | undefined): boolean { + return proto3.util.equals(CloudEventExecutionStart, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/event/event_pb.ts b/flyteidl/gen/pb-es/flyteidl/event/event_pb.ts new file mode 100644 index 0000000000..1e7b274df8 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/event/event_pb.ts @@ -0,0 +1,1088 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/event/event.proto (package flyteidl.event, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Struct, Timestamp } from "@bufbuild/protobuf"; +import { Identifier, NodeExecutionIdentifier, TaskExecutionIdentifier, WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; +import { ExecutionError, NodeExecution_Phase, TaskExecution_Phase, TaskLog, WorkflowExecution_Phase } from "../core/execution_pb.js"; +import { LiteralMap } from "../core/literals_pb.js"; +import { CatalogCacheStatus, CatalogMetadata, CatalogReservation_Status } from "../core/catalog_pb.js"; +import { CompiledWorkflowClosure } from "../core/compiler_pb.js"; + +/** + * @generated from message flyteidl.event.WorkflowExecutionEvent + */ +export class WorkflowExecutionEvent extends Message { + /** + * Workflow execution id + * + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + executionId?: WorkflowExecutionIdentifier; + + /** + * the id of the originator (Propeller) of the event + * + * @generated from field: string producer_id = 2; + */ + producerId = ""; + + /** + * @generated from field: flyteidl.core.WorkflowExecution.Phase phase = 3; + */ + phase = WorkflowExecution_Phase.UNDEFINED; + + /** + * This timestamp represents when the original event occurred, it is generated + * by the executor of the workflow. + * + * @generated from field: google.protobuf.Timestamp occurred_at = 4; + */ + occurredAt?: Timestamp; + + /** + * @generated from oneof flyteidl.event.WorkflowExecutionEvent.output_result + */ + outputResult: { + /** + * URL to the output of the execution, it encodes all the information + * including Cloud source provider. ie., s3://... + * + * @generated from field: string output_uri = 5; + */ + value: string; + case: "outputUri"; + } | { + /** + * Error information for the execution + * + * @generated from field: flyteidl.core.ExecutionError error = 6; + */ + value: ExecutionError; + case: "error"; + } | { + /** + * Raw output data produced by this workflow execution. + * + * @generated from field: flyteidl.core.LiteralMap output_data = 7; + */ + value: LiteralMap; + case: "outputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.WorkflowExecutionEvent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "producer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase) }, + { no: 4, name: "occurred_at", kind: "message", T: Timestamp }, + { no: 5, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, + { no: 6, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, + { no: 7, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowExecutionEvent { + return new WorkflowExecutionEvent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowExecutionEvent { + return new WorkflowExecutionEvent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowExecutionEvent { + return new WorkflowExecutionEvent().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowExecutionEvent | PlainMessage | undefined, b: WorkflowExecutionEvent | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowExecutionEvent, a, b); + } +} + +/** + * @generated from message flyteidl.event.NodeExecutionEvent + */ +export class NodeExecutionEvent extends Message { + /** + * Unique identifier for this node execution + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier id = 1; + */ + id?: NodeExecutionIdentifier; + + /** + * the id of the originator (Propeller) of the event + * + * @generated from field: string producer_id = 2; + */ + producerId = ""; + + /** + * @generated from field: flyteidl.core.NodeExecution.Phase phase = 3; + */ + phase = NodeExecution_Phase.UNDEFINED; + + /** + * This timestamp represents when the original event occurred, it is generated + * by the executor of the node. + * + * @generated from field: google.protobuf.Timestamp occurred_at = 4; + */ + occurredAt?: Timestamp; + + /** + * @generated from oneof flyteidl.event.NodeExecutionEvent.input_value + */ + inputValue: { + /** + * @generated from field: string input_uri = 5; + */ + value: string; + case: "inputUri"; + } | { + /** + * Raw input data consumed by this node execution. + * + * @generated from field: flyteidl.core.LiteralMap input_data = 20; + */ + value: LiteralMap; + case: "inputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * @generated from oneof flyteidl.event.NodeExecutionEvent.output_result + */ + outputResult: { + /** + * URL to the output of the execution, it encodes all the information + * including Cloud source provider. ie., s3://... + * + * @generated from field: string output_uri = 6; + */ + value: string; + case: "outputUri"; + } | { + /** + * Error information for the execution + * + * @generated from field: flyteidl.core.ExecutionError error = 7; + */ + value: ExecutionError; + case: "error"; + } | { + /** + * Raw output data produced by this node execution. + * + * @generated from field: flyteidl.core.LiteralMap output_data = 15; + */ + value: LiteralMap; + case: "outputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Additional metadata to do with this event's node target based + * on the node type + * + * @generated from oneof flyteidl.event.NodeExecutionEvent.target_metadata + */ + targetMetadata: { + /** + * @generated from field: flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; + */ + value: WorkflowNodeMetadata; + case: "workflowNodeMetadata"; + } | { + /** + * @generated from field: flyteidl.event.TaskNodeMetadata task_node_metadata = 14; + */ + value: TaskNodeMetadata; + case: "taskNodeMetadata"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * [To be deprecated] Specifies which task (if any) launched this node. + * + * @generated from field: flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; + */ + parentTaskMetadata?: ParentTaskExecutionMetadata; + + /** + * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + * + * @generated from field: flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; + */ + parentNodeMetadata?: ParentNodeExecutionMetadata; + + /** + * Retry group to indicate grouping of nodes by retries + * + * @generated from field: string retry_group = 11; + */ + retryGroup = ""; + + /** + * Identifier of the node in the original workflow/graph + * This maps to value of WorkflowTemplate.nodes[X].id + * + * @generated from field: string spec_node_id = 12; + */ + specNodeId = ""; + + /** + * Friendly readable name for the node + * + * @generated from field: string node_name = 13; + */ + nodeName = ""; + + /** + * @generated from field: int32 event_version = 16; + */ + eventVersion = 0; + + /** + * Whether this node launched a subworkflow. + * + * @generated from field: bool is_parent = 17; + */ + isParent = false; + + /** + * Whether this node yielded a dynamic workflow. + * + * @generated from field: bool is_dynamic = 18; + */ + isDynamic = false; + + /** + * String location uniquely identifying where the deck HTML file is + * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + * + * @generated from field: string deck_uri = 19; + */ + deckUri = ""; + + /** + * This timestamp represents the instant when the event was reported by the executing framework. For example, + * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when + * literal inputs are initially copied. The event however will not be sent until after the copy completes. + * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + * + * @generated from field: google.protobuf.Timestamp reported_at = 21; + */ + reportedAt?: Timestamp; + + /** + * Indicates if this node is an ArrayNode. + * + * @generated from field: bool is_array = 22; + */ + isArray = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.NodeExecutionEvent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: NodeExecutionIdentifier }, + { no: 2, name: "producer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "phase", kind: "enum", T: proto3.getEnumType(NodeExecution_Phase) }, + { no: 4, name: "occurred_at", kind: "message", T: Timestamp }, + { no: 5, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input_value" }, + { no: 20, name: "input_data", kind: "message", T: LiteralMap, oneof: "input_value" }, + { no: 6, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, + { no: 7, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, + { no: 15, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, + { no: 8, name: "workflow_node_metadata", kind: "message", T: WorkflowNodeMetadata, oneof: "target_metadata" }, + { no: 14, name: "task_node_metadata", kind: "message", T: TaskNodeMetadata, oneof: "target_metadata" }, + { no: 9, name: "parent_task_metadata", kind: "message", T: ParentTaskExecutionMetadata }, + { no: 10, name: "parent_node_metadata", kind: "message", T: ParentNodeExecutionMetadata }, + { no: 11, name: "retry_group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 12, name: "spec_node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 13, name: "node_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "event_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 17, name: "is_parent", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 18, name: "is_dynamic", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 19, name: "deck_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "reported_at", kind: "message", T: Timestamp }, + { no: 22, name: "is_array", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): NodeExecutionEvent { + return new NodeExecutionEvent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): NodeExecutionEvent { + return new NodeExecutionEvent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): NodeExecutionEvent { + return new NodeExecutionEvent().fromJsonString(jsonString, options); + } + + static equals(a: NodeExecutionEvent | PlainMessage | undefined, b: NodeExecutionEvent | PlainMessage | undefined): boolean { + return proto3.util.equals(NodeExecutionEvent, a, b); + } +} + +/** + * For Workflow Nodes we need to send information about the workflow that's launched + * + * @generated from message flyteidl.event.WorkflowNodeMetadata + */ +export class WorkflowNodeMetadata extends Message { + /** + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; + */ + executionId?: WorkflowExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.WorkflowNodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "execution_id", kind: "message", T: WorkflowExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkflowNodeMetadata { + return new WorkflowNodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkflowNodeMetadata { + return new WorkflowNodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkflowNodeMetadata { + return new WorkflowNodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: WorkflowNodeMetadata | PlainMessage | undefined, b: WorkflowNodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkflowNodeMetadata, a, b); + } +} + +/** + * @generated from message flyteidl.event.TaskNodeMetadata + */ +export class TaskNodeMetadata extends Message { + /** + * Captures the status of caching for this execution. + * + * @generated from field: flyteidl.core.CatalogCacheStatus cache_status = 1; + */ + cacheStatus = CatalogCacheStatus.CACHE_DISABLED; + + /** + * This structure carries the catalog artifact information + * + * @generated from field: flyteidl.core.CatalogMetadata catalog_key = 2; + */ + catalogKey?: CatalogMetadata; + + /** + * Captures the status of cache reservations for this execution. + * + * @generated from field: flyteidl.core.CatalogReservation.Status reservation_status = 3; + */ + reservationStatus = CatalogReservation_Status.RESERVATION_DISABLED; + + /** + * The latest checkpoint location + * + * @generated from field: string checkpoint_uri = 4; + */ + checkpointUri = ""; + + /** + * In the case this task launched a dynamic workflow we capture its structure here. + * + * @generated from field: flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; + */ + dynamicWorkflow?: DynamicWorkflowNodeMetadata; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.TaskNodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cache_status", kind: "enum", T: proto3.getEnumType(CatalogCacheStatus) }, + { no: 2, name: "catalog_key", kind: "message", T: CatalogMetadata }, + { no: 3, name: "reservation_status", kind: "enum", T: proto3.getEnumType(CatalogReservation_Status) }, + { no: 4, name: "checkpoint_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "dynamic_workflow", kind: "message", T: DynamicWorkflowNodeMetadata }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskNodeMetadata { + return new TaskNodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskNodeMetadata { + return new TaskNodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskNodeMetadata { + return new TaskNodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: TaskNodeMetadata | PlainMessage | undefined, b: TaskNodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskNodeMetadata, a, b); + } +} + +/** + * For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. + * + * @generated from message flyteidl.event.DynamicWorkflowNodeMetadata + */ +export class DynamicWorkflowNodeMetadata extends Message { + /** + * id represents the unique identifier of the workflow. + * + * @generated from field: flyteidl.core.Identifier id = 1; + */ + id?: Identifier; + + /** + * Represents the compiled representation of the embedded dynamic workflow. + * + * @generated from field: flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; + */ + compiledWorkflow?: CompiledWorkflowClosure; + + /** + * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + * required to correctly recover partially completed executions where the workflow has already been compiled. + * + * @generated from field: string dynamic_job_spec_uri = 3; + */ + dynamicJobSpecUri = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.DynamicWorkflowNodeMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: Identifier }, + { no: 2, name: "compiled_workflow", kind: "message", T: CompiledWorkflowClosure }, + { no: 3, name: "dynamic_job_spec_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DynamicWorkflowNodeMetadata { + return new DynamicWorkflowNodeMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DynamicWorkflowNodeMetadata { + return new DynamicWorkflowNodeMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DynamicWorkflowNodeMetadata { + return new DynamicWorkflowNodeMetadata().fromJsonString(jsonString, options); + } + + static equals(a: DynamicWorkflowNodeMetadata | PlainMessage | undefined, b: DynamicWorkflowNodeMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(DynamicWorkflowNodeMetadata, a, b); + } +} + +/** + * @generated from message flyteidl.event.ParentTaskExecutionMetadata + */ +export class ParentTaskExecutionMetadata extends Message { + /** + * @generated from field: flyteidl.core.TaskExecutionIdentifier id = 1; + */ + id?: TaskExecutionIdentifier; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.ParentTaskExecutionMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "id", kind: "message", T: TaskExecutionIdentifier }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParentTaskExecutionMetadata { + return new ParentTaskExecutionMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParentTaskExecutionMetadata { + return new ParentTaskExecutionMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParentTaskExecutionMetadata { + return new ParentTaskExecutionMetadata().fromJsonString(jsonString, options); + } + + static equals(a: ParentTaskExecutionMetadata | PlainMessage | undefined, b: ParentTaskExecutionMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(ParentTaskExecutionMetadata, a, b); + } +} + +/** + * @generated from message flyteidl.event.ParentNodeExecutionMetadata + */ +export class ParentNodeExecutionMetadata extends Message { + /** + * Unique identifier of the parent node id within the execution + * This is value of core.NodeExecutionIdentifier.node_id of the parent node + * + * @generated from field: string node_id = 1; + */ + nodeId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.ParentNodeExecutionMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ParentNodeExecutionMetadata { + return new ParentNodeExecutionMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ParentNodeExecutionMetadata { + return new ParentNodeExecutionMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ParentNodeExecutionMetadata { + return new ParentNodeExecutionMetadata().fromJsonString(jsonString, options); + } + + static equals(a: ParentNodeExecutionMetadata | PlainMessage | undefined, b: ParentNodeExecutionMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(ParentNodeExecutionMetadata, a, b); + } +} + +/** + * @generated from message flyteidl.event.EventReason + */ +export class EventReason extends Message { + /** + * An explanation for this event + * + * @generated from field: string reason = 1; + */ + reason = ""; + + /** + * The time this reason occurred + * + * @generated from field: google.protobuf.Timestamp occurred_at = 2; + */ + occurredAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.EventReason"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "occurred_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EventReason { + return new EventReason().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EventReason { + return new EventReason().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EventReason { + return new EventReason().fromJsonString(jsonString, options); + } + + static equals(a: EventReason | PlainMessage | undefined, b: EventReason | PlainMessage | undefined): boolean { + return proto3.util.equals(EventReason, a, b); + } +} + +/** + * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. + * + * @generated from message flyteidl.event.TaskExecutionEvent + */ +export class TaskExecutionEvent extends Message { + /** + * ID of the task. In combination with the retryAttempt this will indicate + * the task execution uniquely for a given parent node execution. + * + * @generated from field: flyteidl.core.Identifier task_id = 1; + */ + taskId?: Identifier; + + /** + * A task execution is always kicked off by a node execution, the event consumer + * will use the parent_id to relate the task to it's parent node execution + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; + */ + parentNodeExecutionId?: NodeExecutionIdentifier; + + /** + * retry attempt number for this task, ie., 2 for the second attempt + * + * @generated from field: uint32 retry_attempt = 3; + */ + retryAttempt = 0; + + /** + * Phase associated with the event + * + * @generated from field: flyteidl.core.TaskExecution.Phase phase = 4; + */ + phase = TaskExecution_Phase.UNDEFINED; + + /** + * id of the process that sent this event, mainly for trace debugging + * + * @generated from field: string producer_id = 5; + */ + producerId = ""; + + /** + * log information for the task execution + * + * @generated from field: repeated flyteidl.core.TaskLog logs = 6; + */ + logs: TaskLog[] = []; + + /** + * This timestamp represents when the original event occurred, it is generated + * by the executor of the task. + * + * @generated from field: google.protobuf.Timestamp occurred_at = 7; + */ + occurredAt?: Timestamp; + + /** + * @generated from oneof flyteidl.event.TaskExecutionEvent.input_value + */ + inputValue: { + /** + * URI of the input file, it encodes all the information + * including Cloud source provider. ie., s3://... + * + * @generated from field: string input_uri = 8; + */ + value: string; + case: "inputUri"; + } | { + /** + * Raw input data consumed by this task execution. + * + * @generated from field: flyteidl.core.LiteralMap input_data = 19; + */ + value: LiteralMap; + case: "inputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * @generated from oneof flyteidl.event.TaskExecutionEvent.output_result + */ + outputResult: { + /** + * URI to the output of the execution, it will be in a format that encodes all the information + * including Cloud source provider. ie., s3://... + * + * @generated from field: string output_uri = 9; + */ + value: string; + case: "outputUri"; + } | { + /** + * Error information for the execution + * + * @generated from field: flyteidl.core.ExecutionError error = 10; + */ + value: ExecutionError; + case: "error"; + } | { + /** + * Raw output data produced by this task execution. + * + * @generated from field: flyteidl.core.LiteralMap output_data = 17; + */ + value: LiteralMap; + case: "outputData"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + /** + * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + * + * @generated from field: google.protobuf.Struct custom_info = 11; + */ + customInfo?: Struct; + + /** + * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + * that should be recorded regardless of the lack of phase change. + * The version field should be incremented when metadata changes across the duration of an individual phase. + * + * @generated from field: uint32 phase_version = 12; + */ + phaseVersion = 0; + + /** + * An optional explanation for the phase transition. + * Deprecated: Use reasons instead. + * + * @generated from field: string reason = 13 [deprecated = true]; + * @deprecated + */ + reason = ""; + + /** + * An optional list of explanations for the phase transition. + * + * @generated from field: repeated flyteidl.event.EventReason reasons = 21; + */ + reasons: EventReason[] = []; + + /** + * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin + * this type will be identical, but not all task executions necessarily use pre-registered definitions and this + * type is useful to render the task in the UI, filter task executions, etc. + * + * @generated from field: string task_type = 14; + */ + taskType = ""; + + /** + * Metadata around how a task was executed. + * + * @generated from field: flyteidl.event.TaskExecutionMetadata metadata = 16; + */ + metadata?: TaskExecutionMetadata; + + /** + * The event version is used to indicate versioned changes in how data is reported using this + * proto message. For example, event_verison > 0 means that maps tasks report logs using the + * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + * in this message. + * + * @generated from field: int32 event_version = 18; + */ + eventVersion = 0; + + /** + * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s + * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, + * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps + * facilitates a more accurate portrayal of the evaluation time-series. + * + * @generated from field: google.protobuf.Timestamp reported_at = 20; + */ + reportedAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.TaskExecutionEvent"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_id", kind: "message", T: Identifier }, + { no: 2, name: "parent_node_execution_id", kind: "message", T: NodeExecutionIdentifier }, + { no: 3, name: "retry_attempt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, + { no: 5, name: "producer_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "logs", kind: "message", T: TaskLog, repeated: true }, + { no: 7, name: "occurred_at", kind: "message", T: Timestamp }, + { no: 8, name: "input_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input_value" }, + { no: 19, name: "input_data", kind: "message", T: LiteralMap, oneof: "input_value" }, + { no: 9, name: "output_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output_result" }, + { no: 10, name: "error", kind: "message", T: ExecutionError, oneof: "output_result" }, + { no: 17, name: "output_data", kind: "message", T: LiteralMap, oneof: "output_result" }, + { no: 11, name: "custom_info", kind: "message", T: Struct }, + { no: 12, name: "phase_version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 13, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 21, name: "reasons", kind: "message", T: EventReason, repeated: true }, + { no: 14, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "metadata", kind: "message", T: TaskExecutionMetadata }, + { no: 18, name: "event_version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 20, name: "reported_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionEvent { + return new TaskExecutionEvent().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionEvent { + return new TaskExecutionEvent().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionEvent { + return new TaskExecutionEvent().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionEvent | PlainMessage | undefined, b: TaskExecutionEvent | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionEvent, a, b); + } +} + +/** + * This message contains metadata about external resources produced or used by a specific task execution. + * + * @generated from message flyteidl.event.ExternalResourceInfo + */ +export class ExternalResourceInfo extends Message { + /** + * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + * + * @generated from field: string external_id = 1; + */ + externalId = ""; + + /** + * A unique index for the external resource with respect to all external resources for this task. Although the + * identifier may change between task reporting events or retries, this will remain the same to enable aggregating + * information from multiple reports. + * + * @generated from field: uint32 index = 2; + */ + index = 0; + + /** + * Retry attempt number for this external resource, ie., 2 for the second attempt + * + * @generated from field: uint32 retry_attempt = 3; + */ + retryAttempt = 0; + + /** + * Phase associated with the external resource + * + * @generated from field: flyteidl.core.TaskExecution.Phase phase = 4; + */ + phase = TaskExecution_Phase.UNDEFINED; + + /** + * Captures the status of caching for this external resource execution. + * + * @generated from field: flyteidl.core.CatalogCacheStatus cache_status = 5; + */ + cacheStatus = CatalogCacheStatus.CACHE_DISABLED; + + /** + * log information for the external resource execution + * + * @generated from field: repeated flyteidl.core.TaskLog logs = 6; + */ + logs: TaskLog[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.ExternalResourceInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "external_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "retry_attempt", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 4, name: "phase", kind: "enum", T: proto3.getEnumType(TaskExecution_Phase) }, + { no: 5, name: "cache_status", kind: "enum", T: proto3.getEnumType(CatalogCacheStatus) }, + { no: 6, name: "logs", kind: "message", T: TaskLog, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ExternalResourceInfo { + return new ExternalResourceInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ExternalResourceInfo { + return new ExternalResourceInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ExternalResourceInfo { + return new ExternalResourceInfo().fromJsonString(jsonString, options); + } + + static equals(a: ExternalResourceInfo | PlainMessage | undefined, b: ExternalResourceInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(ExternalResourceInfo, a, b); + } +} + +/** + * This message holds task execution metadata specific to resource allocation used to manage concurrent + * executions for a project namespace. + * + * @generated from message flyteidl.event.ResourcePoolInfo + */ +export class ResourcePoolInfo extends Message { + /** + * Unique resource ID used to identify this execution when allocating a token. + * + * @generated from field: string allocation_token = 1; + */ + allocationToken = ""; + + /** + * Namespace under which this task execution requested an allocation token. + * + * @generated from field: string namespace = 2; + */ + namespace = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.ResourcePoolInfo"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "allocation_token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ResourcePoolInfo { + return new ResourcePoolInfo().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ResourcePoolInfo { + return new ResourcePoolInfo().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ResourcePoolInfo { + return new ResourcePoolInfo().fromJsonString(jsonString, options); + } + + static equals(a: ResourcePoolInfo | PlainMessage | undefined, b: ResourcePoolInfo | PlainMessage | undefined): boolean { + return proto3.util.equals(ResourcePoolInfo, a, b); + } +} + +/** + * Holds metadata around how a task was executed. + * As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, + * and more may grow in size but not change necessarily based on the phase transition that sparked the event update. + * Metadata is a container for these attributes across the task execution lifecycle. + * + * @generated from message flyteidl.event.TaskExecutionMetadata + */ +export class TaskExecutionMetadata extends Message { + /** + * Unique, generated name for this task execution used by the backend. + * + * @generated from field: string generated_name = 1; + */ + generatedName = ""; + + /** + * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + * + * @generated from field: repeated flyteidl.event.ExternalResourceInfo external_resources = 2; + */ + externalResources: ExternalResourceInfo[] = []; + + /** + * Includes additional data on concurrent resource management used during execution.. + * This is a repeated field because a plugin can request multiple resource allocations during execution. + * + * @generated from field: repeated flyteidl.event.ResourcePoolInfo resource_pool_info = 3; + */ + resourcePoolInfo: ResourcePoolInfo[] = []; + + /** + * The identifier of the plugin used to execute this task. + * + * @generated from field: string plugin_identifier = 4; + */ + pluginIdentifier = ""; + + /** + * @generated from field: flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; + */ + instanceClass = TaskExecutionMetadata_InstanceClass.DEFAULT; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.event.TaskExecutionMetadata"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "generated_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "external_resources", kind: "message", T: ExternalResourceInfo, repeated: true }, + { no: 3, name: "resource_pool_info", kind: "message", T: ResourcePoolInfo, repeated: true }, + { no: 4, name: "plugin_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 16, name: "instance_class", kind: "enum", T: proto3.getEnumType(TaskExecutionMetadata_InstanceClass) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskExecutionMetadata { + return new TaskExecutionMetadata().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskExecutionMetadata { + return new TaskExecutionMetadata().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskExecutionMetadata { + return new TaskExecutionMetadata().fromJsonString(jsonString, options); + } + + static equals(a: TaskExecutionMetadata | PlainMessage | undefined, b: TaskExecutionMetadata | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskExecutionMetadata, a, b); + } +} + +/** + * Includes the broad category of machine used for this specific task execution. + * + * @generated from enum flyteidl.event.TaskExecutionMetadata.InstanceClass + */ +export enum TaskExecutionMetadata_InstanceClass { + /** + * The default instance class configured for the flyte application platform. + * + * @generated from enum value: DEFAULT = 0; + */ + DEFAULT = 0, + + /** + * The instance class configured for interruptible tasks. + * + * @generated from enum value: INTERRUPTIBLE = 1; + */ + INTERRUPTIBLE = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(TaskExecutionMetadata_InstanceClass) +proto3.util.setEnumType(TaskExecutionMetadata_InstanceClass, "flyteidl.event.TaskExecutionMetadata.InstanceClass", [ + { no: 0, name: "DEFAULT" }, + { no: 1, name: "INTERRUPTIBLE" }, +]); + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts new file mode 100644 index 0000000000..dba83463f0 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/array_job_pb.ts @@ -0,0 +1,88 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/array_job.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; + +/** + * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component + * will be executed concurrently. + * + * @generated from message flyteidl.plugins.ArrayJob + */ +export class ArrayJob extends Message { + /** + * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an + * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + * running instances might be more. This has to be a positive number if assigned. Default value is size. + * + * @generated from field: int64 parallelism = 1; + */ + parallelism = protoInt64.zero; + + /** + * Defines the number of instances to launch at most. This number should match the size of the input if the job + * requires processing of all input data. This has to be a positive number. + * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. + * + * @generated from field: int64 size = 2; + */ + size = protoInt64.zero; + + /** + * @generated from oneof flyteidl.plugins.ArrayJob.success_criteria + */ + successCriteria: { + /** + * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + * assigned. Default value is size (if specified). + * + * @generated from field: int64 min_successes = 3; + */ + value: bigint; + case: "minSuccesses"; + } | { + /** + * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array + * job can be marked successful. + * + * @generated from field: float min_success_ratio = 4; + */ + value: number; + case: "minSuccessRatio"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.ArrayJob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "parallelism", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 2, name: "size", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, + { no: 3, name: "min_successes", kind: "scalar", T: 3 /* ScalarType.INT64 */, oneof: "success_criteria" }, + { no: 4, name: "min_success_ratio", kind: "scalar", T: 2 /* ScalarType.FLOAT */, oneof: "success_criteria" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ArrayJob { + return new ArrayJob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ArrayJob { + return new ArrayJob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ArrayJob { + return new ArrayJob().fromJsonString(jsonString, options); + } + + static equals(a: ArrayJob | PlainMessage | undefined, b: ArrayJob | PlainMessage | undefined): boolean { + return proto3.util.equals(ArrayJob, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts new file mode 100644 index 0000000000..536e2ef8d8 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/dask_pb.ts @@ -0,0 +1,166 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/dask.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { Resources } from "../core/tasks_pb.js"; + +/** + * Custom Proto for Dask Plugin. + * + * @generated from message flyteidl.plugins.DaskJob + */ +export class DaskJob extends Message { + /** + * Spec for the scheduler pod. + * + * @generated from field: flyteidl.plugins.DaskScheduler scheduler = 1; + */ + scheduler?: DaskScheduler; + + /** + * Spec of the default worker group. + * + * @generated from field: flyteidl.plugins.DaskWorkerGroup workers = 2; + */ + workers?: DaskWorkerGroup; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.DaskJob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "scheduler", kind: "message", T: DaskScheduler }, + { no: 2, name: "workers", kind: "message", T: DaskWorkerGroup }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DaskJob { + return new DaskJob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DaskJob { + return new DaskJob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DaskJob { + return new DaskJob().fromJsonString(jsonString, options); + } + + static equals(a: DaskJob | PlainMessage | undefined, b: DaskJob | PlainMessage | undefined): boolean { + return proto3.util.equals(DaskJob, a, b); + } +} + +/** + * Specification for the scheduler pod. + * + * @generated from message flyteidl.plugins.DaskScheduler + */ +export class DaskScheduler extends Message { + /** + * Optional image to use. If unset, will use the default image. + * + * @generated from field: string image = 1; + */ + image = ""; + + /** + * Resources assigned to the scheduler pod. + * + * @generated from field: flyteidl.core.Resources resources = 2; + */ + resources?: Resources; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.DaskScheduler"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "resources", kind: "message", T: Resources }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DaskScheduler { + return new DaskScheduler().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DaskScheduler { + return new DaskScheduler().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DaskScheduler { + return new DaskScheduler().fromJsonString(jsonString, options); + } + + static equals(a: DaskScheduler | PlainMessage | undefined, b: DaskScheduler | PlainMessage | undefined): boolean { + return proto3.util.equals(DaskScheduler, a, b); + } +} + +/** + * @generated from message flyteidl.plugins.DaskWorkerGroup + */ +export class DaskWorkerGroup extends Message { + /** + * Number of workers in the group. + * + * @generated from field: uint32 number_of_workers = 1; + */ + numberOfWorkers = 0; + + /** + * Optional image to use for the pods of the worker group. If unset, will use the default image. + * + * @generated from field: string image = 2; + */ + image = ""; + + /** + * Resources assigned to the all pods of the worker group. + * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices + * it is advised to only set limits. If requests are not explicitly set, the plugin will make + * sure to set requests==limits. + * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. + * + * @generated from field: flyteidl.core.Resources resources = 3; + */ + resources?: Resources; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.DaskWorkerGroup"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "number_of_workers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "resources", kind: "message", T: Resources }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DaskWorkerGroup { + return new DaskWorkerGroup().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DaskWorkerGroup { + return new DaskWorkerGroup().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DaskWorkerGroup { + return new DaskWorkerGroup().fromJsonString(jsonString, options); + } + + static equals(a: DaskWorkerGroup | PlainMessage | undefined, b: DaskWorkerGroup | PlainMessage | undefined): boolean { + return proto3.util.equals(DaskWorkerGroup, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts new file mode 100644 index 0000000000..aec23a4da5 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/common_pb.ts @@ -0,0 +1,124 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/kubeflow/common.proto (package flyteidl.plugins.kubeflow, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum flyteidl.plugins.kubeflow.RestartPolicy + */ +export enum RestartPolicy { + /** + * @generated from enum value: RESTART_POLICY_NEVER = 0; + */ + NEVER = 0, + + /** + * @generated from enum value: RESTART_POLICY_ON_FAILURE = 1; + */ + ON_FAILURE = 1, + + /** + * @generated from enum value: RESTART_POLICY_ALWAYS = 2; + */ + ALWAYS = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(RestartPolicy) +proto3.util.setEnumType(RestartPolicy, "flyteidl.plugins.kubeflow.RestartPolicy", [ + { no: 0, name: "RESTART_POLICY_NEVER" }, + { no: 1, name: "RESTART_POLICY_ON_FAILURE" }, + { no: 2, name: "RESTART_POLICY_ALWAYS" }, +]); + +/** + * @generated from enum flyteidl.plugins.kubeflow.CleanPodPolicy + */ +export enum CleanPodPolicy { + /** + * @generated from enum value: CLEANPOD_POLICY_NONE = 0; + */ + CLEANPOD_POLICY_NONE = 0, + + /** + * @generated from enum value: CLEANPOD_POLICY_RUNNING = 1; + */ + CLEANPOD_POLICY_RUNNING = 1, + + /** + * @generated from enum value: CLEANPOD_POLICY_ALL = 2; + */ + CLEANPOD_POLICY_ALL = 2, +} +// Retrieve enum metadata with: proto3.getEnumType(CleanPodPolicy) +proto3.util.setEnumType(CleanPodPolicy, "flyteidl.plugins.kubeflow.CleanPodPolicy", [ + { no: 0, name: "CLEANPOD_POLICY_NONE" }, + { no: 1, name: "CLEANPOD_POLICY_RUNNING" }, + { no: 2, name: "CLEANPOD_POLICY_ALL" }, +]); + +/** + * @generated from message flyteidl.plugins.kubeflow.RunPolicy + */ +export class RunPolicy extends Message { + /** + * Defines the policy to kill pods after the job completes. Default to None. + * + * @generated from field: flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; + */ + cleanPodPolicy = CleanPodPolicy.CLEANPOD_POLICY_NONE; + + /** + * TTL to clean up jobs. Default to infinite. + * + * @generated from field: int32 ttl_seconds_after_finished = 2; + */ + ttlSecondsAfterFinished = 0; + + /** + * Specifies the duration in seconds relative to the startTime that the job may be active + * before the system tries to terminate it; value must be positive integer. + * + * @generated from field: int32 active_deadline_seconds = 3; + */ + activeDeadlineSeconds = 0; + + /** + * Number of retries before marking this job failed. + * + * @generated from field: int32 backoff_limit = 4; + */ + backoffLimit = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.RunPolicy"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "clean_pod_policy", kind: "enum", T: proto3.getEnumType(CleanPodPolicy) }, + { no: 2, name: "ttl_seconds_after_finished", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "active_deadline_seconds", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "backoff_limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RunPolicy { + return new RunPolicy().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RunPolicy { + return new RunPolicy().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RunPolicy { + return new RunPolicy().fromJsonString(jsonString, options); + } + + static equals(a: RunPolicy | PlainMessage | undefined, b: RunPolicy | PlainMessage | undefined): boolean { + return proto3.util.equals(RunPolicy, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts new file mode 100644 index 0000000000..89ff16b82b --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/mpi_pb.ts @@ -0,0 +1,150 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/kubeflow/mpi.proto (package flyteidl.plugins.kubeflow, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { RestartPolicy, RunPolicy } from "./common_pb.js"; +import { Resources } from "../../core/tasks_pb.js"; + +/** + * Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator + * + * @generated from message flyteidl.plugins.kubeflow.DistributedMPITrainingTask + */ +export class DistributedMPITrainingTask extends Message { + /** + * Worker replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; + */ + workerReplicas?: DistributedMPITrainingReplicaSpec; + + /** + * Master replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; + */ + launcherReplicas?: DistributedMPITrainingReplicaSpec; + + /** + * RunPolicy encapsulates various runtime policies of the distributed training + * job, for example how to clean up resources and how long the job can stay + * active. + * + * @generated from field: flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + runPolicy?: RunPolicy; + + /** + * Number of slots per worker + * + * @generated from field: int32 slots = 4; + */ + slots = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.DistributedMPITrainingTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "worker_replicas", kind: "message", T: DistributedMPITrainingReplicaSpec }, + { no: 2, name: "launcher_replicas", kind: "message", T: DistributedMPITrainingReplicaSpec }, + { no: 3, name: "run_policy", kind: "message", T: RunPolicy }, + { no: 4, name: "slots", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedMPITrainingTask { + return new DistributedMPITrainingTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedMPITrainingTask { + return new DistributedMPITrainingTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedMPITrainingTask { + return new DistributedMPITrainingTask().fromJsonString(jsonString, options); + } + + static equals(a: DistributedMPITrainingTask | PlainMessage | undefined, b: DistributedMPITrainingTask | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedMPITrainingTask, a, b); + } +} + +/** + * Replica specification for distributed MPI training + * + * @generated from message flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec + */ +export class DistributedMPITrainingReplicaSpec extends Message { + /** + * Number of replicas + * + * @generated from field: int32 replicas = 1; + */ + replicas = 0; + + /** + * Image used for the replica group + * + * @generated from field: string image = 2; + */ + image = ""; + + /** + * Resources required for the replica group + * + * @generated from field: flyteidl.core.Resources resources = 3; + */ + resources?: Resources; + + /** + * Restart policy determines whether pods will be restarted when they exit + * + * @generated from field: flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + restartPolicy = RestartPolicy.NEVER; + + /** + * MPI sometimes requires different command set for different replica groups + * + * @generated from field: repeated string command = 5; + */ + command: string[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "resources", kind: "message", T: Resources }, + { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) }, + { no: 5, name: "command", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedMPITrainingReplicaSpec { + return new DistributedMPITrainingReplicaSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedMPITrainingReplicaSpec { + return new DistributedMPITrainingReplicaSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedMPITrainingReplicaSpec { + return new DistributedMPITrainingReplicaSpec().fromJsonString(jsonString, options); + } + + static equals(a: DistributedMPITrainingReplicaSpec | PlainMessage | undefined, b: DistributedMPITrainingReplicaSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedMPITrainingReplicaSpec, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts new file mode 100644 index 0000000000..2dd38a56ba --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/pytorch_pb.ts @@ -0,0 +1,204 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/kubeflow/pytorch.proto (package flyteidl.plugins.kubeflow, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { RestartPolicy, RunPolicy } from "./common_pb.js"; +import { Resources } from "../../core/tasks_pb.js"; + +/** + * Custom proto for torch elastic config for distributed training using + * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go + * + * @generated from message flyteidl.plugins.kubeflow.ElasticConfig + */ +export class ElasticConfig extends Message { + /** + * @generated from field: string rdzv_backend = 1; + */ + rdzvBackend = ""; + + /** + * @generated from field: int32 min_replicas = 2; + */ + minReplicas = 0; + + /** + * @generated from field: int32 max_replicas = 3; + */ + maxReplicas = 0; + + /** + * @generated from field: int32 nproc_per_node = 4; + */ + nprocPerNode = 0; + + /** + * @generated from field: int32 max_restarts = 5; + */ + maxRestarts = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.ElasticConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rdzv_backend", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "nproc_per_node", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "max_restarts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ElasticConfig { + return new ElasticConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ElasticConfig { + return new ElasticConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ElasticConfig { + return new ElasticConfig().fromJsonString(jsonString, options); + } + + static equals(a: ElasticConfig | PlainMessage | undefined, b: ElasticConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(ElasticConfig, a, b); + } +} + +/** + * Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator + * + * @generated from message flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask + */ +export class DistributedPyTorchTrainingTask extends Message { + /** + * Worker replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; + */ + workerReplicas?: DistributedPyTorchTrainingReplicaSpec; + + /** + * Master replicas spec, master replicas can only have 1 replica + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; + */ + masterReplicas?: DistributedPyTorchTrainingReplicaSpec; + + /** + * RunPolicy encapsulates various runtime policies of the distributed training + * job, for example how to clean up resources and how long the job can stay + * active. + * + * @generated from field: flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; + */ + runPolicy?: RunPolicy; + + /** + * config for an elastic pytorch job + * + * @generated from field: flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; + */ + elasticConfig?: ElasticConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "worker_replicas", kind: "message", T: DistributedPyTorchTrainingReplicaSpec }, + { no: 2, name: "master_replicas", kind: "message", T: DistributedPyTorchTrainingReplicaSpec }, + { no: 3, name: "run_policy", kind: "message", T: RunPolicy }, + { no: 4, name: "elastic_config", kind: "message", T: ElasticConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedPyTorchTrainingTask { + return new DistributedPyTorchTrainingTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedPyTorchTrainingTask { + return new DistributedPyTorchTrainingTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedPyTorchTrainingTask { + return new DistributedPyTorchTrainingTask().fromJsonString(jsonString, options); + } + + static equals(a: DistributedPyTorchTrainingTask | PlainMessage | undefined, b: DistributedPyTorchTrainingTask | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedPyTorchTrainingTask, a, b); + } +} + +/** + * @generated from message flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec + */ +export class DistributedPyTorchTrainingReplicaSpec extends Message { + /** + * Number of replicas + * + * @generated from field: int32 replicas = 1; + */ + replicas = 0; + + /** + * Image used for the replica group + * + * @generated from field: string image = 2; + */ + image = ""; + + /** + * Resources required for the replica group + * + * @generated from field: flyteidl.core.Resources resources = 3; + */ + resources?: Resources; + + /** + * RestartPolicy determines whether pods will be restarted when they exit + * + * @generated from field: flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + restartPolicy = RestartPolicy.NEVER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "resources", kind: "message", T: Resources }, + { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedPyTorchTrainingReplicaSpec { + return new DistributedPyTorchTrainingReplicaSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedPyTorchTrainingReplicaSpec { + return new DistributedPyTorchTrainingReplicaSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedPyTorchTrainingReplicaSpec { + return new DistributedPyTorchTrainingReplicaSpec().fromJsonString(jsonString, options); + } + + static equals(a: DistributedPyTorchTrainingReplicaSpec | PlainMessage | undefined, b: DistributedPyTorchTrainingReplicaSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedPyTorchTrainingReplicaSpec, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts new file mode 100644 index 0000000000..356385d858 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/kubeflow/tensorflow_pb.ts @@ -0,0 +1,148 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/kubeflow/tensorflow.proto (package flyteidl.plugins.kubeflow, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { RestartPolicy, RunPolicy } from "./common_pb.js"; +import { Resources } from "../../core/tasks_pb.js"; + +/** + * Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator + * + * @generated from message flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask + */ +export class DistributedTensorflowTrainingTask extends Message { + /** + * Worker replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; + */ + workerReplicas?: DistributedTensorflowTrainingReplicaSpec; + + /** + * Parameter server replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; + */ + psReplicas?: DistributedTensorflowTrainingReplicaSpec; + + /** + * Chief replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; + */ + chiefReplicas?: DistributedTensorflowTrainingReplicaSpec; + + /** + * RunPolicy encapsulates various runtime policies of the distributed training + * job, for example how to clean up resources and how long the job can stay + * active. + * + * @generated from field: flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; + */ + runPolicy?: RunPolicy; + + /** + * Evaluator replicas spec + * + * @generated from field: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; + */ + evaluatorReplicas?: DistributedTensorflowTrainingReplicaSpec; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "worker_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, + { no: 2, name: "ps_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, + { no: 3, name: "chief_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, + { no: 4, name: "run_policy", kind: "message", T: RunPolicy }, + { no: 5, name: "evaluator_replicas", kind: "message", T: DistributedTensorflowTrainingReplicaSpec }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedTensorflowTrainingTask { + return new DistributedTensorflowTrainingTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedTensorflowTrainingTask { + return new DistributedTensorflowTrainingTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedTensorflowTrainingTask { + return new DistributedTensorflowTrainingTask().fromJsonString(jsonString, options); + } + + static equals(a: DistributedTensorflowTrainingTask | PlainMessage | undefined, b: DistributedTensorflowTrainingTask | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedTensorflowTrainingTask, a, b); + } +} + +/** + * @generated from message flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec + */ +export class DistributedTensorflowTrainingReplicaSpec extends Message { + /** + * Number of replicas + * + * @generated from field: int32 replicas = 1; + */ + replicas = 0; + + /** + * Image used for the replica group + * + * @generated from field: string image = 2; + */ + image = ""; + + /** + * Resources required for the replica group + * + * @generated from field: flyteidl.core.Resources resources = 3; + */ + resources?: Resources; + + /** + * RestartPolicy Determines whether pods will be restarted when they exit + * + * @generated from field: flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; + */ + restartPolicy = RestartPolicy.NEVER; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "image", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "resources", kind: "message", T: Resources }, + { no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(RestartPolicy) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedTensorflowTrainingReplicaSpec { + return new DistributedTensorflowTrainingReplicaSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedTensorflowTrainingReplicaSpec { + return new DistributedTensorflowTrainingReplicaSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedTensorflowTrainingReplicaSpec { + return new DistributedTensorflowTrainingReplicaSpec().fromJsonString(jsonString, options); + } + + static equals(a: DistributedTensorflowTrainingReplicaSpec | PlainMessage | undefined, b: DistributedTensorflowTrainingReplicaSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedTensorflowTrainingReplicaSpec, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts new file mode 100644 index 0000000000..d96ef7fd6a --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/mpi_pb.ts @@ -0,0 +1,68 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/mpi.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md + * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator + * + * @generated from message flyteidl.plugins.DistributedMPITrainingTask + */ +export class DistributedMPITrainingTask extends Message { + /** + * number of worker spawned in the cluster for this job + * + * @generated from field: int32 num_workers = 1; + */ + numWorkers = 0; + + /** + * number of launcher replicas spawned in the cluster for this job + * The launcher pod invokes mpirun and communicates with worker pods through MPI. + * + * @generated from field: int32 num_launcher_replicas = 2; + */ + numLauncherReplicas = 0; + + /** + * number of slots per worker used in hostfile. + * The available slots (GPUs) in each pod. + * + * @generated from field: int32 slots = 3; + */ + slots = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.DistributedMPITrainingTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "num_workers", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "num_launcher_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "slots", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedMPITrainingTask { + return new DistributedMPITrainingTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedMPITrainingTask { + return new DistributedMPITrainingTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedMPITrainingTask { + return new DistributedMPITrainingTask().fromJsonString(jsonString, options); + } + + static equals(a: DistributedMPITrainingTask | PlainMessage | undefined, b: DistributedMPITrainingTask | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedMPITrainingTask, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts new file mode 100644 index 0000000000..17de1bef47 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/presto_pb.ts @@ -0,0 +1,66 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/presto.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field + * of a Presto task's TaskTemplate + * + * @generated from message flyteidl.plugins.PrestoQuery + */ +export class PrestoQuery extends Message { + /** + * @generated from field: string routing_group = 1; + */ + routingGroup = ""; + + /** + * @generated from field: string catalog = 2; + */ + catalog = ""; + + /** + * @generated from field: string schema = 3; + */ + schema = ""; + + /** + * @generated from field: string statement = 4; + */ + statement = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.PrestoQuery"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "routing_group", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "catalog", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "schema", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "statement", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PrestoQuery { + return new PrestoQuery().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PrestoQuery { + return new PrestoQuery().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PrestoQuery { + return new PrestoQuery().fromJsonString(jsonString, options); + } + + static equals(a: PrestoQuery | PlainMessage | undefined, b: PrestoQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(PrestoQuery, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts new file mode 100644 index 0000000000..df12d51991 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/pytorch_pb.ts @@ -0,0 +1,122 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/pytorch.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Custom proto for torch elastic config for distributed training using + * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go + * + * @generated from message flyteidl.plugins.ElasticConfig + */ +export class ElasticConfig extends Message { + /** + * @generated from field: string rdzv_backend = 1; + */ + rdzvBackend = ""; + + /** + * @generated from field: int32 min_replicas = 2; + */ + minReplicas = 0; + + /** + * @generated from field: int32 max_replicas = 3; + */ + maxReplicas = 0; + + /** + * @generated from field: int32 nproc_per_node = 4; + */ + nprocPerNode = 0; + + /** + * @generated from field: int32 max_restarts = 5; + */ + maxRestarts = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.ElasticConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "rdzv_backend", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "nproc_per_node", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "max_restarts", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ElasticConfig { + return new ElasticConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ElasticConfig { + return new ElasticConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ElasticConfig { + return new ElasticConfig().fromJsonString(jsonString, options); + } + + static equals(a: ElasticConfig | PlainMessage | undefined, b: ElasticConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(ElasticConfig, a, b); + } +} + +/** + * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator + * + * @generated from message flyteidl.plugins.DistributedPyTorchTrainingTask + */ +export class DistributedPyTorchTrainingTask extends Message { + /** + * number of worker replicas spawned in the cluster for this job + * + * @generated from field: int32 workers = 1; + */ + workers = 0; + + /** + * config for an elastic pytorch job + * + * + * @generated from field: flyteidl.plugins.ElasticConfig elastic_config = 2; + */ + elasticConfig?: ElasticConfig; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.DistributedPyTorchTrainingTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workers", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "elastic_config", kind: "message", T: ElasticConfig }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedPyTorchTrainingTask { + return new DistributedPyTorchTrainingTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedPyTorchTrainingTask { + return new DistributedPyTorchTrainingTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedPyTorchTrainingTask { + return new DistributedPyTorchTrainingTask().fromJsonString(jsonString, options); + } + + static equals(a: DistributedPyTorchTrainingTask | PlainMessage | undefined, b: DistributedPyTorchTrainingTask | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedPyTorchTrainingTask, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts new file mode 100644 index 0000000000..10f740a5ac --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/qubole_pb.ts @@ -0,0 +1,157 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/qubole.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Defines a query to execute on a hive cluster. + * + * @generated from message flyteidl.plugins.HiveQuery + */ +export class HiveQuery extends Message { + /** + * @generated from field: string query = 1; + */ + query = ""; + + /** + * @generated from field: uint32 timeout_sec = 2; + */ + timeoutSec = 0; + + /** + * @generated from field: uint32 retryCount = 3; + */ + retryCount = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.HiveQuery"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "timeout_sec", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "retryCount", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HiveQuery { + return new HiveQuery().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HiveQuery { + return new HiveQuery().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HiveQuery { + return new HiveQuery().fromJsonString(jsonString, options); + } + + static equals(a: HiveQuery | PlainMessage | undefined, b: HiveQuery | PlainMessage | undefined): boolean { + return proto3.util.equals(HiveQuery, a, b); + } +} + +/** + * Defines a collection of hive queries. + * + * @generated from message flyteidl.plugins.HiveQueryCollection + */ +export class HiveQueryCollection extends Message { + /** + * @generated from field: repeated flyteidl.plugins.HiveQuery queries = 2; + */ + queries: HiveQuery[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.HiveQueryCollection"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 2, name: "queries", kind: "message", T: HiveQuery, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HiveQueryCollection { + return new HiveQueryCollection().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HiveQueryCollection { + return new HiveQueryCollection().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HiveQueryCollection { + return new HiveQueryCollection().fromJsonString(jsonString, options); + } + + static equals(a: HiveQueryCollection | PlainMessage | undefined, b: HiveQueryCollection | PlainMessage | undefined): boolean { + return proto3.util.equals(HiveQueryCollection, a, b); + } +} + +/** + * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field + * of a hive task's TaskTemplate + * + * @generated from message flyteidl.plugins.QuboleHiveJob + */ +export class QuboleHiveJob extends Message { + /** + * @generated from field: string cluster_label = 1; + */ + clusterLabel = ""; + + /** + * @generated from field: flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; + * @deprecated + */ + queryCollection?: HiveQueryCollection; + + /** + * @generated from field: repeated string tags = 3; + */ + tags: string[] = []; + + /** + * @generated from field: flyteidl.plugins.HiveQuery query = 4; + */ + query?: HiveQuery; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.QuboleHiveJob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "cluster_label", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "query_collection", kind: "message", T: HiveQueryCollection }, + { no: 3, name: "tags", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "query", kind: "message", T: HiveQuery }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): QuboleHiveJob { + return new QuboleHiveJob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): QuboleHiveJob { + return new QuboleHiveJob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): QuboleHiveJob { + return new QuboleHiveJob().fromJsonString(jsonString, options); + } + + static equals(a: QuboleHiveJob | PlainMessage | undefined, b: QuboleHiveJob | PlainMessage | undefined): boolean { + return proto3.util.equals(QuboleHiveJob, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts new file mode 100644 index 0000000000..289b24404c --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/ray_pb.ts @@ -0,0 +1,247 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/ray.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * RayJobSpec defines the desired state of RayJob + * + * @generated from message flyteidl.plugins.RayJob + */ +export class RayJob extends Message { + /** + * RayClusterSpec is the cluster template to run the job + * + * @generated from field: flyteidl.plugins.RayCluster ray_cluster = 1; + */ + rayCluster?: RayCluster; + + /** + * runtime_env is base64 encoded. + * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments + * + * @generated from field: string runtime_env = 2; + */ + runtimeEnv = ""; + + /** + * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. + * + * @generated from field: bool shutdown_after_job_finishes = 3; + */ + shutdownAfterJobFinishes = false; + + /** + * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. + * + * @generated from field: int32 ttl_seconds_after_finished = 4; + */ + ttlSecondsAfterFinished = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.RayJob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ray_cluster", kind: "message", T: RayCluster }, + { no: 2, name: "runtime_env", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "shutdown_after_job_finishes", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 4, name: "ttl_seconds_after_finished", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RayJob { + return new RayJob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RayJob { + return new RayJob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RayJob { + return new RayJob().fromJsonString(jsonString, options); + } + + static equals(a: RayJob | PlainMessage | undefined, b: RayJob | PlainMessage | undefined): boolean { + return proto3.util.equals(RayJob, a, b); + } +} + +/** + * Define Ray cluster defines the desired state of RayCluster + * + * @generated from message flyteidl.plugins.RayCluster + */ +export class RayCluster extends Message { + /** + * HeadGroupSpecs are the spec for the head pod + * + * @generated from field: flyteidl.plugins.HeadGroupSpec head_group_spec = 1; + */ + headGroupSpec?: HeadGroupSpec; + + /** + * WorkerGroupSpecs are the specs for the worker pods + * + * @generated from field: repeated flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; + */ + workerGroupSpec: WorkerGroupSpec[] = []; + + /** + * Whether to enable autoscaling. + * + * @generated from field: bool enable_autoscaling = 3; + */ + enableAutoscaling = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.RayCluster"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "head_group_spec", kind: "message", T: HeadGroupSpec }, + { no: 2, name: "worker_group_spec", kind: "message", T: WorkerGroupSpec, repeated: true }, + { no: 3, name: "enable_autoscaling", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): RayCluster { + return new RayCluster().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): RayCluster { + return new RayCluster().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): RayCluster { + return new RayCluster().fromJsonString(jsonString, options); + } + + static equals(a: RayCluster | PlainMessage | undefined, b: RayCluster | PlainMessage | undefined): boolean { + return proto3.util.equals(RayCluster, a, b); + } +} + +/** + * HeadGroupSpec are the spec for the head pod + * + * @generated from message flyteidl.plugins.HeadGroupSpec + */ +export class HeadGroupSpec extends Message { + /** + * Optional. RayStartParams are the params of the start command: address, object-store-memory. + * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + * + * @generated from field: map ray_start_params = 1; + */ + rayStartParams: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.HeadGroupSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ray_start_params", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): HeadGroupSpec { + return new HeadGroupSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): HeadGroupSpec { + return new HeadGroupSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): HeadGroupSpec { + return new HeadGroupSpec().fromJsonString(jsonString, options); + } + + static equals(a: HeadGroupSpec | PlainMessage | undefined, b: HeadGroupSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(HeadGroupSpec, a, b); + } +} + +/** + * WorkerGroupSpec are the specs for the worker pods + * + * @generated from message flyteidl.plugins.WorkerGroupSpec + */ +export class WorkerGroupSpec extends Message { + /** + * Required. RayCluster can have multiple worker groups, and it distinguishes them by name + * + * @generated from field: string group_name = 1; + */ + groupName = ""; + + /** + * Required. Desired replicas of the worker group. Defaults to 1. + * + * @generated from field: int32 replicas = 2; + */ + replicas = 0; + + /** + * Optional. Min replicas of the worker group. MinReplicas defaults to 1. + * + * @generated from field: int32 min_replicas = 3; + */ + minReplicas = 0; + + /** + * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 + * + * @generated from field: int32 max_replicas = 4; + */ + maxReplicas = 0; + + /** + * Optional. RayStartParams are the params of the start command: address, object-store-memory. + * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + * + * @generated from field: map ray_start_params = 5; + */ + rayStartParams: { [key: string]: string } = {}; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.WorkerGroupSpec"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "group_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "min_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "max_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 5, name: "ray_start_params", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): WorkerGroupSpec { + return new WorkerGroupSpec().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): WorkerGroupSpec { + return new WorkerGroupSpec().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): WorkerGroupSpec { + return new WorkerGroupSpec().fromJsonString(jsonString, options); + } + + static equals(a: WorkerGroupSpec | PlainMessage | undefined, b: WorkerGroupSpec | PlainMessage | undefined): boolean { + return proto3.util.equals(WorkerGroupSpec, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts new file mode 100644 index 0000000000..20a5463cbb --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/spark_pb.ts @@ -0,0 +1,169 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/spark.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Struct } from "@bufbuild/protobuf"; + +/** + * @generated from message flyteidl.plugins.SparkApplication + */ +export class SparkApplication extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.SparkApplication"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SparkApplication { + return new SparkApplication().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SparkApplication { + return new SparkApplication().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SparkApplication { + return new SparkApplication().fromJsonString(jsonString, options); + } + + static equals(a: SparkApplication | PlainMessage | undefined, b: SparkApplication | PlainMessage | undefined): boolean { + return proto3.util.equals(SparkApplication, a, b); + } +} + +/** + * @generated from enum flyteidl.plugins.SparkApplication.Type + */ +export enum SparkApplication_Type { + /** + * @generated from enum value: PYTHON = 0; + */ + PYTHON = 0, + + /** + * @generated from enum value: JAVA = 1; + */ + JAVA = 1, + + /** + * @generated from enum value: SCALA = 2; + */ + SCALA = 2, + + /** + * @generated from enum value: R = 3; + */ + R = 3, +} +// Retrieve enum metadata with: proto3.getEnumType(SparkApplication_Type) +proto3.util.setEnumType(SparkApplication_Type, "flyteidl.plugins.SparkApplication.Type", [ + { no: 0, name: "PYTHON" }, + { no: 1, name: "JAVA" }, + { no: 2, name: "SCALA" }, + { no: 3, name: "R" }, +]); + +/** + * Custom Proto for Spark Plugin. + * + * @generated from message flyteidl.plugins.SparkJob + */ +export class SparkJob extends Message { + /** + * @generated from field: flyteidl.plugins.SparkApplication.Type applicationType = 1; + */ + applicationType = SparkApplication_Type.PYTHON; + + /** + * @generated from field: string mainApplicationFile = 2; + */ + mainApplicationFile = ""; + + /** + * @generated from field: string mainClass = 3; + */ + mainClass = ""; + + /** + * @generated from field: map sparkConf = 4; + */ + sparkConf: { [key: string]: string } = {}; + + /** + * @generated from field: map hadoopConf = 5; + */ + hadoopConf: { [key: string]: string } = {}; + + /** + * Executor path for Python jobs. + * + * @generated from field: string executorPath = 6; + */ + executorPath = ""; + + /** + * Databricks job configuration. + * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. + * + * @generated from field: google.protobuf.Struct databricksConf = 7; + */ + databricksConf?: Struct; + + /** + * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html + * This token can be set in either flytepropeller or flytekit. + * + * @generated from field: string databricksToken = 8; + */ + databricksToken = ""; + + /** + * Domain name of your deployment. Use the form .cloud.databricks.com. + * This instance name can be set in either flytepropeller or flytekit. + * + * @generated from field: string databricksInstance = 9; + */ + databricksInstance = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.SparkJob"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "applicationType", kind: "enum", T: proto3.getEnumType(SparkApplication_Type) }, + { no: 2, name: "mainApplicationFile", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "mainClass", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "sparkConf", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 5, name: "hadoopConf", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} }, + { no: 6, name: "executorPath", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "databricksConf", kind: "message", T: Struct }, + { no: 8, name: "databricksToken", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "databricksInstance", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): SparkJob { + return new SparkJob().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): SparkJob { + return new SparkJob().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): SparkJob { + return new SparkJob().fromJsonString(jsonString, options); + } + + static equals(a: SparkJob | PlainMessage | undefined, b: SparkJob | PlainMessage | undefined): boolean { + return proto3.util.equals(SparkJob, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts new file mode 100644 index 0000000000..a2e1b9129b --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/tensorflow_pb.ts @@ -0,0 +1,74 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/tensorflow.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator + * + * @generated from message flyteidl.plugins.DistributedTensorflowTrainingTask + */ +export class DistributedTensorflowTrainingTask extends Message { + /** + * number of worker replicas spawned in the cluster for this job + * + * @generated from field: int32 workers = 1; + */ + workers = 0; + + /** + * PS -> Parameter server + * number of ps replicas spawned in the cluster for this job + * + * @generated from field: int32 ps_replicas = 2; + */ + psReplicas = 0; + + /** + * number of chief replicas spawned in the cluster for this job + * + * @generated from field: int32 chief_replicas = 3; + */ + chiefReplicas = 0; + + /** + * number of evaluator replicas spawned in the cluster for this job + * + * @generated from field: int32 evaluator_replicas = 4; + */ + evaluatorReplicas = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.DistributedTensorflowTrainingTask"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "workers", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 2, name: "ps_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "chief_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 4, name: "evaluator_replicas", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): DistributedTensorflowTrainingTask { + return new DistributedTensorflowTrainingTask().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): DistributedTensorflowTrainingTask { + return new DistributedTensorflowTrainingTask().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): DistributedTensorflowTrainingTask { + return new DistributedTensorflowTrainingTask().fromJsonString(jsonString, options); + } + + static equals(a: DistributedTensorflowTrainingTask | PlainMessage | undefined, b: DistributedTensorflowTrainingTask | PlainMessage | undefined): boolean { + return proto3.util.equals(DistributedTensorflowTrainingTask, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts b/flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts new file mode 100644 index 0000000000..3c55163722 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/plugins/waitable_pb.ts @@ -0,0 +1,61 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/plugins/waitable.proto (package flyteidl.plugins, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { WorkflowExecutionIdentifier } from "../core/identifier_pb.js"; +import { WorkflowExecution_Phase } from "../core/execution_pb.js"; + +/** + * Represents an Execution that was launched and could be waited on. + * + * @generated from message flyteidl.plugins.Waitable + */ +export class Waitable extends Message { + /** + * @generated from field: flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; + */ + wfExecId?: WorkflowExecutionIdentifier; + + /** + * @generated from field: flyteidl.core.WorkflowExecution.Phase phase = 2; + */ + phase = WorkflowExecution_Phase.UNDEFINED; + + /** + * @generated from field: string workflow_id = 3; + */ + workflowId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.plugins.Waitable"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "wf_exec_id", kind: "message", T: WorkflowExecutionIdentifier }, + { no: 2, name: "phase", kind: "enum", T: proto3.getEnumType(WorkflowExecution_Phase) }, + { no: 3, name: "workflow_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): Waitable { + return new Waitable().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): Waitable { + return new Waitable().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): Waitable { + return new Waitable().fromJsonString(jsonString, options); + } + + static equals(a: Waitable | PlainMessage | undefined, b: Waitable | PlainMessage | undefined): boolean { + return proto3.util.equals(Waitable, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts new file mode 100644 index 0000000000..3a174aeffc --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/admin_connect.ts @@ -0,0 +1,632 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/admin.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { Task, TaskCreateRequest, TaskCreateResponse, TaskList } from "../admin/task_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; +import { NamedEntity, NamedEntityGetRequest, NamedEntityIdentifierList, NamedEntityIdentifierListRequest, NamedEntityList, NamedEntityListRequest, NamedEntityUpdateRequest, NamedEntityUpdateResponse, ObjectGetRequest, ResourceListRequest } from "../admin/common_pb.js"; +import { Workflow, WorkflowCreateRequest, WorkflowCreateResponse, WorkflowList } from "../admin/workflow_pb.js"; +import { ActiveLaunchPlanListRequest, ActiveLaunchPlanRequest, LaunchPlan, LaunchPlanCreateRequest, LaunchPlanCreateResponse, LaunchPlanList, LaunchPlanUpdateRequest, LaunchPlanUpdateResponse } from "../admin/launch_plan_pb.js"; +import { Execution, ExecutionCreateRequest, ExecutionCreateResponse, ExecutionList, ExecutionRecoverRequest, ExecutionRelaunchRequest, ExecutionTerminateRequest, ExecutionTerminateResponse, ExecutionUpdateRequest, ExecutionUpdateResponse, WorkflowExecutionGetDataRequest, WorkflowExecutionGetDataResponse, WorkflowExecutionGetMetricsRequest, WorkflowExecutionGetMetricsResponse, WorkflowExecutionGetRequest } from "../admin/execution_pb.js"; +import { DynamicNodeWorkflowResponse, GetDynamicNodeWorkflowRequest, NodeExecution, NodeExecutionForTaskListRequest, NodeExecutionGetDataRequest, NodeExecutionGetDataResponse, NodeExecutionGetRequest, NodeExecutionList, NodeExecutionListRequest } from "../admin/node_execution_pb.js"; +import { Project, ProjectListRequest, ProjectRegisterRequest, ProjectRegisterResponse, Projects, ProjectUpdateResponse } from "../admin/project_pb.js"; +import { NodeExecutionEventRequest, NodeExecutionEventResponse, TaskExecutionEventRequest, TaskExecutionEventResponse, WorkflowExecutionEventRequest, WorkflowExecutionEventResponse } from "../admin/event_pb.js"; +import { TaskExecution, TaskExecutionGetDataRequest, TaskExecutionGetDataResponse, TaskExecutionGetRequest, TaskExecutionList, TaskExecutionListRequest } from "../admin/task_execution_pb.js"; +import { ProjectDomainAttributesDeleteRequest, ProjectDomainAttributesDeleteResponse, ProjectDomainAttributesGetRequest, ProjectDomainAttributesGetResponse, ProjectDomainAttributesUpdateRequest, ProjectDomainAttributesUpdateResponse } from "../admin/project_domain_attributes_pb.js"; +import { ProjectAttributesDeleteRequest, ProjectAttributesDeleteResponse, ProjectAttributesGetRequest, ProjectAttributesGetResponse, ProjectAttributesUpdateRequest, ProjectAttributesUpdateResponse } from "../admin/project_attributes_pb.js"; +import { WorkflowAttributesDeleteRequest, WorkflowAttributesDeleteResponse, WorkflowAttributesGetRequest, WorkflowAttributesGetResponse, WorkflowAttributesUpdateRequest, WorkflowAttributesUpdateResponse } from "../admin/workflow_attributes_pb.js"; +import { ListMatchableAttributesRequest, ListMatchableAttributesResponse } from "../admin/matchable_resource_pb.js"; +import { GetVersionRequest, GetVersionResponse } from "../admin/version_pb.js"; +import { DescriptionEntity, DescriptionEntityList, DescriptionEntityListRequest } from "../admin/description_entity_pb.js"; + +/** + * The following defines an RPC service that is also served over HTTP via grpc-gateway. + * Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + * + * @generated from service flyteidl.service.AdminService + */ +export const AdminService = { + typeName: "flyteidl.service.AdminService", + methods: { + /** + * Create and upload a :ref:`ref_flyteidl.admin.Task` definition + * + * @generated from rpc flyteidl.service.AdminService.CreateTask + */ + createTask: { + name: "CreateTask", + I: TaskCreateRequest, + O: TaskCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a :ref:`ref_flyteidl.admin.Task` definition. + * + * @generated from rpc flyteidl.service.AdminService.GetTask + */ + getTask: { + name: "GetTask", + I: ObjectGetRequest, + O: Task, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + * + * @generated from rpc flyteidl.service.AdminService.ListTaskIds + */ + listTaskIds: { + name: "ListTaskIds", + I: NamedEntityIdentifierListRequest, + O: NamedEntityIdentifierList, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + * + * @generated from rpc flyteidl.service.AdminService.ListTasks + */ + listTasks: { + name: "ListTasks", + I: ResourceListRequest, + O: TaskList, + kind: MethodKind.Unary, + }, + /** + * Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + * + * @generated from rpc flyteidl.service.AdminService.CreateWorkflow + */ + createWorkflow: { + name: "CreateWorkflow", + I: WorkflowCreateRequest, + O: WorkflowCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + * + * @generated from rpc flyteidl.service.AdminService.GetWorkflow + */ + getWorkflow: { + name: "GetWorkflow", + I: ObjectGetRequest, + O: Workflow, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + * + * @generated from rpc flyteidl.service.AdminService.ListWorkflowIds + */ + listWorkflowIds: { + name: "ListWorkflowIds", + I: NamedEntityIdentifierListRequest, + O: NamedEntityIdentifierList, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + * + * @generated from rpc flyteidl.service.AdminService.ListWorkflows + */ + listWorkflows: { + name: "ListWorkflows", + I: ResourceListRequest, + O: WorkflowList, + kind: MethodKind.Unary, + }, + /** + * Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + * + * @generated from rpc flyteidl.service.AdminService.CreateLaunchPlan + */ + createLaunchPlan: { + name: "CreateLaunchPlan", + I: LaunchPlanCreateRequest, + O: LaunchPlanCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + * + * @generated from rpc flyteidl.service.AdminService.GetLaunchPlan + */ + getLaunchPlan: { + name: "GetLaunchPlan", + I: ObjectGetRequest, + O: LaunchPlan, + kind: MethodKind.Unary, + }, + /** + * Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + * + * @generated from rpc flyteidl.service.AdminService.GetActiveLaunchPlan + */ + getActiveLaunchPlan: { + name: "GetActiveLaunchPlan", + I: ActiveLaunchPlanRequest, + O: LaunchPlan, + kind: MethodKind.Unary, + }, + /** + * List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + * + * @generated from rpc flyteidl.service.AdminService.ListActiveLaunchPlans + */ + listActiveLaunchPlans: { + name: "ListActiveLaunchPlans", + I: ActiveLaunchPlanListRequest, + O: LaunchPlanList, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + * + * @generated from rpc flyteidl.service.AdminService.ListLaunchPlanIds + */ + listLaunchPlanIds: { + name: "ListLaunchPlanIds", + I: NamedEntityIdentifierListRequest, + O: NamedEntityIdentifierList, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + * + * @generated from rpc flyteidl.service.AdminService.ListLaunchPlans + */ + listLaunchPlans: { + name: "ListLaunchPlans", + I: ResourceListRequest, + O: LaunchPlanList, + kind: MethodKind.Unary, + }, + /** + * Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + * + * @generated from rpc flyteidl.service.AdminService.UpdateLaunchPlan + */ + updateLaunchPlan: { + name: "UpdateLaunchPlan", + I: LaunchPlanUpdateRequest, + O: LaunchPlanUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + * + * @generated from rpc flyteidl.service.AdminService.CreateExecution + */ + createExecution: { + name: "CreateExecution", + I: ExecutionCreateRequest, + O: ExecutionCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + * + * @generated from rpc flyteidl.service.AdminService.RelaunchExecution + */ + relaunchExecution: { + name: "RelaunchExecution", + I: ExecutionRelaunchRequest, + O: ExecutionCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Recreates a previously-run workflow execution that will only start executing from the last known failure point. + * In Recover mode, users cannot change any input parameters or update the version of the execution. + * This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + * downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + * See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + * + * @generated from rpc flyteidl.service.AdminService.RecoverExecution + */ + recoverExecution: { + name: "RecoverExecution", + I: ExecutionRecoverRequest, + O: ExecutionCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches a :ref:`ref_flyteidl.admin.Execution`. + * + * @generated from rpc flyteidl.service.AdminService.GetExecution + */ + getExecution: { + name: "GetExecution", + I: WorkflowExecutionGetRequest, + O: Execution, + kind: MethodKind.Unary, + }, + /** + * Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + * + * @generated from rpc flyteidl.service.AdminService.UpdateExecution + */ + updateExecution: { + name: "UpdateExecution", + I: ExecutionUpdateRequest, + O: ExecutionUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + * + * @generated from rpc flyteidl.service.AdminService.GetExecutionData + */ + getExecutionData: { + name: "GetExecutionData", + I: WorkflowExecutionGetDataRequest, + O: WorkflowExecutionGetDataResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + * + * @generated from rpc flyteidl.service.AdminService.ListExecutions + */ + listExecutions: { + name: "ListExecutions", + I: ResourceListRequest, + O: ExecutionList, + kind: MethodKind.Unary, + }, + /** + * Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + * + * @generated from rpc flyteidl.service.AdminService.TerminateExecution + */ + terminateExecution: { + name: "TerminateExecution", + I: ExecutionTerminateRequest, + O: ExecutionTerminateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + * + * @generated from rpc flyteidl.service.AdminService.GetNodeExecution + */ + getNodeExecution: { + name: "GetNodeExecution", + I: NodeExecutionGetRequest, + O: NodeExecution, + kind: MethodKind.Unary, + }, + /** + * Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. + * + * @generated from rpc flyteidl.service.AdminService.GetDynamicNodeWorkflow + */ + getDynamicNodeWorkflow: { + name: "GetDynamicNodeWorkflow", + I: GetDynamicNodeWorkflowRequest, + O: DynamicNodeWorkflowResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + * + * @generated from rpc flyteidl.service.AdminService.ListNodeExecutions + */ + listNodeExecutions: { + name: "ListNodeExecutions", + I: NodeExecutionListRequest, + O: NodeExecutionList, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + * + * @generated from rpc flyteidl.service.AdminService.ListNodeExecutionsForTask + */ + listNodeExecutionsForTask: { + name: "ListNodeExecutionsForTask", + I: NodeExecutionForTaskListRequest, + O: NodeExecutionList, + kind: MethodKind.Unary, + }, + /** + * Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + * + * @generated from rpc flyteidl.service.AdminService.GetNodeExecutionData + */ + getNodeExecutionData: { + name: "GetNodeExecutionData", + I: NodeExecutionGetDataRequest, + O: NodeExecutionGetDataResponse, + kind: MethodKind.Unary, + }, + /** + * Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + * + * @generated from rpc flyteidl.service.AdminService.RegisterProject + */ + registerProject: { + name: "RegisterProject", + I: ProjectRegisterRequest, + O: ProjectRegisterResponse, + kind: MethodKind.Unary, + }, + /** + * Updates an existing :ref:`ref_flyteidl.admin.Project` + * flyteidl.admin.Project should be passed but the domains property should be empty; + * it will be ignored in the handler as domains cannot be updated via this API. + * + * @generated from rpc flyteidl.service.AdminService.UpdateProject + */ + updateProject: { + name: "UpdateProject", + I: Project, + O: ProjectUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches a list of :ref:`ref_flyteidl.admin.Project` + * + * @generated from rpc flyteidl.service.AdminService.ListProjects + */ + listProjects: { + name: "ListProjects", + I: ProjectListRequest, + O: Projects, + kind: MethodKind.Unary, + }, + /** + * Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + * + * @generated from rpc flyteidl.service.AdminService.CreateWorkflowEvent + */ + createWorkflowEvent: { + name: "CreateWorkflowEvent", + I: WorkflowExecutionEventRequest, + O: WorkflowExecutionEventResponse, + kind: MethodKind.Unary, + }, + /** + * Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + * + * @generated from rpc flyteidl.service.AdminService.CreateNodeEvent + */ + createNodeEvent: { + name: "CreateNodeEvent", + I: NodeExecutionEventRequest, + O: NodeExecutionEventResponse, + kind: MethodKind.Unary, + }, + /** + * Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + * + * @generated from rpc flyteidl.service.AdminService.CreateTaskEvent + */ + createTaskEvent: { + name: "CreateTaskEvent", + I: TaskExecutionEventRequest, + O: TaskExecutionEventResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + * + * @generated from rpc flyteidl.service.AdminService.GetTaskExecution + */ + getTaskExecution: { + name: "GetTaskExecution", + I: TaskExecutionGetRequest, + O: TaskExecution, + kind: MethodKind.Unary, + }, + /** + * Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + * + * @generated from rpc flyteidl.service.AdminService.ListTaskExecutions + */ + listTaskExecutions: { + name: "ListTaskExecutions", + I: TaskExecutionListRequest, + O: TaskExecutionList, + kind: MethodKind.Unary, + }, + /** + * Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + * + * @generated from rpc flyteidl.service.AdminService.GetTaskExecutionData + */ + getTaskExecutionData: { + name: "GetTaskExecutionData", + I: TaskExecutionGetDataRequest, + O: TaskExecutionGetDataResponse, + kind: MethodKind.Unary, + }, + /** + * Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * + * @generated from rpc flyteidl.service.AdminService.UpdateProjectDomainAttributes + */ + updateProjectDomainAttributes: { + name: "UpdateProjectDomainAttributes", + I: ProjectDomainAttributesUpdateRequest, + O: ProjectDomainAttributesUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * + * @generated from rpc flyteidl.service.AdminService.GetProjectDomainAttributes + */ + getProjectDomainAttributes: { + name: "GetProjectDomainAttributes", + I: ProjectDomainAttributesGetRequest, + O: ProjectDomainAttributesGetResponse, + kind: MethodKind.Unary, + }, + /** + * Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * + * @generated from rpc flyteidl.service.AdminService.DeleteProjectDomainAttributes + */ + deleteProjectDomainAttributes: { + name: "DeleteProjectDomainAttributes", + I: ProjectDomainAttributesDeleteRequest, + O: ProjectDomainAttributesDeleteResponse, + kind: MethodKind.Unary, + }, + /** + * Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + * + * @generated from rpc flyteidl.service.AdminService.UpdateProjectAttributes + */ + updateProjectAttributes: { + name: "UpdateProjectAttributes", + I: ProjectAttributesUpdateRequest, + O: ProjectAttributesUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * + * @generated from rpc flyteidl.service.AdminService.GetProjectAttributes + */ + getProjectAttributes: { + name: "GetProjectAttributes", + I: ProjectAttributesGetRequest, + O: ProjectAttributesGetResponse, + kind: MethodKind.Unary, + }, + /** + * Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + * + * @generated from rpc flyteidl.service.AdminService.DeleteProjectAttributes + */ + deleteProjectAttributes: { + name: "DeleteProjectAttributes", + I: ProjectAttributesDeleteRequest, + O: ProjectAttributesDeleteResponse, + kind: MethodKind.Unary, + }, + /** + * Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + * + * @generated from rpc flyteidl.service.AdminService.UpdateWorkflowAttributes + */ + updateWorkflowAttributes: { + name: "UpdateWorkflowAttributes", + I: WorkflowAttributesUpdateRequest, + O: WorkflowAttributesUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + * + * @generated from rpc flyteidl.service.AdminService.GetWorkflowAttributes + */ + getWorkflowAttributes: { + name: "GetWorkflowAttributes", + I: WorkflowAttributesGetRequest, + O: WorkflowAttributesGetResponse, + kind: MethodKind.Unary, + }, + /** + * Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + * + * @generated from rpc flyteidl.service.AdminService.DeleteWorkflowAttributes + */ + deleteWorkflowAttributes: { + name: "DeleteWorkflowAttributes", + I: WorkflowAttributesDeleteRequest, + O: WorkflowAttributesDeleteResponse, + kind: MethodKind.Unary, + }, + /** + * Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + * + * @generated from rpc flyteidl.service.AdminService.ListMatchableAttributes + */ + listMatchableAttributes: { + name: "ListMatchableAttributes", + I: ListMatchableAttributesRequest, + O: ListMatchableAttributesResponse, + kind: MethodKind.Unary, + }, + /** + * Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + * + * @generated from rpc flyteidl.service.AdminService.ListNamedEntities + */ + listNamedEntities: { + name: "ListNamedEntities", + I: NamedEntityListRequest, + O: NamedEntityList, + kind: MethodKind.Unary, + }, + /** + * Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + * + * @generated from rpc flyteidl.service.AdminService.GetNamedEntity + */ + getNamedEntity: { + name: "GetNamedEntity", + I: NamedEntityGetRequest, + O: NamedEntity, + kind: MethodKind.Unary, + }, + /** + * Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + * + * @generated from rpc flyteidl.service.AdminService.UpdateNamedEntity + */ + updateNamedEntity: { + name: "UpdateNamedEntity", + I: NamedEntityUpdateRequest, + O: NamedEntityUpdateResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc flyteidl.service.AdminService.GetVersion + */ + getVersion: { + name: "GetVersion", + I: GetVersionRequest, + O: GetVersionResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + * + * @generated from rpc flyteidl.service.AdminService.GetDescriptionEntity + */ + getDescriptionEntity: { + name: "GetDescriptionEntity", + I: ObjectGetRequest, + O: DescriptionEntity, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + * + * @generated from rpc flyteidl.service.AdminService.ListDescriptionEntities + */ + listDescriptionEntities: { + name: "ListDescriptionEntities", + I: DescriptionEntityListRequest, + O: DescriptionEntityList, + kind: MethodKind.Unary, + }, + /** + * Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + * + * @generated from rpc flyteidl.service.AdminService.GetExecutionMetrics + */ + getExecutionMetrics: { + name: "GetExecutionMetrics", + I: WorkflowExecutionGetMetricsRequest, + O: WorkflowExecutionGetMetricsResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts new file mode 100644 index 0000000000..cec0c0aabc --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/agent_connect.ts @@ -0,0 +1,134 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/agent.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { CreateTaskRequest, CreateTaskResponse, DeleteTaskRequest, DeleteTaskResponse, ExecuteTaskSyncRequest, ExecuteTaskSyncResponse, GetAgentRequest, GetAgentResponse, GetTaskLogsRequest, GetTaskLogsResponse, GetTaskMetricsRequest, GetTaskMetricsResponse, GetTaskRequest, GetTaskResponse, ListAgentsRequest, ListAgentsResponse } from "../admin/agent_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously. + * + * @generated from service flyteidl.service.SyncAgentService + */ +export const SyncAgentService = { + typeName: "flyteidl.service.SyncAgentService", + methods: { + /** + * ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + * + * @generated from rpc flyteidl.service.SyncAgentService.ExecuteTaskSync + */ + executeTaskSync: { + name: "ExecuteTaskSync", + I: ExecuteTaskSyncRequest, + O: ExecuteTaskSyncResponse, + kind: MethodKind.BiDiStreaming, + }, + } +} as const; + +/** + * AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously. + * + * @generated from service flyteidl.service.AsyncAgentService + */ +export const AsyncAgentService = { + typeName: "flyteidl.service.AsyncAgentService", + methods: { + /** + * CreateTask sends a task create request to the agent service. + * + * @generated from rpc flyteidl.service.AsyncAgentService.CreateTask + */ + createTask: { + name: "CreateTask", + I: CreateTaskRequest, + O: CreateTaskResponse, + kind: MethodKind.Unary, + }, + /** + * Get job status. + * + * @generated from rpc flyteidl.service.AsyncAgentService.GetTask + */ + getTask: { + name: "GetTask", + I: GetTaskRequest, + O: GetTaskResponse, + kind: MethodKind.Unary, + }, + /** + * Delete the task resource. + * + * @generated from rpc flyteidl.service.AsyncAgentService.DeleteTask + */ + deleteTask: { + name: "DeleteTask", + I: DeleteTaskRequest, + O: DeleteTaskResponse, + kind: MethodKind.Unary, + }, + /** + * GetTaskMetrics returns one or more task execution metrics, if available. + * + * Errors include + * * OutOfRange if metrics are not available for the specified task time range + * * various other errors + * + * @generated from rpc flyteidl.service.AsyncAgentService.GetTaskMetrics + */ + getTaskMetrics: { + name: "GetTaskMetrics", + I: GetTaskMetricsRequest, + O: GetTaskMetricsResponse, + kind: MethodKind.Unary, + }, + /** + * GetTaskLogs returns task execution logs, if available. + * + * @generated from rpc flyteidl.service.AsyncAgentService.GetTaskLogs + */ + getTaskLogs: { + name: "GetTaskLogs", + I: GetTaskLogsRequest, + O: GetTaskLogsResponse, + kind: MethodKind.ServerStreaming, + }, + } +} as const; + +/** + * AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. + * This service allows propeller or users to get the metadata of agents. + * + * @generated from service flyteidl.service.AgentMetadataService + */ +export const AgentMetadataService = { + typeName: "flyteidl.service.AgentMetadataService", + methods: { + /** + * Fetch a :ref:`ref_flyteidl.admin.Agent` definition. + * + * @generated from rpc flyteidl.service.AgentMetadataService.GetAgent + */ + getAgent: { + name: "GetAgent", + I: GetAgentRequest, + O: GetAgentResponse, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. + * + * @generated from rpc flyteidl.service.AgentMetadataService.ListAgents + */ + listAgents: { + name: "ListAgents", + I: ListAgentsRequest, + O: ListAgentsResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts new file mode 100644 index 0000000000..e87fa92712 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/auth_connect.ts @@ -0,0 +1,44 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/auth.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { OAuth2MetadataRequest, OAuth2MetadataResponse, PublicClientAuthConfigRequest, PublicClientAuthConfigResponse } from "./auth_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * The following defines an RPC service that is also served over HTTP via grpc-gateway. + * Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + * RPCs defined in this service must be anonymously accessible. + * + * @generated from service flyteidl.service.AuthMetadataService + */ +export const AuthMetadataService = { + typeName: "flyteidl.service.AuthMetadataService", + methods: { + /** + * Anonymously accessible. Retrieves local or external oauth authorization server metadata. + * + * @generated from rpc flyteidl.service.AuthMetadataService.GetOAuth2Metadata + */ + getOAuth2Metadata: { + name: "GetOAuth2Metadata", + I: OAuth2MetadataRequest, + O: OAuth2MetadataResponse, + kind: MethodKind.Unary, + }, + /** + * Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + * requests. + * + * @generated from rpc flyteidl.service.AuthMetadataService.GetPublicClientConfig + */ + getPublicClientConfig: { + name: "GetPublicClientConfig", + I: PublicClientAuthConfigRequest, + O: PublicClientAuthConfigResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts new file mode 100644 index 0000000000..589a209162 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/auth_pb.ts @@ -0,0 +1,272 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/service/auth.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from message flyteidl.service.OAuth2MetadataRequest + */ +export class OAuth2MetadataRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.OAuth2MetadataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2MetadataRequest { + return new OAuth2MetadataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2MetadataRequest { + return new OAuth2MetadataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OAuth2MetadataRequest { + return new OAuth2MetadataRequest().fromJsonString(jsonString, options); + } + + static equals(a: OAuth2MetadataRequest | PlainMessage | undefined, b: OAuth2MetadataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(OAuth2MetadataRequest, a, b); + } +} + +/** + * OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata + * as defined in https://tools.ietf.org/html/rfc8414 + * + * @generated from message flyteidl.service.OAuth2MetadataResponse + */ +export class OAuth2MetadataResponse extends Message { + /** + * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external + * issuer. + * + * @generated from field: string issuer = 1; + */ + issuer = ""; + + /** + * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are + * supported that use the authorization endpoint. + * + * @generated from field: string authorization_endpoint = 2; + */ + authorizationEndpoint = ""; + + /** + * URL of the authorization server's token endpoint [RFC6749]. + * + * @generated from field: string token_endpoint = 3; + */ + tokenEndpoint = ""; + + /** + * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. + * + * @generated from field: repeated string response_types_supported = 4; + */ + responseTypesSupported: string[] = []; + + /** + * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. + * + * @generated from field: repeated string scopes_supported = 5; + */ + scopesSupported: string[] = []; + + /** + * JSON array containing a list of client authentication methods supported by this token endpoint. + * + * @generated from field: repeated string token_endpoint_auth_methods_supported = 6; + */ + tokenEndpointAuthMethodsSupported: string[] = []; + + /** + * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the + * client uses to validate signatures from the authorization server. + * + * @generated from field: string jwks_uri = 7; + */ + jwksUri = ""; + + /** + * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by + * this authorization server. + * + * @generated from field: repeated string code_challenge_methods_supported = 8; + */ + codeChallengeMethodsSupported: string[] = []; + + /** + * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. + * + * @generated from field: repeated string grant_types_supported = 9; + */ + grantTypesSupported: string[] = []; + + /** + * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] + * + * @generated from field: string device_authorization_endpoint = 10; + */ + deviceAuthorizationEndpoint = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.OAuth2MetadataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "authorization_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "token_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "response_types_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 5, name: "scopes_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 6, name: "token_endpoint_auth_methods_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 7, name: "jwks_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "code_challenge_methods_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 9, name: "grant_types_supported", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 10, name: "device_authorization_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): OAuth2MetadataResponse { + return new OAuth2MetadataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): OAuth2MetadataResponse { + return new OAuth2MetadataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): OAuth2MetadataResponse { + return new OAuth2MetadataResponse().fromJsonString(jsonString, options); + } + + static equals(a: OAuth2MetadataResponse | PlainMessage | undefined, b: OAuth2MetadataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(OAuth2MetadataResponse, a, b); + } +} + +/** + * @generated from message flyteidl.service.PublicClientAuthConfigRequest + */ +export class PublicClientAuthConfigRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.PublicClientAuthConfigRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublicClientAuthConfigRequest { + return new PublicClientAuthConfigRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublicClientAuthConfigRequest { + return new PublicClientAuthConfigRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublicClientAuthConfigRequest { + return new PublicClientAuthConfigRequest().fromJsonString(jsonString, options); + } + + static equals(a: PublicClientAuthConfigRequest | PlainMessage | undefined, b: PublicClientAuthConfigRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PublicClientAuthConfigRequest, a, b); + } +} + +/** + * FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. + * + * @generated from message flyteidl.service.PublicClientAuthConfigResponse + */ +export class PublicClientAuthConfigResponse extends Message { + /** + * client_id to use when initiating OAuth2 authorization requests. + * + * @generated from field: string client_id = 1; + */ + clientId = ""; + + /** + * redirect uri to use when initiating OAuth2 authorization requests. + * + * @generated from field: string redirect_uri = 2; + */ + redirectUri = ""; + + /** + * scopes to request when initiating OAuth2 authorization requests. + * + * @generated from field: repeated string scopes = 3; + */ + scopes: string[] = []; + + /** + * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the + * default http `Authorization` header. + * + * @generated from field: string authorization_metadata_key = 4; + */ + authorizationMetadataKey = ""; + + /** + * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used + * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between + * SSL or no SSL connections. + * + * @generated from field: string service_http_endpoint = 5; + */ + serviceHttpEndpoint = ""; + + /** + * audience to use when initiating OAuth2 authorization requests. + * + * @generated from field: string audience = 6; + */ + audience = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.PublicClientAuthConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "client_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "redirect_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "scopes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 4, name: "authorization_metadata_key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "service_http_endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "audience", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublicClientAuthConfigResponse { + return new PublicClientAuthConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublicClientAuthConfigResponse { + return new PublicClientAuthConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublicClientAuthConfigResponse { + return new PublicClientAuthConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: PublicClientAuthConfigResponse | PlainMessage | undefined, b: PublicClientAuthConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PublicClientAuthConfigResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts new file mode 100644 index 0000000000..56489fb5b0 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/dataproxy_connect.ts @@ -0,0 +1,62 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/dataproxy.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { CreateDownloadLinkRequest, CreateDownloadLinkResponse, CreateDownloadLocationRequest, CreateDownloadLocationResponse, CreateUploadLocationRequest, CreateUploadLocationResponse, GetDataRequest, GetDataResponse } from "./dataproxy_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + * + * @generated from service flyteidl.service.DataProxyService + */ +export const DataProxyService = { + typeName: "flyteidl.service.DataProxyService", + methods: { + /** + * CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + * + * @generated from rpc flyteidl.service.DataProxyService.CreateUploadLocation + */ + createUploadLocation: { + name: "CreateUploadLocation", + I: CreateUploadLocationRequest, + O: CreateUploadLocationResponse, + kind: MethodKind.Unary, + }, + /** + * CreateDownloadLocation creates a signed url to download artifacts. + * + * @generated from rpc flyteidl.service.DataProxyService.CreateDownloadLocation + * @deprecated + */ + createDownloadLocation: { + name: "CreateDownloadLocation", + I: CreateDownloadLocationRequest, + O: CreateDownloadLocationResponse, + kind: MethodKind.Unary, + }, + /** + * CreateDownloadLocation creates a signed url to download artifacts. + * + * @generated from rpc flyteidl.service.DataProxyService.CreateDownloadLink + */ + createDownloadLink: { + name: "CreateDownloadLink", + I: CreateDownloadLinkRequest, + O: CreateDownloadLinkResponse, + kind: MethodKind.Unary, + }, + /** + * @generated from rpc flyteidl.service.DataProxyService.GetData + */ + getData: { + name: "GetData", + I: GetDataRequest, + O: GetDataResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts new file mode 100644 index 0000000000..2b4cf829ab --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/dataproxy_pb.ts @@ -0,0 +1,570 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/service/dataproxy.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Duration, Message, proto3, Timestamp } from "@bufbuild/protobuf"; +import { NodeExecutionIdentifier } from "../core/identifier_pb.js"; +import { Literal, LiteralMap } from "../core/literals_pb.js"; + +/** + * ArtifactType + * + * @generated from enum flyteidl.service.ArtifactType + */ +export enum ArtifactType { + /** + * ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. + * + * @generated from enum value: ARTIFACT_TYPE_UNDEFINED = 0; + */ + UNDEFINED = 0, + + /** + * ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan + * finishes executing. + * + * @generated from enum value: ARTIFACT_TYPE_DECK = 1; + */ + DECK = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(ArtifactType) +proto3.util.setEnumType(ArtifactType, "flyteidl.service.ArtifactType", [ + { no: 0, name: "ARTIFACT_TYPE_UNDEFINED" }, + { no: 1, name: "ARTIFACT_TYPE_DECK" }, +]); + +/** + * @generated from message flyteidl.service.CreateUploadLocationResponse + */ +export class CreateUploadLocationResponse extends Message { + /** + * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + * + * @generated from field: string signed_url = 1; + */ + signedUrl = ""; + + /** + * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + * + * @generated from field: string native_url = 2; + */ + nativeUrl = ""; + + /** + * ExpiresAt defines when will the signed URL expires. + * + * @generated from field: google.protobuf.Timestamp expires_at = 3; + */ + expiresAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.CreateUploadLocationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "native_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "expires_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateUploadLocationResponse { + return new CreateUploadLocationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateUploadLocationResponse { + return new CreateUploadLocationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateUploadLocationResponse { + return new CreateUploadLocationResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateUploadLocationResponse | PlainMessage | undefined, b: CreateUploadLocationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateUploadLocationResponse, a, b); + } +} + +/** + * CreateUploadLocationRequest specified request for the CreateUploadLocation API. + * The implementation in data proxy service will create the s3 location with some server side configured prefixes, + * and then: + * - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR + * - project/domain/filename_root (if present)/filename (if present). + * + * @generated from message flyteidl.service.CreateUploadLocationRequest + */ +export class CreateUploadLocationRequest extends Message { + /** + * Project to create the upload location for + * +required + * + * @generated from field: string project = 1; + */ + project = ""; + + /** + * Domain to create the upload location for. + * +required + * + * @generated from field: string domain = 2; + */ + domain = ""; + + /** + * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. + * +optional. By default, the service will generate a consistent name based on the provided parameters. + * + * @generated from field: string filename = 3; + */ + filename = ""; + + /** + * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + * exceeds the platform allowed max. + * +optional. The default value comes from a global config. + * + * @generated from field: google.protobuf.Duration expires_in = 4; + */ + expiresIn?: Duration; + + /** + * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the + * generated path. + * +required + * + * @generated from field: bytes content_md5 = 5; + */ + contentMd5 = new Uint8Array(0); + + /** + * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included + * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix + * in data proxy config. This option is useful when uploading multiple files. + * +optional + * + * @generated from field: string filename_root = 6; + */ + filenameRoot = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.CreateUploadLocationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "project", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "domain", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "filename", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "expires_in", kind: "message", T: Duration }, + { no: 5, name: "content_md5", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + { no: 6, name: "filename_root", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateUploadLocationRequest { + return new CreateUploadLocationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateUploadLocationRequest { + return new CreateUploadLocationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateUploadLocationRequest { + return new CreateUploadLocationRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateUploadLocationRequest | PlainMessage | undefined, b: CreateUploadLocationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateUploadLocationRequest, a, b); + } +} + +/** + * CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. + * + * @generated from message flyteidl.service.CreateDownloadLocationRequest + * @deprecated + */ +export class CreateDownloadLocationRequest extends Message { + /** + * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + * + * @generated from field: string native_url = 1; + */ + nativeUrl = ""; + + /** + * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + * exceeds the platform allowed max. + * +optional. The default value comes from a global config. + * + * @generated from field: google.protobuf.Duration expires_in = 2; + */ + expiresIn?: Duration; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.CreateDownloadLocationRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "native_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "expires_in", kind: "message", T: Duration }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLocationRequest { + return new CreateDownloadLocationRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLocationRequest { + return new CreateDownloadLocationRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLocationRequest { + return new CreateDownloadLocationRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateDownloadLocationRequest | PlainMessage | undefined, b: CreateDownloadLocationRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDownloadLocationRequest, a, b); + } +} + +/** + * @generated from message flyteidl.service.CreateDownloadLocationResponse + * @deprecated + */ +export class CreateDownloadLocationResponse extends Message { + /** + * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + * + * @generated from field: string signed_url = 1; + */ + signedUrl = ""; + + /** + * ExpiresAt defines when will the signed URL expires. + * + * @generated from field: google.protobuf.Timestamp expires_at = 2; + */ + expiresAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.CreateDownloadLocationResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "expires_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLocationResponse { + return new CreateDownloadLocationResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLocationResponse { + return new CreateDownloadLocationResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLocationResponse { + return new CreateDownloadLocationResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateDownloadLocationResponse | PlainMessage | undefined, b: CreateDownloadLocationResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDownloadLocationResponse, a, b); + } +} + +/** + * CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) + * + * @generated from message flyteidl.service.CreateDownloadLinkRequest + */ +export class CreateDownloadLinkRequest extends Message { + /** + * ArtifactType of the artifact requested. + * + * @generated from field: flyteidl.service.ArtifactType artifact_type = 1; + */ + artifactType = ArtifactType.UNDEFINED; + + /** + * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + * exceeds the platform allowed max. + * +optional. The default value comes from a global config. + * + * @generated from field: google.protobuf.Duration expires_in = 2; + */ + expiresIn?: Duration; + + /** + * @generated from oneof flyteidl.service.CreateDownloadLinkRequest.source + */ + source: { + /** + * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the + * most recent attempt of the task. + * + * @generated from field: flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; + */ + value: NodeExecutionIdentifier; + case: "nodeExecutionId"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.CreateDownloadLinkRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "artifact_type", kind: "enum", T: proto3.getEnumType(ArtifactType) }, + { no: 2, name: "expires_in", kind: "message", T: Duration }, + { no: 3, name: "node_execution_id", kind: "message", T: NodeExecutionIdentifier, oneof: "source" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLinkRequest { + return new CreateDownloadLinkRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLinkRequest { + return new CreateDownloadLinkRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLinkRequest { + return new CreateDownloadLinkRequest().fromJsonString(jsonString, options); + } + + static equals(a: CreateDownloadLinkRequest | PlainMessage | undefined, b: CreateDownloadLinkRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDownloadLinkRequest, a, b); + } +} + +/** + * CreateDownloadLinkResponse defines the response for the generated links + * + * @generated from message flyteidl.service.CreateDownloadLinkResponse + */ +export class CreateDownloadLinkResponse extends Message { + /** + * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + * + * @generated from field: repeated string signed_url = 1 [deprecated = true]; + * @deprecated + */ + signedUrl: string[] = []; + + /** + * ExpiresAt defines when will the signed URL expire. + * + * @generated from field: google.protobuf.Timestamp expires_at = 2 [deprecated = true]; + * @deprecated + */ + expiresAt?: Timestamp; + + /** + * New wrapper object containing the signed urls and expiration time + * + * @generated from field: flyteidl.service.PreSignedURLs pre_signed_urls = 3; + */ + preSignedUrls?: PreSignedURLs; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.CreateDownloadLinkResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "expires_at", kind: "message", T: Timestamp }, + { no: 3, name: "pre_signed_urls", kind: "message", T: PreSignedURLs }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): CreateDownloadLinkResponse { + return new CreateDownloadLinkResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): CreateDownloadLinkResponse { + return new CreateDownloadLinkResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): CreateDownloadLinkResponse { + return new CreateDownloadLinkResponse().fromJsonString(jsonString, options); + } + + static equals(a: CreateDownloadLinkResponse | PlainMessage | undefined, b: CreateDownloadLinkResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(CreateDownloadLinkResponse, a, b); + } +} + +/** + * Wrapper object since the message is shared across this and the GetDataResponse + * + * @generated from message flyteidl.service.PreSignedURLs + */ +export class PreSignedURLs extends Message { + /** + * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + * + * @generated from field: repeated string signed_url = 1; + */ + signedUrl: string[] = []; + + /** + * ExpiresAt defines when will the signed URL expire. + * + * @generated from field: google.protobuf.Timestamp expires_at = 2; + */ + expiresAt?: Timestamp; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.PreSignedURLs"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "signed_url", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "expires_at", kind: "message", T: Timestamp }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PreSignedURLs { + return new PreSignedURLs().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PreSignedURLs { + return new PreSignedURLs().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PreSignedURLs { + return new PreSignedURLs().fromJsonString(jsonString, options); + } + + static equals(a: PreSignedURLs | PlainMessage | undefined, b: PreSignedURLs | PlainMessage | undefined): boolean { + return proto3.util.equals(PreSignedURLs, a, b); + } +} + +/** + * General request artifact to retrieve data from a Flyte artifact url. + * + * @generated from message flyteidl.service.GetDataRequest + */ +export class GetDataRequest extends Message { + /** + * A unique identifier in the form of flyte:// that uniquely, for a given Flyte + * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.). + * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) + * flyte://v1/proj/development/execid/n2/i (for node execution input) + * flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) + * + * @generated from field: string flyte_url = 1; + */ + flyteUrl = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.GetDataRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "flyte_url", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDataRequest { + return new GetDataRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDataRequest { + return new GetDataRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDataRequest { + return new GetDataRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetDataRequest | PlainMessage | undefined, b: GetDataRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDataRequest, a, b); + } +} + +/** + * @generated from message flyteidl.service.GetDataResponse + */ +export class GetDataResponse extends Message { + /** + * @generated from oneof flyteidl.service.GetDataResponse.data + */ + data: { + /** + * literal map data will be returned + * + * @generated from field: flyteidl.core.LiteralMap literal_map = 1; + */ + value: LiteralMap; + case: "literalMap"; + } | { + /** + * Flyte deck html will be returned as a signed url users can download + * + * @generated from field: flyteidl.service.PreSignedURLs pre_signed_urls = 2; + */ + value: PreSignedURLs; + case: "preSignedUrls"; + } | { + /** + * Single literal will be returned. This is returned when the user/url requests a specific output or input + * by name. See the o3 example above. + * + * @generated from field: flyteidl.core.Literal literal = 3; + */ + value: Literal; + case: "literal"; + } | { case: undefined; value?: undefined } = { case: undefined }; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.GetDataResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "literal_map", kind: "message", T: LiteralMap, oneof: "data" }, + { no: 2, name: "pre_signed_urls", kind: "message", T: PreSignedURLs, oneof: "data" }, + { no: 3, name: "literal", kind: "message", T: Literal, oneof: "data" }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetDataResponse { + return new GetDataResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetDataResponse { + return new GetDataResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetDataResponse { + return new GetDataResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetDataResponse | PlainMessage | undefined, b: GetDataResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetDataResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts new file mode 100644 index 0000000000..a1abb14ae9 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_connect.ts @@ -0,0 +1,55 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/external_plugin_service.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { TaskCreateRequest, TaskCreateResponse, TaskDeleteRequest, TaskDeleteResponse, TaskGetRequest, TaskGetResponse } from "./external_plugin_service_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + * + * @generated from service flyteidl.service.ExternalPluginService + */ +export const ExternalPluginService = { + typeName: "flyteidl.service.ExternalPluginService", + methods: { + /** + * Send a task create request to the backend plugin server. + * + * @generated from rpc flyteidl.service.ExternalPluginService.CreateTask + * @deprecated + */ + createTask: { + name: "CreateTask", + I: TaskCreateRequest, + O: TaskCreateResponse, + kind: MethodKind.Unary, + }, + /** + * Get job status. + * + * @generated from rpc flyteidl.service.ExternalPluginService.GetTask + * @deprecated + */ + getTask: { + name: "GetTask", + I: TaskGetRequest, + O: TaskGetResponse, + kind: MethodKind.Unary, + }, + /** + * Delete the task resource. + * + * @generated from rpc flyteidl.service.ExternalPluginService.DeleteTask + * @deprecated + */ + deleteTask: { + name: "DeleteTask", + I: TaskDeleteRequest, + O: TaskDeleteResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts new file mode 100644 index 0000000000..2a3e022be7 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/external_plugin_service_pb.ts @@ -0,0 +1,337 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/service/external_plugin_service.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { LiteralMap } from "../core/literals_pb.js"; +import { TaskTemplate } from "../core/tasks_pb.js"; + +/** + * The state of the execution is used to control its visibility in the UI/CLI. + * + * @generated from enum flyteidl.service.State + * @deprecated + */ +export enum State { + /** + * @generated from enum value: RETRYABLE_FAILURE = 0; + */ + RETRYABLE_FAILURE = 0, + + /** + * @generated from enum value: PERMANENT_FAILURE = 1; + */ + PERMANENT_FAILURE = 1, + + /** + * @generated from enum value: PENDING = 2; + */ + PENDING = 2, + + /** + * @generated from enum value: RUNNING = 3; + */ + RUNNING = 3, + + /** + * @generated from enum value: SUCCEEDED = 4; + */ + SUCCEEDED = 4, +} +// Retrieve enum metadata with: proto3.getEnumType(State) +proto3.util.setEnumType(State, "flyteidl.service.State", [ + { no: 0, name: "RETRYABLE_FAILURE" }, + { no: 1, name: "PERMANENT_FAILURE" }, + { no: 2, name: "PENDING" }, + { no: 3, name: "RUNNING" }, + { no: 4, name: "SUCCEEDED" }, +]); + +/** + * Represents a request structure to create task. + * + * @generated from message flyteidl.service.TaskCreateRequest + * @deprecated + */ +export class TaskCreateRequest extends Message { + /** + * The inputs required to start the execution. All required inputs must be + * included in this map. If not required and not provided, defaults apply. + * +optional + * + * @generated from field: flyteidl.core.LiteralMap inputs = 1; + */ + inputs?: LiteralMap; + + /** + * Template of the task that encapsulates all the metadata of the task. + * + * @generated from field: flyteidl.core.TaskTemplate template = 2; + */ + template?: TaskTemplate; + + /** + * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + * + * @generated from field: string output_prefix = 3; + */ + outputPrefix = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.TaskCreateRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "inputs", kind: "message", T: LiteralMap }, + { no: 2, name: "template", kind: "message", T: TaskTemplate }, + { no: 3, name: "output_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateRequest { + return new TaskCreateRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateRequest { + return new TaskCreateRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskCreateRequest { + return new TaskCreateRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskCreateRequest | PlainMessage | undefined, b: TaskCreateRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskCreateRequest, a, b); + } +} + +/** + * Represents a create response structure. + * + * @generated from message flyteidl.service.TaskCreateResponse + * @deprecated + */ +export class TaskCreateResponse extends Message { + /** + * @generated from field: string job_id = 1; + */ + jobId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.TaskCreateResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskCreateResponse { + return new TaskCreateResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskCreateResponse { + return new TaskCreateResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskCreateResponse { + return new TaskCreateResponse().fromJsonString(jsonString, options); + } + + static equals(a: TaskCreateResponse | PlainMessage | undefined, b: TaskCreateResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskCreateResponse, a, b); + } +} + +/** + * A message used to fetch a job state from backend plugin server. + * + * @generated from message flyteidl.service.TaskGetRequest + * @deprecated + */ +export class TaskGetRequest extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string task_type = 1; + */ + taskType = ""; + + /** + * The unique id identifying the job. + * + * @generated from field: string job_id = 2; + */ + jobId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.TaskGetRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskGetRequest { + return new TaskGetRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskGetRequest { + return new TaskGetRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskGetRequest { + return new TaskGetRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskGetRequest | PlainMessage | undefined, b: TaskGetRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskGetRequest, a, b); + } +} + +/** + * Response to get an individual task state. + * + * @generated from message flyteidl.service.TaskGetResponse + * @deprecated + */ +export class TaskGetResponse extends Message { + /** + * The state of the execution is used to control its visibility in the UI/CLI. + * + * @generated from field: flyteidl.service.State state = 1; + */ + state = State.RETRYABLE_FAILURE; + + /** + * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a + * Structured dataset pointing to the query result table. + * +optional + * + * @generated from field: flyteidl.core.LiteralMap outputs = 2; + */ + outputs?: LiteralMap; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.TaskGetResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "state", kind: "enum", T: proto3.getEnumType(State) }, + { no: 2, name: "outputs", kind: "message", T: LiteralMap }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskGetResponse { + return new TaskGetResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskGetResponse { + return new TaskGetResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskGetResponse { + return new TaskGetResponse().fromJsonString(jsonString, options); + } + + static equals(a: TaskGetResponse | PlainMessage | undefined, b: TaskGetResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskGetResponse, a, b); + } +} + +/** + * A message used to delete a task. + * + * @generated from message flyteidl.service.TaskDeleteRequest + * @deprecated + */ +export class TaskDeleteRequest extends Message { + /** + * A predefined yet extensible Task type identifier. + * + * @generated from field: string task_type = 1; + */ + taskType = ""; + + /** + * The unique id identifying the job. + * + * @generated from field: string job_id = 2; + */ + jobId = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.TaskDeleteRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "job_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskDeleteRequest { + return new TaskDeleteRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskDeleteRequest { + return new TaskDeleteRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskDeleteRequest { + return new TaskDeleteRequest().fromJsonString(jsonString, options); + } + + static equals(a: TaskDeleteRequest | PlainMessage | undefined, b: TaskDeleteRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskDeleteRequest, a, b); + } +} + +/** + * Response to delete a task. + * + * @generated from message flyteidl.service.TaskDeleteResponse + * @deprecated + */ +export class TaskDeleteResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.TaskDeleteResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): TaskDeleteResponse { + return new TaskDeleteResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): TaskDeleteResponse { + return new TaskDeleteResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): TaskDeleteResponse { + return new TaskDeleteResponse().fromJsonString(jsonString, options); + } + + static equals(a: TaskDeleteResponse | PlainMessage | undefined, b: TaskDeleteResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskDeleteResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts new file mode 100644 index 0000000000..0094996c35 --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/identity_connect.ts @@ -0,0 +1,30 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/identity.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { UserInfoRequest, UserInfoResponse } from "./identity_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * IdentityService defines an RPC Service that interacts with user/app identities. + * + * @generated from service flyteidl.service.IdentityService + */ +export const IdentityService = { + typeName: "flyteidl.service.IdentityService", + methods: { + /** + * Retrieves user information about the currently logged in user. + * + * @generated from rpc flyteidl.service.IdentityService.UserInfo + */ + userInfo: { + name: "UserInfo", + I: UserInfoRequest, + O: UserInfoResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts b/flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts new file mode 100644 index 0000000000..7b75d327bc --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/identity_pb.ts @@ -0,0 +1,137 @@ +// @generated by protoc-gen-es v1.7.2 with parameter "target=ts" +// @generated from file flyteidl/service/identity.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3, Struct } from "@bufbuild/protobuf"; + +/** + * @generated from message flyteidl.service.UserInfoRequest + */ +export class UserInfoRequest extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.UserInfoRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserInfoRequest { + return new UserInfoRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserInfoRequest { + return new UserInfoRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserInfoRequest { + return new UserInfoRequest().fromJsonString(jsonString, options); + } + + static equals(a: UserInfoRequest | PlainMessage | undefined, b: UserInfoRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(UserInfoRequest, a, b); + } +} + +/** + * See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. + * + * @generated from message flyteidl.service.UserInfoResponse + */ +export class UserInfoResponse extends Message { + /** + * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed + * by the Client. + * + * @generated from field: string subject = 1; + */ + subject = ""; + + /** + * Full name + * + * @generated from field: string name = 2; + */ + name = ""; + + /** + * Shorthand name by which the End-User wishes to be referred to + * + * @generated from field: string preferred_username = 3; + */ + preferredUsername = ""; + + /** + * Given name(s) or first name(s) + * + * @generated from field: string given_name = 4; + */ + givenName = ""; + + /** + * Surname(s) or last name(s) + * + * @generated from field: string family_name = 5; + */ + familyName = ""; + + /** + * Preferred e-mail address + * + * @generated from field: string email = 6; + */ + email = ""; + + /** + * Profile picture URL + * + * @generated from field: string picture = 7; + */ + picture = ""; + + /** + * Additional claims + * + * @generated from field: google.protobuf.Struct additional_claims = 8; + */ + additionalClaims?: Struct; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "flyteidl.service.UserInfoResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 3, name: "preferred_username", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "given_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 5, name: "family_name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 6, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 7, name: "picture", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "additional_claims", kind: "message", T: Struct }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): UserInfoResponse { + return new UserInfoResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): UserInfoResponse { + return new UserInfoResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): UserInfoResponse { + return new UserInfoResponse().fromJsonString(jsonString, options); + } + + static equals(a: UserInfoResponse | PlainMessage | undefined, b: UserInfoResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(UserInfoResponse, a, b); + } +} + diff --git a/flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts b/flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts new file mode 100644 index 0000000000..2bde50661a --- /dev/null +++ b/flyteidl/gen/pb-es/flyteidl/service/signal_connect.ts @@ -0,0 +1,52 @@ +// @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts" +// @generated from file flyteidl/service/signal.proto (package flyteidl.service, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import { Signal, SignalGetOrCreateRequest, SignalList, SignalListRequest, SignalSetRequest, SignalSetResponse } from "../admin/signal_pb.js"; +import { MethodKind } from "@bufbuild/protobuf"; + +/** + * SignalService defines an RPC Service that may create, update, and retrieve signal(s). + * + * @generated from service flyteidl.service.SignalService + */ +export const SignalService = { + typeName: "flyteidl.service.SignalService", + methods: { + /** + * Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + * + * @generated from rpc flyteidl.service.SignalService.GetOrCreateSignal + */ + getOrCreateSignal: { + name: "GetOrCreateSignal", + I: SignalGetOrCreateRequest, + O: Signal, + kind: MethodKind.Unary, + }, + /** + * Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + * + * @generated from rpc flyteidl.service.SignalService.ListSignals + */ + listSignals: { + name: "ListSignals", + I: SignalListRequest, + O: SignalList, + kind: MethodKind.Unary, + }, + /** + * Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + * + * @generated from rpc flyteidl.service.SignalService.SetSignal + */ + setSignal: { + name: "SetSignal", + I: SignalSetRequest, + O: SignalSetResponse, + kind: MethodKind.Unary, + }, + } +} as const; + diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go new file mode 100644 index 0000000000..b87ef50172 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -0,0 +1,2413 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/agent.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The state of the execution is used to control its visibility in the UI/CLI. +// +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +type State int32 + +const ( + State_RETRYABLE_FAILURE State = 0 + State_PERMANENT_FAILURE State = 1 + State_PENDING State = 2 + State_RUNNING State = 3 + State_SUCCEEDED State = 4 +) + +// Enum value maps for State. +var ( + State_name = map[int32]string{ + 0: "RETRYABLE_FAILURE", + 1: "PERMANENT_FAILURE", + 2: "PENDING", + 3: "RUNNING", + 4: "SUCCEEDED", + } + State_value = map[string]int32{ + "RETRYABLE_FAILURE": 0, + "PERMANENT_FAILURE": 1, + "PENDING": 2, + "RUNNING": 3, + "SUCCEEDED": 4, + } +) + +func (x State) Enum() *State { + p := new(State) + *p = x + return p +} + +func (x State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (State) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_agent_proto_enumTypes[0].Descriptor() +} + +func (State) Type() protoreflect.EnumType { + return &file_flyteidl_admin_agent_proto_enumTypes[0] +} + +func (x State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use State.Descriptor instead. +func (State) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{0} +} + +// Represents a subset of runtime task execution metadata that are relevant to external plugins. +type TaskExecutionMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of the task execution + TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` + // k8s namespace where the task is executed in + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` + // Labels attached to the task execution + Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Annotations attached to the task execution + Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // k8s service account associated with the task execution + K8SServiceAccount string `protobuf:"bytes,5,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` + // Environment variables attached to the task execution + EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + MaxAttempts int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + InterruptibleFailureThreshold int32 `protobuf:"varint,9,opt,name=interruptible_failure_threshold,json=interruptibleFailureThreshold,proto3" json:"interruptible_failure_threshold,omitempty"` + Overrides *core.TaskNodeOverrides `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"` +} + +func (x *TaskExecutionMetadata) Reset() { + *x = TaskExecutionMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionMetadata) ProtoMessage() {} + +func (x *TaskExecutionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionMetadata.ProtoReflect.Descriptor instead. +func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{0} +} + +func (x *TaskExecutionMetadata) GetTaskExecutionId() *core.TaskExecutionIdentifier { + if x != nil { + return x.TaskExecutionId + } + return nil +} + +func (x *TaskExecutionMetadata) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +func (x *TaskExecutionMetadata) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *TaskExecutionMetadata) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *TaskExecutionMetadata) GetK8SServiceAccount() string { + if x != nil { + return x.K8SServiceAccount + } + return "" +} + +func (x *TaskExecutionMetadata) GetEnvironmentVariables() map[string]string { + if x != nil { + return x.EnvironmentVariables + } + return nil +} + +func (x *TaskExecutionMetadata) GetMaxAttempts() int32 { + if x != nil { + return x.MaxAttempts + } + return 0 +} + +func (x *TaskExecutionMetadata) GetInterruptible() bool { + if x != nil { + return x.Interruptible + } + return false +} + +func (x *TaskExecutionMetadata) GetInterruptibleFailureThreshold() int32 { + if x != nil { + return x.InterruptibleFailureThreshold + } + return 0 +} + +func (x *TaskExecutionMetadata) GetOverrides() *core.TaskNodeOverrides { + if x != nil { + return x.Overrides + } + return nil +} + +// Represents a request structure to create task. +type CreateTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` + // subset of runtime task execution metadata. + TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,4,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` +} + +func (x *CreateTaskRequest) Reset() { + *x = CreateTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTaskRequest) ProtoMessage() {} + +func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead. +func (*CreateTaskRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateTaskRequest) GetInputs() *core.LiteralMap { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *CreateTaskRequest) GetTemplate() *core.TaskTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *CreateTaskRequest) GetOutputPrefix() string { + if x != nil { + return x.OutputPrefix + } + return "" +} + +func (x *CreateTaskRequest) GetTaskExecutionMetadata() *TaskExecutionMetadata { + if x != nil { + return x.TaskExecutionMetadata + } + return nil +} + +// Represents a create response structure. +type CreateTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` +} + +func (x *CreateTaskResponse) Reset() { + *x = CreateTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTaskResponse) ProtoMessage() {} + +func (x *CreateTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateTaskResponse.ProtoReflect.Descriptor instead. +func (*CreateTaskResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateTaskResponse) GetResourceMeta() []byte { + if x != nil { + return x.ResourceMeta + } + return nil +} + +type CreateRequestHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + OutputPrefix string `protobuf:"bytes,2,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` + // subset of runtime task execution metadata. + TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,3,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` + // MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + MaxDatasetSizeBytes int64 `protobuf:"varint,4,opt,name=max_dataset_size_bytes,json=maxDatasetSizeBytes,proto3" json:"max_dataset_size_bytes,omitempty"` +} + +func (x *CreateRequestHeader) Reset() { + *x = CreateRequestHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateRequestHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRequestHeader) ProtoMessage() {} + +func (x *CreateRequestHeader) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateRequestHeader.ProtoReflect.Descriptor instead. +func (*CreateRequestHeader) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateRequestHeader) GetTemplate() *core.TaskTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *CreateRequestHeader) GetOutputPrefix() string { + if x != nil { + return x.OutputPrefix + } + return "" +} + +func (x *CreateRequestHeader) GetTaskExecutionMetadata() *TaskExecutionMetadata { + if x != nil { + return x.TaskExecutionMetadata + } + return nil +} + +func (x *CreateRequestHeader) GetMaxDatasetSizeBytes() int64 { + if x != nil { + return x.MaxDatasetSizeBytes + } + return 0 +} + +type ExecuteTaskSyncRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Part: + // + // *ExecuteTaskSyncRequest_Header + // *ExecuteTaskSyncRequest_Inputs + Part isExecuteTaskSyncRequest_Part `protobuf_oneof:"part"` +} + +func (x *ExecuteTaskSyncRequest) Reset() { + *x = ExecuteTaskSyncRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteTaskSyncRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteTaskSyncRequest) ProtoMessage() {} + +func (x *ExecuteTaskSyncRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteTaskSyncRequest.ProtoReflect.Descriptor instead. +func (*ExecuteTaskSyncRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{4} +} + +func (m *ExecuteTaskSyncRequest) GetPart() isExecuteTaskSyncRequest_Part { + if m != nil { + return m.Part + } + return nil +} + +func (x *ExecuteTaskSyncRequest) GetHeader() *CreateRequestHeader { + if x, ok := x.GetPart().(*ExecuteTaskSyncRequest_Header); ok { + return x.Header + } + return nil +} + +func (x *ExecuteTaskSyncRequest) GetInputs() *core.LiteralMap { + if x, ok := x.GetPart().(*ExecuteTaskSyncRequest_Inputs); ok { + return x.Inputs + } + return nil +} + +type isExecuteTaskSyncRequest_Part interface { + isExecuteTaskSyncRequest_Part() +} + +type ExecuteTaskSyncRequest_Header struct { + Header *CreateRequestHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type ExecuteTaskSyncRequest_Inputs struct { + Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3,oneof"` +} + +func (*ExecuteTaskSyncRequest_Header) isExecuteTaskSyncRequest_Part() {} + +func (*ExecuteTaskSyncRequest_Inputs) isExecuteTaskSyncRequest_Part() {} + +type ExecuteTaskSyncResponseHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *ExecuteTaskSyncResponseHeader) Reset() { + *x = ExecuteTaskSyncResponseHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteTaskSyncResponseHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteTaskSyncResponseHeader) ProtoMessage() {} + +func (x *ExecuteTaskSyncResponseHeader) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteTaskSyncResponseHeader.ProtoReflect.Descriptor instead. +func (*ExecuteTaskSyncResponseHeader) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{5} +} + +func (x *ExecuteTaskSyncResponseHeader) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type ExecuteTaskSyncResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + // Resource is for synchronous task execution. + // + // Types that are assignable to Res: + // + // *ExecuteTaskSyncResponse_Header + // *ExecuteTaskSyncResponse_Outputs + Res isExecuteTaskSyncResponse_Res `protobuf_oneof:"res"` +} + +func (x *ExecuteTaskSyncResponse) Reset() { + *x = ExecuteTaskSyncResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteTaskSyncResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteTaskSyncResponse) ProtoMessage() {} + +func (x *ExecuteTaskSyncResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteTaskSyncResponse.ProtoReflect.Descriptor instead. +func (*ExecuteTaskSyncResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{6} +} + +func (m *ExecuteTaskSyncResponse) GetRes() isExecuteTaskSyncResponse_Res { + if m != nil { + return m.Res + } + return nil +} + +func (x *ExecuteTaskSyncResponse) GetHeader() *ExecuteTaskSyncResponseHeader { + if x, ok := x.GetRes().(*ExecuteTaskSyncResponse_Header); ok { + return x.Header + } + return nil +} + +func (x *ExecuteTaskSyncResponse) GetOutputs() *core.LiteralMap { + if x, ok := x.GetRes().(*ExecuteTaskSyncResponse_Outputs); ok { + return x.Outputs + } + return nil +} + +type isExecuteTaskSyncResponse_Res interface { + isExecuteTaskSyncResponse_Res() +} + +type ExecuteTaskSyncResponse_Header struct { + Header *ExecuteTaskSyncResponseHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type ExecuteTaskSyncResponse_Outputs struct { + Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3,oneof"` +} + +func (*ExecuteTaskSyncResponse_Header) isExecuteTaskSyncResponse_Res() {} + +func (*ExecuteTaskSyncResponse_Outputs) isExecuteTaskSyncResponse_Res() {} + +// A message used to fetch a job resource from flyte agent server. +type GetTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + // Metadata about the resource to be pass to the agent. + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` +} + +func (x *GetTaskRequest) Reset() { + *x = GetTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskRequest) ProtoMessage() {} + +func (x *GetTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead. +func (*GetTaskRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{7} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *GetTaskRequest) GetDeprecatedTaskType() string { + if x != nil { + return x.DeprecatedTaskType + } + return "" +} + +func (x *GetTaskRequest) GetResourceMeta() []byte { + if x != nil { + return x.ResourceMeta + } + return nil +} + +func (x *GetTaskRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + +// Response to get an individual task resource. +type GetTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` +} + +func (x *GetTaskResponse) Reset() { + *x = GetTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskResponse) ProtoMessage() {} + +func (x *GetTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead. +func (*GetTaskResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{8} +} + +func (x *GetTaskResponse) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +type Resource struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI. + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.State" json:"state,omitempty"` + // The outputs of the execution. It's typically used by sql task. Agent service will create a + // Structured dataset pointing to the query result table. + // +optional + Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + // A descriptive message for the current state. e.g. waiting for cluster. + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + // log information for the task execution. + LogLinks []*core.TaskLog `protobuf:"bytes,4,rep,name=log_links,json=logLinks,proto3" json:"log_links,omitempty"` + // The phase of the execution is used to determine the phase of the plugin's execution. + Phase core.TaskExecution_Phase `protobuf:"varint,5,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // Custom data specific to the agent. + CustomInfo *structpb.Struct `protobuf:"bytes,6,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` +} + +func (x *Resource) Reset() { + *x = Resource{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Resource.ProtoReflect.Descriptor instead. +func (*Resource) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{9} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *Resource) GetState() State { + if x != nil { + return x.State + } + return State_RETRYABLE_FAILURE +} + +func (x *Resource) GetOutputs() *core.LiteralMap { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *Resource) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *Resource) GetLogLinks() []*core.TaskLog { + if x != nil { + return x.LogLinks + } + return nil +} + +func (x *Resource) GetPhase() core.TaskExecution_Phase { + if x != nil { + return x.Phase + } + return core.TaskExecution_Phase(0) +} + +func (x *Resource) GetCustomInfo() *structpb.Struct { + if x != nil { + return x.CustomInfo + } + return nil +} + +// A message used to delete a task. +type DeleteTaskRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + // Metadata about the resource to be pass to the agent. + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` +} + +func (x *DeleteTaskRequest) Reset() { + *x = DeleteTaskRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteTaskRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTaskRequest) ProtoMessage() {} + +func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead. +func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{10} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *DeleteTaskRequest) GetDeprecatedTaskType() string { + if x != nil { + return x.DeprecatedTaskType + } + return "" +} + +func (x *DeleteTaskRequest) GetResourceMeta() []byte { + if x != nil { + return x.ResourceMeta + } + return nil +} + +func (x *DeleteTaskRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + +// Response to delete a task. +type DeleteTaskResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *DeleteTaskResponse) Reset() { + *x = DeleteTaskResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteTaskResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTaskResponse) ProtoMessage() {} + +func (x *DeleteTaskResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteTaskResponse.ProtoReflect.Descriptor instead. +func (*DeleteTaskResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{11} +} + +// A message containing the agent metadata. +type Agent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name is the developer-assigned name of the agent. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // SupportedTaskTypes are the types of the tasks that the agent can handle. + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedSupportedTaskTypes []string `protobuf:"bytes,2,rep,name=deprecated_supported_task_types,json=deprecatedSupportedTaskTypes,proto3" json:"deprecated_supported_task_types,omitempty"` + // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + // results synchronously when called by propeller. Given that sync agents can affect the performance + // of the system, it's important to enforce strict timeout policies. + // An Async agent, on the other hand, is required to be able to identify jobs by an + // identifier and query for job statuses as jobs progress. + IsSync bool `protobuf:"varint,3,opt,name=is_sync,json=isSync,proto3" json:"is_sync,omitempty"` + // SupportedTaskTypes are the types of the tasks that the agent can handle. + SupportedTaskTypes []*TaskType `protobuf:"bytes,4,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` +} + +func (x *Agent) Reset() { + *x = Agent{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Agent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Agent) ProtoMessage() {} + +func (x *Agent) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Agent.ProtoReflect.Descriptor instead. +func (*Agent) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{12} +} + +func (x *Agent) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *Agent) GetDeprecatedSupportedTaskTypes() []string { + if x != nil { + return x.DeprecatedSupportedTaskTypes + } + return nil +} + +func (x *Agent) GetIsSync() bool { + if x != nil { + return x.IsSync + } + return false +} + +func (x *Agent) GetSupportedTaskTypes() []*TaskType { + if x != nil { + return x.SupportedTaskTypes + } + return nil +} + +type TaskType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the task type. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The version of the task type. + Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` +} + +func (x *TaskType) Reset() { + *x = TaskType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskType) ProtoMessage() {} + +func (x *TaskType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskType.ProtoReflect.Descriptor instead. +func (*TaskType) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{13} +} + +func (x *TaskType) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *TaskType) GetVersion() int32 { + if x != nil { + return x.Version + } + return 0 +} + +// A request to get an agent. +type GetAgentRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the agent. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *GetAgentRequest) Reset() { + *x = GetAgentRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAgentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAgentRequest) ProtoMessage() {} + +func (x *GetAgentRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead. +func (*GetAgentRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{14} +} + +func (x *GetAgentRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// A response containing an agent. +type GetAgentResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Agent *Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` +} + +func (x *GetAgentResponse) Reset() { + *x = GetAgentResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetAgentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAgentResponse) ProtoMessage() {} + +func (x *GetAgentResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAgentResponse.ProtoReflect.Descriptor instead. +func (*GetAgentResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{15} +} + +func (x *GetAgentResponse) GetAgent() *Agent { + if x != nil { + return x.Agent + } + return nil +} + +// A request to list all agents. +type ListAgentsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ListAgentsRequest) Reset() { + *x = ListAgentsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAgentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAgentsRequest) ProtoMessage() {} + +func (x *ListAgentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAgentsRequest.ProtoReflect.Descriptor instead. +func (*ListAgentsRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{16} +} + +// A response containing a list of agents. +type ListAgentsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` +} + +func (x *ListAgentsResponse) Reset() { + *x = ListAgentsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListAgentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListAgentsResponse) ProtoMessage() {} + +func (x *ListAgentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListAgentsResponse.ProtoReflect.Descriptor instead. +func (*ListAgentsResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{17} +} + +func (x *ListAgentsResponse) GetAgents() []*Agent { + if x != nil { + return x.Agents + } + return nil +} + +// A request to get the metrics from a task execution. +type GetTaskMetricsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // The metrics to query. If empty, will return a default set of metrics. + // e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG + Queries []string `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` + // Start timestamp, inclusive. + StartTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // End timestamp, inclusive.. + EndTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Query resolution step width in duration format or float number of seconds. + Step *durationpb.Duration `protobuf:"bytes,6,opt,name=step,proto3" json:"step,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,7,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` +} + +func (x *GetTaskMetricsRequest) Reset() { + *x = GetTaskMetricsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskMetricsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskMetricsRequest) ProtoMessage() {} + +func (x *GetTaskMetricsRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskMetricsRequest.ProtoReflect.Descriptor instead. +func (*GetTaskMetricsRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{18} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *GetTaskMetricsRequest) GetDeprecatedTaskType() string { + if x != nil { + return x.DeprecatedTaskType + } + return "" +} + +func (x *GetTaskMetricsRequest) GetResourceMeta() []byte { + if x != nil { + return x.ResourceMeta + } + return nil +} + +func (x *GetTaskMetricsRequest) GetQueries() []string { + if x != nil { + return x.Queries + } + return nil +} + +func (x *GetTaskMetricsRequest) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime + } + return nil +} + +func (x *GetTaskMetricsRequest) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (x *GetTaskMetricsRequest) GetStep() *durationpb.Duration { + if x != nil { + return x.Step + } + return nil +} + +func (x *GetTaskMetricsRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + +// A response containing a list of metrics for a task execution. +type GetTaskMetricsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The execution metric results. + Results []*core.ExecutionMetricResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` +} + +func (x *GetTaskMetricsResponse) Reset() { + *x = GetTaskMetricsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskMetricsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskMetricsResponse) ProtoMessage() {} + +func (x *GetTaskMetricsResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskMetricsResponse.ProtoReflect.Descriptor instead. +func (*GetTaskMetricsResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{19} +} + +func (x *GetTaskMetricsResponse) GetResults() []*core.ExecutionMetricResult { + if x != nil { + return x.Results + } + return nil +} + +// A request to get the log from a task execution. +type GetTaskLogsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + // + // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. + DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` + // Number of lines to return. + Lines uint64 `protobuf:"varint,3,opt,name=lines,proto3" json:"lines,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType *TaskType `protobuf:"bytes,5,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` +} + +func (x *GetTaskLogsRequest) Reset() { + *x = GetTaskLogsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskLogsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskLogsRequest) ProtoMessage() {} + +func (x *GetTaskLogsRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskLogsRequest.ProtoReflect.Descriptor instead. +func (*GetTaskLogsRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{20} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. +func (x *GetTaskLogsRequest) GetDeprecatedTaskType() string { + if x != nil { + return x.DeprecatedTaskType + } + return "" +} + +func (x *GetTaskLogsRequest) GetResourceMeta() []byte { + if x != nil { + return x.ResourceMeta + } + return nil +} + +func (x *GetTaskLogsRequest) GetLines() uint64 { + if x != nil { + return x.Lines + } + return 0 +} + +func (x *GetTaskLogsRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *GetTaskLogsRequest) GetTaskType() *TaskType { + if x != nil { + return x.TaskType + } + return nil +} + +type GetTaskLogsResponseHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *GetTaskLogsResponseHeader) Reset() { + *x = GetTaskLogsResponseHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskLogsResponseHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskLogsResponseHeader) ProtoMessage() {} + +func (x *GetTaskLogsResponseHeader) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskLogsResponseHeader.ProtoReflect.Descriptor instead. +func (*GetTaskLogsResponseHeader) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{21} +} + +func (x *GetTaskLogsResponseHeader) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +type GetTaskLogsResponseBody struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The execution log results. + Results []string `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` +} + +func (x *GetTaskLogsResponseBody) Reset() { + *x = GetTaskLogsResponseBody{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskLogsResponseBody) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskLogsResponseBody) ProtoMessage() {} + +func (x *GetTaskLogsResponseBody) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskLogsResponseBody.ProtoReflect.Descriptor instead. +func (*GetTaskLogsResponseBody) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{22} +} + +func (x *GetTaskLogsResponseBody) GetResults() []string { + if x != nil { + return x.Results + } + return nil +} + +// A response containing the logs for a task execution. +type GetTaskLogsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Part: + // + // *GetTaskLogsResponse_Header + // *GetTaskLogsResponse_Body + Part isGetTaskLogsResponse_Part `protobuf_oneof:"part"` +} + +func (x *GetTaskLogsResponse) Reset() { + *x = GetTaskLogsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_agent_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetTaskLogsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTaskLogsResponse) ProtoMessage() {} + +func (x *GetTaskLogsResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_agent_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTaskLogsResponse.ProtoReflect.Descriptor instead. +func (*GetTaskLogsResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{23} +} + +func (m *GetTaskLogsResponse) GetPart() isGetTaskLogsResponse_Part { + if m != nil { + return m.Part + } + return nil +} + +func (x *GetTaskLogsResponse) GetHeader() *GetTaskLogsResponseHeader { + if x, ok := x.GetPart().(*GetTaskLogsResponse_Header); ok { + return x.Header + } + return nil +} + +func (x *GetTaskLogsResponse) GetBody() *GetTaskLogsResponseBody { + if x, ok := x.GetPart().(*GetTaskLogsResponse_Body); ok { + return x.Body + } + return nil +} + +type isGetTaskLogsResponse_Part interface { + isGetTaskLogsResponse_Part() +} + +type GetTaskLogsResponse_Header struct { + Header *GetTaskLogsResponseHeader `protobuf:"bytes,1,opt,name=header,proto3,oneof"` +} + +type GetTaskLogsResponse_Body struct { + Body *GetTaskLogsResponseBody `protobuf:"bytes,2,opt,name=body,proto3,oneof"` +} + +func (*GetTaskLogsResponse_Header) isGetTaskLogsResponse_Part() {} + +func (*GetTaskLogsResponse_Body) isGetTaskLogsResponse_Part() {} + +var File_flyteidl_admin_agent_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_agent_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1c, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, + 0x06, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x52, 0x0a, 0x11, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x74, 0x61, 0x73, + 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x2e, 0x0a, 0x13, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6b, 0x38, + 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x74, 0x0a, 0x15, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x76, + 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, + 0x74, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x14, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x56, 0x61, 0x72, 0x69, + 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x74, 0x74, + 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, + 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x46, + 0x0a, 0x1f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x5f, + 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, + 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, + 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x54, 0x68, 0x72, + 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x3e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, + 0x64, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, + 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x09, 0x6f, 0x76, 0x65, + 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x47, 0x0a, 0x19, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x83, 0x02, 0x0a, 0x11, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x06, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x22, 0x39, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x22, 0x87, 0x02, 0x0a, 0x13, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, 0x69, + 0x78, 0x12, 0x5d, 0x0a, 0x17, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x15, 0x74, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x33, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x13, 0x6d, 0x61, 0x78, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, + 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x3d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, + 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x06, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x22, 0x55, 0x0a, 0x1d, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, + 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x47, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x42, + 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x47, 0x0a, 0x0f, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, + 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, + 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, + 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x11, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, + 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x1f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, + 0x02, 0x18, 0x01, 0x52, 0x1c, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x53, + 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, + 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, + 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, + 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, + 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, + 0x65, 0x70, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, + 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, + 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, + 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, + 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, + 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, + 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, + 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, + 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, + 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, + 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, + 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_agent_proto_rawDescOnce sync.Once + file_flyteidl_admin_agent_proto_rawDescData = file_flyteidl_admin_agent_proto_rawDesc +) + +func file_flyteidl_admin_agent_proto_rawDescGZIP() []byte { + file_flyteidl_admin_agent_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_agent_proto_rawDescData) + }) + return file_flyteidl_admin_agent_proto_rawDescData +} + +var file_flyteidl_admin_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_admin_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 27) +var file_flyteidl_admin_agent_proto_goTypes = []interface{}{ + (State)(0), // 0: flyteidl.admin.State + (*TaskExecutionMetadata)(nil), // 1: flyteidl.admin.TaskExecutionMetadata + (*CreateTaskRequest)(nil), // 2: flyteidl.admin.CreateTaskRequest + (*CreateTaskResponse)(nil), // 3: flyteidl.admin.CreateTaskResponse + (*CreateRequestHeader)(nil), // 4: flyteidl.admin.CreateRequestHeader + (*ExecuteTaskSyncRequest)(nil), // 5: flyteidl.admin.ExecuteTaskSyncRequest + (*ExecuteTaskSyncResponseHeader)(nil), // 6: flyteidl.admin.ExecuteTaskSyncResponseHeader + (*ExecuteTaskSyncResponse)(nil), // 7: flyteidl.admin.ExecuteTaskSyncResponse + (*GetTaskRequest)(nil), // 8: flyteidl.admin.GetTaskRequest + (*GetTaskResponse)(nil), // 9: flyteidl.admin.GetTaskResponse + (*Resource)(nil), // 10: flyteidl.admin.Resource + (*DeleteTaskRequest)(nil), // 11: flyteidl.admin.DeleteTaskRequest + (*DeleteTaskResponse)(nil), // 12: flyteidl.admin.DeleteTaskResponse + (*Agent)(nil), // 13: flyteidl.admin.Agent + (*TaskType)(nil), // 14: flyteidl.admin.TaskType + (*GetAgentRequest)(nil), // 15: flyteidl.admin.GetAgentRequest + (*GetAgentResponse)(nil), // 16: flyteidl.admin.GetAgentResponse + (*ListAgentsRequest)(nil), // 17: flyteidl.admin.ListAgentsRequest + (*ListAgentsResponse)(nil), // 18: flyteidl.admin.ListAgentsResponse + (*GetTaskMetricsRequest)(nil), // 19: flyteidl.admin.GetTaskMetricsRequest + (*GetTaskMetricsResponse)(nil), // 20: flyteidl.admin.GetTaskMetricsResponse + (*GetTaskLogsRequest)(nil), // 21: flyteidl.admin.GetTaskLogsRequest + (*GetTaskLogsResponseHeader)(nil), // 22: flyteidl.admin.GetTaskLogsResponseHeader + (*GetTaskLogsResponseBody)(nil), // 23: flyteidl.admin.GetTaskLogsResponseBody + (*GetTaskLogsResponse)(nil), // 24: flyteidl.admin.GetTaskLogsResponse + nil, // 25: flyteidl.admin.TaskExecutionMetadata.LabelsEntry + nil, // 26: flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry + nil, // 27: flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry + (*core.TaskExecutionIdentifier)(nil), // 28: flyteidl.core.TaskExecutionIdentifier + (*core.TaskNodeOverrides)(nil), // 29: flyteidl.core.TaskNodeOverrides + (*core.LiteralMap)(nil), // 30: flyteidl.core.LiteralMap + (*core.TaskTemplate)(nil), // 31: flyteidl.core.TaskTemplate + (*core.TaskLog)(nil), // 32: flyteidl.core.TaskLog + (core.TaskExecution_Phase)(0), // 33: flyteidl.core.TaskExecution.Phase + (*structpb.Struct)(nil), // 34: google.protobuf.Struct + (*timestamppb.Timestamp)(nil), // 35: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 36: google.protobuf.Duration + (*core.ExecutionMetricResult)(nil), // 37: flyteidl.core.ExecutionMetricResult +} +var file_flyteidl_admin_agent_proto_depIdxs = []int32{ + 28, // 0: flyteidl.admin.TaskExecutionMetadata.task_execution_id:type_name -> flyteidl.core.TaskExecutionIdentifier + 25, // 1: flyteidl.admin.TaskExecutionMetadata.labels:type_name -> flyteidl.admin.TaskExecutionMetadata.LabelsEntry + 26, // 2: flyteidl.admin.TaskExecutionMetadata.annotations:type_name -> flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry + 27, // 3: flyteidl.admin.TaskExecutionMetadata.environment_variables:type_name -> flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry + 29, // 4: flyteidl.admin.TaskExecutionMetadata.overrides:type_name -> flyteidl.core.TaskNodeOverrides + 30, // 5: flyteidl.admin.CreateTaskRequest.inputs:type_name -> flyteidl.core.LiteralMap + 31, // 6: flyteidl.admin.CreateTaskRequest.template:type_name -> flyteidl.core.TaskTemplate + 1, // 7: flyteidl.admin.CreateTaskRequest.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata + 31, // 8: flyteidl.admin.CreateRequestHeader.template:type_name -> flyteidl.core.TaskTemplate + 1, // 9: flyteidl.admin.CreateRequestHeader.task_execution_metadata:type_name -> flyteidl.admin.TaskExecutionMetadata + 4, // 10: flyteidl.admin.ExecuteTaskSyncRequest.header:type_name -> flyteidl.admin.CreateRequestHeader + 30, // 11: flyteidl.admin.ExecuteTaskSyncRequest.inputs:type_name -> flyteidl.core.LiteralMap + 10, // 12: flyteidl.admin.ExecuteTaskSyncResponseHeader.resource:type_name -> flyteidl.admin.Resource + 6, // 13: flyteidl.admin.ExecuteTaskSyncResponse.header:type_name -> flyteidl.admin.ExecuteTaskSyncResponseHeader + 30, // 14: flyteidl.admin.ExecuteTaskSyncResponse.outputs:type_name -> flyteidl.core.LiteralMap + 14, // 15: flyteidl.admin.GetTaskRequest.task_type:type_name -> flyteidl.admin.TaskType + 10, // 16: flyteidl.admin.GetTaskResponse.resource:type_name -> flyteidl.admin.Resource + 0, // 17: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State + 30, // 18: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap + 32, // 19: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog + 33, // 20: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase + 34, // 21: flyteidl.admin.Resource.custom_info:type_name -> google.protobuf.Struct + 14, // 22: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType + 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent + 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent + 35, // 26: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp + 35, // 27: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp + 36, // 28: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration + 14, // 29: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 37, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult + 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader + 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_agent_proto_init() } +func file_flyteidl_admin_agent_proto_init() { + if File_flyteidl_admin_agent_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateRequestHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteTaskSyncRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteTaskSyncResponseHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteTaskSyncResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Resource); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteTaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Agent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAgentRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetAgentResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAgentsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAgentsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskMetricsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskMetricsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsResponseHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsResponseBody); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetTaskLogsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_agent_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*ExecuteTaskSyncRequest_Header)(nil), + (*ExecuteTaskSyncRequest_Inputs)(nil), + } + file_flyteidl_admin_agent_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*ExecuteTaskSyncResponse_Header)(nil), + (*ExecuteTaskSyncResponse_Outputs)(nil), + } + file_flyteidl_admin_agent_proto_msgTypes[23].OneofWrappers = []interface{}{ + (*GetTaskLogsResponse_Header)(nil), + (*GetTaskLogsResponse_Body)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_agent_proto_rawDesc, + NumEnums: 1, + NumMessages: 27, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_agent_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_agent_proto_depIdxs, + EnumInfos: file_flyteidl_admin_agent_proto_enumTypes, + MessageInfos: file_flyteidl_admin_agent_proto_msgTypes, + }.Build() + File_flyteidl_admin_agent_proto = out.File + file_flyteidl_admin_agent_proto_rawDesc = nil + file_flyteidl_admin_agent_proto_goTypes = nil + file_flyteidl_admin_agent_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go new file mode 100644 index 0000000000..2f4337cb62 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go @@ -0,0 +1,159 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/cluster_assignment.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Encapsulates specifications for routing an execution onto a specific cluster. +type ClusterAssignment struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterPoolName string `protobuf:"bytes,3,opt,name=cluster_pool_name,json=clusterPoolName,proto3" json:"cluster_pool_name,omitempty"` +} + +func (x *ClusterAssignment) Reset() { + *x = ClusterAssignment{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_cluster_assignment_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterAssignment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterAssignment) ProtoMessage() {} + +func (x *ClusterAssignment) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_cluster_assignment_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClusterAssignment.ProtoReflect.Descriptor instead. +func (*ClusterAssignment) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_cluster_assignment_proto_rawDescGZIP(), []int{0} +} + +func (x *ClusterAssignment) GetClusterPoolName() string { + if x != nil { + return x.ClusterPoolName + } + return "" +} + +var File_flyteidl_admin_cluster_assignment_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_cluster_assignment_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x4b, 0x0a, 0x11, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2a, + 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x50, 0x6f, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, + 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x16, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_cluster_assignment_proto_rawDescOnce sync.Once + file_flyteidl_admin_cluster_assignment_proto_rawDescData = file_flyteidl_admin_cluster_assignment_proto_rawDesc +) + +func file_flyteidl_admin_cluster_assignment_proto_rawDescGZIP() []byte { + file_flyteidl_admin_cluster_assignment_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_cluster_assignment_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_cluster_assignment_proto_rawDescData) + }) + return file_flyteidl_admin_cluster_assignment_proto_rawDescData +} + +var file_flyteidl_admin_cluster_assignment_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_admin_cluster_assignment_proto_goTypes = []interface{}{ + (*ClusterAssignment)(nil), // 0: flyteidl.admin.ClusterAssignment +} +var file_flyteidl_admin_cluster_assignment_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_cluster_assignment_proto_init() } +func file_flyteidl_admin_cluster_assignment_proto_init() { + if File_flyteidl_admin_cluster_assignment_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_cluster_assignment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterAssignment); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_cluster_assignment_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_cluster_assignment_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_cluster_assignment_proto_depIdxs, + MessageInfos: file_flyteidl_admin_cluster_assignment_proto_msgTypes, + }.Build() + File_flyteidl_admin_cluster_assignment_proto = out.File + file_flyteidl_admin_cluster_assignment_proto_rawDesc = nil + file_flyteidl_admin_cluster_assignment_proto_goTypes = nil + file_flyteidl_admin_cluster_assignment_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go new file mode 100644 index 0000000000..a20233700b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go @@ -0,0 +1,2331 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/common.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The status of the named entity is used to control its visibility in the UI. +type NamedEntityState int32 + +const ( + // By default, all named entities are considered active and under development. + NamedEntityState_NAMED_ENTITY_ACTIVE NamedEntityState = 0 + // Archived named entities are no longer visible in the UI. + NamedEntityState_NAMED_ENTITY_ARCHIVED NamedEntityState = 1 + // System generated entities that aren't explicitly created or managed by a user. + NamedEntityState_SYSTEM_GENERATED NamedEntityState = 2 +) + +// Enum value maps for NamedEntityState. +var ( + NamedEntityState_name = map[int32]string{ + 0: "NAMED_ENTITY_ACTIVE", + 1: "NAMED_ENTITY_ARCHIVED", + 2: "SYSTEM_GENERATED", + } + NamedEntityState_value = map[string]int32{ + "NAMED_ENTITY_ACTIVE": 0, + "NAMED_ENTITY_ARCHIVED": 1, + "SYSTEM_GENERATED": 2, + } +) + +func (x NamedEntityState) Enum() *NamedEntityState { + p := new(NamedEntityState) + *p = x + return p +} + +func (x NamedEntityState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NamedEntityState) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_common_proto_enumTypes[0].Descriptor() +} + +func (NamedEntityState) Type() protoreflect.EnumType { + return &file_flyteidl_admin_common_proto_enumTypes[0] +} + +func (x NamedEntityState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NamedEntityState.Descriptor instead. +func (NamedEntityState) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{0} +} + +type Sort_Direction int32 + +const ( + // By default, fields are sorted in descending order. + Sort_DESCENDING Sort_Direction = 0 + Sort_ASCENDING Sort_Direction = 1 +) + +// Enum value maps for Sort_Direction. +var ( + Sort_Direction_name = map[int32]string{ + 0: "DESCENDING", + 1: "ASCENDING", + } + Sort_Direction_value = map[string]int32{ + "DESCENDING": 0, + "ASCENDING": 1, + } +) + +func (x Sort_Direction) Enum() *Sort_Direction { + p := new(Sort_Direction) + *p = x + return p +} + +func (x Sort_Direction) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Sort_Direction) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_common_proto_enumTypes[1].Descriptor() +} + +func (Sort_Direction) Type() protoreflect.EnumType { + return &file_flyteidl_admin_common_proto_enumTypes[1] +} + +func (x Sort_Direction) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Sort_Direction.Descriptor instead. +func (Sort_Direction) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{3, 0} +} + +// Encapsulation of fields that identifies a Flyte resource. +// A Flyte resource can be a task, workflow or launch plan. +// A resource can internally have multiple versions and is uniquely identified +// by project, domain, and name. +type NamedEntityIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + // The combination of project + domain + name uniquely identifies the resource. + // +optional - in certain contexts - like 'List API', 'Launch plans' + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *NamedEntityIdentifier) Reset() { + *x = NamedEntityIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityIdentifier) ProtoMessage() {} + +func (x *NamedEntityIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityIdentifier.ProtoReflect.Descriptor instead. +func (*NamedEntityIdentifier) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{0} +} + +func (x *NamedEntityIdentifier) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *NamedEntityIdentifier) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *NamedEntityIdentifier) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *NamedEntityIdentifier) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Additional metadata around a named entity. +type NamedEntityMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Common description across all versions of the entity + // +optional + Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` + // Shared state across all version of the entity + // At this point in time, only workflow entities can have their state archived. + State NamedEntityState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.NamedEntityState" json:"state,omitempty"` +} + +func (x *NamedEntityMetadata) Reset() { + *x = NamedEntityMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityMetadata) ProtoMessage() {} + +func (x *NamedEntityMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityMetadata.ProtoReflect.Descriptor instead. +func (*NamedEntityMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{1} +} + +func (x *NamedEntityMetadata) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *NamedEntityMetadata) GetState() NamedEntityState { + if x != nil { + return x.State + } + return NamedEntityState_NAMED_ENTITY_ACTIVE +} + +// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, +// workflow or launch plan. A NamedEntity is exclusively identified by its resource type +// and identifier. +type NamedEntity struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Resource type of the named entity. One of Task, Workflow or LaunchPlan. + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Additional metadata around a named entity. + Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *NamedEntity) Reset() { + *x = NamedEntity{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntity) ProtoMessage() {} + +func (x *NamedEntity) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntity.ProtoReflect.Descriptor instead. +func (*NamedEntity) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{2} +} + +func (x *NamedEntity) GetResourceType() core.ResourceType { + if x != nil { + return x.ResourceType + } + return core.ResourceType(0) +} + +func (x *NamedEntity) GetId() *NamedEntityIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *NamedEntity) GetMetadata() *NamedEntityMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +// Specifies sort ordering in a list request. +type Sort struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates an attribute to sort the response values. + // +required + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // Indicates the direction to apply sort key for response values. + // +optional + Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.admin.Sort_Direction" json:"direction,omitempty"` +} + +func (x *Sort) Reset() { + *x = Sort{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Sort) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Sort) ProtoMessage() {} + +func (x *Sort) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Sort.ProtoReflect.Descriptor instead. +func (*Sort) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{3} +} + +func (x *Sort) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *Sort) GetDirection() Sort_Direction { + if x != nil { + return x.Direction + } + return Sort_DESCENDING +} + +// Represents a request structure to list NamedEntityIdentifiers. +type NamedEntityIdentifierListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the project that contains the identifiers. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Specifies how listed entities should be sorted in the response. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Indicates a list of filters passed as string. + // +optional + Filters string `protobuf:"bytes,6,opt,name=filters,proto3" json:"filters,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,7,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *NamedEntityIdentifierListRequest) Reset() { + *x = NamedEntityIdentifierListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityIdentifierListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityIdentifierListRequest) ProtoMessage() {} + +func (x *NamedEntityIdentifierListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityIdentifierListRequest.ProtoReflect.Descriptor instead. +func (*NamedEntityIdentifierListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{4} +} + +func (x *NamedEntityIdentifierListRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *NamedEntityIdentifierListRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *NamedEntityIdentifierListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *NamedEntityIdentifierListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *NamedEntityIdentifierListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +func (x *NamedEntityIdentifierListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *NamedEntityIdentifierListRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Represents a request structure to list NamedEntity objects +type NamedEntityListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. + // +required + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Name of the project that contains the identifiers. + // +required + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` + // Specifies how listed entities should be sorted in the response. + // +optional + SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Indicates a list of filters passed as string. + // +optional + Filters string `protobuf:"bytes,7,opt,name=filters,proto3" json:"filters,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,8,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *NamedEntityListRequest) Reset() { + *x = NamedEntityListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityListRequest) ProtoMessage() {} + +func (x *NamedEntityListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityListRequest.ProtoReflect.Descriptor instead. +func (*NamedEntityListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{5} +} + +func (x *NamedEntityListRequest) GetResourceType() core.ResourceType { + if x != nil { + return x.ResourceType + } + return core.ResourceType(0) +} + +func (x *NamedEntityListRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *NamedEntityListRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *NamedEntityListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *NamedEntityListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *NamedEntityListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +func (x *NamedEntityListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *NamedEntityListRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Represents a list of NamedEntityIdentifiers. +type NamedEntityIdentifierList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of identifiers. + Entities []*NamedEntityIdentifier `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *NamedEntityIdentifierList) Reset() { + *x = NamedEntityIdentifierList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityIdentifierList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityIdentifierList) ProtoMessage() {} + +func (x *NamedEntityIdentifierList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityIdentifierList.ProtoReflect.Descriptor instead. +func (*NamedEntityIdentifierList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{6} +} + +func (x *NamedEntityIdentifierList) GetEntities() []*NamedEntityIdentifier { + if x != nil { + return x.Entities + } + return nil +} + +func (x *NamedEntityIdentifierList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Represents a list of NamedEntityIdentifiers. +type NamedEntityList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of NamedEntity objects + Entities []*NamedEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *NamedEntityList) Reset() { + *x = NamedEntityList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityList) ProtoMessage() {} + +func (x *NamedEntityList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityList.ProtoReflect.Descriptor instead. +func (*NamedEntityList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{7} +} + +func (x *NamedEntityList) GetEntities() []*NamedEntity { + if x != nil { + return x.Entities + } + return nil +} + +func (x *NamedEntityList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// A request to retrieve the metadata associated with a NamedEntityIdentifier +type NamedEntityGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. + // +required + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // The identifier for the named entity for which to fetch metadata. + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *NamedEntityGetRequest) Reset() { + *x = NamedEntityGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityGetRequest) ProtoMessage() {} + +func (x *NamedEntityGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityGetRequest.ProtoReflect.Descriptor instead. +func (*NamedEntityGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{8} +} + +func (x *NamedEntityGetRequest) GetResourceType() core.ResourceType { + if x != nil { + return x.ResourceType + } + return core.ResourceType(0) +} + +func (x *NamedEntityGetRequest) GetId() *NamedEntityIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Request to set the referenced named entity state to the configured value. +type NamedEntityUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Resource type of the metadata to update + // +required + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Identifier of the metadata to update + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Metadata object to set as the new value + // +required + Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *NamedEntityUpdateRequest) Reset() { + *x = NamedEntityUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityUpdateRequest) ProtoMessage() {} + +func (x *NamedEntityUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityUpdateRequest.ProtoReflect.Descriptor instead. +func (*NamedEntityUpdateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{9} +} + +func (x *NamedEntityUpdateRequest) GetResourceType() core.ResourceType { + if x != nil { + return x.ResourceType + } + return core.ResourceType(0) +} + +func (x *NamedEntityUpdateRequest) GetId() *NamedEntityIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *NamedEntityUpdateRequest) GetMetadata() *NamedEntityMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +// Purposefully empty, may be populated in the future. +type NamedEntityUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NamedEntityUpdateResponse) Reset() { + *x = NamedEntityUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NamedEntityUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NamedEntityUpdateResponse) ProtoMessage() {} + +func (x *NamedEntityUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NamedEntityUpdateResponse.ProtoReflect.Descriptor instead. +func (*NamedEntityUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{10} +} + +// Shared request structure to fetch a single resource. +// Resources include: Task, Workflow, LaunchPlan +type ObjectGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates a unique version of resource. + // +required + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ObjectGetRequest) Reset() { + *x = ObjectGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ObjectGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ObjectGetRequest) ProtoMessage() {} + +func (x *ObjectGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ObjectGetRequest.ProtoReflect.Descriptor instead. +func (*ObjectGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{11} +} + +func (x *ObjectGetRequest) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +// Shared request structure to retrieve a list of resources. +// Resources include: Task, Workflow, LaunchPlan +type ResourceListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the resource. + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` +} + +func (x *ResourceListRequest) Reset() { + *x = ResourceListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourceListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceListRequest) ProtoMessage() {} + +func (x *ResourceListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourceListRequest.ProtoReflect.Descriptor instead. +func (*ResourceListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{12} +} + +func (x *ResourceListRequest) GetId() *NamedEntityIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *ResourceListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *ResourceListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *ResourceListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *ResourceListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +// Defines an email notification specification. +type EmailNotification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The list of email addresses recipients for this notification. + // +required + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` +} + +func (x *EmailNotification) Reset() { + *x = EmailNotification{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmailNotification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmailNotification) ProtoMessage() {} + +func (x *EmailNotification) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EmailNotification.ProtoReflect.Descriptor instead. +func (*EmailNotification) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{13} +} + +func (x *EmailNotification) GetRecipientsEmail() []string { + if x != nil { + return x.RecipientsEmail + } + return nil +} + +// Defines a pager duty notification specification. +type PagerDutyNotification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Currently, PagerDuty notifications leverage email to trigger a notification. + // +required + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` +} + +func (x *PagerDutyNotification) Reset() { + *x = PagerDutyNotification{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PagerDutyNotification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PagerDutyNotification) ProtoMessage() {} + +func (x *PagerDutyNotification) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PagerDutyNotification.ProtoReflect.Descriptor instead. +func (*PagerDutyNotification) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{14} +} + +func (x *PagerDutyNotification) GetRecipientsEmail() []string { + if x != nil { + return x.RecipientsEmail + } + return nil +} + +// Defines a slack notification specification. +type SlackNotification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Currently, Slack notifications leverage email to trigger a notification. + // +required + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` +} + +func (x *SlackNotification) Reset() { + *x = SlackNotification{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SlackNotification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SlackNotification) ProtoMessage() {} + +func (x *SlackNotification) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SlackNotification.ProtoReflect.Descriptor instead. +func (*SlackNotification) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{15} +} + +func (x *SlackNotification) GetRecipientsEmail() []string { + if x != nil { + return x.RecipientsEmail + } + return nil +} + +// Represents a structure for notifications based on execution status. +// The notification content is configured within flyte admin but can be templatized. +// Future iterations could expose configuring notifications with custom content. +type Notification struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of phases to which users can associate the notifications to. + // +required + Phases []core.WorkflowExecution_Phase `protobuf:"varint,1,rep,packed,name=phases,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phases,omitempty"` + // The type of notification to trigger. + // +required + // + // Types that are assignable to Type: + // + // *Notification_Email + // *Notification_PagerDuty + // *Notification_Slack + Type isNotification_Type `protobuf_oneof:"type"` +} + +func (x *Notification) Reset() { + *x = Notification{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Notification) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Notification) ProtoMessage() {} + +func (x *Notification) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Notification.ProtoReflect.Descriptor instead. +func (*Notification) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{16} +} + +func (x *Notification) GetPhases() []core.WorkflowExecution_Phase { + if x != nil { + return x.Phases + } + return nil +} + +func (m *Notification) GetType() isNotification_Type { + if m != nil { + return m.Type + } + return nil +} + +func (x *Notification) GetEmail() *EmailNotification { + if x, ok := x.GetType().(*Notification_Email); ok { + return x.Email + } + return nil +} + +func (x *Notification) GetPagerDuty() *PagerDutyNotification { + if x, ok := x.GetType().(*Notification_PagerDuty); ok { + return x.PagerDuty + } + return nil +} + +func (x *Notification) GetSlack() *SlackNotification { + if x, ok := x.GetType().(*Notification_Slack); ok { + return x.Slack + } + return nil +} + +type isNotification_Type interface { + isNotification_Type() +} + +type Notification_Email struct { + Email *EmailNotification `protobuf:"bytes,2,opt,name=email,proto3,oneof"` +} + +type Notification_PagerDuty struct { + PagerDuty *PagerDutyNotification `protobuf:"bytes,3,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` +} + +type Notification_Slack struct { + Slack *SlackNotification `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` +} + +func (*Notification_Email) isNotification_Type() {} + +func (*Notification_PagerDuty) isNotification_Type() {} + +func (*Notification_Slack) isNotification_Type() {} + +// Represents a string url and associated metadata used throughout the platform. +// +// Deprecated: Marked as deprecated in flyteidl/admin/common.proto. +type UrlBlob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Actual url value. + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + // Represents the size of the file accessible at the above url. + Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` +} + +func (x *UrlBlob) Reset() { + *x = UrlBlob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UrlBlob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UrlBlob) ProtoMessage() {} + +func (x *UrlBlob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UrlBlob.ProtoReflect.Descriptor instead. +func (*UrlBlob) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{17} +} + +func (x *UrlBlob) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *UrlBlob) GetBytes() int64 { + if x != nil { + return x.Bytes + } + return 0 +} + +// Label values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge labels defined at registration and execution time. +type Labels struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Map of custom labels to be applied to the execution resource. + Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Labels) Reset() { + *x = Labels{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Labels) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Labels) ProtoMessage() {} + +func (x *Labels) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Labels.ProtoReflect.Descriptor instead. +func (*Labels) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{18} +} + +func (x *Labels) GetValues() map[string]string { + if x != nil { + return x.Values + } + return nil +} + +// Annotation values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge annotations defined at registration and execution time. +type Annotations struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Map of custom annotations to be applied to the execution resource. + Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Annotations) Reset() { + *x = Annotations{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Annotations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Annotations) ProtoMessage() {} + +func (x *Annotations) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Annotations.ProtoReflect.Descriptor instead. +func (*Annotations) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{19} +} + +func (x *Annotations) GetValues() map[string]string { + if x != nil { + return x.Values + } + return nil +} + +// Environment variable values to be applied to an execution resource. +// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +// to specify how to merge environment variables defined at registration and execution time. +type Envs struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Map of custom environment variables to be applied to the execution resource. + Values []*core.KeyValuePair `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *Envs) Reset() { + *x = Envs{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Envs) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Envs) ProtoMessage() {} + +func (x *Envs) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Envs.ProtoReflect.Descriptor instead. +func (*Envs) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{20} +} + +func (x *Envs) GetValues() []*core.KeyValuePair { + if x != nil { + return x.Values + } + return nil +} + +// Defines permissions associated with executions created by this launch plan spec. +// Use either of these roles when they have permissions required by your workflow execution. +// Deprecated. +// +// Deprecated: Marked as deprecated in flyteidl/admin/common.proto. +type AuthRole struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` +} + +func (x *AuthRole) Reset() { + *x = AuthRole{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AuthRole) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthRole) ProtoMessage() {} + +func (x *AuthRole) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AuthRole.ProtoReflect.Descriptor instead. +func (*AuthRole) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{21} +} + +func (x *AuthRole) GetAssumableIamRole() string { + if x != nil { + return x.AssumableIamRole + } + return "" +} + +func (x *AuthRole) GetKubernetesServiceAccount() string { + if x != nil { + return x.KubernetesServiceAccount + } + return "" +} + +// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). +// See https://github.com/flyteorg/flyte/issues/211 for more background information. +type RawOutputDataConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Prefix for where offloaded data from user workflows will be written + // e.g. s3://bucket/key or s3://bucket/ + OutputLocationPrefix string `protobuf:"bytes,1,opt,name=output_location_prefix,json=outputLocationPrefix,proto3" json:"output_location_prefix,omitempty"` +} + +func (x *RawOutputDataConfig) Reset() { + *x = RawOutputDataConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RawOutputDataConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RawOutputDataConfig) ProtoMessage() {} + +func (x *RawOutputDataConfig) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RawOutputDataConfig.ProtoReflect.Descriptor instead. +func (*RawOutputDataConfig) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{22} +} + +func (x *RawOutputDataConfig) GetOutputLocationPrefix() string { + if x != nil { + return x.OutputLocationPrefix + } + return "" +} + +// These URLs are returned as part of node and task execution data requests. +type FlyteURLs struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Inputs string `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + Outputs string `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + Deck string `protobuf:"bytes,3,opt,name=deck,proto3" json:"deck,omitempty"` +} + +func (x *FlyteURLs) Reset() { + *x = FlyteURLs{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_common_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FlyteURLs) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FlyteURLs) ProtoMessage() {} + +func (x *FlyteURLs) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_common_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FlyteURLs.ProtoReflect.Descriptor instead. +func (*FlyteURLs) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_common_proto_rawDescGZIP(), []int{23} +} + +func (x *FlyteURLs) GetInputs() string { + if x != nil { + return x.Inputs + } + return "" +} + +func (x *FlyteURLs) GetOutputs() string { + if x != nil { + return x.Outputs + } + return "" +} + +func (x *FlyteURLs) GetDeck() string { + if x != nil { + return x.Deck + } + return "" +} + +var File_flyteidl_admin_common_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_common_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1d, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x15, 0x4e, + 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, + 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x6f, 0x0a, 0x13, + 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xc7, 0x01, + 0x0a, 0x0b, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x40, 0x0a, + 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, + 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x82, 0x01, 0x0a, 0x04, 0x53, 0x6f, 0x72, 0x74, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x2e, 0x44, 0x69, 0x72, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x2a, 0x0a, 0x09, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, + 0x0a, 0x44, 0x45, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x0d, 0x0a, + 0x09, 0x41, 0x53, 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x22, 0xdb, 0x01, 0x0a, + 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x18, + 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x93, 0x02, 0x0a, 0x16, 0x4e, + 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, + 0x72, 0x74, 0x42, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x10, + 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, + 0x22, 0x74, 0x0a, 0x19, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x41, 0x0a, + 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x60, 0x0a, 0x0f, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, + 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x90, 0x01, 0x0a, 0x15, 0x4e, 0x61, 0x6d, + 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd4, 0x01, 0x0a, 0x18, + 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x3f, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x1b, 0x0a, 0x19, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x3d, 0x0a, 0x10, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0xc1, + 0x01, 0x0a, 0x13, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, + 0x42, 0x79, 0x22, 0x3e, 0x0a, 0x11, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, + 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6d, 0x61, + 0x69, 0x6c, 0x22, 0x42, 0x0a, 0x15, 0x50, 0x61, 0x67, 0x65, 0x72, 0x44, 0x75, 0x74, 0x79, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, + 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, + 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x3e, 0x0a, 0x11, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x72, + 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, + 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x94, 0x02, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x0a, 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, + 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x65, 0x6d, 0x61, + 0x69, 0x6c, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x72, 0x5f, 0x64, 0x75, 0x74, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x72, 0x44, 0x75, 0x74, + 0x79, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x09, 0x70, 0x61, 0x67, 0x65, 0x72, 0x44, 0x75, 0x74, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x6c, + 0x61, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, + 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x35, 0x0a, + 0x07, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, + 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, + 0x3a, 0x02, 0x18, 0x01, 0x22, 0x7f, 0x0a, 0x06, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, + 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x0b, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x3b, 0x0a, 0x04, 0x45, 0x6e, 0x76, 0x73, 0x12, 0x33, 0x0a, 0x06, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x7a, + 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x73, + 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, + 0x65, 0x49, 0x61, 0x6d, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x6b, 0x75, 0x62, 0x65, + 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, + 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x4b, 0x0a, 0x13, 0x52, 0x61, + 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x34, 0x0a, 0x16, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x14, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x22, 0x51, 0x0a, 0x09, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x55, 0x52, 0x4c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x63, 0x6b, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x63, 0x6b, 0x2a, 0x5c, 0x0a, 0x10, 0x4e, 0x61, + 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, + 0x0a, 0x13, 0x4e, 0x41, 0x4d, 0x45, 0x44, 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x41, + 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x41, 0x4d, 0x45, 0x44, + 0x5f, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, + 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, 0x47, 0x45, 0x4e, + 0x45, 0x52, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x42, 0xb7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, + 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, + 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_common_proto_rawDescOnce sync.Once + file_flyteidl_admin_common_proto_rawDescData = file_flyteidl_admin_common_proto_rawDesc +) + +func file_flyteidl_admin_common_proto_rawDescGZIP() []byte { + file_flyteidl_admin_common_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_common_proto_rawDescData) + }) + return file_flyteidl_admin_common_proto_rawDescData +} + +var file_flyteidl_admin_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_admin_common_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_flyteidl_admin_common_proto_goTypes = []interface{}{ + (NamedEntityState)(0), // 0: flyteidl.admin.NamedEntityState + (Sort_Direction)(0), // 1: flyteidl.admin.Sort.Direction + (*NamedEntityIdentifier)(nil), // 2: flyteidl.admin.NamedEntityIdentifier + (*NamedEntityMetadata)(nil), // 3: flyteidl.admin.NamedEntityMetadata + (*NamedEntity)(nil), // 4: flyteidl.admin.NamedEntity + (*Sort)(nil), // 5: flyteidl.admin.Sort + (*NamedEntityIdentifierListRequest)(nil), // 6: flyteidl.admin.NamedEntityIdentifierListRequest + (*NamedEntityListRequest)(nil), // 7: flyteidl.admin.NamedEntityListRequest + (*NamedEntityIdentifierList)(nil), // 8: flyteidl.admin.NamedEntityIdentifierList + (*NamedEntityList)(nil), // 9: flyteidl.admin.NamedEntityList + (*NamedEntityGetRequest)(nil), // 10: flyteidl.admin.NamedEntityGetRequest + (*NamedEntityUpdateRequest)(nil), // 11: flyteidl.admin.NamedEntityUpdateRequest + (*NamedEntityUpdateResponse)(nil), // 12: flyteidl.admin.NamedEntityUpdateResponse + (*ObjectGetRequest)(nil), // 13: flyteidl.admin.ObjectGetRequest + (*ResourceListRequest)(nil), // 14: flyteidl.admin.ResourceListRequest + (*EmailNotification)(nil), // 15: flyteidl.admin.EmailNotification + (*PagerDutyNotification)(nil), // 16: flyteidl.admin.PagerDutyNotification + (*SlackNotification)(nil), // 17: flyteidl.admin.SlackNotification + (*Notification)(nil), // 18: flyteidl.admin.Notification + (*UrlBlob)(nil), // 19: flyteidl.admin.UrlBlob + (*Labels)(nil), // 20: flyteidl.admin.Labels + (*Annotations)(nil), // 21: flyteidl.admin.Annotations + (*Envs)(nil), // 22: flyteidl.admin.Envs + (*AuthRole)(nil), // 23: flyteidl.admin.AuthRole + (*RawOutputDataConfig)(nil), // 24: flyteidl.admin.RawOutputDataConfig + (*FlyteURLs)(nil), // 25: flyteidl.admin.FlyteURLs + nil, // 26: flyteidl.admin.Labels.ValuesEntry + nil, // 27: flyteidl.admin.Annotations.ValuesEntry + (core.ResourceType)(0), // 28: flyteidl.core.ResourceType + (*core.Identifier)(nil), // 29: flyteidl.core.Identifier + (core.WorkflowExecution_Phase)(0), // 30: flyteidl.core.WorkflowExecution.Phase + (*core.KeyValuePair)(nil), // 31: flyteidl.core.KeyValuePair +} +var file_flyteidl_admin_common_proto_depIdxs = []int32{ + 0, // 0: flyteidl.admin.NamedEntityMetadata.state:type_name -> flyteidl.admin.NamedEntityState + 28, // 1: flyteidl.admin.NamedEntity.resource_type:type_name -> flyteidl.core.ResourceType + 2, // 2: flyteidl.admin.NamedEntity.id:type_name -> flyteidl.admin.NamedEntityIdentifier + 3, // 3: flyteidl.admin.NamedEntity.metadata:type_name -> flyteidl.admin.NamedEntityMetadata + 1, // 4: flyteidl.admin.Sort.direction:type_name -> flyteidl.admin.Sort.Direction + 5, // 5: flyteidl.admin.NamedEntityIdentifierListRequest.sort_by:type_name -> flyteidl.admin.Sort + 28, // 6: flyteidl.admin.NamedEntityListRequest.resource_type:type_name -> flyteidl.core.ResourceType + 5, // 7: flyteidl.admin.NamedEntityListRequest.sort_by:type_name -> flyteidl.admin.Sort + 2, // 8: flyteidl.admin.NamedEntityIdentifierList.entities:type_name -> flyteidl.admin.NamedEntityIdentifier + 4, // 9: flyteidl.admin.NamedEntityList.entities:type_name -> flyteidl.admin.NamedEntity + 28, // 10: flyteidl.admin.NamedEntityGetRequest.resource_type:type_name -> flyteidl.core.ResourceType + 2, // 11: flyteidl.admin.NamedEntityGetRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier + 28, // 12: flyteidl.admin.NamedEntityUpdateRequest.resource_type:type_name -> flyteidl.core.ResourceType + 2, // 13: flyteidl.admin.NamedEntityUpdateRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier + 3, // 14: flyteidl.admin.NamedEntityUpdateRequest.metadata:type_name -> flyteidl.admin.NamedEntityMetadata + 29, // 15: flyteidl.admin.ObjectGetRequest.id:type_name -> flyteidl.core.Identifier + 2, // 16: flyteidl.admin.ResourceListRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier + 5, // 17: flyteidl.admin.ResourceListRequest.sort_by:type_name -> flyteidl.admin.Sort + 30, // 18: flyteidl.admin.Notification.phases:type_name -> flyteidl.core.WorkflowExecution.Phase + 15, // 19: flyteidl.admin.Notification.email:type_name -> flyteidl.admin.EmailNotification + 16, // 20: flyteidl.admin.Notification.pager_duty:type_name -> flyteidl.admin.PagerDutyNotification + 17, // 21: flyteidl.admin.Notification.slack:type_name -> flyteidl.admin.SlackNotification + 26, // 22: flyteidl.admin.Labels.values:type_name -> flyteidl.admin.Labels.ValuesEntry + 27, // 23: flyteidl.admin.Annotations.values:type_name -> flyteidl.admin.Annotations.ValuesEntry + 31, // 24: flyteidl.admin.Envs.values:type_name -> flyteidl.core.KeyValuePair + 25, // [25:25] is the sub-list for method output_type + 25, // [25:25] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_common_proto_init() } +func file_flyteidl_admin_common_proto_init() { + if File_flyteidl_admin_common_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntity); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Sort); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityIdentifierListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityIdentifierList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NamedEntityUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ObjectGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourceListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmailNotification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PagerDutyNotification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SlackNotification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Notification); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UrlBlob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Labels); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Annotations); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Envs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AuthRole); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RawOutputDataConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_common_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FlyteURLs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_common_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*Notification_Email)(nil), + (*Notification_PagerDuty)(nil), + (*Notification_Slack)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_common_proto_rawDesc, + NumEnums: 2, + NumMessages: 26, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_common_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_common_proto_depIdxs, + EnumInfos: file_flyteidl_admin_common_proto_enumTypes, + MessageInfos: file_flyteidl_admin_common_proto_msgTypes, + }.Build() + File_flyteidl_admin_common_proto = out.File + file_flyteidl_admin_common_proto_rawDesc = nil + file_flyteidl_admin_common_proto_goTypes = nil + file_flyteidl_admin_common_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go new file mode 100644 index 0000000000..22fe5db9f1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go @@ -0,0 +1,701 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/description_entity.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The format of the long description +type DescriptionFormat int32 + +const ( + DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN DescriptionFormat = 0 + DescriptionFormat_DESCRIPTION_FORMAT_MARKDOWN DescriptionFormat = 1 + DescriptionFormat_DESCRIPTION_FORMAT_HTML DescriptionFormat = 2 + // python default documentation - comments is rst + DescriptionFormat_DESCRIPTION_FORMAT_RST DescriptionFormat = 3 +) + +// Enum value maps for DescriptionFormat. +var ( + DescriptionFormat_name = map[int32]string{ + 0: "DESCRIPTION_FORMAT_UNKNOWN", + 1: "DESCRIPTION_FORMAT_MARKDOWN", + 2: "DESCRIPTION_FORMAT_HTML", + 3: "DESCRIPTION_FORMAT_RST", + } + DescriptionFormat_value = map[string]int32{ + "DESCRIPTION_FORMAT_UNKNOWN": 0, + "DESCRIPTION_FORMAT_MARKDOWN": 1, + "DESCRIPTION_FORMAT_HTML": 2, + "DESCRIPTION_FORMAT_RST": 3, + } +) + +func (x DescriptionFormat) Enum() *DescriptionFormat { + p := new(DescriptionFormat) + *p = x + return p +} + +func (x DescriptionFormat) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DescriptionFormat) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_description_entity_proto_enumTypes[0].Descriptor() +} + +func (DescriptionFormat) Type() protoreflect.EnumType { + return &file_flyteidl_admin_description_entity_proto_enumTypes[0] +} + +func (x DescriptionFormat) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DescriptionFormat.Descriptor instead. +func (DescriptionFormat) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{0} +} + +// DescriptionEntity contains detailed description for the task/workflow. +// Documentation could provide insight into the algorithms, business use case, etc. +type DescriptionEntity struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the description entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // One-liner overview of the entity. + ShortDescription string `protobuf:"bytes,2,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` + // Full user description with formatting preserved. + LongDescription *Description `protobuf:"bytes,3,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"` + // Optional link to source code used to define this entity. + SourceCode *SourceCode `protobuf:"bytes,4,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"` + // User-specified tags. These are arbitrary and can be used for searching + // filtering and discovering tasks. + Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *DescriptionEntity) Reset() { + *x = DescriptionEntity{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptionEntity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptionEntity) ProtoMessage() {} + +func (x *DescriptionEntity) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptionEntity.ProtoReflect.Descriptor instead. +func (*DescriptionEntity) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{0} +} + +func (x *DescriptionEntity) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *DescriptionEntity) GetShortDescription() string { + if x != nil { + return x.ShortDescription + } + return "" +} + +func (x *DescriptionEntity) GetLongDescription() *Description { + if x != nil { + return x.LongDescription + } + return nil +} + +func (x *DescriptionEntity) GetSourceCode() *SourceCode { + if x != nil { + return x.SourceCode + } + return nil +} + +func (x *DescriptionEntity) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +// Full user description with formatting preserved. This can be rendered +// by clients, such as the console or command line tools with in-tact +// formatting. +type Description struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Content: + // + // *Description_Value + // *Description_Uri + Content isDescription_Content `protobuf_oneof:"content"` + // Format of the long description + Format DescriptionFormat `protobuf:"varint,3,opt,name=format,proto3,enum=flyteidl.admin.DescriptionFormat" json:"format,omitempty"` + // Optional link to an icon for the entity + IconLink string `protobuf:"bytes,4,opt,name=icon_link,json=iconLink,proto3" json:"icon_link,omitempty"` +} + +func (x *Description) Reset() { + *x = Description{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Description) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Description) ProtoMessage() {} + +func (x *Description) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Description.ProtoReflect.Descriptor instead. +func (*Description) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{1} +} + +func (m *Description) GetContent() isDescription_Content { + if m != nil { + return m.Content + } + return nil +} + +func (x *Description) GetValue() string { + if x, ok := x.GetContent().(*Description_Value); ok { + return x.Value + } + return "" +} + +func (x *Description) GetUri() string { + if x, ok := x.GetContent().(*Description_Uri); ok { + return x.Uri + } + return "" +} + +func (x *Description) GetFormat() DescriptionFormat { + if x != nil { + return x.Format + } + return DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN +} + +func (x *Description) GetIconLink() string { + if x != nil { + return x.IconLink + } + return "" +} + +type isDescription_Content interface { + isDescription_Content() +} + +type Description_Value struct { + // long description - no more than 4KB + Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"` +} + +type Description_Uri struct { + // if the description sizes exceed some threshold we can offload the entire + // description proto altogether to an external data store, like S3 rather than store inline in the db + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +func (*Description_Value) isDescription_Content() {} + +func (*Description_Uri) isDescription_Content() {} + +// Link to source code used to define this entity +type SourceCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` +} + +func (x *SourceCode) Reset() { + *x = SourceCode{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SourceCode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SourceCode) ProtoMessage() {} + +func (x *SourceCode) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SourceCode.ProtoReflect.Descriptor instead. +func (*SourceCode) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{2} +} + +func (x *SourceCode) GetLink() string { + if x != nil { + return x.Link + } + return "" +} + +// Represents a list of DescriptionEntities returned from the admin. +// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +type DescriptionEntityList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of DescriptionEntities returned based on the request. + DescriptionEntities []*DescriptionEntity `protobuf:"bytes,1,rep,name=descriptionEntities,proto3" json:"descriptionEntities,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *DescriptionEntityList) Reset() { + *x = DescriptionEntityList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptionEntityList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptionEntityList) ProtoMessage() {} + +func (x *DescriptionEntityList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptionEntityList.ProtoReflect.Descriptor instead. +func (*DescriptionEntityList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{3} +} + +func (x *DescriptionEntityList) GetDescriptionEntities() []*DescriptionEntity { + if x != nil { + return x.DescriptionEntities + } + return nil +} + +func (x *DescriptionEntityList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Represents a request structure to retrieve a list of DescriptionEntities. +// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +type DescriptionEntityListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifies the specific type of resource that this identifier corresponds to. + ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // The identifier for the description entity. + // +required + Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,5,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering for returned list. + // +optional + SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` +} + +func (x *DescriptionEntityListRequest) Reset() { + *x = DescriptionEntityListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DescriptionEntityListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DescriptionEntityListRequest) ProtoMessage() {} + +func (x *DescriptionEntityListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_description_entity_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DescriptionEntityListRequest.ProtoReflect.Descriptor instead. +func (*DescriptionEntityListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_description_entity_proto_rawDescGZIP(), []int{4} +} + +func (x *DescriptionEntityListRequest) GetResourceType() core.ResourceType { + if x != nil { + return x.ResourceType + } + return core.ResourceType(0) +} + +func (x *DescriptionEntityListRequest) GetId() *NamedEntityIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *DescriptionEntityListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *DescriptionEntityListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *DescriptionEntityListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *DescriptionEntityListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +var File_flyteidl_admin_description_entity_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_description_entity_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x02, 0x0a, 0x11, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x68, 0x6f, 0x72, 0x74, + 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x10, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x6c, 0x6f, 0x6e, + 0x67, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x9c, 0x01, + 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x39, 0x0a, 0x06, 0x66, 0x6f, 0x72, + 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x06, 0x66, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x63, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x6e, + 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x63, 0x6f, 0x6e, 0x4c, 0x69, 0x6e, + 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x20, 0x0a, 0x0a, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, + 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x22, 0x82, + 0x01, 0x0a, 0x15, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x53, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x13, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x8c, 0x02, 0x0a, 0x1c, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, + 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, + 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, + 0x42, 0x79, 0x2a, 0x8d, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x45, 0x53, 0x43, + 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x55, + 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x45, 0x53, 0x43, + 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4d, + 0x41, 0x52, 0x4b, 0x44, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x45, 0x53, + 0x43, 0x52, 0x49, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, + 0x48, 0x54, 0x4d, 0x4c, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x45, 0x53, 0x43, 0x52, 0x49, + 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x52, 0x53, 0x54, + 0x10, 0x03, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x16, 0x44, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, + 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_description_entity_proto_rawDescOnce sync.Once + file_flyteidl_admin_description_entity_proto_rawDescData = file_flyteidl_admin_description_entity_proto_rawDesc +) + +func file_flyteidl_admin_description_entity_proto_rawDescGZIP() []byte { + file_flyteidl_admin_description_entity_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_description_entity_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_description_entity_proto_rawDescData) + }) + return file_flyteidl_admin_description_entity_proto_rawDescData +} + +var file_flyteidl_admin_description_entity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_admin_description_entity_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_flyteidl_admin_description_entity_proto_goTypes = []interface{}{ + (DescriptionFormat)(0), // 0: flyteidl.admin.DescriptionFormat + (*DescriptionEntity)(nil), // 1: flyteidl.admin.DescriptionEntity + (*Description)(nil), // 2: flyteidl.admin.Description + (*SourceCode)(nil), // 3: flyteidl.admin.SourceCode + (*DescriptionEntityList)(nil), // 4: flyteidl.admin.DescriptionEntityList + (*DescriptionEntityListRequest)(nil), // 5: flyteidl.admin.DescriptionEntityListRequest + (*core.Identifier)(nil), // 6: flyteidl.core.Identifier + (core.ResourceType)(0), // 7: flyteidl.core.ResourceType + (*NamedEntityIdentifier)(nil), // 8: flyteidl.admin.NamedEntityIdentifier + (*Sort)(nil), // 9: flyteidl.admin.Sort +} +var file_flyteidl_admin_description_entity_proto_depIdxs = []int32{ + 6, // 0: flyteidl.admin.DescriptionEntity.id:type_name -> flyteidl.core.Identifier + 2, // 1: flyteidl.admin.DescriptionEntity.long_description:type_name -> flyteidl.admin.Description + 3, // 2: flyteidl.admin.DescriptionEntity.source_code:type_name -> flyteidl.admin.SourceCode + 0, // 3: flyteidl.admin.Description.format:type_name -> flyteidl.admin.DescriptionFormat + 1, // 4: flyteidl.admin.DescriptionEntityList.descriptionEntities:type_name -> flyteidl.admin.DescriptionEntity + 7, // 5: flyteidl.admin.DescriptionEntityListRequest.resource_type:type_name -> flyteidl.core.ResourceType + 8, // 6: flyteidl.admin.DescriptionEntityListRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier + 9, // 7: flyteidl.admin.DescriptionEntityListRequest.sort_by:type_name -> flyteidl.admin.Sort + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_description_entity_proto_init() } +func file_flyteidl_admin_description_entity_proto_init() { + if File_flyteidl_admin_description_entity_proto != nil { + return + } + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_description_entity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptionEntity); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_description_entity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Description); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_description_entity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SourceCode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_description_entity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptionEntityList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_description_entity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DescriptionEntityListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_description_entity_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Description_Value)(nil), + (*Description_Uri)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_description_entity_proto_rawDesc, + NumEnums: 1, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_description_entity_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_description_entity_proto_depIdxs, + EnumInfos: file_flyteidl_admin_description_entity_proto_enumTypes, + MessageInfos: file_flyteidl_admin_description_entity_proto_msgTypes, + }.Build() + File_flyteidl_admin_description_entity_proto = out.File + file_flyteidl_admin_description_entity_proto_rawDesc = nil + file_flyteidl_admin_description_entity_proto_goTypes = nil + file_flyteidl_admin_description_entity_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go new file mode 100644 index 0000000000..1777ffeddf --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go @@ -0,0 +1,749 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/event.proto + +package admin + +import ( + event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Indicates that a sent event was not used to update execution state due to +// the referenced execution already being terminated (and therefore ineligible +// for further state transitions). +type EventErrorAlreadyInTerminalState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + CurrentPhase string `protobuf:"bytes,1,opt,name=current_phase,json=currentPhase,proto3" json:"current_phase,omitempty"` +} + +func (x *EventErrorAlreadyInTerminalState) Reset() { + *x = EventErrorAlreadyInTerminalState{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventErrorAlreadyInTerminalState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventErrorAlreadyInTerminalState) ProtoMessage() {} + +func (x *EventErrorAlreadyInTerminalState) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventErrorAlreadyInTerminalState.ProtoReflect.Descriptor instead. +func (*EventErrorAlreadyInTerminalState) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{0} +} + +func (x *EventErrorAlreadyInTerminalState) GetCurrentPhase() string { + if x != nil { + return x.CurrentPhase + } + return "" +} + +// Indicates an event was rejected because it came from a different cluster than +// is on record as running the execution. +type EventErrorIncompatibleCluster struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The cluster which has been recorded as processing the execution. + // +required + Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` +} + +func (x *EventErrorIncompatibleCluster) Reset() { + *x = EventErrorIncompatibleCluster{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventErrorIncompatibleCluster) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventErrorIncompatibleCluster) ProtoMessage() {} + +func (x *EventErrorIncompatibleCluster) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventErrorIncompatibleCluster.ProtoReflect.Descriptor instead. +func (*EventErrorIncompatibleCluster) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{1} +} + +func (x *EventErrorIncompatibleCluster) GetCluster() string { + if x != nil { + return x.Cluster + } + return "" +} + +// Indicates why a sent event was not used to update execution. +type EventFailureReason struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + // + // Types that are assignable to Reason: + // + // *EventFailureReason_AlreadyInTerminalState + // *EventFailureReason_IncompatibleCluster + Reason isEventFailureReason_Reason `protobuf_oneof:"reason"` +} + +func (x *EventFailureReason) Reset() { + *x = EventFailureReason{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventFailureReason) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventFailureReason) ProtoMessage() {} + +func (x *EventFailureReason) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventFailureReason.ProtoReflect.Descriptor instead. +func (*EventFailureReason) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{2} +} + +func (m *EventFailureReason) GetReason() isEventFailureReason_Reason { + if m != nil { + return m.Reason + } + return nil +} + +func (x *EventFailureReason) GetAlreadyInTerminalState() *EventErrorAlreadyInTerminalState { + if x, ok := x.GetReason().(*EventFailureReason_AlreadyInTerminalState); ok { + return x.AlreadyInTerminalState + } + return nil +} + +func (x *EventFailureReason) GetIncompatibleCluster() *EventErrorIncompatibleCluster { + if x, ok := x.GetReason().(*EventFailureReason_IncompatibleCluster); ok { + return x.IncompatibleCluster + } + return nil +} + +type isEventFailureReason_Reason interface { + isEventFailureReason_Reason() +} + +type EventFailureReason_AlreadyInTerminalState struct { + AlreadyInTerminalState *EventErrorAlreadyInTerminalState `protobuf:"bytes,1,opt,name=already_in_terminal_state,json=alreadyInTerminalState,proto3,oneof"` +} + +type EventFailureReason_IncompatibleCluster struct { + IncompatibleCluster *EventErrorIncompatibleCluster `protobuf:"bytes,2,opt,name=incompatible_cluster,json=incompatibleCluster,proto3,oneof"` +} + +func (*EventFailureReason_AlreadyInTerminalState) isEventFailureReason_Reason() {} + +func (*EventFailureReason_IncompatibleCluster) isEventFailureReason_Reason() {} + +// Request to send a notification that a workflow execution event has occurred. +type WorkflowExecutionEventRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.WorkflowExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (x *WorkflowExecutionEventRequest) Reset() { + *x = WorkflowExecutionEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionEventRequest) ProtoMessage() {} + +func (x *WorkflowExecutionEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionEventRequest.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionEventRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{3} +} + +func (x *WorkflowExecutionEventRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *WorkflowExecutionEventRequest) GetEvent() *event.WorkflowExecutionEvent { + if x != nil { + return x.Event + } + return nil +} + +type WorkflowExecutionEventResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *WorkflowExecutionEventResponse) Reset() { + *x = WorkflowExecutionEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionEventResponse) ProtoMessage() {} + +func (x *WorkflowExecutionEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionEventResponse.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionEventResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{4} +} + +// Request to send a notification that a node execution event has occurred. +type NodeExecutionEventRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.NodeExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (x *NodeExecutionEventRequest) Reset() { + *x = NodeExecutionEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionEventRequest) ProtoMessage() {} + +func (x *NodeExecutionEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionEventRequest.ProtoReflect.Descriptor instead. +func (*NodeExecutionEventRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{5} +} + +func (x *NodeExecutionEventRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *NodeExecutionEventRequest) GetEvent() *event.NodeExecutionEvent { + if x != nil { + return x.Event + } + return nil +} + +type NodeExecutionEventResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NodeExecutionEventResponse) Reset() { + *x = NodeExecutionEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionEventResponse) ProtoMessage() {} + +func (x *NodeExecutionEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionEventResponse.ProtoReflect.Descriptor instead. +func (*NodeExecutionEventResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{6} +} + +// Request to send a notification that a task execution event has occurred. +type TaskExecutionEventRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique ID for this request that can be traced between services + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Details about the event that occurred. + Event *event.TaskExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` +} + +func (x *TaskExecutionEventRequest) Reset() { + *x = TaskExecutionEventRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionEventRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionEventRequest) ProtoMessage() {} + +func (x *TaskExecutionEventRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionEventRequest.ProtoReflect.Descriptor instead. +func (*TaskExecutionEventRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{7} +} + +func (x *TaskExecutionEventRequest) GetRequestId() string { + if x != nil { + return x.RequestId + } + return "" +} + +func (x *TaskExecutionEventRequest) GetEvent() *event.TaskExecutionEvent { + if x != nil { + return x.Event + } + return nil +} + +type TaskExecutionEventResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *TaskExecutionEventResponse) Reset() { + *x = TaskExecutionEventResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_event_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionEventResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionEventResponse) ProtoMessage() {} + +func (x *TaskExecutionEventResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_event_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionEventResponse.ProtoReflect.Descriptor instead. +func (*TaskExecutionEventResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_event_proto_rawDescGZIP(), []int{8} +} + +var File_flyteidl_admin_event_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_event_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1a, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x47, 0x0a, 0x20, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, 0x6e, 0x54, + 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x68, 0x61, 0x73, + 0x65, 0x22, 0x39, 0x0a, 0x1d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, + 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xf1, 0x01, 0x0a, + 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x6d, 0x0a, 0x19, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x69, + 0x6e, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x16, 0x61, 0x6c, 0x72, 0x65, + 0x61, 0x64, 0x79, 0x49, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x62, 0x0a, 0x14, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, + 0x6c, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x49, 0x6e, 0x63, 0x6f, + 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x48, + 0x00, 0x52, 0x13, 0x69, 0x6e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x22, 0x7c, 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x12, 0x3c, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x20, + 0x0a, 0x1e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x74, 0x0a, 0x19, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x05, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x74, 0x0a, 0x19, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, + 0x12, 0x38, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x1c, 0x0a, 0x1a, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, + 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, + 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_event_proto_rawDescOnce sync.Once + file_flyteidl_admin_event_proto_rawDescData = file_flyteidl_admin_event_proto_rawDesc +) + +func file_flyteidl_admin_event_proto_rawDescGZIP() []byte { + file_flyteidl_admin_event_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_event_proto_rawDescData) + }) + return file_flyteidl_admin_event_proto_rawDescData +} + +var file_flyteidl_admin_event_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_flyteidl_admin_event_proto_goTypes = []interface{}{ + (*EventErrorAlreadyInTerminalState)(nil), // 0: flyteidl.admin.EventErrorAlreadyInTerminalState + (*EventErrorIncompatibleCluster)(nil), // 1: flyteidl.admin.EventErrorIncompatibleCluster + (*EventFailureReason)(nil), // 2: flyteidl.admin.EventFailureReason + (*WorkflowExecutionEventRequest)(nil), // 3: flyteidl.admin.WorkflowExecutionEventRequest + (*WorkflowExecutionEventResponse)(nil), // 4: flyteidl.admin.WorkflowExecutionEventResponse + (*NodeExecutionEventRequest)(nil), // 5: flyteidl.admin.NodeExecutionEventRequest + (*NodeExecutionEventResponse)(nil), // 6: flyteidl.admin.NodeExecutionEventResponse + (*TaskExecutionEventRequest)(nil), // 7: flyteidl.admin.TaskExecutionEventRequest + (*TaskExecutionEventResponse)(nil), // 8: flyteidl.admin.TaskExecutionEventResponse + (*event.WorkflowExecutionEvent)(nil), // 9: flyteidl.event.WorkflowExecutionEvent + (*event.NodeExecutionEvent)(nil), // 10: flyteidl.event.NodeExecutionEvent + (*event.TaskExecutionEvent)(nil), // 11: flyteidl.event.TaskExecutionEvent +} +var file_flyteidl_admin_event_proto_depIdxs = []int32{ + 0, // 0: flyteidl.admin.EventFailureReason.already_in_terminal_state:type_name -> flyteidl.admin.EventErrorAlreadyInTerminalState + 1, // 1: flyteidl.admin.EventFailureReason.incompatible_cluster:type_name -> flyteidl.admin.EventErrorIncompatibleCluster + 9, // 2: flyteidl.admin.WorkflowExecutionEventRequest.event:type_name -> flyteidl.event.WorkflowExecutionEvent + 10, // 3: flyteidl.admin.NodeExecutionEventRequest.event:type_name -> flyteidl.event.NodeExecutionEvent + 11, // 4: flyteidl.admin.TaskExecutionEventRequest.event:type_name -> flyteidl.event.TaskExecutionEvent + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_event_proto_init() } +func file_flyteidl_admin_event_proto_init() { + if File_flyteidl_admin_event_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventErrorAlreadyInTerminalState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventErrorIncompatibleCluster); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventFailureReason); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionEventRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionEventResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionEventRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionEventResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionEventRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionEventResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_event_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*EventFailureReason_AlreadyInTerminalState)(nil), + (*EventFailureReason_IncompatibleCluster)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_event_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_event_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_event_proto_depIdxs, + MessageInfos: file_flyteidl_admin_event_proto_msgTypes, + }.Build() + File_flyteidl_admin_event_proto = out.File + file_flyteidl_admin_event_proto_rawDesc = nil + file_flyteidl_admin_event_proto_goTypes = nil + file_flyteidl_admin_event_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go new file mode 100644 index 0000000000..205ea0f303 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go @@ -0,0 +1,2757 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/execution.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The state of the execution is used to control its visibility in the UI/CLI. +type ExecutionState int32 + +const ( + // By default, all executions are considered active. + ExecutionState_EXECUTION_ACTIVE ExecutionState = 0 + // Archived executions are no longer visible in the UI. + ExecutionState_EXECUTION_ARCHIVED ExecutionState = 1 +) + +// Enum value maps for ExecutionState. +var ( + ExecutionState_name = map[int32]string{ + 0: "EXECUTION_ACTIVE", + 1: "EXECUTION_ARCHIVED", + } + ExecutionState_value = map[string]int32{ + "EXECUTION_ACTIVE": 0, + "EXECUTION_ARCHIVED": 1, + } +) + +func (x ExecutionState) Enum() *ExecutionState { + p := new(ExecutionState) + *p = x + return p +} + +func (x ExecutionState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ExecutionState) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_execution_proto_enumTypes[0].Descriptor() +} + +func (ExecutionState) Type() protoreflect.EnumType { + return &file_flyteidl_admin_execution_proto_enumTypes[0] +} + +func (x ExecutionState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ExecutionState.Descriptor instead. +func (ExecutionState) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{0} +} + +// The method by which this execution was launched. +type ExecutionMetadata_ExecutionMode int32 + +const ( + // The default execution mode, MANUAL implies that an execution was launched by an individual. + ExecutionMetadata_MANUAL ExecutionMetadata_ExecutionMode = 0 + // A schedule triggered this execution launch. + ExecutionMetadata_SCHEDULED ExecutionMetadata_ExecutionMode = 1 + // A system process was responsible for launching this execution rather an individual. + ExecutionMetadata_SYSTEM ExecutionMetadata_ExecutionMode = 2 + // This execution was launched with identical inputs as a previous execution. + ExecutionMetadata_RELAUNCH ExecutionMetadata_ExecutionMode = 3 + // This execution was triggered by another execution. + ExecutionMetadata_CHILD_WORKFLOW ExecutionMetadata_ExecutionMode = 4 + // This execution was recovered from another execution. + ExecutionMetadata_RECOVERED ExecutionMetadata_ExecutionMode = 5 +) + +// Enum value maps for ExecutionMetadata_ExecutionMode. +var ( + ExecutionMetadata_ExecutionMode_name = map[int32]string{ + 0: "MANUAL", + 1: "SCHEDULED", + 2: "SYSTEM", + 3: "RELAUNCH", + 4: "CHILD_WORKFLOW", + 5: "RECOVERED", + } + ExecutionMetadata_ExecutionMode_value = map[string]int32{ + "MANUAL": 0, + "SCHEDULED": 1, + "SYSTEM": 2, + "RELAUNCH": 3, + "CHILD_WORKFLOW": 4, + "RECOVERED": 5, + } +) + +func (x ExecutionMetadata_ExecutionMode) Enum() *ExecutionMetadata_ExecutionMode { + p := new(ExecutionMetadata_ExecutionMode) + *p = x + return p +} + +func (x ExecutionMetadata_ExecutionMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ExecutionMetadata_ExecutionMode) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_execution_proto_enumTypes[1].Descriptor() +} + +func (ExecutionMetadata_ExecutionMode) Type() protoreflect.EnumType { + return &file_flyteidl_admin_execution_proto_enumTypes[1] +} + +func (x ExecutionMetadata_ExecutionMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ExecutionMetadata_ExecutionMode.Descriptor instead. +func (ExecutionMetadata_ExecutionMode) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{11, 0} +} + +// Request to launch an execution with the given project, domain and optionally-assigned name. +type ExecutionCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the project the execution belongs to. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the execution belongs to. + // A domain can be considered as a subset within a specific project. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Additional fields necessary to launch the execution. + // +optional + Spec *ExecutionSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + Inputs *core.LiteralMap `protobuf:"bytes,5,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ExecutionCreateRequest) Reset() { + *x = ExecutionCreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionCreateRequest) ProtoMessage() {} + +func (x *ExecutionCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionCreateRequest.ProtoReflect.Descriptor instead. +func (*ExecutionCreateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{0} +} + +func (x *ExecutionCreateRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ExecutionCreateRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ExecutionCreateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ExecutionCreateRequest) GetSpec() *ExecutionSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *ExecutionCreateRequest) GetInputs() *core.LiteralMap { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *ExecutionCreateRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Request to relaunch the referenced execution. +type ExecutionRelaunchRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifier of the workflow execution to relaunch. + // +required + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User provided value for the relaunched execution. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,4,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` +} + +func (x *ExecutionRelaunchRequest) Reset() { + *x = ExecutionRelaunchRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionRelaunchRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionRelaunchRequest) ProtoMessage() {} + +func (x *ExecutionRelaunchRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionRelaunchRequest.ProtoReflect.Descriptor instead. +func (*ExecutionRelaunchRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{1} +} + +func (x *ExecutionRelaunchRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *ExecutionRelaunchRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ExecutionRelaunchRequest) GetOverwriteCache() bool { + if x != nil { + return x.OverwriteCache + } + return false +} + +// Request to recover the referenced execution. +type ExecutionRecoverRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifier of the workflow execution to recover. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User provided value for the recovered execution. + // If none is provided the system will generate a unique string. + // +optional + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *ExecutionRecoverRequest) Reset() { + *x = ExecutionRecoverRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionRecoverRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionRecoverRequest) ProtoMessage() {} + +func (x *ExecutionRecoverRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionRecoverRequest.ProtoReflect.Descriptor instead. +func (*ExecutionRecoverRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{2} +} + +func (x *ExecutionRecoverRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *ExecutionRecoverRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ExecutionRecoverRequest) GetMetadata() *ExecutionMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +// The unique identifier for a successfully created execution. +// If the name was *not* specified in the create request, this identifier will include a generated name. +type ExecutionCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ExecutionCreateResponse) Reset() { + *x = ExecutionCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionCreateResponse) ProtoMessage() {} + +func (x *ExecutionCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionCreateResponse.ProtoReflect.Descriptor instead. +func (*ExecutionCreateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{3} +} + +func (x *ExecutionCreateResponse) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// A message used to fetch a single workflow execution entity. +// See :ref:`ref_flyteidl.admin.Execution` for more details +type WorkflowExecutionGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uniquely identifies an individual workflow execution. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *WorkflowExecutionGetRequest) Reset() { + *x = WorkflowExecutionGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionGetRequest) ProtoMessage() {} + +func (x *WorkflowExecutionGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionGetRequest.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{4} +} + +func (x *WorkflowExecutionGetRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// A workflow execution represents an instantiated workflow, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +// Used as a response object used in Get and List execution requests. +type Execution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier of the workflow execution. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided configuration and inputs for launching the execution. + Spec *ExecutionSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Execution results. + Closure *ExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` +} + +func (x *Execution) Reset() { + *x = Execution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Execution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Execution) ProtoMessage() {} + +func (x *Execution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Execution.ProtoReflect.Descriptor instead. +func (*Execution) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{5} +} + +func (x *Execution) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *Execution) GetSpec() *ExecutionSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *Execution) GetClosure() *ExecutionClosure { + if x != nil { + return x.Closure + } + return nil +} + +// Used as a response for request to list executions. +// See :ref:`ref_flyteidl.admin.Execution` for more details +type ExecutionList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *ExecutionList) Reset() { + *x = ExecutionList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionList) ProtoMessage() {} + +func (x *ExecutionList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionList.ProtoReflect.Descriptor instead. +func (*ExecutionList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{6} +} + +func (x *ExecutionList) GetExecutions() []*Execution { + if x != nil { + return x.Executions + } + return nil +} + +func (x *ExecutionList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Input/output data can represented by actual values or a link to where values are stored +type LiteralMapBlob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Data: + // + // *LiteralMapBlob_Values + // *LiteralMapBlob_Uri + Data isLiteralMapBlob_Data `protobuf_oneof:"data"` +} + +func (x *LiteralMapBlob) Reset() { + *x = LiteralMapBlob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiteralMapBlob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiteralMapBlob) ProtoMessage() {} + +func (x *LiteralMapBlob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiteralMapBlob.ProtoReflect.Descriptor instead. +func (*LiteralMapBlob) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{7} +} + +func (m *LiteralMapBlob) GetData() isLiteralMapBlob_Data { + if m != nil { + return m.Data + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *LiteralMapBlob) GetValues() *core.LiteralMap { + if x, ok := x.GetData().(*LiteralMapBlob_Values); ok { + return x.Values + } + return nil +} + +func (x *LiteralMapBlob) GetUri() string { + if x, ok := x.GetData().(*LiteralMapBlob_Uri); ok { + return x.Uri + } + return "" +} + +type isLiteralMapBlob_Data interface { + isLiteralMapBlob_Data() +} + +type LiteralMapBlob_Values struct { + // Data in LiteralMap format + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + Values *core.LiteralMap `protobuf:"bytes,1,opt,name=values,proto3,oneof"` +} + +type LiteralMapBlob_Uri struct { + // In the event that the map is too large, we return a uri to the data + Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` +} + +func (*LiteralMapBlob_Values) isLiteralMapBlob_Data() {} + +func (*LiteralMapBlob_Uri) isLiteralMapBlob_Data() {} + +// Specifies metadata around an aborted workflow execution. +type AbortMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // In the case of a user-specified abort, this will pass along the user-supplied cause. + Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` + // Identifies the entity (if any) responsible for terminating the execution + Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` +} + +func (x *AbortMetadata) Reset() { + *x = AbortMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AbortMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AbortMetadata) ProtoMessage() {} + +func (x *AbortMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AbortMetadata.ProtoReflect.Descriptor instead. +func (*AbortMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{8} +} + +func (x *AbortMetadata) GetCause() string { + if x != nil { + return x.Cause + } + return "" +} + +func (x *AbortMetadata) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +// Encapsulates the results of the Execution +type ExecutionClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A result produced by a terminated execution. + // A pending (non-terminal) execution will not have any output result. + // + // Types that are assignable to OutputResult: + // + // *ExecutionClosure_Outputs + // *ExecutionClosure_Error + // *ExecutionClosure_AbortCause + // *ExecutionClosure_AbortMetadata + // *ExecutionClosure_OutputData + OutputResult isExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // Inputs computed and passed for execution. + // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + ComputedInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=computed_inputs,json=computedInputs,proto3" json:"computed_inputs,omitempty"` + // Most recent recorded phase for the execution. + Phase core.WorkflowExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + // Reported time at which the execution began running. + StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the execution spent running. + Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + // Reported time at which the execution was created. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Reported time at which the execution was last updated. + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // The notification settings to use after merging the CreateExecutionRequest and the launch plan + // notification settings. An execution launched with notifications will always prefer that definition + // to notifications defined statically in a launch plan. + Notifications []*Notification `protobuf:"bytes,9,rep,name=notifications,proto3" json:"notifications,omitempty"` + // Identifies the workflow definition for this execution. + WorkflowId *core.Identifier `protobuf:"bytes,11,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + // Provides the details of the last stage change + StateChangeDetails *ExecutionStateChangeDetails `protobuf:"bytes,14,opt,name=state_change_details,json=stateChangeDetails,proto3" json:"state_change_details,omitempty"` +} + +func (x *ExecutionClosure) Reset() { + *x = ExecutionClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionClosure) ProtoMessage() {} + +func (x *ExecutionClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionClosure.ProtoReflect.Descriptor instead. +func (*ExecutionClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{9} +} + +func (m *ExecutionClosure) GetOutputResult() isExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *ExecutionClosure) GetOutputs() *LiteralMapBlob { + if x, ok := x.GetOutputResult().(*ExecutionClosure_Outputs); ok { + return x.Outputs + } + return nil +} + +func (x *ExecutionClosure) GetError() *core.ExecutionError { + if x, ok := x.GetOutputResult().(*ExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *ExecutionClosure) GetAbortCause() string { + if x, ok := x.GetOutputResult().(*ExecutionClosure_AbortCause); ok { + return x.AbortCause + } + return "" +} + +func (x *ExecutionClosure) GetAbortMetadata() *AbortMetadata { + if x, ok := x.GetOutputResult().(*ExecutionClosure_AbortMetadata); ok { + return x.AbortMetadata + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *ExecutionClosure) GetOutputData() *core.LiteralMap { + if x, ok := x.GetOutputResult().(*ExecutionClosure_OutputData); ok { + return x.OutputData + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *ExecutionClosure) GetComputedInputs() *core.LiteralMap { + if x != nil { + return x.ComputedInputs + } + return nil +} + +func (x *ExecutionClosure) GetPhase() core.WorkflowExecution_Phase { + if x != nil { + return x.Phase + } + return core.WorkflowExecution_Phase(0) +} + +func (x *ExecutionClosure) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.StartedAt + } + return nil +} + +func (x *ExecutionClosure) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *ExecutionClosure) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *ExecutionClosure) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *ExecutionClosure) GetNotifications() []*Notification { + if x != nil { + return x.Notifications + } + return nil +} + +func (x *ExecutionClosure) GetWorkflowId() *core.Identifier { + if x != nil { + return x.WorkflowId + } + return nil +} + +func (x *ExecutionClosure) GetStateChangeDetails() *ExecutionStateChangeDetails { + if x != nil { + return x.StateChangeDetails + } + return nil +} + +type isExecutionClosure_OutputResult interface { + isExecutionClosure_OutputResult() +} + +type ExecutionClosure_Outputs struct { + // Output URI in the case of a successful execution. + // DEPRECATED. Use GetExecutionData to fetch output data instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + Outputs *LiteralMapBlob `protobuf:"bytes,1,opt,name=outputs,proto3,oneof"` +} + +type ExecutionClosure_Error struct { + // Error information in the case of a failed execution. + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type ExecutionClosure_AbortCause struct { + // In the case of a user-specified abort, this will pass along the user-supplied cause. + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + AbortCause string `protobuf:"bytes,10,opt,name=abort_cause,json=abortCause,proto3,oneof"` +} + +type ExecutionClosure_AbortMetadata struct { + // In the case of a user-specified abort, this will pass along the user and their supplied cause. + AbortMetadata *AbortMetadata `protobuf:"bytes,12,opt,name=abort_metadata,json=abortMetadata,proto3,oneof"` +} + +type ExecutionClosure_OutputData struct { + // Raw output data produced by this execution. + // DEPRECATED. Use GetExecutionData to fetch output data instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + OutputData *core.LiteralMap `protobuf:"bytes,13,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*ExecutionClosure_Outputs) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_Error) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_AbortCause) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_AbortMetadata) isExecutionClosure_OutputResult() {} + +func (*ExecutionClosure_OutputData) isExecutionClosure_OutputResult() {} + +// Represents system, rather than user-facing, metadata about an execution. +type SystemMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Which execution cluster this execution ran on. + ExecutionCluster string `protobuf:"bytes,1,opt,name=execution_cluster,json=executionCluster,proto3" json:"execution_cluster,omitempty"` + // Which kubernetes namespace the execution ran under. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` +} + +func (x *SystemMetadata) Reset() { + *x = SystemMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SystemMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SystemMetadata) ProtoMessage() {} + +func (x *SystemMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SystemMetadata.ProtoReflect.Descriptor instead. +func (*SystemMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{10} +} + +func (x *SystemMetadata) GetExecutionCluster() string { + if x != nil { + return x.ExecutionCluster + } + return "" +} + +func (x *SystemMetadata) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +// Represents attributes about an execution which are not required to launch the execution but are useful to record. +// These attributes are assigned at launch time and do not change. +type ExecutionMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Mode ExecutionMetadata_ExecutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=flyteidl.admin.ExecutionMetadata_ExecutionMode" json:"mode,omitempty"` + // Identifier of the entity that triggered this execution. + // For systems using back-end authentication any value set here will be discarded in favor of the + // authenticated user context. + Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` + // Indicates the nestedness of this execution. + // If a user launches a workflow execution, the default nesting is 0. + // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + // Generally, if workflow at nesting level k launches a workflow then the child workflow will have + // nesting = k + 1. + Nesting uint32 `protobuf:"varint,3,opt,name=nesting,proto3" json:"nesting,omitempty"` + // For scheduled executions, the requested time for execution for this specific schedule invocation. + ScheduledAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` + // Which subworkflow node (if any) launched this execution + ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,5,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` + // Optional, a reference workflow execution related to this execution. + // In the case of a relaunch, this references the original workflow execution. + ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,16,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` + // Optional, platform-specific metadata about the execution. + // In this the future this may be gated behind an ACL or some sort of authorization. + SystemMetadata *SystemMetadata `protobuf:"bytes,17,opt,name=system_metadata,json=systemMetadata,proto3" json:"system_metadata,omitempty"` + // Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping + // since we don't have a structure to handle nested ones anyways. + ArtifactIds []*core.ArtifactID `protobuf:"bytes,18,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` +} + +func (x *ExecutionMetadata) Reset() { + *x = ExecutionMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionMetadata) ProtoMessage() {} + +func (x *ExecutionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionMetadata.ProtoReflect.Descriptor instead. +func (*ExecutionMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{11} +} + +func (x *ExecutionMetadata) GetMode() ExecutionMetadata_ExecutionMode { + if x != nil { + return x.Mode + } + return ExecutionMetadata_MANUAL +} + +func (x *ExecutionMetadata) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +func (x *ExecutionMetadata) GetNesting() uint32 { + if x != nil { + return x.Nesting + } + return 0 +} + +func (x *ExecutionMetadata) GetScheduledAt() *timestamppb.Timestamp { + if x != nil { + return x.ScheduledAt + } + return nil +} + +func (x *ExecutionMetadata) GetParentNodeExecution() *core.NodeExecutionIdentifier { + if x != nil { + return x.ParentNodeExecution + } + return nil +} + +func (x *ExecutionMetadata) GetReferenceExecution() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.ReferenceExecution + } + return nil +} + +func (x *ExecutionMetadata) GetSystemMetadata() *SystemMetadata { + if x != nil { + return x.SystemMetadata + } + return nil +} + +func (x *ExecutionMetadata) GetArtifactIds() []*core.ArtifactID { + if x != nil { + return x.ArtifactIds + } + return nil +} + +type NotificationList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` +} + +func (x *NotificationList) Reset() { + *x = NotificationList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NotificationList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NotificationList) ProtoMessage() {} + +func (x *NotificationList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NotificationList.ProtoReflect.Descriptor instead. +func (*NotificationList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{12} +} + +func (x *NotificationList) GetNotifications() []*Notification { + if x != nil { + return x.Notifications + } + return nil +} + +// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +// of an execution as it progresses across phase changes. +type ExecutionSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Launch plan to be executed + LaunchPlan *core.Identifier `protobuf:"bytes,1,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` + // Input values to be passed for the execution + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Metadata for the execution + Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Types that are assignable to NotificationOverrides: + // + // *ExecutionSpec_Notifications + // *ExecutionSpec_DisableAll + NotificationOverrides isExecutionSpec_NotificationOverrides `protobuf_oneof:"notification_overrides"` + // Labels to apply to the execution resource. + Labels *Labels `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` + // Annotations to apply to the execution resource. + Annotations *Annotations `protobuf:"bytes,8,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Optional: security context override to apply this execution. + SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Optional: auth override to apply this execution. + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + AuthRole *AuthRole `protobuf:"bytes,16,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` + // Indicates the runtime priority of the execution. + QualityOfService *core.QualityOfService `protobuf:"bytes,17,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` + // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. + // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + // and parallelism/concurrency of MapTasks is independent from this. + MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` + // User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). + // This should be a prefix like s3://my-bucket/my-data + RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,19,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` + // Controls how to select an available cluster on which this execution should run. + ClusterAssignment *ClusterAssignment `protobuf:"bytes,20,opt,name=cluster_assignment,json=clusterAssignment,proto3" json:"cluster_assignment,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + Interruptible *wrapperspb.BoolValue `protobuf:"bytes,21,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,22,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *Envs `protobuf:"bytes,23,opt,name=envs,proto3" json:"envs,omitempty"` + // Tags to be set for the execution. + Tags []string `protobuf:"bytes,24,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *ExecutionSpec) Reset() { + *x = ExecutionSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionSpec) ProtoMessage() {} + +func (x *ExecutionSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionSpec.ProtoReflect.Descriptor instead. +func (*ExecutionSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{13} +} + +func (x *ExecutionSpec) GetLaunchPlan() *core.Identifier { + if x != nil { + return x.LaunchPlan + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *ExecutionSpec) GetInputs() *core.LiteralMap { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *ExecutionSpec) GetMetadata() *ExecutionMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (m *ExecutionSpec) GetNotificationOverrides() isExecutionSpec_NotificationOverrides { + if m != nil { + return m.NotificationOverrides + } + return nil +} + +func (x *ExecutionSpec) GetNotifications() *NotificationList { + if x, ok := x.GetNotificationOverrides().(*ExecutionSpec_Notifications); ok { + return x.Notifications + } + return nil +} + +func (x *ExecutionSpec) GetDisableAll() bool { + if x, ok := x.GetNotificationOverrides().(*ExecutionSpec_DisableAll); ok { + return x.DisableAll + } + return false +} + +func (x *ExecutionSpec) GetLabels() *Labels { + if x != nil { + return x.Labels + } + return nil +} + +func (x *ExecutionSpec) GetAnnotations() *Annotations { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *ExecutionSpec) GetSecurityContext() *core.SecurityContext { + if x != nil { + return x.SecurityContext + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *ExecutionSpec) GetAuthRole() *AuthRole { + if x != nil { + return x.AuthRole + } + return nil +} + +func (x *ExecutionSpec) GetQualityOfService() *core.QualityOfService { + if x != nil { + return x.QualityOfService + } + return nil +} + +func (x *ExecutionSpec) GetMaxParallelism() int32 { + if x != nil { + return x.MaxParallelism + } + return 0 +} + +func (x *ExecutionSpec) GetRawOutputDataConfig() *RawOutputDataConfig { + if x != nil { + return x.RawOutputDataConfig + } + return nil +} + +func (x *ExecutionSpec) GetClusterAssignment() *ClusterAssignment { + if x != nil { + return x.ClusterAssignment + } + return nil +} + +func (x *ExecutionSpec) GetInterruptible() *wrapperspb.BoolValue { + if x != nil { + return x.Interruptible + } + return nil +} + +func (x *ExecutionSpec) GetOverwriteCache() bool { + if x != nil { + return x.OverwriteCache + } + return false +} + +func (x *ExecutionSpec) GetEnvs() *Envs { + if x != nil { + return x.Envs + } + return nil +} + +func (x *ExecutionSpec) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +type isExecutionSpec_NotificationOverrides interface { + isExecutionSpec_NotificationOverrides() +} + +type ExecutionSpec_Notifications struct { + // List of notifications based on Execution status transitions + // When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + // When this list is empty, the notifications defined for the launch plan will be applied. + Notifications *NotificationList `protobuf:"bytes,5,opt,name=notifications,proto3,oneof"` +} + +type ExecutionSpec_DisableAll struct { + // This should be set to true if all notifications are intended to be disabled for this execution. + DisableAll bool `protobuf:"varint,6,opt,name=disable_all,json=disableAll,proto3,oneof"` +} + +func (*ExecutionSpec_Notifications) isExecutionSpec_NotificationOverrides() {} + +func (*ExecutionSpec_DisableAll) isExecutionSpec_NotificationOverrides() {} + +// Request to terminate an in-progress execution. This action is irreversible. +// If an execution is already terminated, this request will simply be a no-op. +// This request will fail if it references a non-existent execution. +// If the request succeeds the phase "ABORTED" will be recorded for the termination +// with the optional cause added to the output_result. +type ExecutionTerminateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uniquely identifies the individual workflow execution to be terminated. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Optional reason for aborting. + Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` +} + +func (x *ExecutionTerminateRequest) Reset() { + *x = ExecutionTerminateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionTerminateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionTerminateRequest) ProtoMessage() {} + +func (x *ExecutionTerminateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionTerminateRequest.ProtoReflect.Descriptor instead. +func (*ExecutionTerminateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{14} +} + +func (x *ExecutionTerminateRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *ExecutionTerminateRequest) GetCause() string { + if x != nil { + return x.Cause + } + return "" +} + +type ExecutionTerminateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ExecutionTerminateResponse) Reset() { + *x = ExecutionTerminateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionTerminateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionTerminateResponse) ProtoMessage() {} + +func (x *ExecutionTerminateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionTerminateResponse.ProtoReflect.Descriptor instead. +func (*ExecutionTerminateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{15} +} + +// Request structure to fetch inputs, output and other data produced by an execution. +// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` +type WorkflowExecutionGetDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The identifier of the execution for which to fetch inputs and outputs. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *WorkflowExecutionGetDataRequest) Reset() { + *x = WorkflowExecutionGetDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionGetDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionGetDataRequest) ProtoMessage() {} + +func (x *WorkflowExecutionGetDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionGetDataRequest.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{16} +} + +func (x *WorkflowExecutionGetDataRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +type WorkflowExecutionGetDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Signed url to fetch a core.LiteralMap of execution outputs. + // Deprecated: Please use full_outputs instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + Outputs *UrlBlob `protobuf:"bytes,1,opt,name=outputs,proto3" json:"outputs,omitempty"` + // Signed url to fetch a core.LiteralMap of execution inputs. + // Deprecated: Please use full_inputs instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. + Inputs *UrlBlob `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` +} + +func (x *WorkflowExecutionGetDataResponse) Reset() { + *x = WorkflowExecutionGetDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionGetDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionGetDataResponse) ProtoMessage() {} + +func (x *WorkflowExecutionGetDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionGetDataResponse.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{17} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *WorkflowExecutionGetDataResponse) GetOutputs() *UrlBlob { + if x != nil { + return x.Outputs + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/execution.proto. +func (x *WorkflowExecutionGetDataResponse) GetInputs() *UrlBlob { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *WorkflowExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { + if x != nil { + return x.FullInputs + } + return nil +} + +func (x *WorkflowExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { + if x != nil { + return x.FullOutputs + } + return nil +} + +type ExecutionUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifier of the execution to update + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // State to set as the new value active/archive + State ExecutionState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` +} + +func (x *ExecutionUpdateRequest) Reset() { + *x = ExecutionUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionUpdateRequest) ProtoMessage() {} + +func (x *ExecutionUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionUpdateRequest.ProtoReflect.Descriptor instead. +func (*ExecutionUpdateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{18} +} + +func (x *ExecutionUpdateRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *ExecutionUpdateRequest) GetState() ExecutionState { + if x != nil { + return x.State + } + return ExecutionState_EXECUTION_ACTIVE +} + +type ExecutionStateChangeDetails struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The state of the execution is used to control its visibility in the UI/CLI. + State ExecutionState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` + // This timestamp represents when the state changed. + OccurredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Identifies the entity (if any) responsible for causing the state change of the execution + Principal string `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` +} + +func (x *ExecutionStateChangeDetails) Reset() { + *x = ExecutionStateChangeDetails{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionStateChangeDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionStateChangeDetails) ProtoMessage() {} + +func (x *ExecutionStateChangeDetails) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionStateChangeDetails.ProtoReflect.Descriptor instead. +func (*ExecutionStateChangeDetails) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{19} +} + +func (x *ExecutionStateChangeDetails) GetState() ExecutionState { + if x != nil { + return x.State + } + return ExecutionState_EXECUTION_ACTIVE +} + +func (x *ExecutionStateChangeDetails) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.OccurredAt + } + return nil +} + +func (x *ExecutionStateChangeDetails) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +type ExecutionUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ExecutionUpdateResponse) Reset() { + *x = ExecutionUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionUpdateResponse) ProtoMessage() {} + +func (x *ExecutionUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionUpdateResponse.ProtoReflect.Descriptor instead. +func (*ExecutionUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{20} +} + +// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. +type WorkflowExecutionGetMetricsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id defines the workflow execution to query for. + Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // depth defines the number of Flyte entity levels to traverse when breaking down execution details. + Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` +} + +func (x *WorkflowExecutionGetMetricsRequest) Reset() { + *x = WorkflowExecutionGetMetricsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionGetMetricsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionGetMetricsRequest) ProtoMessage() {} + +func (x *WorkflowExecutionGetMetricsRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionGetMetricsRequest.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionGetMetricsRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{21} +} + +func (x *WorkflowExecutionGetMetricsRequest) GetId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *WorkflowExecutionGetMetricsRequest) GetDepth() int32 { + if x != nil { + return x.Depth + } + return 0 +} + +// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. +type WorkflowExecutionGetMetricsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a + // hierarchical structure using Flyte entity references. + Span *core.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"` +} + +func (x *WorkflowExecutionGetMetricsResponse) Reset() { + *x = WorkflowExecutionGetMetricsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_execution_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionGetMetricsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionGetMetricsResponse) ProtoMessage() {} + +func (x *WorkflowExecutionGetMetricsResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_execution_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionGetMetricsResponse.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionGetMetricsResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_execution_proto_rawDescGZIP(), []int{22} +} + +func (x *WorkflowExecutionGetMetricsResponse) GetSpan() *core.Span { + if x != nil { + return x.Span + } + return nil +} + +var File_flyteidl_admin_execution_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_execution_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, + 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xd6, 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x31, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, + 0x73, 0x70, 0x65, 0x63, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, + 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x99, 0x01, 0x0a, 0x18, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, + 0x69, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4a, + 0x04, 0x08, 0x02, 0x10, 0x03, 0x22, 0xa8, 0x01, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x22, 0x55, 0x0a, 0x17, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x59, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, + 0x69, 0x64, 0x22, 0xb6, 0x01, 0x0a, 0x09, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x31, 0x0a, 0x04, + 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, + 0x3a, 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, + 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x22, 0x60, 0x0a, 0x0d, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x0a, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x65, 0x0a, + 0x0e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x6c, 0x6f, 0x62, 0x12, + 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x42, 0x06, 0x0a, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x43, 0x0a, 0x0d, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, + 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0x98, 0x07, 0x0a, 0x10, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x3e, + 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x6c, 0x6f, 0x62, 0x42, + 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x35, + 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x25, 0x0a, 0x0b, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x5f, 0x63, + 0x61, 0x75, 0x73, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, + 0x52, 0x0a, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x43, 0x61, 0x75, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0e, + 0x61, 0x62, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0e, + 0x63, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, + 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0a, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x49, 0x64, 0x12, 0x5d, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, + 0x12, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5b, 0x0a, 0x0e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x22, 0xf8, 0x04, 0x0a, 0x11, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6e, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x5a, 0x0a, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x13, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x5b, 0x0a, 0x13, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0f, + 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0e, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, + 0x49, 0x64, 0x73, 0x22, 0x67, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x00, + 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x43, 0x48, 0x45, 0x44, 0x55, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, + 0x0a, 0x0a, 0x06, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x52, + 0x45, 0x4c, 0x41, 0x55, 0x4e, 0x43, 0x48, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x48, 0x49, + 0x4c, 0x44, 0x5f, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x0d, 0x0a, + 0x09, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x45, 0x44, 0x10, 0x05, 0x22, 0x56, 0x0a, 0x10, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x90, 0x08, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3a, 0x0a, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, + 0x61, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x48, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, + 0x74, 0x48, 0x00, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x6c, + 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, + 0x39, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x4d, 0x0a, 0x12, 0x71, 0x75, + 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, + 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, + 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x12, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, + 0x73, 0x6d, 0x12, 0x58, 0x0a, 0x16, 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x13, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x72, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x12, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, + 0x6e, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x11, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, + 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, + 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x77, + 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6e, 0x76, + 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x76, 0x73, 0x52, 0x04, 0x65, + 0x6e, 0x76, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0x18, 0x0a, 0x16, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, + 0x73, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x6d, 0x0a, 0x19, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x63, 0x61, 0x75, 0x73, 0x65, 0x22, 0x1c, 0x0a, 0x1a, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x0a, 0x1f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x02, 0x69, 0x64, 0x22, 0x88, 0x02, 0x0a, 0x20, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, + 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, + 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, + 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, + 0x70, 0x52, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x22, 0x8a, + 0x01, 0x0a, 0x16, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x1b, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, + 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0x19, 0x0a, 0x17, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x76, 0x0a, 0x22, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, + 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x70, + 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x64, 0x65, 0x70, 0x74, 0x68, 0x22, + 0x4e, 0x0a, 0x23, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x70, 0x61, 0x6e, 0x52, 0x04, 0x73, 0x70, 0x61, 0x6e, 0x2a, + 0x3e, 0x0a, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, + 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, 0x45, 0x58, 0x45, 0x43, 0x55, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x56, 0x45, 0x44, 0x10, 0x01, 0x42, + 0xba, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_execution_proto_rawDescOnce sync.Once + file_flyteidl_admin_execution_proto_rawDescData = file_flyteidl_admin_execution_proto_rawDesc +) + +func file_flyteidl_admin_execution_proto_rawDescGZIP() []byte { + file_flyteidl_admin_execution_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_execution_proto_rawDescData) + }) + return file_flyteidl_admin_execution_proto_rawDescData +} + +var file_flyteidl_admin_execution_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_admin_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_flyteidl_admin_execution_proto_goTypes = []interface{}{ + (ExecutionState)(0), // 0: flyteidl.admin.ExecutionState + (ExecutionMetadata_ExecutionMode)(0), // 1: flyteidl.admin.ExecutionMetadata.ExecutionMode + (*ExecutionCreateRequest)(nil), // 2: flyteidl.admin.ExecutionCreateRequest + (*ExecutionRelaunchRequest)(nil), // 3: flyteidl.admin.ExecutionRelaunchRequest + (*ExecutionRecoverRequest)(nil), // 4: flyteidl.admin.ExecutionRecoverRequest + (*ExecutionCreateResponse)(nil), // 5: flyteidl.admin.ExecutionCreateResponse + (*WorkflowExecutionGetRequest)(nil), // 6: flyteidl.admin.WorkflowExecutionGetRequest + (*Execution)(nil), // 7: flyteidl.admin.Execution + (*ExecutionList)(nil), // 8: flyteidl.admin.ExecutionList + (*LiteralMapBlob)(nil), // 9: flyteidl.admin.LiteralMapBlob + (*AbortMetadata)(nil), // 10: flyteidl.admin.AbortMetadata + (*ExecutionClosure)(nil), // 11: flyteidl.admin.ExecutionClosure + (*SystemMetadata)(nil), // 12: flyteidl.admin.SystemMetadata + (*ExecutionMetadata)(nil), // 13: flyteidl.admin.ExecutionMetadata + (*NotificationList)(nil), // 14: flyteidl.admin.NotificationList + (*ExecutionSpec)(nil), // 15: flyteidl.admin.ExecutionSpec + (*ExecutionTerminateRequest)(nil), // 16: flyteidl.admin.ExecutionTerminateRequest + (*ExecutionTerminateResponse)(nil), // 17: flyteidl.admin.ExecutionTerminateResponse + (*WorkflowExecutionGetDataRequest)(nil), // 18: flyteidl.admin.WorkflowExecutionGetDataRequest + (*WorkflowExecutionGetDataResponse)(nil), // 19: flyteidl.admin.WorkflowExecutionGetDataResponse + (*ExecutionUpdateRequest)(nil), // 20: flyteidl.admin.ExecutionUpdateRequest + (*ExecutionStateChangeDetails)(nil), // 21: flyteidl.admin.ExecutionStateChangeDetails + (*ExecutionUpdateResponse)(nil), // 22: flyteidl.admin.ExecutionUpdateResponse + (*WorkflowExecutionGetMetricsRequest)(nil), // 23: flyteidl.admin.WorkflowExecutionGetMetricsRequest + (*WorkflowExecutionGetMetricsResponse)(nil), // 24: flyteidl.admin.WorkflowExecutionGetMetricsResponse + (*core.LiteralMap)(nil), // 25: flyteidl.core.LiteralMap + (*core.WorkflowExecutionIdentifier)(nil), // 26: flyteidl.core.WorkflowExecutionIdentifier + (*core.ExecutionError)(nil), // 27: flyteidl.core.ExecutionError + (core.WorkflowExecution_Phase)(0), // 28: flyteidl.core.WorkflowExecution.Phase + (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 30: google.protobuf.Duration + (*Notification)(nil), // 31: flyteidl.admin.Notification + (*core.Identifier)(nil), // 32: flyteidl.core.Identifier + (*core.NodeExecutionIdentifier)(nil), // 33: flyteidl.core.NodeExecutionIdentifier + (*core.ArtifactID)(nil), // 34: flyteidl.core.ArtifactID + (*Labels)(nil), // 35: flyteidl.admin.Labels + (*Annotations)(nil), // 36: flyteidl.admin.Annotations + (*core.SecurityContext)(nil), // 37: flyteidl.core.SecurityContext + (*AuthRole)(nil), // 38: flyteidl.admin.AuthRole + (*core.QualityOfService)(nil), // 39: flyteidl.core.QualityOfService + (*RawOutputDataConfig)(nil), // 40: flyteidl.admin.RawOutputDataConfig + (*ClusterAssignment)(nil), // 41: flyteidl.admin.ClusterAssignment + (*wrapperspb.BoolValue)(nil), // 42: google.protobuf.BoolValue + (*Envs)(nil), // 43: flyteidl.admin.Envs + (*UrlBlob)(nil), // 44: flyteidl.admin.UrlBlob + (*core.Span)(nil), // 45: flyteidl.core.Span +} +var file_flyteidl_admin_execution_proto_depIdxs = []int32{ + 15, // 0: flyteidl.admin.ExecutionCreateRequest.spec:type_name -> flyteidl.admin.ExecutionSpec + 25, // 1: flyteidl.admin.ExecutionCreateRequest.inputs:type_name -> flyteidl.core.LiteralMap + 26, // 2: flyteidl.admin.ExecutionRelaunchRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 26, // 3: flyteidl.admin.ExecutionRecoverRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 13, // 4: flyteidl.admin.ExecutionRecoverRequest.metadata:type_name -> flyteidl.admin.ExecutionMetadata + 26, // 5: flyteidl.admin.ExecutionCreateResponse.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 26, // 6: flyteidl.admin.WorkflowExecutionGetRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 26, // 7: flyteidl.admin.Execution.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 15, // 8: flyteidl.admin.Execution.spec:type_name -> flyteidl.admin.ExecutionSpec + 11, // 9: flyteidl.admin.Execution.closure:type_name -> flyteidl.admin.ExecutionClosure + 7, // 10: flyteidl.admin.ExecutionList.executions:type_name -> flyteidl.admin.Execution + 25, // 11: flyteidl.admin.LiteralMapBlob.values:type_name -> flyteidl.core.LiteralMap + 9, // 12: flyteidl.admin.ExecutionClosure.outputs:type_name -> flyteidl.admin.LiteralMapBlob + 27, // 13: flyteidl.admin.ExecutionClosure.error:type_name -> flyteidl.core.ExecutionError + 10, // 14: flyteidl.admin.ExecutionClosure.abort_metadata:type_name -> flyteidl.admin.AbortMetadata + 25, // 15: flyteidl.admin.ExecutionClosure.output_data:type_name -> flyteidl.core.LiteralMap + 25, // 16: flyteidl.admin.ExecutionClosure.computed_inputs:type_name -> flyteidl.core.LiteralMap + 28, // 17: flyteidl.admin.ExecutionClosure.phase:type_name -> flyteidl.core.WorkflowExecution.Phase + 29, // 18: flyteidl.admin.ExecutionClosure.started_at:type_name -> google.protobuf.Timestamp + 30, // 19: flyteidl.admin.ExecutionClosure.duration:type_name -> google.protobuf.Duration + 29, // 20: flyteidl.admin.ExecutionClosure.created_at:type_name -> google.protobuf.Timestamp + 29, // 21: flyteidl.admin.ExecutionClosure.updated_at:type_name -> google.protobuf.Timestamp + 31, // 22: flyteidl.admin.ExecutionClosure.notifications:type_name -> flyteidl.admin.Notification + 32, // 23: flyteidl.admin.ExecutionClosure.workflow_id:type_name -> flyteidl.core.Identifier + 21, // 24: flyteidl.admin.ExecutionClosure.state_change_details:type_name -> flyteidl.admin.ExecutionStateChangeDetails + 1, // 25: flyteidl.admin.ExecutionMetadata.mode:type_name -> flyteidl.admin.ExecutionMetadata.ExecutionMode + 29, // 26: flyteidl.admin.ExecutionMetadata.scheduled_at:type_name -> google.protobuf.Timestamp + 33, // 27: flyteidl.admin.ExecutionMetadata.parent_node_execution:type_name -> flyteidl.core.NodeExecutionIdentifier + 26, // 28: flyteidl.admin.ExecutionMetadata.reference_execution:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 12, // 29: flyteidl.admin.ExecutionMetadata.system_metadata:type_name -> flyteidl.admin.SystemMetadata + 34, // 30: flyteidl.admin.ExecutionMetadata.artifact_ids:type_name -> flyteidl.core.ArtifactID + 31, // 31: flyteidl.admin.NotificationList.notifications:type_name -> flyteidl.admin.Notification + 32, // 32: flyteidl.admin.ExecutionSpec.launch_plan:type_name -> flyteidl.core.Identifier + 25, // 33: flyteidl.admin.ExecutionSpec.inputs:type_name -> flyteidl.core.LiteralMap + 13, // 34: flyteidl.admin.ExecutionSpec.metadata:type_name -> flyteidl.admin.ExecutionMetadata + 14, // 35: flyteidl.admin.ExecutionSpec.notifications:type_name -> flyteidl.admin.NotificationList + 35, // 36: flyteidl.admin.ExecutionSpec.labels:type_name -> flyteidl.admin.Labels + 36, // 37: flyteidl.admin.ExecutionSpec.annotations:type_name -> flyteidl.admin.Annotations + 37, // 38: flyteidl.admin.ExecutionSpec.security_context:type_name -> flyteidl.core.SecurityContext + 38, // 39: flyteidl.admin.ExecutionSpec.auth_role:type_name -> flyteidl.admin.AuthRole + 39, // 40: flyteidl.admin.ExecutionSpec.quality_of_service:type_name -> flyteidl.core.QualityOfService + 40, // 41: flyteidl.admin.ExecutionSpec.raw_output_data_config:type_name -> flyteidl.admin.RawOutputDataConfig + 41, // 42: flyteidl.admin.ExecutionSpec.cluster_assignment:type_name -> flyteidl.admin.ClusterAssignment + 42, // 43: flyteidl.admin.ExecutionSpec.interruptible:type_name -> google.protobuf.BoolValue + 43, // 44: flyteidl.admin.ExecutionSpec.envs:type_name -> flyteidl.admin.Envs + 26, // 45: flyteidl.admin.ExecutionTerminateRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 26, // 46: flyteidl.admin.WorkflowExecutionGetDataRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 44, // 47: flyteidl.admin.WorkflowExecutionGetDataResponse.outputs:type_name -> flyteidl.admin.UrlBlob + 44, // 48: flyteidl.admin.WorkflowExecutionGetDataResponse.inputs:type_name -> flyteidl.admin.UrlBlob + 25, // 49: flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs:type_name -> flyteidl.core.LiteralMap + 25, // 50: flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs:type_name -> flyteidl.core.LiteralMap + 26, // 51: flyteidl.admin.ExecutionUpdateRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 0, // 52: flyteidl.admin.ExecutionUpdateRequest.state:type_name -> flyteidl.admin.ExecutionState + 0, // 53: flyteidl.admin.ExecutionStateChangeDetails.state:type_name -> flyteidl.admin.ExecutionState + 29, // 54: flyteidl.admin.ExecutionStateChangeDetails.occurred_at:type_name -> google.protobuf.Timestamp + 26, // 55: flyteidl.admin.WorkflowExecutionGetMetricsRequest.id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 45, // 56: flyteidl.admin.WorkflowExecutionGetMetricsResponse.span:type_name -> flyteidl.core.Span + 57, // [57:57] is the sub-list for method output_type + 57, // [57:57] is the sub-list for method input_type + 57, // [57:57] is the sub-list for extension type_name + 57, // [57:57] is the sub-list for extension extendee + 0, // [0:57] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_execution_proto_init() } +func file_flyteidl_admin_execution_proto_init() { + if File_flyteidl_admin_execution_proto != nil { + return + } + file_flyteidl_admin_cluster_assignment_proto_init() + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionRelaunchRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionRecoverRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Execution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LiteralMapBlob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AbortMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SystemMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NotificationList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionTerminateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionTerminateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionGetDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionGetDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionStateChangeDetails); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionGetMetricsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_execution_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionGetMetricsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_execution_proto_msgTypes[7].OneofWrappers = []interface{}{ + (*LiteralMapBlob_Values)(nil), + (*LiteralMapBlob_Uri)(nil), + } + file_flyteidl_admin_execution_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*ExecutionClosure_Outputs)(nil), + (*ExecutionClosure_Error)(nil), + (*ExecutionClosure_AbortCause)(nil), + (*ExecutionClosure_AbortMetadata)(nil), + (*ExecutionClosure_OutputData)(nil), + } + file_flyteidl_admin_execution_proto_msgTypes[13].OneofWrappers = []interface{}{ + (*ExecutionSpec_Notifications)(nil), + (*ExecutionSpec_DisableAll)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_execution_proto_rawDesc, + NumEnums: 2, + NumMessages: 23, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_execution_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_execution_proto_depIdxs, + EnumInfos: file_flyteidl_admin_execution_proto_enumTypes, + MessageInfos: file_flyteidl_admin_execution_proto_msgTypes, + }.Build() + File_flyteidl_admin_execution_proto = out.File + file_flyteidl_admin_execution_proto_rawDesc = nil + file_flyteidl_admin_execution_proto_goTypes = nil + file_flyteidl_admin_execution_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go new file mode 100644 index 0000000000..1bbd7a29e1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go @@ -0,0 +1,1429 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/launch_plan.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// By default any launch plan regardless of state can be used to launch a workflow execution. +// However, at most one version of a launch plan +// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +// group will be observed and trigger executions at a defined cadence. +type LaunchPlanState int32 + +const ( + LaunchPlanState_INACTIVE LaunchPlanState = 0 + LaunchPlanState_ACTIVE LaunchPlanState = 1 +) + +// Enum value maps for LaunchPlanState. +var ( + LaunchPlanState_name = map[int32]string{ + 0: "INACTIVE", + 1: "ACTIVE", + } + LaunchPlanState_value = map[string]int32{ + "INACTIVE": 0, + "ACTIVE": 1, + } +) + +func (x LaunchPlanState) Enum() *LaunchPlanState { + p := new(LaunchPlanState) + *p = x + return p +} + +func (x LaunchPlanState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LaunchPlanState) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_launch_plan_proto_enumTypes[0].Descriptor() +} + +func (LaunchPlanState) Type() protoreflect.EnumType { + return &file_flyteidl_admin_launch_plan_proto_enumTypes[0] +} + +func (x LaunchPlanState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LaunchPlanState.Descriptor instead. +func (LaunchPlanState) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{0} +} + +// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required +// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. +type LaunchPlanCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uniquely identifies a launch plan entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` +} + +func (x *LaunchPlanCreateRequest) Reset() { + *x = LaunchPlanCreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanCreateRequest) ProtoMessage() {} + +func (x *LaunchPlanCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanCreateRequest.ProtoReflect.Descriptor instead. +func (*LaunchPlanCreateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{0} +} + +func (x *LaunchPlanCreateRequest) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *LaunchPlanCreateRequest) GetSpec() *LaunchPlanSpec { + if x != nil { + return x.Spec + } + return nil +} + +type LaunchPlanCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *LaunchPlanCreateResponse) Reset() { + *x = LaunchPlanCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanCreateResponse) ProtoMessage() {} + +func (x *LaunchPlanCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanCreateResponse.ProtoReflect.Descriptor instead. +func (*LaunchPlanCreateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{1} +} + +// A LaunchPlan provides the capability to templatize workflow executions. +// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +// definition doesn't necessarily have a default value for said input. +type LaunchPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uniquely identifies a launch plan entity. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // User-provided launch plan details, including reference workflow, inputs and other metadata. + Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` + // Values computed by the flyte platform after launch plan registration. + Closure *LaunchPlanClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` +} + +func (x *LaunchPlan) Reset() { + *x = LaunchPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlan) ProtoMessage() {} + +func (x *LaunchPlan) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlan.ProtoReflect.Descriptor instead. +func (*LaunchPlan) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{2} +} + +func (x *LaunchPlan) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *LaunchPlan) GetSpec() *LaunchPlanSpec { + if x != nil { + return x.Spec + } + return nil +} + +func (x *LaunchPlan) GetClosure() *LaunchPlanClosure { + if x != nil { + return x.Closure + } + return nil +} + +// Response object for list launch plan requests. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type LaunchPlanList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LaunchPlans []*LaunchPlan `protobuf:"bytes,1,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *LaunchPlanList) Reset() { + *x = LaunchPlanList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanList) ProtoMessage() {} + +func (x *LaunchPlanList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanList.ProtoReflect.Descriptor instead. +func (*LaunchPlanList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{3} +} + +func (x *LaunchPlanList) GetLaunchPlans() []*LaunchPlan { + if x != nil { + return x.LaunchPlans + } + return nil +} + +func (x *LaunchPlanList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Defines permissions associated with executions created by this launch plan spec. +// Use either of these roles when they have permissions required by your workflow execution. +// Deprecated. +// +// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. +type Auth struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` + // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` +} + +func (x *Auth) Reset() { + *x = Auth{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Auth) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Auth) ProtoMessage() {} + +func (x *Auth) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Auth.ProtoReflect.Descriptor instead. +func (*Auth) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{4} +} + +func (x *Auth) GetAssumableIamRole() string { + if x != nil { + return x.AssumableIamRole + } + return "" +} + +func (x *Auth) GetKubernetesServiceAccount() string { + if x != nil { + return x.KubernetesServiceAccount + } + return "" +} + +// User-provided launch plan definition and configuration values. +type LaunchPlanSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Reference to the Workflow template that the launch plan references + WorkflowId *core.Identifier `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + // Metadata for the Launch Plan + EntityMetadata *LaunchPlanMetadata `protobuf:"bytes,2,opt,name=entity_metadata,json=entityMetadata,proto3" json:"entity_metadata,omitempty"` + // Input values to be passed for the execution. + // These can be overridden when an execution is created with this launch plan. + DefaultInputs *core.ParameterMap `protobuf:"bytes,3,opt,name=default_inputs,json=defaultInputs,proto3" json:"default_inputs,omitempty"` + // Fixed, non-overridable inputs for the Launch Plan. + // These can not be overridden when an execution is created with this launch plan. + FixedInputs *core.LiteralMap `protobuf:"bytes,4,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` + // String to indicate the role to use to execute the workflow underneath + // + // Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. + Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` + // Custom labels to be applied to the execution resource. + Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` + // Custom annotations to be applied to the execution resource. + Annotations *Annotations `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Indicates the permission associated with workflow executions triggered with this launch plan. + // + // Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. + Auth *Auth `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"` + // Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. + AuthRole *AuthRole `protobuf:"bytes,9,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` + // Indicates security context for permissions triggered with this launch plan + SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Indicates the runtime priority of the execution. + QualityOfService *core.QualityOfService `protobuf:"bytes,16,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,17,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` + // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. + // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + // and parallelism/concurrency of MapTasks is independent from this. + MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + Interruptible *wrapperspb.BoolValue `protobuf:"bytes,19,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,20,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *Envs `protobuf:"bytes,21,opt,name=envs,proto3" json:"envs,omitempty"` +} + +func (x *LaunchPlanSpec) Reset() { + *x = LaunchPlanSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanSpec) ProtoMessage() {} + +func (x *LaunchPlanSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanSpec.ProtoReflect.Descriptor instead. +func (*LaunchPlanSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{5} +} + +func (x *LaunchPlanSpec) GetWorkflowId() *core.Identifier { + if x != nil { + return x.WorkflowId + } + return nil +} + +func (x *LaunchPlanSpec) GetEntityMetadata() *LaunchPlanMetadata { + if x != nil { + return x.EntityMetadata + } + return nil +} + +func (x *LaunchPlanSpec) GetDefaultInputs() *core.ParameterMap { + if x != nil { + return x.DefaultInputs + } + return nil +} + +func (x *LaunchPlanSpec) GetFixedInputs() *core.LiteralMap { + if x != nil { + return x.FixedInputs + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. +func (x *LaunchPlanSpec) GetRole() string { + if x != nil { + return x.Role + } + return "" +} + +func (x *LaunchPlanSpec) GetLabels() *Labels { + if x != nil { + return x.Labels + } + return nil +} + +func (x *LaunchPlanSpec) GetAnnotations() *Annotations { + if x != nil { + return x.Annotations + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. +func (x *LaunchPlanSpec) GetAuth() *Auth { + if x != nil { + return x.Auth + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/launch_plan.proto. +func (x *LaunchPlanSpec) GetAuthRole() *AuthRole { + if x != nil { + return x.AuthRole + } + return nil +} + +func (x *LaunchPlanSpec) GetSecurityContext() *core.SecurityContext { + if x != nil { + return x.SecurityContext + } + return nil +} + +func (x *LaunchPlanSpec) GetQualityOfService() *core.QualityOfService { + if x != nil { + return x.QualityOfService + } + return nil +} + +func (x *LaunchPlanSpec) GetRawOutputDataConfig() *RawOutputDataConfig { + if x != nil { + return x.RawOutputDataConfig + } + return nil +} + +func (x *LaunchPlanSpec) GetMaxParallelism() int32 { + if x != nil { + return x.MaxParallelism + } + return 0 +} + +func (x *LaunchPlanSpec) GetInterruptible() *wrapperspb.BoolValue { + if x != nil { + return x.Interruptible + } + return nil +} + +func (x *LaunchPlanSpec) GetOverwriteCache() bool { + if x != nil { + return x.OverwriteCache + } + return false +} + +func (x *LaunchPlanSpec) GetEnvs() *Envs { + if x != nil { + return x.Envs + } + return nil +} + +// Values computed by the flyte platform after launch plan registration. +// These include expected_inputs required to be present in a CreateExecutionRequest +// to launch the reference workflow as well timestamp values associated with the launch plan. +type LaunchPlanClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicate the Launch plan state. + State LaunchPlanState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` + // Indicates the set of inputs expected when creating an execution with the Launch plan + ExpectedInputs *core.ParameterMap `protobuf:"bytes,2,opt,name=expected_inputs,json=expectedInputs,proto3" json:"expected_inputs,omitempty"` + // Indicates the set of outputs expected to be produced by creating an execution with the Launch plan + ExpectedOutputs *core.VariableMap `protobuf:"bytes,3,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"` + // Time at which the launch plan was created. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the launch plan was last updated. + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *LaunchPlanClosure) Reset() { + *x = LaunchPlanClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanClosure) ProtoMessage() {} + +func (x *LaunchPlanClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanClosure.ProtoReflect.Descriptor instead. +func (*LaunchPlanClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{6} +} + +func (x *LaunchPlanClosure) GetState() LaunchPlanState { + if x != nil { + return x.State + } + return LaunchPlanState_INACTIVE +} + +func (x *LaunchPlanClosure) GetExpectedInputs() *core.ParameterMap { + if x != nil { + return x.ExpectedInputs + } + return nil +} + +func (x *LaunchPlanClosure) GetExpectedOutputs() *core.VariableMap { + if x != nil { + return x.ExpectedOutputs + } + return nil +} + +func (x *LaunchPlanClosure) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *LaunchPlanClosure) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +// the reference workflow. +type LaunchPlanMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Schedule to execute the Launch Plan + Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + // List of notifications based on Execution status transitions + Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` + // Additional metadata for how to launch the launch plan + LaunchConditions *anypb.Any `protobuf:"bytes,3,opt,name=launch_conditions,json=launchConditions,proto3" json:"launch_conditions,omitempty"` +} + +func (x *LaunchPlanMetadata) Reset() { + *x = LaunchPlanMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanMetadata) ProtoMessage() {} + +func (x *LaunchPlanMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanMetadata.ProtoReflect.Descriptor instead. +func (*LaunchPlanMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{7} +} + +func (x *LaunchPlanMetadata) GetSchedule() *Schedule { + if x != nil { + return x.Schedule + } + return nil +} + +func (x *LaunchPlanMetadata) GetNotifications() []*Notification { + if x != nil { + return x.Notifications + } + return nil +} + +func (x *LaunchPlanMetadata) GetLaunchConditions() *anypb.Any { + if x != nil { + return x.LaunchConditions + } + return nil +} + +// Request to set the referenced launch plan state to the configured value. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type LaunchPlanUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifier of launch plan for which to change state. + // +required. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Desired state to apply to the launch plan. + // +required. + State LaunchPlanState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` +} + +func (x *LaunchPlanUpdateRequest) Reset() { + *x = LaunchPlanUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanUpdateRequest) ProtoMessage() {} + +func (x *LaunchPlanUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanUpdateRequest.ProtoReflect.Descriptor instead. +func (*LaunchPlanUpdateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{8} +} + +func (x *LaunchPlanUpdateRequest) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *LaunchPlanUpdateRequest) GetState() LaunchPlanState { + if x != nil { + return x.State + } + return LaunchPlanState_INACTIVE +} + +// Purposefully empty, may be populated in the future. +type LaunchPlanUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *LaunchPlanUpdateResponse) Reset() { + *x = LaunchPlanUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanUpdateResponse) ProtoMessage() {} + +func (x *LaunchPlanUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanUpdateResponse.ProtoReflect.Descriptor instead. +func (*LaunchPlanUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{9} +} + +// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type ActiveLaunchPlanRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required. + Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ActiveLaunchPlanRequest) Reset() { + *x = ActiveLaunchPlanRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActiveLaunchPlanRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActiveLaunchPlanRequest) ProtoMessage() {} + +func (x *ActiveLaunchPlanRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActiveLaunchPlanRequest.ProtoReflect.Descriptor instead. +func (*ActiveLaunchPlanRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{10} +} + +func (x *ActiveLaunchPlanRequest) GetId() *NamedEntityIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Represents a request structure to list active launch plans within a project/domain and optional org. +// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +type ActiveLaunchPlanListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the project that contains the identifiers. + // +required. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the identifiers belongs to within the project. + // +required. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Indicates the number of resources to be returned. + // +required. + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ActiveLaunchPlanListRequest) Reset() { + *x = ActiveLaunchPlanListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActiveLaunchPlanListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActiveLaunchPlanListRequest) ProtoMessage() {} + +func (x *ActiveLaunchPlanListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_launch_plan_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActiveLaunchPlanListRequest.ProtoReflect.Descriptor instead. +func (*ActiveLaunchPlanListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_launch_plan_proto_rawDescGZIP(), []int{11} +} + +func (x *ActiveLaunchPlanListRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ActiveLaunchPlanListRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ActiveLaunchPlanListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *ActiveLaunchPlanListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *ActiveLaunchPlanListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +func (x *ActiveLaunchPlanListRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +var File_flyteidl_admin_launch_plan_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_launch_plan_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x73, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x78, 0x0a, 0x17, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, + 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x1a, + 0x0a, 0x18, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x0a, 0x4c, + 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x32, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x70, + 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x3b, 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, + 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, + 0x6f, 0x73, 0x75, 0x72, 0x65, 0x22, 0x65, 0x0a, 0x0e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, + 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, + 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x76, 0x0a, 0x04, + 0x41, 0x75, 0x74, 0x68, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x61, 0x73, 0x73, 0x75, 0x6d, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x61, 0x6d, 0x52, 0x6f, + 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, + 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x3a, 0x02, 0x18, 0x01, 0x22, 0xbd, 0x07, 0x0a, 0x0e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, + 0x6c, 0x61, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x12, 0x3a, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x49, 0x64, 0x12, 0x4b, 0x0a, 0x0f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x42, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x69, 0x6e, 0x70, 0x75, + 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, + 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x69, 0x78, 0x65, 0x64, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x73, 0x12, 0x16, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2c, 0x0a, 0x04, 0x61, 0x75, 0x74, + 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x42, 0x02, 0x18, + 0x01, 0x52, 0x04, 0x61, 0x75, 0x74, 0x68, 0x12, 0x39, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f, + 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x75, 0x74, 0x68, + 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x61, 0x75, 0x74, 0x68, 0x52, 0x6f, + 0x6c, 0x65, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, + 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4d, 0x0a, + 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, + 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, + 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x16, + 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x61, + 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x13, 0x72, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x12, + 0x40, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, + 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, + 0x61, 0x63, 0x68, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, + 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6e, + 0x76, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x6e, 0x76, 0x73, 0x52, 0x04, + 0x65, 0x6e, 0x76, 0x73, 0x22, 0xcd, 0x02, 0x0a, 0x11, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, + 0x6c, 0x61, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x44, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x45, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x65, 0x63, + 0x74, 0x65, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x52, 0x0f, 0x65, + 0x78, 0x70, 0x65, 0x63, 0x74, 0x65, 0x64, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x39, + 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x22, 0xd1, 0x01, 0x0a, 0x12, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, + 0x6c, 0x61, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x34, 0x0a, 0x08, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x43, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7b, 0x0a, 0x17, 0x4c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, + 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, + 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, + 0x6c, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x50, 0x0a, 0x17, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x02, 0x69, 0x64, 0x22, 0xbc, 0x01, 0x0a, 0x1b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, + 0x72, 0x67, 0x2a, 0x2b, 0x0a, 0x0f, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, + 0x45, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x42, + 0xbb, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0f, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, + 0x61, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, + 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_launch_plan_proto_rawDescOnce sync.Once + file_flyteidl_admin_launch_plan_proto_rawDescData = file_flyteidl_admin_launch_plan_proto_rawDesc +) + +func file_flyteidl_admin_launch_plan_proto_rawDescGZIP() []byte { + file_flyteidl_admin_launch_plan_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_launch_plan_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_launch_plan_proto_rawDescData) + }) + return file_flyteidl_admin_launch_plan_proto_rawDescData +} + +var file_flyteidl_admin_launch_plan_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_admin_launch_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_flyteidl_admin_launch_plan_proto_goTypes = []interface{}{ + (LaunchPlanState)(0), // 0: flyteidl.admin.LaunchPlanState + (*LaunchPlanCreateRequest)(nil), // 1: flyteidl.admin.LaunchPlanCreateRequest + (*LaunchPlanCreateResponse)(nil), // 2: flyteidl.admin.LaunchPlanCreateResponse + (*LaunchPlan)(nil), // 3: flyteidl.admin.LaunchPlan + (*LaunchPlanList)(nil), // 4: flyteidl.admin.LaunchPlanList + (*Auth)(nil), // 5: flyteidl.admin.Auth + (*LaunchPlanSpec)(nil), // 6: flyteidl.admin.LaunchPlanSpec + (*LaunchPlanClosure)(nil), // 7: flyteidl.admin.LaunchPlanClosure + (*LaunchPlanMetadata)(nil), // 8: flyteidl.admin.LaunchPlanMetadata + (*LaunchPlanUpdateRequest)(nil), // 9: flyteidl.admin.LaunchPlanUpdateRequest + (*LaunchPlanUpdateResponse)(nil), // 10: flyteidl.admin.LaunchPlanUpdateResponse + (*ActiveLaunchPlanRequest)(nil), // 11: flyteidl.admin.ActiveLaunchPlanRequest + (*ActiveLaunchPlanListRequest)(nil), // 12: flyteidl.admin.ActiveLaunchPlanListRequest + (*core.Identifier)(nil), // 13: flyteidl.core.Identifier + (*core.ParameterMap)(nil), // 14: flyteidl.core.ParameterMap + (*core.LiteralMap)(nil), // 15: flyteidl.core.LiteralMap + (*Labels)(nil), // 16: flyteidl.admin.Labels + (*Annotations)(nil), // 17: flyteidl.admin.Annotations + (*AuthRole)(nil), // 18: flyteidl.admin.AuthRole + (*core.SecurityContext)(nil), // 19: flyteidl.core.SecurityContext + (*core.QualityOfService)(nil), // 20: flyteidl.core.QualityOfService + (*RawOutputDataConfig)(nil), // 21: flyteidl.admin.RawOutputDataConfig + (*wrapperspb.BoolValue)(nil), // 22: google.protobuf.BoolValue + (*Envs)(nil), // 23: flyteidl.admin.Envs + (*core.VariableMap)(nil), // 24: flyteidl.core.VariableMap + (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (*Schedule)(nil), // 26: flyteidl.admin.Schedule + (*Notification)(nil), // 27: flyteidl.admin.Notification + (*anypb.Any)(nil), // 28: google.protobuf.Any + (*NamedEntityIdentifier)(nil), // 29: flyteidl.admin.NamedEntityIdentifier + (*Sort)(nil), // 30: flyteidl.admin.Sort +} +var file_flyteidl_admin_launch_plan_proto_depIdxs = []int32{ + 13, // 0: flyteidl.admin.LaunchPlanCreateRequest.id:type_name -> flyteidl.core.Identifier + 6, // 1: flyteidl.admin.LaunchPlanCreateRequest.spec:type_name -> flyteidl.admin.LaunchPlanSpec + 13, // 2: flyteidl.admin.LaunchPlan.id:type_name -> flyteidl.core.Identifier + 6, // 3: flyteidl.admin.LaunchPlan.spec:type_name -> flyteidl.admin.LaunchPlanSpec + 7, // 4: flyteidl.admin.LaunchPlan.closure:type_name -> flyteidl.admin.LaunchPlanClosure + 3, // 5: flyteidl.admin.LaunchPlanList.launch_plans:type_name -> flyteidl.admin.LaunchPlan + 13, // 6: flyteidl.admin.LaunchPlanSpec.workflow_id:type_name -> flyteidl.core.Identifier + 8, // 7: flyteidl.admin.LaunchPlanSpec.entity_metadata:type_name -> flyteidl.admin.LaunchPlanMetadata + 14, // 8: flyteidl.admin.LaunchPlanSpec.default_inputs:type_name -> flyteidl.core.ParameterMap + 15, // 9: flyteidl.admin.LaunchPlanSpec.fixed_inputs:type_name -> flyteidl.core.LiteralMap + 16, // 10: flyteidl.admin.LaunchPlanSpec.labels:type_name -> flyteidl.admin.Labels + 17, // 11: flyteidl.admin.LaunchPlanSpec.annotations:type_name -> flyteidl.admin.Annotations + 5, // 12: flyteidl.admin.LaunchPlanSpec.auth:type_name -> flyteidl.admin.Auth + 18, // 13: flyteidl.admin.LaunchPlanSpec.auth_role:type_name -> flyteidl.admin.AuthRole + 19, // 14: flyteidl.admin.LaunchPlanSpec.security_context:type_name -> flyteidl.core.SecurityContext + 20, // 15: flyteidl.admin.LaunchPlanSpec.quality_of_service:type_name -> flyteidl.core.QualityOfService + 21, // 16: flyteidl.admin.LaunchPlanSpec.raw_output_data_config:type_name -> flyteidl.admin.RawOutputDataConfig + 22, // 17: flyteidl.admin.LaunchPlanSpec.interruptible:type_name -> google.protobuf.BoolValue + 23, // 18: flyteidl.admin.LaunchPlanSpec.envs:type_name -> flyteidl.admin.Envs + 0, // 19: flyteidl.admin.LaunchPlanClosure.state:type_name -> flyteidl.admin.LaunchPlanState + 14, // 20: flyteidl.admin.LaunchPlanClosure.expected_inputs:type_name -> flyteidl.core.ParameterMap + 24, // 21: flyteidl.admin.LaunchPlanClosure.expected_outputs:type_name -> flyteidl.core.VariableMap + 25, // 22: flyteidl.admin.LaunchPlanClosure.created_at:type_name -> google.protobuf.Timestamp + 25, // 23: flyteidl.admin.LaunchPlanClosure.updated_at:type_name -> google.protobuf.Timestamp + 26, // 24: flyteidl.admin.LaunchPlanMetadata.schedule:type_name -> flyteidl.admin.Schedule + 27, // 25: flyteidl.admin.LaunchPlanMetadata.notifications:type_name -> flyteidl.admin.Notification + 28, // 26: flyteidl.admin.LaunchPlanMetadata.launch_conditions:type_name -> google.protobuf.Any + 13, // 27: flyteidl.admin.LaunchPlanUpdateRequest.id:type_name -> flyteidl.core.Identifier + 0, // 28: flyteidl.admin.LaunchPlanUpdateRequest.state:type_name -> flyteidl.admin.LaunchPlanState + 29, // 29: flyteidl.admin.ActiveLaunchPlanRequest.id:type_name -> flyteidl.admin.NamedEntityIdentifier + 30, // 30: flyteidl.admin.ActiveLaunchPlanListRequest.sort_by:type_name -> flyteidl.admin.Sort + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_launch_plan_proto_init() } +func file_flyteidl_admin_launch_plan_proto_init() { + if File_flyteidl_admin_launch_plan_proto != nil { + return + } + file_flyteidl_admin_schedule_proto_init() + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_launch_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Auth); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActiveLaunchPlanRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_launch_plan_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActiveLaunchPlanListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_launch_plan_proto_rawDesc, + NumEnums: 1, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_launch_plan_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_launch_plan_proto_depIdxs, + EnumInfos: file_flyteidl_admin_launch_plan_proto_enumTypes, + MessageInfos: file_flyteidl_admin_launch_plan_proto_msgTypes, + }.Build() + File_flyteidl_admin_launch_plan_proto = out.File + file_flyteidl_admin_launch_plan_proto_rawDesc = nil + file_flyteidl_admin_launch_plan_proto_goTypes = nil + file_flyteidl_admin_launch_plan_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go new file mode 100644 index 0000000000..2b712042d9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go @@ -0,0 +1,1492 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/matchable_resource.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes +// based on matching tags. +type MatchableResource int32 + +const ( + // Applies to customizable task resource requests and limits. + MatchableResource_TASK_RESOURCE MatchableResource = 0 + // Applies to configuring templated kubernetes cluster resources. + MatchableResource_CLUSTER_RESOURCE MatchableResource = 1 + // Configures task and dynamic task execution queue assignment. + MatchableResource_EXECUTION_QUEUE MatchableResource = 2 + // Configures the K8s cluster label to be used for execution to be run + MatchableResource_EXECUTION_CLUSTER_LABEL MatchableResource = 3 + // Configures default quality of service when undefined in an execution spec. + MatchableResource_QUALITY_OF_SERVICE_SPECIFICATION MatchableResource = 4 + // Selects configurable plugin implementation behavior for a given task type. + MatchableResource_PLUGIN_OVERRIDE MatchableResource = 5 + // Adds defaults for customizable workflow-execution specifications and overrides. + MatchableResource_WORKFLOW_EXECUTION_CONFIG MatchableResource = 6 + // Controls how to select an available cluster on which this execution should run. + MatchableResource_CLUSTER_ASSIGNMENT MatchableResource = 7 +) + +// Enum value maps for MatchableResource. +var ( + MatchableResource_name = map[int32]string{ + 0: "TASK_RESOURCE", + 1: "CLUSTER_RESOURCE", + 2: "EXECUTION_QUEUE", + 3: "EXECUTION_CLUSTER_LABEL", + 4: "QUALITY_OF_SERVICE_SPECIFICATION", + 5: "PLUGIN_OVERRIDE", + 6: "WORKFLOW_EXECUTION_CONFIG", + 7: "CLUSTER_ASSIGNMENT", + } + MatchableResource_value = map[string]int32{ + "TASK_RESOURCE": 0, + "CLUSTER_RESOURCE": 1, + "EXECUTION_QUEUE": 2, + "EXECUTION_CLUSTER_LABEL": 3, + "QUALITY_OF_SERVICE_SPECIFICATION": 4, + "PLUGIN_OVERRIDE": 5, + "WORKFLOW_EXECUTION_CONFIG": 6, + "CLUSTER_ASSIGNMENT": 7, + } +) + +func (x MatchableResource) Enum() *MatchableResource { + p := new(MatchableResource) + *p = x + return p +} + +func (x MatchableResource) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (MatchableResource) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_matchable_resource_proto_enumTypes[0].Descriptor() +} + +func (MatchableResource) Type() protoreflect.EnumType { + return &file_flyteidl_admin_matchable_resource_proto_enumTypes[0] +} + +func (x MatchableResource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use MatchableResource.Descriptor instead. +func (MatchableResource) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{0} +} + +type PluginOverride_MissingPluginBehavior int32 + +const ( + // By default, if this plugin is not enabled for a Flyte deployment then execution will fail. + PluginOverride_FAIL PluginOverride_MissingPluginBehavior = 0 + // Uses the system-configured default implementation. + PluginOverride_USE_DEFAULT PluginOverride_MissingPluginBehavior = 1 +) + +// Enum value maps for PluginOverride_MissingPluginBehavior. +var ( + PluginOverride_MissingPluginBehavior_name = map[int32]string{ + 0: "FAIL", + 1: "USE_DEFAULT", + } + PluginOverride_MissingPluginBehavior_value = map[string]int32{ + "FAIL": 0, + "USE_DEFAULT": 1, + } +) + +func (x PluginOverride_MissingPluginBehavior) Enum() *PluginOverride_MissingPluginBehavior { + p := new(PluginOverride_MissingPluginBehavior) + *p = x + return p +} + +func (x PluginOverride_MissingPluginBehavior) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PluginOverride_MissingPluginBehavior) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_matchable_resource_proto_enumTypes[1].Descriptor() +} + +func (PluginOverride_MissingPluginBehavior) Type() protoreflect.EnumType { + return &file_flyteidl_admin_matchable_resource_proto_enumTypes[1] +} + +func (x PluginOverride_MissingPluginBehavior) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PluginOverride_MissingPluginBehavior.Descriptor instead. +func (PluginOverride_MissingPluginBehavior) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{5, 0} +} + +// Defines a set of overridable task resource attributes set during task registration. +type TaskResourceSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` + Gpu string `protobuf:"bytes,2,opt,name=gpu,proto3" json:"gpu,omitempty"` + Memory string `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"` + Storage string `protobuf:"bytes,4,opt,name=storage,proto3" json:"storage,omitempty"` + EphemeralStorage string `protobuf:"bytes,5,opt,name=ephemeral_storage,json=ephemeralStorage,proto3" json:"ephemeral_storage,omitempty"` +} + +func (x *TaskResourceSpec) Reset() { + *x = TaskResourceSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskResourceSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskResourceSpec) ProtoMessage() {} + +func (x *TaskResourceSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskResourceSpec.ProtoReflect.Descriptor instead. +func (*TaskResourceSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{0} +} + +func (x *TaskResourceSpec) GetCpu() string { + if x != nil { + return x.Cpu + } + return "" +} + +func (x *TaskResourceSpec) GetGpu() string { + if x != nil { + return x.Gpu + } + return "" +} + +func (x *TaskResourceSpec) GetMemory() string { + if x != nil { + return x.Memory + } + return "" +} + +func (x *TaskResourceSpec) GetStorage() string { + if x != nil { + return x.Storage + } + return "" +} + +func (x *TaskResourceSpec) GetEphemeralStorage() string { + if x != nil { + return x.EphemeralStorage + } + return "" +} + +// Defines task resource defaults and limits that will be applied at task registration. +type TaskResourceAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Defaults *TaskResourceSpec `protobuf:"bytes,1,opt,name=defaults,proto3" json:"defaults,omitempty"` + Limits *TaskResourceSpec `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"` +} + +func (x *TaskResourceAttributes) Reset() { + *x = TaskResourceAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskResourceAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskResourceAttributes) ProtoMessage() {} + +func (x *TaskResourceAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskResourceAttributes.ProtoReflect.Descriptor instead. +func (*TaskResourceAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{1} +} + +func (x *TaskResourceAttributes) GetDefaults() *TaskResourceSpec { + if x != nil { + return x.Defaults + } + return nil +} + +func (x *TaskResourceAttributes) GetLimits() *TaskResourceSpec { + if x != nil { + return x.Limits + } + return nil +} + +type ClusterResourceAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). + // Map keys are the *case-sensitive* names of variables in templatized resource files. + // Map values should be the custom values which get substituted during resource creation. + Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ClusterResourceAttributes) Reset() { + *x = ClusterResourceAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClusterResourceAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterResourceAttributes) ProtoMessage() {} + +func (x *ClusterResourceAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClusterResourceAttributes.ProtoReflect.Descriptor instead. +func (*ClusterResourceAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{2} +} + +func (x *ClusterResourceAttributes) GetAttributes() map[string]string { + if x != nil { + return x.Attributes + } + return nil +} + +type ExecutionQueueAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Tags used for assigning execution queues for tasks defined within this project. + Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *ExecutionQueueAttributes) Reset() { + *x = ExecutionQueueAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionQueueAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionQueueAttributes) ProtoMessage() {} + +func (x *ExecutionQueueAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionQueueAttributes.ProtoReflect.Descriptor instead. +func (*ExecutionQueueAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{3} +} + +func (x *ExecutionQueueAttributes) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +type ExecutionClusterLabel struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Label value to determine where the execution will be run + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ExecutionClusterLabel) Reset() { + *x = ExecutionClusterLabel{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionClusterLabel) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionClusterLabel) ProtoMessage() {} + +func (x *ExecutionClusterLabel) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionClusterLabel.ProtoReflect.Descriptor instead. +func (*ExecutionClusterLabel) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{4} +} + +func (x *ExecutionClusterLabel) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. +// In addition to an override implementation a selection of fallbacks can be provided or other modes +// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. +type PluginOverride struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + PluginId []string `protobuf:"bytes,2,rep,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` + // Defines the behavior when no plugin from the plugin_id list is not found. + MissingPluginBehavior PluginOverride_MissingPluginBehavior `protobuf:"varint,4,opt,name=missing_plugin_behavior,json=missingPluginBehavior,proto3,enum=flyteidl.admin.PluginOverride_MissingPluginBehavior" json:"missing_plugin_behavior,omitempty"` +} + +func (x *PluginOverride) Reset() { + *x = PluginOverride{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PluginOverride) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginOverride) ProtoMessage() {} + +func (x *PluginOverride) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PluginOverride.ProtoReflect.Descriptor instead. +func (*PluginOverride) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{5} +} + +func (x *PluginOverride) GetTaskType() string { + if x != nil { + return x.TaskType + } + return "" +} + +func (x *PluginOverride) GetPluginId() []string { + if x != nil { + return x.PluginId + } + return nil +} + +func (x *PluginOverride) GetMissingPluginBehavior() PluginOverride_MissingPluginBehavior { + if x != nil { + return x.MissingPluginBehavior + } + return PluginOverride_FAIL +} + +type PluginOverrides struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Overrides []*PluginOverride `protobuf:"bytes,1,rep,name=overrides,proto3" json:"overrides,omitempty"` +} + +func (x *PluginOverrides) Reset() { + *x = PluginOverrides{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PluginOverrides) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginOverrides) ProtoMessage() {} + +func (x *PluginOverrides) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PluginOverrides.ProtoReflect.Descriptor instead. +func (*PluginOverrides) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{6} +} + +func (x *PluginOverrides) GetOverrides() []*PluginOverride { + if x != nil { + return x.Overrides + } + return nil +} + +// Adds defaults for customizable workflow-execution specifications and overrides. +type WorkflowExecutionConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + MaxParallelism int32 `protobuf:"varint,1,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` + // Indicates security context permissions for executions triggered with this matchable attribute. + SecurityContext *core.SecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,3,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` + // Custom labels to be applied to a triggered execution resource. + Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3" json:"labels,omitempty"` + // Custom annotations to be applied to a triggered execution resource. + Annotations *Annotations `protobuf:"bytes,5,opt,name=annotations,proto3" json:"annotations,omitempty"` + // Allows for the interruptible flag of a workflow to be overwritten for a single execution. + // Omitting this field uses the workflow's value as a default. + // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + // around the bool field. + Interruptible *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + // If enabled, all calculations are performed even if cached results would be available, overwriting the stored + // data once execution finishes successfully. + OverwriteCache bool `protobuf:"varint,7,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` + // Environment variables to be set for the execution. + Envs *Envs `protobuf:"bytes,8,opt,name=envs,proto3" json:"envs,omitempty"` +} + +func (x *WorkflowExecutionConfig) Reset() { + *x = WorkflowExecutionConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionConfig) ProtoMessage() {} + +func (x *WorkflowExecutionConfig) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionConfig.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionConfig) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{7} +} + +func (x *WorkflowExecutionConfig) GetMaxParallelism() int32 { + if x != nil { + return x.MaxParallelism + } + return 0 +} + +func (x *WorkflowExecutionConfig) GetSecurityContext() *core.SecurityContext { + if x != nil { + return x.SecurityContext + } + return nil +} + +func (x *WorkflowExecutionConfig) GetRawOutputDataConfig() *RawOutputDataConfig { + if x != nil { + return x.RawOutputDataConfig + } + return nil +} + +func (x *WorkflowExecutionConfig) GetLabels() *Labels { + if x != nil { + return x.Labels + } + return nil +} + +func (x *WorkflowExecutionConfig) GetAnnotations() *Annotations { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *WorkflowExecutionConfig) GetInterruptible() *wrapperspb.BoolValue { + if x != nil { + return x.Interruptible + } + return nil +} + +func (x *WorkflowExecutionConfig) GetOverwriteCache() bool { + if x != nil { + return x.OverwriteCache + } + return false +} + +func (x *WorkflowExecutionConfig) GetEnvs() *Envs { + if x != nil { + return x.Envs + } + return nil +} + +// Generic container for encapsulating all types of the above attributes messages. +type MatchingAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Target: + // + // *MatchingAttributes_TaskResourceAttributes + // *MatchingAttributes_ClusterResourceAttributes + // *MatchingAttributes_ExecutionQueueAttributes + // *MatchingAttributes_ExecutionClusterLabel + // *MatchingAttributes_QualityOfService + // *MatchingAttributes_PluginOverrides + // *MatchingAttributes_WorkflowExecutionConfig + // *MatchingAttributes_ClusterAssignment + Target isMatchingAttributes_Target `protobuf_oneof:"target"` +} + +func (x *MatchingAttributes) Reset() { + *x = MatchingAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MatchingAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MatchingAttributes) ProtoMessage() {} + +func (x *MatchingAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MatchingAttributes.ProtoReflect.Descriptor instead. +func (*MatchingAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{8} +} + +func (m *MatchingAttributes) GetTarget() isMatchingAttributes_Target { + if m != nil { + return m.Target + } + return nil +} + +func (x *MatchingAttributes) GetTaskResourceAttributes() *TaskResourceAttributes { + if x, ok := x.GetTarget().(*MatchingAttributes_TaskResourceAttributes); ok { + return x.TaskResourceAttributes + } + return nil +} + +func (x *MatchingAttributes) GetClusterResourceAttributes() *ClusterResourceAttributes { + if x, ok := x.GetTarget().(*MatchingAttributes_ClusterResourceAttributes); ok { + return x.ClusterResourceAttributes + } + return nil +} + +func (x *MatchingAttributes) GetExecutionQueueAttributes() *ExecutionQueueAttributes { + if x, ok := x.GetTarget().(*MatchingAttributes_ExecutionQueueAttributes); ok { + return x.ExecutionQueueAttributes + } + return nil +} + +func (x *MatchingAttributes) GetExecutionClusterLabel() *ExecutionClusterLabel { + if x, ok := x.GetTarget().(*MatchingAttributes_ExecutionClusterLabel); ok { + return x.ExecutionClusterLabel + } + return nil +} + +func (x *MatchingAttributes) GetQualityOfService() *core.QualityOfService { + if x, ok := x.GetTarget().(*MatchingAttributes_QualityOfService); ok { + return x.QualityOfService + } + return nil +} + +func (x *MatchingAttributes) GetPluginOverrides() *PluginOverrides { + if x, ok := x.GetTarget().(*MatchingAttributes_PluginOverrides); ok { + return x.PluginOverrides + } + return nil +} + +func (x *MatchingAttributes) GetWorkflowExecutionConfig() *WorkflowExecutionConfig { + if x, ok := x.GetTarget().(*MatchingAttributes_WorkflowExecutionConfig); ok { + return x.WorkflowExecutionConfig + } + return nil +} + +func (x *MatchingAttributes) GetClusterAssignment() *ClusterAssignment { + if x, ok := x.GetTarget().(*MatchingAttributes_ClusterAssignment); ok { + return x.ClusterAssignment + } + return nil +} + +type isMatchingAttributes_Target interface { + isMatchingAttributes_Target() +} + +type MatchingAttributes_TaskResourceAttributes struct { + TaskResourceAttributes *TaskResourceAttributes `protobuf:"bytes,1,opt,name=task_resource_attributes,json=taskResourceAttributes,proto3,oneof"` +} + +type MatchingAttributes_ClusterResourceAttributes struct { + ClusterResourceAttributes *ClusterResourceAttributes `protobuf:"bytes,2,opt,name=cluster_resource_attributes,json=clusterResourceAttributes,proto3,oneof"` +} + +type MatchingAttributes_ExecutionQueueAttributes struct { + ExecutionQueueAttributes *ExecutionQueueAttributes `protobuf:"bytes,3,opt,name=execution_queue_attributes,json=executionQueueAttributes,proto3,oneof"` +} + +type MatchingAttributes_ExecutionClusterLabel struct { + ExecutionClusterLabel *ExecutionClusterLabel `protobuf:"bytes,4,opt,name=execution_cluster_label,json=executionClusterLabel,proto3,oneof"` +} + +type MatchingAttributes_QualityOfService struct { + QualityOfService *core.QualityOfService `protobuf:"bytes,5,opt,name=quality_of_service,json=qualityOfService,proto3,oneof"` +} + +type MatchingAttributes_PluginOverrides struct { + PluginOverrides *PluginOverrides `protobuf:"bytes,6,opt,name=plugin_overrides,json=pluginOverrides,proto3,oneof"` +} + +type MatchingAttributes_WorkflowExecutionConfig struct { + WorkflowExecutionConfig *WorkflowExecutionConfig `protobuf:"bytes,7,opt,name=workflow_execution_config,json=workflowExecutionConfig,proto3,oneof"` +} + +type MatchingAttributes_ClusterAssignment struct { + ClusterAssignment *ClusterAssignment `protobuf:"bytes,8,opt,name=cluster_assignment,json=clusterAssignment,proto3,oneof"` +} + +func (*MatchingAttributes_TaskResourceAttributes) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ClusterResourceAttributes) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ExecutionQueueAttributes) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ExecutionClusterLabel) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_QualityOfService) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_PluginOverrides) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_WorkflowExecutionConfig) isMatchingAttributes_Target() {} + +func (*MatchingAttributes_ClusterAssignment) isMatchingAttributes_Target() {} + +// Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org); +// or domain, project and workflow name (and optional org). +// These are used to override system level defaults for kubernetes cluster resource management, +// default execution values, and more all across different levels of specificity. +type MatchableAttributesConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes *MatchingAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` + Workflow string `protobuf:"bytes,4,opt,name=workflow,proto3" json:"workflow,omitempty"` + LaunchPlan string `protobuf:"bytes,5,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *MatchableAttributesConfiguration) Reset() { + *x = MatchableAttributesConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MatchableAttributesConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MatchableAttributesConfiguration) ProtoMessage() {} + +func (x *MatchableAttributesConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MatchableAttributesConfiguration.ProtoReflect.Descriptor instead. +func (*MatchableAttributesConfiguration) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{9} +} + +func (x *MatchableAttributesConfiguration) GetAttributes() *MatchingAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +func (x *MatchableAttributesConfiguration) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *MatchableAttributesConfiguration) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *MatchableAttributesConfiguration) GetWorkflow() string { + if x != nil { + return x.Workflow + } + return "" +} + +func (x *MatchableAttributesConfiguration) GetLaunchPlan() string { + if x != nil { + return x.LaunchPlan + } + return "" +} + +func (x *MatchableAttributesConfiguration) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Request all matching resource attributes for a resource type. +// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +type ListMatchableAttributesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + ResourceType MatchableResource `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org filter applied to list project requests. + Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ListMatchableAttributesRequest) Reset() { + *x = ListMatchableAttributesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMatchableAttributesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMatchableAttributesRequest) ProtoMessage() {} + +func (x *ListMatchableAttributesRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMatchableAttributesRequest.ProtoReflect.Descriptor instead. +func (*ListMatchableAttributesRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{10} +} + +func (x *ListMatchableAttributesRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *ListMatchableAttributesRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Response for a request for all matching resource attributes for a resource type. +// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +type ListMatchableAttributesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Configurations []*MatchableAttributesConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"` +} + +func (x *ListMatchableAttributesResponse) Reset() { + *x = ListMatchableAttributesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListMatchableAttributesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListMatchableAttributesResponse) ProtoMessage() {} + +func (x *ListMatchableAttributesResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_matchable_resource_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListMatchableAttributesResponse.ProtoReflect.Descriptor instead. +func (*ListMatchableAttributesResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_matchable_resource_proto_rawDescGZIP(), []int{11} +} + +func (x *ListMatchableAttributesResponse) GetConfigurations() []*MatchableAttributesConfiguration { + if x != nil { + return x.Configurations + } + return nil +} + +var File_flyteidl_admin_matchable_resource_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_matchable_resource_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x61, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, + 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x01, 0x0a, + 0x10, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x70, 0x65, + 0x63, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x63, 0x70, 0x75, 0x12, 0x10, 0x0a, 0x03, 0x67, 0x70, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x67, 0x70, 0x75, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x70, 0x68, 0x65, 0x6d, + 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x16, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, + 0x3c, 0x0a, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, + 0x70, 0x65, 0x63, 0x52, 0x08, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x38, 0x0a, + 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x52, + 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x22, 0xb5, 0x01, 0x0a, 0x19, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x2e, 0x0a, 0x18, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, + 0x2d, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xec, + 0x01, 0x0a, 0x0e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, + 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x6c, 0x0a, 0x17, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x62, 0x65, + 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x2e, 0x4d, 0x69, 0x73, + 0x73, 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, + 0x6f, 0x72, 0x52, 0x15, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x15, 0x4d, 0x69, 0x73, + 0x73, 0x69, 0x6e, 0x67, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x42, 0x65, 0x68, 0x61, 0x76, 0x69, + 0x6f, 0x72, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, + 0x55, 0x53, 0x45, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x22, 0x4f, 0x0a, + 0x0f, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, + 0x12, 0x3c, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, + 0x69, 0x64, 0x65, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x22, 0xeb, + 0x03, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x61, + 0x78, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0e, 0x6d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, + 0x69, 0x73, 0x6d, 0x12, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, + 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, 0x73, + 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x58, + 0x0a, 0x16, 0x72, 0x61, 0x77, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x52, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x13, 0x72, 0x61, 0x77, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, + 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x40, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x6f, 0x76, 0x65, + 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x43, 0x61, 0x63, + 0x68, 0x65, 0x12, 0x28, 0x0a, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x45, 0x6e, 0x76, 0x73, 0x52, 0x04, 0x65, 0x6e, 0x76, 0x73, 0x22, 0x94, 0x06, 0x0a, + 0x12, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x62, 0x0a, 0x18, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, + 0x16, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x6b, 0x0a, 0x1b, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, 0x19, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x12, 0x68, 0x0a, 0x1a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x51, + 0x75, 0x65, 0x75, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x5f, + 0x0a, 0x17, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x48, 0x00, 0x52, 0x15, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, + 0x4f, 0x0a, 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, + 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x10, + 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x4c, 0x0a, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, + 0x69, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x65, + 0x0a, 0x19, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x17, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, + 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, + 0x73, 0x73, 0x69, 0x67, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x22, 0xe7, 0x01, 0x0a, 0x20, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, + 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x1a, + 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6f, + 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x7a, 0x0a, + 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x7b, 0x0a, 0x1f, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0e, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0xe0, 0x01, 0x0a, 0x11, 0x4d, 0x61, 0x74, 0x63, 0x68, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x11, 0x0a, 0x0d, + 0x54, 0x41, 0x53, 0x4b, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x00, 0x12, + 0x14, 0x0a, 0x10, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, + 0x52, 0x43, 0x45, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x58, + 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, + 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x10, 0x03, 0x12, 0x24, 0x0a, 0x20, 0x51, 0x55, 0x41, 0x4c, 0x49, + 0x54, 0x59, 0x5f, 0x4f, 0x46, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, + 0x0f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x52, 0x49, 0x44, 0x45, + 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x5f, 0x45, + 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x10, + 0x06, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x41, 0x53, 0x53, + 0x49, 0x47, 0x4e, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x07, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, + 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x42, 0x16, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, + 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, + 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_matchable_resource_proto_rawDescOnce sync.Once + file_flyteidl_admin_matchable_resource_proto_rawDescData = file_flyteidl_admin_matchable_resource_proto_rawDesc +) + +func file_flyteidl_admin_matchable_resource_proto_rawDescGZIP() []byte { + file_flyteidl_admin_matchable_resource_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_matchable_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_matchable_resource_proto_rawDescData) + }) + return file_flyteidl_admin_matchable_resource_proto_rawDescData +} + +var file_flyteidl_admin_matchable_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_admin_matchable_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_flyteidl_admin_matchable_resource_proto_goTypes = []interface{}{ + (MatchableResource)(0), // 0: flyteidl.admin.MatchableResource + (PluginOverride_MissingPluginBehavior)(0), // 1: flyteidl.admin.PluginOverride.MissingPluginBehavior + (*TaskResourceSpec)(nil), // 2: flyteidl.admin.TaskResourceSpec + (*TaskResourceAttributes)(nil), // 3: flyteidl.admin.TaskResourceAttributes + (*ClusterResourceAttributes)(nil), // 4: flyteidl.admin.ClusterResourceAttributes + (*ExecutionQueueAttributes)(nil), // 5: flyteidl.admin.ExecutionQueueAttributes + (*ExecutionClusterLabel)(nil), // 6: flyteidl.admin.ExecutionClusterLabel + (*PluginOverride)(nil), // 7: flyteidl.admin.PluginOverride + (*PluginOverrides)(nil), // 8: flyteidl.admin.PluginOverrides + (*WorkflowExecutionConfig)(nil), // 9: flyteidl.admin.WorkflowExecutionConfig + (*MatchingAttributes)(nil), // 10: flyteidl.admin.MatchingAttributes + (*MatchableAttributesConfiguration)(nil), // 11: flyteidl.admin.MatchableAttributesConfiguration + (*ListMatchableAttributesRequest)(nil), // 12: flyteidl.admin.ListMatchableAttributesRequest + (*ListMatchableAttributesResponse)(nil), // 13: flyteidl.admin.ListMatchableAttributesResponse + nil, // 14: flyteidl.admin.ClusterResourceAttributes.AttributesEntry + (*core.SecurityContext)(nil), // 15: flyteidl.core.SecurityContext + (*RawOutputDataConfig)(nil), // 16: flyteidl.admin.RawOutputDataConfig + (*Labels)(nil), // 17: flyteidl.admin.Labels + (*Annotations)(nil), // 18: flyteidl.admin.Annotations + (*wrapperspb.BoolValue)(nil), // 19: google.protobuf.BoolValue + (*Envs)(nil), // 20: flyteidl.admin.Envs + (*core.QualityOfService)(nil), // 21: flyteidl.core.QualityOfService + (*ClusterAssignment)(nil), // 22: flyteidl.admin.ClusterAssignment +} +var file_flyteidl_admin_matchable_resource_proto_depIdxs = []int32{ + 2, // 0: flyteidl.admin.TaskResourceAttributes.defaults:type_name -> flyteidl.admin.TaskResourceSpec + 2, // 1: flyteidl.admin.TaskResourceAttributes.limits:type_name -> flyteidl.admin.TaskResourceSpec + 14, // 2: flyteidl.admin.ClusterResourceAttributes.attributes:type_name -> flyteidl.admin.ClusterResourceAttributes.AttributesEntry + 1, // 3: flyteidl.admin.PluginOverride.missing_plugin_behavior:type_name -> flyteidl.admin.PluginOverride.MissingPluginBehavior + 7, // 4: flyteidl.admin.PluginOverrides.overrides:type_name -> flyteidl.admin.PluginOverride + 15, // 5: flyteidl.admin.WorkflowExecutionConfig.security_context:type_name -> flyteidl.core.SecurityContext + 16, // 6: flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config:type_name -> flyteidl.admin.RawOutputDataConfig + 17, // 7: flyteidl.admin.WorkflowExecutionConfig.labels:type_name -> flyteidl.admin.Labels + 18, // 8: flyteidl.admin.WorkflowExecutionConfig.annotations:type_name -> flyteidl.admin.Annotations + 19, // 9: flyteidl.admin.WorkflowExecutionConfig.interruptible:type_name -> google.protobuf.BoolValue + 20, // 10: flyteidl.admin.WorkflowExecutionConfig.envs:type_name -> flyteidl.admin.Envs + 3, // 11: flyteidl.admin.MatchingAttributes.task_resource_attributes:type_name -> flyteidl.admin.TaskResourceAttributes + 4, // 12: flyteidl.admin.MatchingAttributes.cluster_resource_attributes:type_name -> flyteidl.admin.ClusterResourceAttributes + 5, // 13: flyteidl.admin.MatchingAttributes.execution_queue_attributes:type_name -> flyteidl.admin.ExecutionQueueAttributes + 6, // 14: flyteidl.admin.MatchingAttributes.execution_cluster_label:type_name -> flyteidl.admin.ExecutionClusterLabel + 21, // 15: flyteidl.admin.MatchingAttributes.quality_of_service:type_name -> flyteidl.core.QualityOfService + 8, // 16: flyteidl.admin.MatchingAttributes.plugin_overrides:type_name -> flyteidl.admin.PluginOverrides + 9, // 17: flyteidl.admin.MatchingAttributes.workflow_execution_config:type_name -> flyteidl.admin.WorkflowExecutionConfig + 22, // 18: flyteidl.admin.MatchingAttributes.cluster_assignment:type_name -> flyteidl.admin.ClusterAssignment + 10, // 19: flyteidl.admin.MatchableAttributesConfiguration.attributes:type_name -> flyteidl.admin.MatchingAttributes + 0, // 20: flyteidl.admin.ListMatchableAttributesRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 11, // 21: flyteidl.admin.ListMatchableAttributesResponse.configurations:type_name -> flyteidl.admin.MatchableAttributesConfiguration + 22, // [22:22] is the sub-list for method output_type + 22, // [22:22] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_matchable_resource_proto_init() } +func file_flyteidl_admin_matchable_resource_proto_init() { + if File_flyteidl_admin_matchable_resource_proto != nil { + return + } + file_flyteidl_admin_common_proto_init() + file_flyteidl_admin_cluster_assignment_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_matchable_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskResourceSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskResourceAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClusterResourceAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionQueueAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionClusterLabel); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PluginOverride); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PluginOverrides); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MatchingAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MatchableAttributesConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMatchableAttributesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListMatchableAttributesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_matchable_resource_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*MatchingAttributes_TaskResourceAttributes)(nil), + (*MatchingAttributes_ClusterResourceAttributes)(nil), + (*MatchingAttributes_ExecutionQueueAttributes)(nil), + (*MatchingAttributes_ExecutionClusterLabel)(nil), + (*MatchingAttributes_QualityOfService)(nil), + (*MatchingAttributes_PluginOverrides)(nil), + (*MatchingAttributes_WorkflowExecutionConfig)(nil), + (*MatchingAttributes_ClusterAssignment)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_matchable_resource_proto_rawDesc, + NumEnums: 2, + NumMessages: 13, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_matchable_resource_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_matchable_resource_proto_depIdxs, + EnumInfos: file_flyteidl_admin_matchable_resource_proto_enumTypes, + MessageInfos: file_flyteidl_admin_matchable_resource_proto_msgTypes, + }.Build() + File_flyteidl_admin_matchable_resource_proto = out.File + file_flyteidl_admin_matchable_resource_proto_rawDesc = nil + file_flyteidl_admin_matchable_resource_proto_goTypes = nil + file_flyteidl_admin_matchable_resource_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go new file mode 100644 index 0000000000..b4d9cb8c89 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go @@ -0,0 +1,1663 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/node_execution.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// A message used to fetch a single node execution entity. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +type NodeExecutionGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uniquely identifies an individual node execution. + // +required + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *NodeExecutionGetRequest) Reset() { + *x = NodeExecutionGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionGetRequest) ProtoMessage() {} + +func (x *NodeExecutionGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionGetRequest.ProtoReflect.Descriptor instead. +func (*NodeExecutionGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{0} +} + +func (x *NodeExecutionGetRequest) GetId() *core.NodeExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Represents a request structure to retrieve a list of node execution entities. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +type NodeExecutionListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates the workflow execution to filter by. + // +required + WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Unique identifier of the parent node in the execution + // +optional + UniqueParentId string `protobuf:"bytes,6,opt,name=unique_parent_id,json=uniqueParentId,proto3" json:"unique_parent_id,omitempty"` +} + +func (x *NodeExecutionListRequest) Reset() { + *x = NodeExecutionListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionListRequest) ProtoMessage() {} + +func (x *NodeExecutionListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionListRequest.ProtoReflect.Descriptor instead. +func (*NodeExecutionListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{1} +} + +func (x *NodeExecutionListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.WorkflowExecutionId + } + return nil +} + +func (x *NodeExecutionListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *NodeExecutionListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *NodeExecutionListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *NodeExecutionListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +func (x *NodeExecutionListRequest) GetUniqueParentId() string { + if x != nil { + return x.UniqueParentId + } + return "" +} + +// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +// This can arise when a task yields a subworkflow. +type NodeExecutionForTaskListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates the node execution to filter by. + // +required + TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` +} + +func (x *NodeExecutionForTaskListRequest) Reset() { + *x = NodeExecutionForTaskListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionForTaskListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionForTaskListRequest) ProtoMessage() {} + +func (x *NodeExecutionForTaskListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionForTaskListRequest.ProtoReflect.Descriptor instead. +func (*NodeExecutionForTaskListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{2} +} + +func (x *NodeExecutionForTaskListRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { + if x != nil { + return x.TaskExecutionId + } + return nil +} + +func (x *NodeExecutionForTaskListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *NodeExecutionForTaskListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *NodeExecutionForTaskListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *NodeExecutionForTaskListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +// Encapsulates all details for a single node execution entity. +// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +// sub-workflow, or even a separate child-workflow execution. +// The same task can be called repeatedly in a single workflow but each node is unique. +type NodeExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Uniquely identifies an individual node execution. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Computed results associated with this node execution. + Closure *NodeExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + // Metadata for Node Execution + Metadata *NodeExecutionMetaData `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *NodeExecution) Reset() { + *x = NodeExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecution) ProtoMessage() {} + +func (x *NodeExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecution.ProtoReflect.Descriptor instead. +func (*NodeExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{3} +} + +func (x *NodeExecution) GetId() *core.NodeExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *NodeExecution) GetInputUri() string { + if x != nil { + return x.InputUri + } + return "" +} + +func (x *NodeExecution) GetClosure() *NodeExecutionClosure { + if x != nil { + return x.Closure + } + return nil +} + +func (x *NodeExecution) GetMetadata() *NodeExecutionMetaData { + if x != nil { + return x.Metadata + } + return nil +} + +// Represents additional attributes related to a Node Execution +type NodeExecutionMetaData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Node executions are grouped depending on retries of the parent + // Retry group is unique within the context of a parent node. + RetryGroup string `protobuf:"bytes,1,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` + // Boolean flag indicating if the node has child nodes under it + // This can be true when a node contains a dynamic workflow which then produces + // child nodes. + IsParentNode bool `protobuf:"varint,2,opt,name=is_parent_node,json=isParentNode,proto3" json:"is_parent_node,omitempty"` + // Node id of the node in the original workflow + // This maps to value of WorkflowTemplate.nodes[X].id + SpecNodeId string `protobuf:"bytes,3,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` + // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. + // This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + IsDynamic bool `protobuf:"varint,4,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` + // Boolean flag indicating if the node is an array node. This is intended to uniquely identify + // array nodes from other nodes which can have is_parent_node as true. + IsArray bool `protobuf:"varint,5,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` +} + +func (x *NodeExecutionMetaData) Reset() { + *x = NodeExecutionMetaData{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionMetaData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionMetaData) ProtoMessage() {} + +func (x *NodeExecutionMetaData) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionMetaData.ProtoReflect.Descriptor instead. +func (*NodeExecutionMetaData) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{4} +} + +func (x *NodeExecutionMetaData) GetRetryGroup() string { + if x != nil { + return x.RetryGroup + } + return "" +} + +func (x *NodeExecutionMetaData) GetIsParentNode() bool { + if x != nil { + return x.IsParentNode + } + return false +} + +func (x *NodeExecutionMetaData) GetSpecNodeId() string { + if x != nil { + return x.SpecNodeId + } + return "" +} + +func (x *NodeExecutionMetaData) GetIsDynamic() bool { + if x != nil { + return x.IsDynamic + } + return false +} + +func (x *NodeExecutionMetaData) GetIsArray() bool { + if x != nil { + return x.IsArray + } + return false +} + +// Request structure to retrieve a list of node execution entities. +// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +type NodeExecutionList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeExecutions []*NodeExecution `protobuf:"bytes,1,rep,name=node_executions,json=nodeExecutions,proto3" json:"node_executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *NodeExecutionList) Reset() { + *x = NodeExecutionList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionList) ProtoMessage() {} + +func (x *NodeExecutionList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionList.ProtoReflect.Descriptor instead. +func (*NodeExecutionList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{5} +} + +func (x *NodeExecutionList) GetNodeExecutions() []*NodeExecution { + if x != nil { + return x.NodeExecutions + } + return nil +} + +func (x *NodeExecutionList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Container for node execution details and results. +type NodeExecutionClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Only a node in a terminal state will have a non-empty output_result. + // + // Types that are assignable to OutputResult: + // + // *NodeExecutionClosure_OutputUri + // *NodeExecutionClosure_Error + // *NodeExecutionClosure_OutputData + OutputResult isNodeExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // The last recorded phase for this node execution. + Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` + // Time at which the node execution began running. + StartedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the node execution spent running. + Duration *durationpb.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` + // Time at which the node execution was created. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the node execution was last updated. + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Store metadata for what the node launched. + // for ex: if this is a workflow node, we store information for the launched workflow. + // + // Types that are assignable to TargetMetadata: + // + // *NodeExecutionClosure_WorkflowNodeMetadata + // *NodeExecutionClosure_TaskNodeMetadata + TargetMetadata isNodeExecutionClosure_TargetMetadata `protobuf_oneof:"target_metadata"` + // String location uniquely identifying where the deck HTML file is. + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + DeckUri string `protobuf:"bytes,11,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required + // to correctly recover partially completed executions where the subworkflow has already been compiled. + DynamicJobSpecUri string `protobuf:"bytes,12,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` +} + +func (x *NodeExecutionClosure) Reset() { + *x = NodeExecutionClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionClosure) ProtoMessage() {} + +func (x *NodeExecutionClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionClosure.ProtoReflect.Descriptor instead. +func (*NodeExecutionClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{6} +} + +func (m *NodeExecutionClosure) GetOutputResult() isNodeExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. +func (x *NodeExecutionClosure) GetOutputUri() string { + if x, ok := x.GetOutputResult().(*NodeExecutionClosure_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (x *NodeExecutionClosure) GetError() *core.ExecutionError { + if x, ok := x.GetOutputResult().(*NodeExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. +func (x *NodeExecutionClosure) GetOutputData() *core.LiteralMap { + if x, ok := x.GetOutputResult().(*NodeExecutionClosure_OutputData); ok { + return x.OutputData + } + return nil +} + +func (x *NodeExecutionClosure) GetPhase() core.NodeExecution_Phase { + if x != nil { + return x.Phase + } + return core.NodeExecution_Phase(0) +} + +func (x *NodeExecutionClosure) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.StartedAt + } + return nil +} + +func (x *NodeExecutionClosure) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *NodeExecutionClosure) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *NodeExecutionClosure) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (m *NodeExecutionClosure) GetTargetMetadata() isNodeExecutionClosure_TargetMetadata { + if m != nil { + return m.TargetMetadata + } + return nil +} + +func (x *NodeExecutionClosure) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { + if x, ok := x.GetTargetMetadata().(*NodeExecutionClosure_WorkflowNodeMetadata); ok { + return x.WorkflowNodeMetadata + } + return nil +} + +func (x *NodeExecutionClosure) GetTaskNodeMetadata() *TaskNodeMetadata { + if x, ok := x.GetTargetMetadata().(*NodeExecutionClosure_TaskNodeMetadata); ok { + return x.TaskNodeMetadata + } + return nil +} + +func (x *NodeExecutionClosure) GetDeckUri() string { + if x != nil { + return x.DeckUri + } + return "" +} + +func (x *NodeExecutionClosure) GetDynamicJobSpecUri() string { + if x != nil { + return x.DynamicJobSpecUri + } + return "" +} + +type isNodeExecutionClosure_OutputResult interface { + isNodeExecutionClosure_OutputResult() +} + +type NodeExecutionClosure_OutputUri struct { + // Links to a remotely stored, serialized core.LiteralMap of node execution outputs. + // DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. + OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type NodeExecutionClosure_Error struct { + // Error information for the Node + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type NodeExecutionClosure_OutputData struct { + // Raw output data produced by this node execution. + // DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. + OutputData *core.LiteralMap `protobuf:"bytes,10,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*NodeExecutionClosure_OutputUri) isNodeExecutionClosure_OutputResult() {} + +func (*NodeExecutionClosure_Error) isNodeExecutionClosure_OutputResult() {} + +func (*NodeExecutionClosure_OutputData) isNodeExecutionClosure_OutputResult() {} + +type isNodeExecutionClosure_TargetMetadata interface { + isNodeExecutionClosure_TargetMetadata() +} + +type NodeExecutionClosure_WorkflowNodeMetadata struct { + WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` +} + +type NodeExecutionClosure_TaskNodeMetadata struct { + TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,9,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` +} + +func (*NodeExecutionClosure_WorkflowNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} + +func (*NodeExecutionClosure_TaskNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} + +// Metadata for a WorkflowNode +type WorkflowNodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The identifier for a workflow execution launched by a node. + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=executionId,proto3" json:"executionId,omitempty"` +} + +func (x *WorkflowNodeMetadata) Reset() { + *x = WorkflowNodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowNodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowNodeMetadata) ProtoMessage() {} + +func (x *WorkflowNodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowNodeMetadata.ProtoReflect.Descriptor instead. +func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{7} +} + +func (x *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.ExecutionId + } + return nil +} + +// Metadata for the case in which the node is a TaskNode +type TaskNodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Captures the status of caching for this execution. + CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` + // This structure carries the catalog artifact information + CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` + // The latest checkpoint location + CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` +} + +func (x *TaskNodeMetadata) Reset() { + *x = TaskNodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskNodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskNodeMetadata) ProtoMessage() {} + +func (x *TaskNodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskNodeMetadata.ProtoReflect.Descriptor instead. +func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{8} +} + +func (x *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { + if x != nil { + return x.CacheStatus + } + return core.CatalogCacheStatus(0) +} + +func (x *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { + if x != nil { + return x.CatalogKey + } + return nil +} + +func (x *TaskNodeMetadata) GetCheckpointUri() string { + if x != nil { + return x.CheckpointUri + } + return "" +} + +// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. +type DynamicWorkflowNodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the compiled representation of the embedded dynamic workflow. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + // required to correctly recover partially completed executions where the subworkflow has already been compiled. + DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` +} + +func (x *DynamicWorkflowNodeMetadata) Reset() { + *x = DynamicWorkflowNodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicWorkflowNodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} + +func (x *DynamicWorkflowNodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicWorkflowNodeMetadata.ProtoReflect.Descriptor instead. +func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{9} +} + +func (x *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if x != nil { + return x.CompiledWorkflow + } + return nil +} + +func (x *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { + if x != nil { + return x.DynamicJobSpecUri + } + return "" +} + +// Request structure to fetch inputs and output for a node execution. +// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` +type NodeExecutionGetDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The identifier of the node execution for which to fetch inputs and outputs. + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *NodeExecutionGetDataRequest) Reset() { + *x = NodeExecutionGetDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionGetDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionGetDataRequest) ProtoMessage() {} + +func (x *NodeExecutionGetDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionGetDataRequest.ProtoReflect.Descriptor instead. +func (*NodeExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{10} +} + +func (x *NodeExecutionGetDataRequest) GetId() *core.NodeExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +type NodeExecutionGetDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Signed url to fetch a core.LiteralMap of node execution inputs. + // Deprecated: Please use full_inputs instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. + Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of node execution outputs. + // Deprecated: Please use full_outputs instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. + Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` + // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` + FlyteUrls *FlyteURLs `protobuf:"bytes,17,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` +} + +func (x *NodeExecutionGetDataResponse) Reset() { + *x = NodeExecutionGetDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionGetDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionGetDataResponse) ProtoMessage() {} + +func (x *NodeExecutionGetDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionGetDataResponse.ProtoReflect.Descriptor instead. +func (*NodeExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{11} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. +func (x *NodeExecutionGetDataResponse) GetInputs() *UrlBlob { + if x != nil { + return x.Inputs + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/node_execution.proto. +func (x *NodeExecutionGetDataResponse) GetOutputs() *UrlBlob { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *NodeExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { + if x != nil { + return x.FullInputs + } + return nil +} + +func (x *NodeExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { + if x != nil { + return x.FullOutputs + } + return nil +} + +func (x *NodeExecutionGetDataResponse) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { + if x != nil { + return x.DynamicWorkflow + } + return nil +} + +func (x *NodeExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { + if x != nil { + return x.FlyteUrls + } + return nil +} + +type GetDynamicNodeWorkflowRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *GetDynamicNodeWorkflowRequest) Reset() { + *x = GetDynamicNodeWorkflowRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDynamicNodeWorkflowRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDynamicNodeWorkflowRequest) ProtoMessage() {} + +func (x *GetDynamicNodeWorkflowRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDynamicNodeWorkflowRequest.ProtoReflect.Descriptor instead. +func (*GetDynamicNodeWorkflowRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{12} +} + +func (x *GetDynamicNodeWorkflowRequest) GetId() *core.NodeExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +type DynamicNodeWorkflowResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` +} + +func (x *DynamicNodeWorkflowResponse) Reset() { + *x = DynamicNodeWorkflowResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicNodeWorkflowResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicNodeWorkflowResponse) ProtoMessage() {} + +func (x *DynamicNodeWorkflowResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_node_execution_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicNodeWorkflowResponse.ProtoReflect.Descriptor instead. +func (*DynamicNodeWorkflowResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_node_execution_proto_rawDescGZIP(), []int{13} +} + +func (x *DynamicNodeWorkflowResponse) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if x != nil { + return x.CompiledWorkflow + } + return nil +} + +var File_flyteidl_admin_node_execution_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_node_execution_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x17, 0x4e, + 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x99, + 0x02, 0x0a, 0x18, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x15, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, + 0x12, 0x28, 0x0a, 0x10, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x6e, 0x69, 0x71, + 0x75, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xea, 0x01, 0x0a, 0x1f, 0x4e, + 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x54, + 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, + 0x0a, 0x11, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x0f, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, + 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, + 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, + 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x22, 0xe7, 0x01, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x3e, + 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, + 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x41, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x22, 0xba, 0x01, 0x0a, 0x15, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x72, + 0x65, 0x74, 0x72, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x0a, 0x0e, + 0x69, 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x22, 0x71, + 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6e, 0x6f, 0x64, + 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0xf6, 0x05, 0x0a, 0x14, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, + 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, + 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, + 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x35, 0x0a, + 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x5c, 0x0a, 0x16, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x48, 0x01, 0x52, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x01, 0x52, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, + 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, + 0x63, 0x6b, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, + 0x63, 0x6b, 0x55, 0x72, 0x69, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x53, + 0x70, 0x65, 0x63, 0x55, 0x72, 0x69, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x64, 0x0a, 0x14, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x4c, 0x0a, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x22, 0xc0, 0x01, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, + 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3f, 0x0a, 0x0b, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x55, 0x72, 0x69, 0x22, 0xce, 0x01, 0x0a, 0x1b, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x53, + 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, + 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6a, + 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, + 0x63, 0x55, 0x72, 0x69, 0x22, 0x55, 0x0a, 0x1b, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x96, 0x03, 0x0a, 0x1c, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, + 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, + 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x73, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x66, 0x75, 0x6c, 0x6c, + 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0a, 0x66, 0x75, 0x6c, 0x6c, 0x49, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x73, 0x12, 0x56, 0x0a, 0x10, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x79, + 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x64, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x38, 0x0a, 0x0a, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x09, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x55, 0x72, 0x6c, 0x73, 0x22, 0x57, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, + 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x72, 0x0a, + 0x1b, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x11, + 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, + 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x42, 0xbe, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x12, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, + 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_node_execution_proto_rawDescOnce sync.Once + file_flyteidl_admin_node_execution_proto_rawDescData = file_flyteidl_admin_node_execution_proto_rawDesc +) + +func file_flyteidl_admin_node_execution_proto_rawDescGZIP() []byte { + file_flyteidl_admin_node_execution_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_node_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_node_execution_proto_rawDescData) + }) + return file_flyteidl_admin_node_execution_proto_rawDescData +} + +var file_flyteidl_admin_node_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_flyteidl_admin_node_execution_proto_goTypes = []interface{}{ + (*NodeExecutionGetRequest)(nil), // 0: flyteidl.admin.NodeExecutionGetRequest + (*NodeExecutionListRequest)(nil), // 1: flyteidl.admin.NodeExecutionListRequest + (*NodeExecutionForTaskListRequest)(nil), // 2: flyteidl.admin.NodeExecutionForTaskListRequest + (*NodeExecution)(nil), // 3: flyteidl.admin.NodeExecution + (*NodeExecutionMetaData)(nil), // 4: flyteidl.admin.NodeExecutionMetaData + (*NodeExecutionList)(nil), // 5: flyteidl.admin.NodeExecutionList + (*NodeExecutionClosure)(nil), // 6: flyteidl.admin.NodeExecutionClosure + (*WorkflowNodeMetadata)(nil), // 7: flyteidl.admin.WorkflowNodeMetadata + (*TaskNodeMetadata)(nil), // 8: flyteidl.admin.TaskNodeMetadata + (*DynamicWorkflowNodeMetadata)(nil), // 9: flyteidl.admin.DynamicWorkflowNodeMetadata + (*NodeExecutionGetDataRequest)(nil), // 10: flyteidl.admin.NodeExecutionGetDataRequest + (*NodeExecutionGetDataResponse)(nil), // 11: flyteidl.admin.NodeExecutionGetDataResponse + (*GetDynamicNodeWorkflowRequest)(nil), // 12: flyteidl.admin.GetDynamicNodeWorkflowRequest + (*DynamicNodeWorkflowResponse)(nil), // 13: flyteidl.admin.DynamicNodeWorkflowResponse + (*core.NodeExecutionIdentifier)(nil), // 14: flyteidl.core.NodeExecutionIdentifier + (*core.WorkflowExecutionIdentifier)(nil), // 15: flyteidl.core.WorkflowExecutionIdentifier + (*Sort)(nil), // 16: flyteidl.admin.Sort + (*core.TaskExecutionIdentifier)(nil), // 17: flyteidl.core.TaskExecutionIdentifier + (*core.ExecutionError)(nil), // 18: flyteidl.core.ExecutionError + (*core.LiteralMap)(nil), // 19: flyteidl.core.LiteralMap + (core.NodeExecution_Phase)(0), // 20: flyteidl.core.NodeExecution.Phase + (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 22: google.protobuf.Duration + (core.CatalogCacheStatus)(0), // 23: flyteidl.core.CatalogCacheStatus + (*core.CatalogMetadata)(nil), // 24: flyteidl.core.CatalogMetadata + (*core.Identifier)(nil), // 25: flyteidl.core.Identifier + (*core.CompiledWorkflowClosure)(nil), // 26: flyteidl.core.CompiledWorkflowClosure + (*UrlBlob)(nil), // 27: flyteidl.admin.UrlBlob + (*FlyteURLs)(nil), // 28: flyteidl.admin.FlyteURLs +} +var file_flyteidl_admin_node_execution_proto_depIdxs = []int32{ + 14, // 0: flyteidl.admin.NodeExecutionGetRequest.id:type_name -> flyteidl.core.NodeExecutionIdentifier + 15, // 1: flyteidl.admin.NodeExecutionListRequest.workflow_execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 16, // 2: flyteidl.admin.NodeExecutionListRequest.sort_by:type_name -> flyteidl.admin.Sort + 17, // 3: flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id:type_name -> flyteidl.core.TaskExecutionIdentifier + 16, // 4: flyteidl.admin.NodeExecutionForTaskListRequest.sort_by:type_name -> flyteidl.admin.Sort + 14, // 5: flyteidl.admin.NodeExecution.id:type_name -> flyteidl.core.NodeExecutionIdentifier + 6, // 6: flyteidl.admin.NodeExecution.closure:type_name -> flyteidl.admin.NodeExecutionClosure + 4, // 7: flyteidl.admin.NodeExecution.metadata:type_name -> flyteidl.admin.NodeExecutionMetaData + 3, // 8: flyteidl.admin.NodeExecutionList.node_executions:type_name -> flyteidl.admin.NodeExecution + 18, // 9: flyteidl.admin.NodeExecutionClosure.error:type_name -> flyteidl.core.ExecutionError + 19, // 10: flyteidl.admin.NodeExecutionClosure.output_data:type_name -> flyteidl.core.LiteralMap + 20, // 11: flyteidl.admin.NodeExecutionClosure.phase:type_name -> flyteidl.core.NodeExecution.Phase + 21, // 12: flyteidl.admin.NodeExecutionClosure.started_at:type_name -> google.protobuf.Timestamp + 22, // 13: flyteidl.admin.NodeExecutionClosure.duration:type_name -> google.protobuf.Duration + 21, // 14: flyteidl.admin.NodeExecutionClosure.created_at:type_name -> google.protobuf.Timestamp + 21, // 15: flyteidl.admin.NodeExecutionClosure.updated_at:type_name -> google.protobuf.Timestamp + 7, // 16: flyteidl.admin.NodeExecutionClosure.workflow_node_metadata:type_name -> flyteidl.admin.WorkflowNodeMetadata + 8, // 17: flyteidl.admin.NodeExecutionClosure.task_node_metadata:type_name -> flyteidl.admin.TaskNodeMetadata + 15, // 18: flyteidl.admin.WorkflowNodeMetadata.executionId:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 23, // 19: flyteidl.admin.TaskNodeMetadata.cache_status:type_name -> flyteidl.core.CatalogCacheStatus + 24, // 20: flyteidl.admin.TaskNodeMetadata.catalog_key:type_name -> flyteidl.core.CatalogMetadata + 25, // 21: flyteidl.admin.DynamicWorkflowNodeMetadata.id:type_name -> flyteidl.core.Identifier + 26, // 22: flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure + 14, // 23: flyteidl.admin.NodeExecutionGetDataRequest.id:type_name -> flyteidl.core.NodeExecutionIdentifier + 27, // 24: flyteidl.admin.NodeExecutionGetDataResponse.inputs:type_name -> flyteidl.admin.UrlBlob + 27, // 25: flyteidl.admin.NodeExecutionGetDataResponse.outputs:type_name -> flyteidl.admin.UrlBlob + 19, // 26: flyteidl.admin.NodeExecutionGetDataResponse.full_inputs:type_name -> flyteidl.core.LiteralMap + 19, // 27: flyteidl.admin.NodeExecutionGetDataResponse.full_outputs:type_name -> flyteidl.core.LiteralMap + 9, // 28: flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow:type_name -> flyteidl.admin.DynamicWorkflowNodeMetadata + 28, // 29: flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls:type_name -> flyteidl.admin.FlyteURLs + 14, // 30: flyteidl.admin.GetDynamicNodeWorkflowRequest.id:type_name -> flyteidl.core.NodeExecutionIdentifier + 26, // 31: flyteidl.admin.DynamicNodeWorkflowResponse.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure + 32, // [32:32] is the sub-list for method output_type + 32, // [32:32] is the sub-list for method input_type + 32, // [32:32] is the sub-list for extension type_name + 32, // [32:32] is the sub-list for extension extendee + 0, // [0:32] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_node_execution_proto_init() } +func file_flyteidl_admin_node_execution_proto_init() { + if File_flyteidl_admin_node_execution_proto != nil { + return + } + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_node_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionForTaskListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionMetaData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowNodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskNodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicWorkflowNodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionGetDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionGetDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDynamicNodeWorkflowRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicNodeWorkflowResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_node_execution_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*NodeExecutionClosure_OutputUri)(nil), + (*NodeExecutionClosure_Error)(nil), + (*NodeExecutionClosure_OutputData)(nil), + (*NodeExecutionClosure_WorkflowNodeMetadata)(nil), + (*NodeExecutionClosure_TaskNodeMetadata)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_node_execution_proto_rawDesc, + NumEnums: 0, + NumMessages: 14, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_node_execution_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_node_execution_proto_depIdxs, + MessageInfos: file_flyteidl_admin_node_execution_proto_msgTypes, + }.Build() + File_flyteidl_admin_node_execution_proto = out.File + file_flyteidl_admin_node_execution_proto_rawDesc = nil + file_flyteidl_admin_node_execution_proto_goTypes = nil + file_flyteidl_admin_node_execution_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go new file mode 100644 index 0000000000..a31f660b11 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go @@ -0,0 +1,198 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/notification.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Represents the Email object that is sent to a publisher/subscriber +// to forward the notification. +// Note: This is internal to Admin and doesn't need to be exposed to other components. +type EmailMessage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The list of email addresses to receive an email with the content populated in the other fields. + // Currently, each email recipient will receive its own email. + // This populates the TO field. + RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` + // The email of the sender. + // This populates the FROM field. + SenderEmail string `protobuf:"bytes,2,opt,name=sender_email,json=senderEmail,proto3" json:"sender_email,omitempty"` + // The content of the subject line. + // This populates the SUBJECT field. + SubjectLine string `protobuf:"bytes,3,opt,name=subject_line,json=subjectLine,proto3" json:"subject_line,omitempty"` + // The content of the email body. + // This populates the BODY field. + Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` +} + +func (x *EmailMessage) Reset() { + *x = EmailMessage{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_notification_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EmailMessage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EmailMessage) ProtoMessage() {} + +func (x *EmailMessage) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_notification_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EmailMessage.ProtoReflect.Descriptor instead. +func (*EmailMessage) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_notification_proto_rawDescGZIP(), []int{0} +} + +func (x *EmailMessage) GetRecipientsEmail() []string { + if x != nil { + return x.RecipientsEmail + } + return nil +} + +func (x *EmailMessage) GetSenderEmail() string { + if x != nil { + return x.SenderEmail + } + return "" +} + +func (x *EmailMessage) GetSubjectLine() string { + if x != nil { + return x.SubjectLine + } + return "" +} + +func (x *EmailMessage) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +var File_flyteidl_admin_notification_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_notification_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x0c, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, + 0x74, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, + 0x72, 0x65, 0x63, 0x69, 0x70, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, + 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x45, 0x6d, 0x61, + 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6c, 0x69, + 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0xbd, 0x01, 0x0a, 0x12, 0x63, 0x6f, + 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x42, 0x11, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_flyteidl_admin_notification_proto_rawDescOnce sync.Once + file_flyteidl_admin_notification_proto_rawDescData = file_flyteidl_admin_notification_proto_rawDesc +) + +func file_flyteidl_admin_notification_proto_rawDescGZIP() []byte { + file_flyteidl_admin_notification_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_notification_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_notification_proto_rawDescData) + }) + return file_flyteidl_admin_notification_proto_rawDescData +} + +var file_flyteidl_admin_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_admin_notification_proto_goTypes = []interface{}{ + (*EmailMessage)(nil), // 0: flyteidl.admin.EmailMessage +} +var file_flyteidl_admin_notification_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_notification_proto_init() } +func file_flyteidl_admin_notification_proto_init() { + if File_flyteidl_admin_notification_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_notification_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EmailMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_notification_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_notification_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_notification_proto_depIdxs, + MessageInfos: file_flyteidl_admin_notification_proto_msgTypes, + }.Build() + File_flyteidl_admin_notification_proto = out.File + file_flyteidl_admin_notification_proto_rawDesc = nil + file_flyteidl_admin_notification_proto_goTypes = nil + file_flyteidl_admin_notification_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go new file mode 100644 index 0000000000..e8a4a70689 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go @@ -0,0 +1,735 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/project.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The state of the project is used to control its visibility in the UI and validity. +type Project_ProjectState int32 + +const ( + // By default, all projects are considered active. + Project_ACTIVE Project_ProjectState = 0 + // Archived projects are no longer visible in the UI and no longer valid. + Project_ARCHIVED Project_ProjectState = 1 + // System generated projects that aren't explicitly created or managed by a user. + Project_SYSTEM_GENERATED Project_ProjectState = 2 +) + +// Enum value maps for Project_ProjectState. +var ( + Project_ProjectState_name = map[int32]string{ + 0: "ACTIVE", + 1: "ARCHIVED", + 2: "SYSTEM_GENERATED", + } + Project_ProjectState_value = map[string]int32{ + "ACTIVE": 0, + "ARCHIVED": 1, + "SYSTEM_GENERATED": 2, + } +) + +func (x Project_ProjectState) Enum() *Project_ProjectState { + p := new(Project_ProjectState) + *p = x + return p +} + +func (x Project_ProjectState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Project_ProjectState) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_project_proto_enumTypes[0].Descriptor() +} + +func (Project_ProjectState) Type() protoreflect.EnumType { + return &file_flyteidl_admin_project_proto_enumTypes[0] +} + +func (x Project_ProjectState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Project_ProjectState.Descriptor instead. +func (Project_ProjectState) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{1, 0} +} + +// Namespace within a project commonly used to differentiate between different service instances. +// e.g. "production", "development", etc. +type Domain struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Globally unique domain name. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Display name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *Domain) Reset() { + *x = Domain{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Domain) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Domain) ProtoMessage() {} + +func (x *Domain) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Domain.ProtoReflect.Descriptor instead. +func (*Domain) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{0} +} + +func (x *Domain) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Domain) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Top-level namespace used to classify different entities like workflows and executions. +type Project struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Globally unique project name. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Display name. + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Domains []*Domain `protobuf:"bytes,3,rep,name=domains,proto3" json:"domains,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + // Leverage Labels from flyteidl.admin.common.proto to + // tag projects with ownership information. + Labels *Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` + State Project_ProjectState `protobuf:"varint,6,opt,name=state,proto3,enum=flyteidl.admin.Project_ProjectState" json:"state,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,7,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *Project) Reset() { + *x = Project{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Project) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Project) ProtoMessage() {} + +func (x *Project) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Project.ProtoReflect.Descriptor instead. +func (*Project) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{1} +} + +func (x *Project) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Project) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Project) GetDomains() []*Domain { + if x != nil { + return x.Domains + } + return nil +} + +func (x *Project) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Project) GetLabels() *Labels { + if x != nil { + return x.Labels + } + return nil +} + +func (x *Project) GetState() Project_ProjectState { + if x != nil { + return x.State + } + return Project_ACTIVE +} + +func (x *Project) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Represents a list of projects. +// See :ref:`ref_flyteidl.admin.Project` for more details +type Projects struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *Projects) Reset() { + *x = Projects{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Projects) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Projects) ProtoMessage() {} + +func (x *Projects) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Projects.ProtoReflect.Descriptor instead. +func (*Projects) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{2} +} + +func (x *Projects) GetProjects() []*Project { + if x != nil { + return x.Projects + } + return nil +} + +func (x *Projects) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Request to retrieve a list of projects matching specified filters. +// See :ref:`ref_flyteidl.admin.Project` for more details +type ProjectListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates the number of projects to be returned. + // +required + Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, this server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,3,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,4,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` + // Optional, org filter applied to list project requests. + Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectListRequest) Reset() { + *x = ProjectListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectListRequest) ProtoMessage() {} + +func (x *ProjectListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectListRequest.ProtoReflect.Descriptor instead. +func (*ProjectListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{3} +} + +func (x *ProjectListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *ProjectListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *ProjectListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *ProjectListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +func (x *ProjectListRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Adds a new user-project within the Flyte deployment. +// See :ref:`ref_flyteidl.admin.Project` for more details +type ProjectRegisterRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` +} + +func (x *ProjectRegisterRequest) Reset() { + *x = ProjectRegisterRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectRegisterRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectRegisterRequest) ProtoMessage() {} + +func (x *ProjectRegisterRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectRegisterRequest.ProtoReflect.Descriptor instead. +func (*ProjectRegisterRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{4} +} + +func (x *ProjectRegisterRequest) GetProject() *Project { + if x != nil { + return x.Project + } + return nil +} + +// Purposefully empty, may be updated in the future. +type ProjectRegisterResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectRegisterResponse) Reset() { + *x = ProjectRegisterResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectRegisterResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectRegisterResponse) ProtoMessage() {} + +func (x *ProjectRegisterResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectRegisterResponse.ProtoReflect.Descriptor instead. +func (*ProjectRegisterResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{5} +} + +// Purposefully empty, may be updated in the future. +type ProjectUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectUpdateResponse) Reset() { + *x = ProjectUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectUpdateResponse) ProtoMessage() {} + +func (x *ProjectUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectUpdateResponse.ProtoReflect.Descriptor instead. +func (*ProjectUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_proto_rawDescGZIP(), []int{6} +} + +var File_flyteidl_admin_project_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_project_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x06, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xbf, 0x02, 0x0a, 0x07, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3a, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x3e, 0x0a, 0x0c, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x41, + 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x52, 0x43, 0x48, 0x49, + 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x5f, + 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x22, 0x55, 0x0a, 0x08, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, + 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, + 0x22, 0x4b, 0x0a, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x19, 0x0a, + 0x17, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0xb8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_project_proto_rawDescOnce sync.Once + file_flyteidl_admin_project_proto_rawDescData = file_flyteidl_admin_project_proto_rawDesc +) + +func file_flyteidl_admin_project_proto_rawDescGZIP() []byte { + file_flyteidl_admin_project_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_project_proto_rawDescData) + }) + return file_flyteidl_admin_project_proto_rawDescData +} + +var file_flyteidl_admin_project_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_admin_project_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_admin_project_proto_goTypes = []interface{}{ + (Project_ProjectState)(0), // 0: flyteidl.admin.Project.ProjectState + (*Domain)(nil), // 1: flyteidl.admin.Domain + (*Project)(nil), // 2: flyteidl.admin.Project + (*Projects)(nil), // 3: flyteidl.admin.Projects + (*ProjectListRequest)(nil), // 4: flyteidl.admin.ProjectListRequest + (*ProjectRegisterRequest)(nil), // 5: flyteidl.admin.ProjectRegisterRequest + (*ProjectRegisterResponse)(nil), // 6: flyteidl.admin.ProjectRegisterResponse + (*ProjectUpdateResponse)(nil), // 7: flyteidl.admin.ProjectUpdateResponse + (*Labels)(nil), // 8: flyteidl.admin.Labels + (*Sort)(nil), // 9: flyteidl.admin.Sort +} +var file_flyteidl_admin_project_proto_depIdxs = []int32{ + 1, // 0: flyteidl.admin.Project.domains:type_name -> flyteidl.admin.Domain + 8, // 1: flyteidl.admin.Project.labels:type_name -> flyteidl.admin.Labels + 0, // 2: flyteidl.admin.Project.state:type_name -> flyteidl.admin.Project.ProjectState + 2, // 3: flyteidl.admin.Projects.projects:type_name -> flyteidl.admin.Project + 9, // 4: flyteidl.admin.ProjectListRequest.sort_by:type_name -> flyteidl.admin.Sort + 2, // 5: flyteidl.admin.ProjectRegisterRequest.project:type_name -> flyteidl.admin.Project + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_project_proto_init() } +func file_flyteidl_admin_project_proto_init() { + if File_flyteidl_admin_project_proto != nil { + return + } + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Domain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Project); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Projects); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectRegisterRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectRegisterResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_project_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_project_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_project_proto_depIdxs, + EnumInfos: file_flyteidl_admin_project_proto_enumTypes, + MessageInfos: file_flyteidl_admin_project_proto_msgTypes, + }.Build() + File_flyteidl_admin_project_proto = out.File + file_flyteidl_admin_project_proto_rawDesc = nil + file_flyteidl_admin_project_proto_goTypes = nil + file_flyteidl_admin_project_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go new file mode 100644 index 0000000000..3d9c12c3b0 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go @@ -0,0 +1,623 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/project_attributes.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a set of custom matching attributes at the project level. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id for which this set of attributes will be applied. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + MatchingAttributes *MatchingAttributes `protobuf:"bytes,2,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` + // Optional, org key applied to the project. + Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectAttributes) Reset() { + *x = ProjectAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributes) ProtoMessage() {} + +func (x *ProjectAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributes.ProtoReflect.Descriptor instead. +func (*ProjectAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{0} +} + +func (x *ProjectAttributes) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectAttributes) GetMatchingAttributes() *MatchingAttributes { + if x != nil { + return x.MatchingAttributes + } + return nil +} + +func (x *ProjectAttributes) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Sets custom attributes for a project +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *ProjectAttributesUpdateRequest) Reset() { + *x = ProjectAttributesUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributesUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributesUpdateRequest) ProtoMessage() {} + +func (x *ProjectAttributesUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributesUpdateRequest.ProtoReflect.Descriptor instead. +func (*ProjectAttributesUpdateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{1} +} + +func (x *ProjectAttributesUpdateRequest) GetAttributes() *ProjectAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +// Purposefully empty, may be populated in the future. +type ProjectAttributesUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectAttributesUpdateResponse) Reset() { + *x = ProjectAttributesUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributesUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributesUpdateResponse) ProtoMessage() {} + +func (x *ProjectAttributesUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributesUpdateResponse.ProtoReflect.Descriptor instead. +func (*ProjectAttributesUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{2} +} + +// Request to get an individual project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Which type of matchable attributes to return. + // +required + ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org key applied to the project. + Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectAttributesGetRequest) Reset() { + *x = ProjectAttributesGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributesGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributesGetRequest) ProtoMessage() {} + +func (x *ProjectAttributesGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributesGetRequest.ProtoReflect.Descriptor instead. +func (*ProjectAttributesGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{3} +} + +func (x *ProjectAttributesGetRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectAttributesGetRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *ProjectAttributesGetRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Response to get an individual project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesGetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *ProjectAttributesGetResponse) Reset() { + *x = ProjectAttributesGetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributesGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributesGetResponse) ProtoMessage() {} + +func (x *ProjectAttributesGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributesGetResponse.ProtoReflect.Descriptor instead. +func (*ProjectAttributesGetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{4} +} + +func (x *ProjectAttributesGetResponse) GetAttributes() *ProjectAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +// Request to delete a set matchable project level attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectAttributesDeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Which type of matchable attributes to delete. + // +required + ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org key applied to the project. + Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectAttributesDeleteRequest) Reset() { + *x = ProjectAttributesDeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributesDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributesDeleteRequest) ProtoMessage() {} + +func (x *ProjectAttributesDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributesDeleteRequest.ProtoReflect.Descriptor instead. +func (*ProjectAttributesDeleteRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{5} +} + +func (x *ProjectAttributesDeleteRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectAttributesDeleteRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *ProjectAttributesDeleteRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Purposefully empty, may be populated in the future. +type ProjectAttributesDeleteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectAttributesDeleteResponse) Reset() { + *x = ProjectAttributesDeleteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAttributesDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAttributesDeleteResponse) ProtoMessage() {} + +func (x *ProjectAttributesDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_attributes_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectAttributesDeleteResponse.ProtoReflect.Descriptor instead. +func (*ProjectAttributesDeleteResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_attributes_proto_rawDescGZIP(), []int{6} +} + +var File_flyteidl_admin_project_attributes_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_project_attributes_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x53, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x63, 0x0a, 0x1e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x21, + 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x91, 0x01, 0x0a, 0x1b, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x46, 0x0a, 0x0d, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x61, 0x0a, 0x1c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x94, 0x01, 0x0a, 0x1e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, + 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x6f, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, + 0x21, 0x0a, 0x1f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x42, 0xc2, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x16, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, + 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_project_attributes_proto_rawDescOnce sync.Once + file_flyteidl_admin_project_attributes_proto_rawDescData = file_flyteidl_admin_project_attributes_proto_rawDesc +) + +func file_flyteidl_admin_project_attributes_proto_rawDescGZIP() []byte { + file_flyteidl_admin_project_attributes_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_project_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_project_attributes_proto_rawDescData) + }) + return file_flyteidl_admin_project_attributes_proto_rawDescData +} + +var file_flyteidl_admin_project_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_admin_project_attributes_proto_goTypes = []interface{}{ + (*ProjectAttributes)(nil), // 0: flyteidl.admin.ProjectAttributes + (*ProjectAttributesUpdateRequest)(nil), // 1: flyteidl.admin.ProjectAttributesUpdateRequest + (*ProjectAttributesUpdateResponse)(nil), // 2: flyteidl.admin.ProjectAttributesUpdateResponse + (*ProjectAttributesGetRequest)(nil), // 3: flyteidl.admin.ProjectAttributesGetRequest + (*ProjectAttributesGetResponse)(nil), // 4: flyteidl.admin.ProjectAttributesGetResponse + (*ProjectAttributesDeleteRequest)(nil), // 5: flyteidl.admin.ProjectAttributesDeleteRequest + (*ProjectAttributesDeleteResponse)(nil), // 6: flyteidl.admin.ProjectAttributesDeleteResponse + (*MatchingAttributes)(nil), // 7: flyteidl.admin.MatchingAttributes + (MatchableResource)(0), // 8: flyteidl.admin.MatchableResource +} +var file_flyteidl_admin_project_attributes_proto_depIdxs = []int32{ + 7, // 0: flyteidl.admin.ProjectAttributes.matching_attributes:type_name -> flyteidl.admin.MatchingAttributes + 0, // 1: flyteidl.admin.ProjectAttributesUpdateRequest.attributes:type_name -> flyteidl.admin.ProjectAttributes + 8, // 2: flyteidl.admin.ProjectAttributesGetRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 0, // 3: flyteidl.admin.ProjectAttributesGetResponse.attributes:type_name -> flyteidl.admin.ProjectAttributes + 8, // 4: flyteidl.admin.ProjectAttributesDeleteRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_project_attributes_proto_init() } +func file_flyteidl_admin_project_attributes_proto_init() { + if File_flyteidl_admin_project_attributes_proto != nil { + return + } + file_flyteidl_admin_matchable_resource_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_project_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributesUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributesUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributesGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributesGetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributesDeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAttributesDeleteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_project_attributes_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_project_attributes_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_project_attributes_proto_depIdxs, + MessageInfos: file_flyteidl_admin_project_attributes_proto_msgTypes, + }.Build() + File_flyteidl_admin_project_attributes_proto = out.File + file_flyteidl_admin_project_attributes_proto_rawDesc = nil + file_flyteidl_admin_project_attributes_proto_goTypes = nil + file_flyteidl_admin_project_attributes_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go new file mode 100644 index 0000000000..fe3a9c34d7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go @@ -0,0 +1,661 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/project_domain_attributes.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a set of custom matching attributes which defines resource defaults for a project and domain. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id for which this set of attributes will be applied. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id for which this set of attributes will be applied. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + MatchingAttributes *MatchingAttributes `protobuf:"bytes,3,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` + // Optional, org key applied to the attributes. + Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectDomainAttributes) Reset() { + *x = ProjectDomainAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributes) ProtoMessage() {} + +func (x *ProjectDomainAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributes.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{0} +} + +func (x *ProjectDomainAttributes) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectDomainAttributes) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ProjectDomainAttributes) GetMatchingAttributes() *MatchingAttributes { + if x != nil { + return x.MatchingAttributes + } + return nil +} + +func (x *ProjectDomainAttributes) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Sets custom attributes for a project-domain combination. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *ProjectDomainAttributesUpdateRequest) Reset() { + *x = ProjectDomainAttributesUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributesUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributesUpdateRequest) ProtoMessage() {} + +func (x *ProjectDomainAttributesUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributesUpdateRequest.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributesUpdateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{1} +} + +func (x *ProjectDomainAttributesUpdateRequest) GetAttributes() *ProjectDomainAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +// Purposefully empty, may be populated in the future. +type ProjectDomainAttributesUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectDomainAttributesUpdateResponse) Reset() { + *x = ProjectDomainAttributesUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributesUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributesUpdateResponse) ProtoMessage() {} + +func (x *ProjectDomainAttributesUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributesUpdateResponse.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributesUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{2} +} + +// Request to get an individual project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Which type of matchable attributes to return. + // +required + ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org key applied to the attributes. + Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectDomainAttributesGetRequest) Reset() { + *x = ProjectDomainAttributesGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributesGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributesGetRequest) ProtoMessage() {} + +func (x *ProjectDomainAttributesGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributesGetRequest.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributesGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{3} +} + +func (x *ProjectDomainAttributesGetRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectDomainAttributesGetRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ProjectDomainAttributesGetRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *ProjectDomainAttributesGetRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Response to get an individual project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesGetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *ProjectDomainAttributesGetResponse) Reset() { + *x = ProjectDomainAttributesGetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributesGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributesGetResponse) ProtoMessage() {} + +func (x *ProjectDomainAttributesGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributesGetResponse.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributesGetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{4} +} + +func (x *ProjectDomainAttributesGetResponse) GetAttributes() *ProjectDomainAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +// Request to delete a set matchable project domain attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type ProjectDomainAttributesDeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Which type of matchable attributes to delete. + // +required + ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org key applied to the attributes. + Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ProjectDomainAttributesDeleteRequest) Reset() { + *x = ProjectDomainAttributesDeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributesDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributesDeleteRequest) ProtoMessage() {} + +func (x *ProjectDomainAttributesDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributesDeleteRequest.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributesDeleteRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{5} +} + +func (x *ProjectDomainAttributesDeleteRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ProjectDomainAttributesDeleteRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ProjectDomainAttributesDeleteRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *ProjectDomainAttributesDeleteRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Purposefully empty, may be populated in the future. +type ProjectDomainAttributesDeleteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectDomainAttributesDeleteResponse) Reset() { + *x = ProjectDomainAttributesDeleteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectDomainAttributesDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectDomainAttributesDeleteResponse) ProtoMessage() {} + +func (x *ProjectDomainAttributesDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_project_domain_attributes_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProjectDomainAttributesDeleteResponse.ProtoReflect.Descriptor instead. +func (*ProjectDomainAttributesDeleteResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP(), []int{6} +} + +var File_flyteidl_admin_project_domain_attributes_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_project_domain_attributes_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb2, 0x01, 0x0a, 0x17, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x53, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, + 0x6f, 0x72, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x6f, + 0x0a, 0x24, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, + 0x27, 0x0a, 0x25, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaf, 0x01, 0x0a, 0x21, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, + 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x6d, 0x0a, 0x22, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x24, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, + 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x6f, 0x72, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x27, + 0x0a, 0x25, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xc8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x1c, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, + 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_project_domain_attributes_proto_rawDescOnce sync.Once + file_flyteidl_admin_project_domain_attributes_proto_rawDescData = file_flyteidl_admin_project_domain_attributes_proto_rawDesc +) + +func file_flyteidl_admin_project_domain_attributes_proto_rawDescGZIP() []byte { + file_flyteidl_admin_project_domain_attributes_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_project_domain_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_project_domain_attributes_proto_rawDescData) + }) + return file_flyteidl_admin_project_domain_attributes_proto_rawDescData +} + +var file_flyteidl_admin_project_domain_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_admin_project_domain_attributes_proto_goTypes = []interface{}{ + (*ProjectDomainAttributes)(nil), // 0: flyteidl.admin.ProjectDomainAttributes + (*ProjectDomainAttributesUpdateRequest)(nil), // 1: flyteidl.admin.ProjectDomainAttributesUpdateRequest + (*ProjectDomainAttributesUpdateResponse)(nil), // 2: flyteidl.admin.ProjectDomainAttributesUpdateResponse + (*ProjectDomainAttributesGetRequest)(nil), // 3: flyteidl.admin.ProjectDomainAttributesGetRequest + (*ProjectDomainAttributesGetResponse)(nil), // 4: flyteidl.admin.ProjectDomainAttributesGetResponse + (*ProjectDomainAttributesDeleteRequest)(nil), // 5: flyteidl.admin.ProjectDomainAttributesDeleteRequest + (*ProjectDomainAttributesDeleteResponse)(nil), // 6: flyteidl.admin.ProjectDomainAttributesDeleteResponse + (*MatchingAttributes)(nil), // 7: flyteidl.admin.MatchingAttributes + (MatchableResource)(0), // 8: flyteidl.admin.MatchableResource +} +var file_flyteidl_admin_project_domain_attributes_proto_depIdxs = []int32{ + 7, // 0: flyteidl.admin.ProjectDomainAttributes.matching_attributes:type_name -> flyteidl.admin.MatchingAttributes + 0, // 1: flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes:type_name -> flyteidl.admin.ProjectDomainAttributes + 8, // 2: flyteidl.admin.ProjectDomainAttributesGetRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 0, // 3: flyteidl.admin.ProjectDomainAttributesGetResponse.attributes:type_name -> flyteidl.admin.ProjectDomainAttributes + 8, // 4: flyteidl.admin.ProjectDomainAttributesDeleteRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_project_domain_attributes_proto_init() } +func file_flyteidl_admin_project_domain_attributes_proto_init() { + if File_flyteidl_admin_project_domain_attributes_proto != nil { + return + } + file_flyteidl_admin_matchable_resource_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributesUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributesUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributesGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributesGetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributesDeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_project_domain_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectDomainAttributesDeleteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_project_domain_attributes_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_project_domain_attributes_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_project_domain_attributes_proto_depIdxs, + MessageInfos: file_flyteidl_admin_project_domain_attributes_proto_msgTypes, + }.Build() + File_flyteidl_admin_project_domain_attributes_proto = out.File + file_flyteidl_admin_project_domain_attributes_proto_rawDesc = nil + file_flyteidl_admin_project_domain_attributes_proto_goTypes = nil + file_flyteidl_admin_project_domain_attributes_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go new file mode 100644 index 0000000000..d3a99e7a89 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go @@ -0,0 +1,447 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/schedule.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Represents a frequency at which to run a schedule. +type FixedRateUnit int32 + +const ( + FixedRateUnit_MINUTE FixedRateUnit = 0 + FixedRateUnit_HOUR FixedRateUnit = 1 + FixedRateUnit_DAY FixedRateUnit = 2 +) + +// Enum value maps for FixedRateUnit. +var ( + FixedRateUnit_name = map[int32]string{ + 0: "MINUTE", + 1: "HOUR", + 2: "DAY", + } + FixedRateUnit_value = map[string]int32{ + "MINUTE": 0, + "HOUR": 1, + "DAY": 2, + } +) + +func (x FixedRateUnit) Enum() *FixedRateUnit { + p := new(FixedRateUnit) + *p = x + return p +} + +func (x FixedRateUnit) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (FixedRateUnit) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_admin_schedule_proto_enumTypes[0].Descriptor() +} + +func (FixedRateUnit) Type() protoreflect.EnumType { + return &file_flyteidl_admin_schedule_proto_enumTypes[0] +} + +func (x FixedRateUnit) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use FixedRateUnit.Descriptor instead. +func (FixedRateUnit) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{0} +} + +// Option for schedules run at a certain frequency e.g. every 2 minutes. +type FixedRate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` + Unit FixedRateUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=flyteidl.admin.FixedRateUnit" json:"unit,omitempty"` +} + +func (x *FixedRate) Reset() { + *x = FixedRate{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_schedule_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FixedRate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FixedRate) ProtoMessage() {} + +func (x *FixedRate) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_schedule_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FixedRate.ProtoReflect.Descriptor instead. +func (*FixedRate) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{0} +} + +func (x *FixedRate) GetValue() uint32 { + if x != nil { + return x.Value + } + return 0 +} + +func (x *FixedRate) GetUnit() FixedRateUnit { + if x != nil { + return x.Unit + } + return FixedRateUnit_MINUTE +} + +// Options for schedules to run according to a cron expression. +type CronSchedule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; + // Also supports nonstandard predefined scheduling definitions + // as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions + // except @reboot + Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` + // ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations + Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"` +} + +func (x *CronSchedule) Reset() { + *x = CronSchedule{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_schedule_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CronSchedule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CronSchedule) ProtoMessage() {} + +func (x *CronSchedule) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_schedule_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CronSchedule.ProtoReflect.Descriptor instead. +func (*CronSchedule) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{1} +} + +func (x *CronSchedule) GetSchedule() string { + if x != nil { + return x.Schedule + } + return "" +} + +func (x *CronSchedule) GetOffset() string { + if x != nil { + return x.Offset + } + return "" +} + +// Defines complete set of information required to trigger an execution on a schedule. +type Schedule struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to ScheduleExpression: + // + // *Schedule_CronExpression + // *Schedule_Rate + // *Schedule_CronSchedule + ScheduleExpression isSchedule_ScheduleExpression `protobuf_oneof:"ScheduleExpression"` + // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + KickoffTimeInputArg string `protobuf:"bytes,3,opt,name=kickoff_time_input_arg,json=kickoffTimeInputArg,proto3" json:"kickoff_time_input_arg,omitempty"` +} + +func (x *Schedule) Reset() { + *x = Schedule{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_schedule_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schedule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schedule) ProtoMessage() {} + +func (x *Schedule) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_schedule_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schedule.ProtoReflect.Descriptor instead. +func (*Schedule) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_schedule_proto_rawDescGZIP(), []int{2} +} + +func (m *Schedule) GetScheduleExpression() isSchedule_ScheduleExpression { + if m != nil { + return m.ScheduleExpression + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/schedule.proto. +func (x *Schedule) GetCronExpression() string { + if x, ok := x.GetScheduleExpression().(*Schedule_CronExpression); ok { + return x.CronExpression + } + return "" +} + +func (x *Schedule) GetRate() *FixedRate { + if x, ok := x.GetScheduleExpression().(*Schedule_Rate); ok { + return x.Rate + } + return nil +} + +func (x *Schedule) GetCronSchedule() *CronSchedule { + if x, ok := x.GetScheduleExpression().(*Schedule_CronSchedule); ok { + return x.CronSchedule + } + return nil +} + +func (x *Schedule) GetKickoffTimeInputArg() string { + if x != nil { + return x.KickoffTimeInputArg + } + return "" +} + +type isSchedule_ScheduleExpression interface { + isSchedule_ScheduleExpression() +} + +type Schedule_CronExpression struct { + // Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year + // e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * + // + // Deprecated: Marked as deprecated in flyteidl/admin/schedule.proto. + CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3,oneof"` +} + +type Schedule_Rate struct { + Rate *FixedRate `protobuf:"bytes,2,opt,name=rate,proto3,oneof"` +} + +type Schedule_CronSchedule struct { + CronSchedule *CronSchedule `protobuf:"bytes,4,opt,name=cron_schedule,json=cronSchedule,proto3,oneof"` +} + +func (*Schedule_CronExpression) isSchedule_ScheduleExpression() {} + +func (*Schedule_Rate) isSchedule_ScheduleExpression() {} + +func (*Schedule_CronSchedule) isSchedule_ScheduleExpression() {} + +var File_flyteidl_admin_schedule_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_schedule_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, + 0x54, 0x0a, 0x09, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x52, + 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x42, 0x0a, 0x0c, 0x43, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, + 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0xfa, 0x01, 0x0a, 0x08, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x0f, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x65, + 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x72, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, 0x61, 0x74, 0x65, 0x48, 0x00, + 0x52, 0x04, 0x72, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, + 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x63, + 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x16, 0x6b, + 0x69, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, 0x70, 0x75, + 0x74, 0x5f, 0x61, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6b, 0x69, 0x63, + 0x6b, 0x6f, 0x66, 0x66, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x41, 0x72, 0x67, + 0x42, 0x14, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2a, 0x2e, 0x0a, 0x0d, 0x46, 0x69, 0x78, 0x65, 0x64, 0x52, + 0x61, 0x74, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x49, 0x4e, 0x55, 0x54, + 0x45, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x4f, 0x55, 0x52, 0x10, 0x01, 0x12, 0x07, 0x0a, + 0x03, 0x44, 0x41, 0x59, 0x10, 0x02, 0x42, 0xb9, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0d, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, + 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, + 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_schedule_proto_rawDescOnce sync.Once + file_flyteidl_admin_schedule_proto_rawDescData = file_flyteidl_admin_schedule_proto_rawDesc +) + +func file_flyteidl_admin_schedule_proto_rawDescGZIP() []byte { + file_flyteidl_admin_schedule_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_schedule_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_schedule_proto_rawDescData) + }) + return file_flyteidl_admin_schedule_proto_rawDescData +} + +var file_flyteidl_admin_schedule_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_admin_schedule_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_flyteidl_admin_schedule_proto_goTypes = []interface{}{ + (FixedRateUnit)(0), // 0: flyteidl.admin.FixedRateUnit + (*FixedRate)(nil), // 1: flyteidl.admin.FixedRate + (*CronSchedule)(nil), // 2: flyteidl.admin.CronSchedule + (*Schedule)(nil), // 3: flyteidl.admin.Schedule +} +var file_flyteidl_admin_schedule_proto_depIdxs = []int32{ + 0, // 0: flyteidl.admin.FixedRate.unit:type_name -> flyteidl.admin.FixedRateUnit + 1, // 1: flyteidl.admin.Schedule.rate:type_name -> flyteidl.admin.FixedRate + 2, // 2: flyteidl.admin.Schedule.cron_schedule:type_name -> flyteidl.admin.CronSchedule + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_schedule_proto_init() } +func file_flyteidl_admin_schedule_proto_init() { + if File_flyteidl_admin_schedule_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_schedule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FixedRate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_schedule_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CronSchedule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_schedule_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schedule); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_schedule_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*Schedule_CronExpression)(nil), + (*Schedule_Rate)(nil), + (*Schedule_CronSchedule)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_schedule_proto_rawDesc, + NumEnums: 1, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_schedule_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_schedule_proto_depIdxs, + EnumInfos: file_flyteidl_admin_schedule_proto_enumTypes, + MessageInfos: file_flyteidl_admin_schedule_proto_msgTypes, + }.Build() + File_flyteidl_admin_schedule_proto = out.File + file_flyteidl_admin_schedule_proto_rawDesc = nil + file_flyteidl_admin_schedule_proto_goTypes = nil + file_flyteidl_admin_schedule_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go new file mode 100644 index 0000000000..c5e2b634df --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go @@ -0,0 +1,620 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/signal.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalGetOrCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique identifier for the requested signal. + Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A type denoting the required value type for this signal. + Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *SignalGetOrCreateRequest) Reset() { + *x = SignalGetOrCreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_signal_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalGetOrCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalGetOrCreateRequest) ProtoMessage() {} + +func (x *SignalGetOrCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_signal_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalGetOrCreateRequest.ProtoReflect.Descriptor instead. +func (*SignalGetOrCreateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{0} +} + +func (x *SignalGetOrCreateRequest) GetId() *core.SignalIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *SignalGetOrCreateRequest) GetType() *core.LiteralType { + if x != nil { + return x.Type + } + return nil +} + +// SignalListRequest represents a request structure to retrieve a collection of signals. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates the workflow execution to filter by. + // +required + WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` +} + +func (x *SignalListRequest) Reset() { + *x = SignalListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_signal_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalListRequest) ProtoMessage() {} + +func (x *SignalListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_signal_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalListRequest.ProtoReflect.Descriptor instead. +func (*SignalListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{1} +} + +func (x *SignalListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.WorkflowExecutionId + } + return nil +} + +func (x *SignalListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *SignalListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *SignalListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *SignalListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +// SignalList represents collection of signals along with the token of the last result. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of signals matching the input filters. + Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *SignalList) Reset() { + *x = SignalList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_signal_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalList) ProtoMessage() {} + +func (x *SignalList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_signal_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalList.ProtoReflect.Descriptor instead. +func (*SignalList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{2} +} + +func (x *SignalList) GetSignals() []*Signal { + if x != nil { + return x.Signals + } + return nil +} + +func (x *SignalList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal +// effetively satisfies the signal condition within a Flyte workflow. +// See :ref:`ref_flyteidl.admin.Signal` for more details +type SignalSetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique identifier for the requested signal. + Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The value of this signal, must match the defining signal type. + Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *SignalSetRequest) Reset() { + *x = SignalSetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_signal_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalSetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalSetRequest) ProtoMessage() {} + +func (x *SignalSetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_signal_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalSetRequest.ProtoReflect.Descriptor instead. +func (*SignalSetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{3} +} + +func (x *SignalSetRequest) GetId() *core.SignalIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *SignalSetRequest) GetValue() *core.Literal { + if x != nil { + return x.Value + } + return nil +} + +// SignalSetResponse represents a response structure if signal setting succeeds. +type SignalSetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SignalSetResponse) Reset() { + *x = SignalSetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_signal_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalSetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalSetResponse) ProtoMessage() {} + +func (x *SignalSetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_signal_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalSetResponse.ProtoReflect.Descriptor instead. +func (*SignalSetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{4} +} + +// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte +// signal. Signals may exist either without a set value (representing a signal request) or with a +// populated value (indicating the signal has been given). +type Signal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique identifier for the requested signal. + Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A type denoting the required value type for this signal. + Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // The value of the signal. This is only available if the signal has been "set" and must match + // the defined the type. + Value *core.Literal `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Signal) Reset() { + *x = Signal{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_signal_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Signal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Signal) ProtoMessage() {} + +func (x *Signal) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_signal_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Signal.ProtoReflect.Descriptor instead. +func (*Signal) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_signal_proto_rawDescGZIP(), []int{5} +} + +func (x *Signal) GetId() *core.SignalIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *Signal) GetType() *core.LiteralType { + if x != nil { + return x.Type + } + return nil +} + +func (x *Signal) GetValue() *core.Literal { + if x != nil { + return x.Value + } + return nil +} + +var File_flyteidl_admin_signal_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_signal_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x18, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, + 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x22, 0xe8, 0x01, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x15, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, + 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, + 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, 0x74, 0x42, 0x79, 0x22, 0x54, 0x0a, 0x0a, 0x53, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x71, 0x0a, 0x10, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x06, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0xb7, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0b, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, + 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_signal_proto_rawDescOnce sync.Once + file_flyteidl_admin_signal_proto_rawDescData = file_flyteidl_admin_signal_proto_rawDesc +) + +func file_flyteidl_admin_signal_proto_rawDescGZIP() []byte { + file_flyteidl_admin_signal_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_signal_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_signal_proto_rawDescData) + }) + return file_flyteidl_admin_signal_proto_rawDescData +} + +var file_flyteidl_admin_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_flyteidl_admin_signal_proto_goTypes = []interface{}{ + (*SignalGetOrCreateRequest)(nil), // 0: flyteidl.admin.SignalGetOrCreateRequest + (*SignalListRequest)(nil), // 1: flyteidl.admin.SignalListRequest + (*SignalList)(nil), // 2: flyteidl.admin.SignalList + (*SignalSetRequest)(nil), // 3: flyteidl.admin.SignalSetRequest + (*SignalSetResponse)(nil), // 4: flyteidl.admin.SignalSetResponse + (*Signal)(nil), // 5: flyteidl.admin.Signal + (*core.SignalIdentifier)(nil), // 6: flyteidl.core.SignalIdentifier + (*core.LiteralType)(nil), // 7: flyteidl.core.LiteralType + (*core.WorkflowExecutionIdentifier)(nil), // 8: flyteidl.core.WorkflowExecutionIdentifier + (*Sort)(nil), // 9: flyteidl.admin.Sort + (*core.Literal)(nil), // 10: flyteidl.core.Literal +} +var file_flyteidl_admin_signal_proto_depIdxs = []int32{ + 6, // 0: flyteidl.admin.SignalGetOrCreateRequest.id:type_name -> flyteidl.core.SignalIdentifier + 7, // 1: flyteidl.admin.SignalGetOrCreateRequest.type:type_name -> flyteidl.core.LiteralType + 8, // 2: flyteidl.admin.SignalListRequest.workflow_execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 9, // 3: flyteidl.admin.SignalListRequest.sort_by:type_name -> flyteidl.admin.Sort + 5, // 4: flyteidl.admin.SignalList.signals:type_name -> flyteidl.admin.Signal + 6, // 5: flyteidl.admin.SignalSetRequest.id:type_name -> flyteidl.core.SignalIdentifier + 10, // 6: flyteidl.admin.SignalSetRequest.value:type_name -> flyteidl.core.Literal + 6, // 7: flyteidl.admin.Signal.id:type_name -> flyteidl.core.SignalIdentifier + 7, // 8: flyteidl.admin.Signal.type:type_name -> flyteidl.core.LiteralType + 10, // 9: flyteidl.admin.Signal.value:type_name -> flyteidl.core.Literal + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_signal_proto_init() } +func file_flyteidl_admin_signal_proto_init() { + if File_flyteidl_admin_signal_proto != nil { + return + } + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_signal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalGetOrCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_signal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_signal_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_signal_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalSetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_signal_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalSetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_signal_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Signal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_signal_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_signal_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_signal_proto_depIdxs, + MessageInfos: file_flyteidl_admin_signal_proto_msgTypes, + }.Build() + File_flyteidl_admin_signal_proto = out.File + file_flyteidl_admin_signal_proto_rawDesc = nil + file_flyteidl_admin_signal_proto_goTypes = nil + file_flyteidl_admin_signal_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go new file mode 100644 index 0000000000..e2f74db35d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go @@ -0,0 +1,582 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/task.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Represents a request structure to create a revision of a task. +// See :ref:`ref_flyteidl.admin.Task` for more details +type TaskCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the task. + // +required + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the specification for task. + // +required + Spec *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` +} + +func (x *TaskCreateRequest) Reset() { + *x = TaskCreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskCreateRequest) ProtoMessage() {} + +func (x *TaskCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskCreateRequest.ProtoReflect.Descriptor instead. +func (*TaskCreateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{0} +} + +func (x *TaskCreateRequest) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *TaskCreateRequest) GetSpec() *TaskSpec { + if x != nil { + return x.Spec + } + return nil +} + +// Represents a response structure if task creation succeeds. +type TaskCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *TaskCreateResponse) Reset() { + *x = TaskCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskCreateResponse) ProtoMessage() {} + +func (x *TaskCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskCreateResponse.ProtoReflect.Descriptor instead. +func (*TaskCreateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{1} +} + +// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +// arranged to process workflow inputs and produce a deterministic set of outputs. +// Tasks can come in many varieties tuned for specialized behavior. +type Task struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the task. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the task. + Closure *TaskClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` + // One-liner overview of the entity. + ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` +} + +func (x *Task) Reset() { + *x = Task{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Task) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Task) ProtoMessage() {} + +func (x *Task) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Task.ProtoReflect.Descriptor instead. +func (*Task) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{2} +} + +func (x *Task) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *Task) GetClosure() *TaskClosure { + if x != nil { + return x.Closure + } + return nil +} + +func (x *Task) GetShortDescription() string { + if x != nil { + return x.ShortDescription + } + return "" +} + +// Represents a list of tasks returned from the admin. +// See :ref:`ref_flyteidl.admin.Task` for more details +type TaskList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of tasks returned based on the request. + Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *TaskList) Reset() { + *x = TaskList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskList) ProtoMessage() {} + +func (x *TaskList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskList.ProtoReflect.Descriptor instead. +func (*TaskList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{3} +} + +func (x *TaskList) GetTasks() []*Task { + if x != nil { + return x.Tasks + } + return nil +} + +func (x *TaskList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Represents a structure that encapsulates the user-configured specification of the task. +type TaskSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // Represents the specification for description entity. + Description *DescriptionEntity `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *TaskSpec) Reset() { + *x = TaskSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskSpec) ProtoMessage() {} + +func (x *TaskSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskSpec.ProtoReflect.Descriptor instead. +func (*TaskSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{4} +} + +func (x *TaskSpec) GetTemplate() *core.TaskTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *TaskSpec) GetDescription() *DescriptionEntity { + if x != nil { + return x.Description + } + return nil +} + +// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +// and task metadata. +type TaskClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents the compiled representation of the task from the specification provided. + CompiledTask *core.CompiledTask `protobuf:"bytes,1,opt,name=compiled_task,json=compiledTask,proto3" json:"compiled_task,omitempty"` + // Time at which the task was created. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *TaskClosure) Reset() { + *x = TaskClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskClosure) ProtoMessage() {} + +func (x *TaskClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskClosure.ProtoReflect.Descriptor instead. +func (*TaskClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_proto_rawDescGZIP(), []int{5} +} + +func (x *TaskClosure) GetCompiledTask() *core.CompiledTask { + if x != nil { + return x.CompiledTask + } + return nil +} + +func (x *TaskClosure) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +var File_flyteidl_admin_task_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_task_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6c, + 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2c, + 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x14, 0x0a, 0x12, + 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x95, 0x01, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x29, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6c, 0x6f, + 0x73, 0x75, 0x72, 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, + 0x11, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x44, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4c, 0x0a, 0x08, 0x54, 0x61, + 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x88, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, + 0x6b, 0x53, 0x70, 0x65, 0x63, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x43, + 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x8a, 0x01, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x6c, 0x6f, 0x73, + 0x75, 0x72, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, + 0x74, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x64, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x42, 0xb5, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, + 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_task_proto_rawDescOnce sync.Once + file_flyteidl_admin_task_proto_rawDescData = file_flyteidl_admin_task_proto_rawDesc +) + +func file_flyteidl_admin_task_proto_rawDescGZIP() []byte { + file_flyteidl_admin_task_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_task_proto_rawDescData) + }) + return file_flyteidl_admin_task_proto_rawDescData +} + +var file_flyteidl_admin_task_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_flyteidl_admin_task_proto_goTypes = []interface{}{ + (*TaskCreateRequest)(nil), // 0: flyteidl.admin.TaskCreateRequest + (*TaskCreateResponse)(nil), // 1: flyteidl.admin.TaskCreateResponse + (*Task)(nil), // 2: flyteidl.admin.Task + (*TaskList)(nil), // 3: flyteidl.admin.TaskList + (*TaskSpec)(nil), // 4: flyteidl.admin.TaskSpec + (*TaskClosure)(nil), // 5: flyteidl.admin.TaskClosure + (*core.Identifier)(nil), // 6: flyteidl.core.Identifier + (*core.TaskTemplate)(nil), // 7: flyteidl.core.TaskTemplate + (*DescriptionEntity)(nil), // 8: flyteidl.admin.DescriptionEntity + (*core.CompiledTask)(nil), // 9: flyteidl.core.CompiledTask + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp +} +var file_flyteidl_admin_task_proto_depIdxs = []int32{ + 6, // 0: flyteidl.admin.TaskCreateRequest.id:type_name -> flyteidl.core.Identifier + 4, // 1: flyteidl.admin.TaskCreateRequest.spec:type_name -> flyteidl.admin.TaskSpec + 6, // 2: flyteidl.admin.Task.id:type_name -> flyteidl.core.Identifier + 5, // 3: flyteidl.admin.Task.closure:type_name -> flyteidl.admin.TaskClosure + 2, // 4: flyteidl.admin.TaskList.tasks:type_name -> flyteidl.admin.Task + 7, // 5: flyteidl.admin.TaskSpec.template:type_name -> flyteidl.core.TaskTemplate + 8, // 6: flyteidl.admin.TaskSpec.description:type_name -> flyteidl.admin.DescriptionEntity + 9, // 7: flyteidl.admin.TaskClosure.compiled_task:type_name -> flyteidl.core.CompiledTask + 10, // 8: flyteidl.admin.TaskClosure.created_at:type_name -> google.protobuf.Timestamp + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_task_proto_init() } +func file_flyteidl_admin_task_proto_init() { + if File_flyteidl_admin_task_proto != nil { + return + } + file_flyteidl_admin_description_entity_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Task); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_task_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_task_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_task_proto_depIdxs, + MessageInfos: file_flyteidl_admin_task_proto_msgTypes, + }.Build() + File_flyteidl_admin_task_proto = out.File + file_flyteidl_admin_task_proto_rawDesc = nil + file_flyteidl_admin_task_proto_goTypes = nil + file_flyteidl_admin_task_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go new file mode 100644 index 0000000000..f32269ae0f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go @@ -0,0 +1,1083 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/task_execution.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// A message used to fetch a single task execution entity. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +type TaskExecutionGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier for the task execution. + // +required + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *TaskExecutionGetRequest) Reset() { + *x = TaskExecutionGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionGetRequest) ProtoMessage() {} + +func (x *TaskExecutionGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionGetRequest.ProtoReflect.Descriptor instead. +func (*TaskExecutionGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{0} +} + +func (x *TaskExecutionGetRequest) GetId() *core.TaskExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +type TaskExecutionListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates the node execution to filter by. + // +required + NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` + // Indicates the number of resources to be returned. + // +required + Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. + // +optional + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + // Indicates a list of filters passed as string. + // More info on constructing filters : + // +optional + Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` + // Sort ordering for returned list. + // +optional + SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` +} + +func (x *TaskExecutionListRequest) Reset() { + *x = TaskExecutionListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionListRequest) ProtoMessage() {} + +func (x *TaskExecutionListRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionListRequest.ProtoReflect.Descriptor instead. +func (*TaskExecutionListRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{1} +} + +func (x *TaskExecutionListRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { + if x != nil { + return x.NodeExecutionId + } + return nil +} + +func (x *TaskExecutionListRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *TaskExecutionListRequest) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *TaskExecutionListRequest) GetFilters() string { + if x != nil { + return x.Filters + } + return "" +} + +func (x *TaskExecutionListRequest) GetSortBy() *Sort { + if x != nil { + return x.SortBy + } + return nil +} + +// Encapsulates all details for a single task execution entity. +// A task execution represents an instantiated task, including all inputs and additional +// metadata as well as computed results included state, outputs, and duration-based attributes. +type TaskExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier for the task execution. + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Path to remote data store where input blob is stored. + InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` + // Task execution details and results. + Closure *TaskExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` + // Whether this task spawned nodes. + IsParent bool `protobuf:"varint,4,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` +} + +func (x *TaskExecution) Reset() { + *x = TaskExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecution) ProtoMessage() {} + +func (x *TaskExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecution.ProtoReflect.Descriptor instead. +func (*TaskExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{2} +} + +func (x *TaskExecution) GetId() *core.TaskExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *TaskExecution) GetInputUri() string { + if x != nil { + return x.InputUri + } + return "" +} + +func (x *TaskExecution) GetClosure() *TaskExecutionClosure { + if x != nil { + return x.Closure + } + return nil +} + +func (x *TaskExecution) GetIsParent() bool { + if x != nil { + return x.IsParent + } + return false +} + +// Response structure for a query to list of task execution entities. +// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +type TaskExecutionList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskExecutions []*TaskExecution `protobuf:"bytes,1,rep,name=task_executions,json=taskExecutions,proto3" json:"task_executions,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *TaskExecutionList) Reset() { + *x = TaskExecutionList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionList) ProtoMessage() {} + +func (x *TaskExecutionList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionList.ProtoReflect.Descriptor instead. +func (*TaskExecutionList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{3} +} + +func (x *TaskExecutionList) GetTaskExecutions() []*TaskExecution { + if x != nil { + return x.TaskExecutions + } + return nil +} + +func (x *TaskExecutionList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Container for task execution details and results. +type TaskExecutionClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to OutputResult: + // + // *TaskExecutionClosure_OutputUri + // *TaskExecutionClosure_Error + // *TaskExecutionClosure_OutputData + OutputResult isTaskExecutionClosure_OutputResult `protobuf_oneof:"output_result"` + // The last recorded phase for this task execution. + Phase core.TaskExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // Detailed log information output by the task execution. + Logs []*core.TaskLog `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"` + // Time at which the task execution began running. + StartedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + // The amount of time the task execution spent running. + Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` + // Time at which the task execution was created. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + // Time at which the task execution was last updated. + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + // Custom data specific to the task plugin. + CustomInfo *structpb.Struct `protobuf:"bytes,9,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` + // If there is an explanation for the most recent phase transition, the reason will capture it. + Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,11,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata around how a task was executed. + Metadata *event.TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` + // The event version is used to indicate versioned changes in how data is maintained using this + // proto message. For example, event_verison > 0 means that maps tasks logs use the + // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + // in this message. + EventVersion int32 `protobuf:"varint,17,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` + // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason + // as previously done, is much more valuable in visualizing and understanding historical evaluations. + Reasons []*Reason `protobuf:"bytes,18,rep,name=reasons,proto3" json:"reasons,omitempty"` +} + +func (x *TaskExecutionClosure) Reset() { + *x = TaskExecutionClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionClosure) ProtoMessage() {} + +func (x *TaskExecutionClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionClosure.ProtoReflect.Descriptor instead. +func (*TaskExecutionClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{4} +} + +func (m *TaskExecutionClosure) GetOutputResult() isTaskExecutionClosure_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. +func (x *TaskExecutionClosure) GetOutputUri() string { + if x, ok := x.GetOutputResult().(*TaskExecutionClosure_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (x *TaskExecutionClosure) GetError() *core.ExecutionError { + if x, ok := x.GetOutputResult().(*TaskExecutionClosure_Error); ok { + return x.Error + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. +func (x *TaskExecutionClosure) GetOutputData() *core.LiteralMap { + if x, ok := x.GetOutputResult().(*TaskExecutionClosure_OutputData); ok { + return x.OutputData + } + return nil +} + +func (x *TaskExecutionClosure) GetPhase() core.TaskExecution_Phase { + if x != nil { + return x.Phase + } + return core.TaskExecution_Phase(0) +} + +func (x *TaskExecutionClosure) GetLogs() []*core.TaskLog { + if x != nil { + return x.Logs + } + return nil +} + +func (x *TaskExecutionClosure) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.StartedAt + } + return nil +} + +func (x *TaskExecutionClosure) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +func (x *TaskExecutionClosure) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *TaskExecutionClosure) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *TaskExecutionClosure) GetCustomInfo() *structpb.Struct { + if x != nil { + return x.CustomInfo + } + return nil +} + +func (x *TaskExecutionClosure) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *TaskExecutionClosure) GetTaskType() string { + if x != nil { + return x.TaskType + } + return "" +} + +func (x *TaskExecutionClosure) GetMetadata() *event.TaskExecutionMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *TaskExecutionClosure) GetEventVersion() int32 { + if x != nil { + return x.EventVersion + } + return 0 +} + +func (x *TaskExecutionClosure) GetReasons() []*Reason { + if x != nil { + return x.Reasons + } + return nil +} + +type isTaskExecutionClosure_OutputResult interface { + isTaskExecutionClosure_OutputResult() +} + +type TaskExecutionClosure_OutputUri struct { + // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + // DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. + OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type TaskExecutionClosure_Error struct { + // Error information for the task execution. Populated if the execution failed. + Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` +} + +type TaskExecutionClosure_OutputData struct { + // Raw output data produced by this task execution. + // DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. + OutputData *core.LiteralMap `protobuf:"bytes,12,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*TaskExecutionClosure_OutputUri) isTaskExecutionClosure_OutputResult() {} + +func (*TaskExecutionClosure_Error) isTaskExecutionClosure_OutputResult() {} + +func (*TaskExecutionClosure_OutputData) isTaskExecutionClosure_OutputResult() {} + +// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. +type Reason struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // occurred_at is the timestamp indicating the instant that this reason happened. + OccurredAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // message is the explanation for the most recent phase transition or status update. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *Reason) Reset() { + *x = Reason{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Reason) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Reason) ProtoMessage() {} + +func (x *Reason) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Reason.ProtoReflect.Descriptor instead. +func (*Reason) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{5} +} + +func (x *Reason) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.OccurredAt + } + return nil +} + +func (x *Reason) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// Request structure to fetch inputs and output for a task execution. +// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` +type TaskExecutionGetDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The identifier of the task execution for which to fetch inputs and outputs. + // +required + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *TaskExecutionGetDataRequest) Reset() { + *x = TaskExecutionGetDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionGetDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionGetDataRequest) ProtoMessage() {} + +func (x *TaskExecutionGetDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionGetDataRequest.ProtoReflect.Descriptor instead. +func (*TaskExecutionGetDataRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{6} +} + +func (x *TaskExecutionGetDataRequest) GetId() *core.TaskExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +type TaskExecutionGetDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Signed url to fetch a core.LiteralMap of task execution inputs. + // Deprecated: Please use full_inputs instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. + Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Signed url to fetch a core.LiteralMap of task execution outputs. + // Deprecated: Please use full_outputs instead. + // + // Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. + Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` + // Full_inputs will only be populated if they are under a configured size threshold. + FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` + // Full_outputs will only be populated if they are under a configured size threshold. + FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` + // flyte tiny url to fetch a core.LiteralMap of task execution's IO + // Deck will be empty for task + FlyteUrls *FlyteURLs `protobuf:"bytes,5,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` +} + +func (x *TaskExecutionGetDataResponse) Reset() { + *x = TaskExecutionGetDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionGetDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionGetDataResponse) ProtoMessage() {} + +func (x *TaskExecutionGetDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_task_execution_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionGetDataResponse.ProtoReflect.Descriptor instead. +func (*TaskExecutionGetDataResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_task_execution_proto_rawDescGZIP(), []int{7} +} + +// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. +func (x *TaskExecutionGetDataResponse) GetInputs() *UrlBlob { + if x != nil { + return x.Inputs + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/admin/task_execution.proto. +func (x *TaskExecutionGetDataResponse) GetOutputs() *UrlBlob { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *TaskExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { + if x != nil { + return x.FullInputs + } + return nil +} + +func (x *TaskExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { + if x != nil { + return x.FullOutputs + } + return nil +} + +func (x *TaskExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { + if x != nil { + return x.FlyteUrls + } + return nil +} + +var File_flyteidl_admin_task_execution_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_task_execution_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x17, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe3, 0x01, + 0x0a, 0x18, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x11, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0f, 0x6e, + 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x5f, 0x62, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x72, + 0x74, 0x42, 0x79, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, + 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x3e, 0x0a, 0x07, 0x63, 0x6c, + 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, + 0x65, 0x52, 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x73, + 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, + 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9c, 0x06, 0x0a, 0x14, 0x54, + 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x6f, 0x73, + 0x75, 0x72, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, + 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x40, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x42, + 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, + 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6c, + 0x6f, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x07, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, + 0x07, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x5f, 0x0a, 0x06, 0x52, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x55, 0x0a, 0x1b, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, + 0x64, 0x22, 0xbe, 0x02, 0x0a, 0x1c, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x35, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x55, 0x72, 0x6c, 0x42, 0x6c, 0x6f, + 0x62, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3a, + 0x0a, 0x0b, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0a, + 0x66, 0x75, 0x6c, 0x6c, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x75, + 0x6c, 0x6c, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x75, 0x6c, + 0x6c, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x38, 0x0a, 0x0a, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x55, 0x52, 0x4c, 0x73, 0x52, 0x09, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x55, 0x72, + 0x6c, 0x73, 0x42, 0xbe, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, + 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_task_execution_proto_rawDescOnce sync.Once + file_flyteidl_admin_task_execution_proto_rawDescData = file_flyteidl_admin_task_execution_proto_rawDesc +) + +func file_flyteidl_admin_task_execution_proto_rawDescGZIP() []byte { + file_flyteidl_admin_task_execution_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_task_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_task_execution_proto_rawDescData) + }) + return file_flyteidl_admin_task_execution_proto_rawDescData +} + +var file_flyteidl_admin_task_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_flyteidl_admin_task_execution_proto_goTypes = []interface{}{ + (*TaskExecutionGetRequest)(nil), // 0: flyteidl.admin.TaskExecutionGetRequest + (*TaskExecutionListRequest)(nil), // 1: flyteidl.admin.TaskExecutionListRequest + (*TaskExecution)(nil), // 2: flyteidl.admin.TaskExecution + (*TaskExecutionList)(nil), // 3: flyteidl.admin.TaskExecutionList + (*TaskExecutionClosure)(nil), // 4: flyteidl.admin.TaskExecutionClosure + (*Reason)(nil), // 5: flyteidl.admin.Reason + (*TaskExecutionGetDataRequest)(nil), // 6: flyteidl.admin.TaskExecutionGetDataRequest + (*TaskExecutionGetDataResponse)(nil), // 7: flyteidl.admin.TaskExecutionGetDataResponse + (*core.TaskExecutionIdentifier)(nil), // 8: flyteidl.core.TaskExecutionIdentifier + (*core.NodeExecutionIdentifier)(nil), // 9: flyteidl.core.NodeExecutionIdentifier + (*Sort)(nil), // 10: flyteidl.admin.Sort + (*core.ExecutionError)(nil), // 11: flyteidl.core.ExecutionError + (*core.LiteralMap)(nil), // 12: flyteidl.core.LiteralMap + (core.TaskExecution_Phase)(0), // 13: flyteidl.core.TaskExecution.Phase + (*core.TaskLog)(nil), // 14: flyteidl.core.TaskLog + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 16: google.protobuf.Duration + (*structpb.Struct)(nil), // 17: google.protobuf.Struct + (*event.TaskExecutionMetadata)(nil), // 18: flyteidl.event.TaskExecutionMetadata + (*UrlBlob)(nil), // 19: flyteidl.admin.UrlBlob + (*FlyteURLs)(nil), // 20: flyteidl.admin.FlyteURLs +} +var file_flyteidl_admin_task_execution_proto_depIdxs = []int32{ + 8, // 0: flyteidl.admin.TaskExecutionGetRequest.id:type_name -> flyteidl.core.TaskExecutionIdentifier + 9, // 1: flyteidl.admin.TaskExecutionListRequest.node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier + 10, // 2: flyteidl.admin.TaskExecutionListRequest.sort_by:type_name -> flyteidl.admin.Sort + 8, // 3: flyteidl.admin.TaskExecution.id:type_name -> flyteidl.core.TaskExecutionIdentifier + 4, // 4: flyteidl.admin.TaskExecution.closure:type_name -> flyteidl.admin.TaskExecutionClosure + 2, // 5: flyteidl.admin.TaskExecutionList.task_executions:type_name -> flyteidl.admin.TaskExecution + 11, // 6: flyteidl.admin.TaskExecutionClosure.error:type_name -> flyteidl.core.ExecutionError + 12, // 7: flyteidl.admin.TaskExecutionClosure.output_data:type_name -> flyteidl.core.LiteralMap + 13, // 8: flyteidl.admin.TaskExecutionClosure.phase:type_name -> flyteidl.core.TaskExecution.Phase + 14, // 9: flyteidl.admin.TaskExecutionClosure.logs:type_name -> flyteidl.core.TaskLog + 15, // 10: flyteidl.admin.TaskExecutionClosure.started_at:type_name -> google.protobuf.Timestamp + 16, // 11: flyteidl.admin.TaskExecutionClosure.duration:type_name -> google.protobuf.Duration + 15, // 12: flyteidl.admin.TaskExecutionClosure.created_at:type_name -> google.protobuf.Timestamp + 15, // 13: flyteidl.admin.TaskExecutionClosure.updated_at:type_name -> google.protobuf.Timestamp + 17, // 14: flyteidl.admin.TaskExecutionClosure.custom_info:type_name -> google.protobuf.Struct + 18, // 15: flyteidl.admin.TaskExecutionClosure.metadata:type_name -> flyteidl.event.TaskExecutionMetadata + 5, // 16: flyteidl.admin.TaskExecutionClosure.reasons:type_name -> flyteidl.admin.Reason + 15, // 17: flyteidl.admin.Reason.occurred_at:type_name -> google.protobuf.Timestamp + 8, // 18: flyteidl.admin.TaskExecutionGetDataRequest.id:type_name -> flyteidl.core.TaskExecutionIdentifier + 19, // 19: flyteidl.admin.TaskExecutionGetDataResponse.inputs:type_name -> flyteidl.admin.UrlBlob + 19, // 20: flyteidl.admin.TaskExecutionGetDataResponse.outputs:type_name -> flyteidl.admin.UrlBlob + 12, // 21: flyteidl.admin.TaskExecutionGetDataResponse.full_inputs:type_name -> flyteidl.core.LiteralMap + 12, // 22: flyteidl.admin.TaskExecutionGetDataResponse.full_outputs:type_name -> flyteidl.core.LiteralMap + 20, // 23: flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls:type_name -> flyteidl.admin.FlyteURLs + 24, // [24:24] is the sub-list for method output_type + 24, // [24:24] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_task_execution_proto_init() } +func file_flyteidl_admin_task_execution_proto_init() { + if File_flyteidl_admin_task_execution_proto != nil { + return + } + file_flyteidl_admin_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_task_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reason); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionGetDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionGetDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_task_execution_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*TaskExecutionClosure_OutputUri)(nil), + (*TaskExecutionClosure_Error)(nil), + (*TaskExecutionClosure_OutputData)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_task_execution_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_task_execution_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_task_execution_proto_depIdxs, + MessageInfos: file_flyteidl_admin_task_execution_proto_msgTypes, + }.Build() + File_flyteidl_admin_task_execution_proto = out.File + file_flyteidl_admin_task_execution_proto_rawDesc = nil + file_flyteidl_admin_task_execution_proto_goTypes = nil + file_flyteidl_admin_task_execution_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go new file mode 100644 index 0000000000..aad3315217 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go @@ -0,0 +1,301 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/version.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Response for the GetVersion API +type GetVersionResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The control plane version information. FlyteAdmin and related components + // form the control plane of Flyte + ControlPlaneVersion *Version `protobuf:"bytes,1,opt,name=control_plane_version,json=controlPlaneVersion,proto3" json:"control_plane_version,omitempty"` +} + +func (x *GetVersionResponse) Reset() { + *x = GetVersionResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_version_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetVersionResponse) ProtoMessage() {} + +func (x *GetVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_version_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetVersionResponse.ProtoReflect.Descriptor instead. +func (*GetVersionResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_version_proto_rawDescGZIP(), []int{0} +} + +func (x *GetVersionResponse) GetControlPlaneVersion() *Version { + if x != nil { + return x.ControlPlaneVersion + } + return nil +} + +// Provides Version information for a component +type Version struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Specifies the GIT sha of the build + Build string `protobuf:"bytes,1,opt,name=Build,proto3" json:"Build,omitempty"` + // Version for the build, should follow a semver + Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` + // Build timestamp + BuildTime string `protobuf:"bytes,3,opt,name=BuildTime,proto3" json:"BuildTime,omitempty"` +} + +func (x *Version) Reset() { + *x = Version{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_version_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Version) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Version) ProtoMessage() {} + +func (x *Version) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_version_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Version.ProtoReflect.Descriptor instead. +func (*Version) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_version_proto_rawDescGZIP(), []int{1} +} + +func (x *Version) GetBuild() string { + if x != nil { + return x.Build + } + return "" +} + +func (x *Version) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Version) GetBuildTime() string { + if x != nil { + return x.BuildTime + } + return "" +} + +// Empty request for GetVersion +type GetVersionRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *GetVersionRequest) Reset() { + *x = GetVersionRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_version_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetVersionRequest) ProtoMessage() {} + +func (x *GetVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_version_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead. +func (*GetVersionRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_version_proto_rawDescGZIP(), []int{2} +} + +var File_flyteidl_admin_version_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_version_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x61, + 0x0a, 0x12, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, + 0x70, 0x6c, 0x61, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x50, 0x6c, 0x61, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0x57, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, + 0x42, 0x75, 0x69, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x42, 0x75, 0x69, + 0x6c, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, + 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x13, 0x0a, 0x11, 0x47, 0x65, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, + 0xb8, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_version_proto_rawDescOnce sync.Once + file_flyteidl_admin_version_proto_rawDescData = file_flyteidl_admin_version_proto_rawDesc +) + +func file_flyteidl_admin_version_proto_rawDescGZIP() []byte { + file_flyteidl_admin_version_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_version_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_version_proto_rawDescData) + }) + return file_flyteidl_admin_version_proto_rawDescData +} + +var file_flyteidl_admin_version_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_flyteidl_admin_version_proto_goTypes = []interface{}{ + (*GetVersionResponse)(nil), // 0: flyteidl.admin.GetVersionResponse + (*Version)(nil), // 1: flyteidl.admin.Version + (*GetVersionRequest)(nil), // 2: flyteidl.admin.GetVersionRequest +} +var file_flyteidl_admin_version_proto_depIdxs = []int32{ + 1, // 0: flyteidl.admin.GetVersionResponse.control_plane_version:type_name -> flyteidl.admin.Version + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_version_proto_init() } +func file_flyteidl_admin_version_proto_init() { + if File_flyteidl_admin_version_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_version_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVersionResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_version_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Version); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_version_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_version_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_version_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_version_proto_depIdxs, + MessageInfos: file_flyteidl_admin_version_proto_msgTypes, + }.Build() + File_flyteidl_admin_version_proto = out.File + file_flyteidl_admin_version_proto_rawDesc = nil + file_flyteidl_admin_version_proto_goTypes = nil + file_flyteidl_admin_version_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go new file mode 100644 index 0000000000..0b55096581 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go @@ -0,0 +1,855 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/workflow.proto + +package admin + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Represents a request structure to create a revision of a workflow. +// See :ref:`ref_flyteidl.admin.Workflow` for more details +type WorkflowCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the workflow. + // +required + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the specification for workflow. + // +required + Spec *WorkflowSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` +} + +func (x *WorkflowCreateRequest) Reset() { + *x = WorkflowCreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowCreateRequest) ProtoMessage() {} + +func (x *WorkflowCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowCreateRequest.ProtoReflect.Descriptor instead. +func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkflowCreateRequest) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *WorkflowCreateRequest) GetSpec() *WorkflowSpec { + if x != nil { + return x.Spec + } + return nil +} + +type WorkflowCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *WorkflowCreateResponse) Reset() { + *x = WorkflowCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowCreateResponse) ProtoMessage() {} + +func (x *WorkflowCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowCreateResponse.ProtoReflect.Descriptor instead. +func (*WorkflowCreateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{1} +} + +// Represents the workflow structure stored in the Admin +// A workflow is created by ordering tasks and associating outputs to inputs +// in order to produce a directed-acyclic execution graph. +type Workflow struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // closure encapsulates all the fields that maps to a compiled version of the workflow. + Closure *WorkflowClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` + // One-liner overview of the entity. + ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` +} + +func (x *Workflow) Reset() { + *x = Workflow{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Workflow) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Workflow) ProtoMessage() {} + +func (x *Workflow) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Workflow.ProtoReflect.Descriptor instead. +func (*Workflow) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{2} +} + +func (x *Workflow) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *Workflow) GetClosure() *WorkflowClosure { + if x != nil { + return x.Closure + } + return nil +} + +func (x *Workflow) GetShortDescription() string { + if x != nil { + return x.ShortDescription + } + return "" +} + +// Represents a list of workflows returned from the admin. +// See :ref:`ref_flyteidl.admin.Workflow` for more details +type WorkflowList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of workflows returned based on the request. + Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"` + // In the case of multiple pages of results, the server-provided token can be used to fetch the next page + // in a query. If there are no more results, this value will be empty. + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` +} + +func (x *WorkflowList) Reset() { + *x = WorkflowList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowList) ProtoMessage() {} + +func (x *WorkflowList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowList.ProtoReflect.Descriptor instead. +func (*WorkflowList) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{3} +} + +func (x *WorkflowList) GetWorkflows() []*Workflow { + if x != nil { + return x.Workflows + } + return nil +} + +func (x *WorkflowList) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +// Represents a structure that encapsulates the specification of the workflow. +type WorkflowSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Template of the task that encapsulates all the metadata of the workflow. + Template *core.WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the + // propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out + // to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + SubWorkflows []*core.WorkflowTemplate `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` + // Represents the specification for description entity. + Description *DescriptionEntity `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *WorkflowSpec) Reset() { + *x = WorkflowSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowSpec) ProtoMessage() {} + +func (x *WorkflowSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowSpec.ProtoReflect.Descriptor instead. +func (*WorkflowSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{4} +} + +func (x *WorkflowSpec) GetTemplate() *core.WorkflowTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *WorkflowSpec) GetSubWorkflows() []*core.WorkflowTemplate { + if x != nil { + return x.SubWorkflows + } + return nil +} + +func (x *WorkflowSpec) GetDescription() *DescriptionEntity { + if x != nil { + return x.Description + } + return nil +} + +// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +type WorkflowClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Represents the compiled representation of the workflow from the specification provided. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // Time at which the workflow was created. + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` +} + +func (x *WorkflowClosure) Reset() { + *x = WorkflowClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowClosure) ProtoMessage() {} + +func (x *WorkflowClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowClosure.ProtoReflect.Descriptor instead. +func (*WorkflowClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{5} +} + +func (x *WorkflowClosure) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if x != nil { + return x.CompiledWorkflow + } + return nil +} + +func (x *WorkflowClosure) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +// The workflow id is already used and the structure is different +type WorkflowErrorExistsDifferentStructure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *WorkflowErrorExistsDifferentStructure) Reset() { + *x = WorkflowErrorExistsDifferentStructure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowErrorExistsDifferentStructure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowErrorExistsDifferentStructure) ProtoMessage() {} + +func (x *WorkflowErrorExistsDifferentStructure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowErrorExistsDifferentStructure.ProtoReflect.Descriptor instead. +func (*WorkflowErrorExistsDifferentStructure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{6} +} + +func (x *WorkflowErrorExistsDifferentStructure) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +// The workflow id is already used with an identical sctructure +type WorkflowErrorExistsIdenticalStructure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *WorkflowErrorExistsIdenticalStructure) Reset() { + *x = WorkflowErrorExistsIdenticalStructure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowErrorExistsIdenticalStructure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowErrorExistsIdenticalStructure) ProtoMessage() {} + +func (x *WorkflowErrorExistsIdenticalStructure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowErrorExistsIdenticalStructure.ProtoReflect.Descriptor instead. +func (*WorkflowErrorExistsIdenticalStructure) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{7} +} + +func (x *WorkflowErrorExistsIdenticalStructure) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +// When a CreateWorkflowRequest fails due to matching id +type CreateWorkflowFailureReason struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Reason: + // + // *CreateWorkflowFailureReason_ExistsDifferentStructure + // *CreateWorkflowFailureReason_ExistsIdenticalStructure + Reason isCreateWorkflowFailureReason_Reason `protobuf_oneof:"reason"` +} + +func (x *CreateWorkflowFailureReason) Reset() { + *x = CreateWorkflowFailureReason{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateWorkflowFailureReason) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateWorkflowFailureReason) ProtoMessage() {} + +func (x *CreateWorkflowFailureReason) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateWorkflowFailureReason.ProtoReflect.Descriptor instead. +func (*CreateWorkflowFailureReason) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_proto_rawDescGZIP(), []int{8} +} + +func (m *CreateWorkflowFailureReason) GetReason() isCreateWorkflowFailureReason_Reason { + if m != nil { + return m.Reason + } + return nil +} + +func (x *CreateWorkflowFailureReason) GetExistsDifferentStructure() *WorkflowErrorExistsDifferentStructure { + if x, ok := x.GetReason().(*CreateWorkflowFailureReason_ExistsDifferentStructure); ok { + return x.ExistsDifferentStructure + } + return nil +} + +func (x *CreateWorkflowFailureReason) GetExistsIdenticalStructure() *WorkflowErrorExistsIdenticalStructure { + if x, ok := x.GetReason().(*CreateWorkflowFailureReason_ExistsIdenticalStructure); ok { + return x.ExistsIdenticalStructure + } + return nil +} + +type isCreateWorkflowFailureReason_Reason interface { + isCreateWorkflowFailureReason_Reason() +} + +type CreateWorkflowFailureReason_ExistsDifferentStructure struct { + ExistsDifferentStructure *WorkflowErrorExistsDifferentStructure `protobuf:"bytes,1,opt,name=exists_different_structure,json=existsDifferentStructure,proto3,oneof"` +} + +type CreateWorkflowFailureReason_ExistsIdenticalStructure struct { + ExistsIdenticalStructure *WorkflowErrorExistsIdenticalStructure `protobuf:"bytes,2,opt,name=exists_identical_structure,json=existsIdenticalStructure,proto3,oneof"` +} + +func (*CreateWorkflowFailureReason_ExistsDifferentStructure) isCreateWorkflowFailureReason_Reason() {} + +func (*CreateWorkflowFailureReason_ExistsIdenticalStructure) isCreateWorkflowFailureReason_Reason() {} + +var File_flyteidl_admin_workflow_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_workflow_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, + 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, + 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x15, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x73, 0x70, 0x65, + 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x53, 0x70, 0x65, 0x63, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x18, 0x0a, 0x16, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, + 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, + 0x07, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x68, 0x6f, 0x72, + 0x74, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x10, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5c, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x14, 0x0a, + 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0xd6, 0x01, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x53, 0x70, 0x65, 0x63, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x43, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa1, 0x01, 0x0a, + 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, + 0x12, 0x53, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, + 0x75, 0x72, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x22, 0x52, 0x0a, 0x25, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, + 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x52, 0x0a, 0x25, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x22, 0x95, 0x02, 0x0a, 0x1b, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x46, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x75, 0x0a, 0x1a, 0x65, 0x78, 0x69, 0x73, + 0x74, 0x73, 0x5f, 0x64, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x73, 0x44, 0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x18, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x44, 0x69, 0x66, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, + 0x75, 0x0a, 0x1a, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, + 0x6c, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x48, 0x00, 0x52, 0x18, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x73, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, + 0x42, 0xb9, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_workflow_proto_rawDescOnce sync.Once + file_flyteidl_admin_workflow_proto_rawDescData = file_flyteidl_admin_workflow_proto_rawDesc +) + +func file_flyteidl_admin_workflow_proto_rawDescGZIP() []byte { + file_flyteidl_admin_workflow_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_workflow_proto_rawDescData) + }) + return file_flyteidl_admin_workflow_proto_rawDescData +} + +var file_flyteidl_admin_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_flyteidl_admin_workflow_proto_goTypes = []interface{}{ + (*WorkflowCreateRequest)(nil), // 0: flyteidl.admin.WorkflowCreateRequest + (*WorkflowCreateResponse)(nil), // 1: flyteidl.admin.WorkflowCreateResponse + (*Workflow)(nil), // 2: flyteidl.admin.Workflow + (*WorkflowList)(nil), // 3: flyteidl.admin.WorkflowList + (*WorkflowSpec)(nil), // 4: flyteidl.admin.WorkflowSpec + (*WorkflowClosure)(nil), // 5: flyteidl.admin.WorkflowClosure + (*WorkflowErrorExistsDifferentStructure)(nil), // 6: flyteidl.admin.WorkflowErrorExistsDifferentStructure + (*WorkflowErrorExistsIdenticalStructure)(nil), // 7: flyteidl.admin.WorkflowErrorExistsIdenticalStructure + (*CreateWorkflowFailureReason)(nil), // 8: flyteidl.admin.CreateWorkflowFailureReason + (*core.Identifier)(nil), // 9: flyteidl.core.Identifier + (*core.WorkflowTemplate)(nil), // 10: flyteidl.core.WorkflowTemplate + (*DescriptionEntity)(nil), // 11: flyteidl.admin.DescriptionEntity + (*core.CompiledWorkflowClosure)(nil), // 12: flyteidl.core.CompiledWorkflowClosure + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp +} +var file_flyteidl_admin_workflow_proto_depIdxs = []int32{ + 9, // 0: flyteidl.admin.WorkflowCreateRequest.id:type_name -> flyteidl.core.Identifier + 4, // 1: flyteidl.admin.WorkflowCreateRequest.spec:type_name -> flyteidl.admin.WorkflowSpec + 9, // 2: flyteidl.admin.Workflow.id:type_name -> flyteidl.core.Identifier + 5, // 3: flyteidl.admin.Workflow.closure:type_name -> flyteidl.admin.WorkflowClosure + 2, // 4: flyteidl.admin.WorkflowList.workflows:type_name -> flyteidl.admin.Workflow + 10, // 5: flyteidl.admin.WorkflowSpec.template:type_name -> flyteidl.core.WorkflowTemplate + 10, // 6: flyteidl.admin.WorkflowSpec.sub_workflows:type_name -> flyteidl.core.WorkflowTemplate + 11, // 7: flyteidl.admin.WorkflowSpec.description:type_name -> flyteidl.admin.DescriptionEntity + 12, // 8: flyteidl.admin.WorkflowClosure.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure + 13, // 9: flyteidl.admin.WorkflowClosure.created_at:type_name -> google.protobuf.Timestamp + 9, // 10: flyteidl.admin.WorkflowErrorExistsDifferentStructure.id:type_name -> flyteidl.core.Identifier + 9, // 11: flyteidl.admin.WorkflowErrorExistsIdenticalStructure.id:type_name -> flyteidl.core.Identifier + 6, // 12: flyteidl.admin.CreateWorkflowFailureReason.exists_different_structure:type_name -> flyteidl.admin.WorkflowErrorExistsDifferentStructure + 7, // 13: flyteidl.admin.CreateWorkflowFailureReason.exists_identical_structure:type_name -> flyteidl.admin.WorkflowErrorExistsIdenticalStructure + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_workflow_proto_init() } +func file_flyteidl_admin_workflow_proto_init() { + if File_flyteidl_admin_workflow_proto != nil { + return + } + file_flyteidl_admin_description_entity_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Workflow); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowErrorExistsDifferentStructure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowErrorExistsIdenticalStructure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateWorkflowFailureReason); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_admin_workflow_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*CreateWorkflowFailureReason_ExistsDifferentStructure)(nil), + (*CreateWorkflowFailureReason_ExistsIdenticalStructure)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_workflow_proto_rawDesc, + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_workflow_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_workflow_proto_depIdxs, + MessageInfos: file_flyteidl_admin_workflow_proto_msgTypes, + }.Build() + File_flyteidl_admin_workflow_proto = out.File + file_flyteidl_admin_workflow_proto_rawDesc = nil + file_flyteidl_admin_workflow_proto_goTypes = nil + file_flyteidl_admin_workflow_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go new file mode 100644 index 0000000000..fcebfd85e7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go @@ -0,0 +1,690 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/admin/workflow_attributes.proto + +package admin + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id for which this set of attributes will be applied. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id for which this set of attributes will be applied. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Workflow name for which this set of attributes will be applied. + Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` + MatchingAttributes *MatchingAttributes `protobuf:"bytes,4,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` + // Optional, org key applied to the attributes. + Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *WorkflowAttributes) Reset() { + *x = WorkflowAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributes) ProtoMessage() {} + +func (x *WorkflowAttributes) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributes.ProtoReflect.Descriptor instead. +func (*WorkflowAttributes) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkflowAttributes) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *WorkflowAttributes) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *WorkflowAttributes) GetWorkflow() string { + if x != nil { + return x.Workflow + } + return "" +} + +func (x *WorkflowAttributes) GetMatchingAttributes() *MatchingAttributes { + if x != nil { + return x.MatchingAttributes + } + return nil +} + +func (x *WorkflowAttributes) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Sets custom attributes for a project, domain and workflow combination. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributesUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *WorkflowAttributesUpdateRequest) Reset() { + *x = WorkflowAttributesUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributesUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributesUpdateRequest) ProtoMessage() {} + +func (x *WorkflowAttributesUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributesUpdateRequest.ProtoReflect.Descriptor instead. +func (*WorkflowAttributesUpdateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{1} +} + +func (x *WorkflowAttributesUpdateRequest) GetAttributes() *WorkflowAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +// Purposefully empty, may be populated in the future. +type WorkflowAttributesUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *WorkflowAttributesUpdateResponse) Reset() { + *x = WorkflowAttributesUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributesUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributesUpdateResponse) ProtoMessage() {} + +func (x *WorkflowAttributesUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributesUpdateResponse.ProtoReflect.Descriptor instead. +func (*WorkflowAttributesUpdateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{2} +} + +// Request to get an individual workflow attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributesGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Workflow name which this set of attributes references. + // +required + Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` + // Which type of matchable attributes to return. + // +required + ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org key applied to the attributes. + Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *WorkflowAttributesGetRequest) Reset() { + *x = WorkflowAttributesGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributesGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributesGetRequest) ProtoMessage() {} + +func (x *WorkflowAttributesGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributesGetRequest.ProtoReflect.Descriptor instead. +func (*WorkflowAttributesGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{3} +} + +func (x *WorkflowAttributesGetRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *WorkflowAttributesGetRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *WorkflowAttributesGetRequest) GetWorkflow() string { + if x != nil { + return x.Workflow + } + return "" +} + +func (x *WorkflowAttributesGetRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *WorkflowAttributesGetRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Response to get an individual workflow attribute override. +type WorkflowAttributesGetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` +} + +func (x *WorkflowAttributesGetResponse) Reset() { + *x = WorkflowAttributesGetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributesGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributesGetResponse) ProtoMessage() {} + +func (x *WorkflowAttributesGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributesGetResponse.ProtoReflect.Descriptor instead. +func (*WorkflowAttributesGetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{4} +} + +func (x *WorkflowAttributesGetResponse) GetAttributes() *WorkflowAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +// Request to delete a set matchable workflow attribute override. +// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +type WorkflowAttributesDeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique project id which this set of attributes references. + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Unique domain id which this set of attributes references. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Workflow name which this set of attributes references. + // +required + Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` + // Which type of matchable attributes to delete. + // +required + ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` + // Optional, org key applied to the attributes. + Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *WorkflowAttributesDeleteRequest) Reset() { + *x = WorkflowAttributesDeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributesDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributesDeleteRequest) ProtoMessage() {} + +func (x *WorkflowAttributesDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributesDeleteRequest.ProtoReflect.Descriptor instead. +func (*WorkflowAttributesDeleteRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{5} +} + +func (x *WorkflowAttributesDeleteRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *WorkflowAttributesDeleteRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *WorkflowAttributesDeleteRequest) GetWorkflow() string { + if x != nil { + return x.Workflow + } + return "" +} + +func (x *WorkflowAttributesDeleteRequest) GetResourceType() MatchableResource { + if x != nil { + return x.ResourceType + } + return MatchableResource_TASK_RESOURCE +} + +func (x *WorkflowAttributesDeleteRequest) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Purposefully empty, may be populated in the future. +type WorkflowAttributesDeleteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *WorkflowAttributesDeleteResponse) Reset() { + *x = WorkflowAttributesDeleteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowAttributesDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowAttributesDeleteResponse) ProtoMessage() {} + +func (x *WorkflowAttributesDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_admin_workflow_attributes_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowAttributesDeleteResponse.ProtoReflect.Descriptor instead. +func (*WorkflowAttributesDeleteResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP(), []int{6} +} + +var File_flyteidl_admin_workflow_attributes_proto protoreflect.FileDescriptor + +var file_flyteidl_admin_workflow_attributes_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x01, 0x0a, 0x12, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x08, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x53, 0x0a, 0x13, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x12, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, + 0x65, 0x0a, 0x1f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x20, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc6, 0x01, 0x0a, 0x1c, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, + 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6f, 0x72, 0x67, 0x22, 0x63, 0x0a, 0x1d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x1f, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, + 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x46, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6f, 0x72, 0x67, 0x22, 0x22, 0x0a, 0x20, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xc3, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, + 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, + 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, + 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_admin_workflow_attributes_proto_rawDescOnce sync.Once + file_flyteidl_admin_workflow_attributes_proto_rawDescData = file_flyteidl_admin_workflow_attributes_proto_rawDesc +) + +func file_flyteidl_admin_workflow_attributes_proto_rawDescGZIP() []byte { + file_flyteidl_admin_workflow_attributes_proto_rawDescOnce.Do(func() { + file_flyteidl_admin_workflow_attributes_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_admin_workflow_attributes_proto_rawDescData) + }) + return file_flyteidl_admin_workflow_attributes_proto_rawDescData +} + +var file_flyteidl_admin_workflow_attributes_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_admin_workflow_attributes_proto_goTypes = []interface{}{ + (*WorkflowAttributes)(nil), // 0: flyteidl.admin.WorkflowAttributes + (*WorkflowAttributesUpdateRequest)(nil), // 1: flyteidl.admin.WorkflowAttributesUpdateRequest + (*WorkflowAttributesUpdateResponse)(nil), // 2: flyteidl.admin.WorkflowAttributesUpdateResponse + (*WorkflowAttributesGetRequest)(nil), // 3: flyteidl.admin.WorkflowAttributesGetRequest + (*WorkflowAttributesGetResponse)(nil), // 4: flyteidl.admin.WorkflowAttributesGetResponse + (*WorkflowAttributesDeleteRequest)(nil), // 5: flyteidl.admin.WorkflowAttributesDeleteRequest + (*WorkflowAttributesDeleteResponse)(nil), // 6: flyteidl.admin.WorkflowAttributesDeleteResponse + (*MatchingAttributes)(nil), // 7: flyteidl.admin.MatchingAttributes + (MatchableResource)(0), // 8: flyteidl.admin.MatchableResource +} +var file_flyteidl_admin_workflow_attributes_proto_depIdxs = []int32{ + 7, // 0: flyteidl.admin.WorkflowAttributes.matching_attributes:type_name -> flyteidl.admin.MatchingAttributes + 0, // 1: flyteidl.admin.WorkflowAttributesUpdateRequest.attributes:type_name -> flyteidl.admin.WorkflowAttributes + 8, // 2: flyteidl.admin.WorkflowAttributesGetRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 0, // 3: flyteidl.admin.WorkflowAttributesGetResponse.attributes:type_name -> flyteidl.admin.WorkflowAttributes + 8, // 4: flyteidl.admin.WorkflowAttributesDeleteRequest.resource_type:type_name -> flyteidl.admin.MatchableResource + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_admin_workflow_attributes_proto_init() } +func file_flyteidl_admin_workflow_attributes_proto_init() { + if File_flyteidl_admin_workflow_attributes_proto != nil { + return + } + file_flyteidl_admin_matchable_resource_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_admin_workflow_attributes_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_attributes_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributesUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_attributes_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributesUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_attributes_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributesGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_attributes_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributesGetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_attributes_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributesDeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_admin_workflow_attributes_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowAttributesDeleteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_admin_workflow_attributes_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_admin_workflow_attributes_proto_goTypes, + DependencyIndexes: file_flyteidl_admin_workflow_attributes_proto_depIdxs, + MessageInfos: file_flyteidl_admin_workflow_attributes_proto_msgTypes, + }.Build() + File_flyteidl_admin_workflow_attributes_proto = out.File + file_flyteidl_admin_workflow_attributes_proto_rawDesc = nil + file_flyteidl_admin_workflow_attributes_proto_goTypes = nil + file_flyteidl_admin_workflow_attributes_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go b/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go new file mode 100644 index 0000000000..86cc4025eb --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go @@ -0,0 +1,1007 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/artifact_id.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ArtifactKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project and domain and suffix needs to be unique across a given artifact store. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Org string `protobuf:"bytes,4,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *ArtifactKey) Reset() { + *x = ArtifactKey{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactKey) ProtoMessage() {} + +func (x *ArtifactKey) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactKey.ProtoReflect.Descriptor instead. +func (*ArtifactKey) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{0} +} + +func (x *ArtifactKey) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *ArtifactKey) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *ArtifactKey) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ArtifactKey) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Only valid for triggers +type ArtifactBindingData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + // These two fields are only relevant in the partition value case + // + // Types that are assignable to PartitionData: + // + // *ArtifactBindingData_PartitionKey + // *ArtifactBindingData_BindToTimePartition + PartitionData isArtifactBindingData_PartitionData `protobuf_oneof:"partition_data"` + // This is only relevant in the time partition case + Transform string `protobuf:"bytes,4,opt,name=transform,proto3" json:"transform,omitempty"` +} + +func (x *ArtifactBindingData) Reset() { + *x = ArtifactBindingData{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactBindingData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactBindingData) ProtoMessage() {} + +func (x *ArtifactBindingData) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactBindingData.ProtoReflect.Descriptor instead. +func (*ArtifactBindingData) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{1} +} + +func (x *ArtifactBindingData) GetIndex() uint32 { + if x != nil { + return x.Index + } + return 0 +} + +func (m *ArtifactBindingData) GetPartitionData() isArtifactBindingData_PartitionData { + if m != nil { + return m.PartitionData + } + return nil +} + +func (x *ArtifactBindingData) GetPartitionKey() string { + if x, ok := x.GetPartitionData().(*ArtifactBindingData_PartitionKey); ok { + return x.PartitionKey + } + return "" +} + +func (x *ArtifactBindingData) GetBindToTimePartition() bool { + if x, ok := x.GetPartitionData().(*ArtifactBindingData_BindToTimePartition); ok { + return x.BindToTimePartition + } + return false +} + +func (x *ArtifactBindingData) GetTransform() string { + if x != nil { + return x.Transform + } + return "" +} + +type isArtifactBindingData_PartitionData interface { + isArtifactBindingData_PartitionData() +} + +type ArtifactBindingData_PartitionKey struct { + PartitionKey string `protobuf:"bytes,2,opt,name=partition_key,json=partitionKey,proto3,oneof"` +} + +type ArtifactBindingData_BindToTimePartition struct { + BindToTimePartition bool `protobuf:"varint,3,opt,name=bind_to_time_partition,json=bindToTimePartition,proto3,oneof"` +} + +func (*ArtifactBindingData_PartitionKey) isArtifactBindingData_PartitionData() {} + +func (*ArtifactBindingData_BindToTimePartition) isArtifactBindingData_PartitionData() {} + +type InputBindingData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` +} + +func (x *InputBindingData) Reset() { + *x = InputBindingData{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InputBindingData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InputBindingData) ProtoMessage() {} + +func (x *InputBindingData) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InputBindingData.ProtoReflect.Descriptor instead. +func (*InputBindingData) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{2} +} + +func (x *InputBindingData) GetVar() string { + if x != nil { + return x.Var + } + return "" +} + +type LabelValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Value: + // + // *LabelValue_StaticValue + // *LabelValue_TimeValue + // *LabelValue_TriggeredBinding + // *LabelValue_InputBinding + Value isLabelValue_Value `protobuf_oneof:"value"` +} + +func (x *LabelValue) Reset() { + *x = LabelValue{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LabelValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LabelValue) ProtoMessage() {} + +func (x *LabelValue) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LabelValue.ProtoReflect.Descriptor instead. +func (*LabelValue) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{3} +} + +func (m *LabelValue) GetValue() isLabelValue_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *LabelValue) GetStaticValue() string { + if x, ok := x.GetValue().(*LabelValue_StaticValue); ok { + return x.StaticValue + } + return "" +} + +func (x *LabelValue) GetTimeValue() *timestamppb.Timestamp { + if x, ok := x.GetValue().(*LabelValue_TimeValue); ok { + return x.TimeValue + } + return nil +} + +func (x *LabelValue) GetTriggeredBinding() *ArtifactBindingData { + if x, ok := x.GetValue().(*LabelValue_TriggeredBinding); ok { + return x.TriggeredBinding + } + return nil +} + +func (x *LabelValue) GetInputBinding() *InputBindingData { + if x, ok := x.GetValue().(*LabelValue_InputBinding); ok { + return x.InputBinding + } + return nil +} + +type isLabelValue_Value interface { + isLabelValue_Value() +} + +type LabelValue_StaticValue struct { + // The string static value is for use in the Partitions object + StaticValue string `protobuf:"bytes,1,opt,name=static_value,json=staticValue,proto3,oneof"` +} + +type LabelValue_TimeValue struct { + // The time value is for use in the TimePartition case + TimeValue *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time_value,json=timeValue,proto3,oneof"` +} + +type LabelValue_TriggeredBinding struct { + TriggeredBinding *ArtifactBindingData `protobuf:"bytes,3,opt,name=triggered_binding,json=triggeredBinding,proto3,oneof"` +} + +type LabelValue_InputBinding struct { + InputBinding *InputBindingData `protobuf:"bytes,4,opt,name=input_binding,json=inputBinding,proto3,oneof"` +} + +func (*LabelValue_StaticValue) isLabelValue_Value() {} + +func (*LabelValue_TimeValue) isLabelValue_Value() {} + +func (*LabelValue_TriggeredBinding) isLabelValue_Value() {} + +func (*LabelValue_InputBinding) isLabelValue_Value() {} + +type Partitions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value map[string]*LabelValue `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Partitions) Reset() { + *x = Partitions{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Partitions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Partitions) ProtoMessage() {} + +func (x *Partitions) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Partitions.ProtoReflect.Descriptor instead. +func (*Partitions) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{4} +} + +func (x *Partitions) GetValue() map[string]*LabelValue { + if x != nil { + return x.Value + } + return nil +} + +type TimePartition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *LabelValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *TimePartition) Reset() { + *x = TimePartition{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimePartition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimePartition) ProtoMessage() {} + +func (x *TimePartition) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TimePartition.ProtoReflect.Descriptor instead. +func (*TimePartition) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{5} +} + +func (x *TimePartition) GetValue() *LabelValue { + if x != nil { + return x.Value + } + return nil +} + +type ArtifactID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ArtifactKey *ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // Think of a partition as a tag on an Artifact, except it's a key-value pair. + // Different partitions naturally have different versions (execution ids). + Partitions *Partitions `protobuf:"bytes,3,opt,name=partitions,proto3" json:"partitions,omitempty"` + // There is no such thing as an empty time partition - if it's not set, then there is no time partition. + TimePartition *TimePartition `protobuf:"bytes,4,opt,name=time_partition,json=timePartition,proto3" json:"time_partition,omitempty"` +} + +func (x *ArtifactID) Reset() { + *x = ArtifactID{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactID) ProtoMessage() {} + +func (x *ArtifactID) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactID.ProtoReflect.Descriptor instead. +func (*ArtifactID) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{6} +} + +func (x *ArtifactID) GetArtifactKey() *ArtifactKey { + if x != nil { + return x.ArtifactKey + } + return nil +} + +func (x *ArtifactID) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *ArtifactID) GetPartitions() *Partitions { + if x != nil { + return x.Partitions + } + return nil +} + +func (x *ArtifactID) GetTimePartition() *TimePartition { + if x != nil { + return x.TimePartition + } + return nil +} + +type ArtifactTag struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ArtifactKey *ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` + Value *LabelValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ArtifactTag) Reset() { + *x = ArtifactTag{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactTag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactTag) ProtoMessage() {} + +func (x *ArtifactTag) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactTag.ProtoReflect.Descriptor instead. +func (*ArtifactTag) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{7} +} + +func (x *ArtifactTag) GetArtifactKey() *ArtifactKey { + if x != nil { + return x.ArtifactKey + } + return nil +} + +func (x *ArtifactTag) GetValue() *LabelValue { + if x != nil { + return x.Value + } + return nil +} + +// Uniqueness constraints for Artifacts +// - project, domain, name, version, partitions +// +// Option 2 (tags are standalone, point to an individual artifact id): +// - project, domain, name, alias (points to one partition if partitioned) +// - project, domain, name, partition key, partition value +type ArtifactQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Identifier: + // + // *ArtifactQuery_ArtifactId + // *ArtifactQuery_ArtifactTag + // *ArtifactQuery_Uri + // *ArtifactQuery_Binding + Identifier isArtifactQuery_Identifier `protobuf_oneof:"identifier"` +} + +func (x *ArtifactQuery) Reset() { + *x = ArtifactQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactQuery) ProtoMessage() {} + +func (x *ArtifactQuery) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_artifact_id_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactQuery.ProtoReflect.Descriptor instead. +func (*ArtifactQuery) Descriptor() ([]byte, []int) { + return file_flyteidl_core_artifact_id_proto_rawDescGZIP(), []int{8} +} + +func (m *ArtifactQuery) GetIdentifier() isArtifactQuery_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + +func (x *ArtifactQuery) GetArtifactId() *ArtifactID { + if x, ok := x.GetIdentifier().(*ArtifactQuery_ArtifactId); ok { + return x.ArtifactId + } + return nil +} + +func (x *ArtifactQuery) GetArtifactTag() *ArtifactTag { + if x, ok := x.GetIdentifier().(*ArtifactQuery_ArtifactTag); ok { + return x.ArtifactTag + } + return nil +} + +func (x *ArtifactQuery) GetUri() string { + if x, ok := x.GetIdentifier().(*ArtifactQuery_Uri); ok { + return x.Uri + } + return "" +} + +func (x *ArtifactQuery) GetBinding() *ArtifactBindingData { + if x, ok := x.GetIdentifier().(*ArtifactQuery_Binding); ok { + return x.Binding + } + return nil +} + +type isArtifactQuery_Identifier interface { + isArtifactQuery_Identifier() +} + +type ArtifactQuery_ArtifactId struct { + ArtifactId *ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type ArtifactQuery_ArtifactTag struct { + ArtifactTag *ArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3,oneof"` +} + +type ArtifactQuery_Uri struct { + Uri string `protobuf:"bytes,3,opt,name=uri,proto3,oneof"` +} + +type ArtifactQuery_Binding struct { + // This is used in the trigger case, where a user specifies a value for an input that is one of the triggering + // artifacts, or a partition value derived from a triggering artifact. + Binding *ArtifactBindingData `protobuf:"bytes,4,opt,name=binding,proto3,oneof"` +} + +func (*ArtifactQuery_ArtifactId) isArtifactQuery_Identifier() {} + +func (*ArtifactQuery_ArtifactTag) isArtifactQuery_Identifier() {} + +func (*ArtifactQuery_Uri) isArtifactQuery_Identifier() {} + +func (*ArtifactQuery_Binding) isArtifactQuery_Identifier() {} + +var File_flyteidl_core_artifact_id_proto protoreflect.FileDescriptor + +var file_flyteidl_core_artifact_id_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x65, 0x0a, 0x0b, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, + 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0xb9, 0x01, 0x0a, 0x13, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, + 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x25, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x12, 0x35, 0x0a, + 0x16, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x61, + 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, + 0x13, 0x62, 0x69, 0x6e, 0x64, 0x54, 0x6f, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, + 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, + 0x72, 0x6d, 0x42, 0x10, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x24, 0x0a, 0x10, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x42, 0x69, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x22, 0x92, 0x02, 0x0a, 0x0a, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x61, + 0x74, 0x69, 0x63, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, + 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, + 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x51, 0x0a, 0x11, 0x74, + 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x10, 0x74, 0x72, + 0x69, 0x67, 0x67, 0x65, 0x72, 0x65, 0x64, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x46, + 0x0a, 0x0d, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x42, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x9d, 0x01, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, + 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x53, 0x0a, 0x0a, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x40, 0x0a, 0x0d, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0xe5, 0x01, 0x0a, 0x0a, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, + 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, + 0x65, 0x79, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, + 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x43, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x74, 0x69, 0x6d, 0x65, + 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7d, 0x0a, 0x0b, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf0, 0x01, 0x0a, 0x0d, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3c, 0x0a, 0x0b, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x48, 0x00, 0x52, 0x0b, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x03, 0x75, 0x72, 0x69, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x3e, 0x0a, + 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, + 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x42, 0x0c, 0x0a, + 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0xb5, 0x01, 0x0a, 0x11, + 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x42, 0x0f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, + 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, + 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, + 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_artifact_id_proto_rawDescOnce sync.Once + file_flyteidl_core_artifact_id_proto_rawDescData = file_flyteidl_core_artifact_id_proto_rawDesc +) + +func file_flyteidl_core_artifact_id_proto_rawDescGZIP() []byte { + file_flyteidl_core_artifact_id_proto_rawDescOnce.Do(func() { + file_flyteidl_core_artifact_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_artifact_id_proto_rawDescData) + }) + return file_flyteidl_core_artifact_id_proto_rawDescData +} + +var file_flyteidl_core_artifact_id_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_flyteidl_core_artifact_id_proto_goTypes = []interface{}{ + (*ArtifactKey)(nil), // 0: flyteidl.core.ArtifactKey + (*ArtifactBindingData)(nil), // 1: flyteidl.core.ArtifactBindingData + (*InputBindingData)(nil), // 2: flyteidl.core.InputBindingData + (*LabelValue)(nil), // 3: flyteidl.core.LabelValue + (*Partitions)(nil), // 4: flyteidl.core.Partitions + (*TimePartition)(nil), // 5: flyteidl.core.TimePartition + (*ArtifactID)(nil), // 6: flyteidl.core.ArtifactID + (*ArtifactTag)(nil), // 7: flyteidl.core.ArtifactTag + (*ArtifactQuery)(nil), // 8: flyteidl.core.ArtifactQuery + nil, // 9: flyteidl.core.Partitions.ValueEntry + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp +} +var file_flyteidl_core_artifact_id_proto_depIdxs = []int32{ + 10, // 0: flyteidl.core.LabelValue.time_value:type_name -> google.protobuf.Timestamp + 1, // 1: flyteidl.core.LabelValue.triggered_binding:type_name -> flyteidl.core.ArtifactBindingData + 2, // 2: flyteidl.core.LabelValue.input_binding:type_name -> flyteidl.core.InputBindingData + 9, // 3: flyteidl.core.Partitions.value:type_name -> flyteidl.core.Partitions.ValueEntry + 3, // 4: flyteidl.core.TimePartition.value:type_name -> flyteidl.core.LabelValue + 0, // 5: flyteidl.core.ArtifactID.artifact_key:type_name -> flyteidl.core.ArtifactKey + 4, // 6: flyteidl.core.ArtifactID.partitions:type_name -> flyteidl.core.Partitions + 5, // 7: flyteidl.core.ArtifactID.time_partition:type_name -> flyteidl.core.TimePartition + 0, // 8: flyteidl.core.ArtifactTag.artifact_key:type_name -> flyteidl.core.ArtifactKey + 3, // 9: flyteidl.core.ArtifactTag.value:type_name -> flyteidl.core.LabelValue + 6, // 10: flyteidl.core.ArtifactQuery.artifact_id:type_name -> flyteidl.core.ArtifactID + 7, // 11: flyteidl.core.ArtifactQuery.artifact_tag:type_name -> flyteidl.core.ArtifactTag + 1, // 12: flyteidl.core.ArtifactQuery.binding:type_name -> flyteidl.core.ArtifactBindingData + 3, // 13: flyteidl.core.Partitions.ValueEntry.value:type_name -> flyteidl.core.LabelValue + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_artifact_id_proto_init() } +func file_flyteidl_core_artifact_id_proto_init() { + if File_flyteidl_core_artifact_id_proto != nil { + return + } + file_flyteidl_core_identifier_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_artifact_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactBindingData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InputBindingData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Partitions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimePartition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactTag); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_artifact_id_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*ArtifactBindingData_PartitionKey)(nil), + (*ArtifactBindingData_BindToTimePartition)(nil), + } + file_flyteidl_core_artifact_id_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*LabelValue_StaticValue)(nil), + (*LabelValue_TimeValue)(nil), + (*LabelValue_TriggeredBinding)(nil), + (*LabelValue_InputBinding)(nil), + } + file_flyteidl_core_artifact_id_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*ArtifactQuery_ArtifactId)(nil), + (*ArtifactQuery_ArtifactTag)(nil), + (*ArtifactQuery_Uri)(nil), + (*ArtifactQuery_Binding)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_artifact_id_proto_rawDesc, + NumEnums: 0, + NumMessages: 10, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_artifact_id_proto_goTypes, + DependencyIndexes: file_flyteidl_core_artifact_id_proto_depIdxs, + MessageInfos: file_flyteidl_core_artifact_id_proto_msgTypes, + }.Build() + File_flyteidl_core_artifact_id_proto = out.File + file_flyteidl_core_artifact_id_proto_rawDesc = nil + file_flyteidl_core_artifact_id_proto_goTypes = nil + file_flyteidl_core_artifact_id_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go new file mode 100644 index 0000000000..42ea6c8137 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go @@ -0,0 +1,506 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/catalog.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future +type CatalogCacheStatus int32 + +const ( + // Used to indicate that caching was disabled + CatalogCacheStatus_CACHE_DISABLED CatalogCacheStatus = 0 + // Used to indicate that the cache lookup resulted in no matches + CatalogCacheStatus_CACHE_MISS CatalogCacheStatus = 1 + // used to indicate that the associated artifact was a result of a previous execution + CatalogCacheStatus_CACHE_HIT CatalogCacheStatus = 2 + // used to indicate that the resultant artifact was added to the cache + CatalogCacheStatus_CACHE_POPULATED CatalogCacheStatus = 3 + // Used to indicate that cache lookup failed because of an error + CatalogCacheStatus_CACHE_LOOKUP_FAILURE CatalogCacheStatus = 4 + // Used to indicate that cache lookup failed because of an error + CatalogCacheStatus_CACHE_PUT_FAILURE CatalogCacheStatus = 5 + // Used to indicate the cache lookup was skipped + CatalogCacheStatus_CACHE_SKIPPED CatalogCacheStatus = 6 + // Used to indicate that the cache was evicted + CatalogCacheStatus_CACHE_EVICTED CatalogCacheStatus = 7 +) + +// Enum value maps for CatalogCacheStatus. +var ( + CatalogCacheStatus_name = map[int32]string{ + 0: "CACHE_DISABLED", + 1: "CACHE_MISS", + 2: "CACHE_HIT", + 3: "CACHE_POPULATED", + 4: "CACHE_LOOKUP_FAILURE", + 5: "CACHE_PUT_FAILURE", + 6: "CACHE_SKIPPED", + 7: "CACHE_EVICTED", + } + CatalogCacheStatus_value = map[string]int32{ + "CACHE_DISABLED": 0, + "CACHE_MISS": 1, + "CACHE_HIT": 2, + "CACHE_POPULATED": 3, + "CACHE_LOOKUP_FAILURE": 4, + "CACHE_PUT_FAILURE": 5, + "CACHE_SKIPPED": 6, + "CACHE_EVICTED": 7, + } +) + +func (x CatalogCacheStatus) Enum() *CatalogCacheStatus { + p := new(CatalogCacheStatus) + *p = x + return p +} + +func (x CatalogCacheStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CatalogCacheStatus) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_catalog_proto_enumTypes[0].Descriptor() +} + +func (CatalogCacheStatus) Type() protoreflect.EnumType { + return &file_flyteidl_core_catalog_proto_enumTypes[0] +} + +func (x CatalogCacheStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CatalogCacheStatus.Descriptor instead. +func (CatalogCacheStatus) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{0} +} + +// Indicates the status of a catalog reservation operation. +type CatalogReservation_Status int32 + +const ( + // Used to indicate that reservations are disabled + CatalogReservation_RESERVATION_DISABLED CatalogReservation_Status = 0 + // Used to indicate that a reservation was successfully acquired or extended + CatalogReservation_RESERVATION_ACQUIRED CatalogReservation_Status = 1 + // Used to indicate that an active reservation currently exists + CatalogReservation_RESERVATION_EXISTS CatalogReservation_Status = 2 + // Used to indicate that the reservation has been successfully released + CatalogReservation_RESERVATION_RELEASED CatalogReservation_Status = 3 + // Used to indicate that a reservation operation resulted in failure + CatalogReservation_RESERVATION_FAILURE CatalogReservation_Status = 4 +) + +// Enum value maps for CatalogReservation_Status. +var ( + CatalogReservation_Status_name = map[int32]string{ + 0: "RESERVATION_DISABLED", + 1: "RESERVATION_ACQUIRED", + 2: "RESERVATION_EXISTS", + 3: "RESERVATION_RELEASED", + 4: "RESERVATION_FAILURE", + } + CatalogReservation_Status_value = map[string]int32{ + "RESERVATION_DISABLED": 0, + "RESERVATION_ACQUIRED": 1, + "RESERVATION_EXISTS": 2, + "RESERVATION_RELEASED": 3, + "RESERVATION_FAILURE": 4, + } +) + +func (x CatalogReservation_Status) Enum() *CatalogReservation_Status { + p := new(CatalogReservation_Status) + *p = x + return p +} + +func (x CatalogReservation_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CatalogReservation_Status) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_catalog_proto_enumTypes[1].Descriptor() +} + +func (CatalogReservation_Status) Type() protoreflect.EnumType { + return &file_flyteidl_core_catalog_proto_enumTypes[1] +} + +func (x CatalogReservation_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CatalogReservation_Status.Descriptor instead. +func (CatalogReservation_Status) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{2, 0} +} + +type CatalogArtifactTag struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Artifact ID is generated name + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` + // Flyte computes the tag automatically, as the hash of the values + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *CatalogArtifactTag) Reset() { + *x = CatalogArtifactTag{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_catalog_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CatalogArtifactTag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CatalogArtifactTag) ProtoMessage() {} + +func (x *CatalogArtifactTag) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_catalog_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CatalogArtifactTag.ProtoReflect.Descriptor instead. +func (*CatalogArtifactTag) Descriptor() ([]byte, []int) { + return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{0} +} + +func (x *CatalogArtifactTag) GetArtifactId() string { + if x != nil { + return x.ArtifactId + } + return "" +} + +func (x *CatalogArtifactTag) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +// Catalog artifact information with specific metadata +type CatalogMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Dataset ID in the catalog + DatasetId *Identifier `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + // Artifact tag in the catalog + ArtifactTag *CatalogArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` + // Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + // + // Types that are assignable to SourceExecution: + // + // *CatalogMetadata_SourceTaskExecution + SourceExecution isCatalogMetadata_SourceExecution `protobuf_oneof:"source_execution"` +} + +func (x *CatalogMetadata) Reset() { + *x = CatalogMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_catalog_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CatalogMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CatalogMetadata) ProtoMessage() {} + +func (x *CatalogMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_catalog_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CatalogMetadata.ProtoReflect.Descriptor instead. +func (*CatalogMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{1} +} + +func (x *CatalogMetadata) GetDatasetId() *Identifier { + if x != nil { + return x.DatasetId + } + return nil +} + +func (x *CatalogMetadata) GetArtifactTag() *CatalogArtifactTag { + if x != nil { + return x.ArtifactTag + } + return nil +} + +func (m *CatalogMetadata) GetSourceExecution() isCatalogMetadata_SourceExecution { + if m != nil { + return m.SourceExecution + } + return nil +} + +func (x *CatalogMetadata) GetSourceTaskExecution() *TaskExecutionIdentifier { + if x, ok := x.GetSourceExecution().(*CatalogMetadata_SourceTaskExecution); ok { + return x.SourceTaskExecution + } + return nil +} + +type isCatalogMetadata_SourceExecution interface { + isCatalogMetadata_SourceExecution() +} + +type CatalogMetadata_SourceTaskExecution struct { + // Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions + SourceTaskExecution *TaskExecutionIdentifier `protobuf:"bytes,3,opt,name=source_task_execution,json=sourceTaskExecution,proto3,oneof"` +} + +func (*CatalogMetadata_SourceTaskExecution) isCatalogMetadata_SourceExecution() {} + +type CatalogReservation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CatalogReservation) Reset() { + *x = CatalogReservation{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_catalog_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CatalogReservation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CatalogReservation) ProtoMessage() {} + +func (x *CatalogReservation) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_catalog_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CatalogReservation.ProtoReflect.Descriptor instead. +func (*CatalogReservation) Descriptor() ([]byte, []int) { + return file_flyteidl_core_catalog_proto_rawDescGZIP(), []int{2} +} + +var File_flyteidl_core_catalog_proto protoreflect.FileDescriptor + +var file_flyteidl_core_catalog_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x49, 0x0a, 0x12, + 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, + 0x61, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x83, 0x02, 0x0a, 0x0f, 0x43, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x0a, 0x64, + 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x44, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x52, 0x0b, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, 0x67, 0x12, 0x5c, 0x0a, 0x15, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x48, 0x00, 0x52, 0x13, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x9e, 0x01, + 0x0a, 0x12, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x87, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, + 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, + 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x51, 0x55, 0x49, 0x52, 0x45, + 0x44, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x53, 0x54, 0x53, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x52, + 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x4c, 0x45, 0x41, + 0x53, 0x45, 0x44, 0x10, 0x03, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x04, 0x2a, 0xb3, + 0x01, 0x0a, 0x12, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x44, + 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x41, 0x43, + 0x48, 0x45, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x43, + 0x48, 0x45, 0x5f, 0x48, 0x49, 0x54, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x43, 0x48, + 0x45, 0x5f, 0x50, 0x4f, 0x50, 0x55, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x18, 0x0a, + 0x14, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x41, 0x43, 0x48, 0x45, + 0x5f, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x05, 0x12, 0x11, + 0x0a, 0x0d, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, + 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x45, 0x56, 0x49, 0x43, 0x54, + 0x45, 0x44, 0x10, 0x07, 0x42, 0xb2, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x43, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_flyteidl_core_catalog_proto_rawDescOnce sync.Once + file_flyteidl_core_catalog_proto_rawDescData = file_flyteidl_core_catalog_proto_rawDesc +) + +func file_flyteidl_core_catalog_proto_rawDescGZIP() []byte { + file_flyteidl_core_catalog_proto_rawDescOnce.Do(func() { + file_flyteidl_core_catalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_catalog_proto_rawDescData) + }) + return file_flyteidl_core_catalog_proto_rawDescData +} + +var file_flyteidl_core_catalog_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_core_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_flyteidl_core_catalog_proto_goTypes = []interface{}{ + (CatalogCacheStatus)(0), // 0: flyteidl.core.CatalogCacheStatus + (CatalogReservation_Status)(0), // 1: flyteidl.core.CatalogReservation.Status + (*CatalogArtifactTag)(nil), // 2: flyteidl.core.CatalogArtifactTag + (*CatalogMetadata)(nil), // 3: flyteidl.core.CatalogMetadata + (*CatalogReservation)(nil), // 4: flyteidl.core.CatalogReservation + (*Identifier)(nil), // 5: flyteidl.core.Identifier + (*TaskExecutionIdentifier)(nil), // 6: flyteidl.core.TaskExecutionIdentifier +} +var file_flyteidl_core_catalog_proto_depIdxs = []int32{ + 5, // 0: flyteidl.core.CatalogMetadata.dataset_id:type_name -> flyteidl.core.Identifier + 2, // 1: flyteidl.core.CatalogMetadata.artifact_tag:type_name -> flyteidl.core.CatalogArtifactTag + 6, // 2: flyteidl.core.CatalogMetadata.source_task_execution:type_name -> flyteidl.core.TaskExecutionIdentifier + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_catalog_proto_init() } +func file_flyteidl_core_catalog_proto_init() { + if File_flyteidl_core_catalog_proto != nil { + return + } + file_flyteidl_core_identifier_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_catalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CatalogArtifactTag); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_catalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CatalogMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_catalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CatalogReservation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_catalog_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*CatalogMetadata_SourceTaskExecution)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_catalog_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_catalog_proto_goTypes, + DependencyIndexes: file_flyteidl_core_catalog_proto_depIdxs, + EnumInfos: file_flyteidl_core_catalog_proto_enumTypes, + MessageInfos: file_flyteidl_core_catalog_proto_msgTypes, + }.Build() + File_flyteidl_core_catalog_proto = out.File + file_flyteidl_core_catalog_proto_rawDesc = nil + file_flyteidl_core_catalog_proto_goTypes = nil + file_flyteidl_core_catalog_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go new file mode 100644 index 0000000000..4bd119175f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go @@ -0,0 +1,605 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/compiler.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +// step uses this created ConnectionSet +type ConnectionSet struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of all the node ids that are downstream from a given node id + Downstream map[string]*ConnectionSet_IdList `protobuf:"bytes,7,rep,name=downstream,proto3" json:"downstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // A list of all the node ids, that are upstream of this node id + Upstream map[string]*ConnectionSet_IdList `protobuf:"bytes,8,rep,name=upstream,proto3" json:"upstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ConnectionSet) Reset() { + *x = ConnectionSet{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConnectionSet) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectionSet) ProtoMessage() {} + +func (x *ConnectionSet) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConnectionSet.ProtoReflect.Descriptor instead. +func (*ConnectionSet) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{0} +} + +func (x *ConnectionSet) GetDownstream() map[string]*ConnectionSet_IdList { + if x != nil { + return x.Downstream + } + return nil +} + +func (x *ConnectionSet) GetUpstream() map[string]*ConnectionSet_IdList { + if x != nil { + return x.Upstream + } + return nil +} + +// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +type CompiledWorkflow struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Completely contained Workflow Template + Template *WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + Connections *ConnectionSet `protobuf:"bytes,2,opt,name=connections,proto3" json:"connections,omitempty"` +} + +func (x *CompiledWorkflow) Reset() { + *x = CompiledWorkflow{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompiledWorkflow) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompiledWorkflow) ProtoMessage() {} + +func (x *CompiledWorkflow) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompiledWorkflow.ProtoReflect.Descriptor instead. +func (*CompiledWorkflow) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{1} +} + +func (x *CompiledWorkflow) GetTemplate() *WorkflowTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *CompiledWorkflow) GetConnections() *ConnectionSet { + if x != nil { + return x.Connections + } + return nil +} + +// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer +type CompiledLaunchPlan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Completely contained LaunchPlan Template + Template *LaunchPlanTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` +} + +func (x *CompiledLaunchPlan) Reset() { + *x = CompiledLaunchPlan{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompiledLaunchPlan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompiledLaunchPlan) ProtoMessage() {} + +func (x *CompiledLaunchPlan) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompiledLaunchPlan.ProtoReflect.Descriptor instead. +func (*CompiledLaunchPlan) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{2} +} + +func (x *CompiledLaunchPlan) GetTemplate() *LaunchPlanTemplate { + if x != nil { + return x.Template + } + return nil +} + +// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +type CompiledTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Completely contained TaskTemplate + Template *TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` +} + +func (x *CompiledTask) Reset() { + *x = CompiledTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompiledTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompiledTask) ProtoMessage() {} + +func (x *CompiledTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompiledTask.ProtoReflect.Descriptor instead. +func (*CompiledTask) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{3} +} + +func (x *CompiledTask) GetTemplate() *TaskTemplate { + if x != nil { + return x.Template + } + return nil +} + +// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +// compiled subworkflows. +type CompiledWorkflowClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + Primary *CompiledWorkflow `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` + // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + // as an inlined workflow + // +optional + SubWorkflows []*CompiledWorkflow `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` + // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + // +required (at least 1) + Tasks []*CompiledTask `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` + // A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + // with a given id, i.e., every launch plan has a unique id. + LaunchPlans []*CompiledLaunchPlan `protobuf:"bytes,4,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` +} + +func (x *CompiledWorkflowClosure) Reset() { + *x = CompiledWorkflowClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CompiledWorkflowClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CompiledWorkflowClosure) ProtoMessage() {} + +func (x *CompiledWorkflowClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CompiledWorkflowClosure.ProtoReflect.Descriptor instead. +func (*CompiledWorkflowClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{4} +} + +func (x *CompiledWorkflowClosure) GetPrimary() *CompiledWorkflow { + if x != nil { + return x.Primary + } + return nil +} + +func (x *CompiledWorkflowClosure) GetSubWorkflows() []*CompiledWorkflow { + if x != nil { + return x.SubWorkflows + } + return nil +} + +func (x *CompiledWorkflowClosure) GetTasks() []*CompiledTask { + if x != nil { + return x.Tasks + } + return nil +} + +func (x *CompiledWorkflowClosure) GetLaunchPlans() []*CompiledLaunchPlan { + if x != nil { + return x.LaunchPlans + } + return nil +} + +type ConnectionSet_IdList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` +} + +func (x *ConnectionSet_IdList) Reset() { + *x = ConnectionSet_IdList{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_compiler_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConnectionSet_IdList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectionSet_IdList) ProtoMessage() {} + +func (x *ConnectionSet_IdList) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_compiler_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConnectionSet_IdList.ProtoReflect.Descriptor instead. +func (*ConnectionSet_IdList) Descriptor() ([]byte, []int) { + return file_flyteidl_core_compiler_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *ConnectionSet_IdList) GetIds() []string { + if x != nil { + return x.Ids + } + return nil +} + +var File_flyteidl_core_compiler_proto protoreflect.FileDescriptor + +var file_flyteidl_core_compiler_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x4c, 0x0a, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x46, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x08, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x1a, 0x1a, 0x0a, + 0x06, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x1a, 0x62, 0x0a, 0x0f, 0x44, 0x6f, 0x77, + 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x60, 0x0a, + 0x0d, 0x55, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x8f, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x3b, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x53, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x61, 0x75, + 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x3d, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, 0x47, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x22, + 0x93, 0x02, 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x39, 0x0a, 0x07, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x07, 0x70, + 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x0c, + 0x73, 0x75, 0x62, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0x31, 0x0a, 0x05, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, + 0x44, 0x0a, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x0b, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x43, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, + 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, + 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, + 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, + 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_compiler_proto_rawDescOnce sync.Once + file_flyteidl_core_compiler_proto_rawDescData = file_flyteidl_core_compiler_proto_rawDesc +) + +func file_flyteidl_core_compiler_proto_rawDescGZIP() []byte { + file_flyteidl_core_compiler_proto_rawDescOnce.Do(func() { + file_flyteidl_core_compiler_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_compiler_proto_rawDescData) + }) + return file_flyteidl_core_compiler_proto_rawDescData +} + +var file_flyteidl_core_compiler_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_flyteidl_core_compiler_proto_goTypes = []interface{}{ + (*ConnectionSet)(nil), // 0: flyteidl.core.ConnectionSet + (*CompiledWorkflow)(nil), // 1: flyteidl.core.CompiledWorkflow + (*CompiledLaunchPlan)(nil), // 2: flyteidl.core.CompiledLaunchPlan + (*CompiledTask)(nil), // 3: flyteidl.core.CompiledTask + (*CompiledWorkflowClosure)(nil), // 4: flyteidl.core.CompiledWorkflowClosure + (*ConnectionSet_IdList)(nil), // 5: flyteidl.core.ConnectionSet.IdList + nil, // 6: flyteidl.core.ConnectionSet.DownstreamEntry + nil, // 7: flyteidl.core.ConnectionSet.UpstreamEntry + (*WorkflowTemplate)(nil), // 8: flyteidl.core.WorkflowTemplate + (*LaunchPlanTemplate)(nil), // 9: flyteidl.core.LaunchPlanTemplate + (*TaskTemplate)(nil), // 10: flyteidl.core.TaskTemplate +} +var file_flyteidl_core_compiler_proto_depIdxs = []int32{ + 6, // 0: flyteidl.core.ConnectionSet.downstream:type_name -> flyteidl.core.ConnectionSet.DownstreamEntry + 7, // 1: flyteidl.core.ConnectionSet.upstream:type_name -> flyteidl.core.ConnectionSet.UpstreamEntry + 8, // 2: flyteidl.core.CompiledWorkflow.template:type_name -> flyteidl.core.WorkflowTemplate + 0, // 3: flyteidl.core.CompiledWorkflow.connections:type_name -> flyteidl.core.ConnectionSet + 9, // 4: flyteidl.core.CompiledLaunchPlan.template:type_name -> flyteidl.core.LaunchPlanTemplate + 10, // 5: flyteidl.core.CompiledTask.template:type_name -> flyteidl.core.TaskTemplate + 1, // 6: flyteidl.core.CompiledWorkflowClosure.primary:type_name -> flyteidl.core.CompiledWorkflow + 1, // 7: flyteidl.core.CompiledWorkflowClosure.sub_workflows:type_name -> flyteidl.core.CompiledWorkflow + 3, // 8: flyteidl.core.CompiledWorkflowClosure.tasks:type_name -> flyteidl.core.CompiledTask + 2, // 9: flyteidl.core.CompiledWorkflowClosure.launch_plans:type_name -> flyteidl.core.CompiledLaunchPlan + 5, // 10: flyteidl.core.ConnectionSet.DownstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList + 5, // 11: flyteidl.core.ConnectionSet.UpstreamEntry.value:type_name -> flyteidl.core.ConnectionSet.IdList + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_compiler_proto_init() } +func file_flyteidl_core_compiler_proto_init() { + if File_flyteidl_core_compiler_proto != nil { + return + } + file_flyteidl_core_identifier_proto_init() + file_flyteidl_core_interface_proto_init() + file_flyteidl_core_workflow_proto_init() + file_flyteidl_core_tasks_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_compiler_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionSet); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_compiler_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompiledWorkflow); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_compiler_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompiledLaunchPlan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_compiler_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompiledTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_compiler_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CompiledWorkflowClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_compiler_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionSet_IdList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_compiler_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_compiler_proto_goTypes, + DependencyIndexes: file_flyteidl_core_compiler_proto_depIdxs, + MessageInfos: file_flyteidl_core_compiler_proto_msgTypes, + }.Build() + File_flyteidl_core_compiler_proto = out.File + file_flyteidl_core_compiler_proto_rawDesc = nil + file_flyteidl_core_compiler_proto_goTypes = nil + file_flyteidl_core_compiler_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go new file mode 100644 index 0000000000..f63309fd8e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go @@ -0,0 +1,651 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/condition.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Binary Operator for each expression +type ComparisonExpression_Operator int32 + +const ( + ComparisonExpression_EQ ComparisonExpression_Operator = 0 + ComparisonExpression_NEQ ComparisonExpression_Operator = 1 + // Greater Than + ComparisonExpression_GT ComparisonExpression_Operator = 2 + ComparisonExpression_GTE ComparisonExpression_Operator = 3 + // Less Than + ComparisonExpression_LT ComparisonExpression_Operator = 4 + ComparisonExpression_LTE ComparisonExpression_Operator = 5 +) + +// Enum value maps for ComparisonExpression_Operator. +var ( + ComparisonExpression_Operator_name = map[int32]string{ + 0: "EQ", + 1: "NEQ", + 2: "GT", + 3: "GTE", + 4: "LT", + 5: "LTE", + } + ComparisonExpression_Operator_value = map[string]int32{ + "EQ": 0, + "NEQ": 1, + "GT": 2, + "GTE": 3, + "LT": 4, + "LTE": 5, + } +) + +func (x ComparisonExpression_Operator) Enum() *ComparisonExpression_Operator { + p := new(ComparisonExpression_Operator) + *p = x + return p +} + +func (x ComparisonExpression_Operator) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ComparisonExpression_Operator) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_condition_proto_enumTypes[0].Descriptor() +} + +func (ComparisonExpression_Operator) Type() protoreflect.EnumType { + return &file_flyteidl_core_condition_proto_enumTypes[0] +} + +func (x ComparisonExpression_Operator) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ComparisonExpression_Operator.Descriptor instead. +func (ComparisonExpression_Operator) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{0, 0} +} + +// Nested conditions. They can be conjoined using AND / OR +// Order of evaluation is not important as the operators are Commutative +type ConjunctionExpression_LogicalOperator int32 + +const ( + // Conjunction + ConjunctionExpression_AND ConjunctionExpression_LogicalOperator = 0 + ConjunctionExpression_OR ConjunctionExpression_LogicalOperator = 1 +) + +// Enum value maps for ConjunctionExpression_LogicalOperator. +var ( + ConjunctionExpression_LogicalOperator_name = map[int32]string{ + 0: "AND", + 1: "OR", + } + ConjunctionExpression_LogicalOperator_value = map[string]int32{ + "AND": 0, + "OR": 1, + } +) + +func (x ConjunctionExpression_LogicalOperator) Enum() *ConjunctionExpression_LogicalOperator { + p := new(ConjunctionExpression_LogicalOperator) + *p = x + return p +} + +func (x ConjunctionExpression_LogicalOperator) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConjunctionExpression_LogicalOperator) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_condition_proto_enumTypes[1].Descriptor() +} + +func (ConjunctionExpression_LogicalOperator) Type() protoreflect.EnumType { + return &file_flyteidl_core_condition_proto_enumTypes[1] +} + +func (x ConjunctionExpression_LogicalOperator) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ConjunctionExpression_LogicalOperator.Descriptor instead. +func (ConjunctionExpression_LogicalOperator) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{3, 0} +} + +// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +// Each expression results in a boolean result. +type ComparisonExpression struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Operator ComparisonExpression_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ComparisonExpression_Operator" json:"operator,omitempty"` + LeftValue *Operand `protobuf:"bytes,2,opt,name=left_value,json=leftValue,proto3" json:"left_value,omitempty"` + RightValue *Operand `protobuf:"bytes,3,opt,name=right_value,json=rightValue,proto3" json:"right_value,omitempty"` +} + +func (x *ComparisonExpression) Reset() { + *x = ComparisonExpression{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_condition_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ComparisonExpression) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ComparisonExpression) ProtoMessage() {} + +func (x *ComparisonExpression) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_condition_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ComparisonExpression.ProtoReflect.Descriptor instead. +func (*ComparisonExpression) Descriptor() ([]byte, []int) { + return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{0} +} + +func (x *ComparisonExpression) GetOperator() ComparisonExpression_Operator { + if x != nil { + return x.Operator + } + return ComparisonExpression_EQ +} + +func (x *ComparisonExpression) GetLeftValue() *Operand { + if x != nil { + return x.LeftValue + } + return nil +} + +func (x *ComparisonExpression) GetRightValue() *Operand { + if x != nil { + return x.RightValue + } + return nil +} + +// Defines an operand to a comparison expression. +type Operand struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Val: + // + // *Operand_Primitive + // *Operand_Var + // *Operand_Scalar + Val isOperand_Val `protobuf_oneof:"val"` +} + +func (x *Operand) Reset() { + *x = Operand{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_condition_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Operand) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Operand) ProtoMessage() {} + +func (x *Operand) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_condition_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Operand.ProtoReflect.Descriptor instead. +func (*Operand) Descriptor() ([]byte, []int) { + return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{1} +} + +func (m *Operand) GetVal() isOperand_Val { + if m != nil { + return m.Val + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/core/condition.proto. +func (x *Operand) GetPrimitive() *Primitive { + if x, ok := x.GetVal().(*Operand_Primitive); ok { + return x.Primitive + } + return nil +} + +func (x *Operand) GetVar() string { + if x, ok := x.GetVal().(*Operand_Var); ok { + return x.Var + } + return "" +} + +func (x *Operand) GetScalar() *Scalar { + if x, ok := x.GetVal().(*Operand_Scalar); ok { + return x.Scalar + } + return nil +} + +type isOperand_Val interface { + isOperand_Val() +} + +type Operand_Primitive struct { + // Can be a constant + // + // Deprecated: Marked as deprecated in flyteidl/core/condition.proto. + Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type Operand_Var struct { + // Or one of this node's input variables + Var string `protobuf:"bytes,2,opt,name=var,proto3,oneof"` +} + +type Operand_Scalar struct { + // Replace the primitive field + Scalar *Scalar `protobuf:"bytes,3,opt,name=scalar,proto3,oneof"` +} + +func (*Operand_Primitive) isOperand_Val() {} + +func (*Operand_Var) isOperand_Val() {} + +func (*Operand_Scalar) isOperand_Val() {} + +// Defines a boolean expression tree. It can be a simple or a conjunction expression. +// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +type BooleanExpression struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Expr: + // + // *BooleanExpression_Conjunction + // *BooleanExpression_Comparison + Expr isBooleanExpression_Expr `protobuf_oneof:"expr"` +} + +func (x *BooleanExpression) Reset() { + *x = BooleanExpression{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_condition_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BooleanExpression) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BooleanExpression) ProtoMessage() {} + +func (x *BooleanExpression) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_condition_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BooleanExpression.ProtoReflect.Descriptor instead. +func (*BooleanExpression) Descriptor() ([]byte, []int) { + return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{2} +} + +func (m *BooleanExpression) GetExpr() isBooleanExpression_Expr { + if m != nil { + return m.Expr + } + return nil +} + +func (x *BooleanExpression) GetConjunction() *ConjunctionExpression { + if x, ok := x.GetExpr().(*BooleanExpression_Conjunction); ok { + return x.Conjunction + } + return nil +} + +func (x *BooleanExpression) GetComparison() *ComparisonExpression { + if x, ok := x.GetExpr().(*BooleanExpression_Comparison); ok { + return x.Comparison + } + return nil +} + +type isBooleanExpression_Expr interface { + isBooleanExpression_Expr() +} + +type BooleanExpression_Conjunction struct { + Conjunction *ConjunctionExpression `protobuf:"bytes,1,opt,name=conjunction,proto3,oneof"` +} + +type BooleanExpression_Comparison struct { + Comparison *ComparisonExpression `protobuf:"bytes,2,opt,name=comparison,proto3,oneof"` +} + +func (*BooleanExpression_Conjunction) isBooleanExpression_Expr() {} + +func (*BooleanExpression_Comparison) isBooleanExpression_Expr() {} + +// Defines a conjunction expression of two boolean expressions. +type ConjunctionExpression struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Operator ConjunctionExpression_LogicalOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ConjunctionExpression_LogicalOperator" json:"operator,omitempty"` + LeftExpression *BooleanExpression `protobuf:"bytes,2,opt,name=left_expression,json=leftExpression,proto3" json:"left_expression,omitempty"` + RightExpression *BooleanExpression `protobuf:"bytes,3,opt,name=right_expression,json=rightExpression,proto3" json:"right_expression,omitempty"` +} + +func (x *ConjunctionExpression) Reset() { + *x = ConjunctionExpression{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_condition_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ConjunctionExpression) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConjunctionExpression) ProtoMessage() {} + +func (x *ConjunctionExpression) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_condition_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConjunctionExpression.ProtoReflect.Descriptor instead. +func (*ConjunctionExpression) Descriptor() ([]byte, []int) { + return file_flyteidl_core_condition_proto_rawDescGZIP(), []int{3} +} + +func (x *ConjunctionExpression) GetOperator() ConjunctionExpression_LogicalOperator { + if x != nil { + return x.Operator + } + return ConjunctionExpression_AND +} + +func (x *ConjunctionExpression) GetLeftExpression() *BooleanExpression { + if x != nil { + return x.LeftExpression + } + return nil +} + +func (x *ConjunctionExpression) GetRightExpression() *BooleanExpression { + if x != nil { + return x.RightExpression + } + return nil +} + +var File_flyteidl_core_condition_proto protoreflect.FileDescriptor + +var file_flyteidl_core_condition_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8f, 0x02, 0x0a, + 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, + 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x35, 0x0a, 0x0a, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64, 0x52, 0x09, 0x6c, 0x65, 0x66, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x0b, 0x72, 0x69, 0x67, 0x68, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x70, 0x65, 0x72, + 0x61, 0x6e, 0x64, 0x52, 0x0a, 0x72, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0x3d, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x06, 0x0a, 0x02, 0x45, + 0x51, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x45, 0x51, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, + 0x47, 0x54, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x54, 0x45, 0x10, 0x03, 0x12, 0x06, 0x0a, + 0x02, 0x4c, 0x54, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x54, 0x45, 0x10, 0x05, 0x22, 0x93, + 0x01, 0x0a, 0x07, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x6e, 0x64, 0x12, 0x3c, 0x0a, 0x09, 0x70, 0x72, + 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, + 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x42, 0x02, 0x18, 0x01, 0x48, 0x00, 0x52, 0x09, 0x70, + 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x12, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x2f, 0x0a, 0x06, + 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x61, + 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x42, 0x05, 0x0a, + 0x03, 0x76, 0x61, 0x6c, 0x22, 0xac, 0x01, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x48, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x43, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, + 0x73, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x65, + 0x78, 0x70, 0x72, 0x22, 0xa5, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, + 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x34, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x43, 0x6f, 0x6e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x49, 0x0a, 0x0f, 0x6c, 0x65, 0x66, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6c, 0x65, 0x66, 0x74, + 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x72, 0x69, + 0x67, 0x68, 0x74, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x45, 0x78, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x72, 0x69, 0x67, 0x68, 0x74, 0x45, 0x78, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x22, 0x0a, 0x0f, 0x4c, 0x6f, 0x67, 0x69, 0x63, + 0x61, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, + 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x52, 0x10, 0x01, 0x42, 0xb4, 0x01, 0x0a, 0x11, + 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x42, 0x0e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, + 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, + 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, + 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_condition_proto_rawDescOnce sync.Once + file_flyteidl_core_condition_proto_rawDescData = file_flyteidl_core_condition_proto_rawDesc +) + +func file_flyteidl_core_condition_proto_rawDescGZIP() []byte { + file_flyteidl_core_condition_proto_rawDescOnce.Do(func() { + file_flyteidl_core_condition_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_condition_proto_rawDescData) + }) + return file_flyteidl_core_condition_proto_rawDescData +} + +var file_flyteidl_core_condition_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_core_condition_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_flyteidl_core_condition_proto_goTypes = []interface{}{ + (ComparisonExpression_Operator)(0), // 0: flyteidl.core.ComparisonExpression.Operator + (ConjunctionExpression_LogicalOperator)(0), // 1: flyteidl.core.ConjunctionExpression.LogicalOperator + (*ComparisonExpression)(nil), // 2: flyteidl.core.ComparisonExpression + (*Operand)(nil), // 3: flyteidl.core.Operand + (*BooleanExpression)(nil), // 4: flyteidl.core.BooleanExpression + (*ConjunctionExpression)(nil), // 5: flyteidl.core.ConjunctionExpression + (*Primitive)(nil), // 6: flyteidl.core.Primitive + (*Scalar)(nil), // 7: flyteidl.core.Scalar +} +var file_flyteidl_core_condition_proto_depIdxs = []int32{ + 0, // 0: flyteidl.core.ComparisonExpression.operator:type_name -> flyteidl.core.ComparisonExpression.Operator + 3, // 1: flyteidl.core.ComparisonExpression.left_value:type_name -> flyteidl.core.Operand + 3, // 2: flyteidl.core.ComparisonExpression.right_value:type_name -> flyteidl.core.Operand + 6, // 3: flyteidl.core.Operand.primitive:type_name -> flyteidl.core.Primitive + 7, // 4: flyteidl.core.Operand.scalar:type_name -> flyteidl.core.Scalar + 5, // 5: flyteidl.core.BooleanExpression.conjunction:type_name -> flyteidl.core.ConjunctionExpression + 2, // 6: flyteidl.core.BooleanExpression.comparison:type_name -> flyteidl.core.ComparisonExpression + 1, // 7: flyteidl.core.ConjunctionExpression.operator:type_name -> flyteidl.core.ConjunctionExpression.LogicalOperator + 4, // 8: flyteidl.core.ConjunctionExpression.left_expression:type_name -> flyteidl.core.BooleanExpression + 4, // 9: flyteidl.core.ConjunctionExpression.right_expression:type_name -> flyteidl.core.BooleanExpression + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_condition_proto_init() } +func file_flyteidl_core_condition_proto_init() { + if File_flyteidl_core_condition_proto != nil { + return + } + file_flyteidl_core_literals_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_condition_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComparisonExpression); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_condition_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Operand); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_condition_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BooleanExpression); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_condition_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConjunctionExpression); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_condition_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*Operand_Primitive)(nil), + (*Operand_Var)(nil), + (*Operand_Scalar)(nil), + } + file_flyteidl_core_condition_proto_msgTypes[2].OneofWrappers = []interface{}{ + (*BooleanExpression_Conjunction)(nil), + (*BooleanExpression_Comparison)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_condition_proto_rawDesc, + NumEnums: 2, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_condition_proto_goTypes, + DependencyIndexes: file_flyteidl_core_condition_proto_depIdxs, + EnumInfos: file_flyteidl_core_condition_proto_enumTypes, + MessageInfos: file_flyteidl_core_condition_proto_msgTypes, + }.Build() + File_flyteidl_core_condition_proto = out.File + file_flyteidl_core_condition_proto_rawDesc = nil + file_flyteidl_core_condition_proto_goTypes = nil + file_flyteidl_core_condition_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go new file mode 100644 index 0000000000..2cc910b386 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go @@ -0,0 +1,228 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/dynamic_job.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Describes a set of tasks to execute and how the final outputs are produced. +type DynamicJobSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A collection of nodes to execute. + Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` + // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + // specified, is the count of nodes repeated field. + MinSuccesses int64 `protobuf:"varint,2,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"` + // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + // in bindings should have the generated id for the subtask. + Outputs []*Binding `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` + // [Optional] A complete list of task specs referenced in nodes. + Tasks []*TaskTemplate `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` + // [Optional] A complete list of task specs referenced in nodes. + Subworkflows []*WorkflowTemplate `protobuf:"bytes,5,rep,name=subworkflows,proto3" json:"subworkflows,omitempty"` +} + +func (x *DynamicJobSpec) Reset() { + *x = DynamicJobSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_dynamic_job_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicJobSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicJobSpec) ProtoMessage() {} + +func (x *DynamicJobSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_dynamic_job_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicJobSpec.ProtoReflect.Descriptor instead. +func (*DynamicJobSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_core_dynamic_job_proto_rawDescGZIP(), []int{0} +} + +func (x *DynamicJobSpec) GetNodes() []*Node { + if x != nil { + return x.Nodes + } + return nil +} + +func (x *DynamicJobSpec) GetMinSuccesses() int64 { + if x != nil { + return x.MinSuccesses + } + return 0 +} + +func (x *DynamicJobSpec) GetOutputs() []*Binding { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *DynamicJobSpec) GetTasks() []*TaskTemplate { + if x != nil { + return x.Tasks + } + return nil +} + +func (x *DynamicJobSpec) GetSubworkflows() []*WorkflowTemplate { + if x != nil { + return x.Subworkflows + } + return nil +} + +var File_flyteidl_core_dynamic_job_proto protoreflect.FileDescriptor + +var file_flyteidl_core_dynamic_job_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x02, 0x0a, 0x0e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, + 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6d, 0x69, + 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x31, 0x0a, 0x05, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, + 0x43, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x73, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0f, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, + 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, + 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, + 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_dynamic_job_proto_rawDescOnce sync.Once + file_flyteidl_core_dynamic_job_proto_rawDescData = file_flyteidl_core_dynamic_job_proto_rawDesc +) + +func file_flyteidl_core_dynamic_job_proto_rawDescGZIP() []byte { + file_flyteidl_core_dynamic_job_proto_rawDescOnce.Do(func() { + file_flyteidl_core_dynamic_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_dynamic_job_proto_rawDescData) + }) + return file_flyteidl_core_dynamic_job_proto_rawDescData +} + +var file_flyteidl_core_dynamic_job_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_core_dynamic_job_proto_goTypes = []interface{}{ + (*DynamicJobSpec)(nil), // 0: flyteidl.core.DynamicJobSpec + (*Node)(nil), // 1: flyteidl.core.Node + (*Binding)(nil), // 2: flyteidl.core.Binding + (*TaskTemplate)(nil), // 3: flyteidl.core.TaskTemplate + (*WorkflowTemplate)(nil), // 4: flyteidl.core.WorkflowTemplate +} +var file_flyteidl_core_dynamic_job_proto_depIdxs = []int32{ + 1, // 0: flyteidl.core.DynamicJobSpec.nodes:type_name -> flyteidl.core.Node + 2, // 1: flyteidl.core.DynamicJobSpec.outputs:type_name -> flyteidl.core.Binding + 3, // 2: flyteidl.core.DynamicJobSpec.tasks:type_name -> flyteidl.core.TaskTemplate + 4, // 3: flyteidl.core.DynamicJobSpec.subworkflows:type_name -> flyteidl.core.WorkflowTemplate + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_dynamic_job_proto_init() } +func file_flyteidl_core_dynamic_job_proto_init() { + if File_flyteidl_core_dynamic_job_proto != nil { + return + } + file_flyteidl_core_tasks_proto_init() + file_flyteidl_core_workflow_proto_init() + file_flyteidl_core_literals_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_dynamic_job_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicJobSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_dynamic_job_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_dynamic_job_proto_goTypes, + DependencyIndexes: file_flyteidl_core_dynamic_job_proto_depIdxs, + MessageInfos: file_flyteidl_core_dynamic_job_proto_msgTypes, + }.Build() + File_flyteidl_core_dynamic_job_proto = out.File + file_flyteidl_core_dynamic_job_proto_rawDesc = nil + file_flyteidl_core_dynamic_job_proto_goTypes = nil + file_flyteidl_core_dynamic_job_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go new file mode 100644 index 0000000000..61e833ed1d --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go @@ -0,0 +1,320 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/errors.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a generic error type that dictates the behavior of the retry strategy. +type ContainerError_Kind int32 + +const ( + ContainerError_NON_RECOVERABLE ContainerError_Kind = 0 + ContainerError_RECOVERABLE ContainerError_Kind = 1 +) + +// Enum value maps for ContainerError_Kind. +var ( + ContainerError_Kind_name = map[int32]string{ + 0: "NON_RECOVERABLE", + 1: "RECOVERABLE", + } + ContainerError_Kind_value = map[string]int32{ + "NON_RECOVERABLE": 0, + "RECOVERABLE": 1, + } +) + +func (x ContainerError_Kind) Enum() *ContainerError_Kind { + p := new(ContainerError_Kind) + *p = x + return p +} + +func (x ContainerError_Kind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContainerError_Kind) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_errors_proto_enumTypes[0].Descriptor() +} + +func (ContainerError_Kind) Type() protoreflect.EnumType { + return &file_flyteidl_core_errors_proto_enumTypes[0] +} + +func (x ContainerError_Kind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContainerError_Kind.Descriptor instead. +func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_errors_proto_rawDescGZIP(), []int{0, 0} +} + +// Error message to propagate detailed errors from container executions to the execution +// engine. +type ContainerError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A simplified code for errors, so that we can provide a glossary of all possible errors. + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // A detailed error message. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl.core.ContainerError_Kind" json:"kind,omitempty"` + // Defines the origin of the error (system, user, unknown). + Origin ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=origin,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"origin,omitempty"` +} + +func (x *ContainerError) Reset() { + *x = ContainerError{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_errors_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContainerError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerError) ProtoMessage() {} + +func (x *ContainerError) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_errors_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContainerError.ProtoReflect.Descriptor instead. +func (*ContainerError) Descriptor() ([]byte, []int) { + return file_flyteidl_core_errors_proto_rawDescGZIP(), []int{0} +} + +func (x *ContainerError) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *ContainerError) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *ContainerError) GetKind() ContainerError_Kind { + if x != nil { + return x.Kind + } + return ContainerError_NON_RECOVERABLE +} + +func (x *ContainerError) GetOrigin() ExecutionError_ErrorKind { + if x != nil { + return x.Origin + } + return ExecutionError_UNKNOWN +} + +// Defines the errors.pb file format the container can produce to communicate +// failure reasons to the execution engine. +type ErrorDocument struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The error raised during execution. + Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *ErrorDocument) Reset() { + *x = ErrorDocument{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_errors_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ErrorDocument) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ErrorDocument) ProtoMessage() {} + +func (x *ErrorDocument) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_errors_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ErrorDocument.ProtoReflect.Descriptor instead. +func (*ErrorDocument) Descriptor() ([]byte, []int) { + return file_flyteidl_core_errors_proto_rawDescGZIP(), []int{1} +} + +func (x *ErrorDocument) GetError() *ContainerError { + if x != nil { + return x.Error + } + return nil +} + +var File_flyteidl_core_errors_proto protoreflect.FileDescriptor + +var file_flyteidl_core_errors_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1d, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x01, 0x0a, 0x0e, 0x43, + 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x6b, + 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, + 0x69, 0x6e, 0x64, 0x12, 0x3f, 0x0a, 0x06, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x06, 0x6f, 0x72, + 0x69, 0x67, 0x69, 0x6e, 0x22, 0x2c, 0x0a, 0x04, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x13, 0x0a, 0x0f, + 0x4e, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x41, 0x42, 0x4c, 0x45, 0x10, + 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x41, 0x42, 0x4c, 0x45, + 0x10, 0x01, 0x22, 0x44, 0x0a, 0x0d, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x6f, 0x63, 0x75, 0x6d, + 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0xb1, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0b, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, + 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, + 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, + 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_errors_proto_rawDescOnce sync.Once + file_flyteidl_core_errors_proto_rawDescData = file_flyteidl_core_errors_proto_rawDesc +) + +func file_flyteidl_core_errors_proto_rawDescGZIP() []byte { + file_flyteidl_core_errors_proto_rawDescOnce.Do(func() { + file_flyteidl_core_errors_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_errors_proto_rawDescData) + }) + return file_flyteidl_core_errors_proto_rawDescData +} + +var file_flyteidl_core_errors_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_core_errors_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_flyteidl_core_errors_proto_goTypes = []interface{}{ + (ContainerError_Kind)(0), // 0: flyteidl.core.ContainerError.Kind + (*ContainerError)(nil), // 1: flyteidl.core.ContainerError + (*ErrorDocument)(nil), // 2: flyteidl.core.ErrorDocument + (ExecutionError_ErrorKind)(0), // 3: flyteidl.core.ExecutionError.ErrorKind +} +var file_flyteidl_core_errors_proto_depIdxs = []int32{ + 0, // 0: flyteidl.core.ContainerError.kind:type_name -> flyteidl.core.ContainerError.Kind + 3, // 1: flyteidl.core.ContainerError.origin:type_name -> flyteidl.core.ExecutionError.ErrorKind + 1, // 2: flyteidl.core.ErrorDocument.error:type_name -> flyteidl.core.ContainerError + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_errors_proto_init() } +func file_flyteidl_core_errors_proto_init() { + if File_flyteidl_core_errors_proto != nil { + return + } + file_flyteidl_core_execution_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_errors_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_errors_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorDocument); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_errors_proto_rawDesc, + NumEnums: 1, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_errors_proto_goTypes, + DependencyIndexes: file_flyteidl_core_errors_proto_depIdxs, + EnumInfos: file_flyteidl_core_errors_proto_enumTypes, + MessageInfos: file_flyteidl_core_errors_proto_msgTypes, + }.Build() + File_flyteidl_core_errors_proto = out.File + file_flyteidl_core_errors_proto_rawDesc = nil + file_flyteidl_core_errors_proto_goTypes = nil + file_flyteidl_core_errors_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go new file mode 100644 index 0000000000..fe558cf94c --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go @@ -0,0 +1,1040 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/execution.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkflowExecution_Phase int32 + +const ( + WorkflowExecution_UNDEFINED WorkflowExecution_Phase = 0 + WorkflowExecution_QUEUED WorkflowExecution_Phase = 1 + WorkflowExecution_RUNNING WorkflowExecution_Phase = 2 + WorkflowExecution_SUCCEEDING WorkflowExecution_Phase = 3 + WorkflowExecution_SUCCEEDED WorkflowExecution_Phase = 4 + WorkflowExecution_FAILING WorkflowExecution_Phase = 5 + WorkflowExecution_FAILED WorkflowExecution_Phase = 6 + WorkflowExecution_ABORTED WorkflowExecution_Phase = 7 + WorkflowExecution_TIMED_OUT WorkflowExecution_Phase = 8 + WorkflowExecution_ABORTING WorkflowExecution_Phase = 9 +) + +// Enum value maps for WorkflowExecution_Phase. +var ( + WorkflowExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDING", + 4: "SUCCEEDED", + 5: "FAILING", + 6: "FAILED", + 7: "ABORTED", + 8: "TIMED_OUT", + 9: "ABORTING", + } + WorkflowExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDING": 3, + "SUCCEEDED": 4, + "FAILING": 5, + "FAILED": 6, + "ABORTED": 7, + "TIMED_OUT": 8, + "ABORTING": 9, + } +) + +func (x WorkflowExecution_Phase) Enum() *WorkflowExecution_Phase { + p := new(WorkflowExecution_Phase) + *p = x + return p +} + +func (x WorkflowExecution_Phase) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkflowExecution_Phase) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_execution_proto_enumTypes[0].Descriptor() +} + +func (WorkflowExecution_Phase) Type() protoreflect.EnumType { + return &file_flyteidl_core_execution_proto_enumTypes[0] +} + +func (x WorkflowExecution_Phase) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WorkflowExecution_Phase.Descriptor instead. +func (WorkflowExecution_Phase) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{0, 0} +} + +type NodeExecution_Phase int32 + +const ( + NodeExecution_UNDEFINED NodeExecution_Phase = 0 + NodeExecution_QUEUED NodeExecution_Phase = 1 + NodeExecution_RUNNING NodeExecution_Phase = 2 + NodeExecution_SUCCEEDED NodeExecution_Phase = 3 + NodeExecution_FAILING NodeExecution_Phase = 4 + NodeExecution_FAILED NodeExecution_Phase = 5 + NodeExecution_ABORTED NodeExecution_Phase = 6 + NodeExecution_SKIPPED NodeExecution_Phase = 7 + NodeExecution_TIMED_OUT NodeExecution_Phase = 8 + NodeExecution_DYNAMIC_RUNNING NodeExecution_Phase = 9 + NodeExecution_RECOVERED NodeExecution_Phase = 10 +) + +// Enum value maps for NodeExecution_Phase. +var ( + NodeExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "FAILING", + 5: "FAILED", + 6: "ABORTED", + 7: "SKIPPED", + 8: "TIMED_OUT", + 9: "DYNAMIC_RUNNING", + 10: "RECOVERED", + } + NodeExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "FAILING": 4, + "FAILED": 5, + "ABORTED": 6, + "SKIPPED": 7, + "TIMED_OUT": 8, + "DYNAMIC_RUNNING": 9, + "RECOVERED": 10, + } +) + +func (x NodeExecution_Phase) Enum() *NodeExecution_Phase { + p := new(NodeExecution_Phase) + *p = x + return p +} + +func (x NodeExecution_Phase) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NodeExecution_Phase) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_execution_proto_enumTypes[1].Descriptor() +} + +func (NodeExecution_Phase) Type() protoreflect.EnumType { + return &file_flyteidl_core_execution_proto_enumTypes[1] +} + +func (x NodeExecution_Phase) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NodeExecution_Phase.Descriptor instead. +func (NodeExecution_Phase) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{1, 0} +} + +type TaskExecution_Phase int32 + +const ( + TaskExecution_UNDEFINED TaskExecution_Phase = 0 + TaskExecution_QUEUED TaskExecution_Phase = 1 + TaskExecution_RUNNING TaskExecution_Phase = 2 + TaskExecution_SUCCEEDED TaskExecution_Phase = 3 + TaskExecution_ABORTED TaskExecution_Phase = 4 + TaskExecution_FAILED TaskExecution_Phase = 5 + // To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing + TaskExecution_INITIALIZING TaskExecution_Phase = 6 + // To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded + TaskExecution_WAITING_FOR_RESOURCES TaskExecution_Phase = 7 +) + +// Enum value maps for TaskExecution_Phase. +var ( + TaskExecution_Phase_name = map[int32]string{ + 0: "UNDEFINED", + 1: "QUEUED", + 2: "RUNNING", + 3: "SUCCEEDED", + 4: "ABORTED", + 5: "FAILED", + 6: "INITIALIZING", + 7: "WAITING_FOR_RESOURCES", + } + TaskExecution_Phase_value = map[string]int32{ + "UNDEFINED": 0, + "QUEUED": 1, + "RUNNING": 2, + "SUCCEEDED": 3, + "ABORTED": 4, + "FAILED": 5, + "INITIALIZING": 6, + "WAITING_FOR_RESOURCES": 7, + } +) + +func (x TaskExecution_Phase) Enum() *TaskExecution_Phase { + p := new(TaskExecution_Phase) + *p = x + return p +} + +func (x TaskExecution_Phase) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TaskExecution_Phase) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_execution_proto_enumTypes[2].Descriptor() +} + +func (TaskExecution_Phase) Type() protoreflect.EnumType { + return &file_flyteidl_core_execution_proto_enumTypes[2] +} + +func (x TaskExecution_Phase) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TaskExecution_Phase.Descriptor instead. +func (TaskExecution_Phase) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{2, 0} +} + +// Error type: System or User +type ExecutionError_ErrorKind int32 + +const ( + ExecutionError_UNKNOWN ExecutionError_ErrorKind = 0 + ExecutionError_USER ExecutionError_ErrorKind = 1 + ExecutionError_SYSTEM ExecutionError_ErrorKind = 2 +) + +// Enum value maps for ExecutionError_ErrorKind. +var ( + ExecutionError_ErrorKind_name = map[int32]string{ + 0: "UNKNOWN", + 1: "USER", + 2: "SYSTEM", + } + ExecutionError_ErrorKind_value = map[string]int32{ + "UNKNOWN": 0, + "USER": 1, + "SYSTEM": 2, + } +) + +func (x ExecutionError_ErrorKind) Enum() *ExecutionError_ErrorKind { + p := new(ExecutionError_ErrorKind) + *p = x + return p +} + +func (x ExecutionError_ErrorKind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ExecutionError_ErrorKind) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_execution_proto_enumTypes[3].Descriptor() +} + +func (ExecutionError_ErrorKind) Type() protoreflect.EnumType { + return &file_flyteidl_core_execution_proto_enumTypes[3] +} + +func (x ExecutionError_ErrorKind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ExecutionError_ErrorKind.Descriptor instead. +func (ExecutionError_ErrorKind) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{3, 0} +} + +type TaskLog_MessageFormat int32 + +const ( + TaskLog_UNKNOWN TaskLog_MessageFormat = 0 + TaskLog_CSV TaskLog_MessageFormat = 1 + TaskLog_JSON TaskLog_MessageFormat = 2 +) + +// Enum value maps for TaskLog_MessageFormat. +var ( + TaskLog_MessageFormat_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CSV", + 2: "JSON", + } + TaskLog_MessageFormat_value = map[string]int32{ + "UNKNOWN": 0, + "CSV": 1, + "JSON": 2, + } +) + +func (x TaskLog_MessageFormat) Enum() *TaskLog_MessageFormat { + p := new(TaskLog_MessageFormat) + *p = x + return p +} + +func (x TaskLog_MessageFormat) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TaskLog_MessageFormat) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_execution_proto_enumTypes[4].Descriptor() +} + +func (TaskLog_MessageFormat) Type() protoreflect.EnumType { + return &file_flyteidl_core_execution_proto_enumTypes[4] +} + +func (x TaskLog_MessageFormat) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TaskLog_MessageFormat.Descriptor instead. +func (TaskLog_MessageFormat) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{4, 0} +} + +type QualityOfService_Tier int32 + +const ( + // Default: no quality of service specified. + QualityOfService_UNDEFINED QualityOfService_Tier = 0 + QualityOfService_HIGH QualityOfService_Tier = 1 + QualityOfService_MEDIUM QualityOfService_Tier = 2 + QualityOfService_LOW QualityOfService_Tier = 3 +) + +// Enum value maps for QualityOfService_Tier. +var ( + QualityOfService_Tier_name = map[int32]string{ + 0: "UNDEFINED", + 1: "HIGH", + 2: "MEDIUM", + 3: "LOW", + } + QualityOfService_Tier_value = map[string]int32{ + "UNDEFINED": 0, + "HIGH": 1, + "MEDIUM": 2, + "LOW": 3, + } +) + +func (x QualityOfService_Tier) Enum() *QualityOfService_Tier { + p := new(QualityOfService_Tier) + *p = x + return p +} + +func (x QualityOfService_Tier) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (QualityOfService_Tier) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_execution_proto_enumTypes[5].Descriptor() +} + +func (QualityOfService_Tier) Type() protoreflect.EnumType { + return &file_flyteidl_core_execution_proto_enumTypes[5] +} + +func (x QualityOfService_Tier) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use QualityOfService_Tier.Descriptor instead. +func (QualityOfService_Tier) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{6, 0} +} + +// Indicates various phases of Workflow Execution +type WorkflowExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *WorkflowExecution) Reset() { + *x = WorkflowExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecution) ProtoMessage() {} + +func (x *WorkflowExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecution.ProtoReflect.Descriptor instead. +func (*WorkflowExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{0} +} + +// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows +type NodeExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *NodeExecution) Reset() { + *x = NodeExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecution) ProtoMessage() {} + +func (x *NodeExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecution.ProtoReflect.Descriptor instead. +func (*NodeExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{1} +} + +// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +// but this is the cumulative list that customers may want to know about for their task. +type TaskExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *TaskExecution) Reset() { + *x = TaskExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecution) ProtoMessage() {} + +func (x *TaskExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecution.ProtoReflect.Descriptor instead. +func (*TaskExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{2} +} + +// Represents the error message from the execution. +type ExecutionError struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Error code indicates a grouping of a type of error. + // More Info: + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + // Detailed description of the error - including stack trace. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + // Full error contents accessible via a URI + ErrorUri string `protobuf:"bytes,3,opt,name=error_uri,json=errorUri,proto3" json:"error_uri,omitempty"` + Kind ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=kind,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"kind,omitempty"` +} + +func (x *ExecutionError) Reset() { + *x = ExecutionError{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionError) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionError) ProtoMessage() {} + +func (x *ExecutionError) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionError.ProtoReflect.Descriptor instead. +func (*ExecutionError) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{3} +} + +func (x *ExecutionError) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *ExecutionError) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *ExecutionError) GetErrorUri() string { + if x != nil { + return x.ErrorUri + } + return "" +} + +func (x *ExecutionError) GetKind() ExecutionError_ErrorKind { + if x != nil { + return x.Kind + } + return ExecutionError_UNKNOWN +} + +// Log information for the task that is specific to a log sink +// When our log story is flushed out, we may have more metadata here like log link expiry +type TaskLog struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + MessageFormat TaskLog_MessageFormat `protobuf:"varint,3,opt,name=message_format,json=messageFormat,proto3,enum=flyteidl.core.TaskLog_MessageFormat" json:"message_format,omitempty"` + Ttl *durationpb.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"` +} + +func (x *TaskLog) Reset() { + *x = TaskLog{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskLog) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskLog) ProtoMessage() {} + +func (x *TaskLog) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskLog.ProtoReflect.Descriptor instead. +func (*TaskLog) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{4} +} + +func (x *TaskLog) GetUri() string { + if x != nil { + return x.Uri + } + return "" +} + +func (x *TaskLog) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *TaskLog) GetMessageFormat() TaskLog_MessageFormat { + if x != nil { + return x.MessageFormat + } + return TaskLog_UNKNOWN +} + +func (x *TaskLog) GetTtl() *durationpb.Duration { + if x != nil { + return x.Ttl + } + return nil +} + +// Represents customized execution run-time attributes. +type QualityOfServiceSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates how much queueing delay an execution can tolerate. + QueueingBudget *durationpb.Duration `protobuf:"bytes,1,opt,name=queueing_budget,json=queueingBudget,proto3" json:"queueing_budget,omitempty"` +} + +func (x *QualityOfServiceSpec) Reset() { + *x = QualityOfServiceSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QualityOfServiceSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QualityOfServiceSpec) ProtoMessage() {} + +func (x *QualityOfServiceSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QualityOfServiceSpec.ProtoReflect.Descriptor instead. +func (*QualityOfServiceSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{5} +} + +func (x *QualityOfServiceSpec) GetQueueingBudget() *durationpb.Duration { + if x != nil { + return x.QueueingBudget + } + return nil +} + +// Indicates the priority of an execution. +type QualityOfService struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Designation: + // + // *QualityOfService_Tier_ + // *QualityOfService_Spec + Designation isQualityOfService_Designation `protobuf_oneof:"designation"` +} + +func (x *QualityOfService) Reset() { + *x = QualityOfService{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_execution_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QualityOfService) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QualityOfService) ProtoMessage() {} + +func (x *QualityOfService) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_execution_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QualityOfService.ProtoReflect.Descriptor instead. +func (*QualityOfService) Descriptor() ([]byte, []int) { + return file_flyteidl_core_execution_proto_rawDescGZIP(), []int{6} +} + +func (m *QualityOfService) GetDesignation() isQualityOfService_Designation { + if m != nil { + return m.Designation + } + return nil +} + +func (x *QualityOfService) GetTier() QualityOfService_Tier { + if x, ok := x.GetDesignation().(*QualityOfService_Tier_); ok { + return x.Tier + } + return QualityOfService_UNDEFINED +} + +func (x *QualityOfService) GetSpec() *QualityOfServiceSpec { + if x, ok := x.GetDesignation().(*QualityOfService_Spec); ok { + return x.Spec + } + return nil +} + +type isQualityOfService_Designation interface { + isQualityOfService_Designation() +} + +type QualityOfService_Tier_ struct { + Tier QualityOfService_Tier `protobuf:"varint,1,opt,name=tier,proto3,enum=flyteidl.core.QualityOfService_Tier,oneof"` +} + +type QualityOfService_Spec struct { + Spec *QualityOfServiceSpec `protobuf:"bytes,2,opt,name=spec,proto3,oneof"` +} + +func (*QualityOfService_Tier_) isQualityOfService_Designation() {} + +func (*QualityOfService_Spec) isQualityOfService_Designation() {} + +var File_flyteidl_core_execution_proto protoreflect.FileDescriptor + +var file_flyteidl_core_execution_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, + 0x01, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x91, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x0d, + 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, + 0x06, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, + 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, + 0x44, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, + 0x44, 0x45, 0x44, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x41, 0x49, 0x4c, 0x49, 0x4e, 0x47, + 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0b, + 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, + 0x49, 0x4d, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x08, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x42, + 0x4f, 0x52, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x09, 0x22, 0xb6, 0x01, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, + 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa4, 0x01, 0x0a, 0x05, 0x50, + 0x68, 0x61, 0x73, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, + 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, + 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x46, + 0x41, 0x49, 0x4c, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, + 0x45, 0x44, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, + 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4b, 0x49, 0x50, 0x50, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0d, + 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x44, 0x5f, 0x4f, 0x55, 0x54, 0x10, 0x08, 0x12, 0x13, 0x0a, + 0x0f, 0x44, 0x59, 0x4e, 0x41, 0x4d, 0x49, 0x43, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, + 0x10, 0x09, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x45, 0x44, 0x10, + 0x0a, 0x22, 0x96, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x05, 0x50, 0x68, 0x61, 0x73, 0x65, 0x12, 0x0d, 0x0a, + 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, + 0x51, 0x55, 0x45, 0x55, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, + 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, + 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, + 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x05, 0x12, 0x10, 0x0a, + 0x0c, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x12, + 0x19, 0x0a, 0x15, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x52, + 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x53, 0x10, 0x07, 0x22, 0xc8, 0x01, 0x0a, 0x0e, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x55, 0x72, 0x69, 0x12, 0x3b, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, 0x6e, 0x64, 0x52, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x2e, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4b, 0x69, + 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x59, 0x53, + 0x54, 0x45, 0x4d, 0x10, 0x02, 0x22, 0xda, 0x01, 0x0a, 0x07, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x72, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x52, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, + 0x72, 0x6d, 0x61, 0x74, 0x12, 0x2b, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x03, 0x74, 0x74, + 0x6c, 0x22, 0x2f, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x6f, 0x72, 0x6d, + 0x61, 0x74, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, + 0x07, 0x0a, 0x03, 0x43, 0x53, 0x56, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, + 0x10, 0x02, 0x22, 0x5a, 0x0a, 0x14, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12, 0x42, 0x0a, 0x0f, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x69, 0x6e, 0x67, 0x5f, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x64, 0x67, 0x65, 0x74, 0x22, 0xce, + 0x01, 0x0a, 0x10, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x74, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x54, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x04, 0x74, 0x69, 0x65, 0x72, 0x12, + 0x39, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x51, 0x75, + 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x70, + 0x65, 0x63, 0x48, 0x00, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0x34, 0x0a, 0x04, 0x54, 0x69, + 0x65, 0x72, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x47, 0x48, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, + 0x45, 0x44, 0x49, 0x55, 0x4d, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x4c, 0x4f, 0x57, 0x10, 0x03, + 0x42, 0x0d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, + 0xb4, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_execution_proto_rawDescOnce sync.Once + file_flyteidl_core_execution_proto_rawDescData = file_flyteidl_core_execution_proto_rawDesc +) + +func file_flyteidl_core_execution_proto_rawDescGZIP() []byte { + file_flyteidl_core_execution_proto_rawDescOnce.Do(func() { + file_flyteidl_core_execution_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_execution_proto_rawDescData) + }) + return file_flyteidl_core_execution_proto_rawDescData +} + +var file_flyteidl_core_execution_proto_enumTypes = make([]protoimpl.EnumInfo, 6) +var file_flyteidl_core_execution_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_core_execution_proto_goTypes = []interface{}{ + (WorkflowExecution_Phase)(0), // 0: flyteidl.core.WorkflowExecution.Phase + (NodeExecution_Phase)(0), // 1: flyteidl.core.NodeExecution.Phase + (TaskExecution_Phase)(0), // 2: flyteidl.core.TaskExecution.Phase + (ExecutionError_ErrorKind)(0), // 3: flyteidl.core.ExecutionError.ErrorKind + (TaskLog_MessageFormat)(0), // 4: flyteidl.core.TaskLog.MessageFormat + (QualityOfService_Tier)(0), // 5: flyteidl.core.QualityOfService.Tier + (*WorkflowExecution)(nil), // 6: flyteidl.core.WorkflowExecution + (*NodeExecution)(nil), // 7: flyteidl.core.NodeExecution + (*TaskExecution)(nil), // 8: flyteidl.core.TaskExecution + (*ExecutionError)(nil), // 9: flyteidl.core.ExecutionError + (*TaskLog)(nil), // 10: flyteidl.core.TaskLog + (*QualityOfServiceSpec)(nil), // 11: flyteidl.core.QualityOfServiceSpec + (*QualityOfService)(nil), // 12: flyteidl.core.QualityOfService + (*durationpb.Duration)(nil), // 13: google.protobuf.Duration +} +var file_flyteidl_core_execution_proto_depIdxs = []int32{ + 3, // 0: flyteidl.core.ExecutionError.kind:type_name -> flyteidl.core.ExecutionError.ErrorKind + 4, // 1: flyteidl.core.TaskLog.message_format:type_name -> flyteidl.core.TaskLog.MessageFormat + 13, // 2: flyteidl.core.TaskLog.ttl:type_name -> google.protobuf.Duration + 13, // 3: flyteidl.core.QualityOfServiceSpec.queueing_budget:type_name -> google.protobuf.Duration + 5, // 4: flyteidl.core.QualityOfService.tier:type_name -> flyteidl.core.QualityOfService.Tier + 11, // 5: flyteidl.core.QualityOfService.spec:type_name -> flyteidl.core.QualityOfServiceSpec + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_execution_proto_init() } +func file_flyteidl_core_execution_proto_init() { + if File_flyteidl_core_execution_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_execution_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_execution_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_execution_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_execution_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_execution_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskLog); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_execution_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QualityOfServiceSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_execution_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QualityOfService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_execution_proto_msgTypes[6].OneofWrappers = []interface{}{ + (*QualityOfService_Tier_)(nil), + (*QualityOfService_Spec)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_execution_proto_rawDesc, + NumEnums: 6, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_execution_proto_goTypes, + DependencyIndexes: file_flyteidl_core_execution_proto_depIdxs, + EnumInfos: file_flyteidl_core_execution_proto_enumTypes, + MessageInfos: file_flyteidl_core_execution_proto_msgTypes, + }.Build() + File_flyteidl_core_execution_proto = out.File + file_flyteidl_core_execution_proto_rawDesc = nil + file_flyteidl_core_execution_proto_goTypes = nil + file_flyteidl_core_execution_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go new file mode 100644 index 0000000000..39d53818f7 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go @@ -0,0 +1,627 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/identifier.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Indicates a resource type within Flyte. +type ResourceType int32 + +const ( + ResourceType_UNSPECIFIED ResourceType = 0 + ResourceType_TASK ResourceType = 1 + ResourceType_WORKFLOW ResourceType = 2 + ResourceType_LAUNCH_PLAN ResourceType = 3 + // A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. + // Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects + // in a similar manner to other Flyte objects + ResourceType_DATASET ResourceType = 4 +) + +// Enum value maps for ResourceType. +var ( + ResourceType_name = map[int32]string{ + 0: "UNSPECIFIED", + 1: "TASK", + 2: "WORKFLOW", + 3: "LAUNCH_PLAN", + 4: "DATASET", + } + ResourceType_value = map[string]int32{ + "UNSPECIFIED": 0, + "TASK": 1, + "WORKFLOW": 2, + "LAUNCH_PLAN": 3, + "DATASET": 4, + } +) + +func (x ResourceType) Enum() *ResourceType { + p := new(ResourceType) + *p = x + return p +} + +func (x ResourceType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceType) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_identifier_proto_enumTypes[0].Descriptor() +} + +func (ResourceType) Type() protoreflect.EnumType { + return &file_flyteidl_core_identifier_proto_enumTypes[0] +} + +func (x ResourceType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResourceType.Descriptor instead. +func (ResourceType) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{0} +} + +// Encapsulation of fields that uniquely identifies a Flyte resource. +type Identifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifies the specific type of resource that this identifier corresponds to. + ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` + // User provided value for the resource. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Specific version of the resource. + Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *Identifier) Reset() { + *x = Identifier{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_identifier_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Identifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Identifier) ProtoMessage() {} + +func (x *Identifier) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_identifier_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Identifier.ProtoReflect.Descriptor instead. +func (*Identifier) Descriptor() ([]byte, []int) { + return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{0} +} + +func (x *Identifier) GetResourceType() ResourceType { + if x != nil { + return x.ResourceType + } + return ResourceType_UNSPECIFIED +} + +func (x *Identifier) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *Identifier) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *Identifier) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Identifier) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Identifier) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Encapsulation of fields that uniquely identifies a Flyte workflow execution +type WorkflowExecutionIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of the project the resource belongs to. + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Name of the domain the resource belongs to. + // A domain can be considered as a subset within a specific project. + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // User or system provided value for the resource. + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,5,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *WorkflowExecutionIdentifier) Reset() { + *x = WorkflowExecutionIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_identifier_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionIdentifier) ProtoMessage() {} + +func (x *WorkflowExecutionIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_identifier_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionIdentifier.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionIdentifier) Descriptor() ([]byte, []int) { + return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{1} +} + +func (x *WorkflowExecutionIdentifier) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *WorkflowExecutionIdentifier) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *WorkflowExecutionIdentifier) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *WorkflowExecutionIdentifier) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Encapsulation of fields that identify a Flyte node execution entity. +type NodeExecutionIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` +} + +func (x *NodeExecutionIdentifier) Reset() { + *x = NodeExecutionIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_identifier_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionIdentifier) ProtoMessage() {} + +func (x *NodeExecutionIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_identifier_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionIdentifier.ProtoReflect.Descriptor instead. +func (*NodeExecutionIdentifier) Descriptor() ([]byte, []int) { + return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{2} +} + +func (x *NodeExecutionIdentifier) GetNodeId() string { + if x != nil { + return x.NodeId + } + return "" +} + +func (x *NodeExecutionIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { + if x != nil { + return x.ExecutionId + } + return nil +} + +// Encapsulation of fields that identify a Flyte task execution entity. +type TaskExecutionIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TaskId *Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + NodeExecutionId *NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` +} + +func (x *TaskExecutionIdentifier) Reset() { + *x = TaskExecutionIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_identifier_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionIdentifier) ProtoMessage() {} + +func (x *TaskExecutionIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_identifier_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionIdentifier.ProtoReflect.Descriptor instead. +func (*TaskExecutionIdentifier) Descriptor() ([]byte, []int) { + return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{3} +} + +func (x *TaskExecutionIdentifier) GetTaskId() *Identifier { + if x != nil { + return x.TaskId + } + return nil +} + +func (x *TaskExecutionIdentifier) GetNodeExecutionId() *NodeExecutionIdentifier { + if x != nil { + return x.NodeExecutionId + } + return nil +} + +func (x *TaskExecutionIdentifier) GetRetryAttempt() uint32 { + if x != nil { + return x.RetryAttempt + } + return 0 +} + +// Encapsulation of fields the uniquely identify a signal. +type SignalIdentifier struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier for a signal. + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // Identifies the Flyte workflow execution this signal belongs to. + ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` +} + +func (x *SignalIdentifier) Reset() { + *x = SignalIdentifier{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_identifier_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalIdentifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalIdentifier) ProtoMessage() {} + +func (x *SignalIdentifier) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_identifier_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalIdentifier.ProtoReflect.Descriptor instead. +func (*SignalIdentifier) Descriptor() ([]byte, []int) { + return file_flyteidl_core_identifier_proto_rawDescGZIP(), []int{4} +} + +func (x *SignalIdentifier) GetSignalId() string { + if x != nil { + return x.SignalId + } + return "" +} + +func (x *SignalIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { + if x != nil { + return x.ExecutionId + } + return nil +} + +var File_flyteidl_core_identifier_proto protoreflect.FileDescriptor + +var file_flyteidl_core_identifier_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x22, + 0xc0, 0x01, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x40, + 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, + 0x72, 0x67, 0x22, 0x75, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x22, 0x81, 0x01, 0x0a, 0x17, 0x4e, 0x6f, + 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x4d, + 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xc6, 0x01, + 0x0a, 0x17, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x52, 0x0a, + 0x11, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, + 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x41, + 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x22, 0x7e, 0x0a, 0x10, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x2a, 0x55, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x41, 0x53, 0x4b, 0x10, + 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x57, 0x4f, 0x52, 0x4b, 0x46, 0x4c, 0x4f, 0x57, 0x10, 0x02, 0x12, + 0x0f, 0x0a, 0x0b, 0x4c, 0x41, 0x55, 0x4e, 0x43, 0x48, 0x5f, 0x50, 0x4c, 0x41, 0x4e, 0x10, 0x03, + 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x41, 0x54, 0x41, 0x53, 0x45, 0x54, 0x10, 0x04, 0x42, 0xb5, 0x01, + 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x42, 0x0f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, + 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_identifier_proto_rawDescOnce sync.Once + file_flyteidl_core_identifier_proto_rawDescData = file_flyteidl_core_identifier_proto_rawDesc +) + +func file_flyteidl_core_identifier_proto_rawDescGZIP() []byte { + file_flyteidl_core_identifier_proto_rawDescOnce.Do(func() { + file_flyteidl_core_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_identifier_proto_rawDescData) + }) + return file_flyteidl_core_identifier_proto_rawDescData +} + +var file_flyteidl_core_identifier_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_core_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_flyteidl_core_identifier_proto_goTypes = []interface{}{ + (ResourceType)(0), // 0: flyteidl.core.ResourceType + (*Identifier)(nil), // 1: flyteidl.core.Identifier + (*WorkflowExecutionIdentifier)(nil), // 2: flyteidl.core.WorkflowExecutionIdentifier + (*NodeExecutionIdentifier)(nil), // 3: flyteidl.core.NodeExecutionIdentifier + (*TaskExecutionIdentifier)(nil), // 4: flyteidl.core.TaskExecutionIdentifier + (*SignalIdentifier)(nil), // 5: flyteidl.core.SignalIdentifier +} +var file_flyteidl_core_identifier_proto_depIdxs = []int32{ + 0, // 0: flyteidl.core.Identifier.resource_type:type_name -> flyteidl.core.ResourceType + 2, // 1: flyteidl.core.NodeExecutionIdentifier.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 1, // 2: flyteidl.core.TaskExecutionIdentifier.task_id:type_name -> flyteidl.core.Identifier + 3, // 3: flyteidl.core.TaskExecutionIdentifier.node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier + 2, // 4: flyteidl.core.SignalIdentifier.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_identifier_proto_init() } +func file_flyteidl_core_identifier_proto_init() { + if File_flyteidl_core_identifier_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_identifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Identifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_identifier_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_identifier_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_identifier_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_identifier_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalIdentifier); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_identifier_proto_rawDesc, + NumEnums: 1, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_identifier_proto_goTypes, + DependencyIndexes: file_flyteidl_core_identifier_proto_depIdxs, + EnumInfos: file_flyteidl_core_identifier_proto_enumTypes, + MessageInfos: file_flyteidl_core_identifier_proto_msgTypes, + }.Build() + File_flyteidl_core_identifier_proto = out.File + file_flyteidl_core_identifier_proto_rawDesc = nil + file_flyteidl_core_identifier_proto_goTypes = nil + file_flyteidl_core_identifier_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go new file mode 100644 index 0000000000..f8b8b9ed09 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go @@ -0,0 +1,609 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/interface.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a strongly typed variable. +type Variable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Variable literal type. + Type *LiteralType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + // +optional string describing input variable + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + // +optional This object allows the user to specify how Artifacts are created. + // name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. + ArtifactPartialId *ArtifactID `protobuf:"bytes,3,opt,name=artifact_partial_id,json=artifactPartialId,proto3" json:"artifact_partial_id,omitempty"` + ArtifactTag *ArtifactTag `protobuf:"bytes,4,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` +} + +func (x *Variable) Reset() { + *x = Variable{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_interface_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Variable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Variable) ProtoMessage() {} + +func (x *Variable) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_interface_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Variable.ProtoReflect.Descriptor instead. +func (*Variable) Descriptor() ([]byte, []int) { + return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{0} +} + +func (x *Variable) GetType() *LiteralType { + if x != nil { + return x.Type + } + return nil +} + +func (x *Variable) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Variable) GetArtifactPartialId() *ArtifactID { + if x != nil { + return x.ArtifactPartialId + } + return nil +} + +func (x *Variable) GetArtifactTag() *ArtifactTag { + if x != nil { + return x.ArtifactTag + } + return nil +} + +// A map of Variables +type VariableMap struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines a map of variable names to variables. + Variables map[string]*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *VariableMap) Reset() { + *x = VariableMap{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_interface_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VariableMap) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VariableMap) ProtoMessage() {} + +func (x *VariableMap) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_interface_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VariableMap.ProtoReflect.Descriptor instead. +func (*VariableMap) Descriptor() ([]byte, []int) { + return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{1} +} + +func (x *VariableMap) GetVariables() map[string]*Variable { + if x != nil { + return x.Variables + } + return nil +} + +// Defines strongly typed inputs and outputs. +type TypedInterface struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Inputs *VariableMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + Outputs *VariableMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` +} + +func (x *TypedInterface) Reset() { + *x = TypedInterface{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_interface_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TypedInterface) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TypedInterface) ProtoMessage() {} + +func (x *TypedInterface) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_interface_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TypedInterface.ProtoReflect.Descriptor instead. +func (*TypedInterface) Descriptor() ([]byte, []int) { + return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{2} +} + +func (x *TypedInterface) GetInputs() *VariableMap { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *TypedInterface) GetOutputs() *VariableMap { + if x != nil { + return x.Outputs + } + return nil +} + +// A parameter is used as input to a launch plan and has +// the special ability to have a default value or mark itself as required. +type Parameter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required Variable. Defines the type of the variable backing this parameter. + Var *Variable `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // +optional + // + // Types that are assignable to Behavior: + // + // *Parameter_Default + // *Parameter_Required + // *Parameter_ArtifactQuery + // *Parameter_ArtifactId + Behavior isParameter_Behavior `protobuf_oneof:"behavior"` +} + +func (x *Parameter) Reset() { + *x = Parameter{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_interface_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Parameter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Parameter) ProtoMessage() {} + +func (x *Parameter) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_interface_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Parameter.ProtoReflect.Descriptor instead. +func (*Parameter) Descriptor() ([]byte, []int) { + return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{3} +} + +func (x *Parameter) GetVar() *Variable { + if x != nil { + return x.Var + } + return nil +} + +func (m *Parameter) GetBehavior() isParameter_Behavior { + if m != nil { + return m.Behavior + } + return nil +} + +func (x *Parameter) GetDefault() *Literal { + if x, ok := x.GetBehavior().(*Parameter_Default); ok { + return x.Default + } + return nil +} + +func (x *Parameter) GetRequired() bool { + if x, ok := x.GetBehavior().(*Parameter_Required); ok { + return x.Required + } + return false +} + +func (x *Parameter) GetArtifactQuery() *ArtifactQuery { + if x, ok := x.GetBehavior().(*Parameter_ArtifactQuery); ok { + return x.ArtifactQuery + } + return nil +} + +func (x *Parameter) GetArtifactId() *ArtifactID { + if x, ok := x.GetBehavior().(*Parameter_ArtifactId); ok { + return x.ArtifactId + } + return nil +} + +type isParameter_Behavior interface { + isParameter_Behavior() +} + +type Parameter_Default struct { + // Defines a default value that has to match the variable type defined. + Default *Literal `protobuf:"bytes,2,opt,name=default,proto3,oneof"` +} + +type Parameter_Required struct { + // +optional, is this value required to be filled. + Required bool `protobuf:"varint,3,opt,name=required,proto3,oneof"` +} + +type Parameter_ArtifactQuery struct { + // This is an execution time search basically that should result in exactly one Artifact with a Type that + // matches the type of the variable. + ArtifactQuery *ArtifactQuery `protobuf:"bytes,4,opt,name=artifact_query,json=artifactQuery,proto3,oneof"` +} + +type Parameter_ArtifactId struct { + ArtifactId *ArtifactID `protobuf:"bytes,5,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +func (*Parameter_Default) isParameter_Behavior() {} + +func (*Parameter_Required) isParameter_Behavior() {} + +func (*Parameter_ArtifactQuery) isParameter_Behavior() {} + +func (*Parameter_ArtifactId) isParameter_Behavior() {} + +// A map of Parameters. +type ParameterMap struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines a map of parameter names to parameters. + Parameters map[string]*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ParameterMap) Reset() { + *x = ParameterMap{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_interface_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParameterMap) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParameterMap) ProtoMessage() {} + +func (x *ParameterMap) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_interface_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParameterMap.ProtoReflect.Descriptor instead. +func (*ParameterMap) Descriptor() ([]byte, []int) { + return file_flyteidl_core_interface_proto_rawDescGZIP(), []int{4} +} + +func (x *ParameterMap) GetParameters() map[string]*Parameter { + if x != nil { + return x.Parameters + } + return nil +} + +var File_flyteidl_core_interface_proto protoreflect.FileDescriptor + +var file_flyteidl_core_interface_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x19, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, + 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x01, 0x0a, 0x08, 0x56, 0x61, 0x72, + 0x69, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, + 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x50, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, + 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x74, + 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x54, 0x61, 0x67, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x61, + 0x67, 0x22, 0xad, 0x01, 0x0a, 0x0b, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, + 0x70, 0x12, 0x47, 0x0a, 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x70, + 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x09, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x1a, 0x55, 0x0a, 0x0e, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x22, 0x7a, 0x0a, 0x0e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x52, + 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x4d, 0x61, 0x70, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x22, 0x99, 0x02, + 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x03, 0x76, + 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, + 0x65, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x32, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x48, + 0x00, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1c, 0x0a, 0x08, 0x72, 0x65, + 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x08, + 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x45, 0x0a, 0x0e, 0x61, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x48, 0x00, + 0x52, 0x0d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, + 0x3c, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x48, + 0x00, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x42, 0x0a, 0x0a, + 0x08, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x22, 0xb4, 0x01, 0x0a, 0x0c, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x12, 0x4b, 0x0a, 0x0a, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x2e, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x1a, 0x57, 0x0a, 0x0f, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x65, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x42, 0xb4, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_interface_proto_rawDescOnce sync.Once + file_flyteidl_core_interface_proto_rawDescData = file_flyteidl_core_interface_proto_rawDesc +) + +func file_flyteidl_core_interface_proto_rawDescGZIP() []byte { + file_flyteidl_core_interface_proto_rawDescOnce.Do(func() { + file_flyteidl_core_interface_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_interface_proto_rawDescData) + }) + return file_flyteidl_core_interface_proto_rawDescData +} + +var file_flyteidl_core_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_flyteidl_core_interface_proto_goTypes = []interface{}{ + (*Variable)(nil), // 0: flyteidl.core.Variable + (*VariableMap)(nil), // 1: flyteidl.core.VariableMap + (*TypedInterface)(nil), // 2: flyteidl.core.TypedInterface + (*Parameter)(nil), // 3: flyteidl.core.Parameter + (*ParameterMap)(nil), // 4: flyteidl.core.ParameterMap + nil, // 5: flyteidl.core.VariableMap.VariablesEntry + nil, // 6: flyteidl.core.ParameterMap.ParametersEntry + (*LiteralType)(nil), // 7: flyteidl.core.LiteralType + (*ArtifactID)(nil), // 8: flyteidl.core.ArtifactID + (*ArtifactTag)(nil), // 9: flyteidl.core.ArtifactTag + (*Literal)(nil), // 10: flyteidl.core.Literal + (*ArtifactQuery)(nil), // 11: flyteidl.core.ArtifactQuery +} +var file_flyteidl_core_interface_proto_depIdxs = []int32{ + 7, // 0: flyteidl.core.Variable.type:type_name -> flyteidl.core.LiteralType + 8, // 1: flyteidl.core.Variable.artifact_partial_id:type_name -> flyteidl.core.ArtifactID + 9, // 2: flyteidl.core.Variable.artifact_tag:type_name -> flyteidl.core.ArtifactTag + 5, // 3: flyteidl.core.VariableMap.variables:type_name -> flyteidl.core.VariableMap.VariablesEntry + 1, // 4: flyteidl.core.TypedInterface.inputs:type_name -> flyteidl.core.VariableMap + 1, // 5: flyteidl.core.TypedInterface.outputs:type_name -> flyteidl.core.VariableMap + 0, // 6: flyteidl.core.Parameter.var:type_name -> flyteidl.core.Variable + 10, // 7: flyteidl.core.Parameter.default:type_name -> flyteidl.core.Literal + 11, // 8: flyteidl.core.Parameter.artifact_query:type_name -> flyteidl.core.ArtifactQuery + 8, // 9: flyteidl.core.Parameter.artifact_id:type_name -> flyteidl.core.ArtifactID + 6, // 10: flyteidl.core.ParameterMap.parameters:type_name -> flyteidl.core.ParameterMap.ParametersEntry + 0, // 11: flyteidl.core.VariableMap.VariablesEntry.value:type_name -> flyteidl.core.Variable + 3, // 12: flyteidl.core.ParameterMap.ParametersEntry.value:type_name -> flyteidl.core.Parameter + 13, // [13:13] is the sub-list for method output_type + 13, // [13:13] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_interface_proto_init() } +func file_flyteidl_core_interface_proto_init() { + if File_flyteidl_core_interface_proto != nil { + return + } + file_flyteidl_core_types_proto_init() + file_flyteidl_core_literals_proto_init() + file_flyteidl_core_artifact_id_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_interface_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Variable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_interface_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VariableMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_interface_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypedInterface); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_interface_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Parameter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_interface_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParameterMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_interface_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*Parameter_Default)(nil), + (*Parameter_Required)(nil), + (*Parameter_ArtifactQuery)(nil), + (*Parameter_ArtifactId)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_interface_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_interface_proto_goTypes, + DependencyIndexes: file_flyteidl_core_interface_proto_depIdxs, + MessageInfos: file_flyteidl_core_interface_proto_msgTypes, + }.Build() + File_flyteidl_core_interface_proto = out.File + file_flyteidl_core_interface_proto_rawDesc = nil + file_flyteidl_core_interface_proto_goTypes = nil + file_flyteidl_core_interface_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go new file mode 100644 index 0000000000..40b24e30a5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go @@ -0,0 +1,2004 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/literals.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Primitive Types +type Primitive struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines one of simple primitive types. These types will get translated into different programming languages as + // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. + // + // Types that are assignable to Value: + // + // *Primitive_Integer + // *Primitive_FloatValue + // *Primitive_StringValue + // *Primitive_Boolean + // *Primitive_Datetime + // *Primitive_Duration + Value isPrimitive_Value `protobuf_oneof:"value"` +} + +func (x *Primitive) Reset() { + *x = Primitive{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Primitive) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Primitive) ProtoMessage() {} + +func (x *Primitive) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Primitive.ProtoReflect.Descriptor instead. +func (*Primitive) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{0} +} + +func (m *Primitive) GetValue() isPrimitive_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Primitive) GetInteger() int64 { + if x, ok := x.GetValue().(*Primitive_Integer); ok { + return x.Integer + } + return 0 +} + +func (x *Primitive) GetFloatValue() float64 { + if x, ok := x.GetValue().(*Primitive_FloatValue); ok { + return x.FloatValue + } + return 0 +} + +func (x *Primitive) GetStringValue() string { + if x, ok := x.GetValue().(*Primitive_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *Primitive) GetBoolean() bool { + if x, ok := x.GetValue().(*Primitive_Boolean); ok { + return x.Boolean + } + return false +} + +func (x *Primitive) GetDatetime() *timestamppb.Timestamp { + if x, ok := x.GetValue().(*Primitive_Datetime); ok { + return x.Datetime + } + return nil +} + +func (x *Primitive) GetDuration() *durationpb.Duration { + if x, ok := x.GetValue().(*Primitive_Duration); ok { + return x.Duration + } + return nil +} + +type isPrimitive_Value interface { + isPrimitive_Value() +} + +type Primitive_Integer struct { + Integer int64 `protobuf:"varint,1,opt,name=integer,proto3,oneof"` +} + +type Primitive_FloatValue struct { + FloatValue float64 `protobuf:"fixed64,2,opt,name=float_value,json=floatValue,proto3,oneof"` +} + +type Primitive_StringValue struct { + StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type Primitive_Boolean struct { + Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof"` +} + +type Primitive_Datetime struct { + Datetime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3,oneof"` +} + +type Primitive_Duration struct { + Duration *durationpb.Duration `protobuf:"bytes,6,opt,name=duration,proto3,oneof"` +} + +func (*Primitive_Integer) isPrimitive_Value() {} + +func (*Primitive_FloatValue) isPrimitive_Value() {} + +func (*Primitive_StringValue) isPrimitive_Value() {} + +func (*Primitive_Boolean) isPrimitive_Value() {} + +func (*Primitive_Datetime) isPrimitive_Value() {} + +func (*Primitive_Duration) isPrimitive_Value() {} + +// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +// undefined since it can be assigned to a scalar of any LiteralType. +type Void struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *Void) Reset() { + *x = Void{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Void) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Void) ProtoMessage() {} + +func (x *Void) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Void.ProtoReflect.Descriptor instead. +func (*Void) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{1} +} + +// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +type Blob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Metadata *BlobMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` +} + +func (x *Blob) Reset() { + *x = Blob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Blob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Blob) ProtoMessage() {} + +func (x *Blob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Blob.ProtoReflect.Descriptor instead. +func (*Blob) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{2} +} + +func (x *Blob) GetMetadata() *BlobMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Blob) GetUri() string { + if x != nil { + return x.Uri + } + return "" +} + +type BlobMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Type *BlobType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *BlobMetadata) Reset() { + *x = BlobMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlobMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlobMetadata) ProtoMessage() {} + +func (x *BlobMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BlobMetadata.ProtoReflect.Descriptor instead. +func (*BlobMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{3} +} + +func (x *BlobMetadata) GetType() *BlobType { + if x != nil { + return x.Type + } + return nil +} + +// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +type Binary struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` +} + +func (x *Binary) Reset() { + *x = Binary{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Binary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Binary) ProtoMessage() {} + +func (x *Binary) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Binary.ProtoReflect.Descriptor instead. +func (*Binary) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{4} +} + +func (x *Binary) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +func (x *Binary) GetTag() string { + if x != nil { + return x.Tag + } + return "" +} + +// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +type Schema struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Type *SchemaType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *Schema) Reset() { + *x = Schema{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Schema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Schema) ProtoMessage() {} + +func (x *Schema) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Schema.ProtoReflect.Descriptor instead. +func (*Schema) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{5} +} + +func (x *Schema) GetUri() string { + if x != nil { + return x.Uri + } + return "" +} + +func (x *Schema) GetType() *SchemaType { + if x != nil { + return x.Type + } + return nil +} + +// The runtime representation of a tagged union value. See `UnionType` for more details. +type Union struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *Literal `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` +} + +func (x *Union) Reset() { + *x = Union{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Union) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Union) ProtoMessage() {} + +func (x *Union) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Union.ProtoReflect.Descriptor instead. +func (*Union) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{6} +} + +func (x *Union) GetValue() *Literal { + if x != nil { + return x.Value + } + return nil +} + +func (x *Union) GetType() *LiteralType { + if x != nil { + return x.Type + } + return nil +} + +type StructuredDatasetMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Bundle the type information along with the literal. + // This is here because StructuredDatasets can often be more defined at run time than at compile time. + // That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, + // without any column information, but at run time, you might have that column information. + // flytekit python will copy this type information into the literal, from the type information, if not provided by + // the various plugins (encoders). + // Since this field is run time generated, it's not used for any type checking. + StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,1,opt,name=structured_dataset_type,json=structuredDatasetType,proto3" json:"structured_dataset_type,omitempty"` +} + +func (x *StructuredDatasetMetadata) Reset() { + *x = StructuredDatasetMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructuredDatasetMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructuredDatasetMetadata) ProtoMessage() {} + +func (x *StructuredDatasetMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StructuredDatasetMetadata.ProtoReflect.Descriptor instead. +func (*StructuredDatasetMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{7} +} + +func (x *StructuredDatasetMetadata) GetStructuredDatasetType() *StructuredDatasetType { + if x != nil { + return x.StructuredDatasetType + } + return nil +} + +type StructuredDataset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // String location uniquely identifying where the data is. + // Should start with the storage location (e.g. s3://, gs://, bq://, etc.) + Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` + Metadata *StructuredDatasetMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *StructuredDataset) Reset() { + *x = StructuredDataset{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructuredDataset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructuredDataset) ProtoMessage() {} + +func (x *StructuredDataset) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StructuredDataset.ProtoReflect.Descriptor instead. +func (*StructuredDataset) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{8} +} + +func (x *StructuredDataset) GetUri() string { + if x != nil { + return x.Uri + } + return "" +} + +func (x *StructuredDataset) GetMetadata() *StructuredDatasetMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +type Scalar struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Value: + // + // *Scalar_Primitive + // *Scalar_Blob + // *Scalar_Binary + // *Scalar_Schema + // *Scalar_NoneType + // *Scalar_Error + // *Scalar_Generic + // *Scalar_StructuredDataset + // *Scalar_Union + Value isScalar_Value `protobuf_oneof:"value"` +} + +func (x *Scalar) Reset() { + *x = Scalar{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Scalar) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Scalar) ProtoMessage() {} + +func (x *Scalar) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Scalar.ProtoReflect.Descriptor instead. +func (*Scalar) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{9} +} + +func (m *Scalar) GetValue() isScalar_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Scalar) GetPrimitive() *Primitive { + if x, ok := x.GetValue().(*Scalar_Primitive); ok { + return x.Primitive + } + return nil +} + +func (x *Scalar) GetBlob() *Blob { + if x, ok := x.GetValue().(*Scalar_Blob); ok { + return x.Blob + } + return nil +} + +func (x *Scalar) GetBinary() *Binary { + if x, ok := x.GetValue().(*Scalar_Binary); ok { + return x.Binary + } + return nil +} + +func (x *Scalar) GetSchema() *Schema { + if x, ok := x.GetValue().(*Scalar_Schema); ok { + return x.Schema + } + return nil +} + +func (x *Scalar) GetNoneType() *Void { + if x, ok := x.GetValue().(*Scalar_NoneType); ok { + return x.NoneType + } + return nil +} + +func (x *Scalar) GetError() *Error { + if x, ok := x.GetValue().(*Scalar_Error); ok { + return x.Error + } + return nil +} + +func (x *Scalar) GetGeneric() *structpb.Struct { + if x, ok := x.GetValue().(*Scalar_Generic); ok { + return x.Generic + } + return nil +} + +func (x *Scalar) GetStructuredDataset() *StructuredDataset { + if x, ok := x.GetValue().(*Scalar_StructuredDataset); ok { + return x.StructuredDataset + } + return nil +} + +func (x *Scalar) GetUnion() *Union { + if x, ok := x.GetValue().(*Scalar_Union); ok { + return x.Union + } + return nil +} + +type isScalar_Value interface { + isScalar_Value() +} + +type Scalar_Primitive struct { + Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` +} + +type Scalar_Blob struct { + Blob *Blob `protobuf:"bytes,2,opt,name=blob,proto3,oneof"` +} + +type Scalar_Binary struct { + Binary *Binary `protobuf:"bytes,3,opt,name=binary,proto3,oneof"` +} + +type Scalar_Schema struct { + Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3,oneof"` +} + +type Scalar_NoneType struct { + NoneType *Void `protobuf:"bytes,5,opt,name=none_type,json=noneType,proto3,oneof"` +} + +type Scalar_Error struct { + Error *Error `protobuf:"bytes,6,opt,name=error,proto3,oneof"` +} + +type Scalar_Generic struct { + Generic *structpb.Struct `protobuf:"bytes,7,opt,name=generic,proto3,oneof"` +} + +type Scalar_StructuredDataset struct { + StructuredDataset *StructuredDataset `protobuf:"bytes,8,opt,name=structured_dataset,json=structuredDataset,proto3,oneof"` +} + +type Scalar_Union struct { + Union *Union `protobuf:"bytes,9,opt,name=union,proto3,oneof"` +} + +func (*Scalar_Primitive) isScalar_Value() {} + +func (*Scalar_Blob) isScalar_Value() {} + +func (*Scalar_Binary) isScalar_Value() {} + +func (*Scalar_Schema) isScalar_Value() {} + +func (*Scalar_NoneType) isScalar_Value() {} + +func (*Scalar_Error) isScalar_Value() {} + +func (*Scalar_Generic) isScalar_Value() {} + +func (*Scalar_StructuredDataset) isScalar_Value() {} + +func (*Scalar_Union) isScalar_Value() {} + +// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +type Literal struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Value: + // + // *Literal_Scalar + // *Literal_Collection + // *Literal_Map + Value isLiteral_Value `protobuf_oneof:"value"` + // A hash representing this literal. + // This is used for caching purposes. For more details refer to RFC 1893 + // (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) + Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` + // Additional metadata for literals. + Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *Literal) Reset() { + *x = Literal{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Literal) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Literal) ProtoMessage() {} + +func (x *Literal) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Literal.ProtoReflect.Descriptor instead. +func (*Literal) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{10} +} + +func (m *Literal) GetValue() isLiteral_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *Literal) GetScalar() *Scalar { + if x, ok := x.GetValue().(*Literal_Scalar); ok { + return x.Scalar + } + return nil +} + +func (x *Literal) GetCollection() *LiteralCollection { + if x, ok := x.GetValue().(*Literal_Collection); ok { + return x.Collection + } + return nil +} + +func (x *Literal) GetMap() *LiteralMap { + if x, ok := x.GetValue().(*Literal_Map); ok { + return x.Map + } + return nil +} + +func (x *Literal) GetHash() string { + if x != nil { + return x.Hash + } + return "" +} + +func (x *Literal) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +type isLiteral_Value interface { + isLiteral_Value() +} + +type Literal_Scalar struct { + // A simple value. + Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` +} + +type Literal_Collection struct { + // A collection of literals to allow nesting. + Collection *LiteralCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` +} + +type Literal_Map struct { + // A map of strings to literals. + Map *LiteralMap `protobuf:"bytes,3,opt,name=map,proto3,oneof"` +} + +func (*Literal_Scalar) isLiteral_Value() {} + +func (*Literal_Collection) isLiteral_Value() {} + +func (*Literal_Map) isLiteral_Value() {} + +// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type LiteralCollection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Literals []*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty"` +} + +func (x *LiteralCollection) Reset() { + *x = LiteralCollection{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiteralCollection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiteralCollection) ProtoMessage() {} + +func (x *LiteralCollection) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiteralCollection.ProtoReflect.Descriptor instead. +func (*LiteralCollection) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{11} +} + +func (x *LiteralCollection) GetLiterals() []*Literal { + if x != nil { + return x.Literals + } + return nil +} + +// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +type LiteralMap struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Literals map[string]*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *LiteralMap) Reset() { + *x = LiteralMap{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiteralMap) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiteralMap) ProtoMessage() {} + +func (x *LiteralMap) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiteralMap.ProtoReflect.Descriptor instead. +func (*LiteralMap) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{12} +} + +func (x *LiteralMap) GetLiterals() map[string]*Literal { + if x != nil { + return x.Literals + } + return nil +} + +// A collection of BindingData items. +type BindingDataCollection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bindings []*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` +} + +func (x *BindingDataCollection) Reset() { + *x = BindingDataCollection{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindingDataCollection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindingDataCollection) ProtoMessage() {} + +func (x *BindingDataCollection) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BindingDataCollection.ProtoReflect.Descriptor instead. +func (*BindingDataCollection) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{13} +} + +func (x *BindingDataCollection) GetBindings() []*BindingData { + if x != nil { + return x.Bindings + } + return nil +} + +// A map of BindingData items. +type BindingDataMap struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Bindings map[string]*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *BindingDataMap) Reset() { + *x = BindingDataMap{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindingDataMap) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindingDataMap) ProtoMessage() {} + +func (x *BindingDataMap) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BindingDataMap.ProtoReflect.Descriptor instead. +func (*BindingDataMap) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{14} +} + +func (x *BindingDataMap) GetBindings() map[string]*BindingData { + if x != nil { + return x.Bindings + } + return nil +} + +type UnionInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TargetType *LiteralType `protobuf:"bytes,1,opt,name=targetType,proto3" json:"targetType,omitempty"` +} + +func (x *UnionInfo) Reset() { + *x = UnionInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnionInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnionInfo) ProtoMessage() {} + +func (x *UnionInfo) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnionInfo.ProtoReflect.Descriptor instead. +func (*UnionInfo) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{15} +} + +func (x *UnionInfo) GetTargetType() *LiteralType { + if x != nil { + return x.TargetType + } + return nil +} + +// Specifies either a simple value or a reference to another output. +type BindingData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Value: + // + // *BindingData_Scalar + // *BindingData_Collection + // *BindingData_Promise + // *BindingData_Map + Value isBindingData_Value `protobuf_oneof:"value"` + Union *UnionInfo `protobuf:"bytes,5,opt,name=union,proto3" json:"union,omitempty"` +} + +func (x *BindingData) Reset() { + *x = BindingData{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BindingData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BindingData) ProtoMessage() {} + +func (x *BindingData) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BindingData.ProtoReflect.Descriptor instead. +func (*BindingData) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{16} +} + +func (m *BindingData) GetValue() isBindingData_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *BindingData) GetScalar() *Scalar { + if x, ok := x.GetValue().(*BindingData_Scalar); ok { + return x.Scalar + } + return nil +} + +func (x *BindingData) GetCollection() *BindingDataCollection { + if x, ok := x.GetValue().(*BindingData_Collection); ok { + return x.Collection + } + return nil +} + +func (x *BindingData) GetPromise() *OutputReference { + if x, ok := x.GetValue().(*BindingData_Promise); ok { + return x.Promise + } + return nil +} + +func (x *BindingData) GetMap() *BindingDataMap { + if x, ok := x.GetValue().(*BindingData_Map); ok { + return x.Map + } + return nil +} + +func (x *BindingData) GetUnion() *UnionInfo { + if x != nil { + return x.Union + } + return nil +} + +type isBindingData_Value interface { + isBindingData_Value() +} + +type BindingData_Scalar struct { + // A simple scalar value. + Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` +} + +type BindingData_Collection struct { + // A collection of binding data. This allows nesting of binding data to any number + // of levels. + Collection *BindingDataCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` +} + +type BindingData_Promise struct { + // References an output promised by another node. + Promise *OutputReference `protobuf:"bytes,3,opt,name=promise,proto3,oneof"` +} + +type BindingData_Map struct { + // A map of bindings. The key is always a string. + Map *BindingDataMap `protobuf:"bytes,4,opt,name=map,proto3,oneof"` +} + +func (*BindingData_Scalar) isBindingData_Value() {} + +func (*BindingData_Collection) isBindingData_Value() {} + +func (*BindingData_Promise) isBindingData_Value() {} + +func (*BindingData_Map) isBindingData_Value() {} + +// An input/output binding of a variable to either static value or a node output. +type Binding struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Variable name must match an input/output variable of the node. + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // Data to use to bind this variable. + Binding *BindingData `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"` +} + +func (x *Binding) Reset() { + *x = Binding{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Binding) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Binding) ProtoMessage() {} + +func (x *Binding) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Binding.ProtoReflect.Descriptor instead. +func (*Binding) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{17} +} + +func (x *Binding) GetVar() string { + if x != nil { + return x.Var + } + return "" +} + +func (x *Binding) GetBinding() *BindingData { + if x != nil { + return x.Binding + } + return nil +} + +// A generic key value pair. +type KeyValuePair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // required. + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + // +optional. + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *KeyValuePair) Reset() { + *x = KeyValuePair{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KeyValuePair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KeyValuePair) ProtoMessage() {} + +func (x *KeyValuePair) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead. +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{18} +} + +func (x *KeyValuePair) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *KeyValuePair) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// Retry strategy associated with an executable unit. +type RetryStrategy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of retries. Retries will be consumed when the job fails with a recoverable error. + // The number of retries must be less than or equals to 10. + Retries uint32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` +} + +func (x *RetryStrategy) Reset() { + *x = RetryStrategy{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_literals_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RetryStrategy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RetryStrategy) ProtoMessage() {} + +func (x *RetryStrategy) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_literals_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RetryStrategy.ProtoReflect.Descriptor instead. +func (*RetryStrategy) Descriptor() ([]byte, []int) { + return file_flyteidl_core_literals_proto_rawDescGZIP(), []int{19} +} + +func (x *RetryStrategy) GetRetries() uint32 { + if x != nil { + return x.Retries + } + return 0 +} + +var File_flyteidl_core_literals_proto protoreflect.FileDescriptor + +var file_flyteidl_core_literals_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x02, 0x0a, 0x09, 0x50, 0x72, 0x69, 0x6d, + 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x1a, 0x0a, 0x07, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x65, + 0x72, 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x07, 0x62, 0x6f, 0x6f, + 0x6c, 0x65, 0x61, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x07, 0x62, 0x6f, + 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x12, 0x38, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, + 0x37, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0x06, 0x0a, 0x04, 0x56, 0x6f, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x04, 0x42, 0x6c, 0x6f, + 0x62, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, + 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x22, 0x3b, 0x0a, 0x0c, + 0x42, 0x6c, 0x6f, 0x62, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x42, 0x69, 0x6e, + 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x49, 0x0a, 0x06, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x2d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x65, 0x0a, 0x05, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x12, + 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x79, 0x0a, + 0x19, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, + 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x17, 0x73, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x15, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, + 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x6b, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x10, 0x0a, + 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, + 0x44, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xf0, 0x03, 0x0a, 0x06, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, + 0x12, 0x38, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x48, 0x00, 0x52, + 0x09, 0x70, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x62, 0x6c, + 0x6f, 0x62, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x48, 0x00, 0x52, + 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x2f, 0x0a, 0x06, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x48, 0x00, 0x52, 0x06, + 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x48, 0x00, 0x52, + 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x09, 0x6e, 0x6f, 0x6e, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x6f, 0x69, 0x64, 0x48, + 0x00, 0x52, 0x08, 0x6e, 0x6f, 0x6e, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x67, 0x65, 0x6e, + 0x65, 0x72, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x48, 0x00, 0x52, 0x07, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x69, 0x63, 0x12, 0x51, + 0x0a, 0x12, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x48, 0x00, 0x52, 0x11, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x42, + 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc9, 0x02, 0x0a, 0x07, 0x4c, 0x69, 0x74, + 0x65, 0x72, 0x61, 0x6c, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x06, 0x73, + 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x42, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x63, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x03, 0x6d, 0x61, 0x70, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, + 0x70, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x61, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x40, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b, + 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x11, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x6c, 0x69, 0x74, + 0x65, 0x72, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x52, 0x08, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x22, 0xa6, 0x01, + 0x0a, 0x0a, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x12, 0x43, 0x0a, 0x08, + 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x73, 0x1a, 0x53, 0x0a, 0x0d, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4f, 0x0a, 0x15, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x36, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x62, + 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x42, 0x69, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x70, 0x12, 0x47, 0x0a, 0x08, 0x62, 0x69, + 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, + 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x70, 0x2e, 0x42, 0x69, 0x6e, 0x64, + 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x73, 0x1a, 0x57, 0x0a, 0x0d, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, + 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x47, 0x0a, 0x09, + 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x0a, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0xae, 0x02, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x06, + 0x73, 0x63, 0x61, 0x6c, 0x61, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, + 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, + 0x00, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x03, 0x6d, 0x61, + 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, + 0x61, 0x74, 0x61, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x03, 0x6d, 0x61, 0x70, 0x12, 0x2e, 0x0a, + 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x55, 0x6e, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x42, 0x07, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x51, 0x0a, 0x07, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, + 0x67, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x76, 0x61, 0x72, 0x12, 0x34, 0x0a, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x74, 0x61, + 0x52, 0x07, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x22, 0x36, 0x0a, 0x0c, 0x4b, 0x65, 0x79, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0x29, 0x0a, 0x0d, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, + 0x67, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x42, 0xb3, 0x01, 0x0a, + 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x42, 0x0d, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, + 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, + 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, + 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_literals_proto_rawDescOnce sync.Once + file_flyteidl_core_literals_proto_rawDescData = file_flyteidl_core_literals_proto_rawDesc +) + +func file_flyteidl_core_literals_proto_rawDescGZIP() []byte { + file_flyteidl_core_literals_proto_rawDescOnce.Do(func() { + file_flyteidl_core_literals_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_literals_proto_rawDescData) + }) + return file_flyteidl_core_literals_proto_rawDescData +} + +var file_flyteidl_core_literals_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_flyteidl_core_literals_proto_goTypes = []interface{}{ + (*Primitive)(nil), // 0: flyteidl.core.Primitive + (*Void)(nil), // 1: flyteidl.core.Void + (*Blob)(nil), // 2: flyteidl.core.Blob + (*BlobMetadata)(nil), // 3: flyteidl.core.BlobMetadata + (*Binary)(nil), // 4: flyteidl.core.Binary + (*Schema)(nil), // 5: flyteidl.core.Schema + (*Union)(nil), // 6: flyteidl.core.Union + (*StructuredDatasetMetadata)(nil), // 7: flyteidl.core.StructuredDatasetMetadata + (*StructuredDataset)(nil), // 8: flyteidl.core.StructuredDataset + (*Scalar)(nil), // 9: flyteidl.core.Scalar + (*Literal)(nil), // 10: flyteidl.core.Literal + (*LiteralCollection)(nil), // 11: flyteidl.core.LiteralCollection + (*LiteralMap)(nil), // 12: flyteidl.core.LiteralMap + (*BindingDataCollection)(nil), // 13: flyteidl.core.BindingDataCollection + (*BindingDataMap)(nil), // 14: flyteidl.core.BindingDataMap + (*UnionInfo)(nil), // 15: flyteidl.core.UnionInfo + (*BindingData)(nil), // 16: flyteidl.core.BindingData + (*Binding)(nil), // 17: flyteidl.core.Binding + (*KeyValuePair)(nil), // 18: flyteidl.core.KeyValuePair + (*RetryStrategy)(nil), // 19: flyteidl.core.RetryStrategy + nil, // 20: flyteidl.core.Literal.MetadataEntry + nil, // 21: flyteidl.core.LiteralMap.LiteralsEntry + nil, // 22: flyteidl.core.BindingDataMap.BindingsEntry + (*timestamppb.Timestamp)(nil), // 23: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 24: google.protobuf.Duration + (*BlobType)(nil), // 25: flyteidl.core.BlobType + (*SchemaType)(nil), // 26: flyteidl.core.SchemaType + (*LiteralType)(nil), // 27: flyteidl.core.LiteralType + (*StructuredDatasetType)(nil), // 28: flyteidl.core.StructuredDatasetType + (*Error)(nil), // 29: flyteidl.core.Error + (*structpb.Struct)(nil), // 30: google.protobuf.Struct + (*OutputReference)(nil), // 31: flyteidl.core.OutputReference +} +var file_flyteidl_core_literals_proto_depIdxs = []int32{ + 23, // 0: flyteidl.core.Primitive.datetime:type_name -> google.protobuf.Timestamp + 24, // 1: flyteidl.core.Primitive.duration:type_name -> google.protobuf.Duration + 3, // 2: flyteidl.core.Blob.metadata:type_name -> flyteidl.core.BlobMetadata + 25, // 3: flyteidl.core.BlobMetadata.type:type_name -> flyteidl.core.BlobType + 26, // 4: flyteidl.core.Schema.type:type_name -> flyteidl.core.SchemaType + 10, // 5: flyteidl.core.Union.value:type_name -> flyteidl.core.Literal + 27, // 6: flyteidl.core.Union.type:type_name -> flyteidl.core.LiteralType + 28, // 7: flyteidl.core.StructuredDatasetMetadata.structured_dataset_type:type_name -> flyteidl.core.StructuredDatasetType + 7, // 8: flyteidl.core.StructuredDataset.metadata:type_name -> flyteidl.core.StructuredDatasetMetadata + 0, // 9: flyteidl.core.Scalar.primitive:type_name -> flyteidl.core.Primitive + 2, // 10: flyteidl.core.Scalar.blob:type_name -> flyteidl.core.Blob + 4, // 11: flyteidl.core.Scalar.binary:type_name -> flyteidl.core.Binary + 5, // 12: flyteidl.core.Scalar.schema:type_name -> flyteidl.core.Schema + 1, // 13: flyteidl.core.Scalar.none_type:type_name -> flyteidl.core.Void + 29, // 14: flyteidl.core.Scalar.error:type_name -> flyteidl.core.Error + 30, // 15: flyteidl.core.Scalar.generic:type_name -> google.protobuf.Struct + 8, // 16: flyteidl.core.Scalar.structured_dataset:type_name -> flyteidl.core.StructuredDataset + 6, // 17: flyteidl.core.Scalar.union:type_name -> flyteidl.core.Union + 9, // 18: flyteidl.core.Literal.scalar:type_name -> flyteidl.core.Scalar + 11, // 19: flyteidl.core.Literal.collection:type_name -> flyteidl.core.LiteralCollection + 12, // 20: flyteidl.core.Literal.map:type_name -> flyteidl.core.LiteralMap + 20, // 21: flyteidl.core.Literal.metadata:type_name -> flyteidl.core.Literal.MetadataEntry + 10, // 22: flyteidl.core.LiteralCollection.literals:type_name -> flyteidl.core.Literal + 21, // 23: flyteidl.core.LiteralMap.literals:type_name -> flyteidl.core.LiteralMap.LiteralsEntry + 16, // 24: flyteidl.core.BindingDataCollection.bindings:type_name -> flyteidl.core.BindingData + 22, // 25: flyteidl.core.BindingDataMap.bindings:type_name -> flyteidl.core.BindingDataMap.BindingsEntry + 27, // 26: flyteidl.core.UnionInfo.targetType:type_name -> flyteidl.core.LiteralType + 9, // 27: flyteidl.core.BindingData.scalar:type_name -> flyteidl.core.Scalar + 13, // 28: flyteidl.core.BindingData.collection:type_name -> flyteidl.core.BindingDataCollection + 31, // 29: flyteidl.core.BindingData.promise:type_name -> flyteidl.core.OutputReference + 14, // 30: flyteidl.core.BindingData.map:type_name -> flyteidl.core.BindingDataMap + 15, // 31: flyteidl.core.BindingData.union:type_name -> flyteidl.core.UnionInfo + 16, // 32: flyteidl.core.Binding.binding:type_name -> flyteidl.core.BindingData + 10, // 33: flyteidl.core.LiteralMap.LiteralsEntry.value:type_name -> flyteidl.core.Literal + 16, // 34: flyteidl.core.BindingDataMap.BindingsEntry.value:type_name -> flyteidl.core.BindingData + 35, // [35:35] is the sub-list for method output_type + 35, // [35:35] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_literals_proto_init() } +func file_flyteidl_core_literals_proto_init() { + if File_flyteidl_core_literals_proto != nil { + return + } + file_flyteidl_core_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_literals_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Primitive); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Void); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Blob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlobMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Binary); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Schema); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Union); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructuredDatasetMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructuredDataset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Scalar); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Literal); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LiteralCollection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LiteralMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BindingDataCollection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BindingDataMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BindingData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Binding); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeyValuePair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_literals_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RetryStrategy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_literals_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Primitive_Integer)(nil), + (*Primitive_FloatValue)(nil), + (*Primitive_StringValue)(nil), + (*Primitive_Boolean)(nil), + (*Primitive_Datetime)(nil), + (*Primitive_Duration)(nil), + } + file_flyteidl_core_literals_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*Scalar_Primitive)(nil), + (*Scalar_Blob)(nil), + (*Scalar_Binary)(nil), + (*Scalar_Schema)(nil), + (*Scalar_NoneType)(nil), + (*Scalar_Error)(nil), + (*Scalar_Generic)(nil), + (*Scalar_StructuredDataset)(nil), + (*Scalar_Union)(nil), + } + file_flyteidl_core_literals_proto_msgTypes[10].OneofWrappers = []interface{}{ + (*Literal_Scalar)(nil), + (*Literal_Collection)(nil), + (*Literal_Map)(nil), + } + file_flyteidl_core_literals_proto_msgTypes[16].OneofWrappers = []interface{}{ + (*BindingData_Scalar)(nil), + (*BindingData_Collection)(nil), + (*BindingData_Promise)(nil), + (*BindingData_Map)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_literals_proto_rawDesc, + NumEnums: 0, + NumMessages: 23, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_literals_proto_goTypes, + DependencyIndexes: file_flyteidl_core_literals_proto_depIdxs, + MessageInfos: file_flyteidl_core_literals_proto_msgTypes, + }.Build() + File_flyteidl_core_literals_proto = out.File + file_flyteidl_core_literals_proto_rawDesc = nil + file_flyteidl_core_literals_proto_goTypes = nil + file_flyteidl_core_literals_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go new file mode 100644 index 0000000000..54721deeb3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go @@ -0,0 +1,381 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/metrics.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +// precise definitions. +type Span struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // start_time defines the instance this span began. + StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + // end_time defines the instance this span completed. + EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + // Types that are assignable to Id: + // + // *Span_WorkflowId + // *Span_NodeId + // *Span_TaskId + // *Span_OperationId + Id isSpan_Id `protobuf_oneof:"id"` + // spans defines a collection of Spans that breakdown this execution. + Spans []*Span `protobuf:"bytes,7,rep,name=spans,proto3" json:"spans,omitempty"` +} + +func (x *Span) Reset() { + *x = Span{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_metrics_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Span) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Span) ProtoMessage() {} + +func (x *Span) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_metrics_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Span.ProtoReflect.Descriptor instead. +func (*Span) Descriptor() ([]byte, []int) { + return file_flyteidl_core_metrics_proto_rawDescGZIP(), []int{0} +} + +func (x *Span) GetStartTime() *timestamppb.Timestamp { + if x != nil { + return x.StartTime + } + return nil +} + +func (x *Span) GetEndTime() *timestamppb.Timestamp { + if x != nil { + return x.EndTime + } + return nil +} + +func (m *Span) GetId() isSpan_Id { + if m != nil { + return m.Id + } + return nil +} + +func (x *Span) GetWorkflowId() *WorkflowExecutionIdentifier { + if x, ok := x.GetId().(*Span_WorkflowId); ok { + return x.WorkflowId + } + return nil +} + +func (x *Span) GetNodeId() *NodeExecutionIdentifier { + if x, ok := x.GetId().(*Span_NodeId); ok { + return x.NodeId + } + return nil +} + +func (x *Span) GetTaskId() *TaskExecutionIdentifier { + if x, ok := x.GetId().(*Span_TaskId); ok { + return x.TaskId + } + return nil +} + +func (x *Span) GetOperationId() string { + if x, ok := x.GetId().(*Span_OperationId); ok { + return x.OperationId + } + return "" +} + +func (x *Span) GetSpans() []*Span { + if x != nil { + return x.Spans + } + return nil +} + +type isSpan_Id interface { + isSpan_Id() +} + +type Span_WorkflowId struct { + // workflow_id is the id of the workflow execution this Span represents. + WorkflowId *WorkflowExecutionIdentifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3,oneof"` +} + +type Span_NodeId struct { + // node_id is the id of the node execution this Span represents. + NodeId *NodeExecutionIdentifier `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3,oneof"` +} + +type Span_TaskId struct { + // task_id is the id of the task execution this Span represents. + TaskId *TaskExecutionIdentifier `protobuf:"bytes,5,opt,name=task_id,json=taskId,proto3,oneof"` +} + +type Span_OperationId struct { + // operation_id is the id of a unique operation that this Span represents. + OperationId string `protobuf:"bytes,6,opt,name=operation_id,json=operationId,proto3,oneof"` +} + +func (*Span_WorkflowId) isSpan_Id() {} + +func (*Span_NodeId) isSpan_Id() {} + +func (*Span_TaskId) isSpan_Id() {} + +func (*Span_OperationId) isSpan_Id() {} + +// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. +type ExecutionMetricResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + Metric string `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"` + // The result data in prometheus range query result format + // https://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats. + // This may include multiple time series, differentiated by their metric labels. + // Start time is greater of (execution attempt start, 48h ago) + // End time is lesser of (execution attempt end, now) + Data *structpb.Struct `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *ExecutionMetricResult) Reset() { + *x = ExecutionMetricResult{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_metrics_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionMetricResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionMetricResult) ProtoMessage() {} + +func (x *ExecutionMetricResult) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_metrics_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionMetricResult.ProtoReflect.Descriptor instead. +func (*ExecutionMetricResult) Descriptor() ([]byte, []int) { + return file_flyteidl_core_metrics_proto_rawDescGZIP(), []int{1} +} + +func (x *ExecutionMetricResult) GetMetric() string { + if x != nil { + return x.Metric + } + return "" +} + +func (x *ExecutionMetricResult) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +var File_flyteidl_core_metrics_proto protoreflect.FileDescriptor + +var file_flyteidl_core_metrics_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x03, 0x0a, 0x04, + 0x53, 0x70, 0x61, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, + 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0c, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x12, 0x29, 0x0a, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x53, 0x70, 0x61, 0x6e, 0x52, 0x05, 0x73, 0x70, 0x61, 0x6e, 0x73, 0x42, 0x04, 0x0a, 0x02, 0x69, + 0x64, 0x22, 0x5c, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, + 0x74, 0x72, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, + 0xb2, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0c, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, + 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_metrics_proto_rawDescOnce sync.Once + file_flyteidl_core_metrics_proto_rawDescData = file_flyteidl_core_metrics_proto_rawDesc +) + +func file_flyteidl_core_metrics_proto_rawDescGZIP() []byte { + file_flyteidl_core_metrics_proto_rawDescOnce.Do(func() { + file_flyteidl_core_metrics_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_metrics_proto_rawDescData) + }) + return file_flyteidl_core_metrics_proto_rawDescData +} + +var file_flyteidl_core_metrics_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_flyteidl_core_metrics_proto_goTypes = []interface{}{ + (*Span)(nil), // 0: flyteidl.core.Span + (*ExecutionMetricResult)(nil), // 1: flyteidl.core.ExecutionMetricResult + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*WorkflowExecutionIdentifier)(nil), // 3: flyteidl.core.WorkflowExecutionIdentifier + (*NodeExecutionIdentifier)(nil), // 4: flyteidl.core.NodeExecutionIdentifier + (*TaskExecutionIdentifier)(nil), // 5: flyteidl.core.TaskExecutionIdentifier + (*structpb.Struct)(nil), // 6: google.protobuf.Struct +} +var file_flyteidl_core_metrics_proto_depIdxs = []int32{ + 2, // 0: flyteidl.core.Span.start_time:type_name -> google.protobuf.Timestamp + 2, // 1: flyteidl.core.Span.end_time:type_name -> google.protobuf.Timestamp + 3, // 2: flyteidl.core.Span.workflow_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 4, // 3: flyteidl.core.Span.node_id:type_name -> flyteidl.core.NodeExecutionIdentifier + 5, // 4: flyteidl.core.Span.task_id:type_name -> flyteidl.core.TaskExecutionIdentifier + 0, // 5: flyteidl.core.Span.spans:type_name -> flyteidl.core.Span + 6, // 6: flyteidl.core.ExecutionMetricResult.data:type_name -> google.protobuf.Struct + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_metrics_proto_init() } +func file_flyteidl_core_metrics_proto_init() { + if File_flyteidl_core_metrics_proto != nil { + return + } + file_flyteidl_core_identifier_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_metrics_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Span); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_metrics_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionMetricResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_metrics_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*Span_WorkflowId)(nil), + (*Span_NodeId)(nil), + (*Span_TaskId)(nil), + (*Span_OperationId)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_metrics_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_metrics_proto_goTypes, + DependencyIndexes: file_flyteidl_core_metrics_proto_depIdxs, + MessageInfos: file_flyteidl_core_metrics_proto_msgTypes, + }.Build() + File_flyteidl_core_metrics_proto = out.File + file_flyteidl_core_metrics_proto_rawDesc = nil + file_flyteidl_core_metrics_proto_goTypes = nil + file_flyteidl_core_metrics_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.pb.go b/flyteidl/gen/pb-go/flyteidl/core/security.pb.go new file mode 100644 index 0000000000..e3ee1e1b1b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/security.pb.go @@ -0,0 +1,727 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/security.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Secret_MountType int32 + +const ( + // Default case, indicates the client can tolerate either mounting options. + Secret_ANY Secret_MountType = 0 + // ENV_VAR indicates the secret needs to be mounted as an environment variable. + Secret_ENV_VAR Secret_MountType = 1 + // FILE indicates the secret needs to be mounted as a file. + Secret_FILE Secret_MountType = 2 +) + +// Enum value maps for Secret_MountType. +var ( + Secret_MountType_name = map[int32]string{ + 0: "ANY", + 1: "ENV_VAR", + 2: "FILE", + } + Secret_MountType_value = map[string]int32{ + "ANY": 0, + "ENV_VAR": 1, + "FILE": 2, + } +) + +func (x Secret_MountType) Enum() *Secret_MountType { + p := new(Secret_MountType) + *p = x + return p +} + +func (x Secret_MountType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Secret_MountType) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_security_proto_enumTypes[0].Descriptor() +} + +func (Secret_MountType) Type() protoreflect.EnumType { + return &file_flyteidl_core_security_proto_enumTypes[0] +} + +func (x Secret_MountType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Secret_MountType.Descriptor instead. +func (Secret_MountType) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{0, 0} +} + +// Type of the token requested. +type OAuth2TokenRequest_Type int32 + +const ( + // CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. + OAuth2TokenRequest_CLIENT_CREDENTIALS OAuth2TokenRequest_Type = 0 +) + +// Enum value maps for OAuth2TokenRequest_Type. +var ( + OAuth2TokenRequest_Type_name = map[int32]string{ + 0: "CLIENT_CREDENTIALS", + } + OAuth2TokenRequest_Type_value = map[string]int32{ + "CLIENT_CREDENTIALS": 0, + } +) + +func (x OAuth2TokenRequest_Type) Enum() *OAuth2TokenRequest_Type { + p := new(OAuth2TokenRequest_Type) + *p = x + return p +} + +func (x OAuth2TokenRequest_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OAuth2TokenRequest_Type) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_security_proto_enumTypes[1].Descriptor() +} + +func (OAuth2TokenRequest_Type) Type() protoreflect.EnumType { + return &file_flyteidl_core_security_proto_enumTypes[1] +} + +func (x OAuth2TokenRequest_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OAuth2TokenRequest_Type.Descriptor instead. +func (OAuth2TokenRequest_Type) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{3, 0} +} + +// Secret encapsulates information about the secret a task needs to proceed. An environment variable +// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +// secrets are passed through environment variables. +// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets +// are passed through file mounts. +type Secret struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of + // the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. + // For AWS Secret Manager, this should be the name of the secret. + // +required + Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` + // The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones + // that do not support it. + // +optional + GroupVersion string `protobuf:"bytes,2,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"` + // The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation + // of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should + // match one of the keys inside the secret. For AWS Secret Manager, it's ignored. + // +optional + Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` + // mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail + // if the underlying key management system cannot satisfy that requirement. If not provided, the default location + // will depend on the key management system. + // +optional + MountRequirement Secret_MountType `protobuf:"varint,4,opt,name=mount_requirement,json=mountRequirement,proto3,enum=flyteidl.core.Secret_MountType" json:"mount_requirement,omitempty"` +} + +func (x *Secret) Reset() { + *x = Secret{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_security_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Secret) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Secret) ProtoMessage() {} + +func (x *Secret) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_security_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Secret.ProtoReflect.Descriptor instead. +func (*Secret) Descriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{0} +} + +func (x *Secret) GetGroup() string { + if x != nil { + return x.Group + } + return "" +} + +func (x *Secret) GetGroupVersion() string { + if x != nil { + return x.GroupVersion + } + return "" +} + +func (x *Secret) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *Secret) GetMountRequirement() Secret_MountType { + if x != nil { + return x.MountRequirement + } + return Secret_ANY +} + +// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +type OAuth2Client struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // client_id is the public id for the client to use. The system will not perform any pre-auth validation that the + // secret requested matches the client_id indicated here. + // +required + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // client_secret is a reference to the secret used to authenticate the OAuth2 client. + // +required + ClientSecret *Secret `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` +} + +func (x *OAuth2Client) Reset() { + *x = OAuth2Client{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_security_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OAuth2Client) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OAuth2Client) ProtoMessage() {} + +func (x *OAuth2Client) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_security_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OAuth2Client.ProtoReflect.Descriptor instead. +func (*OAuth2Client) Descriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{1} +} + +func (x *OAuth2Client) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + +func (x *OAuth2Client) GetClientSecret() *Secret { + if x != nil { + return x.ClientSecret + } + return nil +} + +// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the +// right identity for the execution environment. +type Identity struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // iam_role references the fully qualified name of Identity & Access Management role to impersonate. + IamRole string `protobuf:"bytes,1,opt,name=iam_role,json=iamRole,proto3" json:"iam_role,omitempty"` + // k8s_service_account references a kubernetes service account to impersonate. + K8SServiceAccount string `protobuf:"bytes,2,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` + // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when + // making external calls. + Oauth2Client *OAuth2Client `protobuf:"bytes,3,opt,name=oauth2_client,json=oauth2Client,proto3" json:"oauth2_client,omitempty"` + // execution_identity references the subject who makes the execution + ExecutionIdentity string `protobuf:"bytes,4,opt,name=execution_identity,json=executionIdentity,proto3" json:"execution_identity,omitempty"` +} + +func (x *Identity) Reset() { + *x = Identity{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_security_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Identity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Identity) ProtoMessage() {} + +func (x *Identity) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_security_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Identity.ProtoReflect.Descriptor instead. +func (*Identity) Descriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{2} +} + +func (x *Identity) GetIamRole() string { + if x != nil { + return x.IamRole + } + return "" +} + +func (x *Identity) GetK8SServiceAccount() string { + if x != nil { + return x.K8SServiceAccount + } + return "" +} + +func (x *Identity) GetOauth2Client() *OAuth2Client { + if x != nil { + return x.Oauth2Client + } + return nil +} + +func (x *Identity) GetExecutionIdentity() string { + if x != nil { + return x.ExecutionIdentity + } + return "" +} + +// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. +// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +// tokens are passed through environment variables. +// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens +// are passed through file mounts. +type OAuth2TokenRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for + // environment variables and as a filename for mounting tokens as files. + // +required + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. + // +required + Type OAuth2TokenRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.OAuth2TokenRequest_Type" json:"type,omitempty"` + // client references the client_id/secret to use to request the OAuth2 token. + // +required + Client *OAuth2Client `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` + // idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related + // information. + // +optional + IdpDiscoveryEndpoint string `protobuf:"bytes,4,opt,name=idp_discovery_endpoint,json=idpDiscoveryEndpoint,proto3" json:"idp_discovery_endpoint,omitempty"` + // token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is + // mandatory. + // +optional + TokenEndpoint string `protobuf:"bytes,5,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` +} + +func (x *OAuth2TokenRequest) Reset() { + *x = OAuth2TokenRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_security_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OAuth2TokenRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OAuth2TokenRequest) ProtoMessage() {} + +func (x *OAuth2TokenRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_security_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OAuth2TokenRequest.ProtoReflect.Descriptor instead. +func (*OAuth2TokenRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{3} +} + +func (x *OAuth2TokenRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OAuth2TokenRequest) GetType() OAuth2TokenRequest_Type { + if x != nil { + return x.Type + } + return OAuth2TokenRequest_CLIENT_CREDENTIALS +} + +func (x *OAuth2TokenRequest) GetClient() *OAuth2Client { + if x != nil { + return x.Client + } + return nil +} + +func (x *OAuth2TokenRequest) GetIdpDiscoveryEndpoint() string { + if x != nil { + return x.IdpDiscoveryEndpoint + } + return "" +} + +func (x *OAuth2TokenRequest) GetTokenEndpoint() string { + if x != nil { + return x.TokenEndpoint + } + return "" +} + +// SecurityContext holds security attributes that apply to tasks. +type SecurityContext struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the + // backend plugin to choose the appropriate identity for the execution engine the task will run on. + RunAs *Identity `protobuf:"bytes,1,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` + // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the + // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + // to the secret) and to pass it to the remote execution engine. + Secrets []*Secret `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` + // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the + // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + // to the secret) and to pass it to the remote execution engine. + Tokens []*OAuth2TokenRequest `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` +} + +func (x *SecurityContext) Reset() { + *x = SecurityContext{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_security_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SecurityContext) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityContext) ProtoMessage() {} + +func (x *SecurityContext) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_security_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SecurityContext.ProtoReflect.Descriptor instead. +func (*SecurityContext) Descriptor() ([]byte, []int) { + return file_flyteidl_core_security_proto_rawDescGZIP(), []int{4} +} + +func (x *SecurityContext) GetRunAs() *Identity { + if x != nil { + return x.RunAs + } + return nil +} + +func (x *SecurityContext) GetSecrets() []*Secret { + if x != nil { + return x.Secrets + } + return nil +} + +func (x *SecurityContext) GetTokens() []*OAuth2TokenRequest { + if x != nil { + return x.Tokens + } + return nil +} + +var File_flyteidl_core_security_proto protoreflect.FileDescriptor + +var file_flyteidl_core_security_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x22, 0xd0, 0x01, + 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x23, + 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4c, 0x0a, 0x11, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x10, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, + 0x65, 0x6e, 0x74, 0x22, 0x2b, 0x0a, 0x09, 0x4d, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x56, + 0x5f, 0x56, 0x41, 0x52, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x02, + 0x22, 0x67, 0x0a, 0x0c, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x3a, 0x0a, + 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x0c, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0xc6, 0x01, 0x0a, 0x08, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x5f, 0x72, 0x6f, + 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x61, 0x6d, 0x52, 0x6f, 0x6c, + 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x6b, 0x38, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, + 0x6b, 0x38, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x40, 0x0a, 0x0d, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x5f, 0x63, 0x6c, 0x69, 0x65, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x43, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x22, 0x96, 0x02, 0x0a, 0x12, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, + 0x68, 0x32, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, + 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x34, + 0x0a, 0x16, 0x69, 0x64, 0x70, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, + 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, + 0x69, 0x64, 0x70, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x45, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x1e, 0x0a, 0x04, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x43, 0x52, + 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x53, 0x10, 0x00, 0x22, 0xad, 0x01, 0x0a, 0x0f, + 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, + 0x2e, 0x0a, 0x06, 0x72, 0x75, 0x6e, 0x5f, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x05, 0x72, 0x75, 0x6e, 0x41, 0x73, 0x12, + 0x2f, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, + 0x12, 0x39, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, + 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x42, 0x0d, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, + 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_security_proto_rawDescOnce sync.Once + file_flyteidl_core_security_proto_rawDescData = file_flyteidl_core_security_proto_rawDesc +) + +func file_flyteidl_core_security_proto_rawDescGZIP() []byte { + file_flyteidl_core_security_proto_rawDescOnce.Do(func() { + file_flyteidl_core_security_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_security_proto_rawDescData) + }) + return file_flyteidl_core_security_proto_rawDescData +} + +var file_flyteidl_core_security_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_core_security_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_flyteidl_core_security_proto_goTypes = []interface{}{ + (Secret_MountType)(0), // 0: flyteidl.core.Secret.MountType + (OAuth2TokenRequest_Type)(0), // 1: flyteidl.core.OAuth2TokenRequest.Type + (*Secret)(nil), // 2: flyteidl.core.Secret + (*OAuth2Client)(nil), // 3: flyteidl.core.OAuth2Client + (*Identity)(nil), // 4: flyteidl.core.Identity + (*OAuth2TokenRequest)(nil), // 5: flyteidl.core.OAuth2TokenRequest + (*SecurityContext)(nil), // 6: flyteidl.core.SecurityContext +} +var file_flyteidl_core_security_proto_depIdxs = []int32{ + 0, // 0: flyteidl.core.Secret.mount_requirement:type_name -> flyteidl.core.Secret.MountType + 2, // 1: flyteidl.core.OAuth2Client.client_secret:type_name -> flyteidl.core.Secret + 3, // 2: flyteidl.core.Identity.oauth2_client:type_name -> flyteidl.core.OAuth2Client + 1, // 3: flyteidl.core.OAuth2TokenRequest.type:type_name -> flyteidl.core.OAuth2TokenRequest.Type + 3, // 4: flyteidl.core.OAuth2TokenRequest.client:type_name -> flyteidl.core.OAuth2Client + 4, // 5: flyteidl.core.SecurityContext.run_as:type_name -> flyteidl.core.Identity + 2, // 6: flyteidl.core.SecurityContext.secrets:type_name -> flyteidl.core.Secret + 5, // 7: flyteidl.core.SecurityContext.tokens:type_name -> flyteidl.core.OAuth2TokenRequest + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_security_proto_init() } +func file_flyteidl_core_security_proto_init() { + if File_flyteidl_core_security_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_security_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Secret); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_security_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OAuth2Client); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_security_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Identity); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_security_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OAuth2TokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_security_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SecurityContext); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_security_proto_rawDesc, + NumEnums: 2, + NumMessages: 5, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_security_proto_goTypes, + DependencyIndexes: file_flyteidl_core_security_proto_depIdxs, + EnumInfos: file_flyteidl_core_security_proto_enumTypes, + MessageInfos: file_flyteidl_core_security_proto_msgTypes, + }.Build() + File_flyteidl_core_security_proto = out.File + file_flyteidl_core_security_proto_rawDesc = nil + file_flyteidl_core_security_proto_goTypes = nil + file_flyteidl_core_security_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go new file mode 100644 index 0000000000..92a40b8e01 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go @@ -0,0 +1,2215 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/tasks.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Known resource names. +type Resources_ResourceName int32 + +const ( + Resources_UNKNOWN Resources_ResourceName = 0 + Resources_CPU Resources_ResourceName = 1 + Resources_GPU Resources_ResourceName = 2 + Resources_MEMORY Resources_ResourceName = 3 + Resources_STORAGE Resources_ResourceName = 4 + // For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. + Resources_EPHEMERAL_STORAGE Resources_ResourceName = 5 +) + +// Enum value maps for Resources_ResourceName. +var ( + Resources_ResourceName_name = map[int32]string{ + 0: "UNKNOWN", + 1: "CPU", + 2: "GPU", + 3: "MEMORY", + 4: "STORAGE", + 5: "EPHEMERAL_STORAGE", + } + Resources_ResourceName_value = map[string]int32{ + "UNKNOWN": 0, + "CPU": 1, + "GPU": 2, + "MEMORY": 3, + "STORAGE": 4, + "EPHEMERAL_STORAGE": 5, + } +) + +func (x Resources_ResourceName) Enum() *Resources_ResourceName { + p := new(Resources_ResourceName) + *p = x + return p +} + +func (x Resources_ResourceName) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Resources_ResourceName) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[0].Descriptor() +} + +func (Resources_ResourceName) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[0] +} + +func (x Resources_ResourceName) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Resources_ResourceName.Descriptor instead. +func (Resources_ResourceName) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{0, 0} +} + +type RuntimeMetadata_RuntimeType int32 + +const ( + RuntimeMetadata_OTHER RuntimeMetadata_RuntimeType = 0 + RuntimeMetadata_FLYTE_SDK RuntimeMetadata_RuntimeType = 1 +) + +// Enum value maps for RuntimeMetadata_RuntimeType. +var ( + RuntimeMetadata_RuntimeType_name = map[int32]string{ + 0: "OTHER", + 1: "FLYTE_SDK", + } + RuntimeMetadata_RuntimeType_value = map[string]int32{ + "OTHER": 0, + "FLYTE_SDK": 1, + } +) + +func (x RuntimeMetadata_RuntimeType) Enum() *RuntimeMetadata_RuntimeType { + p := new(RuntimeMetadata_RuntimeType) + *p = x + return p +} + +func (x RuntimeMetadata_RuntimeType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RuntimeMetadata_RuntimeType) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[1].Descriptor() +} + +func (RuntimeMetadata_RuntimeType) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[1] +} + +func (x RuntimeMetadata_RuntimeType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RuntimeMetadata_RuntimeType.Descriptor instead. +func (RuntimeMetadata_RuntimeType) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{3, 0} +} + +// Architecture-type the container image supports. +type Container_Architecture int32 + +const ( + Container_UNKNOWN Container_Architecture = 0 + Container_AMD64 Container_Architecture = 1 + Container_ARM64 Container_Architecture = 2 + Container_ARM_V6 Container_Architecture = 3 + Container_ARM_V7 Container_Architecture = 4 +) + +// Enum value maps for Container_Architecture. +var ( + Container_Architecture_name = map[int32]string{ + 0: "UNKNOWN", + 1: "AMD64", + 2: "ARM64", + 3: "ARM_V6", + 4: "ARM_V7", + } + Container_Architecture_value = map[string]int32{ + "UNKNOWN": 0, + "AMD64": 1, + "ARM64": 2, + "ARM_V6": 3, + "ARM_V7": 4, + } +) + +func (x Container_Architecture) Enum() *Container_Architecture { + p := new(Container_Architecture) + *p = x + return p +} + +func (x Container_Architecture) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Container_Architecture) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[2].Descriptor() +} + +func (Container_Architecture) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[2] +} + +func (x Container_Architecture) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Container_Architecture.Descriptor instead. +func (Container_Architecture) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{7, 0} +} + +// Mode to use for downloading +type IOStrategy_DownloadMode int32 + +const ( + // All data will be downloaded before the main container is executed + IOStrategy_DOWNLOAD_EAGER IOStrategy_DownloadMode = 0 + // Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details + IOStrategy_DOWNLOAD_STREAM IOStrategy_DownloadMode = 1 + // Large objects (offloaded) will not be downloaded + IOStrategy_DO_NOT_DOWNLOAD IOStrategy_DownloadMode = 2 +) + +// Enum value maps for IOStrategy_DownloadMode. +var ( + IOStrategy_DownloadMode_name = map[int32]string{ + 0: "DOWNLOAD_EAGER", + 1: "DOWNLOAD_STREAM", + 2: "DO_NOT_DOWNLOAD", + } + IOStrategy_DownloadMode_value = map[string]int32{ + "DOWNLOAD_EAGER": 0, + "DOWNLOAD_STREAM": 1, + "DO_NOT_DOWNLOAD": 2, + } +) + +func (x IOStrategy_DownloadMode) Enum() *IOStrategy_DownloadMode { + p := new(IOStrategy_DownloadMode) + *p = x + return p +} + +func (x IOStrategy_DownloadMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IOStrategy_DownloadMode) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[3].Descriptor() +} + +func (IOStrategy_DownloadMode) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[3] +} + +func (x IOStrategy_DownloadMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IOStrategy_DownloadMode.Descriptor instead. +func (IOStrategy_DownloadMode) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{8, 0} +} + +// Mode to use for uploading +type IOStrategy_UploadMode int32 + +const ( + // All data will be uploaded after the main container exits + IOStrategy_UPLOAD_ON_EXIT IOStrategy_UploadMode = 0 + // Data will be uploaded as it appears. Refer to protocol specification for details + IOStrategy_UPLOAD_EAGER IOStrategy_UploadMode = 1 + // Data will not be uploaded, only references will be written + IOStrategy_DO_NOT_UPLOAD IOStrategy_UploadMode = 2 +) + +// Enum value maps for IOStrategy_UploadMode. +var ( + IOStrategy_UploadMode_name = map[int32]string{ + 0: "UPLOAD_ON_EXIT", + 1: "UPLOAD_EAGER", + 2: "DO_NOT_UPLOAD", + } + IOStrategy_UploadMode_value = map[string]int32{ + "UPLOAD_ON_EXIT": 0, + "UPLOAD_EAGER": 1, + "DO_NOT_UPLOAD": 2, + } +) + +func (x IOStrategy_UploadMode) Enum() *IOStrategy_UploadMode { + p := new(IOStrategy_UploadMode) + *p = x + return p +} + +func (x IOStrategy_UploadMode) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (IOStrategy_UploadMode) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[4].Descriptor() +} + +func (IOStrategy_UploadMode) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[4] +} + +func (x IOStrategy_UploadMode) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use IOStrategy_UploadMode.Descriptor instead. +func (IOStrategy_UploadMode) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{8, 1} +} + +// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. +// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. +// JSON and YAML do not need any protobuf definitions to read it +// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) +type DataLoadingConfig_LiteralMapFormat int32 + +const ( + // JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html + DataLoadingConfig_JSON DataLoadingConfig_LiteralMapFormat = 0 + DataLoadingConfig_YAML DataLoadingConfig_LiteralMapFormat = 1 + // Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core + DataLoadingConfig_PROTO DataLoadingConfig_LiteralMapFormat = 2 +) + +// Enum value maps for DataLoadingConfig_LiteralMapFormat. +var ( + DataLoadingConfig_LiteralMapFormat_name = map[int32]string{ + 0: "JSON", + 1: "YAML", + 2: "PROTO", + } + DataLoadingConfig_LiteralMapFormat_value = map[string]int32{ + "JSON": 0, + "YAML": 1, + "PROTO": 2, + } +) + +func (x DataLoadingConfig_LiteralMapFormat) Enum() *DataLoadingConfig_LiteralMapFormat { + p := new(DataLoadingConfig_LiteralMapFormat) + *p = x + return p +} + +func (x DataLoadingConfig_LiteralMapFormat) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (DataLoadingConfig_LiteralMapFormat) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[5].Descriptor() +} + +func (DataLoadingConfig_LiteralMapFormat) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[5] +} + +func (x DataLoadingConfig_LiteralMapFormat) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use DataLoadingConfig_LiteralMapFormat.Descriptor instead. +func (DataLoadingConfig_LiteralMapFormat) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{9, 0} +} + +// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid +// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. +// We support the following dialect: ansi, hive. +type Sql_Dialect int32 + +const ( + Sql_UNDEFINED Sql_Dialect = 0 + Sql_ANSI Sql_Dialect = 1 + Sql_HIVE Sql_Dialect = 2 + Sql_OTHER Sql_Dialect = 3 +) + +// Enum value maps for Sql_Dialect. +var ( + Sql_Dialect_name = map[int32]string{ + 0: "UNDEFINED", + 1: "ANSI", + 2: "HIVE", + 3: "OTHER", + } + Sql_Dialect_value = map[string]int32{ + "UNDEFINED": 0, + "ANSI": 1, + "HIVE": 2, + "OTHER": 3, + } +) + +func (x Sql_Dialect) Enum() *Sql_Dialect { + p := new(Sql_Dialect) + *p = x + return p +} + +func (x Sql_Dialect) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Sql_Dialect) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_tasks_proto_enumTypes[6].Descriptor() +} + +func (Sql_Dialect) Type() protoreflect.EnumType { + return &file_flyteidl_core_tasks_proto_enumTypes[6] +} + +func (x Sql_Dialect) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use Sql_Dialect.Descriptor instead. +func (Sql_Dialect) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{12, 0} +} + +// A customizable interface to convey resources requested for a container. This can be interpreted differently for different +// container engines. +type Resources struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The desired set of resources requested. ResourceNames must be unique within the list. + Requests []*Resources_ResourceEntry `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + // within the list. + Limits []*Resources_ResourceEntry `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"` +} + +func (x *Resources) Reset() { + *x = Resources{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Resources) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resources) ProtoMessage() {} + +func (x *Resources) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Resources.ProtoReflect.Descriptor instead. +func (*Resources) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{0} +} + +func (x *Resources) GetRequests() []*Resources_ResourceEntry { + if x != nil { + return x.Requests + } + return nil +} + +func (x *Resources) GetLimits() []*Resources_ResourceEntry { + if x != nil { + return x.Limits + } + return nil +} + +// Metadata associated with the GPU accelerator to allocate to a task. Contains +// information about device type, and for multi-instance GPUs, the partition size to +// use. +type GPUAccelerator struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // This can be any arbitrary string, and should be informed by the labels or taints + // associated with the nodes in question. Default cloud provider labels typically + // use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. + Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` + // Types that are assignable to PartitionSizeValue: + // + // *GPUAccelerator_Unpartitioned + // *GPUAccelerator_PartitionSize + PartitionSizeValue isGPUAccelerator_PartitionSizeValue `protobuf_oneof:"partition_size_value"` +} + +func (x *GPUAccelerator) Reset() { + *x = GPUAccelerator{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GPUAccelerator) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GPUAccelerator) ProtoMessage() {} + +func (x *GPUAccelerator) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GPUAccelerator.ProtoReflect.Descriptor instead. +func (*GPUAccelerator) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{1} +} + +func (x *GPUAccelerator) GetDevice() string { + if x != nil { + return x.Device + } + return "" +} + +func (m *GPUAccelerator) GetPartitionSizeValue() isGPUAccelerator_PartitionSizeValue { + if m != nil { + return m.PartitionSizeValue + } + return nil +} + +func (x *GPUAccelerator) GetUnpartitioned() bool { + if x, ok := x.GetPartitionSizeValue().(*GPUAccelerator_Unpartitioned); ok { + return x.Unpartitioned + } + return false +} + +func (x *GPUAccelerator) GetPartitionSize() string { + if x, ok := x.GetPartitionSizeValue().(*GPUAccelerator_PartitionSize); ok { + return x.PartitionSize + } + return "" +} + +type isGPUAccelerator_PartitionSizeValue interface { + isGPUAccelerator_PartitionSizeValue() +} + +type GPUAccelerator_Unpartitioned struct { + Unpartitioned bool `protobuf:"varint,2,opt,name=unpartitioned,proto3,oneof"` +} + +type GPUAccelerator_PartitionSize struct { + // Like `device`, this can be any arbitrary string, and should be informed by + // the labels or taints associated with the nodes in question. Default cloud + // provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. + PartitionSize string `protobuf:"bytes,3,opt,name=partition_size,json=partitionSize,proto3,oneof"` +} + +func (*GPUAccelerator_Unpartitioned) isGPUAccelerator_PartitionSizeValue() {} + +func (*GPUAccelerator_PartitionSize) isGPUAccelerator_PartitionSizeValue() {} + +// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to +// allocate to a task. +type ExtendedResources struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // GPU accelerator to select for task. Contains information about device type, and + // for multi-instance GPUs, the partition size to use. + GpuAccelerator *GPUAccelerator `protobuf:"bytes,1,opt,name=gpu_accelerator,json=gpuAccelerator,proto3" json:"gpu_accelerator,omitempty"` +} + +func (x *ExtendedResources) Reset() { + *x = ExtendedResources{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExtendedResources) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExtendedResources) ProtoMessage() {} + +func (x *ExtendedResources) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExtendedResources.ProtoReflect.Descriptor instead. +func (*ExtendedResources) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{2} +} + +func (x *ExtendedResources) GetGpuAccelerator() *GPUAccelerator { + if x != nil { + return x.GpuAccelerator + } + return nil +} + +// Runtime information. This is loosely defined to allow for extensibility. +type RuntimeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Type of runtime. + Type RuntimeMetadata_RuntimeType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.core.RuntimeMetadata_RuntimeType" json:"type,omitempty"` + // Version of the runtime. All versions should be backward compatible. However, certain cases call for version + // checks to ensure tighter validation or setting expectations. + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + // +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + Flavor string `protobuf:"bytes,3,opt,name=flavor,proto3" json:"flavor,omitempty"` +} + +func (x *RuntimeMetadata) Reset() { + *x = RuntimeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RuntimeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RuntimeMetadata) ProtoMessage() {} + +func (x *RuntimeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RuntimeMetadata.ProtoReflect.Descriptor instead. +func (*RuntimeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{3} +} + +func (x *RuntimeMetadata) GetType() RuntimeMetadata_RuntimeType { + if x != nil { + return x.Type + } + return RuntimeMetadata_OTHER +} + +func (x *RuntimeMetadata) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *RuntimeMetadata) GetFlavor() string { + if x != nil { + return x.Flavor + } + return "" +} + +// Task Metadata +type TaskMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"` + // Runtime information about the task. + Runtime *RuntimeMetadata `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` + // The overall timeout of a task including user-triggered retries. + Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Number of retries per task. + Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` + // Indicates a logical version to apply to this task for the purpose of discovery. + DiscoveryVersion string `protobuf:"bytes,6,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"` + // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + // of the ending of support for a given task. + DeprecatedErrorMessage string `protobuf:"bytes,7,opt,name=deprecated_error_message,json=deprecatedErrorMessage,proto3" json:"deprecated_error_message,omitempty"` + // Identify whether task is interruptible + // + // Types that are assignable to InterruptibleValue: + // + // *TaskMetadata_Interruptible + InterruptibleValue isTaskMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` + // Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work + CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3" json:"cache_serializable,omitempty"` + // Indicates whether the task will generate a Deck URI when it finishes executing. + GeneratesDeck bool `protobuf:"varint,10,opt,name=generates_deck,json=generatesDeck,proto3" json:"generates_deck,omitempty"` + // Arbitrary tags that allow users and the platform to store small but arbitrary labels + Tags map[string]string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this + // task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied + // identically as, the default PodTemplate configured in FlytePropeller. + PodTemplateName string `protobuf:"bytes,12,opt,name=pod_template_name,json=podTemplateName,proto3" json:"pod_template_name,omitempty"` + // cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. + CacheIgnoreInputVars []string `protobuf:"bytes,13,rep,name=cache_ignore_input_vars,json=cacheIgnoreInputVars,proto3" json:"cache_ignore_input_vars,omitempty"` +} + +func (x *TaskMetadata) Reset() { + *x = TaskMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskMetadata) ProtoMessage() {} + +func (x *TaskMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskMetadata.ProtoReflect.Descriptor instead. +func (*TaskMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{4} +} + +func (x *TaskMetadata) GetDiscoverable() bool { + if x != nil { + return x.Discoverable + } + return false +} + +func (x *TaskMetadata) GetRuntime() *RuntimeMetadata { + if x != nil { + return x.Runtime + } + return nil +} + +func (x *TaskMetadata) GetTimeout() *durationpb.Duration { + if x != nil { + return x.Timeout + } + return nil +} + +func (x *TaskMetadata) GetRetries() *RetryStrategy { + if x != nil { + return x.Retries + } + return nil +} + +func (x *TaskMetadata) GetDiscoveryVersion() string { + if x != nil { + return x.DiscoveryVersion + } + return "" +} + +func (x *TaskMetadata) GetDeprecatedErrorMessage() string { + if x != nil { + return x.DeprecatedErrorMessage + } + return "" +} + +func (m *TaskMetadata) GetInterruptibleValue() isTaskMetadata_InterruptibleValue { + if m != nil { + return m.InterruptibleValue + } + return nil +} + +func (x *TaskMetadata) GetInterruptible() bool { + if x, ok := x.GetInterruptibleValue().(*TaskMetadata_Interruptible); ok { + return x.Interruptible + } + return false +} + +func (x *TaskMetadata) GetCacheSerializable() bool { + if x != nil { + return x.CacheSerializable + } + return false +} + +func (x *TaskMetadata) GetGeneratesDeck() bool { + if x != nil { + return x.GeneratesDeck + } + return false +} + +func (x *TaskMetadata) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *TaskMetadata) GetPodTemplateName() string { + if x != nil { + return x.PodTemplateName + } + return "" +} + +func (x *TaskMetadata) GetCacheIgnoreInputVars() []string { + if x != nil { + return x.CacheIgnoreInputVars + } + return nil +} + +type isTaskMetadata_InterruptibleValue interface { + isTaskMetadata_InterruptibleValue() +} + +type TaskMetadata_Interruptible struct { + Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3,oneof"` +} + +func (*TaskMetadata_Interruptible) isTaskMetadata_InterruptibleValue() {} + +// A Task structure that uniquely identifies a task in the system +// Tasks are registered as a first step in the system. +type TaskTemplate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Auto generated taskId by the system. Task Id uniquely identifies this task globally. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + // implementation registered for the TaskCategory. + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // Extra metadata about the task. + Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees + // compile-time validation of the workflow to avoid costly runtime failures. + Interface *TypedInterface `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"` + // Custom data about the task. This is extensible to allow various plugins in the system. + Custom *structpb.Struct `protobuf:"bytes,5,opt,name=custom,proto3" json:"custom,omitempty"` + // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + // handlers. + // + // Types that are assignable to Target: + // + // *TaskTemplate_Container + // *TaskTemplate_K8SPod + // *TaskTemplate_Sql + Target isTaskTemplate_Target `protobuf_oneof:"target"` + // This can be used to customize task handling at execution time for the same task type. + TaskTypeVersion int32 `protobuf:"varint,7,opt,name=task_type_version,json=taskTypeVersion,proto3" json:"task_type_version,omitempty"` + // security_context encapsulates security attributes requested to run this task. + SecurityContext *SecurityContext `protobuf:"bytes,8,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` + // Encapsulates all non-standard resources, not captured by + // v1.ResourceRequirements, to allocate to a task. + ExtendedResources *ExtendedResources `protobuf:"bytes,9,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"` + // Metadata about the custom defined for this task. This is extensible to allow various plugins in the system + // to use as required. + // reserve the field numbers 1 through 15 for very frequently occurring message elements + Config map[string]string `protobuf:"bytes,16,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *TaskTemplate) Reset() { + *x = TaskTemplate{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskTemplate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskTemplate) ProtoMessage() {} + +func (x *TaskTemplate) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskTemplate.ProtoReflect.Descriptor instead. +func (*TaskTemplate) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{5} +} + +func (x *TaskTemplate) GetId() *Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *TaskTemplate) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *TaskTemplate) GetMetadata() *TaskMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *TaskTemplate) GetInterface() *TypedInterface { + if x != nil { + return x.Interface + } + return nil +} + +func (x *TaskTemplate) GetCustom() *structpb.Struct { + if x != nil { + return x.Custom + } + return nil +} + +func (m *TaskTemplate) GetTarget() isTaskTemplate_Target { + if m != nil { + return m.Target + } + return nil +} + +func (x *TaskTemplate) GetContainer() *Container { + if x, ok := x.GetTarget().(*TaskTemplate_Container); ok { + return x.Container + } + return nil +} + +func (x *TaskTemplate) GetK8SPod() *K8SPod { + if x, ok := x.GetTarget().(*TaskTemplate_K8SPod); ok { + return x.K8SPod + } + return nil +} + +func (x *TaskTemplate) GetSql() *Sql { + if x, ok := x.GetTarget().(*TaskTemplate_Sql); ok { + return x.Sql + } + return nil +} + +func (x *TaskTemplate) GetTaskTypeVersion() int32 { + if x != nil { + return x.TaskTypeVersion + } + return 0 +} + +func (x *TaskTemplate) GetSecurityContext() *SecurityContext { + if x != nil { + return x.SecurityContext + } + return nil +} + +func (x *TaskTemplate) GetExtendedResources() *ExtendedResources { + if x != nil { + return x.ExtendedResources + } + return nil +} + +func (x *TaskTemplate) GetConfig() map[string]string { + if x != nil { + return x.Config + } + return nil +} + +type isTaskTemplate_Target interface { + isTaskTemplate_Target() +} + +type TaskTemplate_Container struct { + Container *Container `protobuf:"bytes,6,opt,name=container,proto3,oneof"` +} + +type TaskTemplate_K8SPod struct { + K8SPod *K8SPod `protobuf:"bytes,17,opt,name=k8s_pod,json=k8sPod,proto3,oneof"` +} + +type TaskTemplate_Sql struct { + Sql *Sql `protobuf:"bytes,18,opt,name=sql,proto3,oneof"` +} + +func (*TaskTemplate_Container) isTaskTemplate_Target() {} + +func (*TaskTemplate_K8SPod) isTaskTemplate_Target() {} + +func (*TaskTemplate_Sql) isTaskTemplate_Target() {} + +// Defines port properties for a container. +type ContainerPort struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of port to expose on the pod's IP address. + // This must be a valid port number, 0 < x < 65536. + ContainerPort uint32 `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` +} + +func (x *ContainerPort) Reset() { + *x = ContainerPort{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ContainerPort) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerPort) ProtoMessage() {} + +func (x *ContainerPort) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContainerPort.ProtoReflect.Descriptor instead. +func (*ContainerPort) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{6} +} + +func (x *ContainerPort) GetContainerPort() uint32 { + if x != nil { + return x.ContainerPort + } + return 0 +} + +type Container struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Container image url. Eg: docker/redis:latest + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + // Command to be executed, if not provided, the default entrypoint in the container image will be used. + Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` + // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + // system will populate these before executing the container. + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` + // Container resources requirement as specified by the container engine. + Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` + // Environment variables will be set as the container is starting up. + Env []*KeyValuePair `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"` + // Allows extra configs to be available for the container. + // TODO: elaborate on how configs will become available. + // Deprecated, please use TaskTemplate.config instead. + // + // Deprecated: Marked as deprecated in flyteidl/core/tasks.proto. + Config []*KeyValuePair `protobuf:"bytes,6,rep,name=config,proto3" json:"config,omitempty"` + // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + // not supported on AWS Batch) + // Only K8s + Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"` + // BETA: Optional configuration for DataLoading. If not specified, then default values are used. + // This makes it possible to to run a completely portable container, that uses inputs and outputs + // only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. + // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + // to understand the default paths. + // Only K8s + DataConfig *DataLoadingConfig `protobuf:"bytes,9,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` + Architecture Container_Architecture `protobuf:"varint,10,opt,name=architecture,proto3,enum=flyteidl.core.Container_Architecture" json:"architecture,omitempty"` +} + +func (x *Container) Reset() { + *x = Container{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Container) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Container) ProtoMessage() {} + +func (x *Container) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Container.ProtoReflect.Descriptor instead. +func (*Container) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{7} +} + +func (x *Container) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *Container) GetCommand() []string { + if x != nil { + return x.Command + } + return nil +} + +func (x *Container) GetArgs() []string { + if x != nil { + return x.Args + } + return nil +} + +func (x *Container) GetResources() *Resources { + if x != nil { + return x.Resources + } + return nil +} + +func (x *Container) GetEnv() []*KeyValuePair { + if x != nil { + return x.Env + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/core/tasks.proto. +func (x *Container) GetConfig() []*KeyValuePair { + if x != nil { + return x.Config + } + return nil +} + +func (x *Container) GetPorts() []*ContainerPort { + if x != nil { + return x.Ports + } + return nil +} + +func (x *Container) GetDataConfig() *DataLoadingConfig { + if x != nil { + return x.DataConfig + } + return nil +} + +func (x *Container) GetArchitecture() Container_Architecture { + if x != nil { + return x.Architecture + } + return Container_UNKNOWN +} + +// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) +type IOStrategy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Mode to use to manage downloads + DownloadMode IOStrategy_DownloadMode `protobuf:"varint,1,opt,name=download_mode,json=downloadMode,proto3,enum=flyteidl.core.IOStrategy_DownloadMode" json:"download_mode,omitempty"` + // Mode to use to manage uploads + UploadMode IOStrategy_UploadMode `protobuf:"varint,2,opt,name=upload_mode,json=uploadMode,proto3,enum=flyteidl.core.IOStrategy_UploadMode" json:"upload_mode,omitempty"` +} + +func (x *IOStrategy) Reset() { + *x = IOStrategy{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IOStrategy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IOStrategy) ProtoMessage() {} + +func (x *IOStrategy) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IOStrategy.ProtoReflect.Descriptor instead. +func (*IOStrategy) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{8} +} + +func (x *IOStrategy) GetDownloadMode() IOStrategy_DownloadMode { + if x != nil { + return x.DownloadMode + } + return IOStrategy_DOWNLOAD_EAGER +} + +func (x *IOStrategy) GetUploadMode() IOStrategy_UploadMode { + if x != nil { + return x.UploadMode + } + return IOStrategy_UPLOAD_ON_EXIT +} + +// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. +// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path +// Any outputs generated by the user container - within output_path are automatically uploaded. +type DataLoadingConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Flag enables DataLoading Config. If this is not set, data loading will not be used! + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + // File system path (start at root). This folder will contain all the inputs exploded to a separate file. + // Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like + // /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations + // /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format + // /var/flyte/inputs/y -> Y is a file in Binary format + // /var/flyte/inputs/z/... -> Note Z itself is a directory + // More information about the protocol - refer to docs #TODO reference docs here + InputPath string `protobuf:"bytes,2,opt,name=input_path,json=inputPath,proto3" json:"input_path,omitempty"` + // File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file + OutputPath string `protobuf:"bytes,3,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"` + // In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. + // This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding + Format DataLoadingConfig_LiteralMapFormat `protobuf:"varint,4,opt,name=format,proto3,enum=flyteidl.core.DataLoadingConfig_LiteralMapFormat" json:"format,omitempty"` + IoStrategy *IOStrategy `protobuf:"bytes,5,opt,name=io_strategy,json=ioStrategy,proto3" json:"io_strategy,omitempty"` +} + +func (x *DataLoadingConfig) Reset() { + *x = DataLoadingConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DataLoadingConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataLoadingConfig) ProtoMessage() {} + +func (x *DataLoadingConfig) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DataLoadingConfig.ProtoReflect.Descriptor instead. +func (*DataLoadingConfig) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{9} +} + +func (x *DataLoadingConfig) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +func (x *DataLoadingConfig) GetInputPath() string { + if x != nil { + return x.InputPath + } + return "" +} + +func (x *DataLoadingConfig) GetOutputPath() string { + if x != nil { + return x.OutputPath + } + return "" +} + +func (x *DataLoadingConfig) GetFormat() DataLoadingConfig_LiteralMapFormat { + if x != nil { + return x.Format + } + return DataLoadingConfig_JSON +} + +func (x *DataLoadingConfig) GetIoStrategy() *IOStrategy { + if x != nil { + return x.IoStrategy + } + return nil +} + +// Defines a pod spec and additional pod metadata that is created when a task is executed. +type K8SPod struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Contains additional metadata for building a kubernetes pod. + Metadata *K8SObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Defines the primary pod spec created when a task is executed. + // This should be a JSON-marshalled pod spec, which can be defined in + // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 + // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py + PodSpec *structpb.Struct `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` + // BETA: Optional configuration for DataLoading. If not specified, then default values are used. + // This makes it possible to to run a completely portable container, that uses inputs and outputs + // only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. + // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + // to understand the default paths. + // Only K8s + DataConfig *DataLoadingConfig `protobuf:"bytes,3,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` +} + +func (x *K8SPod) Reset() { + *x = K8SPod{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *K8SPod) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*K8SPod) ProtoMessage() {} + +func (x *K8SPod) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use K8SPod.ProtoReflect.Descriptor instead. +func (*K8SPod) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{10} +} + +func (x *K8SPod) GetMetadata() *K8SObjectMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *K8SPod) GetPodSpec() *structpb.Struct { + if x != nil { + return x.PodSpec + } + return nil +} + +func (x *K8SPod) GetDataConfig() *DataLoadingConfig { + if x != nil { + return x.DataConfig + } + return nil +} + +// Metadata for building a kubernetes object when a task is executed. +type K8SObjectMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Optional labels to add to the pod definition. + Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Optional annotations to add to the pod definition. + Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *K8SObjectMetadata) Reset() { + *x = K8SObjectMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *K8SObjectMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*K8SObjectMetadata) ProtoMessage() {} + +func (x *K8SObjectMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use K8SObjectMetadata.ProtoReflect.Descriptor instead. +func (*K8SObjectMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{11} +} + +func (x *K8SObjectMetadata) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *K8SObjectMetadata) GetAnnotations() map[string]string { + if x != nil { + return x.Annotations + } + return nil +} + +// Sql represents a generic sql workload with a statement and dialect. +type Sql struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The actual query to run, the query can have templated parameters. + // We use Flyte's Golang templating format for Query templating. + // Refer to the templating documentation. + // https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py + // For example, + // insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet + // select * + // from my_table + // where ds = '{{ .Inputs.ds }}' + Statement string `protobuf:"bytes,1,opt,name=statement,proto3" json:"statement,omitempty"` + Dialect Sql_Dialect `protobuf:"varint,2,opt,name=dialect,proto3,enum=flyteidl.core.Sql_Dialect" json:"dialect,omitempty"` +} + +func (x *Sql) Reset() { + *x = Sql{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Sql) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Sql) ProtoMessage() {} + +func (x *Sql) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Sql.ProtoReflect.Descriptor instead. +func (*Sql) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{12} +} + +func (x *Sql) GetStatement() string { + if x != nil { + return x.Statement + } + return "" +} + +func (x *Sql) GetDialect() Sql_Dialect { + if x != nil { + return x.Dialect + } + return Sql_UNDEFINED +} + +// Encapsulates a resource name and value. +type Resources_ResourceEntry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Resource name. + Name Resources_ResourceName `protobuf:"varint,1,opt,name=name,proto3,enum=flyteidl.core.Resources_ResourceName" json:"name,omitempty"` + // Value must be a valid k8s quantity. See + // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Resources_ResourceEntry) Reset() { + *x = Resources_ResourceEntry{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_tasks_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Resources_ResourceEntry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resources_ResourceEntry) ProtoMessage() {} + +func (x *Resources_ResourceEntry) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_tasks_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Resources_ResourceEntry.ProtoReflect.Descriptor instead. +func (*Resources_ResourceEntry) Descriptor() ([]byte, []int) { + return file_flyteidl_core_tasks_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *Resources_ResourceEntry) GetName() Resources_ResourceName { + if x != nil { + return x.Name + } + return Resources_UNKNOWN +} + +func (x *Resources_ResourceEntry) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +var File_flyteidl_core_tasks_proto protoreflect.FileDescriptor + +var file_flyteidl_core_tasks_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x02, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x3e, 0x0a, 0x06, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x73, 0x1a, 0x60, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x39, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5d, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x43, 0x50, 0x55, 0x10, 0x01, 0x12, 0x07, 0x0a, + 0x03, 0x47, 0x50, 0x55, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x4f, 0x52, 0x59, + 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x4f, 0x52, 0x41, 0x47, 0x45, 0x10, 0x04, 0x12, + 0x15, 0x0a, 0x11, 0x45, 0x50, 0x48, 0x45, 0x4d, 0x45, 0x52, 0x41, 0x4c, 0x5f, 0x53, 0x54, 0x4f, + 0x52, 0x41, 0x47, 0x45, 0x10, 0x05, 0x22, 0x91, 0x01, 0x0a, 0x0e, 0x47, 0x50, 0x55, 0x41, 0x63, + 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x75, 0x6e, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x75, 0x6e, 0x70, 0x61, + 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x0e, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, + 0x7a, 0x65, 0x42, 0x16, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5b, 0x0a, 0x11, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, + 0x46, 0x0a, 0x0f, 0x67, 0x70, 0x75, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x6c, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x50, 0x55, 0x41, 0x63, 0x63, 0x65, + 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0e, 0x67, 0x70, 0x75, 0x41, 0x63, 0x63, 0x65, + 0x6c, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0xac, 0x01, 0x0a, 0x0f, 0x52, 0x75, 0x6e, 0x74, + 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3e, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6c, 0x61, 0x76, 0x6f, 0x72, 0x22, 0x27, 0x0a, + 0x0b, 0x52, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, + 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4c, 0x59, 0x54, 0x45, + 0x5f, 0x53, 0x44, 0x4b, 0x10, 0x01, 0x22, 0xac, 0x05, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x72, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x75, 0x6e, + 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x07, 0x72, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, + 0x79, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, + 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x38, 0x0a, 0x18, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x16, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x26, 0x0a, 0x0d, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, + 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, + 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, + 0x61, 0x63, 0x68, 0x65, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, + 0x12, 0x25, 0x0a, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x73, 0x5f, 0x64, 0x65, + 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x73, 0x44, 0x65, 0x63, 0x6b, 0x12, 0x39, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, + 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x6f, 0x64, 0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, + 0x6f, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, + 0x0a, 0x17, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x5f, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x14, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x49, 0x6e, 0x70, 0x75, + 0x74, 0x56, 0x61, 0x72, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x15, + 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xd6, 0x05, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, + 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, + 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x52, 0x06, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x38, 0x0a, 0x09, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6f, 0x6e, + 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x07, 0x6b, 0x38, 0x73, 0x5f, 0x70, 0x6f, + 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, 0x73, 0x50, 0x6f, 0x64, 0x48, 0x00, + 0x52, 0x06, 0x6b, 0x38, 0x73, 0x50, 0x6f, 0x64, 0x12, 0x26, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x71, 0x6c, 0x48, 0x00, 0x52, 0x03, 0x73, 0x71, 0x6c, + 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x74, 0x61, 0x73, + 0x6b, 0x54, 0x79, 0x70, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x10, + 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x43, + 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x64, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x3f, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x36, + 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x12, + 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x70, 0x6f, 0x72, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x22, 0xfc, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x74, 0x61, + 0x69, 0x6e, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x67, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x12, 0x2d, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x65, + 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, + 0x37, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, 0x05, 0x70, 0x6f, 0x72, 0x74, + 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, + 0x72, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x41, 0x0a, 0x0b, + 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x49, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x2e, + 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0c, 0x61, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x22, 0x49, 0x0a, 0x0c, 0x41, 0x72, + 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4d, 0x44, 0x36, 0x34, + 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x4d, 0x36, 0x34, 0x10, 0x02, 0x12, 0x0a, 0x0a, + 0x06, 0x41, 0x52, 0x4d, 0x5f, 0x56, 0x36, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x52, 0x4d, + 0x5f, 0x56, 0x37, 0x10, 0x04, 0x22, 0xb5, 0x02, 0x0a, 0x0a, 0x49, 0x4f, 0x53, 0x74, 0x72, 0x61, + 0x74, 0x65, 0x67, 0x79, 0x12, 0x4b, 0x0a, 0x0d, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, + 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x4f, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, + 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, + 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x6d, 0x6f, 0x64, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x4f, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, + 0x79, 0x2e, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0a, 0x75, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x4c, 0x0a, 0x0c, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x4f, 0x57, 0x4e, + 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x41, 0x47, 0x45, 0x52, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, + 0x44, 0x4f, 0x57, 0x4e, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x53, 0x54, 0x52, 0x45, 0x41, 0x4d, 0x10, + 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x4f, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x44, 0x4f, 0x57, 0x4e, + 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x22, 0x45, 0x0a, 0x0a, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, + 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x4f, + 0x4e, 0x5f, 0x45, 0x58, 0x49, 0x54, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x4c, 0x4f, + 0x41, 0x44, 0x5f, 0x45, 0x41, 0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x4f, + 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x02, 0x22, 0xa7, 0x02, + 0x0a, 0x11, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1d, 0x0a, + 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x0b, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x61, 0x74, 0x68, 0x12, 0x49, 0x0a, + 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x4c, 0x6f, 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x3a, 0x0a, 0x0b, 0x69, 0x6f, 0x5f, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x4f, + 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0a, 0x69, 0x6f, 0x53, 0x74, 0x72, 0x61, + 0x74, 0x65, 0x67, 0x79, 0x22, 0x31, 0x0a, 0x10, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, + 0x61, 0x70, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, + 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x59, 0x41, 0x4d, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, + 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x10, 0x02, 0x22, 0xbd, 0x01, 0x0a, 0x06, 0x4b, 0x38, 0x73, 0x50, + 0x6f, 0x64, 0x12, 0x3c, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x32, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x6f, 0x64, + 0x53, 0x70, 0x65, 0x63, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4c, 0x6f, + 0x61, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0a, 0x64, 0x61, 0x74, + 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xa9, 0x02, 0x0a, 0x11, 0x4b, 0x38, 0x73, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, + 0x73, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x53, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4b, 0x38, 0x73, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, + 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x92, 0x01, 0x0a, 0x03, 0x53, 0x71, 0x6c, 0x12, 0x1c, 0x0a, 0x09, 0x73, + 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x07, 0x64, 0x69, 0x61, + 0x6c, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x71, 0x6c, 0x2e, 0x44, + 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x07, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x22, + 0x37, 0x0a, 0x07, 0x44, 0x69, 0x61, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x0d, 0x0a, 0x09, 0x55, 0x4e, + 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x4e, 0x53, + 0x49, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x09, 0x0a, + 0x05, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x03, 0x42, 0xb0, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0a, + 0x54, 0x61, 0x73, 0x6b, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, + 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, + 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, + 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, + 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_tasks_proto_rawDescOnce sync.Once + file_flyteidl_core_tasks_proto_rawDescData = file_flyteidl_core_tasks_proto_rawDesc +) + +func file_flyteidl_core_tasks_proto_rawDescGZIP() []byte { + file_flyteidl_core_tasks_proto_rawDescOnce.Do(func() { + file_flyteidl_core_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_tasks_proto_rawDescData) + }) + return file_flyteidl_core_tasks_proto_rawDescData +} + +var file_flyteidl_core_tasks_proto_enumTypes = make([]protoimpl.EnumInfo, 7) +var file_flyteidl_core_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_flyteidl_core_tasks_proto_goTypes = []interface{}{ + (Resources_ResourceName)(0), // 0: flyteidl.core.Resources.ResourceName + (RuntimeMetadata_RuntimeType)(0), // 1: flyteidl.core.RuntimeMetadata.RuntimeType + (Container_Architecture)(0), // 2: flyteidl.core.Container.Architecture + (IOStrategy_DownloadMode)(0), // 3: flyteidl.core.IOStrategy.DownloadMode + (IOStrategy_UploadMode)(0), // 4: flyteidl.core.IOStrategy.UploadMode + (DataLoadingConfig_LiteralMapFormat)(0), // 5: flyteidl.core.DataLoadingConfig.LiteralMapFormat + (Sql_Dialect)(0), // 6: flyteidl.core.Sql.Dialect + (*Resources)(nil), // 7: flyteidl.core.Resources + (*GPUAccelerator)(nil), // 8: flyteidl.core.GPUAccelerator + (*ExtendedResources)(nil), // 9: flyteidl.core.ExtendedResources + (*RuntimeMetadata)(nil), // 10: flyteidl.core.RuntimeMetadata + (*TaskMetadata)(nil), // 11: flyteidl.core.TaskMetadata + (*TaskTemplate)(nil), // 12: flyteidl.core.TaskTemplate + (*ContainerPort)(nil), // 13: flyteidl.core.ContainerPort + (*Container)(nil), // 14: flyteidl.core.Container + (*IOStrategy)(nil), // 15: flyteidl.core.IOStrategy + (*DataLoadingConfig)(nil), // 16: flyteidl.core.DataLoadingConfig + (*K8SPod)(nil), // 17: flyteidl.core.K8sPod + (*K8SObjectMetadata)(nil), // 18: flyteidl.core.K8sObjectMetadata + (*Sql)(nil), // 19: flyteidl.core.Sql + (*Resources_ResourceEntry)(nil), // 20: flyteidl.core.Resources.ResourceEntry + nil, // 21: flyteidl.core.TaskMetadata.TagsEntry + nil, // 22: flyteidl.core.TaskTemplate.ConfigEntry + nil, // 23: flyteidl.core.K8sObjectMetadata.LabelsEntry + nil, // 24: flyteidl.core.K8sObjectMetadata.AnnotationsEntry + (*durationpb.Duration)(nil), // 25: google.protobuf.Duration + (*RetryStrategy)(nil), // 26: flyteidl.core.RetryStrategy + (*Identifier)(nil), // 27: flyteidl.core.Identifier + (*TypedInterface)(nil), // 28: flyteidl.core.TypedInterface + (*structpb.Struct)(nil), // 29: google.protobuf.Struct + (*SecurityContext)(nil), // 30: flyteidl.core.SecurityContext + (*KeyValuePair)(nil), // 31: flyteidl.core.KeyValuePair +} +var file_flyteidl_core_tasks_proto_depIdxs = []int32{ + 20, // 0: flyteidl.core.Resources.requests:type_name -> flyteidl.core.Resources.ResourceEntry + 20, // 1: flyteidl.core.Resources.limits:type_name -> flyteidl.core.Resources.ResourceEntry + 8, // 2: flyteidl.core.ExtendedResources.gpu_accelerator:type_name -> flyteidl.core.GPUAccelerator + 1, // 3: flyteidl.core.RuntimeMetadata.type:type_name -> flyteidl.core.RuntimeMetadata.RuntimeType + 10, // 4: flyteidl.core.TaskMetadata.runtime:type_name -> flyteidl.core.RuntimeMetadata + 25, // 5: flyteidl.core.TaskMetadata.timeout:type_name -> google.protobuf.Duration + 26, // 6: flyteidl.core.TaskMetadata.retries:type_name -> flyteidl.core.RetryStrategy + 21, // 7: flyteidl.core.TaskMetadata.tags:type_name -> flyteidl.core.TaskMetadata.TagsEntry + 27, // 8: flyteidl.core.TaskTemplate.id:type_name -> flyteidl.core.Identifier + 11, // 9: flyteidl.core.TaskTemplate.metadata:type_name -> flyteidl.core.TaskMetadata + 28, // 10: flyteidl.core.TaskTemplate.interface:type_name -> flyteidl.core.TypedInterface + 29, // 11: flyteidl.core.TaskTemplate.custom:type_name -> google.protobuf.Struct + 14, // 12: flyteidl.core.TaskTemplate.container:type_name -> flyteidl.core.Container + 17, // 13: flyteidl.core.TaskTemplate.k8s_pod:type_name -> flyteidl.core.K8sPod + 19, // 14: flyteidl.core.TaskTemplate.sql:type_name -> flyteidl.core.Sql + 30, // 15: flyteidl.core.TaskTemplate.security_context:type_name -> flyteidl.core.SecurityContext + 9, // 16: flyteidl.core.TaskTemplate.extended_resources:type_name -> flyteidl.core.ExtendedResources + 22, // 17: flyteidl.core.TaskTemplate.config:type_name -> flyteidl.core.TaskTemplate.ConfigEntry + 7, // 18: flyteidl.core.Container.resources:type_name -> flyteidl.core.Resources + 31, // 19: flyteidl.core.Container.env:type_name -> flyteidl.core.KeyValuePair + 31, // 20: flyteidl.core.Container.config:type_name -> flyteidl.core.KeyValuePair + 13, // 21: flyteidl.core.Container.ports:type_name -> flyteidl.core.ContainerPort + 16, // 22: flyteidl.core.Container.data_config:type_name -> flyteidl.core.DataLoadingConfig + 2, // 23: flyteidl.core.Container.architecture:type_name -> flyteidl.core.Container.Architecture + 3, // 24: flyteidl.core.IOStrategy.download_mode:type_name -> flyteidl.core.IOStrategy.DownloadMode + 4, // 25: flyteidl.core.IOStrategy.upload_mode:type_name -> flyteidl.core.IOStrategy.UploadMode + 5, // 26: flyteidl.core.DataLoadingConfig.format:type_name -> flyteidl.core.DataLoadingConfig.LiteralMapFormat + 15, // 27: flyteidl.core.DataLoadingConfig.io_strategy:type_name -> flyteidl.core.IOStrategy + 18, // 28: flyteidl.core.K8sPod.metadata:type_name -> flyteidl.core.K8sObjectMetadata + 29, // 29: flyteidl.core.K8sPod.pod_spec:type_name -> google.protobuf.Struct + 16, // 30: flyteidl.core.K8sPod.data_config:type_name -> flyteidl.core.DataLoadingConfig + 23, // 31: flyteidl.core.K8sObjectMetadata.labels:type_name -> flyteidl.core.K8sObjectMetadata.LabelsEntry + 24, // 32: flyteidl.core.K8sObjectMetadata.annotations:type_name -> flyteidl.core.K8sObjectMetadata.AnnotationsEntry + 6, // 33: flyteidl.core.Sql.dialect:type_name -> flyteidl.core.Sql.Dialect + 0, // 34: flyteidl.core.Resources.ResourceEntry.name:type_name -> flyteidl.core.Resources.ResourceName + 35, // [35:35] is the sub-list for method output_type + 35, // [35:35] is the sub-list for method input_type + 35, // [35:35] is the sub-list for extension type_name + 35, // [35:35] is the sub-list for extension extendee + 0, // [0:35] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_tasks_proto_init() } +func file_flyteidl_core_tasks_proto_init() { + if File_flyteidl_core_tasks_proto != nil { + return + } + file_flyteidl_core_identifier_proto_init() + file_flyteidl_core_interface_proto_init() + file_flyteidl_core_literals_proto_init() + file_flyteidl_core_security_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_tasks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Resources); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GPUAccelerator); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExtendedResources); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RuntimeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskTemplate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ContainerPort); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Container); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IOStrategy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataLoadingConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*K8SPod); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*K8SObjectMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Sql); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_tasks_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Resources_ResourceEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_tasks_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*GPUAccelerator_Unpartitioned)(nil), + (*GPUAccelerator_PartitionSize)(nil), + } + file_flyteidl_core_tasks_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*TaskMetadata_Interruptible)(nil), + } + file_flyteidl_core_tasks_proto_msgTypes[5].OneofWrappers = []interface{}{ + (*TaskTemplate_Container)(nil), + (*TaskTemplate_K8SPod)(nil), + (*TaskTemplate_Sql)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_tasks_proto_rawDesc, + NumEnums: 7, + NumMessages: 18, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_tasks_proto_goTypes, + DependencyIndexes: file_flyteidl_core_tasks_proto_depIdxs, + EnumInfos: file_flyteidl_core_tasks_proto_enumTypes, + MessageInfos: file_flyteidl_core_tasks_proto_msgTypes, + }.Build() + File_flyteidl_core_tasks_proto = out.File + file_flyteidl_core_tasks_proto_rawDesc = nil + file_flyteidl_core_tasks_proto_goTypes = nil + file_flyteidl_core_tasks_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go new file mode 100644 index 0000000000..b844e951c9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go @@ -0,0 +1,1559 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/types.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Define a set of simple types. +type SimpleType int32 + +const ( + SimpleType_NONE SimpleType = 0 + SimpleType_INTEGER SimpleType = 1 + SimpleType_FLOAT SimpleType = 2 + SimpleType_STRING SimpleType = 3 + SimpleType_BOOLEAN SimpleType = 4 + SimpleType_DATETIME SimpleType = 5 + SimpleType_DURATION SimpleType = 6 + SimpleType_BINARY SimpleType = 7 + SimpleType_ERROR SimpleType = 8 + SimpleType_STRUCT SimpleType = 9 +) + +// Enum value maps for SimpleType. +var ( + SimpleType_name = map[int32]string{ + 0: "NONE", + 1: "INTEGER", + 2: "FLOAT", + 3: "STRING", + 4: "BOOLEAN", + 5: "DATETIME", + 6: "DURATION", + 7: "BINARY", + 8: "ERROR", + 9: "STRUCT", + } + SimpleType_value = map[string]int32{ + "NONE": 0, + "INTEGER": 1, + "FLOAT": 2, + "STRING": 3, + "BOOLEAN": 4, + "DATETIME": 5, + "DURATION": 6, + "BINARY": 7, + "ERROR": 8, + "STRUCT": 9, + } +) + +func (x SimpleType) Enum() *SimpleType { + p := new(SimpleType) + *p = x + return p +} + +func (x SimpleType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SimpleType) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_types_proto_enumTypes[0].Descriptor() +} + +func (SimpleType) Type() protoreflect.EnumType { + return &file_flyteidl_core_types_proto_enumTypes[0] +} + +func (x SimpleType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SimpleType.Descriptor instead. +func (SimpleType) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0} +} + +type SchemaType_SchemaColumn_SchemaColumnType int32 + +const ( + SchemaType_SchemaColumn_INTEGER SchemaType_SchemaColumn_SchemaColumnType = 0 + SchemaType_SchemaColumn_FLOAT SchemaType_SchemaColumn_SchemaColumnType = 1 + SchemaType_SchemaColumn_STRING SchemaType_SchemaColumn_SchemaColumnType = 2 + SchemaType_SchemaColumn_BOOLEAN SchemaType_SchemaColumn_SchemaColumnType = 3 + SchemaType_SchemaColumn_DATETIME SchemaType_SchemaColumn_SchemaColumnType = 4 + SchemaType_SchemaColumn_DURATION SchemaType_SchemaColumn_SchemaColumnType = 5 +) + +// Enum value maps for SchemaType_SchemaColumn_SchemaColumnType. +var ( + SchemaType_SchemaColumn_SchemaColumnType_name = map[int32]string{ + 0: "INTEGER", + 1: "FLOAT", + 2: "STRING", + 3: "BOOLEAN", + 4: "DATETIME", + 5: "DURATION", + } + SchemaType_SchemaColumn_SchemaColumnType_value = map[string]int32{ + "INTEGER": 0, + "FLOAT": 1, + "STRING": 2, + "BOOLEAN": 3, + "DATETIME": 4, + "DURATION": 5, + } +) + +func (x SchemaType_SchemaColumn_SchemaColumnType) Enum() *SchemaType_SchemaColumn_SchemaColumnType { + p := new(SchemaType_SchemaColumn_SchemaColumnType) + *p = x + return p +} + +func (x SchemaType_SchemaColumn_SchemaColumnType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SchemaType_SchemaColumn_SchemaColumnType) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_types_proto_enumTypes[1].Descriptor() +} + +func (SchemaType_SchemaColumn_SchemaColumnType) Type() protoreflect.EnumType { + return &file_flyteidl_core_types_proto_enumTypes[1] +} + +func (x SchemaType_SchemaColumn_SchemaColumnType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SchemaType_SchemaColumn_SchemaColumnType.Descriptor instead. +func (SchemaType_SchemaColumn_SchemaColumnType) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0, 0, 0} +} + +type BlobType_BlobDimensionality int32 + +const ( + BlobType_SINGLE BlobType_BlobDimensionality = 0 + BlobType_MULTIPART BlobType_BlobDimensionality = 1 +) + +// Enum value maps for BlobType_BlobDimensionality. +var ( + BlobType_BlobDimensionality_name = map[int32]string{ + 0: "SINGLE", + 1: "MULTIPART", + } + BlobType_BlobDimensionality_value = map[string]int32{ + "SINGLE": 0, + "MULTIPART": 1, + } +) + +func (x BlobType_BlobDimensionality) Enum() *BlobType_BlobDimensionality { + p := new(BlobType_BlobDimensionality) + *p = x + return p +} + +func (x BlobType_BlobDimensionality) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BlobType_BlobDimensionality) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_types_proto_enumTypes[2].Descriptor() +} + +func (BlobType_BlobDimensionality) Type() protoreflect.EnumType { + return &file_flyteidl_core_types_proto_enumTypes[2] +} + +func (x BlobType_BlobDimensionality) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use BlobType_BlobDimensionality.Descriptor instead. +func (BlobType_BlobDimensionality) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{2, 0} +} + +// Defines schema columns and types to strongly type-validate schemas interoperability. +type SchemaType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of ordered columns this schema comprises of. + Columns []*SchemaType_SchemaColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` +} + +func (x *SchemaType) Reset() { + *x = SchemaType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchemaType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaType) ProtoMessage() {} + +func (x *SchemaType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchemaType.ProtoReflect.Descriptor instead. +func (*SchemaType) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0} +} + +func (x *SchemaType) GetColumns() []*SchemaType_SchemaColumn { + if x != nil { + return x.Columns + } + return nil +} + +type StructuredDatasetType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of ordered columns this schema comprises of. + Columns []*StructuredDatasetType_DatasetColumn `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` + // This is the storage format, the format of the bits at rest + // parquet, feather, csv, etc. + // For two types to be compatible, the format will need to be an exact match. + Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` + // This is a string representing the type that the bytes in external_schema_bytes are formatted in. + // This is an optional field that will not be used for type checking. + ExternalSchemaType string `protobuf:"bytes,3,opt,name=external_schema_type,json=externalSchemaType,proto3" json:"external_schema_type,omitempty"` + // The serialized bytes of a third-party schema library like Arrow. + // This is an optional field that will not be used for type checking. + ExternalSchemaBytes []byte `protobuf:"bytes,4,opt,name=external_schema_bytes,json=externalSchemaBytes,proto3" json:"external_schema_bytes,omitempty"` +} + +func (x *StructuredDatasetType) Reset() { + *x = StructuredDatasetType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructuredDatasetType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructuredDatasetType) ProtoMessage() {} + +func (x *StructuredDatasetType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StructuredDatasetType.ProtoReflect.Descriptor instead. +func (*StructuredDatasetType) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{1} +} + +func (x *StructuredDatasetType) GetColumns() []*StructuredDatasetType_DatasetColumn { + if x != nil { + return x.Columns + } + return nil +} + +func (x *StructuredDatasetType) GetFormat() string { + if x != nil { + return x.Format + } + return "" +} + +func (x *StructuredDatasetType) GetExternalSchemaType() string { + if x != nil { + return x.ExternalSchemaType + } + return "" +} + +func (x *StructuredDatasetType) GetExternalSchemaBytes() []byte { + if x != nil { + return x.ExternalSchemaBytes + } + return nil +} + +// Defines type behavior for blob objects +type BlobType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Format can be a free form string understood by SDK/UI etc like + // csv, parquet etc + Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` + Dimensionality BlobType_BlobDimensionality `protobuf:"varint,2,opt,name=dimensionality,proto3,enum=flyteidl.core.BlobType_BlobDimensionality" json:"dimensionality,omitempty"` +} + +func (x *BlobType) Reset() { + *x = BlobType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlobType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlobType) ProtoMessage() {} + +func (x *BlobType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BlobType.ProtoReflect.Descriptor instead. +func (*BlobType) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{2} +} + +func (x *BlobType) GetFormat() string { + if x != nil { + return x.Format + } + return "" +} + +func (x *BlobType) GetDimensionality() BlobType_BlobDimensionality { + if x != nil { + return x.Dimensionality + } + return BlobType_SINGLE +} + +// Enables declaring enum types, with predefined string values +// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish +// To provide no defaults, make the first value as undefined. +type EnumType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Predefined set of enum values. + Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` +} + +func (x *EnumType) Reset() { + *x = EnumType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnumType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumType) ProtoMessage() {} + +func (x *EnumType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumType.ProtoReflect.Descriptor instead. +func (*EnumType) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{3} +} + +func (x *EnumType) GetValues() []string { + if x != nil { + return x.Values + } + return nil +} + +// Defines a tagged union type, also known as a variant (and formally as the sum type). +// +// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag +// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by +// storing the varaint's tag with the literal value and can be examined in runtime. +// +// Type S is typically written as +// S := Apple A | Banana B | Cantaloupe C | ... +// +// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: +// Optional X := X | Null +// +// See also: https://en.wikipedia.org/wiki/Tagged_union +type UnionType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Predefined set of variants in union. + Variants []*LiteralType `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"` +} + +func (x *UnionType) Reset() { + *x = UnionType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnionType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnionType) ProtoMessage() {} + +func (x *UnionType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnionType.ProtoReflect.Descriptor instead. +func (*UnionType) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{4} +} + +func (x *UnionType) GetVariants() []*LiteralType { + if x != nil { + return x.Variants + } + return nil +} + +// Hints to improve type matching +// e.g. allows distinguishing output from custom type transformers +// even if the underlying IDL serialization matches. +type TypeStructure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Must exactly match for types to be castable + Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` + // dataclass_type only exists for dataclasses. + // This is used to resolve the type of the fields of dataclass + // The key is the field name, and the value is the literal type of the field + // e.g. For dataclass Foo, with fields a, and a is a string + // Foo.a will be resolved as a literal type of string from dataclass_type + DataclassType map[string]*LiteralType `protobuf:"bytes,2,rep,name=dataclass_type,json=dataclassType,proto3" json:"dataclass_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *TypeStructure) Reset() { + *x = TypeStructure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TypeStructure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TypeStructure) ProtoMessage() {} + +func (x *TypeStructure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TypeStructure.ProtoReflect.Descriptor instead. +func (*TypeStructure) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{5} +} + +func (x *TypeStructure) GetTag() string { + if x != nil { + return x.Tag + } + return "" +} + +func (x *TypeStructure) GetDataclassType() map[string]*LiteralType { + if x != nil { + return x.DataclassType + } + return nil +} + +// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. +type TypeAnnotation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A arbitrary JSON payload to describe a type. + Annotations *structpb.Struct `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations,omitempty"` +} + +func (x *TypeAnnotation) Reset() { + *x = TypeAnnotation{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TypeAnnotation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TypeAnnotation) ProtoMessage() {} + +func (x *TypeAnnotation) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TypeAnnotation.ProtoReflect.Descriptor instead. +func (*TypeAnnotation) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{6} +} + +func (x *TypeAnnotation) GetAnnotations() *structpb.Struct { + if x != nil { + return x.Annotations + } + return nil +} + +// Defines a strong type to allow type checking between interfaces. +type LiteralType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Type: + // + // *LiteralType_Simple + // *LiteralType_Schema + // *LiteralType_CollectionType + // *LiteralType_MapValueType + // *LiteralType_Blob + // *LiteralType_EnumType + // *LiteralType_StructuredDatasetType + // *LiteralType_UnionType + Type isLiteralType_Type `protobuf_oneof:"type"` + // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + // consumers to identify special behavior or display extended information for the type. + Metadata *structpb.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + // This field contains arbitrary data that might have special semantic + // meaning for the client but does not effect internal flyte behavior. + Annotation *TypeAnnotation `protobuf:"bytes,9,opt,name=annotation,proto3" json:"annotation,omitempty"` + // Hints to improve type matching. + Structure *TypeStructure `protobuf:"bytes,11,opt,name=structure,proto3" json:"structure,omitempty"` +} + +func (x *LiteralType) Reset() { + *x = LiteralType{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LiteralType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LiteralType) ProtoMessage() {} + +func (x *LiteralType) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LiteralType.ProtoReflect.Descriptor instead. +func (*LiteralType) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{7} +} + +func (m *LiteralType) GetType() isLiteralType_Type { + if m != nil { + return m.Type + } + return nil +} + +func (x *LiteralType) GetSimple() SimpleType { + if x, ok := x.GetType().(*LiteralType_Simple); ok { + return x.Simple + } + return SimpleType_NONE +} + +func (x *LiteralType) GetSchema() *SchemaType { + if x, ok := x.GetType().(*LiteralType_Schema); ok { + return x.Schema + } + return nil +} + +func (x *LiteralType) GetCollectionType() *LiteralType { + if x, ok := x.GetType().(*LiteralType_CollectionType); ok { + return x.CollectionType + } + return nil +} + +func (x *LiteralType) GetMapValueType() *LiteralType { + if x, ok := x.GetType().(*LiteralType_MapValueType); ok { + return x.MapValueType + } + return nil +} + +func (x *LiteralType) GetBlob() *BlobType { + if x, ok := x.GetType().(*LiteralType_Blob); ok { + return x.Blob + } + return nil +} + +func (x *LiteralType) GetEnumType() *EnumType { + if x, ok := x.GetType().(*LiteralType_EnumType); ok { + return x.EnumType + } + return nil +} + +func (x *LiteralType) GetStructuredDatasetType() *StructuredDatasetType { + if x, ok := x.GetType().(*LiteralType_StructuredDatasetType); ok { + return x.StructuredDatasetType + } + return nil +} + +func (x *LiteralType) GetUnionType() *UnionType { + if x, ok := x.GetType().(*LiteralType_UnionType); ok { + return x.UnionType + } + return nil +} + +func (x *LiteralType) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *LiteralType) GetAnnotation() *TypeAnnotation { + if x != nil { + return x.Annotation + } + return nil +} + +func (x *LiteralType) GetStructure() *TypeStructure { + if x != nil { + return x.Structure + } + return nil +} + +type isLiteralType_Type interface { + isLiteralType_Type() +} + +type LiteralType_Simple struct { + // A simple type that can be compared one-to-one with another. + Simple SimpleType `protobuf:"varint,1,opt,name=simple,proto3,enum=flyteidl.core.SimpleType,oneof"` +} + +type LiteralType_Schema struct { + // A complex type that requires matching of inner fields. + Schema *SchemaType `protobuf:"bytes,2,opt,name=schema,proto3,oneof"` +} + +type LiteralType_CollectionType struct { + // Defines the type of the value of a collection. Only homogeneous collections are allowed. + CollectionType *LiteralType `protobuf:"bytes,3,opt,name=collection_type,json=collectionType,proto3,oneof"` +} + +type LiteralType_MapValueType struct { + // Defines the type of the value of a map type. The type of the key is always a string. + MapValueType *LiteralType `protobuf:"bytes,4,opt,name=map_value_type,json=mapValueType,proto3,oneof"` +} + +type LiteralType_Blob struct { + // A blob might have specialized implementation details depending on associated metadata. + Blob *BlobType `protobuf:"bytes,5,opt,name=blob,proto3,oneof"` +} + +type LiteralType_EnumType struct { + // Defines an enum with pre-defined string values. + EnumType *EnumType `protobuf:"bytes,7,opt,name=enum_type,json=enumType,proto3,oneof"` +} + +type LiteralType_StructuredDatasetType struct { + // Generalized schema support + StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,8,opt,name=structured_dataset_type,json=structuredDatasetType,proto3,oneof"` +} + +type LiteralType_UnionType struct { + // Defines an union type with pre-defined LiteralTypes. + UnionType *UnionType `protobuf:"bytes,10,opt,name=union_type,json=unionType,proto3,oneof"` +} + +func (*LiteralType_Simple) isLiteralType_Type() {} + +func (*LiteralType_Schema) isLiteralType_Type() {} + +func (*LiteralType_CollectionType) isLiteralType_Type() {} + +func (*LiteralType_MapValueType) isLiteralType_Type() {} + +func (*LiteralType_Blob) isLiteralType_Type() {} + +func (*LiteralType_EnumType) isLiteralType_Type() {} + +func (*LiteralType_StructuredDatasetType) isLiteralType_Type() {} + +func (*LiteralType_UnionType) isLiteralType_Type() {} + +// A reference to an output produced by a node. The type can be retrieved -and validated- from +// the underlying interface of the node. +type OutputReference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Node id must exist at the graph layer. + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + // Variable name must refer to an output variable for the node. + Var string `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"` + AttrPath []*PromiseAttribute `protobuf:"bytes,3,rep,name=attr_path,json=attrPath,proto3" json:"attr_path,omitempty"` +} + +func (x *OutputReference) Reset() { + *x = OutputReference{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OutputReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OutputReference) ProtoMessage() {} + +func (x *OutputReference) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OutputReference.ProtoReflect.Descriptor instead. +func (*OutputReference) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{8} +} + +func (x *OutputReference) GetNodeId() string { + if x != nil { + return x.NodeId + } + return "" +} + +func (x *OutputReference) GetVar() string { + if x != nil { + return x.Var + } + return "" +} + +func (x *OutputReference) GetAttrPath() []*PromiseAttribute { + if x != nil { + return x.AttrPath + } + return nil +} + +type PromiseAttribute struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Value: + // + // *PromiseAttribute_StringValue + // *PromiseAttribute_IntValue + Value isPromiseAttribute_Value `protobuf_oneof:"value"` +} + +func (x *PromiseAttribute) Reset() { + *x = PromiseAttribute{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PromiseAttribute) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PromiseAttribute) ProtoMessage() {} + +func (x *PromiseAttribute) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PromiseAttribute.ProtoReflect.Descriptor instead. +func (*PromiseAttribute) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{9} +} + +func (m *PromiseAttribute) GetValue() isPromiseAttribute_Value { + if m != nil { + return m.Value + } + return nil +} + +func (x *PromiseAttribute) GetStringValue() string { + if x, ok := x.GetValue().(*PromiseAttribute_StringValue); ok { + return x.StringValue + } + return "" +} + +func (x *PromiseAttribute) GetIntValue() int32 { + if x, ok := x.GetValue().(*PromiseAttribute_IntValue); ok { + return x.IntValue + } + return 0 +} + +type isPromiseAttribute_Value interface { + isPromiseAttribute_Value() +} + +type PromiseAttribute_StringValue struct { + StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type PromiseAttribute_IntValue struct { + IntValue int32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"` +} + +func (*PromiseAttribute_StringValue) isPromiseAttribute_Value() {} + +func (*PromiseAttribute_IntValue) isPromiseAttribute_Value() {} + +// Represents an error thrown from a node. +type Error struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The node id that threw the error. + FailedNodeId string `protobuf:"bytes,1,opt,name=failed_node_id,json=failedNodeId,proto3" json:"failed_node_id,omitempty"` + // Error message thrown. + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *Error) Reset() { + *x = Error{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Error) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Error) ProtoMessage() {} + +func (x *Error) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Error.ProtoReflect.Descriptor instead. +func (*Error) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{10} +} + +func (x *Error) GetFailedNodeId() string { + if x != nil { + return x.FailedNodeId + } + return "" +} + +func (x *Error) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +type SchemaType_SchemaColumn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique name -within the schema type- for the column + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The column type. This allows a limited set of types currently. + Type SchemaType_SchemaColumn_SchemaColumnType `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType" json:"type,omitempty"` +} + +func (x *SchemaType_SchemaColumn) Reset() { + *x = SchemaType_SchemaColumn{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchemaType_SchemaColumn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaType_SchemaColumn) ProtoMessage() {} + +func (x *SchemaType_SchemaColumn) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SchemaType_SchemaColumn.ProtoReflect.Descriptor instead. +func (*SchemaType_SchemaColumn) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *SchemaType_SchemaColumn) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *SchemaType_SchemaColumn) GetType() SchemaType_SchemaColumn_SchemaColumnType { + if x != nil { + return x.Type + } + return SchemaType_SchemaColumn_INTEGER +} + +type StructuredDatasetType_DatasetColumn struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique name within the schema type for the column. + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The column type. + LiteralType *LiteralType `protobuf:"bytes,2,opt,name=literal_type,json=literalType,proto3" json:"literal_type,omitempty"` +} + +func (x *StructuredDatasetType_DatasetColumn) Reset() { + *x = StructuredDatasetType_DatasetColumn{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_types_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructuredDatasetType_DatasetColumn) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructuredDatasetType_DatasetColumn) ProtoMessage() {} + +func (x *StructuredDatasetType_DatasetColumn) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_types_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StructuredDatasetType_DatasetColumn.ProtoReflect.Descriptor instead. +func (*StructuredDatasetType_DatasetColumn) Descriptor() ([]byte, []int) { + return file_flyteidl_core_types_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *StructuredDatasetType_DatasetColumn) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StructuredDatasetType_DatasetColumn) GetLiteralType() *LiteralType { + if x != nil { + return x.LiteralType + } + return nil +} + +var File_flyteidl_core_types_proto protoreflect.FileDescriptor + +var file_flyteidl_core_types_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, 0x02, 0x0a, 0x0a, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, + 0x79, 0x70, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x1a, 0xd0, 0x01, 0x0a, 0x0c, 0x53, 0x63, + 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4b, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x5f, 0x0a, 0x10, 0x53, + 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, + 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x03, + 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x04, 0x12, 0x0c, + 0x0a, 0x08, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x05, 0x22, 0xc7, 0x02, 0x0a, + 0x15, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, + 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4c, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, + 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x30, 0x0a, 0x14, + 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x65, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, + 0x0a, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, + 0x61, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x65, + 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x42, 0x79, 0x74, + 0x65, 0x73, 0x1a, 0x62, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa7, 0x01, 0x0a, 0x08, 0x42, 0x6c, 0x6f, 0x62, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x52, 0x0a, 0x0e, 0x64, + 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x42, 0x6c, 0x6f, + 0x62, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x52, + 0x0e, 0x64, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x22, + 0x2f, 0x0a, 0x12, 0x42, 0x6c, 0x6f, 0x62, 0x44, 0x69, 0x6d, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x49, 0x4e, 0x47, 0x4c, 0x45, 0x10, + 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x50, 0x41, 0x52, 0x54, 0x10, 0x01, + 0x22, 0x22, 0x0a, 0x08, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x09, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x36, 0x0a, 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x08, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x0d, 0x54, 0x79, + 0x70, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, + 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x56, 0x0a, + 0x0e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x79, 0x70, + 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, 0x73, + 0x73, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x5c, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, + 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x0e, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0xbc, 0x05, 0x0a, 0x0b, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x33, 0x0a, 0x06, 0x73, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x06, 0x73, + 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x79, 0x70, 0x65, + 0x48, 0x00, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x45, 0x0a, 0x0f, 0x63, 0x6f, + 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, + 0x00, 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x6d, 0x61, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x62, 0x6c, 0x6f, 0x62, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, + 0x62, 0x6c, 0x6f, 0x62, 0x12, 0x36, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, + 0x48, 0x00, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x5e, 0x0a, 0x17, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x73, + 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x15, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, + 0x64, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x0a, + 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x75, 0x6e, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x0a, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x0a, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x09, 0x73, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x09, 0x73, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x7a, 0x0a, 0x0f, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x76, + 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x3c, 0x0a, + 0x09, 0x61, 0x74, 0x74, 0x72, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x52, 0x08, 0x61, 0x74, 0x74, 0x72, 0x50, 0x61, 0x74, 0x68, 0x22, 0x5f, 0x0a, 0x10, 0x50, + 0x72, 0x6f, 0x6d, 0x69, 0x73, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, + 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x05, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x24, 0x0a, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, + 0x61, 0x69, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x2a, 0x86, 0x01, 0x0a, 0x0a, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0b, + 0x0a, 0x07, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x46, + 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, + 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x04, 0x12, + 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x05, 0x12, 0x0c, 0x0a, + 0x08, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x42, + 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, + 0x10, 0x08, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x55, 0x43, 0x54, 0x10, 0x09, 0x42, 0xb0, + 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, + 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, + 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_types_proto_rawDescOnce sync.Once + file_flyteidl_core_types_proto_rawDescData = file_flyteidl_core_types_proto_rawDesc +) + +func file_flyteidl_core_types_proto_rawDescGZIP() []byte { + file_flyteidl_core_types_proto_rawDescOnce.Do(func() { + file_flyteidl_core_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_types_proto_rawDescData) + }) + return file_flyteidl_core_types_proto_rawDescData +} + +var file_flyteidl_core_types_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_flyteidl_core_types_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_flyteidl_core_types_proto_goTypes = []interface{}{ + (SimpleType)(0), // 0: flyteidl.core.SimpleType + (SchemaType_SchemaColumn_SchemaColumnType)(0), // 1: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + (BlobType_BlobDimensionality)(0), // 2: flyteidl.core.BlobType.BlobDimensionality + (*SchemaType)(nil), // 3: flyteidl.core.SchemaType + (*StructuredDatasetType)(nil), // 4: flyteidl.core.StructuredDatasetType + (*BlobType)(nil), // 5: flyteidl.core.BlobType + (*EnumType)(nil), // 6: flyteidl.core.EnumType + (*UnionType)(nil), // 7: flyteidl.core.UnionType + (*TypeStructure)(nil), // 8: flyteidl.core.TypeStructure + (*TypeAnnotation)(nil), // 9: flyteidl.core.TypeAnnotation + (*LiteralType)(nil), // 10: flyteidl.core.LiteralType + (*OutputReference)(nil), // 11: flyteidl.core.OutputReference + (*PromiseAttribute)(nil), // 12: flyteidl.core.PromiseAttribute + (*Error)(nil), // 13: flyteidl.core.Error + (*SchemaType_SchemaColumn)(nil), // 14: flyteidl.core.SchemaType.SchemaColumn + (*StructuredDatasetType_DatasetColumn)(nil), // 15: flyteidl.core.StructuredDatasetType.DatasetColumn + nil, // 16: flyteidl.core.TypeStructure.DataclassTypeEntry + (*structpb.Struct)(nil), // 17: google.protobuf.Struct +} +var file_flyteidl_core_types_proto_depIdxs = []int32{ + 14, // 0: flyteidl.core.SchemaType.columns:type_name -> flyteidl.core.SchemaType.SchemaColumn + 15, // 1: flyteidl.core.StructuredDatasetType.columns:type_name -> flyteidl.core.StructuredDatasetType.DatasetColumn + 2, // 2: flyteidl.core.BlobType.dimensionality:type_name -> flyteidl.core.BlobType.BlobDimensionality + 10, // 3: flyteidl.core.UnionType.variants:type_name -> flyteidl.core.LiteralType + 16, // 4: flyteidl.core.TypeStructure.dataclass_type:type_name -> flyteidl.core.TypeStructure.DataclassTypeEntry + 17, // 5: flyteidl.core.TypeAnnotation.annotations:type_name -> google.protobuf.Struct + 0, // 6: flyteidl.core.LiteralType.simple:type_name -> flyteidl.core.SimpleType + 3, // 7: flyteidl.core.LiteralType.schema:type_name -> flyteidl.core.SchemaType + 10, // 8: flyteidl.core.LiteralType.collection_type:type_name -> flyteidl.core.LiteralType + 10, // 9: flyteidl.core.LiteralType.map_value_type:type_name -> flyteidl.core.LiteralType + 5, // 10: flyteidl.core.LiteralType.blob:type_name -> flyteidl.core.BlobType + 6, // 11: flyteidl.core.LiteralType.enum_type:type_name -> flyteidl.core.EnumType + 4, // 12: flyteidl.core.LiteralType.structured_dataset_type:type_name -> flyteidl.core.StructuredDatasetType + 7, // 13: flyteidl.core.LiteralType.union_type:type_name -> flyteidl.core.UnionType + 17, // 14: flyteidl.core.LiteralType.metadata:type_name -> google.protobuf.Struct + 9, // 15: flyteidl.core.LiteralType.annotation:type_name -> flyteidl.core.TypeAnnotation + 8, // 16: flyteidl.core.LiteralType.structure:type_name -> flyteidl.core.TypeStructure + 12, // 17: flyteidl.core.OutputReference.attr_path:type_name -> flyteidl.core.PromiseAttribute + 1, // 18: flyteidl.core.SchemaType.SchemaColumn.type:type_name -> flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + 10, // 19: flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type:type_name -> flyteidl.core.LiteralType + 10, // 20: flyteidl.core.TypeStructure.DataclassTypeEntry.value:type_name -> flyteidl.core.LiteralType + 21, // [21:21] is the sub-list for method output_type + 21, // [21:21] is the sub-list for method input_type + 21, // [21:21] is the sub-list for extension type_name + 21, // [21:21] is the sub-list for extension extendee + 0, // [0:21] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_types_proto_init() } +func file_flyteidl_core_types_proto_init() { + if File_flyteidl_core_types_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructuredDatasetType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlobType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnumType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnionType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypeStructure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TypeAnnotation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LiteralType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OutputReference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PromiseAttribute); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Error); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SchemaType_SchemaColumn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructuredDatasetType_DatasetColumn); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_types_proto_msgTypes[7].OneofWrappers = []interface{}{ + (*LiteralType_Simple)(nil), + (*LiteralType_Schema)(nil), + (*LiteralType_CollectionType)(nil), + (*LiteralType_MapValueType)(nil), + (*LiteralType_Blob)(nil), + (*LiteralType_EnumType)(nil), + (*LiteralType_StructuredDatasetType)(nil), + (*LiteralType_UnionType)(nil), + } + file_flyteidl_core_types_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*PromiseAttribute_StringValue)(nil), + (*PromiseAttribute_IntValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_types_proto_rawDesc, + NumEnums: 3, + NumMessages: 14, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_types_proto_goTypes, + DependencyIndexes: file_flyteidl_core_types_proto_depIdxs, + EnumInfos: file_flyteidl_core_types_proto_enumTypes, + MessageInfos: file_flyteidl_core_types_proto_msgTypes, + }.Build() + File_flyteidl_core_types_proto = out.File + file_flyteidl_core_types_proto_rawDesc = nil + file_flyteidl_core_types_proto_goTypes = nil + file_flyteidl_core_types_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go new file mode 100644 index 0000000000..f9318f539f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go @@ -0,0 +1,2259 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/workflow.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Failure Handling Strategy +type WorkflowMetadata_OnFailurePolicy int32 + +const ( + // FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically + // abort all currently running nodes and clean up resources before finally marking the workflow executions as + // failed. + WorkflowMetadata_FAIL_IMMEDIATELY WorkflowMetadata_OnFailurePolicy = 0 + // FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will + // not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. + // Other nodes that will be executed to completion before cleaning up resources and marking the workflow + // execution as failed. + WorkflowMetadata_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE WorkflowMetadata_OnFailurePolicy = 1 +) + +// Enum value maps for WorkflowMetadata_OnFailurePolicy. +var ( + WorkflowMetadata_OnFailurePolicy_name = map[int32]string{ + 0: "FAIL_IMMEDIATELY", + 1: "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", + } + WorkflowMetadata_OnFailurePolicy_value = map[string]int32{ + "FAIL_IMMEDIATELY": 0, + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE": 1, + } +) + +func (x WorkflowMetadata_OnFailurePolicy) Enum() *WorkflowMetadata_OnFailurePolicy { + p := new(WorkflowMetadata_OnFailurePolicy) + *p = x + return p +} + +func (x WorkflowMetadata_OnFailurePolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WorkflowMetadata_OnFailurePolicy) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_core_workflow_proto_enumTypes[0].Descriptor() +} + +func (WorkflowMetadata_OnFailurePolicy) Type() protoreflect.EnumType { + return &file_flyteidl_core_workflow_proto_enumTypes[0] +} + +func (x WorkflowMetadata_OnFailurePolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use WorkflowMetadata_OnFailurePolicy.Descriptor instead. +func (WorkflowMetadata_OnFailurePolicy) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{13, 0} +} + +// Defines a condition and the execution unit that should be executed if the condition is satisfied. +type IfBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Condition *BooleanExpression `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` + ThenNode *Node `protobuf:"bytes,2,opt,name=then_node,json=thenNode,proto3" json:"then_node,omitempty"` +} + +func (x *IfBlock) Reset() { + *x = IfBlock{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IfBlock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IfBlock) ProtoMessage() {} + +func (x *IfBlock) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IfBlock.ProtoReflect.Descriptor instead. +func (*IfBlock) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{0} +} + +func (x *IfBlock) GetCondition() *BooleanExpression { + if x != nil { + return x.Condition + } + return nil +} + +func (x *IfBlock) GetThenNode() *Node { + if x != nil { + return x.ThenNode + } + return nil +} + +// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +// If no conditions were satisfied, the else_node or the error will execute. +type IfElseBlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required. First condition to evaluate. + Case *IfBlock `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"` + // +optional. Additional branches to evaluate. + Other []*IfBlock `protobuf:"bytes,2,rep,name=other,proto3" json:"other,omitempty"` + // +required. + // + // Types that are assignable to Default: + // + // *IfElseBlock_ElseNode + // *IfElseBlock_Error + Default isIfElseBlock_Default `protobuf_oneof:"default"` +} + +func (x *IfElseBlock) Reset() { + *x = IfElseBlock{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IfElseBlock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IfElseBlock) ProtoMessage() {} + +func (x *IfElseBlock) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use IfElseBlock.ProtoReflect.Descriptor instead. +func (*IfElseBlock) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{1} +} + +func (x *IfElseBlock) GetCase() *IfBlock { + if x != nil { + return x.Case + } + return nil +} + +func (x *IfElseBlock) GetOther() []*IfBlock { + if x != nil { + return x.Other + } + return nil +} + +func (m *IfElseBlock) GetDefault() isIfElseBlock_Default { + if m != nil { + return m.Default + } + return nil +} + +func (x *IfElseBlock) GetElseNode() *Node { + if x, ok := x.GetDefault().(*IfElseBlock_ElseNode); ok { + return x.ElseNode + } + return nil +} + +func (x *IfElseBlock) GetError() *Error { + if x, ok := x.GetDefault().(*IfElseBlock_Error); ok { + return x.Error + } + return nil +} + +type isIfElseBlock_Default interface { + isIfElseBlock_Default() +} + +type IfElseBlock_ElseNode struct { + // The node to execute in case none of the branches were taken. + ElseNode *Node `protobuf:"bytes,3,opt,name=else_node,json=elseNode,proto3,oneof"` +} + +type IfElseBlock_Error struct { + // An error to throw in case none of the branches were taken. + Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` +} + +func (*IfElseBlock_ElseNode) isIfElseBlock_Default() {} + +func (*IfElseBlock_Error) isIfElseBlock_Default() {} + +// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). +type BranchNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +required + IfElse *IfElseBlock `protobuf:"bytes,1,opt,name=if_else,json=ifElse,proto3" json:"if_else,omitempty"` +} + +func (x *BranchNode) Reset() { + *x = BranchNode{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BranchNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BranchNode) ProtoMessage() {} + +func (x *BranchNode) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BranchNode.ProtoReflect.Descriptor instead. +func (*BranchNode) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{2} +} + +func (x *BranchNode) GetIfElse() *IfElseBlock { + if x != nil { + return x.IfElse + } + return nil +} + +// Refers to the task that the Node is to execute. +type TaskNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Reference: + // + // *TaskNode_ReferenceId + Reference isTaskNode_Reference `protobuf_oneof:"reference"` + // Optional overrides applied at task execution time. + Overrides *TaskNodeOverrides `protobuf:"bytes,2,opt,name=overrides,proto3" json:"overrides,omitempty"` +} + +func (x *TaskNode) Reset() { + *x = TaskNode{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskNode) ProtoMessage() {} + +func (x *TaskNode) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskNode.ProtoReflect.Descriptor instead. +func (*TaskNode) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{3} +} + +func (m *TaskNode) GetReference() isTaskNode_Reference { + if m != nil { + return m.Reference + } + return nil +} + +func (x *TaskNode) GetReferenceId() *Identifier { + if x, ok := x.GetReference().(*TaskNode_ReferenceId); ok { + return x.ReferenceId + } + return nil +} + +func (x *TaskNode) GetOverrides() *TaskNodeOverrides { + if x != nil { + return x.Overrides + } + return nil +} + +type isTaskNode_Reference interface { + isTaskNode_Reference() +} + +type TaskNode_ReferenceId struct { + // A globally unique identifier for the task. + ReferenceId *Identifier `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3,oneof"` +} + +func (*TaskNode_ReferenceId) isTaskNode_Reference() {} + +// Refers to a the workflow the node is to execute. +type WorkflowNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Reference: + // + // *WorkflowNode_LaunchplanRef + // *WorkflowNode_SubWorkflowRef + Reference isWorkflowNode_Reference `protobuf_oneof:"reference"` +} + +func (x *WorkflowNode) Reset() { + *x = WorkflowNode{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowNode) ProtoMessage() {} + +func (x *WorkflowNode) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowNode.ProtoReflect.Descriptor instead. +func (*WorkflowNode) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{4} +} + +func (m *WorkflowNode) GetReference() isWorkflowNode_Reference { + if m != nil { + return m.Reference + } + return nil +} + +func (x *WorkflowNode) GetLaunchplanRef() *Identifier { + if x, ok := x.GetReference().(*WorkflowNode_LaunchplanRef); ok { + return x.LaunchplanRef + } + return nil +} + +func (x *WorkflowNode) GetSubWorkflowRef() *Identifier { + if x, ok := x.GetReference().(*WorkflowNode_SubWorkflowRef); ok { + return x.SubWorkflowRef + } + return nil +} + +type isWorkflowNode_Reference interface { + isWorkflowNode_Reference() +} + +type WorkflowNode_LaunchplanRef struct { + // A globally unique identifier for the launch plan. + LaunchplanRef *Identifier `protobuf:"bytes,1,opt,name=launchplan_ref,json=launchplanRef,proto3,oneof"` +} + +type WorkflowNode_SubWorkflowRef struct { + // Reference to a subworkflow, that should be defined with the compiler context + SubWorkflowRef *Identifier `protobuf:"bytes,2,opt,name=sub_workflow_ref,json=subWorkflowRef,proto3,oneof"` +} + +func (*WorkflowNode_LaunchplanRef) isWorkflowNode_Reference() {} + +func (*WorkflowNode_SubWorkflowRef) isWorkflowNode_Reference() {} + +// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean +// signal with the provided signal_id. +type ApproveCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique identifier for the requested boolean signal. + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` +} + +func (x *ApproveCondition) Reset() { + *x = ApproveCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApproveCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApproveCondition) ProtoMessage() {} + +func (x *ApproveCondition) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApproveCondition.ProtoReflect.Descriptor instead. +func (*ApproveCondition) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{5} +} + +func (x *ApproveCondition) GetSignalId() string { + if x != nil { + return x.SignalId + } + return "" +} + +// SignalCondition represents a dependency on an signal. +type SignalCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique identifier for the requested signal. + SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` + // A type denoting the required value type for this signal. + Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // The variable name for the signal value in this nodes outputs. + OutputVariableName string `protobuf:"bytes,3,opt,name=output_variable_name,json=outputVariableName,proto3" json:"output_variable_name,omitempty"` +} + +func (x *SignalCondition) Reset() { + *x = SignalCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SignalCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SignalCondition) ProtoMessage() {} + +func (x *SignalCondition) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SignalCondition.ProtoReflect.Descriptor instead. +func (*SignalCondition) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{6} +} + +func (x *SignalCondition) GetSignalId() string { + if x != nil { + return x.SignalId + } + return "" +} + +func (x *SignalCondition) GetType() *LiteralType { + if x != nil { + return x.Type + } + return nil +} + +func (x *SignalCondition) GetOutputVariableName() string { + if x != nil { + return x.OutputVariableName + } + return "" +} + +// SleepCondition represents a dependency on waiting for the specified duration. +type SleepCondition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The overall duration for this sleep. + Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` +} + +func (x *SleepCondition) Reset() { + *x = SleepCondition{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SleepCondition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SleepCondition) ProtoMessage() {} + +func (x *SleepCondition) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SleepCondition.ProtoReflect.Descriptor instead. +func (*SleepCondition) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{7} +} + +func (x *SleepCondition) GetDuration() *durationpb.Duration { + if x != nil { + return x.Duration + } + return nil +} + +// GateNode refers to the condition that is required for the gate to successfully complete. +type GateNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Condition: + // + // *GateNode_Approve + // *GateNode_Signal + // *GateNode_Sleep + Condition isGateNode_Condition `protobuf_oneof:"condition"` +} + +func (x *GateNode) Reset() { + *x = GateNode{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GateNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GateNode) ProtoMessage() {} + +func (x *GateNode) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GateNode.ProtoReflect.Descriptor instead. +func (*GateNode) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{8} +} + +func (m *GateNode) GetCondition() isGateNode_Condition { + if m != nil { + return m.Condition + } + return nil +} + +func (x *GateNode) GetApprove() *ApproveCondition { + if x, ok := x.GetCondition().(*GateNode_Approve); ok { + return x.Approve + } + return nil +} + +func (x *GateNode) GetSignal() *SignalCondition { + if x, ok := x.GetCondition().(*GateNode_Signal); ok { + return x.Signal + } + return nil +} + +func (x *GateNode) GetSleep() *SleepCondition { + if x, ok := x.GetCondition().(*GateNode_Sleep); ok { + return x.Sleep + } + return nil +} + +type isGateNode_Condition interface { + isGateNode_Condition() +} + +type GateNode_Approve struct { + // ApproveCondition represents a dependency on an external approval provided by a boolean signal. + Approve *ApproveCondition `protobuf:"bytes,1,opt,name=approve,proto3,oneof"` +} + +type GateNode_Signal struct { + // SignalCondition represents a dependency on an signal. + Signal *SignalCondition `protobuf:"bytes,2,opt,name=signal,proto3,oneof"` +} + +type GateNode_Sleep struct { + // SleepCondition represents a dependency on waiting for the specified duration. + Sleep *SleepCondition `protobuf:"bytes,3,opt,name=sleep,proto3,oneof"` +} + +func (*GateNode_Approve) isGateNode_Condition() {} + +func (*GateNode_Signal) isGateNode_Condition() {} + +func (*GateNode_Sleep) isGateNode_Condition() {} + +// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input +// values. An ArrayNode can be executed with configurable parallelism (separate from the parent +// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. +type ArrayNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // node is the sub-node that will be executed for each element in the array. + Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` + // parallelism defines the minimum number of instances to bring up concurrently at any given + // point. Note that this is an optimistic restriction and that, due to network partitioning or + // other failures, the actual number of currently running instances might be more. This has to + // be a positive number if assigned. Default value is size. + Parallelism uint32 `protobuf:"varint,2,opt,name=parallelism,proto3" json:"parallelism,omitempty"` + // Types that are assignable to SuccessCriteria: + // + // *ArrayNode_MinSuccesses + // *ArrayNode_MinSuccessRatio + SuccessCriteria isArrayNode_SuccessCriteria `protobuf_oneof:"success_criteria"` +} + +func (x *ArrayNode) Reset() { + *x = ArrayNode{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArrayNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArrayNode) ProtoMessage() {} + +func (x *ArrayNode) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArrayNode.ProtoReflect.Descriptor instead. +func (*ArrayNode) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{9} +} + +func (x *ArrayNode) GetNode() *Node { + if x != nil { + return x.Node + } + return nil +} + +func (x *ArrayNode) GetParallelism() uint32 { + if x != nil { + return x.Parallelism + } + return 0 +} + +func (m *ArrayNode) GetSuccessCriteria() isArrayNode_SuccessCriteria { + if m != nil { + return m.SuccessCriteria + } + return nil +} + +func (x *ArrayNode) GetMinSuccesses() uint32 { + if x, ok := x.GetSuccessCriteria().(*ArrayNode_MinSuccesses); ok { + return x.MinSuccesses + } + return 0 +} + +func (x *ArrayNode) GetMinSuccessRatio() float32 { + if x, ok := x.GetSuccessCriteria().(*ArrayNode_MinSuccessRatio); ok { + return x.MinSuccessRatio + } + return 0 +} + +type isArrayNode_SuccessCriteria interface { + isArrayNode_SuccessCriteria() +} + +type ArrayNode_MinSuccesses struct { + // min_successes is an absolute number of the minimum number of successful completions of + // sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful + // and outputs will be computed. This has to be a non-negative number if assigned. Default + // value is size (if specified). + MinSuccesses uint32 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` +} + +type ArrayNode_MinSuccessRatio struct { + // If the array job size is not known beforehand, the min_success_ratio can instead be used + // to determine when an ArrayNode can be marked successful. + MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` +} + +func (*ArrayNode_MinSuccesses) isArrayNode_SuccessCriteria() {} + +func (*ArrayNode_MinSuccessRatio) isArrayNode_SuccessCriteria() {} + +// Defines extra information about the Node. +type NodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A friendly name for the Node + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // The overall timeout of a task. + Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Number of retries per task. + Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` + // Identify whether node is interruptible + // + // Types that are assignable to InterruptibleValue: + // + // *NodeMetadata_Interruptible + InterruptibleValue isNodeMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` + // Identify whether a node should have it's outputs cached. + // + // Types that are assignable to CacheableValue: + // + // *NodeMetadata_Cacheable + CacheableValue isNodeMetadata_CacheableValue `protobuf_oneof:"cacheable_value"` + // The version of the cache to use. + // + // Types that are assignable to CacheVersionValue: + // + // *NodeMetadata_CacheVersion + CacheVersionValue isNodeMetadata_CacheVersionValue `protobuf_oneof:"cache_version_value"` + // Identify whether caching operations involving this node should be serialized. + // + // Types that are assignable to CacheSerializableValue: + // + // *NodeMetadata_CacheSerializable + CacheSerializableValue isNodeMetadata_CacheSerializableValue `protobuf_oneof:"cache_serializable_value"` +} + +func (x *NodeMetadata) Reset() { + *x = NodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeMetadata) ProtoMessage() {} + +func (x *NodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeMetadata.ProtoReflect.Descriptor instead. +func (*NodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{10} +} + +func (x *NodeMetadata) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *NodeMetadata) GetTimeout() *durationpb.Duration { + if x != nil { + return x.Timeout + } + return nil +} + +func (x *NodeMetadata) GetRetries() *RetryStrategy { + if x != nil { + return x.Retries + } + return nil +} + +func (m *NodeMetadata) GetInterruptibleValue() isNodeMetadata_InterruptibleValue { + if m != nil { + return m.InterruptibleValue + } + return nil +} + +func (x *NodeMetadata) GetInterruptible() bool { + if x, ok := x.GetInterruptibleValue().(*NodeMetadata_Interruptible); ok { + return x.Interruptible + } + return false +} + +func (m *NodeMetadata) GetCacheableValue() isNodeMetadata_CacheableValue { + if m != nil { + return m.CacheableValue + } + return nil +} + +func (x *NodeMetadata) GetCacheable() bool { + if x, ok := x.GetCacheableValue().(*NodeMetadata_Cacheable); ok { + return x.Cacheable + } + return false +} + +func (m *NodeMetadata) GetCacheVersionValue() isNodeMetadata_CacheVersionValue { + if m != nil { + return m.CacheVersionValue + } + return nil +} + +func (x *NodeMetadata) GetCacheVersion() string { + if x, ok := x.GetCacheVersionValue().(*NodeMetadata_CacheVersion); ok { + return x.CacheVersion + } + return "" +} + +func (m *NodeMetadata) GetCacheSerializableValue() isNodeMetadata_CacheSerializableValue { + if m != nil { + return m.CacheSerializableValue + } + return nil +} + +func (x *NodeMetadata) GetCacheSerializable() bool { + if x, ok := x.GetCacheSerializableValue().(*NodeMetadata_CacheSerializable); ok { + return x.CacheSerializable + } + return false +} + +type isNodeMetadata_InterruptibleValue interface { + isNodeMetadata_InterruptibleValue() +} + +type NodeMetadata_Interruptible struct { + Interruptible bool `protobuf:"varint,6,opt,name=interruptible,proto3,oneof"` +} + +func (*NodeMetadata_Interruptible) isNodeMetadata_InterruptibleValue() {} + +type isNodeMetadata_CacheableValue interface { + isNodeMetadata_CacheableValue() +} + +type NodeMetadata_Cacheable struct { + Cacheable bool `protobuf:"varint,7,opt,name=cacheable,proto3,oneof"` +} + +func (*NodeMetadata_Cacheable) isNodeMetadata_CacheableValue() {} + +type isNodeMetadata_CacheVersionValue interface { + isNodeMetadata_CacheVersionValue() +} + +type NodeMetadata_CacheVersion struct { + CacheVersion string `protobuf:"bytes,8,opt,name=cache_version,json=cacheVersion,proto3,oneof"` +} + +func (*NodeMetadata_CacheVersion) isNodeMetadata_CacheVersionValue() {} + +type isNodeMetadata_CacheSerializableValue interface { + isNodeMetadata_CacheSerializableValue() +} + +type NodeMetadata_CacheSerializable struct { + CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3,oneof"` +} + +func (*NodeMetadata_CacheSerializable) isNodeMetadata_CacheSerializableValue() {} + +// Links a variable to an alias. +type Alias struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Must match one of the output variable names on a node. + Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` + // A workflow-level unique alias that downstream nodes can refer to in their input. + Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` +} + +func (x *Alias) Reset() { + *x = Alias{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Alias) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Alias) ProtoMessage() {} + +func (x *Alias) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Alias.ProtoReflect.Descriptor instead. +func (*Alias) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{11} +} + +func (x *Alias) GetVar() string { + if x != nil { + return x.Var + } + return "" +} + +func (x *Alias) GetAlias() string { + if x != nil { + return x.Alias + } + return "" +} + +// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +// node. +type Node struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved + // node ids that cannot be used by other nodes. + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Extra metadata about the node. + Metadata *NodeMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + // must be fulfilled. + Inputs []*Binding `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` + // +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its + // upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs + // field. + UpstreamNodeIds []string `protobuf:"bytes,4,rep,name=upstream_node_ids,json=upstreamNodeIds,proto3" json:"upstream_node_ids,omitempty"` + // +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + // nodes outputs using the alias if one's specified. + OutputAliases []*Alias `protobuf:"bytes,5,rep,name=output_aliases,json=outputAliases,proto3" json:"output_aliases,omitempty"` + // Information about the target to execute in this node. + // + // Types that are assignable to Target: + // + // *Node_TaskNode + // *Node_WorkflowNode + // *Node_BranchNode + // *Node_GateNode + // *Node_ArrayNode + Target isNode_Target `protobuf_oneof:"target"` +} + +func (x *Node) Reset() { + *x = Node{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Node) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Node) ProtoMessage() {} + +func (x *Node) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Node.ProtoReflect.Descriptor instead. +func (*Node) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{12} +} + +func (x *Node) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Node) GetMetadata() *NodeMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Node) GetInputs() []*Binding { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *Node) GetUpstreamNodeIds() []string { + if x != nil { + return x.UpstreamNodeIds + } + return nil +} + +func (x *Node) GetOutputAliases() []*Alias { + if x != nil { + return x.OutputAliases + } + return nil +} + +func (m *Node) GetTarget() isNode_Target { + if m != nil { + return m.Target + } + return nil +} + +func (x *Node) GetTaskNode() *TaskNode { + if x, ok := x.GetTarget().(*Node_TaskNode); ok { + return x.TaskNode + } + return nil +} + +func (x *Node) GetWorkflowNode() *WorkflowNode { + if x, ok := x.GetTarget().(*Node_WorkflowNode); ok { + return x.WorkflowNode + } + return nil +} + +func (x *Node) GetBranchNode() *BranchNode { + if x, ok := x.GetTarget().(*Node_BranchNode); ok { + return x.BranchNode + } + return nil +} + +func (x *Node) GetGateNode() *GateNode { + if x, ok := x.GetTarget().(*Node_GateNode); ok { + return x.GateNode + } + return nil +} + +func (x *Node) GetArrayNode() *ArrayNode { + if x, ok := x.GetTarget().(*Node_ArrayNode); ok { + return x.ArrayNode + } + return nil +} + +type isNode_Target interface { + isNode_Target() +} + +type Node_TaskNode struct { + // Information about the Task to execute in this node. + TaskNode *TaskNode `protobuf:"bytes,6,opt,name=task_node,json=taskNode,proto3,oneof"` +} + +type Node_WorkflowNode struct { + // Information about the Workflow to execute in this mode. + WorkflowNode *WorkflowNode `protobuf:"bytes,7,opt,name=workflow_node,json=workflowNode,proto3,oneof"` +} + +type Node_BranchNode struct { + // Information about the branch node to evaluate in this node. + BranchNode *BranchNode `protobuf:"bytes,8,opt,name=branch_node,json=branchNode,proto3,oneof"` +} + +type Node_GateNode struct { + // Information about the condition to evaluate in this node. + GateNode *GateNode `protobuf:"bytes,9,opt,name=gate_node,json=gateNode,proto3,oneof"` +} + +type Node_ArrayNode struct { + // Information about the sub-node executions for each value in the list of this nodes + // inputs values. + ArrayNode *ArrayNode `protobuf:"bytes,10,opt,name=array_node,json=arrayNode,proto3,oneof"` +} + +func (*Node_TaskNode) isNode_Target() {} + +func (*Node_WorkflowNode) isNode_Target() {} + +func (*Node_BranchNode) isNode_Target() {} + +func (*Node_GateNode) isNode_Target() {} + +func (*Node_ArrayNode) isNode_Target() {} + +// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not +// percolate down to child entities (like tasks) launched by the workflow. +type WorkflowMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Indicates the runtime priority of workflow executions. + QualityOfService *QualityOfService `protobuf:"bytes,1,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` + // Defines how the system should behave when a failure is detected in the workflow execution. + OnFailure WorkflowMetadata_OnFailurePolicy `protobuf:"varint,2,opt,name=on_failure,json=onFailure,proto3,enum=flyteidl.core.WorkflowMetadata_OnFailurePolicy" json:"on_failure,omitempty"` + // Arbitrary tags that allow users and the platform to store small but arbitrary labels + Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *WorkflowMetadata) Reset() { + *x = WorkflowMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowMetadata) ProtoMessage() {} + +func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowMetadata.ProtoReflect.Descriptor instead. +func (*WorkflowMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{13} +} + +func (x *WorkflowMetadata) GetQualityOfService() *QualityOfService { + if x != nil { + return x.QualityOfService + } + return nil +} + +func (x *WorkflowMetadata) GetOnFailure() WorkflowMetadata_OnFailurePolicy { + if x != nil { + return x.OnFailure + } + return WorkflowMetadata_FAIL_IMMEDIATELY +} + +func (x *WorkflowMetadata) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to +// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it +// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes +// unless explicitly overridden at the node layer. +// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be +// added to both this object and the WorkflowMetadata object above. +type WorkflowMetadataDefaults struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Whether child nodes of the workflow are interruptible. + Interruptible bool `protobuf:"varint,1,opt,name=interruptible,proto3" json:"interruptible,omitempty"` +} + +func (x *WorkflowMetadataDefaults) Reset() { + *x = WorkflowMetadataDefaults{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowMetadataDefaults) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowMetadataDefaults) ProtoMessage() {} + +func (x *WorkflowMetadataDefaults) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowMetadataDefaults.ProtoReflect.Descriptor instead. +func (*WorkflowMetadataDefaults) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{14} +} + +func (x *WorkflowMetadataDefaults) GetInterruptible() bool { + if x != nil { + return x.Interruptible + } + return false +} + +// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +// directed acyclic graph. +type WorkflowTemplate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A globally unique identifier for the workflow. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Extra metadata about the workflow. + Metadata *WorkflowMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + // Defines a strongly typed interface for the Workflow. This can include some optional parameters. + Interface *TypedInterface `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` + // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` + // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + // bind final outputs. + // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + // outputs from the output of a task. + Outputs []*Binding `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` + // +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + // The interface of this node must match the Workflow interface with an additional input named 'error' of type + // pb.lyft.flyte.core.Error. + FailureNode *Node `protobuf:"bytes,6,opt,name=failure_node,json=failureNode,proto3" json:"failure_node,omitempty"` + // workflow defaults + MetadataDefaults *WorkflowMetadataDefaults `protobuf:"bytes,7,opt,name=metadata_defaults,json=metadataDefaults,proto3" json:"metadata_defaults,omitempty"` +} + +func (x *WorkflowTemplate) Reset() { + *x = WorkflowTemplate{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowTemplate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowTemplate) ProtoMessage() {} + +func (x *WorkflowTemplate) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowTemplate.ProtoReflect.Descriptor instead. +func (*WorkflowTemplate) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{15} +} + +func (x *WorkflowTemplate) GetId() *Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *WorkflowTemplate) GetMetadata() *WorkflowMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *WorkflowTemplate) GetInterface() *TypedInterface { + if x != nil { + return x.Interface + } + return nil +} + +func (x *WorkflowTemplate) GetNodes() []*Node { + if x != nil { + return x.Nodes + } + return nil +} + +func (x *WorkflowTemplate) GetOutputs() []*Binding { + if x != nil { + return x.Outputs + } + return nil +} + +func (x *WorkflowTemplate) GetFailureNode() *Node { + if x != nil { + return x.FailureNode + } + return nil +} + +func (x *WorkflowTemplate) GetMetadataDefaults() *WorkflowMetadataDefaults { + if x != nil { + return x.MetadataDefaults + } + return nil +} + +// Optional task node overrides that will be applied at task execution time. +type TaskNodeOverrides struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A customizable interface to convey resources requested for a task container. + Resources *Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` + // Overrides for all non-standard resources, not captured by + // v1.ResourceRequirements, to allocate to a task. + ExtendedResources *ExtendedResources `protobuf:"bytes,2,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"` +} + +func (x *TaskNodeOverrides) Reset() { + *x = TaskNodeOverrides{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskNodeOverrides) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskNodeOverrides) ProtoMessage() {} + +func (x *TaskNodeOverrides) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskNodeOverrides.ProtoReflect.Descriptor instead. +func (*TaskNodeOverrides) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{16} +} + +func (x *TaskNodeOverrides) GetResources() *Resources { + if x != nil { + return x.Resources + } + return nil +} + +func (x *TaskNodeOverrides) GetExtendedResources() *ExtendedResources { + if x != nil { + return x.ExtendedResources + } + return nil +} + +// A structure that uniquely identifies a launch plan in the system. +type LaunchPlanTemplate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A globally unique identifier for the launch plan. + Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // The input and output interface for the launch plan + Interface *TypedInterface `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"` + // A collection of input literals that are fixed for the launch plan + FixedInputs *LiteralMap `protobuf:"bytes,3,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` +} + +func (x *LaunchPlanTemplate) Reset() { + *x = LaunchPlanTemplate{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LaunchPlanTemplate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LaunchPlanTemplate) ProtoMessage() {} + +func (x *LaunchPlanTemplate) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LaunchPlanTemplate.ProtoReflect.Descriptor instead. +func (*LaunchPlanTemplate) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_proto_rawDescGZIP(), []int{17} +} + +func (x *LaunchPlanTemplate) GetId() *Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *LaunchPlanTemplate) GetInterface() *TypedInterface { + if x != nil { + return x.Interface + } + return nil +} + +func (x *LaunchPlanTemplate) GetFixedInputs() *LiteralMap { + if x != nil { + return x.FixedInputs + } + return nil +} + +var File_flyteidl_core_workflow_proto protoreflect.FileDescriptor + +var file_flyteidl_core_workflow_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1d, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a, 0x07, + 0x49, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x3e, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, + 0x61, 0x6e, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x63, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x09, 0x74, 0x68, 0x65, 0x6e, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x08, 0x74, 0x68, 0x65, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xd4, 0x01, 0x0a, 0x0b, 0x49, 0x66, + 0x45, 0x6c, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x0a, 0x04, 0x63, 0x61, 0x73, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, + 0x04, 0x63, 0x61, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x66, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x05, 0x6f, 0x74, + 0x68, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x09, 0x65, 0x6c, 0x73, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x65, + 0x6c, 0x73, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x22, 0x41, 0x0a, 0x0a, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x33, + 0x0a, 0x07, 0x69, 0x66, 0x5f, 0x65, 0x6c, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x49, 0x66, 0x45, 0x6c, 0x73, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x06, 0x69, 0x66, 0x45, + 0x6c, 0x73, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, + 0x12, 0x3e, 0x0a, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, + 0x12, 0x3e, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, + 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, + 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0xa6, 0x01, + 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x42, + 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x72, 0x65, 0x66, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x48, 0x00, 0x52, 0x0d, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x70, 0x6c, 0x61, 0x6e, 0x52, + 0x65, 0x66, 0x12, 0x45, 0x0a, 0x10, 0x73, 0x75, 0x62, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x66, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x2f, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, + 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x0f, 0x53, 0x69, 0x67, 0x6e, + 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x56, 0x61, + 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x47, 0x0a, 0x0e, 0x53, 0x6c, + 0x65, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xc5, 0x01, 0x0a, 0x08, 0x47, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, + 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x65, 0x12, 0x38, 0x0a, + 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, + 0x06, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x6c, 0x65, 0x65, 0x70, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x6c, 0x65, 0x65, 0x70, 0x43, 0x6f, 0x6e, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x05, 0x73, 0x6c, 0x65, 0x65, 0x70, 0x42, 0x0b, + 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x09, + 0x41, 0x72, 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x6e, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6e, 0x6f, + 0x64, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, + 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, + 0x6c, 0x69, 0x73, 0x6d, 0x12, 0x25, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x0c, 0x6d, + 0x69, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x6d, + 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x69, 0x6e, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x42, 0x12, 0x0a, 0x10, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x22, 0x8c, 0x03, + 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, + 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x53, 0x74, + 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x26, 0x0a, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, + 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x09, 0x63, 0x61, 0x63, 0x68, 0x65, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x01, 0x52, 0x09, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x63, 0x61, 0x63, 0x68, 0x65, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, + 0x52, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, + 0x0a, 0x12, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x48, 0x03, 0x52, 0x11, 0x63, 0x61, + 0x63, 0x68, 0x65, 0x53, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x42, + 0x15, 0x0a, 0x13, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x15, 0x0a, 0x13, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0x1a, 0x0a, 0x18, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, + 0x69, 0x7a, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2f, 0x0a, 0x05, + 0x41, 0x6c, 0x69, 0x61, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x76, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0x9f, 0x04, + 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x2e, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x12, + 0x2a, 0x0a, 0x11, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x6f, 0x64, 0x65, + 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x70, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x6f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x05, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x52, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, + 0x12, 0x42, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, + 0x52, 0x08, 0x67, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x61, 0x72, + 0x72, 0x61, 0x79, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, + 0x72, 0x72, 0x61, 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, + 0x79, 0x4e, 0x6f, 0x64, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, + 0xfc, 0x02, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x12, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x5f, + 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x10, 0x71, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x6f, 0x6e, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x6f, 0x6e, 0x46, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x51, 0x0a, 0x0f, 0x4f, + 0x6e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x14, + 0x0a, 0x10, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x49, 0x4d, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, + 0x4c, 0x59, 0x10, 0x00, 0x12, 0x28, 0x0a, 0x24, 0x46, 0x41, 0x49, 0x4c, 0x5f, 0x41, 0x46, 0x54, + 0x45, 0x52, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x4e, 0x4f, + 0x44, 0x45, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x01, 0x22, 0x40, + 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x62, 0x6c, 0x65, + 0x22, 0xa2, 0x03, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3b, 0x0a, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, + 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, + 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, + 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x07, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, + 0x72, 0x65, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x52, 0x0b, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, + 0x54, 0x0a, 0x11, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x73, 0x52, 0x10, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, + 0x64, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x09, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x12, 0x4f, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x22, 0xba, 0x01, 0x0a, 0x12, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, + 0x6c, 0x61, 0x6e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x29, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x66, 0x69, 0x78, 0x65, 0x64, 0x5f, 0x69, 0x6e, 0x70, + 0x75, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x0b, 0x66, 0x69, 0x78, 0x65, 0x64, 0x49, 0x6e, 0x70, 0x75, 0x74, + 0x73, 0x42, 0xb3, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_workflow_proto_rawDescOnce sync.Once + file_flyteidl_core_workflow_proto_rawDescData = file_flyteidl_core_workflow_proto_rawDesc +) + +func file_flyteidl_core_workflow_proto_rawDescGZIP() []byte { + file_flyteidl_core_workflow_proto_rawDescOnce.Do(func() { + file_flyteidl_core_workflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_workflow_proto_rawDescData) + }) + return file_flyteidl_core_workflow_proto_rawDescData +} + +var file_flyteidl_core_workflow_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_core_workflow_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_flyteidl_core_workflow_proto_goTypes = []interface{}{ + (WorkflowMetadata_OnFailurePolicy)(0), // 0: flyteidl.core.WorkflowMetadata.OnFailurePolicy + (*IfBlock)(nil), // 1: flyteidl.core.IfBlock + (*IfElseBlock)(nil), // 2: flyteidl.core.IfElseBlock + (*BranchNode)(nil), // 3: flyteidl.core.BranchNode + (*TaskNode)(nil), // 4: flyteidl.core.TaskNode + (*WorkflowNode)(nil), // 5: flyteidl.core.WorkflowNode + (*ApproveCondition)(nil), // 6: flyteidl.core.ApproveCondition + (*SignalCondition)(nil), // 7: flyteidl.core.SignalCondition + (*SleepCondition)(nil), // 8: flyteidl.core.SleepCondition + (*GateNode)(nil), // 9: flyteidl.core.GateNode + (*ArrayNode)(nil), // 10: flyteidl.core.ArrayNode + (*NodeMetadata)(nil), // 11: flyteidl.core.NodeMetadata + (*Alias)(nil), // 12: flyteidl.core.Alias + (*Node)(nil), // 13: flyteidl.core.Node + (*WorkflowMetadata)(nil), // 14: flyteidl.core.WorkflowMetadata + (*WorkflowMetadataDefaults)(nil), // 15: flyteidl.core.WorkflowMetadataDefaults + (*WorkflowTemplate)(nil), // 16: flyteidl.core.WorkflowTemplate + (*TaskNodeOverrides)(nil), // 17: flyteidl.core.TaskNodeOverrides + (*LaunchPlanTemplate)(nil), // 18: flyteidl.core.LaunchPlanTemplate + nil, // 19: flyteidl.core.WorkflowMetadata.TagsEntry + (*BooleanExpression)(nil), // 20: flyteidl.core.BooleanExpression + (*Error)(nil), // 21: flyteidl.core.Error + (*Identifier)(nil), // 22: flyteidl.core.Identifier + (*LiteralType)(nil), // 23: flyteidl.core.LiteralType + (*durationpb.Duration)(nil), // 24: google.protobuf.Duration + (*RetryStrategy)(nil), // 25: flyteidl.core.RetryStrategy + (*Binding)(nil), // 26: flyteidl.core.Binding + (*QualityOfService)(nil), // 27: flyteidl.core.QualityOfService + (*TypedInterface)(nil), // 28: flyteidl.core.TypedInterface + (*Resources)(nil), // 29: flyteidl.core.Resources + (*ExtendedResources)(nil), // 30: flyteidl.core.ExtendedResources + (*LiteralMap)(nil), // 31: flyteidl.core.LiteralMap +} +var file_flyteidl_core_workflow_proto_depIdxs = []int32{ + 20, // 0: flyteidl.core.IfBlock.condition:type_name -> flyteidl.core.BooleanExpression + 13, // 1: flyteidl.core.IfBlock.then_node:type_name -> flyteidl.core.Node + 1, // 2: flyteidl.core.IfElseBlock.case:type_name -> flyteidl.core.IfBlock + 1, // 3: flyteidl.core.IfElseBlock.other:type_name -> flyteidl.core.IfBlock + 13, // 4: flyteidl.core.IfElseBlock.else_node:type_name -> flyteidl.core.Node + 21, // 5: flyteidl.core.IfElseBlock.error:type_name -> flyteidl.core.Error + 2, // 6: flyteidl.core.BranchNode.if_else:type_name -> flyteidl.core.IfElseBlock + 22, // 7: flyteidl.core.TaskNode.reference_id:type_name -> flyteidl.core.Identifier + 17, // 8: flyteidl.core.TaskNode.overrides:type_name -> flyteidl.core.TaskNodeOverrides + 22, // 9: flyteidl.core.WorkflowNode.launchplan_ref:type_name -> flyteidl.core.Identifier + 22, // 10: flyteidl.core.WorkflowNode.sub_workflow_ref:type_name -> flyteidl.core.Identifier + 23, // 11: flyteidl.core.SignalCondition.type:type_name -> flyteidl.core.LiteralType + 24, // 12: flyteidl.core.SleepCondition.duration:type_name -> google.protobuf.Duration + 6, // 13: flyteidl.core.GateNode.approve:type_name -> flyteidl.core.ApproveCondition + 7, // 14: flyteidl.core.GateNode.signal:type_name -> flyteidl.core.SignalCondition + 8, // 15: flyteidl.core.GateNode.sleep:type_name -> flyteidl.core.SleepCondition + 13, // 16: flyteidl.core.ArrayNode.node:type_name -> flyteidl.core.Node + 24, // 17: flyteidl.core.NodeMetadata.timeout:type_name -> google.protobuf.Duration + 25, // 18: flyteidl.core.NodeMetadata.retries:type_name -> flyteidl.core.RetryStrategy + 11, // 19: flyteidl.core.Node.metadata:type_name -> flyteidl.core.NodeMetadata + 26, // 20: flyteidl.core.Node.inputs:type_name -> flyteidl.core.Binding + 12, // 21: flyteidl.core.Node.output_aliases:type_name -> flyteidl.core.Alias + 4, // 22: flyteidl.core.Node.task_node:type_name -> flyteidl.core.TaskNode + 5, // 23: flyteidl.core.Node.workflow_node:type_name -> flyteidl.core.WorkflowNode + 3, // 24: flyteidl.core.Node.branch_node:type_name -> flyteidl.core.BranchNode + 9, // 25: flyteidl.core.Node.gate_node:type_name -> flyteidl.core.GateNode + 10, // 26: flyteidl.core.Node.array_node:type_name -> flyteidl.core.ArrayNode + 27, // 27: flyteidl.core.WorkflowMetadata.quality_of_service:type_name -> flyteidl.core.QualityOfService + 0, // 28: flyteidl.core.WorkflowMetadata.on_failure:type_name -> flyteidl.core.WorkflowMetadata.OnFailurePolicy + 19, // 29: flyteidl.core.WorkflowMetadata.tags:type_name -> flyteidl.core.WorkflowMetadata.TagsEntry + 22, // 30: flyteidl.core.WorkflowTemplate.id:type_name -> flyteidl.core.Identifier + 14, // 31: flyteidl.core.WorkflowTemplate.metadata:type_name -> flyteidl.core.WorkflowMetadata + 28, // 32: flyteidl.core.WorkflowTemplate.interface:type_name -> flyteidl.core.TypedInterface + 13, // 33: flyteidl.core.WorkflowTemplate.nodes:type_name -> flyteidl.core.Node + 26, // 34: flyteidl.core.WorkflowTemplate.outputs:type_name -> flyteidl.core.Binding + 13, // 35: flyteidl.core.WorkflowTemplate.failure_node:type_name -> flyteidl.core.Node + 15, // 36: flyteidl.core.WorkflowTemplate.metadata_defaults:type_name -> flyteidl.core.WorkflowMetadataDefaults + 29, // 37: flyteidl.core.TaskNodeOverrides.resources:type_name -> flyteidl.core.Resources + 30, // 38: flyteidl.core.TaskNodeOverrides.extended_resources:type_name -> flyteidl.core.ExtendedResources + 22, // 39: flyteidl.core.LaunchPlanTemplate.id:type_name -> flyteidl.core.Identifier + 28, // 40: flyteidl.core.LaunchPlanTemplate.interface:type_name -> flyteidl.core.TypedInterface + 31, // 41: flyteidl.core.LaunchPlanTemplate.fixed_inputs:type_name -> flyteidl.core.LiteralMap + 42, // [42:42] is the sub-list for method output_type + 42, // [42:42] is the sub-list for method input_type + 42, // [42:42] is the sub-list for extension type_name + 42, // [42:42] is the sub-list for extension extendee + 0, // [0:42] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_workflow_proto_init() } +func file_flyteidl_core_workflow_proto_init() { + if File_flyteidl_core_workflow_proto != nil { + return + } + file_flyteidl_core_condition_proto_init() + file_flyteidl_core_execution_proto_init() + file_flyteidl_core_identifier_proto_init() + file_flyteidl_core_interface_proto_init() + file_flyteidl_core_literals_proto_init() + file_flyteidl_core_tasks_proto_init() + file_flyteidl_core_types_proto_init() + file_flyteidl_core_security_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_workflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IfBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IfElseBlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BranchNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApproveCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SignalCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SleepCondition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GateNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArrayNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Alias); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Node); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowMetadataDefaults); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowTemplate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskNodeOverrides); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_core_workflow_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LaunchPlanTemplate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_core_workflow_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*IfElseBlock_ElseNode)(nil), + (*IfElseBlock_Error)(nil), + } + file_flyteidl_core_workflow_proto_msgTypes[3].OneofWrappers = []interface{}{ + (*TaskNode_ReferenceId)(nil), + } + file_flyteidl_core_workflow_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*WorkflowNode_LaunchplanRef)(nil), + (*WorkflowNode_SubWorkflowRef)(nil), + } + file_flyteidl_core_workflow_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*GateNode_Approve)(nil), + (*GateNode_Signal)(nil), + (*GateNode_Sleep)(nil), + } + file_flyteidl_core_workflow_proto_msgTypes[9].OneofWrappers = []interface{}{ + (*ArrayNode_MinSuccesses)(nil), + (*ArrayNode_MinSuccessRatio)(nil), + } + file_flyteidl_core_workflow_proto_msgTypes[10].OneofWrappers = []interface{}{ + (*NodeMetadata_Interruptible)(nil), + (*NodeMetadata_Cacheable)(nil), + (*NodeMetadata_CacheVersion)(nil), + (*NodeMetadata_CacheSerializable)(nil), + } + file_flyteidl_core_workflow_proto_msgTypes[12].OneofWrappers = []interface{}{ + (*Node_TaskNode)(nil), + (*Node_WorkflowNode)(nil), + (*Node_BranchNode)(nil), + (*Node_GateNode)(nil), + (*Node_ArrayNode)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_workflow_proto_rawDesc, + NumEnums: 1, + NumMessages: 19, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_workflow_proto_goTypes, + DependencyIndexes: file_flyteidl_core_workflow_proto_depIdxs, + EnumInfos: file_flyteidl_core_workflow_proto_enumTypes, + MessageInfos: file_flyteidl_core_workflow_proto_msgTypes, + }.Build() + File_flyteidl_core_workflow_proto = out.File + file_flyteidl_core_workflow_proto_rawDesc = nil + file_flyteidl_core_workflow_proto_goTypes = nil + file_flyteidl_core_workflow_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go new file mode 100644 index 0000000000..3f0a53d7b2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go @@ -0,0 +1,182 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/core/workflow_closure.proto + +package core + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines an enclosed package of workflow and tasks it references. +type WorkflowClosure struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // required. Workflow template. + Workflow *WorkflowTemplate `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"` + // optional. A collection of tasks referenced by the workflow. Only needed if the workflow + // references tasks. + Tasks []*TaskTemplate `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` +} + +func (x *WorkflowClosure) Reset() { + *x = WorkflowClosure{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_core_workflow_closure_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowClosure) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowClosure) ProtoMessage() {} + +func (x *WorkflowClosure) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_core_workflow_closure_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowClosure.ProtoReflect.Descriptor instead. +func (*WorkflowClosure) Descriptor() ([]byte, []int) { + return file_flyteidl_core_workflow_closure_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkflowClosure) GetWorkflow() *WorkflowTemplate { + if x != nil { + return x.Workflow + } + return nil +} + +func (x *WorkflowClosure) GetTasks() []*TaskTemplate { + if x != nil { + return x.Tasks + } + return nil +} + +var File_flyteidl_core_workflow_closure_proto protoreflect.FileDescriptor + +var file_flyteidl_core_workflow_closure_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, + 0x01, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, + 0x72, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x65, 0x6d, + 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, + 0x31, 0x0a, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x05, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x42, 0xba, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x43, 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0xa2, 0x02, 0x03, 0x46, + 0x43, 0x58, 0xaa, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x43, 0x6f, + 0x72, 0x65, 0xca, 0x02, 0x0d, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, + 0x72, 0x65, 0xe2, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x43, 0x6f, + 0x72, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x43, 0x6f, 0x72, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_core_workflow_closure_proto_rawDescOnce sync.Once + file_flyteidl_core_workflow_closure_proto_rawDescData = file_flyteidl_core_workflow_closure_proto_rawDesc +) + +func file_flyteidl_core_workflow_closure_proto_rawDescGZIP() []byte { + file_flyteidl_core_workflow_closure_proto_rawDescOnce.Do(func() { + file_flyteidl_core_workflow_closure_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_core_workflow_closure_proto_rawDescData) + }) + return file_flyteidl_core_workflow_closure_proto_rawDescData +} + +var file_flyteidl_core_workflow_closure_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_core_workflow_closure_proto_goTypes = []interface{}{ + (*WorkflowClosure)(nil), // 0: flyteidl.core.WorkflowClosure + (*WorkflowTemplate)(nil), // 1: flyteidl.core.WorkflowTemplate + (*TaskTemplate)(nil), // 2: flyteidl.core.TaskTemplate +} +var file_flyteidl_core_workflow_closure_proto_depIdxs = []int32{ + 1, // 0: flyteidl.core.WorkflowClosure.workflow:type_name -> flyteidl.core.WorkflowTemplate + 2, // 1: flyteidl.core.WorkflowClosure.tasks:type_name -> flyteidl.core.TaskTemplate + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_flyteidl_core_workflow_closure_proto_init() } +func file_flyteidl_core_workflow_closure_proto_init() { + if File_flyteidl_core_workflow_closure_proto != nil { + return + } + file_flyteidl_core_workflow_proto_init() + file_flyteidl_core_tasks_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_core_workflow_closure_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowClosure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_core_workflow_closure_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_core_workflow_closure_proto_goTypes, + DependencyIndexes: file_flyteidl_core_workflow_closure_proto_depIdxs, + MessageInfos: file_flyteidl_core_workflow_closure_proto_msgTypes, + }.Build() + File_flyteidl_core_workflow_closure_proto = out.File + file_flyteidl_core_workflow_closure_proto_rawDesc = nil + file_flyteidl_core_workflow_closure_proto_goTypes = nil + file_flyteidl_core_workflow_closure_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go new file mode 100644 index 0000000000..46e7727f35 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -0,0 +1,3524 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// as use-cases come up we can add more operators, ex: gte, like, not eq etc. +type SinglePropertyFilter_ComparisonOperator int32 + +const ( + SinglePropertyFilter_EQUALS SinglePropertyFilter_ComparisonOperator = 0 +) + +// Enum value maps for SinglePropertyFilter_ComparisonOperator. +var ( + SinglePropertyFilter_ComparisonOperator_name = map[int32]string{ + 0: "EQUALS", + } + SinglePropertyFilter_ComparisonOperator_value = map[string]int32{ + "EQUALS": 0, + } +) + +func (x SinglePropertyFilter_ComparisonOperator) Enum() *SinglePropertyFilter_ComparisonOperator { + p := new(SinglePropertyFilter_ComparisonOperator) + *p = x + return p +} + +func (x SinglePropertyFilter_ComparisonOperator) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SinglePropertyFilter_ComparisonOperator) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_datacatalog_datacatalog_proto_enumTypes[0].Descriptor() +} + +func (SinglePropertyFilter_ComparisonOperator) Type() protoreflect.EnumType { + return &file_flyteidl_datacatalog_datacatalog_proto_enumTypes[0] +} + +func (x SinglePropertyFilter_ComparisonOperator) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SinglePropertyFilter_ComparisonOperator.Descriptor instead. +func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{30, 0} +} + +type PaginationOptions_SortOrder int32 + +const ( + PaginationOptions_DESCENDING PaginationOptions_SortOrder = 0 + PaginationOptions_ASCENDING PaginationOptions_SortOrder = 1 +) + +// Enum value maps for PaginationOptions_SortOrder. +var ( + PaginationOptions_SortOrder_name = map[int32]string{ + 0: "DESCENDING", + 1: "ASCENDING", + } + PaginationOptions_SortOrder_value = map[string]int32{ + "DESCENDING": 0, + "ASCENDING": 1, + } +) + +func (x PaginationOptions_SortOrder) Enum() *PaginationOptions_SortOrder { + p := new(PaginationOptions_SortOrder) + *p = x + return p +} + +func (x PaginationOptions_SortOrder) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PaginationOptions_SortOrder) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_datacatalog_datacatalog_proto_enumTypes[1].Descriptor() +} + +func (PaginationOptions_SortOrder) Type() protoreflect.EnumType { + return &file_flyteidl_datacatalog_datacatalog_proto_enumTypes[1] +} + +func (x PaginationOptions_SortOrder) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PaginationOptions_SortOrder.Descriptor instead. +func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{36, 0} +} + +type PaginationOptions_SortKey int32 + +const ( + PaginationOptions_CREATION_TIME PaginationOptions_SortKey = 0 +) + +// Enum value maps for PaginationOptions_SortKey. +var ( + PaginationOptions_SortKey_name = map[int32]string{ + 0: "CREATION_TIME", + } + PaginationOptions_SortKey_value = map[string]int32{ + "CREATION_TIME": 0, + } +) + +func (x PaginationOptions_SortKey) Enum() *PaginationOptions_SortKey { + p := new(PaginationOptions_SortKey) + *p = x + return p +} + +func (x PaginationOptions_SortKey) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PaginationOptions_SortKey) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_datacatalog_datacatalog_proto_enumTypes[2].Descriptor() +} + +func (PaginationOptions_SortKey) Type() protoreflect.EnumType { + return &file_flyteidl_datacatalog_datacatalog_proto_enumTypes[2] +} + +func (x PaginationOptions_SortKey) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PaginationOptions_SortKey.Descriptor instead. +func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{36, 1} +} + +// Request message for creating a Dataset. +type CreateDatasetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` +} + +func (x *CreateDatasetRequest) Reset() { + *x = CreateDatasetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDatasetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDatasetRequest) ProtoMessage() {} + +func (x *CreateDatasetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDatasetRequest.ProtoReflect.Descriptor instead. +func (*CreateDatasetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateDatasetRequest) GetDataset() *Dataset { + if x != nil { + return x.Dataset + } + return nil +} + +// Response message for creating a Dataset +type CreateDatasetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CreateDatasetResponse) Reset() { + *x = CreateDatasetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDatasetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDatasetResponse) ProtoMessage() {} + +func (x *CreateDatasetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDatasetResponse.ProtoReflect.Descriptor instead. +func (*CreateDatasetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{1} +} + +// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier +// which is a combination of several fields. +type GetDatasetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` +} + +func (x *GetDatasetRequest) Reset() { + *x = GetDatasetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDatasetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDatasetRequest) ProtoMessage() {} + +func (x *GetDatasetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDatasetRequest.ProtoReflect.Descriptor instead. +func (*GetDatasetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{2} +} + +func (x *GetDatasetRequest) GetDataset() *DatasetID { + if x != nil { + return x.Dataset + } + return nil +} + +// Response message for retrieving a Dataset. The response will include the metadata for the +// Dataset. +type GetDatasetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` +} + +func (x *GetDatasetResponse) Reset() { + *x = GetDatasetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDatasetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDatasetResponse) ProtoMessage() {} + +func (x *GetDatasetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDatasetResponse.ProtoReflect.Descriptor instead. +func (*GetDatasetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{3} +} + +func (x *GetDatasetResponse) GetDataset() *Dataset { + if x != nil { + return x.Dataset + } + return nil +} + +// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that +// can be one of artifact_id or tag. The result returned will include the artifact data and metadata +// associated with the artifact. +type GetArtifactRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Types that are assignable to QueryHandle: + // + // *GetArtifactRequest_ArtifactId + // *GetArtifactRequest_TagName + QueryHandle isGetArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` +} + +func (x *GetArtifactRequest) Reset() { + *x = GetArtifactRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetArtifactRequest) ProtoMessage() {} + +func (x *GetArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetArtifactRequest.ProtoReflect.Descriptor instead. +func (*GetArtifactRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{4} +} + +func (x *GetArtifactRequest) GetDataset() *DatasetID { + if x != nil { + return x.Dataset + } + return nil +} + +func (m *GetArtifactRequest) GetQueryHandle() isGetArtifactRequest_QueryHandle { + if m != nil { + return m.QueryHandle + } + return nil +} + +func (x *GetArtifactRequest) GetArtifactId() string { + if x, ok := x.GetQueryHandle().(*GetArtifactRequest_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +func (x *GetArtifactRequest) GetTagName() string { + if x, ok := x.GetQueryHandle().(*GetArtifactRequest_TagName); ok { + return x.TagName + } + return "" +} + +type isGetArtifactRequest_QueryHandle interface { + isGetArtifactRequest_QueryHandle() +} + +type GetArtifactRequest_ArtifactId struct { + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type GetArtifactRequest_TagName struct { + TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*GetArtifactRequest_ArtifactId) isGetArtifactRequest_QueryHandle() {} + +func (*GetArtifactRequest_TagName) isGetArtifactRequest_QueryHandle() {} + +// Response message for retrieving an Artifact. The result returned will include the artifact data +// and metadata associated with the artifact. +type GetArtifactResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` +} + +func (x *GetArtifactResponse) Reset() { + *x = GetArtifactResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetArtifactResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetArtifactResponse) ProtoMessage() {} + +func (x *GetArtifactResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetArtifactResponse.ProtoReflect.Descriptor instead. +func (*GetArtifactResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{5} +} + +func (x *GetArtifactResponse) GetArtifact() *Artifact { + if x != nil { + return x.Artifact + } + return nil +} + +// Request message for creating an Artifact and its associated artifact Data. +type CreateArtifactRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` +} + +func (x *CreateArtifactRequest) Reset() { + *x = CreateArtifactRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateArtifactRequest) ProtoMessage() {} + +func (x *CreateArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateArtifactRequest.ProtoReflect.Descriptor instead. +func (*CreateArtifactRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{6} +} + +func (x *CreateArtifactRequest) GetArtifact() *Artifact { + if x != nil { + return x.Artifact + } + return nil +} + +// Response message for creating an Artifact. +type CreateArtifactResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CreateArtifactResponse) Reset() { + *x = CreateArtifactResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateArtifactResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateArtifactResponse) ProtoMessage() {} + +func (x *CreateArtifactResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateArtifactResponse.ProtoReflect.Descriptor instead. +func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{7} +} + +// Request message for tagging an Artifact. +type AddTagRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` +} + +func (x *AddTagRequest) Reset() { + *x = AddTagRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddTagRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddTagRequest) ProtoMessage() {} + +func (x *AddTagRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddTagRequest.ProtoReflect.Descriptor instead. +func (*AddTagRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{8} +} + +func (x *AddTagRequest) GetTag() *Tag { + if x != nil { + return x.Tag + } + return nil +} + +// Response message for tagging an Artifact. +type AddTagResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *AddTagResponse) Reset() { + *x = AddTagResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddTagResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddTagResponse) ProtoMessage() {} + +func (x *AddTagResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddTagResponse.ProtoReflect.Descriptor instead. +func (*AddTagResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{9} +} + +// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. +type ListArtifactsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Use a datasetID for which you want to retrieve the artifacts + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Apply the filter expression to this query + Filter *FilterExpression `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // Pagination options to get a page of artifacts + Pagination *PaginationOptions `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListArtifactsRequest) Reset() { + *x = ListArtifactsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListArtifactsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListArtifactsRequest) ProtoMessage() {} + +func (x *ListArtifactsRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListArtifactsRequest.ProtoReflect.Descriptor instead. +func (*ListArtifactsRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{10} +} + +func (x *ListArtifactsRequest) GetDataset() *DatasetID { + if x != nil { + return x.Dataset + } + return nil +} + +func (x *ListArtifactsRequest) GetFilter() *FilterExpression { + if x != nil { + return x.Filter + } + return nil +} + +func (x *ListArtifactsRequest) GetPagination() *PaginationOptions { + if x != nil { + return x.Pagination + } + return nil +} + +// Response to list artifacts +type ListArtifactsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The list of artifacts + Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` + // Token to use to request the next page, pass this into the next requests PaginationOptions + NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` +} + +func (x *ListArtifactsResponse) Reset() { + *x = ListArtifactsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListArtifactsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListArtifactsResponse) ProtoMessage() {} + +func (x *ListArtifactsResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListArtifactsResponse.ProtoReflect.Descriptor instead. +func (*ListArtifactsResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{11} +} + +func (x *ListArtifactsResponse) GetArtifacts() []*Artifact { + if x != nil { + return x.Artifacts + } + return nil +} + +func (x *ListArtifactsResponse) GetNextToken() string { + if x != nil { + return x.NextToken + } + return "" +} + +// List the datasets for the given query +type ListDatasetsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Apply the filter expression to this query + Filter *FilterExpression `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` + // Pagination options to get a page of datasets + Pagination *PaginationOptions `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +} + +func (x *ListDatasetsRequest) Reset() { + *x = ListDatasetsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListDatasetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDatasetsRequest) ProtoMessage() {} + +func (x *ListDatasetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListDatasetsRequest.ProtoReflect.Descriptor instead. +func (*ListDatasetsRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{12} +} + +func (x *ListDatasetsRequest) GetFilter() *FilterExpression { + if x != nil { + return x.Filter + } + return nil +} + +func (x *ListDatasetsRequest) GetPagination() *PaginationOptions { + if x != nil { + return x.Pagination + } + return nil +} + +// List the datasets response with token for next pagination +type ListDatasetsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The list of datasets + Datasets []*Dataset `protobuf:"bytes,1,rep,name=datasets,proto3" json:"datasets,omitempty"` + // Token to use to request the next page, pass this into the next requests PaginationOptions + NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` +} + +func (x *ListDatasetsResponse) Reset() { + *x = ListDatasetsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListDatasetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListDatasetsResponse) ProtoMessage() {} + +func (x *ListDatasetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListDatasetsResponse.ProtoReflect.Descriptor instead. +func (*ListDatasetsResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{13} +} + +func (x *ListDatasetsResponse) GetDatasets() []*Dataset { + if x != nil { + return x.Datasets + } + return nil +} + +func (x *ListDatasetsResponse) GetNextToken() string { + if x != nil { + return x.NextToken + } + return "" +} + +// Request message for updating an Artifact and overwriting its associated ArtifactData. +type UpdateArtifactRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of dataset the artifact is associated with + Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` + // Either ID of artifact or name of tag to retrieve existing artifact from + // + // Types that are assignable to QueryHandle: + // + // *UpdateArtifactRequest_ArtifactId + // *UpdateArtifactRequest_TagName + QueryHandle isUpdateArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` + // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + // ArtifactData entries will be removed from the underlying blob storage and database. + Data []*ArtifactData `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` + // Update execution metadata(including execution domain, name, node, project data) when overwriting cache + Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *UpdateArtifactRequest) Reset() { + *x = UpdateArtifactRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateArtifactRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateArtifactRequest) ProtoMessage() {} + +func (x *UpdateArtifactRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateArtifactRequest.ProtoReflect.Descriptor instead. +func (*UpdateArtifactRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{14} +} + +func (x *UpdateArtifactRequest) GetDataset() *DatasetID { + if x != nil { + return x.Dataset + } + return nil +} + +func (m *UpdateArtifactRequest) GetQueryHandle() isUpdateArtifactRequest_QueryHandle { + if m != nil { + return m.QueryHandle + } + return nil +} + +func (x *UpdateArtifactRequest) GetArtifactId() string { + if x, ok := x.GetQueryHandle().(*UpdateArtifactRequest_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +func (x *UpdateArtifactRequest) GetTagName() string { + if x, ok := x.GetQueryHandle().(*UpdateArtifactRequest_TagName); ok { + return x.TagName + } + return "" +} + +func (x *UpdateArtifactRequest) GetData() []*ArtifactData { + if x != nil { + return x.Data + } + return nil +} + +func (x *UpdateArtifactRequest) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +type isUpdateArtifactRequest_QueryHandle interface { + isUpdateArtifactRequest_QueryHandle() +} + +type UpdateArtifactRequest_ArtifactId struct { + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +type UpdateArtifactRequest_TagName struct { + TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*UpdateArtifactRequest_ArtifactId) isUpdateArtifactRequest_QueryHandle() {} + +func (*UpdateArtifactRequest_TagName) isUpdateArtifactRequest_QueryHandle() {} + +// Response message for updating an Artifact. +type UpdateArtifactResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The unique ID of the artifact updated + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` +} + +func (x *UpdateArtifactResponse) Reset() { + *x = UpdateArtifactResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateArtifactResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateArtifactResponse) ProtoMessage() {} + +func (x *UpdateArtifactResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateArtifactResponse.ProtoReflect.Descriptor instead. +func (*UpdateArtifactResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{15} +} + +func (x *UpdateArtifactResponse) GetArtifactId() string { + if x != nil { + return x.ArtifactId + } + return "" +} + +// ReservationID message that is composed of several string fields. +type ReservationID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The unique ID for the reserved dataset + DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` + // The specific artifact tag for the reservation + TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` +} + +func (x *ReservationID) Reset() { + *x = ReservationID{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReservationID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReservationID) ProtoMessage() {} + +func (x *ReservationID) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReservationID.ProtoReflect.Descriptor instead. +func (*ReservationID) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{16} +} + +func (x *ReservationID) GetDatasetId() *DatasetID { + if x != nil { + return x.DatasetId + } + return nil +} + +func (x *ReservationID) GetTagName() string { + if x != nil { + return x.TagName + } + return "" +} + +// Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. +type GetOrExtendReservationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The unique ID for the reservation + ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` + // The unique ID of the owner for the reservation + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + // Requested reservation extension heartbeat interval + HeartbeatInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` +} + +func (x *GetOrExtendReservationRequest) Reset() { + *x = GetOrExtendReservationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOrExtendReservationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrExtendReservationRequest) ProtoMessage() {} + +func (x *GetOrExtendReservationRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetOrExtendReservationRequest.ProtoReflect.Descriptor instead. +func (*GetOrExtendReservationRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{17} +} + +func (x *GetOrExtendReservationRequest) GetReservationId() *ReservationID { + if x != nil { + return x.ReservationId + } + return nil +} + +func (x *GetOrExtendReservationRequest) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +func (x *GetOrExtendReservationRequest) GetHeartbeatInterval() *durationpb.Duration { + if x != nil { + return x.HeartbeatInterval + } + return nil +} + +// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. +type Reservation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The unique ID for the reservation + ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` + // The unique ID of the owner for the reservation + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` + // Recommended heartbeat interval to extend reservation + HeartbeatInterval *durationpb.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + // Expiration timestamp of this reservation + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + // Free-form metadata associated with the artifact + Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *Reservation) Reset() { + *x = Reservation{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Reservation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Reservation) ProtoMessage() {} + +func (x *Reservation) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Reservation.ProtoReflect.Descriptor instead. +func (*Reservation) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{18} +} + +func (x *Reservation) GetReservationId() *ReservationID { + if x != nil { + return x.ReservationId + } + return nil +} + +func (x *Reservation) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +func (x *Reservation) GetHeartbeatInterval() *durationpb.Duration { + if x != nil { + return x.HeartbeatInterval + } + return nil +} + +func (x *Reservation) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +func (x *Reservation) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +// Response including either a newly minted reservation or the existing reservation +type GetOrExtendReservationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The reservation to be acquired or extended + Reservation *Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty"` +} + +func (x *GetOrExtendReservationResponse) Reset() { + *x = GetOrExtendReservationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetOrExtendReservationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetOrExtendReservationResponse) ProtoMessage() {} + +func (x *GetOrExtendReservationResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetOrExtendReservationResponse.ProtoReflect.Descriptor instead. +func (*GetOrExtendReservationResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{19} +} + +func (x *GetOrExtendReservationResponse) GetReservation() *Reservation { + if x != nil { + return x.Reservation + } + return nil +} + +// Request to release reservation +type ReleaseReservationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The unique ID for the reservation + ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` + // The unique ID of the owner for the reservation + OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` +} + +func (x *ReleaseReservationRequest) Reset() { + *x = ReleaseReservationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReleaseReservationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReleaseReservationRequest) ProtoMessage() {} + +func (x *ReleaseReservationRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReleaseReservationRequest.ProtoReflect.Descriptor instead. +func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{20} +} + +func (x *ReleaseReservationRequest) GetReservationId() *ReservationID { + if x != nil { + return x.ReservationId + } + return nil +} + +func (x *ReleaseReservationRequest) GetOwnerId() string { + if x != nil { + return x.OwnerId + } + return "" +} + +// Response to release reservation +type ReleaseReservationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ReleaseReservationResponse) Reset() { + *x = ReleaseReservationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReleaseReservationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReleaseReservationResponse) ProtoMessage() {} + +func (x *ReleaseReservationResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ReleaseReservationResponse.ProtoReflect.Descriptor instead. +func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{21} +} + +// Dataset message. It is uniquely identified by DatasetID. +type Dataset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *DatasetID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + PartitionKeys []string `protobuf:"bytes,3,rep,name=partitionKeys,proto3" json:"partitionKeys,omitempty"` +} + +func (x *Dataset) Reset() { + *x = Dataset{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Dataset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Dataset) ProtoMessage() {} + +func (x *Dataset) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Dataset.ProtoReflect.Descriptor instead. +func (*Dataset) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{22} +} + +func (x *Dataset) GetId() *DatasetID { + if x != nil { + return x.Id + } + return nil +} + +func (x *Dataset) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Dataset) GetPartitionKeys() []string { + if x != nil { + return x.PartitionKeys + } + return nil +} + +// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair +type Partition struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *Partition) Reset() { + *x = Partition{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Partition) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Partition) ProtoMessage() {} + +func (x *Partition) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Partition.ProtoReflect.Descriptor instead. +func (*Partition) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{23} +} + +func (x *Partition) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *Partition) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// DatasetID message that is composed of several string fields. +type DatasetID struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The name of the project + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The name of the dataset + Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` // The domain (eg. environment) + Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` // Version of the data schema + UUID string `protobuf:"bytes,5,opt,name=UUID,proto3" json:"UUID,omitempty"` // UUID for the dataset (if set the above fields are optional) + // Optional, org key applied to the resource. + Org string `protobuf:"bytes,6,opt,name=org,proto3" json:"org,omitempty"` +} + +func (x *DatasetID) Reset() { + *x = DatasetID{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DatasetID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DatasetID) ProtoMessage() {} + +func (x *DatasetID) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DatasetID.ProtoReflect.Descriptor instead. +func (*DatasetID) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{24} +} + +func (x *DatasetID) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *DatasetID) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *DatasetID) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *DatasetID) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *DatasetID) GetUUID() string { + if x != nil { + return x.UUID + } + return "" +} + +func (x *DatasetID) GetOrg() string { + if x != nil { + return x.Org + } + return "" +} + +// Artifact message. It is composed of several string fields. +type Artifact struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The unique ID of the artifact + Dataset *DatasetID `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"` // The Dataset that the artifact belongs to + Data []*ArtifactData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // A list of data that is associated with the artifact + Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // Free-form metadata associated with the artifact + Partitions []*Partition `protobuf:"bytes,5,rep,name=partitions,proto3" json:"partitions,omitempty"` + Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // creation timestamp of artifact, autogenerated by service +} + +func (x *Artifact) Reset() { + *x = Artifact{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Artifact) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Artifact) ProtoMessage() {} + +func (x *Artifact) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Artifact.ProtoReflect.Descriptor instead. +func (*Artifact) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{25} +} + +func (x *Artifact) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Artifact) GetDataset() *DatasetID { + if x != nil { + return x.Dataset + } + return nil +} + +func (x *Artifact) GetData() []*ArtifactData { + if x != nil { + return x.Data + } + return nil +} + +func (x *Artifact) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Artifact) GetPartitions() []*Partition { + if x != nil { + return x.Partitions + } + return nil +} + +func (x *Artifact) GetTags() []*Tag { + if x != nil { + return x.Tags + } + return nil +} + +func (x *Artifact) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +// ArtifactData that belongs to an artifact +type ArtifactData struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *ArtifactData) Reset() { + *x = ArtifactData{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactData) ProtoMessage() {} + +func (x *ArtifactData) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactData.ProtoReflect.Descriptor instead. +func (*ArtifactData) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{26} +} + +func (x *ArtifactData) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ArtifactData) GetValue() *core.Literal { + if x != nil { + return x.Value + } + return nil +} + +// Tag message that is unique to a Dataset. It is associated to a single artifact and +// can be retrieved by name later. +type Tag struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of tag + ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` // The tagged artifact + Dataset *DatasetID `protobuf:"bytes,3,opt,name=dataset,proto3" json:"dataset,omitempty"` // The Dataset that this tag belongs to +} + +func (x *Tag) Reset() { + *x = Tag{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Tag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tag) ProtoMessage() {} + +func (x *Tag) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Tag.ProtoReflect.Descriptor instead. +func (*Tag) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{27} +} + +func (x *Tag) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Tag) GetArtifactId() string { + if x != nil { + return x.ArtifactId + } + return "" +} + +func (x *Tag) GetDataset() *DatasetID { + if x != nil { + return x.Dataset + } + return nil +} + +// Metadata representation for artifacts and datasets +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + KeyMap map[string]string `protobuf:"bytes,1,rep,name=key_map,json=keyMap,proto3" json:"key_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // key map is a dictionary of key/val strings that represent metadata +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{28} +} + +func (x *Metadata) GetKeyMap() map[string]string { + if x != nil { + return x.KeyMap + } + return nil +} + +// Filter expression that is composed of a combination of single filters +type FilterExpression struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Filters []*SinglePropertyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` +} + +func (x *FilterExpression) Reset() { + *x = FilterExpression{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FilterExpression) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FilterExpression) ProtoMessage() {} + +func (x *FilterExpression) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FilterExpression.ProtoReflect.Descriptor instead. +func (*FilterExpression) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{29} +} + +func (x *FilterExpression) GetFilters() []*SinglePropertyFilter { + if x != nil { + return x.Filters + } + return nil +} + +// A single property to filter on. +type SinglePropertyFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to PropertyFilter: + // + // *SinglePropertyFilter_TagFilter + // *SinglePropertyFilter_PartitionFilter + // *SinglePropertyFilter_ArtifactFilter + // *SinglePropertyFilter_DatasetFilter + PropertyFilter isSinglePropertyFilter_PropertyFilter `protobuf_oneof:"property_filter"` + Operator SinglePropertyFilter_ComparisonOperator `protobuf:"varint,10,opt,name=operator,proto3,enum=datacatalog.SinglePropertyFilter_ComparisonOperator" json:"operator,omitempty"` // field 10 in case we add more entities to query +} + +func (x *SinglePropertyFilter) Reset() { + *x = SinglePropertyFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SinglePropertyFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SinglePropertyFilter) ProtoMessage() {} + +func (x *SinglePropertyFilter) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SinglePropertyFilter.ProtoReflect.Descriptor instead. +func (*SinglePropertyFilter) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{30} +} + +func (m *SinglePropertyFilter) GetPropertyFilter() isSinglePropertyFilter_PropertyFilter { + if m != nil { + return m.PropertyFilter + } + return nil +} + +func (x *SinglePropertyFilter) GetTagFilter() *TagPropertyFilter { + if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_TagFilter); ok { + return x.TagFilter + } + return nil +} + +func (x *SinglePropertyFilter) GetPartitionFilter() *PartitionPropertyFilter { + if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_PartitionFilter); ok { + return x.PartitionFilter + } + return nil +} + +func (x *SinglePropertyFilter) GetArtifactFilter() *ArtifactPropertyFilter { + if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_ArtifactFilter); ok { + return x.ArtifactFilter + } + return nil +} + +func (x *SinglePropertyFilter) GetDatasetFilter() *DatasetPropertyFilter { + if x, ok := x.GetPropertyFilter().(*SinglePropertyFilter_DatasetFilter); ok { + return x.DatasetFilter + } + return nil +} + +func (x *SinglePropertyFilter) GetOperator() SinglePropertyFilter_ComparisonOperator { + if x != nil { + return x.Operator + } + return SinglePropertyFilter_EQUALS +} + +type isSinglePropertyFilter_PropertyFilter interface { + isSinglePropertyFilter_PropertyFilter() +} + +type SinglePropertyFilter_TagFilter struct { + TagFilter *TagPropertyFilter `protobuf:"bytes,1,opt,name=tag_filter,json=tagFilter,proto3,oneof"` +} + +type SinglePropertyFilter_PartitionFilter struct { + PartitionFilter *PartitionPropertyFilter `protobuf:"bytes,2,opt,name=partition_filter,json=partitionFilter,proto3,oneof"` +} + +type SinglePropertyFilter_ArtifactFilter struct { + ArtifactFilter *ArtifactPropertyFilter `protobuf:"bytes,3,opt,name=artifact_filter,json=artifactFilter,proto3,oneof"` +} + +type SinglePropertyFilter_DatasetFilter struct { + DatasetFilter *DatasetPropertyFilter `protobuf:"bytes,4,opt,name=dataset_filter,json=datasetFilter,proto3,oneof"` +} + +func (*SinglePropertyFilter_TagFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_PartitionFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_ArtifactFilter) isSinglePropertyFilter_PropertyFilter() {} + +func (*SinglePropertyFilter_DatasetFilter) isSinglePropertyFilter_PropertyFilter() {} + +// Artifact properties we can filter by +type ArtifactPropertyFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // oneof because we can add more properties in the future + // + // Types that are assignable to Property: + // + // *ArtifactPropertyFilter_ArtifactId + Property isArtifactPropertyFilter_Property `protobuf_oneof:"property"` +} + +func (x *ArtifactPropertyFilter) Reset() { + *x = ArtifactPropertyFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArtifactPropertyFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArtifactPropertyFilter) ProtoMessage() {} + +func (x *ArtifactPropertyFilter) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArtifactPropertyFilter.ProtoReflect.Descriptor instead. +func (*ArtifactPropertyFilter) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{31} +} + +func (m *ArtifactPropertyFilter) GetProperty() isArtifactPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (x *ArtifactPropertyFilter) GetArtifactId() string { + if x, ok := x.GetProperty().(*ArtifactPropertyFilter_ArtifactId); ok { + return x.ArtifactId + } + return "" +} + +type isArtifactPropertyFilter_Property interface { + isArtifactPropertyFilter_Property() +} + +type ArtifactPropertyFilter_ArtifactId struct { + ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` +} + +func (*ArtifactPropertyFilter_ArtifactId) isArtifactPropertyFilter_Property() {} + +// Tag properties we can filter by +type TagPropertyFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Property: + // + // *TagPropertyFilter_TagName + Property isTagPropertyFilter_Property `protobuf_oneof:"property"` +} + +func (x *TagPropertyFilter) Reset() { + *x = TagPropertyFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TagPropertyFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TagPropertyFilter) ProtoMessage() {} + +func (x *TagPropertyFilter) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TagPropertyFilter.ProtoReflect.Descriptor instead. +func (*TagPropertyFilter) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{32} +} + +func (m *TagPropertyFilter) GetProperty() isTagPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (x *TagPropertyFilter) GetTagName() string { + if x, ok := x.GetProperty().(*TagPropertyFilter_TagName); ok { + return x.TagName + } + return "" +} + +type isTagPropertyFilter_Property interface { + isTagPropertyFilter_Property() +} + +type TagPropertyFilter_TagName struct { + TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3,oneof"` +} + +func (*TagPropertyFilter_TagName) isTagPropertyFilter_Property() {} + +// Partition properties we can filter by +type PartitionPropertyFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Property: + // + // *PartitionPropertyFilter_KeyVal + Property isPartitionPropertyFilter_Property `protobuf_oneof:"property"` +} + +func (x *PartitionPropertyFilter) Reset() { + *x = PartitionPropertyFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PartitionPropertyFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PartitionPropertyFilter) ProtoMessage() {} + +func (x *PartitionPropertyFilter) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PartitionPropertyFilter.ProtoReflect.Descriptor instead. +func (*PartitionPropertyFilter) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{33} +} + +func (m *PartitionPropertyFilter) GetProperty() isPartitionPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (x *PartitionPropertyFilter) GetKeyVal() *KeyValuePair { + if x, ok := x.GetProperty().(*PartitionPropertyFilter_KeyVal); ok { + return x.KeyVal + } + return nil +} + +type isPartitionPropertyFilter_Property interface { + isPartitionPropertyFilter_Property() +} + +type PartitionPropertyFilter_KeyVal struct { + KeyVal *KeyValuePair `protobuf:"bytes,1,opt,name=key_val,json=keyVal,proto3,oneof"` +} + +func (*PartitionPropertyFilter_KeyVal) isPartitionPropertyFilter_Property() {} + +type KeyValuePair struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *KeyValuePair) Reset() { + *x = KeyValuePair{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KeyValuePair) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KeyValuePair) ProtoMessage() {} + +func (x *KeyValuePair) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KeyValuePair.ProtoReflect.Descriptor instead. +func (*KeyValuePair) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{34} +} + +func (x *KeyValuePair) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *KeyValuePair) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +// Dataset properties we can filter by +type DatasetPropertyFilter struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Property: + // + // *DatasetPropertyFilter_Project + // *DatasetPropertyFilter_Name + // *DatasetPropertyFilter_Domain + // *DatasetPropertyFilter_Version + // *DatasetPropertyFilter_Org + Property isDatasetPropertyFilter_Property `protobuf_oneof:"property"` +} + +func (x *DatasetPropertyFilter) Reset() { + *x = DatasetPropertyFilter{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DatasetPropertyFilter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DatasetPropertyFilter) ProtoMessage() {} + +func (x *DatasetPropertyFilter) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DatasetPropertyFilter.ProtoReflect.Descriptor instead. +func (*DatasetPropertyFilter) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{35} +} + +func (m *DatasetPropertyFilter) GetProperty() isDatasetPropertyFilter_Property { + if m != nil { + return m.Property + } + return nil +} + +func (x *DatasetPropertyFilter) GetProject() string { + if x, ok := x.GetProperty().(*DatasetPropertyFilter_Project); ok { + return x.Project + } + return "" +} + +func (x *DatasetPropertyFilter) GetName() string { + if x, ok := x.GetProperty().(*DatasetPropertyFilter_Name); ok { + return x.Name + } + return "" +} + +func (x *DatasetPropertyFilter) GetDomain() string { + if x, ok := x.GetProperty().(*DatasetPropertyFilter_Domain); ok { + return x.Domain + } + return "" +} + +func (x *DatasetPropertyFilter) GetVersion() string { + if x, ok := x.GetProperty().(*DatasetPropertyFilter_Version); ok { + return x.Version + } + return "" +} + +func (x *DatasetPropertyFilter) GetOrg() string { + if x, ok := x.GetProperty().(*DatasetPropertyFilter_Org); ok { + return x.Org + } + return "" +} + +type isDatasetPropertyFilter_Property interface { + isDatasetPropertyFilter_Property() +} + +type DatasetPropertyFilter_Project struct { + Project string `protobuf:"bytes,1,opt,name=project,proto3,oneof"` +} + +type DatasetPropertyFilter_Name struct { + Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"` +} + +type DatasetPropertyFilter_Domain struct { + Domain string `protobuf:"bytes,3,opt,name=domain,proto3,oneof"` +} + +type DatasetPropertyFilter_Version struct { + Version string `protobuf:"bytes,4,opt,name=version,proto3,oneof"` +} + +type DatasetPropertyFilter_Org struct { + // Optional, org key applied to the dataset. + Org string `protobuf:"bytes,5,opt,name=org,proto3,oneof"` +} + +func (*DatasetPropertyFilter_Project) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Name) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Domain) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Version) isDatasetPropertyFilter_Property() {} + +func (*DatasetPropertyFilter_Org) isDatasetPropertyFilter_Property() {} + +// Pagination options for making list requests +type PaginationOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the max number of results to return + Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` + // the token to pass to fetch the next page + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + // the property that we want to sort the results by + SortKey PaginationOptions_SortKey `protobuf:"varint,3,opt,name=sortKey,proto3,enum=datacatalog.PaginationOptions_SortKey" json:"sortKey,omitempty"` + // the sort order of the results + SortOrder PaginationOptions_SortOrder `protobuf:"varint,4,opt,name=sortOrder,proto3,enum=datacatalog.PaginationOptions_SortOrder" json:"sortOrder,omitempty"` +} + +func (x *PaginationOptions) Reset() { + *x = PaginationOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PaginationOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PaginationOptions) ProtoMessage() {} + +func (x *PaginationOptions) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_datacatalog_datacatalog_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PaginationOptions.ProtoReflect.Descriptor instead. +func (*PaginationOptions) Descriptor() ([]byte, []int) { + return file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP(), []int{36} +} + +func (x *PaginationOptions) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *PaginationOptions) GetToken() string { + if x != nil { + return x.Token + } + return "" +} + +func (x *PaginationOptions) GetSortKey() PaginationOptions_SortKey { + if x != nil { + return x.SortKey + } + return PaginationOptions_CREATION_TIME +} + +func (x *PaginationOptions) GetSortOrder() PaginationOptions_SortOrder { + if x != nil { + return x.SortOrder + } + return PaginationOptions_DESCENDING +} + +var File_flyteidl_datacatalog_datacatalog_proto protoreflect.FileDescriptor + +var file_flyteidl_datacatalog_datacatalog_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x07, + 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x17, 0x0a, 0x15, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x44, 0x0a, 0x12, + 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, + 0x65, 0x74, 0x22, 0x96, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, 0x74, + 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, + 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0b, 0x61, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, + 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x48, 0x0a, 0x13, 0x47, + 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x08, 0x61, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x22, 0x4a, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, + 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x0a, 0x0d, 0x41, + 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x03, + 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, + 0x22, 0x10, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xbf, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, + 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, + 0x65, 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x35, 0x0a, + 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3e, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6b, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, + 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x22, 0x8c, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x12, 0x3e, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x67, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, + 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, + 0x78, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xfb, 0x01, 0x0a, 0x15, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, + 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0e, 0x0a, 0x0c, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x39, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, + 0x49, 0x64, 0x22, 0x61, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x44, 0x12, 0x35, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, + 0x09, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x61, + 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x61, + 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x52, 0x0d, 0x72, 0x65, 0x73, + 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, + 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, + 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, + 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, + 0xa3, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x44, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x12, 0x48, 0x0a, + 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x76, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, + 0x41, 0x74, 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5c, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, + 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x19, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x41, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x44, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x22, 0x1c, + 0x0a, 0x1a, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8a, 0x01, 0x0a, + 0x07, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x26, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, + 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x4b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x33, 0x0a, 0x09, 0x50, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x91, + 0x01, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, + 0x55, 0x55, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x55, 0x49, 0x44, + 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, + 0x72, 0x67, 0x22, 0xc7, 0x02, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x30, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x12, 0x31, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, + 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x64, 0x61, 0x74, 0x61, + 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x74, 0x61, 0x67, + 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x50, 0x0a, 0x0c, + 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x6c, + 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x49, 0x44, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x22, 0x81, 0x01, 0x0a, + 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x07, 0x6b, 0x65, 0x79, + 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6b, + 0x65, 0x79, 0x4d, 0x61, 0x70, 0x1a, 0x39, 0x0a, 0x0b, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x70, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x22, 0x4f, 0x0a, 0x10, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x07, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x73, 0x22, 0xce, 0x03, 0x0a, 0x14, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x3f, 0x0a, 0x0a, 0x74, 0x61, + 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x54, 0x61, 0x67, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, + 0x52, 0x09, 0x74, 0x61, 0x67, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x10, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, + 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4e, + 0x0a, 0x0f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x50, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0e, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4b, + 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x50, 0x0a, 0x08, 0x6f, + 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, + 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x53, 0x69, 0x6e, 0x67, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x20, 0x0a, + 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x72, 0x69, 0x73, 0x6f, 0x6e, 0x4f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x00, 0x42, + 0x11, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x22, 0x47, 0x0a, 0x16, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x50, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0b, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x42, + 0x0a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x3c, 0x0a, 0x11, 0x54, + 0x61, 0x67, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x12, 0x1b, 0x0a, 0x08, 0x74, 0x61, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x74, 0x61, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x0a, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x5b, 0x0a, 0x17, 0x50, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, + 0x48, 0x00, 0x52, 0x06, 0x6b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x22, 0x36, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9f, + 0x01, 0x0a, 0x15, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x03, 0x6f, 0x72, 0x67, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, + 0x22, 0x93, 0x02, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x40, 0x0a, 0x07, 0x73, 0x6f, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x52, 0x07, 0x73, 0x6f, 0x72, + 0x74, 0x4b, 0x65, 0x79, 0x12, 0x46, 0x0a, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x52, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x22, 0x2a, 0x0a, 0x09, + 0x53, 0x6f, 0x72, 0x74, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x53, + 0x43, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, 0x43, + 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x22, 0x1c, 0x0a, 0x07, 0x53, 0x6f, 0x72, 0x74, + 0x4b, 0x65, 0x79, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x54, 0x49, 0x4d, 0x45, 0x10, 0x00, 0x32, 0x86, 0x07, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x43, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x56, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, + 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, + 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, + 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x1e, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, + 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, + 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x41, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x1f, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x41, 0x64, + 0x64, 0x54, 0x61, 0x67, 0x12, 0x1a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x2e, 0x41, 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1b, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x41, + 0x64, 0x64, 0x54, 0x61, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, + 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x12, 0x21, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x73, 0x65, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, + 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x73, 0x65, + 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x22, 0x2e, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x23, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x2a, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, + 0x74, 0x4f, 0x72, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x64, 0x61, + 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x12, 0x52, 0x65, 0x6c, 0x65, + 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x6c, + 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x65, + 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0xb2, 0x01, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x42, 0x10, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, + 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x64, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xa2, 0x02, 0x03, 0x44, 0x58, 0x58, + 0xaa, 0x02, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xca, 0x02, + 0x0b, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0xe2, 0x02, 0x17, 0x44, + 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x63, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_datacatalog_datacatalog_proto_rawDescOnce sync.Once + file_flyteidl_datacatalog_datacatalog_proto_rawDescData = file_flyteidl_datacatalog_datacatalog_proto_rawDesc +) + +func file_flyteidl_datacatalog_datacatalog_proto_rawDescGZIP() []byte { + file_flyteidl_datacatalog_datacatalog_proto_rawDescOnce.Do(func() { + file_flyteidl_datacatalog_datacatalog_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_datacatalog_datacatalog_proto_rawDescData) + }) + return file_flyteidl_datacatalog_datacatalog_proto_rawDescData +} + +var file_flyteidl_datacatalog_datacatalog_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_flyteidl_datacatalog_datacatalog_proto_msgTypes = make([]protoimpl.MessageInfo, 38) +var file_flyteidl_datacatalog_datacatalog_proto_goTypes = []interface{}{ + (SinglePropertyFilter_ComparisonOperator)(0), // 0: datacatalog.SinglePropertyFilter.ComparisonOperator + (PaginationOptions_SortOrder)(0), // 1: datacatalog.PaginationOptions.SortOrder + (PaginationOptions_SortKey)(0), // 2: datacatalog.PaginationOptions.SortKey + (*CreateDatasetRequest)(nil), // 3: datacatalog.CreateDatasetRequest + (*CreateDatasetResponse)(nil), // 4: datacatalog.CreateDatasetResponse + (*GetDatasetRequest)(nil), // 5: datacatalog.GetDatasetRequest + (*GetDatasetResponse)(nil), // 6: datacatalog.GetDatasetResponse + (*GetArtifactRequest)(nil), // 7: datacatalog.GetArtifactRequest + (*GetArtifactResponse)(nil), // 8: datacatalog.GetArtifactResponse + (*CreateArtifactRequest)(nil), // 9: datacatalog.CreateArtifactRequest + (*CreateArtifactResponse)(nil), // 10: datacatalog.CreateArtifactResponse + (*AddTagRequest)(nil), // 11: datacatalog.AddTagRequest + (*AddTagResponse)(nil), // 12: datacatalog.AddTagResponse + (*ListArtifactsRequest)(nil), // 13: datacatalog.ListArtifactsRequest + (*ListArtifactsResponse)(nil), // 14: datacatalog.ListArtifactsResponse + (*ListDatasetsRequest)(nil), // 15: datacatalog.ListDatasetsRequest + (*ListDatasetsResponse)(nil), // 16: datacatalog.ListDatasetsResponse + (*UpdateArtifactRequest)(nil), // 17: datacatalog.UpdateArtifactRequest + (*UpdateArtifactResponse)(nil), // 18: datacatalog.UpdateArtifactResponse + (*ReservationID)(nil), // 19: datacatalog.ReservationID + (*GetOrExtendReservationRequest)(nil), // 20: datacatalog.GetOrExtendReservationRequest + (*Reservation)(nil), // 21: datacatalog.Reservation + (*GetOrExtendReservationResponse)(nil), // 22: datacatalog.GetOrExtendReservationResponse + (*ReleaseReservationRequest)(nil), // 23: datacatalog.ReleaseReservationRequest + (*ReleaseReservationResponse)(nil), // 24: datacatalog.ReleaseReservationResponse + (*Dataset)(nil), // 25: datacatalog.Dataset + (*Partition)(nil), // 26: datacatalog.Partition + (*DatasetID)(nil), // 27: datacatalog.DatasetID + (*Artifact)(nil), // 28: datacatalog.Artifact + (*ArtifactData)(nil), // 29: datacatalog.ArtifactData + (*Tag)(nil), // 30: datacatalog.Tag + (*Metadata)(nil), // 31: datacatalog.Metadata + (*FilterExpression)(nil), // 32: datacatalog.FilterExpression + (*SinglePropertyFilter)(nil), // 33: datacatalog.SinglePropertyFilter + (*ArtifactPropertyFilter)(nil), // 34: datacatalog.ArtifactPropertyFilter + (*TagPropertyFilter)(nil), // 35: datacatalog.TagPropertyFilter + (*PartitionPropertyFilter)(nil), // 36: datacatalog.PartitionPropertyFilter + (*KeyValuePair)(nil), // 37: datacatalog.KeyValuePair + (*DatasetPropertyFilter)(nil), // 38: datacatalog.DatasetPropertyFilter + (*PaginationOptions)(nil), // 39: datacatalog.PaginationOptions + nil, // 40: datacatalog.Metadata.KeyMapEntry + (*durationpb.Duration)(nil), // 41: google.protobuf.Duration + (*timestamppb.Timestamp)(nil), // 42: google.protobuf.Timestamp + (*core.Literal)(nil), // 43: flyteidl.core.Literal +} +var file_flyteidl_datacatalog_datacatalog_proto_depIdxs = []int32{ + 25, // 0: datacatalog.CreateDatasetRequest.dataset:type_name -> datacatalog.Dataset + 27, // 1: datacatalog.GetDatasetRequest.dataset:type_name -> datacatalog.DatasetID + 25, // 2: datacatalog.GetDatasetResponse.dataset:type_name -> datacatalog.Dataset + 27, // 3: datacatalog.GetArtifactRequest.dataset:type_name -> datacatalog.DatasetID + 28, // 4: datacatalog.GetArtifactResponse.artifact:type_name -> datacatalog.Artifact + 28, // 5: datacatalog.CreateArtifactRequest.artifact:type_name -> datacatalog.Artifact + 30, // 6: datacatalog.AddTagRequest.tag:type_name -> datacatalog.Tag + 27, // 7: datacatalog.ListArtifactsRequest.dataset:type_name -> datacatalog.DatasetID + 32, // 8: datacatalog.ListArtifactsRequest.filter:type_name -> datacatalog.FilterExpression + 39, // 9: datacatalog.ListArtifactsRequest.pagination:type_name -> datacatalog.PaginationOptions + 28, // 10: datacatalog.ListArtifactsResponse.artifacts:type_name -> datacatalog.Artifact + 32, // 11: datacatalog.ListDatasetsRequest.filter:type_name -> datacatalog.FilterExpression + 39, // 12: datacatalog.ListDatasetsRequest.pagination:type_name -> datacatalog.PaginationOptions + 25, // 13: datacatalog.ListDatasetsResponse.datasets:type_name -> datacatalog.Dataset + 27, // 14: datacatalog.UpdateArtifactRequest.dataset:type_name -> datacatalog.DatasetID + 29, // 15: datacatalog.UpdateArtifactRequest.data:type_name -> datacatalog.ArtifactData + 31, // 16: datacatalog.UpdateArtifactRequest.metadata:type_name -> datacatalog.Metadata + 27, // 17: datacatalog.ReservationID.dataset_id:type_name -> datacatalog.DatasetID + 19, // 18: datacatalog.GetOrExtendReservationRequest.reservation_id:type_name -> datacatalog.ReservationID + 41, // 19: datacatalog.GetOrExtendReservationRequest.heartbeat_interval:type_name -> google.protobuf.Duration + 19, // 20: datacatalog.Reservation.reservation_id:type_name -> datacatalog.ReservationID + 41, // 21: datacatalog.Reservation.heartbeat_interval:type_name -> google.protobuf.Duration + 42, // 22: datacatalog.Reservation.expires_at:type_name -> google.protobuf.Timestamp + 31, // 23: datacatalog.Reservation.metadata:type_name -> datacatalog.Metadata + 21, // 24: datacatalog.GetOrExtendReservationResponse.reservation:type_name -> datacatalog.Reservation + 19, // 25: datacatalog.ReleaseReservationRequest.reservation_id:type_name -> datacatalog.ReservationID + 27, // 26: datacatalog.Dataset.id:type_name -> datacatalog.DatasetID + 31, // 27: datacatalog.Dataset.metadata:type_name -> datacatalog.Metadata + 27, // 28: datacatalog.Artifact.dataset:type_name -> datacatalog.DatasetID + 29, // 29: datacatalog.Artifact.data:type_name -> datacatalog.ArtifactData + 31, // 30: datacatalog.Artifact.metadata:type_name -> datacatalog.Metadata + 26, // 31: datacatalog.Artifact.partitions:type_name -> datacatalog.Partition + 30, // 32: datacatalog.Artifact.tags:type_name -> datacatalog.Tag + 42, // 33: datacatalog.Artifact.created_at:type_name -> google.protobuf.Timestamp + 43, // 34: datacatalog.ArtifactData.value:type_name -> flyteidl.core.Literal + 27, // 35: datacatalog.Tag.dataset:type_name -> datacatalog.DatasetID + 40, // 36: datacatalog.Metadata.key_map:type_name -> datacatalog.Metadata.KeyMapEntry + 33, // 37: datacatalog.FilterExpression.filters:type_name -> datacatalog.SinglePropertyFilter + 35, // 38: datacatalog.SinglePropertyFilter.tag_filter:type_name -> datacatalog.TagPropertyFilter + 36, // 39: datacatalog.SinglePropertyFilter.partition_filter:type_name -> datacatalog.PartitionPropertyFilter + 34, // 40: datacatalog.SinglePropertyFilter.artifact_filter:type_name -> datacatalog.ArtifactPropertyFilter + 38, // 41: datacatalog.SinglePropertyFilter.dataset_filter:type_name -> datacatalog.DatasetPropertyFilter + 0, // 42: datacatalog.SinglePropertyFilter.operator:type_name -> datacatalog.SinglePropertyFilter.ComparisonOperator + 37, // 43: datacatalog.PartitionPropertyFilter.key_val:type_name -> datacatalog.KeyValuePair + 2, // 44: datacatalog.PaginationOptions.sortKey:type_name -> datacatalog.PaginationOptions.SortKey + 1, // 45: datacatalog.PaginationOptions.sortOrder:type_name -> datacatalog.PaginationOptions.SortOrder + 3, // 46: datacatalog.DataCatalog.CreateDataset:input_type -> datacatalog.CreateDatasetRequest + 5, // 47: datacatalog.DataCatalog.GetDataset:input_type -> datacatalog.GetDatasetRequest + 9, // 48: datacatalog.DataCatalog.CreateArtifact:input_type -> datacatalog.CreateArtifactRequest + 7, // 49: datacatalog.DataCatalog.GetArtifact:input_type -> datacatalog.GetArtifactRequest + 11, // 50: datacatalog.DataCatalog.AddTag:input_type -> datacatalog.AddTagRequest + 13, // 51: datacatalog.DataCatalog.ListArtifacts:input_type -> datacatalog.ListArtifactsRequest + 15, // 52: datacatalog.DataCatalog.ListDatasets:input_type -> datacatalog.ListDatasetsRequest + 17, // 53: datacatalog.DataCatalog.UpdateArtifact:input_type -> datacatalog.UpdateArtifactRequest + 20, // 54: datacatalog.DataCatalog.GetOrExtendReservation:input_type -> datacatalog.GetOrExtendReservationRequest + 23, // 55: datacatalog.DataCatalog.ReleaseReservation:input_type -> datacatalog.ReleaseReservationRequest + 4, // 56: datacatalog.DataCatalog.CreateDataset:output_type -> datacatalog.CreateDatasetResponse + 6, // 57: datacatalog.DataCatalog.GetDataset:output_type -> datacatalog.GetDatasetResponse + 10, // 58: datacatalog.DataCatalog.CreateArtifact:output_type -> datacatalog.CreateArtifactResponse + 8, // 59: datacatalog.DataCatalog.GetArtifact:output_type -> datacatalog.GetArtifactResponse + 12, // 60: datacatalog.DataCatalog.AddTag:output_type -> datacatalog.AddTagResponse + 14, // 61: datacatalog.DataCatalog.ListArtifacts:output_type -> datacatalog.ListArtifactsResponse + 16, // 62: datacatalog.DataCatalog.ListDatasets:output_type -> datacatalog.ListDatasetsResponse + 18, // 63: datacatalog.DataCatalog.UpdateArtifact:output_type -> datacatalog.UpdateArtifactResponse + 22, // 64: datacatalog.DataCatalog.GetOrExtendReservation:output_type -> datacatalog.GetOrExtendReservationResponse + 24, // 65: datacatalog.DataCatalog.ReleaseReservation:output_type -> datacatalog.ReleaseReservationResponse + 56, // [56:66] is the sub-list for method output_type + 46, // [46:56] is the sub-list for method input_type + 46, // [46:46] is the sub-list for extension type_name + 46, // [46:46] is the sub-list for extension extendee + 0, // [0:46] is the sub-list for field type_name +} + +func init() { file_flyteidl_datacatalog_datacatalog_proto_init() } +func file_flyteidl_datacatalog_datacatalog_proto_init() { + if File_flyteidl_datacatalog_datacatalog_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDatasetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDatasetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDatasetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDatasetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetArtifactRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetArtifactResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateArtifactRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateArtifactResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddTagRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddTagResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListArtifactsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListArtifactsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListDatasetsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListDatasetsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateArtifactRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateArtifactResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReservationID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOrExtendReservationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Reservation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetOrExtendReservationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReleaseReservationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReleaseReservationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Dataset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Partition); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatasetID); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Artifact); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Tag); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilterExpression); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SinglePropertyFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArtifactPropertyFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TagPropertyFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PartitionPropertyFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KeyValuePair); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DatasetPropertyFilter); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PaginationOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*GetArtifactRequest_ArtifactId)(nil), + (*GetArtifactRequest_TagName)(nil), + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[14].OneofWrappers = []interface{}{ + (*UpdateArtifactRequest_ArtifactId)(nil), + (*UpdateArtifactRequest_TagName)(nil), + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[30].OneofWrappers = []interface{}{ + (*SinglePropertyFilter_TagFilter)(nil), + (*SinglePropertyFilter_PartitionFilter)(nil), + (*SinglePropertyFilter_ArtifactFilter)(nil), + (*SinglePropertyFilter_DatasetFilter)(nil), + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[31].OneofWrappers = []interface{}{ + (*ArtifactPropertyFilter_ArtifactId)(nil), + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[32].OneofWrappers = []interface{}{ + (*TagPropertyFilter_TagName)(nil), + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[33].OneofWrappers = []interface{}{ + (*PartitionPropertyFilter_KeyVal)(nil), + } + file_flyteidl_datacatalog_datacatalog_proto_msgTypes[35].OneofWrappers = []interface{}{ + (*DatasetPropertyFilter_Project)(nil), + (*DatasetPropertyFilter_Name)(nil), + (*DatasetPropertyFilter_Domain)(nil), + (*DatasetPropertyFilter_Version)(nil), + (*DatasetPropertyFilter_Org)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_datacatalog_datacatalog_proto_rawDesc, + NumEnums: 3, + NumMessages: 38, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_datacatalog_datacatalog_proto_goTypes, + DependencyIndexes: file_flyteidl_datacatalog_datacatalog_proto_depIdxs, + EnumInfos: file_flyteidl_datacatalog_datacatalog_proto_enumTypes, + MessageInfos: file_flyteidl_datacatalog_datacatalog_proto_msgTypes, + }.Build() + File_flyteidl_datacatalog_datacatalog_proto = out.File + file_flyteidl_datacatalog_datacatalog_proto_rawDesc = nil + file_flyteidl_datacatalog_datacatalog_proto_goTypes = nil + file_flyteidl_datacatalog_datacatalog_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go new file mode 100644 index 0000000000..41628d16e3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog_grpc.pb.go @@ -0,0 +1,486 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/datacatalog/datacatalog.proto + +package datacatalog + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + DataCatalog_CreateDataset_FullMethodName = "/datacatalog.DataCatalog/CreateDataset" + DataCatalog_GetDataset_FullMethodName = "/datacatalog.DataCatalog/GetDataset" + DataCatalog_CreateArtifact_FullMethodName = "/datacatalog.DataCatalog/CreateArtifact" + DataCatalog_GetArtifact_FullMethodName = "/datacatalog.DataCatalog/GetArtifact" + DataCatalog_AddTag_FullMethodName = "/datacatalog.DataCatalog/AddTag" + DataCatalog_ListArtifacts_FullMethodName = "/datacatalog.DataCatalog/ListArtifacts" + DataCatalog_ListDatasets_FullMethodName = "/datacatalog.DataCatalog/ListDatasets" + DataCatalog_UpdateArtifact_FullMethodName = "/datacatalog.DataCatalog/UpdateArtifact" + DataCatalog_GetOrExtendReservation_FullMethodName = "/datacatalog.DataCatalog/GetOrExtendReservation" + DataCatalog_ReleaseReservation_FullMethodName = "/datacatalog.DataCatalog/ReleaseReservation" +) + +// DataCatalogClient is the client API for DataCatalog service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DataCatalogClient interface { + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) + // Associate a tag with an artifact. Tags are unique within a Dataset. + AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) + // Return a paginated list of artifacts + ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) + // Return a paginated list of datasets + ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) +} + +type dataCatalogClient struct { + cc grpc.ClientConnInterface +} + +func NewDataCatalogClient(cc grpc.ClientConnInterface) DataCatalogClient { + return &dataCatalogClient{cc} +} + +func (c *dataCatalogClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) { + out := new(CreateDatasetResponse) + err := c.cc.Invoke(ctx, DataCatalog_CreateDataset_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) { + out := new(GetDatasetResponse) + err := c.cc.Invoke(ctx, DataCatalog_GetDataset_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) { + out := new(CreateArtifactResponse) + err := c.cc.Invoke(ctx, DataCatalog_CreateArtifact_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) { + out := new(GetArtifactResponse) + err := c.cc.Invoke(ctx, DataCatalog_GetArtifact_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { + out := new(AddTagResponse) + err := c.cc.Invoke(ctx, DataCatalog_AddTag_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) { + out := new(ListArtifactsResponse) + err := c.cc.Invoke(ctx, DataCatalog_ListArtifacts_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { + out := new(ListDatasetsResponse) + err := c.cc.Invoke(ctx, DataCatalog_ListDatasets_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) { + out := new(UpdateArtifactResponse) + err := c.cc.Invoke(ctx, DataCatalog_UpdateArtifact_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) { + out := new(GetOrExtendReservationResponse) + err := c.cc.Invoke(ctx, DataCatalog_GetOrExtendReservation_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { + out := new(ReleaseReservationResponse) + err := c.cc.Invoke(ctx, DataCatalog_ReleaseReservation_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DataCatalogServer is the server API for DataCatalog service. +// All implementations should embed UnimplementedDataCatalogServer +// for forward compatibility +type DataCatalogServer interface { + // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + // Each dataset can have one or more artifacts + CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) + // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) + // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + // files or data values + CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) + // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) + // Associate a tag with an artifact. Tags are unique within a Dataset. + AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) + // Return a paginated list of artifacts + ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) + // Return a paginated list of datasets + ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) + // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) + // Attempts to get or extend a reservation for the corresponding artifact. If one already exists + // (ie. another entity owns the reservation) then that reservation is retrieved. + // Once you acquire a reservation, you need to periodically extend the reservation with an + // identical call. If the reservation is not extended before the defined expiration, it may be + // acquired by another task. + // Note: We may have multiple concurrent tasks with the same signature and the same input that + // try to populate the same artifact at the same time. Thus with reservation, only one task can + // run at a time, until the reservation expires. + // Note: If task A does not extend the reservation in time and the reservation expires, another + // task B may take over the reservation, resulting in two tasks A and B running in parallel. So + // a third task C may get the Artifact from A or B, whichever writes last. + GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) + // Release the reservation when the task holding the spot fails so that the other tasks + // can grab the spot. + ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) +} + +// UnimplementedDataCatalogServer should be embedded to have forward compatible implementations. +type UnimplementedDataCatalogServer struct { +} + +func (UnimplementedDataCatalogServer) CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") +} +func (UnimplementedDataCatalogServer) GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") +} +func (UnimplementedDataCatalogServer) CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented") +} +func (UnimplementedDataCatalogServer) GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") +} +func (UnimplementedDataCatalogServer) AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddTag not implemented") +} +func (UnimplementedDataCatalogServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") +} +func (UnimplementedDataCatalogServer) ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") +} +func (UnimplementedDataCatalogServer) UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateArtifact not implemented") +} +func (UnimplementedDataCatalogServer) GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservation not implemented") +} +func (UnimplementedDataCatalogServer) ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservation not implemented") +} + +// UnsafeDataCatalogServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DataCatalogServer will +// result in compilation errors. +type UnsafeDataCatalogServer interface { + mustEmbedUnimplementedDataCatalogServer() +} + +func RegisterDataCatalogServer(s grpc.ServiceRegistrar, srv DataCatalogServer) { + s.RegisterService(&DataCatalog_ServiceDesc, srv) +} + +func _DataCatalog_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDatasetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).CreateDataset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_CreateDataset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDatasetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetDataset(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_GetDataset_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetDataset(ctx, req.(*GetDatasetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).CreateArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_CreateArtifact_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).CreateArtifact(ctx, req.(*CreateArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_GetArtifact_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetArtifact(ctx, req.(*GetArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_AddTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddTagRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).AddTag(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_AddTag_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).AddTag(ctx, req.(*AddTagRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ListArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListArtifactsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ListArtifacts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_ListArtifacts_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ListArtifacts(ctx, req.(*ListArtifactsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListDatasetsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ListDatasets(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_ListDatasets_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_UpdateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateArtifactRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).UpdateArtifact(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_UpdateArtifact_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).UpdateArtifact(ctx, req.(*UpdateArtifactRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetOrExtendReservationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).GetOrExtendReservation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_GetOrExtendReservation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).GetOrExtendReservation(ctx, req.(*GetOrExtendReservationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ReleaseReservationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataCatalogServer).ReleaseReservation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataCatalog_ReleaseReservation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataCatalogServer).ReleaseReservation(ctx, req.(*ReleaseReservationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// DataCatalog_ServiceDesc is the grpc.ServiceDesc for DataCatalog service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DataCatalog_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "datacatalog.DataCatalog", + HandlerType: (*DataCatalogServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateDataset", + Handler: _DataCatalog_CreateDataset_Handler, + }, + { + MethodName: "GetDataset", + Handler: _DataCatalog_GetDataset_Handler, + }, + { + MethodName: "CreateArtifact", + Handler: _DataCatalog_CreateArtifact_Handler, + }, + { + MethodName: "GetArtifact", + Handler: _DataCatalog_GetArtifact_Handler, + }, + { + MethodName: "AddTag", + Handler: _DataCatalog_AddTag_Handler, + }, + { + MethodName: "ListArtifacts", + Handler: _DataCatalog_ListArtifacts_Handler, + }, + { + MethodName: "ListDatasets", + Handler: _DataCatalog_ListDatasets_Handler, + }, + { + MethodName: "UpdateArtifact", + Handler: _DataCatalog_UpdateArtifact_Handler, + }, + { + MethodName: "GetOrExtendReservation", + Handler: _DataCatalog_GetOrExtendReservation_Handler, + }, + { + MethodName: "ReleaseReservation", + Handler: _DataCatalog_ReleaseReservation_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/datacatalog/datacatalog.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go new file mode 100644 index 0000000000..23f6783440 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go @@ -0,0 +1,589 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/event/cloudevents.proto + +package event + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + _ "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional +// information that downstream consumers may find useful. +type CloudEventWorkflowExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawEvent *WorkflowExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` + OutputInterface *core.TypedInterface `protobuf:"bytes,2,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"` + // The following are ExecutionMetadata fields + // We can't have the ExecutionMetadata object directly because of import cycle + ArtifactIds []*core.ArtifactID `protobuf:"bytes,3,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` + ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,4,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` + Principal string `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal,omitempty"` + // The ID of the LP that generated the execution that generated the Artifact. + // Here for provenance information. + // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. + LaunchPlanId *core.Identifier `protobuf:"bytes,6,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` +} + +func (x *CloudEventWorkflowExecution) Reset() { + *x = CloudEventWorkflowExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloudEventWorkflowExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloudEventWorkflowExecution) ProtoMessage() {} + +func (x *CloudEventWorkflowExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloudEventWorkflowExecution.ProtoReflect.Descriptor instead. +func (*CloudEventWorkflowExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{0} +} + +func (x *CloudEventWorkflowExecution) GetRawEvent() *WorkflowExecutionEvent { + if x != nil { + return x.RawEvent + } + return nil +} + +func (x *CloudEventWorkflowExecution) GetOutputInterface() *core.TypedInterface { + if x != nil { + return x.OutputInterface + } + return nil +} + +func (x *CloudEventWorkflowExecution) GetArtifactIds() []*core.ArtifactID { + if x != nil { + return x.ArtifactIds + } + return nil +} + +func (x *CloudEventWorkflowExecution) GetReferenceExecution() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.ReferenceExecution + } + return nil +} + +func (x *CloudEventWorkflowExecution) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +func (x *CloudEventWorkflowExecution) GetLaunchPlanId() *core.Identifier { + if x != nil { + return x.LaunchPlanId + } + return nil +} + +type CloudEventNodeExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawEvent *NodeExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` + // The relevant task execution if applicable + TaskExecId *core.TaskExecutionIdentifier `protobuf:"bytes,2,opt,name=task_exec_id,json=taskExecId,proto3" json:"task_exec_id,omitempty"` + // The typed interface for the task that produced the event. + OutputInterface *core.TypedInterface `protobuf:"bytes,3,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"` + // The following are ExecutionMetadata fields + // We can't have the ExecutionMetadata object directly because of import cycle + ArtifactIds []*core.ArtifactID `protobuf:"bytes,4,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` + Principal string `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal,omitempty"` + // The ID of the LP that generated the execution that generated the Artifact. + // Here for provenance information. + // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. + LaunchPlanId *core.Identifier `protobuf:"bytes,6,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` +} + +func (x *CloudEventNodeExecution) Reset() { + *x = CloudEventNodeExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloudEventNodeExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloudEventNodeExecution) ProtoMessage() {} + +func (x *CloudEventNodeExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloudEventNodeExecution.ProtoReflect.Descriptor instead. +func (*CloudEventNodeExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{1} +} + +func (x *CloudEventNodeExecution) GetRawEvent() *NodeExecutionEvent { + if x != nil { + return x.RawEvent + } + return nil +} + +func (x *CloudEventNodeExecution) GetTaskExecId() *core.TaskExecutionIdentifier { + if x != nil { + return x.TaskExecId + } + return nil +} + +func (x *CloudEventNodeExecution) GetOutputInterface() *core.TypedInterface { + if x != nil { + return x.OutputInterface + } + return nil +} + +func (x *CloudEventNodeExecution) GetArtifactIds() []*core.ArtifactID { + if x != nil { + return x.ArtifactIds + } + return nil +} + +func (x *CloudEventNodeExecution) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +func (x *CloudEventNodeExecution) GetLaunchPlanId() *core.Identifier { + if x != nil { + return x.LaunchPlanId + } + return nil +} + +type CloudEventTaskExecution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RawEvent *TaskExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` +} + +func (x *CloudEventTaskExecution) Reset() { + *x = CloudEventTaskExecution{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloudEventTaskExecution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloudEventTaskExecution) ProtoMessage() {} + +func (x *CloudEventTaskExecution) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloudEventTaskExecution.ProtoReflect.Descriptor instead. +func (*CloudEventTaskExecution) Descriptor() ([]byte, []int) { + return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{2} +} + +func (x *CloudEventTaskExecution) GetRawEvent() *TaskExecutionEvent { + if x != nil { + return x.RawEvent + } + return nil +} + +// This event is to be sent by Admin after it creates an execution. +type CloudEventExecutionStart struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The execution created. + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + // The launch plan used. + LaunchPlanId *core.Identifier `protobuf:"bytes,2,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` + WorkflowId *core.Identifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` + // Artifact inputs to the workflow execution for which we have the full Artifact ID. These are likely the result of artifact queries that are run. + ArtifactIds []*core.ArtifactID `protobuf:"bytes,4,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` + // Artifact inputs to the workflow execution for which we only have the tracking bit that's installed into the Literal's metadata by the Artifact service. + ArtifactTrackers []string `protobuf:"bytes,5,rep,name=artifact_trackers,json=artifactTrackers,proto3" json:"artifact_trackers,omitempty"` + Principal string `protobuf:"bytes,6,opt,name=principal,proto3" json:"principal,omitempty"` +} + +func (x *CloudEventExecutionStart) Reset() { + *x = CloudEventExecutionStart{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CloudEventExecutionStart) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CloudEventExecutionStart) ProtoMessage() {} + +func (x *CloudEventExecutionStart) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_cloudevents_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CloudEventExecutionStart.ProtoReflect.Descriptor instead. +func (*CloudEventExecutionStart) Descriptor() ([]byte, []int) { + return file_flyteidl_event_cloudevents_proto_rawDescGZIP(), []int{3} +} + +func (x *CloudEventExecutionStart) GetExecutionId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.ExecutionId + } + return nil +} + +func (x *CloudEventExecutionStart) GetLaunchPlanId() *core.Identifier { + if x != nil { + return x.LaunchPlanId + } + return nil +} + +func (x *CloudEventExecutionStart) GetWorkflowId() *core.Identifier { + if x != nil { + return x.WorkflowId + } + return nil +} + +func (x *CloudEventExecutionStart) GetArtifactIds() []*core.ArtifactID { + if x != nil { + return x.ArtifactIds + } + return nil +} + +func (x *CloudEventExecutionStart) GetArtifactTrackers() []string { + if x != nil { + return x.ArtifactTrackers + } + return nil +} + +func (x *CloudEventExecutionStart) GetPrincipal() string { + if x != nil { + return x.Principal + } + return "" +} + +var File_flyteidl_event_cloudevents_proto protoreflect.FileDescriptor + +var file_flyteidl_event_cloudevents_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x1a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, + 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x03, + 0x0a, 0x1b, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, + 0x09, 0x72, 0x61, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x72, 0x61, 0x77, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, + 0x65, 0x64, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0c, + 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, + 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x5b, 0x0a, 0x13, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x52, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, + 0x69, 0x70, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, + 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x3f, 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, + 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x8b, 0x03, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x3f, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x72, 0x61, 0x77, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x49, 0x64, 0x12, 0x48, 0x0a, + 0x10, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x0f, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x49, 0x6e, + 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x61, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, + 0x70, 0x61, 0x6c, 0x12, 0x3f, 0x0a, 0x0e, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, + 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, + 0x61, 0x6e, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x17, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x3f, 0x0a, 0x09, 0x72, 0x61, 0x77, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x72, 0x61, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x22, 0xef, 0x02, 0x0a, 0x18, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x4d, 0x0a, + 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x0e, + 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x0c, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x3a, 0x0a, + 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0a, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0c, 0x61, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x49, 0x44, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, + 0x66, 0x61, 0x63, 0x74, 0x49, 0x64, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x61, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x10, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x72, 0x61, 0x63, + 0x6b, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, + 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x42, 0xbc, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x10, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0xa2, 0x02, 0x03, 0x46, 0x45, 0x58, + 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_event_cloudevents_proto_rawDescOnce sync.Once + file_flyteidl_event_cloudevents_proto_rawDescData = file_flyteidl_event_cloudevents_proto_rawDesc +) + +func file_flyteidl_event_cloudevents_proto_rawDescGZIP() []byte { + file_flyteidl_event_cloudevents_proto_rawDescOnce.Do(func() { + file_flyteidl_event_cloudevents_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_event_cloudevents_proto_rawDescData) + }) + return file_flyteidl_event_cloudevents_proto_rawDescData +} + +var file_flyteidl_event_cloudevents_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_flyteidl_event_cloudevents_proto_goTypes = []interface{}{ + (*CloudEventWorkflowExecution)(nil), // 0: flyteidl.event.CloudEventWorkflowExecution + (*CloudEventNodeExecution)(nil), // 1: flyteidl.event.CloudEventNodeExecution + (*CloudEventTaskExecution)(nil), // 2: flyteidl.event.CloudEventTaskExecution + (*CloudEventExecutionStart)(nil), // 3: flyteidl.event.CloudEventExecutionStart + (*WorkflowExecutionEvent)(nil), // 4: flyteidl.event.WorkflowExecutionEvent + (*core.TypedInterface)(nil), // 5: flyteidl.core.TypedInterface + (*core.ArtifactID)(nil), // 6: flyteidl.core.ArtifactID + (*core.WorkflowExecutionIdentifier)(nil), // 7: flyteidl.core.WorkflowExecutionIdentifier + (*core.Identifier)(nil), // 8: flyteidl.core.Identifier + (*NodeExecutionEvent)(nil), // 9: flyteidl.event.NodeExecutionEvent + (*core.TaskExecutionIdentifier)(nil), // 10: flyteidl.core.TaskExecutionIdentifier + (*TaskExecutionEvent)(nil), // 11: flyteidl.event.TaskExecutionEvent +} +var file_flyteidl_event_cloudevents_proto_depIdxs = []int32{ + 4, // 0: flyteidl.event.CloudEventWorkflowExecution.raw_event:type_name -> flyteidl.event.WorkflowExecutionEvent + 5, // 1: flyteidl.event.CloudEventWorkflowExecution.output_interface:type_name -> flyteidl.core.TypedInterface + 6, // 2: flyteidl.event.CloudEventWorkflowExecution.artifact_ids:type_name -> flyteidl.core.ArtifactID + 7, // 3: flyteidl.event.CloudEventWorkflowExecution.reference_execution:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 8, // 4: flyteidl.event.CloudEventWorkflowExecution.launch_plan_id:type_name -> flyteidl.core.Identifier + 9, // 5: flyteidl.event.CloudEventNodeExecution.raw_event:type_name -> flyteidl.event.NodeExecutionEvent + 10, // 6: flyteidl.event.CloudEventNodeExecution.task_exec_id:type_name -> flyteidl.core.TaskExecutionIdentifier + 5, // 7: flyteidl.event.CloudEventNodeExecution.output_interface:type_name -> flyteidl.core.TypedInterface + 6, // 8: flyteidl.event.CloudEventNodeExecution.artifact_ids:type_name -> flyteidl.core.ArtifactID + 8, // 9: flyteidl.event.CloudEventNodeExecution.launch_plan_id:type_name -> flyteidl.core.Identifier + 11, // 10: flyteidl.event.CloudEventTaskExecution.raw_event:type_name -> flyteidl.event.TaskExecutionEvent + 7, // 11: flyteidl.event.CloudEventExecutionStart.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 8, // 12: flyteidl.event.CloudEventExecutionStart.launch_plan_id:type_name -> flyteidl.core.Identifier + 8, // 13: flyteidl.event.CloudEventExecutionStart.workflow_id:type_name -> flyteidl.core.Identifier + 6, // 14: flyteidl.event.CloudEventExecutionStart.artifact_ids:type_name -> flyteidl.core.ArtifactID + 15, // [15:15] is the sub-list for method output_type + 15, // [15:15] is the sub-list for method input_type + 15, // [15:15] is the sub-list for extension type_name + 15, // [15:15] is the sub-list for extension extendee + 0, // [0:15] is the sub-list for field type_name +} + +func init() { file_flyteidl_event_cloudevents_proto_init() } +func file_flyteidl_event_cloudevents_proto_init() { + if File_flyteidl_event_cloudevents_proto != nil { + return + } + file_flyteidl_event_event_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_event_cloudevents_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloudEventWorkflowExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_cloudevents_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloudEventNodeExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_cloudevents_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloudEventTaskExecution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_cloudevents_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CloudEventExecutionStart); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_event_cloudevents_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_event_cloudevents_proto_goTypes, + DependencyIndexes: file_flyteidl_event_cloudevents_proto_depIdxs, + MessageInfos: file_flyteidl_event_cloudevents_proto_msgTypes, + }.Build() + File_flyteidl_event_cloudevents_proto = out.File + file_flyteidl_event_cloudevents_proto_rawDesc = nil + file_flyteidl_event_cloudevents_proto_goTypes = nil + file_flyteidl_event_cloudevents_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go new file mode 100644 index 0000000000..9c3baaf04e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go @@ -0,0 +1,2025 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/event/event.proto + +package event + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Includes the broad category of machine used for this specific task execution. +type TaskExecutionMetadata_InstanceClass int32 + +const ( + // The default instance class configured for the flyte application platform. + TaskExecutionMetadata_DEFAULT TaskExecutionMetadata_InstanceClass = 0 + // The instance class configured for interruptible tasks. + TaskExecutionMetadata_INTERRUPTIBLE TaskExecutionMetadata_InstanceClass = 1 +) + +// Enum value maps for TaskExecutionMetadata_InstanceClass. +var ( + TaskExecutionMetadata_InstanceClass_name = map[int32]string{ + 0: "DEFAULT", + 1: "INTERRUPTIBLE", + } + TaskExecutionMetadata_InstanceClass_value = map[string]int32{ + "DEFAULT": 0, + "INTERRUPTIBLE": 1, + } +) + +func (x TaskExecutionMetadata_InstanceClass) Enum() *TaskExecutionMetadata_InstanceClass { + p := new(TaskExecutionMetadata_InstanceClass) + *p = x + return p +} + +func (x TaskExecutionMetadata_InstanceClass) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (TaskExecutionMetadata_InstanceClass) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_event_event_proto_enumTypes[0].Descriptor() +} + +func (TaskExecutionMetadata_InstanceClass) Type() protoreflect.EnumType { + return &file_flyteidl_event_event_proto_enumTypes[0] +} + +func (x TaskExecutionMetadata_InstanceClass) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use TaskExecutionMetadata_InstanceClass.Descriptor instead. +func (TaskExecutionMetadata_InstanceClass) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{11, 0} +} + +type WorkflowExecutionEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Workflow execution id + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` + // the id of the originator (Propeller) of the event + ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + Phase core.WorkflowExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the workflow. + OccurredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are assignable to OutputResult: + // + // *WorkflowExecutionEvent_OutputUri + // *WorkflowExecutionEvent_Error + // *WorkflowExecutionEvent_OutputData + OutputResult isWorkflowExecutionEvent_OutputResult `protobuf_oneof:"output_result"` +} + +func (x *WorkflowExecutionEvent) Reset() { + *x = WorkflowExecutionEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowExecutionEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowExecutionEvent) ProtoMessage() {} + +func (x *WorkflowExecutionEvent) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowExecutionEvent.ProtoReflect.Descriptor instead. +func (*WorkflowExecutionEvent) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkflowExecutionEvent) GetExecutionId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.ExecutionId + } + return nil +} + +func (x *WorkflowExecutionEvent) GetProducerId() string { + if x != nil { + return x.ProducerId + } + return "" +} + +func (x *WorkflowExecutionEvent) GetPhase() core.WorkflowExecution_Phase { + if x != nil { + return x.Phase + } + return core.WorkflowExecution_Phase(0) +} + +func (x *WorkflowExecutionEvent) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.OccurredAt + } + return nil +} + +func (m *WorkflowExecutionEvent) GetOutputResult() isWorkflowExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (x *WorkflowExecutionEvent) GetOutputUri() string { + if x, ok := x.GetOutputResult().(*WorkflowExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (x *WorkflowExecutionEvent) GetError() *core.ExecutionError { + if x, ok := x.GetOutputResult().(*WorkflowExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (x *WorkflowExecutionEvent) GetOutputData() *core.LiteralMap { + if x, ok := x.GetOutputResult().(*WorkflowExecutionEvent_OutputData); ok { + return x.OutputData + } + return nil +} + +type isWorkflowExecutionEvent_OutputResult interface { + isWorkflowExecutionEvent_OutputResult() +} + +type WorkflowExecutionEvent_OutputUri struct { + // URL to the output of the execution, it encodes all the information + // including Cloud source provider. ie., s3://... + OutputUri string `protobuf:"bytes,5,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type WorkflowExecutionEvent_Error struct { + // Error information for the execution + Error *core.ExecutionError `protobuf:"bytes,6,opt,name=error,proto3,oneof"` +} + +type WorkflowExecutionEvent_OutputData struct { + // Raw output data produced by this workflow execution. + OutputData *core.LiteralMap `protobuf:"bytes,7,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*WorkflowExecutionEvent_OutputUri) isWorkflowExecutionEvent_OutputResult() {} + +func (*WorkflowExecutionEvent_Error) isWorkflowExecutionEvent_OutputResult() {} + +func (*WorkflowExecutionEvent_OutputData) isWorkflowExecutionEvent_OutputResult() {} + +type NodeExecutionEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier for this node execution + Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // the id of the originator (Propeller) of the event + ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the node. + OccurredAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are assignable to InputValue: + // + // *NodeExecutionEvent_InputUri + // *NodeExecutionEvent_InputData + InputValue isNodeExecutionEvent_InputValue `protobuf_oneof:"input_value"` + // Types that are assignable to OutputResult: + // + // *NodeExecutionEvent_OutputUri + // *NodeExecutionEvent_Error + // *NodeExecutionEvent_OutputData + OutputResult isNodeExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + // Additional metadata to do with this event's node target based + // on the node type + // + // Types that are assignable to TargetMetadata: + // + // *NodeExecutionEvent_WorkflowNodeMetadata + // *NodeExecutionEvent_TaskNodeMetadata + TargetMetadata isNodeExecutionEvent_TargetMetadata `protobuf_oneof:"target_metadata"` + // [To be deprecated] Specifies which task (if any) launched this node. + ParentTaskMetadata *ParentTaskExecutionMetadata `protobuf:"bytes,9,opt,name=parent_task_metadata,json=parentTaskMetadata,proto3" json:"parent_task_metadata,omitempty"` + // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + ParentNodeMetadata *ParentNodeExecutionMetadata `protobuf:"bytes,10,opt,name=parent_node_metadata,json=parentNodeMetadata,proto3" json:"parent_node_metadata,omitempty"` + // Retry group to indicate grouping of nodes by retries + RetryGroup string `protobuf:"bytes,11,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` + // Identifier of the node in the original workflow/graph + // This maps to value of WorkflowTemplate.nodes[X].id + SpecNodeId string `protobuf:"bytes,12,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` + // Friendly readable name for the node + NodeName string `protobuf:"bytes,13,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + EventVersion int32 `protobuf:"varint,16,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` + // Whether this node launched a subworkflow. + IsParent bool `protobuf:"varint,17,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` + // Whether this node yielded a dynamic workflow. + IsDynamic bool `protobuf:"varint,18,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` + // String location uniquely identifying where the deck HTML file is + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + DeckUri string `protobuf:"bytes,19,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` + // This timestamp represents the instant when the event was reported by the executing framework. For example, + // when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when + // literal inputs are initially copied. The event however will not be sent until after the copy completes. + // Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + ReportedAt *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` + // Indicates if this node is an ArrayNode. + IsArray bool `protobuf:"varint,22,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` +} + +func (x *NodeExecutionEvent) Reset() { + *x = NodeExecutionEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NodeExecutionEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NodeExecutionEvent) ProtoMessage() {} + +func (x *NodeExecutionEvent) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeExecutionEvent.ProtoReflect.Descriptor instead. +func (*NodeExecutionEvent) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{1} +} + +func (x *NodeExecutionEvent) GetId() *core.NodeExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *NodeExecutionEvent) GetProducerId() string { + if x != nil { + return x.ProducerId + } + return "" +} + +func (x *NodeExecutionEvent) GetPhase() core.NodeExecution_Phase { + if x != nil { + return x.Phase + } + return core.NodeExecution_Phase(0) +} + +func (x *NodeExecutionEvent) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.OccurredAt + } + return nil +} + +func (m *NodeExecutionEvent) GetInputValue() isNodeExecutionEvent_InputValue { + if m != nil { + return m.InputValue + } + return nil +} + +func (x *NodeExecutionEvent) GetInputUri() string { + if x, ok := x.GetInputValue().(*NodeExecutionEvent_InputUri); ok { + return x.InputUri + } + return "" +} + +func (x *NodeExecutionEvent) GetInputData() *core.LiteralMap { + if x, ok := x.GetInputValue().(*NodeExecutionEvent_InputData); ok { + return x.InputData + } + return nil +} + +func (m *NodeExecutionEvent) GetOutputResult() isNodeExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (x *NodeExecutionEvent) GetOutputUri() string { + if x, ok := x.GetOutputResult().(*NodeExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (x *NodeExecutionEvent) GetError() *core.ExecutionError { + if x, ok := x.GetOutputResult().(*NodeExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (x *NodeExecutionEvent) GetOutputData() *core.LiteralMap { + if x, ok := x.GetOutputResult().(*NodeExecutionEvent_OutputData); ok { + return x.OutputData + } + return nil +} + +func (m *NodeExecutionEvent) GetTargetMetadata() isNodeExecutionEvent_TargetMetadata { + if m != nil { + return m.TargetMetadata + } + return nil +} + +func (x *NodeExecutionEvent) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { + if x, ok := x.GetTargetMetadata().(*NodeExecutionEvent_WorkflowNodeMetadata); ok { + return x.WorkflowNodeMetadata + } + return nil +} + +func (x *NodeExecutionEvent) GetTaskNodeMetadata() *TaskNodeMetadata { + if x, ok := x.GetTargetMetadata().(*NodeExecutionEvent_TaskNodeMetadata); ok { + return x.TaskNodeMetadata + } + return nil +} + +func (x *NodeExecutionEvent) GetParentTaskMetadata() *ParentTaskExecutionMetadata { + if x != nil { + return x.ParentTaskMetadata + } + return nil +} + +func (x *NodeExecutionEvent) GetParentNodeMetadata() *ParentNodeExecutionMetadata { + if x != nil { + return x.ParentNodeMetadata + } + return nil +} + +func (x *NodeExecutionEvent) GetRetryGroup() string { + if x != nil { + return x.RetryGroup + } + return "" +} + +func (x *NodeExecutionEvent) GetSpecNodeId() string { + if x != nil { + return x.SpecNodeId + } + return "" +} + +func (x *NodeExecutionEvent) GetNodeName() string { + if x != nil { + return x.NodeName + } + return "" +} + +func (x *NodeExecutionEvent) GetEventVersion() int32 { + if x != nil { + return x.EventVersion + } + return 0 +} + +func (x *NodeExecutionEvent) GetIsParent() bool { + if x != nil { + return x.IsParent + } + return false +} + +func (x *NodeExecutionEvent) GetIsDynamic() bool { + if x != nil { + return x.IsDynamic + } + return false +} + +func (x *NodeExecutionEvent) GetDeckUri() string { + if x != nil { + return x.DeckUri + } + return "" +} + +func (x *NodeExecutionEvent) GetReportedAt() *timestamppb.Timestamp { + if x != nil { + return x.ReportedAt + } + return nil +} + +func (x *NodeExecutionEvent) GetIsArray() bool { + if x != nil { + return x.IsArray + } + return false +} + +type isNodeExecutionEvent_InputValue interface { + isNodeExecutionEvent_InputValue() +} + +type NodeExecutionEvent_InputUri struct { + InputUri string `protobuf:"bytes,5,opt,name=input_uri,json=inputUri,proto3,oneof"` +} + +type NodeExecutionEvent_InputData struct { + // Raw input data consumed by this node execution. + InputData *core.LiteralMap `protobuf:"bytes,20,opt,name=input_data,json=inputData,proto3,oneof"` +} + +func (*NodeExecutionEvent_InputUri) isNodeExecutionEvent_InputValue() {} + +func (*NodeExecutionEvent_InputData) isNodeExecutionEvent_InputValue() {} + +type isNodeExecutionEvent_OutputResult interface { + isNodeExecutionEvent_OutputResult() +} + +type NodeExecutionEvent_OutputUri struct { + // URL to the output of the execution, it encodes all the information + // including Cloud source provider. ie., s3://... + OutputUri string `protobuf:"bytes,6,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type NodeExecutionEvent_Error struct { + // Error information for the execution + Error *core.ExecutionError `protobuf:"bytes,7,opt,name=error,proto3,oneof"` +} + +type NodeExecutionEvent_OutputData struct { + // Raw output data produced by this node execution. + OutputData *core.LiteralMap `protobuf:"bytes,15,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*NodeExecutionEvent_OutputUri) isNodeExecutionEvent_OutputResult() {} + +func (*NodeExecutionEvent_Error) isNodeExecutionEvent_OutputResult() {} + +func (*NodeExecutionEvent_OutputData) isNodeExecutionEvent_OutputResult() {} + +type isNodeExecutionEvent_TargetMetadata interface { + isNodeExecutionEvent_TargetMetadata() +} + +type NodeExecutionEvent_WorkflowNodeMetadata struct { + WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` +} + +type NodeExecutionEvent_TaskNodeMetadata struct { + TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,14,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` +} + +func (*NodeExecutionEvent_WorkflowNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} + +func (*NodeExecutionEvent_TaskNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} + +// For Workflow Nodes we need to send information about the workflow that's launched +type WorkflowNodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` +} + +func (x *WorkflowNodeMetadata) Reset() { + *x = WorkflowNodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkflowNodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkflowNodeMetadata) ProtoMessage() {} + +func (x *WorkflowNodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkflowNodeMetadata.ProtoReflect.Descriptor instead. +func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{2} +} + +func (x *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.ExecutionId + } + return nil +} + +type TaskNodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Captures the status of caching for this execution. + CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` + // This structure carries the catalog artifact information + CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` + // Captures the status of cache reservations for this execution. + ReservationStatus core.CatalogReservation_Status `protobuf:"varint,3,opt,name=reservation_status,json=reservationStatus,proto3,enum=flyteidl.core.CatalogReservation_Status" json:"reservation_status,omitempty"` + // The latest checkpoint location + CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` + // In the case this task launched a dynamic workflow we capture its structure here. + DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` +} + +func (x *TaskNodeMetadata) Reset() { + *x = TaskNodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskNodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskNodeMetadata) ProtoMessage() {} + +func (x *TaskNodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskNodeMetadata.ProtoReflect.Descriptor instead. +func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{3} +} + +func (x *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { + if x != nil { + return x.CacheStatus + } + return core.CatalogCacheStatus(0) +} + +func (x *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { + if x != nil { + return x.CatalogKey + } + return nil +} + +func (x *TaskNodeMetadata) GetReservationStatus() core.CatalogReservation_Status { + if x != nil { + return x.ReservationStatus + } + return core.CatalogReservation_Status(0) +} + +func (x *TaskNodeMetadata) GetCheckpointUri() string { + if x != nil { + return x.CheckpointUri + } + return "" +} + +func (x *TaskNodeMetadata) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { + if x != nil { + return x.DynamicWorkflow + } + return nil +} + +// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. +type DynamicWorkflowNodeMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // id represents the unique identifier of the workflow. + Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + // Represents the compiled representation of the embedded dynamic workflow. + CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` + // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + // required to correctly recover partially completed executions where the workflow has already been compiled. + DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` +} + +func (x *DynamicWorkflowNodeMetadata) Reset() { + *x = DynamicWorkflowNodeMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DynamicWorkflowNodeMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} + +func (x *DynamicWorkflowNodeMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DynamicWorkflowNodeMetadata.ProtoReflect.Descriptor instead. +func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{4} +} + +func (x *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { + if x != nil { + return x.Id + } + return nil +} + +func (x *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { + if x != nil { + return x.CompiledWorkflow + } + return nil +} + +func (x *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { + if x != nil { + return x.DynamicJobSpecUri + } + return "" +} + +type ParentTaskExecutionMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *ParentTaskExecutionMetadata) Reset() { + *x = ParentTaskExecutionMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParentTaskExecutionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParentTaskExecutionMetadata) ProtoMessage() {} + +func (x *ParentTaskExecutionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParentTaskExecutionMetadata.ProtoReflect.Descriptor instead. +func (*ParentTaskExecutionMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{5} +} + +func (x *ParentTaskExecutionMetadata) GetId() *core.TaskExecutionIdentifier { + if x != nil { + return x.Id + } + return nil +} + +type ParentNodeExecutionMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique identifier of the parent node id within the execution + // This is value of core.NodeExecutionIdentifier.node_id of the parent node + NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` +} + +func (x *ParentNodeExecutionMetadata) Reset() { + *x = ParentNodeExecutionMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ParentNodeExecutionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ParentNodeExecutionMetadata) ProtoMessage() {} + +func (x *ParentNodeExecutionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ParentNodeExecutionMetadata.ProtoReflect.Descriptor instead. +func (*ParentNodeExecutionMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{6} +} + +func (x *ParentNodeExecutionMetadata) GetNodeId() string { + if x != nil { + return x.NodeId + } + return "" +} + +type EventReason struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // An explanation for this event + Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` + // The time this reason occurred + OccurredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` +} + +func (x *EventReason) Reset() { + *x = EventReason{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventReason) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventReason) ProtoMessage() {} + +func (x *EventReason) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventReason.ProtoReflect.Descriptor instead. +func (*EventReason) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{7} +} + +func (x *EventReason) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *EventReason) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.OccurredAt + } + return nil +} + +// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +type TaskExecutionEvent struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of the task. In combination with the retryAttempt this will indicate + // the task execution uniquely for a given parent node execution. + TaskId *core.Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` + // A task execution is always kicked off by a node execution, the event consumer + // will use the parent_id to relate the task to it's parent node execution + ParentNodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=parent_node_execution_id,json=parentNodeExecutionId,proto3" json:"parent_node_execution_id,omitempty"` + // retry attempt number for this task, ie., 2 for the second attempt + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + // Phase associated with the event + Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // id of the process that sent this event, mainly for trace debugging + ProducerId string `protobuf:"bytes,5,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` + // log information for the task execution + Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` + // This timestamp represents when the original event occurred, it is generated + // by the executor of the task. + OccurredAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` + // Types that are assignable to InputValue: + // + // *TaskExecutionEvent_InputUri + // *TaskExecutionEvent_InputData + InputValue isTaskExecutionEvent_InputValue `protobuf_oneof:"input_value"` + // Types that are assignable to OutputResult: + // + // *TaskExecutionEvent_OutputUri + // *TaskExecutionEvent_Error + // *TaskExecutionEvent_OutputData + OutputResult isTaskExecutionEvent_OutputResult `protobuf_oneof:"output_result"` + // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + CustomInfo *structpb.Struct `protobuf:"bytes,11,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` + // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + // that should be recorded regardless of the lack of phase change. + // The version field should be incremented when metadata changes across the duration of an individual phase. + PhaseVersion uint32 `protobuf:"varint,12,opt,name=phase_version,json=phaseVersion,proto3" json:"phase_version,omitempty"` + // An optional explanation for the phase transition. + // Deprecated: Use reasons instead. + // + // Deprecated: Marked as deprecated in flyteidl/event/event.proto. + Reason string `protobuf:"bytes,13,opt,name=reason,proto3" json:"reason,omitempty"` + // An optional list of explanations for the phase transition. + Reasons []*EventReason `protobuf:"bytes,21,rep,name=reasons,proto3" json:"reasons,omitempty"` + // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin + // this type will be identical, but not all task executions necessarily use pre-registered definitions and this + // type is useful to render the task in the UI, filter task executions, etc. + TaskType string `protobuf:"bytes,14,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // Metadata around how a task was executed. + Metadata *TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` + // The event version is used to indicate versioned changes in how data is reported using this + // proto message. For example, event_verison > 0 means that maps tasks report logs using the + // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + // in this message. + EventVersion int32 `protobuf:"varint,18,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` + // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s + // pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, + // but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps + // facilitates a more accurate portrayal of the evaluation time-series. + ReportedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` +} + +func (x *TaskExecutionEvent) Reset() { + *x = TaskExecutionEvent{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionEvent) ProtoMessage() {} + +func (x *TaskExecutionEvent) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionEvent.ProtoReflect.Descriptor instead. +func (*TaskExecutionEvent) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{8} +} + +func (x *TaskExecutionEvent) GetTaskId() *core.Identifier { + if x != nil { + return x.TaskId + } + return nil +} + +func (x *TaskExecutionEvent) GetParentNodeExecutionId() *core.NodeExecutionIdentifier { + if x != nil { + return x.ParentNodeExecutionId + } + return nil +} + +func (x *TaskExecutionEvent) GetRetryAttempt() uint32 { + if x != nil { + return x.RetryAttempt + } + return 0 +} + +func (x *TaskExecutionEvent) GetPhase() core.TaskExecution_Phase { + if x != nil { + return x.Phase + } + return core.TaskExecution_Phase(0) +} + +func (x *TaskExecutionEvent) GetProducerId() string { + if x != nil { + return x.ProducerId + } + return "" +} + +func (x *TaskExecutionEvent) GetLogs() []*core.TaskLog { + if x != nil { + return x.Logs + } + return nil +} + +func (x *TaskExecutionEvent) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.OccurredAt + } + return nil +} + +func (m *TaskExecutionEvent) GetInputValue() isTaskExecutionEvent_InputValue { + if m != nil { + return m.InputValue + } + return nil +} + +func (x *TaskExecutionEvent) GetInputUri() string { + if x, ok := x.GetInputValue().(*TaskExecutionEvent_InputUri); ok { + return x.InputUri + } + return "" +} + +func (x *TaskExecutionEvent) GetInputData() *core.LiteralMap { + if x, ok := x.GetInputValue().(*TaskExecutionEvent_InputData); ok { + return x.InputData + } + return nil +} + +func (m *TaskExecutionEvent) GetOutputResult() isTaskExecutionEvent_OutputResult { + if m != nil { + return m.OutputResult + } + return nil +} + +func (x *TaskExecutionEvent) GetOutputUri() string { + if x, ok := x.GetOutputResult().(*TaskExecutionEvent_OutputUri); ok { + return x.OutputUri + } + return "" +} + +func (x *TaskExecutionEvent) GetError() *core.ExecutionError { + if x, ok := x.GetOutputResult().(*TaskExecutionEvent_Error); ok { + return x.Error + } + return nil +} + +func (x *TaskExecutionEvent) GetOutputData() *core.LiteralMap { + if x, ok := x.GetOutputResult().(*TaskExecutionEvent_OutputData); ok { + return x.OutputData + } + return nil +} + +func (x *TaskExecutionEvent) GetCustomInfo() *structpb.Struct { + if x != nil { + return x.CustomInfo + } + return nil +} + +func (x *TaskExecutionEvent) GetPhaseVersion() uint32 { + if x != nil { + return x.PhaseVersion + } + return 0 +} + +// Deprecated: Marked as deprecated in flyteidl/event/event.proto. +func (x *TaskExecutionEvent) GetReason() string { + if x != nil { + return x.Reason + } + return "" +} + +func (x *TaskExecutionEvent) GetReasons() []*EventReason { + if x != nil { + return x.Reasons + } + return nil +} + +func (x *TaskExecutionEvent) GetTaskType() string { + if x != nil { + return x.TaskType + } + return "" +} + +func (x *TaskExecutionEvent) GetMetadata() *TaskExecutionMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *TaskExecutionEvent) GetEventVersion() int32 { + if x != nil { + return x.EventVersion + } + return 0 +} + +func (x *TaskExecutionEvent) GetReportedAt() *timestamppb.Timestamp { + if x != nil { + return x.ReportedAt + } + return nil +} + +type isTaskExecutionEvent_InputValue interface { + isTaskExecutionEvent_InputValue() +} + +type TaskExecutionEvent_InputUri struct { + // URI of the input file, it encodes all the information + // including Cloud source provider. ie., s3://... + InputUri string `protobuf:"bytes,8,opt,name=input_uri,json=inputUri,proto3,oneof"` +} + +type TaskExecutionEvent_InputData struct { + // Raw input data consumed by this task execution. + InputData *core.LiteralMap `protobuf:"bytes,19,opt,name=input_data,json=inputData,proto3,oneof"` +} + +func (*TaskExecutionEvent_InputUri) isTaskExecutionEvent_InputValue() {} + +func (*TaskExecutionEvent_InputData) isTaskExecutionEvent_InputValue() {} + +type isTaskExecutionEvent_OutputResult interface { + isTaskExecutionEvent_OutputResult() +} + +type TaskExecutionEvent_OutputUri struct { + // URI to the output of the execution, it will be in a format that encodes all the information + // including Cloud source provider. ie., s3://... + OutputUri string `protobuf:"bytes,9,opt,name=output_uri,json=outputUri,proto3,oneof"` +} + +type TaskExecutionEvent_Error struct { + // Error information for the execution + Error *core.ExecutionError `protobuf:"bytes,10,opt,name=error,proto3,oneof"` +} + +type TaskExecutionEvent_OutputData struct { + // Raw output data produced by this task execution. + OutputData *core.LiteralMap `protobuf:"bytes,17,opt,name=output_data,json=outputData,proto3,oneof"` +} + +func (*TaskExecutionEvent_OutputUri) isTaskExecutionEvent_OutputResult() {} + +func (*TaskExecutionEvent_Error) isTaskExecutionEvent_OutputResult() {} + +func (*TaskExecutionEvent_OutputData) isTaskExecutionEvent_OutputResult() {} + +// This message contains metadata about external resources produced or used by a specific task execution. +type ExternalResourceInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + // A unique index for the external resource with respect to all external resources for this task. Although the + // identifier may change between task reporting events or retries, this will remain the same to enable aggregating + // information from multiple reports. + Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + // Retry attempt number for this external resource, ie., 2 for the second attempt + RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` + // Phase associated with the external resource + Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` + // Captures the status of caching for this external resource execution. + CacheStatus core.CatalogCacheStatus `protobuf:"varint,5,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` + // log information for the external resource execution + Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` +} + +func (x *ExternalResourceInfo) Reset() { + *x = ExternalResourceInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExternalResourceInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalResourceInfo) ProtoMessage() {} + +func (x *ExternalResourceInfo) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExternalResourceInfo.ProtoReflect.Descriptor instead. +func (*ExternalResourceInfo) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{9} +} + +func (x *ExternalResourceInfo) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *ExternalResourceInfo) GetIndex() uint32 { + if x != nil { + return x.Index + } + return 0 +} + +func (x *ExternalResourceInfo) GetRetryAttempt() uint32 { + if x != nil { + return x.RetryAttempt + } + return 0 +} + +func (x *ExternalResourceInfo) GetPhase() core.TaskExecution_Phase { + if x != nil { + return x.Phase + } + return core.TaskExecution_Phase(0) +} + +func (x *ExternalResourceInfo) GetCacheStatus() core.CatalogCacheStatus { + if x != nil { + return x.CacheStatus + } + return core.CatalogCacheStatus(0) +} + +func (x *ExternalResourceInfo) GetLogs() []*core.TaskLog { + if x != nil { + return x.Logs + } + return nil +} + +// This message holds task execution metadata specific to resource allocation used to manage concurrent +// executions for a project namespace. +type ResourcePoolInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique resource ID used to identify this execution when allocating a token. + AllocationToken string `protobuf:"bytes,1,opt,name=allocation_token,json=allocationToken,proto3" json:"allocation_token,omitempty"` + // Namespace under which this task execution requested an allocation token. + Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` +} + +func (x *ResourcePoolInfo) Reset() { + *x = ResourcePoolInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResourcePoolInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourcePoolInfo) ProtoMessage() {} + +func (x *ResourcePoolInfo) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResourcePoolInfo.ProtoReflect.Descriptor instead. +func (*ResourcePoolInfo) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{10} +} + +func (x *ResourcePoolInfo) GetAllocationToken() string { + if x != nil { + return x.AllocationToken + } + return "" +} + +func (x *ResourcePoolInfo) GetNamespace() string { + if x != nil { + return x.Namespace + } + return "" +} + +// Holds metadata around how a task was executed. +// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, +// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. +// Metadata is a container for these attributes across the task execution lifecycle. +type TaskExecutionMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique, generated name for this task execution used by the backend. + GeneratedName string `protobuf:"bytes,1,opt,name=generated_name,json=generatedName,proto3" json:"generated_name,omitempty"` + // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + ExternalResources []*ExternalResourceInfo `protobuf:"bytes,2,rep,name=external_resources,json=externalResources,proto3" json:"external_resources,omitempty"` + // Includes additional data on concurrent resource management used during execution.. + // This is a repeated field because a plugin can request multiple resource allocations during execution. + ResourcePoolInfo []*ResourcePoolInfo `protobuf:"bytes,3,rep,name=resource_pool_info,json=resourcePoolInfo,proto3" json:"resource_pool_info,omitempty"` + // The identifier of the plugin used to execute this task. + PluginIdentifier string `protobuf:"bytes,4,opt,name=plugin_identifier,json=pluginIdentifier,proto3" json:"plugin_identifier,omitempty"` + InstanceClass TaskExecutionMetadata_InstanceClass `protobuf:"varint,16,opt,name=instance_class,json=instanceClass,proto3,enum=flyteidl.event.TaskExecutionMetadata_InstanceClass" json:"instance_class,omitempty"` +} + +func (x *TaskExecutionMetadata) Reset() { + *x = TaskExecutionMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_event_event_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskExecutionMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskExecutionMetadata) ProtoMessage() {} + +func (x *TaskExecutionMetadata) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_event_event_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskExecutionMetadata.ProtoReflect.Descriptor instead. +func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { + return file_flyteidl_event_event_proto_rawDescGZIP(), []int{11} +} + +func (x *TaskExecutionMetadata) GetGeneratedName() string { + if x != nil { + return x.GeneratedName + } + return "" +} + +func (x *TaskExecutionMetadata) GetExternalResources() []*ExternalResourceInfo { + if x != nil { + return x.ExternalResources + } + return nil +} + +func (x *TaskExecutionMetadata) GetResourcePoolInfo() []*ResourcePoolInfo { + if x != nil { + return x.ResourcePoolInfo + } + return nil +} + +func (x *TaskExecutionMetadata) GetPluginIdentifier() string { + if x != nil { + return x.PluginIdentifier + } + return "" +} + +func (x *TaskExecutionMetadata) GetInstanceClass() TaskExecutionMetadata_InstanceClass { + if x != nil { + return x.InstanceClass + } + return TaskExecutionMetadata_DEFAULT +} + +var File_flyteidl_event_event_proto protoreflect.FileDescriptor + +var file_flyteidl_event_event_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x1a, 0x1c, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x03, 0x0a, 0x16, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4d, + 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x3c, + 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0b, + 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, + 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1f, 0x0a, 0x0a, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, + 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, + 0x70, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x42, + 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x22, 0xaa, 0x09, 0x0a, 0x12, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, + 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x5f, 0x75, 0x72, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x3a, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, + 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x48, 0x01, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x01, 0x52, 0x0a, 0x6f, 0x75, + 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x16, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x02, + 0x52, 0x14, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x50, 0x0a, 0x12, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x48, 0x02, 0x52, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x5d, 0x0a, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, + 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, + 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x74, + 0x72, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x70, 0x65, 0x63, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, + 0x70, 0x65, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, + 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x69, + 0x73, 0x5f, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x69, 0x73, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x12, 0x19, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x6b, 0x5f, + 0x75, 0x72, 0x69, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x63, 0x6b, 0x55, + 0x72, 0x69, 0x12, 0x3b, 0x0a, 0x0b, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, + 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x16, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x72, 0x72, 0x61, 0x79, 0x42, 0x0d, 0x0a, 0x0b, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x65, 0x0a, + 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4d, 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x0b, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x22, 0xf1, 0x02, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x64, + 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x63, + 0x68, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, + 0x3f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4b, 0x65, 0x79, + 0x12, 0x57, 0x0a, 0x12, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, + 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x55, 0x72, 0x69, + 0x12, 0x56, 0x0a, 0x10, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x22, 0xce, 0x01, 0x0a, 0x1b, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4e, 0x6f, 0x64, 0x65, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x53, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x5f, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, + 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, + 0x6c, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x10, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x2f, 0x0a, 0x14, 0x64, 0x79, 0x6e, 0x61, + 0x6d, 0x69, 0x63, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x75, 0x72, 0x69, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4a, + 0x6f, 0x62, 0x53, 0x70, 0x65, 0x63, 0x55, 0x72, 0x69, 0x22, 0x55, 0x0a, 0x1b, 0x50, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, 0x02, 0x69, 0x64, + 0x22, 0x36, 0x0a, 0x1b, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, + 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x62, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, + 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x22, 0x97, 0x08, 0x0a, + 0x12, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x5f, 0x0a, 0x18, 0x70, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x52, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x72, + 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x38, 0x0a, + 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, + 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, + 0x63, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, + 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x04, + 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, + 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, + 0x12, 0x3a, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x13, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, + 0x00, 0x52, 0x09, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0a, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x01, 0x52, 0x09, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x55, 0x72, 0x69, 0x12, 0x35, 0x0a, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x01, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x01, 0x52, 0x0a, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, + 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x70, 0x68, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x1a, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x35, 0x0a, + 0x07, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x41, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x72, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0f, 0x0a, 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x9e, 0x02, 0x0a, 0x14, 0x45, 0x78, 0x74, 0x65, 0x72, + 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, + 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, + 0x65, 0x74, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x70, + 0x68, 0x61, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, + 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x61, 0x74, 0x61, + 0x6c, 0x6f, 0x67, 0x43, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0b, + 0x63, 0x61, 0x63, 0x68, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x04, 0x6c, + 0x6f, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, + 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x22, 0x5b, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x0a, 0x10, 0x61, + 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x22, 0x9d, 0x03, 0x0a, 0x15, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, + 0x0a, 0x0e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x12, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x6f, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x50, 0x6f, 0x6f, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x0a, 0x11, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x5a, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x33, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, 0x6c, + 0x61, 0x73, 0x73, 0x22, 0x2f, 0x0a, 0x0d, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x43, + 0x6c, 0x61, 0x73, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, + 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x52, 0x55, 0x50, 0x54, 0x49, 0x42, + 0x4c, 0x45, 0x10, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0xa2, 0x02, 0x03, 0x46, 0x45, 0x58, 0xaa, 0x02, 0x0e, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0xca, 0x02, 0x0e, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0xe2, 0x02, + 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_event_event_proto_rawDescOnce sync.Once + file_flyteidl_event_event_proto_rawDescData = file_flyteidl_event_event_proto_rawDesc +) + +func file_flyteidl_event_event_proto_rawDescGZIP() []byte { + file_flyteidl_event_event_proto_rawDescOnce.Do(func() { + file_flyteidl_event_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_event_event_proto_rawDescData) + }) + return file_flyteidl_event_event_proto_rawDescData +} + +var file_flyteidl_event_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_event_event_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_flyteidl_event_event_proto_goTypes = []interface{}{ + (TaskExecutionMetadata_InstanceClass)(0), // 0: flyteidl.event.TaskExecutionMetadata.InstanceClass + (*WorkflowExecutionEvent)(nil), // 1: flyteidl.event.WorkflowExecutionEvent + (*NodeExecutionEvent)(nil), // 2: flyteidl.event.NodeExecutionEvent + (*WorkflowNodeMetadata)(nil), // 3: flyteidl.event.WorkflowNodeMetadata + (*TaskNodeMetadata)(nil), // 4: flyteidl.event.TaskNodeMetadata + (*DynamicWorkflowNodeMetadata)(nil), // 5: flyteidl.event.DynamicWorkflowNodeMetadata + (*ParentTaskExecutionMetadata)(nil), // 6: flyteidl.event.ParentTaskExecutionMetadata + (*ParentNodeExecutionMetadata)(nil), // 7: flyteidl.event.ParentNodeExecutionMetadata + (*EventReason)(nil), // 8: flyteidl.event.EventReason + (*TaskExecutionEvent)(nil), // 9: flyteidl.event.TaskExecutionEvent + (*ExternalResourceInfo)(nil), // 10: flyteidl.event.ExternalResourceInfo + (*ResourcePoolInfo)(nil), // 11: flyteidl.event.ResourcePoolInfo + (*TaskExecutionMetadata)(nil), // 12: flyteidl.event.TaskExecutionMetadata + (*core.WorkflowExecutionIdentifier)(nil), // 13: flyteidl.core.WorkflowExecutionIdentifier + (core.WorkflowExecution_Phase)(0), // 14: flyteidl.core.WorkflowExecution.Phase + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*core.ExecutionError)(nil), // 16: flyteidl.core.ExecutionError + (*core.LiteralMap)(nil), // 17: flyteidl.core.LiteralMap + (*core.NodeExecutionIdentifier)(nil), // 18: flyteidl.core.NodeExecutionIdentifier + (core.NodeExecution_Phase)(0), // 19: flyteidl.core.NodeExecution.Phase + (core.CatalogCacheStatus)(0), // 20: flyteidl.core.CatalogCacheStatus + (*core.CatalogMetadata)(nil), // 21: flyteidl.core.CatalogMetadata + (core.CatalogReservation_Status)(0), // 22: flyteidl.core.CatalogReservation.Status + (*core.Identifier)(nil), // 23: flyteidl.core.Identifier + (*core.CompiledWorkflowClosure)(nil), // 24: flyteidl.core.CompiledWorkflowClosure + (*core.TaskExecutionIdentifier)(nil), // 25: flyteidl.core.TaskExecutionIdentifier + (core.TaskExecution_Phase)(0), // 26: flyteidl.core.TaskExecution.Phase + (*core.TaskLog)(nil), // 27: flyteidl.core.TaskLog + (*structpb.Struct)(nil), // 28: google.protobuf.Struct +} +var file_flyteidl_event_event_proto_depIdxs = []int32{ + 13, // 0: flyteidl.event.WorkflowExecutionEvent.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 14, // 1: flyteidl.event.WorkflowExecutionEvent.phase:type_name -> flyteidl.core.WorkflowExecution.Phase + 15, // 2: flyteidl.event.WorkflowExecutionEvent.occurred_at:type_name -> google.protobuf.Timestamp + 16, // 3: flyteidl.event.WorkflowExecutionEvent.error:type_name -> flyteidl.core.ExecutionError + 17, // 4: flyteidl.event.WorkflowExecutionEvent.output_data:type_name -> flyteidl.core.LiteralMap + 18, // 5: flyteidl.event.NodeExecutionEvent.id:type_name -> flyteidl.core.NodeExecutionIdentifier + 19, // 6: flyteidl.event.NodeExecutionEvent.phase:type_name -> flyteidl.core.NodeExecution.Phase + 15, // 7: flyteidl.event.NodeExecutionEvent.occurred_at:type_name -> google.protobuf.Timestamp + 17, // 8: flyteidl.event.NodeExecutionEvent.input_data:type_name -> flyteidl.core.LiteralMap + 16, // 9: flyteidl.event.NodeExecutionEvent.error:type_name -> flyteidl.core.ExecutionError + 17, // 10: flyteidl.event.NodeExecutionEvent.output_data:type_name -> flyteidl.core.LiteralMap + 3, // 11: flyteidl.event.NodeExecutionEvent.workflow_node_metadata:type_name -> flyteidl.event.WorkflowNodeMetadata + 4, // 12: flyteidl.event.NodeExecutionEvent.task_node_metadata:type_name -> flyteidl.event.TaskNodeMetadata + 6, // 13: flyteidl.event.NodeExecutionEvent.parent_task_metadata:type_name -> flyteidl.event.ParentTaskExecutionMetadata + 7, // 14: flyteidl.event.NodeExecutionEvent.parent_node_metadata:type_name -> flyteidl.event.ParentNodeExecutionMetadata + 15, // 15: flyteidl.event.NodeExecutionEvent.reported_at:type_name -> google.protobuf.Timestamp + 13, // 16: flyteidl.event.WorkflowNodeMetadata.execution_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 20, // 17: flyteidl.event.TaskNodeMetadata.cache_status:type_name -> flyteidl.core.CatalogCacheStatus + 21, // 18: flyteidl.event.TaskNodeMetadata.catalog_key:type_name -> flyteidl.core.CatalogMetadata + 22, // 19: flyteidl.event.TaskNodeMetadata.reservation_status:type_name -> flyteidl.core.CatalogReservation.Status + 5, // 20: flyteidl.event.TaskNodeMetadata.dynamic_workflow:type_name -> flyteidl.event.DynamicWorkflowNodeMetadata + 23, // 21: flyteidl.event.DynamicWorkflowNodeMetadata.id:type_name -> flyteidl.core.Identifier + 24, // 22: flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow:type_name -> flyteidl.core.CompiledWorkflowClosure + 25, // 23: flyteidl.event.ParentTaskExecutionMetadata.id:type_name -> flyteidl.core.TaskExecutionIdentifier + 15, // 24: flyteidl.event.EventReason.occurred_at:type_name -> google.protobuf.Timestamp + 23, // 25: flyteidl.event.TaskExecutionEvent.task_id:type_name -> flyteidl.core.Identifier + 18, // 26: flyteidl.event.TaskExecutionEvent.parent_node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier + 26, // 27: flyteidl.event.TaskExecutionEvent.phase:type_name -> flyteidl.core.TaskExecution.Phase + 27, // 28: flyteidl.event.TaskExecutionEvent.logs:type_name -> flyteidl.core.TaskLog + 15, // 29: flyteidl.event.TaskExecutionEvent.occurred_at:type_name -> google.protobuf.Timestamp + 17, // 30: flyteidl.event.TaskExecutionEvent.input_data:type_name -> flyteidl.core.LiteralMap + 16, // 31: flyteidl.event.TaskExecutionEvent.error:type_name -> flyteidl.core.ExecutionError + 17, // 32: flyteidl.event.TaskExecutionEvent.output_data:type_name -> flyteidl.core.LiteralMap + 28, // 33: flyteidl.event.TaskExecutionEvent.custom_info:type_name -> google.protobuf.Struct + 8, // 34: flyteidl.event.TaskExecutionEvent.reasons:type_name -> flyteidl.event.EventReason + 12, // 35: flyteidl.event.TaskExecutionEvent.metadata:type_name -> flyteidl.event.TaskExecutionMetadata + 15, // 36: flyteidl.event.TaskExecutionEvent.reported_at:type_name -> google.protobuf.Timestamp + 26, // 37: flyteidl.event.ExternalResourceInfo.phase:type_name -> flyteidl.core.TaskExecution.Phase + 20, // 38: flyteidl.event.ExternalResourceInfo.cache_status:type_name -> flyteidl.core.CatalogCacheStatus + 27, // 39: flyteidl.event.ExternalResourceInfo.logs:type_name -> flyteidl.core.TaskLog + 10, // 40: flyteidl.event.TaskExecutionMetadata.external_resources:type_name -> flyteidl.event.ExternalResourceInfo + 11, // 41: flyteidl.event.TaskExecutionMetadata.resource_pool_info:type_name -> flyteidl.event.ResourcePoolInfo + 0, // 42: flyteidl.event.TaskExecutionMetadata.instance_class:type_name -> flyteidl.event.TaskExecutionMetadata.InstanceClass + 43, // [43:43] is the sub-list for method output_type + 43, // [43:43] is the sub-list for method input_type + 43, // [43:43] is the sub-list for extension type_name + 43, // [43:43] is the sub-list for extension extendee + 0, // [0:43] is the sub-list for field type_name +} + +func init() { file_flyteidl_event_event_proto_init() } +func file_flyteidl_event_event_proto_init() { + if File_flyteidl_event_event_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_event_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowExecutionEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeExecutionEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkflowNodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskNodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DynamicWorkflowNodeMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParentTaskExecutionMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ParentNodeExecutionMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventReason); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionEvent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExternalResourceInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResourcePoolInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_event_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskExecutionMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_event_event_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*WorkflowExecutionEvent_OutputUri)(nil), + (*WorkflowExecutionEvent_Error)(nil), + (*WorkflowExecutionEvent_OutputData)(nil), + } + file_flyteidl_event_event_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*NodeExecutionEvent_InputUri)(nil), + (*NodeExecutionEvent_InputData)(nil), + (*NodeExecutionEvent_OutputUri)(nil), + (*NodeExecutionEvent_Error)(nil), + (*NodeExecutionEvent_OutputData)(nil), + (*NodeExecutionEvent_WorkflowNodeMetadata)(nil), + (*NodeExecutionEvent_TaskNodeMetadata)(nil), + } + file_flyteidl_event_event_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*TaskExecutionEvent_InputUri)(nil), + (*TaskExecutionEvent_InputData)(nil), + (*TaskExecutionEvent_OutputUri)(nil), + (*TaskExecutionEvent_Error)(nil), + (*TaskExecutionEvent_OutputData)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_event_event_proto_rawDesc, + NumEnums: 1, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_event_event_proto_goTypes, + DependencyIndexes: file_flyteidl_event_event_proto_depIdxs, + EnumInfos: file_flyteidl_event_event_proto_enumTypes, + MessageInfos: file_flyteidl_event_event_proto_msgTypes, + }.Build() + File_flyteidl_event_event_proto = out.File + file_flyteidl_event_event_proto_rawDesc = nil + file_flyteidl_event_event_proto_goTypes = nil + file_flyteidl_event_event_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go new file mode 100644 index 0000000000..7280d51546 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go @@ -0,0 +1,230 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/array_job.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +// will be executed concurrently. +type ArrayJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an + // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + // running instances might be more. This has to be a positive number if assigned. Default value is size. + Parallelism int64 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` + // Defines the number of instances to launch at most. This number should match the size of the input if the job + // requires processing of all input data. This has to be a positive number. + // In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // Types that are assignable to SuccessCriteria: + // + // *ArrayJob_MinSuccesses + // *ArrayJob_MinSuccessRatio + SuccessCriteria isArrayJob_SuccessCriteria `protobuf_oneof:"success_criteria"` +} + +func (x *ArrayJob) Reset() { + *x = ArrayJob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_array_job_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ArrayJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ArrayJob) ProtoMessage() {} + +func (x *ArrayJob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_array_job_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ArrayJob.ProtoReflect.Descriptor instead. +func (*ArrayJob) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_array_job_proto_rawDescGZIP(), []int{0} +} + +func (x *ArrayJob) GetParallelism() int64 { + if x != nil { + return x.Parallelism + } + return 0 +} + +func (x *ArrayJob) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (m *ArrayJob) GetSuccessCriteria() isArrayJob_SuccessCriteria { + if m != nil { + return m.SuccessCriteria + } + return nil +} + +func (x *ArrayJob) GetMinSuccesses() int64 { + if x, ok := x.GetSuccessCriteria().(*ArrayJob_MinSuccesses); ok { + return x.MinSuccesses + } + return 0 +} + +func (x *ArrayJob) GetMinSuccessRatio() float32 { + if x, ok := x.GetSuccessCriteria().(*ArrayJob_MinSuccessRatio); ok { + return x.MinSuccessRatio + } + return 0 +} + +type isArrayJob_SuccessCriteria interface { + isArrayJob_SuccessCriteria() +} + +type ArrayJob_MinSuccesses struct { + // An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + // the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + // assigned. Default value is size (if specified). + MinSuccesses int64 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` +} + +type ArrayJob_MinSuccessRatio struct { + // If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array + // job can be marked successful. + MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` +} + +func (*ArrayJob_MinSuccesses) isArrayJob_SuccessCriteria() {} + +func (*ArrayJob_MinSuccessRatio) isArrayJob_SuccessCriteria() {} + +var File_flyteidl_plugins_array_job_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_array_job_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6a, 0x6f, 0x62, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x08, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4a, 0x6f, + 0x62, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, 0x69, 0x73, 0x6d, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x61, 0x6c, 0x6c, 0x65, 0x6c, + 0x69, 0x73, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x6d, 0x69, 0x6e, 0x5f, 0x73, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, + 0x52, 0x0c, 0x6d, 0x69, 0x6e, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x2c, + 0x0a, 0x11, 0x6d, 0x69, 0x6e, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0f, 0x6d, 0x69, 0x6e, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x42, 0x12, 0x0a, 0x10, + 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, + 0x42, 0xc5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0d, 0x41, 0x72, 0x72, 0x61, 0x79, + 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, + 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, + 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_array_job_proto_rawDescOnce sync.Once + file_flyteidl_plugins_array_job_proto_rawDescData = file_flyteidl_plugins_array_job_proto_rawDesc +) + +func file_flyteidl_plugins_array_job_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_array_job_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_array_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_array_job_proto_rawDescData) + }) + return file_flyteidl_plugins_array_job_proto_rawDescData +} + +var file_flyteidl_plugins_array_job_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_plugins_array_job_proto_goTypes = []interface{}{ + (*ArrayJob)(nil), // 0: flyteidl.plugins.ArrayJob +} +var file_flyteidl_plugins_array_job_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_array_job_proto_init() } +func file_flyteidl_plugins_array_job_proto_init() { + if File_flyteidl_plugins_array_job_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_array_job_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ArrayJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_plugins_array_job_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*ArrayJob_MinSuccesses)(nil), + (*ArrayJob_MinSuccessRatio)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_array_job_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_array_job_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_array_job_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_array_job_proto_msgTypes, + }.Build() + File_flyteidl_plugins_array_job_proto = out.File + file_flyteidl_plugins_array_job_proto_rawDesc = nil + file_flyteidl_plugins_array_job_proto_goTypes = nil + file_flyteidl_plugins_array_job_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go new file mode 100644 index 0000000000..f23ea88f64 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go @@ -0,0 +1,348 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/dask.proto + +package plugins + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Custom Proto for Dask Plugin. +type DaskJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Spec for the scheduler pod. + Scheduler *DaskScheduler `protobuf:"bytes,1,opt,name=scheduler,proto3" json:"scheduler,omitempty"` + // Spec of the default worker group. + Workers *DaskWorkerGroup `protobuf:"bytes,2,opt,name=workers,proto3" json:"workers,omitempty"` +} + +func (x *DaskJob) Reset() { + *x = DaskJob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_dask_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaskJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaskJob) ProtoMessage() {} + +func (x *DaskJob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_dask_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DaskJob.ProtoReflect.Descriptor instead. +func (*DaskJob) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_dask_proto_rawDescGZIP(), []int{0} +} + +func (x *DaskJob) GetScheduler() *DaskScheduler { + if x != nil { + return x.Scheduler + } + return nil +} + +func (x *DaskJob) GetWorkers() *DaskWorkerGroup { + if x != nil { + return x.Workers + } + return nil +} + +// Specification for the scheduler pod. +type DaskScheduler struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Optional image to use. If unset, will use the default image. + Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + // Resources assigned to the scheduler pod. + Resources *core.Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *DaskScheduler) Reset() { + *x = DaskScheduler{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_dask_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaskScheduler) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaskScheduler) ProtoMessage() {} + +func (x *DaskScheduler) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_dask_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DaskScheduler.ProtoReflect.Descriptor instead. +func (*DaskScheduler) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_dask_proto_rawDescGZIP(), []int{1} +} + +func (x *DaskScheduler) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *DaskScheduler) GetResources() *core.Resources { + if x != nil { + return x.Resources + } + return nil +} + +type DaskWorkerGroup struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of workers in the group. + NumberOfWorkers uint32 `protobuf:"varint,1,opt,name=number_of_workers,json=numberOfWorkers,proto3" json:"number_of_workers,omitempty"` + // Optional image to use for the pods of the worker group. If unset, will use the default image. + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources assigned to the all pods of the worker group. + // As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices + // it is advised to only set limits. If requests are not explicitly set, the plugin will make + // sure to set requests==limits. + // The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` +} + +func (x *DaskWorkerGroup) Reset() { + *x = DaskWorkerGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_dask_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DaskWorkerGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DaskWorkerGroup) ProtoMessage() {} + +func (x *DaskWorkerGroup) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_dask_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DaskWorkerGroup.ProtoReflect.Descriptor instead. +func (*DaskWorkerGroup) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_dask_proto_rawDescGZIP(), []int{2} +} + +func (x *DaskWorkerGroup) GetNumberOfWorkers() uint32 { + if x != nil { + return x.NumberOfWorkers + } + return 0 +} + +func (x *DaskWorkerGroup) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *DaskWorkerGroup) GetResources() *core.Resources { + if x != nil { + return x.Resources + } + return nil +} + +var File_flyteidl_plugins_dask_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_dask_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x64, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x1a, + 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x07, 0x44, + 0x61, 0x73, 0x6b, 0x4a, 0x6f, 0x62, 0x12, 0x3d, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x44, 0x61, 0x73, + 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x44, 0x61, 0x73, 0x6b, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x73, 0x22, 0x5d, 0x0a, 0x0d, 0x44, 0x61, 0x73, 0x6b, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x0f, 0x44, 0x61, 0x73, 0x6b, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x2a, 0x0a, 0x11, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, + 0x6f, 0x66, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x0f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, + 0xc1, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x09, 0x44, 0x61, 0x73, 0x6b, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, + 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_dask_proto_rawDescOnce sync.Once + file_flyteidl_plugins_dask_proto_rawDescData = file_flyteidl_plugins_dask_proto_rawDesc +) + +func file_flyteidl_plugins_dask_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_dask_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_dask_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_dask_proto_rawDescData) + }) + return file_flyteidl_plugins_dask_proto_rawDescData +} + +var file_flyteidl_plugins_dask_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_flyteidl_plugins_dask_proto_goTypes = []interface{}{ + (*DaskJob)(nil), // 0: flyteidl.plugins.DaskJob + (*DaskScheduler)(nil), // 1: flyteidl.plugins.DaskScheduler + (*DaskWorkerGroup)(nil), // 2: flyteidl.plugins.DaskWorkerGroup + (*core.Resources)(nil), // 3: flyteidl.core.Resources +} +var file_flyteidl_plugins_dask_proto_depIdxs = []int32{ + 1, // 0: flyteidl.plugins.DaskJob.scheduler:type_name -> flyteidl.plugins.DaskScheduler + 2, // 1: flyteidl.plugins.DaskJob.workers:type_name -> flyteidl.plugins.DaskWorkerGroup + 3, // 2: flyteidl.plugins.DaskScheduler.resources:type_name -> flyteidl.core.Resources + 3, // 3: flyteidl.plugins.DaskWorkerGroup.resources:type_name -> flyteidl.core.Resources + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_dask_proto_init() } +func file_flyteidl_plugins_dask_proto_init() { + if File_flyteidl_plugins_dask_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_dask_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaskJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_dask_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaskScheduler); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_dask_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DaskWorkerGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_dask_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_dask_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_dask_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_dask_proto_msgTypes, + }.Build() + File_flyteidl_plugins_dask_proto = out.File + file_flyteidl_plugins_dask_proto_rawDesc = nil + file_flyteidl_plugins_dask_proto_goTypes = nil + file_flyteidl_plugins_dask_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go new file mode 100644 index 0000000000..ba03051e1e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go @@ -0,0 +1,317 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/kubeflow/common.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RestartPolicy int32 + +const ( + RestartPolicy_RESTART_POLICY_NEVER RestartPolicy = 0 + RestartPolicy_RESTART_POLICY_ON_FAILURE RestartPolicy = 1 + RestartPolicy_RESTART_POLICY_ALWAYS RestartPolicy = 2 +) + +// Enum value maps for RestartPolicy. +var ( + RestartPolicy_name = map[int32]string{ + 0: "RESTART_POLICY_NEVER", + 1: "RESTART_POLICY_ON_FAILURE", + 2: "RESTART_POLICY_ALWAYS", + } + RestartPolicy_value = map[string]int32{ + "RESTART_POLICY_NEVER": 0, + "RESTART_POLICY_ON_FAILURE": 1, + "RESTART_POLICY_ALWAYS": 2, + } +) + +func (x RestartPolicy) Enum() *RestartPolicy { + p := new(RestartPolicy) + *p = x + return p +} + +func (x RestartPolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RestartPolicy) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_plugins_kubeflow_common_proto_enumTypes[0].Descriptor() +} + +func (RestartPolicy) Type() protoreflect.EnumType { + return &file_flyteidl_plugins_kubeflow_common_proto_enumTypes[0] +} + +func (x RestartPolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use RestartPolicy.Descriptor instead. +func (RestartPolicy) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP(), []int{0} +} + +type CleanPodPolicy int32 + +const ( + CleanPodPolicy_CLEANPOD_POLICY_NONE CleanPodPolicy = 0 + CleanPodPolicy_CLEANPOD_POLICY_RUNNING CleanPodPolicy = 1 + CleanPodPolicy_CLEANPOD_POLICY_ALL CleanPodPolicy = 2 +) + +// Enum value maps for CleanPodPolicy. +var ( + CleanPodPolicy_name = map[int32]string{ + 0: "CLEANPOD_POLICY_NONE", + 1: "CLEANPOD_POLICY_RUNNING", + 2: "CLEANPOD_POLICY_ALL", + } + CleanPodPolicy_value = map[string]int32{ + "CLEANPOD_POLICY_NONE": 0, + "CLEANPOD_POLICY_RUNNING": 1, + "CLEANPOD_POLICY_ALL": 2, + } +) + +func (x CleanPodPolicy) Enum() *CleanPodPolicy { + p := new(CleanPodPolicy) + *p = x + return p +} + +func (x CleanPodPolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CleanPodPolicy) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_plugins_kubeflow_common_proto_enumTypes[1].Descriptor() +} + +func (CleanPodPolicy) Type() protoreflect.EnumType { + return &file_flyteidl_plugins_kubeflow_common_proto_enumTypes[1] +} + +func (x CleanPodPolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CleanPodPolicy.Descriptor instead. +func (CleanPodPolicy) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP(), []int{1} +} + +type RunPolicy struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines the policy to kill pods after the job completes. Default to None. + CleanPodPolicy CleanPodPolicy `protobuf:"varint,1,opt,name=clean_pod_policy,json=cleanPodPolicy,proto3,enum=flyteidl.plugins.kubeflow.CleanPodPolicy" json:"clean_pod_policy,omitempty"` + // TTL to clean up jobs. Default to infinite. + TtlSecondsAfterFinished int32 `protobuf:"varint,2,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` + // Specifies the duration in seconds relative to the startTime that the job may be active + // before the system tries to terminate it; value must be positive integer. + ActiveDeadlineSeconds int32 `protobuf:"varint,3,opt,name=active_deadline_seconds,json=activeDeadlineSeconds,proto3" json:"active_deadline_seconds,omitempty"` + // Number of retries before marking this job failed. + BackoffLimit int32 `protobuf:"varint,4,opt,name=backoff_limit,json=backoffLimit,proto3" json:"backoff_limit,omitempty"` +} + +func (x *RunPolicy) Reset() { + *x = RunPolicy{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RunPolicy) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RunPolicy) ProtoMessage() {} + +func (x *RunPolicy) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_common_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RunPolicy.ProtoReflect.Descriptor instead. +func (*RunPolicy) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP(), []int{0} +} + +func (x *RunPolicy) GetCleanPodPolicy() CleanPodPolicy { + if x != nil { + return x.CleanPodPolicy + } + return CleanPodPolicy_CLEANPOD_POLICY_NONE +} + +func (x *RunPolicy) GetTtlSecondsAfterFinished() int32 { + if x != nil { + return x.TtlSecondsAfterFinished + } + return 0 +} + +func (x *RunPolicy) GetActiveDeadlineSeconds() int32 { + if x != nil { + return x.ActiveDeadlineSeconds + } + return 0 +} + +func (x *RunPolicy) GetBackoffLimit() int32 { + if x != nil { + return x.BackoffLimit + } + return 0 +} + +var File_flyteidl_plugins_kubeflow_common_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_kubeflow_common_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, + 0x6c, 0x6f, 0x77, 0x22, 0xfa, 0x01, 0x0a, 0x09, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x12, 0x53, 0x0a, 0x10, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x70, 0x6f, 0x64, 0x5f, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, + 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x6f, 0x64, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x6f, 0x64, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3b, 0x0a, 0x1a, 0x74, 0x74, 0x6c, 0x5f, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x6e, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x74, 0x74, 0x6c, 0x53, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x46, 0x69, 0x6e, 0x69, 0x73, + 0x68, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x64, 0x65, + 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x44, 0x65, 0x61, 0x64, + 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, + 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0c, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x4c, 0x69, 0x6d, 0x69, 0x74, + 0x2a, 0x63, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, + 0x49, 0x43, 0x59, 0x5f, 0x4e, 0x45, 0x56, 0x45, 0x52, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x52, + 0x45, 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x4f, 0x4e, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x52, 0x45, + 0x53, 0x54, 0x41, 0x52, 0x54, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x41, 0x4c, 0x57, + 0x41, 0x59, 0x53, 0x10, 0x02, 0x2a, 0x60, 0x0a, 0x0e, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x50, 0x6f, + 0x64, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4c, 0x45, 0x41, 0x4e, + 0x50, 0x4f, 0x44, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, + 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4c, 0x45, 0x41, 0x4e, 0x50, 0x4f, 0x44, 0x5f, 0x50, 0x4f, + 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x17, + 0x0a, 0x13, 0x43, 0x4c, 0x45, 0x41, 0x4e, 0x50, 0x4f, 0x44, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, + 0x59, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x02, 0x42, 0xf1, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, + 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xe2, 0x02, 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, + 0x77, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x3a, 0x3a, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_kubeflow_common_proto_rawDescOnce sync.Once + file_flyteidl_plugins_kubeflow_common_proto_rawDescData = file_flyteidl_plugins_kubeflow_common_proto_rawDesc +) + +func file_flyteidl_plugins_kubeflow_common_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_kubeflow_common_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_kubeflow_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_common_proto_rawDescData) + }) + return file_flyteidl_plugins_kubeflow_common_proto_rawDescData +} + +var file_flyteidl_plugins_kubeflow_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_flyteidl_plugins_kubeflow_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_plugins_kubeflow_common_proto_goTypes = []interface{}{ + (RestartPolicy)(0), // 0: flyteidl.plugins.kubeflow.RestartPolicy + (CleanPodPolicy)(0), // 1: flyteidl.plugins.kubeflow.CleanPodPolicy + (*RunPolicy)(nil), // 2: flyteidl.plugins.kubeflow.RunPolicy +} +var file_flyteidl_plugins_kubeflow_common_proto_depIdxs = []int32{ + 1, // 0: flyteidl.plugins.kubeflow.RunPolicy.clean_pod_policy:type_name -> flyteidl.plugins.kubeflow.CleanPodPolicy + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_kubeflow_common_proto_init() } +func file_flyteidl_plugins_kubeflow_common_proto_init() { + if File_flyteidl_plugins_kubeflow_common_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_kubeflow_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RunPolicy); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_kubeflow_common_proto_rawDesc, + NumEnums: 2, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_kubeflow_common_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_kubeflow_common_proto_depIdxs, + EnumInfos: file_flyteidl_plugins_kubeflow_common_proto_enumTypes, + MessageInfos: file_flyteidl_plugins_kubeflow_common_proto_msgTypes, + }.Build() + File_flyteidl_plugins_kubeflow_common_proto = out.File + file_flyteidl_plugins_kubeflow_common_proto_rawDesc = nil + file_flyteidl_plugins_kubeflow_common_proto_goTypes = nil + file_flyteidl_plugins_kubeflow_common_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go new file mode 100644 index 0000000000..4dcea4912a --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go @@ -0,0 +1,336 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/kubeflow/mpi.proto + +package plugins + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator +type DistributedMPITrainingTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Worker replicas spec + WorkerReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` + // Master replicas spec + LauncherReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,2,opt,name=launcher_replicas,json=launcherReplicas,proto3" json:"launcher_replicas,omitempty"` + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` + // Number of slots per worker + Slots int32 `protobuf:"varint,4,opt,name=slots,proto3" json:"slots,omitempty"` +} + +func (x *DistributedMPITrainingTask) Reset() { + *x = DistributedMPITrainingTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedMPITrainingTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedMPITrainingTask) ProtoMessage() {} + +func (x *DistributedMPITrainingTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedMPITrainingTask.ProtoReflect.Descriptor instead. +func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_mpi_proto_rawDescGZIP(), []int{0} +} + +func (x *DistributedMPITrainingTask) GetWorkerReplicas() *DistributedMPITrainingReplicaSpec { + if x != nil { + return x.WorkerReplicas + } + return nil +} + +func (x *DistributedMPITrainingTask) GetLauncherReplicas() *DistributedMPITrainingReplicaSpec { + if x != nil { + return x.LauncherReplicas + } + return nil +} + +func (x *DistributedMPITrainingTask) GetRunPolicy() *RunPolicy { + if x != nil { + return x.RunPolicy + } + return nil +} + +func (x *DistributedMPITrainingTask) GetSlots() int32 { + if x != nil { + return x.Slots + } + return 0 +} + +// Replica specification for distributed MPI training +type DistributedMPITrainingReplicaSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of replicas + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Image used for the replica group + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources required for the replica group + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // Restart policy determines whether pods will be restarted when they exit + RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` + // MPI sometimes requires different command set for different replica groups + Command []string `protobuf:"bytes,5,rep,name=command,proto3" json:"command,omitempty"` +} + +func (x *DistributedMPITrainingReplicaSpec) Reset() { + *x = DistributedMPITrainingReplicaSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedMPITrainingReplicaSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedMPITrainingReplicaSpec) ProtoMessage() {} + +func (x *DistributedMPITrainingReplicaSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedMPITrainingReplicaSpec.ProtoReflect.Descriptor instead. +func (*DistributedMPITrainingReplicaSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_mpi_proto_rawDescGZIP(), []int{1} +} + +func (x *DistributedMPITrainingReplicaSpec) GetReplicas() int32 { + if x != nil { + return x.Replicas + } + return 0 +} + +func (x *DistributedMPITrainingReplicaSpec) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *DistributedMPITrainingReplicaSpec) GetResources() *core.Resources { + if x != nil { + return x.Resources + } + return nil +} + +func (x *DistributedMPITrainingReplicaSpec) GetRestartPolicy() RestartPolicy { + if x != nil { + return x.RestartPolicy + } + return RestartPolicy_RESTART_POLICY_NEVER +} + +func (x *DistributedMPITrainingReplicaSpec) GetCommand() []string { + if x != nil { + return x.Command + } + return nil +} + +var File_flyteidl_plugins_kubeflow_mpi_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x6d, 0x70, 0x69, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, + 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x6b, 0x75, + 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x02, 0x0a, 0x1a, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x64, 0x4d, 0x50, 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, + 0x73, 0x6b, 0x12, 0x65, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, + 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x64, 0x4d, 0x50, 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x69, 0x0a, 0x11, 0x6c, 0x61, 0x75, + 0x6e, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x4d, 0x50, 0x49, 0x54, + 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, + 0x65, 0x63, 0x52, 0x10, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x75, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, + 0x72, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x6c, 0x6f, + 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x22, + 0xf8, 0x01, 0x0a, 0x21, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x4d, + 0x50, 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, + 0x4f, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x42, 0xee, 0x01, 0x0a, 0x1d, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x42, 0x08, 0x4d, 0x70, + 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, + 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xe2, 0x02, 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, + 0x77, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x3a, 0x3a, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_kubeflow_mpi_proto_rawDescOnce sync.Once + file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData = file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc +) + +func file_flyteidl_plugins_kubeflow_mpi_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_kubeflow_mpi_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData) + }) + return file_flyteidl_plugins_kubeflow_mpi_proto_rawDescData +} + +var file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_flyteidl_plugins_kubeflow_mpi_proto_goTypes = []interface{}{ + (*DistributedMPITrainingTask)(nil), // 0: flyteidl.plugins.kubeflow.DistributedMPITrainingTask + (*DistributedMPITrainingReplicaSpec)(nil), // 1: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec + (*RunPolicy)(nil), // 2: flyteidl.plugins.kubeflow.RunPolicy + (*core.Resources)(nil), // 3: flyteidl.core.Resources + (RestartPolicy)(0), // 4: flyteidl.plugins.kubeflow.RestartPolicy +} +var file_flyteidl_plugins_kubeflow_mpi_proto_depIdxs = []int32{ + 1, // 0: flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec + 1, // 1: flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec + 2, // 2: flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy:type_name -> flyteidl.plugins.kubeflow.RunPolicy + 3, // 3: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources:type_name -> flyteidl.core.Resources + 4, // 4: flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.restart_policy:type_name -> flyteidl.plugins.kubeflow.RestartPolicy + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_kubeflow_mpi_proto_init() } +func file_flyteidl_plugins_kubeflow_mpi_proto_init() { + if File_flyteidl_plugins_kubeflow_mpi_proto != nil { + return + } + file_flyteidl_plugins_kubeflow_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedMPITrainingTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedMPITrainingReplicaSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_kubeflow_mpi_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_kubeflow_mpi_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_kubeflow_mpi_proto_msgTypes, + }.Build() + File_flyteidl_plugins_kubeflow_mpi_proto = out.File + file_flyteidl_plugins_kubeflow_mpi_proto_rawDesc = nil + file_flyteidl_plugins_kubeflow_mpi_proto_goTypes = nil + file_flyteidl_plugins_kubeflow_mpi_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go new file mode 100644 index 0000000000..4dbabf4ae3 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go @@ -0,0 +1,436 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/kubeflow/pytorch.proto + +package plugins + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Custom proto for torch elastic config for distributed training using +// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go +type ElasticConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` + MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` + MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` + NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` + MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` +} + +func (x *ElasticConfig) Reset() { + *x = ElasticConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ElasticConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ElasticConfig) ProtoMessage() {} + +func (x *ElasticConfig) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ElasticConfig.ProtoReflect.Descriptor instead. +func (*ElasticConfig) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP(), []int{0} +} + +func (x *ElasticConfig) GetRdzvBackend() string { + if x != nil { + return x.RdzvBackend + } + return "" +} + +func (x *ElasticConfig) GetMinReplicas() int32 { + if x != nil { + return x.MinReplicas + } + return 0 +} + +func (x *ElasticConfig) GetMaxReplicas() int32 { + if x != nil { + return x.MaxReplicas + } + return 0 +} + +func (x *ElasticConfig) GetNprocPerNode() int32 { + if x != nil { + return x.NprocPerNode + } + return 0 +} + +func (x *ElasticConfig) GetMaxRestarts() int32 { + if x != nil { + return x.MaxRestarts + } + return 0 +} + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator +type DistributedPyTorchTrainingTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Worker replicas spec + WorkerReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` + // Master replicas spec, master replicas can only have 1 replica + MasterReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,2,opt,name=master_replicas,json=masterReplicas,proto3" json:"master_replicas,omitempty"` + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` + // config for an elastic pytorch job + ElasticConfig *ElasticConfig `protobuf:"bytes,4,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` +} + +func (x *DistributedPyTorchTrainingTask) Reset() { + *x = DistributedPyTorchTrainingTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedPyTorchTrainingTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedPyTorchTrainingTask) ProtoMessage() {} + +func (x *DistributedPyTorchTrainingTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedPyTorchTrainingTask.ProtoReflect.Descriptor instead. +func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP(), []int{1} +} + +func (x *DistributedPyTorchTrainingTask) GetWorkerReplicas() *DistributedPyTorchTrainingReplicaSpec { + if x != nil { + return x.WorkerReplicas + } + return nil +} + +func (x *DistributedPyTorchTrainingTask) GetMasterReplicas() *DistributedPyTorchTrainingReplicaSpec { + if x != nil { + return x.MasterReplicas + } + return nil +} + +func (x *DistributedPyTorchTrainingTask) GetRunPolicy() *RunPolicy { + if x != nil { + return x.RunPolicy + } + return nil +} + +func (x *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { + if x != nil { + return x.ElasticConfig + } + return nil +} + +type DistributedPyTorchTrainingReplicaSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of replicas + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Image used for the replica group + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources required for the replica group + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // RestartPolicy determines whether pods will be restarted when they exit + RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` +} + +func (x *DistributedPyTorchTrainingReplicaSpec) Reset() { + *x = DistributedPyTorchTrainingReplicaSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedPyTorchTrainingReplicaSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedPyTorchTrainingReplicaSpec) ProtoMessage() {} + +func (x *DistributedPyTorchTrainingReplicaSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedPyTorchTrainingReplicaSpec.ProtoReflect.Descriptor instead. +func (*DistributedPyTorchTrainingReplicaSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP(), []int{2} +} + +func (x *DistributedPyTorchTrainingReplicaSpec) GetReplicas() int32 { + if x != nil { + return x.Replicas + } + return 0 +} + +func (x *DistributedPyTorchTrainingReplicaSpec) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *DistributedPyTorchTrainingReplicaSpec) GetResources() *core.Resources { + if x != nil { + return x.Resources + } + return nil +} + +func (x *DistributedPyTorchTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { + if x != nil { + return x.RestartPolicy + } + return RestartPolicy_RESTART_POLICY_NEVER +} + +var File_flyteidl_plugins_kubeflow_pytorch_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc = []byte{ + 0x0a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x70, 0x79, 0x74, 0x6f, + 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, + 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, + 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x45, 0x6c, 0x61, 0x73, + 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x64, 0x7a, + 0x76, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x72, 0x64, 0x7a, 0x76, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x0c, + 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6e, 0x70, 0x72, 0x6f, + 0x63, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, + 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, + 0x6d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x22, 0x8c, 0x03, 0x0a, 0x1e, + 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, + 0x63, 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x69, + 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, + 0x79, 0x54, 0x6f, 0x72, 0x63, 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x69, 0x0a, 0x0f, 0x6d, 0x61, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, 0x63, + 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x75, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, + 0x72, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x4f, 0x0a, 0x0e, 0x65, 0x6c, 0x61, + 0x73, 0x74, 0x69, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6c, + 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x6c, 0x61, + 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xe2, 0x01, 0x0a, 0x25, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, 0x63, + 0x68, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x4f, + 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, + 0xf2, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, + 0x77, 0x42, 0x0c, 0x50, 0x79, 0x74, 0x6f, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, + 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xe2, 0x02, + 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x3a, 0x3a, 0x4b, 0x75, 0x62, 0x65, + 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescOnce sync.Once + file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData = file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc +) + +func file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData) + }) + return file_flyteidl_plugins_kubeflow_pytorch_proto_rawDescData +} + +var file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_flyteidl_plugins_kubeflow_pytorch_proto_goTypes = []interface{}{ + (*ElasticConfig)(nil), // 0: flyteidl.plugins.kubeflow.ElasticConfig + (*DistributedPyTorchTrainingTask)(nil), // 1: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask + (*DistributedPyTorchTrainingReplicaSpec)(nil), // 2: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec + (*RunPolicy)(nil), // 3: flyteidl.plugins.kubeflow.RunPolicy + (*core.Resources)(nil), // 4: flyteidl.core.Resources + (RestartPolicy)(0), // 5: flyteidl.plugins.kubeflow.RestartPolicy +} +var file_flyteidl_plugins_kubeflow_pytorch_proto_depIdxs = []int32{ + 2, // 0: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec + 2, // 1: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec + 3, // 2: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy:type_name -> flyteidl.plugins.kubeflow.RunPolicy + 0, // 3: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config:type_name -> flyteidl.plugins.kubeflow.ElasticConfig + 4, // 4: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources:type_name -> flyteidl.core.Resources + 5, // 5: flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.restart_policy:type_name -> flyteidl.plugins.kubeflow.RestartPolicy + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_kubeflow_pytorch_proto_init() } +func file_flyteidl_plugins_kubeflow_pytorch_proto_init() { + if File_flyteidl_plugins_kubeflow_pytorch_proto != nil { + return + } + file_flyteidl_plugins_kubeflow_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ElasticConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedPyTorchTrainingTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedPyTorchTrainingReplicaSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_kubeflow_pytorch_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_kubeflow_pytorch_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_kubeflow_pytorch_proto_msgTypes, + }.Build() + File_flyteidl_plugins_kubeflow_pytorch_proto = out.File + file_flyteidl_plugins_kubeflow_pytorch_proto_rawDesc = nil + file_flyteidl_plugins_kubeflow_pytorch_proto_goTypes = nil + file_flyteidl_plugins_kubeflow_pytorch_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go new file mode 100644 index 0000000000..ef6ec1899b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go @@ -0,0 +1,350 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/kubeflow/tensorflow.proto + +package plugins + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator +type DistributedTensorflowTrainingTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Worker replicas spec + WorkerReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` + // Parameter server replicas spec + PsReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` + // Chief replicas spec + ChiefReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` + // RunPolicy encapsulates various runtime policies of the distributed training + // job, for example how to clean up resources and how long the job can stay + // active. + RunPolicy *RunPolicy `protobuf:"bytes,4,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` + // Evaluator replicas spec + EvaluatorReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,5,opt,name=evaluator_replicas,json=evaluatorReplicas,proto3" json:"evaluator_replicas,omitempty"` +} + +func (x *DistributedTensorflowTrainingTask) Reset() { + *x = DistributedTensorflowTrainingTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedTensorflowTrainingTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedTensorflowTrainingTask) ProtoMessage() {} + +func (x *DistributedTensorflowTrainingTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedTensorflowTrainingTask.ProtoReflect.Descriptor instead. +func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescGZIP(), []int{0} +} + +func (x *DistributedTensorflowTrainingTask) GetWorkerReplicas() *DistributedTensorflowTrainingReplicaSpec { + if x != nil { + return x.WorkerReplicas + } + return nil +} + +func (x *DistributedTensorflowTrainingTask) GetPsReplicas() *DistributedTensorflowTrainingReplicaSpec { + if x != nil { + return x.PsReplicas + } + return nil +} + +func (x *DistributedTensorflowTrainingTask) GetChiefReplicas() *DistributedTensorflowTrainingReplicaSpec { + if x != nil { + return x.ChiefReplicas + } + return nil +} + +func (x *DistributedTensorflowTrainingTask) GetRunPolicy() *RunPolicy { + if x != nil { + return x.RunPolicy + } + return nil +} + +func (x *DistributedTensorflowTrainingTask) GetEvaluatorReplicas() *DistributedTensorflowTrainingReplicaSpec { + if x != nil { + return x.EvaluatorReplicas + } + return nil +} + +type DistributedTensorflowTrainingReplicaSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Number of replicas + Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Image used for the replica group + Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` + // Resources required for the replica group + Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` + // RestartPolicy Determines whether pods will be restarted when they exit + RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` +} + +func (x *DistributedTensorflowTrainingReplicaSpec) Reset() { + *x = DistributedTensorflowTrainingReplicaSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedTensorflowTrainingReplicaSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedTensorflowTrainingReplicaSpec) ProtoMessage() {} + +func (x *DistributedTensorflowTrainingReplicaSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedTensorflowTrainingReplicaSpec.ProtoReflect.Descriptor instead. +func (*DistributedTensorflowTrainingReplicaSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescGZIP(), []int{1} +} + +func (x *DistributedTensorflowTrainingReplicaSpec) GetReplicas() int32 { + if x != nil { + return x.Replicas + } + return 0 +} + +func (x *DistributedTensorflowTrainingReplicaSpec) GetImage() string { + if x != nil { + return x.Image + } + return "" +} + +func (x *DistributedTensorflowTrainingReplicaSpec) GetResources() *core.Resources { + if x != nil { + return x.Resources + } + return nil +} + +func (x *DistributedTensorflowTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { + if x != nil { + return x.RestartPolicy + } + return RestartPolicy_RESTART_POLICY_NEVER +} + +var File_flyteidl_plugins_kubeflow_tensorflow_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x74, 0x65, 0x6e, 0x73, + 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, + 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x26, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2f, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x04, 0x0a, 0x21, 0x44, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, + 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, + 0x12, 0x6c, 0x0a, 0x0f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, + 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0e, + 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x64, + 0x0a, 0x0b, 0x70, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, + 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, + 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0a, 0x70, 0x73, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x12, 0x6a, 0x0a, 0x0e, 0x63, 0x68, 0x69, 0x65, 0x66, 0x5f, 0x72, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, + 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, 0x72, + 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x53, 0x70, 0x65, + 0x63, 0x52, 0x0d, 0x63, 0x68, 0x69, 0x65, 0x66, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, + 0x12, 0x43, 0x0a, 0x0a, 0x72, 0x75, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x52, 0x75, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x09, 0x72, 0x75, 0x6e, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x72, 0x0a, 0x12, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x43, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x69, + 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, + 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x52, 0x11, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x22, 0xe5, 0x01, 0x0a, 0x28, 0x44, 0x69, + 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, + 0x6c, 0x6f, 0x77, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x53, 0x70, 0x65, 0x63, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x12, 0x4f, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, + 0x63, 0x79, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x61, 0x72, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x42, 0xf5, 0x01, 0x0a, 0x1d, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x6b, 0x75, 0x62, 0x65, 0x66, + 0x6c, 0x6f, 0x77, 0x42, 0x0f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x4b, 0xaa, 0x02, 0x19, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x4b, + 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0xca, 0x02, 0x19, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, + 0x6c, 0x6f, 0x77, 0xe2, 0x02, 0x25, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1b, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x3a, + 0x3a, 0x4b, 0x75, 0x62, 0x65, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescOnce sync.Once + file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData = file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc +) + +func file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData) + }) + return file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDescData +} + +var file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_flyteidl_plugins_kubeflow_tensorflow_proto_goTypes = []interface{}{ + (*DistributedTensorflowTrainingTask)(nil), // 0: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask + (*DistributedTensorflowTrainingReplicaSpec)(nil), // 1: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec + (*RunPolicy)(nil), // 2: flyteidl.plugins.kubeflow.RunPolicy + (*core.Resources)(nil), // 3: flyteidl.core.Resources + (RestartPolicy)(0), // 4: flyteidl.plugins.kubeflow.RestartPolicy +} +var file_flyteidl_plugins_kubeflow_tensorflow_proto_depIdxs = []int32{ + 1, // 0: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec + 1, // 1: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec + 1, // 2: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec + 2, // 3: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy:type_name -> flyteidl.plugins.kubeflow.RunPolicy + 1, // 4: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.evaluator_replicas:type_name -> flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec + 3, // 5: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources:type_name -> flyteidl.core.Resources + 4, // 6: flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.restart_policy:type_name -> flyteidl.plugins.kubeflow.RestartPolicy + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_kubeflow_tensorflow_proto_init() } +func file_flyteidl_plugins_kubeflow_tensorflow_proto_init() { + if File_flyteidl_plugins_kubeflow_tensorflow_proto != nil { + return + } + file_flyteidl_plugins_kubeflow_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedTensorflowTrainingTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedTensorflowTrainingReplicaSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_kubeflow_tensorflow_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_kubeflow_tensorflow_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_kubeflow_tensorflow_proto_msgTypes, + }.Build() + File_flyteidl_plugins_kubeflow_tensorflow_proto = out.File + file_flyteidl_plugins_kubeflow_tensorflow_proto_rawDesc = nil + file_flyteidl_plugins_kubeflow_tensorflow_proto_goTypes = nil + file_flyteidl_plugins_kubeflow_tensorflow_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go new file mode 100644 index 0000000000..9f3f501444 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go @@ -0,0 +1,184 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/mpi.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator +type DistributedMPITrainingTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // number of worker spawned in the cluster for this job + NumWorkers int32 `protobuf:"varint,1,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty"` + // number of launcher replicas spawned in the cluster for this job + // The launcher pod invokes mpirun and communicates with worker pods through MPI. + NumLauncherReplicas int32 `protobuf:"varint,2,opt,name=num_launcher_replicas,json=numLauncherReplicas,proto3" json:"num_launcher_replicas,omitempty"` + // number of slots per worker used in hostfile. + // The available slots (GPUs) in each pod. + Slots int32 `protobuf:"varint,3,opt,name=slots,proto3" json:"slots,omitempty"` +} + +func (x *DistributedMPITrainingTask) Reset() { + *x = DistributedMPITrainingTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_mpi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedMPITrainingTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedMPITrainingTask) ProtoMessage() {} + +func (x *DistributedMPITrainingTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_mpi_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedMPITrainingTask.ProtoReflect.Descriptor instead. +func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_mpi_proto_rawDescGZIP(), []int{0} +} + +func (x *DistributedMPITrainingTask) GetNumWorkers() int32 { + if x != nil { + return x.NumWorkers + } + return 0 +} + +func (x *DistributedMPITrainingTask) GetNumLauncherReplicas() int32 { + if x != nil { + return x.NumLauncherReplicas + } + return 0 +} + +func (x *DistributedMPITrainingTask) GetSlots() int32 { + if x != nil { + return x.Slots + } + return 0 +} + +var File_flyteidl_plugins_mpi_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_mpi_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x6d, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0x87, + 0x01, 0x0a, 0x1a, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x4d, 0x50, + 0x49, 0x54, 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1f, 0x0a, + 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x32, + 0x0a, 0x15, 0x6e, 0x75, 0x6d, 0x5f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x5f, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x6e, + 0x75, 0x6d, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x65, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x73, 0x6c, 0x6f, 0x74, 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x42, 0x08, 0x4d, 0x70, 0x69, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, + 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_mpi_proto_rawDescOnce sync.Once + file_flyteidl_plugins_mpi_proto_rawDescData = file_flyteidl_plugins_mpi_proto_rawDesc +) + +func file_flyteidl_plugins_mpi_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_mpi_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_mpi_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_mpi_proto_rawDescData) + }) + return file_flyteidl_plugins_mpi_proto_rawDescData +} + +var file_flyteidl_plugins_mpi_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_plugins_mpi_proto_goTypes = []interface{}{ + (*DistributedMPITrainingTask)(nil), // 0: flyteidl.plugins.DistributedMPITrainingTask +} +var file_flyteidl_plugins_mpi_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_mpi_proto_init() } +func file_flyteidl_plugins_mpi_proto_init() { + if File_flyteidl_plugins_mpi_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_mpi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedMPITrainingTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_mpi_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_mpi_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_mpi_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_mpi_proto_msgTypes, + }.Build() + File_flyteidl_plugins_mpi_proto = out.File + file_flyteidl_plugins_mpi_proto_rawDesc = nil + file_flyteidl_plugins_mpi_proto_goTypes = nil + file_flyteidl_plugins_mpi_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go new file mode 100644 index 0000000000..e832baf5c6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go @@ -0,0 +1,187 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/presto.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field +// of a Presto task's TaskTemplate +type PrestoQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RoutingGroup string `protobuf:"bytes,1,opt,name=routing_group,json=routingGroup,proto3" json:"routing_group,omitempty"` + Catalog string `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"` + Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` + Statement string `protobuf:"bytes,4,opt,name=statement,proto3" json:"statement,omitempty"` +} + +func (x *PrestoQuery) Reset() { + *x = PrestoQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_presto_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PrestoQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PrestoQuery) ProtoMessage() {} + +func (x *PrestoQuery) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_presto_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PrestoQuery.ProtoReflect.Descriptor instead. +func (*PrestoQuery) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_presto_proto_rawDescGZIP(), []int{0} +} + +func (x *PrestoQuery) GetRoutingGroup() string { + if x != nil { + return x.RoutingGroup + } + return "" +} + +func (x *PrestoQuery) GetCatalog() string { + if x != nil { + return x.Catalog + } + return "" +} + +func (x *PrestoQuery) GetSchema() string { + if x != nil { + return x.Schema + } + return "" +} + +func (x *PrestoQuery) GetStatement() string { + if x != nil { + return x.Statement + } + return "" +} + +var File_flyteidl_plugins_presto_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_presto_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x22, 0x82, 0x01, 0x0a, 0x0b, 0x50, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, + 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0xc3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, + 0x0b, 0x50, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, + 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_presto_proto_rawDescOnce sync.Once + file_flyteidl_plugins_presto_proto_rawDescData = file_flyteidl_plugins_presto_proto_rawDesc +) + +func file_flyteidl_plugins_presto_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_presto_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_presto_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_presto_proto_rawDescData) + }) + return file_flyteidl_plugins_presto_proto_rawDescData +} + +var file_flyteidl_plugins_presto_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_plugins_presto_proto_goTypes = []interface{}{ + (*PrestoQuery)(nil), // 0: flyteidl.plugins.PrestoQuery +} +var file_flyteidl_plugins_presto_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_presto_proto_init() } +func file_flyteidl_plugins_presto_proto_init() { + if File_flyteidl_plugins_presto_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_presto_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PrestoQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_presto_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_presto_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_presto_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_presto_proto_msgTypes, + }.Build() + File_flyteidl_plugins_presto_proto = out.File + file_flyteidl_plugins_presto_proto_rawDesc = nil + file_flyteidl_plugins_presto_proto_goTypes = nil + file_flyteidl_plugins_presto_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go new file mode 100644 index 0000000000..a77ded5473 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go @@ -0,0 +1,279 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/pytorch.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Custom proto for torch elastic config for distributed training using +// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go +type ElasticConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` + MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` + MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` + NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` + MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` +} + +func (x *ElasticConfig) Reset() { + *x = ElasticConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ElasticConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ElasticConfig) ProtoMessage() {} + +func (x *ElasticConfig) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ElasticConfig.ProtoReflect.Descriptor instead. +func (*ElasticConfig) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_pytorch_proto_rawDescGZIP(), []int{0} +} + +func (x *ElasticConfig) GetRdzvBackend() string { + if x != nil { + return x.RdzvBackend + } + return "" +} + +func (x *ElasticConfig) GetMinReplicas() int32 { + if x != nil { + return x.MinReplicas + } + return 0 +} + +func (x *ElasticConfig) GetMaxReplicas() int32 { + if x != nil { + return x.MaxReplicas + } + return 0 +} + +func (x *ElasticConfig) GetNprocPerNode() int32 { + if x != nil { + return x.NprocPerNode + } + return 0 +} + +func (x *ElasticConfig) GetMaxRestarts() int32 { + if x != nil { + return x.MaxRestarts + } + return 0 +} + +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator +type DistributedPyTorchTrainingTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // number of worker replicas spawned in the cluster for this job + Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` + // config for an elastic pytorch job + ElasticConfig *ElasticConfig `protobuf:"bytes,2,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` +} + +func (x *DistributedPyTorchTrainingTask) Reset() { + *x = DistributedPyTorchTrainingTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedPyTorchTrainingTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedPyTorchTrainingTask) ProtoMessage() {} + +func (x *DistributedPyTorchTrainingTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_pytorch_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedPyTorchTrainingTask.ProtoReflect.Descriptor instead. +func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_pytorch_proto_rawDescGZIP(), []int{1} +} + +func (x *DistributedPyTorchTrainingTask) GetWorkers() int32 { + if x != nil { + return x.Workers + } + return 0 +} + +func (x *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { + if x != nil { + return x.ElasticConfig + } + return nil +} + +var File_flyteidl_plugins_pytorch_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_pytorch_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x70, 0x79, 0x74, 0x6f, 0x72, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x0d, 0x45, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x64, 0x7a, 0x76, 0x5f, 0x62, 0x61, 0x63, + 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x64, 0x7a, 0x76, + 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x72, + 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, + 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, + 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x24, 0x0a, + 0x0e, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6e, 0x70, 0x72, 0x6f, 0x63, 0x50, 0x65, 0x72, 0x4e, + 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x1e, 0x44, 0x69, 0x73, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x50, 0x79, 0x54, 0x6f, 0x72, 0x63, 0x68, 0x54, 0x72, 0x61, + 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x73, 0x12, 0x46, 0x0a, 0x0e, 0x65, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x45, + 0x6c, 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x65, 0x6c, + 0x61, 0x73, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0xc4, 0x01, 0x0a, 0x14, + 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0c, 0x50, 0x79, 0x74, 0x6f, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, + 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, + 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_pytorch_proto_rawDescOnce sync.Once + file_flyteidl_plugins_pytorch_proto_rawDescData = file_flyteidl_plugins_pytorch_proto_rawDesc +) + +func file_flyteidl_plugins_pytorch_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_pytorch_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_pytorch_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_pytorch_proto_rawDescData) + }) + return file_flyteidl_plugins_pytorch_proto_rawDescData +} + +var file_flyteidl_plugins_pytorch_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_flyteidl_plugins_pytorch_proto_goTypes = []interface{}{ + (*ElasticConfig)(nil), // 0: flyteidl.plugins.ElasticConfig + (*DistributedPyTorchTrainingTask)(nil), // 1: flyteidl.plugins.DistributedPyTorchTrainingTask +} +var file_flyteidl_plugins_pytorch_proto_depIdxs = []int32{ + 0, // 0: flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config:type_name -> flyteidl.plugins.ElasticConfig + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_pytorch_proto_init() } +func file_flyteidl_plugins_pytorch_proto_init() { + if File_flyteidl_plugins_pytorch_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_pytorch_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ElasticConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_pytorch_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedPyTorchTrainingTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_pytorch_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_pytorch_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_pytorch_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_pytorch_proto_msgTypes, + }.Build() + File_flyteidl_plugins_pytorch_proto = out.File + file_flyteidl_plugins_pytorch_proto_rawDesc = nil + file_flyteidl_plugins_pytorch_proto_goTypes = nil + file_flyteidl_plugins_pytorch_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go new file mode 100644 index 0000000000..9b7a16bbe6 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go @@ -0,0 +1,346 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/qubole.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Defines a query to execute on a hive cluster. +type HiveQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + TimeoutSec uint32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` + RetryCount uint32 `protobuf:"varint,3,opt,name=retryCount,proto3" json:"retryCount,omitempty"` +} + +func (x *HiveQuery) Reset() { + *x = HiveQuery{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_qubole_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HiveQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HiveQuery) ProtoMessage() {} + +func (x *HiveQuery) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_qubole_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HiveQuery.ProtoReflect.Descriptor instead. +func (*HiveQuery) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_qubole_proto_rawDescGZIP(), []int{0} +} + +func (x *HiveQuery) GetQuery() string { + if x != nil { + return x.Query + } + return "" +} + +func (x *HiveQuery) GetTimeoutSec() uint32 { + if x != nil { + return x.TimeoutSec + } + return 0 +} + +func (x *HiveQuery) GetRetryCount() uint32 { + if x != nil { + return x.RetryCount + } + return 0 +} + +// Defines a collection of hive queries. +type HiveQueryCollection struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Queries []*HiveQuery `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` +} + +func (x *HiveQueryCollection) Reset() { + *x = HiveQueryCollection{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_qubole_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HiveQueryCollection) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HiveQueryCollection) ProtoMessage() {} + +func (x *HiveQueryCollection) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_qubole_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HiveQueryCollection.ProtoReflect.Descriptor instead. +func (*HiveQueryCollection) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_qubole_proto_rawDescGZIP(), []int{1} +} + +func (x *HiveQueryCollection) GetQueries() []*HiveQuery { + if x != nil { + return x.Queries + } + return nil +} + +// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +// of a hive task's TaskTemplate +type QuboleHiveJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ClusterLabel string `protobuf:"bytes,1,opt,name=cluster_label,json=clusterLabel,proto3" json:"cluster_label,omitempty"` + // Deprecated: Marked as deprecated in flyteidl/plugins/qubole.proto. + QueryCollection *HiveQueryCollection `protobuf:"bytes,2,opt,name=query_collection,json=queryCollection,proto3" json:"query_collection,omitempty"` + Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` + Query *HiveQuery `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *QuboleHiveJob) Reset() { + *x = QuboleHiveJob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_qubole_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QuboleHiveJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QuboleHiveJob) ProtoMessage() {} + +func (x *QuboleHiveJob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_qubole_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use QuboleHiveJob.ProtoReflect.Descriptor instead. +func (*QuboleHiveJob) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_qubole_proto_rawDescGZIP(), []int{2} +} + +func (x *QuboleHiveJob) GetClusterLabel() string { + if x != nil { + return x.ClusterLabel + } + return "" +} + +// Deprecated: Marked as deprecated in flyteidl/plugins/qubole.proto. +func (x *QuboleHiveJob) GetQueryCollection() *HiveQueryCollection { + if x != nil { + return x.QueryCollection + } + return nil +} + +func (x *QuboleHiveJob) GetTags() []string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *QuboleHiveJob) GetQuery() *HiveQuery { + if x != nil { + return x.Query + } + return nil +} + +var File_flyteidl_plugins_qubole_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_qubole_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x71, 0x75, 0x62, 0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x22, 0x62, 0x0a, 0x09, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, + 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, + 0x73, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x6f, + 0x75, 0x74, 0x53, 0x65, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x13, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x07, + 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x2e, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, + 0x69, 0x65, 0x73, 0x22, 0xd1, 0x01, 0x0a, 0x0d, 0x51, 0x75, 0x62, 0x6f, 0x6c, 0x65, 0x48, 0x69, + 0x76, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x54, 0x0a, 0x10, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x02, 0x18, 0x01, 0x52, + 0x0f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, + 0x74, 0x61, 0x67, 0x73, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x48, 0x69, 0x76, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x42, 0xc3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x42, 0x0b, 0x51, 0x75, 0x62, 0x6f, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, + 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_qubole_proto_rawDescOnce sync.Once + file_flyteidl_plugins_qubole_proto_rawDescData = file_flyteidl_plugins_qubole_proto_rawDesc +) + +func file_flyteidl_plugins_qubole_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_qubole_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_qubole_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_qubole_proto_rawDescData) + }) + return file_flyteidl_plugins_qubole_proto_rawDescData +} + +var file_flyteidl_plugins_qubole_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_flyteidl_plugins_qubole_proto_goTypes = []interface{}{ + (*HiveQuery)(nil), // 0: flyteidl.plugins.HiveQuery + (*HiveQueryCollection)(nil), // 1: flyteidl.plugins.HiveQueryCollection + (*QuboleHiveJob)(nil), // 2: flyteidl.plugins.QuboleHiveJob +} +var file_flyteidl_plugins_qubole_proto_depIdxs = []int32{ + 0, // 0: flyteidl.plugins.HiveQueryCollection.queries:type_name -> flyteidl.plugins.HiveQuery + 1, // 1: flyteidl.plugins.QuboleHiveJob.query_collection:type_name -> flyteidl.plugins.HiveQueryCollection + 0, // 2: flyteidl.plugins.QuboleHiveJob.query:type_name -> flyteidl.plugins.HiveQuery + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_qubole_proto_init() } +func file_flyteidl_plugins_qubole_proto_init() { + if File_flyteidl_plugins_qubole_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_qubole_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HiveQuery); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_qubole_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HiveQueryCollection); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_qubole_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QuboleHiveJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_qubole_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_qubole_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_qubole_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_qubole_proto_msgTypes, + }.Build() + File_flyteidl_plugins_qubole_proto = out.File + file_flyteidl_plugins_qubole_proto_rawDesc = nil + file_flyteidl_plugins_qubole_proto_goTypes = nil + file_flyteidl_plugins_qubole_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go new file mode 100644 index 0000000000..8e4483fabc --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go @@ -0,0 +1,490 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/ray.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// RayJobSpec defines the desired state of RayJob +type RayJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // RayClusterSpec is the cluster template to run the job + RayCluster *RayCluster `protobuf:"bytes,1,opt,name=ray_cluster,json=rayCluster,proto3" json:"ray_cluster,omitempty"` + // runtime_env is base64 encoded. + // Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments + RuntimeEnv string `protobuf:"bytes,2,opt,name=runtime_env,json=runtimeEnv,proto3" json:"runtime_env,omitempty"` + // shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. + ShutdownAfterJobFinishes bool `protobuf:"varint,3,opt,name=shutdown_after_job_finishes,json=shutdownAfterJobFinishes,proto3" json:"shutdown_after_job_finishes,omitempty"` + // ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. + TtlSecondsAfterFinished int32 `protobuf:"varint,4,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` +} + +func (x *RayJob) Reset() { + *x = RayJob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RayJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RayJob) ProtoMessage() {} + +func (x *RayJob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RayJob.ProtoReflect.Descriptor instead. +func (*RayJob) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{0} +} + +func (x *RayJob) GetRayCluster() *RayCluster { + if x != nil { + return x.RayCluster + } + return nil +} + +func (x *RayJob) GetRuntimeEnv() string { + if x != nil { + return x.RuntimeEnv + } + return "" +} + +func (x *RayJob) GetShutdownAfterJobFinishes() bool { + if x != nil { + return x.ShutdownAfterJobFinishes + } + return false +} + +func (x *RayJob) GetTtlSecondsAfterFinished() int32 { + if x != nil { + return x.TtlSecondsAfterFinished + } + return 0 +} + +// Define Ray cluster defines the desired state of RayCluster +type RayCluster struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // HeadGroupSpecs are the spec for the head pod + HeadGroupSpec *HeadGroupSpec `protobuf:"bytes,1,opt,name=head_group_spec,json=headGroupSpec,proto3" json:"head_group_spec,omitempty"` + // WorkerGroupSpecs are the specs for the worker pods + WorkerGroupSpec []*WorkerGroupSpec `protobuf:"bytes,2,rep,name=worker_group_spec,json=workerGroupSpec,proto3" json:"worker_group_spec,omitempty"` + // Whether to enable autoscaling. + EnableAutoscaling bool `protobuf:"varint,3,opt,name=enable_autoscaling,json=enableAutoscaling,proto3" json:"enable_autoscaling,omitempty"` +} + +func (x *RayCluster) Reset() { + *x = RayCluster{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RayCluster) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RayCluster) ProtoMessage() {} + +func (x *RayCluster) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RayCluster.ProtoReflect.Descriptor instead. +func (*RayCluster) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{1} +} + +func (x *RayCluster) GetHeadGroupSpec() *HeadGroupSpec { + if x != nil { + return x.HeadGroupSpec + } + return nil +} + +func (x *RayCluster) GetWorkerGroupSpec() []*WorkerGroupSpec { + if x != nil { + return x.WorkerGroupSpec + } + return nil +} + +func (x *RayCluster) GetEnableAutoscaling() bool { + if x != nil { + return x.EnableAutoscaling + } + return false +} + +// HeadGroupSpec are the spec for the head pod +type HeadGroupSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Optional. RayStartParams are the params of the start command: address, object-store-memory. + // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + RayStartParams map[string]string `protobuf:"bytes,1,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *HeadGroupSpec) Reset() { + *x = HeadGroupSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HeadGroupSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HeadGroupSpec) ProtoMessage() {} + +func (x *HeadGroupSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HeadGroupSpec.ProtoReflect.Descriptor instead. +func (*HeadGroupSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{2} +} + +func (x *HeadGroupSpec) GetRayStartParams() map[string]string { + if x != nil { + return x.RayStartParams + } + return nil +} + +// WorkerGroupSpec are the specs for the worker pods +type WorkerGroupSpec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Required. RayCluster can have multiple worker groups, and it distinguishes them by name + GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` + // Required. Desired replicas of the worker group. Defaults to 1. + Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` + // Optional. Min replicas of the worker group. MinReplicas defaults to 1. + MinReplicas int32 `protobuf:"varint,3,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` + // Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 + MaxReplicas int32 `protobuf:"varint,4,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` + // Optional. RayStartParams are the params of the start command: address, object-store-memory. + // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start + RayStartParams map[string]string `protobuf:"bytes,5,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *WorkerGroupSpec) Reset() { + *x = WorkerGroupSpec{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkerGroupSpec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerGroupSpec) ProtoMessage() {} + +func (x *WorkerGroupSpec) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_ray_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WorkerGroupSpec.ProtoReflect.Descriptor instead. +func (*WorkerGroupSpec) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_ray_proto_rawDescGZIP(), []int{3} +} + +func (x *WorkerGroupSpec) GetGroupName() string { + if x != nil { + return x.GroupName + } + return "" +} + +func (x *WorkerGroupSpec) GetReplicas() int32 { + if x != nil { + return x.Replicas + } + return 0 +} + +func (x *WorkerGroupSpec) GetMinReplicas() int32 { + if x != nil { + return x.MinReplicas + } + return 0 +} + +func (x *WorkerGroupSpec) GetMaxReplicas() int32 { + if x != nil { + return x.MaxReplicas + } + return 0 +} + +func (x *WorkerGroupSpec) GetRayStartParams() map[string]string { + if x != nil { + return x.RayStartParams + } + return nil +} + +var File_flyteidl_plugins_ray_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_ray_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0xe4, + 0x01, 0x0a, 0x06, 0x52, 0x61, 0x79, 0x4a, 0x6f, 0x62, 0x12, 0x3d, 0x0a, 0x0b, 0x72, 0x61, 0x79, + 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x2e, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x72, 0x61, + 0x79, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x75, 0x6e, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, + 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x76, 0x12, 0x3d, 0x0a, 0x1b, 0x73, 0x68, 0x75, + 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, + 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, + 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x41, 0x66, 0x74, 0x65, 0x72, 0x4a, 0x6f, 0x62, + 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x74, 0x74, 0x6c, 0x5f, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x69, + 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x74, 0x74, + 0x6c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x46, 0x69, 0x6e, + 0x69, 0x73, 0x68, 0x65, 0x64, 0x22, 0xd3, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x79, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0f, 0x68, 0x65, 0x61, 0x64, 0x5f, 0x67, 0x72, 0x6f, + 0x75, 0x70, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x2e, 0x48, 0x65, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0d, + 0x68, 0x65, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x4d, 0x0a, + 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x73, 0x70, + 0x65, 0x63, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x52, 0x0f, 0x77, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x2d, 0x0a, 0x12, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, + 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x22, 0xb1, 0x01, 0x0a, 0x0d, + 0x48, 0x65, 0x61, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x12, 0x5d, 0x0a, + 0x10, 0x72, 0x61, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, 0x63, 0x2e, 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x61, + 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x41, 0x0a, 0x13, + 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0xb6, 0x02, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x70, 0x65, 0x63, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x21, + 0x0a, 0x0c, 0x6d, 0x69, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x12, 0x5f, 0x0a, 0x10, 0x72, 0x61, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x70, 0x65, + 0x63, 0x2e, 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x72, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, 0x74, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x41, 0x0a, 0x13, 0x52, 0x61, 0x79, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0xc0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x42, 0x08, 0x52, 0x61, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, + 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, + 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_ray_proto_rawDescOnce sync.Once + file_flyteidl_plugins_ray_proto_rawDescData = file_flyteidl_plugins_ray_proto_rawDesc +) + +func file_flyteidl_plugins_ray_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_ray_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_ray_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_ray_proto_rawDescData) + }) + return file_flyteidl_plugins_ray_proto_rawDescData +} + +var file_flyteidl_plugins_ray_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_flyteidl_plugins_ray_proto_goTypes = []interface{}{ + (*RayJob)(nil), // 0: flyteidl.plugins.RayJob + (*RayCluster)(nil), // 1: flyteidl.plugins.RayCluster + (*HeadGroupSpec)(nil), // 2: flyteidl.plugins.HeadGroupSpec + (*WorkerGroupSpec)(nil), // 3: flyteidl.plugins.WorkerGroupSpec + nil, // 4: flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry + nil, // 5: flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry +} +var file_flyteidl_plugins_ray_proto_depIdxs = []int32{ + 1, // 0: flyteidl.plugins.RayJob.ray_cluster:type_name -> flyteidl.plugins.RayCluster + 2, // 1: flyteidl.plugins.RayCluster.head_group_spec:type_name -> flyteidl.plugins.HeadGroupSpec + 3, // 2: flyteidl.plugins.RayCluster.worker_group_spec:type_name -> flyteidl.plugins.WorkerGroupSpec + 4, // 3: flyteidl.plugins.HeadGroupSpec.ray_start_params:type_name -> flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry + 5, // 4: flyteidl.plugins.WorkerGroupSpec.ray_start_params:type_name -> flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_ray_proto_init() } +func file_flyteidl_plugins_ray_proto_init() { + if File_flyteidl_plugins_ray_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_ray_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RayJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_ray_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RayCluster); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_ray_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HeadGroupSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_ray_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkerGroupSpec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_ray_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_ray_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_ray_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_ray_proto_msgTypes, + }.Build() + File_flyteidl_plugins_ray_proto = out.File + file_flyteidl_plugins_ray_proto_rawDesc = nil + file_flyteidl_plugins_ray_proto_goTypes = nil + file_flyteidl_plugins_ray_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go new file mode 100644 index 0000000000..316d1f1d7b --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go @@ -0,0 +1,383 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/spark.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type SparkApplication_Type int32 + +const ( + SparkApplication_PYTHON SparkApplication_Type = 0 + SparkApplication_JAVA SparkApplication_Type = 1 + SparkApplication_SCALA SparkApplication_Type = 2 + SparkApplication_R SparkApplication_Type = 3 +) + +// Enum value maps for SparkApplication_Type. +var ( + SparkApplication_Type_name = map[int32]string{ + 0: "PYTHON", + 1: "JAVA", + 2: "SCALA", + 3: "R", + } + SparkApplication_Type_value = map[string]int32{ + "PYTHON": 0, + "JAVA": 1, + "SCALA": 2, + "R": 3, + } +) + +func (x SparkApplication_Type) Enum() *SparkApplication_Type { + p := new(SparkApplication_Type) + *p = x + return p +} + +func (x SparkApplication_Type) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (SparkApplication_Type) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_plugins_spark_proto_enumTypes[0].Descriptor() +} + +func (SparkApplication_Type) Type() protoreflect.EnumType { + return &file_flyteidl_plugins_spark_proto_enumTypes[0] +} + +func (x SparkApplication_Type) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use SparkApplication_Type.Descriptor instead. +func (SparkApplication_Type) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_plugins_spark_proto_rawDescGZIP(), []int{0, 0} +} + +type SparkApplication struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SparkApplication) Reset() { + *x = SparkApplication{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_spark_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SparkApplication) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SparkApplication) ProtoMessage() {} + +func (x *SparkApplication) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_spark_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SparkApplication.ProtoReflect.Descriptor instead. +func (*SparkApplication) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_spark_proto_rawDescGZIP(), []int{0} +} + +// Custom Proto for Spark Plugin. +type SparkJob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ApplicationType SparkApplication_Type `protobuf:"varint,1,opt,name=applicationType,proto3,enum=flyteidl.plugins.SparkApplication_Type" json:"applicationType,omitempty"` + MainApplicationFile string `protobuf:"bytes,2,opt,name=mainApplicationFile,proto3" json:"mainApplicationFile,omitempty"` + MainClass string `protobuf:"bytes,3,opt,name=mainClass,proto3" json:"mainClass,omitempty"` + SparkConf map[string]string `protobuf:"bytes,4,rep,name=sparkConf,proto3" json:"sparkConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HadoopConf map[string]string `protobuf:"bytes,5,rep,name=hadoopConf,proto3" json:"hadoopConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ExecutorPath string `protobuf:"bytes,6,opt,name=executorPath,proto3" json:"executorPath,omitempty"` // Executor path for Python jobs. + // Databricks job configuration. + // Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. + DatabricksConf *structpb.Struct `protobuf:"bytes,7,opt,name=databricksConf,proto3" json:"databricksConf,omitempty"` + // Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html + // This token can be set in either flytepropeller or flytekit. + DatabricksToken string `protobuf:"bytes,8,opt,name=databricksToken,proto3" json:"databricksToken,omitempty"` + // Domain name of your deployment. Use the form .cloud.databricks.com. + // This instance name can be set in either flytepropeller or flytekit. + DatabricksInstance string `protobuf:"bytes,9,opt,name=databricksInstance,proto3" json:"databricksInstance,omitempty"` +} + +func (x *SparkJob) Reset() { + *x = SparkJob{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_spark_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SparkJob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SparkJob) ProtoMessage() {} + +func (x *SparkJob) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_spark_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SparkJob.ProtoReflect.Descriptor instead. +func (*SparkJob) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_spark_proto_rawDescGZIP(), []int{1} +} + +func (x *SparkJob) GetApplicationType() SparkApplication_Type { + if x != nil { + return x.ApplicationType + } + return SparkApplication_PYTHON +} + +func (x *SparkJob) GetMainApplicationFile() string { + if x != nil { + return x.MainApplicationFile + } + return "" +} + +func (x *SparkJob) GetMainClass() string { + if x != nil { + return x.MainClass + } + return "" +} + +func (x *SparkJob) GetSparkConf() map[string]string { + if x != nil { + return x.SparkConf + } + return nil +} + +func (x *SparkJob) GetHadoopConf() map[string]string { + if x != nil { + return x.HadoopConf + } + return nil +} + +func (x *SparkJob) GetExecutorPath() string { + if x != nil { + return x.ExecutorPath + } + return "" +} + +func (x *SparkJob) GetDatabricksConf() *structpb.Struct { + if x != nil { + return x.DatabricksConf + } + return nil +} + +func (x *SparkJob) GetDatabricksToken() string { + if x != nil { + return x.DatabricksToken + } + return "" +} + +func (x *SparkJob) GetDatabricksInstance() string { + if x != nil { + return x.DatabricksInstance + } + return "" +} + +var File_flyteidl_plugins_spark_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_spark_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x42, + 0x0a, 0x10, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x59, + 0x54, 0x48, 0x4f, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x41, 0x56, 0x41, 0x10, 0x01, + 0x12, 0x09, 0x0a, 0x05, 0x53, 0x43, 0x41, 0x4c, 0x41, 0x10, 0x02, 0x12, 0x05, 0x0a, 0x01, 0x52, + 0x10, 0x03, 0x22, 0xfe, 0x04, 0x0a, 0x08, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x4a, 0x6f, 0x62, 0x12, + 0x51, 0x0a, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x72, + 0x6b, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x13, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x46, 0x69, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6c, 0x61, 0x73, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x12, 0x47, 0x0a, 0x09, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x18, + 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x4a, 0x6f, + 0x62, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x09, 0x73, 0x70, 0x61, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x4a, 0x0a, 0x0a, 0x68, + 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x4a, 0x6f, 0x62, 0x2e, 0x48, 0x61, 0x64, 0x6f, + 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x68, 0x61, 0x64, + 0x6f, 0x6f, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x61, 0x74, 0x68, 0x12, 0x3f, 0x0a, 0x0e, 0x64, + 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0e, 0x64, 0x61, + 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x12, 0x28, 0x0a, 0x0f, + 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, + 0x73, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, + 0x69, 0x63, 0x6b, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x62, 0x72, 0x69, 0x63, 0x6b, 0x73, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x3c, 0x0a, 0x0e, 0x53, 0x70, 0x61, 0x72, 0x6b, 0x43, + 0x6f, 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x0f, 0x48, 0x61, 0x64, 0x6f, 0x6f, 0x70, 0x43, 0x6f, + 0x6e, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0a, 0x53, 0x70, + 0x61, 0x72, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, + 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, + 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_spark_proto_rawDescOnce sync.Once + file_flyteidl_plugins_spark_proto_rawDescData = file_flyteidl_plugins_spark_proto_rawDesc +) + +func file_flyteidl_plugins_spark_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_spark_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_spark_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_spark_proto_rawDescData) + }) + return file_flyteidl_plugins_spark_proto_rawDescData +} + +var file_flyteidl_plugins_spark_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_plugins_spark_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_flyteidl_plugins_spark_proto_goTypes = []interface{}{ + (SparkApplication_Type)(0), // 0: flyteidl.plugins.SparkApplication.Type + (*SparkApplication)(nil), // 1: flyteidl.plugins.SparkApplication + (*SparkJob)(nil), // 2: flyteidl.plugins.SparkJob + nil, // 3: flyteidl.plugins.SparkJob.SparkConfEntry + nil, // 4: flyteidl.plugins.SparkJob.HadoopConfEntry + (*structpb.Struct)(nil), // 5: google.protobuf.Struct +} +var file_flyteidl_plugins_spark_proto_depIdxs = []int32{ + 0, // 0: flyteidl.plugins.SparkJob.applicationType:type_name -> flyteidl.plugins.SparkApplication.Type + 3, // 1: flyteidl.plugins.SparkJob.sparkConf:type_name -> flyteidl.plugins.SparkJob.SparkConfEntry + 4, // 2: flyteidl.plugins.SparkJob.hadoopConf:type_name -> flyteidl.plugins.SparkJob.HadoopConfEntry + 5, // 3: flyteidl.plugins.SparkJob.databricksConf:type_name -> google.protobuf.Struct + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_spark_proto_init() } +func file_flyteidl_plugins_spark_proto_init() { + if File_flyteidl_plugins_spark_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_spark_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SparkApplication); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_plugins_spark_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SparkJob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_spark_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_spark_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_spark_proto_depIdxs, + EnumInfos: file_flyteidl_plugins_spark_proto_enumTypes, + MessageInfos: file_flyteidl_plugins_spark_proto_msgTypes, + }.Build() + File_flyteidl_plugins_spark_proto = out.File + file_flyteidl_plugins_spark_proto_rawDesc = nil + file_flyteidl_plugins_spark_proto_goTypes = nil + file_flyteidl_plugins_spark_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go new file mode 100644 index 0000000000..679847bf3f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go @@ -0,0 +1,194 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/tensorflow.proto + +package plugins + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator +type DistributedTensorflowTrainingTask struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // number of worker replicas spawned in the cluster for this job + Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` + // PS -> Parameter server + // number of ps replicas spawned in the cluster for this job + PsReplicas int32 `protobuf:"varint,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` + // number of chief replicas spawned in the cluster for this job + ChiefReplicas int32 `protobuf:"varint,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` + // number of evaluator replicas spawned in the cluster for this job + EvaluatorReplicas int32 `protobuf:"varint,4,opt,name=evaluator_replicas,json=evaluatorReplicas,proto3" json:"evaluator_replicas,omitempty"` +} + +func (x *DistributedTensorflowTrainingTask) Reset() { + *x = DistributedTensorflowTrainingTask{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_tensorflow_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DistributedTensorflowTrainingTask) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DistributedTensorflowTrainingTask) ProtoMessage() {} + +func (x *DistributedTensorflowTrainingTask) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_tensorflow_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DistributedTensorflowTrainingTask.ProtoReflect.Descriptor instead. +func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_tensorflow_proto_rawDescGZIP(), []int{0} +} + +func (x *DistributedTensorflowTrainingTask) GetWorkers() int32 { + if x != nil { + return x.Workers + } + return 0 +} + +func (x *DistributedTensorflowTrainingTask) GetPsReplicas() int32 { + if x != nil { + return x.PsReplicas + } + return 0 +} + +func (x *DistributedTensorflowTrainingTask) GetChiefReplicas() int32 { + if x != nil { + return x.ChiefReplicas + } + return 0 +} + +func (x *DistributedTensorflowTrainingTask) GetEvaluatorReplicas() int32 { + if x != nil { + return x.EvaluatorReplicas + } + return 0 +} + +var File_flyteidl_plugins_tensorflow_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_tensorflow_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x22, 0xb4, 0x01, 0x0a, 0x21, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x64, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, 0x77, 0x54, + 0x72, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x77, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x73, 0x52, 0x65, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x68, 0x69, 0x65, 0x66, 0x5f, + 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, + 0x63, 0x68, 0x69, 0x65, 0x66, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x2d, 0x0a, + 0x12, 0x65, 0x76, 0x61, 0x6c, 0x75, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x65, 0x76, 0x61, 0x6c, 0x75, + 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x42, 0xc7, 0x01, 0x0a, + 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x73, 0x42, 0x0f, 0x54, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x66, 0x6c, 0x6f, + 0x77, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_tensorflow_proto_rawDescOnce sync.Once + file_flyteidl_plugins_tensorflow_proto_rawDescData = file_flyteidl_plugins_tensorflow_proto_rawDesc +) + +func file_flyteidl_plugins_tensorflow_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_tensorflow_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_tensorflow_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_tensorflow_proto_rawDescData) + }) + return file_flyteidl_plugins_tensorflow_proto_rawDescData +} + +var file_flyteidl_plugins_tensorflow_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_plugins_tensorflow_proto_goTypes = []interface{}{ + (*DistributedTensorflowTrainingTask)(nil), // 0: flyteidl.plugins.DistributedTensorflowTrainingTask +} +var file_flyteidl_plugins_tensorflow_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_tensorflow_proto_init() } +func file_flyteidl_plugins_tensorflow_proto_init() { + if File_flyteidl_plugins_tensorflow_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_tensorflow_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DistributedTensorflowTrainingTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_tensorflow_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_tensorflow_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_tensorflow_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_tensorflow_proto_msgTypes, + }.Build() + File_flyteidl_plugins_tensorflow_proto = out.File + file_flyteidl_plugins_tensorflow_proto_rawDesc = nil + file_flyteidl_plugins_tensorflow_proto_goTypes = nil + file_flyteidl_plugins_tensorflow_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go new file mode 100644 index 0000000000..236e60bde9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go @@ -0,0 +1,190 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/plugins/waitable.proto + +package plugins + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Represents an Execution that was launched and could be waited on. +type Waitable struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WfExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=wf_exec_id,json=wfExecId,proto3" json:"wf_exec_id,omitempty"` + Phase core.WorkflowExecution_Phase `protobuf:"varint,2,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` + WorkflowId string `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` +} + +func (x *Waitable) Reset() { + *x = Waitable{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_plugins_waitable_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Waitable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Waitable) ProtoMessage() {} + +func (x *Waitable) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_plugins_waitable_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Waitable.ProtoReflect.Descriptor instead. +func (*Waitable) Descriptor() ([]byte, []int) { + return file_flyteidl_plugins_waitable_proto_rawDescGZIP(), []int{0} +} + +func (x *Waitable) GetWfExecId() *core.WorkflowExecutionIdentifier { + if x != nil { + return x.WfExecId + } + return nil +} + +func (x *Waitable) GetPhase() core.WorkflowExecution_Phase { + if x != nil { + return x.Phase + } + return core.WorkflowExecution_Phase(0) +} + +func (x *Waitable) GetWorkflowId() string { + if x != nil { + return x.WorkflowId + } + return "" +} + +var File_flyteidl_plugins_waitable_proto protoreflect.FileDescriptor + +var file_flyteidl_plugins_waitable_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, + 0x6e, 0x73, 0x2f, 0x77, 0x61, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x73, 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xb3, 0x01, 0x0a, 0x08, 0x57, 0x61, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x48, 0x0a, 0x0a, 0x77, 0x66, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, + 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x52, + 0x08, 0x77, 0x66, 0x45, 0x78, 0x65, 0x63, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x05, 0x70, 0x68, 0x61, + 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, + 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, + 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x42, 0xc5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x42, 0x0d, 0x57, 0x61, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0xa2, 0x02, 0x03, 0x46, 0x50, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0xe2, 0x02, 0x1c, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_plugins_waitable_proto_rawDescOnce sync.Once + file_flyteidl_plugins_waitable_proto_rawDescData = file_flyteidl_plugins_waitable_proto_rawDesc +) + +func file_flyteidl_plugins_waitable_proto_rawDescGZIP() []byte { + file_flyteidl_plugins_waitable_proto_rawDescOnce.Do(func() { + file_flyteidl_plugins_waitable_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_plugins_waitable_proto_rawDescData) + }) + return file_flyteidl_plugins_waitable_proto_rawDescData +} + +var file_flyteidl_plugins_waitable_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_flyteidl_plugins_waitable_proto_goTypes = []interface{}{ + (*Waitable)(nil), // 0: flyteidl.plugins.Waitable + (*core.WorkflowExecutionIdentifier)(nil), // 1: flyteidl.core.WorkflowExecutionIdentifier + (core.WorkflowExecution_Phase)(0), // 2: flyteidl.core.WorkflowExecution.Phase +} +var file_flyteidl_plugins_waitable_proto_depIdxs = []int32{ + 1, // 0: flyteidl.plugins.Waitable.wf_exec_id:type_name -> flyteidl.core.WorkflowExecutionIdentifier + 2, // 1: flyteidl.plugins.Waitable.phase:type_name -> flyteidl.core.WorkflowExecution.Phase + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_flyteidl_plugins_waitable_proto_init() } +func file_flyteidl_plugins_waitable_proto_init() { + if File_flyteidl_plugins_waitable_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_plugins_waitable_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Waitable); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_plugins_waitable_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_flyteidl_plugins_waitable_proto_goTypes, + DependencyIndexes: file_flyteidl_plugins_waitable_proto_depIdxs, + MessageInfos: file_flyteidl_plugins_waitable_proto_msgTypes, + }.Build() + File_flyteidl_plugins_waitable_proto = out.File + file_flyteidl_plugins_waitable_proto_rawDesc = nil + file_flyteidl_plugins_waitable_proto_goTypes = nil + file_flyteidl_plugins_waitable_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go new file mode 100644 index 0000000000..4fa8b64e86 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go @@ -0,0 +1,1230 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/admin.proto + +package service + +import ( + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_flyteidl_service_admin_proto protoreflect.FileDescriptor + +var file_flyteidl_service_admin_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x28, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, + 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x89, + 0x72, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0xc5, 0x02, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xef, 0x01, 0x92, 0x41, 0xd3, 0x01, 0x1a, 0x26, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x20, 0x61, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x42, 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, + 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, + 0x5e, 0x0a, 0x5c, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x61, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, + 0x61, 0x74, 0x20, 0x68, 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, + 0x65, 0x65, 0x6e, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x3a, 0x01, 0x2a, 0x22, 0x0d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0xb2, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, + 0x61, 0x73, 0x6b, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x22, 0x6f, 0x92, 0x41, 0x27, + 0x1a, 0x25, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, + 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, + 0x7b, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xde, 0x01, 0x0a, + 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x73, 0x12, 0x30, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, + 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x72, 0x92, 0x41, 0x44, 0x1a, 0x42, + 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, + 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, + 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xeb, 0x01, + 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x9e, 0x01, 0x92, 0x41, 0x39, + 0x1a, 0x37, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, + 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, + 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x5a, + 0x28, 0x12, 0x26, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x30, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xd9, 0x02, 0x0a, 0x0e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x25, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf7, 0x01, + 0x92, 0x41, 0xd7, 0x01, 0x1a, 0x2a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, + 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, + 0x4a, 0x42, 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, 0x65, 0x74, 0x75, 0x72, + 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x68, 0x61, 0x76, + 0x65, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, 0x5e, 0x0a, 0x5c, 0x52, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x68, + 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, + 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x16, 0x3a, 0x01, 0x2a, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x12, 0xc2, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x22, 0x77, 0x92, 0x41, 0x2b, 0x1a, 0x29, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, + 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x7b, 0x69, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, + 0x7b, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0x9f, 0x01, 0x0a, + 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x73, + 0x12, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x2f, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x69, 0x64, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xff, + 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, + 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x4c, + 0x69, 0x73, 0x74, 0x22, 0xaa, 0x01, 0x92, 0x41, 0x3d, 0x1a, 0x3b, 0x46, 0x65, 0x74, 0x63, 0x68, + 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, + 0x6f, 0x77, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6d, + 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x64, 0x5a, 0x2c, 0x12, 0x2a, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x34, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x73, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x12, 0xe5, 0x02, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, + 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xfd, 0x01, 0x92, 0x41, 0xda, 0x01, 0x1a, + 0x2d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x65, 0x72, 0x20, 0x61, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, + 0x61, 0x6e, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x42, + 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, + 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x68, 0x61, 0x76, 0x65, 0x20, + 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, 0x5e, 0x0a, 0x5c, 0x52, 0x65, 0x74, + 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x6c, + 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x68, 0x61, 0x73, + 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x65, 0x6e, 0x20, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, + 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0xcc, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, + 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x7d, 0x92, 0x41, 0x2e, 0x1a, 0x2c, 0x52, + 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, + 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, + 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x46, 0x12, 0x44, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, + 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xf3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, + 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x96, 0x01, 0x92, 0x41, 0x4d, 0x1a, 0x4b, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, + 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x62, 0x79, + 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x12, 0x3e, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6c, 0x61, + 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xeb, 0x01, + 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4c, + 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x22, 0x84, 0x01, 0x92, 0x41, 0x4b, 0x1a, 0x49, 0x46, 0x65, 0x74, 0x63, + 0x68, 0x20, 0x74, 0x68, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x6c, 0x61, 0x75, + 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x20, 0x62, 0x79, 0x20, 0x69, + 0x6e, 0x70, 0x75, 0x74, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xf3, 0x01, 0x0a, 0x11, + 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, + 0x73, 0x12, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x80, + 0x01, 0x92, 0x41, 0x4b, 0x1a, 0x49, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, + 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, + 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, + 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x7d, 0x12, 0x8c, 0x02, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xb3, 0x01, 0x92, 0x41, 0x40, + 0x1a, 0x3e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, + 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x64, 0x65, 0x66, + 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, + 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6a, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x37, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x12, 0xc0, 0x06, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, + 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x50, 0x6c, 0x61, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd8, 0x05, 0x92, 0x41, 0x85, 0x05, 0x1a, + 0x82, 0x05, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x64, + 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x41, 0x74, 0x20, 0x6d, 0x6f, + 0x73, 0x74, 0x20, 0x6f, 0x6e, 0x65, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, + 0x61, 0x6e, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, + 0x20, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x20, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, + 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2c, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x20, 0x63, + 0x61, 0x6e, 0x20, 0x62, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x61, 0x74, 0x20, + 0x61, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x20, 0x49, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, + 0x63, 0x61, 0x6c, 0x6c, 0x20, 0x73, 0x65, 0x74, 0x73, 0x20, 0x61, 0x20, 0x6c, 0x61, 0x75, 0x6e, + 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, + 0x79, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x63, 0x61, 0x6c, + 0x6c, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x77, + 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x6d, 0x61, 0x64, 0x65, 0x20, 0x69, 0x6e, 0x61, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, + 0x65, 0x64, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x69, + 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x77, + 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x6d, 0x61, 0x64, 0x65, 0x20, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x2e, 0x20, 0x49, 0x6e, 0x20, 0x74, 0x68, 0x65, 0x20, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, + 0x6c, 0x79, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x68, 0x61, 0x64, 0x20, 0x61, 0x20, 0x73, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, + 0x69, 0x74, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x68, 0x69, 0x73, + 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, + 0x65, 0x20, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x2e, 0x20, 0x49, 0x66, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x6c, 0x61, 0x75, + 0x6e, 0x63, 0x68, 0x20, 0x70, 0x6c, 0x61, 0x6e, 0x20, 0x69, 0x6e, 0x20, 0x74, 0x68, 0x69, 0x73, + 0x20, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x69, 0x73, 0x20, 0x62, 0x65, 0x69, 0x6e, + 0x67, 0x20, 0x73, 0x65, 0x74, 0x20, 0x74, 0x6f, 0x20, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x20, + 0x61, 0x6e, 0x64, 0x20, 0x68, 0x61, 0x73, 0x20, 0x61, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, + 0x74, 0x68, 0x20, 0x69, 0x74, 0x2c, 0x20, 0x74, 0x68, 0x65, 0x20, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x20, 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x1a, 0x44, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x5f, 0x70, 0x6c, + 0x61, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, + 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, + 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x7d, 0x12, 0xa2, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x92, 0x41, 0x1e, 0x1a, 0x1c, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x17, 0x3a, 0x01, 0x2a, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0xb1, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x6c, + 0x61, 0x75, 0x6e, 0x63, 0x68, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x28, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, + 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x49, 0x92, 0x41, 0x20, 0x1a, 0x1e, 0x52, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, + 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x3a, 0x01, 0x2a, 0x22, + 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x6c, 0x61, 0x75, 0x6e, 0x63, 0x68, 0x12, 0x9d, 0x05, 0x0a, + 0x10, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x6f, + 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0xb6, 0x04, 0x92, 0x41, 0x8d, 0x04, 0x1a, 0x8a, 0x04, 0x52, 0x65, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x6c, 0x79, 0x2d, 0x72, 0x75, 0x6e, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, + 0x77, 0x69, 0x6c, 0x6c, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x6c, 0x61, 0x73, 0x74, 0x20, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x20, 0x66, 0x61, + 0x69, 0x6c, 0x75, 0x72, 0x65, 0x20, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x20, 0x49, 0x6e, 0x20, + 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x2c, 0x20, 0x75, 0x73, + 0x65, 0x72, 0x73, 0x20, 0x63, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x20, 0x63, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x20, 0x61, 0x6e, 0x79, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x20, 0x6f, 0x72, 0x20, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x20, 0x74, 0x68, 0x65, 0x20, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x66, 0x20, + 0x74, 0x68, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x20, 0x54, + 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x65, 0x78, 0x74, 0x72, 0x65, 0x6d, 0x65, 0x6c, 0x79, + 0x20, 0x75, 0x73, 0x65, 0x66, 0x75, 0x6c, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x73, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x62, 0x79, 0x7a, 0x61, 0x6e, 0x74, + 0x69, 0x6e, 0x65, 0x20, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, + 0x2d, 0x20, 0x4c, 0x6f, 0x73, 0x73, 0x20, 0x6f, 0x66, 0x20, 0x4b, 0x38, 0x73, 0x20, 0x63, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x20, 0x62, 0x75, 0x67, 0x73, 0x20, 0x69, 0x6e, 0x20, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x6f, 0x72, 0x20, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x2c, 0x20, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x20, + 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x73, 0x2c, 0x20, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, + 0x72, 0x65, 0x61, 0x6d, 0x20, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x20, 0x66, 0x61, 0x69, 0x6c, + 0x75, 0x72, 0x65, 0x73, 0x20, 0x28, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x29, 0x2c, 0x20, 0x6f, 0x72, 0x20, 0x73, + 0x69, 0x6d, 0x70, 0x6c, 0x79, 0x20, 0x74, 0x6f, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, + 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x74, 0x68, 0x61, 0x74, + 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x62, 0x65, 0x63, 0x61, 0x75, 0x73, 0x65, 0x20, + 0x6f, 0x66, 0x20, 0x72, 0x65, 0x74, 0x72, 0x79, 0x20, 0x65, 0x78, 0x68, 0x61, 0x75, 0x73, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x20, 0x63, + 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x69, 0x66, 0x20, 0x74, 0x72, 0x69, 0x65, 0x64, + 0x20, 0x61, 0x67, 0x61, 0x69, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x3a, 0x01, 0x2a, + 0x22, 0x1a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x12, 0xc2, 0x01, 0x0a, + 0x0c, 0x47, 0x65, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6a, 0x92, 0x41, 0x2a, 0x1a, 0x28, 0x52, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, + 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, 0x35, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, + 0x7d, 0x12, 0xa4, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x01, + 0x2a, 0x1a, 0x35, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xb9, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2f, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x89, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x33, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, + 0x12, 0xad, 0x01, 0x0a, 0x12, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x72, + 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x01, 0x2a, 0x2a, 0x35, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x12, 0xd2, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x76, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x70, 0x12, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xff, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x79, 0x6e, + 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x12, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x4e, 0x6f, 0x64, 0x65, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x81, 0x01, 0x12, 0x7f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, 0x77, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x12, 0xde, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x7b, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x75, 0x12, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xa5, 0x04, 0x0a, 0x19, 0x4c, 0x69, 0x73, + 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x46, + 0x6f, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x6f, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xb3, 0x03, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0xac, 0x03, 0x12, 0xa9, 0x03, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x68, 0x69, 0x6c, 0x64, 0x72, 0x65, 0x6e, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, + 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, + 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x7d, + 0x12, 0xee, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x75, 0x12, 0x73, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0x7f, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, + 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x01, 0x2a, + 0x22, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x12, 0x87, 0x01, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x12, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x1a, 0x25, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x92, 0x41, 0x13, 0x1a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1a, 0x3a, 0x01, 0x2a, 0x1a, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x85, 0x01, 0x0a, + 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x22, 0x37, 0x92, 0x41, 0x1c, + 0x1a, 0x1a, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, + 0x65, 0x64, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x12, 0x12, 0x10, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x12, 0xdd, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x57, + 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x67, 0x92, 0x41, 0x41, + 0x1a, 0x3f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, + 0x70, 0x68, 0x61, 0x73, 0x65, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x73, 0x12, 0xc9, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x5f, 0x92, 0x41, 0x3d, 0x1a, 0x3b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x6e, + 0x6f, 0x64, 0x65, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x20, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, + 0x70, 0x68, 0x61, 0x73, 0x65, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x73, + 0x12, 0xc9, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x92, 0x41, 0x3d, + 0x1a, 0x3b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x20, 0x61, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x20, + 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x70, 0x68, 0x61, 0x73, + 0x65, 0x20, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x12, 0xa9, 0x03, 0x0a, + 0x10, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcc, 0x02, 0x92, 0x41, 0x26, 0x1a, + 0x24, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x9c, 0x02, 0x12, 0x99, 0x02, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, + 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, + 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x7d, 0x12, 0xd3, 0x02, 0x0a, 0x12, 0x4c, 0x69, 0x73, + 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xef, 0x01, 0x92, + 0x41, 0x38, 0x1a, 0x36, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, + 0x74, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xad, + 0x01, 0x12, 0xaa, 0x01, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x6e, 0x6f, + 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, + 0x65, 0x7d, 0x2f, 0x7b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe0, + 0x03, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xec, 0x02, 0x92, 0x41, 0x41, 0x1a, 0x3f, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, + 0x76, 0x65, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x20, 0x64, 0x61, 0x74, 0x61, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x61, 0x6e, + 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x20, 0x65, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0xa1, 0x02, + 0x12, 0x9e, 0x02, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, + 0x64, 0x2e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, + 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, + 0x7d, 0x12, 0xbf, 0x02, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0xb0, 0x01, 0x92, 0x41, 0x58, 0x1a, 0x56, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, + 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, + 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x1a, 0x4a, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, + 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x7d, 0x12, 0x9f, 0x02, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x31, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x99, 0x01, 0x92, 0x41, 0x5a, 0x1a, + 0x58, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x6f, + 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, + 0x34, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0xa9, 0x02, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x34, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x92, 0x41, 0x58, 0x1a, 0x56, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, + 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x2a, 0x34, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x7d, 0x12, 0xff, 0x01, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, + 0x01, 0x92, 0x41, 0x45, 0x1a, 0x43, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, + 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, + 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, + 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, + 0x01, 0x2a, 0x1a, 0x2f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, + 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x7d, 0x12, 0xe9, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x76, 0x92, 0x41, 0x47, 0x1a, 0x45, 0x52, 0x65, + 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x12, + 0xf3, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x77, 0x92, 0x41, + 0x45, 0x1a, 0x43, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, + 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x3a, 0x01, 0x2a, 0x2a, + 0x24, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x12, 0xce, 0x02, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xce, 0x01, 0x92, 0x41, 0x66, 0x1a, 0x64, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, + 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, + 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x3a, 0x01, 0x2a, 0x1a, 0x5a, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, + 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2e, 0x77, 0x6f, 0x72, + 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x7d, 0x12, 0xa3, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, + 0x75, 0x74, 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, + 0x65, 0x73, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xac, 0x01, + 0x92, 0x41, 0x68, 0x1a, 0x66, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, + 0x65, 0x20, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, + 0x20, 0x61, 0x20, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, + 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x3b, 0x12, 0x39, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x7d, 0x12, 0xad, 0x02, 0x0a, + 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x66, 0x6c, 0x6f, 0x77, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xad, 0x01, 0x92, + 0x41, 0x66, 0x1a, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x65, 0x64, 0x20, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x20, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x20, 0x61, 0x73, + 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x20, + 0x61, 0x6e, 0x64, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x63, 0x6f, 0x6d, + 0x62, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x3a, 0x01, + 0x2a, 0x2a, 0x39, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x66, + 0x6c, 0x6f, 0x77, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x2f, 0x7b, + 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x7d, 0x12, 0xe1, 0x01, 0x0a, + 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x92, 0x41, 0x3e, 0x1a, 0x3c, + 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, + 0x6f, 0x66, 0x20, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1e, 0x12, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, + 0x12, 0x80, 0x02, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, + 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x22, + 0xa1, 0x01, 0x92, 0x41, 0x5d, 0x1a, 0x5b, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, + 0x61, 0x20, 0x6c, 0x69, 0x73, 0x74, 0x20, 0x6f, 0x66, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x20, 0x73, 0x68, + 0x61, 0x72, 0x69, 0x6e, 0x67, 0x20, 0x61, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x20, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x20, 0x74, 0x79, 0x70, 0x65, 0x2c, 0x20, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0x20, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, + 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x64, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, + 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x74, 0x92, 0x41, 0x20, 0x1a, + 0x1e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x4e, 0x61, 0x6d, 0x65, + 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, + 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, + 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x12, 0xf3, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x64, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x88, 0x01, 0x92, 0x41, + 0x31, 0x1a, 0x2f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x20, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x20, + 0x77, 0x69, 0x74, 0x68, 0x20, 0x61, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4e, 0x3a, 0x01, 0x2a, 0x1a, 0x49, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, + 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, + 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xbf, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x92, 0x41, + 0x50, 0x1a, 0x4e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x74, 0x68, 0x65, 0x20, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x69, + 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x20, 0x20, 0x69, 0x6e, + 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x29, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0xfe, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0xa0, 0x01, 0x92, 0x41, 0x36, 0x1a, 0x34, 0x52, 0x65, + 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x5f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, + 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xdc, 0x02, 0x0a, 0x17, 0x4c, 0x69, + 0x73, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x22, 0xeb, 0x01, 0x92, 0x41, 0x47, + 0x1a, 0x45, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, + 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x79, 0x20, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, + 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x66, + 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x9a, 0x01, 0x5a, 0x47, + 0x12, 0x45, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, + 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0xff, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, + 0x12, 0x32, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x92, 0x41, 0x37, 0x1a, 0x35, + 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, + 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x20, 0x61, 0x6e, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, + 0x67, 0x20, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x20, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x7d, + 0x2f, 0x7b, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x42, 0x0a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_flyteidl_service_admin_proto_goTypes = []interface{}{ + (*admin.TaskCreateRequest)(nil), // 0: flyteidl.admin.TaskCreateRequest + (*admin.ObjectGetRequest)(nil), // 1: flyteidl.admin.ObjectGetRequest + (*admin.NamedEntityIdentifierListRequest)(nil), // 2: flyteidl.admin.NamedEntityIdentifierListRequest + (*admin.ResourceListRequest)(nil), // 3: flyteidl.admin.ResourceListRequest + (*admin.WorkflowCreateRequest)(nil), // 4: flyteidl.admin.WorkflowCreateRequest + (*admin.LaunchPlanCreateRequest)(nil), // 5: flyteidl.admin.LaunchPlanCreateRequest + (*admin.ActiveLaunchPlanRequest)(nil), // 6: flyteidl.admin.ActiveLaunchPlanRequest + (*admin.ActiveLaunchPlanListRequest)(nil), // 7: flyteidl.admin.ActiveLaunchPlanListRequest + (*admin.LaunchPlanUpdateRequest)(nil), // 8: flyteidl.admin.LaunchPlanUpdateRequest + (*admin.ExecutionCreateRequest)(nil), // 9: flyteidl.admin.ExecutionCreateRequest + (*admin.ExecutionRelaunchRequest)(nil), // 10: flyteidl.admin.ExecutionRelaunchRequest + (*admin.ExecutionRecoverRequest)(nil), // 11: flyteidl.admin.ExecutionRecoverRequest + (*admin.WorkflowExecutionGetRequest)(nil), // 12: flyteidl.admin.WorkflowExecutionGetRequest + (*admin.ExecutionUpdateRequest)(nil), // 13: flyteidl.admin.ExecutionUpdateRequest + (*admin.WorkflowExecutionGetDataRequest)(nil), // 14: flyteidl.admin.WorkflowExecutionGetDataRequest + (*admin.ExecutionTerminateRequest)(nil), // 15: flyteidl.admin.ExecutionTerminateRequest + (*admin.NodeExecutionGetRequest)(nil), // 16: flyteidl.admin.NodeExecutionGetRequest + (*admin.GetDynamicNodeWorkflowRequest)(nil), // 17: flyteidl.admin.GetDynamicNodeWorkflowRequest + (*admin.NodeExecutionListRequest)(nil), // 18: flyteidl.admin.NodeExecutionListRequest + (*admin.NodeExecutionForTaskListRequest)(nil), // 19: flyteidl.admin.NodeExecutionForTaskListRequest + (*admin.NodeExecutionGetDataRequest)(nil), // 20: flyteidl.admin.NodeExecutionGetDataRequest + (*admin.ProjectRegisterRequest)(nil), // 21: flyteidl.admin.ProjectRegisterRequest + (*admin.Project)(nil), // 22: flyteidl.admin.Project + (*admin.ProjectListRequest)(nil), // 23: flyteidl.admin.ProjectListRequest + (*admin.WorkflowExecutionEventRequest)(nil), // 24: flyteidl.admin.WorkflowExecutionEventRequest + (*admin.NodeExecutionEventRequest)(nil), // 25: flyteidl.admin.NodeExecutionEventRequest + (*admin.TaskExecutionEventRequest)(nil), // 26: flyteidl.admin.TaskExecutionEventRequest + (*admin.TaskExecutionGetRequest)(nil), // 27: flyteidl.admin.TaskExecutionGetRequest + (*admin.TaskExecutionListRequest)(nil), // 28: flyteidl.admin.TaskExecutionListRequest + (*admin.TaskExecutionGetDataRequest)(nil), // 29: flyteidl.admin.TaskExecutionGetDataRequest + (*admin.ProjectDomainAttributesUpdateRequest)(nil), // 30: flyteidl.admin.ProjectDomainAttributesUpdateRequest + (*admin.ProjectDomainAttributesGetRequest)(nil), // 31: flyteidl.admin.ProjectDomainAttributesGetRequest + (*admin.ProjectDomainAttributesDeleteRequest)(nil), // 32: flyteidl.admin.ProjectDomainAttributesDeleteRequest + (*admin.ProjectAttributesUpdateRequest)(nil), // 33: flyteidl.admin.ProjectAttributesUpdateRequest + (*admin.ProjectAttributesGetRequest)(nil), // 34: flyteidl.admin.ProjectAttributesGetRequest + (*admin.ProjectAttributesDeleteRequest)(nil), // 35: flyteidl.admin.ProjectAttributesDeleteRequest + (*admin.WorkflowAttributesUpdateRequest)(nil), // 36: flyteidl.admin.WorkflowAttributesUpdateRequest + (*admin.WorkflowAttributesGetRequest)(nil), // 37: flyteidl.admin.WorkflowAttributesGetRequest + (*admin.WorkflowAttributesDeleteRequest)(nil), // 38: flyteidl.admin.WorkflowAttributesDeleteRequest + (*admin.ListMatchableAttributesRequest)(nil), // 39: flyteidl.admin.ListMatchableAttributesRequest + (*admin.NamedEntityListRequest)(nil), // 40: flyteidl.admin.NamedEntityListRequest + (*admin.NamedEntityGetRequest)(nil), // 41: flyteidl.admin.NamedEntityGetRequest + (*admin.NamedEntityUpdateRequest)(nil), // 42: flyteidl.admin.NamedEntityUpdateRequest + (*admin.GetVersionRequest)(nil), // 43: flyteidl.admin.GetVersionRequest + (*admin.DescriptionEntityListRequest)(nil), // 44: flyteidl.admin.DescriptionEntityListRequest + (*admin.WorkflowExecutionGetMetricsRequest)(nil), // 45: flyteidl.admin.WorkflowExecutionGetMetricsRequest + (*admin.TaskCreateResponse)(nil), // 46: flyteidl.admin.TaskCreateResponse + (*admin.Task)(nil), // 47: flyteidl.admin.Task + (*admin.NamedEntityIdentifierList)(nil), // 48: flyteidl.admin.NamedEntityIdentifierList + (*admin.TaskList)(nil), // 49: flyteidl.admin.TaskList + (*admin.WorkflowCreateResponse)(nil), // 50: flyteidl.admin.WorkflowCreateResponse + (*admin.Workflow)(nil), // 51: flyteidl.admin.Workflow + (*admin.WorkflowList)(nil), // 52: flyteidl.admin.WorkflowList + (*admin.LaunchPlanCreateResponse)(nil), // 53: flyteidl.admin.LaunchPlanCreateResponse + (*admin.LaunchPlan)(nil), // 54: flyteidl.admin.LaunchPlan + (*admin.LaunchPlanList)(nil), // 55: flyteidl.admin.LaunchPlanList + (*admin.LaunchPlanUpdateResponse)(nil), // 56: flyteidl.admin.LaunchPlanUpdateResponse + (*admin.ExecutionCreateResponse)(nil), // 57: flyteidl.admin.ExecutionCreateResponse + (*admin.Execution)(nil), // 58: flyteidl.admin.Execution + (*admin.ExecutionUpdateResponse)(nil), // 59: flyteidl.admin.ExecutionUpdateResponse + (*admin.WorkflowExecutionGetDataResponse)(nil), // 60: flyteidl.admin.WorkflowExecutionGetDataResponse + (*admin.ExecutionList)(nil), // 61: flyteidl.admin.ExecutionList + (*admin.ExecutionTerminateResponse)(nil), // 62: flyteidl.admin.ExecutionTerminateResponse + (*admin.NodeExecution)(nil), // 63: flyteidl.admin.NodeExecution + (*admin.DynamicNodeWorkflowResponse)(nil), // 64: flyteidl.admin.DynamicNodeWorkflowResponse + (*admin.NodeExecutionList)(nil), // 65: flyteidl.admin.NodeExecutionList + (*admin.NodeExecutionGetDataResponse)(nil), // 66: flyteidl.admin.NodeExecutionGetDataResponse + (*admin.ProjectRegisterResponse)(nil), // 67: flyteidl.admin.ProjectRegisterResponse + (*admin.ProjectUpdateResponse)(nil), // 68: flyteidl.admin.ProjectUpdateResponse + (*admin.Projects)(nil), // 69: flyteidl.admin.Projects + (*admin.WorkflowExecutionEventResponse)(nil), // 70: flyteidl.admin.WorkflowExecutionEventResponse + (*admin.NodeExecutionEventResponse)(nil), // 71: flyteidl.admin.NodeExecutionEventResponse + (*admin.TaskExecutionEventResponse)(nil), // 72: flyteidl.admin.TaskExecutionEventResponse + (*admin.TaskExecution)(nil), // 73: flyteidl.admin.TaskExecution + (*admin.TaskExecutionList)(nil), // 74: flyteidl.admin.TaskExecutionList + (*admin.TaskExecutionGetDataResponse)(nil), // 75: flyteidl.admin.TaskExecutionGetDataResponse + (*admin.ProjectDomainAttributesUpdateResponse)(nil), // 76: flyteidl.admin.ProjectDomainAttributesUpdateResponse + (*admin.ProjectDomainAttributesGetResponse)(nil), // 77: flyteidl.admin.ProjectDomainAttributesGetResponse + (*admin.ProjectDomainAttributesDeleteResponse)(nil), // 78: flyteidl.admin.ProjectDomainAttributesDeleteResponse + (*admin.ProjectAttributesUpdateResponse)(nil), // 79: flyteidl.admin.ProjectAttributesUpdateResponse + (*admin.ProjectAttributesGetResponse)(nil), // 80: flyteidl.admin.ProjectAttributesGetResponse + (*admin.ProjectAttributesDeleteResponse)(nil), // 81: flyteidl.admin.ProjectAttributesDeleteResponse + (*admin.WorkflowAttributesUpdateResponse)(nil), // 82: flyteidl.admin.WorkflowAttributesUpdateResponse + (*admin.WorkflowAttributesGetResponse)(nil), // 83: flyteidl.admin.WorkflowAttributesGetResponse + (*admin.WorkflowAttributesDeleteResponse)(nil), // 84: flyteidl.admin.WorkflowAttributesDeleteResponse + (*admin.ListMatchableAttributesResponse)(nil), // 85: flyteidl.admin.ListMatchableAttributesResponse + (*admin.NamedEntityList)(nil), // 86: flyteidl.admin.NamedEntityList + (*admin.NamedEntity)(nil), // 87: flyteidl.admin.NamedEntity + (*admin.NamedEntityUpdateResponse)(nil), // 88: flyteidl.admin.NamedEntityUpdateResponse + (*admin.GetVersionResponse)(nil), // 89: flyteidl.admin.GetVersionResponse + (*admin.DescriptionEntity)(nil), // 90: flyteidl.admin.DescriptionEntity + (*admin.DescriptionEntityList)(nil), // 91: flyteidl.admin.DescriptionEntityList + (*admin.WorkflowExecutionGetMetricsResponse)(nil), // 92: flyteidl.admin.WorkflowExecutionGetMetricsResponse +} +var file_flyteidl_service_admin_proto_depIdxs = []int32{ + 0, // 0: flyteidl.service.AdminService.CreateTask:input_type -> flyteidl.admin.TaskCreateRequest + 1, // 1: flyteidl.service.AdminService.GetTask:input_type -> flyteidl.admin.ObjectGetRequest + 2, // 2: flyteidl.service.AdminService.ListTaskIds:input_type -> flyteidl.admin.NamedEntityIdentifierListRequest + 3, // 3: flyteidl.service.AdminService.ListTasks:input_type -> flyteidl.admin.ResourceListRequest + 4, // 4: flyteidl.service.AdminService.CreateWorkflow:input_type -> flyteidl.admin.WorkflowCreateRequest + 1, // 5: flyteidl.service.AdminService.GetWorkflow:input_type -> flyteidl.admin.ObjectGetRequest + 2, // 6: flyteidl.service.AdminService.ListWorkflowIds:input_type -> flyteidl.admin.NamedEntityIdentifierListRequest + 3, // 7: flyteidl.service.AdminService.ListWorkflows:input_type -> flyteidl.admin.ResourceListRequest + 5, // 8: flyteidl.service.AdminService.CreateLaunchPlan:input_type -> flyteidl.admin.LaunchPlanCreateRequest + 1, // 9: flyteidl.service.AdminService.GetLaunchPlan:input_type -> flyteidl.admin.ObjectGetRequest + 6, // 10: flyteidl.service.AdminService.GetActiveLaunchPlan:input_type -> flyteidl.admin.ActiveLaunchPlanRequest + 7, // 11: flyteidl.service.AdminService.ListActiveLaunchPlans:input_type -> flyteidl.admin.ActiveLaunchPlanListRequest + 2, // 12: flyteidl.service.AdminService.ListLaunchPlanIds:input_type -> flyteidl.admin.NamedEntityIdentifierListRequest + 3, // 13: flyteidl.service.AdminService.ListLaunchPlans:input_type -> flyteidl.admin.ResourceListRequest + 8, // 14: flyteidl.service.AdminService.UpdateLaunchPlan:input_type -> flyteidl.admin.LaunchPlanUpdateRequest + 9, // 15: flyteidl.service.AdminService.CreateExecution:input_type -> flyteidl.admin.ExecutionCreateRequest + 10, // 16: flyteidl.service.AdminService.RelaunchExecution:input_type -> flyteidl.admin.ExecutionRelaunchRequest + 11, // 17: flyteidl.service.AdminService.RecoverExecution:input_type -> flyteidl.admin.ExecutionRecoverRequest + 12, // 18: flyteidl.service.AdminService.GetExecution:input_type -> flyteidl.admin.WorkflowExecutionGetRequest + 13, // 19: flyteidl.service.AdminService.UpdateExecution:input_type -> flyteidl.admin.ExecutionUpdateRequest + 14, // 20: flyteidl.service.AdminService.GetExecutionData:input_type -> flyteidl.admin.WorkflowExecutionGetDataRequest + 3, // 21: flyteidl.service.AdminService.ListExecutions:input_type -> flyteidl.admin.ResourceListRequest + 15, // 22: flyteidl.service.AdminService.TerminateExecution:input_type -> flyteidl.admin.ExecutionTerminateRequest + 16, // 23: flyteidl.service.AdminService.GetNodeExecution:input_type -> flyteidl.admin.NodeExecutionGetRequest + 17, // 24: flyteidl.service.AdminService.GetDynamicNodeWorkflow:input_type -> flyteidl.admin.GetDynamicNodeWorkflowRequest + 18, // 25: flyteidl.service.AdminService.ListNodeExecutions:input_type -> flyteidl.admin.NodeExecutionListRequest + 19, // 26: flyteidl.service.AdminService.ListNodeExecutionsForTask:input_type -> flyteidl.admin.NodeExecutionForTaskListRequest + 20, // 27: flyteidl.service.AdminService.GetNodeExecutionData:input_type -> flyteidl.admin.NodeExecutionGetDataRequest + 21, // 28: flyteidl.service.AdminService.RegisterProject:input_type -> flyteidl.admin.ProjectRegisterRequest + 22, // 29: flyteidl.service.AdminService.UpdateProject:input_type -> flyteidl.admin.Project + 23, // 30: flyteidl.service.AdminService.ListProjects:input_type -> flyteidl.admin.ProjectListRequest + 24, // 31: flyteidl.service.AdminService.CreateWorkflowEvent:input_type -> flyteidl.admin.WorkflowExecutionEventRequest + 25, // 32: flyteidl.service.AdminService.CreateNodeEvent:input_type -> flyteidl.admin.NodeExecutionEventRequest + 26, // 33: flyteidl.service.AdminService.CreateTaskEvent:input_type -> flyteidl.admin.TaskExecutionEventRequest + 27, // 34: flyteidl.service.AdminService.GetTaskExecution:input_type -> flyteidl.admin.TaskExecutionGetRequest + 28, // 35: flyteidl.service.AdminService.ListTaskExecutions:input_type -> flyteidl.admin.TaskExecutionListRequest + 29, // 36: flyteidl.service.AdminService.GetTaskExecutionData:input_type -> flyteidl.admin.TaskExecutionGetDataRequest + 30, // 37: flyteidl.service.AdminService.UpdateProjectDomainAttributes:input_type -> flyteidl.admin.ProjectDomainAttributesUpdateRequest + 31, // 38: flyteidl.service.AdminService.GetProjectDomainAttributes:input_type -> flyteidl.admin.ProjectDomainAttributesGetRequest + 32, // 39: flyteidl.service.AdminService.DeleteProjectDomainAttributes:input_type -> flyteidl.admin.ProjectDomainAttributesDeleteRequest + 33, // 40: flyteidl.service.AdminService.UpdateProjectAttributes:input_type -> flyteidl.admin.ProjectAttributesUpdateRequest + 34, // 41: flyteidl.service.AdminService.GetProjectAttributes:input_type -> flyteidl.admin.ProjectAttributesGetRequest + 35, // 42: flyteidl.service.AdminService.DeleteProjectAttributes:input_type -> flyteidl.admin.ProjectAttributesDeleteRequest + 36, // 43: flyteidl.service.AdminService.UpdateWorkflowAttributes:input_type -> flyteidl.admin.WorkflowAttributesUpdateRequest + 37, // 44: flyteidl.service.AdminService.GetWorkflowAttributes:input_type -> flyteidl.admin.WorkflowAttributesGetRequest + 38, // 45: flyteidl.service.AdminService.DeleteWorkflowAttributes:input_type -> flyteidl.admin.WorkflowAttributesDeleteRequest + 39, // 46: flyteidl.service.AdminService.ListMatchableAttributes:input_type -> flyteidl.admin.ListMatchableAttributesRequest + 40, // 47: flyteidl.service.AdminService.ListNamedEntities:input_type -> flyteidl.admin.NamedEntityListRequest + 41, // 48: flyteidl.service.AdminService.GetNamedEntity:input_type -> flyteidl.admin.NamedEntityGetRequest + 42, // 49: flyteidl.service.AdminService.UpdateNamedEntity:input_type -> flyteidl.admin.NamedEntityUpdateRequest + 43, // 50: flyteidl.service.AdminService.GetVersion:input_type -> flyteidl.admin.GetVersionRequest + 1, // 51: flyteidl.service.AdminService.GetDescriptionEntity:input_type -> flyteidl.admin.ObjectGetRequest + 44, // 52: flyteidl.service.AdminService.ListDescriptionEntities:input_type -> flyteidl.admin.DescriptionEntityListRequest + 45, // 53: flyteidl.service.AdminService.GetExecutionMetrics:input_type -> flyteidl.admin.WorkflowExecutionGetMetricsRequest + 46, // 54: flyteidl.service.AdminService.CreateTask:output_type -> flyteidl.admin.TaskCreateResponse + 47, // 55: flyteidl.service.AdminService.GetTask:output_type -> flyteidl.admin.Task + 48, // 56: flyteidl.service.AdminService.ListTaskIds:output_type -> flyteidl.admin.NamedEntityIdentifierList + 49, // 57: flyteidl.service.AdminService.ListTasks:output_type -> flyteidl.admin.TaskList + 50, // 58: flyteidl.service.AdminService.CreateWorkflow:output_type -> flyteidl.admin.WorkflowCreateResponse + 51, // 59: flyteidl.service.AdminService.GetWorkflow:output_type -> flyteidl.admin.Workflow + 48, // 60: flyteidl.service.AdminService.ListWorkflowIds:output_type -> flyteidl.admin.NamedEntityIdentifierList + 52, // 61: flyteidl.service.AdminService.ListWorkflows:output_type -> flyteidl.admin.WorkflowList + 53, // 62: flyteidl.service.AdminService.CreateLaunchPlan:output_type -> flyteidl.admin.LaunchPlanCreateResponse + 54, // 63: flyteidl.service.AdminService.GetLaunchPlan:output_type -> flyteidl.admin.LaunchPlan + 54, // 64: flyteidl.service.AdminService.GetActiveLaunchPlan:output_type -> flyteidl.admin.LaunchPlan + 55, // 65: flyteidl.service.AdminService.ListActiveLaunchPlans:output_type -> flyteidl.admin.LaunchPlanList + 48, // 66: flyteidl.service.AdminService.ListLaunchPlanIds:output_type -> flyteidl.admin.NamedEntityIdentifierList + 55, // 67: flyteidl.service.AdminService.ListLaunchPlans:output_type -> flyteidl.admin.LaunchPlanList + 56, // 68: flyteidl.service.AdminService.UpdateLaunchPlan:output_type -> flyteidl.admin.LaunchPlanUpdateResponse + 57, // 69: flyteidl.service.AdminService.CreateExecution:output_type -> flyteidl.admin.ExecutionCreateResponse + 57, // 70: flyteidl.service.AdminService.RelaunchExecution:output_type -> flyteidl.admin.ExecutionCreateResponse + 57, // 71: flyteidl.service.AdminService.RecoverExecution:output_type -> flyteidl.admin.ExecutionCreateResponse + 58, // 72: flyteidl.service.AdminService.GetExecution:output_type -> flyteidl.admin.Execution + 59, // 73: flyteidl.service.AdminService.UpdateExecution:output_type -> flyteidl.admin.ExecutionUpdateResponse + 60, // 74: flyteidl.service.AdminService.GetExecutionData:output_type -> flyteidl.admin.WorkflowExecutionGetDataResponse + 61, // 75: flyteidl.service.AdminService.ListExecutions:output_type -> flyteidl.admin.ExecutionList + 62, // 76: flyteidl.service.AdminService.TerminateExecution:output_type -> flyteidl.admin.ExecutionTerminateResponse + 63, // 77: flyteidl.service.AdminService.GetNodeExecution:output_type -> flyteidl.admin.NodeExecution + 64, // 78: flyteidl.service.AdminService.GetDynamicNodeWorkflow:output_type -> flyteidl.admin.DynamicNodeWorkflowResponse + 65, // 79: flyteidl.service.AdminService.ListNodeExecutions:output_type -> flyteidl.admin.NodeExecutionList + 65, // 80: flyteidl.service.AdminService.ListNodeExecutionsForTask:output_type -> flyteidl.admin.NodeExecutionList + 66, // 81: flyteidl.service.AdminService.GetNodeExecutionData:output_type -> flyteidl.admin.NodeExecutionGetDataResponse + 67, // 82: flyteidl.service.AdminService.RegisterProject:output_type -> flyteidl.admin.ProjectRegisterResponse + 68, // 83: flyteidl.service.AdminService.UpdateProject:output_type -> flyteidl.admin.ProjectUpdateResponse + 69, // 84: flyteidl.service.AdminService.ListProjects:output_type -> flyteidl.admin.Projects + 70, // 85: flyteidl.service.AdminService.CreateWorkflowEvent:output_type -> flyteidl.admin.WorkflowExecutionEventResponse + 71, // 86: flyteidl.service.AdminService.CreateNodeEvent:output_type -> flyteidl.admin.NodeExecutionEventResponse + 72, // 87: flyteidl.service.AdminService.CreateTaskEvent:output_type -> flyteidl.admin.TaskExecutionEventResponse + 73, // 88: flyteidl.service.AdminService.GetTaskExecution:output_type -> flyteidl.admin.TaskExecution + 74, // 89: flyteidl.service.AdminService.ListTaskExecutions:output_type -> flyteidl.admin.TaskExecutionList + 75, // 90: flyteidl.service.AdminService.GetTaskExecutionData:output_type -> flyteidl.admin.TaskExecutionGetDataResponse + 76, // 91: flyteidl.service.AdminService.UpdateProjectDomainAttributes:output_type -> flyteidl.admin.ProjectDomainAttributesUpdateResponse + 77, // 92: flyteidl.service.AdminService.GetProjectDomainAttributes:output_type -> flyteidl.admin.ProjectDomainAttributesGetResponse + 78, // 93: flyteidl.service.AdminService.DeleteProjectDomainAttributes:output_type -> flyteidl.admin.ProjectDomainAttributesDeleteResponse + 79, // 94: flyteidl.service.AdminService.UpdateProjectAttributes:output_type -> flyteidl.admin.ProjectAttributesUpdateResponse + 80, // 95: flyteidl.service.AdminService.GetProjectAttributes:output_type -> flyteidl.admin.ProjectAttributesGetResponse + 81, // 96: flyteidl.service.AdminService.DeleteProjectAttributes:output_type -> flyteidl.admin.ProjectAttributesDeleteResponse + 82, // 97: flyteidl.service.AdminService.UpdateWorkflowAttributes:output_type -> flyteidl.admin.WorkflowAttributesUpdateResponse + 83, // 98: flyteidl.service.AdminService.GetWorkflowAttributes:output_type -> flyteidl.admin.WorkflowAttributesGetResponse + 84, // 99: flyteidl.service.AdminService.DeleteWorkflowAttributes:output_type -> flyteidl.admin.WorkflowAttributesDeleteResponse + 85, // 100: flyteidl.service.AdminService.ListMatchableAttributes:output_type -> flyteidl.admin.ListMatchableAttributesResponse + 86, // 101: flyteidl.service.AdminService.ListNamedEntities:output_type -> flyteidl.admin.NamedEntityList + 87, // 102: flyteidl.service.AdminService.GetNamedEntity:output_type -> flyteidl.admin.NamedEntity + 88, // 103: flyteidl.service.AdminService.UpdateNamedEntity:output_type -> flyteidl.admin.NamedEntityUpdateResponse + 89, // 104: flyteidl.service.AdminService.GetVersion:output_type -> flyteidl.admin.GetVersionResponse + 90, // 105: flyteidl.service.AdminService.GetDescriptionEntity:output_type -> flyteidl.admin.DescriptionEntity + 91, // 106: flyteidl.service.AdminService.ListDescriptionEntities:output_type -> flyteidl.admin.DescriptionEntityList + 92, // 107: flyteidl.service.AdminService.GetExecutionMetrics:output_type -> flyteidl.admin.WorkflowExecutionGetMetricsResponse + 54, // [54:108] is the sub-list for method output_type + 0, // [0:54] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_admin_proto_init() } +func file_flyteidl_service_admin_proto_init() { + if File_flyteidl_service_admin_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_admin_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_service_admin_proto_goTypes, + DependencyIndexes: file_flyteidl_service_admin_proto_depIdxs, + }.Build() + File_flyteidl_service_admin_proto = out.File + file_flyteidl_service_admin_proto_rawDesc = nil + file_flyteidl_service_admin_proto_goTypes = nil + file_flyteidl_service_admin_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go new file mode 100644 index 0000000000..2f96e962f9 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/admin_grpc.pb.go @@ -0,0 +1,2187 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/admin.proto + +package service + +import ( + context "context" + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + AdminService_CreateTask_FullMethodName = "/flyteidl.service.AdminService/CreateTask" + AdminService_GetTask_FullMethodName = "/flyteidl.service.AdminService/GetTask" + AdminService_ListTaskIds_FullMethodName = "/flyteidl.service.AdminService/ListTaskIds" + AdminService_ListTasks_FullMethodName = "/flyteidl.service.AdminService/ListTasks" + AdminService_CreateWorkflow_FullMethodName = "/flyteidl.service.AdminService/CreateWorkflow" + AdminService_GetWorkflow_FullMethodName = "/flyteidl.service.AdminService/GetWorkflow" + AdminService_ListWorkflowIds_FullMethodName = "/flyteidl.service.AdminService/ListWorkflowIds" + AdminService_ListWorkflows_FullMethodName = "/flyteidl.service.AdminService/ListWorkflows" + AdminService_CreateLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/CreateLaunchPlan" + AdminService_GetLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/GetLaunchPlan" + AdminService_GetActiveLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/GetActiveLaunchPlan" + AdminService_ListActiveLaunchPlans_FullMethodName = "/flyteidl.service.AdminService/ListActiveLaunchPlans" + AdminService_ListLaunchPlanIds_FullMethodName = "/flyteidl.service.AdminService/ListLaunchPlanIds" + AdminService_ListLaunchPlans_FullMethodName = "/flyteidl.service.AdminService/ListLaunchPlans" + AdminService_UpdateLaunchPlan_FullMethodName = "/flyteidl.service.AdminService/UpdateLaunchPlan" + AdminService_CreateExecution_FullMethodName = "/flyteidl.service.AdminService/CreateExecution" + AdminService_RelaunchExecution_FullMethodName = "/flyteidl.service.AdminService/RelaunchExecution" + AdminService_RecoverExecution_FullMethodName = "/flyteidl.service.AdminService/RecoverExecution" + AdminService_GetExecution_FullMethodName = "/flyteidl.service.AdminService/GetExecution" + AdminService_UpdateExecution_FullMethodName = "/flyteidl.service.AdminService/UpdateExecution" + AdminService_GetExecutionData_FullMethodName = "/flyteidl.service.AdminService/GetExecutionData" + AdminService_ListExecutions_FullMethodName = "/flyteidl.service.AdminService/ListExecutions" + AdminService_TerminateExecution_FullMethodName = "/flyteidl.service.AdminService/TerminateExecution" + AdminService_GetNodeExecution_FullMethodName = "/flyteidl.service.AdminService/GetNodeExecution" + AdminService_GetDynamicNodeWorkflow_FullMethodName = "/flyteidl.service.AdminService/GetDynamicNodeWorkflow" + AdminService_ListNodeExecutions_FullMethodName = "/flyteidl.service.AdminService/ListNodeExecutions" + AdminService_ListNodeExecutionsForTask_FullMethodName = "/flyteidl.service.AdminService/ListNodeExecutionsForTask" + AdminService_GetNodeExecutionData_FullMethodName = "/flyteidl.service.AdminService/GetNodeExecutionData" + AdminService_RegisterProject_FullMethodName = "/flyteidl.service.AdminService/RegisterProject" + AdminService_UpdateProject_FullMethodName = "/flyteidl.service.AdminService/UpdateProject" + AdminService_ListProjects_FullMethodName = "/flyteidl.service.AdminService/ListProjects" + AdminService_CreateWorkflowEvent_FullMethodName = "/flyteidl.service.AdminService/CreateWorkflowEvent" + AdminService_CreateNodeEvent_FullMethodName = "/flyteidl.service.AdminService/CreateNodeEvent" + AdminService_CreateTaskEvent_FullMethodName = "/flyteidl.service.AdminService/CreateTaskEvent" + AdminService_GetTaskExecution_FullMethodName = "/flyteidl.service.AdminService/GetTaskExecution" + AdminService_ListTaskExecutions_FullMethodName = "/flyteidl.service.AdminService/ListTaskExecutions" + AdminService_GetTaskExecutionData_FullMethodName = "/flyteidl.service.AdminService/GetTaskExecutionData" + AdminService_UpdateProjectDomainAttributes_FullMethodName = "/flyteidl.service.AdminService/UpdateProjectDomainAttributes" + AdminService_GetProjectDomainAttributes_FullMethodName = "/flyteidl.service.AdminService/GetProjectDomainAttributes" + AdminService_DeleteProjectDomainAttributes_FullMethodName = "/flyteidl.service.AdminService/DeleteProjectDomainAttributes" + AdminService_UpdateProjectAttributes_FullMethodName = "/flyteidl.service.AdminService/UpdateProjectAttributes" + AdminService_GetProjectAttributes_FullMethodName = "/flyteidl.service.AdminService/GetProjectAttributes" + AdminService_DeleteProjectAttributes_FullMethodName = "/flyteidl.service.AdminService/DeleteProjectAttributes" + AdminService_UpdateWorkflowAttributes_FullMethodName = "/flyteidl.service.AdminService/UpdateWorkflowAttributes" + AdminService_GetWorkflowAttributes_FullMethodName = "/flyteidl.service.AdminService/GetWorkflowAttributes" + AdminService_DeleteWorkflowAttributes_FullMethodName = "/flyteidl.service.AdminService/DeleteWorkflowAttributes" + AdminService_ListMatchableAttributes_FullMethodName = "/flyteidl.service.AdminService/ListMatchableAttributes" + AdminService_ListNamedEntities_FullMethodName = "/flyteidl.service.AdminService/ListNamedEntities" + AdminService_GetNamedEntity_FullMethodName = "/flyteidl.service.AdminService/GetNamedEntity" + AdminService_UpdateNamedEntity_FullMethodName = "/flyteidl.service.AdminService/UpdateNamedEntity" + AdminService_GetVersion_FullMethodName = "/flyteidl.service.AdminService/GetVersion" + AdminService_GetDescriptionEntity_FullMethodName = "/flyteidl.service.AdminService/GetDescriptionEntity" + AdminService_ListDescriptionEntities_FullMethodName = "/flyteidl.service.AdminService/ListDescriptionEntities" + AdminService_GetExecutionMetrics_FullMethodName = "/flyteidl.service.AdminService/GetExecutionMetrics" +) + +// AdminServiceClient is the client API for AdminService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AdminServiceClient interface { + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) + // Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. + GetDynamicNodeWorkflow(ctx context.Context, in *admin.GetDynamicNodeWorkflowRequest, opts ...grpc.CallOption) (*admin.DynamicNodeWorkflowResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) + GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) +} + +type adminServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient { + return &adminServiceClient{cc} +} + +func (c *adminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) { + out := new(admin.TaskCreateResponse) + err := c.cc.Invoke(ctx, AdminService_CreateTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) { + out := new(admin.Task) + err := c.cc.Invoke(ctx, AdminService_GetTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, AdminService_ListTaskIds_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) { + out := new(admin.TaskList) + err := c.cc.Invoke(ctx, AdminService_ListTasks_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) { + out := new(admin.WorkflowCreateResponse) + err := c.cc.Invoke(ctx, AdminService_CreateWorkflow_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) { + out := new(admin.Workflow) + err := c.cc.Invoke(ctx, AdminService_GetWorkflow_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, AdminService_ListWorkflowIds_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) { + out := new(admin.WorkflowList) + err := c.cc.Invoke(ctx, AdminService_ListWorkflows_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) { + out := new(admin.LaunchPlanCreateResponse) + err := c.cc.Invoke(ctx, AdminService_CreateLaunchPlan_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + out := new(admin.LaunchPlan) + err := c.cc.Invoke(ctx, AdminService_GetLaunchPlan_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { + out := new(admin.LaunchPlan) + err := c.cc.Invoke(ctx, AdminService_GetActiveLaunchPlan_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + out := new(admin.LaunchPlanList) + err := c.cc.Invoke(ctx, AdminService_ListActiveLaunchPlans_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { + out := new(admin.NamedEntityIdentifierList) + err := c.cc.Invoke(ctx, AdminService_ListLaunchPlanIds_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { + out := new(admin.LaunchPlanList) + err := c.cc.Invoke(ctx, AdminService_ListLaunchPlans_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) { + out := new(admin.LaunchPlanUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateLaunchPlan_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, AdminService_CreateExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, AdminService_RelaunchExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { + out := new(admin.ExecutionCreateResponse) + err := c.cc.Invoke(ctx, AdminService_RecoverExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) { + out := new(admin.Execution) + err := c.cc.Invoke(ctx, AdminService_GetExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) { + out := new(admin.ExecutionUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) { + out := new(admin.WorkflowExecutionGetDataResponse) + err := c.cc.Invoke(ctx, AdminService_GetExecutionData_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) { + out := new(admin.ExecutionList) + err := c.cc.Invoke(ctx, AdminService_ListExecutions_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) { + out := new(admin.ExecutionTerminateResponse) + err := c.cc.Invoke(ctx, AdminService_TerminateExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) { + out := new(admin.NodeExecution) + err := c.cc.Invoke(ctx, AdminService_GetNodeExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetDynamicNodeWorkflow(ctx context.Context, in *admin.GetDynamicNodeWorkflowRequest, opts ...grpc.CallOption) (*admin.DynamicNodeWorkflowResponse, error) { + out := new(admin.DynamicNodeWorkflowResponse) + err := c.cc.Invoke(ctx, AdminService_GetDynamicNodeWorkflow_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + out := new(admin.NodeExecutionList) + err := c.cc.Invoke(ctx, AdminService_ListNodeExecutions_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { + out := new(admin.NodeExecutionList) + err := c.cc.Invoke(ctx, AdminService_ListNodeExecutionsForTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) { + out := new(admin.NodeExecutionGetDataResponse) + err := c.cc.Invoke(ctx, AdminService_GetNodeExecutionData_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) { + out := new(admin.ProjectRegisterResponse) + err := c.cc.Invoke(ctx, AdminService_RegisterProject_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) { + out := new(admin.ProjectUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateProject_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) { + out := new(admin.Projects) + err := c.cc.Invoke(ctx, AdminService_ListProjects_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) { + out := new(admin.WorkflowExecutionEventResponse) + err := c.cc.Invoke(ctx, AdminService_CreateWorkflowEvent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) { + out := new(admin.NodeExecutionEventResponse) + err := c.cc.Invoke(ctx, AdminService_CreateNodeEvent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) { + out := new(admin.TaskExecutionEventResponse) + err := c.cc.Invoke(ctx, AdminService_CreateTaskEvent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) { + out := new(admin.TaskExecution) + err := c.cc.Invoke(ctx, AdminService_GetTaskExecution_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) { + out := new(admin.TaskExecutionList) + err := c.cc.Invoke(ctx, AdminService_ListTaskExecutions_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) { + out := new(admin.TaskExecutionGetDataResponse) + err := c.cc.Invoke(ctx, AdminService_GetTaskExecutionData_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) { + out := new(admin.ProjectDomainAttributesUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateProjectDomainAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) { + out := new(admin.ProjectDomainAttributesGetResponse) + err := c.cc.Invoke(ctx, AdminService_GetProjectDomainAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) { + out := new(admin.ProjectDomainAttributesDeleteResponse) + err := c.cc.Invoke(ctx, AdminService_DeleteProjectDomainAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) { + out := new(admin.ProjectAttributesUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateProjectAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) { + out := new(admin.ProjectAttributesGetResponse) + err := c.cc.Invoke(ctx, AdminService_GetProjectAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) { + out := new(admin.ProjectAttributesDeleteResponse) + err := c.cc.Invoke(ctx, AdminService_DeleteProjectAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) { + out := new(admin.WorkflowAttributesUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateWorkflowAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) { + out := new(admin.WorkflowAttributesGetResponse) + err := c.cc.Invoke(ctx, AdminService_GetWorkflowAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) { + out := new(admin.WorkflowAttributesDeleteResponse) + err := c.cc.Invoke(ctx, AdminService_DeleteWorkflowAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) { + out := new(admin.ListMatchableAttributesResponse) + err := c.cc.Invoke(ctx, AdminService_ListMatchableAttributes_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) { + out := new(admin.NamedEntityList) + err := c.cc.Invoke(ctx, AdminService_ListNamedEntities_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) { + out := new(admin.NamedEntity) + err := c.cc.Invoke(ctx, AdminService_GetNamedEntity_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) { + out := new(admin.NamedEntityUpdateResponse) + err := c.cc.Invoke(ctx, AdminService_UpdateNamedEntity_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) { + out := new(admin.GetVersionResponse) + err := c.cc.Invoke(ctx, AdminService_GetVersion_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) { + out := new(admin.DescriptionEntity) + err := c.cc.Invoke(ctx, AdminService_GetDescriptionEntity_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) { + out := new(admin.DescriptionEntityList) + err := c.cc.Invoke(ctx, AdminService_ListDescriptionEntities_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *adminServiceClient) GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) { + out := new(admin.WorkflowExecutionGetMetricsResponse) + err := c.cc.Invoke(ctx, AdminService_GetExecutionMetrics_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AdminServiceServer is the server API for AdminService service. +// All implementations should embed UnimplementedAdminServiceServer +// for forward compatibility +type AdminServiceServer interface { + // Create and upload a :ref:`ref_flyteidl.admin.Task` definition + CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Task` definition. + GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. + ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. + ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) + // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition + CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. + GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. + ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. + ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) + // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition + CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. + GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) + // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. + GetActiveLaunchPlan(context.Context, *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) + // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. + ListActiveLaunchPlans(context.Context, *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. + ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. + ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) + // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. + UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) + // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` + CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) + // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` + RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) + // Recreates a previously-run workflow execution that will only start executing from the last known failure point. + // In Recover mode, users cannot change any input parameters or update the version of the execution. + // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, + // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. + // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. + RecoverExecution(context.Context, *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.Execution`. + GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) + // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. + UpdateExecution(context.Context, *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. + ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) + // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. + TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) + // Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. + GetDynamicNodeWorkflow(context.Context, *admin.GetDynamicNodeWorkflowRequest) (*admin.DynamicNodeWorkflowResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. + ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) + // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. + ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. + GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) + // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. + RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) + // Updates an existing :ref:`ref_flyteidl.admin.Project` + // flyteidl.admin.Project should be passed but the domains property should be empty; + // it will be ignored in the handler as domains cannot be updated via this API. + UpdateProject(context.Context, *admin.Project) (*admin.ProjectUpdateResponse, error) + // Fetches a list of :ref:`ref_flyteidl.admin.Project` + ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) + // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. + CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. + CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) + // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. + CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) + // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) + // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. + ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) + // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. + GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + UpdateProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level + UpdateProjectAttributes(context.Context, *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + GetProjectAttributes(context.Context, *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. + DeleteProjectAttributes(context.Context, *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) + // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + UpdateWorkflowAttributes(context.Context, *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) + // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + GetWorkflowAttributes(context.Context, *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) + // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. + DeleteWorkflowAttributes(context.Context, *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) + // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. + ListMatchableAttributes(context.Context, *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) + // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. + ListNamedEntities(context.Context, *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) + // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. + GetNamedEntity(context.Context, *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) + // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. + UpdateNamedEntity(context.Context, *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) + GetVersion(context.Context, *admin.GetVersionRequest) (*admin.GetVersionResponse, error) + // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. + GetDescriptionEntity(context.Context, *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) + // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. + ListDescriptionEntities(context.Context, *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) + // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. + GetExecutionMetrics(context.Context, *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) +} + +// UnimplementedAdminServiceServer should be embedded to have forward compatible implementations. +type UnimplementedAdminServiceServer struct { +} + +func (UnimplementedAdminServiceServer) CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (UnimplementedAdminServiceServer) GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (UnimplementedAdminServiceServer) ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTaskIds not implemented") +} +func (UnimplementedAdminServiceServer) ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTasks not implemented") +} +func (UnimplementedAdminServiceServer) CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflow not implemented") +} +func (UnimplementedAdminServiceServer) GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflow not implemented") +} +func (UnimplementedAdminServiceServer) ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowIds not implemented") +} +func (UnimplementedAdminServiceServer) ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListWorkflows not implemented") +} +func (UnimplementedAdminServiceServer) CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateLaunchPlan not implemented") +} +func (UnimplementedAdminServiceServer) GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetLaunchPlan not implemented") +} +func (UnimplementedAdminServiceServer) GetActiveLaunchPlan(context.Context, *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetActiveLaunchPlan not implemented") +} +func (UnimplementedAdminServiceServer) ListActiveLaunchPlans(context.Context, *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListActiveLaunchPlans not implemented") +} +func (UnimplementedAdminServiceServer) ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlanIds not implemented") +} +func (UnimplementedAdminServiceServer) ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlans not implemented") +} +func (UnimplementedAdminServiceServer) UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateLaunchPlan not implemented") +} +func (UnimplementedAdminServiceServer) CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateExecution not implemented") +} +func (UnimplementedAdminServiceServer) RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RelaunchExecution not implemented") +} +func (UnimplementedAdminServiceServer) RecoverExecution(context.Context, *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RecoverExecution not implemented") +} +func (UnimplementedAdminServiceServer) GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExecution not implemented") +} +func (UnimplementedAdminServiceServer) UpdateExecution(context.Context, *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateExecution not implemented") +} +func (UnimplementedAdminServiceServer) GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExecutionData not implemented") +} +func (UnimplementedAdminServiceServer) ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListExecutions not implemented") +} +func (UnimplementedAdminServiceServer) TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method TerminateExecution not implemented") +} +func (UnimplementedAdminServiceServer) GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecution not implemented") +} +func (UnimplementedAdminServiceServer) GetDynamicNodeWorkflow(context.Context, *admin.GetDynamicNodeWorkflowRequest) (*admin.DynamicNodeWorkflowResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDynamicNodeWorkflow not implemented") +} +func (UnimplementedAdminServiceServer) ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutions not implemented") +} +func (UnimplementedAdminServiceServer) ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutionsForTask not implemented") +} +func (UnimplementedAdminServiceServer) GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecutionData not implemented") +} +func (UnimplementedAdminServiceServer) RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RegisterProject not implemented") +} +func (UnimplementedAdminServiceServer) UpdateProject(context.Context, *admin.Project) (*admin.ProjectUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") +} +func (UnimplementedAdminServiceServer) ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented") +} +func (UnimplementedAdminServiceServer) CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowEvent not implemented") +} +func (UnimplementedAdminServiceServer) CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNodeEvent not implemented") +} +func (UnimplementedAdminServiceServer) CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTaskEvent not implemented") +} +func (UnimplementedAdminServiceServer) GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecution not implemented") +} +func (UnimplementedAdminServiceServer) ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListTaskExecutions not implemented") +} +func (UnimplementedAdminServiceServer) GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecutionData not implemented") +} +func (UnimplementedAdminServiceServer) UpdateProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectDomainAttributes not implemented") +} +func (UnimplementedAdminServiceServer) GetProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectDomainAttributes not implemented") +} +func (UnimplementedAdminServiceServer) DeleteProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectDomainAttributes not implemented") +} +func (UnimplementedAdminServiceServer) UpdateProjectAttributes(context.Context, *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectAttributes not implemented") +} +func (UnimplementedAdminServiceServer) GetProjectAttributes(context.Context, *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetProjectAttributes not implemented") +} +func (UnimplementedAdminServiceServer) DeleteProjectAttributes(context.Context, *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectAttributes not implemented") +} +func (UnimplementedAdminServiceServer) UpdateWorkflowAttributes(context.Context, *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowAttributes not implemented") +} +func (UnimplementedAdminServiceServer) GetWorkflowAttributes(context.Context, *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowAttributes not implemented") +} +func (UnimplementedAdminServiceServer) DeleteWorkflowAttributes(context.Context, *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowAttributes not implemented") +} +func (UnimplementedAdminServiceServer) ListMatchableAttributes(context.Context, *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListMatchableAttributes not implemented") +} +func (UnimplementedAdminServiceServer) ListNamedEntities(context.Context, *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNamedEntities not implemented") +} +func (UnimplementedAdminServiceServer) GetNamedEntity(context.Context, *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNamedEntity not implemented") +} +func (UnimplementedAdminServiceServer) UpdateNamedEntity(context.Context, *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNamedEntity not implemented") +} +func (UnimplementedAdminServiceServer) GetVersion(context.Context, *admin.GetVersionRequest) (*admin.GetVersionResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") +} +func (UnimplementedAdminServiceServer) GetDescriptionEntity(context.Context, *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDescriptionEntity not implemented") +} +func (UnimplementedAdminServiceServer) ListDescriptionEntities(context.Context, *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListDescriptionEntities not implemented") +} +func (UnimplementedAdminServiceServer) GetExecutionMetrics(context.Context, *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetExecutionMetrics not implemented") +} + +// UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AdminServiceServer will +// result in compilation errors. +type UnsafeAdminServiceServer interface { + mustEmbedUnimplementedAdminServiceServer() +} + +func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer) { + s.RegisterService(&AdminService_ServiceDesc, srv) +} + +func _AdminService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateTask(ctx, req.(*admin.TaskCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTask(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTaskIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTaskIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListTaskIds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTaskIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTasks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListTasks_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTasks(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateWorkflow(ctx, req.(*admin.WorkflowCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetWorkflow(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListWorkflowIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListWorkflowIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListWorkflowIds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListWorkflowIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListWorkflows(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListWorkflows_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListWorkflows(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.LaunchPlanCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateLaunchPlan_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateLaunchPlan(ctx, req.(*admin.LaunchPlanCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetLaunchPlan_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetLaunchPlan(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetActiveLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ActiveLaunchPlanRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetActiveLaunchPlan_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, req.(*admin.ActiveLaunchPlanRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListActiveLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ActiveLaunchPlanListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListActiveLaunchPlans_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, req.(*admin.ActiveLaunchPlanListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListLaunchPlanIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityIdentifierListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListLaunchPlanIds_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListLaunchPlans(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListLaunchPlans_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListLaunchPlans(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.LaunchPlanUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateLaunchPlan_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, req.(*admin.LaunchPlanUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateExecution(ctx, req.(*admin.ExecutionCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RelaunchExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionRelaunchRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RelaunchExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_RelaunchExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RelaunchExecution(ctx, req.(*admin.ExecutionRelaunchRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RecoverExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionRecoverRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RecoverExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_RecoverExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RecoverExecution(ctx, req.(*admin.ExecutionRecoverRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecution(ctx, req.(*admin.WorkflowExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateExecution(ctx, req.(*admin.ExecutionUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetExecutionData_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecutionData(ctx, req.(*admin.WorkflowExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ResourceListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListExecutions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListExecutions(ctx, req.(*admin.ResourceListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_TerminateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ExecutionTerminateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).TerminateExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_TerminateExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).TerminateExecution(ctx, req.(*admin.ExecutionTerminateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNodeExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNodeExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetNodeExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNodeExecution(ctx, req.(*admin.NodeExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetDynamicNodeWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetDynamicNodeWorkflowRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetDynamicNodeWorkflow(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetDynamicNodeWorkflow_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetDynamicNodeWorkflow(ctx, req.(*admin.GetDynamicNodeWorkflowRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNodeExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNodeExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListNodeExecutions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNodeExecutions(ctx, req.(*admin.NodeExecutionListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNodeExecutionsForTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionForTaskListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListNodeExecutionsForTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, req.(*admin.NodeExecutionForTaskListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNodeExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNodeExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetNodeExecutionData_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNodeExecutionData(ctx, req.(*admin.NodeExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_RegisterProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectRegisterRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).RegisterProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_RegisterProject_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).RegisterProject(ctx, req.(*admin.ProjectRegisterRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.Project) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateProject(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateProject_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateProject(ctx, req.(*admin.Project)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListProjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListProjects_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListProjects(ctx, req.(*admin.ProjectListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateWorkflowEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateWorkflowEvent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, req.(*admin.WorkflowExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateNodeEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NodeExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateNodeEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateNodeEvent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateNodeEvent(ctx, req.(*admin.NodeExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_CreateTaskEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionEventRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).CreateTaskEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_CreateTaskEvent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).CreateTaskEvent(ctx, req.(*admin.TaskExecutionEventRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTaskExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTaskExecution(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetTaskExecution_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTaskExecution(ctx, req.(*admin.TaskExecutionGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListTaskExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListTaskExecutions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListTaskExecutions_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListTaskExecutions(ctx, req.(*admin.TaskExecutionListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetTaskExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.TaskExecutionGetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetTaskExecutionData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetTaskExecutionData_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetTaskExecutionData(ctx, req.(*admin.TaskExecutionGetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectDomainAttributesUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateProjectDomainAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectDomainAttributesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetProjectDomainAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectDomainAttributesDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_DeleteProjectDomainAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectAttributesUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateProjectAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, req.(*admin.ProjectAttributesUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectAttributesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetProjectAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetProjectAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetProjectAttributes(ctx, req.(*admin.ProjectAttributesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ProjectAttributesDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_DeleteProjectAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, req.(*admin.ProjectAttributesDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowAttributesUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateWorkflowAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowAttributesGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetWorkflowAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_DeleteWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowAttributesDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_DeleteWorkflowAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListMatchableAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ListMatchableAttributesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListMatchableAttributes(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListMatchableAttributes_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListMatchableAttributes(ctx, req.(*admin.ListMatchableAttributesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListNamedEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListNamedEntities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListNamedEntities_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListNamedEntities(ctx, req.(*admin.NamedEntityListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetNamedEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetNamedEntity_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetNamedEntity(ctx, req.(*admin.NamedEntityGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_UpdateNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.NamedEntityUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).UpdateNamedEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_UpdateNamedEntity_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).UpdateNamedEntity(ctx, req.(*admin.NamedEntityUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetVersionRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetVersion(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetVersion_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetVersion(ctx, req.(*admin.GetVersionRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetDescriptionEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ObjectGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetDescriptionEntity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetDescriptionEntity_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetDescriptionEntity(ctx, req.(*admin.ObjectGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_ListDescriptionEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.DescriptionEntityListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).ListDescriptionEntities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_ListDescriptionEntities_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).ListDescriptionEntities(ctx, req.(*admin.DescriptionEntityListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AdminService_GetExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.WorkflowExecutionGetMetricsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AdminServiceServer).GetExecutionMetrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AdminService_GetExecutionMetrics_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AdminServiceServer).GetExecutionMetrics(ctx, req.(*admin.WorkflowExecutionGetMetricsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AdminService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AdminService", + HandlerType: (*AdminServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _AdminService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _AdminService_GetTask_Handler, + }, + { + MethodName: "ListTaskIds", + Handler: _AdminService_ListTaskIds_Handler, + }, + { + MethodName: "ListTasks", + Handler: _AdminService_ListTasks_Handler, + }, + { + MethodName: "CreateWorkflow", + Handler: _AdminService_CreateWorkflow_Handler, + }, + { + MethodName: "GetWorkflow", + Handler: _AdminService_GetWorkflow_Handler, + }, + { + MethodName: "ListWorkflowIds", + Handler: _AdminService_ListWorkflowIds_Handler, + }, + { + MethodName: "ListWorkflows", + Handler: _AdminService_ListWorkflows_Handler, + }, + { + MethodName: "CreateLaunchPlan", + Handler: _AdminService_CreateLaunchPlan_Handler, + }, + { + MethodName: "GetLaunchPlan", + Handler: _AdminService_GetLaunchPlan_Handler, + }, + { + MethodName: "GetActiveLaunchPlan", + Handler: _AdminService_GetActiveLaunchPlan_Handler, + }, + { + MethodName: "ListActiveLaunchPlans", + Handler: _AdminService_ListActiveLaunchPlans_Handler, + }, + { + MethodName: "ListLaunchPlanIds", + Handler: _AdminService_ListLaunchPlanIds_Handler, + }, + { + MethodName: "ListLaunchPlans", + Handler: _AdminService_ListLaunchPlans_Handler, + }, + { + MethodName: "UpdateLaunchPlan", + Handler: _AdminService_UpdateLaunchPlan_Handler, + }, + { + MethodName: "CreateExecution", + Handler: _AdminService_CreateExecution_Handler, + }, + { + MethodName: "RelaunchExecution", + Handler: _AdminService_RelaunchExecution_Handler, + }, + { + MethodName: "RecoverExecution", + Handler: _AdminService_RecoverExecution_Handler, + }, + { + MethodName: "GetExecution", + Handler: _AdminService_GetExecution_Handler, + }, + { + MethodName: "UpdateExecution", + Handler: _AdminService_UpdateExecution_Handler, + }, + { + MethodName: "GetExecutionData", + Handler: _AdminService_GetExecutionData_Handler, + }, + { + MethodName: "ListExecutions", + Handler: _AdminService_ListExecutions_Handler, + }, + { + MethodName: "TerminateExecution", + Handler: _AdminService_TerminateExecution_Handler, + }, + { + MethodName: "GetNodeExecution", + Handler: _AdminService_GetNodeExecution_Handler, + }, + { + MethodName: "GetDynamicNodeWorkflow", + Handler: _AdminService_GetDynamicNodeWorkflow_Handler, + }, + { + MethodName: "ListNodeExecutions", + Handler: _AdminService_ListNodeExecutions_Handler, + }, + { + MethodName: "ListNodeExecutionsForTask", + Handler: _AdminService_ListNodeExecutionsForTask_Handler, + }, + { + MethodName: "GetNodeExecutionData", + Handler: _AdminService_GetNodeExecutionData_Handler, + }, + { + MethodName: "RegisterProject", + Handler: _AdminService_RegisterProject_Handler, + }, + { + MethodName: "UpdateProject", + Handler: _AdminService_UpdateProject_Handler, + }, + { + MethodName: "ListProjects", + Handler: _AdminService_ListProjects_Handler, + }, + { + MethodName: "CreateWorkflowEvent", + Handler: _AdminService_CreateWorkflowEvent_Handler, + }, + { + MethodName: "CreateNodeEvent", + Handler: _AdminService_CreateNodeEvent_Handler, + }, + { + MethodName: "CreateTaskEvent", + Handler: _AdminService_CreateTaskEvent_Handler, + }, + { + MethodName: "GetTaskExecution", + Handler: _AdminService_GetTaskExecution_Handler, + }, + { + MethodName: "ListTaskExecutions", + Handler: _AdminService_ListTaskExecutions_Handler, + }, + { + MethodName: "GetTaskExecutionData", + Handler: _AdminService_GetTaskExecutionData_Handler, + }, + { + MethodName: "UpdateProjectDomainAttributes", + Handler: _AdminService_UpdateProjectDomainAttributes_Handler, + }, + { + MethodName: "GetProjectDomainAttributes", + Handler: _AdminService_GetProjectDomainAttributes_Handler, + }, + { + MethodName: "DeleteProjectDomainAttributes", + Handler: _AdminService_DeleteProjectDomainAttributes_Handler, + }, + { + MethodName: "UpdateProjectAttributes", + Handler: _AdminService_UpdateProjectAttributes_Handler, + }, + { + MethodName: "GetProjectAttributes", + Handler: _AdminService_GetProjectAttributes_Handler, + }, + { + MethodName: "DeleteProjectAttributes", + Handler: _AdminService_DeleteProjectAttributes_Handler, + }, + { + MethodName: "UpdateWorkflowAttributes", + Handler: _AdminService_UpdateWorkflowAttributes_Handler, + }, + { + MethodName: "GetWorkflowAttributes", + Handler: _AdminService_GetWorkflowAttributes_Handler, + }, + { + MethodName: "DeleteWorkflowAttributes", + Handler: _AdminService_DeleteWorkflowAttributes_Handler, + }, + { + MethodName: "ListMatchableAttributes", + Handler: _AdminService_ListMatchableAttributes_Handler, + }, + { + MethodName: "ListNamedEntities", + Handler: _AdminService_ListNamedEntities_Handler, + }, + { + MethodName: "GetNamedEntity", + Handler: _AdminService_GetNamedEntity_Handler, + }, + { + MethodName: "UpdateNamedEntity", + Handler: _AdminService_UpdateNamedEntity_Handler, + }, + { + MethodName: "GetVersion", + Handler: _AdminService_GetVersion_Handler, + }, + { + MethodName: "GetDescriptionEntity", + Handler: _AdminService_GetDescriptionEntity_Handler, + }, + { + MethodName: "ListDescriptionEntities", + Handler: _AdminService_ListDescriptionEntities_Handler, + }, + { + MethodName: "GetExecutionMetrics", + Handler: _AdminService_GetExecutionMetrics_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/admin.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go new file mode 100644 index 0000000000..a95e0f58e1 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -0,0 +1,191 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/agent.proto + +package service + +import ( + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_flyteidl_service_agent_proto protoreflect.FileDescriptor + +var file_flyteidl_service_agent_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xa1, 0x01, 0x0a, 0x10, 0x53, + 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x8c, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, + 0x79, 0x6e, 0x63, 0x12, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, + 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, + 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x32, 0xc3, + 0x06, 0x0a, 0x11, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x17, 0x3a, 0x01, 0x2a, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, + 0x6b, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, + 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x54, 0x2a, 0x52, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, + 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, + 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, + 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x4e, 0x12, 0x4c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, + 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, + 0x61, 0x7d, 0x30, 0x01, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, + 0x08, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, + 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x6b, 0x0a, 0x0a, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x16, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, + 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var file_flyteidl_service_agent_proto_goTypes = []interface{}{ + (*admin.ExecuteTaskSyncRequest)(nil), // 0: flyteidl.admin.ExecuteTaskSyncRequest + (*admin.CreateTaskRequest)(nil), // 1: flyteidl.admin.CreateTaskRequest + (*admin.GetTaskRequest)(nil), // 2: flyteidl.admin.GetTaskRequest + (*admin.DeleteTaskRequest)(nil), // 3: flyteidl.admin.DeleteTaskRequest + (*admin.GetTaskMetricsRequest)(nil), // 4: flyteidl.admin.GetTaskMetricsRequest + (*admin.GetTaskLogsRequest)(nil), // 5: flyteidl.admin.GetTaskLogsRequest + (*admin.GetAgentRequest)(nil), // 6: flyteidl.admin.GetAgentRequest + (*admin.ListAgentsRequest)(nil), // 7: flyteidl.admin.ListAgentsRequest + (*admin.ExecuteTaskSyncResponse)(nil), // 8: flyteidl.admin.ExecuteTaskSyncResponse + (*admin.CreateTaskResponse)(nil), // 9: flyteidl.admin.CreateTaskResponse + (*admin.GetTaskResponse)(nil), // 10: flyteidl.admin.GetTaskResponse + (*admin.DeleteTaskResponse)(nil), // 11: flyteidl.admin.DeleteTaskResponse + (*admin.GetTaskMetricsResponse)(nil), // 12: flyteidl.admin.GetTaskMetricsResponse + (*admin.GetTaskLogsResponse)(nil), // 13: flyteidl.admin.GetTaskLogsResponse + (*admin.GetAgentResponse)(nil), // 14: flyteidl.admin.GetAgentResponse + (*admin.ListAgentsResponse)(nil), // 15: flyteidl.admin.ListAgentsResponse +} +var file_flyteidl_service_agent_proto_depIdxs = []int32{ + 0, // 0: flyteidl.service.SyncAgentService.ExecuteTaskSync:input_type -> flyteidl.admin.ExecuteTaskSyncRequest + 1, // 1: flyteidl.service.AsyncAgentService.CreateTask:input_type -> flyteidl.admin.CreateTaskRequest + 2, // 2: flyteidl.service.AsyncAgentService.GetTask:input_type -> flyteidl.admin.GetTaskRequest + 3, // 3: flyteidl.service.AsyncAgentService.DeleteTask:input_type -> flyteidl.admin.DeleteTaskRequest + 4, // 4: flyteidl.service.AsyncAgentService.GetTaskMetrics:input_type -> flyteidl.admin.GetTaskMetricsRequest + 5, // 5: flyteidl.service.AsyncAgentService.GetTaskLogs:input_type -> flyteidl.admin.GetTaskLogsRequest + 6, // 6: flyteidl.service.AgentMetadataService.GetAgent:input_type -> flyteidl.admin.GetAgentRequest + 7, // 7: flyteidl.service.AgentMetadataService.ListAgents:input_type -> flyteidl.admin.ListAgentsRequest + 8, // 8: flyteidl.service.SyncAgentService.ExecuteTaskSync:output_type -> flyteidl.admin.ExecuteTaskSyncResponse + 9, // 9: flyteidl.service.AsyncAgentService.CreateTask:output_type -> flyteidl.admin.CreateTaskResponse + 10, // 10: flyteidl.service.AsyncAgentService.GetTask:output_type -> flyteidl.admin.GetTaskResponse + 11, // 11: flyteidl.service.AsyncAgentService.DeleteTask:output_type -> flyteidl.admin.DeleteTaskResponse + 12, // 12: flyteidl.service.AsyncAgentService.GetTaskMetrics:output_type -> flyteidl.admin.GetTaskMetricsResponse + 13, // 13: flyteidl.service.AsyncAgentService.GetTaskLogs:output_type -> flyteidl.admin.GetTaskLogsResponse + 14, // 14: flyteidl.service.AgentMetadataService.GetAgent:output_type -> flyteidl.admin.GetAgentResponse + 15, // 15: flyteidl.service.AgentMetadataService.ListAgents:output_type -> flyteidl.admin.ListAgentsResponse + 8, // [8:16] is the sub-list for method output_type + 0, // [0:8] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_agent_proto_init() } +func file_flyteidl_service_agent_proto_init() { + if File_flyteidl_service_agent_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_agent_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 3, + }, + GoTypes: file_flyteidl_service_agent_proto_goTypes, + DependencyIndexes: file_flyteidl_service_agent_proto_depIdxs, + }.Build() + File_flyteidl_service_agent_proto = out.File + file_flyteidl_service_agent_proto_rawDesc = nil + file_flyteidl_service_agent_proto_goTypes = nil + file_flyteidl_service_agent_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go new file mode 100644 index 0000000000..98f057da12 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/agent_grpc.pb.go @@ -0,0 +1,553 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/agent.proto + +package service + +import ( + context "context" + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + SyncAgentService_ExecuteTaskSync_FullMethodName = "/flyteidl.service.SyncAgentService/ExecuteTaskSync" +) + +// SyncAgentServiceClient is the client API for SyncAgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SyncAgentServiceClient interface { + // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (SyncAgentService_ExecuteTaskSyncClient, error) +} + +type syncAgentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSyncAgentServiceClient(cc grpc.ClientConnInterface) SyncAgentServiceClient { + return &syncAgentServiceClient{cc} +} + +func (c *syncAgentServiceClient) ExecuteTaskSync(ctx context.Context, opts ...grpc.CallOption) (SyncAgentService_ExecuteTaskSyncClient, error) { + stream, err := c.cc.NewStream(ctx, &SyncAgentService_ServiceDesc.Streams[0], SyncAgentService_ExecuteTaskSync_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &syncAgentServiceExecuteTaskSyncClient{stream} + return x, nil +} + +type SyncAgentService_ExecuteTaskSyncClient interface { + Send(*admin.ExecuteTaskSyncRequest) error + Recv() (*admin.ExecuteTaskSyncResponse, error) + grpc.ClientStream +} + +type syncAgentServiceExecuteTaskSyncClient struct { + grpc.ClientStream +} + +func (x *syncAgentServiceExecuteTaskSyncClient) Send(m *admin.ExecuteTaskSyncRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *syncAgentServiceExecuteTaskSyncClient) Recv() (*admin.ExecuteTaskSyncResponse, error) { + m := new(admin.ExecuteTaskSyncResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SyncAgentServiceServer is the server API for SyncAgentService service. +// All implementations should embed UnimplementedSyncAgentServiceServer +// for forward compatibility +type SyncAgentServiceServer interface { + // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back. + ExecuteTaskSync(SyncAgentService_ExecuteTaskSyncServer) error +} + +// UnimplementedSyncAgentServiceServer should be embedded to have forward compatible implementations. +type UnimplementedSyncAgentServiceServer struct { +} + +func (UnimplementedSyncAgentServiceServer) ExecuteTaskSync(SyncAgentService_ExecuteTaskSyncServer) error { + return status.Errorf(codes.Unimplemented, "method ExecuteTaskSync not implemented") +} + +// UnsafeSyncAgentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SyncAgentServiceServer will +// result in compilation errors. +type UnsafeSyncAgentServiceServer interface { + mustEmbedUnimplementedSyncAgentServiceServer() +} + +func RegisterSyncAgentServiceServer(s grpc.ServiceRegistrar, srv SyncAgentServiceServer) { + s.RegisterService(&SyncAgentService_ServiceDesc, srv) +} + +func _SyncAgentService_ExecuteTaskSync_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(SyncAgentServiceServer).ExecuteTaskSync(&syncAgentServiceExecuteTaskSyncServer{stream}) +} + +type SyncAgentService_ExecuteTaskSyncServer interface { + Send(*admin.ExecuteTaskSyncResponse) error + Recv() (*admin.ExecuteTaskSyncRequest, error) + grpc.ServerStream +} + +type syncAgentServiceExecuteTaskSyncServer struct { + grpc.ServerStream +} + +func (x *syncAgentServiceExecuteTaskSyncServer) Send(m *admin.ExecuteTaskSyncResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *syncAgentServiceExecuteTaskSyncServer) Recv() (*admin.ExecuteTaskSyncRequest, error) { + m := new(admin.ExecuteTaskSyncRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// SyncAgentService_ServiceDesc is the grpc.ServiceDesc for SyncAgentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SyncAgentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.SyncAgentService", + HandlerType: (*SyncAgentServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "ExecuteTaskSync", + Handler: _SyncAgentService_ExecuteTaskSync_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "flyteidl/service/agent.proto", +} + +const ( + AsyncAgentService_CreateTask_FullMethodName = "/flyteidl.service.AsyncAgentService/CreateTask" + AsyncAgentService_GetTask_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTask" + AsyncAgentService_DeleteTask_FullMethodName = "/flyteidl.service.AsyncAgentService/DeleteTask" + AsyncAgentService_GetTaskMetrics_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" + AsyncAgentService_GetTaskLogs_FullMethodName = "/flyteidl.service.AsyncAgentService/GetTaskLogs" +) + +// AsyncAgentServiceClient is the client API for AsyncAgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AsyncAgentServiceClient interface { + // CreateTask sends a task create request to the agent service. + CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) + // Get job status. + GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) + // Delete the task resource. + DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // - OutOfRange if metrics are not available for the specified task time range + // - various other errors + GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) + // GetTaskLogs returns task execution logs, if available. + GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) +} + +type asyncAgentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAsyncAgentServiceClient(cc grpc.ClientConnInterface) AsyncAgentServiceClient { + return &asyncAgentServiceClient{cc} +} + +func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { + out := new(admin.CreateTaskResponse) + err := c.cc.Invoke(ctx, AsyncAgentService_CreateTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { + out := new(admin.GetTaskResponse) + err := c.cc.Invoke(ctx, AsyncAgentService_GetTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { + out := new(admin.DeleteTaskResponse) + err := c.cc.Invoke(ctx, AsyncAgentService_DeleteTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { + out := new(admin.GetTaskMetricsResponse) + err := c.cc.Invoke(ctx, AsyncAgentService_GetTaskMetrics_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (AsyncAgentService_GetTaskLogsClient, error) { + stream, err := c.cc.NewStream(ctx, &AsyncAgentService_ServiceDesc.Streams[0], AsyncAgentService_GetTaskLogs_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &asyncAgentServiceGetTaskLogsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type AsyncAgentService_GetTaskLogsClient interface { + Recv() (*admin.GetTaskLogsResponse, error) + grpc.ClientStream +} + +type asyncAgentServiceGetTaskLogsClient struct { + grpc.ClientStream +} + +func (x *asyncAgentServiceGetTaskLogsClient) Recv() (*admin.GetTaskLogsResponse, error) { + m := new(admin.GetTaskLogsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// AsyncAgentServiceServer is the server API for AsyncAgentService service. +// All implementations should embed UnimplementedAsyncAgentServiceServer +// for forward compatibility +type AsyncAgentServiceServer interface { + // CreateTask sends a task create request to the agent service. + CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) + // Get job status. + GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) + // Delete the task resource. + DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // - OutOfRange if metrics are not available for the specified task time range + // - various other errors + GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) + // GetTaskLogs returns task execution logs, if available. + GetTaskLogs(*admin.GetTaskLogsRequest, AsyncAgentService_GetTaskLogsServer) error +} + +// UnimplementedAsyncAgentServiceServer should be embedded to have forward compatible implementations. +type UnimplementedAsyncAgentServiceServer struct { +} + +func (UnimplementedAsyncAgentServiceServer) CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (UnimplementedAsyncAgentServiceServer) GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (UnimplementedAsyncAgentServiceServer) DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") +} +func (UnimplementedAsyncAgentServiceServer) GetTaskMetrics(context.Context, *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTaskMetrics not implemented") +} +func (UnimplementedAsyncAgentServiceServer) GetTaskLogs(*admin.GetTaskLogsRequest, AsyncAgentService_GetTaskLogsServer) error { + return status.Errorf(codes.Unimplemented, "method GetTaskLogs not implemented") +} + +// UnsafeAsyncAgentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AsyncAgentServiceServer will +// result in compilation errors. +type UnsafeAsyncAgentServiceServer interface { + mustEmbedUnimplementedAsyncAgentServiceServer() +} + +func RegisterAsyncAgentServiceServer(s grpc.ServiceRegistrar, srv AsyncAgentServiceServer) { + s.RegisterService(&AsyncAgentService_ServiceDesc, srv) +} + +func _AsyncAgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.CreateTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AsyncAgentService_CreateTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).CreateTask(ctx, req.(*admin.CreateTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AsyncAgentService_GetTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).GetTask(ctx, req.(*admin.GetTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.DeleteTaskRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).DeleteTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AsyncAgentService_DeleteTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).DeleteTask(ctx, req.(*admin.DeleteTaskRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_GetTaskMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetTaskMetricsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AsyncAgentServiceServer).GetTaskMetrics(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AsyncAgentService_GetTaskMetrics_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AsyncAgentServiceServer).GetTaskMetrics(ctx, req.(*admin.GetTaskMetricsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AsyncAgentService_GetTaskLogs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(admin.GetTaskLogsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(AsyncAgentServiceServer).GetTaskLogs(m, &asyncAgentServiceGetTaskLogsServer{stream}) +} + +type AsyncAgentService_GetTaskLogsServer interface { + Send(*admin.GetTaskLogsResponse) error + grpc.ServerStream +} + +type asyncAgentServiceGetTaskLogsServer struct { + grpc.ServerStream +} + +func (x *asyncAgentServiceGetTaskLogsServer) Send(m *admin.GetTaskLogsResponse) error { + return x.ServerStream.SendMsg(m) +} + +// AsyncAgentService_ServiceDesc is the grpc.ServiceDesc for AsyncAgentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AsyncAgentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AsyncAgentService", + HandlerType: (*AsyncAgentServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _AsyncAgentService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _AsyncAgentService_GetTask_Handler, + }, + { + MethodName: "DeleteTask", + Handler: _AsyncAgentService_DeleteTask_Handler, + }, + { + MethodName: "GetTaskMetrics", + Handler: _AsyncAgentService_GetTaskMetrics_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "GetTaskLogs", + Handler: _AsyncAgentService_GetTaskLogs_Handler, + ServerStreams: true, + }, + }, + Metadata: "flyteidl/service/agent.proto", +} + +const ( + AgentMetadataService_GetAgent_FullMethodName = "/flyteidl.service.AgentMetadataService/GetAgent" + AgentMetadataService_ListAgents_FullMethodName = "/flyteidl.service.AgentMetadataService/ListAgents" +) + +// AgentMetadataServiceClient is the client API for AgentMetadataService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AgentMetadataServiceClient interface { + // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. + GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. + ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) +} + +type agentMetadataServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAgentMetadataServiceClient(cc grpc.ClientConnInterface) AgentMetadataServiceClient { + return &agentMetadataServiceClient{cc} +} + +func (c *agentMetadataServiceClient) GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) { + out := new(admin.GetAgentResponse) + err := c.cc.Invoke(ctx, AgentMetadataService_GetAgent_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *agentMetadataServiceClient) ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) { + out := new(admin.ListAgentsResponse) + err := c.cc.Invoke(ctx, AgentMetadataService_ListAgents_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AgentMetadataServiceServer is the server API for AgentMetadataService service. +// All implementations should embed UnimplementedAgentMetadataServiceServer +// for forward compatibility +type AgentMetadataServiceServer interface { + // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. + GetAgent(context.Context, *admin.GetAgentRequest) (*admin.GetAgentResponse, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. + ListAgents(context.Context, *admin.ListAgentsRequest) (*admin.ListAgentsResponse, error) +} + +// UnimplementedAgentMetadataServiceServer should be embedded to have forward compatible implementations. +type UnimplementedAgentMetadataServiceServer struct { +} + +func (UnimplementedAgentMetadataServiceServer) GetAgent(context.Context, *admin.GetAgentRequest) (*admin.GetAgentResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetAgent not implemented") +} +func (UnimplementedAgentMetadataServiceServer) ListAgents(context.Context, *admin.ListAgentsRequest) (*admin.ListAgentsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListAgents not implemented") +} + +// UnsafeAgentMetadataServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AgentMetadataServiceServer will +// result in compilation errors. +type UnsafeAgentMetadataServiceServer interface { + mustEmbedUnimplementedAgentMetadataServiceServer() +} + +func RegisterAgentMetadataServiceServer(s grpc.ServiceRegistrar, srv AgentMetadataServiceServer) { + s.RegisterService(&AgentMetadataService_ServiceDesc, srv) +} + +func _AgentMetadataService_GetAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.GetAgentRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AgentMetadataServiceServer).GetAgent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AgentMetadataService_GetAgent_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AgentMetadataServiceServer).GetAgent(ctx, req.(*admin.GetAgentRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AgentMetadataService_ListAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.ListAgentsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AgentMetadataServiceServer).ListAgents(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AgentMetadataService_ListAgents_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AgentMetadataServiceServer).ListAgents(ctx, req.(*admin.ListAgentsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AgentMetadataService_ServiceDesc is the grpc.ServiceDesc for AgentMetadataService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AgentMetadataService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AgentMetadataService", + HandlerType: (*AgentMetadataServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetAgent", + Handler: _AgentMetadataService_GetAgent_Handler, + }, + { + MethodName: "ListAgents", + Handler: _AgentMetadataService_ListAgents_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/agent.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go new file mode 100644 index 0000000000..2f5e5fc500 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go @@ -0,0 +1,549 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/auth.proto + +package service + +import ( + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type OAuth2MetadataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *OAuth2MetadataRequest) Reset() { + *x = OAuth2MetadataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_auth_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OAuth2MetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OAuth2MetadataRequest) ProtoMessage() {} + +func (x *OAuth2MetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_auth_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OAuth2MetadataRequest.ProtoReflect.Descriptor instead. +func (*OAuth2MetadataRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{0} +} + +// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata +// as defined in https://tools.ietf.org/html/rfc8414 +type OAuth2MetadataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external + // issuer. + Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` + // URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are + // supported that use the authorization endpoint. + AuthorizationEndpoint string `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"` + // URL of the authorization server's token endpoint [RFC6749]. + TokenEndpoint string `protobuf:"bytes,3,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` + // Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. + ResponseTypesSupported []string `protobuf:"bytes,4,rep,name=response_types_supported,json=responseTypesSupported,proto3" json:"response_types_supported,omitempty"` + // JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. + ScopesSupported []string `protobuf:"bytes,5,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"` + // JSON array containing a list of client authentication methods supported by this token endpoint. + TokenEndpointAuthMethodsSupported []string `protobuf:"bytes,6,rep,name=token_endpoint_auth_methods_supported,json=tokenEndpointAuthMethodsSupported,proto3" json:"token_endpoint_auth_methods_supported,omitempty"` + // URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the + // client uses to validate signatures from the authorization server. + JwksUri string `protobuf:"bytes,7,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"` + // JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by + // this authorization server. + CodeChallengeMethodsSupported []string `protobuf:"bytes,8,rep,name=code_challenge_methods_supported,json=codeChallengeMethodsSupported,proto3" json:"code_challenge_methods_supported,omitempty"` + // JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. + GrantTypesSupported []string `protobuf:"bytes,9,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"` + // URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] + DeviceAuthorizationEndpoint string `protobuf:"bytes,10,opt,name=device_authorization_endpoint,json=deviceAuthorizationEndpoint,proto3" json:"device_authorization_endpoint,omitempty"` +} + +func (x *OAuth2MetadataResponse) Reset() { + *x = OAuth2MetadataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_auth_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OAuth2MetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OAuth2MetadataResponse) ProtoMessage() {} + +func (x *OAuth2MetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_auth_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OAuth2MetadataResponse.ProtoReflect.Descriptor instead. +func (*OAuth2MetadataResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{1} +} + +func (x *OAuth2MetadataResponse) GetIssuer() string { + if x != nil { + return x.Issuer + } + return "" +} + +func (x *OAuth2MetadataResponse) GetAuthorizationEndpoint() string { + if x != nil { + return x.AuthorizationEndpoint + } + return "" +} + +func (x *OAuth2MetadataResponse) GetTokenEndpoint() string { + if x != nil { + return x.TokenEndpoint + } + return "" +} + +func (x *OAuth2MetadataResponse) GetResponseTypesSupported() []string { + if x != nil { + return x.ResponseTypesSupported + } + return nil +} + +func (x *OAuth2MetadataResponse) GetScopesSupported() []string { + if x != nil { + return x.ScopesSupported + } + return nil +} + +func (x *OAuth2MetadataResponse) GetTokenEndpointAuthMethodsSupported() []string { + if x != nil { + return x.TokenEndpointAuthMethodsSupported + } + return nil +} + +func (x *OAuth2MetadataResponse) GetJwksUri() string { + if x != nil { + return x.JwksUri + } + return "" +} + +func (x *OAuth2MetadataResponse) GetCodeChallengeMethodsSupported() []string { + if x != nil { + return x.CodeChallengeMethodsSupported + } + return nil +} + +func (x *OAuth2MetadataResponse) GetGrantTypesSupported() []string { + if x != nil { + return x.GrantTypesSupported + } + return nil +} + +func (x *OAuth2MetadataResponse) GetDeviceAuthorizationEndpoint() string { + if x != nil { + return x.DeviceAuthorizationEndpoint + } + return "" +} + +type PublicClientAuthConfigRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *PublicClientAuthConfigRequest) Reset() { + *x = PublicClientAuthConfigRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_auth_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicClientAuthConfigRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicClientAuthConfigRequest) ProtoMessage() {} + +func (x *PublicClientAuthConfigRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_auth_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PublicClientAuthConfigRequest.ProtoReflect.Descriptor instead. +func (*PublicClientAuthConfigRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{2} +} + +// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. +type PublicClientAuthConfigResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // client_id to use when initiating OAuth2 authorization requests. + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + // redirect uri to use when initiating OAuth2 authorization requests. + RedirectUri string `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` + // scopes to request when initiating OAuth2 authorization requests. + Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` + // Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the + // default http `Authorization` header. + AuthorizationMetadataKey string `protobuf:"bytes,4,opt,name=authorization_metadata_key,json=authorizationMetadataKey,proto3" json:"authorization_metadata_key,omitempty"` + // ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used + // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between + // SSL or no SSL connections. + ServiceHttpEndpoint string `protobuf:"bytes,5,opt,name=service_http_endpoint,json=serviceHttpEndpoint,proto3" json:"service_http_endpoint,omitempty"` + // audience to use when initiating OAuth2 authorization requests. + Audience string `protobuf:"bytes,6,opt,name=audience,proto3" json:"audience,omitempty"` +} + +func (x *PublicClientAuthConfigResponse) Reset() { + *x = PublicClientAuthConfigResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_auth_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublicClientAuthConfigResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublicClientAuthConfigResponse) ProtoMessage() {} + +func (x *PublicClientAuthConfigResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_auth_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PublicClientAuthConfigResponse.ProtoReflect.Descriptor instead. +func (*PublicClientAuthConfigResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_auth_proto_rawDescGZIP(), []int{3} +} + +func (x *PublicClientAuthConfigResponse) GetClientId() string { + if x != nil { + return x.ClientId + } + return "" +} + +func (x *PublicClientAuthConfigResponse) GetRedirectUri() string { + if x != nil { + return x.RedirectUri + } + return "" +} + +func (x *PublicClientAuthConfigResponse) GetScopes() []string { + if x != nil { + return x.Scopes + } + return nil +} + +func (x *PublicClientAuthConfigResponse) GetAuthorizationMetadataKey() string { + if x != nil { + return x.AuthorizationMetadataKey + } + return "" +} + +func (x *PublicClientAuthConfigResponse) GetServiceHttpEndpoint() string { + if x != nil { + return x.ServiceHttpEndpoint + } + return "" +} + +func (x *PublicClientAuthConfigResponse) GetAudience() string { + if x != nil { + return x.Audience + } + return "" +} + +var File_flyteidl_service_auth_proto protoreflect.FileDescriptor + +var file_flyteidl_service_auth_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, + 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, + 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, + 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x17, 0x0a, + 0x15, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x04, 0x0a, 0x16, 0x4f, 0x41, 0x75, 0x74, 0x68, + 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x16, 0x61, 0x75, 0x74, + 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x75, 0x74, 0x68, 0x6f, + 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x45, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, + 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x72, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x63, 0x6f, + 0x70, 0x65, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x50, 0x0a, 0x25, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x61, + 0x75, 0x74, 0x68, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, + 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x21, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x19, + 0x0a, 0x08, 0x6a, 0x77, 0x6b, 0x73, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x6a, 0x77, 0x6b, 0x73, 0x55, 0x72, 0x69, 0x12, 0x47, 0x0a, 0x20, 0x63, 0x6f, 0x64, + 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x08, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x1d, 0x63, 0x6f, 0x64, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, + 0x67, 0x65, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, + 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x18, 0x09, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x13, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x75, 0x70, + 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x12, 0x42, 0x0a, 0x1d, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1b, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x1f, 0x0a, 0x1d, 0x50, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x86, 0x02, 0x0a, 0x1e, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, + 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, + 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x72, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x72, 0x69, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x61, 0x75, 0x74, 0x68, + 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x4b, 0x65, 0x79, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x68, 0x74, 0x74, 0x70, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x48, 0x74, 0x74, 0x70, + 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, + 0x65, 0x6e, 0x63, 0x65, 0x32, 0xfc, 0x03, 0x0a, 0x13, 0x41, 0x75, 0x74, 0x68, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf5, 0x01, 0x0a, + 0x11, 0x47, 0x65, 0x74, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, + 0x41, 0x75, 0x74, 0x68, 0x32, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8c, 0x01, 0x92, 0x41, 0x5a, 0x1a, 0x58, 0x52, 0x65, 0x74, + 0x72, 0x69, 0x65, 0x76, 0x65, 0x73, 0x20, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x32, 0x20, 0x61, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x20, 0x54, 0x68, 0x69, + 0x73, 0x20, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, + 0x6f, 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x69, 0x62, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x2e, 0x77, + 0x65, 0x6c, 0x6c, 0x2d, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x2f, 0x6f, 0x61, 0x75, 0x74, 0x68, 0x2d, + 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x12, 0xec, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x75, 0x62, 0x6c, + 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x75, + 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x30, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, + 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x70, 0x92, 0x41, 0x4e, 0x1a, 0x4c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, + 0x73, 0x20, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x20, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x20, 0x54, 0x68, 0x69, 0x73, + 0x20, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x6e, 0x6f, + 0x6e, 0x79, 0x6d, 0x6f, 0x75, 0x73, 0x6c, 0x79, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, + 0x62, 0x6c, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x5f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x42, 0xc1, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x09, 0x41, 0x75, + 0x74, 0x68, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, + 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_service_auth_proto_rawDescOnce sync.Once + file_flyteidl_service_auth_proto_rawDescData = file_flyteidl_service_auth_proto_rawDesc +) + +func file_flyteidl_service_auth_proto_rawDescGZIP() []byte { + file_flyteidl_service_auth_proto_rawDescOnce.Do(func() { + file_flyteidl_service_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_auth_proto_rawDescData) + }) + return file_flyteidl_service_auth_proto_rawDescData +} + +var file_flyteidl_service_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_flyteidl_service_auth_proto_goTypes = []interface{}{ + (*OAuth2MetadataRequest)(nil), // 0: flyteidl.service.OAuth2MetadataRequest + (*OAuth2MetadataResponse)(nil), // 1: flyteidl.service.OAuth2MetadataResponse + (*PublicClientAuthConfigRequest)(nil), // 2: flyteidl.service.PublicClientAuthConfigRequest + (*PublicClientAuthConfigResponse)(nil), // 3: flyteidl.service.PublicClientAuthConfigResponse +} +var file_flyteidl_service_auth_proto_depIdxs = []int32{ + 0, // 0: flyteidl.service.AuthMetadataService.GetOAuth2Metadata:input_type -> flyteidl.service.OAuth2MetadataRequest + 2, // 1: flyteidl.service.AuthMetadataService.GetPublicClientConfig:input_type -> flyteidl.service.PublicClientAuthConfigRequest + 1, // 2: flyteidl.service.AuthMetadataService.GetOAuth2Metadata:output_type -> flyteidl.service.OAuth2MetadataResponse + 3, // 3: flyteidl.service.AuthMetadataService.GetPublicClientConfig:output_type -> flyteidl.service.PublicClientAuthConfigResponse + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_auth_proto_init() } +func file_flyteidl_service_auth_proto_init() { + if File_flyteidl_service_auth_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_service_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OAuth2MetadataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OAuth2MetadataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicClientAuthConfigRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicClientAuthConfigResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_auth_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_service_auth_proto_goTypes, + DependencyIndexes: file_flyteidl_service_auth_proto_depIdxs, + MessageInfos: file_flyteidl_service_auth_proto_msgTypes, + }.Build() + File_flyteidl_service_auth_proto = out.File + file_flyteidl_service_auth_proto_rawDesc = nil + file_flyteidl_service_auth_proto_goTypes = nil + file_flyteidl_service_auth_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go new file mode 100644 index 0000000000..dd324d134e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/auth_grpc.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/auth.proto + +package service + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + AuthMetadataService_GetOAuth2Metadata_FullMethodName = "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata" + AuthMetadataService_GetPublicClientConfig_FullMethodName = "/flyteidl.service.AuthMetadataService/GetPublicClientConfig" +) + +// AuthMetadataServiceClient is the client API for AuthMetadataService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AuthMetadataServiceClient interface { + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) +} + +type authMetadataServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAuthMetadataServiceClient(cc grpc.ClientConnInterface) AuthMetadataServiceClient { + return &authMetadataServiceClient{cc} +} + +func (c *authMetadataServiceClient) GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) { + out := new(OAuth2MetadataResponse) + err := c.cc.Invoke(ctx, AuthMetadataService_GetOAuth2Metadata_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *authMetadataServiceClient) GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) { + out := new(PublicClientAuthConfigResponse) + err := c.cc.Invoke(ctx, AuthMetadataService_GetPublicClientConfig_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// AuthMetadataServiceServer is the server API for AuthMetadataService service. +// All implementations should embed UnimplementedAuthMetadataServiceServer +// for forward compatibility +type AuthMetadataServiceServer interface { + // Anonymously accessible. Retrieves local or external oauth authorization server metadata. + GetOAuth2Metadata(context.Context, *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) + // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + // requests. + GetPublicClientConfig(context.Context, *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) +} + +// UnimplementedAuthMetadataServiceServer should be embedded to have forward compatible implementations. +type UnimplementedAuthMetadataServiceServer struct { +} + +func (UnimplementedAuthMetadataServiceServer) GetOAuth2Metadata(context.Context, *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOAuth2Metadata not implemented") +} +func (UnimplementedAuthMetadataServiceServer) GetPublicClientConfig(context.Context, *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetPublicClientConfig not implemented") +} + +// UnsafeAuthMetadataServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AuthMetadataServiceServer will +// result in compilation errors. +type UnsafeAuthMetadataServiceServer interface { + mustEmbedUnimplementedAuthMetadataServiceServer() +} + +func RegisterAuthMetadataServiceServer(s grpc.ServiceRegistrar, srv AuthMetadataServiceServer) { + s.RegisterService(&AuthMetadataService_ServiceDesc, srv) +} + +func _AuthMetadataService_GetOAuth2Metadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OAuth2MetadataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthMetadataService_GetOAuth2Metadata_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, req.(*OAuth2MetadataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _AuthMetadataService_GetPublicClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublicClientAuthConfigRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AuthMetadataService_GetPublicClientConfig_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, req.(*PublicClientAuthConfigRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// AuthMetadataService_ServiceDesc is the grpc.ServiceDesc for AuthMetadataService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AuthMetadataService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.AuthMetadataService", + HandlerType: (*AuthMetadataServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetOAuth2Metadata", + Handler: _AuthMetadataService_GetOAuth2Metadata_Handler, + }, + { + MethodName: "GetPublicClientConfig", + Handler: _AuthMetadataService_GetPublicClientConfig_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/auth.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go new file mode 100644 index 0000000000..3acf2559cf --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go @@ -0,0 +1,1135 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/dataproxy.proto + +package service + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// ArtifactType +type ArtifactType int32 + +const ( + // ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. + ArtifactType_ARTIFACT_TYPE_UNDEFINED ArtifactType = 0 + // ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan + // finishes executing. + ArtifactType_ARTIFACT_TYPE_DECK ArtifactType = 1 +) + +// Enum value maps for ArtifactType. +var ( + ArtifactType_name = map[int32]string{ + 0: "ARTIFACT_TYPE_UNDEFINED", + 1: "ARTIFACT_TYPE_DECK", + } + ArtifactType_value = map[string]int32{ + "ARTIFACT_TYPE_UNDEFINED": 0, + "ARTIFACT_TYPE_DECK": 1, + } +) + +func (x ArtifactType) Enum() *ArtifactType { + p := new(ArtifactType) + *p = x + return p +} + +func (x ArtifactType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ArtifactType) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_service_dataproxy_proto_enumTypes[0].Descriptor() +} + +func (ArtifactType) Type() protoreflect.EnumType { + return &file_flyteidl_service_dataproxy_proto_enumTypes[0] +} + +func (x ArtifactType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ArtifactType.Descriptor instead. +func (ArtifactType) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{0} +} + +type CreateUploadLocationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + NativeUrl string `protobuf:"bytes,2,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` + // ExpiresAt defines when will the signed URL expires. + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *CreateUploadLocationResponse) Reset() { + *x = CreateUploadLocationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUploadLocationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUploadLocationResponse) ProtoMessage() {} + +func (x *CreateUploadLocationResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUploadLocationResponse.ProtoReflect.Descriptor instead. +func (*CreateUploadLocationResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateUploadLocationResponse) GetSignedUrl() string { + if x != nil { + return x.SignedUrl + } + return "" +} + +func (x *CreateUploadLocationResponse) GetNativeUrl() string { + if x != nil { + return x.NativeUrl + } + return "" +} + +func (x *CreateUploadLocationResponse) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +// CreateUploadLocationRequest specified request for the CreateUploadLocation API. +// The implementation in data proxy service will create the s3 location with some server side configured prefixes, +// and then: +// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR +// - project/domain/filename_root (if present)/filename (if present). +type CreateUploadLocationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Project to create the upload location for + // +required + Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` + // Domain to create the upload location for. + // +required + Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` + // Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. + // +optional. By default, the service will generate a consistent name based on the provided parameters. + Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + ExpiresIn *durationpb.Duration `protobuf:"bytes,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` + // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the + // generated path. + // +required + ContentMd5 []byte `protobuf:"bytes,5,opt,name=content_md5,json=contentMd5,proto3" json:"content_md5,omitempty"` + // If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included + // this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix + // in data proxy config. This option is useful when uploading multiple files. + // +optional + FilenameRoot string `protobuf:"bytes,6,opt,name=filename_root,json=filenameRoot,proto3" json:"filename_root,omitempty"` +} + +func (x *CreateUploadLocationRequest) Reset() { + *x = CreateUploadLocationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUploadLocationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUploadLocationRequest) ProtoMessage() {} + +func (x *CreateUploadLocationRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUploadLocationRequest.ProtoReflect.Descriptor instead. +func (*CreateUploadLocationRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateUploadLocationRequest) GetProject() string { + if x != nil { + return x.Project + } + return "" +} + +func (x *CreateUploadLocationRequest) GetDomain() string { + if x != nil { + return x.Domain + } + return "" +} + +func (x *CreateUploadLocationRequest) GetFilename() string { + if x != nil { + return x.Filename + } + return "" +} + +func (x *CreateUploadLocationRequest) GetExpiresIn() *durationpb.Duration { + if x != nil { + return x.ExpiresIn + } + return nil +} + +func (x *CreateUploadLocationRequest) GetContentMd5() []byte { + if x != nil { + return x.ContentMd5 + } + return nil +} + +func (x *CreateUploadLocationRequest) GetFilenameRoot() string { + if x != nil { + return x.FilenameRoot + } + return "" +} + +// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. +// +// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. +type CreateDownloadLocationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + NativeUrl string `protobuf:"bytes,1,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + ExpiresIn *durationpb.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` +} + +func (x *CreateDownloadLocationRequest) Reset() { + *x = CreateDownloadLocationRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDownloadLocationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDownloadLocationRequest) ProtoMessage() {} + +func (x *CreateDownloadLocationRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDownloadLocationRequest.ProtoReflect.Descriptor instead. +func (*CreateDownloadLocationRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateDownloadLocationRequest) GetNativeUrl() string { + if x != nil { + return x.NativeUrl + } + return "" +} + +func (x *CreateDownloadLocationRequest) GetExpiresIn() *durationpb.Duration { + if x != nil { + return x.ExpiresIn + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. +type CreateDownloadLocationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // ExpiresAt defines when will the signed URL expires. + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *CreateDownloadLocationResponse) Reset() { + *x = CreateDownloadLocationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDownloadLocationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDownloadLocationResponse) ProtoMessage() {} + +func (x *CreateDownloadLocationResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDownloadLocationResponse.ProtoReflect.Descriptor instead. +func (*CreateDownloadLocationResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateDownloadLocationResponse) GetSignedUrl() string { + if x != nil { + return x.SignedUrl + } + return "" +} + +func (x *CreateDownloadLocationResponse) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) +type CreateDownloadLinkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ArtifactType of the artifact requested. + ArtifactType ArtifactType `protobuf:"varint,1,opt,name=artifact_type,json=artifactType,proto3,enum=flyteidl.service.ArtifactType" json:"artifact_type,omitempty"` + // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + // exceeds the platform allowed max. + // +optional. The default value comes from a global config. + ExpiresIn *durationpb.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` + // Types that are assignable to Source: + // + // *CreateDownloadLinkRequest_NodeExecutionId + Source isCreateDownloadLinkRequest_Source `protobuf_oneof:"source"` +} + +func (x *CreateDownloadLinkRequest) Reset() { + *x = CreateDownloadLinkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDownloadLinkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDownloadLinkRequest) ProtoMessage() {} + +func (x *CreateDownloadLinkRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDownloadLinkRequest.ProtoReflect.Descriptor instead. +func (*CreateDownloadLinkRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{4} +} + +func (x *CreateDownloadLinkRequest) GetArtifactType() ArtifactType { + if x != nil { + return x.ArtifactType + } + return ArtifactType_ARTIFACT_TYPE_UNDEFINED +} + +func (x *CreateDownloadLinkRequest) GetExpiresIn() *durationpb.Duration { + if x != nil { + return x.ExpiresIn + } + return nil +} + +func (m *CreateDownloadLinkRequest) GetSource() isCreateDownloadLinkRequest_Source { + if m != nil { + return m.Source + } + return nil +} + +func (x *CreateDownloadLinkRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { + if x, ok := x.GetSource().(*CreateDownloadLinkRequest_NodeExecutionId); ok { + return x.NodeExecutionId + } + return nil +} + +type isCreateDownloadLinkRequest_Source interface { + isCreateDownloadLinkRequest_Source() +} + +type CreateDownloadLinkRequest_NodeExecutionId struct { + // NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the + // most recent attempt of the task. + NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,3,opt,name=node_execution_id,json=nodeExecutionId,proto3,oneof"` +} + +func (*CreateDownloadLinkRequest_NodeExecutionId) isCreateDownloadLinkRequest_Source() {} + +// CreateDownloadLinkResponse defines the response for the generated links +type CreateDownloadLinkResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + // + // Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. + SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // ExpiresAt defines when will the signed URL expire. + // + // Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` + // New wrapper object containing the signed urls and expiration time + PreSignedUrls *PreSignedURLs `protobuf:"bytes,3,opt,name=pre_signed_urls,json=preSignedUrls,proto3" json:"pre_signed_urls,omitempty"` +} + +func (x *CreateDownloadLinkResponse) Reset() { + *x = CreateDownloadLinkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateDownloadLinkResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDownloadLinkResponse) ProtoMessage() {} + +func (x *CreateDownloadLinkResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDownloadLinkResponse.ProtoReflect.Descriptor instead. +func (*CreateDownloadLinkResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{5} +} + +// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. +func (x *CreateDownloadLinkResponse) GetSignedUrl() []string { + if x != nil { + return x.SignedUrl + } + return nil +} + +// Deprecated: Marked as deprecated in flyteidl/service/dataproxy.proto. +func (x *CreateDownloadLinkResponse) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +func (x *CreateDownloadLinkResponse) GetPreSignedUrls() *PreSignedURLs { + if x != nil { + return x.PreSignedUrls + } + return nil +} + +// Wrapper object since the message is shared across this and the GetDataResponse +type PreSignedURLs struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) + SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` + // ExpiresAt defines when will the signed URL expire. + ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *PreSignedURLs) Reset() { + *x = PreSignedURLs{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PreSignedURLs) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PreSignedURLs) ProtoMessage() {} + +func (x *PreSignedURLs) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PreSignedURLs.ProtoReflect.Descriptor instead. +func (*PreSignedURLs) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{6} +} + +func (x *PreSignedURLs) GetSignedUrl() []string { + if x != nil { + return x.SignedUrl + } + return nil +} + +func (x *PreSignedURLs) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.ExpiresAt + } + return nil +} + +// General request artifact to retrieve data from a Flyte artifact url. +type GetDataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A unique identifier in the form of flyte:// that uniquely, for a given Flyte + // backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.). + // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) + // + // flyte://v1/proj/development/execid/n2/i (for node execution input) + // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) + FlyteUrl string `protobuf:"bytes,1,opt,name=flyte_url,json=flyteUrl,proto3" json:"flyte_url,omitempty"` +} + +func (x *GetDataRequest) Reset() { + *x = GetDataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDataRequest) ProtoMessage() {} + +func (x *GetDataRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDataRequest.ProtoReflect.Descriptor instead. +func (*GetDataRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{7} +} + +func (x *GetDataRequest) GetFlyteUrl() string { + if x != nil { + return x.FlyteUrl + } + return "" +} + +type GetDataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Data: + // + // *GetDataResponse_LiteralMap + // *GetDataResponse_PreSignedUrls + // *GetDataResponse_Literal + Data isGetDataResponse_Data `protobuf_oneof:"data"` +} + +func (x *GetDataResponse) Reset() { + *x = GetDataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDataResponse) ProtoMessage() {} + +func (x *GetDataResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_dataproxy_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDataResponse.ProtoReflect.Descriptor instead. +func (*GetDataResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_dataproxy_proto_rawDescGZIP(), []int{8} +} + +func (m *GetDataResponse) GetData() isGetDataResponse_Data { + if m != nil { + return m.Data + } + return nil +} + +func (x *GetDataResponse) GetLiteralMap() *core.LiteralMap { + if x, ok := x.GetData().(*GetDataResponse_LiteralMap); ok { + return x.LiteralMap + } + return nil +} + +func (x *GetDataResponse) GetPreSignedUrls() *PreSignedURLs { + if x, ok := x.GetData().(*GetDataResponse_PreSignedUrls); ok { + return x.PreSignedUrls + } + return nil +} + +func (x *GetDataResponse) GetLiteral() *core.Literal { + if x, ok := x.GetData().(*GetDataResponse_Literal); ok { + return x.Literal + } + return nil +} + +type isGetDataResponse_Data interface { + isGetDataResponse_Data() +} + +type GetDataResponse_LiteralMap struct { + // literal map data will be returned + LiteralMap *core.LiteralMap `protobuf:"bytes,1,opt,name=literal_map,json=literalMap,proto3,oneof"` +} + +type GetDataResponse_PreSignedUrls struct { + // Flyte deck html will be returned as a signed url users can download + PreSignedUrls *PreSignedURLs `protobuf:"bytes,2,opt,name=pre_signed_urls,json=preSignedUrls,proto3,oneof"` +} + +type GetDataResponse_Literal struct { + // Single literal will be returned. This is returned when the user/url requests a specific output or input + // by name. See the o3 example above. + Literal *core.Literal `protobuf:"bytes,3,opt,name=literal,proto3,oneof"` +} + +func (*GetDataResponse_LiteralMap) isGetDataResponse_Data() {} + +func (*GetDataResponse_PreSignedUrls) isGetDataResponse_Data() {} + +func (*GetDataResponse_Literal) isGetDataResponse_Data() {} + +var File_flyteidl_service_dataproxy_proto protoreflect.FileDescriptor + +var file_flyteidl_service_dataproxy_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, + 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, 0x6f, + 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, + 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x72, 0x6c, + 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0xeb, 0x01, 0x0a, 0x1b, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1a, 0x0a, + 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x73, 0x49, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6d, + 0x64, 0x35, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, + 0x74, 0x4d, 0x64, 0x35, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, + 0x5f, 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x69, 0x6c, + 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x22, 0x7c, 0x0a, 0x1d, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x61, + 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x38, 0x0a, 0x0a, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x73, 0x49, 0x6e, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x7e, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x73, 0x41, 0x74, 0x3a, 0x02, 0x18, 0x01, 0x22, 0xfa, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, + 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, + 0x65, 0x73, 0x49, 0x6e, 0x12, 0x54, 0x0a, 0x11, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x65, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, + 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, + 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x3d, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x47, 0x0a, 0x0f, 0x70, 0x72, 0x65, 0x5f, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x50, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x52, + 0x0d, 0x70, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x73, 0x22, 0x69, + 0x0a, 0x0d, 0x50, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x52, 0x4c, 0x73, 0x12, + 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x39, + 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x22, 0x2d, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x55, 0x72, 0x6c, 0x22, 0xd6, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0b, + 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x0a, + 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x12, 0x49, 0x0a, 0x0f, 0x70, 0x72, + 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x55, 0x52, 0x4c, 0x73, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x48, 0x00, + 0x52, 0x07, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x2a, 0x43, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, + 0x0a, 0x12, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x44, 0x45, 0x43, 0x4b, 0x10, 0x01, 0x32, 0x84, 0x07, 0x0a, 0x10, 0x44, 0x61, 0x74, 0x61, 0x50, + 0x72, 0x6f, 0x78, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xf0, 0x01, 0x0a, 0x14, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x70, 0x6c, + 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x79, 0x92, 0x41, 0x4d, 0x1a, 0x4b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x73, 0x20, 0x61, 0x20, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x68, + 0x74, 0x74, 0x70, 0x20, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, + 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, + 0x66, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x20, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6e, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, + 0x79, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x6e, 0x12, 0xa9, + 0x02, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x2e, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xab, 0x01, 0x92, + 0x41, 0x7f, 0x1a, 0x7d, 0x44, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x3a, 0x20, + 0x50, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x20, 0x75, 0x73, 0x65, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x20, 0x69, 0x6e, + 0x73, 0x74, 0x65, 0x61, 0x64, 0x2e, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, + 0x20, 0x72, 0x65, 0x61, 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x68, 0x74, 0x74, 0x70, 0x20, + 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, + 0x20, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x20, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, + 0x2f, 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x5f, 0x75, 0x72, 0x6e, 0x88, 0x02, 0x01, 0x12, 0xea, 0x01, 0x0a, 0x12, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, + 0x6b, 0x12, 0x2b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, + 0x6f, 0x61, 0x64, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, + 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x79, 0x92, 0x41, + 0x4c, 0x1a, 0x4a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x73, 0x20, 0x61, 0x20, 0x72, 0x65, 0x61, + 0x64, 0x2d, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x68, 0x74, 0x74, 0x70, 0x20, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x69, 0x73, 0x20, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x74, 0x61, 0x73, 0x6b, + 0x73, 0x20, 0x61, 0x74, 0x20, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x24, 0x3a, 0x01, 0x2a, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x64, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x64, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x12, + 0x0c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x42, 0xc6, 0x01, + 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x70, 0x72, 0x6f, 0x78, + 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, + 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_service_dataproxy_proto_rawDescOnce sync.Once + file_flyteidl_service_dataproxy_proto_rawDescData = file_flyteidl_service_dataproxy_proto_rawDesc +) + +func file_flyteidl_service_dataproxy_proto_rawDescGZIP() []byte { + file_flyteidl_service_dataproxy_proto_rawDescOnce.Do(func() { + file_flyteidl_service_dataproxy_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_dataproxy_proto_rawDescData) + }) + return file_flyteidl_service_dataproxy_proto_rawDescData +} + +var file_flyteidl_service_dataproxy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_service_dataproxy_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_flyteidl_service_dataproxy_proto_goTypes = []interface{}{ + (ArtifactType)(0), // 0: flyteidl.service.ArtifactType + (*CreateUploadLocationResponse)(nil), // 1: flyteidl.service.CreateUploadLocationResponse + (*CreateUploadLocationRequest)(nil), // 2: flyteidl.service.CreateUploadLocationRequest + (*CreateDownloadLocationRequest)(nil), // 3: flyteidl.service.CreateDownloadLocationRequest + (*CreateDownloadLocationResponse)(nil), // 4: flyteidl.service.CreateDownloadLocationResponse + (*CreateDownloadLinkRequest)(nil), // 5: flyteidl.service.CreateDownloadLinkRequest + (*CreateDownloadLinkResponse)(nil), // 6: flyteidl.service.CreateDownloadLinkResponse + (*PreSignedURLs)(nil), // 7: flyteidl.service.PreSignedURLs + (*GetDataRequest)(nil), // 8: flyteidl.service.GetDataRequest + (*GetDataResponse)(nil), // 9: flyteidl.service.GetDataResponse + (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 11: google.protobuf.Duration + (*core.NodeExecutionIdentifier)(nil), // 12: flyteidl.core.NodeExecutionIdentifier + (*core.LiteralMap)(nil), // 13: flyteidl.core.LiteralMap + (*core.Literal)(nil), // 14: flyteidl.core.Literal +} +var file_flyteidl_service_dataproxy_proto_depIdxs = []int32{ + 10, // 0: flyteidl.service.CreateUploadLocationResponse.expires_at:type_name -> google.protobuf.Timestamp + 11, // 1: flyteidl.service.CreateUploadLocationRequest.expires_in:type_name -> google.protobuf.Duration + 11, // 2: flyteidl.service.CreateDownloadLocationRequest.expires_in:type_name -> google.protobuf.Duration + 10, // 3: flyteidl.service.CreateDownloadLocationResponse.expires_at:type_name -> google.protobuf.Timestamp + 0, // 4: flyteidl.service.CreateDownloadLinkRequest.artifact_type:type_name -> flyteidl.service.ArtifactType + 11, // 5: flyteidl.service.CreateDownloadLinkRequest.expires_in:type_name -> google.protobuf.Duration + 12, // 6: flyteidl.service.CreateDownloadLinkRequest.node_execution_id:type_name -> flyteidl.core.NodeExecutionIdentifier + 10, // 7: flyteidl.service.CreateDownloadLinkResponse.expires_at:type_name -> google.protobuf.Timestamp + 7, // 8: flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls:type_name -> flyteidl.service.PreSignedURLs + 10, // 9: flyteidl.service.PreSignedURLs.expires_at:type_name -> google.protobuf.Timestamp + 13, // 10: flyteidl.service.GetDataResponse.literal_map:type_name -> flyteidl.core.LiteralMap + 7, // 11: flyteidl.service.GetDataResponse.pre_signed_urls:type_name -> flyteidl.service.PreSignedURLs + 14, // 12: flyteidl.service.GetDataResponse.literal:type_name -> flyteidl.core.Literal + 2, // 13: flyteidl.service.DataProxyService.CreateUploadLocation:input_type -> flyteidl.service.CreateUploadLocationRequest + 3, // 14: flyteidl.service.DataProxyService.CreateDownloadLocation:input_type -> flyteidl.service.CreateDownloadLocationRequest + 5, // 15: flyteidl.service.DataProxyService.CreateDownloadLink:input_type -> flyteidl.service.CreateDownloadLinkRequest + 8, // 16: flyteidl.service.DataProxyService.GetData:input_type -> flyteidl.service.GetDataRequest + 1, // 17: flyteidl.service.DataProxyService.CreateUploadLocation:output_type -> flyteidl.service.CreateUploadLocationResponse + 4, // 18: flyteidl.service.DataProxyService.CreateDownloadLocation:output_type -> flyteidl.service.CreateDownloadLocationResponse + 6, // 19: flyteidl.service.DataProxyService.CreateDownloadLink:output_type -> flyteidl.service.CreateDownloadLinkResponse + 9, // 20: flyteidl.service.DataProxyService.GetData:output_type -> flyteidl.service.GetDataResponse + 17, // [17:21] is the sub-list for method output_type + 13, // [13:17] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_dataproxy_proto_init() } +func file_flyteidl_service_dataproxy_proto_init() { + if File_flyteidl_service_dataproxy_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_service_dataproxy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUploadLocationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUploadLocationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDownloadLocationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDownloadLocationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDownloadLinkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateDownloadLinkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PreSignedURLs); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_flyteidl_service_dataproxy_proto_msgTypes[4].OneofWrappers = []interface{}{ + (*CreateDownloadLinkRequest_NodeExecutionId)(nil), + } + file_flyteidl_service_dataproxy_proto_msgTypes[8].OneofWrappers = []interface{}{ + (*GetDataResponse_LiteralMap)(nil), + (*GetDataResponse_PreSignedUrls)(nil), + (*GetDataResponse_Literal)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_dataproxy_proto_rawDesc, + NumEnums: 1, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_service_dataproxy_proto_goTypes, + DependencyIndexes: file_flyteidl_service_dataproxy_proto_depIdxs, + EnumInfos: file_flyteidl_service_dataproxy_proto_enumTypes, + MessageInfos: file_flyteidl_service_dataproxy_proto_msgTypes, + }.Build() + File_flyteidl_service_dataproxy_proto = out.File + file_flyteidl_service_dataproxy_proto_rawDesc = nil + file_flyteidl_service_dataproxy_proto_goTypes = nil + file_flyteidl_service_dataproxy_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go new file mode 100644 index 0000000000..4b3245c344 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/dataproxy_grpc.pb.go @@ -0,0 +1,227 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/dataproxy.proto + +package service + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + DataProxyService_CreateUploadLocation_FullMethodName = "/flyteidl.service.DataProxyService/CreateUploadLocation" + DataProxyService_CreateDownloadLocation_FullMethodName = "/flyteidl.service.DataProxyService/CreateDownloadLocation" + DataProxyService_CreateDownloadLink_FullMethodName = "/flyteidl.service.DataProxyService/CreateDownloadLink" + DataProxyService_GetData_FullMethodName = "/flyteidl.service.DataProxyService/GetData" +) + +// DataProxyServiceClient is the client API for DataProxyService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type DataProxyServiceClient interface { + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) + // Deprecated: Do not use. + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) + GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) +} + +type dataProxyServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewDataProxyServiceClient(cc grpc.ClientConnInterface) DataProxyServiceClient { + return &dataProxyServiceClient{cc} +} + +func (c *dataProxyServiceClient) CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) { + out := new(CreateUploadLocationResponse) + err := c.cc.Invoke(ctx, DataProxyService_CreateUploadLocation_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *dataProxyServiceClient) CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) { + out := new(CreateDownloadLocationResponse) + err := c.cc.Invoke(ctx, DataProxyService_CreateDownloadLocation_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataProxyServiceClient) CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) { + out := new(CreateDownloadLinkResponse) + err := c.cc.Invoke(ctx, DataProxyService_CreateDownloadLink_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *dataProxyServiceClient) GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) { + out := new(GetDataResponse) + err := c.cc.Invoke(ctx, DataProxyService_GetData_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DataProxyServiceServer is the server API for DataProxyService service. +// All implementations should embed UnimplementedDataProxyServiceServer +// for forward compatibility +type DataProxyServiceServer interface { + // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + CreateUploadLocation(context.Context, *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) + // Deprecated: Do not use. + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLocation(context.Context, *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) + // CreateDownloadLocation creates a signed url to download artifacts. + CreateDownloadLink(context.Context, *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) + GetData(context.Context, *GetDataRequest) (*GetDataResponse, error) +} + +// UnimplementedDataProxyServiceServer should be embedded to have forward compatible implementations. +type UnimplementedDataProxyServiceServer struct { +} + +func (UnimplementedDataProxyServiceServer) CreateUploadLocation(context.Context, *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUploadLocation not implemented") +} +func (UnimplementedDataProxyServiceServer) CreateDownloadLocation(context.Context, *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLocation not implemented") +} +func (UnimplementedDataProxyServiceServer) CreateDownloadLink(context.Context, *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLink not implemented") +} +func (UnimplementedDataProxyServiceServer) GetData(context.Context, *GetDataRequest) (*GetDataResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetData not implemented") +} + +// UnsafeDataProxyServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to DataProxyServiceServer will +// result in compilation errors. +type UnsafeDataProxyServiceServer interface { + mustEmbedUnimplementedDataProxyServiceServer() +} + +func RegisterDataProxyServiceServer(s grpc.ServiceRegistrar, srv DataProxyServiceServer) { + s.RegisterService(&DataProxyService_ServiceDesc, srv) +} + +func _DataProxyService_CreateUploadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUploadLocationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataProxyService_CreateUploadLocation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, req.(*CreateUploadLocationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataProxyService_CreateDownloadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDownloadLocationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataProxyService_CreateDownloadLocation_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, req.(*CreateDownloadLocationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataProxyService_CreateDownloadLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateDownloadLinkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataProxyService_CreateDownloadLink_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, req.(*CreateDownloadLinkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _DataProxyService_GetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDataRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DataProxyServiceServer).GetData(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: DataProxyService_GetData_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DataProxyServiceServer).GetData(ctx, req.(*GetDataRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// DataProxyService_ServiceDesc is the grpc.ServiceDesc for DataProxyService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var DataProxyService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.DataProxyService", + HandlerType: (*DataProxyServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateUploadLocation", + Handler: _DataProxyService_CreateUploadLocation_Handler, + }, + { + MethodName: "CreateDownloadLocation", + Handler: _DataProxyService_CreateDownloadLocation_Handler, + }, + { + MethodName: "CreateDownloadLink", + Handler: _DataProxyService_CreateDownloadLink_Handler, + }, + { + MethodName: "GetData", + Handler: _DataProxyService_GetData_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/dataproxy.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go new file mode 100644 index 0000000000..d0dc517425 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go @@ -0,0 +1,651 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/external_plugin_service.proto + +package service + +import ( + core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// The state of the execution is used to control its visibility in the UI/CLI. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type State int32 + +const ( + State_RETRYABLE_FAILURE State = 0 + State_PERMANENT_FAILURE State = 1 + State_PENDING State = 2 + State_RUNNING State = 3 + State_SUCCEEDED State = 4 +) + +// Enum value maps for State. +var ( + State_name = map[int32]string{ + 0: "RETRYABLE_FAILURE", + 1: "PERMANENT_FAILURE", + 2: "PENDING", + 3: "RUNNING", + 4: "SUCCEEDED", + } + State_value = map[string]int32{ + "RETRYABLE_FAILURE": 0, + "PERMANENT_FAILURE": 1, + "PENDING": 2, + "RUNNING": 3, + "SUCCEEDED": 4, + } +) + +func (x State) Enum() *State { + p := new(State) + *p = x + return p +} + +func (x State) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (State) Descriptor() protoreflect.EnumDescriptor { + return file_flyteidl_service_external_plugin_service_proto_enumTypes[0].Descriptor() +} + +func (State) Type() protoreflect.EnumType { + return &file_flyteidl_service_external_plugin_service_proto_enumTypes[0] +} + +func (x State) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use State.Descriptor instead. +func (State) EnumDescriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{0} +} + +// Represents a request structure to create task. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type TaskCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The inputs required to start the execution. All required inputs must be + // included in this map. If not required and not provided, defaults apply. + // +optional + Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` + // Template of the task that encapsulates all the metadata of the task. + Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` + // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` +} + +func (x *TaskCreateRequest) Reset() { + *x = TaskCreateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskCreateRequest) ProtoMessage() {} + +func (x *TaskCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskCreateRequest.ProtoReflect.Descriptor instead. +func (*TaskCreateRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{0} +} + +func (x *TaskCreateRequest) GetInputs() *core.LiteralMap { + if x != nil { + return x.Inputs + } + return nil +} + +func (x *TaskCreateRequest) GetTemplate() *core.TaskTemplate { + if x != nil { + return x.Template + } + return nil +} + +func (x *TaskCreateRequest) GetOutputPrefix() string { + if x != nil { + return x.OutputPrefix + } + return "" +} + +// Represents a create response structure. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type TaskCreateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *TaskCreateResponse) Reset() { + *x = TaskCreateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskCreateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskCreateResponse) ProtoMessage() {} + +func (x *TaskCreateResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskCreateResponse.ProtoReflect.Descriptor instead. +func (*TaskCreateResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{1} +} + +func (x *TaskCreateResponse) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +// A message used to fetch a job state from backend plugin server. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type TaskGetRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // The unique id identifying the job. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *TaskGetRequest) Reset() { + *x = TaskGetRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskGetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskGetRequest) ProtoMessage() {} + +func (x *TaskGetRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskGetRequest.ProtoReflect.Descriptor instead. +func (*TaskGetRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{2} +} + +func (x *TaskGetRequest) GetTaskType() string { + if x != nil { + return x.TaskType + } + return "" +} + +func (x *TaskGetRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +// Response to get an individual task state. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type TaskGetResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The state of the execution is used to control its visibility in the UI/CLI. + State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.service.State" json:"state,omitempty"` + // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a + // Structured dataset pointing to the query result table. + // +optional + Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` +} + +func (x *TaskGetResponse) Reset() { + *x = TaskGetResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskGetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskGetResponse) ProtoMessage() {} + +func (x *TaskGetResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskGetResponse.ProtoReflect.Descriptor instead. +func (*TaskGetResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{3} +} + +func (x *TaskGetResponse) GetState() State { + if x != nil { + return x.State + } + return State_RETRYABLE_FAILURE +} + +func (x *TaskGetResponse) GetOutputs() *core.LiteralMap { + if x != nil { + return x.Outputs + } + return nil +} + +// A message used to delete a task. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type TaskDeleteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A predefined yet extensible Task type identifier. + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + // The unique id identifying the job. + JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *TaskDeleteRequest) Reset() { + *x = TaskDeleteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskDeleteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskDeleteRequest) ProtoMessage() {} + +func (x *TaskDeleteRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskDeleteRequest.ProtoReflect.Descriptor instead. +func (*TaskDeleteRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{4} +} + +func (x *TaskDeleteRequest) GetTaskType() string { + if x != nil { + return x.TaskType + } + return "" +} + +func (x *TaskDeleteRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +// Response to delete a task. +// +// Deprecated: Marked as deprecated in flyteidl/service/external_plugin_service.proto. +type TaskDeleteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *TaskDeleteResponse) Reset() { + *x = TaskDeleteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TaskDeleteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TaskDeleteResponse) ProtoMessage() {} + +func (x *TaskDeleteResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_external_plugin_service_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TaskDeleteResponse.ProtoReflect.Descriptor instead. +func (*TaskDeleteResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_external_plugin_service_proto_rawDescGZIP(), []int{5} +} + +var File_flyteidl_service_external_plugin_service_proto protoreflect.FileDescriptor + +var file_flyteidl_service_external_plugin_service_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x6c, 0x75, 0x67, + 0x69, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x1a, 0x1c, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x19, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, + 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x01, 0x0a, 0x11, + 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x31, 0x0a, 0x06, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, + 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x06, 0x69, 0x6e, + 0x70, 0x75, 0x74, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x50, 0x72, 0x65, 0x66, + 0x69, 0x78, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x2f, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, + 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, + 0x62, 0x49, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x48, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x47, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, + 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x3a, 0x02, 0x18, + 0x01, 0x22, 0x79, 0x0a, 0x0f, 0x54, 0x61, 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, + 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x4b, 0x0a, 0x11, + 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x3a, 0x02, 0x18, 0x01, 0x22, 0x18, 0x0a, 0x12, 0x54, 0x61, 0x73, + 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x3a, + 0x02, 0x18, 0x01, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, + 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, + 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, + 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, + 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, + 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, + 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x32, 0xa8, 0x02, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, + 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x5c, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, + 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, + 0x53, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, + 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x03, 0x88, 0x02, 0x01, 0x12, 0x5c, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x12, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, + 0x02, 0x01, 0x42, 0xd2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x1a, 0x45, 0x78, 0x74, + 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, + 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_service_external_plugin_service_proto_rawDescOnce sync.Once + file_flyteidl_service_external_plugin_service_proto_rawDescData = file_flyteidl_service_external_plugin_service_proto_rawDesc +) + +func file_flyteidl_service_external_plugin_service_proto_rawDescGZIP() []byte { + file_flyteidl_service_external_plugin_service_proto_rawDescOnce.Do(func() { + file_flyteidl_service_external_plugin_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_external_plugin_service_proto_rawDescData) + }) + return file_flyteidl_service_external_plugin_service_proto_rawDescData +} + +var file_flyteidl_service_external_plugin_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_flyteidl_service_external_plugin_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_flyteidl_service_external_plugin_service_proto_goTypes = []interface{}{ + (State)(0), // 0: flyteidl.service.State + (*TaskCreateRequest)(nil), // 1: flyteidl.service.TaskCreateRequest + (*TaskCreateResponse)(nil), // 2: flyteidl.service.TaskCreateResponse + (*TaskGetRequest)(nil), // 3: flyteidl.service.TaskGetRequest + (*TaskGetResponse)(nil), // 4: flyteidl.service.TaskGetResponse + (*TaskDeleteRequest)(nil), // 5: flyteidl.service.TaskDeleteRequest + (*TaskDeleteResponse)(nil), // 6: flyteidl.service.TaskDeleteResponse + (*core.LiteralMap)(nil), // 7: flyteidl.core.LiteralMap + (*core.TaskTemplate)(nil), // 8: flyteidl.core.TaskTemplate +} +var file_flyteidl_service_external_plugin_service_proto_depIdxs = []int32{ + 7, // 0: flyteidl.service.TaskCreateRequest.inputs:type_name -> flyteidl.core.LiteralMap + 8, // 1: flyteidl.service.TaskCreateRequest.template:type_name -> flyteidl.core.TaskTemplate + 0, // 2: flyteidl.service.TaskGetResponse.state:type_name -> flyteidl.service.State + 7, // 3: flyteidl.service.TaskGetResponse.outputs:type_name -> flyteidl.core.LiteralMap + 1, // 4: flyteidl.service.ExternalPluginService.CreateTask:input_type -> flyteidl.service.TaskCreateRequest + 3, // 5: flyteidl.service.ExternalPluginService.GetTask:input_type -> flyteidl.service.TaskGetRequest + 5, // 6: flyteidl.service.ExternalPluginService.DeleteTask:input_type -> flyteidl.service.TaskDeleteRequest + 2, // 7: flyteidl.service.ExternalPluginService.CreateTask:output_type -> flyteidl.service.TaskCreateResponse + 4, // 8: flyteidl.service.ExternalPluginService.GetTask:output_type -> flyteidl.service.TaskGetResponse + 6, // 9: flyteidl.service.ExternalPluginService.DeleteTask:output_type -> flyteidl.service.TaskDeleteResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_external_plugin_service_proto_init() } +func file_flyteidl_service_external_plugin_service_proto_init() { + if File_flyteidl_service_external_plugin_service_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_service_external_plugin_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_external_plugin_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_external_plugin_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskGetRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_external_plugin_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskGetResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_external_plugin_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskDeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_external_plugin_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskDeleteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_external_plugin_service_proto_rawDesc, + NumEnums: 1, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_service_external_plugin_service_proto_goTypes, + DependencyIndexes: file_flyteidl_service_external_plugin_service_proto_depIdxs, + EnumInfos: file_flyteidl_service_external_plugin_service_proto_enumTypes, + MessageInfos: file_flyteidl_service_external_plugin_service_proto_msgTypes, + }.Build() + File_flyteidl_service_external_plugin_service_proto = out.File + file_flyteidl_service_external_plugin_service_proto_rawDesc = nil + file_flyteidl_service_external_plugin_service_proto_goTypes = nil + file_flyteidl_service_external_plugin_service_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go new file mode 100644 index 0000000000..3cd5f1639e --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service_grpc.pb.go @@ -0,0 +1,196 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/external_plugin_service.proto + +package service + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + ExternalPluginService_CreateTask_FullMethodName = "/flyteidl.service.ExternalPluginService/CreateTask" + ExternalPluginService_GetTask_FullMethodName = "/flyteidl.service.ExternalPluginService/GetTask" + ExternalPluginService_DeleteTask_FullMethodName = "/flyteidl.service.ExternalPluginService/DeleteTask" +) + +// ExternalPluginServiceClient is the client API for ExternalPluginService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ExternalPluginServiceClient interface { + // Deprecated: Do not use. + // Send a task create request to the backend plugin server. + CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) + // Deprecated: Do not use. + // Get job status. + GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) + // Deprecated: Do not use. + // Delete the task resource. + DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) +} + +type externalPluginServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewExternalPluginServiceClient(cc grpc.ClientConnInterface) ExternalPluginServiceClient { + return &externalPluginServiceClient{cc} +} + +// Deprecated: Do not use. +func (c *externalPluginServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { + out := new(TaskCreateResponse) + err := c.cc.Invoke(ctx, ExternalPluginService_CreateTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *externalPluginServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { + out := new(TaskGetResponse) + err := c.cc.Invoke(ctx, ExternalPluginService_GetTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// Deprecated: Do not use. +func (c *externalPluginServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { + out := new(TaskDeleteResponse) + err := c.cc.Invoke(ctx, ExternalPluginService_DeleteTask_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ExternalPluginServiceServer is the server API for ExternalPluginService service. +// All implementations should embed UnimplementedExternalPluginServiceServer +// for forward compatibility +type ExternalPluginServiceServer interface { + // Deprecated: Do not use. + // Send a task create request to the backend plugin server. + CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) + // Deprecated: Do not use. + // Get job status. + GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) + // Deprecated: Do not use. + // Delete the task resource. + DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) +} + +// UnimplementedExternalPluginServiceServer should be embedded to have forward compatible implementations. +type UnimplementedExternalPluginServiceServer struct { +} + +func (UnimplementedExternalPluginServiceServer) CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") +} +func (UnimplementedExternalPluginServiceServer) GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") +} +func (UnimplementedExternalPluginServiceServer) DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") +} + +// UnsafeExternalPluginServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ExternalPluginServiceServer will +// result in compilation errors. +type UnsafeExternalPluginServiceServer interface { + mustEmbedUnimplementedExternalPluginServiceServer() +} + +func RegisterExternalPluginServiceServer(s grpc.ServiceRegistrar, srv ExternalPluginServiceServer) { + s.RegisterService(&ExternalPluginService_ServiceDesc, srv) +} + +func _ExternalPluginService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalPluginServiceServer).CreateTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalPluginService_CreateTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalPluginServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalPluginService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskGetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalPluginServiceServer).GetTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalPluginService_GetTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalPluginServiceServer).GetTask(ctx, req.(*TaskGetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExternalPluginService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(TaskDeleteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExternalPluginServiceServer).DeleteTask(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ExternalPluginService_DeleteTask_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExternalPluginServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ExternalPluginService_ServiceDesc is the grpc.ServiceDesc for ExternalPluginService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ExternalPluginService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.ExternalPluginService", + HandlerType: (*ExternalPluginServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "CreateTask", + Handler: _ExternalPluginService_CreateTask_Handler, + }, + { + MethodName: "GetTask", + Handler: _ExternalPluginService_GetTask_Handler, + }, + { + MethodName: "DeleteTask", + Handler: _ExternalPluginService_DeleteTask_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/external_plugin_service.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go new file mode 100644 index 0000000000..87430aa9c5 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go @@ -0,0 +1,313 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/identity.proto + +package service + +import ( + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type UserInfoRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UserInfoRequest) Reset() { + *x = UserInfoRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_identity_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfoRequest) ProtoMessage() {} + +func (x *UserInfoRequest) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_identity_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserInfoRequest.ProtoReflect.Descriptor instead. +func (*UserInfoRequest) Descriptor() ([]byte, []int) { + return file_flyteidl_service_identity_proto_rawDescGZIP(), []int{0} +} + +// See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. +type UserInfoResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed + // by the Client. + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + // Full name + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // Shorthand name by which the End-User wishes to be referred to + PreferredUsername string `protobuf:"bytes,3,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"` + // Given name(s) or first name(s) + GivenName string `protobuf:"bytes,4,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` + // Surname(s) or last name(s) + FamilyName string `protobuf:"bytes,5,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` + // Preferred e-mail address + Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` + // Profile picture URL + Picture string `protobuf:"bytes,7,opt,name=picture,proto3" json:"picture,omitempty"` + // Additional claims + AdditionalClaims *structpb.Struct `protobuf:"bytes,8,opt,name=additional_claims,json=additionalClaims,proto3" json:"additional_claims,omitempty"` +} + +func (x *UserInfoResponse) Reset() { + *x = UserInfoResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_flyteidl_service_identity_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfoResponse) ProtoMessage() {} + +func (x *UserInfoResponse) ProtoReflect() protoreflect.Message { + mi := &file_flyteidl_service_identity_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserInfoResponse.ProtoReflect.Descriptor instead. +func (*UserInfoResponse) Descriptor() ([]byte, []int) { + return file_flyteidl_service_identity_proto_rawDescGZIP(), []int{1} +} + +func (x *UserInfoResponse) GetSubject() string { + if x != nil { + return x.Subject + } + return "" +} + +func (x *UserInfoResponse) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UserInfoResponse) GetPreferredUsername() string { + if x != nil { + return x.PreferredUsername + } + return "" +} + +func (x *UserInfoResponse) GetGivenName() string { + if x != nil { + return x.GivenName + } + return "" +} + +func (x *UserInfoResponse) GetFamilyName() string { + if x != nil { + return x.FamilyName + } + return "" +} + +func (x *UserInfoResponse) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *UserInfoResponse) GetPicture() string { + if x != nil { + return x.Picture + } + return "" +} + +func (x *UserInfoResponse) GetAdditionalClaims() *structpb.Struct { + if x != nil { + return x.AdditionalClaims + } + return nil +} + +var File_flyteidl_service_identity_proto protoreflect.FileDescriptor + +var file_flyteidl_service_identity_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, + 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, + 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, + 0x11, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0xa5, 0x02, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, + 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x69, + 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x69, 0x63, + 0x74, 0x75, 0x72, 0x65, 0x12, 0x44, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x10, 0x61, 0x64, 0x64, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x43, 0x6c, 0x61, 0x69, 0x6d, 0x73, 0x32, 0x9d, 0x01, 0x0a, 0x0f, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x89, + 0x01, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x36, 0x92, 0x41, 0x28, 0x1a, 0x26, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, + 0x65, 0x73, 0x20, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, + 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x69, 0x6e, 0x66, 0x6f, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x05, 0x12, 0x03, 0x2f, 0x6d, 0x65, 0x42, 0xc5, 0x01, 0x0a, 0x14, 0x63, + 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x42, 0x0d, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, + 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, + 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_flyteidl_service_identity_proto_rawDescOnce sync.Once + file_flyteidl_service_identity_proto_rawDescData = file_flyteidl_service_identity_proto_rawDesc +) + +func file_flyteidl_service_identity_proto_rawDescGZIP() []byte { + file_flyteidl_service_identity_proto_rawDescOnce.Do(func() { + file_flyteidl_service_identity_proto_rawDescData = protoimpl.X.CompressGZIP(file_flyteidl_service_identity_proto_rawDescData) + }) + return file_flyteidl_service_identity_proto_rawDescData +} + +var file_flyteidl_service_identity_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_flyteidl_service_identity_proto_goTypes = []interface{}{ + (*UserInfoRequest)(nil), // 0: flyteidl.service.UserInfoRequest + (*UserInfoResponse)(nil), // 1: flyteidl.service.UserInfoResponse + (*structpb.Struct)(nil), // 2: google.protobuf.Struct +} +var file_flyteidl_service_identity_proto_depIdxs = []int32{ + 2, // 0: flyteidl.service.UserInfoResponse.additional_claims:type_name -> google.protobuf.Struct + 0, // 1: flyteidl.service.IdentityService.UserInfo:input_type -> flyteidl.service.UserInfoRequest + 1, // 2: flyteidl.service.IdentityService.UserInfo:output_type -> flyteidl.service.UserInfoResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_identity_proto_init() } +func file_flyteidl_service_identity_proto_init() { + if File_flyteidl_service_identity_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_flyteidl_service_identity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_flyteidl_service_identity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_identity_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_service_identity_proto_goTypes, + DependencyIndexes: file_flyteidl_service_identity_proto_depIdxs, + MessageInfos: file_flyteidl_service_identity_proto_msgTypes, + }.Build() + File_flyteidl_service_identity_proto = out.File + file_flyteidl_service_identity_proto_rawDesc = nil + file_flyteidl_service_identity_proto_goTypes = nil + file_flyteidl_service_identity_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go new file mode 100644 index 0000000000..6e7c0b54dd --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/identity_grpc.pb.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/identity.proto + +package service + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + IdentityService_UserInfo_FullMethodName = "/flyteidl.service.IdentityService/UserInfo" +) + +// IdentityServiceClient is the client API for IdentityService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type IdentityServiceClient interface { + // Retrieves user information about the currently logged in user. + UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) +} + +type identityServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewIdentityServiceClient(cc grpc.ClientConnInterface) IdentityServiceClient { + return &identityServiceClient{cc} +} + +func (c *identityServiceClient) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) { + out := new(UserInfoResponse) + err := c.cc.Invoke(ctx, IdentityService_UserInfo_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// IdentityServiceServer is the server API for IdentityService service. +// All implementations should embed UnimplementedIdentityServiceServer +// for forward compatibility +type IdentityServiceServer interface { + // Retrieves user information about the currently logged in user. + UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) +} + +// UnimplementedIdentityServiceServer should be embedded to have forward compatible implementations. +type UnimplementedIdentityServiceServer struct { +} + +func (UnimplementedIdentityServiceServer) UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented") +} + +// UnsafeIdentityServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to IdentityServiceServer will +// result in compilation errors. +type UnsafeIdentityServiceServer interface { + mustEmbedUnimplementedIdentityServiceServer() +} + +func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer) { + s.RegisterService(&IdentityService_ServiceDesc, srv) +} + +func _IdentityService_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UserInfoRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IdentityServiceServer).UserInfo(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: IdentityService_UserInfo_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IdentityServiceServer).UserInfo(ctx, req.(*UserInfoRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// IdentityService_ServiceDesc is the grpc.ServiceDesc for IdentityService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var IdentityService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.IdentityService", + HandlerType: (*IdentityServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UserInfo", + Handler: _IdentityService_UserInfo_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/identity.proto", +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go new file mode 100644 index 0000000000..d3864887b2 --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go @@ -0,0 +1,144 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.30.0 +// protoc (unknown) +// source: flyteidl/service/signal.proto + +package service + +import ( + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_flyteidl_service_signal_proto protoreflect.FileDescriptor + +var file_flyteidl_service_signal_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, + 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x1b, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, + 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, + 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe7, 0x05, 0x0a, + 0x0d, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x90, + 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x69, + 0x67, 0x6e, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x47, 0x65, 0x74, 0x4f, + 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, + 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x22, 0x39, 0x92, 0x41, 0x36, 0x1a, 0x34, 0x52, 0x65, 0x74, + 0x72, 0x69, 0x65, 0x76, 0x65, 0x20, 0x61, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2c, 0x20, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x69, 0x74, 0x20, 0x69, 0x66, 0x20, 0x69, + 0x74, 0x20, 0x64, 0x6f, 0x65, 0x73, 0x20, 0x6e, 0x6f, 0x74, 0x20, 0x65, 0x78, 0x69, 0x73, 0x74, + 0x2e, 0x12, 0x8e, 0x02, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x73, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x73, 0x74, + 0x22, 0xbf, 0x01, 0x92, 0x41, 0x49, 0x1a, 0x47, 0x46, 0x65, 0x74, 0x63, 0x68, 0x20, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x64, 0x65, + 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, + 0x6e, 0x67, 0x20, 0x74, 0x68, 0x65, 0x20, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x20, 0x73, 0x69, 0x67, + 0x6e, 0x61, 0x6c, 0x20, 0x69, 0x64, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x6d, 0x12, 0x6b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x66, 0x6c, 0x6f, 0x77, 0x5f, + 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x6e, 0x61, 0x6d, + 0x65, 0x7d, 0x12, 0xb1, 0x02, 0x0a, 0x09, 0x53, 0x65, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, + 0x12, 0x20, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x53, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xde, 0x01, 0x92, 0x41, 0xc0, 0x01, 0x1a, 0x13, 0x53, 0x65, + 0x74, 0x20, 0x61, 0x20, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x2e, 0x4a, 0x42, 0x0a, 0x03, 0x34, 0x30, 0x30, 0x12, 0x3b, 0x0a, 0x39, 0x52, 0x65, 0x74, 0x75, + 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x62, 0x61, 0x64, 0x20, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x6d, 0x61, 0x79, 0x20, 0x68, 0x61, + 0x76, 0x65, 0x20, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4a, 0x65, 0x0a, 0x03, 0x34, 0x30, 0x39, 0x12, 0x5e, 0x0a, 0x5c, + 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x65, 0x64, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x61, 0x20, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, 0x72, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x20, 0x61, 0x6e, 0x20, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x63, 0x61, 0x6c, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x20, 0x74, 0x68, 0x61, 0x74, 0x20, + 0x68, 0x61, 0x73, 0x20, 0x61, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x20, 0x62, 0x65, 0x65, 0x6e, + 0x20, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x73, 0x42, 0xc3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, + 0x0b, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3d, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, + 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xa2, 0x02, 0x03, + 0x46, 0x53, 0x58, 0xaa, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xca, 0x02, 0x10, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0xe2, 0x02, 0x1c, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var file_flyteidl_service_signal_proto_goTypes = []interface{}{ + (*admin.SignalGetOrCreateRequest)(nil), // 0: flyteidl.admin.SignalGetOrCreateRequest + (*admin.SignalListRequest)(nil), // 1: flyteidl.admin.SignalListRequest + (*admin.SignalSetRequest)(nil), // 2: flyteidl.admin.SignalSetRequest + (*admin.Signal)(nil), // 3: flyteidl.admin.Signal + (*admin.SignalList)(nil), // 4: flyteidl.admin.SignalList + (*admin.SignalSetResponse)(nil), // 5: flyteidl.admin.SignalSetResponse +} +var file_flyteidl_service_signal_proto_depIdxs = []int32{ + 0, // 0: flyteidl.service.SignalService.GetOrCreateSignal:input_type -> flyteidl.admin.SignalGetOrCreateRequest + 1, // 1: flyteidl.service.SignalService.ListSignals:input_type -> flyteidl.admin.SignalListRequest + 2, // 2: flyteidl.service.SignalService.SetSignal:input_type -> flyteidl.admin.SignalSetRequest + 3, // 3: flyteidl.service.SignalService.GetOrCreateSignal:output_type -> flyteidl.admin.Signal + 4, // 4: flyteidl.service.SignalService.ListSignals:output_type -> flyteidl.admin.SignalList + 5, // 5: flyteidl.service.SignalService.SetSignal:output_type -> flyteidl.admin.SignalSetResponse + 3, // [3:6] is the sub-list for method output_type + 0, // [0:3] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_flyteidl_service_signal_proto_init() } +func file_flyteidl_service_signal_proto_init() { + if File_flyteidl_service_signal_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_flyteidl_service_signal_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_flyteidl_service_signal_proto_goTypes, + DependencyIndexes: file_flyteidl_service_signal_proto_depIdxs, + }.Build() + File_flyteidl_service_signal_proto = out.File + file_flyteidl_service_signal_proto_rawDesc = nil + file_flyteidl_service_signal_proto_goTypes = nil + file_flyteidl_service_signal_proto_depIdxs = nil +} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go b/flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go new file mode 100644 index 0000000000..6a6be05f2f --- /dev/null +++ b/flyteidl/gen/pb-go/flyteidl/service/signal_grpc.pb.go @@ -0,0 +1,188 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: flyteidl/service/signal.proto + +package service + +import ( + context "context" + admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + SignalService_GetOrCreateSignal_FullMethodName = "/flyteidl.service.SignalService/GetOrCreateSignal" + SignalService_ListSignals_FullMethodName = "/flyteidl.service.SignalService/ListSignals" + SignalService_SetSignal_FullMethodName = "/flyteidl.service.SignalService/SetSignal" +) + +// SignalServiceClient is the client API for SignalService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type SignalServiceClient interface { + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) +} + +type signalServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewSignalServiceClient(cc grpc.ClientConnInterface) SignalServiceClient { + return &signalServiceClient{cc} +} + +func (c *signalServiceClient) GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) { + out := new(admin.Signal) + err := c.cc.Invoke(ctx, SignalService_GetOrCreateSignal_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *signalServiceClient) ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) { + out := new(admin.SignalList) + err := c.cc.Invoke(ctx, SignalService_ListSignals_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *signalServiceClient) SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) { + out := new(admin.SignalSetResponse) + err := c.cc.Invoke(ctx, SignalService_SetSignal_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// SignalServiceServer is the server API for SignalService service. +// All implementations should embed UnimplementedSignalServiceServer +// for forward compatibility +type SignalServiceServer interface { + // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + GetOrCreateSignal(context.Context, *admin.SignalGetOrCreateRequest) (*admin.Signal, error) + // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + ListSignals(context.Context, *admin.SignalListRequest) (*admin.SignalList, error) + // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + SetSignal(context.Context, *admin.SignalSetRequest) (*admin.SignalSetResponse, error) +} + +// UnimplementedSignalServiceServer should be embedded to have forward compatible implementations. +type UnimplementedSignalServiceServer struct { +} + +func (UnimplementedSignalServiceServer) GetOrCreateSignal(context.Context, *admin.SignalGetOrCreateRequest) (*admin.Signal, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOrCreateSignal not implemented") +} +func (UnimplementedSignalServiceServer) ListSignals(context.Context, *admin.SignalListRequest) (*admin.SignalList, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListSignals not implemented") +} +func (UnimplementedSignalServiceServer) SetSignal(context.Context, *admin.SignalSetRequest) (*admin.SignalSetResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetSignal not implemented") +} + +// UnsafeSignalServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to SignalServiceServer will +// result in compilation errors. +type UnsafeSignalServiceServer interface { + mustEmbedUnimplementedSignalServiceServer() +} + +func RegisterSignalServiceServer(s grpc.ServiceRegistrar, srv SignalServiceServer) { + s.RegisterService(&SignalService_ServiceDesc, srv) +} + +func _SignalService_GetOrCreateSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.SignalGetOrCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SignalServiceServer).GetOrCreateSignal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SignalService_GetOrCreateSignal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SignalServiceServer).GetOrCreateSignal(ctx, req.(*admin.SignalGetOrCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SignalService_ListSignals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.SignalListRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SignalServiceServer).ListSignals(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SignalService_ListSignals_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SignalServiceServer).ListSignals(ctx, req.(*admin.SignalListRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _SignalService_SetSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(admin.SignalSetRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(SignalServiceServer).SetSignal(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: SignalService_SetSignal_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(SignalServiceServer).SetSignal(ctx, req.(*admin.SignalSetRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// SignalService_ServiceDesc is the grpc.ServiceDesc for SignalService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var SignalService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "flyteidl.service.SignalService", + HandlerType: (*SignalServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetOrCreateSignal", + Handler: _SignalService_GetOrCreateSignal_Handler, + }, + { + MethodName: "ListSignals", + Handler: _SignalService_ListSignals_Handler, + }, + { + MethodName: "SetSignal", + Handler: _SignalService_SetSignal_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "flyteidl/service/signal.proto", +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json new file mode 100644 index 0000000000..867b42fdf4 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/agent.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/agent.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json new file mode 100644 index 0000000000..11e3755e4c --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/cluster_assignment.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/cluster_assignment.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json new file mode 100644 index 0000000000..7c8e3fac2f --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/common.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/common.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json new file mode 100644 index 0000000000..982e0455cd --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/description_entity.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/description_entity.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json new file mode 100644 index 0000000000..08fc718b1b --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/event.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/event.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json new file mode 100644 index 0000000000..1b9db4b8ec --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/execution.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/execution.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json new file mode 100644 index 0000000000..7066f302bf --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/launch_plan.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/launch_plan.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json new file mode 100644 index 0000000000..56eb3a3948 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/matchable_resource.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/matchable_resource.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json new file mode 100644 index 0000000000..cf7179f5eb --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/node_execution.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/node_execution.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json new file mode 100644 index 0000000000..a1fc5d8f16 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/notification.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/notification.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json new file mode 100644 index 0000000000..2bfa5870e8 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json new file mode 100644 index 0000000000..7079f79fb3 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_attributes.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project_attributes.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json new file mode 100644 index 0000000000..09f64b053d --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/project_domain_attributes.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/project_domain_attributes.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json new file mode 100644 index 0000000000..839787bd88 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/schedule.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/schedule.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json new file mode 100644 index 0000000000..0e32934d8f --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/signal.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/signal.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json new file mode 100644 index 0000000000..a6110df959 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/task.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/task.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json new file mode 100644 index 0000000000..ef9b640cc1 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/task_execution.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/task_execution.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json new file mode 100644 index 0000000000..6c24a79ee3 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/version.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/version.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json new file mode 100644 index 0000000000..df48bdbd6b --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/workflow.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json new file mode 100644 index 0000000000..481b28de53 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/admin/workflow_attributes.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/admin/workflow_attributes.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json new file mode 100644 index 0000000000..5275dc2670 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/artifact_id.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/artifact_id.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json new file mode 100644 index 0000000000..844c33316f --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/catalog.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/catalog.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json new file mode 100644 index 0000000000..55482fb19d --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/compiler.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/compiler.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json new file mode 100644 index 0000000000..2c30824855 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/condition.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/condition.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json new file mode 100644 index 0000000000..b9e8ff4c14 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/dynamic_job.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/dynamic_job.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json new file mode 100644 index 0000000000..d22c32a52c --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/errors.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/errors.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json new file mode 100644 index 0000000000..afd47219df --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/execution.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/execution.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json new file mode 100644 index 0000000000..21cf0360bc --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/identifier.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/identifier.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json new file mode 100644 index 0000000000..53138e169f --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/interface.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/interface.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json new file mode 100644 index 0000000000..dae38e22a2 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/literals.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/literals.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json new file mode 100644 index 0000000000..e5f079d717 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/metrics.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/metrics.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json new file mode 100644 index 0000000000..a05237a531 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/security.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/security.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json new file mode 100644 index 0000000000..e3d14e75b2 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/tasks.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/tasks.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json new file mode 100644 index 0000000000..a8e40649b6 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/types.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/types.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json new file mode 100644 index 0000000000..5bc734a1aa --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/workflow.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json new file mode 100644 index 0000000000..871d4fea54 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/core/workflow_closure.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/core/workflow_closure.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json new file mode 100644 index 0000000000..1f2f91d28b --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/datacatalog/datacatalog.swagger.json @@ -0,0 +1,908 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/datacatalog/datacatalog.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "DataCatalog" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "PaginationOptionsSortKey": { + "type": "string", + "enum": [ + "CREATION_TIME" + ], + "default": "CREATION_TIME" + }, + "PaginationOptionsSortOrder": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SinglePropertyFilterComparisonOperator": { + "type": "string", + "enum": [ + "EQUALS" + ], + "default": "EQUALS", + "description": "as use-cases come up we can add more operators, ex: gte, like, not eq etc." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata for literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/flyteidlcoreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "type": "object", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "type": "object" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + }, + "dataclass_type": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteralType" + }, + "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "datacatalogAddTagResponse": { + "type": "object", + "description": "Response message for tagging an Artifact." + }, + "datacatalogArtifact": { + "type": "object", + "properties": { + "id": { + "type": "string", + "title": "The unique ID of the artifact" + }, + "dataset": { + "$ref": "#/definitions/datacatalogDatasetID", + "title": "The Dataset that the artifact belongs to" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/datacatalogArtifactData" + }, + "title": "A list of data that is associated with the artifact" + }, + "metadata": { + "$ref": "#/definitions/datacatalogMetadata", + "title": "Free-form metadata associated with the artifact" + }, + "partitions": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/datacatalogPartition" + } + }, + "tags": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/datacatalogTag" + } + }, + "created_at": { + "type": "string", + "format": "date-time", + "title": "creation timestamp of artifact, autogenerated by service" + } + }, + "description": "Artifact message. It is composed of several string fields." + }, + "datacatalogArtifactData": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "$ref": "#/definitions/coreLiteral" + } + }, + "title": "ArtifactData that belongs to an artifact" + }, + "datacatalogArtifactPropertyFilter": { + "type": "object", + "properties": { + "artifact_id": { + "type": "string" + } + }, + "title": "Artifact properties we can filter by" + }, + "datacatalogCreateArtifactResponse": { + "type": "object", + "description": "Response message for creating an Artifact." + }, + "datacatalogCreateDatasetResponse": { + "type": "object", + "title": "Response message for creating a Dataset" + }, + "datacatalogDataset": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/datacatalogDatasetID" + }, + "metadata": { + "$ref": "#/definitions/datacatalogMetadata" + }, + "partitionKeys": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "description": "Dataset message. It is uniquely identified by DatasetID." + }, + "datacatalogDatasetID": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "The name of the project" + }, + "name": { + "type": "string", + "title": "The name of the dataset" + }, + "domain": { + "type": "string", + "title": "The domain (eg. environment)" + }, + "version": { + "type": "string", + "title": "Version of the data schema" + }, + "UUID": { + "type": "string", + "title": "UUID for the dataset (if set the above fields are optional)" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "DatasetID message that is composed of several string fields." + }, + "datacatalogDatasetPropertyFilter": { + "type": "object", + "properties": { + "project": { + "type": "string" + }, + "name": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "version": { + "type": "string" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the dataset." + } + }, + "title": "Dataset properties we can filter by" + }, + "datacatalogFilterExpression": { + "type": "object", + "properties": { + "filters": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/datacatalogSinglePropertyFilter" + } + } + }, + "title": "Filter expression that is composed of a combination of single filters" + }, + "datacatalogGetArtifactResponse": { + "type": "object", + "properties": { + "artifact": { + "$ref": "#/definitions/datacatalogArtifact" + } + }, + "description": "Response message for retrieving an Artifact. The result returned will include the artifact data\nand metadata associated with the artifact." + }, + "datacatalogGetDatasetResponse": { + "type": "object", + "properties": { + "dataset": { + "$ref": "#/definitions/datacatalogDataset" + } + }, + "description": "Response message for retrieving a Dataset. The response will include the metadata for the\nDataset." + }, + "datacatalogGetOrExtendReservationResponse": { + "type": "object", + "properties": { + "reservation": { + "$ref": "#/definitions/datacatalogReservation", + "title": "The reservation to be acquired or extended" + } + }, + "title": "Response including either a newly minted reservation or the existing reservation" + }, + "datacatalogKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "datacatalogListArtifactsResponse": { + "type": "object", + "properties": { + "artifacts": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/datacatalogArtifact" + }, + "title": "The list of artifacts" + }, + "next_token": { + "type": "string", + "title": "Token to use to request the next page, pass this into the next requests PaginationOptions" + } + }, + "title": "Response to list artifacts" + }, + "datacatalogListDatasetsResponse": { + "type": "object", + "properties": { + "datasets": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/datacatalogDataset" + }, + "title": "The list of datasets" + }, + "next_token": { + "type": "string", + "title": "Token to use to request the next page, pass this into the next requests PaginationOptions" + } + }, + "title": "List the datasets response with token for next pagination" + }, + "datacatalogMetadata": { + "type": "object", + "properties": { + "key_map": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "key map is a dictionary of key/val strings that represent metadata" + } + }, + "title": "Metadata representation for artifacts and datasets" + }, + "datacatalogPaginationOptions": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "format": "int64", + "title": "the max number of results to return" + }, + "token": { + "type": "string", + "title": "the token to pass to fetch the next page" + }, + "sortKey": { + "$ref": "#/definitions/PaginationOptionsSortKey", + "title": "the property that we want to sort the results by" + }, + "sortOrder": { + "$ref": "#/definitions/PaginationOptionsSortOrder", + "title": "the sort order of the results" + } + }, + "title": "Pagination options for making list requests" + }, + "datacatalogPartition": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "title": "An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair" + }, + "datacatalogPartitionPropertyFilter": { + "type": "object", + "properties": { + "key_val": { + "$ref": "#/definitions/datacatalogKeyValuePair" + } + }, + "title": "Partition properties we can filter by" + }, + "datacatalogReleaseReservationResponse": { + "type": "object", + "title": "Response to release reservation" + }, + "datacatalogReservation": { + "type": "object", + "properties": { + "reservation_id": { + "$ref": "#/definitions/datacatalogReservationID", + "title": "The unique ID for the reservation" + }, + "owner_id": { + "type": "string", + "title": "The unique ID of the owner for the reservation" + }, + "heartbeat_interval": { + "type": "string", + "title": "Recommended heartbeat interval to extend reservation" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "title": "Expiration timestamp of this reservation" + }, + "metadata": { + "$ref": "#/definitions/datacatalogMetadata", + "title": "Free-form metadata associated with the artifact" + } + }, + "description": "A reservation including owner, heartbeat interval, expiration timestamp, and various metadata." + }, + "datacatalogReservationID": { + "type": "object", + "properties": { + "dataset_id": { + "$ref": "#/definitions/datacatalogDatasetID", + "title": "The unique ID for the reserved dataset" + }, + "tag_name": { + "type": "string", + "title": "The specific artifact tag for the reservation" + } + }, + "description": "ReservationID message that is composed of several string fields." + }, + "datacatalogSinglePropertyFilter": { + "type": "object", + "properties": { + "tag_filter": { + "$ref": "#/definitions/datacatalogTagPropertyFilter" + }, + "partition_filter": { + "$ref": "#/definitions/datacatalogPartitionPropertyFilter" + }, + "artifact_filter": { + "$ref": "#/definitions/datacatalogArtifactPropertyFilter" + }, + "dataset_filter": { + "$ref": "#/definitions/datacatalogDatasetPropertyFilter" + }, + "operator": { + "$ref": "#/definitions/SinglePropertyFilterComparisonOperator", + "title": "field 10 in case we add more entities to query" + } + }, + "description": "A single property to filter on." + }, + "datacatalogTag": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "Name of tag" + }, + "artifact_id": { + "type": "string", + "title": "The tagged artifact" + }, + "dataset": { + "$ref": "#/definitions/datacatalogDatasetID", + "title": "The Dataset that this tag belongs to" + } + }, + "description": "Tag message that is unique to a Dataset. It is associated to a single artifact and\ncan be retrieved by name later." + }, + "datacatalogTagPropertyFilter": { + "type": "object", + "properties": { + "tag_name": { + "type": "string" + } + }, + "title": "Tag properties we can filter by" + }, + "datacatalogUpdateArtifactResponse": { + "type": "object", + "properties": { + "artifact_id": { + "type": "string", + "title": "The unique ID of the artifact updated" + } + }, + "description": "Response message for updating an Artifact." + }, + "flyteidlcoreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json new file mode 100644 index 0000000000..21a3bf24c4 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/event/cloudevents.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/event/cloudevents.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json new file mode 100644 index 0000000000..51e6479e80 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/event/event.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/event/event.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json new file mode 100644 index 0000000000..0da6756ab5 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/array_job.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/array_job.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json new file mode 100644 index 0000000000..861a1b650a --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/dask.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/dask.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json new file mode 100644 index 0000000000..77cadf68e6 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/common.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/kubeflow/common.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json new file mode 100644 index 0000000000..d08431ce72 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/mpi.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/kubeflow/mpi.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json new file mode 100644 index 0000000000..76b3b8c340 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/pytorch.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/kubeflow/pytorch.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json new file mode 100644 index 0000000000..bc41f3a307 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/kubeflow/tensorflow.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/kubeflow/tensorflow.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json new file mode 100644 index 0000000000..331054d5f6 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/mpi.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/mpi.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json new file mode 100644 index 0000000000..580f735248 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/presto.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/presto.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json new file mode 100644 index 0000000000..6cbb898683 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/pytorch.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/pytorch.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json new file mode 100644 index 0000000000..b8b32b82ff --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/qubole.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/qubole.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json new file mode 100644 index 0000000000..138914df1f --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/ray.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/ray.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json new file mode 100644 index 0000000000..fc06645ac5 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/spark.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/spark.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json new file mode 100644 index 0000000000..86b93506ea --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/tensorflow.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/tensorflow.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json new file mode 100644 index 0000000000..96a105c1f1 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/plugins/waitable.swagger.json @@ -0,0 +1,46 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/plugins/waitable.proto", + "version": "version not set" + }, + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go new file mode 100644 index 0000000000..38a2f65f31 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.pb.gw.go @@ -0,0 +1,8691 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/admin.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + extAdmin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + extCore "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" + extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 8, 9, 10, 11, 12, 2, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 2, 11, 2, 13, 3, 4, 5, 6}} +) + +func request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTaskIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} +) + +func request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTaskIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListTaskIds(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTasks_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListTasks(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTasks_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} +) + +func request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListTasks(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateWorkflow(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 8, 9, 10, 11, 12, 2, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 2, 11, 2, 13, 3, 4, 5, 6}} +) + +func request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflow_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflow_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetWorkflow(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflowIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} +) + +func request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflowIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflowIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflowIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListWorkflowIds(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListWorkflows(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListWorkflows_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} +) + +func request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListWorkflows(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.LaunchPlanCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.LaunchPlanCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateLaunchPlan(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 8, 9, 10, 11, 12, 2, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 2, 11, 2, 13, 3, 4, 5, 6}} +) + +func request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetLaunchPlan(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetActiveLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_GetActiveLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ActiveLaunchPlanRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetActiveLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetActiveLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetActiveLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ActiveLaunchPlanRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetActiveLaunchPlan_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetActiveLaunchPlan(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListActiveLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} +) + +func request_AdminService_ListActiveLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ActiveLaunchPlanListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListActiveLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListActiveLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListActiveLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ActiveLaunchPlanListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListActiveLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListActiveLaunchPlans(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlanIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} +) + +func request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlanIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlanIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityIdentifierListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlanIds_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListLaunchPlanIds(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListLaunchPlans(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListLaunchPlans_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} +) + +func request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListLaunchPlans(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.LaunchPlanUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + msg, err := client.UpdateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.LaunchPlanUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + msg, err := server.UpdateLaunchPlan(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionCreateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateExecution(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionRelaunchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RelaunchExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionRelaunchRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RelaunchExecution(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_RecoverExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionRecoverRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RecoverExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_RecoverExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionRecoverRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RecoverExecution(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetExecution(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.UpdateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := server.UpdateExecution(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetExecutionData(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 4, 5, 6, 2, 0, 4, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 5, 2, 7, 3, 4}} +) + +func request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ResourceListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListExecutions(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionTerminateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.TerminateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ExecutionTerminateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := server.TerminateExecution(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNodeExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} +) + +func request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNodeExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetNodeExecution(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetDynamicNodeWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} +) + +func request_AdminService_GetDynamicNodeWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetDynamicNodeWorkflowRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDynamicNodeWorkflow_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetDynamicNodeWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetDynamicNodeWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetDynamicNodeWorkflowRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDynamicNodeWorkflow_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetDynamicNodeWorkflow(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNodeExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNodeExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListNodeExecutions(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNodeExecutionsForTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "nodeId": 7, "task_id": 8, "version": 9, "retry_attempt": 10, "retryAttempt": 11}, Base: []int{1, 25, 1, 4, 26, 28, 30, 1, 31, 9, 32, 10, 33, 0, 3, 0, 15, 13, 7, 0, 15, 10, 0, 21, 13, 0, 23, 16, 0, 25, 19, 0, 24, 22, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 1, 1, 4, 1, 2, 1, 10, 1, 8, 12, 15, 2, 17, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30, 31, 2, 33, 34, 2, 36, 5, 5, 6, 6, 7, 7, 9, 11, 13}} +) + +func request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionForTaskListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) + } + + val, ok = pathParams["task_execution_id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) + } + + val, ok = pathParams["task_execution_id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) + } + + val, ok = pathParams["task_execution_id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) + } + + val, ok = pathParams["task_execution_id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) + } + + val, ok = pathParams["task_execution_id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutionsForTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNodeExecutionsForTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionForTaskListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["task_execution_id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) + } + + val, ok = pathParams["task_execution_id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) + } + + val, ok = pathParams["task_execution_id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) + } + + val, ok = pathParams["task_execution_id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) + } + + val, ok = pathParams["task_execution_id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) + } + + val, ok = pathParams["task_execution_id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutionsForTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListNodeExecutionsForTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNodeExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} +) + +func request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNodeExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) + } + + val, ok = pathParams["id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) + } + + val, ok = pathParams["id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) + } + + val, ok = pathParams["id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetNodeExecutionData(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectRegisterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.RegisterProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectRegisterRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.RegisterProject(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.Project + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := client.UpdateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.Project + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") + } + + protoReq.Id, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) + } + + msg, err := server.UpdateProject(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectListRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListProjects_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectListRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListProjects_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListProjects(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionEventRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateWorkflowEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionEventRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateWorkflowEvent(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionEventRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateNodeEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NodeExecutionEventRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateNodeEvent(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionEventRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateTaskEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionEventRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateTaskEvent(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTaskExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "nodeId": 7, "task_id": 8, "version": 9, "retry_attempt": 10, "retryAttempt": 11}, Base: []int{1, 25, 1, 4, 26, 28, 30, 1, 31, 9, 32, 10, 33, 0, 3, 0, 15, 13, 7, 0, 15, 10, 0, 21, 13, 0, 23, 16, 0, 25, 19, 0, 24, 22, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 1, 1, 4, 1, 2, 1, 10, 1, 8, 12, 15, 2, 17, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30, 31, 2, 33, 34, 2, 36, 5, 5, 6, 6, 7, 7, 9, 11, 13}} +) + +func request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecution_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTaskExecution(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListTaskExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"node_execution_id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5, "nodeId": 6}, Base: []int{1, 10, 4, 10, 11, 12, 1, 13, 0, 7, 4, 0, 9, 7, 0, 9, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 3, 1, 7, 2, 10, 11, 2, 13, 14, 2, 16, 4, 5, 6, 8}} +) + +func request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListTaskExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_id", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskExecutions_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListTaskExecutions(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetTaskExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "nodeId": 7, "task_id": 8, "version": 9, "retry_attempt": 10, "retryAttempt": 11}, Base: []int{1, 25, 1, 4, 26, 28, 30, 1, 31, 9, 32, 10, 33, 0, 3, 0, 15, 13, 7, 0, 15, 10, 0, 21, 13, 0, 23, 16, 0, 25, 19, 0, 24, 22, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 3, 1, 1, 1, 4, 1, 2, 1, 10, 1, 8, 12, 15, 2, 17, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30, 31, 2, 33, 34, 2, 36, 5, 5, 6, 6, 7, 7, 9, 11, 13}} +) + +func request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.TaskExecutionGetDataRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.node_execution_id.execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) + } + + val, ok = pathParams["id.node_execution_id.execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) + } + + val, ok = pathParams["id.node_execution_id.node_id"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) + } + + val, ok = pathParams["id.task_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) + } + + val, ok = pathParams["id.task_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) + } + + val, ok = pathParams["id.task_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) + } + + val, ok = pathParams["id.task_id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) + } + + val, ok = pathParams["id.retry_attempt"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecutionData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTaskExecutionData(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectDomainAttributesUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + val, ok = pathParams["attributes.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) + } + + msg, err := client.UpdateProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectDomainAttributesUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + val, ok = pathParams["attributes.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) + } + + msg, err := server.UpdateProjectDomainAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetProjectDomainAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 2, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 2, 2, 3, 3}} +) + +func request_AdminService_GetProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectDomainAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectDomainAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectDomainAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectDomainAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetProjectDomainAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_DeleteProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectDomainAttributesDeleteRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + msg, err := client.DeleteProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_DeleteProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectDomainAttributesDeleteRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + msg, err := server.DeleteProjectDomainAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectAttributesUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + msg, err := client.UpdateProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectAttributesUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + msg, err := server.UpdateProjectAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetProjectAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0}, Base: []int{1, 2, 0, 0}, Check: []int{0, 1, 2, 2}} +) + +func request_AdminService_GetProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetProjectAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_DeleteProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectAttributesDeleteRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + msg, err := client.DeleteProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_DeleteProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ProjectAttributesDeleteRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + msg, err := server.DeleteProjectAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowAttributesUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + val, ok = pathParams["attributes.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) + } + + val, ok = pathParams["attributes.workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.workflow") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.workflow", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.workflow", err) + } + + msg, err := client.UpdateWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowAttributesUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["attributes.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) + } + + val, ok = pathParams["attributes.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) + } + + val, ok = pathParams["attributes.workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.workflow") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "attributes.workflow", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.workflow", err) + } + + msg, err := server.UpdateWorkflowAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetWorkflowAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1, "workflow": 2}, Base: []int{1, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 2, 3, 3, 4, 4}} +) + +func request_AdminService_GetWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + val, ok = pathParams["workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") + } + + protoReq.Workflow, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflowAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowAttributesGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + val, ok = pathParams["workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") + } + + protoReq.Workflow, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflowAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetWorkflowAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_DeleteWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowAttributesDeleteRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + val, ok = pathParams["workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") + } + + protoReq.Workflow, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) + } + + msg, err := client.DeleteWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_DeleteWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowAttributesDeleteRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + val, ok = pathParams["workflow"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") + } + + protoReq.Workflow, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) + } + + msg, err := server.DeleteWorkflowAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListMatchableAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_AdminService_ListMatchableAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ListMatchableAttributesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListMatchableAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListMatchableAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListMatchableAttributes_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ListMatchableAttributesRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListMatchableAttributes_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListMatchableAttributes(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListNamedEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "project": 2, "domain": 3}, Base: []int{1, 1, 2, 4, 6, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 3, 4, 4, 5, 5}} +) + +func request_AdminService_ListNamedEntities_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNamedEntities_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListNamedEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListNamedEntities_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") + } + + protoReq.Project, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) + } + + val, ok = pathParams["domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") + } + + protoReq.Domain, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNamedEntities_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListNamedEntities(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetNamedEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "id": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 1, 2, 8, 9, 10, 11, 0, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 10, 4, 12, 4, 14, 5, 6, 7}} +) + +func request_AdminService_GetNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNamedEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNamedEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetNamedEntity(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_UpdateNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := client.UpdateNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_UpdateNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.NamedEntityUpdateRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + msg, err := server.UpdateNamedEntity(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AdminService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetVersionRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetVersionRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetVersion(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetDescriptionEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "resource_type": 1, "resourceType": 2, "project": 3, "domain": 4, "name": 5, "version": 6}, Base: []int{1, 9, 1, 10, 11, 12, 13, 14, 0, 3, 0, 5, 0, 7, 0, 9, 0, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 1, 1, 1, 1, 1, 3, 2, 10, 2, 12, 2, 14, 2, 16, 4, 5, 6, 7, 8}} +) + +func request_AdminService_GetDescriptionEntity_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.resource_type") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.resource_type", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.resource_type", err) + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "could not parse path as enum value, parameter: %s, error: %v", "id.resource_type", err) + } + + protoReq.Id.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDescriptionEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetDescriptionEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetDescriptionEntity_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ObjectGetRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.resource_type") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.resource_type", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.resource_type", err) + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "could not parse path as enum value, parameter: %s, error: %v", "id.resource_type", err) + } + + protoReq.Id.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + val, ok = pathParams["id.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDescriptionEntity_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetDescriptionEntity(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListDescriptionEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "id": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 1, 2, 8, 9, 10, 11, 0, 0, 4, 0, 6, 0, 8, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 10, 4, 12, 4, 14, 5, 6, 7}} +) + +func request_AdminService_ListDescriptionEntities_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DescriptionEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListDescriptionEntities_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DescriptionEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListDescriptionEntities(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_ListDescriptionEntities_1 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "resourceType": 1, "id": 2, "project": 3, "domain": 4}, Base: []int{1, 1, 2, 6, 7, 8, 0, 0, 4, 0, 6, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 3, 4, 9, 4, 11, 5, 6}} +) + +func request_AdminService_ListDescriptionEntities_1(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DescriptionEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_ListDescriptionEntities_1(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DescriptionEntityListRequest + var metadata runtime.ServerMetadata + + var ( + val string + e int32 + ok bool + err error + _ = err + ) + + val, ok = pathParams["resource_type"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") + } + + e, err = runtime.Enum(val, extCore.ResourceType_value) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) + } + + protoReq.ResourceType = extCore.ResourceType(e) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_1); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListDescriptionEntities(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AdminService_GetExecutionMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_AdminService_GetExecutionMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionGetMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetExecutionMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AdminService_GetExecutionMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.WorkflowExecutionGetMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) + } + + val, ok = pathParams["id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) + } + + val, ok = pathParams["id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetExecutionMetrics(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterAdminServiceHandlerServer registers the http handlers for service AdminService to "mux". +// UnaryRPC :call AdminServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdminServiceHandlerFromEndpoint instead. +func RegisterAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AdminServiceServer) error { + + mux.Handle("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/tasks")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTask", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskIds", runtime.WithHTTPPathPattern("/api/v1/task_ids/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListTaskIds_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTaskIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListTasks_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListTasks_1(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflowIds", runtime.WithHTTPPathPattern("/api/v1/workflow_ids/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListWorkflowIds_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflowIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListWorkflows_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListWorkflows_1(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetActiveLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetActiveLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetActiveLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetActiveLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListActiveLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListActiveLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListActiveLaunchPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListActiveLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlanIds", runtime.WithHTTPPathPattern("/api/v1/launch_plan_ids/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListLaunchPlanIds_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlanIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListLaunchPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListLaunchPlans_1(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateLaunchPlan_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateExecution", runtime.WithHTTPPathPattern("/api/v1/executions")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/RelaunchExecution", runtime.WithHTTPPathPattern("/api/v1/executions/relaunch")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_RelaunchExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RelaunchExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RecoverExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/RecoverExecution", runtime.WithHTTPPathPattern("/api/v1/executions/recover")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_RecoverExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RecoverExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetExecutionData_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListExecutions", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListExecutions_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/TerminateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_TerminateExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_TerminateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecution", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetNodeExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNodeExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetDynamicNodeWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDynamicNodeWorkflow", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutions", runtime.WithHTTPPathPattern("/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListNodeExecutions_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNodeExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", runtime.WithHTTPPathPattern("/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListNodeExecutionsForTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNodeExecutionsForTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetNodeExecutionData_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNodeExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/RegisterProject", runtime.WithHTTPPathPattern("/api/v1/projects")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_RegisterProject_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RegisterProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProject", runtime.WithHTTPPathPattern("/api/v1/projects/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateProject_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListProjects", runtime.WithHTTPPathPattern("/api/v1/projects")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListProjects_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflowEvent", runtime.WithHTTPPathPattern("/api/v1/events/workflows")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateWorkflowEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateWorkflowEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateNodeEvent", runtime.WithHTTPPathPattern("/api/v1/events/nodes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateNodeEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateNodeEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTaskEvent", runtime.WithHTTPPathPattern("/api/v1/events/tasks")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_CreateTaskEvent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateTaskEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecution", runtime.WithHTTPPathPattern("/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetTaskExecution_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTaskExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskExecutions", runtime.WithHTTPPathPattern("/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListTaskExecutions_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTaskExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetTaskExecutionData_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTaskExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetProjectDomainAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{attributes.project}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateProjectAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetProjectAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_DeleteProjectAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateWorkflowAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetWorkflowAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_DeleteWorkflowAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListMatchableAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListMatchableAttributes", runtime.WithHTTPPathPattern("/api/v1/matchable_attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListMatchableAttributes_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListMatchableAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNamedEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNamedEntities", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListNamedEntities_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNamedEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetNamedEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_UpdateNamedEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetVersion_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetDescriptionEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDescriptionEntity", runtime.WithHTTPPathPattern("/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetDescriptionEntity_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetDescriptionEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListDescriptionEntities_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListDescriptionEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_ListDescriptionEntities_1(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListDescriptionEntities_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionMetrics", runtime.WithHTTPPathPattern("/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AdminService_GetExecutionMetrics_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecutionMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAdminServiceHandler(ctx, mux, conn) +} + +// RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAdminServiceHandlerClient(ctx, mux, extService.NewAdminServiceClient(conn)) +} + +// RegisterAdminServiceHandlerClient registers the http handlers for service AdminService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AdminServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AdminServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.AdminServiceClient" to call the correct interceptors. +func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AdminServiceClient) error { + + mux.Handle("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/tasks")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTask", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskIds", runtime.WithHTTPPathPattern("/api/v1/task_ids/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTaskIds_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTaskIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTasks_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTasks", runtime.WithHTTPPathPattern("/api/v1/tasks/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTasks_1(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTasks_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflow", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflowIds", runtime.WithHTTPPathPattern("/api/v1/workflow_ids/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListWorkflowIds_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflowIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListWorkflows_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListWorkflows", runtime.WithHTTPPathPattern("/api/v1/workflows/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListWorkflows_1(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListWorkflows_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetActiveLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetActiveLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetActiveLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetActiveLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListActiveLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListActiveLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/active_launch_plans/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListActiveLaunchPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListActiveLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlanIds", runtime.WithHTTPPathPattern("/api/v1/launch_plan_ids/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListLaunchPlanIds_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlanIds_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListLaunchPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListLaunchPlans", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListLaunchPlans_1(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListLaunchPlans_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateLaunchPlan", runtime.WithHTTPPathPattern("/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateLaunchPlan_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateLaunchPlan_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateExecution", runtime.WithHTTPPathPattern("/api/v1/executions")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/RelaunchExecution", runtime.WithHTTPPathPattern("/api/v1/executions/relaunch")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_RelaunchExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RelaunchExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RecoverExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/RecoverExecution", runtime.WithHTTPPathPattern("/api/v1/executions/recover")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_RecoverExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RecoverExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetExecutionData_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListExecutions", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListExecutions_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/TerminateExecution", runtime.WithHTTPPathPattern("/api/v1/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_TerminateExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_TerminateExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecution", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetNodeExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNodeExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetDynamicNodeWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDynamicNodeWorkflow", runtime.WithHTTPPathPattern("/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetDynamicNodeWorkflow_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutions", runtime.WithHTTPPathPattern("/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListNodeExecutions_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNodeExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", runtime.WithHTTPPathPattern("/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListNodeExecutionsForTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNodeExecutionsForTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNodeExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetNodeExecutionData_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNodeExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/RegisterProject", runtime.WithHTTPPathPattern("/api/v1/projects")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_RegisterProject_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_RegisterProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProject", runtime.WithHTTPPathPattern("/api/v1/projects/{id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateProject_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateProject_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListProjects", runtime.WithHTTPPathPattern("/api/v1/projects")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListProjects_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListProjects_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateWorkflowEvent", runtime.WithHTTPPathPattern("/api/v1/events/workflows")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateWorkflowEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateWorkflowEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateNodeEvent", runtime.WithHTTPPathPattern("/api/v1/events/nodes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateNodeEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateNodeEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/CreateTaskEvent", runtime.WithHTTPPathPattern("/api/v1/events/tasks")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_CreateTaskEvent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_CreateTaskEvent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecution", runtime.WithHTTPPathPattern("/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetTaskExecution_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTaskExecution_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListTaskExecutions", runtime.WithHTTPPathPattern("/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListTaskExecutions_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListTaskExecutions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetTaskExecutionData", runtime.WithHTTPPathPattern("/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetTaskExecutionData_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetTaskExecutionData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetProjectDomainAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", runtime.WithHTTPPathPattern("/api/v1/project_domain_attributes/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteProjectDomainAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{attributes.project}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateProjectAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetProjectAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteProjectAttributes", runtime.WithHTTPPathPattern("/api/v1/project_attributes/{project}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_DeleteProjectAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteProjectAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateWorkflowAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetWorkflowAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AdminService_DeleteWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/DeleteWorkflowAttributes", runtime.WithHTTPPathPattern("/api/v1/workflow_attributes/{project}/{domain}/{workflow}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_DeleteWorkflowAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_DeleteWorkflowAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListMatchableAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListMatchableAttributes", runtime.WithHTTPPathPattern("/api/v1/matchable_attributes")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListMatchableAttributes_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListMatchableAttributes_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListNamedEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListNamedEntities", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{project}/{domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListNamedEntities_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListNamedEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetNamedEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_AdminService_UpdateNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/UpdateNamedEntity", runtime.WithHTTPPathPattern("/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_UpdateNamedEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_UpdateNamedEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetVersion", runtime.WithHTTPPathPattern("/api/v1/version")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetVersion_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetVersion_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetDescriptionEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetDescriptionEntity", runtime.WithHTTPPathPattern("/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetDescriptionEntity_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetDescriptionEntity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListDescriptionEntities_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListDescriptionEntities_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/ListDescriptionEntities", runtime.WithHTTPPathPattern("/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_ListDescriptionEntities_1(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_ListDescriptionEntities_1(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AdminService_GetExecutionMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AdminService/GetExecutionMetrics", runtime.WithHTTPPathPattern("/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AdminService_GetExecutionMetrics_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AdminService_GetExecutionMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AdminService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "tasks"}, "")) + + pattern_AdminService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListTaskIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "task_ids", "project", "domain"}, "")) + + pattern_AdminService_ListTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListTasks_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "tasks", "id.project", "id.domain"}, "")) + + pattern_AdminService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "workflows"}, "")) + + pattern_AdminService_GetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListWorkflowIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow_ids", "project", "domain"}, "")) + + pattern_AdminService_ListWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListWorkflows_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "id.project", "id.domain"}, "")) + + pattern_AdminService_CreateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "launch_plans"}, "")) + + pattern_AdminService_GetLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_GetActiveLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "active_launch_plans", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListActiveLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "active_launch_plans", "project", "domain"}, "")) + + pattern_AdminService_ListLaunchPlanIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plan_ids", "project", "domain"}, "")) + + pattern_AdminService_ListLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListLaunchPlans_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plans", "id.project", "id.domain"}, "")) + + pattern_AdminService_UpdateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_CreateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "executions"}, "")) + + pattern_AdminService_RelaunchExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "relaunch"}, "")) + + pattern_AdminService_RecoverExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "recover"}, "")) + + pattern_AdminService_GetExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_UpdateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "data", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "executions", "id.project", "id.domain"}, "")) + + pattern_AdminService_TerminateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetNodeExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) + + pattern_AdminService_GetDynamicNodeWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 2, 7}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id", "dynamic_workflow"}, "")) + + pattern_AdminService_ListNodeExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "node_executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) + + pattern_AdminService_ListNodeExecutionsForTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "children", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) + + pattern_AdminService_GetNodeExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "data", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) + + pattern_AdminService_RegisterProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) + + pattern_AdminService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "id"}, "")) + + pattern_AdminService_ListProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) + + pattern_AdminService_CreateWorkflowEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "workflows"}, "")) + + pattern_AdminService_CreateNodeEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "nodes"}, "")) + + pattern_AdminService_CreateTaskEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "tasks"}, "")) + + pattern_AdminService_GetTaskExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11}, []string{"api", "v1", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) + + pattern_AdminService_ListTaskExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "task_executions", "node_execution_id.execution_id.project", "node_execution_id.execution_id.domain", "node_execution_id.execution_id.name", "node_execution_id.node_id"}, "")) + + pattern_AdminService_GetTaskExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "data", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) + + pattern_AdminService_UpdateProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "attributes.project", "attributes.domain"}, "")) + + pattern_AdminService_GetProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) + + pattern_AdminService_DeleteProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) + + pattern_AdminService_UpdateProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "attributes.project"}, "")) + + pattern_AdminService_GetProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) + + pattern_AdminService_DeleteProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) + + pattern_AdminService_UpdateWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "attributes.project", "attributes.domain", "attributes.workflow"}, "")) + + pattern_AdminService_GetWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) + + pattern_AdminService_DeleteWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) + + pattern_AdminService_ListMatchableAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "matchable_attributes"}, "")) + + pattern_AdminService_ListNamedEntities_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "named_entities", "resource_type", "project", "domain"}, "")) + + pattern_AdminService_GetNamedEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_UpdateNamedEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) + + pattern_AdminService_GetDescriptionEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "description_entities", "id.resource_type", "id.project", "id.domain", "id.name", "id.version"}, "")) + + pattern_AdminService_ListDescriptionEntities_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) + + pattern_AdminService_ListDescriptionEntities_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain"}, "")) + + pattern_AdminService_GetExecutionMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "metrics", "executions", "id.project", "id.domain", "id.name"}, "")) +) + +var ( + forward_AdminService_CreateTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTaskIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTasks_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTasks_1 = runtime.ForwardResponseMessage + + forward_AdminService_CreateWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflowIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflows_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListWorkflows_1 = runtime.ForwardResponseMessage + + forward_AdminService_CreateLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetActiveLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListActiveLaunchPlans_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlanIds_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlans_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListLaunchPlans_1 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateLaunchPlan_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_RelaunchExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_RecoverExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_TerminateExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNodeExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetDynamicNodeWorkflow_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNodeExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNodeExecutionsForTask_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNodeExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_RegisterProject_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateProject_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListProjects_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateWorkflowEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateNodeEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_CreateTaskEvent_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTaskExecution_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListTaskExecutions_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetTaskExecutionData_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateProjectDomainAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetProjectDomainAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_DeleteProjectDomainAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateProjectAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetProjectAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_DeleteProjectAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateWorkflowAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetWorkflowAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_DeleteWorkflowAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListMatchableAttributes_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListNamedEntities_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetNamedEntity_0 = runtime.ForwardResponseMessage + + forward_AdminService_UpdateNamedEntity_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetVersion_0 = runtime.ForwardResponseMessage + + forward_AdminService_GetDescriptionEntity_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListDescriptionEntities_0 = runtime.ForwardResponseMessage + + forward_AdminService_ListDescriptionEntities_1 = runtime.ForwardResponseMessage + + forward_AdminService_GetExecutionMetrics_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json new file mode 100644 index 0000000000..73dbd3b8dc --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/admin.swagger.json @@ -0,0 +1,8976 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/admin.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "AdminService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Retrieve the active launch plan version specified by input request filters.", + "operationId": "AdminService_GetActiveLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/active_launch_plans/{project}/{domain}": { + "get": { + "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Fetch the active launch plan versions specified by input request filters.", + "operationId": "AdminService_ListActiveLaunchPlans", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "AdminService_ListNodeExecutionsForTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_execution_id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "task_execution_id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "task_execution_id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_GetExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_GetNodeExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Retrieve input and output data from an existing task execution.", + "operationId": "AdminService_GetTaskExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", + "description": "Retrieve an existing description entity description.", + "operationId": "AdminService_GetDescriptionEntity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDescriptionEntity" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "description": "Fetch existing description entity definitions matching input filters.", + "operationId": "AdminService_ListDescriptionEntities2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDescriptionEntityList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "description": "Fetch existing description entity definitions matching input filters.", + "operationId": "AdminService_ListDescriptionEntities", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDescriptionEntityList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/nodes": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", + "description": "Create a node execution event recording a phase transition.", + "operationId": "AdminService_CreateNodeEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to send a notification that a node execution event has occurred.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/tasks": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", + "description": "Create a task execution event recording a phase transition.", + "operationId": "AdminService_CreateTaskEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to send a notification that a task execution event has occurred.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/workflows": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", + "description": "Create a workflow execution event recording a phase transition.", + "operationId": "AdminService_CreateWorkflowEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to send a notification that a workflow execution event has occurred.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions": { + "post": { + "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", + "description": "Create a workflow execution.", + "operationId": "AdminService_CreateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to launch an execution with the given project, domain and optionally-assigned name.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/recover": { + "post": { + "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", + "description": "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.", + "operationId": "AdminService_RecoverExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to recover the referenced execution.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionRecoverRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/relaunch": { + "post": { + "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", + "description": "Relaunch a workflow execution.", + "operationId": "AdminService_RelaunchExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to relaunch the referenced execution.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecutionRelaunchRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_ListExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", + "description": "Retrieve an existing workflow execution.", + "operationId": "AdminService_GetExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecution" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_TerminateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionTerminateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceTerminateExecutionBody" + } + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_UpdateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateExecutionBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plan_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", + "description": "Fetch existing launch plan definition identifiers matching input filters.", + "operationId": "AdminService_ListLaunchPlanIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", + "description": "Create and register a launch plan definition.", + "operationId": "AdminService_CreateLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "description": "Fetch existing launch plan definitions matching input filters.", + "operationId": "AdminService_ListLaunchPlans2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "description": "Fetch existing launch plan definitions matching input filters.", + "operationId": "AdminService_ListLaunchPlans", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", + "description": "Retrieve an existing launch plan definition.", + "operationId": "AdminService_GetLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.", + "operationId": "AdminService_UpdateLaunchPlan", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateLaunchPlanBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/matchable_attributes": { + "get": { + "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", + "description": "Retrieve a list of MatchableAttributesConfiguration objects.", + "operationId": "AdminService_ListMatchableAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminListMatchableAttributesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + }, + { + "name": "org", + "description": "Optional, org filter applied to list project requests.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", + "description": "Retrieve metrics from an existing workflow execution.", + "operationId": "AdminService_GetExecutionMetrics", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "depth", + "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "description": "Retrieve a NamedEntity object.", + "operationId": "AdminService_GetNamedEntity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntity" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "description": "Update the fields associated with a NamedEntity", + "operationId": "AdminService_UpdateNamedEntity", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Resource type of the metadata to update\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateNamedEntityBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/named_entities/{resource_type}/{project}/{domain}": { + "get": { + "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", + "description": "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain.", + "operationId": "AdminService_ListNamedEntities", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "resource_type", + "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_GetNodeExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/flyteidladminNodeExecution" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", + "operationId": "AdminService_GetDynamicNodeWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_ListNodeExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "workflow_execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "unique_parent_id", + "description": "Unique identifier of the parent node in the execution\n+optional", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_attributes/{attributes.project}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", + "description": "Update the customized resource attributes associated with a project", + "operationId": "AdminService_UpdateProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_attributes/{project}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Retrieve the customized resource attributes associated with a project", + "operationId": "AdminService_GetProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesGetResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + }, + { + "name": "org", + "description": "Optional, org key applied to the project.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Delete the customized resource attributes associated with a project", + "operationId": "AdminService_DeleteProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesDeleteResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceDeleteProjectAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Update the customized resource attributes associated with a project-domain combination", + "operationId": "AdminService_UpdateProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectDomainAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_domain_attributes/{project}/{domain}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Retrieve the customized resource attributes associated with a project-domain combination", + "operationId": "AdminService_GetProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + }, + { + "name": "org", + "description": "Optional, org key applied to the attributes.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Delete the customized resource attributes associated with a project-domain combination", + "operationId": "AdminService_DeleteProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceDeleteProjectDomainAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/projects": { + "get": { + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", + "description": "Fetch registered projects.", + "operationId": "AdminService_ListProjects", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjects" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "limit", + "description": "Indicates the number of projects to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "org", + "description": "Optional, org filter applied to list project requests.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "post": { + "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", + "operationId": "AdminService_RegisterProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectRegisterResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminProjectRegisterRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/projects/{id}": { + "put": { + "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", + "description": "Update a project.", + "operationId": "AdminService_UpdateProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id", + "description": "Globally unique project name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Retrieve an existing task execution.", + "operationId": "AdminService_GetTaskExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/flyteidladminTaskExecution" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { + "get": { + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Fetch existing task executions matching input filters.", + "operationId": "AdminService_ListTaskExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/task_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", + "description": "Fetch existing task definition identifiers matching input filters.", + "operationId": "AdminService_ListTaskIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", + "description": "Create and register a task definition.", + "operationId": "AdminService_CreateTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/flyteidladminTaskCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/flyteidladminTaskCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "description": "Fetch existing task definitions matching input filters.", + "operationId": "AdminService_ListTasks2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "description": "Fetch existing task definitions matching input filters.", + "operationId": "AdminService_ListTasks", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", + "description": "Retrieve an existing task definition.", + "operationId": "AdminService_GetTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTask" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/version": { + "get": { + "description": "Retrieve the Version (including the Build information) for FlyteAdmin service", + "operationId": "AdminService_GetVersion", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetVersionResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Update the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_UpdateWorkflowAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "attributes.workflow", + "description": "Workflow name for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateWorkflowAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Retrieve the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_GetWorkflowAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesGetResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" + }, + { + "name": "org", + "description": "Optional, org key applied to the attributes.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Delete the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_DeleteWorkflowAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceDeleteWorkflowAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflow_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", + "operationId": "AdminService_ListWorkflowIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", + "description": "Create and register a workflow definition.", + "operationId": "AdminService_CreateWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", + "description": "Fetch existing workflow definitions matching input filters.", + "operationId": "AdminService_ListWorkflows2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", + "description": "Fetch existing workflow definitions matching input filters.", + "operationId": "AdminService_ListWorkflows", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", + "description": "Retrieve an existing workflow definition.", + "operationId": "AdminService_GetWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflow" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + } + }, + "definitions": { + "AdminServiceDeleteProjectAttributesBody": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/adminMatchableResource", + "title": "Which type of matchable attributes to delete.\n+required" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the project." + } + }, + "title": "Request to delete a set matchable project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "AdminServiceDeleteProjectDomainAttributesBody": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/adminMatchableResource", + "title": "Which type of matchable attributes to delete.\n+required" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the attributes." + } + }, + "title": "Request to delete a set matchable project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "AdminServiceDeleteWorkflowAttributesBody": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/adminMatchableResource", + "title": "Which type of matchable attributes to delete.\n+required" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the attributes." + } + }, + "title": "Request to delete a set matchable workflow attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "AdminServiceTerminateExecutionBody": { + "type": "object", + "properties": { + "id": { + "type": "object", + "properties": { + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Uniquely identifies the individual workflow execution to be terminated.", + "title": "Uniquely identifies the individual workflow execution to be terminated." + }, + "cause": { + "type": "string", + "description": "Optional reason for aborting." + } + }, + "description": "Request to terminate an in-progress execution. This action is irreversible.\nIf an execution is already terminated, this request will simply be a no-op.\nThis request will fail if it references a non-existent execution.\nIf the request succeeds the phase \"ABORTED\" will be recorded for the termination\nwith the optional cause added to the output_result." + }, + "AdminServiceUpdateExecutionBody": { + "type": "object", + "properties": { + "id": { + "type": "object", + "properties": { + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "title": "Identifier of the execution to update" + }, + "state": { + "$ref": "#/definitions/adminExecutionState", + "title": "State to set as the new value active/archive" + } + } + }, + "AdminServiceUpdateLaunchPlanBody": { + "type": "object", + "properties": { + "id": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Identifier of launch plan for which to change state.\n+required.", + "title": "Identifier of launch plan for which to change state.\n+required." + }, + "state": { + "$ref": "#/definitions/adminLaunchPlanState", + "description": "Desired state to apply to the launch plan.\n+required." + } + }, + "title": "Request to set the referenced launch plan state to the configured value.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" + }, + "AdminServiceUpdateNamedEntityBody": { + "type": "object", + "properties": { + "id": { + "type": "object", + "properties": { + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "title": "Identifier of the metadata to update\n+required" + }, + "metadata": { + "$ref": "#/definitions/adminNamedEntityMetadata", + "title": "Metadata object to set as the new value\n+required" + } + }, + "description": "Request to set the referenced named entity state to the configured value." + }, + "AdminServiceUpdateProjectAttributesBody": { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "properties": { + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the project." + } + }, + "title": "+required" + } + }, + "title": "Sets custom attributes for a project\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "AdminServiceUpdateProjectBody": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Display name." + }, + "domains": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminDomain" + } + }, + "description": { + "type": "string" + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Leverage Labels from flyteidl.admin.common.proto to\ntag projects with ownership information." + }, + "state": { + "$ref": "#/definitions/ProjectProjectState" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Top-level namespace used to classify different entities like workflows and executions." + }, + "AdminServiceUpdateProjectDomainAttributesBody": { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "properties": { + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the attributes." + } + }, + "title": "+required" + } + }, + "title": "Sets custom attributes for a project-domain combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "AdminServiceUpdateWorkflowAttributesBody": { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "properties": { + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the attributes." + } + }, + "title": "Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + } + }, + "title": "Sets custom attributes for a project, domain and workflow combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "ComparisonExpressionOperator": { + "type": "string", + "enum": [ + "EQ", + "NEQ", + "GT", + "GTE", + "LT", + "LTE" + ], + "default": "EQ", + "description": "- GT: Greater Than\n - LT: Less Than", + "title": "Binary Operator for each expression" + }, + "ConjunctionExpressionLogicalOperator": { + "type": "string", + "enum": [ + "AND", + "OR" + ], + "default": "AND", + "description": "- AND: Conjunction", + "title": "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation is not important as the operators are Commutative" + }, + "ConnectionSetIdList": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ContainerArchitecture": { + "type": "string", + "enum": [ + "UNKNOWN", + "AMD64", + "ARM64", + "ARM_V6", + "ARM_V7" + ], + "default": "UNKNOWN", + "description": "Architecture-type the container image supports." + }, + "DataLoadingConfigLiteralMapFormat": { + "type": "string", + "enum": [ + "JSON", + "YAML", + "PROTO" + ], + "default": "JSON", + "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", + "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" + }, + "ExecutionErrorErrorKind": { + "type": "string", + "enum": [ + "UNKNOWN", + "USER", + "SYSTEM" + ], + "default": "UNKNOWN", + "title": "Error type: System or User" + }, + "ExecutionMetadataExecutionMode": { + "type": "string", + "enum": [ + "MANUAL", + "SCHEDULED", + "SYSTEM", + "RELAUNCH", + "CHILD_WORKFLOW", + "RECOVERED" + ], + "default": "MANUAL", + "description": "The method by which this execution was launched.\n\n - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual.\n - SCHEDULED: A schedule triggered this execution launch.\n - SYSTEM: A system process was responsible for launching this execution rather an individual.\n - RELAUNCH: This execution was launched with identical inputs as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered by another execution.\n - RECOVERED: This execution was recovered from another execution." + }, + "IOStrategyDownloadMode": { + "type": "string", + "enum": [ + "DOWNLOAD_EAGER", + "DOWNLOAD_STREAM", + "DO_NOT_DOWNLOAD" + ], + "default": "DOWNLOAD_EAGER", + "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", + "title": "Mode to use for downloading" + }, + "IOStrategyUploadMode": { + "type": "string", + "enum": [ + "UPLOAD_ON_EXIT", + "UPLOAD_EAGER", + "DO_NOT_UPLOAD" + ], + "default": "UPLOAD_ON_EXIT", + "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", + "title": "Mode to use for uploading" + }, + "PluginOverrideMissingPluginBehavior": { + "type": "string", + "enum": [ + "FAIL", + "USE_DEFAULT" + ], + "default": "FAIL", + "description": " - FAIL: By default, if this plugin is not enabled for a Flyte deployment then execution will fail.\n - USE_DEFAULT: Uses the system-configured default implementation." + }, + "ProjectProjectState": { + "type": "string", + "enum": [ + "ACTIVE", + "ARCHIVED", + "SYSTEM_GENERATED" + ], + "default": "ACTIVE", + "description": "The state of the project is used to control its visibility in the UI and validity.\n\n - ACTIVE: By default, all projects are considered active.\n - ARCHIVED: Archived projects are no longer visible in the UI and no longer valid.\n - SYSTEM_GENERATED: System generated projects that aren't explicitly created or managed by a user." + }, + "QualityOfServiceTier": { + "type": "string", + "enum": [ + "UNDEFINED", + "HIGH", + "MEDIUM", + "LOW" + ], + "default": "UNDEFINED", + "description": " - UNDEFINED: Default: no quality of service specified." + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE", + "EPHEMERAL_STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SecretMountType": { + "type": "string", + "enum": [ + "ANY", + "ENV_VAR", + "FILE" + ], + "default": "ANY", + "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." + }, + "SortDirection": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING", + "description": " - DESCENDING: By default, fields are sorted in descending order." + }, + "SqlDialect": { + "type": "string", + "enum": [ + "UNDEFINED", + "ANSI", + "HIVE", + "OTHER" + ], + "default": "UNDEFINED", + "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "TaskExecutionMetadataInstanceClass": { + "type": "string", + "enum": [ + "DEFAULT", + "INTERRUPTIBLE" + ], + "default": "DEFAULT", + "description": "Includes the broad category of machine used for this specific task execution.\n\n - DEFAULT: The default instance class configured for the flyte application platform.\n - INTERRUPTIBLE: The instance class configured for interruptible tasks." + }, + "TaskLogMessageFormat": { + "type": "string", + "enum": [ + "UNKNOWN", + "CSV", + "JSON" + ], + "default": "UNKNOWN" + }, + "WorkflowMetadataOnFailurePolicy": { + "type": "string", + "enum": [ + "FAIL_IMMEDIATELY", + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" + ], + "default": "FAIL_IMMEDIATELY", + "description": "- FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically\nabort all currently running nodes and clean up resources before finally marking the workflow executions as\nfailed.\n - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will\nnot alter the dependencies of the execution graph so any node that depend on the failed node will not be run.\nOther nodes that will be executed to completion before cleaning up resources and marking the workflow\nexecution as failed.", + "title": "Failure Handling Strategy" + }, + "adminAbortMetadata": { + "type": "object", + "properties": { + "cause": { + "type": "string", + "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." + }, + "principal": { + "type": "string", + "title": "Identifies the entity (if any) responsible for terminating the execution" + } + }, + "description": "Specifies metadata around an aborted workflow execution." + }, + "adminAnnotations": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of custom annotations to be applied to the execution resource." + } + }, + "description": "Annotation values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge annotations defined at registration and execution time." + }, + "adminAuth": { + "type": "object", + "properties": { + "assumable_iam_role": { + "type": "string", + "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." + }, + "kubernetes_service_account": { + "type": "string", + "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." + } + }, + "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." + }, + "adminAuthRole": { + "type": "object", + "properties": { + "assumable_iam_role": { + "type": "string", + "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." + }, + "kubernetes_service_account": { + "type": "string", + "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." + } + }, + "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." + }, + "adminClusterAssignment": { + "type": "object", + "properties": { + "cluster_pool_name": { + "type": "string" + } + }, + "description": "Encapsulates specifications for routing an execution onto a specific cluster." + }, + "adminClusterResourceAttributes": { + "type": "object", + "properties": { + "attributes": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).\nMap keys are the *case-sensitive* names of variables in templatized resource files.\nMap values should be the custom values which get substituted during resource creation." + } + } + }, + "adminCronSchedule": { + "type": "object", + "properties": { + "schedule": { + "type": "string", + "title": "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\nAlso supports nonstandard predefined scheduling definitions\nas described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\nexcept @reboot" + }, + "offset": { + "type": "string", + "title": "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" + } + }, + "description": "Options for schedules to run according to a cron expression." + }, + "adminDescription": { + "type": "object", + "properties": { + "value": { + "type": "string", + "title": "long description - no more than 4KB" + }, + "uri": { + "type": "string", + "title": "if the description sizes exceed some threshold we can offload the entire\ndescription proto altogether to an external data store, like S3 rather than store inline in the db" + }, + "format": { + "$ref": "#/definitions/adminDescriptionFormat", + "title": "Format of the long description" + }, + "icon_link": { + "type": "string", + "title": "Optional link to an icon for the entity" + } + }, + "description": "Full user description with formatting preserved. This can be rendered\nby clients, such as the console or command line tools with in-tact\nformatting." + }, + "adminDescriptionEntity": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the description entity." + }, + "short_description": { + "type": "string", + "description": "One-liner overview of the entity." + }, + "long_description": { + "$ref": "#/definitions/adminDescription", + "description": "Full user description with formatting preserved." + }, + "source_code": { + "$ref": "#/definitions/adminSourceCode", + "description": "Optional link to source code used to define this entity." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "User-specified tags. These are arbitrary and can be used for searching\nfiltering and discovering tasks." + } + }, + "description": "DescriptionEntity contains detailed description for the task/workflow.\nDocumentation could provide insight into the algorithms, business use case, etc." + }, + "adminDescriptionEntityList": { + "type": "object", + "properties": { + "descriptionEntities": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminDescriptionEntity" + }, + "description": "A list of DescriptionEntities returned based on the request." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of DescriptionEntities returned from the admin.\nSee :ref:`ref_flyteidl.admin.DescriptionEntity` for more details" + }, + "adminDescriptionFormat": { + "type": "string", + "enum": [ + "DESCRIPTION_FORMAT_UNKNOWN", + "DESCRIPTION_FORMAT_MARKDOWN", + "DESCRIPTION_FORMAT_HTML", + "DESCRIPTION_FORMAT_RST" + ], + "default": "DESCRIPTION_FORMAT_UNKNOWN", + "description": "- DESCRIPTION_FORMAT_RST: python default documentation - comments is rst", + "title": "The format of the long description" + }, + "adminDomain": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Globally unique domain name." + }, + "name": { + "type": "string", + "description": "Display name." + } + }, + "description": "Namespace within a project commonly used to differentiate between different service instances.\ne.g. \"production\", \"development\", etc." + }, + "adminDynamicNodeWorkflowResponse": { + "type": "object", + "properties": { + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure" + } + } + }, + "adminEmailNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "title": "The list of email addresses recipients for this notification.\n+required" + } + }, + "description": "Defines an email notification specification." + }, + "adminEnvs": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Map of custom environment variables to be applied to the execution resource." + } + }, + "description": "Environment variable values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge environment variables defined at registration and execution time." + }, + "adminExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Unique identifier of the workflow execution." + }, + "spec": { + "$ref": "#/definitions/adminExecutionSpec", + "description": "User-provided configuration and inputs for launching the execution." + }, + "closure": { + "$ref": "#/definitions/adminExecutionClosure", + "description": "Execution results." + } + }, + "description": "A workflow execution represents an instantiated workflow, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes.\nUsed as a response object used in Get and List execution requests." + }, + "adminExecutionClosure": { + "type": "object", + "properties": { + "outputs": { + "$ref": "#/definitions/adminLiteralMapBlob", + "description": "Output URI in the case of a successful execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "description": "Error information in the case of a failed execution." + }, + "abort_cause": { + "type": "string", + "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." + }, + "abort_metadata": { + "$ref": "#/definitions/adminAbortMetadata", + "description": "In the case of a user-specified abort, this will pass along the user and their supplied cause." + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." + }, + "computed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Inputs computed and passed for execution.\ncomputed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan" + }, + "phase": { + "$ref": "#/definitions/coreWorkflowExecutionPhase", + "description": "Most recent recorded phase for the execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Reported time at which the execution was last updated." + }, + "notifications": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminNotification" + }, + "description": "The notification settings to use after merging the CreateExecutionRequest and the launch plan\nnotification settings. An execution launched with notifications will always prefer that definition\nto notifications defined statically in a launch plan." + }, + "workflow_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Identifies the workflow definition for this execution." + }, + "state_change_details": { + "$ref": "#/definitions/adminExecutionStateChangeDetails", + "title": "Provides the details of the last stage change" + } + }, + "title": "Encapsulates the results of the Execution" + }, + "adminExecutionClusterLabel": { + "type": "object", + "properties": { + "value": { + "type": "string", + "title": "Label value to determine where the execution will be run" + } + } + }, + "adminExecutionCreateRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Name of the project the execution belongs to.\n+required" + }, + "domain": { + "type": "string", + "title": "Name of the domain the execution belongs to.\nA domain can be considered as a subset within a specific project.\n+required" + }, + "name": { + "type": "string", + "title": "User provided value for the resource.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "spec": { + "$ref": "#/definitions/adminExecutionSpec", + "title": "Additional fields necessary to launch the execution.\n+optional" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Request to launch an execution with the given project, domain and optionally-assigned name." + }, + "adminExecutionCreateResponse": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "The unique identifier for a successfully created execution.\nIf the name was *not* specified in the create request, this identifier will include a generated name." + }, + "adminExecutionList": { + "type": "object", + "properties": { + "executions": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminExecution" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Used as a response for request to list executions.\nSee :ref:`ref_flyteidl.admin.Execution` for more details" + }, + "adminExecutionMetadata": { + "type": "object", + "properties": { + "mode": { + "$ref": "#/definitions/ExecutionMetadataExecutionMode" + }, + "principal": { + "type": "string", + "description": "Identifier of the entity that triggered this execution.\nFor systems using back-end authentication any value set here will be discarded in favor of the\nauthenticated user context." + }, + "nesting": { + "type": "integer", + "format": "int64", + "description": "Indicates the nestedness of this execution.\nIf a user launches a workflow execution, the default nesting is 0.\nIf this execution further launches a workflow (child workflow), the nesting level is incremented by 0 =\u003e 1\nGenerally, if workflow at nesting level k launches a workflow then the child workflow will have\nnesting = k + 1." + }, + "scheduled_at": { + "type": "string", + "format": "date-time", + "description": "For scheduled executions, the requested time for execution for this specific schedule invocation." + }, + "parent_node_execution": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "Which subworkflow node (if any) launched this execution" + }, + "reference_execution": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Optional, a reference workflow execution related to this execution.\nIn the case of a relaunch, this references the original workflow execution." + }, + "system_metadata": { + "$ref": "#/definitions/adminSystemMetadata", + "description": "Optional, platform-specific metadata about the execution.\nIn this the future this may be gated behind an ACL or some sort of authorization." + }, + "artifact_ids": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreArtifactID" + }, + "description": "Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping\nsince we don't have a structure to handle nested ones anyways." + } + }, + "description": "Represents attributes about an execution which are not required to launch the execution but are useful to record.\nThese attributes are assigned at launch time and do not change." + }, + "adminExecutionQueueAttributes": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Tags used for assigning execution queues for tasks defined within this project." + } + } + }, + "adminExecutionRecoverRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Identifier of the workflow execution to recover." + }, + "name": { + "type": "string", + "title": "User provided value for the recovered execution.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "metadata": { + "$ref": "#/definitions/adminExecutionMetadata", + "description": "Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution." + } + }, + "description": "Request to recover the referenced execution." + }, + "adminExecutionRelaunchRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "title": "Identifier of the workflow execution to relaunch.\n+required" + }, + "name": { + "type": "string", + "title": "User provided value for the relaunched execution.\nIf none is provided the system will generate a unique string.\n+optional" + }, + "overwrite_cache": { + "type": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + } + }, + "description": "Request to relaunch the referenced execution." + }, + "adminExecutionSpec": { + "type": "object", + "properties": { + "launch_plan": { + "$ref": "#/definitions/coreIdentifier", + "title": "Launch plan to be executed" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Input values to be passed for the execution" + }, + "metadata": { + "$ref": "#/definitions/adminExecutionMetadata", + "title": "Metadata for the execution" + }, + "notifications": { + "$ref": "#/definitions/adminNotificationList", + "description": "List of notifications based on Execution status transitions\nWhen this list is not empty it is used rather than any notifications defined in the referenced launch plan.\nWhen this list is empty, the notifications defined for the launch plan will be applied." + }, + "disable_all": { + "type": "boolean", + "description": "This should be set to true if all notifications are intended to be disabled for this execution." + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Labels to apply to the execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Annotations to apply to the execution resource." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "Optional: security context override to apply this execution." + }, + "auth_role": { + "$ref": "#/definitions/adminAuthRole", + "description": "Optional: auth override to apply this execution." + }, + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService", + "description": "Indicates the runtime priority of the execution." + }, + "max_parallelism": { + "type": "integer", + "format": "int32", + "description": "Controls the maximum number of task nodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." + }, + "raw_output_data_config": { + "$ref": "#/definitions/adminRawOutputDataConfig", + "title": "User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).\nThis should be a prefix like s3://my-bucket/my-data" + }, + "cluster_assignment": { + "$ref": "#/definitions/adminClusterAssignment", + "description": "Controls how to select an available cluster on which this execution should run." + }, + "interruptible": { + "type": "boolean", + "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." + }, + "overwrite_cache": { + "type": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + }, + "envs": { + "$ref": "#/definitions/adminEnvs", + "description": "Environment variables to be set for the execution." + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Tags to be set for the execution." + } + }, + "description": "An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime\nof an execution as it progresses across phase changes." + }, + "adminExecutionState": { + "type": "string", + "enum": [ + "EXECUTION_ACTIVE", + "EXECUTION_ARCHIVED" + ], + "default": "EXECUTION_ACTIVE", + "description": "The state of the execution is used to control its visibility in the UI/CLI.\n\n - EXECUTION_ACTIVE: By default, all executions are considered active.\n - EXECUTION_ARCHIVED: Archived executions are no longer visible in the UI." + }, + "adminExecutionStateChangeDetails": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/adminExecutionState", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the state changed." + }, + "principal": { + "type": "string", + "title": "Identifies the entity (if any) responsible for causing the state change of the execution" + } + } + }, + "adminExecutionTerminateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminExecutionUpdateResponse": { + "type": "object" + }, + "adminFixedRate": { + "type": "object", + "properties": { + "value": { + "type": "integer", + "format": "int64" + }, + "unit": { + "$ref": "#/definitions/adminFixedRateUnit" + } + }, + "description": "Option for schedules run at a certain frequency e.g. every 2 minutes." + }, + "adminFixedRateUnit": { + "type": "string", + "enum": [ + "MINUTE", + "HOUR", + "DAY" + ], + "default": "MINUTE", + "description": "Represents a frequency at which to run a schedule." + }, + "adminFlyteURLs": { + "type": "object", + "properties": { + "inputs": { + "type": "string" + }, + "outputs": { + "type": "string" + }, + "deck": { + "type": "string" + } + }, + "description": "These URLs are returned as part of node and task execution data requests." + }, + "adminGetVersionResponse": { + "type": "object", + "properties": { + "control_plane_version": { + "$ref": "#/definitions/adminVersion", + "title": "The control plane version information. FlyteAdmin and related components\nform the control plane of Flyte" + } + }, + "title": "Response for the GetVersion API" + }, + "adminLabels": { + "type": "object", + "properties": { + "values": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Map of custom labels to be applied to the execution resource." + } + }, + "description": "Label values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge labels defined at registration and execution time." + }, + "adminLaunchPlan": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Uniquely identifies a launch plan entity." + }, + "spec": { + "$ref": "#/definitions/adminLaunchPlanSpec", + "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." + }, + "closure": { + "$ref": "#/definitions/adminLaunchPlanClosure", + "description": "Values computed by the flyte platform after launch plan registration." + } + }, + "description": "A LaunchPlan provides the capability to templatize workflow executions.\nLaunch plans simplify associating one or more schedules, inputs and notifications with your workflows.\nLaunch plans can be shared and used to trigger executions with predefined inputs even when a workflow\ndefinition doesn't necessarily have a default value for said input." + }, + "adminLaunchPlanClosure": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/adminLaunchPlanState", + "description": "Indicate the Launch plan state." + }, + "expected_inputs": { + "$ref": "#/definitions/coreParameterMap", + "title": "Indicates the set of inputs expected when creating an execution with the Launch plan" + }, + "expected_outputs": { + "$ref": "#/definitions/coreVariableMap", + "title": "Indicates the set of outputs expected to be produced by creating an execution with the Launch plan" + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the launch plan was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the launch plan was last updated." + } + }, + "description": "Values computed by the flyte platform after launch plan registration.\nThese include expected_inputs required to be present in a CreateExecutionRequest\nto launch the reference workflow as well timestamp values associated with the launch plan." + }, + "adminLaunchPlanCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Uniquely identifies a launch plan entity." + }, + "spec": { + "$ref": "#/definitions/adminLaunchPlanSpec", + "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." + } + }, + "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan." + }, + "adminLaunchPlanCreateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminLaunchPlanList": { + "type": "object", + "properties": { + "launch_plans": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Response object for list launch plan requests.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" + }, + "adminLaunchPlanMetadata": { + "type": "object", + "properties": { + "schedule": { + "$ref": "#/definitions/adminSchedule", + "title": "Schedule to execute the Launch Plan" + }, + "notifications": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminNotification" + }, + "title": "List of notifications based on Execution status transitions" + }, + "launch_conditions": { + "$ref": "#/definitions/protobufAny", + "title": "Additional metadata for how to launch the launch plan" + } + }, + "description": "Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch\nthe reference workflow." + }, + "adminLaunchPlanSpec": { + "type": "object", + "properties": { + "workflow_id": { + "$ref": "#/definitions/coreIdentifier", + "title": "Reference to the Workflow template that the launch plan references" + }, + "entity_metadata": { + "$ref": "#/definitions/adminLaunchPlanMetadata", + "title": "Metadata for the Launch Plan" + }, + "default_inputs": { + "$ref": "#/definitions/coreParameterMap", + "description": "Input values to be passed for the execution.\nThese can be overridden when an execution is created with this launch plan." + }, + "fixed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Fixed, non-overridable inputs for the Launch Plan.\nThese can not be overridden when an execution is created with this launch plan." + }, + "role": { + "type": "string", + "title": "String to indicate the role to use to execute the workflow underneath" + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Custom labels to be applied to the execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Custom annotations to be applied to the execution resource." + }, + "auth": { + "$ref": "#/definitions/adminAuth", + "description": "Indicates the permission associated with workflow executions triggered with this launch plan." + }, + "auth_role": { + "$ref": "#/definitions/adminAuthRole" + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "title": "Indicates security context for permissions triggered with this launch plan" + }, + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService", + "description": "Indicates the runtime priority of the execution." + }, + "raw_output_data_config": { + "$ref": "#/definitions/adminRawOutputDataConfig", + "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." + }, + "max_parallelism": { + "type": "integer", + "format": "int32", + "description": "Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." + }, + "interruptible": { + "type": "boolean", + "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." + }, + "overwrite_cache": { + "type": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + }, + "envs": { + "$ref": "#/definitions/adminEnvs", + "description": "Environment variables to be set for the execution." + } + }, + "description": "User-provided launch plan definition and configuration values." + }, + "adminLaunchPlanState": { + "type": "string", + "enum": [ + "INACTIVE", + "ACTIVE" + ], + "default": "INACTIVE", + "description": "By default any launch plan regardless of state can be used to launch a workflow execution.\nHowever, at most one version of a launch plan\n(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be\nactive at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier\ngroup will be observed and trigger executions at a defined cadence." + }, + "adminLaunchPlanUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminListMatchableAttributesResponse": { + "type": "object", + "properties": { + "configurations": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminMatchableAttributesConfiguration" + } + } + }, + "title": "Response for a request for all matching resource attributes for a resource type.\nSee :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details" + }, + "adminLiteralMapBlob": { + "type": "object", + "properties": { + "values": { + "$ref": "#/definitions/coreLiteralMap", + "title": "Data in LiteralMap format" + }, + "uri": { + "type": "string", + "title": "In the event that the map is too large, we return a uri to the data" + } + }, + "title": "Input/output data can represented by actual values or a link to where values are stored" + }, + "adminMatchableAttributesConfiguration": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "domain": { + "type": "string" + }, + "project": { + "type": "string" + }, + "workflow": { + "type": "string" + }, + "launch_plan": { + "type": "string" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org);\nor domain, project and workflow name (and optional org).\nThese are used to override system level defaults for kubernetes cluster resource management,\ndefault execution values, and more all across different levels of specificity." + }, + "adminMatchableResource": { + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE", + "description": "Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes\nbased on matching tags.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run." + }, + "adminMatchingAttributes": { + "type": "object", + "properties": { + "task_resource_attributes": { + "$ref": "#/definitions/adminTaskResourceAttributes" + }, + "cluster_resource_attributes": { + "$ref": "#/definitions/adminClusterResourceAttributes" + }, + "execution_queue_attributes": { + "$ref": "#/definitions/adminExecutionQueueAttributes" + }, + "execution_cluster_label": { + "$ref": "#/definitions/adminExecutionClusterLabel" + }, + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService" + }, + "plugin_overrides": { + "$ref": "#/definitions/adminPluginOverrides" + }, + "workflow_execution_config": { + "$ref": "#/definitions/adminWorkflowExecutionConfig" + }, + "cluster_assignment": { + "$ref": "#/definitions/adminClusterAssignment" + } + }, + "description": "Generic container for encapsulating all types of the above attributes messages." + }, + "adminNamedEntity": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Resource type of the named entity. One of Task, Workflow or LaunchPlan." + }, + "id": { + "$ref": "#/definitions/adminNamedEntityIdentifier" + }, + "metadata": { + "$ref": "#/definitions/adminNamedEntityMetadata", + "description": "Additional metadata around a named entity." + } + }, + "description": "Encapsulates information common to a NamedEntity, a Flyte resource such as a task,\nworkflow or launch plan. A NamedEntity is exclusively identified by its resource type\nand identifier." + }, + "adminNamedEntityIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "title": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Encapsulation of fields that identifies a Flyte resource.\nA Flyte resource can be a task, workflow or launch plan.\nA resource can internally have multiple versions and is uniquely identified\nby project, domain, and name." + }, + "adminNamedEntityIdentifierList": { + "type": "object", + "properties": { + "entities": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminNamedEntityIdentifier" + }, + "description": "A list of identifiers." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "description": "Represents a list of NamedEntityIdentifiers." + }, + "adminNamedEntityList": { + "type": "object", + "properties": { + "entities": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminNamedEntity" + }, + "title": "A list of NamedEntity objects" + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "description": "Represents a list of NamedEntityIdentifiers." + }, + "adminNamedEntityMetadata": { + "type": "object", + "properties": { + "description": { + "type": "string", + "title": "Common description across all versions of the entity\n+optional" + }, + "state": { + "$ref": "#/definitions/adminNamedEntityState", + "description": "Shared state across all version of the entity\nAt this point in time, only workflow entities can have their state archived." + } + }, + "description": "Additional metadata around a named entity." + }, + "adminNamedEntityState": { + "type": "string", + "enum": [ + "NAMED_ENTITY_ACTIVE", + "NAMED_ENTITY_ARCHIVED", + "SYSTEM_GENERATED" + ], + "default": "NAMED_ENTITY_ACTIVE", + "description": "The status of the named entity is used to control its visibility in the UI.\n\n - NAMED_ENTITY_ACTIVE: By default, all named entities are considered active and under development.\n - NAMED_ENTITY_ARCHIVED: Archived named entities are no longer visible in the UI.\n - SYSTEM_GENERATED: System generated entities that aren't explicitly created or managed by a user." + }, + "adminNamedEntityUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminNodeExecutionClosure": { + "type": "object", + "properties": { + "output_uri": { + "type": "string", + "description": "Links to a remotely stored, serialized core.LiteralMap of node execution outputs.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the Node" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this node execution.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." + }, + "phase": { + "$ref": "#/definitions/coreNodeExecutionPhase", + "description": "The last recorded phase for this node execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the node execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the node execution was last updated." + }, + "workflow_node_metadata": { + "$ref": "#/definitions/flyteidladminWorkflowNodeMetadata" + }, + "task_node_metadata": { + "$ref": "#/definitions/flyteidladminTaskNodeMetadata" + }, + "deck_uri": { + "type": "string", + "title": "String location uniquely identifying where the deck HTML file is.\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + }, + "dynamic_job_spec_uri": { + "type": "string", + "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required\nto correctly recover partially completed executions where the subworkflow has already been compiled." + } + }, + "description": "Container for node execution details and results." + }, + "adminNodeExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventNodeExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a node execution event has occurred." + }, + "adminNodeExecutionEventResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminNodeExecutionGetDataResponse": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of node execution inputs.\nDeprecated: Please use full_inputs instead." + }, + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of node execution outputs.\nDeprecated: Please use full_outputs instead." + }, + "full_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_inputs will only be populated if they are under a configured size threshold." + }, + "full_outputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_outputs will only be populated if they are under a configured size threshold." + }, + "dynamic_workflow": { + "$ref": "#/definitions/flyteidladminDynamicWorkflowNodeMetadata", + "description": "Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here." + }, + "flyte_urls": { + "$ref": "#/definitions/adminFlyteURLs" + } + }, + "description": "Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution." + }, + "adminNodeExecutionList": { + "type": "object", + "properties": { + "node_executions": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidladminNodeExecution" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Request structure to retrieve a list of node execution entities.\nSee :ref:`ref_flyteidl.admin.NodeExecution` for more details" + }, + "adminNodeExecutionMetaData": { + "type": "object", + "properties": { + "retry_group": { + "type": "string", + "description": "Node executions are grouped depending on retries of the parent\nRetry group is unique within the context of a parent node." + }, + "is_parent_node": { + "type": "boolean", + "description": "Boolean flag indicating if the node has child nodes under it\nThis can be true when a node contains a dynamic workflow which then produces\nchild nodes." + }, + "spec_node_id": { + "type": "string", + "title": "Node id of the node in the original workflow\nThis maps to value of WorkflowTemplate.nodes[X].id" + }, + "is_dynamic": { + "type": "boolean", + "description": "Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.\nThis is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true." + }, + "is_array": { + "type": "boolean", + "description": "Boolean flag indicating if the node is an array node. This is intended to uniquely identify\narray nodes from other nodes which can have is_parent_node as true." + } + }, + "title": "Represents additional attributes related to a Node Execution" + }, + "adminNotification": { + "type": "object", + "properties": { + "phases": { + "type": "array", + "items": { + "$ref": "#/definitions/coreWorkflowExecutionPhase" + }, + "title": "A list of phases to which users can associate the notifications to.\n+required" + }, + "email": { + "$ref": "#/definitions/adminEmailNotification" + }, + "pager_duty": { + "$ref": "#/definitions/adminPagerDutyNotification" + }, + "slack": { + "$ref": "#/definitions/adminSlackNotification" + } + }, + "description": "Represents a structure for notifications based on execution status.\nThe notification content is configured within flyte admin but can be templatized.\nFuture iterations could expose configuring notifications with custom content." + }, + "adminNotificationList": { + "type": "object", + "properties": { + "notifications": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminNotification" + } + } + } + }, + "adminPagerDutyNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Currently, PagerDuty notifications leverage email to trigger a notification.\n+required" + } + }, + "description": "Defines a pager duty notification specification." + }, + "adminPluginOverride": { + "type": "object", + "properties": { + "task_type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier." + }, + "plugin_id": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id." + }, + "missing_plugin_behavior": { + "$ref": "#/definitions/PluginOverrideMissingPluginBehavior", + "description": "Defines the behavior when no plugin from the plugin_id list is not found." + } + }, + "description": "This MatchableAttribute configures selecting alternate plugin implementations for a given task type.\nIn addition to an override implementation a selection of fallbacks can be provided or other modes\nfor handling cases where the desired plugin override is not enabled in a given Flyte deployment." + }, + "adminPluginOverrides": { + "type": "object", + "properties": { + "overrides": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminPluginOverride" + } + } + } + }, + "adminProject": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Globally unique project name." + }, + "name": { + "type": "string", + "description": "Display name." + }, + "domains": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminDomain" + } + }, + "description": { + "type": "string" + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Leverage Labels from flyteidl.admin.common.proto to\ntag projects with ownership information." + }, + "state": { + "$ref": "#/definitions/ProjectProjectState" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Top-level namespace used to classify different entities like workflows and executions." + }, + "adminProjectAttributes": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Unique project id for which this set of attributes will be applied." + }, + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the project." + } + }, + "title": "Defines a set of custom matching attributes at the project level.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectAttributesDeleteResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectAttributesGetResponse": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminProjectAttributes" + } + }, + "title": "Response to get an individual project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectAttributesUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectDomainAttributes": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Unique project id for which this set of attributes will be applied." + }, + "domain": { + "type": "string", + "description": "Unique domain id for which this set of attributes will be applied." + }, + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the attributes." + } + }, + "title": "Defines a set of custom matching attributes which defines resource defaults for a project and domain.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectDomainAttributesDeleteResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectDomainAttributesGetResponse": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminProjectDomainAttributes" + } + }, + "title": "Response to get an individual project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminProjectDomainAttributesUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminProjectRegisterRequest": { + "type": "object", + "properties": { + "project": { + "$ref": "#/definitions/adminProject", + "title": "+required" + } + }, + "title": "Adds a new user-project within the Flyte deployment.\nSee :ref:`ref_flyteidl.admin.Project` for more details" + }, + "adminProjectRegisterResponse": { + "type": "object", + "description": "Purposefully empty, may be updated in the future." + }, + "adminProjectUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be updated in the future." + }, + "adminProjects": { + "type": "object", + "properties": { + "projects": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminProject" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of projects.\nSee :ref:`ref_flyteidl.admin.Project` for more details" + }, + "adminRawOutputDataConfig": { + "type": "object", + "properties": { + "output_location_prefix": { + "type": "string", + "title": "Prefix for where offloaded data from user workflows will be written\ne.g. s3://bucket/key or s3://bucket/" + } + }, + "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211 for more background information." + }, + "adminReason": { + "type": "object", + "properties": { + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "occurred_at is the timestamp indicating the instant that this reason happened." + }, + "message": { + "type": "string", + "description": "message is the explanation for the most recent phase transition or status update." + } + }, + "description": "Reason is a single message annotated with a timestamp to indicate the instant the reason occurred." + }, + "adminSchedule": { + "type": "object", + "properties": { + "cron_expression": { + "type": "string", + "title": "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\ne.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" + }, + "rate": { + "$ref": "#/definitions/adminFixedRate" + }, + "cron_schedule": { + "$ref": "#/definitions/adminCronSchedule" + }, + "kickoff_time_input_arg": { + "type": "string", + "description": "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." + } + }, + "description": "Defines complete set of information required to trigger an execution on a schedule." + }, + "adminSlackNotification": { + "type": "object", + "properties": { + "recipients_email": { + "type": "array", + "items": { + "type": "string" + }, + "title": "Currently, Slack notifications leverage email to trigger a notification.\n+required" + } + }, + "description": "Defines a slack notification specification." + }, + "adminSort": { + "type": "object", + "properties": { + "key": { + "type": "string", + "title": "Indicates an attribute to sort the response values.\n+required" + }, + "direction": { + "$ref": "#/definitions/SortDirection", + "title": "Indicates the direction to apply sort key for response values.\n+optional" + } + }, + "description": "Specifies sort ordering in a list request." + }, + "adminSourceCode": { + "type": "object", + "properties": { + "link": { + "type": "string" + } + }, + "title": "Link to source code used to define this entity" + }, + "adminSystemMetadata": { + "type": "object", + "properties": { + "execution_cluster": { + "type": "string", + "description": "Which execution cluster this execution ran on." + }, + "namespace": { + "type": "string", + "description": "Which kubernetes namespace the execution ran under." + } + }, + "description": "Represents system, rather than user-facing, metadata about an execution." + }, + "adminTask": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the task." + }, + "closure": { + "$ref": "#/definitions/adminTaskClosure", + "description": "closure encapsulates all the fields that maps to a compiled version of the task." + }, + "short_description": { + "type": "string", + "description": "One-liner overview of the entity." + } + }, + "description": "Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks\narranged to process workflow inputs and produce a deterministic set of outputs.\nTasks can come in many varieties tuned for specialized behavior." + }, + "adminTaskClosure": { + "type": "object", + "properties": { + "compiled_task": { + "$ref": "#/definitions/coreCompiledTask", + "description": "Represents the compiled representation of the task from the specification provided." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task was created." + } + }, + "description": "Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data\nand task metadata." + }, + "adminTaskExecutionClosure": { + "type": "object", + "properties": { + "output_uri": { + "type": "string", + "description": "Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "description": "Error information for the task execution. Populated if the execution failed." + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this task execution.\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "description": "The last recorded phase for this task execution." + }, + "logs": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreTaskLog" + }, + "description": "Detailed log information output by the task execution." + }, + "started_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution began running." + }, + "duration": { + "type": "string", + "description": "The amount of time the task execution spent running." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution was created." + }, + "updated_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the task execution was last updated." + }, + "custom_info": { + "type": "object", + "description": "Custom data specific to the task plugin." + }, + "reason": { + "type": "string", + "description": "If there is an explanation for the most recent phase transition, the reason will capture it." + }, + "task_type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier." + }, + "metadata": { + "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", + "description": "Metadata around how a task was executed." + }, + "event_version": { + "type": "integer", + "format": "int32", + "description": "The event version is used to indicate versioned changes in how data is maintained using this\nproto message. For example, event_verison \u003e 0 means that maps tasks logs use the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." + }, + "reasons": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminReason" + }, + "description": "A time-series of the phase transition or update explanations. This, when compared to storing a singular reason\nas previously done, is much more valuable in visualizing and understanding historical evaluations." + } + }, + "description": "Container for task execution details and results." + }, + "adminTaskExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventTaskExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a task execution event has occurred." + }, + "adminTaskExecutionEventResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminTaskExecutionGetDataResponse": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of task execution inputs.\nDeprecated: Please use full_inputs instead." + }, + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of task execution outputs.\nDeprecated: Please use full_outputs instead." + }, + "full_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_inputs will only be populated if they are under a configured size threshold." + }, + "full_outputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_outputs will only be populated if they are under a configured size threshold." + }, + "flyte_urls": { + "$ref": "#/definitions/adminFlyteURLs", + "title": "flyte tiny url to fetch a core.LiteralMap of task execution's IO\nDeck will be empty for task" + } + }, + "description": "Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution." + }, + "adminTaskExecutionList": { + "type": "object", + "properties": { + "task_executions": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidladminTaskExecution" + } + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Response structure for a query to list of task execution entities.\nSee :ref:`ref_flyteidl.admin.TaskExecution` for more details" + }, + "adminTaskList": { + "type": "object", + "properties": { + "tasks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminTask" + }, + "description": "A list of tasks returned based on the request." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of tasks returned from the admin.\nSee :ref:`ref_flyteidl.admin.Task` for more details" + }, + "adminTaskResourceAttributes": { + "type": "object", + "properties": { + "defaults": { + "$ref": "#/definitions/adminTaskResourceSpec" + }, + "limits": { + "$ref": "#/definitions/adminTaskResourceSpec" + } + }, + "description": "Defines task resource defaults and limits that will be applied at task registration." + }, + "adminTaskResourceSpec": { + "type": "object", + "properties": { + "cpu": { + "type": "string" + }, + "gpu": { + "type": "string" + }, + "memory": { + "type": "string" + }, + "storage": { + "type": "string" + }, + "ephemeral_storage": { + "type": "string" + } + }, + "description": "Defines a set of overridable task resource attributes set during task registration." + }, + "adminTaskSpec": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + }, + "description": { + "$ref": "#/definitions/adminDescriptionEntity", + "description": "Represents the specification for description entity." + } + }, + "description": "Represents a structure that encapsulates the user-configured specification of the task." + }, + "adminUrlBlob": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "Actual url value." + }, + "bytes": { + "type": "string", + "format": "int64", + "description": "Represents the size of the file accessible at the above url." + } + }, + "description": "Represents a string url and associated metadata used throughout the platform." + }, + "adminVersion": { + "type": "object", + "properties": { + "Build": { + "type": "string", + "title": "Specifies the GIT sha of the build" + }, + "Version": { + "type": "string", + "title": "Version for the build, should follow a semver" + }, + "BuildTime": { + "type": "string", + "title": "Build timestamp" + } + }, + "title": "Provides Version information for a component" + }, + "adminWorkflow": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "closure": { + "$ref": "#/definitions/flyteidladminWorkflowClosure", + "description": "closure encapsulates all the fields that maps to a compiled version of the workflow." + }, + "short_description": { + "type": "string", + "description": "One-liner overview of the entity." + } + }, + "description": "Represents the workflow structure stored in the Admin\nA workflow is created by ordering tasks and associating outputs to inputs\nin order to produce a directed-acyclic execution graph." + }, + "adminWorkflowAttributes": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Unique project id for which this set of attributes will be applied." + }, + "domain": { + "type": "string", + "description": "Unique domain id for which this set of attributes will be applied." + }, + "workflow": { + "type": "string", + "description": "Workflow name for which this set of attributes will be applied." + }, + "matching_attributes": { + "$ref": "#/definitions/adminMatchingAttributes" + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the attributes." + } + }, + "title": "Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" + }, + "adminWorkflowAttributesDeleteResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminWorkflowAttributesGetResponse": { + "type": "object", + "properties": { + "attributes": { + "$ref": "#/definitions/adminWorkflowAttributes" + } + }, + "description": "Response to get an individual workflow attribute override." + }, + "adminWorkflowAttributesUpdateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminWorkflowCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "title": "id represents the unique identifier of the workflow.\n+required" + }, + "spec": { + "$ref": "#/definitions/adminWorkflowSpec", + "title": "Represents the specification for workflow.\n+required" + } + }, + "title": "Represents a request structure to create a revision of a workflow.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" + }, + "adminWorkflowCreateResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminWorkflowExecutionConfig": { + "type": "object", + "properties": { + "max_parallelism": { + "type": "integer", + "format": "int32", + "description": "Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "Indicates security context permissions for executions triggered with this matchable attribute." + }, + "raw_output_data_config": { + "$ref": "#/definitions/adminRawOutputDataConfig", + "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." + }, + "labels": { + "$ref": "#/definitions/adminLabels", + "description": "Custom labels to be applied to a triggered execution resource." + }, + "annotations": { + "$ref": "#/definitions/adminAnnotations", + "description": "Custom annotations to be applied to a triggered execution resource." + }, + "interruptible": { + "type": "boolean", + "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." + }, + "overwrite_cache": { + "type": "boolean", + "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." + }, + "envs": { + "$ref": "#/definitions/adminEnvs", + "description": "Environment variables to be set for the execution." + } + }, + "description": "Adds defaults for customizable workflow-execution specifications and overrides." + }, + "adminWorkflowExecutionEventRequest": { + "type": "object", + "properties": { + "request_id": { + "type": "string", + "title": "Unique ID for this request that can be traced between services" + }, + "event": { + "$ref": "#/definitions/eventWorkflowExecutionEvent", + "description": "Details about the event that occurred." + } + }, + "description": "Request to send a notification that a workflow execution event has occurred." + }, + "adminWorkflowExecutionEventResponse": { + "type": "object", + "description": "Purposefully empty, may be populated in the future." + }, + "adminWorkflowExecutionGetDataResponse": { + "type": "object", + "properties": { + "outputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of execution outputs.\nDeprecated: Please use full_outputs instead." + }, + "inputs": { + "$ref": "#/definitions/adminUrlBlob", + "description": "Signed url to fetch a core.LiteralMap of execution inputs.\nDeprecated: Please use full_inputs instead." + }, + "full_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_inputs will only be populated if they are under a configured size threshold." + }, + "full_outputs": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Full_outputs will only be populated if they are under a configured size threshold." + } + }, + "description": "Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution." + }, + "adminWorkflowExecutionGetMetricsResponse": { + "type": "object", + "properties": { + "span": { + "$ref": "#/definitions/coreSpan", + "description": "Span defines the top-level breakdown of the workflows execution. More precise information is nested in a\nhierarchical structure using Flyte entity references." + } + }, + "description": "WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution." + }, + "adminWorkflowList": { + "type": "object", + "properties": { + "workflows": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminWorkflow" + }, + "description": "A list of workflows returned based on the request." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "Represents a list of workflows returned from the admin.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" + }, + "adminWorkflowSpec": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreWorkflowTemplate", + "description": "Template of the task that encapsulates all the metadata of the workflow." + }, + "sub_workflows": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreWorkflowTemplate" + }, + "description": "Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the\npropeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out\nto Admin to see other registered workflows). In fact, subworkflows do not even need to be registered." + }, + "description": { + "$ref": "#/definitions/adminDescriptionEntity", + "description": "Represents the specification for description entity." + } + }, + "description": "Represents a structure that encapsulates the specification of the workflow." + }, + "coreAlias": { + "type": "object", + "properties": { + "var": { + "type": "string", + "description": "Must match one of the output variable names on a node." + }, + "alias": { + "type": "string", + "description": "A workflow-level unique alias that downstream nodes can refer to in their input." + } + }, + "description": "Links a variable to an alias." + }, + "coreApproveCondition": { + "type": "object", + "properties": { + "signal_id": { + "type": "string", + "description": "A unique identifier for the requested boolean signal." + } + }, + "description": "ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean\nsignal with the provided signal_id." + }, + "coreArrayNode": { + "type": "object", + "properties": { + "node": { + "$ref": "#/definitions/coreNode", + "description": "node is the sub-node that will be executed for each element in the array." + }, + "parallelism": { + "type": "integer", + "format": "int64", + "description": "parallelism defines the minimum number of instances to bring up concurrently at any given\npoint. Note that this is an optimistic restriction and that, due to network partitioning or\nother failures, the actual number of currently running instances might be more. This has to\nbe a positive number if assigned. Default value is size." + }, + "min_successes": { + "type": "integer", + "format": "int64", + "description": "min_successes is an absolute number of the minimum number of successful completions of\nsub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful\nand outputs will be computed. This has to be a non-negative number if assigned. Default\nvalue is size (if specified)." + }, + "min_success_ratio": { + "type": "number", + "format": "float", + "description": "If the array job size is not known beforehand, the min_success_ratio can instead be used\nto determine when an ArrayNode can be marked successful." + } + }, + "description": "ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input\nvalues. An ArrayNode can be executed with configurable parallelism (separate from the parent\nworkflow) and can be configured to succeed when a certain number of sub-nodes succeed." + }, + "coreArtifactBindingData": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int64" + }, + "partition_key": { + "type": "string" + }, + "bind_to_time_partition": { + "type": "boolean" + }, + "transform": { + "type": "string", + "title": "This is only relevant in the time partition case" + } + }, + "title": "Only valid for triggers" + }, + "coreArtifactID": { + "type": "object", + "properties": { + "artifact_key": { + "$ref": "#/definitions/coreArtifactKey" + }, + "version": { + "type": "string" + }, + "partitions": { + "$ref": "#/definitions/corePartitions", + "description": "Think of a partition as a tag on an Artifact, except it's a key-value pair.\nDifferent partitions naturally have different versions (execution ids)." + }, + "time_partition": { + "$ref": "#/definitions/coreTimePartition", + "description": "There is no such thing as an empty time partition - if it's not set, then there is no time partition." + } + } + }, + "coreArtifactKey": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Project and domain and suffix needs to be unique across a given artifact store." + }, + "domain": { + "type": "string" + }, + "name": { + "type": "string" + }, + "org": { + "type": "string" + } + } + }, + "coreArtifactQuery": { + "type": "object", + "properties": { + "artifact_id": { + "$ref": "#/definitions/coreArtifactID" + }, + "artifact_tag": { + "$ref": "#/definitions/coreArtifactTag" + }, + "uri": { + "type": "string" + }, + "binding": { + "$ref": "#/definitions/coreArtifactBindingData", + "description": "This is used in the trigger case, where a user specifies a value for an input that is one of the triggering\nartifacts, or a partition value derived from a triggering artifact." + } + }, + "title": "Uniqueness constraints for Artifacts\n - project, domain, name, version, partitions\nOption 2 (tags are standalone, point to an individual artifact id):\n - project, domain, name, alias (points to one partition if partitioned)\n - project, domain, name, partition key, partition value" + }, + "coreArtifactTag": { + "type": "object", + "properties": { + "artifact_key": { + "$ref": "#/definitions/coreArtifactKey" + }, + "value": { + "$ref": "#/definitions/coreLabelValue" + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBinding": { + "type": "object", + "properties": { + "var": { + "type": "string", + "description": "Variable name must match an input/output variable of the node." + }, + "binding": { + "$ref": "#/definitions/coreBindingData", + "description": "Data to use to bind this variable." + } + }, + "description": "An input/output binding of a variable to either static value or a node output." + }, + "coreBindingData": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple scalar value." + }, + "collection": { + "$ref": "#/definitions/coreBindingDataCollection", + "description": "A collection of binding data. This allows nesting of binding data to any number\nof levels." + }, + "promise": { + "$ref": "#/definitions/coreOutputReference", + "description": "References an output promised by another node." + }, + "map": { + "$ref": "#/definitions/coreBindingDataMap", + "description": "A map of bindings. The key is always a string." + }, + "union": { + "$ref": "#/definitions/coreUnionInfo" + } + }, + "description": "Specifies either a simple value or a reference to another output." + }, + "coreBindingDataCollection": { + "type": "object", + "properties": { + "bindings": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreBindingData" + } + } + }, + "description": "A collection of BindingData items." + }, + "coreBindingDataMap": { + "type": "object", + "properties": { + "bindings": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreBindingData" + } + } + }, + "description": "A map of BindingData items." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreBooleanExpression": { + "type": "object", + "properties": { + "conjunction": { + "$ref": "#/definitions/coreConjunctionExpression" + }, + "comparison": { + "$ref": "#/definitions/coreComparisonExpression" + } + }, + "description": "Defines a boolean expression tree. It can be a simple or a conjunction expression.\nMultiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result." + }, + "coreBranchNode": { + "type": "object", + "properties": { + "if_else": { + "$ref": "#/definitions/coreIfElseBlock", + "title": "+required" + } + }, + "description": "BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at\nruntime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives)." + }, + "coreCatalogArtifactTag": { + "type": "object", + "properties": { + "artifact_id": { + "type": "string", + "title": "Artifact ID is generated name" + }, + "name": { + "type": "string", + "title": "Flyte computes the tag automatically, as the hash of the values" + } + } + }, + "coreCatalogCacheStatus": { + "type": "string", + "enum": [ + "CACHE_DISABLED", + "CACHE_MISS", + "CACHE_HIT", + "CACHE_POPULATED", + "CACHE_LOOKUP_FAILURE", + "CACHE_PUT_FAILURE", + "CACHE_SKIPPED", + "CACHE_EVICTED" + ], + "default": "CACHE_DISABLED", + "description": "- CACHE_DISABLED: Used to indicate that caching was disabled\n - CACHE_MISS: Used to indicate that the cache lookup resulted in no matches\n - CACHE_HIT: used to indicate that the associated artifact was a result of a previous execution\n - CACHE_POPULATED: used to indicate that the resultant artifact was added to the cache\n - CACHE_LOOKUP_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_PUT_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_SKIPPED: Used to indicate the cache lookup was skipped\n - CACHE_EVICTED: Used to indicate that the cache was evicted", + "title": "Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future" + }, + "coreCatalogMetadata": { + "type": "object", + "properties": { + "dataset_id": { + "$ref": "#/definitions/coreIdentifier", + "title": "Dataset ID in the catalog" + }, + "artifact_tag": { + "$ref": "#/definitions/coreCatalogArtifactTag", + "title": "Artifact tag in the catalog" + }, + "source_task_execution": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "title": "Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions" + } + }, + "title": "Catalog artifact information with specific metadata" + }, + "coreCatalogReservationStatus": { + "type": "string", + "enum": [ + "RESERVATION_DISABLED", + "RESERVATION_ACQUIRED", + "RESERVATION_EXISTS", + "RESERVATION_RELEASED", + "RESERVATION_FAILURE" + ], + "default": "RESERVATION_DISABLED", + "description": "Indicates the status of a catalog reservation operation.\n\n - RESERVATION_DISABLED: Used to indicate that reservations are disabled\n - RESERVATION_ACQUIRED: Used to indicate that a reservation was successfully acquired or extended\n - RESERVATION_EXISTS: Used to indicate that an active reservation currently exists\n - RESERVATION_RELEASED: Used to indicate that the reservation has been successfully released\n - RESERVATION_FAILURE: Used to indicate that a reservation operation resulted in failure" + }, + "coreComparisonExpression": { + "type": "object", + "properties": { + "operator": { + "$ref": "#/definitions/ComparisonExpressionOperator" + }, + "left_value": { + "$ref": "#/definitions/coreOperand" + }, + "right_value": { + "$ref": "#/definitions/coreOperand" + } + }, + "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." + }, + "coreCompiledLaunchPlan": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreLaunchPlanTemplate", + "title": "Completely contained LaunchPlan Template" + } + }, + "title": "Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer" + }, + "coreCompiledTask": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "title": "Completely contained TaskTemplate" + } + }, + "title": "Output of the Compilation step. This object represent one Task. We store more metadata at this layer" + }, + "coreCompiledWorkflow": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreWorkflowTemplate", + "title": "Completely contained Workflow Template" + }, + "connections": { + "$ref": "#/definitions/coreConnectionSet", + "description": "For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored." + } + }, + "title": "Output of the compilation Step. This object represents one workflow. We store more metadata at this layer" + }, + "coreCompiledWorkflowClosure": { + "type": "object", + "properties": { + "primary": { + "$ref": "#/definitions/coreCompiledWorkflow", + "title": "+required" + }, + "sub_workflows": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreCompiledWorkflow" + }, + "title": "Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a\nunique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow\nas an inlined workflow\n+optional" + }, + "tasks": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreCompiledTask" + }, + "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (at least 1)" + }, + "launch_plans": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreCompiledLaunchPlan" + }, + "description": "A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan\nwith a given id, i.e., every launch plan has a unique id." + } + }, + "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." + }, + "coreConjunctionExpression": { + "type": "object", + "properties": { + "operator": { + "$ref": "#/definitions/ConjunctionExpressionLogicalOperator" + }, + "left_expression": { + "$ref": "#/definitions/coreBooleanExpression" + }, + "right_expression": { + "$ref": "#/definitions/coreBooleanExpression" + } + }, + "description": "Defines a conjunction expression of two boolean expressions." + }, + "coreConnectionSet": { + "type": "object", + "properties": { + "downstream": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConnectionSetIdList" + }, + "title": "A list of all the node ids that are downstream from a given node id" + }, + "upstream": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConnectionSetIdList" + }, + "title": "A list of all the node ids, that are upstream of this node id" + } + }, + "title": "Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation\nstep uses this created ConnectionSet" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." + }, + "ports": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + }, + "architecture": { + "$ref": "#/definitions/ContainerArchitecture" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreDataLoadingConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + }, + "input_path": { + "type": "string", + "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" + }, + "output_path": { + "type": "string", + "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + }, + "format": { + "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", + "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + }, + "io_strategy": { + "$ref": "#/definitions/coreIOStrategy" + } + }, + "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreExecutionError": { + "type": "object", + "properties": { + "code": { + "type": "string", + "title": "Error code indicates a grouping of a type of error.\nMore Info: \u003cLink\u003e" + }, + "message": { + "type": "string", + "description": "Detailed description of the error - including stack trace." + }, + "error_uri": { + "type": "string", + "title": "Full error contents accessible via a URI" + }, + "kind": { + "$ref": "#/definitions/ExecutionErrorErrorKind" + } + }, + "description": "Represents the error message from the execution." + }, + "coreExtendedResources": { + "type": "object", + "properties": { + "gpu_accelerator": { + "$ref": "#/definitions/coreGPUAccelerator", + "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." + } + }, + "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." + }, + "coreGPUAccelerator": { + "type": "object", + "properties": { + "device": { + "type": "string", + "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." + }, + "unpartitioned": { + "type": "boolean" + }, + "partition_size": { + "type": "string", + "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." + } + }, + "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." + }, + "coreGateNode": { + "type": "object", + "properties": { + "approve": { + "$ref": "#/definitions/coreApproveCondition", + "description": "ApproveCondition represents a dependency on an external approval provided by a boolean signal." + }, + "signal": { + "$ref": "#/definitions/coreSignalCondition", + "description": "SignalCondition represents a dependency on an signal." + }, + "sleep": { + "$ref": "#/definitions/coreSleepCondition", + "description": "SleepCondition represents a dependency on waiting for the specified duration." + } + }, + "description": "GateNode refers to the condition that is required for the gate to successfully complete." + }, + "coreIOStrategy": { + "type": "object", + "properties": { + "download_mode": { + "$ref": "#/definitions/IOStrategyDownloadMode", + "title": "Mode to use to manage downloads" + }, + "upload_mode": { + "$ref": "#/definitions/IOStrategyUploadMode", + "title": "Mode to use to manage uploads" + } + }, + "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIdentity": { + "type": "object", + "properties": { + "iam_role": { + "type": "string", + "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." + }, + "k8s_service_account": { + "type": "string", + "description": "k8s_service_account references a kubernetes service account to impersonate." + }, + "oauth2_client": { + "$ref": "#/definitions/coreOAuth2Client", + "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." + }, + "execution_identity": { + "type": "string", + "title": "execution_identity references the subject who makes the execution" + } + }, + "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." + }, + "coreIfBlock": { + "type": "object", + "properties": { + "condition": { + "$ref": "#/definitions/coreBooleanExpression" + }, + "then_node": { + "$ref": "#/definitions/coreNode" + } + }, + "description": "Defines a condition and the execution unit that should be executed if the condition is satisfied." + }, + "coreIfElseBlock": { + "type": "object", + "properties": { + "case": { + "$ref": "#/definitions/coreIfBlock", + "description": "+required. First condition to evaluate." + }, + "other": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreIfBlock" + }, + "description": "+optional. Additional branches to evaluate." + }, + "else_node": { + "$ref": "#/definitions/coreNode", + "description": "The node to execute in case none of the branches were taken." + }, + "error": { + "$ref": "#/definitions/coreError", + "description": "An error to throw in case none of the branches were taken." + } + }, + "description": "Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.\nIf no conditions were satisfied, the else_node or the error will execute." + }, + "coreInputBindingData": { + "type": "object", + "properties": { + "var": { + "type": "string" + } + } + }, + "coreK8sObjectMetadata": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels to add to the pod definition." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional annotations to add to the pod definition." + } + }, + "description": "Metadata for building a kubernetes object when a task is executed." + }, + "coreK8sPod": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreK8sObjectMetadata", + "description": "Contains additional metadata for building a kubernetes pod." + }, + "pod_spec": { + "type": "object", + "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + } + }, + "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." + }, + "coreLabelValue": { + "type": "object", + "properties": { + "static_value": { + "type": "string", + "title": "The string static value is for use in the Partitions object" + }, + "time_value": { + "type": "string", + "format": "date-time", + "title": "The time value is for use in the TimePartition case" + }, + "triggered_binding": { + "$ref": "#/definitions/coreArtifactBindingData" + }, + "input_binding": { + "$ref": "#/definitions/coreInputBindingData" + } + } + }, + "coreLaunchPlanTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the launch plan." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "title": "The input and output interface for the launch plan" + }, + "fixed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "A collection of input literals that are fixed for the launch plan" + } + }, + "description": "A structure that uniquely identifies a launch plan in the system." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata for literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/flyteidlcoreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "type": "object", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNode": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved\nnode ids that cannot be used by other nodes." + }, + "metadata": { + "$ref": "#/definitions/coreNodeMetadata", + "description": "Extra metadata about the node." + }, + "inputs": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreBinding" + }, + "description": "Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface\nmust be fulfilled." + }, + "upstream_node_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its\nupstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs\nfield." + }, + "output_aliases": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreAlias" + }, + "description": "+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes\nneed to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this\nnodes outputs using the alias if one's specified." + }, + "task_node": { + "$ref": "#/definitions/coreTaskNode", + "description": "Information about the Task to execute in this node." + }, + "workflow_node": { + "$ref": "#/definitions/coreWorkflowNode", + "description": "Information about the Workflow to execute in this mode." + }, + "branch_node": { + "$ref": "#/definitions/coreBranchNode", + "description": "Information about the branch node to evaluate in this node." + }, + "gate_node": { + "$ref": "#/definitions/coreGateNode", + "description": "Information about the condition to evaluate in this node." + }, + "array_node": { + "$ref": "#/definitions/coreArrayNode", + "description": "Information about the sub-node executions for each value in the list of this nodes\ninputs values." + } + }, + "description": "A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch\nnode." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "coreNodeExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "FAILING", + "FAILED", + "ABORTED", + "SKIPPED", + "TIMED_OUT", + "DYNAMIC_RUNNING", + "RECOVERED" + ], + "default": "UNDEFINED" + }, + "coreNodeMetadata": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A friendly name for the Node" + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "interruptible": { + "type": "boolean" + }, + "cacheable": { + "type": "boolean" + }, + "cache_version": { + "type": "string" + }, + "cache_serializable": { + "type": "boolean" + } + }, + "description": "Defines extra information about the Node." + }, + "coreOAuth2Client": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" + }, + "client_secret": { + "$ref": "#/definitions/coreSecret", + "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" + } + }, + "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." + }, + "coreOAuth2TokenRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" + }, + "type": { + "$ref": "#/definitions/coreOAuth2TokenRequestType", + "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" + }, + "client": { + "$ref": "#/definitions/coreOAuth2Client", + "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" + }, + "idp_discovery_endpoint": { + "type": "string", + "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" + }, + "token_endpoint": { + "type": "string", + "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" + } + }, + "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." + }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, + "coreOperand": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive", + "title": "Can be a constant" + }, + "var": { + "type": "string", + "title": "Or one of this node's input variables" + }, + "scalar": { + "$ref": "#/definitions/coreScalar", + "title": "Replace the primitive field" + } + }, + "description": "Defines an operand to a comparison expression." + }, + "coreOutputReference": { + "type": "object", + "properties": { + "node_id": { + "type": "string", + "description": "Node id must exist at the graph layer." + }, + "var": { + "type": "string", + "description": "Variable name must refer to an output variable for the node." + }, + "attr_path": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/corePromiseAttribute" + } + } + }, + "description": "A reference to an output produced by a node. The type can be retrieved -and validated- from\nthe underlying interface of the node." + }, + "coreParameter": { + "type": "object", + "properties": { + "var": { + "$ref": "#/definitions/coreVariable", + "description": "+required Variable. Defines the type of the variable backing this parameter." + }, + "default": { + "$ref": "#/definitions/coreLiteral", + "description": "Defines a default value that has to match the variable type defined." + }, + "required": { + "type": "boolean", + "description": "+optional, is this value required to be filled." + }, + "artifact_query": { + "$ref": "#/definitions/coreArtifactQuery", + "description": "This is an execution time search basically that should result in exactly one Artifact with a Type that\nmatches the type of the variable." + }, + "artifact_id": { + "$ref": "#/definitions/coreArtifactID" + } + }, + "description": "A parameter is used as input to a launch plan and has\nthe special ability to have a default value or mark itself as required." + }, + "coreParameterMap": { + "type": "object", + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreParameter" + }, + "description": "Defines a map of parameter names to parameters." + } + }, + "description": "A map of Parameters." + }, + "corePartitions": { + "type": "object", + "properties": { + "value": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLabelValue" + } + } + } + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "corePromiseAttribute": { + "type": "object", + "properties": { + "string_value": { + "type": "string" + }, + "int_value": { + "type": "integer", + "format": "int32" + } + } + }, + "coreQualityOfService": { + "type": "object", + "properties": { + "tier": { + "$ref": "#/definitions/QualityOfServiceTier" + }, + "spec": { + "$ref": "#/definitions/coreQualityOfServiceSpec" + } + }, + "description": "Indicates the priority of an execution." + }, + "coreQualityOfServiceSpec": { + "type": "object", + "properties": { + "queueing_budget": { + "type": "string", + "description": "Indicates how much queueing delay an execution can tolerate." + } + }, + "description": "Represents customized execution run-time attributes." + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is loosely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "type": "object" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSecret": { + "type": "object", + "properties": { + "group": { + "type": "string", + "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" + }, + "group_version": { + "type": "string", + "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + }, + "key": { + "type": "string", + "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" + }, + "mount_requirement": { + "$ref": "#/definitions/SecretMountType", + "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" + } + }, + "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." + }, + "coreSecurityContext": { + "type": "object", + "properties": { + "run_as": { + "$ref": "#/definitions/coreIdentity", + "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." + }, + "secrets": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreSecret" + }, + "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + }, + "tokens": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreOAuth2TokenRequest" + }, + "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + } + }, + "description": "SecurityContext holds security attributes that apply to tasks." + }, + "coreSignalCondition": { + "type": "object", + "properties": { + "signal_id": { + "type": "string", + "description": "A unique identifier for the requested signal." + }, + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "A type denoting the required value type for this signal." + }, + "output_variable_name": { + "type": "string", + "description": "The variable name for the signal value in this nodes outputs." + } + }, + "description": "SignalCondition represents a dependency on an signal." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreSleepCondition": { + "type": "object", + "properties": { + "duration": { + "type": "string", + "description": "The overall duration for this sleep." + } + }, + "description": "SleepCondition represents a dependency on waiting for the specified duration." + }, + "coreSpan": { + "type": "object", + "properties": { + "start_time": { + "type": "string", + "format": "date-time", + "description": "start_time defines the instance this span began." + }, + "end_time": { + "type": "string", + "format": "date-time", + "description": "end_time defines the instance this span completed." + }, + "workflow_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "workflow_id is the id of the workflow execution this Span represents." + }, + "node_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "node_id is the id of the node execution this Span represents." + }, + "task_id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "description": "task_id is the id of the task execution this Span represents." + }, + "operation_id": { + "type": "string", + "description": "operation_id is the id of a unique operation that this Span represents." + }, + "spans": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreSpan" + }, + "description": "spans defines a collection of Spans that breakdown this execution." + } + }, + "description": "Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation\nwhich uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more\nprecise definitions." + }, + "coreSql": { + "type": "object", + "properties": { + "statement": { + "type": "string", + "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + }, + "dialect": { + "$ref": "#/definitions/SqlDialect" + } + }, + "description": "Sql represents a generic sql workload with a statement and dialect." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTaskExecutionIdentifier": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier" + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier" + }, + "retry_attempt": { + "type": "integer", + "format": "int64" + } + }, + "description": "Encapsulation of fields that identify a Flyte task execution entity." + }, + "coreTaskExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "ABORTED", + "FAILED", + "INITIALIZING", + "WAITING_FOR_RESOURCES" + ], + "default": "UNDEFINED", + "title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" + }, + "coreTaskLog": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "name": { + "type": "string" + }, + "message_format": { + "$ref": "#/definitions/TaskLogMessageFormat" + }, + "ttl": { + "type": "string" + } + }, + "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + }, + "interruptible": { + "type": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "description": "Indicates whether the task will generate a Deck URI when it finishes executing." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + }, + "pod_template_name": { + "type": "string", + "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + }, + "cache_ignore_input_vars": { + "type": "array", + "items": { + "type": "string" + }, + "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." + } + }, + "title": "Task Metadata" + }, + "coreTaskNode": { + "type": "object", + "properties": { + "reference_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the task." + }, + "overrides": { + "$ref": "#/definitions/coreTaskNodeOverrides", + "description": "Optional overrides applied at task execution time." + } + }, + "description": "Refers to the task that the Node is to execute." + }, + "coreTaskNodeOverrides": { + "type": "object", + "properties": { + "resources": { + "$ref": "#/definitions/coreResources", + "description": "A customizable interface to convey resources requested for a task container." + }, + "extended_resources": { + "$ref": "#/definitions/coreExtendedResources", + "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + } + }, + "description": "Optional task node overrides that will be applied at task execution time." + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "type": "object", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + }, + "k8s_pod": { + "$ref": "#/definitions/coreK8sPod" + }, + "sql": { + "$ref": "#/definitions/coreSql" + }, + "task_type_version": { + "type": "integer", + "format": "int32", + "description": "This can be used to customize task handling at execution time for the same task type." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "security_context encapsulates security attributes requested to run this task." + }, + "extended_resources": { + "$ref": "#/definitions/coreExtendedResources", + "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTimePartition": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLabelValue" + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + }, + "dataclass_type": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteralType" + }, + "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionInfo": { + "type": "object", + "properties": { + "targetType": { + "$ref": "#/definitions/coreLiteralType" + } + } + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + }, + "artifact_partial_id": { + "$ref": "#/definitions/coreArtifactID", + "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." + }, + "artifact_tag": { + "$ref": "#/definitions/coreArtifactTag" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "coreWorkflowExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDING", + "SUCCEEDED", + "FAILING", + "FAILED", + "ABORTED", + "TIMED_OUT", + "ABORTING" + ], + "default": "UNDEFINED" + }, + "coreWorkflowMetadata": { + "type": "object", + "properties": { + "quality_of_service": { + "$ref": "#/definitions/coreQualityOfService", + "description": "Indicates the runtime priority of workflow executions." + }, + "on_failure": { + "$ref": "#/definitions/WorkflowMetadataOnFailurePolicy", + "description": "Defines how the system should behave when a failure is detected in the workflow execution." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + } + }, + "description": "This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not\npercolate down to child entities (like tasks) launched by the workflow." + }, + "coreWorkflowMetadataDefaults": { + "type": "object", + "properties": { + "interruptible": { + "type": "boolean", + "description": "Whether child nodes of the workflow are interruptible." + } + }, + "description": "The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to\na workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it\nis only relevant when a task executes. The settings here are the defaults that are passed to all nodes\nunless explicitly overridden at the node layer.\nIf you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be\nadded to both this object and the WorkflowMetadata object above." + }, + "coreWorkflowNode": { + "type": "object", + "properties": { + "launchplan_ref": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the launch plan." + }, + "sub_workflow_ref": { + "$ref": "#/definitions/coreIdentifier", + "title": "Reference to a subworkflow, that should be defined with the compiler context" + } + }, + "description": "Refers to a the workflow the node is to execute." + }, + "coreWorkflowTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "A globally unique identifier for the workflow." + }, + "metadata": { + "$ref": "#/definitions/coreWorkflowMetadata", + "description": "Extra metadata about the workflow." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "Defines a strongly typed interface for the Workflow. This can include some optional parameters." + }, + "nodes": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreNode" + }, + "description": "A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs." + }, + "outputs": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreBinding" + }, + "description": "A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or\nspecify literals. All workflow outputs specified in the interface field must be bound in order for the workflow\nto be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to\nbind final outputs.\nMost of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can\njust have an output of some constant (`Output(5)`), but usually, the workflow will be pulling\noutputs from the output of a task." + }, + "failure_node": { + "$ref": "#/definitions/coreNode", + "description": "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.\nThe interface of this node must match the Workflow interface with an additional input named 'error' of type\npb.lyft.flyte.core.Error." + }, + "metadata_defaults": { + "$ref": "#/definitions/coreWorkflowMetadataDefaults", + "title": "workflow defaults" + } + }, + "description": "Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,\ndirected acyclic graph." + }, + "eventEventReason": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "title": "An explanation for this event" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "title": "The time this reason occurred" + } + } + }, + "eventExternalResourceInfo": { + "type": "object", + "properties": { + "external_id": { + "type": "string", + "description": "Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids." + }, + "index": { + "type": "integer", + "format": "int64", + "description": "A unique index for the external resource with respect to all external resources for this task. Although the\nidentifier may change between task reporting events or retries, this will remain the same to enable aggregating\ninformation from multiple reports." + }, + "retry_attempt": { + "type": "integer", + "format": "int64", + "title": "Retry attempt number for this external resource, ie., 2 for the second attempt" + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "title": "Phase associated with the external resource" + }, + "cache_status": { + "$ref": "#/definitions/coreCatalogCacheStatus", + "description": "Captures the status of caching for this external resource execution." + }, + "logs": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreTaskLog" + }, + "title": "log information for the external resource execution" + } + }, + "description": "This message contains metadata about external resources produced or used by a specific task execution." + }, + "eventNodeExecutionEvent": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "Unique identifier for this node execution" + }, + "producer_id": { + "type": "string", + "title": "the id of the originator (Propeller) of the event" + }, + "phase": { + "$ref": "#/definitions/coreNodeExecutionPhase" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the node." + }, + "input_uri": { + "type": "string" + }, + "input_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw input data consumed by this node execution." + }, + "output_uri": { + "type": "string", + "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this node execution." + }, + "workflow_node_metadata": { + "$ref": "#/definitions/flyteidleventWorkflowNodeMetadata" + }, + "task_node_metadata": { + "$ref": "#/definitions/flyteidleventTaskNodeMetadata" + }, + "parent_task_metadata": { + "$ref": "#/definitions/eventParentTaskExecutionMetadata", + "description": "[To be deprecated] Specifies which task (if any) launched this node." + }, + "parent_node_metadata": { + "$ref": "#/definitions/eventParentNodeExecutionMetadata", + "description": "Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node." + }, + "retry_group": { + "type": "string", + "title": "Retry group to indicate grouping of nodes by retries" + }, + "spec_node_id": { + "type": "string", + "title": "Identifier of the node in the original workflow/graph\nThis maps to value of WorkflowTemplate.nodes[X].id" + }, + "node_name": { + "type": "string", + "title": "Friendly readable name for the node" + }, + "event_version": { + "type": "integer", + "format": "int32" + }, + "is_parent": { + "type": "boolean", + "description": "Whether this node launched a subworkflow." + }, + "is_dynamic": { + "type": "boolean", + "description": "Whether this node yielded a dynamic workflow." + }, + "deck_uri": { + "type": "string", + "title": "String location uniquely identifying where the deck HTML file is\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + }, + "reported_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents the instant when the event was reported by the executing framework. For example,\nwhen first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when\nliteral inputs are initially copied. The event however will not be sent until after the copy completes.\nExtracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series." + }, + "is_array": { + "type": "boolean", + "description": "Indicates if this node is an ArrayNode." + } + } + }, + "eventParentNodeExecutionMetadata": { + "type": "object", + "properties": { + "node_id": { + "type": "string", + "title": "Unique identifier of the parent node id within the execution\nThis is value of core.NodeExecutionIdentifier.node_id of the parent node" + } + } + }, + "eventParentTaskExecutionMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier" + } + } + }, + "eventResourcePoolInfo": { + "type": "object", + "properties": { + "allocation_token": { + "type": "string", + "description": "Unique resource ID used to identify this execution when allocating a token." + }, + "namespace": { + "type": "string", + "description": "Namespace under which this task execution requested an allocation token." + } + }, + "description": "This message holds task execution metadata specific to resource allocation used to manage concurrent\nexecutions for a project namespace." + }, + "eventTaskExecutionEvent": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier", + "description": "ID of the task. In combination with the retryAttempt this will indicate\nthe task execution uniquely for a given parent node execution." + }, + "parent_node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "title": "A task execution is always kicked off by a node execution, the event consumer\nwill use the parent_id to relate the task to it's parent node execution" + }, + "retry_attempt": { + "type": "integer", + "format": "int64", + "title": "retry attempt number for this task, ie., 2 for the second attempt" + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "title": "Phase associated with the event" + }, + "producer_id": { + "type": "string", + "title": "id of the process that sent this event, mainly for trace debugging" + }, + "logs": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreTaskLog" + }, + "title": "log information for the task execution" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the task." + }, + "input_uri": { + "type": "string", + "description": "URI of the input file, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "input_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw input data consumed by this task execution." + }, + "output_uri": { + "type": "string", + "description": "URI to the output of the execution, it will be in a format that encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this task execution." + }, + "custom_info": { + "type": "object", + "description": "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system." + }, + "phase_version": { + "type": "integer", + "format": "int64", + "description": "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)\nthat should be recorded regardless of the lack of phase change.\nThe version field should be incremented when metadata changes across the duration of an individual phase." + }, + "reason": { + "type": "string", + "description": "An optional explanation for the phase transition.\nDeprecated: Use reasons instead." + }, + "reasons": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/eventEventReason" + }, + "description": "An optional list of explanations for the phase transition." + }, + "task_type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin\nthis type will be identical, but not all task executions necessarily use pre-registered definitions and this\ntype is useful to render the task in the UI, filter task executions, etc." + }, + "metadata": { + "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", + "description": "Metadata around how a task was executed." + }, + "event_version": { + "type": "integer", + "format": "int32", + "description": "The event version is used to indicate versioned changes in how data is reported using this\nproto message. For example, event_verison \u003e 0 means that maps tasks report logs using the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." + }, + "reported_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s\npod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,\nbut this event will not be reported until the pod is marked as completed. Extracting both of these timestamps\nfacilitates a more accurate portrayal of the evaluation time-series." + } + }, + "description": "Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob." + }, + "eventWorkflowExecutionEvent": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "title": "Workflow execution id" + }, + "producer_id": { + "type": "string", + "title": "the id of the originator (Propeller) of the event" + }, + "phase": { + "$ref": "#/definitions/coreWorkflowExecutionPhase" + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the workflow." + }, + "output_uri": { + "type": "string", + "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." + }, + "error": { + "$ref": "#/definitions/coreExecutionError", + "title": "Error information for the execution" + }, + "output_data": { + "$ref": "#/definitions/coreLiteralMap", + "description": "Raw output data produced by this workflow execution." + } + } + }, + "flyteidladminDynamicWorkflowNodeMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the embedded dynamic workflow." + }, + "dynamic_job_spec_uri": { + "type": "string", + "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the subworkflow has already been compiled." + } + }, + "description": "For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated." + }, + "flyteidladminNodeExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "Uniquely identifies an individual node execution." + }, + "input_uri": { + "type": "string", + "description": "Path to remote data store where input blob is stored." + }, + "closure": { + "$ref": "#/definitions/adminNodeExecutionClosure", + "description": "Computed results associated with this node execution." + }, + "metadata": { + "$ref": "#/definitions/adminNodeExecutionMetaData", + "title": "Metadata for Node Execution" + } + }, + "description": "Encapsulates all details for a single node execution entity.\nA node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow execution.\nThe same task can be called repeatedly in a single workflow but each node is unique." + }, + "flyteidladminTaskCreateRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "title": "id represents the unique identifier of the task.\n+required" + }, + "spec": { + "$ref": "#/definitions/adminTaskSpec", + "title": "Represents the specification for task.\n+required" + } + }, + "title": "Represents a request structure to create a revision of a task.\nSee :ref:`ref_flyteidl.admin.Task` for more details" + }, + "flyteidladminTaskCreateResponse": { + "type": "object", + "description": "Represents a response structure if task creation succeeds.\n\nPurposefully empty, may be populated in the future." + }, + "flyteidladminTaskExecution": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "description": "Unique identifier for the task execution." + }, + "input_uri": { + "type": "string", + "description": "Path to remote data store where input blob is stored." + }, + "closure": { + "$ref": "#/definitions/adminTaskExecutionClosure", + "description": "Task execution details and results." + }, + "is_parent": { + "type": "boolean", + "description": "Whether this task spawned nodes." + } + }, + "description": "Encapsulates all details for a single task execution entity.\nA task execution represents an instantiated task, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes." + }, + "flyteidladminTaskNodeMetadata": { + "type": "object", + "properties": { + "cache_status": { + "$ref": "#/definitions/coreCatalogCacheStatus", + "description": "Captures the status of caching for this execution." + }, + "catalog_key": { + "$ref": "#/definitions/coreCatalogMetadata", + "title": "This structure carries the catalog artifact information" + }, + "checkpoint_uri": { + "type": "string", + "title": "The latest checkpoint location" + } + }, + "title": "Metadata for the case in which the node is a TaskNode" + }, + "flyteidladminWorkflowClosure": { + "type": "object", + "properties": { + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the workflow from the specification provided." + }, + "created_at": { + "type": "string", + "format": "date-time", + "description": "Time at which the workflow was created." + } + }, + "description": "A container holding the compiled workflow produced from the WorkflowSpec and additional metadata." + }, + "flyteidladminWorkflowNodeMetadata": { + "type": "object", + "properties": { + "executionId": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "The identifier for a workflow execution launched by a node." + } + }, + "title": "Metadata for a WorkflowNode" + }, + "flyteidlcoreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "flyteidlcoreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "flyteidleventDynamicWorkflowNodeMetadata": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "id represents the unique identifier of the workflow." + }, + "compiled_workflow": { + "$ref": "#/definitions/coreCompiledWorkflowClosure", + "description": "Represents the compiled representation of the embedded dynamic workflow." + }, + "dynamic_job_spec_uri": { + "type": "string", + "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the workflow has already been compiled." + } + }, + "description": "For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated." + }, + "flyteidleventTaskExecutionMetadata": { + "type": "object", + "properties": { + "generated_name": { + "type": "string", + "description": "Unique, generated name for this task execution used by the backend." + }, + "external_resources": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/eventExternalResourceInfo" + }, + "description": "Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution." + }, + "resource_pool_info": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/eventResourcePoolInfo" + }, + "description": "Includes additional data on concurrent resource management used during execution..\nThis is a repeated field because a plugin can request multiple resource allocations during execution." + }, + "plugin_identifier": { + "type": "string", + "description": "The identifier of the plugin used to execute this task." + }, + "instance_class": { + "$ref": "#/definitions/TaskExecutionMetadataInstanceClass" + } + }, + "description": "Holds metadata around how a task was executed.\nAs a task transitions across event phases during execution some attributes, such its generated name, generated external resources,\nand more may grow in size but not change necessarily based on the phase transition that sparked the event update.\nMetadata is a container for these attributes across the task execution lifecycle." + }, + "flyteidleventTaskNodeMetadata": { + "type": "object", + "properties": { + "cache_status": { + "$ref": "#/definitions/coreCatalogCacheStatus", + "description": "Captures the status of caching for this execution." + }, + "catalog_key": { + "$ref": "#/definitions/coreCatalogMetadata", + "title": "This structure carries the catalog artifact information" + }, + "reservation_status": { + "$ref": "#/definitions/coreCatalogReservationStatus", + "description": "Captures the status of cache reservations for this execution." + }, + "checkpoint_uri": { + "type": "string", + "title": "The latest checkpoint location" + }, + "dynamic_workflow": { + "$ref": "#/definitions/flyteidleventDynamicWorkflowNodeMetadata", + "description": "In the case this task launched a dynamic workflow we capture its structure here." + } + } + }, + "flyteidleventWorkflowNodeMetadata": { + "type": "object", + "properties": { + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "title": "For Workflow Nodes we need to send information about the workflow that's launched" + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go new file mode 100644 index 0000000000..2256d6f411 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go @@ -0,0 +1,1110 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/agent.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + extAdmin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_SyncAgentService_ExecuteTaskSync_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.SyncAgentService_ExecuteTaskSyncClient, runtime.ServerMetadata, error) { + var metadata runtime.ServerMetadata + stream, err := client.ExecuteTaskSync(ctx) + if err != nil { + grpclog.Infof("Failed to start streaming: %v", err) + return nil, metadata, err + } + dec := marshaler.NewDecoder(req.Body) + handleSend := func() error { + var protoReq extAdmin.ExecuteTaskSyncRequest + err := dec.Decode(&protoReq) + if err == io.EOF { + return err + } + if err != nil { + grpclog.Infof("Failed to decode request: %v", err) + return err + } + if err := stream.Send(&protoReq); err != nil { + grpclog.Infof("Failed to send request: %v", err) + return err + } + return nil + } + go func() { + for { + if err := handleSend(); err != nil { + break + } + } + if err := stream.CloseSend(); err != nil { + grpclog.Infof("Failed to terminate client stream: %v", err) + } + }() + header, err := stream.Header() + if err != nil { + grpclog.Infof("Failed to get header from client: %v", err) + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil +} + +func request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.CreateTaskRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.CreateTaskRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_DeleteTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DeleteTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_DeleteTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.DeleteTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.DeleteTaskRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_DeleteTask_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.DeleteTask(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_GetTaskMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetTaskMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AsyncAgentServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskMetricsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskMetrics_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetTaskMetrics(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_AsyncAgentService_GetTaskLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} +) + +func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.AsyncAgentService_GetTaskLogsClient, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetTaskLogsRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["task_type.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + } + + val, ok = pathParams["task_type.version"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + } + + val, ok = pathParams["resource_meta"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_meta") + } + + protoReq.ResourceMeta, err = runtime.Bytes(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_meta", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AsyncAgentService_GetTaskLogs_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + stream, err := client.GetTaskLogs(ctx, &protoReq) + if err != nil { + return nil, metadata, err + } + header, err := stream.Header() + if err != nil { + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil + +} + +func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetAgentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AgentMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.GetAgentRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.GetAgent(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AgentMetadataService_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ListAgentsRequest + var metadata runtime.ServerMetadata + + msg, err := client.ListAgents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AgentMetadataService_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AgentMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.ListAgentsRequest + var metadata runtime.ServerMetadata + + msg, err := server.ListAgents(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterSyncAgentServiceHandlerServer registers the http handlers for service SyncAgentService to "mux". +// UnaryRPC :call SyncAgentServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSyncAgentServiceHandlerFromEndpoint instead. +func RegisterSyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.SyncAgentServiceServer) error { + + mux.Handle("POST", pattern_SyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + return nil +} + +// RegisterAsyncAgentServiceHandlerServer registers the http handlers for service AsyncAgentService to "mux". +// UnaryRPC :call AsyncAgentServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAsyncAgentServiceHandlerFromEndpoint instead. +func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AsyncAgentServiceServer) error { + + mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/agent/task")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_CreateTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_GetTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AsyncAgentService_DeleteTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_DeleteTask_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_DeleteTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AsyncAgentService_GetTaskMetrics_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTaskMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + return nil +} + +// RegisterAgentMetadataServiceHandlerServer registers the http handlers for service AgentMetadataService to "mux". +// UnaryRPC :call AgentMetadataServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAgentMetadataServiceHandlerFromEndpoint instead. +func RegisterAgentMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AgentMetadataServiceServer) error { + + mux.Handle("GET", pattern_AgentMetadataService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AgentMetadataService_GetAgent_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AgentMetadataService_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AgentMetadataService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/ListAgents", runtime.WithHTTPPathPattern("/api/v1/agents")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AgentMetadataService_ListAgents_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AgentMetadataService_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterSyncAgentServiceHandlerFromEndpoint is same as RegisterSyncAgentServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterSyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterSyncAgentServiceHandler(ctx, mux, conn) +} + +// RegisterSyncAgentServiceHandler registers the http handlers for service SyncAgentService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterSyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterSyncAgentServiceHandlerClient(ctx, mux, extService.NewSyncAgentServiceClient(conn)) +} + +// RegisterSyncAgentServiceHandlerClient registers the http handlers for service SyncAgentService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.SyncAgentServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.SyncAgentServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.SyncAgentServiceClient" to call the correct interceptors. +func RegisterSyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.SyncAgentServiceClient) error { + + mux.Handle("POST", pattern_SyncAgentService_ExecuteTaskSync_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SyncAgentService/ExecuteTaskSync", runtime.WithHTTPPathPattern("/api/v1/agent/task/stream")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SyncAgentService_ExecuteTaskSync_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SyncAgentService_ExecuteTaskSync_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_SyncAgentService_ExecuteTaskSync_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"api", "v1", "agent", "task", "stream"}, "")) +) + +var ( + forward_SyncAgentService_ExecuteTaskSync_0 = runtime.ForwardResponseStream +) + +// RegisterAsyncAgentServiceHandlerFromEndpoint is same as RegisterAsyncAgentServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAsyncAgentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAsyncAgentServiceHandler(ctx, mux, conn) +} + +// RegisterAsyncAgentServiceHandler registers the http handlers for service AsyncAgentService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAsyncAgentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAsyncAgentServiceHandlerClient(ctx, mux, extService.NewAsyncAgentServiceClient(conn)) +} + +// RegisterAsyncAgentServiceHandlerClient registers the http handlers for service AsyncAgentService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AsyncAgentServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AsyncAgentServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.AsyncAgentServiceClient" to call the correct interceptors. +func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AsyncAgentServiceClient) error { + + mux.Handle("POST", pattern_AsyncAgentService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/CreateTask", runtime.WithHTTPPathPattern("/api/v1/agent/task")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_CreateTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_CreateTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_GetTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("DELETE", pattern_AsyncAgentService_DeleteTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_DeleteTask_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_DeleteTask_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_GetTaskMetrics_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTaskMetrics_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AsyncAgentService_GetTaskLogs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskLogs", runtime.WithHTTPPathPattern("/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AsyncAgentService_GetTaskLogs_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AsyncAgentService_GetTaskLogs_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AsyncAgentService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "agent", "task"}, "")) + + pattern_AsyncAgentService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task", "task_type.name", "task_type.version", "resource_meta"}, "")) + + pattern_AsyncAgentService_DeleteTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task_executions", "task_type.name", "task_type.version", "resource_meta"}, "")) + + pattern_AsyncAgentService_GetTaskMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "metrics", "task_type.name", "task_type.version", "resource_meta"}, "")) + + pattern_AsyncAgentService_GetTaskLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "logs", "task_type.name", "task_type.version", "resource_meta"}, "")) +) + +var ( + forward_AsyncAgentService_CreateTask_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_GetTask_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_DeleteTask_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_GetTaskMetrics_0 = runtime.ForwardResponseMessage + + forward_AsyncAgentService_GetTaskLogs_0 = runtime.ForwardResponseStream +) + +// RegisterAgentMetadataServiceHandlerFromEndpoint is same as RegisterAgentMetadataServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAgentMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAgentMetadataServiceHandler(ctx, mux, conn) +} + +// RegisterAgentMetadataServiceHandler registers the http handlers for service AgentMetadataService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAgentMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAgentMetadataServiceHandlerClient(ctx, mux, extService.NewAgentMetadataServiceClient(conn)) +} + +// RegisterAgentMetadataServiceHandlerClient registers the http handlers for service AgentMetadataService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AgentMetadataServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AgentMetadataServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.AgentMetadataServiceClient" to call the correct interceptors. +func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AgentMetadataServiceClient) error { + + mux.Handle("GET", pattern_AgentMetadataService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/GetAgent", runtime.WithHTTPPathPattern("/api/v1/agent/{name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AgentMetadataService_GetAgent_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AgentMetadataService_GetAgent_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AgentMetadataService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AgentMetadataService/ListAgents", runtime.WithHTTPPathPattern("/api/v1/agents")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AgentMetadataService_ListAgents_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AgentMetadataService_ListAgents_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "agent", "name"}, "")) + + pattern_AgentMetadataService_ListAgents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "agents"}, "")) +) + +var ( + forward_AgentMetadataService_GetAgent_0 = runtime.ForwardResponseMessage + + forward_AgentMetadataService_ListAgents_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json new file mode 100644 index 0000000000..7c410a2292 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -0,0 +1,2121 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/agent.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "SyncAgentService" + }, + { + "name": "AsyncAgentService" + }, + { + "name": "AgentMetadataService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/agent/task": { + "post": { + "summary": "CreateTask sends a task create request to the agent service.", + "operationId": "AsyncAgentService_CreateTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminCreateTaskResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "Represents a request structure to create task.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminCreateTaskRequest" + } + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}": { + "get": { + "summary": "GetTaskLogs returns task execution logs, if available.", + "operationId": "AsyncAgentService_GetTaskLogs", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/adminGetTaskLogsResponse" + }, + "error": { + "$ref": "#/definitions/googlerpcStatus" + } + }, + "title": "Stream result of adminGetTaskLogsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "lines", + "description": "Number of lines to return.", + "in": "query", + "required": false, + "type": "string", + "format": "uint64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}": { + "get": { + "summary": "GetTaskMetrics returns one or more task execution metrics, if available.", + "description": "Errors include\n * OutOfRange if metrics are not available for the specified task time range\n * various other errors", + "operationId": "AsyncAgentService_GetTaskMetrics", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetTaskMetricsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "queries", + "description": "The metrics to query. If empty, will return a default set of metrics.\ne.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG", + "in": "query", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "multi" + }, + { + "name": "start_time", + "description": "Start timestamp, inclusive.", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "end_time", + "description": "End timestamp, inclusive..", + "in": "query", + "required": false, + "type": "string", + "format": "date-time" + }, + { + "name": "step", + "description": "Query resolution step width in duration format or float number of seconds.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task/stream": { + "post": { + "summary": "ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.", + "operationId": "SyncAgentService_ExecuteTaskSync", + "responses": { + "200": { + "description": "A successful response.(streaming responses)", + "schema": { + "type": "object", + "properties": { + "result": { + "$ref": "#/definitions/adminExecuteTaskSyncResponse" + }, + "error": { + "$ref": "#/definitions/googlerpcStatus" + } + }, + "title": "Stream result of adminExecuteTaskSyncResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": " (streaming inputs)", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminExecuteTaskSyncRequest" + } + } + ], + "tags": [ + "SyncAgentService" + ] + } + }, + "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}": { + "get": { + "summary": "Get job status.", + "operationId": "AsyncAgentService_GetTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetTaskResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata about the resource to be pass to the agent.", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}": { + "delete": { + "summary": "Delete the task resource.", + "operationId": "AsyncAgentService_DeleteTask", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDeleteTaskResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "task_type.name", + "description": "The name of the task type.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_type.version", + "description": "The version of the task type.", + "in": "path", + "required": true, + "type": "integer", + "format": "int32" + }, + { + "name": "resource_meta", + "description": "Metadata about the resource to be pass to the agent.", + "in": "path", + "required": true, + "type": "string", + "format": "byte" + }, + { + "name": "deprecated_task_type", + "description": "A predefined yet extensible Task type identifier.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AsyncAgentService" + ] + } + }, + "/api/v1/agent/{name}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.Agent` definition.", + "operationId": "AgentMetadataService_GetAgent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminGetAgentResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "The name of the agent.", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "AgentMetadataService" + ] + } + }, + "/api/v1/agents": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions.", + "operationId": "AgentMetadataService_ListAgents", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminListAgentsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "AgentMetadataService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "ContainerArchitecture": { + "type": "string", + "enum": [ + "UNKNOWN", + "AMD64", + "ARM64", + "ARM_V6", + "ARM_V7" + ], + "default": "UNKNOWN", + "description": "Architecture-type the container image supports." + }, + "DataLoadingConfigLiteralMapFormat": { + "type": "string", + "enum": [ + "JSON", + "YAML", + "PROTO" + ], + "default": "JSON", + "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", + "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" + }, + "IOStrategyDownloadMode": { + "type": "string", + "enum": [ + "DOWNLOAD_EAGER", + "DOWNLOAD_STREAM", + "DO_NOT_DOWNLOAD" + ], + "default": "DOWNLOAD_EAGER", + "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", + "title": "Mode to use for downloading" + }, + "IOStrategyUploadMode": { + "type": "string", + "enum": [ + "UPLOAD_ON_EXIT", + "UPLOAD_EAGER", + "DO_NOT_UPLOAD" + ], + "default": "UPLOAD_ON_EXIT", + "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", + "title": "Mode to use for uploading" + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE", + "EPHEMERAL_STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SecretMountType": { + "type": "string", + "enum": [ + "ANY", + "ENV_VAR", + "FILE" + ], + "default": "ANY", + "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." + }, + "SqlDialect": { + "type": "string", + "enum": [ + "UNDEFINED", + "ANSI", + "HIVE", + "OTHER" + ], + "default": "UNDEFINED", + "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "TaskLogMessageFormat": { + "type": "string", + "enum": [ + "UNKNOWN", + "CSV", + "JSON" + ], + "default": "UNKNOWN" + }, + "adminAgent": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name is the developer-assigned name of the agent." + }, + "deprecated_supported_task_types": { + "type": "array", + "items": { + "type": "string" + }, + "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." + }, + "is_sync": { + "type": "boolean", + "description": "IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their\nresults synchronously when called by propeller. Given that sync agents can affect the performance\nof the system, it's important to enforce strict timeout policies.\nAn Async agent, on the other hand, is required to be able to identify jobs by an\nidentifier and query for job statuses as jobs progress." + }, + "supported_task_types": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminTaskType" + }, + "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." + } + }, + "description": "A message containing the agent metadata." + }, + "adminCreateRequestHeader": { + "type": "object", + "properties": { + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + }, + "output_prefix": { + "type": "string", + "title": "Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)" + }, + "task_execution_metadata": { + "$ref": "#/definitions/flyteidladminTaskExecutionMetadata", + "description": "subset of runtime task execution metadata." + }, + "max_dataset_size_bytes": { + "type": "string", + "format": "int64", + "description": "MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task." + } + } + }, + "adminCreateTaskRequest": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" + }, + "template": { + "$ref": "#/definitions/coreTaskTemplate", + "description": "Template of the task that encapsulates all the metadata of the task." + }, + "output_prefix": { + "type": "string", + "title": "Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)" + }, + "task_execution_metadata": { + "$ref": "#/definitions/flyteidladminTaskExecutionMetadata", + "description": "subset of runtime task execution metadata." + } + }, + "description": "Represents a request structure to create task." + }, + "adminCreateTaskResponse": { + "type": "object", + "properties": { + "resource_meta": { + "type": "string", + "format": "byte", + "description": "ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata)." + } + }, + "description": "Represents a create response structure." + }, + "adminDeleteTaskResponse": { + "type": "object", + "description": "Response to delete a task." + }, + "adminExecuteTaskSyncRequest": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/adminCreateRequestHeader" + }, + "inputs": { + "$ref": "#/definitions/coreLiteralMap" + } + } + }, + "adminExecuteTaskSyncResponse": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/adminExecuteTaskSyncResponseHeader" + }, + "outputs": { + "$ref": "#/definitions/coreLiteralMap" + } + } + }, + "adminExecuteTaskSyncResponseHeader": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/definitions/adminResource" + } + } + }, + "adminGetAgentResponse": { + "type": "object", + "properties": { + "agent": { + "$ref": "#/definitions/adminAgent" + } + }, + "description": "A response containing an agent." + }, + "adminGetTaskLogsResponse": { + "type": "object", + "properties": { + "header": { + "$ref": "#/definitions/adminGetTaskLogsResponseHeader" + }, + "body": { + "$ref": "#/definitions/adminGetTaskLogsResponseBody" + } + }, + "description": "A response containing the logs for a task execution." + }, + "adminGetTaskLogsResponseBody": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The execution log results." + } + } + }, + "adminGetTaskLogsResponseHeader": { + "type": "object", + "properties": { + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + } + }, + "adminGetTaskMetricsResponse": { + "type": "object", + "properties": { + "results": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreExecutionMetricResult" + }, + "description": "The execution metric results." + } + }, + "description": "A response containing a list of metrics for a task execution." + }, + "adminGetTaskResponse": { + "type": "object", + "properties": { + "resource": { + "$ref": "#/definitions/adminResource" + } + }, + "description": "Response to get an individual task resource." + }, + "adminListAgentsResponse": { + "type": "object", + "properties": { + "agents": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminAgent" + } + } + }, + "description": "A response containing a list of agents." + }, + "adminResource": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/flyteidladminState", + "description": "DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI." + }, + "outputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The outputs of the execution. It's typically used by sql task. Agent service will create a\nStructured dataset pointing to the query result table.\n+optional" + }, + "message": { + "type": "string", + "description": "A descriptive message for the current state. e.g. waiting for cluster." + }, + "log_links": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreTaskLog" + }, + "description": "log information for the task execution." + }, + "phase": { + "$ref": "#/definitions/coreTaskExecutionPhase", + "description": "The phase of the execution is used to determine the phase of the plugin's execution." + }, + "custom_info": { + "type": "object", + "description": "Custom data specific to the agent." + } + } + }, + "adminTaskType": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the task type." + }, + "version": { + "type": "integer", + "format": "int32", + "description": "The version of the task type." + } + } + }, + "coreArtifactBindingData": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int64" + }, + "partition_key": { + "type": "string" + }, + "bind_to_time_partition": { + "type": "boolean" + }, + "transform": { + "type": "string", + "title": "This is only relevant in the time partition case" + } + }, + "title": "Only valid for triggers" + }, + "coreArtifactID": { + "type": "object", + "properties": { + "artifact_key": { + "$ref": "#/definitions/coreArtifactKey" + }, + "version": { + "type": "string" + }, + "partitions": { + "$ref": "#/definitions/corePartitions", + "description": "Think of a partition as a tag on an Artifact, except it's a key-value pair.\nDifferent partitions naturally have different versions (execution ids)." + }, + "time_partition": { + "$ref": "#/definitions/coreTimePartition", + "description": "There is no such thing as an empty time partition - if it's not set, then there is no time partition." + } + } + }, + "coreArtifactKey": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Project and domain and suffix needs to be unique across a given artifact store." + }, + "domain": { + "type": "string" + }, + "name": { + "type": "string" + }, + "org": { + "type": "string" + } + } + }, + "coreArtifactTag": { + "type": "object", + "properties": { + "artifact_key": { + "$ref": "#/definitions/coreArtifactKey" + }, + "value": { + "$ref": "#/definitions/coreLabelValue" + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." + }, + "ports": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + }, + "architecture": { + "$ref": "#/definitions/ContainerArchitecture" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreDataLoadingConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + }, + "input_path": { + "type": "string", + "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" + }, + "output_path": { + "type": "string", + "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + }, + "format": { + "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", + "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + }, + "io_strategy": { + "$ref": "#/definitions/coreIOStrategy" + } + }, + "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreExecutionMetricResult": { + "type": "object", + "properties": { + "metric": { + "type": "string", + "description": "The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG." + }, + "data": { + "type": "object", + "title": "The result data in prometheus range query result format\nhttps://prometheus.io/docs/prometheus/latest/querying/api/#expression-query-result-formats.\nThis may include multiple time series, differentiated by their metric labels.\nStart time is greater of (execution attempt start, 48h ago)\nEnd time is lesser of (execution attempt end, now)" + } + }, + "description": "ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task." + }, + "coreExtendedResources": { + "type": "object", + "properties": { + "gpu_accelerator": { + "$ref": "#/definitions/coreGPUAccelerator", + "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." + } + }, + "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." + }, + "coreGPUAccelerator": { + "type": "object", + "properties": { + "device": { + "type": "string", + "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." + }, + "unpartitioned": { + "type": "boolean" + }, + "partition_size": { + "type": "string", + "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." + } + }, + "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." + }, + "coreIOStrategy": { + "type": "object", + "properties": { + "download_mode": { + "$ref": "#/definitions/IOStrategyDownloadMode", + "title": "Mode to use to manage downloads" + }, + "upload_mode": { + "$ref": "#/definitions/IOStrategyUploadMode", + "title": "Mode to use to manage uploads" + } + }, + "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIdentity": { + "type": "object", + "properties": { + "iam_role": { + "type": "string", + "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." + }, + "k8s_service_account": { + "type": "string", + "description": "k8s_service_account references a kubernetes service account to impersonate." + }, + "oauth2_client": { + "$ref": "#/definitions/coreOAuth2Client", + "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." + }, + "execution_identity": { + "type": "string", + "title": "execution_identity references the subject who makes the execution" + } + }, + "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." + }, + "coreInputBindingData": { + "type": "object", + "properties": { + "var": { + "type": "string" + } + } + }, + "coreK8sObjectMetadata": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels to add to the pod definition." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional annotations to add to the pod definition." + } + }, + "description": "Metadata for building a kubernetes object when a task is executed." + }, + "coreK8sPod": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreK8sObjectMetadata", + "description": "Contains additional metadata for building a kubernetes pod." + }, + "pod_spec": { + "type": "object", + "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + } + }, + "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." + }, + "coreLabelValue": { + "type": "object", + "properties": { + "static_value": { + "type": "string", + "title": "The string static value is for use in the Partitions object" + }, + "time_value": { + "type": "string", + "format": "date-time", + "title": "The time value is for use in the TimePartition case" + }, + "triggered_binding": { + "$ref": "#/definitions/coreArtifactBindingData" + }, + "input_binding": { + "$ref": "#/definitions/coreInputBindingData" + } + } + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata for literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/flyteidlcoreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "type": "object", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "coreOAuth2Client": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" + }, + "client_secret": { + "$ref": "#/definitions/coreSecret", + "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" + } + }, + "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." + }, + "coreOAuth2TokenRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" + }, + "type": { + "$ref": "#/definitions/coreOAuth2TokenRequestType", + "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" + }, + "client": { + "$ref": "#/definitions/coreOAuth2Client", + "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" + }, + "idp_discovery_endpoint": { + "type": "string", + "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" + }, + "token_endpoint": { + "type": "string", + "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" + } + }, + "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." + }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, + "corePartitions": { + "type": "object", + "properties": { + "value": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLabelValue" + } + } + } + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is loosely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "type": "object" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSecret": { + "type": "object", + "properties": { + "group": { + "type": "string", + "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" + }, + "group_version": { + "type": "string", + "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + }, + "key": { + "type": "string", + "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" + }, + "mount_requirement": { + "$ref": "#/definitions/SecretMountType", + "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" + } + }, + "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." + }, + "coreSecurityContext": { + "type": "object", + "properties": { + "run_as": { + "$ref": "#/definitions/coreIdentity", + "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." + }, + "secrets": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreSecret" + }, + "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + }, + "tokens": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreOAuth2TokenRequest" + }, + "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + } + }, + "description": "SecurityContext holds security attributes that apply to tasks." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreSql": { + "type": "object", + "properties": { + "statement": { + "type": "string", + "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + }, + "dialect": { + "$ref": "#/definitions/SqlDialect" + } + }, + "description": "Sql represents a generic sql workload with a statement and dialect." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTaskExecutionIdentifier": { + "type": "object", + "properties": { + "task_id": { + "$ref": "#/definitions/coreIdentifier" + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier" + }, + "retry_attempt": { + "type": "integer", + "format": "int64" + } + }, + "description": "Encapsulation of fields that identify a Flyte task execution entity." + }, + "coreTaskExecutionPhase": { + "type": "string", + "enum": [ + "UNDEFINED", + "QUEUED", + "RUNNING", + "SUCCEEDED", + "ABORTED", + "FAILED", + "INITIALIZING", + "WAITING_FOR_RESOURCES" + ], + "default": "UNDEFINED", + "title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" + }, + "coreTaskLog": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "name": { + "type": "string" + }, + "message_format": { + "$ref": "#/definitions/TaskLogMessageFormat" + }, + "ttl": { + "type": "string" + } + }, + "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + }, + "interruptible": { + "type": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "description": "Indicates whether the task will generate a Deck URI when it finishes executing." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + }, + "pod_template_name": { + "type": "string", + "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + }, + "cache_ignore_input_vars": { + "type": "array", + "items": { + "type": "string" + }, + "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." + } + }, + "title": "Task Metadata" + }, + "coreTaskNodeOverrides": { + "type": "object", + "properties": { + "resources": { + "$ref": "#/definitions/coreResources", + "description": "A customizable interface to convey resources requested for a task container." + }, + "extended_resources": { + "$ref": "#/definitions/coreExtendedResources", + "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + } + }, + "description": "Optional task node overrides that will be applied at task execution time." + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "type": "object", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + }, + "k8s_pod": { + "$ref": "#/definitions/coreK8sPod" + }, + "sql": { + "$ref": "#/definitions/coreSql" + }, + "task_type_version": { + "type": "integer", + "format": "int32", + "description": "This can be used to customize task handling at execution time for the same task type." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "security_context encapsulates security attributes requested to run this task." + }, + "extended_resources": { + "$ref": "#/definitions/coreExtendedResources", + "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTimePartition": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLabelValue" + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + }, + "dataclass_type": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteralType" + }, + "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + }, + "artifact_partial_id": { + "$ref": "#/definitions/coreArtifactID", + "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." + }, + "artifact_tag": { + "$ref": "#/definitions/coreArtifactTag" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "flyteidladminState": { + "type": "string", + "enum": [ + "RETRYABLE_FAILURE", + "PERMANENT_FAILURE", + "PENDING", + "RUNNING", + "SUCCEEDED" + ], + "default": "RETRYABLE_FAILURE", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "flyteidladminTaskExecutionMetadata": { + "type": "object", + "properties": { + "task_execution_id": { + "$ref": "#/definitions/coreTaskExecutionIdentifier", + "title": "ID of the task execution" + }, + "namespace": { + "type": "string", + "title": "k8s namespace where the task is executed in" + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Labels attached to the task execution" + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Annotations attached to the task execution" + }, + "k8s_service_account": { + "type": "string", + "title": "k8s service account associated with the task execution" + }, + "environment_variables": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Environment variables attached to the task execution" + }, + "max_attempts": { + "type": "integer", + "format": "int32" + }, + "interruptible": { + "type": "boolean" + }, + "interruptible_failure_threshold": { + "type": "integer", + "format": "int32" + }, + "overrides": { + "$ref": "#/definitions/coreTaskNodeOverrides" + } + }, + "description": "Represents a subset of runtime task execution metadata that are relevant to external plugins." + }, + "flyteidlcoreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "flyteidlcoreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go new file mode 100644 index 0000000000..9220cc3e68 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.pb.gw.go @@ -0,0 +1,225 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/auth.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_AuthMetadataService_GetOAuth2Metadata_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.OAuth2MetadataRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetOAuth2Metadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AuthMetadataService_GetOAuth2Metadata_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AuthMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.OAuth2MetadataRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetOAuth2Metadata(ctx, &protoReq) + return msg, metadata, err + +} + +func request_AuthMetadataService_GetPublicClientConfig_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.PublicClientAuthConfigRequest + var metadata runtime.ServerMetadata + + msg, err := client.GetPublicClientConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_AuthMetadataService_GetPublicClientConfig_0(ctx context.Context, marshaler runtime.Marshaler, server extService.AuthMetadataServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.PublicClientAuthConfigRequest + var metadata runtime.ServerMetadata + + msg, err := server.GetPublicClientConfig(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterAuthMetadataServiceHandlerServer registers the http handlers for service AuthMetadataService to "mux". +// UnaryRPC :call AuthMetadataServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthMetadataServiceHandlerFromEndpoint instead. +func RegisterAuthMetadataServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.AuthMetadataServiceServer) error { + + mux.Handle("GET", pattern_AuthMetadataService_GetOAuth2Metadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", runtime.WithHTTPPathPattern("/.well-known/oauth-authorization-server")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AuthMetadataService_GetPublicClientConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", runtime.WithHTTPPathPattern("/config/v1/flyte_client")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterAuthMetadataServiceHandlerFromEndpoint is same as RegisterAuthMetadataServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterAuthMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterAuthMetadataServiceHandler(ctx, mux, conn) +} + +// RegisterAuthMetadataServiceHandler registers the http handlers for service AuthMetadataService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterAuthMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterAuthMetadataServiceHandlerClient(ctx, mux, extService.NewAuthMetadataServiceClient(conn)) +} + +// RegisterAuthMetadataServiceHandlerClient registers the http handlers for service AuthMetadataService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.AuthMetadataServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.AuthMetadataServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.AuthMetadataServiceClient" to call the correct interceptors. +func RegisterAuthMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.AuthMetadataServiceClient) error { + + mux.Handle("GET", pattern_AuthMetadataService_GetOAuth2Metadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", runtime.WithHTTPPathPattern("/.well-known/oauth-authorization-server")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AuthMetadataService_GetOAuth2Metadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_AuthMetadataService_GetPublicClientConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", runtime.WithHTTPPathPattern("/config/v1/flyte_client")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_AuthMetadataService_GetPublicClientConfig_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_AuthMetadataService_GetOAuth2Metadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{".well-known", "oauth-authorization-server"}, "")) + + pattern_AuthMetadataService_GetPublicClientConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"config", "v1", "flyte_client"}, "")) +) + +var ( + forward_AuthMetadataService_GetOAuth2Metadata_0 = runtime.ForwardResponseMessage + + forward_AuthMetadataService_GetPublicClientConfig_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json new file mode 100644 index 0000000000..1114b7c73f --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/auth.swagger.json @@ -0,0 +1,194 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/auth.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "AuthMetadataService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/.well-known/oauth-authorization-server": { + "get": { + "summary": "Anonymously accessible. Retrieves local or external oauth authorization server metadata.", + "description": "Retrieves OAuth2 authorization server metadata. This endpoint is anonymously accessible.", + "operationId": "AuthMetadataService_GetOAuth2Metadata", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceOAuth2MetadataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "AuthMetadataService" + ] + } + }, + "/config/v1/flyte_client": { + "get": { + "summary": "Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization\nrequests.", + "description": "Retrieves public flyte client info. This endpoint is anonymously accessible.", + "operationId": "AuthMetadataService_GetPublicClientConfig", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/servicePublicClientAuthConfigResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "AuthMetadataService" + ] + } + } + }, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "serviceOAuth2MetadataResponse": { + "type": "object", + "properties": { + "issuer": { + "type": "string", + "description": "Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external\nissuer." + }, + "authorization_endpoint": { + "type": "string", + "description": "URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are\nsupported that use the authorization endpoint." + }, + "token_endpoint": { + "type": "string", + "description": "URL of the authorization server's token endpoint [RFC6749]." + }, + "response_types_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array containing a list of the OAuth 2.0 response_type values that this authorization server supports." + }, + "scopes_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports." + }, + "token_endpoint_auth_methods_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of client authentication methods supported by this token endpoint." + }, + "jwks_uri": { + "type": "string", + "description": "URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the\nclient uses to validate signatures from the authorization server." + }, + "code_challenge_methods_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by\nthis authorization server." + }, + "grant_types_supported": { + "type": "array", + "items": { + "type": "string" + }, + "description": "JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports." + }, + "device_authorization_endpoint": { + "type": "string", + "title": "URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]" + } + }, + "title": "OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata\nas defined in https://tools.ietf.org/html/rfc8414" + }, + "servicePublicClientAuthConfigResponse": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "description": "client_id to use when initiating OAuth2 authorization requests." + }, + "redirect_uri": { + "type": "string", + "description": "redirect uri to use when initiating OAuth2 authorization requests." + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "scopes to request when initiating OAuth2 authorization requests." + }, + "authorization_metadata_key": { + "type": "string", + "description": "Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the\ndefault http `Authorization` header." + }, + "service_http_endpoint": { + "type": "string", + "description": "ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used\nto configure the gRPC connection can be used for the http one respecting the insecure flag to choose between\nSSL or no SSL connections." + }, + "audience": { + "type": "string", + "description": "audience to use when initiating OAuth2 authorization requests." + } + }, + "description": "FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users." + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go new file mode 100644 index 0000000000..37c447ad9a --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.pb.gw.go @@ -0,0 +1,431 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/dataproxy.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_DataProxyService_CreateUploadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.CreateUploadLocationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateUploadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_DataProxyService_CreateUploadLocation_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.CreateUploadLocationRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateUploadLocation(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_DataProxyService_CreateDownloadLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_DataProxyService_CreateDownloadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.CreateDownloadLocationRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_CreateDownloadLocation_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateDownloadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_DataProxyService_CreateDownloadLocation_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.CreateDownloadLocationRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_CreateDownloadLocation_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateDownloadLocation(ctx, &protoReq) + return msg, metadata, err + +} + +func request_DataProxyService_CreateDownloadLink_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.CreateDownloadLinkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CreateDownloadLink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_DataProxyService_CreateDownloadLink_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.CreateDownloadLinkRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CreateDownloadLink(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_DataProxyService_GetData_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_DataProxyService_GetData_0(ctx context.Context, marshaler runtime.Marshaler, client extService.DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.GetDataRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_GetData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_DataProxyService_GetData_0(ctx context.Context, marshaler runtime.Marshaler, server extService.DataProxyServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.GetDataRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_GetData_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetData(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterDataProxyServiceHandlerServer registers the http handlers for service DataProxyService to "mux". +// UnaryRPC :call DataProxyServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDataProxyServiceHandlerFromEndpoint instead. +func RegisterDataProxyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.DataProxyServiceServer) error { + + mux.Handle("POST", pattern_DataProxyService_CreateUploadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateUploadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_DataProxyService_CreateUploadLocation_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateUploadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_DataProxyService_CreateDownloadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_DataProxyService_CreateDownloadLocation_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateDownloadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_DataProxyService_CreateDownloadLink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLink", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_link")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_DataProxyService_CreateDownloadLink_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateDownloadLink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_DataProxyService_GetData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.DataProxyService/GetData", runtime.WithHTTPPathPattern("/api/v1/data")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_DataProxyService_GetData_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_GetData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterDataProxyServiceHandlerFromEndpoint is same as RegisterDataProxyServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterDataProxyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterDataProxyServiceHandler(ctx, mux, conn) +} + +// RegisterDataProxyServiceHandler registers the http handlers for service DataProxyService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterDataProxyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterDataProxyServiceHandlerClient(ctx, mux, extService.NewDataProxyServiceClient(conn)) +} + +// RegisterDataProxyServiceHandlerClient registers the http handlers for service DataProxyService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.DataProxyServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.DataProxyServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.DataProxyServiceClient" to call the correct interceptors. +func RegisterDataProxyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.DataProxyServiceClient) error { + + mux.Handle("POST", pattern_DataProxyService_CreateUploadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateUploadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_DataProxyService_CreateUploadLocation_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateUploadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_DataProxyService_CreateDownloadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLocation", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_urn")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_DataProxyService_CreateDownloadLocation_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateDownloadLocation_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_DataProxyService_CreateDownloadLink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/CreateDownloadLink", runtime.WithHTTPPathPattern("/api/v1/dataproxy/artifact_link")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_DataProxyService_CreateDownloadLink_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_CreateDownloadLink_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_DataProxyService_GetData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.DataProxyService/GetData", runtime.WithHTTPPathPattern("/api/v1/data")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_DataProxyService_GetData_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_DataProxyService_GetData_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_DataProxyService_CreateUploadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) + + pattern_DataProxyService_CreateDownloadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) + + pattern_DataProxyService_CreateDownloadLink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_link"}, "")) + + pattern_DataProxyService_GetData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "data"}, "")) +) + +var ( + forward_DataProxyService_CreateUploadLocation_0 = runtime.ForwardResponseMessage + + forward_DataProxyService_CreateDownloadLocation_0 = runtime.ForwardResponseMessage + + forward_DataProxyService_CreateDownloadLink_0 = runtime.ForwardResponseMessage + + forward_DataProxyService_GetData_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json new file mode 100644 index 0000000000..e23e22df70 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/dataproxy.swagger.json @@ -0,0 +1,809 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/dataproxy.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "DataProxyService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/data": { + "get": { + "operationId": "DataProxyService_GetData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "flyte_url", + "description": "A unique identifier in the form of flyte://\u003csomething\u003e that uniquely, for a given Flyte\nbackend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).\ne.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)\n flyte://v1/proj/development/execid/n2/i (for node execution input)\n flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "DataProxyService" + ] + } + }, + "/api/v1/dataproxy/artifact_link": { + "post": { + "summary": "CreateDownloadLocation creates a signed url to download artifacts.", + "description": "Creates a read-only http location that is accessible for tasks at runtime.", + "operationId": "DataProxyService_CreateDownloadLink", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceCreateDownloadLinkResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/serviceCreateDownloadLinkRequest" + } + } + ], + "tags": [ + "DataProxyService" + ] + } + }, + "/api/v1/dataproxy/artifact_urn": { + "get": { + "summary": "CreateDownloadLocation creates a signed url to download artifacts.", + "description": "Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime.", + "operationId": "DataProxyService_CreateDownloadLocation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceCreateDownloadLocationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "native_url", + "description": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "expires_in", + "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "DataProxyService" + ] + }, + "post": { + "summary": "CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain.", + "description": "Creates a write-only http location that is accessible for tasks at runtime.", + "operationId": "DataProxyService_CreateUploadLocation", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceCreateUploadLocationResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "CreateUploadLocationRequest specified request for the CreateUploadLocation API.\nThe implementation in data proxy service will create the s3 location with some server side configured prefixes,\nand then:\n - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR\n - project/domain/filename_root (if present)/filename (if present).", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/serviceCreateUploadLocationRequest" + } + } + ], + "tags": [ + "DataProxyService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata for literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/flyteidlcoreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "type": "object", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreNodeExecutionIdentifier": { + "type": "object", + "properties": { + "node_id": { + "type": "string" + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier" + } + }, + "description": "Encapsulation of fields that identify a Flyte node execution entity." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "type": "object" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + }, + "dataclass_type": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteralType" + }, + "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "flyteidlcoreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "serviceArtifactType": { + "type": "string", + "enum": [ + "ARTIFACT_TYPE_UNDEFINED", + "ARTIFACT_TYPE_DECK" + ], + "default": "ARTIFACT_TYPE_UNDEFINED", + "description": "- ARTIFACT_TYPE_UNDEFINED: ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.\n - ARTIFACT_TYPE_DECK: ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan\nfinishes executing.", + "title": "ArtifactType" + }, + "serviceCreateDownloadLinkRequest": { + "type": "object", + "properties": { + "artifact_type": { + "$ref": "#/definitions/serviceArtifactType", + "description": "ArtifactType of the artifact requested." + }, + "expires_in": { + "type": "string", + "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." + }, + "node_execution_id": { + "$ref": "#/definitions/coreNodeExecutionIdentifier", + "description": "NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the\nmost recent attempt of the task." + } + }, + "title": "CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)" + }, + "serviceCreateDownloadLinkResponse": { + "type": "object", + "properties": { + "signed_url": { + "type": "array", + "items": { + "type": "string" + }, + "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expire." + }, + "pre_signed_urls": { + "$ref": "#/definitions/servicePreSignedURLs", + "title": "New wrapper object containing the signed urls and expiration time" + } + }, + "title": "CreateDownloadLinkResponse defines the response for the generated links" + }, + "serviceCreateDownloadLocationResponse": { + "type": "object", + "properties": { + "signed_url": { + "type": "string", + "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expires." + } + } + }, + "serviceCreateUploadLocationRequest": { + "type": "object", + "properties": { + "project": { + "type": "string", + "title": "Project to create the upload location for\n+required" + }, + "domain": { + "type": "string", + "title": "Domain to create the upload location for.\n+required" + }, + "filename": { + "type": "string", + "description": "Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.\n+optional. By default, the service will generate a consistent name based on the provided parameters." + }, + "expires_in": { + "type": "string", + "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." + }, + "content_md5": { + "type": "string", + "format": "byte", + "title": "ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the\ngenerated path.\n+required" + }, + "filename_root": { + "type": "string", + "title": "If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included\nthis makes the upload location deterministic. The native url will still be prefixed by the upload location prefix\nin data proxy config. This option is useful when uploading multiple files.\n+optional" + } + }, + "description": "CreateUploadLocationRequest specified request for the CreateUploadLocation API.\nThe implementation in data proxy service will create the s3 location with some server side configured prefixes,\nand then:\n - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR\n - project/domain/filename_root (if present)/filename (if present)." + }, + "serviceCreateUploadLocationResponse": { + "type": "object", + "properties": { + "signed_url": { + "type": "string", + "title": "SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "native_url": { + "type": "string", + "title": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expires." + } + } + }, + "serviceGetDataResponse": { + "type": "object", + "properties": { + "literal_map": { + "$ref": "#/definitions/coreLiteralMap", + "title": "literal map data will be returned" + }, + "pre_signed_urls": { + "$ref": "#/definitions/servicePreSignedURLs", + "title": "Flyte deck html will be returned as a signed url users can download" + }, + "literal": { + "$ref": "#/definitions/coreLiteral", + "description": "Single literal will be returned. This is returned when the user/url requests a specific output or input\nby name. See the o3 example above." + } + } + }, + "servicePreSignedURLs": { + "type": "object", + "properties": { + "signed_url": { + "type": "array", + "items": { + "type": "string" + }, + "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "description": "ExpiresAt defines when will the signed URL expire." + } + }, + "title": "Wrapper object since the message is shared across this and the GetDataResponse" + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json new file mode 100644 index 0000000000..5dd386c39c --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/external_plugin_service.swagger.json @@ -0,0 +1,1314 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/external_plugin_service.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "ExternalPluginService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": {}, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "ContainerArchitecture": { + "type": "string", + "enum": [ + "UNKNOWN", + "AMD64", + "ARM64", + "ARM_V6", + "ARM_V7" + ], + "default": "UNKNOWN", + "description": "Architecture-type the container image supports." + }, + "DataLoadingConfigLiteralMapFormat": { + "type": "string", + "enum": [ + "JSON", + "YAML", + "PROTO" + ], + "default": "JSON", + "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", + "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" + }, + "IOStrategyDownloadMode": { + "type": "string", + "enum": [ + "DOWNLOAD_EAGER", + "DOWNLOAD_STREAM", + "DO_NOT_DOWNLOAD" + ], + "default": "DOWNLOAD_EAGER", + "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", + "title": "Mode to use for downloading" + }, + "IOStrategyUploadMode": { + "type": "string", + "enum": [ + "UPLOAD_ON_EXIT", + "UPLOAD_EAGER", + "DO_NOT_UPLOAD" + ], + "default": "UPLOAD_ON_EXIT", + "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", + "title": "Mode to use for uploading" + }, + "ResourcesResourceEntry": { + "type": "object", + "properties": { + "name": { + "$ref": "#/definitions/ResourcesResourceName", + "description": "Resource name." + }, + "value": { + "type": "string", + "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" + } + }, + "description": "Encapsulates a resource name and value." + }, + "ResourcesResourceName": { + "type": "string", + "enum": [ + "UNKNOWN", + "CPU", + "GPU", + "MEMORY", + "STORAGE", + "EPHEMERAL_STORAGE" + ], + "default": "UNKNOWN", + "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." + }, + "RuntimeMetadataRuntimeType": { + "type": "string", + "enum": [ + "OTHER", + "FLYTE_SDK" + ], + "default": "OTHER" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SecretMountType": { + "type": "string", + "enum": [ + "ANY", + "ENV_VAR", + "FILE" + ], + "default": "ANY", + "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." + }, + "SqlDialect": { + "type": "string", + "enum": [ + "UNDEFINED", + "ANSI", + "HIVE", + "OTHER" + ], + "default": "UNDEFINED", + "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "coreArtifactBindingData": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int64" + }, + "partition_key": { + "type": "string" + }, + "bind_to_time_partition": { + "type": "boolean" + }, + "transform": { + "type": "string", + "title": "This is only relevant in the time partition case" + } + }, + "title": "Only valid for triggers" + }, + "coreArtifactID": { + "type": "object", + "properties": { + "artifact_key": { + "$ref": "#/definitions/coreArtifactKey" + }, + "version": { + "type": "string" + }, + "partitions": { + "$ref": "#/definitions/corePartitions", + "description": "Think of a partition as a tag on an Artifact, except it's a key-value pair.\nDifferent partitions naturally have different versions (execution ids)." + }, + "time_partition": { + "$ref": "#/definitions/coreTimePartition", + "description": "There is no such thing as an empty time partition - if it's not set, then there is no time partition." + } + } + }, + "coreArtifactKey": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Project and domain and suffix needs to be unique across a given artifact store." + }, + "domain": { + "type": "string" + }, + "name": { + "type": "string" + }, + "org": { + "type": "string" + } + } + }, + "coreArtifactTag": { + "type": "object", + "properties": { + "artifact_key": { + "$ref": "#/definitions/coreArtifactKey" + }, + "value": { + "$ref": "#/definitions/coreLabelValue" + } + } + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreContainer": { + "type": "object", + "properties": { + "image": { + "type": "string", + "title": "Container image url. Eg: docker/redis:latest" + }, + "command": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." + }, + "args": { + "type": "array", + "items": { + "type": "string" + }, + "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." + }, + "resources": { + "$ref": "#/definitions/coreResources", + "description": "Container resources requirement as specified by the container engine." + }, + "env": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Environment variables will be set as the container is starting up." + }, + "config": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/flyteidlcoreKeyValuePair" + }, + "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." + }, + "ports": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreContainerPort" + }, + "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + }, + "architecture": { + "$ref": "#/definitions/ContainerArchitecture" + } + } + }, + "coreContainerPort": { + "type": "object", + "properties": { + "container_port": { + "type": "integer", + "format": "int64", + "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." + } + }, + "description": "Defines port properties for a container." + }, + "coreDataLoadingConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" + }, + "input_path": { + "type": "string", + "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" + }, + "output_path": { + "type": "string", + "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" + }, + "format": { + "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", + "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" + }, + "io_strategy": { + "$ref": "#/definitions/coreIOStrategy" + } + }, + "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreExtendedResources": { + "type": "object", + "properties": { + "gpu_accelerator": { + "$ref": "#/definitions/coreGPUAccelerator", + "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." + } + }, + "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." + }, + "coreGPUAccelerator": { + "type": "object", + "properties": { + "device": { + "type": "string", + "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." + }, + "unpartitioned": { + "type": "boolean" + }, + "partition_size": { + "type": "string", + "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." + } + }, + "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." + }, + "coreIOStrategy": { + "type": "object", + "properties": { + "download_mode": { + "$ref": "#/definitions/IOStrategyDownloadMode", + "title": "Mode to use to manage downloads" + }, + "upload_mode": { + "$ref": "#/definitions/IOStrategyUploadMode", + "title": "Mode to use to manage uploads" + } + }, + "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" + }, + "coreIdentifier": { + "type": "object", + "properties": { + "resource_type": { + "$ref": "#/definitions/coreResourceType", + "description": "Identifies the specific type of resource that this identifier corresponds to." + }, + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User provided value for the resource." + }, + "version": { + "type": "string", + "description": "Specific version of the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "description": "Encapsulation of fields that uniquely identifies a Flyte resource." + }, + "coreIdentity": { + "type": "object", + "properties": { + "iam_role": { + "type": "string", + "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." + }, + "k8s_service_account": { + "type": "string", + "description": "k8s_service_account references a kubernetes service account to impersonate." + }, + "oauth2_client": { + "$ref": "#/definitions/coreOAuth2Client", + "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." + }, + "execution_identity": { + "type": "string", + "title": "execution_identity references the subject who makes the execution" + } + }, + "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." + }, + "coreInputBindingData": { + "type": "object", + "properties": { + "var": { + "type": "string" + } + } + }, + "coreK8sObjectMetadata": { + "type": "object", + "properties": { + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional labels to add to the pod definition." + }, + "annotations": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Optional annotations to add to the pod definition." + } + }, + "description": "Metadata for building a kubernetes object when a task is executed." + }, + "coreK8sPod": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreK8sObjectMetadata", + "description": "Contains additional metadata for building a kubernetes pod." + }, + "pod_spec": { + "type": "object", + "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" + }, + "data_config": { + "$ref": "#/definitions/coreDataLoadingConfig", + "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" + } + }, + "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." + }, + "coreLabelValue": { + "type": "object", + "properties": { + "static_value": { + "type": "string", + "title": "The string static value is for use in the Partitions object" + }, + "time_value": { + "type": "string", + "format": "date-time", + "title": "The time value is for use in the TimePartition case" + }, + "triggered_binding": { + "$ref": "#/definitions/coreArtifactBindingData" + }, + "input_binding": { + "$ref": "#/definitions/coreInputBindingData" + } + } + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata for literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/flyteidlcoreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "type": "object", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "coreOAuth2Client": { + "type": "object", + "properties": { + "client_id": { + "type": "string", + "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" + }, + "client_secret": { + "$ref": "#/definitions/coreSecret", + "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" + } + }, + "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." + }, + "coreOAuth2TokenRequest": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" + }, + "type": { + "$ref": "#/definitions/coreOAuth2TokenRequestType", + "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" + }, + "client": { + "$ref": "#/definitions/coreOAuth2Client", + "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" + }, + "idp_discovery_endpoint": { + "type": "string", + "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" + }, + "token_endpoint": { + "type": "string", + "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" + } + }, + "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." + }, + "coreOAuth2TokenRequestType": { + "type": "string", + "enum": [ + "CLIENT_CREDENTIALS" + ], + "default": "CLIENT_CREDENTIALS", + "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." + }, + "corePartitions": { + "type": "object", + "properties": { + "value": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLabelValue" + } + } + } + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreResourceType": { + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED", + "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" + }, + "coreResources": { + "type": "object", + "properties": { + "requests": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "The desired set of resources requested. ResourceNames must be unique within the list." + }, + "limits": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/ResourcesResourceEntry" + }, + "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." + } + }, + "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." + }, + "coreRetryStrategy": { + "type": "object", + "properties": { + "retries": { + "type": "integer", + "format": "int64", + "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." + } + }, + "description": "Retry strategy associated with an executable unit." + }, + "coreRuntimeMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/RuntimeMetadataRuntimeType", + "description": "Type of runtime." + }, + "version": { + "type": "string", + "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." + }, + "flavor": { + "type": "string", + "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." + } + }, + "description": "Runtime information. This is loosely defined to allow for extensibility." + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "type": "object" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSecret": { + "type": "object", + "properties": { + "group": { + "type": "string", + "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" + }, + "group_version": { + "type": "string", + "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" + }, + "key": { + "type": "string", + "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" + }, + "mount_requirement": { + "$ref": "#/definitions/SecretMountType", + "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" + } + }, + "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." + }, + "coreSecurityContext": { + "type": "object", + "properties": { + "run_as": { + "$ref": "#/definitions/coreIdentity", + "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." + }, + "secrets": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreSecret" + }, + "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + }, + "tokens": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreOAuth2TokenRequest" + }, + "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." + } + }, + "description": "SecurityContext holds security attributes that apply to tasks." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreSql": { + "type": "object", + "properties": { + "statement": { + "type": "string", + "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" + }, + "dialect": { + "$ref": "#/definitions/SqlDialect" + } + }, + "description": "Sql represents a generic sql workload with a statement and dialect." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTaskMetadata": { + "type": "object", + "properties": { + "discoverable": { + "type": "boolean", + "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." + }, + "runtime": { + "$ref": "#/definitions/coreRuntimeMetadata", + "description": "Runtime information about the task." + }, + "timeout": { + "type": "string", + "description": "The overall timeout of a task including user-triggered retries." + }, + "retries": { + "$ref": "#/definitions/coreRetryStrategy", + "description": "Number of retries per task." + }, + "discovery_version": { + "type": "string", + "description": "Indicates a logical version to apply to this task for the purpose of discovery." + }, + "deprecated_error_message": { + "type": "string", + "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." + }, + "interruptible": { + "type": "boolean" + }, + "cache_serializable": { + "type": "boolean", + "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" + }, + "generates_deck": { + "type": "boolean", + "description": "Indicates whether the task will generate a Deck URI when it finishes executing." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" + }, + "pod_template_name": { + "type": "string", + "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." + }, + "cache_ignore_input_vars": { + "type": "array", + "items": { + "type": "string" + }, + "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." + } + }, + "title": "Task Metadata" + }, + "coreTaskTemplate": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreIdentifier", + "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." + }, + "type": { + "type": "string", + "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." + }, + "metadata": { + "$ref": "#/definitions/coreTaskMetadata", + "description": "Extra metadata about the task." + }, + "interface": { + "$ref": "#/definitions/coreTypedInterface", + "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." + }, + "custom": { + "type": "object", + "description": "Custom data about the task. This is extensible to allow various plugins in the system." + }, + "container": { + "$ref": "#/definitions/coreContainer" + }, + "k8s_pod": { + "$ref": "#/definitions/coreK8sPod" + }, + "sql": { + "$ref": "#/definitions/coreSql" + }, + "task_type_version": { + "type": "integer", + "format": "int32", + "description": "This can be used to customize task handling at execution time for the same task type." + }, + "security_context": { + "$ref": "#/definitions/coreSecurityContext", + "description": "security_context encapsulates security attributes requested to run this task." + }, + "extended_resources": { + "$ref": "#/definitions/coreExtendedResources", + "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + }, + "config": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" + } + }, + "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." + }, + "coreTimePartition": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLabelValue" + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + }, + "dataclass_type": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteralType" + }, + "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreTypedInterface": { + "type": "object", + "properties": { + "inputs": { + "$ref": "#/definitions/coreVariableMap" + }, + "outputs": { + "$ref": "#/definitions/coreVariableMap" + } + }, + "description": "Defines strongly typed inputs and outputs." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVariable": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Variable literal type." + }, + "description": { + "type": "string", + "title": "+optional string describing input variable" + }, + "artifact_partial_id": { + "$ref": "#/definitions/coreArtifactID", + "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." + }, + "artifact_tag": { + "$ref": "#/definitions/coreArtifactTag" + } + }, + "description": "Defines a strongly typed variable." + }, + "coreVariableMap": { + "type": "object", + "properties": { + "variables": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreVariable" + }, + "description": "Defines a map of variable names to variables." + } + }, + "title": "A map of Variables" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "flyteidlcoreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "flyteidlcoreKeyValuePair": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "required." + }, + "value": { + "type": "string", + "description": "+optional." + } + }, + "description": "A generic key value pair." + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "flyteidlserviceState": { + "type": "string", + "enum": [ + "RETRYABLE_FAILURE", + "PERMANENT_FAILURE", + "PENDING", + "RUNNING", + "SUCCEEDED" + ], + "default": "RETRYABLE_FAILURE", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "flyteidlserviceTaskCreateResponse": { + "type": "object", + "properties": { + "job_id": { + "type": "string" + } + }, + "description": "Represents a create response structure." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "serviceTaskDeleteResponse": { + "type": "object", + "description": "Response to delete a task." + }, + "serviceTaskGetResponse": { + "type": "object", + "properties": { + "state": { + "$ref": "#/definitions/flyteidlserviceState", + "description": "The state of the execution is used to control its visibility in the UI/CLI." + }, + "outputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a\nStructured dataset pointing to the query result table.\n+optional" + } + }, + "description": "Response to get an individual task state." + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go new file mode 100644 index 0000000000..ba78e8df84 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.pb.gw.go @@ -0,0 +1,156 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/identity.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_IdentityService_UserInfo_0(ctx context.Context, marshaler runtime.Marshaler, client extService.IdentityServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.UserInfoRequest + var metadata runtime.ServerMetadata + + msg, err := client.UserInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_IdentityService_UserInfo_0(ctx context.Context, marshaler runtime.Marshaler, server extService.IdentityServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extService.UserInfoRequest + var metadata runtime.ServerMetadata + + msg, err := server.UserInfo(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterIdentityServiceHandlerServer registers the http handlers for service IdentityService to "mux". +// UnaryRPC :call IdentityServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterIdentityServiceHandlerFromEndpoint instead. +func RegisterIdentityServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.IdentityServiceServer) error { + + mux.Handle("GET", pattern_IdentityService_UserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.IdentityService/UserInfo", runtime.WithHTTPPathPattern("/me")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_IdentityService_UserInfo_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_IdentityService_UserInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterIdentityServiceHandlerFromEndpoint is same as RegisterIdentityServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterIdentityServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterIdentityServiceHandler(ctx, mux, conn) +} + +// RegisterIdentityServiceHandler registers the http handlers for service IdentityService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterIdentityServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterIdentityServiceHandlerClient(ctx, mux, extService.NewIdentityServiceClient(conn)) +} + +// RegisterIdentityServiceHandlerClient registers the http handlers for service IdentityService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.IdentityServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.IdentityServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.IdentityServiceClient" to call the correct interceptors. +func RegisterIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.IdentityServiceClient) error { + + mux.Handle("GET", pattern_IdentityService_UserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.IdentityService/UserInfo", runtime.WithHTTPPathPattern("/me")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_IdentityService_UserInfo_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_IdentityService_UserInfo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_IdentityService_UserInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"me"}, "")) +) + +var ( + forward_IdentityService_UserInfo_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json new file mode 100644 index 0000000000..8293cb25af --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/identity.swagger.json @@ -0,0 +1,122 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/identity.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "IdentityService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/me": { + "get": { + "summary": "Retrieves user information about the currently logged in user.", + "description": "Retrieves authenticated identity info.", + "operationId": "IdentityService_UserInfo", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/serviceUserInfoResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "tags": [ + "IdentityService" + ] + } + } + }, + "definitions": { + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + }, + "serviceUserInfoResponse": { + "type": "object", + "properties": { + "subject": { + "type": "string", + "description": "Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed\nby the Client." + }, + "name": { + "type": "string", + "title": "Full name" + }, + "preferred_username": { + "type": "string", + "title": "Shorthand name by which the End-User wishes to be referred to" + }, + "given_name": { + "type": "string", + "title": "Given name(s) or first name(s)" + }, + "family_name": { + "type": "string", + "title": "Surname(s) or last name(s)" + }, + "email": { + "type": "string", + "title": "Preferred e-mail address" + }, + "picture": { + "type": "string", + "title": "Profile picture URL" + }, + "additional_claims": { + "type": "object", + "title": "Additional claims" + } + }, + "description": "See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information." + } + } +} diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go new file mode 100644 index 0000000000..aefec7bfb2 --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.pb.gw.go @@ -0,0 +1,334 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: flyteidl/service/signal.proto + +/* +Package service is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package service + +import ( + "context" + "io" + "net/http" + + extAdmin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" + extService "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +var ( + filter_SignalService_ListSignals_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 6, 7, 8, 9, 2, 0, 4, 0, 6, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 2, 6, 2, 8, 2, 10, 3, 4, 5}} +) + +func request_SignalService_ListSignals_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.SignalListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SignalService_ListSignals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.ListSignals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SignalService_ListSignals_0(ctx context.Context, marshaler runtime.Marshaler, server extService.SignalServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.SignalListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["workflow_execution_id.project"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) + } + + val, ok = pathParams["workflow_execution_id.domain"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) + } + + val, ok = pathParams["workflow_execution_id.name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") + } + + err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) + } + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SignalService_ListSignals_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.ListSignals(ctx, &protoReq) + return msg, metadata, err + +} + +func request_SignalService_SetSignal_0(ctx context.Context, marshaler runtime.Marshaler, client extService.SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.SignalSetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.SetSignal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_SignalService_SetSignal_0(ctx context.Context, marshaler runtime.Marshaler, server extService.SignalServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extAdmin.SignalSetRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.SetSignal(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterSignalServiceHandlerServer registers the http handlers for service SignalService to "mux". +// UnaryRPC :call SignalServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSignalServiceHandlerFromEndpoint instead. +func RegisterSignalServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extService.SignalServiceServer) error { + + mux.Handle("GET", pattern_SignalService_ListSignals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.SignalService/ListSignals", runtime.WithHTTPPathPattern("/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SignalService_ListSignals_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SignalService_ListSignals_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_SignalService_SetSignal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.SignalService/SetSignal", runtime.WithHTTPPathPattern("/api/v1/signals")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_SignalService_SetSignal_0(annotatedContext, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SignalService_SetSignal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterSignalServiceHandlerFromEndpoint is same as RegisterSignalServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterSignalServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterSignalServiceHandler(ctx, mux, conn) +} + +// RegisterSignalServiceHandler registers the http handlers for service SignalService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterSignalServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterSignalServiceHandlerClient(ctx, mux, extService.NewSignalServiceClient(conn)) +} + +// RegisterSignalServiceHandlerClient registers the http handlers for service SignalService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extService.SignalServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extService.SignalServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extService.SignalServiceClient" to call the correct interceptors. +func RegisterSignalServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extService.SignalServiceClient) error { + + mux.Handle("GET", pattern_SignalService_ListSignals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SignalService/ListSignals", runtime.WithHTTPPathPattern("/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SignalService_ListSignals_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SignalService_ListSignals_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_SignalService_SetSignal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.SignalService/SetSignal", runtime.WithHTTPPathPattern("/api/v1/signals")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_SignalService_SetSignal_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_SignalService_SetSignal_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_SignalService_ListSignals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "signals", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) + + pattern_SignalService_SetSignal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "signals"}, "")) +) + +var ( + forward_SignalService_ListSignals_0 = runtime.ForwardResponseMessage + + forward_SignalService_SetSignal_0 = runtime.ForwardResponseMessage +) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json new file mode 100644 index 0000000000..94c859bfcd --- /dev/null +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/signal.swagger.json @@ -0,0 +1,739 @@ +{ + "swagger": "2.0", + "info": { + "title": "flyteidl/service/signal.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "SignalService" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/api/v1/signals": { + "post": { + "summary": "Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition", + "description": "Set a signal value.", + "operationId": "SignalService_SetSignal", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminSignalSetResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminSignalSetRequest" + } + } + ], + "tags": [ + "SignalService" + ] + } + }, + "/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions.", + "description": "Fetch existing signal definitions matching the input signal id filters.", + "operationId": "SignalService_ListSignals", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminSignalList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "workflow_execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + } + ], + "tags": [ + "SignalService" + ] + } + } + }, + "definitions": { + "BlobTypeBlobDimensionality": { + "type": "string", + "enum": [ + "SINGLE", + "MULTIPART" + ], + "default": "SINGLE" + }, + "SchemaColumnSchemaColumnType": { + "type": "string", + "enum": [ + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION" + ], + "default": "INTEGER" + }, + "SchemaTypeSchemaColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "title": "A unique name -within the schema type- for the column" + }, + "type": { + "$ref": "#/definitions/SchemaColumnSchemaColumnType", + "description": "The column type. This allows a limited set of types currently." + } + } + }, + "SortDirection": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING", + "description": " - DESCENDING: By default, fields are sorted in descending order." + }, + "StructuredDatasetTypeDatasetColumn": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "A unique name within the schema type for the column." + }, + "literal_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "The column type." + } + } + }, + "adminSignal": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreSignalIdentifier", + "description": "A unique identifier for the requested signal." + }, + "type": { + "$ref": "#/definitions/coreLiteralType", + "description": "A type denoting the required value type for this signal." + }, + "value": { + "$ref": "#/definitions/coreLiteral", + "description": "The value of the signal. This is only available if the signal has been \"set\" and must match\nthe defined the type." + } + }, + "description": "Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte\nsignal. Signals may exist either without a set value (representing a signal request) or with a\npopulated value (indicating the signal has been given)." + }, + "adminSignalList": { + "type": "object", + "properties": { + "signals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/adminSignal" + }, + "description": "A list of signals matching the input filters." + }, + "token": { + "type": "string", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." + } + }, + "title": "SignalList represents collection of signals along with the token of the last result.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" + }, + "adminSignalSetRequest": { + "type": "object", + "properties": { + "id": { + "$ref": "#/definitions/coreSignalIdentifier", + "description": "A unique identifier for the requested signal." + }, + "value": { + "$ref": "#/definitions/coreLiteral", + "description": "The value of this signal, must match the defining signal type." + } + }, + "title": "SignalSetRequest represents a request structure to set the value on a signal. Setting a signal\neffetively satisfies the signal condition within a Flyte workflow.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" + }, + "adminSignalSetResponse": { + "type": "object", + "description": "SignalSetResponse represents a response structure if signal setting succeeds.\n\nPurposefully empty, may be populated in the future." + }, + "adminSort": { + "type": "object", + "properties": { + "key": { + "type": "string", + "title": "Indicates an attribute to sort the response values.\n+required" + }, + "direction": { + "$ref": "#/definitions/SortDirection", + "title": "Indicates the direction to apply sort key for response values.\n+optional" + } + }, + "description": "Specifies sort ordering in a list request." + }, + "coreBinary": { + "type": "object", + "properties": { + "value": { + "type": "string", + "format": "byte" + }, + "tag": { + "type": "string" + } + }, + "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." + }, + "coreBlob": { + "type": "object", + "properties": { + "metadata": { + "$ref": "#/definitions/coreBlobMetadata" + }, + "uri": { + "type": "string" + } + }, + "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." + }, + "coreBlobMetadata": { + "type": "object", + "properties": { + "type": { + "$ref": "#/definitions/coreBlobType" + } + } + }, + "coreBlobType": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" + }, + "dimensionality": { + "$ref": "#/definitions/BlobTypeBlobDimensionality" + } + }, + "title": "Defines type behavior for blob objects" + }, + "coreError": { + "type": "object", + "properties": { + "failed_node_id": { + "type": "string", + "description": "The node id that threw the error." + }, + "message": { + "type": "string", + "description": "Error message thrown." + } + }, + "description": "Represents an error thrown from a node." + }, + "coreLiteral": { + "type": "object", + "properties": { + "scalar": { + "$ref": "#/definitions/coreScalar", + "description": "A simple value." + }, + "collection": { + "$ref": "#/definitions/coreLiteralCollection", + "description": "A collection of literals to allow nesting." + }, + "map": { + "$ref": "#/definitions/coreLiteralMap", + "description": "A map of strings to literals." + }, + "hash": { + "type": "string", + "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" + }, + "metadata": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Additional metadata for literals." + } + }, + "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." + }, + "coreLiteralCollection": { + "type": "object", + "properties": { + "literals": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralMap": { + "type": "object", + "properties": { + "literals": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteral" + } + } + }, + "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." + }, + "coreLiteralType": { + "type": "object", + "properties": { + "simple": { + "$ref": "#/definitions/coreSimpleType", + "description": "A simple type that can be compared one-to-one with another." + }, + "schema": { + "$ref": "#/definitions/coreSchemaType", + "description": "A complex type that requires matching of inner fields." + }, + "collection_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." + }, + "map_value_type": { + "$ref": "#/definitions/coreLiteralType", + "description": "Defines the type of the value of a map type. The type of the key is always a string." + }, + "blob": { + "$ref": "#/definitions/coreBlobType", + "description": "A blob might have specialized implementation details depending on associated metadata." + }, + "enum_type": { + "$ref": "#/definitions/flyteidlcoreEnumType", + "description": "Defines an enum with pre-defined string values." + }, + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "title": "Generalized schema support" + }, + "union_type": { + "$ref": "#/definitions/coreUnionType", + "description": "Defines an union type with pre-defined LiteralTypes." + }, + "metadata": { + "type": "object", + "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." + }, + "annotation": { + "$ref": "#/definitions/coreTypeAnnotation", + "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." + }, + "structure": { + "$ref": "#/definitions/coreTypeStructure", + "description": "Hints to improve type matching." + } + }, + "description": "Defines a strong type to allow type checking between interfaces." + }, + "corePrimitive": { + "type": "object", + "properties": { + "integer": { + "type": "string", + "format": "int64" + }, + "float_value": { + "type": "number", + "format": "double" + }, + "string_value": { + "type": "string" + }, + "boolean": { + "type": "boolean" + }, + "datetime": { + "type": "string", + "format": "date-time" + }, + "duration": { + "type": "string" + } + }, + "title": "Primitive Types" + }, + "coreScalar": { + "type": "object", + "properties": { + "primitive": { + "$ref": "#/definitions/corePrimitive" + }, + "blob": { + "$ref": "#/definitions/coreBlob" + }, + "binary": { + "$ref": "#/definitions/coreBinary" + }, + "schema": { + "$ref": "#/definitions/flyteidlcoreSchema" + }, + "none_type": { + "$ref": "#/definitions/coreVoid" + }, + "error": { + "$ref": "#/definitions/coreError" + }, + "generic": { + "type": "object" + }, + "structured_dataset": { + "$ref": "#/definitions/coreStructuredDataset" + }, + "union": { + "$ref": "#/definitions/coreUnion" + } + } + }, + "coreSchemaType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/SchemaTypeSchemaColumn" + }, + "description": "A list of ordered columns this schema comprises of." + } + }, + "description": "Defines schema columns and types to strongly type-validate schemas interoperability." + }, + "coreSignalIdentifier": { + "type": "object", + "properties": { + "signal_id": { + "type": "string", + "description": "Unique identifier for a signal." + }, + "execution_id": { + "$ref": "#/definitions/coreWorkflowExecutionIdentifier", + "description": "Identifies the Flyte workflow execution this signal belongs to." + } + }, + "description": "Encapsulation of fields the uniquely identify a signal." + }, + "coreSimpleType": { + "type": "string", + "enum": [ + "NONE", + "INTEGER", + "FLOAT", + "STRING", + "BOOLEAN", + "DATETIME", + "DURATION", + "BINARY", + "ERROR", + "STRUCT" + ], + "default": "NONE", + "description": "Define a set of simple types." + }, + "coreStructuredDataset": { + "type": "object", + "properties": { + "uri": { + "type": "string", + "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" + }, + "metadata": { + "$ref": "#/definitions/coreStructuredDatasetMetadata" + } + } + }, + "coreStructuredDatasetMetadata": { + "type": "object", + "properties": { + "structured_dataset_type": { + "$ref": "#/definitions/coreStructuredDatasetType", + "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." + } + } + }, + "coreStructuredDatasetType": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" + }, + "description": "A list of ordered columns this schema comprises of." + }, + "format": { + "type": "string", + "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." + }, + "external_schema_type": { + "type": "string", + "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." + }, + "external_schema_bytes": { + "type": "string", + "format": "byte", + "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." + } + } + }, + "coreTypeAnnotation": { + "type": "object", + "properties": { + "annotations": { + "type": "object", + "description": "A arbitrary JSON payload to describe a type." + } + }, + "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." + }, + "coreTypeStructure": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "title": "Must exactly match for types to be castable" + }, + "dataclass_type": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/coreLiteralType" + }, + "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" + } + }, + "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." + }, + "coreUnion": { + "type": "object", + "properties": { + "value": { + "$ref": "#/definitions/coreLiteral" + }, + "type": { + "$ref": "#/definitions/coreLiteralType" + } + }, + "description": "The runtime representation of a tagged union value. See `UnionType` for more details." + }, + "coreUnionType": { + "type": "object", + "properties": { + "variants": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/coreLiteralType" + }, + "description": "Predefined set of variants in union." + } + }, + "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" + }, + "coreVoid": { + "type": "object", + "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." + }, + "coreWorkflowExecutionIdentifier": { + "type": "object", + "properties": { + "project": { + "type": "string", + "description": "Name of the project the resource belongs to." + }, + "domain": { + "type": "string", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." + }, + "name": { + "type": "string", + "description": "User or system provided value for the resource." + }, + "org": { + "type": "string", + "description": "Optional, org key applied to the resource." + } + }, + "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" + }, + "flyteidlcoreEnumType": { + "type": "object", + "properties": { + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Predefined set of enum values." + } + }, + "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." + }, + "flyteidlcoreSchema": { + "type": "object", + "properties": { + "uri": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/coreSchemaType" + } + }, + "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." + }, + "googlerpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/protobufAny" + } + } + } + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string", + "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." + } + }, + "additionalProperties": {}, + "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := \u0026pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" + }, + "protobufNullValue": { + "type": "string", + "enum": [ + "NULL_VALUE" + ], + "default": "NULL_VALUE", + "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." + } + } +} diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts new file mode 100644 index 0000000000..581a1caa6e --- /dev/null +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -0,0 +1,26946 @@ +import * as $protobuf from "protobufjs"; +/** Namespace flyteidl. */ +export namespace flyteidl { + + /** Namespace core. */ + namespace core { + + /** Properties of an ArtifactKey. */ + interface IArtifactKey { + + /** ArtifactKey project */ + project?: (string|null); + + /** ArtifactKey domain */ + domain?: (string|null); + + /** ArtifactKey name */ + name?: (string|null); + + /** ArtifactKey org */ + org?: (string|null); + } + + /** Represents an ArtifactKey. */ + class ArtifactKey implements IArtifactKey { + + /** + * Constructs a new ArtifactKey. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArtifactKey); + + /** ArtifactKey project. */ + public project: string; + + /** ArtifactKey domain. */ + public domain: string; + + /** ArtifactKey name. */ + public name: string; + + /** ArtifactKey org. */ + public org: string; + + /** + * Creates a new ArtifactKey instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactKey instance + */ + public static create(properties?: flyteidl.core.IArtifactKey): flyteidl.core.ArtifactKey; + + /** + * Encodes the specified ArtifactKey message. Does not implicitly {@link flyteidl.core.ArtifactKey.verify|verify} messages. + * @param message ArtifactKey message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArtifactKey, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactKey message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactKey; + + /** + * Verifies an ArtifactKey message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ArtifactBindingData. */ + interface IArtifactBindingData { + + /** ArtifactBindingData index */ + index?: (number|null); + + /** ArtifactBindingData partitionKey */ + partitionKey?: (string|null); + + /** ArtifactBindingData bindToTimePartition */ + bindToTimePartition?: (boolean|null); + + /** ArtifactBindingData transform */ + transform?: (string|null); + } + + /** Represents an ArtifactBindingData. */ + class ArtifactBindingData implements IArtifactBindingData { + + /** + * Constructs a new ArtifactBindingData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArtifactBindingData); + + /** ArtifactBindingData index. */ + public index: number; + + /** ArtifactBindingData partitionKey. */ + public partitionKey: string; + + /** ArtifactBindingData bindToTimePartition. */ + public bindToTimePartition: boolean; + + /** ArtifactBindingData transform. */ + public transform: string; + + /** ArtifactBindingData partitionData. */ + public partitionData?: ("partitionKey"|"bindToTimePartition"); + + /** + * Creates a new ArtifactBindingData instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactBindingData instance + */ + public static create(properties?: flyteidl.core.IArtifactBindingData): flyteidl.core.ArtifactBindingData; + + /** + * Encodes the specified ArtifactBindingData message. Does not implicitly {@link flyteidl.core.ArtifactBindingData.verify|verify} messages. + * @param message ArtifactBindingData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArtifactBindingData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactBindingData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactBindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactBindingData; + + /** + * Verifies an ArtifactBindingData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an InputBindingData. */ + interface IInputBindingData { + + /** InputBindingData var */ + "var"?: (string|null); + } + + /** Represents an InputBindingData. */ + class InputBindingData implements IInputBindingData { + + /** + * Constructs a new InputBindingData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IInputBindingData); + + /** InputBindingData var. */ + public var: string; + + /** + * Creates a new InputBindingData instance using the specified properties. + * @param [properties] Properties to set + * @returns InputBindingData instance + */ + public static create(properties?: flyteidl.core.IInputBindingData): flyteidl.core.InputBindingData; + + /** + * Encodes the specified InputBindingData message. Does not implicitly {@link flyteidl.core.InputBindingData.verify|verify} messages. + * @param message InputBindingData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IInputBindingData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InputBindingData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputBindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.InputBindingData; + + /** + * Verifies an InputBindingData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LabelValue. */ + interface ILabelValue { + + /** LabelValue staticValue */ + staticValue?: (string|null); + + /** LabelValue timeValue */ + timeValue?: (google.protobuf.ITimestamp|null); + + /** LabelValue triggeredBinding */ + triggeredBinding?: (flyteidl.core.IArtifactBindingData|null); + + /** LabelValue inputBinding */ + inputBinding?: (flyteidl.core.IInputBindingData|null); + } + + /** Represents a LabelValue. */ + class LabelValue implements ILabelValue { + + /** + * Constructs a new LabelValue. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILabelValue); + + /** LabelValue staticValue. */ + public staticValue: string; + + /** LabelValue timeValue. */ + public timeValue?: (google.protobuf.ITimestamp|null); + + /** LabelValue triggeredBinding. */ + public triggeredBinding?: (flyteidl.core.IArtifactBindingData|null); + + /** LabelValue inputBinding. */ + public inputBinding?: (flyteidl.core.IInputBindingData|null); + + /** LabelValue value. */ + public value?: ("staticValue"|"timeValue"|"triggeredBinding"|"inputBinding"); + + /** + * Creates a new LabelValue instance using the specified properties. + * @param [properties] Properties to set + * @returns LabelValue instance + */ + public static create(properties?: flyteidl.core.ILabelValue): flyteidl.core.LabelValue; + + /** + * Encodes the specified LabelValue message. Does not implicitly {@link flyteidl.core.LabelValue.verify|verify} messages. + * @param message LabelValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILabelValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LabelValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LabelValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LabelValue; + + /** + * Verifies a LabelValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Partitions. */ + interface IPartitions { + + /** Partitions value */ + value?: ({ [k: string]: flyteidl.core.ILabelValue }|null); + } + + /** Represents a Partitions. */ + class Partitions implements IPartitions { + + /** + * Constructs a new Partitions. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IPartitions); + + /** Partitions value. */ + public value: { [k: string]: flyteidl.core.ILabelValue }; + + /** + * Creates a new Partitions instance using the specified properties. + * @param [properties] Properties to set + * @returns Partitions instance + */ + public static create(properties?: flyteidl.core.IPartitions): flyteidl.core.Partitions; + + /** + * Encodes the specified Partitions message. Does not implicitly {@link flyteidl.core.Partitions.verify|verify} messages. + * @param message Partitions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IPartitions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Partitions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Partitions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Partitions; + + /** + * Verifies a Partitions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TimePartition. */ + interface ITimePartition { + + /** TimePartition value */ + value?: (flyteidl.core.ILabelValue|null); + } + + /** Represents a TimePartition. */ + class TimePartition implements ITimePartition { + + /** + * Constructs a new TimePartition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITimePartition); + + /** TimePartition value. */ + public value?: (flyteidl.core.ILabelValue|null); + + /** + * Creates a new TimePartition instance using the specified properties. + * @param [properties] Properties to set + * @returns TimePartition instance + */ + public static create(properties?: flyteidl.core.ITimePartition): flyteidl.core.TimePartition; + + /** + * Encodes the specified TimePartition message. Does not implicitly {@link flyteidl.core.TimePartition.verify|verify} messages. + * @param message TimePartition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITimePartition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimePartition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimePartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TimePartition; + + /** + * Verifies a TimePartition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ArtifactID. */ + interface IArtifactID { + + /** ArtifactID artifactKey */ + artifactKey?: (flyteidl.core.IArtifactKey|null); + + /** ArtifactID version */ + version?: (string|null); + + /** ArtifactID partitions */ + partitions?: (flyteidl.core.IPartitions|null); + + /** ArtifactID timePartition */ + timePartition?: (flyteidl.core.ITimePartition|null); + } + + /** Represents an ArtifactID. */ + class ArtifactID implements IArtifactID { + + /** + * Constructs a new ArtifactID. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArtifactID); + + /** ArtifactID artifactKey. */ + public artifactKey?: (flyteidl.core.IArtifactKey|null); + + /** ArtifactID version. */ + public version: string; + + /** ArtifactID partitions. */ + public partitions?: (flyteidl.core.IPartitions|null); + + /** ArtifactID timePartition. */ + public timePartition?: (flyteidl.core.ITimePartition|null); + + /** + * Creates a new ArtifactID instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactID instance + */ + public static create(properties?: flyteidl.core.IArtifactID): flyteidl.core.ArtifactID; + + /** + * Encodes the specified ArtifactID message. Does not implicitly {@link flyteidl.core.ArtifactID.verify|verify} messages. + * @param message ArtifactID message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArtifactID, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactID message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactID; + + /** + * Verifies an ArtifactID message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ArtifactTag. */ + interface IArtifactTag { + + /** ArtifactTag artifactKey */ + artifactKey?: (flyteidl.core.IArtifactKey|null); + + /** ArtifactTag value */ + value?: (flyteidl.core.ILabelValue|null); + } + + /** Represents an ArtifactTag. */ + class ArtifactTag implements IArtifactTag { + + /** + * Constructs a new ArtifactTag. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArtifactTag); + + /** ArtifactTag artifactKey. */ + public artifactKey?: (flyteidl.core.IArtifactKey|null); + + /** ArtifactTag value. */ + public value?: (flyteidl.core.ILabelValue|null); + + /** + * Creates a new ArtifactTag instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactTag instance + */ + public static create(properties?: flyteidl.core.IArtifactTag): flyteidl.core.ArtifactTag; + + /** + * Encodes the specified ArtifactTag message. Does not implicitly {@link flyteidl.core.ArtifactTag.verify|verify} messages. + * @param message ArtifactTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactTag; + + /** + * Verifies an ArtifactTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ArtifactQuery. */ + interface IArtifactQuery { + + /** ArtifactQuery artifactId */ + artifactId?: (flyteidl.core.IArtifactID|null); + + /** ArtifactQuery artifactTag */ + artifactTag?: (flyteidl.core.IArtifactTag|null); + + /** ArtifactQuery uri */ + uri?: (string|null); + + /** ArtifactQuery binding */ + binding?: (flyteidl.core.IArtifactBindingData|null); + } + + /** Represents an ArtifactQuery. */ + class ArtifactQuery implements IArtifactQuery { + + /** + * Constructs a new ArtifactQuery. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArtifactQuery); + + /** ArtifactQuery artifactId. */ + public artifactId?: (flyteidl.core.IArtifactID|null); + + /** ArtifactQuery artifactTag. */ + public artifactTag?: (flyteidl.core.IArtifactTag|null); + + /** ArtifactQuery uri. */ + public uri: string; + + /** ArtifactQuery binding. */ + public binding?: (flyteidl.core.IArtifactBindingData|null); + + /** ArtifactQuery identifier. */ + public identifier?: ("artifactId"|"artifactTag"|"uri"|"binding"); + + /** + * Creates a new ArtifactQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactQuery instance + */ + public static create(properties?: flyteidl.core.IArtifactQuery): flyteidl.core.ArtifactQuery; + + /** + * Encodes the specified ArtifactQuery message. Does not implicitly {@link flyteidl.core.ArtifactQuery.verify|verify} messages. + * @param message ArtifactQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArtifactQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArtifactQuery; + + /** + * Verifies an ArtifactQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** ResourceType enum. */ + enum ResourceType { + UNSPECIFIED = 0, + TASK = 1, + WORKFLOW = 2, + LAUNCH_PLAN = 3, + DATASET = 4 + } + + /** Properties of an Identifier. */ + interface IIdentifier { + + /** Identifier resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** Identifier project */ + project?: (string|null); + + /** Identifier domain */ + domain?: (string|null); + + /** Identifier name */ + name?: (string|null); + + /** Identifier version */ + version?: (string|null); + + /** Identifier org */ + org?: (string|null); + } + + /** Represents an Identifier. */ + class Identifier implements IIdentifier { + + /** + * Constructs a new Identifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIdentifier); + + /** Identifier resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** Identifier project. */ + public project: string; + + /** Identifier domain. */ + public domain: string; + + /** Identifier name. */ + public name: string; + + /** Identifier version. */ + public version: string; + + /** Identifier org. */ + public org: string; + + /** + * Creates a new Identifier instance using the specified properties. + * @param [properties] Properties to set + * @returns Identifier instance + */ + public static create(properties?: flyteidl.core.IIdentifier): flyteidl.core.Identifier; + + /** + * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. + * @param message Identifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Identifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Identifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identifier; + + /** + * Verifies an Identifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionIdentifier. */ + interface IWorkflowExecutionIdentifier { + + /** WorkflowExecutionIdentifier project */ + project?: (string|null); + + /** WorkflowExecutionIdentifier domain */ + domain?: (string|null); + + /** WorkflowExecutionIdentifier name */ + name?: (string|null); + + /** WorkflowExecutionIdentifier org */ + org?: (string|null); + } + + /** Represents a WorkflowExecutionIdentifier. */ + class WorkflowExecutionIdentifier implements IWorkflowExecutionIdentifier { + + /** + * Constructs a new WorkflowExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowExecutionIdentifier); + + /** WorkflowExecutionIdentifier project. */ + public project: string; + + /** WorkflowExecutionIdentifier domain. */ + public domain: string; + + /** WorkflowExecutionIdentifier name. */ + public name: string; + + /** WorkflowExecutionIdentifier org. */ + public org: string; + + /** + * Creates a new WorkflowExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.IWorkflowExecutionIdentifier): flyteidl.core.WorkflowExecutionIdentifier; + + /** + * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. + * @param message WorkflowExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecutionIdentifier; + + /** + * Verifies a WorkflowExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionIdentifier. */ + interface INodeExecutionIdentifier { + + /** NodeExecutionIdentifier nodeId */ + nodeId?: (string|null); + + /** NodeExecutionIdentifier executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a NodeExecutionIdentifier. */ + class NodeExecutionIdentifier implements INodeExecutionIdentifier { + + /** + * Constructs a new NodeExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeExecutionIdentifier); + + /** NodeExecutionIdentifier nodeId. */ + public nodeId: string; + + /** NodeExecutionIdentifier executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.INodeExecutionIdentifier): flyteidl.core.NodeExecutionIdentifier; + + /** + * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. + * @param message NodeExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecutionIdentifier; + + /** + * Verifies a NodeExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionIdentifier. */ + interface ITaskExecutionIdentifier { + + /** TaskExecutionIdentifier taskId */ + taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionIdentifier nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionIdentifier retryAttempt */ + retryAttempt?: (number|null); + } + + /** Represents a TaskExecutionIdentifier. */ + class TaskExecutionIdentifier implements ITaskExecutionIdentifier { + + /** + * Constructs a new TaskExecutionIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskExecutionIdentifier); + + /** TaskExecutionIdentifier taskId. */ + public taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionIdentifier nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionIdentifier retryAttempt. */ + public retryAttempt: number; + + /** + * Creates a new TaskExecutionIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionIdentifier instance + */ + public static create(properties?: flyteidl.core.ITaskExecutionIdentifier): flyteidl.core.TaskExecutionIdentifier; + + /** + * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. + * @param message TaskExecutionIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecutionIdentifier; + + /** + * Verifies a TaskExecutionIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalIdentifier. */ + interface ISignalIdentifier { + + /** SignalIdentifier signalId */ + signalId?: (string|null); + + /** SignalIdentifier executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a SignalIdentifier. */ + class SignalIdentifier implements ISignalIdentifier { + + /** + * Constructs a new SignalIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISignalIdentifier); + + /** SignalIdentifier signalId. */ + public signalId: string; + + /** SignalIdentifier executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new SignalIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalIdentifier instance + */ + public static create(properties?: flyteidl.core.ISignalIdentifier): flyteidl.core.SignalIdentifier; + + /** + * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. + * @param message SignalIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISignalIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalIdentifier; + + /** + * Verifies a SignalIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** CatalogCacheStatus enum. */ + enum CatalogCacheStatus { + CACHE_DISABLED = 0, + CACHE_MISS = 1, + CACHE_HIT = 2, + CACHE_POPULATED = 3, + CACHE_LOOKUP_FAILURE = 4, + CACHE_PUT_FAILURE = 5, + CACHE_SKIPPED = 6, + CACHE_EVICTED = 7 + } + + /** Properties of a CatalogArtifactTag. */ + interface ICatalogArtifactTag { + + /** CatalogArtifactTag artifactId */ + artifactId?: (string|null); + + /** CatalogArtifactTag name */ + name?: (string|null); + } + + /** Represents a CatalogArtifactTag. */ + class CatalogArtifactTag implements ICatalogArtifactTag { + + /** + * Constructs a new CatalogArtifactTag. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICatalogArtifactTag); + + /** CatalogArtifactTag artifactId. */ + public artifactId: string; + + /** CatalogArtifactTag name. */ + public name: string; + + /** + * Creates a new CatalogArtifactTag instance using the specified properties. + * @param [properties] Properties to set + * @returns CatalogArtifactTag instance + */ + public static create(properties?: flyteidl.core.ICatalogArtifactTag): flyteidl.core.CatalogArtifactTag; + + /** + * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. + * @param message CatalogArtifactTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICatalogArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CatalogArtifactTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CatalogArtifactTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogArtifactTag; + + /** + * Verifies a CatalogArtifactTag message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CatalogMetadata. */ + interface ICatalogMetadata { + + /** CatalogMetadata datasetId */ + datasetId?: (flyteidl.core.IIdentifier|null); + + /** CatalogMetadata artifactTag */ + artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); + + /** CatalogMetadata sourceTaskExecution */ + sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a CatalogMetadata. */ + class CatalogMetadata implements ICatalogMetadata { + + /** + * Constructs a new CatalogMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICatalogMetadata); + + /** CatalogMetadata datasetId. */ + public datasetId?: (flyteidl.core.IIdentifier|null); + + /** CatalogMetadata artifactTag. */ + public artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); + + /** CatalogMetadata sourceTaskExecution. */ + public sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** CatalogMetadata sourceExecution. */ + public sourceExecution?: "sourceTaskExecution"; + + /** + * Creates a new CatalogMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CatalogMetadata instance + */ + public static create(properties?: flyteidl.core.ICatalogMetadata): flyteidl.core.CatalogMetadata; + + /** + * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. + * @param message CatalogMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICatalogMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CatalogMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CatalogMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogMetadata; + + /** + * Verifies a CatalogMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CatalogReservation. */ + interface ICatalogReservation { + } + + /** Represents a CatalogReservation. */ + class CatalogReservation implements ICatalogReservation { + + /** + * Constructs a new CatalogReservation. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICatalogReservation); + + /** + * Creates a new CatalogReservation instance using the specified properties. + * @param [properties] Properties to set + * @returns CatalogReservation instance + */ + public static create(properties?: flyteidl.core.ICatalogReservation): flyteidl.core.CatalogReservation; + + /** + * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. + * @param message CatalogReservation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICatalogReservation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CatalogReservation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CatalogReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CatalogReservation; + + /** + * Verifies a CatalogReservation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace CatalogReservation { + + /** Status enum. */ + enum Status { + RESERVATION_DISABLED = 0, + RESERVATION_ACQUIRED = 1, + RESERVATION_EXISTS = 2, + RESERVATION_RELEASED = 3, + RESERVATION_FAILURE = 4 + } + } + + /** Properties of a ConnectionSet. */ + interface IConnectionSet { + + /** ConnectionSet downstream */ + downstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); + + /** ConnectionSet upstream */ + upstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); + } + + /** Represents a ConnectionSet. */ + class ConnectionSet implements IConnectionSet { + + /** + * Constructs a new ConnectionSet. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IConnectionSet); + + /** ConnectionSet downstream. */ + public downstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; + + /** ConnectionSet upstream. */ + public upstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; + + /** + * Creates a new ConnectionSet instance using the specified properties. + * @param [properties] Properties to set + * @returns ConnectionSet instance + */ + public static create(properties?: flyteidl.core.IConnectionSet): flyteidl.core.ConnectionSet; + + /** + * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. + * @param message ConnectionSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IConnectionSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConnectionSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConnectionSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet; + + /** + * Verifies a ConnectionSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ConnectionSet { + + /** Properties of an IdList. */ + interface IIdList { + + /** IdList ids */ + ids?: (string[]|null); + } + + /** Represents an IdList. */ + class IdList implements IIdList { + + /** + * Constructs a new IdList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ConnectionSet.IIdList); + + /** IdList ids. */ + public ids: string[]; + + /** + * Creates a new IdList instance using the specified properties. + * @param [properties] Properties to set + * @returns IdList instance + */ + public static create(properties?: flyteidl.core.ConnectionSet.IIdList): flyteidl.core.ConnectionSet.IdList; + + /** + * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. + * @param message IdList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ConnectionSet.IIdList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IdList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IdList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConnectionSet.IdList; + + /** + * Verifies an IdList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a CompiledWorkflow. */ + interface ICompiledWorkflow { + + /** CompiledWorkflow template */ + template?: (flyteidl.core.IWorkflowTemplate|null); + + /** CompiledWorkflow connections */ + connections?: (flyteidl.core.IConnectionSet|null); + } + + /** Represents a CompiledWorkflow. */ + class CompiledWorkflow implements ICompiledWorkflow { + + /** + * Constructs a new CompiledWorkflow. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledWorkflow); + + /** CompiledWorkflow template. */ + public template?: (flyteidl.core.IWorkflowTemplate|null); + + /** CompiledWorkflow connections. */ + public connections?: (flyteidl.core.IConnectionSet|null); + + /** + * Creates a new CompiledWorkflow instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledWorkflow instance + */ + public static create(properties?: flyteidl.core.ICompiledWorkflow): flyteidl.core.CompiledWorkflow; + + /** + * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. + * @param message CompiledWorkflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledWorkflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledWorkflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflow; + + /** + * Verifies a CompiledWorkflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledLaunchPlan. */ + interface ICompiledLaunchPlan { + + /** CompiledLaunchPlan template */ + template?: (flyteidl.core.ILaunchPlanTemplate|null); + } + + /** Represents a CompiledLaunchPlan. */ + class CompiledLaunchPlan implements ICompiledLaunchPlan { + + /** + * Constructs a new CompiledLaunchPlan. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledLaunchPlan); + + /** CompiledLaunchPlan template. */ + public template?: (flyteidl.core.ILaunchPlanTemplate|null); + + /** + * Creates a new CompiledLaunchPlan instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledLaunchPlan instance + */ + public static create(properties?: flyteidl.core.ICompiledLaunchPlan): flyteidl.core.CompiledLaunchPlan; + + /** + * Encodes the specified CompiledLaunchPlan message. Does not implicitly {@link flyteidl.core.CompiledLaunchPlan.verify|verify} messages. + * @param message CompiledLaunchPlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledLaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledLaunchPlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledLaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledLaunchPlan; + + /** + * Verifies a CompiledLaunchPlan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledTask. */ + interface ICompiledTask { + + /** CompiledTask template */ + template?: (flyteidl.core.ITaskTemplate|null); + } + + /** Represents a CompiledTask. */ + class CompiledTask implements ICompiledTask { + + /** + * Constructs a new CompiledTask. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledTask); + + /** CompiledTask template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** + * Creates a new CompiledTask instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledTask instance + */ + public static create(properties?: flyteidl.core.ICompiledTask): flyteidl.core.CompiledTask; + + /** + * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. + * @param message CompiledTask message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledTask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledTask message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledTask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledTask; + + /** + * Verifies a CompiledTask message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CompiledWorkflowClosure. */ + interface ICompiledWorkflowClosure { + + /** CompiledWorkflowClosure primary */ + primary?: (flyteidl.core.ICompiledWorkflow|null); + + /** CompiledWorkflowClosure subWorkflows */ + subWorkflows?: (flyteidl.core.ICompiledWorkflow[]|null); + + /** CompiledWorkflowClosure tasks */ + tasks?: (flyteidl.core.ICompiledTask[]|null); + + /** CompiledWorkflowClosure launchPlans */ + launchPlans?: (flyteidl.core.ICompiledLaunchPlan[]|null); + } + + /** Represents a CompiledWorkflowClosure. */ + class CompiledWorkflowClosure implements ICompiledWorkflowClosure { + + /** + * Constructs a new CompiledWorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ICompiledWorkflowClosure); + + /** CompiledWorkflowClosure primary. */ + public primary?: (flyteidl.core.ICompiledWorkflow|null); + + /** CompiledWorkflowClosure subWorkflows. */ + public subWorkflows: flyteidl.core.ICompiledWorkflow[]; + + /** CompiledWorkflowClosure tasks. */ + public tasks: flyteidl.core.ICompiledTask[]; + + /** CompiledWorkflowClosure launchPlans. */ + public launchPlans: flyteidl.core.ICompiledLaunchPlan[]; + + /** + * Creates a new CompiledWorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns CompiledWorkflowClosure instance + */ + public static create(properties?: flyteidl.core.ICompiledWorkflowClosure): flyteidl.core.CompiledWorkflowClosure; + + /** + * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. + * @param message CompiledWorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ICompiledWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompiledWorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.CompiledWorkflowClosure; + + /** + * Verifies a CompiledWorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Variable. */ + interface IVariable { + + /** Variable type */ + type?: (flyteidl.core.ILiteralType|null); + + /** Variable description */ + description?: (string|null); + + /** Variable artifactPartialId */ + artifactPartialId?: (flyteidl.core.IArtifactID|null); + + /** Variable artifactTag */ + artifactTag?: (flyteidl.core.IArtifactTag|null); + } + + /** Represents a Variable. */ + class Variable implements IVariable { + + /** + * Constructs a new Variable. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVariable); + + /** Variable type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** Variable description. */ + public description: string; + + /** Variable artifactPartialId. */ + public artifactPartialId?: (flyteidl.core.IArtifactID|null); + + /** Variable artifactTag. */ + public artifactTag?: (flyteidl.core.IArtifactTag|null); + + /** + * Creates a new Variable instance using the specified properties. + * @param [properties] Properties to set + * @returns Variable instance + */ + public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; + + /** + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @param message Variable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Variable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Variable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Variable; + + /** + * Verifies a Variable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a VariableMap. */ + interface IVariableMap { + + /** VariableMap variables */ + variables?: ({ [k: string]: flyteidl.core.IVariable }|null); + } + + /** Represents a VariableMap. */ + class VariableMap implements IVariableMap { + + /** + * Constructs a new VariableMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVariableMap); + + /** VariableMap variables. */ + public variables: { [k: string]: flyteidl.core.IVariable }; + + /** + * Creates a new VariableMap instance using the specified properties. + * @param [properties] Properties to set + * @returns VariableMap instance + */ + public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; + + /** + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @param message VariableMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a VariableMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VariableMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.VariableMap; + + /** + * Verifies a VariableMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypedInterface. */ + interface ITypedInterface { + + /** TypedInterface inputs */ + inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs */ + outputs?: (flyteidl.core.IVariableMap|null); + } + + /** Represents a TypedInterface. */ + class TypedInterface implements ITypedInterface { + + /** + * Constructs a new TypedInterface. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypedInterface); + + /** TypedInterface inputs. */ + public inputs?: (flyteidl.core.IVariableMap|null); + + /** TypedInterface outputs. */ + public outputs?: (flyteidl.core.IVariableMap|null); + + /** + * Creates a new TypedInterface instance using the specified properties. + * @param [properties] Properties to set + * @returns TypedInterface instance + */ + public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; + + /** + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @param message TypedInterface message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypedInterface message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypedInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypedInterface; + + /** + * Verifies a TypedInterface message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter var */ + "var"?: (flyteidl.core.IVariable|null); + + /** Parameter default */ + "default"?: (flyteidl.core.ILiteral|null); + + /** Parameter required */ + required?: (boolean|null); + + /** Parameter artifactQuery */ + artifactQuery?: (flyteidl.core.IArtifactQuery|null); + + /** Parameter artifactId */ + artifactId?: (flyteidl.core.IArtifactID|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IParameter); + + /** Parameter var. */ + public var?: (flyteidl.core.IVariable|null); + + /** Parameter default. */ + public default?: (flyteidl.core.ILiteral|null); + + /** Parameter required. */ + public required: boolean; + + /** Parameter artifactQuery. */ + public artifactQuery?: (flyteidl.core.IArtifactQuery|null); + + /** Parameter artifactId. */ + public artifactId?: (flyteidl.core.IArtifactID|null); + + /** Parameter behavior. */ + public behavior?: ("default"|"required"|"artifactQuery"|"artifactId"); + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Parameter; + + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParameterMap. */ + interface IParameterMap { + + /** ParameterMap parameters */ + parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); + } + + /** Represents a ParameterMap. */ + class ParameterMap implements IParameterMap { + + /** + * Constructs a new ParameterMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IParameterMap); + + /** ParameterMap parameters. */ + public parameters: { [k: string]: flyteidl.core.IParameter }; + + /** + * Creates a new ParameterMap instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterMap instance + */ + public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; + + /** + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @param message ParameterMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParameterMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ParameterMap; + + /** + * Verifies a ParameterMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** SimpleType enum. */ + enum SimpleType { + NONE = 0, + INTEGER = 1, + FLOAT = 2, + STRING = 3, + BOOLEAN = 4, + DATETIME = 5, + DURATION = 6, + BINARY = 7, + ERROR = 8, + STRUCT = 9 + } + + /** Properties of a SchemaType. */ + interface ISchemaType { + + /** SchemaType columns */ + columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); + } + + /** Represents a SchemaType. */ + class SchemaType implements ISchemaType { + + /** + * Constructs a new SchemaType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISchemaType); + + /** SchemaType columns. */ + public columns: flyteidl.core.SchemaType.ISchemaColumn[]; + + /** + * Creates a new SchemaType instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaType instance + */ + public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; + + /** + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @param message SchemaType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType; + + /** + * Verifies a SchemaType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaType { + + /** Properties of a SchemaColumn. */ + interface ISchemaColumn { + + /** SchemaColumn name */ + name?: (string|null); + + /** SchemaColumn type */ + type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); + } + + /** Represents a SchemaColumn. */ + class SchemaColumn implements ISchemaColumn { + + /** + * Constructs a new SchemaColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); + + /** SchemaColumn name. */ + public name: string; + + /** SchemaColumn type. */ + public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns SchemaColumn instance + */ + public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @param message SchemaColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SchemaType.SchemaColumn; + + /** + * Verifies a SchemaColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SchemaColumn { + + /** SchemaColumnType enum. */ + enum SchemaColumnType { + INTEGER = 0, + FLOAT = 1, + STRING = 2, + BOOLEAN = 3, + DATETIME = 4, + DURATION = 5 + } + } + } + + /** Properties of a StructuredDatasetType. */ + interface IStructuredDatasetType { + + /** StructuredDatasetType columns */ + columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null); + + /** StructuredDatasetType format */ + format?: (string|null); + + /** StructuredDatasetType externalSchemaType */ + externalSchemaType?: (string|null); + + /** StructuredDatasetType externalSchemaBytes */ + externalSchemaBytes?: (Uint8Array|null); + } + + /** Represents a StructuredDatasetType. */ + class StructuredDatasetType implements IStructuredDatasetType { + + /** + * Constructs a new StructuredDatasetType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IStructuredDatasetType); + + /** StructuredDatasetType columns. */ + public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[]; + + /** StructuredDatasetType format. */ + public format: string; + + /** StructuredDatasetType externalSchemaType. */ + public externalSchemaType: string; + + /** StructuredDatasetType externalSchemaBytes. */ + public externalSchemaBytes: Uint8Array; + + /** + * Creates a new StructuredDatasetType instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredDatasetType instance + */ + public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType; + + /** + * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. + * @param message StructuredDatasetType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredDatasetType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredDatasetType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType; + + /** + * Verifies a StructuredDatasetType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace StructuredDatasetType { + + /** Properties of a DatasetColumn. */ + interface IDatasetColumn { + + /** DatasetColumn name */ + name?: (string|null); + + /** DatasetColumn literalType */ + literalType?: (flyteidl.core.ILiteralType|null); + } + + /** Represents a DatasetColumn. */ + class DatasetColumn implements IDatasetColumn { + + /** + * Constructs a new DatasetColumn. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn); + + /** DatasetColumn name. */ + public name: string; + + /** DatasetColumn literalType. */ + public literalType?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new DatasetColumn instance using the specified properties. + * @param [properties] Properties to set + * @returns DatasetColumn instance + */ + public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn; + + /** + * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. + * @param message DatasetColumn message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DatasetColumn message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DatasetColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetType.DatasetColumn; + + /** + * Verifies a DatasetColumn message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a BlobType. */ + interface IBlobType { + + /** BlobType format */ + format?: (string|null); + + /** BlobType dimensionality */ + dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); + } + + /** Represents a BlobType. */ + class BlobType implements IBlobType { + + /** + * Constructs a new BlobType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlobType); + + /** BlobType format. */ + public format: string; + + /** BlobType dimensionality. */ + public dimensionality: flyteidl.core.BlobType.BlobDimensionality; + + /** + * Creates a new BlobType instance using the specified properties. + * @param [properties] Properties to set + * @returns BlobType instance + */ + public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; + + /** + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @param message BlobType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlobType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlobType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobType; + + /** + * Verifies a BlobType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace BlobType { + + /** BlobDimensionality enum. */ + enum BlobDimensionality { + SINGLE = 0, + MULTIPART = 1 + } + } + + /** Properties of an EnumType. */ + interface IEnumType { + + /** EnumType values */ + values?: (string[]|null); + } + + /** Represents an EnumType. */ + class EnumType implements IEnumType { + + /** + * Constructs a new EnumType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IEnumType); + + /** EnumType values. */ + public values: string[]; + + /** + * Creates a new EnumType instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumType instance + */ + public static create(properties?: flyteidl.core.IEnumType): flyteidl.core.EnumType; + + /** + * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. + * @param message EnumType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IEnumType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.EnumType; + + /** + * Verifies an EnumType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UnionType. */ + interface IUnionType { + + /** UnionType variants */ + variants?: (flyteidl.core.ILiteralType[]|null); + } + + /** Represents an UnionType. */ + class UnionType implements IUnionType { + + /** + * Constructs a new UnionType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IUnionType); + + /** UnionType variants. */ + public variants: flyteidl.core.ILiteralType[]; + + /** + * Creates a new UnionType instance using the specified properties. + * @param [properties] Properties to set + * @returns UnionType instance + */ + public static create(properties?: flyteidl.core.IUnionType): flyteidl.core.UnionType; + + /** + * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. + * @param message UnionType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IUnionType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnionType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnionType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionType; + + /** + * Verifies an UnionType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypeStructure. */ + interface ITypeStructure { + + /** TypeStructure tag */ + tag?: (string|null); + + /** TypeStructure dataclassType */ + dataclassType?: ({ [k: string]: flyteidl.core.ILiteralType }|null); + } + + /** Represents a TypeStructure. */ + class TypeStructure implements ITypeStructure { + + /** + * Constructs a new TypeStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypeStructure); + + /** TypeStructure tag. */ + public tag: string; + + /** TypeStructure dataclassType. */ + public dataclassType: { [k: string]: flyteidl.core.ILiteralType }; + + /** + * Creates a new TypeStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns TypeStructure instance + */ + public static create(properties?: flyteidl.core.ITypeStructure): flyteidl.core.TypeStructure; + + /** + * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. + * @param message TypeStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypeStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypeStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypeStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeStructure; + + /** + * Verifies a TypeStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TypeAnnotation. */ + interface ITypeAnnotation { + + /** TypeAnnotation annotations */ + annotations?: (google.protobuf.IStruct|null); + } + + /** Represents a TypeAnnotation. */ + class TypeAnnotation implements ITypeAnnotation { + + /** + * Constructs a new TypeAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITypeAnnotation); + + /** TypeAnnotation annotations. */ + public annotations?: (google.protobuf.IStruct|null); + + /** + * Creates a new TypeAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns TypeAnnotation instance + */ + public static create(properties?: flyteidl.core.ITypeAnnotation): flyteidl.core.TypeAnnotation; + + /** + * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. + * @param message TypeAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITypeAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TypeAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TypeAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TypeAnnotation; + + /** + * Verifies a TypeAnnotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralType. */ + interface ILiteralType { + + /** LiteralType simple */ + simple?: (flyteidl.core.SimpleType|null); + + /** LiteralType schema */ + schema?: (flyteidl.core.ISchemaType|null); + + /** LiteralType collectionType */ + collectionType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType mapValueType */ + mapValueType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType blob */ + blob?: (flyteidl.core.IBlobType|null); + + /** LiteralType enumType */ + enumType?: (flyteidl.core.IEnumType|null); + + /** LiteralType structuredDatasetType */ + structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + + /** LiteralType unionType */ + unionType?: (flyteidl.core.IUnionType|null); + + /** LiteralType metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** LiteralType annotation */ + annotation?: (flyteidl.core.ITypeAnnotation|null); + + /** LiteralType structure */ + structure?: (flyteidl.core.ITypeStructure|null); + } + + /** Represents a LiteralType. */ + class LiteralType implements ILiteralType { + + /** + * Constructs a new LiteralType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralType); + + /** LiteralType simple. */ + public simple: flyteidl.core.SimpleType; + + /** LiteralType schema. */ + public schema?: (flyteidl.core.ISchemaType|null); + + /** LiteralType collectionType. */ + public collectionType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType mapValueType. */ + public mapValueType?: (flyteidl.core.ILiteralType|null); + + /** LiteralType blob. */ + public blob?: (flyteidl.core.IBlobType|null); + + /** LiteralType enumType. */ + public enumType?: (flyteidl.core.IEnumType|null); + + /** LiteralType structuredDatasetType. */ + public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + + /** LiteralType unionType. */ + public unionType?: (flyteidl.core.IUnionType|null); + + /** LiteralType metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** LiteralType annotation. */ + public annotation?: (flyteidl.core.ITypeAnnotation|null); + + /** LiteralType structure. */ + public structure?: (flyteidl.core.ITypeStructure|null); + + /** LiteralType type. */ + public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"); + + /** + * Creates a new LiteralType instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralType instance + */ + public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @param message LiteralType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralType; + + /** + * Verifies a LiteralType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an OutputReference. */ + interface IOutputReference { + + /** OutputReference nodeId */ + nodeId?: (string|null); + + /** OutputReference var */ + "var"?: (string|null); + + /** OutputReference attrPath */ + attrPath?: (flyteidl.core.IPromiseAttribute[]|null); + } + + /** Represents an OutputReference. */ + class OutputReference implements IOutputReference { + + /** + * Constructs a new OutputReference. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOutputReference); + + /** OutputReference nodeId. */ + public nodeId: string; + + /** OutputReference var. */ + public var: string; + + /** OutputReference attrPath. */ + public attrPath: flyteidl.core.IPromiseAttribute[]; + + /** + * Creates a new OutputReference instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputReference instance + */ + public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; + + /** + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @param message OutputReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OutputReference; + + /** + * Verifies an OutputReference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PromiseAttribute. */ + interface IPromiseAttribute { + + /** PromiseAttribute stringValue */ + stringValue?: (string|null); + + /** PromiseAttribute intValue */ + intValue?: (number|null); + } + + /** Represents a PromiseAttribute. */ + class PromiseAttribute implements IPromiseAttribute { + + /** + * Constructs a new PromiseAttribute. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IPromiseAttribute); + + /** PromiseAttribute stringValue. */ + public stringValue: string; + + /** PromiseAttribute intValue. */ + public intValue: number; + + /** PromiseAttribute value. */ + public value?: ("stringValue"|"intValue"); + + /** + * Creates a new PromiseAttribute instance using the specified properties. + * @param [properties] Properties to set + * @returns PromiseAttribute instance + */ + public static create(properties?: flyteidl.core.IPromiseAttribute): flyteidl.core.PromiseAttribute; + + /** + * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. + * @param message PromiseAttribute message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IPromiseAttribute, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PromiseAttribute message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PromiseAttribute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.PromiseAttribute; + + /** + * Verifies a PromiseAttribute message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Error. */ + interface IError { + + /** Error failedNodeId */ + failedNodeId?: (string|null); + + /** Error message */ + message?: (string|null); + } + + /** Represents an Error. */ + class Error implements IError { + + /** + * Constructs a new Error. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IError); + + /** Error failedNodeId. */ + public failedNodeId: string; + + /** Error message. */ + public message: string; + + /** + * Creates a new Error instance using the specified properties. + * @param [properties] Properties to set + * @returns Error instance + */ + public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; + + /** + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @param message Error message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Error message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Error + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Error; + + /** + * Verifies an Error message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Primitive. */ + interface IPrimitive { + + /** Primitive integer */ + integer?: (Long|null); + + /** Primitive floatValue */ + floatValue?: (number|null); + + /** Primitive stringValue */ + stringValue?: (string|null); + + /** Primitive boolean */ + boolean?: (boolean|null); + + /** Primitive datetime */ + datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a Primitive. */ + class Primitive implements IPrimitive { + + /** + * Constructs a new Primitive. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IPrimitive); + + /** Primitive integer. */ + public integer: Long; + + /** Primitive floatValue. */ + public floatValue: number; + + /** Primitive stringValue. */ + public stringValue: string; + + /** Primitive boolean. */ + public boolean: boolean; + + /** Primitive datetime. */ + public datetime?: (google.protobuf.ITimestamp|null); + + /** Primitive duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** Primitive value. */ + public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); + + /** + * Creates a new Primitive instance using the specified properties. + * @param [properties] Properties to set + * @returns Primitive instance + */ + public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; + + /** + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @param message Primitive message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Primitive message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Primitive + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Primitive; + + /** + * Verifies a Primitive message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Void. */ + interface IVoid { + } + + /** Represents a Void. */ + class Void implements IVoid { + + /** + * Constructs a new Void. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IVoid); + + /** + * Creates a new Void instance using the specified properties. + * @param [properties] Properties to set + * @returns Void instance + */ + public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; + + /** + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @param message Void message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Void message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Void + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Void; + + /** + * Verifies a Void message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Blob. */ + interface IBlob { + + /** Blob metadata */ + metadata?: (flyteidl.core.IBlobMetadata|null); + + /** Blob uri */ + uri?: (string|null); + } + + /** Represents a Blob. */ + class Blob implements IBlob { + + /** + * Constructs a new Blob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlob); + + /** Blob metadata. */ + public metadata?: (flyteidl.core.IBlobMetadata|null); + + /** Blob uri. */ + public uri: string; + + /** + * Creates a new Blob instance using the specified properties. + * @param [properties] Properties to set + * @returns Blob instance + */ + public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; + + /** + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @param message Blob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Blob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Blob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Blob; + + /** + * Verifies a Blob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BlobMetadata. */ + interface IBlobMetadata { + + /** BlobMetadata type */ + type?: (flyteidl.core.IBlobType|null); + } + + /** Represents a BlobMetadata. */ + class BlobMetadata implements IBlobMetadata { + + /** + * Constructs a new BlobMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBlobMetadata); + + /** BlobMetadata type. */ + public type?: (flyteidl.core.IBlobType|null); + + /** + * Creates a new BlobMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BlobMetadata instance + */ + public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; + + /** + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @param message BlobMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlobMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlobMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BlobMetadata; + + /** + * Verifies a BlobMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Binary. */ + interface IBinary { + + /** Binary value */ + value?: (Uint8Array|null); + + /** Binary tag */ + tag?: (string|null); + } + + /** Represents a Binary. */ + class Binary implements IBinary { + + /** + * Constructs a new Binary. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBinary); + + /** Binary value. */ + public value: Uint8Array; + + /** Binary tag. */ + public tag: string; + + /** + * Creates a new Binary instance using the specified properties. + * @param [properties] Properties to set + * @returns Binary instance + */ + public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; + + /** + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @param message Binary message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binary message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binary; + + /** + * Verifies a Binary message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Schema. */ + interface ISchema { + + /** Schema uri */ + uri?: (string|null); + + /** Schema type */ + type?: (flyteidl.core.ISchemaType|null); + } + + /** Represents a Schema. */ + class Schema implements ISchema { + + /** + * Constructs a new Schema. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISchema); + + /** Schema uri. */ + public uri: string; + + /** Schema type. */ + public type?: (flyteidl.core.ISchemaType|null); + + /** + * Creates a new Schema instance using the specified properties. + * @param [properties] Properties to set + * @returns Schema instance + */ + public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; + + /** + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @param message Schema message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Schema; + + /** + * Verifies a Schema message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Union. */ + interface IUnion { + + /** Union value */ + value?: (flyteidl.core.ILiteral|null); + + /** Union type */ + type?: (flyteidl.core.ILiteralType|null); + } + + /** Represents an Union. */ + class Union implements IUnion { + + /** + * Constructs a new Union. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IUnion); + + /** Union value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** Union type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new Union instance using the specified properties. + * @param [properties] Properties to set + * @returns Union instance + */ + public static create(properties?: flyteidl.core.IUnion): flyteidl.core.Union; + + /** + * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. + * @param message Union message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Union message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Union; + + /** + * Verifies an Union message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a StructuredDatasetMetadata. */ + interface IStructuredDatasetMetadata { + + /** StructuredDatasetMetadata structuredDatasetType */ + structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + } + + /** Represents a StructuredDatasetMetadata. */ + class StructuredDatasetMetadata implements IStructuredDatasetMetadata { + + /** + * Constructs a new StructuredDatasetMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IStructuredDatasetMetadata); + + /** StructuredDatasetMetadata structuredDatasetType. */ + public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); + + /** + * Creates a new StructuredDatasetMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredDatasetMetadata instance + */ + public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata; + + /** + * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. + * @param message StructuredDatasetMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDatasetMetadata; + + /** + * Verifies a StructuredDatasetMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a StructuredDataset. */ + interface IStructuredDataset { + + /** StructuredDataset uri */ + uri?: (string|null); + + /** StructuredDataset metadata */ + metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); + } + + /** Represents a StructuredDataset. */ + class StructuredDataset implements IStructuredDataset { + + /** + * Constructs a new StructuredDataset. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IStructuredDataset); + + /** StructuredDataset uri. */ + public uri: string; + + /** StructuredDataset metadata. */ + public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); + + /** + * Creates a new StructuredDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns StructuredDataset instance + */ + public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset; + + /** + * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. + * @param message StructuredDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StructuredDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StructuredDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.StructuredDataset; + + /** + * Verifies a StructuredDataset message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Scalar. */ + interface IScalar { + + /** Scalar primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Scalar blob */ + blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary */ + binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema */ + schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType */ + noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error */ + error?: (flyteidl.core.IError|null); + + /** Scalar generic */ + generic?: (google.protobuf.IStruct|null); + + /** Scalar structuredDataset */ + structuredDataset?: (flyteidl.core.IStructuredDataset|null); + + /** Scalar union */ + union?: (flyteidl.core.IUnion|null); + } + + /** Represents a Scalar. */ + class Scalar implements IScalar { + + /** + * Constructs a new Scalar. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IScalar); + + /** Scalar primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Scalar blob. */ + public blob?: (flyteidl.core.IBlob|null); + + /** Scalar binary. */ + public binary?: (flyteidl.core.IBinary|null); + + /** Scalar schema. */ + public schema?: (flyteidl.core.ISchema|null); + + /** Scalar noneType. */ + public noneType?: (flyteidl.core.IVoid|null); + + /** Scalar error. */ + public error?: (flyteidl.core.IError|null); + + /** Scalar generic. */ + public generic?: (google.protobuf.IStruct|null); + + /** Scalar structuredDataset. */ + public structuredDataset?: (flyteidl.core.IStructuredDataset|null); + + /** Scalar union. */ + public union?: (flyteidl.core.IUnion|null); + + /** Scalar value. */ + public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"); + + /** + * Creates a new Scalar instance using the specified properties. + * @param [properties] Properties to set + * @returns Scalar instance + */ + public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scalar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Scalar; + + /** + * Verifies a Scalar message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Literal. */ + interface ILiteral { + + /** Literal scalar */ + scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection */ + collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map */ + map?: (flyteidl.core.ILiteralMap|null); + + /** Literal hash */ + hash?: (string|null); + + /** Literal metadata */ + metadata?: ({ [k: string]: string }|null); + } + + /** Represents a Literal. */ + class Literal implements ILiteral { + + /** + * Constructs a new Literal. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteral); + + /** Literal scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Literal collection. */ + public collection?: (flyteidl.core.ILiteralCollection|null); + + /** Literal map. */ + public map?: (flyteidl.core.ILiteralMap|null); + + /** Literal hash. */ + public hash: string; + + /** Literal metadata. */ + public metadata: { [k: string]: string }; + + /** Literal value. */ + public value?: ("scalar"|"collection"|"map"); + + /** + * Creates a new Literal instance using the specified properties. + * @param [properties] Properties to set + * @returns Literal instance + */ + public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @param message Literal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Literal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Literal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Literal; + + /** + * Verifies a Literal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralCollection. */ + interface ILiteralCollection { + + /** LiteralCollection literals */ + literals?: (flyteidl.core.ILiteral[]|null); + } + + /** Represents a LiteralCollection. */ + class LiteralCollection implements ILiteralCollection { + + /** + * Constructs a new LiteralCollection. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralCollection); + + /** LiteralCollection literals. */ + public literals: flyteidl.core.ILiteral[]; + + /** + * Creates a new LiteralCollection instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralCollection instance + */ + public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; + + /** + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @param message LiteralCollection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralCollection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralCollection; + + /** + * Verifies a LiteralCollection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralMap. */ + interface ILiteralMap { + + /** LiteralMap literals */ + literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); + } + + /** Represents a LiteralMap. */ + class LiteralMap implements ILiteralMap { + + /** + * Constructs a new LiteralMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILiteralMap); + + /** LiteralMap literals. */ + public literals: { [k: string]: flyteidl.core.ILiteral }; + + /** + * Creates a new LiteralMap instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralMap instance + */ + public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; + + /** + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @param message LiteralMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LiteralMap; + + /** + * Verifies a LiteralMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingDataCollection. */ + interface IBindingDataCollection { + + /** BindingDataCollection bindings */ + bindings?: (flyteidl.core.IBindingData[]|null); + } + + /** Represents a BindingDataCollection. */ + class BindingDataCollection implements IBindingDataCollection { + + /** + * Constructs a new BindingDataCollection. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingDataCollection); + + /** BindingDataCollection bindings. */ + public bindings: flyteidl.core.IBindingData[]; + + /** + * Creates a new BindingDataCollection instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataCollection instance + */ + public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; + + /** + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @param message BindingDataCollection message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDataCollection message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataCollection; + + /** + * Verifies a BindingDataCollection message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingDataMap. */ + interface IBindingDataMap { + + /** BindingDataMap bindings */ + bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); + } + + /** Represents a BindingDataMap. */ + class BindingDataMap implements IBindingDataMap { + + /** + * Constructs a new BindingDataMap. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingDataMap); + + /** BindingDataMap bindings. */ + public bindings: { [k: string]: flyteidl.core.IBindingData }; + + /** + * Creates a new BindingDataMap instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingDataMap instance + */ + public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; + + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @param message BindingDataMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingDataMap; + + /** + * Verifies a BindingDataMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UnionInfo. */ + interface IUnionInfo { + + /** UnionInfo targetType */ + targetType?: (flyteidl.core.ILiteralType|null); + } + + /** Represents an UnionInfo. */ + class UnionInfo implements IUnionInfo { + + /** + * Constructs a new UnionInfo. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IUnionInfo); + + /** UnionInfo targetType. */ + public targetType?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new UnionInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns UnionInfo instance + */ + public static create(properties?: flyteidl.core.IUnionInfo): flyteidl.core.UnionInfo; + + /** + * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. + * @param message UnionInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IUnionInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UnionInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UnionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.UnionInfo; + + /** + * Verifies an UnionInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BindingData. */ + interface IBindingData { + + /** BindingData scalar */ + scalar?: (flyteidl.core.IScalar|null); + + /** BindingData collection */ + collection?: (flyteidl.core.IBindingDataCollection|null); + + /** BindingData promise */ + promise?: (flyteidl.core.IOutputReference|null); + + /** BindingData map */ + map?: (flyteidl.core.IBindingDataMap|null); + + /** BindingData union */ + union?: (flyteidl.core.IUnionInfo|null); + } + + /** Represents a BindingData. */ + class BindingData implements IBindingData { + + /** + * Constructs a new BindingData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBindingData); + + /** BindingData scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** BindingData collection. */ + public collection?: (flyteidl.core.IBindingDataCollection|null); + + /** BindingData promise. */ + public promise?: (flyteidl.core.IOutputReference|null); + + /** BindingData map. */ + public map?: (flyteidl.core.IBindingDataMap|null); + + /** BindingData union. */ + public union?: (flyteidl.core.IUnionInfo|null); + + /** BindingData value. */ + public value?: ("scalar"|"collection"|"promise"|"map"); + + /** + * Creates a new BindingData instance using the specified properties. + * @param [properties] Properties to set + * @returns BindingData instance + */ + public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; + + /** + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @param message BindingData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BindingData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BindingData; + + /** + * Verifies a BindingData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Binding. */ + interface IBinding { + + /** Binding var */ + "var"?: (string|null); + + /** Binding binding */ + binding?: (flyteidl.core.IBindingData|null); + } + + /** Represents a Binding. */ + class Binding implements IBinding { + + /** + * Constructs a new Binding. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBinding); + + /** Binding var. */ + public var: string; + + /** Binding binding. */ + public binding?: (flyteidl.core.IBindingData|null); + + /** + * Creates a new Binding instance using the specified properties. + * @param [properties] Properties to set + * @returns Binding instance + */ + public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; + + /** + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @param message Binding message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Binding; + + /** + * Verifies a Binding message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a KeyValuePair. */ + interface IKeyValuePair { + + /** KeyValuePair key */ + key?: (string|null); + + /** KeyValuePair value */ + value?: (string|null); + } + + /** Represents a KeyValuePair. */ + class KeyValuePair implements IKeyValuePair { + + /** + * Constructs a new KeyValuePair. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IKeyValuePair); + + /** KeyValuePair key. */ + public key: string; + + /** KeyValuePair value. */ + public value: string; + + /** + * Creates a new KeyValuePair instance using the specified properties. + * @param [properties] Properties to set + * @returns KeyValuePair instance + */ + public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; + + /** + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @param message KeyValuePair message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KeyValuePair message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KeyValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.KeyValuePair; + + /** + * Verifies a KeyValuePair message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a RetryStrategy. */ + interface IRetryStrategy { + + /** RetryStrategy retries */ + retries?: (number|null); + } + + /** Represents a RetryStrategy. */ + class RetryStrategy implements IRetryStrategy { + + /** + * Constructs a new RetryStrategy. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IRetryStrategy); + + /** RetryStrategy retries. */ + public retries: number; + + /** + * Creates a new RetryStrategy instance using the specified properties. + * @param [properties] Properties to set + * @returns RetryStrategy instance + */ + public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; + + /** + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @param message RetryStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RetryStrategy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RetryStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RetryStrategy; + + /** + * Verifies a RetryStrategy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an IfBlock. */ + interface IIfBlock { + + /** IfBlock condition */ + condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode */ + thenNode?: (flyteidl.core.INode|null); + } + + /** Represents an IfBlock. */ + class IfBlock implements IIfBlock { + + /** + * Constructs a new IfBlock. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIfBlock); + + /** IfBlock condition. */ + public condition?: (flyteidl.core.IBooleanExpression|null); + + /** IfBlock thenNode. */ + public thenNode?: (flyteidl.core.INode|null); + + /** + * Creates a new IfBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns IfBlock instance + */ + public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; + + /** + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @param message IfBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IfBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IfBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfBlock; + + /** + * Verifies an IfBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an IfElseBlock. */ + interface IIfElseBlock { + + /** IfElseBlock case */ + "case"?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other */ + other?: (flyteidl.core.IIfBlock[]|null); + + /** IfElseBlock elseNode */ + elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error */ + error?: (flyteidl.core.IError|null); + } + + /** Represents an IfElseBlock. */ + class IfElseBlock implements IIfElseBlock { + + /** + * Constructs a new IfElseBlock. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIfElseBlock); + + /** IfElseBlock case. */ + public case?: (flyteidl.core.IIfBlock|null); + + /** IfElseBlock other. */ + public other: flyteidl.core.IIfBlock[]; + + /** IfElseBlock elseNode. */ + public elseNode?: (flyteidl.core.INode|null); + + /** IfElseBlock error. */ + public error?: (flyteidl.core.IError|null); + + /** IfElseBlock default. */ + public default_?: ("elseNode"|"error"); + + /** + * Creates a new IfElseBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns IfElseBlock instance + */ + public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; + + /** + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @param message IfElseBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IfElseBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IfElseBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IfElseBlock; + + /** + * Verifies an IfElseBlock message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BranchNode. */ + interface IBranchNode { + + /** BranchNode ifElse */ + ifElse?: (flyteidl.core.IIfElseBlock|null); + } + + /** Represents a BranchNode. */ + class BranchNode implements IBranchNode { + + /** + * Constructs a new BranchNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBranchNode); + + /** BranchNode ifElse. */ + public ifElse?: (flyteidl.core.IIfElseBlock|null); + + /** + * Creates a new BranchNode instance using the specified properties. + * @param [properties] Properties to set + * @returns BranchNode instance + */ + public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @param message BranchNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BranchNode; + + /** + * Verifies a BranchNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNode. */ + interface ITaskNode { + + /** TaskNode referenceId */ + referenceId?: (flyteidl.core.IIdentifier|null); + + /** TaskNode overrides */ + overrides?: (flyteidl.core.ITaskNodeOverrides|null); + } + + /** Represents a TaskNode. */ + class TaskNode implements ITaskNode { + + /** + * Constructs a new TaskNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskNode); + + /** TaskNode referenceId. */ + public referenceId?: (flyteidl.core.IIdentifier|null); + + /** TaskNode overrides. */ + public overrides?: (flyteidl.core.ITaskNodeOverrides|null); + + /** TaskNode reference. */ + public reference?: "referenceId"; + + /** + * Creates a new TaskNode instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNode instance + */ + public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; + + /** + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @param message TaskNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNode; + + /** + * Verifies a TaskNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNode. */ + interface IWorkflowNode { + + /** WorkflowNode launchplanRef */ + launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef */ + subWorkflowRef?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowNode. */ + class WorkflowNode implements IWorkflowNode { + + /** + * Constructs a new WorkflowNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowNode); + + /** WorkflowNode launchplanRef. */ + public launchplanRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode subWorkflowRef. */ + public subWorkflowRef?: (flyteidl.core.IIdentifier|null); + + /** WorkflowNode reference. */ + public reference?: ("launchplanRef"|"subWorkflowRef"); + + /** + * Creates a new WorkflowNode instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNode instance + */ + public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; + + /** + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @param message WorkflowNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowNode; + + /** + * Verifies a WorkflowNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ApproveCondition. */ + interface IApproveCondition { + + /** ApproveCondition signalId */ + signalId?: (string|null); + } + + /** Represents an ApproveCondition. */ + class ApproveCondition implements IApproveCondition { + + /** + * Constructs a new ApproveCondition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IApproveCondition); + + /** ApproveCondition signalId. */ + public signalId: string; + + /** + * Creates a new ApproveCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns ApproveCondition instance + */ + public static create(properties?: flyteidl.core.IApproveCondition): flyteidl.core.ApproveCondition; + + /** + * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. + * @param message ApproveCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IApproveCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ApproveCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ApproveCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ApproveCondition; + + /** + * Verifies an ApproveCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalCondition. */ + interface ISignalCondition { + + /** SignalCondition signalId */ + signalId?: (string|null); + + /** SignalCondition type */ + type?: (flyteidl.core.ILiteralType|null); + + /** SignalCondition outputVariableName */ + outputVariableName?: (string|null); + } + + /** Represents a SignalCondition. */ + class SignalCondition implements ISignalCondition { + + /** + * Constructs a new SignalCondition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISignalCondition); + + /** SignalCondition signalId. */ + public signalId: string; + + /** SignalCondition type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** SignalCondition outputVariableName. */ + public outputVariableName: string; + + /** + * Creates a new SignalCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalCondition instance + */ + public static create(properties?: flyteidl.core.ISignalCondition): flyteidl.core.SignalCondition; + + /** + * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. + * @param message SignalCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISignalCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SignalCondition; + + /** + * Verifies a SignalCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SleepCondition. */ + interface ISleepCondition { + + /** SleepCondition duration */ + duration?: (google.protobuf.IDuration|null); + } + + /** Represents a SleepCondition. */ + class SleepCondition implements ISleepCondition { + + /** + * Constructs a new SleepCondition. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISleepCondition); + + /** SleepCondition duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** + * Creates a new SleepCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns SleepCondition instance + */ + public static create(properties?: flyteidl.core.ISleepCondition): flyteidl.core.SleepCondition; + + /** + * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. + * @param message SleepCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISleepCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SleepCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SleepCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SleepCondition; + + /** + * Verifies a SleepCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GateNode. */ + interface IGateNode { + + /** GateNode approve */ + approve?: (flyteidl.core.IApproveCondition|null); + + /** GateNode signal */ + signal?: (flyteidl.core.ISignalCondition|null); + + /** GateNode sleep */ + sleep?: (flyteidl.core.ISleepCondition|null); + } + + /** Represents a GateNode. */ + class GateNode implements IGateNode { + + /** + * Constructs a new GateNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IGateNode); + + /** GateNode approve. */ + public approve?: (flyteidl.core.IApproveCondition|null); + + /** GateNode signal. */ + public signal?: (flyteidl.core.ISignalCondition|null); + + /** GateNode sleep. */ + public sleep?: (flyteidl.core.ISleepCondition|null); + + /** GateNode condition. */ + public condition?: ("approve"|"signal"|"sleep"); + + /** + * Creates a new GateNode instance using the specified properties. + * @param [properties] Properties to set + * @returns GateNode instance + */ + public static create(properties?: flyteidl.core.IGateNode): flyteidl.core.GateNode; + + /** + * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. + * @param message GateNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IGateNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GateNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GateNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GateNode; + + /** + * Verifies a GateNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ArrayNode. */ + interface IArrayNode { + + /** ArrayNode node */ + node?: (flyteidl.core.INode|null); + + /** ArrayNode parallelism */ + parallelism?: (number|null); + + /** ArrayNode minSuccesses */ + minSuccesses?: (number|null); + + /** ArrayNode minSuccessRatio */ + minSuccessRatio?: (number|null); + } + + /** Represents an ArrayNode. */ + class ArrayNode implements IArrayNode { + + /** + * Constructs a new ArrayNode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IArrayNode); + + /** ArrayNode node. */ + public node?: (flyteidl.core.INode|null); + + /** ArrayNode parallelism. */ + public parallelism: number; + + /** ArrayNode minSuccesses. */ + public minSuccesses: number; + + /** ArrayNode minSuccessRatio. */ + public minSuccessRatio: number; + + /** ArrayNode successCriteria. */ + public successCriteria?: ("minSuccesses"|"minSuccessRatio"); + + /** + * Creates a new ArrayNode instance using the specified properties. + * @param [properties] Properties to set + * @returns ArrayNode instance + */ + public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode; + + /** + * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. + * @param message ArrayNode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArrayNode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArrayNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ArrayNode; + + /** + * Verifies an ArrayNode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeMetadata. */ + interface INodeMetadata { + + /** NodeMetadata name */ + name?: (string|null); + + /** NodeMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + + /** NodeMetadata interruptible */ + interruptible?: (boolean|null); + + /** NodeMetadata cacheable */ + cacheable?: (boolean|null); + + /** NodeMetadata cacheVersion */ + cacheVersion?: (string|null); + + /** NodeMetadata cacheSerializable */ + cacheSerializable?: (boolean|null); + } + + /** Represents a NodeMetadata. */ + class NodeMetadata implements INodeMetadata { + + /** + * Constructs a new NodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeMetadata); + + /** NodeMetadata name. */ + public name: string; + + /** NodeMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** NodeMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** NodeMetadata interruptible. */ + public interruptible: boolean; + + /** NodeMetadata cacheable. */ + public cacheable: boolean; + + /** NodeMetadata cacheVersion. */ + public cacheVersion: string; + + /** NodeMetadata cacheSerializable. */ + public cacheSerializable: boolean; + + /** NodeMetadata interruptibleValue. */ + public interruptibleValue?: "interruptible"; + + /** NodeMetadata cacheableValue. */ + public cacheableValue?: "cacheable"; + + /** NodeMetadata cacheVersionValue. */ + public cacheVersionValue?: "cacheVersion"; + + /** NodeMetadata cacheSerializableValue. */ + public cacheSerializableValue?: "cacheSerializable"; + + /** + * Creates a new NodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeMetadata instance + */ + public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; + + /** + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @param message NodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeMetadata; + + /** + * Verifies a NodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Alias. */ + interface IAlias { + + /** Alias var */ + "var"?: (string|null); + + /** Alias alias */ + alias?: (string|null); + } + + /** Represents an Alias. */ + class Alias implements IAlias { + + /** + * Constructs a new Alias. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IAlias); + + /** Alias var. */ + public var: string; + + /** Alias alias. */ + public alias: string; + + /** + * Creates a new Alias instance using the specified properties. + * @param [properties] Properties to set + * @returns Alias instance + */ + public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; + + /** + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @param message Alias message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Alias message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Alias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Alias; + + /** + * Verifies an Alias message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Node. */ + interface INode { + + /** Node id */ + id?: (string|null); + + /** Node metadata */ + metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs */ + inputs?: (flyteidl.core.IBinding[]|null); + + /** Node upstreamNodeIds */ + upstreamNodeIds?: (string[]|null); + + /** Node outputAliases */ + outputAliases?: (flyteidl.core.IAlias[]|null); + + /** Node taskNode */ + taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode */ + workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode */ + branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node gateNode */ + gateNode?: (flyteidl.core.IGateNode|null); + + /** Node arrayNode */ + arrayNode?: (flyteidl.core.IArrayNode|null); + } + + /** Represents a Node. */ + class Node implements INode { + + /** + * Constructs a new Node. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INode); + + /** Node id. */ + public id: string; + + /** Node metadata. */ + public metadata?: (flyteidl.core.INodeMetadata|null); + + /** Node inputs. */ + public inputs: flyteidl.core.IBinding[]; + + /** Node upstreamNodeIds. */ + public upstreamNodeIds: string[]; + + /** Node outputAliases. */ + public outputAliases: flyteidl.core.IAlias[]; + + /** Node taskNode. */ + public taskNode?: (flyteidl.core.ITaskNode|null); + + /** Node workflowNode. */ + public workflowNode?: (flyteidl.core.IWorkflowNode|null); + + /** Node branchNode. */ + public branchNode?: (flyteidl.core.IBranchNode|null); + + /** Node gateNode. */ + public gateNode?: (flyteidl.core.IGateNode|null); + + /** Node arrayNode. */ + public arrayNode?: (flyteidl.core.IArrayNode|null); + + /** Node target. */ + public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"); + + /** + * Creates a new Node instance using the specified properties. + * @param [properties] Properties to set + * @returns Node instance + */ + public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; + + /** + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @param message Node message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Node message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Node; + + /** + * Verifies a Node message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowMetadata. */ + interface IWorkflowMetadata { + + /** WorkflowMetadata qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** WorkflowMetadata onFailure */ + onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null); + + /** WorkflowMetadata tags */ + tags?: ({ [k: string]: string }|null); + } + + /** Represents a WorkflowMetadata. */ + class WorkflowMetadata implements IWorkflowMetadata { + + /** + * Constructs a new WorkflowMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowMetadata); + + /** WorkflowMetadata qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** WorkflowMetadata onFailure. */ + public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy; + + /** WorkflowMetadata tags. */ + public tags: { [k: string]: string }; + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMetadata instance + */ + public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @param message WorkflowMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadata; + + /** + * Verifies a WorkflowMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace WorkflowMetadata { + + /** OnFailurePolicy enum. */ + enum OnFailurePolicy { + FAIL_IMMEDIATELY = 0, + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1 + } + } + + /** Properties of a WorkflowMetadataDefaults. */ + interface IWorkflowMetadataDefaults { + + /** WorkflowMetadataDefaults interruptible */ + interruptible?: (boolean|null); + } + + /** Represents a WorkflowMetadataDefaults. */ + class WorkflowMetadataDefaults implements IWorkflowMetadataDefaults { + + /** + * Constructs a new WorkflowMetadataDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowMetadataDefaults); + + /** WorkflowMetadataDefaults interruptible. */ + public interruptible: boolean; + + /** + * Creates a new WorkflowMetadataDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowMetadataDefaults instance + */ + public static create(properties?: flyteidl.core.IWorkflowMetadataDefaults): flyteidl.core.WorkflowMetadataDefaults; + + /** + * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. + * @param message WorkflowMetadataDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowMetadataDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowMetadataDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowMetadataDefaults; + + /** + * Verifies a WorkflowMetadataDefaults message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowTemplate. */ + interface IWorkflowTemplate { + + /** WorkflowTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowTemplate metadata */ + metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** WorkflowTemplate outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** WorkflowTemplate failureNode */ + failureNode?: (flyteidl.core.INode|null); + + /** WorkflowTemplate metadataDefaults */ + metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); + } + + /** Represents a WorkflowTemplate. */ + class WorkflowTemplate implements IWorkflowTemplate { + + /** + * Constructs a new WorkflowTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowTemplate); + + /** WorkflowTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowTemplate metadata. */ + public metadata?: (flyteidl.core.IWorkflowMetadata|null); + + /** WorkflowTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** WorkflowTemplate nodes. */ + public nodes: flyteidl.core.INode[]; + + /** WorkflowTemplate outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** WorkflowTemplate failureNode. */ + public failureNode?: (flyteidl.core.INode|null); + + /** WorkflowTemplate metadataDefaults. */ + public metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); + + /** + * Creates a new WorkflowTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowTemplate instance + */ + public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; + + /** + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @param message WorkflowTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowTemplate; + + /** + * Verifies a WorkflowTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNodeOverrides. */ + interface ITaskNodeOverrides { + + /** TaskNodeOverrides resources */ + resources?: (flyteidl.core.IResources|null); + + /** TaskNodeOverrides extendedResources */ + extendedResources?: (flyteidl.core.IExtendedResources|null); + } + + /** Represents a TaskNodeOverrides. */ + class TaskNodeOverrides implements ITaskNodeOverrides { + + /** + * Constructs a new TaskNodeOverrides. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskNodeOverrides); + + /** TaskNodeOverrides resources. */ + public resources?: (flyteidl.core.IResources|null); + + /** TaskNodeOverrides extendedResources. */ + public extendedResources?: (flyteidl.core.IExtendedResources|null); + + /** + * Creates a new TaskNodeOverrides instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNodeOverrides instance + */ + public static create(properties?: flyteidl.core.ITaskNodeOverrides): flyteidl.core.TaskNodeOverrides; + + /** + * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. + * @param message TaskNodeOverrides message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskNodeOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNodeOverrides message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNodeOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskNodeOverrides; + + /** + * Verifies a TaskNodeOverrides message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanTemplate. */ + interface ILaunchPlanTemplate { + + /** LaunchPlanTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** LaunchPlanTemplate fixedInputs */ + fixedInputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a LaunchPlanTemplate. */ + class LaunchPlanTemplate implements ILaunchPlanTemplate { + + /** + * Constructs a new LaunchPlanTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ILaunchPlanTemplate); + + /** LaunchPlanTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** LaunchPlanTemplate fixedInputs. */ + public fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new LaunchPlanTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanTemplate instance + */ + public static create(properties?: flyteidl.core.ILaunchPlanTemplate): flyteidl.core.LaunchPlanTemplate; + + /** + * Encodes the specified LaunchPlanTemplate message. Does not implicitly {@link flyteidl.core.LaunchPlanTemplate.verify|verify} messages. + * @param message LaunchPlanTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ILaunchPlanTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.LaunchPlanTemplate; + + /** + * Verifies a LaunchPlanTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ComparisonExpression. */ + interface IComparisonExpression { + + /** ComparisonExpression operator */ + operator?: (flyteidl.core.ComparisonExpression.Operator|null); + + /** ComparisonExpression leftValue */ + leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue */ + rightValue?: (flyteidl.core.IOperand|null); + } + + /** Represents a ComparisonExpression. */ + class ComparisonExpression implements IComparisonExpression { + + /** + * Constructs a new ComparisonExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IComparisonExpression); + + /** ComparisonExpression operator. */ + public operator: flyteidl.core.ComparisonExpression.Operator; + + /** ComparisonExpression leftValue. */ + public leftValue?: (flyteidl.core.IOperand|null); + + /** ComparisonExpression rightValue. */ + public rightValue?: (flyteidl.core.IOperand|null); + + /** + * Creates a new ComparisonExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns ComparisonExpression instance + */ + public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; + + /** + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @param message ComparisonExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ComparisonExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ComparisonExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ComparisonExpression; + + /** + * Verifies a ComparisonExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ComparisonExpression { + + /** Operator enum. */ + enum Operator { + EQ = 0, + NEQ = 1, + GT = 2, + GTE = 3, + LT = 4, + LTE = 5 + } + } + + /** Properties of an Operand. */ + interface IOperand { + + /** Operand primitive */ + primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var */ + "var"?: (string|null); + + /** Operand scalar */ + scalar?: (flyteidl.core.IScalar|null); + } + + /** Represents an Operand. */ + class Operand implements IOperand { + + /** + * Constructs a new Operand. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOperand); + + /** Operand primitive. */ + public primitive?: (flyteidl.core.IPrimitive|null); + + /** Operand var. */ + public var: string; + + /** Operand scalar. */ + public scalar?: (flyteidl.core.IScalar|null); + + /** Operand val. */ + public val?: ("primitive"|"var"|"scalar"); + + /** + * Creates a new Operand instance using the specified properties. + * @param [properties] Properties to set + * @returns Operand instance + */ + public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; + + /** + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @param message Operand message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operand message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operand + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Operand; + + /** + * Verifies an Operand message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BooleanExpression. */ + interface IBooleanExpression { + + /** BooleanExpression conjunction */ + conjunction?: (flyteidl.core.IConjunctionExpression|null); + + /** BooleanExpression comparison */ + comparison?: (flyteidl.core.IComparisonExpression|null); + } + + /** Represents a BooleanExpression. */ + class BooleanExpression implements IBooleanExpression { + + /** + * Constructs a new BooleanExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IBooleanExpression); + + /** BooleanExpression conjunction. */ + public conjunction?: (flyteidl.core.IConjunctionExpression|null); + + /** BooleanExpression comparison. */ + public comparison?: (flyteidl.core.IComparisonExpression|null); + + /** BooleanExpression expr. */ + public expr?: ("conjunction"|"comparison"); + + /** + * Creates a new BooleanExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns BooleanExpression instance + */ + public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; + + /** + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @param message BooleanExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BooleanExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BooleanExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.BooleanExpression; + + /** + * Verifies a BooleanExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ConjunctionExpression. */ + interface IConjunctionExpression { + + /** ConjunctionExpression operator */ + operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); + + /** ConjunctionExpression leftExpression */ + leftExpression?: (flyteidl.core.IBooleanExpression|null); + + /** ConjunctionExpression rightExpression */ + rightExpression?: (flyteidl.core.IBooleanExpression|null); + } + + /** Represents a ConjunctionExpression. */ + class ConjunctionExpression implements IConjunctionExpression { + + /** + * Constructs a new ConjunctionExpression. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IConjunctionExpression); + + /** ConjunctionExpression operator. */ + public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; + + /** ConjunctionExpression leftExpression. */ + public leftExpression?: (flyteidl.core.IBooleanExpression|null); + + /** ConjunctionExpression rightExpression. */ + public rightExpression?: (flyteidl.core.IBooleanExpression|null); + + /** + * Creates a new ConjunctionExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns ConjunctionExpression instance + */ + public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; + + /** + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @param message ConjunctionExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConjunctionExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConjunctionExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ConjunctionExpression; + + /** + * Verifies a ConjunctionExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ConjunctionExpression { + + /** LogicalOperator enum. */ + enum LogicalOperator { + AND = 0, + OR = 1 + } + } + + /** Properties of a WorkflowExecution. */ + interface IWorkflowExecution { + } + + /** Represents a WorkflowExecution. */ + class WorkflowExecution implements IWorkflowExecution { + + /** + * Constructs a new WorkflowExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowExecution); + + /** + * Creates a new WorkflowExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecution instance + */ + public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; + + /** + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @param message WorkflowExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowExecution; + + /** + * Verifies a WorkflowExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace WorkflowExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDING = 3, + SUCCEEDED = 4, + FAILING = 5, + FAILED = 6, + ABORTED = 7, + TIMED_OUT = 8, + ABORTING = 9 + } + } + + /** Properties of a NodeExecution. */ + interface INodeExecution { + } + + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { + + /** + * Constructs a new NodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.INodeExecution); + + /** + * Creates a new NodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecution instance + */ + public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.NodeExecution; + + /** + * Verifies a NodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace NodeExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + FAILING = 4, + FAILED = 5, + ABORTED = 6, + SKIPPED = 7, + TIMED_OUT = 8, + DYNAMIC_RUNNING = 9, + RECOVERED = 10 + } + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { + + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskExecution); + + /** + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance + */ + public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskExecution; + + /** + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskExecution { + + /** Phase enum. */ + enum Phase { + UNDEFINED = 0, + QUEUED = 1, + RUNNING = 2, + SUCCEEDED = 3, + ABORTED = 4, + FAILED = 5, + INITIALIZING = 6, + WAITING_FOR_RESOURCES = 7 + } + } + + /** Properties of an ExecutionError. */ + interface IExecutionError { + + /** ExecutionError code */ + code?: (string|null); + + /** ExecutionError message */ + message?: (string|null); + + /** ExecutionError errorUri */ + errorUri?: (string|null); + + /** ExecutionError kind */ + kind?: (flyteidl.core.ExecutionError.ErrorKind|null); + } + + /** Represents an ExecutionError. */ + class ExecutionError implements IExecutionError { + + /** + * Constructs a new ExecutionError. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IExecutionError); + + /** ExecutionError code. */ + public code: string; + + /** ExecutionError message. */ + public message: string; + + /** ExecutionError errorUri. */ + public errorUri: string; + + /** ExecutionError kind. */ + public kind: flyteidl.core.ExecutionError.ErrorKind; + + /** + * Creates a new ExecutionError instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionError instance + */ + public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; + + /** + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @param message ExecutionError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionError; + + /** + * Verifies an ExecutionError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ExecutionError { + + /** ErrorKind enum. */ + enum ErrorKind { + UNKNOWN = 0, + USER = 1, + SYSTEM = 2 + } + } + + /** Properties of a TaskLog. */ + interface ITaskLog { + + /** TaskLog uri */ + uri?: (string|null); + + /** TaskLog name */ + name?: (string|null); + + /** TaskLog messageFormat */ + messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); + + /** TaskLog ttl */ + ttl?: (google.protobuf.IDuration|null); + } + + /** Represents a TaskLog. */ + class TaskLog implements ITaskLog { + + /** + * Constructs a new TaskLog. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskLog); + + /** TaskLog uri. */ + public uri: string; + + /** TaskLog name. */ + public name: string; + + /** TaskLog messageFormat. */ + public messageFormat: flyteidl.core.TaskLog.MessageFormat; + + /** TaskLog ttl. */ + public ttl?: (google.protobuf.IDuration|null); + + /** + * Creates a new TaskLog instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskLog instance + */ + public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; + + /** + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @param message TaskLog message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskLog message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskLog; + + /** + * Verifies a TaskLog message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskLog { + + /** MessageFormat enum. */ + enum MessageFormat { + UNKNOWN = 0, + CSV = 1, + JSON = 2 + } + } + + /** Properties of a QualityOfServiceSpec. */ + interface IQualityOfServiceSpec { + + /** QualityOfServiceSpec queueingBudget */ + queueingBudget?: (google.protobuf.IDuration|null); + } + + /** Represents a QualityOfServiceSpec. */ + class QualityOfServiceSpec implements IQualityOfServiceSpec { + + /** + * Constructs a new QualityOfServiceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IQualityOfServiceSpec); + + /** QualityOfServiceSpec queueingBudget. */ + public queueingBudget?: (google.protobuf.IDuration|null); + + /** + * Creates a new QualityOfServiceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns QualityOfServiceSpec instance + */ + public static create(properties?: flyteidl.core.IQualityOfServiceSpec): flyteidl.core.QualityOfServiceSpec; + + /** + * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. + * @param message QualityOfServiceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IQualityOfServiceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QualityOfServiceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QualityOfServiceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfServiceSpec; + + /** + * Verifies a QualityOfServiceSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a QualityOfService. */ + interface IQualityOfService { + + /** QualityOfService tier */ + tier?: (flyteidl.core.QualityOfService.Tier|null); + + /** QualityOfService spec */ + spec?: (flyteidl.core.IQualityOfServiceSpec|null); + } + + /** Represents a QualityOfService. */ + class QualityOfService implements IQualityOfService { + + /** + * Constructs a new QualityOfService. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IQualityOfService); + + /** QualityOfService tier. */ + public tier: flyteidl.core.QualityOfService.Tier; + + /** QualityOfService spec. */ + public spec?: (flyteidl.core.IQualityOfServiceSpec|null); + + /** QualityOfService designation. */ + public designation?: ("tier"|"spec"); + + /** + * Creates a new QualityOfService instance using the specified properties. + * @param [properties] Properties to set + * @returns QualityOfService instance + */ + public static create(properties?: flyteidl.core.IQualityOfService): flyteidl.core.QualityOfService; + + /** + * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. + * @param message QualityOfService message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IQualityOfService, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a QualityOfService message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QualityOfService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.QualityOfService; + + /** + * Verifies a QualityOfService message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace QualityOfService { + + /** Tier enum. */ + enum Tier { + UNDEFINED = 0, + HIGH = 1, + MEDIUM = 2, + LOW = 3 + } + } + + /** Properties of a Resources. */ + interface IResources { + + /** Resources requests */ + requests?: (flyteidl.core.Resources.IResourceEntry[]|null); + + /** Resources limits */ + limits?: (flyteidl.core.Resources.IResourceEntry[]|null); + } + + /** Represents a Resources. */ + class Resources implements IResources { + + /** + * Constructs a new Resources. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IResources); + + /** Resources requests. */ + public requests: flyteidl.core.Resources.IResourceEntry[]; + + /** Resources limits. */ + public limits: flyteidl.core.Resources.IResourceEntry[]; + + /** + * Creates a new Resources instance using the specified properties. + * @param [properties] Properties to set + * @returns Resources instance + */ + public static create(properties?: flyteidl.core.IResources): flyteidl.core.Resources; + + /** + * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. + * @param message Resources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IResources, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Resources message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Resources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources; + + /** + * Verifies a Resources message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Resources { + + /** ResourceName enum. */ + enum ResourceName { + UNKNOWN = 0, + CPU = 1, + GPU = 2, + MEMORY = 3, + STORAGE = 4, + EPHEMERAL_STORAGE = 5 + } + + /** Properties of a ResourceEntry. */ + interface IResourceEntry { + + /** ResourceEntry name */ + name?: (flyteidl.core.Resources.ResourceName|null); + + /** ResourceEntry value */ + value?: (string|null); + } + + /** Represents a ResourceEntry. */ + class ResourceEntry implements IResourceEntry { + + /** + * Constructs a new ResourceEntry. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.Resources.IResourceEntry); + + /** ResourceEntry name. */ + public name: flyteidl.core.Resources.ResourceName; + + /** ResourceEntry value. */ + public value: string; + + /** + * Creates a new ResourceEntry instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceEntry instance + */ + public static create(properties?: flyteidl.core.Resources.IResourceEntry): flyteidl.core.Resources.ResourceEntry; + + /** + * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. + * @param message ResourceEntry message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.Resources.IResourceEntry, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceEntry message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Resources.ResourceEntry; + + /** + * Verifies a ResourceEntry message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a GPUAccelerator. */ + interface IGPUAccelerator { + + /** GPUAccelerator device */ + device?: (string|null); + + /** GPUAccelerator unpartitioned */ + unpartitioned?: (boolean|null); + + /** GPUAccelerator partitionSize */ + partitionSize?: (string|null); + } + + /** Represents a GPUAccelerator. */ + class GPUAccelerator implements IGPUAccelerator { + + /** + * Constructs a new GPUAccelerator. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IGPUAccelerator); + + /** GPUAccelerator device. */ + public device: string; + + /** GPUAccelerator unpartitioned. */ + public unpartitioned: boolean; + + /** GPUAccelerator partitionSize. */ + public partitionSize: string; + + /** GPUAccelerator partitionSizeValue. */ + public partitionSizeValue?: ("unpartitioned"|"partitionSize"); + + /** + * Creates a new GPUAccelerator instance using the specified properties. + * @param [properties] Properties to set + * @returns GPUAccelerator instance + */ + public static create(properties?: flyteidl.core.IGPUAccelerator): flyteidl.core.GPUAccelerator; + + /** + * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages. + * @param message GPUAccelerator message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IGPUAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GPUAccelerator message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GPUAccelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.GPUAccelerator; + + /** + * Verifies a GPUAccelerator message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExtendedResources. */ + interface IExtendedResources { + + /** ExtendedResources gpuAccelerator */ + gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null); + } + + /** Represents an ExtendedResources. */ + class ExtendedResources implements IExtendedResources { + + /** + * Constructs a new ExtendedResources. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IExtendedResources); + + /** ExtendedResources gpuAccelerator. */ + public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null); + + /** + * Creates a new ExtendedResources instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtendedResources instance + */ + public static create(properties?: flyteidl.core.IExtendedResources): flyteidl.core.ExtendedResources; + + /** + * Encodes the specified ExtendedResources message. Does not implicitly {@link flyteidl.core.ExtendedResources.verify|verify} messages. + * @param message ExtendedResources message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IExtendedResources, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtendedResources message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtendedResources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExtendedResources; + + /** + * Verifies an ExtendedResources message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a RuntimeMetadata. */ + interface IRuntimeMetadata { + + /** RuntimeMetadata type */ + type?: (flyteidl.core.RuntimeMetadata.RuntimeType|null); + + /** RuntimeMetadata version */ + version?: (string|null); + + /** RuntimeMetadata flavor */ + flavor?: (string|null); + } + + /** Represents a RuntimeMetadata. */ + class RuntimeMetadata implements IRuntimeMetadata { + + /** + * Constructs a new RuntimeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IRuntimeMetadata); + + /** RuntimeMetadata type. */ + public type: flyteidl.core.RuntimeMetadata.RuntimeType; + + /** RuntimeMetadata version. */ + public version: string; + + /** RuntimeMetadata flavor. */ + public flavor: string; + + /** + * Creates a new RuntimeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeMetadata instance + */ + public static create(properties?: flyteidl.core.IRuntimeMetadata): flyteidl.core.RuntimeMetadata; + + /** + * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. + * @param message RuntimeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IRuntimeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RuntimeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.RuntimeMetadata; + + /** + * Verifies a RuntimeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace RuntimeMetadata { + + /** RuntimeType enum. */ + enum RuntimeType { + OTHER = 0, + FLYTE_SDK = 1 + } + } + + /** Properties of a TaskMetadata. */ + interface ITaskMetadata { + + /** TaskMetadata discoverable */ + discoverable?: (boolean|null); + + /** TaskMetadata runtime */ + runtime?: (flyteidl.core.IRuntimeMetadata|null); + + /** TaskMetadata timeout */ + timeout?: (google.protobuf.IDuration|null); + + /** TaskMetadata retries */ + retries?: (flyteidl.core.IRetryStrategy|null); + + /** TaskMetadata discoveryVersion */ + discoveryVersion?: (string|null); + + /** TaskMetadata deprecatedErrorMessage */ + deprecatedErrorMessage?: (string|null); + + /** TaskMetadata interruptible */ + interruptible?: (boolean|null); + + /** TaskMetadata cacheSerializable */ + cacheSerializable?: (boolean|null); + + /** TaskMetadata generatesDeck */ + generatesDeck?: (boolean|null); + + /** TaskMetadata tags */ + tags?: ({ [k: string]: string }|null); + + /** TaskMetadata podTemplateName */ + podTemplateName?: (string|null); + + /** TaskMetadata cacheIgnoreInputVars */ + cacheIgnoreInputVars?: (string[]|null); + } + + /** Represents a TaskMetadata. */ + class TaskMetadata implements ITaskMetadata { + + /** + * Constructs a new TaskMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskMetadata); + + /** TaskMetadata discoverable. */ + public discoverable: boolean; + + /** TaskMetadata runtime. */ + public runtime?: (flyteidl.core.IRuntimeMetadata|null); + + /** TaskMetadata timeout. */ + public timeout?: (google.protobuf.IDuration|null); + + /** TaskMetadata retries. */ + public retries?: (flyteidl.core.IRetryStrategy|null); + + /** TaskMetadata discoveryVersion. */ + public discoveryVersion: string; + + /** TaskMetadata deprecatedErrorMessage. */ + public deprecatedErrorMessage: string; + + /** TaskMetadata interruptible. */ + public interruptible: boolean; + + /** TaskMetadata cacheSerializable. */ + public cacheSerializable: boolean; + + /** TaskMetadata generatesDeck. */ + public generatesDeck: boolean; + + /** TaskMetadata tags. */ + public tags: { [k: string]: string }; + + /** TaskMetadata podTemplateName. */ + public podTemplateName: string; + + /** TaskMetadata cacheIgnoreInputVars. */ + public cacheIgnoreInputVars: string[]; + + /** TaskMetadata interruptibleValue. */ + public interruptibleValue?: "interruptible"; + + /** + * Creates a new TaskMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskMetadata instance + */ + public static create(properties?: flyteidl.core.ITaskMetadata): flyteidl.core.TaskMetadata; + + /** + * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. + * @param message TaskMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskMetadata; + + /** + * Verifies a TaskMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskTemplate. */ + interface ITaskTemplate { + + /** TaskTemplate id */ + id?: (flyteidl.core.IIdentifier|null); + + /** TaskTemplate type */ + type?: (string|null); + + /** TaskTemplate metadata */ + metadata?: (flyteidl.core.ITaskMetadata|null); + + /** TaskTemplate interface */ + "interface"?: (flyteidl.core.ITypedInterface|null); + + /** TaskTemplate custom */ + custom?: (google.protobuf.IStruct|null); + + /** TaskTemplate container */ + container?: (flyteidl.core.IContainer|null); + + /** TaskTemplate k8sPod */ + k8sPod?: (flyteidl.core.IK8sPod|null); + + /** TaskTemplate sql */ + sql?: (flyteidl.core.ISql|null); + + /** TaskTemplate taskTypeVersion */ + taskTypeVersion?: (number|null); + + /** TaskTemplate securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** TaskTemplate extendedResources */ + extendedResources?: (flyteidl.core.IExtendedResources|null); + + /** TaskTemplate config */ + config?: ({ [k: string]: string }|null); + } + + /** Represents a TaskTemplate. */ + class TaskTemplate implements ITaskTemplate { + + /** + * Constructs a new TaskTemplate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ITaskTemplate); + + /** TaskTemplate id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** TaskTemplate type. */ + public type: string; + + /** TaskTemplate metadata. */ + public metadata?: (flyteidl.core.ITaskMetadata|null); + + /** TaskTemplate interface. */ + public interface?: (flyteidl.core.ITypedInterface|null); + + /** TaskTemplate custom. */ + public custom?: (google.protobuf.IStruct|null); + + /** TaskTemplate container. */ + public container?: (flyteidl.core.IContainer|null); + + /** TaskTemplate k8sPod. */ + public k8sPod?: (flyteidl.core.IK8sPod|null); + + /** TaskTemplate sql. */ + public sql?: (flyteidl.core.ISql|null); + + /** TaskTemplate taskTypeVersion. */ + public taskTypeVersion: number; + + /** TaskTemplate securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** TaskTemplate extendedResources. */ + public extendedResources?: (flyteidl.core.IExtendedResources|null); + + /** TaskTemplate config. */ + public config: { [k: string]: string }; + + /** TaskTemplate target. */ + public target?: ("container"|"k8sPod"|"sql"); + + /** + * Creates a new TaskTemplate instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskTemplate instance + */ + public static create(properties?: flyteidl.core.ITaskTemplate): flyteidl.core.TaskTemplate; + + /** + * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. + * @param message TaskTemplate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ITaskTemplate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskTemplate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.TaskTemplate; + + /** + * Verifies a TaskTemplate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ContainerPort. */ + interface IContainerPort { + + /** ContainerPort containerPort */ + containerPort?: (number|null); + } + + /** Represents a ContainerPort. */ + class ContainerPort implements IContainerPort { + + /** + * Constructs a new ContainerPort. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainerPort); + + /** ContainerPort containerPort. */ + public containerPort: number; + + /** + * Creates a new ContainerPort instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerPort instance + */ + public static create(properties?: flyteidl.core.IContainerPort): flyteidl.core.ContainerPort; + + /** + * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. + * @param message ContainerPort message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainerPort, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerPort message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerPort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerPort; + + /** + * Verifies a ContainerPort message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Container. */ + interface IContainer { + + /** Container image */ + image?: (string|null); + + /** Container command */ + command?: (string[]|null); + + /** Container args */ + args?: (string[]|null); + + /** Container resources */ + resources?: (flyteidl.core.IResources|null); + + /** Container env */ + env?: (flyteidl.core.IKeyValuePair[]|null); + + /** Container config */ + config?: (flyteidl.core.IKeyValuePair[]|null); + + /** Container ports */ + ports?: (flyteidl.core.IContainerPort[]|null); + + /** Container dataConfig */ + dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + + /** Container architecture */ + architecture?: (flyteidl.core.Container.Architecture|null); + } + + /** Represents a Container. */ + class Container implements IContainer { + + /** + * Constructs a new Container. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainer); + + /** Container image. */ + public image: string; + + /** Container command. */ + public command: string[]; + + /** Container args. */ + public args: string[]; + + /** Container resources. */ + public resources?: (flyteidl.core.IResources|null); + + /** Container env. */ + public env: flyteidl.core.IKeyValuePair[]; + + /** Container config. */ + public config: flyteidl.core.IKeyValuePair[]; + + /** Container ports. */ + public ports: flyteidl.core.IContainerPort[]; + + /** Container dataConfig. */ + public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + + /** Container architecture. */ + public architecture: flyteidl.core.Container.Architecture; + + /** + * Creates a new Container instance using the specified properties. + * @param [properties] Properties to set + * @returns Container instance + */ + public static create(properties?: flyteidl.core.IContainer): flyteidl.core.Container; + + /** + * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. + * @param message Container message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Container message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Container; + + /** + * Verifies a Container message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Container { + + /** Architecture enum. */ + enum Architecture { + UNKNOWN = 0, + AMD64 = 1, + ARM64 = 2, + ARM_V6 = 3, + ARM_V7 = 4 + } + } + + /** Properties of a IOStrategy. */ + interface IIOStrategy { + + /** IOStrategy downloadMode */ + downloadMode?: (flyteidl.core.IOStrategy.DownloadMode|null); + + /** IOStrategy uploadMode */ + uploadMode?: (flyteidl.core.IOStrategy.UploadMode|null); + } + + /** Represents a IOStrategy. */ + class IOStrategy implements IIOStrategy { + + /** + * Constructs a new IOStrategy. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIOStrategy); + + /** IOStrategy downloadMode. */ + public downloadMode: flyteidl.core.IOStrategy.DownloadMode; + + /** IOStrategy uploadMode. */ + public uploadMode: flyteidl.core.IOStrategy.UploadMode; + + /** + * Creates a new IOStrategy instance using the specified properties. + * @param [properties] Properties to set + * @returns IOStrategy instance + */ + public static create(properties?: flyteidl.core.IIOStrategy): flyteidl.core.IOStrategy; + + /** + * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. + * @param message IOStrategy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIOStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a IOStrategy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IOStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.IOStrategy; + + /** + * Verifies a IOStrategy message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace IOStrategy { + + /** DownloadMode enum. */ + enum DownloadMode { + DOWNLOAD_EAGER = 0, + DOWNLOAD_STREAM = 1, + DO_NOT_DOWNLOAD = 2 + } + + /** UploadMode enum. */ + enum UploadMode { + UPLOAD_ON_EXIT = 0, + UPLOAD_EAGER = 1, + DO_NOT_UPLOAD = 2 + } + } + + /** Properties of a DataLoadingConfig. */ + interface IDataLoadingConfig { + + /** DataLoadingConfig enabled */ + enabled?: (boolean|null); + + /** DataLoadingConfig inputPath */ + inputPath?: (string|null); + + /** DataLoadingConfig outputPath */ + outputPath?: (string|null); + + /** DataLoadingConfig format */ + format?: (flyteidl.core.DataLoadingConfig.LiteralMapFormat|null); + + /** DataLoadingConfig ioStrategy */ + ioStrategy?: (flyteidl.core.IIOStrategy|null); + } + + /** Represents a DataLoadingConfig. */ + class DataLoadingConfig implements IDataLoadingConfig { + + /** + * Constructs a new DataLoadingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IDataLoadingConfig); + + /** DataLoadingConfig enabled. */ + public enabled: boolean; + + /** DataLoadingConfig inputPath. */ + public inputPath: string; + + /** DataLoadingConfig outputPath. */ + public outputPath: string; + + /** DataLoadingConfig format. */ + public format: flyteidl.core.DataLoadingConfig.LiteralMapFormat; + + /** DataLoadingConfig ioStrategy. */ + public ioStrategy?: (flyteidl.core.IIOStrategy|null); + + /** + * Creates a new DataLoadingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLoadingConfig instance + */ + public static create(properties?: flyteidl.core.IDataLoadingConfig): flyteidl.core.DataLoadingConfig; + + /** + * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. + * @param message DataLoadingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IDataLoadingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLoadingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLoadingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DataLoadingConfig; + + /** + * Verifies a DataLoadingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace DataLoadingConfig { + + /** LiteralMapFormat enum. */ + enum LiteralMapFormat { + JSON = 0, + YAML = 1, + PROTO = 2 + } + } + + /** Properties of a K8sPod. */ + interface IK8sPod { + + /** K8sPod metadata */ + metadata?: (flyteidl.core.IK8sObjectMetadata|null); + + /** K8sPod podSpec */ + podSpec?: (google.protobuf.IStruct|null); + + /** K8sPod dataConfig */ + dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + } + + /** Represents a K8sPod. */ + class K8sPod implements IK8sPod { + + /** + * Constructs a new K8sPod. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IK8sPod); + + /** K8sPod metadata. */ + public metadata?: (flyteidl.core.IK8sObjectMetadata|null); + + /** K8sPod podSpec. */ + public podSpec?: (google.protobuf.IStruct|null); + + /** K8sPod dataConfig. */ + public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); + + /** + * Creates a new K8sPod instance using the specified properties. + * @param [properties] Properties to set + * @returns K8sPod instance + */ + public static create(properties?: flyteidl.core.IK8sPod): flyteidl.core.K8sPod; + + /** + * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. + * @param message K8sPod message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IK8sPod, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a K8sPod message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns K8sPod + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.K8sPod; + + /** + * Verifies a K8sPod message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a K8sObjectMetadata. */ + interface IK8sObjectMetadata { + + /** K8sObjectMetadata labels */ + labels?: ({ [k: string]: string }|null); + + /** K8sObjectMetadata annotations */ + annotations?: ({ [k: string]: string }|null); + } + + /** Represents a K8sObjectMetadata. */ + class K8sObjectMetadata implements IK8sObjectMetadata { + + /** + * Constructs a new K8sObjectMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IK8sObjectMetadata); + + /** K8sObjectMetadata labels. */ + public labels: { [k: string]: string }; + + /** K8sObjectMetadata annotations. */ + public annotations: { [k: string]: string }; + + /** + * Creates a new K8sObjectMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns K8sObjectMetadata instance + */ + public static create(properties?: flyteidl.core.IK8sObjectMetadata): flyteidl.core.K8sObjectMetadata; + + /** + * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. + * @param message K8sObjectMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IK8sObjectMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a K8sObjectMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns K8sObjectMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.K8sObjectMetadata; + + /** + * Verifies a K8sObjectMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Sql. */ + interface ISql { + + /** Sql statement */ + statement?: (string|null); + + /** Sql dialect */ + dialect?: (flyteidl.core.Sql.Dialect|null); + } + + /** Represents a Sql. */ + class Sql implements ISql { + + /** + * Constructs a new Sql. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISql); + + /** Sql statement. */ + public statement: string; + + /** Sql dialect. */ + public dialect: flyteidl.core.Sql.Dialect; + + /** + * Creates a new Sql instance using the specified properties. + * @param [properties] Properties to set + * @returns Sql instance + */ + public static create(properties?: flyteidl.core.ISql): flyteidl.core.Sql; + + /** + * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. + * @param message Sql message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISql, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Sql message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sql + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Sql; + + /** + * Verifies a Sql message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Sql { + + /** Dialect enum. */ + enum Dialect { + UNDEFINED = 0, + ANSI = 1, + HIVE = 2, + OTHER = 3 + } + } + + /** Properties of a Secret. */ + interface ISecret { + + /** Secret group */ + group?: (string|null); + + /** Secret groupVersion */ + groupVersion?: (string|null); + + /** Secret key */ + key?: (string|null); + + /** Secret mountRequirement */ + mountRequirement?: (flyteidl.core.Secret.MountType|null); + } + + /** Represents a Secret. */ + class Secret implements ISecret { + + /** + * Constructs a new Secret. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISecret); + + /** Secret group. */ + public group: string; + + /** Secret groupVersion. */ + public groupVersion: string; + + /** Secret key. */ + public key: string; + + /** Secret mountRequirement. */ + public mountRequirement: flyteidl.core.Secret.MountType; + + /** + * Creates a new Secret instance using the specified properties. + * @param [properties] Properties to set + * @returns Secret instance + */ + public static create(properties?: flyteidl.core.ISecret): flyteidl.core.Secret; + + /** + * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. + * @param message Secret message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISecret, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Secret message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Secret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Secret; + + /** + * Verifies a Secret message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Secret { + + /** MountType enum. */ + enum MountType { + ANY = 0, + ENV_VAR = 1, + FILE = 2 + } + } + + /** Properties of a OAuth2Client. */ + interface IOAuth2Client { + + /** OAuth2Client clientId */ + clientId?: (string|null); + + /** OAuth2Client clientSecret */ + clientSecret?: (flyteidl.core.ISecret|null); + } + + /** Represents a OAuth2Client. */ + class OAuth2Client implements IOAuth2Client { + + /** + * Constructs a new OAuth2Client. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOAuth2Client); + + /** OAuth2Client clientId. */ + public clientId: string; + + /** OAuth2Client clientSecret. */ + public clientSecret?: (flyteidl.core.ISecret|null); + + /** + * Creates a new OAuth2Client instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2Client instance + */ + public static create(properties?: flyteidl.core.IOAuth2Client): flyteidl.core.OAuth2Client; + + /** + * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. + * @param message OAuth2Client message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOAuth2Client, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2Client message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2Client + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OAuth2Client; + + /** + * Verifies a OAuth2Client message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Identity. */ + interface IIdentity { + + /** Identity iamRole */ + iamRole?: (string|null); + + /** Identity k8sServiceAccount */ + k8sServiceAccount?: (string|null); + + /** Identity oauth2Client */ + oauth2Client?: (flyteidl.core.IOAuth2Client|null); + + /** Identity executionIdentity */ + executionIdentity?: (string|null); + } + + /** Represents an Identity. */ + class Identity implements IIdentity { + + /** + * Constructs a new Identity. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IIdentity); + + /** Identity iamRole. */ + public iamRole: string; + + /** Identity k8sServiceAccount. */ + public k8sServiceAccount: string; + + /** Identity oauth2Client. */ + public oauth2Client?: (flyteidl.core.IOAuth2Client|null); + + /** Identity executionIdentity. */ + public executionIdentity: string; + + /** + * Creates a new Identity instance using the specified properties. + * @param [properties] Properties to set + * @returns Identity instance + */ + public static create(properties?: flyteidl.core.IIdentity): flyteidl.core.Identity; + + /** + * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. + * @param message Identity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IIdentity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Identity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Identity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Identity; + + /** + * Verifies an Identity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a OAuth2TokenRequest. */ + interface IOAuth2TokenRequest { + + /** OAuth2TokenRequest name */ + name?: (string|null); + + /** OAuth2TokenRequest type */ + type?: (flyteidl.core.OAuth2TokenRequest.Type|null); + + /** OAuth2TokenRequest client */ + client?: (flyteidl.core.IOAuth2Client|null); + + /** OAuth2TokenRequest idpDiscoveryEndpoint */ + idpDiscoveryEndpoint?: (string|null); + + /** OAuth2TokenRequest tokenEndpoint */ + tokenEndpoint?: (string|null); + } + + /** Represents a OAuth2TokenRequest. */ + class OAuth2TokenRequest implements IOAuth2TokenRequest { + + /** + * Constructs a new OAuth2TokenRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IOAuth2TokenRequest); + + /** OAuth2TokenRequest name. */ + public name: string; + + /** OAuth2TokenRequest type. */ + public type: flyteidl.core.OAuth2TokenRequest.Type; + + /** OAuth2TokenRequest client. */ + public client?: (flyteidl.core.IOAuth2Client|null); + + /** OAuth2TokenRequest idpDiscoveryEndpoint. */ + public idpDiscoveryEndpoint: string; + + /** OAuth2TokenRequest tokenEndpoint. */ + public tokenEndpoint: string; + + /** + * Creates a new OAuth2TokenRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2TokenRequest instance + */ + public static create(properties?: flyteidl.core.IOAuth2TokenRequest): flyteidl.core.OAuth2TokenRequest; + + /** + * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. + * @param message OAuth2TokenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IOAuth2TokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2TokenRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2TokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.OAuth2TokenRequest; + + /** + * Verifies a OAuth2TokenRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace OAuth2TokenRequest { + + /** Type enum. */ + enum Type { + CLIENT_CREDENTIALS = 0 + } + } + + /** Properties of a SecurityContext. */ + interface ISecurityContext { + + /** SecurityContext runAs */ + runAs?: (flyteidl.core.IIdentity|null); + + /** SecurityContext secrets */ + secrets?: (flyteidl.core.ISecret[]|null); + + /** SecurityContext tokens */ + tokens?: (flyteidl.core.IOAuth2TokenRequest[]|null); + } + + /** Represents a SecurityContext. */ + class SecurityContext implements ISecurityContext { + + /** + * Constructs a new SecurityContext. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISecurityContext); + + /** SecurityContext runAs. */ + public runAs?: (flyteidl.core.IIdentity|null); + + /** SecurityContext secrets. */ + public secrets: flyteidl.core.ISecret[]; + + /** SecurityContext tokens. */ + public tokens: flyteidl.core.IOAuth2TokenRequest[]; + + /** + * Creates a new SecurityContext instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityContext instance + */ + public static create(properties?: flyteidl.core.ISecurityContext): flyteidl.core.SecurityContext; + + /** + * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. + * @param message SecurityContext message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISecurityContext, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityContext message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.SecurityContext; + + /** + * Verifies a SecurityContext message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicJobSpec. */ + interface IDynamicJobSpec { + + /** DynamicJobSpec nodes */ + nodes?: (flyteidl.core.INode[]|null); + + /** DynamicJobSpec minSuccesses */ + minSuccesses?: (Long|null); + + /** DynamicJobSpec outputs */ + outputs?: (flyteidl.core.IBinding[]|null); + + /** DynamicJobSpec tasks */ + tasks?: (flyteidl.core.ITaskTemplate[]|null); + + /** DynamicJobSpec subworkflows */ + subworkflows?: (flyteidl.core.IWorkflowTemplate[]|null); + } + + /** Represents a DynamicJobSpec. */ + class DynamicJobSpec implements IDynamicJobSpec { + + /** + * Constructs a new DynamicJobSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IDynamicJobSpec); + + /** DynamicJobSpec nodes. */ + public nodes: flyteidl.core.INode[]; + + /** DynamicJobSpec minSuccesses. */ + public minSuccesses: Long; + + /** DynamicJobSpec outputs. */ + public outputs: flyteidl.core.IBinding[]; + + /** DynamicJobSpec tasks. */ + public tasks: flyteidl.core.ITaskTemplate[]; + + /** DynamicJobSpec subworkflows. */ + public subworkflows: flyteidl.core.IWorkflowTemplate[]; + + /** + * Creates a new DynamicJobSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicJobSpec instance + */ + public static create(properties?: flyteidl.core.IDynamicJobSpec): flyteidl.core.DynamicJobSpec; + + /** + * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. + * @param message DynamicJobSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IDynamicJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicJobSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.DynamicJobSpec; + + /** + * Verifies a DynamicJobSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ContainerError. */ + interface IContainerError { + + /** ContainerError code */ + code?: (string|null); + + /** ContainerError message */ + message?: (string|null); + + /** ContainerError kind */ + kind?: (flyteidl.core.ContainerError.Kind|null); + + /** ContainerError origin */ + origin?: (flyteidl.core.ExecutionError.ErrorKind|null); + } + + /** Represents a ContainerError. */ + class ContainerError implements IContainerError { + + /** + * Constructs a new ContainerError. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IContainerError); + + /** ContainerError code. */ + public code: string; + + /** ContainerError message. */ + public message: string; + + /** ContainerError kind. */ + public kind: flyteidl.core.ContainerError.Kind; + + /** ContainerError origin. */ + public origin: flyteidl.core.ExecutionError.ErrorKind; + + /** + * Creates a new ContainerError instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerError instance + */ + public static create(properties?: flyteidl.core.IContainerError): flyteidl.core.ContainerError; + + /** + * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. + * @param message ContainerError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IContainerError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContainerError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ContainerError; + + /** + * Verifies a ContainerError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ContainerError { + + /** Kind enum. */ + enum Kind { + NON_RECOVERABLE = 0, + RECOVERABLE = 1 + } + } + + /** Properties of an ErrorDocument. */ + interface IErrorDocument { + + /** ErrorDocument error */ + error?: (flyteidl.core.IContainerError|null); + } + + /** Represents an ErrorDocument. */ + class ErrorDocument implements IErrorDocument { + + /** + * Constructs a new ErrorDocument. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IErrorDocument); + + /** ErrorDocument error. */ + public error?: (flyteidl.core.IContainerError|null); + + /** + * Creates a new ErrorDocument instance using the specified properties. + * @param [properties] Properties to set + * @returns ErrorDocument instance + */ + public static create(properties?: flyteidl.core.IErrorDocument): flyteidl.core.ErrorDocument; + + /** + * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. + * @param message ErrorDocument message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IErrorDocument, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ErrorDocument message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ErrorDocument + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ErrorDocument; + + /** + * Verifies an ErrorDocument message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Span. */ + interface ISpan { + + /** Span startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Span endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Span workflowId */ + workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Span nodeId */ + nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** Span taskId */ + taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** Span operationId */ + operationId?: (string|null); + + /** Span spans */ + spans?: (flyteidl.core.ISpan[]|null); + } + + /** Represents a Span. */ + class Span implements ISpan { + + /** + * Constructs a new Span. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.ISpan); + + /** Span startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Span endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Span workflowId. */ + public workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Span nodeId. */ + public nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** Span taskId. */ + public taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** Span operationId. */ + public operationId: string; + + /** Span spans. */ + public spans: flyteidl.core.ISpan[]; + + /** Span id. */ + public id?: ("workflowId"|"nodeId"|"taskId"|"operationId"); + + /** + * Creates a new Span instance using the specified properties. + * @param [properties] Properties to set + * @returns Span instance + */ + public static create(properties?: flyteidl.core.ISpan): flyteidl.core.Span; + + /** + * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. + * @param message Span message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.ISpan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Span message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Span + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.Span; + + /** + * Verifies a Span message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionMetricResult. */ + interface IExecutionMetricResult { + + /** ExecutionMetricResult metric */ + metric?: (string|null); + + /** ExecutionMetricResult data */ + data?: (google.protobuf.IStruct|null); + } + + /** Represents an ExecutionMetricResult. */ + class ExecutionMetricResult implements IExecutionMetricResult { + + /** + * Constructs a new ExecutionMetricResult. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IExecutionMetricResult); + + /** ExecutionMetricResult metric. */ + public metric: string; + + /** ExecutionMetricResult data. */ + public data?: (google.protobuf.IStruct|null); + + /** + * Creates a new ExecutionMetricResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionMetricResult instance + */ + public static create(properties?: flyteidl.core.IExecutionMetricResult): flyteidl.core.ExecutionMetricResult; + + /** + * Encodes the specified ExecutionMetricResult message. Does not implicitly {@link flyteidl.core.ExecutionMetricResult.verify|verify} messages. + * @param message ExecutionMetricResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IExecutionMetricResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionMetricResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.ExecutionMetricResult; + + /** + * Verifies an ExecutionMetricResult message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowClosure. */ + interface IWorkflowClosure { + + /** WorkflowClosure workflow */ + workflow?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowClosure tasks */ + tasks?: (flyteidl.core.ITaskTemplate[]|null); + } + + /** Represents a WorkflowClosure. */ + class WorkflowClosure implements IWorkflowClosure { + + /** + * Constructs a new WorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.core.IWorkflowClosure); + + /** WorkflowClosure workflow. */ + public workflow?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowClosure tasks. */ + public tasks: flyteidl.core.ITaskTemplate[]; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowClosure instance + */ + public static create(properties?: flyteidl.core.IWorkflowClosure): flyteidl.core.WorkflowClosure; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. + * @param message WorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.core.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.core.WorkflowClosure; + + /** + * Verifies a WorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace event. */ + namespace event { + + /** Properties of a CloudEventWorkflowExecution. */ + interface ICloudEventWorkflowExecution { + + /** CloudEventWorkflowExecution rawEvent */ + rawEvent?: (flyteidl.event.IWorkflowExecutionEvent|null); + + /** CloudEventWorkflowExecution outputInterface */ + outputInterface?: (flyteidl.core.ITypedInterface|null); + + /** CloudEventWorkflowExecution artifactIds */ + artifactIds?: (flyteidl.core.IArtifactID[]|null); + + /** CloudEventWorkflowExecution referenceExecution */ + referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** CloudEventWorkflowExecution principal */ + principal?: (string|null); + + /** CloudEventWorkflowExecution launchPlanId */ + launchPlanId?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a CloudEventWorkflowExecution. */ + class CloudEventWorkflowExecution implements ICloudEventWorkflowExecution { + + /** + * Constructs a new CloudEventWorkflowExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ICloudEventWorkflowExecution); + + /** CloudEventWorkflowExecution rawEvent. */ + public rawEvent?: (flyteidl.event.IWorkflowExecutionEvent|null); + + /** CloudEventWorkflowExecution outputInterface. */ + public outputInterface?: (flyteidl.core.ITypedInterface|null); + + /** CloudEventWorkflowExecution artifactIds. */ + public artifactIds: flyteidl.core.IArtifactID[]; + + /** CloudEventWorkflowExecution referenceExecution. */ + public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** CloudEventWorkflowExecution principal. */ + public principal: string; + + /** CloudEventWorkflowExecution launchPlanId. */ + public launchPlanId?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new CloudEventWorkflowExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudEventWorkflowExecution instance + */ + public static create(properties?: flyteidl.event.ICloudEventWorkflowExecution): flyteidl.event.CloudEventWorkflowExecution; + + /** + * Encodes the specified CloudEventWorkflowExecution message. Does not implicitly {@link flyteidl.event.CloudEventWorkflowExecution.verify|verify} messages. + * @param message CloudEventWorkflowExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ICloudEventWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CloudEventWorkflowExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudEventWorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventWorkflowExecution; + + /** + * Verifies a CloudEventWorkflowExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CloudEventNodeExecution. */ + interface ICloudEventNodeExecution { + + /** CloudEventNodeExecution rawEvent */ + rawEvent?: (flyteidl.event.INodeExecutionEvent|null); + + /** CloudEventNodeExecution taskExecId */ + taskExecId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** CloudEventNodeExecution outputInterface */ + outputInterface?: (flyteidl.core.ITypedInterface|null); + + /** CloudEventNodeExecution artifactIds */ + artifactIds?: (flyteidl.core.IArtifactID[]|null); + + /** CloudEventNodeExecution principal */ + principal?: (string|null); + + /** CloudEventNodeExecution launchPlanId */ + launchPlanId?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a CloudEventNodeExecution. */ + class CloudEventNodeExecution implements ICloudEventNodeExecution { + + /** + * Constructs a new CloudEventNodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ICloudEventNodeExecution); + + /** CloudEventNodeExecution rawEvent. */ + public rawEvent?: (flyteidl.event.INodeExecutionEvent|null); + + /** CloudEventNodeExecution taskExecId. */ + public taskExecId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** CloudEventNodeExecution outputInterface. */ + public outputInterface?: (flyteidl.core.ITypedInterface|null); + + /** CloudEventNodeExecution artifactIds. */ + public artifactIds: flyteidl.core.IArtifactID[]; + + /** CloudEventNodeExecution principal. */ + public principal: string; + + /** CloudEventNodeExecution launchPlanId. */ + public launchPlanId?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new CloudEventNodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudEventNodeExecution instance + */ + public static create(properties?: flyteidl.event.ICloudEventNodeExecution): flyteidl.event.CloudEventNodeExecution; + + /** + * Encodes the specified CloudEventNodeExecution message. Does not implicitly {@link flyteidl.event.CloudEventNodeExecution.verify|verify} messages. + * @param message CloudEventNodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ICloudEventNodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CloudEventNodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudEventNodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventNodeExecution; + + /** + * Verifies a CloudEventNodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CloudEventTaskExecution. */ + interface ICloudEventTaskExecution { + + /** CloudEventTaskExecution rawEvent */ + rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); + } + + /** Represents a CloudEventTaskExecution. */ + class CloudEventTaskExecution implements ICloudEventTaskExecution { + + /** + * Constructs a new CloudEventTaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ICloudEventTaskExecution); + + /** CloudEventTaskExecution rawEvent. */ + public rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); + + /** + * Creates a new CloudEventTaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudEventTaskExecution instance + */ + public static create(properties?: flyteidl.event.ICloudEventTaskExecution): flyteidl.event.CloudEventTaskExecution; + + /** + * Encodes the specified CloudEventTaskExecution message. Does not implicitly {@link flyteidl.event.CloudEventTaskExecution.verify|verify} messages. + * @param message CloudEventTaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ICloudEventTaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CloudEventTaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudEventTaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventTaskExecution; + + /** + * Verifies a CloudEventTaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CloudEventExecutionStart. */ + interface ICloudEventExecutionStart { + + /** CloudEventExecutionStart executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** CloudEventExecutionStart launchPlanId */ + launchPlanId?: (flyteidl.core.IIdentifier|null); + + /** CloudEventExecutionStart workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + + /** CloudEventExecutionStart artifactIds */ + artifactIds?: (flyteidl.core.IArtifactID[]|null); + + /** CloudEventExecutionStart artifactTrackers */ + artifactTrackers?: (string[]|null); + + /** CloudEventExecutionStart principal */ + principal?: (string|null); + } + + /** Represents a CloudEventExecutionStart. */ + class CloudEventExecutionStart implements ICloudEventExecutionStart { + + /** + * Constructs a new CloudEventExecutionStart. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ICloudEventExecutionStart); + + /** CloudEventExecutionStart executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** CloudEventExecutionStart launchPlanId. */ + public launchPlanId?: (flyteidl.core.IIdentifier|null); + + /** CloudEventExecutionStart workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** CloudEventExecutionStart artifactIds. */ + public artifactIds: flyteidl.core.IArtifactID[]; + + /** CloudEventExecutionStart artifactTrackers. */ + public artifactTrackers: string[]; + + /** CloudEventExecutionStart principal. */ + public principal: string; + + /** + * Creates a new CloudEventExecutionStart instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudEventExecutionStart instance + */ + public static create(properties?: flyteidl.event.ICloudEventExecutionStart): flyteidl.event.CloudEventExecutionStart; + + /** + * Encodes the specified CloudEventExecutionStart message. Does not implicitly {@link flyteidl.event.CloudEventExecutionStart.verify|verify} messages. + * @param message CloudEventExecutionStart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ICloudEventExecutionStart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CloudEventExecutionStart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudEventExecutionStart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.CloudEventExecutionStart; + + /** + * Verifies a CloudEventExecutionStart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEvent. */ + interface IWorkflowExecutionEvent { + + /** WorkflowExecutionEvent executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionEvent producerId */ + producerId?: (string|null); + + /** WorkflowExecutionEvent phase */ + phase?: (flyteidl.core.WorkflowExecution.Phase|null); + + /** WorkflowExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** WorkflowExecutionEvent outputUri */ + outputUri?: (string|null); + + /** WorkflowExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** WorkflowExecutionEvent outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a WorkflowExecutionEvent. */ + class WorkflowExecutionEvent implements IWorkflowExecutionEvent { + + /** + * Constructs a new WorkflowExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IWorkflowExecutionEvent); + + /** WorkflowExecutionEvent executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionEvent producerId. */ + public producerId: string; + + /** WorkflowExecutionEvent phase. */ + public phase: flyteidl.core.WorkflowExecution.Phase; + + /** WorkflowExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** WorkflowExecutionEvent outputUri. */ + public outputUri: string; + + /** WorkflowExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** WorkflowExecutionEvent outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** WorkflowExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** + * Creates a new WorkflowExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEvent instance + */ + public static create(properties?: flyteidl.event.IWorkflowExecutionEvent): flyteidl.event.WorkflowExecutionEvent; + + /** + * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. + * @param message WorkflowExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IWorkflowExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowExecutionEvent; + + /** + * Verifies a WorkflowExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEvent. */ + interface INodeExecutionEvent { + + /** NodeExecutionEvent id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecutionEvent producerId */ + producerId?: (string|null); + + /** NodeExecutionEvent phase */ + phase?: (flyteidl.core.NodeExecution.Phase|null); + + /** NodeExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputUri */ + inputUri?: (string|null); + + /** NodeExecutionEvent inputData */ + inputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent outputUri */ + outputUri?: (string|null); + + /** NodeExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionEvent outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent workflowNodeMetadata */ + workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); + + /** NodeExecutionEvent taskNodeMetadata */ + taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); + + /** NodeExecutionEvent parentTaskMetadata */ + parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); + + /** NodeExecutionEvent parentNodeMetadata */ + parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); + + /** NodeExecutionEvent retryGroup */ + retryGroup?: (string|null); + + /** NodeExecutionEvent specNodeId */ + specNodeId?: (string|null); + + /** NodeExecutionEvent nodeName */ + nodeName?: (string|null); + + /** NodeExecutionEvent eventVersion */ + eventVersion?: (number|null); + + /** NodeExecutionEvent isParent */ + isParent?: (boolean|null); + + /** NodeExecutionEvent isDynamic */ + isDynamic?: (boolean|null); + + /** NodeExecutionEvent deckUri */ + deckUri?: (string|null); + + /** NodeExecutionEvent reportedAt */ + reportedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent isArray */ + isArray?: (boolean|null); + } + + /** Represents a NodeExecutionEvent. */ + class NodeExecutionEvent implements INodeExecutionEvent { + + /** + * Constructs a new NodeExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.INodeExecutionEvent); + + /** NodeExecutionEvent id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecutionEvent producerId. */ + public producerId: string; + + /** NodeExecutionEvent phase. */ + public phase: flyteidl.core.NodeExecution.Phase; + + /** NodeExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent inputUri. */ + public inputUri: string; + + /** NodeExecutionEvent inputData. */ + public inputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent outputUri. */ + public outputUri: string; + + /** NodeExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionEvent outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionEvent workflowNodeMetadata. */ + public workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); + + /** NodeExecutionEvent taskNodeMetadata. */ + public taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); + + /** NodeExecutionEvent parentTaskMetadata. */ + public parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); + + /** NodeExecutionEvent parentNodeMetadata. */ + public parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); + + /** NodeExecutionEvent retryGroup. */ + public retryGroup: string; + + /** NodeExecutionEvent specNodeId. */ + public specNodeId: string; + + /** NodeExecutionEvent nodeName. */ + public nodeName: string; + + /** NodeExecutionEvent eventVersion. */ + public eventVersion: number; + + /** NodeExecutionEvent isParent. */ + public isParent: boolean; + + /** NodeExecutionEvent isDynamic. */ + public isDynamic: boolean; + + /** NodeExecutionEvent deckUri. */ + public deckUri: string; + + /** NodeExecutionEvent reportedAt. */ + public reportedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionEvent isArray. */ + public isArray: boolean; + + /** NodeExecutionEvent inputValue. */ + public inputValue?: ("inputUri"|"inputData"); + + /** NodeExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** NodeExecutionEvent targetMetadata. */ + public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); + + /** + * Creates a new NodeExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEvent instance + */ + public static create(properties?: flyteidl.event.INodeExecutionEvent): flyteidl.event.NodeExecutionEvent; + + /** + * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. + * @param message NodeExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.INodeExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.NodeExecutionEvent; + + /** + * Verifies a NodeExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNodeMetadata. */ + interface IWorkflowNodeMetadata { + + /** WorkflowNodeMetadata executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowNodeMetadata. */ + class WorkflowNodeMetadata implements IWorkflowNodeMetadata { + + /** + * Constructs a new WorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IWorkflowNodeMetadata); + + /** WorkflowNodeMetadata executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.event.IWorkflowNodeMetadata): flyteidl.event.WorkflowNodeMetadata; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. + * @param message WorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.WorkflowNodeMetadata; + + /** + * Verifies a WorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNodeMetadata. */ + interface ITaskNodeMetadata { + + /** TaskNodeMetadata cacheStatus */ + cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); + + /** TaskNodeMetadata catalogKey */ + catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata reservationStatus */ + reservationStatus?: (flyteidl.core.CatalogReservation.Status|null); + + /** TaskNodeMetadata checkpointUri */ + checkpointUri?: (string|null); + + /** TaskNodeMetadata dynamicWorkflow */ + dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); + } + + /** Represents a TaskNodeMetadata. */ + class TaskNodeMetadata implements ITaskNodeMetadata { + + /** + * Constructs a new TaskNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskNodeMetadata); + + /** TaskNodeMetadata cacheStatus. */ + public cacheStatus: flyteidl.core.CatalogCacheStatus; + + /** TaskNodeMetadata catalogKey. */ + public catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata reservationStatus. */ + public reservationStatus: flyteidl.core.CatalogReservation.Status; + + /** TaskNodeMetadata checkpointUri. */ + public checkpointUri: string; + + /** TaskNodeMetadata dynamicWorkflow. */ + public dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNodeMetadata instance + */ + public static create(properties?: flyteidl.event.ITaskNodeMetadata): flyteidl.event.TaskNodeMetadata; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. + * @param message TaskNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskNodeMetadata; + + /** + * Verifies a TaskNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicWorkflowNodeMetadata. */ + interface IDynamicWorkflowNodeMetadata { + + /** DynamicWorkflowNodeMetadata id */ + id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ + dynamicJobSpecUri?: (string|null); + } + + /** Represents a DynamicWorkflowNodeMetadata. */ + class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata); + + /** DynamicWorkflowNodeMetadata id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ + public dynamicJobSpecUri: string; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicWorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata): flyteidl.event.DynamicWorkflowNodeMetadata; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @param message DynamicWorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.DynamicWorkflowNodeMetadata; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParentTaskExecutionMetadata. */ + interface IParentTaskExecutionMetadata { + + /** ParentTaskExecutionMetadata id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a ParentTaskExecutionMetadata. */ + class ParentTaskExecutionMetadata implements IParentTaskExecutionMetadata { + + /** + * Constructs a new ParentTaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IParentTaskExecutionMetadata); + + /** ParentTaskExecutionMetadata id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new ParentTaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ParentTaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.IParentTaskExecutionMetadata): flyteidl.event.ParentTaskExecutionMetadata; + + /** + * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. + * @param message ParentTaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IParentTaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParentTaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentTaskExecutionMetadata; + + /** + * Verifies a ParentTaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ParentNodeExecutionMetadata. */ + interface IParentNodeExecutionMetadata { + + /** ParentNodeExecutionMetadata nodeId */ + nodeId?: (string|null); + } + + /** Represents a ParentNodeExecutionMetadata. */ + class ParentNodeExecutionMetadata implements IParentNodeExecutionMetadata { + + /** + * Constructs a new ParentNodeExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IParentNodeExecutionMetadata); + + /** ParentNodeExecutionMetadata nodeId. */ + public nodeId: string; + + /** + * Creates a new ParentNodeExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ParentNodeExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.IParentNodeExecutionMetadata): flyteidl.event.ParentNodeExecutionMetadata; + + /** + * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. + * @param message ParentNodeExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IParentNodeExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParentNodeExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ParentNodeExecutionMetadata; + + /** + * Verifies a ParentNodeExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventReason. */ + interface IEventReason { + + /** EventReason reason */ + reason?: (string|null); + + /** EventReason occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents an EventReason. */ + class EventReason implements IEventReason { + + /** + * Constructs a new EventReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IEventReason); + + /** EventReason reason. */ + public reason: string; + + /** EventReason occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new EventReason instance using the specified properties. + * @param [properties] Properties to set + * @returns EventReason instance + */ + public static create(properties?: flyteidl.event.IEventReason): flyteidl.event.EventReason; + + /** + * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages. + * @param message EventReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IEventReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.EventReason; + + /** + * Verifies an EventReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEvent. */ + interface ITaskExecutionEvent { + + /** TaskExecutionEvent taskId */ + taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionEvent parentNodeExecutionId */ + parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionEvent retryAttempt */ + retryAttempt?: (number|null); + + /** TaskExecutionEvent phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** TaskExecutionEvent producerId */ + producerId?: (string|null); + + /** TaskExecutionEvent logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + + /** TaskExecutionEvent occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputUri */ + inputUri?: (string|null); + + /** TaskExecutionEvent inputData */ + inputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent outputUri */ + outputUri?: (string|null); + + /** TaskExecutionEvent error */ + error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionEvent outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent customInfo */ + customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionEvent phaseVersion */ + phaseVersion?: (number|null); + + /** TaskExecutionEvent reason */ + reason?: (string|null); + + /** TaskExecutionEvent reasons */ + reasons?: (flyteidl.event.IEventReason[]|null); + + /** TaskExecutionEvent taskType */ + taskType?: (string|null); + + /** TaskExecutionEvent metadata */ + metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionEvent eventVersion */ + eventVersion?: (number|null); + + /** TaskExecutionEvent reportedAt */ + reportedAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a TaskExecutionEvent. */ + class TaskExecutionEvent implements ITaskExecutionEvent { + + /** + * Constructs a new TaskExecutionEvent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskExecutionEvent); + + /** TaskExecutionEvent taskId. */ + public taskId?: (flyteidl.core.IIdentifier|null); + + /** TaskExecutionEvent parentNodeExecutionId. */ + public parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionEvent retryAttempt. */ + public retryAttempt: number; + + /** TaskExecutionEvent phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** TaskExecutionEvent producerId. */ + public producerId: string; + + /** TaskExecutionEvent logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** TaskExecutionEvent occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputUri. */ + public inputUri: string; + + /** TaskExecutionEvent inputData. */ + public inputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent outputUri. */ + public outputUri: string; + + /** TaskExecutionEvent error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionEvent outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionEvent customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionEvent phaseVersion. */ + public phaseVersion: number; + + /** TaskExecutionEvent reason. */ + public reason: string; + + /** TaskExecutionEvent reasons. */ + public reasons: flyteidl.event.IEventReason[]; + + /** TaskExecutionEvent taskType. */ + public taskType: string; + + /** TaskExecutionEvent metadata. */ + public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionEvent eventVersion. */ + public eventVersion: number; + + /** TaskExecutionEvent reportedAt. */ + public reportedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionEvent inputValue. */ + public inputValue?: ("inputUri"|"inputData"); + + /** TaskExecutionEvent outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** + * Creates a new TaskExecutionEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEvent instance + */ + public static create(properties?: flyteidl.event.ITaskExecutionEvent): flyteidl.event.TaskExecutionEvent; + + /** + * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. + * @param message TaskExecutionEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionEvent; + + /** + * Verifies a TaskExecutionEvent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExternalResourceInfo. */ + interface IExternalResourceInfo { + + /** ExternalResourceInfo externalId */ + externalId?: (string|null); + + /** ExternalResourceInfo index */ + index?: (number|null); + + /** ExternalResourceInfo retryAttempt */ + retryAttempt?: (number|null); + + /** ExternalResourceInfo phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** ExternalResourceInfo cacheStatus */ + cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); + + /** ExternalResourceInfo logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + } + + /** Represents an ExternalResourceInfo. */ + class ExternalResourceInfo implements IExternalResourceInfo { + + /** + * Constructs a new ExternalResourceInfo. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IExternalResourceInfo); + + /** ExternalResourceInfo externalId. */ + public externalId: string; + + /** ExternalResourceInfo index. */ + public index: number; + + /** ExternalResourceInfo retryAttempt. */ + public retryAttempt: number; + + /** ExternalResourceInfo phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** ExternalResourceInfo cacheStatus. */ + public cacheStatus: flyteidl.core.CatalogCacheStatus; + + /** ExternalResourceInfo logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** + * Creates a new ExternalResourceInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ExternalResourceInfo instance + */ + public static create(properties?: flyteidl.event.IExternalResourceInfo): flyteidl.event.ExternalResourceInfo; + + /** + * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. + * @param message ExternalResourceInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IExternalResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExternalResourceInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExternalResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ExternalResourceInfo; + + /** + * Verifies an ExternalResourceInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ResourcePoolInfo. */ + interface IResourcePoolInfo { + + /** ResourcePoolInfo allocationToken */ + allocationToken?: (string|null); + + /** ResourcePoolInfo namespace */ + namespace?: (string|null); + } + + /** Represents a ResourcePoolInfo. */ + class ResourcePoolInfo implements IResourcePoolInfo { + + /** + * Constructs a new ResourcePoolInfo. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.IResourcePoolInfo); + + /** ResourcePoolInfo allocationToken. */ + public allocationToken: string; + + /** ResourcePoolInfo namespace. */ + public namespace: string; + + /** + * Creates a new ResourcePoolInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourcePoolInfo instance + */ + public static create(properties?: flyteidl.event.IResourcePoolInfo): flyteidl.event.ResourcePoolInfo; + + /** + * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. + * @param message ResourcePoolInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.IResourcePoolInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourcePoolInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourcePoolInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.ResourcePoolInfo; + + /** + * Verifies a ResourcePoolInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionMetadata. */ + interface ITaskExecutionMetadata { + + /** TaskExecutionMetadata generatedName */ + generatedName?: (string|null); + + /** TaskExecutionMetadata externalResources */ + externalResources?: (flyteidl.event.IExternalResourceInfo[]|null); + + /** TaskExecutionMetadata resourcePoolInfo */ + resourcePoolInfo?: (flyteidl.event.IResourcePoolInfo[]|null); + + /** TaskExecutionMetadata pluginIdentifier */ + pluginIdentifier?: (string|null); + + /** TaskExecutionMetadata instanceClass */ + instanceClass?: (flyteidl.event.TaskExecutionMetadata.InstanceClass|null); + } + + /** Represents a TaskExecutionMetadata. */ + class TaskExecutionMetadata implements ITaskExecutionMetadata { + + /** + * Constructs a new TaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.event.ITaskExecutionMetadata); + + /** TaskExecutionMetadata generatedName. */ + public generatedName: string; + + /** TaskExecutionMetadata externalResources. */ + public externalResources: flyteidl.event.IExternalResourceInfo[]; + + /** TaskExecutionMetadata resourcePoolInfo. */ + public resourcePoolInfo: flyteidl.event.IResourcePoolInfo[]; + + /** TaskExecutionMetadata pluginIdentifier. */ + public pluginIdentifier: string; + + /** TaskExecutionMetadata instanceClass. */ + public instanceClass: flyteidl.event.TaskExecutionMetadata.InstanceClass; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.event.ITaskExecutionMetadata): flyteidl.event.TaskExecutionMetadata; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. + * @param message TaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.event.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.event.TaskExecutionMetadata; + + /** + * Verifies a TaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace TaskExecutionMetadata { + + /** InstanceClass enum. */ + enum InstanceClass { + DEFAULT = 0, + INTERRUPTIBLE = 1 + } + } + } + + /** Namespace admin. */ + namespace admin { + + /** State enum. */ + enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4 + } + + /** Properties of a TaskExecutionMetadata. */ + interface ITaskExecutionMetadata { + + /** TaskExecutionMetadata taskExecutionId */ + taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecutionMetadata namespace */ + namespace?: (string|null); + + /** TaskExecutionMetadata labels */ + labels?: ({ [k: string]: string }|null); + + /** TaskExecutionMetadata annotations */ + annotations?: ({ [k: string]: string }|null); + + /** TaskExecutionMetadata k8sServiceAccount */ + k8sServiceAccount?: (string|null); + + /** TaskExecutionMetadata environmentVariables */ + environmentVariables?: ({ [k: string]: string }|null); + + /** TaskExecutionMetadata maxAttempts */ + maxAttempts?: (number|null); + + /** TaskExecutionMetadata interruptible */ + interruptible?: (boolean|null); + + /** TaskExecutionMetadata interruptibleFailureThreshold */ + interruptibleFailureThreshold?: (number|null); + + /** TaskExecutionMetadata overrides */ + overrides?: (flyteidl.core.ITaskNodeOverrides|null); + } + + /** Represents a TaskExecutionMetadata. */ + class TaskExecutionMetadata implements ITaskExecutionMetadata { + + /** + * Constructs a new TaskExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionMetadata); + + /** TaskExecutionMetadata taskExecutionId. */ + public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecutionMetadata namespace. */ + public namespace: string; + + /** TaskExecutionMetadata labels. */ + public labels: { [k: string]: string }; + + /** TaskExecutionMetadata annotations. */ + public annotations: { [k: string]: string }; + + /** TaskExecutionMetadata k8sServiceAccount. */ + public k8sServiceAccount: string; + + /** TaskExecutionMetadata environmentVariables. */ + public environmentVariables: { [k: string]: string }; + + /** TaskExecutionMetadata maxAttempts. */ + public maxAttempts: number; + + /** TaskExecutionMetadata interruptible. */ + public interruptible: boolean; + + /** TaskExecutionMetadata interruptibleFailureThreshold. */ + public interruptibleFailureThreshold: number; + + /** TaskExecutionMetadata overrides. */ + public overrides?: (flyteidl.core.ITaskNodeOverrides|null); + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionMetadata instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionMetadata): flyteidl.admin.TaskExecutionMetadata; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. + * @param message TaskExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionMetadata; + + /** + * Verifies a TaskExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateTaskRequest. */ + interface ICreateTaskRequest { + + /** CreateTaskRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** CreateTaskRequest template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateTaskRequest outputPrefix */ + outputPrefix?: (string|null); + + /** CreateTaskRequest taskExecutionMetadata */ + taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + } + + /** Represents a CreateTaskRequest. */ + class CreateTaskRequest implements ICreateTaskRequest { + + /** + * Constructs a new CreateTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateTaskRequest); + + /** CreateTaskRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** CreateTaskRequest template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateTaskRequest outputPrefix. */ + public outputPrefix: string; + + /** CreateTaskRequest taskExecutionMetadata. */ + public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + + /** + * Creates a new CreateTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTaskRequest instance + */ + public static create(properties?: flyteidl.admin.ICreateTaskRequest): flyteidl.admin.CreateTaskRequest; + + /** + * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. + * @param message CreateTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateTaskRequest; + + /** + * Verifies a CreateTaskRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateTaskResponse. */ + interface ICreateTaskResponse { + + /** CreateTaskResponse resourceMeta */ + resourceMeta?: (Uint8Array|null); + } + + /** Represents a CreateTaskResponse. */ + class CreateTaskResponse implements ICreateTaskResponse { + + /** + * Constructs a new CreateTaskResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateTaskResponse); + + /** CreateTaskResponse resourceMeta. */ + public resourceMeta: Uint8Array; + + /** + * Creates a new CreateTaskResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTaskResponse instance + */ + public static create(properties?: flyteidl.admin.ICreateTaskResponse): flyteidl.admin.CreateTaskResponse; + + /** + * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. + * @param message CreateTaskResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTaskResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateTaskResponse; + + /** + * Verifies a CreateTaskResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateRequestHeader. */ + interface ICreateRequestHeader { + + /** CreateRequestHeader template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateRequestHeader outputPrefix */ + outputPrefix?: (string|null); + + /** CreateRequestHeader taskExecutionMetadata */ + taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + + /** CreateRequestHeader maxDatasetSizeBytes */ + maxDatasetSizeBytes?: (Long|null); + } + + /** Represents a CreateRequestHeader. */ + class CreateRequestHeader implements ICreateRequestHeader { + + /** + * Constructs a new CreateRequestHeader. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateRequestHeader); + + /** CreateRequestHeader template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** CreateRequestHeader outputPrefix. */ + public outputPrefix: string; + + /** CreateRequestHeader taskExecutionMetadata. */ + public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); + + /** CreateRequestHeader maxDatasetSizeBytes. */ + public maxDatasetSizeBytes: Long; + + /** + * Creates a new CreateRequestHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateRequestHeader instance + */ + public static create(properties?: flyteidl.admin.ICreateRequestHeader): flyteidl.admin.CreateRequestHeader; + + /** + * Encodes the specified CreateRequestHeader message. Does not implicitly {@link flyteidl.admin.CreateRequestHeader.verify|verify} messages. + * @param message CreateRequestHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateRequestHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateRequestHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateRequestHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateRequestHeader; + + /** + * Verifies a CreateRequestHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecuteTaskSyncRequest. */ + interface IExecuteTaskSyncRequest { + + /** ExecuteTaskSyncRequest header */ + header?: (flyteidl.admin.ICreateRequestHeader|null); + + /** ExecuteTaskSyncRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents an ExecuteTaskSyncRequest. */ + class ExecuteTaskSyncRequest implements IExecuteTaskSyncRequest { + + /** + * Constructs a new ExecuteTaskSyncRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecuteTaskSyncRequest); + + /** ExecuteTaskSyncRequest header. */ + public header?: (flyteidl.admin.ICreateRequestHeader|null); + + /** ExecuteTaskSyncRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecuteTaskSyncRequest part. */ + public part?: ("header"|"inputs"); + + /** + * Creates a new ExecuteTaskSyncRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteTaskSyncRequest instance + */ + public static create(properties?: flyteidl.admin.IExecuteTaskSyncRequest): flyteidl.admin.ExecuteTaskSyncRequest; + + /** + * Encodes the specified ExecuteTaskSyncRequest message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncRequest.verify|verify} messages. + * @param message ExecuteTaskSyncRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecuteTaskSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteTaskSyncRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteTaskSyncRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncRequest; + + /** + * Verifies an ExecuteTaskSyncRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecuteTaskSyncResponseHeader. */ + interface IExecuteTaskSyncResponseHeader { + + /** ExecuteTaskSyncResponseHeader resource */ + resource?: (flyteidl.admin.IResource|null); + } + + /** Represents an ExecuteTaskSyncResponseHeader. */ + class ExecuteTaskSyncResponseHeader implements IExecuteTaskSyncResponseHeader { + + /** + * Constructs a new ExecuteTaskSyncResponseHeader. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecuteTaskSyncResponseHeader); + + /** ExecuteTaskSyncResponseHeader resource. */ + public resource?: (flyteidl.admin.IResource|null); + + /** + * Creates a new ExecuteTaskSyncResponseHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteTaskSyncResponseHeader instance + */ + public static create(properties?: flyteidl.admin.IExecuteTaskSyncResponseHeader): flyteidl.admin.ExecuteTaskSyncResponseHeader; + + /** + * Encodes the specified ExecuteTaskSyncResponseHeader message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponseHeader.verify|verify} messages. + * @param message ExecuteTaskSyncResponseHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecuteTaskSyncResponseHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteTaskSyncResponseHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteTaskSyncResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncResponseHeader; + + /** + * Verifies an ExecuteTaskSyncResponseHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecuteTaskSyncResponse. */ + interface IExecuteTaskSyncResponse { + + /** ExecuteTaskSyncResponse header */ + header?: (flyteidl.admin.IExecuteTaskSyncResponseHeader|null); + + /** ExecuteTaskSyncResponse outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents an ExecuteTaskSyncResponse. */ + class ExecuteTaskSyncResponse implements IExecuteTaskSyncResponse { + + /** + * Constructs a new ExecuteTaskSyncResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecuteTaskSyncResponse); + + /** ExecuteTaskSyncResponse header. */ + public header?: (flyteidl.admin.IExecuteTaskSyncResponseHeader|null); + + /** ExecuteTaskSyncResponse outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecuteTaskSyncResponse res. */ + public res?: ("header"|"outputs"); + + /** + * Creates a new ExecuteTaskSyncResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecuteTaskSyncResponse instance + */ + public static create(properties?: flyteidl.admin.IExecuteTaskSyncResponse): flyteidl.admin.ExecuteTaskSyncResponse; + + /** + * Encodes the specified ExecuteTaskSyncResponse message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponse.verify|verify} messages. + * @param message ExecuteTaskSyncResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecuteTaskSyncResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecuteTaskSyncResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecuteTaskSyncResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecuteTaskSyncResponse; + + /** + * Verifies an ExecuteTaskSyncResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskRequest. */ + interface IGetTaskRequest { + + /** GetTaskRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); + + /** GetTaskRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + + /** GetTaskRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); + } + + /** Represents a GetTaskRequest. */ + class GetTaskRequest implements IGetTaskRequest { + + /** + * Constructs a new GetTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskRequest); + + /** GetTaskRequest deprecatedTaskType. */ + public deprecatedTaskType: string; + + /** GetTaskRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** GetTaskRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskRequest instance + */ + public static create(properties?: flyteidl.admin.IGetTaskRequest): flyteidl.admin.GetTaskRequest; + + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. + * @param message GetTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskRequest; + + /** + * Verifies a GetTaskRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskResponse. */ + interface IGetTaskResponse { + + /** GetTaskResponse resource */ + resource?: (flyteidl.admin.IResource|null); + } + + /** Represents a GetTaskResponse. */ + class GetTaskResponse implements IGetTaskResponse { + + /** + * Constructs a new GetTaskResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskResponse); + + /** GetTaskResponse resource. */ + public resource?: (flyteidl.admin.IResource|null); + + /** + * Creates a new GetTaskResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskResponse instance + */ + public static create(properties?: flyteidl.admin.IGetTaskResponse): flyteidl.admin.GetTaskResponse; + + /** + * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. + * @param message GetTaskResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskResponse; + + /** + * Verifies a GetTaskResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Resource. */ + interface IResource { + + /** Resource state */ + state?: (flyteidl.admin.State|null); + + /** Resource outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); + + /** Resource message */ + message?: (string|null); + + /** Resource logLinks */ + logLinks?: (flyteidl.core.ITaskLog[]|null); + + /** Resource phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** Resource customInfo */ + customInfo?: (google.protobuf.IStruct|null); + } + + /** Represents a Resource. */ + class Resource implements IResource { + + /** + * Constructs a new Resource. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IResource); + + /** Resource state. */ + public state: flyteidl.admin.State; + + /** Resource outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); + + /** Resource message. */ + public message: string; + + /** Resource logLinks. */ + public logLinks: flyteidl.core.ITaskLog[]; + + /** Resource phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** Resource customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** + * Creates a new Resource instance using the specified properties. + * @param [properties] Properties to set + * @returns Resource instance + */ + public static create(properties?: flyteidl.admin.IResource): flyteidl.admin.Resource; + + /** + * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. + * @param message Resource message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IResource, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Resource message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Resource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Resource; + + /** + * Verifies a Resource message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DeleteTaskRequest. */ + interface IDeleteTaskRequest { + + /** DeleteTaskRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); + + /** DeleteTaskRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + + /** DeleteTaskRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); + } + + /** Represents a DeleteTaskRequest. */ + class DeleteTaskRequest implements IDeleteTaskRequest { + + /** + * Constructs a new DeleteTaskRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDeleteTaskRequest); + + /** DeleteTaskRequest deprecatedTaskType. */ + public deprecatedTaskType: string; + + /** DeleteTaskRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** DeleteTaskRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + + /** + * Creates a new DeleteTaskRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTaskRequest instance + */ + public static create(properties?: flyteidl.admin.IDeleteTaskRequest): flyteidl.admin.DeleteTaskRequest; + + /** + * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. + * @param message DeleteTaskRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDeleteTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTaskRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DeleteTaskRequest; + + /** + * Verifies a DeleteTaskRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DeleteTaskResponse. */ + interface IDeleteTaskResponse { + } + + /** Represents a DeleteTaskResponse. */ + class DeleteTaskResponse implements IDeleteTaskResponse { + + /** + * Constructs a new DeleteTaskResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDeleteTaskResponse); + + /** + * Creates a new DeleteTaskResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTaskResponse instance + */ + public static create(properties?: flyteidl.admin.IDeleteTaskResponse): flyteidl.admin.DeleteTaskResponse; + + /** + * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. + * @param message DeleteTaskResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDeleteTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTaskResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DeleteTaskResponse; + + /** + * Verifies a DeleteTaskResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Agent. */ + interface IAgent { + + /** Agent name */ + name?: (string|null); + + /** Agent deprecatedSupportedTaskTypes */ + deprecatedSupportedTaskTypes?: (string[]|null); + + /** Agent isSync */ + isSync?: (boolean|null); + + /** Agent supportedTaskTypes */ + supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); + } + + /** Represents an Agent. */ + class Agent implements IAgent { + + /** + * Constructs a new Agent. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAgent); + + /** Agent name. */ + public name: string; + + /** Agent deprecatedSupportedTaskTypes. */ + public deprecatedSupportedTaskTypes: string[]; + + /** Agent isSync. */ + public isSync: boolean; + + /** Agent supportedTaskTypes. */ + public supportedTaskTypes: flyteidl.admin.ITaskType[]; + + /** + * Creates a new Agent instance using the specified properties. + * @param [properties] Properties to set + * @returns Agent instance + */ + public static create(properties?: flyteidl.admin.IAgent): flyteidl.admin.Agent; + + /** + * Encodes the specified Agent message. Does not implicitly {@link flyteidl.admin.Agent.verify|verify} messages. + * @param message Agent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Agent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Agent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Agent; + + /** + * Verifies an Agent message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskType. */ + interface ITaskType { + + /** TaskType name */ + name?: (string|null); + + /** TaskType version */ + version?: (number|null); + } + + /** Represents a TaskType. */ + class TaskType implements ITaskType { + + /** + * Constructs a new TaskType. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskType); + + /** TaskType name. */ + public name: string; + + /** TaskType version. */ + public version: number; + + /** + * Creates a new TaskType instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskType instance + */ + public static create(properties?: flyteidl.admin.ITaskType): flyteidl.admin.TaskType; + + /** + * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. + * @param message TaskType message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskType, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskType message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskType; + + /** + * Verifies a TaskType message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetAgentRequest. */ + interface IGetAgentRequest { + + /** GetAgentRequest name */ + name?: (string|null); + } + + /** Represents a GetAgentRequest. */ + class GetAgentRequest implements IGetAgentRequest { + + /** + * Constructs a new GetAgentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetAgentRequest); + + /** GetAgentRequest name. */ + public name: string; + + /** + * Creates a new GetAgentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAgentRequest instance + */ + public static create(properties?: flyteidl.admin.IGetAgentRequest): flyteidl.admin.GetAgentRequest; + + /** + * Encodes the specified GetAgentRequest message. Does not implicitly {@link flyteidl.admin.GetAgentRequest.verify|verify} messages. + * @param message GetAgentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetAgentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetAgentRequest; + + /** + * Verifies a GetAgentRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetAgentResponse. */ + interface IGetAgentResponse { + + /** GetAgentResponse agent */ + agent?: (flyteidl.admin.IAgent|null); + } + + /** Represents a GetAgentResponse. */ + class GetAgentResponse implements IGetAgentResponse { + + /** + * Constructs a new GetAgentResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetAgentResponse); + + /** GetAgentResponse agent. */ + public agent?: (flyteidl.admin.IAgent|null); + + /** + * Creates a new GetAgentResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetAgentResponse instance + */ + public static create(properties?: flyteidl.admin.IGetAgentResponse): flyteidl.admin.GetAgentResponse; + + /** + * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. + * @param message GetAgentResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetAgentResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetAgentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetAgentResponse; + + /** + * Verifies a GetAgentResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ListAgentsRequest. */ + interface IListAgentsRequest { + } + + /** Represents a ListAgentsRequest. */ + class ListAgentsRequest implements IListAgentsRequest { + + /** + * Constructs a new ListAgentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IListAgentsRequest); + + /** + * Creates a new ListAgentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAgentsRequest instance + */ + public static create(properties?: flyteidl.admin.IListAgentsRequest): flyteidl.admin.ListAgentsRequest; + + /** + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. + * @param message ListAgentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAgentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAgentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListAgentsRequest; + + /** + * Verifies a ListAgentsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ListAgentsResponse. */ + interface IListAgentsResponse { + + /** ListAgentsResponse agents */ + agents?: (flyteidl.admin.IAgent[]|null); + } + + /** Represents a ListAgentsResponse. */ + class ListAgentsResponse implements IListAgentsResponse { + + /** + * Constructs a new ListAgentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IListAgentsResponse); + + /** ListAgentsResponse agents. */ + public agents: flyteidl.admin.IAgent[]; + + /** + * Creates a new ListAgentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAgentsResponse instance + */ + public static create(properties?: flyteidl.admin.IListAgentsResponse): flyteidl.admin.ListAgentsResponse; + + /** + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. + * @param message ListAgentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListAgentsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAgentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListAgentsResponse; + + /** + * Verifies a ListAgentsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskMetricsRequest. */ + interface IGetTaskMetricsRequest { + + /** GetTaskMetricsRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); + + /** GetTaskMetricsRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + + /** GetTaskMetricsRequest queries */ + queries?: (string[]|null); + + /** GetTaskMetricsRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** GetTaskMetricsRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** GetTaskMetricsRequest step */ + step?: (google.protobuf.IDuration|null); + + /** GetTaskMetricsRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); + } + + /** Represents a GetTaskMetricsRequest. */ + class GetTaskMetricsRequest implements IGetTaskMetricsRequest { + + /** + * Constructs a new GetTaskMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskMetricsRequest); + + /** GetTaskMetricsRequest deprecatedTaskType. */ + public deprecatedTaskType: string; + + /** GetTaskMetricsRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** GetTaskMetricsRequest queries. */ + public queries: string[]; + + /** GetTaskMetricsRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** GetTaskMetricsRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** GetTaskMetricsRequest step. */ + public step?: (google.protobuf.IDuration|null); + + /** GetTaskMetricsRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + + /** + * Creates a new GetTaskMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskMetricsRequest instance + */ + public static create(properties?: flyteidl.admin.IGetTaskMetricsRequest): flyteidl.admin.GetTaskMetricsRequest; + + /** + * Encodes the specified GetTaskMetricsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsRequest.verify|verify} messages. + * @param message GetTaskMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskMetricsRequest; + + /** + * Verifies a GetTaskMetricsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskMetricsResponse. */ + interface IGetTaskMetricsResponse { + + /** GetTaskMetricsResponse results */ + results?: (flyteidl.core.IExecutionMetricResult[]|null); + } + + /** Represents a GetTaskMetricsResponse. */ + class GetTaskMetricsResponse implements IGetTaskMetricsResponse { + + /** + * Constructs a new GetTaskMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskMetricsResponse); + + /** GetTaskMetricsResponse results. */ + public results: flyteidl.core.IExecutionMetricResult[]; + + /** + * Creates a new GetTaskMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskMetricsResponse instance + */ + public static create(properties?: flyteidl.admin.IGetTaskMetricsResponse): flyteidl.admin.GetTaskMetricsResponse; + + /** + * Encodes the specified GetTaskMetricsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsResponse.verify|verify} messages. + * @param message GetTaskMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskMetricsResponse; + + /** + * Verifies a GetTaskMetricsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskLogsRequest. */ + interface IGetTaskLogsRequest { + + /** GetTaskLogsRequest deprecatedTaskType */ + deprecatedTaskType?: (string|null); + + /** GetTaskLogsRequest resourceMeta */ + resourceMeta?: (Uint8Array|null); + + /** GetTaskLogsRequest lines */ + lines?: (Long|null); + + /** GetTaskLogsRequest token */ + token?: (string|null); + + /** GetTaskLogsRequest taskType */ + taskType?: (flyteidl.admin.ITaskType|null); + } + + /** Represents a GetTaskLogsRequest. */ + class GetTaskLogsRequest implements IGetTaskLogsRequest { + + /** + * Constructs a new GetTaskLogsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskLogsRequest); + + /** GetTaskLogsRequest deprecatedTaskType. */ + public deprecatedTaskType: string; + + /** GetTaskLogsRequest resourceMeta. */ + public resourceMeta: Uint8Array; + + /** GetTaskLogsRequest lines. */ + public lines: Long; + + /** GetTaskLogsRequest token. */ + public token: string; + + /** GetTaskLogsRequest taskType. */ + public taskType?: (flyteidl.admin.ITaskType|null); + + /** + * Creates a new GetTaskLogsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskLogsRequest instance + */ + public static create(properties?: flyteidl.admin.IGetTaskLogsRequest): flyteidl.admin.GetTaskLogsRequest; + + /** + * Encodes the specified GetTaskLogsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskLogsRequest.verify|verify} messages. + * @param message GetTaskLogsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskLogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskLogsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskLogsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsRequest; + + /** + * Verifies a GetTaskLogsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskLogsResponseHeader. */ + interface IGetTaskLogsResponseHeader { + + /** GetTaskLogsResponseHeader token */ + token?: (string|null); + } + + /** Represents a GetTaskLogsResponseHeader. */ + class GetTaskLogsResponseHeader implements IGetTaskLogsResponseHeader { + + /** + * Constructs a new GetTaskLogsResponseHeader. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskLogsResponseHeader); + + /** GetTaskLogsResponseHeader token. */ + public token: string; + + /** + * Creates a new GetTaskLogsResponseHeader instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskLogsResponseHeader instance + */ + public static create(properties?: flyteidl.admin.IGetTaskLogsResponseHeader): flyteidl.admin.GetTaskLogsResponseHeader; + + /** + * Encodes the specified GetTaskLogsResponseHeader message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseHeader.verify|verify} messages. + * @param message GetTaskLogsResponseHeader message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskLogsResponseHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskLogsResponseHeader message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskLogsResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponseHeader; + + /** + * Verifies a GetTaskLogsResponseHeader message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskLogsResponseBody. */ + interface IGetTaskLogsResponseBody { + + /** GetTaskLogsResponseBody results */ + results?: (string[]|null); + } + + /** Represents a GetTaskLogsResponseBody. */ + class GetTaskLogsResponseBody implements IGetTaskLogsResponseBody { + + /** + * Constructs a new GetTaskLogsResponseBody. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskLogsResponseBody); + + /** GetTaskLogsResponseBody results. */ + public results: string[]; + + /** + * Creates a new GetTaskLogsResponseBody instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskLogsResponseBody instance + */ + public static create(properties?: flyteidl.admin.IGetTaskLogsResponseBody): flyteidl.admin.GetTaskLogsResponseBody; + + /** + * Encodes the specified GetTaskLogsResponseBody message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseBody.verify|verify} messages. + * @param message GetTaskLogsResponseBody message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskLogsResponseBody, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskLogsResponseBody message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskLogsResponseBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponseBody; + + /** + * Verifies a GetTaskLogsResponseBody message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetTaskLogsResponse. */ + interface IGetTaskLogsResponse { + + /** GetTaskLogsResponse header */ + header?: (flyteidl.admin.IGetTaskLogsResponseHeader|null); + + /** GetTaskLogsResponse body */ + body?: (flyteidl.admin.IGetTaskLogsResponseBody|null); + } + + /** Represents a GetTaskLogsResponse. */ + class GetTaskLogsResponse implements IGetTaskLogsResponse { + + /** + * Constructs a new GetTaskLogsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetTaskLogsResponse); + + /** GetTaskLogsResponse header. */ + public header?: (flyteidl.admin.IGetTaskLogsResponseHeader|null); + + /** GetTaskLogsResponse body. */ + public body?: (flyteidl.admin.IGetTaskLogsResponseBody|null); + + /** GetTaskLogsResponse part. */ + public part?: ("header"|"body"); + + /** + * Creates a new GetTaskLogsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTaskLogsResponse instance + */ + public static create(properties?: flyteidl.admin.IGetTaskLogsResponse): flyteidl.admin.GetTaskLogsResponse; + + /** + * Encodes the specified GetTaskLogsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponse.verify|verify} messages. + * @param message GetTaskLogsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetTaskLogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTaskLogsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTaskLogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetTaskLogsResponse; + + /** + * Verifies a GetTaskLogsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ClusterAssignment. */ + interface IClusterAssignment { + + /** ClusterAssignment clusterPoolName */ + clusterPoolName?: (string|null); + } + + /** Represents a ClusterAssignment. */ + class ClusterAssignment implements IClusterAssignment { + + /** + * Constructs a new ClusterAssignment. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IClusterAssignment); + + /** ClusterAssignment clusterPoolName. */ + public clusterPoolName: string; + + /** + * Creates a new ClusterAssignment instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterAssignment instance + */ + public static create(properties?: flyteidl.admin.IClusterAssignment): flyteidl.admin.ClusterAssignment; + + /** + * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. + * @param message ClusterAssignment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IClusterAssignment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterAssignment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterAssignment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ClusterAssignment; + + /** + * Verifies a ClusterAssignment message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityIdentifier. */ + interface INamedEntityIdentifier { + + /** NamedEntityIdentifier project */ + project?: (string|null); + + /** NamedEntityIdentifier domain */ + domain?: (string|null); + + /** NamedEntityIdentifier name */ + name?: (string|null); + + /** NamedEntityIdentifier org */ + org?: (string|null); + } + + /** Represents a NamedEntityIdentifier. */ + class NamedEntityIdentifier implements INamedEntityIdentifier { + + /** + * Constructs a new NamedEntityIdentifier. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifier); + + /** NamedEntityIdentifier project. */ + public project: string; + + /** NamedEntityIdentifier domain. */ + public domain: string; + + /** NamedEntityIdentifier name. */ + public name: string; + + /** NamedEntityIdentifier org. */ + public org: string; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifier instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifier): flyteidl.admin.NamedEntityIdentifier; + + /** + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * @param message NamedEntityIdentifier message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifier; + + /** + * Verifies a NamedEntityIdentifier message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** NamedEntityState enum. */ + enum NamedEntityState { + NAMED_ENTITY_ACTIVE = 0, + NAMED_ENTITY_ARCHIVED = 1, + SYSTEM_GENERATED = 2 + } + + /** Properties of a NamedEntityMetadata. */ + interface INamedEntityMetadata { + + /** NamedEntityMetadata description */ + description?: (string|null); + + /** NamedEntityMetadata state */ + state?: (flyteidl.admin.NamedEntityState|null); + } + + /** Represents a NamedEntityMetadata. */ + class NamedEntityMetadata implements INamedEntityMetadata { + + /** + * Constructs a new NamedEntityMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityMetadata); + + /** NamedEntityMetadata description. */ + public description: string; + + /** NamedEntityMetadata state. */ + public state: flyteidl.admin.NamedEntityState; + + /** + * Creates a new NamedEntityMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityMetadata instance + */ + public static create(properties?: flyteidl.admin.INamedEntityMetadata): flyteidl.admin.NamedEntityMetadata; + + /** + * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. + * @param message NamedEntityMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityMetadata; + + /** + * Verifies a NamedEntityMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntity. */ + interface INamedEntity { + + /** NamedEntity resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntity id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntity metadata */ + metadata?: (flyteidl.admin.INamedEntityMetadata|null); + } + + /** Represents a NamedEntity. */ + class NamedEntity implements INamedEntity { + + /** + * Constructs a new NamedEntity. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntity); + + /** NamedEntity resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntity id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntity metadata. */ + public metadata?: (flyteidl.admin.INamedEntityMetadata|null); + + /** + * Creates a new NamedEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntity instance + */ + public static create(properties?: flyteidl.admin.INamedEntity): flyteidl.admin.NamedEntity; + + /** + * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. + * @param message NamedEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntity; + + /** + * Verifies a NamedEntity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Sort. */ + interface ISort { + + /** Sort key */ + key?: (string|null); + + /** Sort direction */ + direction?: (flyteidl.admin.Sort.Direction|null); + } + + /** Represents a Sort. */ + class Sort implements ISort { + + /** + * Constructs a new Sort. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISort); + + /** Sort key. */ + public key: string; + + /** Sort direction. */ + public direction: flyteidl.admin.Sort.Direction; + + /** + * Creates a new Sort instance using the specified properties. + * @param [properties] Properties to set + * @returns Sort instance + */ + public static create(properties?: flyteidl.admin.ISort): flyteidl.admin.Sort; + + /** + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * @param message Sort message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISort, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Sort message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Sort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Sort; + + /** + * Verifies a Sort message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Sort { + + /** Direction enum. */ + enum Direction { + DESCENDING = 0, + ASCENDING = 1 + } + } + + /** Properties of a NamedEntityIdentifierListRequest. */ + interface INamedEntityIdentifierListRequest { + + /** NamedEntityIdentifierListRequest project */ + project?: (string|null); + + /** NamedEntityIdentifierListRequest domain */ + domain?: (string|null); + + /** NamedEntityIdentifierListRequest limit */ + limit?: (number|null); + + /** NamedEntityIdentifierListRequest token */ + token?: (string|null); + + /** NamedEntityIdentifierListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityIdentifierListRequest filters */ + filters?: (string|null); + + /** NamedEntityIdentifierListRequest org */ + org?: (string|null); + } + + /** Represents a NamedEntityIdentifierListRequest. */ + class NamedEntityIdentifierListRequest implements INamedEntityIdentifierListRequest { + + /** + * Constructs a new NamedEntityIdentifierListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifierListRequest); + + /** NamedEntityIdentifierListRequest project. */ + public project: string; + + /** NamedEntityIdentifierListRequest domain. */ + public domain: string; + + /** NamedEntityIdentifierListRequest limit. */ + public limit: number; + + /** NamedEntityIdentifierListRequest token. */ + public token: string; + + /** NamedEntityIdentifierListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityIdentifierListRequest filters. */ + public filters: string; + + /** NamedEntityIdentifierListRequest org. */ + public org: string; + + /** + * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifierListRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifierListRequest): flyteidl.admin.NamedEntityIdentifierListRequest; + + /** + * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * @param message NamedEntityIdentifierListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifierListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifierListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierListRequest; + + /** + * Verifies a NamedEntityIdentifierListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityListRequest. */ + interface INamedEntityListRequest { + + /** NamedEntityListRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntityListRequest project */ + project?: (string|null); + + /** NamedEntityListRequest domain */ + domain?: (string|null); + + /** NamedEntityListRequest limit */ + limit?: (number|null); + + /** NamedEntityListRequest token */ + token?: (string|null); + + /** NamedEntityListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityListRequest filters */ + filters?: (string|null); + + /** NamedEntityListRequest org */ + org?: (string|null); + } + + /** Represents a NamedEntityListRequest. */ + class NamedEntityListRequest implements INamedEntityListRequest { + + /** + * Constructs a new NamedEntityListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityListRequest); + + /** NamedEntityListRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntityListRequest project. */ + public project: string; + + /** NamedEntityListRequest domain. */ + public domain: string; + + /** NamedEntityListRequest limit. */ + public limit: number; + + /** NamedEntityListRequest token. */ + public token: string; + + /** NamedEntityListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** NamedEntityListRequest filters. */ + public filters: string; + + /** NamedEntityListRequest org. */ + public org: string; + + /** + * Creates a new NamedEntityListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityListRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityListRequest): flyteidl.admin.NamedEntityListRequest; + + /** + * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. + * @param message NamedEntityListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityListRequest; + + /** + * Verifies a NamedEntityListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityIdentifierList. */ + interface INamedEntityIdentifierList { + + /** NamedEntityIdentifierList entities */ + entities?: (flyteidl.admin.INamedEntityIdentifier[]|null); + + /** NamedEntityIdentifierList token */ + token?: (string|null); + } + + /** Represents a NamedEntityIdentifierList. */ + class NamedEntityIdentifierList implements INamedEntityIdentifierList { + + /** + * Constructs a new NamedEntityIdentifierList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityIdentifierList); + + /** NamedEntityIdentifierList entities. */ + public entities: flyteidl.admin.INamedEntityIdentifier[]; + + /** NamedEntityIdentifierList token. */ + public token: string; + + /** + * Creates a new NamedEntityIdentifierList instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityIdentifierList instance + */ + public static create(properties?: flyteidl.admin.INamedEntityIdentifierList): flyteidl.admin.NamedEntityIdentifierList; + + /** + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * @param message NamedEntityIdentifierList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityIdentifierList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityIdentifierList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityIdentifierList; + + /** + * Verifies a NamedEntityIdentifierList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityList. */ + interface INamedEntityList { + + /** NamedEntityList entities */ + entities?: (flyteidl.admin.INamedEntity[]|null); + + /** NamedEntityList token */ + token?: (string|null); + } + + /** Represents a NamedEntityList. */ + class NamedEntityList implements INamedEntityList { + + /** + * Constructs a new NamedEntityList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityList); + + /** NamedEntityList entities. */ + public entities: flyteidl.admin.INamedEntity[]; + + /** NamedEntityList token. */ + public token: string; + + /** + * Creates a new NamedEntityList instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityList instance + */ + public static create(properties?: flyteidl.admin.INamedEntityList): flyteidl.admin.NamedEntityList; + + /** + * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. + * @param message NamedEntityList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityList; + + /** + * Verifies a NamedEntityList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityGetRequest. */ + interface INamedEntityGetRequest { + + /** NamedEntityGetRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntityGetRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + } + + /** Represents a NamedEntityGetRequest. */ + class NamedEntityGetRequest implements INamedEntityGetRequest { + + /** + * Constructs a new NamedEntityGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityGetRequest); + + /** NamedEntityGetRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntityGetRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** + * Creates a new NamedEntityGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityGetRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityGetRequest): flyteidl.admin.NamedEntityGetRequest; + + /** + * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. + * @param message NamedEntityGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityGetRequest; + + /** + * Verifies a NamedEntityGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityUpdateRequest. */ + interface INamedEntityUpdateRequest { + + /** NamedEntityUpdateRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** NamedEntityUpdateRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntityUpdateRequest metadata */ + metadata?: (flyteidl.admin.INamedEntityMetadata|null); + } + + /** Represents a NamedEntityUpdateRequest. */ + class NamedEntityUpdateRequest implements INamedEntityUpdateRequest { + + /** + * Constructs a new NamedEntityUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityUpdateRequest); + + /** NamedEntityUpdateRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** NamedEntityUpdateRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** NamedEntityUpdateRequest metadata. */ + public metadata?: (flyteidl.admin.INamedEntityMetadata|null); + + /** + * Creates a new NamedEntityUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.INamedEntityUpdateRequest): flyteidl.admin.NamedEntityUpdateRequest; + + /** + * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. + * @param message NamedEntityUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityUpdateRequest; + + /** + * Verifies a NamedEntityUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NamedEntityUpdateResponse. */ + interface INamedEntityUpdateResponse { + } + + /** Represents a NamedEntityUpdateResponse. */ + class NamedEntityUpdateResponse implements INamedEntityUpdateResponse { + + /** + * Constructs a new NamedEntityUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INamedEntityUpdateResponse); + + /** + * Creates a new NamedEntityUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NamedEntityUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.INamedEntityUpdateResponse): flyteidl.admin.NamedEntityUpdateResponse; + + /** + * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. + * @param message NamedEntityUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INamedEntityUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamedEntityUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NamedEntityUpdateResponse; + + /** + * Verifies a NamedEntityUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ObjectGetRequest. */ + interface IObjectGetRequest { + + /** ObjectGetRequest id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents an ObjectGetRequest. */ + class ObjectGetRequest implements IObjectGetRequest { + + /** + * Constructs a new ObjectGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IObjectGetRequest); + + /** ObjectGetRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new ObjectGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ObjectGetRequest instance + */ + public static create(properties?: flyteidl.admin.IObjectGetRequest): flyteidl.admin.ObjectGetRequest; + + /** + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. + * @param message ObjectGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IObjectGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ObjectGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ObjectGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ObjectGetRequest; + + /** + * Verifies an ObjectGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ResourceListRequest. */ + interface IResourceListRequest { + + /** ResourceListRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** ResourceListRequest limit */ + limit?: (number|null); + + /** ResourceListRequest token */ + token?: (string|null); + + /** ResourceListRequest filters */ + filters?: (string|null); + + /** ResourceListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a ResourceListRequest. */ + class ResourceListRequest implements IResourceListRequest { + + /** + * Constructs a new ResourceListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IResourceListRequest); + + /** ResourceListRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** ResourceListRequest limit. */ + public limit: number; + + /** ResourceListRequest token. */ + public token: string; + + /** ResourceListRequest filters. */ + public filters: string; + + /** ResourceListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new ResourceListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceListRequest instance + */ + public static create(properties?: flyteidl.admin.IResourceListRequest): flyteidl.admin.ResourceListRequest; + + /** + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * @param message ResourceListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IResourceListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ResourceListRequest; + + /** + * Verifies a ResourceListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EmailNotification. */ + interface IEmailNotification { + + /** EmailNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents an EmailNotification. */ + class EmailNotification implements IEmailNotification { + + /** + * Constructs a new EmailNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEmailNotification); + + /** EmailNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new EmailNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailNotification instance + */ + public static create(properties?: flyteidl.admin.IEmailNotification): flyteidl.admin.EmailNotification; + + /** + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * @param message EmailNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEmailNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailNotification; + + /** + * Verifies an EmailNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PagerDutyNotification. */ + interface IPagerDutyNotification { + + /** PagerDutyNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents a PagerDutyNotification. */ + class PagerDutyNotification implements IPagerDutyNotification { + + /** + * Constructs a new PagerDutyNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPagerDutyNotification); + + /** PagerDutyNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new PagerDutyNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns PagerDutyNotification instance + */ + public static create(properties?: flyteidl.admin.IPagerDutyNotification): flyteidl.admin.PagerDutyNotification; + + /** + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * @param message PagerDutyNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPagerDutyNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PagerDutyNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PagerDutyNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PagerDutyNotification; + + /** + * Verifies a PagerDutyNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SlackNotification. */ + interface ISlackNotification { + + /** SlackNotification recipientsEmail */ + recipientsEmail?: (string[]|null); + } + + /** Represents a SlackNotification. */ + class SlackNotification implements ISlackNotification { + + /** + * Constructs a new SlackNotification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISlackNotification); + + /** SlackNotification recipientsEmail. */ + public recipientsEmail: string[]; + + /** + * Creates a new SlackNotification instance using the specified properties. + * @param [properties] Properties to set + * @returns SlackNotification instance + */ + public static create(properties?: flyteidl.admin.ISlackNotification): flyteidl.admin.SlackNotification; + + /** + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * @param message SlackNotification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISlackNotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SlackNotification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SlackNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SlackNotification; + + /** + * Verifies a SlackNotification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Notification. */ + interface INotification { + + /** Notification phases */ + phases?: (flyteidl.core.WorkflowExecution.Phase[]|null); + + /** Notification email */ + email?: (flyteidl.admin.IEmailNotification|null); + + /** Notification pagerDuty */ + pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); + + /** Notification slack */ + slack?: (flyteidl.admin.ISlackNotification|null); + } + + /** Represents a Notification. */ + class Notification implements INotification { + + /** + * Constructs a new Notification. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INotification); + + /** Notification phases. */ + public phases: flyteidl.core.WorkflowExecution.Phase[]; + + /** Notification email. */ + public email?: (flyteidl.admin.IEmailNotification|null); + + /** Notification pagerDuty. */ + public pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); + + /** Notification slack. */ + public slack?: (flyteidl.admin.ISlackNotification|null); + + /** Notification type. */ + public type?: ("email"|"pagerDuty"|"slack"); + + /** + * Creates a new Notification instance using the specified properties. + * @param [properties] Properties to set + * @returns Notification instance + */ + public static create(properties?: flyteidl.admin.INotification): flyteidl.admin.Notification; + + /** + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * @param message Notification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Notification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Notification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Notification; + + /** + * Verifies a Notification message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UrlBlob. */ + interface IUrlBlob { + + /** UrlBlob url */ + url?: (string|null); + + /** UrlBlob bytes */ + bytes?: (Long|null); + } + + /** Represents an UrlBlob. */ + class UrlBlob implements IUrlBlob { + + /** + * Constructs a new UrlBlob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IUrlBlob); + + /** UrlBlob url. */ + public url: string; + + /** UrlBlob bytes. */ + public bytes: Long; + + /** + * Creates a new UrlBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlBlob instance + */ + public static create(properties?: flyteidl.admin.IUrlBlob): flyteidl.admin.UrlBlob; + + /** + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * @param message UrlBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IUrlBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.UrlBlob; + + /** + * Verifies an UrlBlob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Labels. */ + interface ILabels { + + /** Labels values */ + values?: ({ [k: string]: string }|null); + } + + /** Represents a Labels. */ + class Labels implements ILabels { + + /** + * Constructs a new Labels. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILabels); + + /** Labels values. */ + public values: { [k: string]: string }; + + /** + * Creates a new Labels instance using the specified properties. + * @param [properties] Properties to set + * @returns Labels instance + */ + public static create(properties?: flyteidl.admin.ILabels): flyteidl.admin.Labels; + + /** + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * @param message Labels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Labels message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Labels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Labels; + + /** + * Verifies a Labels message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Annotations. */ + interface IAnnotations { + + /** Annotations values */ + values?: ({ [k: string]: string }|null); + } + + /** Represents an Annotations. */ + class Annotations implements IAnnotations { + + /** + * Constructs a new Annotations. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAnnotations); + + /** Annotations values. */ + public values: { [k: string]: string }; + + /** + * Creates a new Annotations instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotations instance + */ + public static create(properties?: flyteidl.admin.IAnnotations): flyteidl.admin.Annotations; + + /** + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * @param message Annotations message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotations message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Annotations; + + /** + * Verifies an Annotations message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Envs. */ + interface IEnvs { + + /** Envs values */ + values?: (flyteidl.core.IKeyValuePair[]|null); + } + + /** Represents an Envs. */ + class Envs implements IEnvs { + + /** + * Constructs a new Envs. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEnvs); + + /** Envs values. */ + public values: flyteidl.core.IKeyValuePair[]; + + /** + * Creates a new Envs instance using the specified properties. + * @param [properties] Properties to set + * @returns Envs instance + */ + public static create(properties?: flyteidl.admin.IEnvs): flyteidl.admin.Envs; + + /** + * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. + * @param message Envs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEnvs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Envs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Envs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Envs; + + /** + * Verifies an Envs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an AuthRole. */ + interface IAuthRole { + + /** AuthRole assumableIamRole */ + assumableIamRole?: (string|null); + + /** AuthRole kubernetesServiceAccount */ + kubernetesServiceAccount?: (string|null); + } + + /** Represents an AuthRole. */ + class AuthRole implements IAuthRole { + + /** + * Constructs a new AuthRole. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAuthRole); + + /** AuthRole assumableIamRole. */ + public assumableIamRole: string; + + /** AuthRole kubernetesServiceAccount. */ + public kubernetesServiceAccount: string; + + /** + * Creates a new AuthRole instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthRole instance + */ + public static create(properties?: flyteidl.admin.IAuthRole): flyteidl.admin.AuthRole; + + /** + * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. + * @param message AuthRole message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAuthRole, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AuthRole message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuthRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AuthRole; + + /** + * Verifies an AuthRole message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a RawOutputDataConfig. */ + interface IRawOutputDataConfig { + + /** RawOutputDataConfig outputLocationPrefix */ + outputLocationPrefix?: (string|null); + } + + /** Represents a RawOutputDataConfig. */ + class RawOutputDataConfig implements IRawOutputDataConfig { + + /** + * Constructs a new RawOutputDataConfig. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IRawOutputDataConfig); + + /** RawOutputDataConfig outputLocationPrefix. */ + public outputLocationPrefix: string; + + /** + * Creates a new RawOutputDataConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RawOutputDataConfig instance + */ + public static create(properties?: flyteidl.admin.IRawOutputDataConfig): flyteidl.admin.RawOutputDataConfig; + + /** + * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. + * @param message RawOutputDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IRawOutputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RawOutputDataConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RawOutputDataConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.RawOutputDataConfig; + + /** + * Verifies a RawOutputDataConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FlyteURLs. */ + interface IFlyteURLs { + + /** FlyteURLs inputs */ + inputs?: (string|null); + + /** FlyteURLs outputs */ + outputs?: (string|null); + + /** FlyteURLs deck */ + deck?: (string|null); + } + + /** Represents a FlyteURLs. */ + class FlyteURLs implements IFlyteURLs { + + /** + * Constructs a new FlyteURLs. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IFlyteURLs); + + /** FlyteURLs inputs. */ + public inputs: string; + + /** FlyteURLs outputs. */ + public outputs: string; + + /** FlyteURLs deck. */ + public deck: string; + + /** + * Creates a new FlyteURLs instance using the specified properties. + * @param [properties] Properties to set + * @returns FlyteURLs instance + */ + public static create(properties?: flyteidl.admin.IFlyteURLs): flyteidl.admin.FlyteURLs; + + /** + * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. + * @param message FlyteURLs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IFlyteURLs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FlyteURLs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FlyteURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FlyteURLs; + + /** + * Verifies a FlyteURLs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptionEntity. */ + interface IDescriptionEntity { + + /** DescriptionEntity id */ + id?: (flyteidl.core.IIdentifier|null); + + /** DescriptionEntity shortDescription */ + shortDescription?: (string|null); + + /** DescriptionEntity longDescription */ + longDescription?: (flyteidl.admin.IDescription|null); + + /** DescriptionEntity sourceCode */ + sourceCode?: (flyteidl.admin.ISourceCode|null); + + /** DescriptionEntity tags */ + tags?: (string[]|null); + } + + /** Represents a DescriptionEntity. */ + class DescriptionEntity implements IDescriptionEntity { + + /** + * Constructs a new DescriptionEntity. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescriptionEntity); + + /** DescriptionEntity id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** DescriptionEntity shortDescription. */ + public shortDescription: string; + + /** DescriptionEntity longDescription. */ + public longDescription?: (flyteidl.admin.IDescription|null); + + /** DescriptionEntity sourceCode. */ + public sourceCode?: (flyteidl.admin.ISourceCode|null); + + /** DescriptionEntity tags. */ + public tags: string[]; + + /** + * Creates a new DescriptionEntity instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptionEntity instance + */ + public static create(properties?: flyteidl.admin.IDescriptionEntity): flyteidl.admin.DescriptionEntity; + + /** + * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. + * @param message DescriptionEntity message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescriptionEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptionEntity message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptionEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntity; + + /** + * Verifies a DescriptionEntity message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** DescriptionFormat enum. */ + enum DescriptionFormat { + DESCRIPTION_FORMAT_UNKNOWN = 0, + DESCRIPTION_FORMAT_MARKDOWN = 1, + DESCRIPTION_FORMAT_HTML = 2, + DESCRIPTION_FORMAT_RST = 3 + } + + /** Properties of a Description. */ + interface IDescription { + + /** Description value */ + value?: (string|null); + + /** Description uri */ + uri?: (string|null); + + /** Description format */ + format?: (flyteidl.admin.DescriptionFormat|null); + + /** Description iconLink */ + iconLink?: (string|null); + } + + /** Represents a Description. */ + class Description implements IDescription { + + /** + * Constructs a new Description. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescription); + + /** Description value. */ + public value: string; + + /** Description uri. */ + public uri: string; + + /** Description format. */ + public format: flyteidl.admin.DescriptionFormat; + + /** Description iconLink. */ + public iconLink: string; + + /** Description content. */ + public content?: ("value"|"uri"); + + /** + * Creates a new Description instance using the specified properties. + * @param [properties] Properties to set + * @returns Description instance + */ + public static create(properties?: flyteidl.admin.IDescription): flyteidl.admin.Description; + + /** + * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. + * @param message Description message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescription, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Description message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Description + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Description; + + /** + * Verifies a Description message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SourceCode. */ + interface ISourceCode { + + /** SourceCode link */ + link?: (string|null); + } + + /** Represents a SourceCode. */ + class SourceCode implements ISourceCode { + + /** + * Constructs a new SourceCode. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISourceCode); + + /** SourceCode link. */ + public link: string; + + /** + * Creates a new SourceCode instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCode instance + */ + public static create(properties?: flyteidl.admin.ISourceCode): flyteidl.admin.SourceCode; + + /** + * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. + * @param message SourceCode message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISourceCode, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCode message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SourceCode; + + /** + * Verifies a SourceCode message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptionEntityList. */ + interface IDescriptionEntityList { + + /** DescriptionEntityList descriptionEntities */ + descriptionEntities?: (flyteidl.admin.IDescriptionEntity[]|null); + + /** DescriptionEntityList token */ + token?: (string|null); + } + + /** Represents a DescriptionEntityList. */ + class DescriptionEntityList implements IDescriptionEntityList { + + /** + * Constructs a new DescriptionEntityList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescriptionEntityList); + + /** DescriptionEntityList descriptionEntities. */ + public descriptionEntities: flyteidl.admin.IDescriptionEntity[]; + + /** DescriptionEntityList token. */ + public token: string; + + /** + * Creates a new DescriptionEntityList instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptionEntityList instance + */ + public static create(properties?: flyteidl.admin.IDescriptionEntityList): flyteidl.admin.DescriptionEntityList; + + /** + * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. + * @param message DescriptionEntityList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescriptionEntityList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptionEntityList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptionEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntityList; + + /** + * Verifies a DescriptionEntityList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptionEntityListRequest. */ + interface IDescriptionEntityListRequest { + + /** DescriptionEntityListRequest resourceType */ + resourceType?: (flyteidl.core.ResourceType|null); + + /** DescriptionEntityListRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** DescriptionEntityListRequest limit */ + limit?: (number|null); + + /** DescriptionEntityListRequest token */ + token?: (string|null); + + /** DescriptionEntityListRequest filters */ + filters?: (string|null); + + /** DescriptionEntityListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a DescriptionEntityListRequest. */ + class DescriptionEntityListRequest implements IDescriptionEntityListRequest { + + /** + * Constructs a new DescriptionEntityListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDescriptionEntityListRequest); + + /** DescriptionEntityListRequest resourceType. */ + public resourceType: flyteidl.core.ResourceType; + + /** DescriptionEntityListRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** DescriptionEntityListRequest limit. */ + public limit: number; + + /** DescriptionEntityListRequest token. */ + public token: string; + + /** DescriptionEntityListRequest filters. */ + public filters: string; + + /** DescriptionEntityListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new DescriptionEntityListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptionEntityListRequest instance + */ + public static create(properties?: flyteidl.admin.IDescriptionEntityListRequest): flyteidl.admin.DescriptionEntityListRequest; + + /** + * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. + * @param message DescriptionEntityListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDescriptionEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptionEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DescriptionEntityListRequest; + + /** + * Verifies a DescriptionEntityListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventErrorAlreadyInTerminalState. */ + interface IEventErrorAlreadyInTerminalState { + + /** EventErrorAlreadyInTerminalState currentPhase */ + currentPhase?: (string|null); + } + + /** Represents an EventErrorAlreadyInTerminalState. */ + class EventErrorAlreadyInTerminalState implements IEventErrorAlreadyInTerminalState { + + /** + * Constructs a new EventErrorAlreadyInTerminalState. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState); + + /** EventErrorAlreadyInTerminalState currentPhase. */ + public currentPhase: string; + + /** + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * @param [properties] Properties to set + * @returns EventErrorAlreadyInTerminalState instance + */ + public static create(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState): flyteidl.admin.EventErrorAlreadyInTerminalState; + + /** + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * @param message EventErrorAlreadyInTerminalState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventErrorAlreadyInTerminalState, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventErrorAlreadyInTerminalState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorAlreadyInTerminalState; + + /** + * Verifies an EventErrorAlreadyInTerminalState message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventErrorIncompatibleCluster. */ + interface IEventErrorIncompatibleCluster { + + /** EventErrorIncompatibleCluster cluster */ + cluster?: (string|null); + } + + /** Represents an EventErrorIncompatibleCluster. */ + class EventErrorIncompatibleCluster implements IEventErrorIncompatibleCluster { + + /** + * Constructs a new EventErrorIncompatibleCluster. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventErrorIncompatibleCluster); + + /** EventErrorIncompatibleCluster cluster. */ + public cluster: string; + + /** + * Creates a new EventErrorIncompatibleCluster instance using the specified properties. + * @param [properties] Properties to set + * @returns EventErrorIncompatibleCluster instance + */ + public static create(properties?: flyteidl.admin.IEventErrorIncompatibleCluster): flyteidl.admin.EventErrorIncompatibleCluster; + + /** + * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. + * @param message EventErrorIncompatibleCluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventErrorIncompatibleCluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventErrorIncompatibleCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventErrorIncompatibleCluster; + + /** + * Verifies an EventErrorIncompatibleCluster message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EventFailureReason. */ + interface IEventFailureReason { + + /** EventFailureReason alreadyInTerminalState */ + alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); + + /** EventFailureReason incompatibleCluster */ + incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); + } + + /** Represents an EventFailureReason. */ + class EventFailureReason implements IEventFailureReason { + + /** + * Constructs a new EventFailureReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEventFailureReason); + + /** EventFailureReason alreadyInTerminalState. */ + public alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); + + /** EventFailureReason incompatibleCluster. */ + public incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); + + /** EventFailureReason reason. */ + public reason?: ("alreadyInTerminalState"|"incompatibleCluster"); + + /** + * Creates a new EventFailureReason instance using the specified properties. + * @param [properties] Properties to set + * @returns EventFailureReason instance + */ + public static create(properties?: flyteidl.admin.IEventFailureReason): flyteidl.admin.EventFailureReason; + + /** + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * @param message EventFailureReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEventFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EventFailureReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EventFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EventFailureReason; + + /** + * Verifies an EventFailureReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEventRequest. */ + interface IWorkflowExecutionEventRequest { + + /** WorkflowExecutionEventRequest requestId */ + requestId?: (string|null); + + /** WorkflowExecutionEventRequest event */ + event?: (flyteidl.event.IWorkflowExecutionEvent|null); + } + + /** Represents a WorkflowExecutionEventRequest. */ + class WorkflowExecutionEventRequest implements IWorkflowExecutionEventRequest { + + /** + * Constructs a new WorkflowExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionEventRequest); + + /** WorkflowExecutionEventRequest requestId. */ + public requestId: string; + + /** WorkflowExecutionEventRequest event. */ + public event?: (flyteidl.event.IWorkflowExecutionEvent|null); + + /** + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionEventRequest): flyteidl.admin.WorkflowExecutionEventRequest; + + /** + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. + * @param message WorkflowExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventRequest; + + /** + * Verifies a WorkflowExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionEventResponse. */ + interface IWorkflowExecutionEventResponse { + } + + /** Represents a WorkflowExecutionEventResponse. */ + class WorkflowExecutionEventResponse implements IWorkflowExecutionEventResponse { + + /** + * Constructs a new WorkflowExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionEventResponse); + + /** + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionEventResponse): flyteidl.admin.WorkflowExecutionEventResponse; + + /** + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * @param message WorkflowExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionEventResponse; + + /** + * Verifies a WorkflowExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEventRequest. */ + interface INodeExecutionEventRequest { + + /** NodeExecutionEventRequest requestId */ + requestId?: (string|null); + + /** NodeExecutionEventRequest event */ + event?: (flyteidl.event.INodeExecutionEvent|null); + } + + /** Represents a NodeExecutionEventRequest. */ + class NodeExecutionEventRequest implements INodeExecutionEventRequest { + + /** + * Constructs a new NodeExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionEventRequest); + + /** NodeExecutionEventRequest requestId. */ + public requestId: string; + + /** NodeExecutionEventRequest event. */ + public event?: (flyteidl.event.INodeExecutionEvent|null); + + /** + * Creates a new NodeExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionEventRequest): flyteidl.admin.NodeExecutionEventRequest; + + /** + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * @param message NodeExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventRequest; + + /** + * Verifies a NodeExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionEventResponse. */ + interface INodeExecutionEventResponse { + } + + /** Represents a NodeExecutionEventResponse. */ + class NodeExecutionEventResponse implements INodeExecutionEventResponse { + + /** + * Constructs a new NodeExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionEventResponse); + + /** + * Creates a new NodeExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionEventResponse): flyteidl.admin.NodeExecutionEventResponse; + + /** + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * @param message NodeExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionEventResponse; + + /** + * Verifies a NodeExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEventRequest. */ + interface ITaskExecutionEventRequest { + + /** TaskExecutionEventRequest requestId */ + requestId?: (string|null); + + /** TaskExecutionEventRequest event */ + event?: (flyteidl.event.ITaskExecutionEvent|null); + } + + /** Represents a TaskExecutionEventRequest. */ + class TaskExecutionEventRequest implements ITaskExecutionEventRequest { + + /** + * Constructs a new TaskExecutionEventRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionEventRequest); + + /** TaskExecutionEventRequest requestId. */ + public requestId: string; + + /** TaskExecutionEventRequest event. */ + public event?: (flyteidl.event.ITaskExecutionEvent|null); + + /** + * Creates a new TaskExecutionEventRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEventRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionEventRequest): flyteidl.admin.TaskExecutionEventRequest; + + /** + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * @param message TaskExecutionEventRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventRequest; + + /** + * Verifies a TaskExecutionEventRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionEventResponse. */ + interface ITaskExecutionEventResponse { + } + + /** Represents a TaskExecutionEventResponse. */ + class TaskExecutionEventResponse implements ITaskExecutionEventResponse { + + /** + * Constructs a new TaskExecutionEventResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionEventResponse); + + /** + * Creates a new TaskExecutionEventResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionEventResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionEventResponse): flyteidl.admin.TaskExecutionEventResponse; + + /** + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * @param message TaskExecutionEventResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionEventResponse; + + /** + * Verifies a TaskExecutionEventResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionCreateRequest. */ + interface IExecutionCreateRequest { + + /** ExecutionCreateRequest project */ + project?: (string|null); + + /** ExecutionCreateRequest domain */ + domain?: (string|null); + + /** ExecutionCreateRequest name */ + name?: (string|null); + + /** ExecutionCreateRequest spec */ + spec?: (flyteidl.admin.IExecutionSpec|null); + + /** ExecutionCreateRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionCreateRequest org */ + org?: (string|null); + } + + /** Represents an ExecutionCreateRequest. */ + class ExecutionCreateRequest implements IExecutionCreateRequest { + + /** + * Constructs a new ExecutionCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionCreateRequest); + + /** ExecutionCreateRequest project. */ + public project: string; + + /** ExecutionCreateRequest domain. */ + public domain: string; + + /** ExecutionCreateRequest name. */ + public name: string; + + /** ExecutionCreateRequest spec. */ + public spec?: (flyteidl.admin.IExecutionSpec|null); + + /** ExecutionCreateRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionCreateRequest org. */ + public org: string; + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionCreateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionCreateRequest): flyteidl.admin.ExecutionCreateRequest; + + /** + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * @param message ExecutionCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateRequest; + + /** + * Verifies an ExecutionCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionRelaunchRequest. */ + interface IExecutionRelaunchRequest { + + /** ExecutionRelaunchRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRelaunchRequest name */ + name?: (string|null); + + /** ExecutionRelaunchRequest overwriteCache */ + overwriteCache?: (boolean|null); + } + + /** Represents an ExecutionRelaunchRequest. */ + class ExecutionRelaunchRequest implements IExecutionRelaunchRequest { + + /** + * Constructs a new ExecutionRelaunchRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionRelaunchRequest); + + /** ExecutionRelaunchRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRelaunchRequest name. */ + public name: string; + + /** ExecutionRelaunchRequest overwriteCache. */ + public overwriteCache: boolean; + + /** + * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionRelaunchRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionRelaunchRequest): flyteidl.admin.ExecutionRelaunchRequest; + + /** + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * @param message ExecutionRelaunchRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionRelaunchRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionRelaunchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRelaunchRequest; + + /** + * Verifies an ExecutionRelaunchRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionRecoverRequest. */ + interface IExecutionRecoverRequest { + + /** ExecutionRecoverRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRecoverRequest name */ + name?: (string|null); + + /** ExecutionRecoverRequest metadata */ + metadata?: (flyteidl.admin.IExecutionMetadata|null); + } + + /** Represents an ExecutionRecoverRequest. */ + class ExecutionRecoverRequest implements IExecutionRecoverRequest { + + /** + * Constructs a new ExecutionRecoverRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionRecoverRequest); + + /** ExecutionRecoverRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionRecoverRequest name. */ + public name: string; + + /** ExecutionRecoverRequest metadata. */ + public metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** + * Creates a new ExecutionRecoverRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionRecoverRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionRecoverRequest): flyteidl.admin.ExecutionRecoverRequest; + + /** + * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. + * @param message ExecutionRecoverRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionRecoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionRecoverRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionRecoverRequest; + + /** + * Verifies an ExecutionRecoverRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionCreateResponse. */ + interface IExecutionCreateResponse { + + /** ExecutionCreateResponse id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents an ExecutionCreateResponse. */ + class ExecutionCreateResponse implements IExecutionCreateResponse { + + /** + * Constructs a new ExecutionCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionCreateResponse); + + /** ExecutionCreateResponse id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new ExecutionCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionCreateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionCreateResponse): flyteidl.admin.ExecutionCreateResponse; + + /** + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * @param message ExecutionCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionCreateResponse; + + /** + * Verifies an ExecutionCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetRequest. */ + interface IWorkflowExecutionGetRequest { + + /** WorkflowExecutionGetRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowExecutionGetRequest. */ + class WorkflowExecutionGetRequest implements IWorkflowExecutionGetRequest { + + /** + * Constructs a new WorkflowExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetRequest); + + /** WorkflowExecutionGetRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetRequest): flyteidl.admin.WorkflowExecutionGetRequest; + + /** + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * @param message WorkflowExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetRequest; + + /** + * Verifies a WorkflowExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Execution. */ + interface IExecution { + + /** Execution id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Execution spec */ + spec?: (flyteidl.admin.IExecutionSpec|null); + + /** Execution closure */ + closure?: (flyteidl.admin.IExecutionClosure|null); + } + + /** Represents an Execution. */ + class Execution implements IExecution { + + /** + * Constructs a new Execution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecution); + + /** Execution id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** Execution spec. */ + public spec?: (flyteidl.admin.IExecutionSpec|null); + + /** Execution closure. */ + public closure?: (flyteidl.admin.IExecutionClosure|null); + + /** + * Creates a new Execution instance using the specified properties. + * @param [properties] Properties to set + * @returns Execution instance + */ + public static create(properties?: flyteidl.admin.IExecution): flyteidl.admin.Execution; + + /** + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Execution; + + /** + * Verifies an Execution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionList. */ + interface IExecutionList { + + /** ExecutionList executions */ + executions?: (flyteidl.admin.IExecution[]|null); + + /** ExecutionList token */ + token?: (string|null); + } + + /** Represents an ExecutionList. */ + class ExecutionList implements IExecutionList { + + /** + * Constructs a new ExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionList); + + /** ExecutionList executions. */ + public executions: flyteidl.admin.IExecution[]; + + /** ExecutionList token. */ + public token: string; + + /** + * Creates a new ExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionList instance + */ + public static create(properties?: flyteidl.admin.IExecutionList): flyteidl.admin.ExecutionList; + + /** + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * @param message ExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionList; + + /** + * Verifies an ExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LiteralMapBlob. */ + interface ILiteralMapBlob { + + /** LiteralMapBlob values */ + values?: (flyteidl.core.ILiteralMap|null); + + /** LiteralMapBlob uri */ + uri?: (string|null); + } + + /** Represents a LiteralMapBlob. */ + class LiteralMapBlob implements ILiteralMapBlob { + + /** + * Constructs a new LiteralMapBlob. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILiteralMapBlob); + + /** LiteralMapBlob values. */ + public values?: (flyteidl.core.ILiteralMap|null); + + /** LiteralMapBlob uri. */ + public uri: string; + + /** LiteralMapBlob data. */ + public data?: ("values"|"uri"); + + /** + * Creates a new LiteralMapBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns LiteralMapBlob instance + */ + public static create(properties?: flyteidl.admin.ILiteralMapBlob): flyteidl.admin.LiteralMapBlob; + + /** + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * @param message LiteralMapBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILiteralMapBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LiteralMapBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LiteralMapBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LiteralMapBlob; + + /** + * Verifies a LiteralMapBlob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an AbortMetadata. */ + interface IAbortMetadata { + + /** AbortMetadata cause */ + cause?: (string|null); + + /** AbortMetadata principal */ + principal?: (string|null); + } + + /** Represents an AbortMetadata. */ + class AbortMetadata implements IAbortMetadata { + + /** + * Constructs a new AbortMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAbortMetadata); + + /** AbortMetadata cause. */ + public cause: string; + + /** AbortMetadata principal. */ + public principal: string; + + /** + * Creates a new AbortMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AbortMetadata instance + */ + public static create(properties?: flyteidl.admin.IAbortMetadata): flyteidl.admin.AbortMetadata; + + /** + * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. + * @param message AbortMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAbortMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AbortMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AbortMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.AbortMetadata; + + /** + * Verifies an AbortMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionClosure. */ + interface IExecutionClosure { + + /** ExecutionClosure outputs */ + outputs?: (flyteidl.admin.ILiteralMapBlob|null); + + /** ExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** ExecutionClosure abortCause */ + abortCause?: (string|null); + + /** ExecutionClosure abortMetadata */ + abortMetadata?: (flyteidl.admin.IAbortMetadata|null); + + /** ExecutionClosure outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure computedInputs */ + computedInputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure phase */ + phase?: (flyteidl.core.WorkflowExecution.Phase|null); + + /** ExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** ExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + + /** ExecutionClosure workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + + /** ExecutionClosure stateChangeDetails */ + stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); + } + + /** Represents an ExecutionClosure. */ + class ExecutionClosure implements IExecutionClosure { + + /** + * Constructs a new ExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionClosure); + + /** ExecutionClosure outputs. */ + public outputs?: (flyteidl.admin.ILiteralMapBlob|null); + + /** ExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** ExecutionClosure abortCause. */ + public abortCause: string; + + /** ExecutionClosure abortMetadata. */ + public abortMetadata?: (flyteidl.admin.IAbortMetadata|null); + + /** ExecutionClosure outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure computedInputs. */ + public computedInputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionClosure phase. */ + public phase: flyteidl.core.WorkflowExecution.Phase; + + /** ExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** ExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionClosure notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** ExecutionClosure workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** ExecutionClosure stateChangeDetails. */ + public stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); + + /** ExecutionClosure outputResult. */ + public outputResult?: ("outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"); + + /** + * Creates a new ExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.IExecutionClosure): flyteidl.admin.ExecutionClosure; + + /** + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * @param message ExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClosure; + + /** + * Verifies an ExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SystemMetadata. */ + interface ISystemMetadata { + + /** SystemMetadata executionCluster */ + executionCluster?: (string|null); + + /** SystemMetadata namespace */ + namespace?: (string|null); + } + + /** Represents a SystemMetadata. */ + class SystemMetadata implements ISystemMetadata { + + /** + * Constructs a new SystemMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISystemMetadata); + + /** SystemMetadata executionCluster. */ + public executionCluster: string; + + /** SystemMetadata namespace. */ + public namespace: string; + + /** + * Creates a new SystemMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns SystemMetadata instance + */ + public static create(properties?: flyteidl.admin.ISystemMetadata): flyteidl.admin.SystemMetadata; + + /** + * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. + * @param message SystemMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISystemMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SystemMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SystemMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SystemMetadata; + + /** + * Verifies a SystemMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionMetadata. */ + interface IExecutionMetadata { + + /** ExecutionMetadata mode */ + mode?: (flyteidl.admin.ExecutionMetadata.ExecutionMode|null); + + /** ExecutionMetadata principal */ + principal?: (string|null); + + /** ExecutionMetadata nesting */ + nesting?: (number|null); + + /** ExecutionMetadata scheduledAt */ + scheduledAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionMetadata parentNodeExecution */ + parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** ExecutionMetadata referenceExecution */ + referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionMetadata systemMetadata */ + systemMetadata?: (flyteidl.admin.ISystemMetadata|null); + + /** ExecutionMetadata artifactIds */ + artifactIds?: (flyteidl.core.IArtifactID[]|null); + } + + /** Represents an ExecutionMetadata. */ + class ExecutionMetadata implements IExecutionMetadata { + + /** + * Constructs a new ExecutionMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionMetadata); + + /** ExecutionMetadata mode. */ + public mode: flyteidl.admin.ExecutionMetadata.ExecutionMode; + + /** ExecutionMetadata principal. */ + public principal: string; + + /** ExecutionMetadata nesting. */ + public nesting: number; + + /** ExecutionMetadata scheduledAt. */ + public scheduledAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionMetadata parentNodeExecution. */ + public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** ExecutionMetadata referenceExecution. */ + public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionMetadata systemMetadata. */ + public systemMetadata?: (flyteidl.admin.ISystemMetadata|null); + + /** ExecutionMetadata artifactIds. */ + public artifactIds: flyteidl.core.IArtifactID[]; + + /** + * Creates a new ExecutionMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionMetadata instance + */ + public static create(properties?: flyteidl.admin.IExecutionMetadata): flyteidl.admin.ExecutionMetadata; + + /** + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * @param message ExecutionMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionMetadata; + + /** + * Verifies an ExecutionMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace ExecutionMetadata { + + /** ExecutionMode enum. */ + enum ExecutionMode { + MANUAL = 0, + SCHEDULED = 1, + SYSTEM = 2, + RELAUNCH = 3, + CHILD_WORKFLOW = 4, + RECOVERED = 5 + } + } + + /** Properties of a NotificationList. */ + interface INotificationList { + + /** NotificationList notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + } + + /** Represents a NotificationList. */ + class NotificationList implements INotificationList { + + /** + * Constructs a new NotificationList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INotificationList); + + /** NotificationList notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** + * Creates a new NotificationList instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationList instance + */ + public static create(properties?: flyteidl.admin.INotificationList): flyteidl.admin.NotificationList; + + /** + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * @param message NotificationList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INotificationList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NotificationList; + + /** + * Verifies a NotificationList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionSpec. */ + interface IExecutionSpec { + + /** ExecutionSpec launchPlan */ + launchPlan?: (flyteidl.core.IIdentifier|null); + + /** ExecutionSpec inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionSpec metadata */ + metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** ExecutionSpec notifications */ + notifications?: (flyteidl.admin.INotificationList|null); + + /** ExecutionSpec disableAll */ + disableAll?: (boolean|null); + + /** ExecutionSpec labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** ExecutionSpec annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** ExecutionSpec securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** ExecutionSpec authRole */ + authRole?: (flyteidl.admin.IAuthRole|null); + + /** ExecutionSpec qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** ExecutionSpec maxParallelism */ + maxParallelism?: (number|null); + + /** ExecutionSpec rawOutputDataConfig */ + rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** ExecutionSpec clusterAssignment */ + clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + + /** ExecutionSpec interruptible */ + interruptible?: (google.protobuf.IBoolValue|null); + + /** ExecutionSpec overwriteCache */ + overwriteCache?: (boolean|null); + + /** ExecutionSpec envs */ + envs?: (flyteidl.admin.IEnvs|null); + + /** ExecutionSpec tags */ + tags?: (string[]|null); + } + + /** Represents an ExecutionSpec. */ + class ExecutionSpec implements IExecutionSpec { + + /** + * Constructs a new ExecutionSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionSpec); + + /** ExecutionSpec launchPlan. */ + public launchPlan?: (flyteidl.core.IIdentifier|null); + + /** ExecutionSpec inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** ExecutionSpec metadata. */ + public metadata?: (flyteidl.admin.IExecutionMetadata|null); + + /** ExecutionSpec notifications. */ + public notifications?: (flyteidl.admin.INotificationList|null); + + /** ExecutionSpec disableAll. */ + public disableAll: boolean; + + /** ExecutionSpec labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** ExecutionSpec annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** ExecutionSpec securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** ExecutionSpec authRole. */ + public authRole?: (flyteidl.admin.IAuthRole|null); + + /** ExecutionSpec qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** ExecutionSpec maxParallelism. */ + public maxParallelism: number; + + /** ExecutionSpec rawOutputDataConfig. */ + public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** ExecutionSpec clusterAssignment. */ + public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + + /** ExecutionSpec interruptible. */ + public interruptible?: (google.protobuf.IBoolValue|null); + + /** ExecutionSpec overwriteCache. */ + public overwriteCache: boolean; + + /** ExecutionSpec envs. */ + public envs?: (flyteidl.admin.IEnvs|null); + + /** ExecutionSpec tags. */ + public tags: string[]; + + /** ExecutionSpec notificationOverrides. */ + public notificationOverrides?: ("notifications"|"disableAll"); + + /** + * Creates a new ExecutionSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionSpec instance + */ + public static create(properties?: flyteidl.admin.IExecutionSpec): flyteidl.admin.ExecutionSpec; + + /** + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * @param message ExecutionSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionSpec; + + /** + * Verifies an ExecutionSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionTerminateRequest. */ + interface IExecutionTerminateRequest { + + /** ExecutionTerminateRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionTerminateRequest cause */ + cause?: (string|null); + } + + /** Represents an ExecutionTerminateRequest. */ + class ExecutionTerminateRequest implements IExecutionTerminateRequest { + + /** + * Constructs a new ExecutionTerminateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionTerminateRequest); + + /** ExecutionTerminateRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionTerminateRequest cause. */ + public cause: string; + + /** + * Creates a new ExecutionTerminateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionTerminateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionTerminateRequest): flyteidl.admin.ExecutionTerminateRequest; + + /** + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * @param message ExecutionTerminateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionTerminateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionTerminateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateRequest; + + /** + * Verifies an ExecutionTerminateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionTerminateResponse. */ + interface IExecutionTerminateResponse { + } + + /** Represents an ExecutionTerminateResponse. */ + class ExecutionTerminateResponse implements IExecutionTerminateResponse { + + /** + * Constructs a new ExecutionTerminateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionTerminateResponse); + + /** + * Creates a new ExecutionTerminateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionTerminateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionTerminateResponse): flyteidl.admin.ExecutionTerminateResponse; + + /** + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. + * @param message ExecutionTerminateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionTerminateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionTerminateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionTerminateResponse; + + /** + * Verifies an ExecutionTerminateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetDataRequest. */ + interface IWorkflowExecutionGetDataRequest { + + /** WorkflowExecutionGetDataRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowExecutionGetDataRequest. */ + class WorkflowExecutionGetDataRequest implements IWorkflowExecutionGetDataRequest { + + /** + * Constructs a new WorkflowExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest); + + /** WorkflowExecutionGetDataRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest): flyteidl.admin.WorkflowExecutionGetDataRequest; + + /** + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * @param message WorkflowExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataRequest; + + /** + * Verifies a WorkflowExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetDataResponse. */ + interface IWorkflowExecutionGetDataResponse { + + /** WorkflowExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse fullInputs */ + fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** WorkflowExecutionGetDataResponse fullOutputs */ + fullOutputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a WorkflowExecutionGetDataResponse. */ + class WorkflowExecutionGetDataResponse implements IWorkflowExecutionGetDataResponse { + + /** + * Constructs a new WorkflowExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse); + + /** WorkflowExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** WorkflowExecutionGetDataResponse fullInputs. */ + public fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** WorkflowExecutionGetDataResponse fullOutputs. */ + public fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse): flyteidl.admin.WorkflowExecutionGetDataResponse; + + /** + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * @param message WorkflowExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetDataResponse; + + /** + * Verifies a WorkflowExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** ExecutionState enum. */ + enum ExecutionState { + EXECUTION_ACTIVE = 0, + EXECUTION_ARCHIVED = 1 + } + + /** Properties of an ExecutionUpdateRequest. */ + interface IExecutionUpdateRequest { + + /** ExecutionUpdateRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionUpdateRequest state */ + state?: (flyteidl.admin.ExecutionState|null); + } + + /** Represents an ExecutionUpdateRequest. */ + class ExecutionUpdateRequest implements IExecutionUpdateRequest { + + /** + * Constructs a new ExecutionUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionUpdateRequest); + + /** ExecutionUpdateRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** ExecutionUpdateRequest state. */ + public state: flyteidl.admin.ExecutionState; + + /** + * Creates a new ExecutionUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IExecutionUpdateRequest): flyteidl.admin.ExecutionUpdateRequest; + + /** + * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. + * @param message ExecutionUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateRequest; + + /** + * Verifies an ExecutionUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionStateChangeDetails. */ + interface IExecutionStateChangeDetails { + + /** ExecutionStateChangeDetails state */ + state?: (flyteidl.admin.ExecutionState|null); + + /** ExecutionStateChangeDetails occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionStateChangeDetails principal */ + principal?: (string|null); + } + + /** Represents an ExecutionStateChangeDetails. */ + class ExecutionStateChangeDetails implements IExecutionStateChangeDetails { + + /** + * Constructs a new ExecutionStateChangeDetails. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionStateChangeDetails); + + /** ExecutionStateChangeDetails state. */ + public state: flyteidl.admin.ExecutionState; + + /** ExecutionStateChangeDetails occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** ExecutionStateChangeDetails principal. */ + public principal: string; + + /** + * Creates a new ExecutionStateChangeDetails instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionStateChangeDetails instance + */ + public static create(properties?: flyteidl.admin.IExecutionStateChangeDetails): flyteidl.admin.ExecutionStateChangeDetails; + + /** + * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. + * @param message ExecutionStateChangeDetails message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionStateChangeDetails, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionStateChangeDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionStateChangeDetails; + + /** + * Verifies an ExecutionStateChangeDetails message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionUpdateResponse. */ + interface IExecutionUpdateResponse { + } + + /** Represents an ExecutionUpdateResponse. */ + class ExecutionUpdateResponse implements IExecutionUpdateResponse { + + /** + * Constructs a new ExecutionUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionUpdateResponse); + + /** + * Creates a new ExecutionUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IExecutionUpdateResponse): flyteidl.admin.ExecutionUpdateResponse; + + /** + * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. + * @param message ExecutionUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionUpdateResponse; + + /** + * Verifies an ExecutionUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetMetricsRequest. */ + interface IWorkflowExecutionGetMetricsRequest { + + /** WorkflowExecutionGetMetricsRequest id */ + id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionGetMetricsRequest depth */ + depth?: (number|null); + } + + /** Represents a WorkflowExecutionGetMetricsRequest. */ + class WorkflowExecutionGetMetricsRequest implements IWorkflowExecutionGetMetricsRequest { + + /** + * Constructs a new WorkflowExecutionGetMetricsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest); + + /** WorkflowExecutionGetMetricsRequest id. */ + public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** WorkflowExecutionGetMetricsRequest depth. */ + public depth: number; + + /** + * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetMetricsRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): flyteidl.admin.WorkflowExecutionGetMetricsRequest; + + /** + * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. + * @param message WorkflowExecutionGetMetricsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetMetricsRequest; + + /** + * Verifies a WorkflowExecutionGetMetricsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionGetMetricsResponse. */ + interface IWorkflowExecutionGetMetricsResponse { + + /** WorkflowExecutionGetMetricsResponse span */ + span?: (flyteidl.core.ISpan|null); + } + + /** Represents a WorkflowExecutionGetMetricsResponse. */ + class WorkflowExecutionGetMetricsResponse implements IWorkflowExecutionGetMetricsResponse { + + /** + * Constructs a new WorkflowExecutionGetMetricsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse); + + /** WorkflowExecutionGetMetricsResponse span. */ + public span?: (flyteidl.core.ISpan|null); + + /** + * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionGetMetricsResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse): flyteidl.admin.WorkflowExecutionGetMetricsResponse; + + /** + * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. + * @param message WorkflowExecutionGetMetricsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionGetMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionGetMetricsResponse; + + /** + * Verifies a WorkflowExecutionGetMetricsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanCreateRequest. */ + interface ILaunchPlanCreateRequest { + + /** LaunchPlanCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanCreateRequest spec */ + spec?: (flyteidl.admin.ILaunchPlanSpec|null); + } + + /** Represents a LaunchPlanCreateRequest. */ + class LaunchPlanCreateRequest implements ILaunchPlanCreateRequest { + + /** + * Constructs a new LaunchPlanCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanCreateRequest); + + /** LaunchPlanCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanCreateRequest spec. */ + public spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** + * Creates a new LaunchPlanCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanCreateRequest): flyteidl.admin.LaunchPlanCreateRequest; + + /** + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * @param message LaunchPlanCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateRequest; + + /** + * Verifies a LaunchPlanCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanCreateResponse. */ + interface ILaunchPlanCreateResponse { + } + + /** Represents a LaunchPlanCreateResponse. */ + class LaunchPlanCreateResponse implements ILaunchPlanCreateResponse { + + /** + * Constructs a new LaunchPlanCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanCreateResponse); + + /** + * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanCreateResponse instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanCreateResponse): flyteidl.admin.LaunchPlanCreateResponse; + + /** + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * @param message LaunchPlanCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanCreateResponse; + + /** + * Verifies a LaunchPlanCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** LaunchPlanState enum. */ + enum LaunchPlanState { + INACTIVE = 0, + ACTIVE = 1 + } + + /** Properties of a LaunchPlan. */ + interface ILaunchPlan { + + /** LaunchPlan id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlan spec */ + spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** LaunchPlan closure */ + closure?: (flyteidl.admin.ILaunchPlanClosure|null); + } + + /** Represents a LaunchPlan. */ + class LaunchPlan implements ILaunchPlan { + + /** + * Constructs a new LaunchPlan. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlan); + + /** LaunchPlan id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlan spec. */ + public spec?: (flyteidl.admin.ILaunchPlanSpec|null); + + /** LaunchPlan closure. */ + public closure?: (flyteidl.admin.ILaunchPlanClosure|null); + + /** + * Creates a new LaunchPlan instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlan instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlan): flyteidl.admin.LaunchPlan; + + /** + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * @param message LaunchPlan message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlan message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlan; + + /** + * Verifies a LaunchPlan message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanList. */ + interface ILaunchPlanList { + + /** LaunchPlanList launchPlans */ + launchPlans?: (flyteidl.admin.ILaunchPlan[]|null); + + /** LaunchPlanList token */ + token?: (string|null); + } + + /** Represents a LaunchPlanList. */ + class LaunchPlanList implements ILaunchPlanList { + + /** + * Constructs a new LaunchPlanList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanList); + + /** LaunchPlanList launchPlans. */ + public launchPlans: flyteidl.admin.ILaunchPlan[]; + + /** LaunchPlanList token. */ + public token: string; + + /** + * Creates a new LaunchPlanList instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanList instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanList): flyteidl.admin.LaunchPlanList; + + /** + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * @param message LaunchPlanList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanList; + + /** + * Verifies a LaunchPlanList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Auth. */ + interface IAuth { + + /** Auth assumableIamRole */ + assumableIamRole?: (string|null); + + /** Auth kubernetesServiceAccount */ + kubernetesServiceAccount?: (string|null); + } + + /** Represents an Auth. */ + class Auth implements IAuth { + + /** + * Constructs a new Auth. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IAuth); + + /** Auth assumableIamRole. */ + public assumableIamRole: string; + + /** Auth kubernetesServiceAccount. */ + public kubernetesServiceAccount: string; + + /** + * Creates a new Auth instance using the specified properties. + * @param [properties] Properties to set + * @returns Auth instance + */ + public static create(properties?: flyteidl.admin.IAuth): flyteidl.admin.Auth; + + /** + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * @param message Auth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Auth; + + /** + * Verifies an Auth message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanSpec. */ + interface ILaunchPlanSpec { + + /** LaunchPlanSpec workflowId */ + workflowId?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanSpec entityMetadata */ + entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); + + /** LaunchPlanSpec defaultInputs */ + defaultInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanSpec fixedInputs */ + fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** LaunchPlanSpec role */ + role?: (string|null); + + /** LaunchPlanSpec labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** LaunchPlanSpec annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** LaunchPlanSpec auth */ + auth?: (flyteidl.admin.IAuth|null); + + /** LaunchPlanSpec authRole */ + authRole?: (flyteidl.admin.IAuthRole|null); + + /** LaunchPlanSpec securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** LaunchPlanSpec qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** LaunchPlanSpec rawOutputDataConfig */ + rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** LaunchPlanSpec maxParallelism */ + maxParallelism?: (number|null); + + /** LaunchPlanSpec interruptible */ + interruptible?: (google.protobuf.IBoolValue|null); + + /** LaunchPlanSpec overwriteCache */ + overwriteCache?: (boolean|null); + + /** LaunchPlanSpec envs */ + envs?: (flyteidl.admin.IEnvs|null); + } + + /** Represents a LaunchPlanSpec. */ + class LaunchPlanSpec implements ILaunchPlanSpec { + + /** + * Constructs a new LaunchPlanSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanSpec); + + /** LaunchPlanSpec workflowId. */ + public workflowId?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanSpec entityMetadata. */ + public entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); + + /** LaunchPlanSpec defaultInputs. */ + public defaultInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanSpec fixedInputs. */ + public fixedInputs?: (flyteidl.core.ILiteralMap|null); + + /** LaunchPlanSpec role. */ + public role: string; + + /** LaunchPlanSpec labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** LaunchPlanSpec annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** LaunchPlanSpec auth. */ + public auth?: (flyteidl.admin.IAuth|null); + + /** LaunchPlanSpec authRole. */ + public authRole?: (flyteidl.admin.IAuthRole|null); + + /** LaunchPlanSpec securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** LaunchPlanSpec qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** LaunchPlanSpec rawOutputDataConfig. */ + public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** LaunchPlanSpec maxParallelism. */ + public maxParallelism: number; + + /** LaunchPlanSpec interruptible. */ + public interruptible?: (google.protobuf.IBoolValue|null); + + /** LaunchPlanSpec overwriteCache. */ + public overwriteCache: boolean; + + /** LaunchPlanSpec envs. */ + public envs?: (flyteidl.admin.IEnvs|null); + + /** + * Creates a new LaunchPlanSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanSpec instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanSpec): flyteidl.admin.LaunchPlanSpec; + + /** + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * @param message LaunchPlanSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanSpec; + + /** + * Verifies a LaunchPlanSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanClosure. */ + interface ILaunchPlanClosure { + + /** LaunchPlanClosure state */ + state?: (flyteidl.admin.LaunchPlanState|null); + + /** LaunchPlanClosure expectedInputs */ + expectedInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanClosure expectedOutputs */ + expectedOutputs?: (flyteidl.core.IVariableMap|null); + + /** LaunchPlanClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** LaunchPlanClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a LaunchPlanClosure. */ + class LaunchPlanClosure implements ILaunchPlanClosure { + + /** + * Constructs a new LaunchPlanClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanClosure); + + /** LaunchPlanClosure state. */ + public state: flyteidl.admin.LaunchPlanState; + + /** LaunchPlanClosure expectedInputs. */ + public expectedInputs?: (flyteidl.core.IParameterMap|null); + + /** LaunchPlanClosure expectedOutputs. */ + public expectedOutputs?: (flyteidl.core.IVariableMap|null); + + /** LaunchPlanClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** LaunchPlanClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new LaunchPlanClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanClosure instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanClosure): flyteidl.admin.LaunchPlanClosure; + + /** + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * @param message LaunchPlanClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanClosure; + + /** + * Verifies a LaunchPlanClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanMetadata. */ + interface ILaunchPlanMetadata { + + /** LaunchPlanMetadata schedule */ + schedule?: (flyteidl.admin.ISchedule|null); + + /** LaunchPlanMetadata notifications */ + notifications?: (flyteidl.admin.INotification[]|null); + + /** LaunchPlanMetadata launchConditions */ + launchConditions?: (google.protobuf.IAny|null); + } + + /** Represents a LaunchPlanMetadata. */ + class LaunchPlanMetadata implements ILaunchPlanMetadata { + + /** + * Constructs a new LaunchPlanMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanMetadata); + + /** LaunchPlanMetadata schedule. */ + public schedule?: (flyteidl.admin.ISchedule|null); + + /** LaunchPlanMetadata notifications. */ + public notifications: flyteidl.admin.INotification[]; + + /** LaunchPlanMetadata launchConditions. */ + public launchConditions?: (google.protobuf.IAny|null); + + /** + * Creates a new LaunchPlanMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanMetadata instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanMetadata): flyteidl.admin.LaunchPlanMetadata; + + /** + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * @param message LaunchPlanMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanMetadata; + + /** + * Verifies a LaunchPlanMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanUpdateRequest. */ + interface ILaunchPlanUpdateRequest { + + /** LaunchPlanUpdateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanUpdateRequest state */ + state?: (flyteidl.admin.LaunchPlanState|null); + } + + /** Represents a LaunchPlanUpdateRequest. */ + class LaunchPlanUpdateRequest implements ILaunchPlanUpdateRequest { + + /** + * Constructs a new LaunchPlanUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanUpdateRequest); + + /** LaunchPlanUpdateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** LaunchPlanUpdateRequest state. */ + public state: flyteidl.admin.LaunchPlanState; + + /** + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanUpdateRequest): flyteidl.admin.LaunchPlanUpdateRequest; + + /** + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * @param message LaunchPlanUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateRequest; + + /** + * Verifies a LaunchPlanUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a LaunchPlanUpdateResponse. */ + interface ILaunchPlanUpdateResponse { + } + + /** Represents a LaunchPlanUpdateResponse. */ + class LaunchPlanUpdateResponse implements ILaunchPlanUpdateResponse { + + /** + * Constructs a new LaunchPlanUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ILaunchPlanUpdateResponse); + + /** + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns LaunchPlanUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.ILaunchPlanUpdateResponse): flyteidl.admin.LaunchPlanUpdateResponse; + + /** + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * @param message LaunchPlanUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ILaunchPlanUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LaunchPlanUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.LaunchPlanUpdateResponse; + + /** + * Verifies a LaunchPlanUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ActiveLaunchPlanRequest. */ + interface IActiveLaunchPlanRequest { + + /** ActiveLaunchPlanRequest id */ + id?: (flyteidl.admin.INamedEntityIdentifier|null); + } + + /** Represents an ActiveLaunchPlanRequest. */ + class ActiveLaunchPlanRequest implements IActiveLaunchPlanRequest { + + /** + * Constructs a new ActiveLaunchPlanRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IActiveLaunchPlanRequest); + + /** ActiveLaunchPlanRequest id. */ + public id?: (flyteidl.admin.INamedEntityIdentifier|null); + + /** + * Creates a new ActiveLaunchPlanRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ActiveLaunchPlanRequest instance + */ + public static create(properties?: flyteidl.admin.IActiveLaunchPlanRequest): flyteidl.admin.ActiveLaunchPlanRequest; + + /** + * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. + * @param message ActiveLaunchPlanRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IActiveLaunchPlanRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveLaunchPlanRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ActiveLaunchPlanRequest; + + /** + * Verifies an ActiveLaunchPlanRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ActiveLaunchPlanListRequest. */ + interface IActiveLaunchPlanListRequest { + + /** ActiveLaunchPlanListRequest project */ + project?: (string|null); + + /** ActiveLaunchPlanListRequest domain */ + domain?: (string|null); + + /** ActiveLaunchPlanListRequest limit */ + limit?: (number|null); + + /** ActiveLaunchPlanListRequest token */ + token?: (string|null); + + /** ActiveLaunchPlanListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** ActiveLaunchPlanListRequest org */ + org?: (string|null); + } + + /** Represents an ActiveLaunchPlanListRequest. */ + class ActiveLaunchPlanListRequest implements IActiveLaunchPlanListRequest { + + /** + * Constructs a new ActiveLaunchPlanListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IActiveLaunchPlanListRequest); + + /** ActiveLaunchPlanListRequest project. */ + public project: string; + + /** ActiveLaunchPlanListRequest domain. */ + public domain: string; + + /** ActiveLaunchPlanListRequest limit. */ + public limit: number; + + /** ActiveLaunchPlanListRequest token. */ + public token: string; + + /** ActiveLaunchPlanListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** ActiveLaunchPlanListRequest org. */ + public org: string; + + /** + * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ActiveLaunchPlanListRequest instance + */ + public static create(properties?: flyteidl.admin.IActiveLaunchPlanListRequest): flyteidl.admin.ActiveLaunchPlanListRequest; + + /** + * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. + * @param message ActiveLaunchPlanListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IActiveLaunchPlanListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveLaunchPlanListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ActiveLaunchPlanListRequest; + + /** + * Verifies an ActiveLaunchPlanListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** FixedRateUnit enum. */ + enum FixedRateUnit { + MINUTE = 0, + HOUR = 1, + DAY = 2 + } + + /** Properties of a FixedRate. */ + interface IFixedRate { + + /** FixedRate value */ + value?: (number|null); + + /** FixedRate unit */ + unit?: (flyteidl.admin.FixedRateUnit|null); + } + + /** Represents a FixedRate. */ + class FixedRate implements IFixedRate { + + /** + * Constructs a new FixedRate. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IFixedRate); + + /** FixedRate value. */ + public value: number; + + /** FixedRate unit. */ + public unit: flyteidl.admin.FixedRateUnit; + + /** + * Creates a new FixedRate instance using the specified properties. + * @param [properties] Properties to set + * @returns FixedRate instance + */ + public static create(properties?: flyteidl.admin.IFixedRate): flyteidl.admin.FixedRate; + + /** + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. + * @param message FixedRate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IFixedRate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FixedRate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FixedRate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.FixedRate; + + /** + * Verifies a FixedRate message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CronSchedule. */ + interface ICronSchedule { + + /** CronSchedule schedule */ + schedule?: (string|null); + + /** CronSchedule offset */ + offset?: (string|null); + } + + /** Represents a CronSchedule. */ + class CronSchedule implements ICronSchedule { + + /** + * Constructs a new CronSchedule. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICronSchedule); + + /** CronSchedule schedule. */ + public schedule: string; + + /** CronSchedule offset. */ + public offset: string; + + /** + * Creates a new CronSchedule instance using the specified properties. + * @param [properties] Properties to set + * @returns CronSchedule instance + */ + public static create(properties?: flyteidl.admin.ICronSchedule): flyteidl.admin.CronSchedule; + + /** + * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. + * @param message CronSchedule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICronSchedule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CronSchedule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CronSchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CronSchedule; + + /** + * Verifies a CronSchedule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Schedule. */ + interface ISchedule { + + /** Schedule cronExpression */ + cronExpression?: (string|null); + + /** Schedule rate */ + rate?: (flyteidl.admin.IFixedRate|null); + + /** Schedule cronSchedule */ + cronSchedule?: (flyteidl.admin.ICronSchedule|null); + + /** Schedule kickoffTimeInputArg */ + kickoffTimeInputArg?: (string|null); + } + + /** Represents a Schedule. */ + class Schedule implements ISchedule { + + /** + * Constructs a new Schedule. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISchedule); + + /** Schedule cronExpression. */ + public cronExpression: string; + + /** Schedule rate. */ + public rate?: (flyteidl.admin.IFixedRate|null); + + /** Schedule cronSchedule. */ + public cronSchedule?: (flyteidl.admin.ICronSchedule|null); + + /** Schedule kickoffTimeInputArg. */ + public kickoffTimeInputArg: string; + + /** Schedule ScheduleExpression. */ + public ScheduleExpression?: ("cronExpression"|"rate"|"cronSchedule"); + + /** + * Creates a new Schedule instance using the specified properties. + * @param [properties] Properties to set + * @returns Schedule instance + */ + public static create(properties?: flyteidl.admin.ISchedule): flyteidl.admin.Schedule; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * @param message Schedule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Schedule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Schedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Schedule; + + /** + * Verifies a Schedule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** MatchableResource enum. */ + enum MatchableResource { + TASK_RESOURCE = 0, + CLUSTER_RESOURCE = 1, + EXECUTION_QUEUE = 2, + EXECUTION_CLUSTER_LABEL = 3, + QUALITY_OF_SERVICE_SPECIFICATION = 4, + PLUGIN_OVERRIDE = 5, + WORKFLOW_EXECUTION_CONFIG = 6, + CLUSTER_ASSIGNMENT = 7 + } + + /** Properties of a TaskResourceSpec. */ + interface ITaskResourceSpec { + + /** TaskResourceSpec cpu */ + cpu?: (string|null); + + /** TaskResourceSpec gpu */ + gpu?: (string|null); + + /** TaskResourceSpec memory */ + memory?: (string|null); + + /** TaskResourceSpec storage */ + storage?: (string|null); + + /** TaskResourceSpec ephemeralStorage */ + ephemeralStorage?: (string|null); + } + + /** Represents a TaskResourceSpec. */ + class TaskResourceSpec implements ITaskResourceSpec { + + /** + * Constructs a new TaskResourceSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskResourceSpec); + + /** TaskResourceSpec cpu. */ + public cpu: string; + + /** TaskResourceSpec gpu. */ + public gpu: string; + + /** TaskResourceSpec memory. */ + public memory: string; + + /** TaskResourceSpec storage. */ + public storage: string; + + /** TaskResourceSpec ephemeralStorage. */ + public ephemeralStorage: string; + + /** + * Creates a new TaskResourceSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskResourceSpec instance + */ + public static create(properties?: flyteidl.admin.ITaskResourceSpec): flyteidl.admin.TaskResourceSpec; + + /** + * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. + * @param message TaskResourceSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskResourceSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskResourceSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskResourceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskResourceSpec; + + /** + * Verifies a TaskResourceSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskResourceAttributes. */ + interface ITaskResourceAttributes { + + /** TaskResourceAttributes defaults */ + defaults?: (flyteidl.admin.ITaskResourceSpec|null); + + /** TaskResourceAttributes limits */ + limits?: (flyteidl.admin.ITaskResourceSpec|null); + } + + /** Represents a TaskResourceAttributes. */ + class TaskResourceAttributes implements ITaskResourceAttributes { + + /** + * Constructs a new TaskResourceAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskResourceAttributes); + + /** TaskResourceAttributes defaults. */ + public defaults?: (flyteidl.admin.ITaskResourceSpec|null); + + /** TaskResourceAttributes limits. */ + public limits?: (flyteidl.admin.ITaskResourceSpec|null); + + /** + * Creates a new TaskResourceAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskResourceAttributes instance + */ + public static create(properties?: flyteidl.admin.ITaskResourceAttributes): flyteidl.admin.TaskResourceAttributes; + + /** + * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. + * @param message TaskResourceAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskResourceAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskResourceAttributes; + + /** + * Verifies a TaskResourceAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ClusterResourceAttributes. */ + interface IClusterResourceAttributes { + + /** ClusterResourceAttributes attributes */ + attributes?: ({ [k: string]: string }|null); + } + + /** Represents a ClusterResourceAttributes. */ + class ClusterResourceAttributes implements IClusterResourceAttributes { + + /** + * Constructs a new ClusterResourceAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IClusterResourceAttributes); + + /** ClusterResourceAttributes attributes. */ + public attributes: { [k: string]: string }; + + /** + * Creates a new ClusterResourceAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterResourceAttributes instance + */ + public static create(properties?: flyteidl.admin.IClusterResourceAttributes): flyteidl.admin.ClusterResourceAttributes; + + /** + * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. + * @param message ClusterResourceAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IClusterResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterResourceAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ClusterResourceAttributes; + + /** + * Verifies a ClusterResourceAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionQueueAttributes. */ + interface IExecutionQueueAttributes { + + /** ExecutionQueueAttributes tags */ + tags?: (string[]|null); + } + + /** Represents an ExecutionQueueAttributes. */ + class ExecutionQueueAttributes implements IExecutionQueueAttributes { + + /** + * Constructs a new ExecutionQueueAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionQueueAttributes); + + /** ExecutionQueueAttributes tags. */ + public tags: string[]; + + /** + * Creates a new ExecutionQueueAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionQueueAttributes instance + */ + public static create(properties?: flyteidl.admin.IExecutionQueueAttributes): flyteidl.admin.ExecutionQueueAttributes; + + /** + * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. + * @param message ExecutionQueueAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionQueueAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionQueueAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionQueueAttributes; + + /** + * Verifies an ExecutionQueueAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an ExecutionClusterLabel. */ + interface IExecutionClusterLabel { + + /** ExecutionClusterLabel value */ + value?: (string|null); + } + + /** Represents an ExecutionClusterLabel. */ + class ExecutionClusterLabel implements IExecutionClusterLabel { + + /** + * Constructs a new ExecutionClusterLabel. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IExecutionClusterLabel); + + /** ExecutionClusterLabel value. */ + public value: string; + + /** + * Creates a new ExecutionClusterLabel instance using the specified properties. + * @param [properties] Properties to set + * @returns ExecutionClusterLabel instance + */ + public static create(properties?: flyteidl.admin.IExecutionClusterLabel): flyteidl.admin.ExecutionClusterLabel; + + /** + * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. + * @param message ExecutionClusterLabel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IExecutionClusterLabel, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExecutionClusterLabel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExecutionClusterLabel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ExecutionClusterLabel; + + /** + * Verifies an ExecutionClusterLabel message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PluginOverride. */ + interface IPluginOverride { + + /** PluginOverride taskType */ + taskType?: (string|null); + + /** PluginOverride pluginId */ + pluginId?: (string[]|null); + + /** PluginOverride missingPluginBehavior */ + missingPluginBehavior?: (flyteidl.admin.PluginOverride.MissingPluginBehavior|null); + } + + /** Represents a PluginOverride. */ + class PluginOverride implements IPluginOverride { + + /** + * Constructs a new PluginOverride. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPluginOverride); + + /** PluginOverride taskType. */ + public taskType: string; + + /** PluginOverride pluginId. */ + public pluginId: string[]; + + /** PluginOverride missingPluginBehavior. */ + public missingPluginBehavior: flyteidl.admin.PluginOverride.MissingPluginBehavior; + + /** + * Creates a new PluginOverride instance using the specified properties. + * @param [properties] Properties to set + * @returns PluginOverride instance + */ + public static create(properties?: flyteidl.admin.IPluginOverride): flyteidl.admin.PluginOverride; + + /** + * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. + * @param message PluginOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPluginOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PluginOverride message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PluginOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PluginOverride; + + /** + * Verifies a PluginOverride message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace PluginOverride { + + /** MissingPluginBehavior enum. */ + enum MissingPluginBehavior { + FAIL = 0, + USE_DEFAULT = 1 + } + } + + /** Properties of a PluginOverrides. */ + interface IPluginOverrides { + + /** PluginOverrides overrides */ + overrides?: (flyteidl.admin.IPluginOverride[]|null); + } + + /** Represents a PluginOverrides. */ + class PluginOverrides implements IPluginOverrides { + + /** + * Constructs a new PluginOverrides. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IPluginOverrides); + + /** PluginOverrides overrides. */ + public overrides: flyteidl.admin.IPluginOverride[]; + + /** + * Creates a new PluginOverrides instance using the specified properties. + * @param [properties] Properties to set + * @returns PluginOverrides instance + */ + public static create(properties?: flyteidl.admin.IPluginOverrides): flyteidl.admin.PluginOverrides; + + /** + * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. + * @param message PluginOverrides message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IPluginOverrides, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PluginOverrides message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PluginOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.PluginOverrides; + + /** + * Verifies a PluginOverrides message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowExecutionConfig. */ + interface IWorkflowExecutionConfig { + + /** WorkflowExecutionConfig maxParallelism */ + maxParallelism?: (number|null); + + /** WorkflowExecutionConfig securityContext */ + securityContext?: (flyteidl.core.ISecurityContext|null); + + /** WorkflowExecutionConfig rawOutputDataConfig */ + rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** WorkflowExecutionConfig labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** WorkflowExecutionConfig annotations */ + annotations?: (flyteidl.admin.IAnnotations|null); + + /** WorkflowExecutionConfig interruptible */ + interruptible?: (google.protobuf.IBoolValue|null); + + /** WorkflowExecutionConfig overwriteCache */ + overwriteCache?: (boolean|null); + + /** WorkflowExecutionConfig envs */ + envs?: (flyteidl.admin.IEnvs|null); + } + + /** Represents a WorkflowExecutionConfig. */ + class WorkflowExecutionConfig implements IWorkflowExecutionConfig { + + /** + * Constructs a new WorkflowExecutionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowExecutionConfig); + + /** WorkflowExecutionConfig maxParallelism. */ + public maxParallelism: number; + + /** WorkflowExecutionConfig securityContext. */ + public securityContext?: (flyteidl.core.ISecurityContext|null); + + /** WorkflowExecutionConfig rawOutputDataConfig. */ + public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); + + /** WorkflowExecutionConfig labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** WorkflowExecutionConfig annotations. */ + public annotations?: (flyteidl.admin.IAnnotations|null); + + /** WorkflowExecutionConfig interruptible. */ + public interruptible?: (google.protobuf.IBoolValue|null); + + /** WorkflowExecutionConfig overwriteCache. */ + public overwriteCache: boolean; + + /** WorkflowExecutionConfig envs. */ + public envs?: (flyteidl.admin.IEnvs|null); + + /** + * Creates a new WorkflowExecutionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowExecutionConfig instance + */ + public static create(properties?: flyteidl.admin.IWorkflowExecutionConfig): flyteidl.admin.WorkflowExecutionConfig; + + /** + * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. + * @param message WorkflowExecutionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowExecutionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowExecutionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowExecutionConfig; + + /** + * Verifies a WorkflowExecutionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MatchingAttributes. */ + interface IMatchingAttributes { + + /** MatchingAttributes taskResourceAttributes */ + taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); + + /** MatchingAttributes clusterResourceAttributes */ + clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); + + /** MatchingAttributes executionQueueAttributes */ + executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); + + /** MatchingAttributes executionClusterLabel */ + executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); + + /** MatchingAttributes qualityOfService */ + qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** MatchingAttributes pluginOverrides */ + pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); + + /** MatchingAttributes workflowExecutionConfig */ + workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); + + /** MatchingAttributes clusterAssignment */ + clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + } + + /** Represents a MatchingAttributes. */ + class MatchingAttributes implements IMatchingAttributes { + + /** + * Constructs a new MatchingAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IMatchingAttributes); + + /** MatchingAttributes taskResourceAttributes. */ + public taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); + + /** MatchingAttributes clusterResourceAttributes. */ + public clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); + + /** MatchingAttributes executionQueueAttributes. */ + public executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); + + /** MatchingAttributes executionClusterLabel. */ + public executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); + + /** MatchingAttributes qualityOfService. */ + public qualityOfService?: (flyteidl.core.IQualityOfService|null); + + /** MatchingAttributes pluginOverrides. */ + public pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); + + /** MatchingAttributes workflowExecutionConfig. */ + public workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); + + /** MatchingAttributes clusterAssignment. */ + public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); + + /** MatchingAttributes target. */ + public target?: ("taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"); + + /** + * Creates a new MatchingAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns MatchingAttributes instance + */ + public static create(properties?: flyteidl.admin.IMatchingAttributes): flyteidl.admin.MatchingAttributes; + + /** + * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. + * @param message MatchingAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IMatchingAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MatchingAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MatchingAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.MatchingAttributes; + + /** + * Verifies a MatchingAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MatchableAttributesConfiguration. */ + interface IMatchableAttributesConfiguration { + + /** MatchableAttributesConfiguration attributes */ + attributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** MatchableAttributesConfiguration domain */ + domain?: (string|null); + + /** MatchableAttributesConfiguration project */ + project?: (string|null); + + /** MatchableAttributesConfiguration workflow */ + workflow?: (string|null); + + /** MatchableAttributesConfiguration launchPlan */ + launchPlan?: (string|null); + + /** MatchableAttributesConfiguration org */ + org?: (string|null); + } + + /** Represents a MatchableAttributesConfiguration. */ + class MatchableAttributesConfiguration implements IMatchableAttributesConfiguration { + + /** + * Constructs a new MatchableAttributesConfiguration. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IMatchableAttributesConfiguration); + + /** MatchableAttributesConfiguration attributes. */ + public attributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** MatchableAttributesConfiguration domain. */ + public domain: string; + + /** MatchableAttributesConfiguration project. */ + public project: string; + + /** MatchableAttributesConfiguration workflow. */ + public workflow: string; + + /** MatchableAttributesConfiguration launchPlan. */ + public launchPlan: string; + + /** MatchableAttributesConfiguration org. */ + public org: string; + + /** + * Creates a new MatchableAttributesConfiguration instance using the specified properties. + * @param [properties] Properties to set + * @returns MatchableAttributesConfiguration instance + */ + public static create(properties?: flyteidl.admin.IMatchableAttributesConfiguration): flyteidl.admin.MatchableAttributesConfiguration; + + /** + * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. + * @param message MatchableAttributesConfiguration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IMatchableAttributesConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MatchableAttributesConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.MatchableAttributesConfiguration; + + /** + * Verifies a MatchableAttributesConfiguration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ListMatchableAttributesRequest. */ + interface IListMatchableAttributesRequest { + + /** ListMatchableAttributesRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** ListMatchableAttributesRequest org */ + org?: (string|null); + } + + /** Represents a ListMatchableAttributesRequest. */ + class ListMatchableAttributesRequest implements IListMatchableAttributesRequest { + + /** + * Constructs a new ListMatchableAttributesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IListMatchableAttributesRequest); + + /** ListMatchableAttributesRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** ListMatchableAttributesRequest org. */ + public org: string; + + /** + * Creates a new ListMatchableAttributesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMatchableAttributesRequest instance + */ + public static create(properties?: flyteidl.admin.IListMatchableAttributesRequest): flyteidl.admin.ListMatchableAttributesRequest; + + /** + * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. + * @param message ListMatchableAttributesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IListMatchableAttributesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMatchableAttributesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListMatchableAttributesRequest; + + /** + * Verifies a ListMatchableAttributesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ListMatchableAttributesResponse. */ + interface IListMatchableAttributesResponse { + + /** ListMatchableAttributesResponse configurations */ + configurations?: (flyteidl.admin.IMatchableAttributesConfiguration[]|null); + } + + /** Represents a ListMatchableAttributesResponse. */ + class ListMatchableAttributesResponse implements IListMatchableAttributesResponse { + + /** + * Constructs a new ListMatchableAttributesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IListMatchableAttributesResponse); + + /** ListMatchableAttributesResponse configurations. */ + public configurations: flyteidl.admin.IMatchableAttributesConfiguration[]; + + /** + * Creates a new ListMatchableAttributesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMatchableAttributesResponse instance + */ + public static create(properties?: flyteidl.admin.IListMatchableAttributesResponse): flyteidl.admin.ListMatchableAttributesResponse; + + /** + * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. + * @param message ListMatchableAttributesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IListMatchableAttributesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMatchableAttributesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ListMatchableAttributesResponse; + + /** + * Verifies a ListMatchableAttributesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetRequest. */ + interface INodeExecutionGetRequest { + + /** NodeExecutionGetRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a NodeExecutionGetRequest. */ + class NodeExecutionGetRequest implements INodeExecutionGetRequest { + + /** + * Constructs a new NodeExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetRequest); + + /** NodeExecutionGetRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetRequest): flyteidl.admin.NodeExecutionGetRequest; + + /** + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * @param message NodeExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetRequest; + + /** + * Verifies a NodeExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionListRequest. */ + interface INodeExecutionListRequest { + + /** NodeExecutionListRequest workflowExecutionId */ + workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** NodeExecutionListRequest limit */ + limit?: (number|null); + + /** NodeExecutionListRequest token */ + token?: (string|null); + + /** NodeExecutionListRequest filters */ + filters?: (string|null); + + /** NodeExecutionListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** NodeExecutionListRequest uniqueParentId */ + uniqueParentId?: (string|null); + } + + /** Represents a NodeExecutionListRequest. */ + class NodeExecutionListRequest implements INodeExecutionListRequest { + + /** + * Constructs a new NodeExecutionListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionListRequest); + + /** NodeExecutionListRequest workflowExecutionId. */ + public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** NodeExecutionListRequest limit. */ + public limit: number; + + /** NodeExecutionListRequest token. */ + public token: string; + + /** NodeExecutionListRequest filters. */ + public filters: string; + + /** NodeExecutionListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** NodeExecutionListRequest uniqueParentId. */ + public uniqueParentId: string; + + /** + * Creates a new NodeExecutionListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionListRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionListRequest): flyteidl.admin.NodeExecutionListRequest; + + /** + * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * @param message NodeExecutionListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionListRequest; + + /** + * Verifies a NodeExecutionListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionForTaskListRequest. */ + interface INodeExecutionForTaskListRequest { + + /** NodeExecutionForTaskListRequest taskExecutionId */ + taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** NodeExecutionForTaskListRequest limit */ + limit?: (number|null); + + /** NodeExecutionForTaskListRequest token */ + token?: (string|null); + + /** NodeExecutionForTaskListRequest filters */ + filters?: (string|null); + + /** NodeExecutionForTaskListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a NodeExecutionForTaskListRequest. */ + class NodeExecutionForTaskListRequest implements INodeExecutionForTaskListRequest { + + /** + * Constructs a new NodeExecutionForTaskListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionForTaskListRequest); + + /** NodeExecutionForTaskListRequest taskExecutionId. */ + public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** NodeExecutionForTaskListRequest limit. */ + public limit: number; + + /** NodeExecutionForTaskListRequest token. */ + public token: string; + + /** NodeExecutionForTaskListRequest filters. */ + public filters: string; + + /** NodeExecutionForTaskListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionForTaskListRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionForTaskListRequest): flyteidl.admin.NodeExecutionForTaskListRequest; + + /** + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * @param message NodeExecutionForTaskListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionForTaskListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionForTaskListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionForTaskListRequest; + + /** + * Verifies a NodeExecutionForTaskListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecution. */ + interface INodeExecution { + + /** NodeExecution id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecution inputUri */ + inputUri?: (string|null); + + /** NodeExecution closure */ + closure?: (flyteidl.admin.INodeExecutionClosure|null); + + /** NodeExecution metadata */ + metadata?: (flyteidl.admin.INodeExecutionMetaData|null); + } + + /** Represents a NodeExecution. */ + class NodeExecution implements INodeExecution { + + /** + * Constructs a new NodeExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecution); + + /** NodeExecution id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** NodeExecution inputUri. */ + public inputUri: string; + + /** NodeExecution closure. */ + public closure?: (flyteidl.admin.INodeExecutionClosure|null); + + /** NodeExecution metadata. */ + public metadata?: (flyteidl.admin.INodeExecutionMetaData|null); + + /** + * Creates a new NodeExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecution instance + */ + public static create(properties?: flyteidl.admin.INodeExecution): flyteidl.admin.NodeExecution; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * @param message NodeExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecution; + + /** + * Verifies a NodeExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionMetaData. */ + interface INodeExecutionMetaData { + + /** NodeExecutionMetaData retryGroup */ + retryGroup?: (string|null); + + /** NodeExecutionMetaData isParentNode */ + isParentNode?: (boolean|null); + + /** NodeExecutionMetaData specNodeId */ + specNodeId?: (string|null); + + /** NodeExecutionMetaData isDynamic */ + isDynamic?: (boolean|null); + + /** NodeExecutionMetaData isArray */ + isArray?: (boolean|null); + } + + /** Represents a NodeExecutionMetaData. */ + class NodeExecutionMetaData implements INodeExecutionMetaData { + + /** + * Constructs a new NodeExecutionMetaData. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionMetaData); + + /** NodeExecutionMetaData retryGroup. */ + public retryGroup: string; + + /** NodeExecutionMetaData isParentNode. */ + public isParentNode: boolean; + + /** NodeExecutionMetaData specNodeId. */ + public specNodeId: string; + + /** NodeExecutionMetaData isDynamic. */ + public isDynamic: boolean; + + /** NodeExecutionMetaData isArray. */ + public isArray: boolean; + + /** + * Creates a new NodeExecutionMetaData instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionMetaData instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionMetaData): flyteidl.admin.NodeExecutionMetaData; + + /** + * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. + * @param message NodeExecutionMetaData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionMetaData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionMetaData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionMetaData; + + /** + * Verifies a NodeExecutionMetaData message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionList. */ + interface INodeExecutionList { + + /** NodeExecutionList nodeExecutions */ + nodeExecutions?: (flyteidl.admin.INodeExecution[]|null); + + /** NodeExecutionList token */ + token?: (string|null); + } + + /** Represents a NodeExecutionList. */ + class NodeExecutionList implements INodeExecutionList { + + /** + * Constructs a new NodeExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionList); + + /** NodeExecutionList nodeExecutions. */ + public nodeExecutions: flyteidl.admin.INodeExecution[]; + + /** NodeExecutionList token. */ + public token: string; + + /** + * Creates a new NodeExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionList instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionList): flyteidl.admin.NodeExecutionList; + + /** + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * @param message NodeExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionList; + + /** + * Verifies a NodeExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionClosure. */ + interface INodeExecutionClosure { + + /** NodeExecutionClosure outputUri */ + outputUri?: (string|null); + + /** NodeExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionClosure outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionClosure phase */ + phase?: (flyteidl.core.NodeExecution.Phase|null); + + /** NodeExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** NodeExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure workflowNodeMetadata */ + workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); + + /** NodeExecutionClosure taskNodeMetadata */ + taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); + + /** NodeExecutionClosure deckUri */ + deckUri?: (string|null); + + /** NodeExecutionClosure dynamicJobSpecUri */ + dynamicJobSpecUri?: (string|null); + } + + /** Represents a NodeExecutionClosure. */ + class NodeExecutionClosure implements INodeExecutionClosure { + + /** + * Constructs a new NodeExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionClosure); + + /** NodeExecutionClosure outputUri. */ + public outputUri: string; + + /** NodeExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** NodeExecutionClosure outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionClosure phase. */ + public phase: flyteidl.core.NodeExecution.Phase; + + /** NodeExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** NodeExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** NodeExecutionClosure workflowNodeMetadata. */ + public workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); + + /** NodeExecutionClosure taskNodeMetadata. */ + public taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); + + /** NodeExecutionClosure deckUri. */ + public deckUri: string; + + /** NodeExecutionClosure dynamicJobSpecUri. */ + public dynamicJobSpecUri: string; + + /** NodeExecutionClosure outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** NodeExecutionClosure targetMetadata. */ + public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); + + /** + * Creates a new NodeExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionClosure): flyteidl.admin.NodeExecutionClosure; + + /** + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * @param message NodeExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionClosure; + + /** + * Verifies a NodeExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowNodeMetadata. */ + interface IWorkflowNodeMetadata { + + /** WorkflowNodeMetadata executionId */ + executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + } + + /** Represents a WorkflowNodeMetadata. */ + class WorkflowNodeMetadata implements IWorkflowNodeMetadata { + + /** + * Constructs a new WorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowNodeMetadata); + + /** WorkflowNodeMetadata executionId. */ + public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.IWorkflowNodeMetadata): flyteidl.admin.WorkflowNodeMetadata; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * @param message WorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowNodeMetadata; + + /** + * Verifies a WorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskNodeMetadata. */ + interface ITaskNodeMetadata { + + /** TaskNodeMetadata cacheStatus */ + cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); + + /** TaskNodeMetadata catalogKey */ + catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata checkpointUri */ + checkpointUri?: (string|null); + } + + /** Represents a TaskNodeMetadata. */ + class TaskNodeMetadata implements ITaskNodeMetadata { + + /** + * Constructs a new TaskNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskNodeMetadata); + + /** TaskNodeMetadata cacheStatus. */ + public cacheStatus: flyteidl.core.CatalogCacheStatus; + + /** TaskNodeMetadata catalogKey. */ + public catalogKey?: (flyteidl.core.ICatalogMetadata|null); + + /** TaskNodeMetadata checkpointUri. */ + public checkpointUri: string; + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.ITaskNodeMetadata): flyteidl.admin.TaskNodeMetadata; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. + * @param message TaskNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskNodeMetadata; + + /** + * Verifies a TaskNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicWorkflowNodeMetadata. */ + interface IDynamicWorkflowNodeMetadata { + + /** DynamicWorkflowNodeMetadata id */ + id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ + dynamicJobSpecUri?: (string|null); + } + + /** Represents a DynamicWorkflowNodeMetadata. */ + class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata); + + /** DynamicWorkflowNodeMetadata id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** DynamicWorkflowNodeMetadata compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ + public dynamicJobSpecUri: string; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicWorkflowNodeMetadata instance + */ + public static create(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata): flyteidl.admin.DynamicWorkflowNodeMetadata; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @param message DynamicWorkflowNodeMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DynamicWorkflowNodeMetadata; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetDataRequest. */ + interface INodeExecutionGetDataRequest { + + /** NodeExecutionGetDataRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a NodeExecutionGetDataRequest. */ + class NodeExecutionGetDataRequest implements INodeExecutionGetDataRequest { + + /** + * Constructs a new NodeExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetDataRequest); + + /** NodeExecutionGetDataRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetDataRequest): flyteidl.admin.NodeExecutionGetDataRequest; + + /** + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * @param message NodeExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataRequest; + + /** + * Verifies a NodeExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a NodeExecutionGetDataResponse. */ + interface INodeExecutionGetDataResponse { + + /** NodeExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse fullInputs */ + fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse fullOutputs */ + fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse dynamicWorkflow */ + dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); + + /** NodeExecutionGetDataResponse flyteUrls */ + flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + } + + /** Represents a NodeExecutionGetDataResponse. */ + class NodeExecutionGetDataResponse implements INodeExecutionGetDataResponse { + + /** + * Constructs a new NodeExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.INodeExecutionGetDataResponse); + + /** NodeExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** NodeExecutionGetDataResponse fullInputs. */ + public fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse fullOutputs. */ + public fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** NodeExecutionGetDataResponse dynamicWorkflow. */ + public dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); + + /** NodeExecutionGetDataResponse flyteUrls. */ + public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + + /** + * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.INodeExecutionGetDataResponse): flyteidl.admin.NodeExecutionGetDataResponse; + + /** + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * @param message NodeExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.INodeExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.NodeExecutionGetDataResponse; + + /** + * Verifies a NodeExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetDynamicNodeWorkflowRequest. */ + interface IGetDynamicNodeWorkflowRequest { + + /** GetDynamicNodeWorkflowRequest id */ + id?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a GetDynamicNodeWorkflowRequest. */ + class GetDynamicNodeWorkflowRequest implements IGetDynamicNodeWorkflowRequest { + + /** + * Constructs a new GetDynamicNodeWorkflowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetDynamicNodeWorkflowRequest); + + /** GetDynamicNodeWorkflowRequest id. */ + public id?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** + * Creates a new GetDynamicNodeWorkflowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDynamicNodeWorkflowRequest instance + */ + public static create(properties?: flyteidl.admin.IGetDynamicNodeWorkflowRequest): flyteidl.admin.GetDynamicNodeWorkflowRequest; + + /** + * Encodes the specified GetDynamicNodeWorkflowRequest message. Does not implicitly {@link flyteidl.admin.GetDynamicNodeWorkflowRequest.verify|verify} messages. + * @param message GetDynamicNodeWorkflowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetDynamicNodeWorkflowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDynamicNodeWorkflowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDynamicNodeWorkflowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetDynamicNodeWorkflowRequest; + + /** + * Verifies a GetDynamicNodeWorkflowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DynamicNodeWorkflowResponse. */ + interface IDynamicNodeWorkflowResponse { + + /** DynamicNodeWorkflowResponse compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + } + + /** Represents a DynamicNodeWorkflowResponse. */ + class DynamicNodeWorkflowResponse implements IDynamicNodeWorkflowResponse { + + /** + * Constructs a new DynamicNodeWorkflowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDynamicNodeWorkflowResponse); + + /** DynamicNodeWorkflowResponse compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** + * Creates a new DynamicNodeWorkflowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DynamicNodeWorkflowResponse instance + */ + public static create(properties?: flyteidl.admin.IDynamicNodeWorkflowResponse): flyteidl.admin.DynamicNodeWorkflowResponse; + + /** + * Encodes the specified DynamicNodeWorkflowResponse message. Does not implicitly {@link flyteidl.admin.DynamicNodeWorkflowResponse.verify|verify} messages. + * @param message DynamicNodeWorkflowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDynamicNodeWorkflowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DynamicNodeWorkflowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DynamicNodeWorkflowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.DynamicNodeWorkflowResponse; + + /** + * Verifies a DynamicNodeWorkflowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EmailMessage. */ + interface IEmailMessage { + + /** EmailMessage recipientsEmail */ + recipientsEmail?: (string[]|null); + + /** EmailMessage senderEmail */ + senderEmail?: (string|null); + + /** EmailMessage subjectLine */ + subjectLine?: (string|null); + + /** EmailMessage body */ + body?: (string|null); + } + + /** Represents an EmailMessage. */ + class EmailMessage implements IEmailMessage { + + /** + * Constructs a new EmailMessage. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IEmailMessage); + + /** EmailMessage recipientsEmail. */ + public recipientsEmail: string[]; + + /** EmailMessage senderEmail. */ + public senderEmail: string; + + /** EmailMessage subjectLine. */ + public subjectLine: string; + + /** EmailMessage body. */ + public body: string; + + /** + * Creates a new EmailMessage instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailMessage instance + */ + public static create(properties?: flyteidl.admin.IEmailMessage): flyteidl.admin.EmailMessage; + + /** + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * @param message EmailMessage message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IEmailMessage, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailMessage message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.EmailMessage; + + /** + * Verifies an EmailMessage message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Domain. */ + interface IDomain { + + /** Domain id */ + id?: (string|null); + + /** Domain name */ + name?: (string|null); + } + + /** Represents a Domain. */ + class Domain implements IDomain { + + /** + * Constructs a new Domain. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IDomain); + + /** Domain id. */ + public id: string; + + /** Domain name. */ + public name: string; + + /** + * Creates a new Domain instance using the specified properties. + * @param [properties] Properties to set + * @returns Domain instance + */ + public static create(properties?: flyteidl.admin.IDomain): flyteidl.admin.Domain; + + /** + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * @param message Domain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IDomain, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Domain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Domain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Domain; + + /** + * Verifies a Domain message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Project. */ + interface IProject { + + /** Project id */ + id?: (string|null); + + /** Project name */ + name?: (string|null); + + /** Project domains */ + domains?: (flyteidl.admin.IDomain[]|null); + + /** Project description */ + description?: (string|null); + + /** Project labels */ + labels?: (flyteidl.admin.ILabels|null); + + /** Project state */ + state?: (flyteidl.admin.Project.ProjectState|null); + + /** Project org */ + org?: (string|null); + } + + /** Represents a Project. */ + class Project implements IProject { + + /** + * Constructs a new Project. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProject); + + /** Project id. */ + public id: string; + + /** Project name. */ + public name: string; + + /** Project domains. */ + public domains: flyteidl.admin.IDomain[]; + + /** Project description. */ + public description: string; + + /** Project labels. */ + public labels?: (flyteidl.admin.ILabels|null); + + /** Project state. */ + public state: flyteidl.admin.Project.ProjectState; + + /** Project org. */ + public org: string; + + /** + * Creates a new Project instance using the specified properties. + * @param [properties] Properties to set + * @returns Project instance + */ + public static create(properties?: flyteidl.admin.IProject): flyteidl.admin.Project; + + /** + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * @param message Project message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProject, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Project message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Project + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Project; + + /** + * Verifies a Project message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace Project { + + /** ProjectState enum. */ + enum ProjectState { + ACTIVE = 0, + ARCHIVED = 1, + SYSTEM_GENERATED = 2 + } + } + + /** Properties of a Projects. */ + interface IProjects { + + /** Projects projects */ + projects?: (flyteidl.admin.IProject[]|null); + + /** Projects token */ + token?: (string|null); + } + + /** Represents a Projects. */ + class Projects implements IProjects { + + /** + * Constructs a new Projects. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjects); + + /** Projects projects. */ + public projects: flyteidl.admin.IProject[]; + + /** Projects token. */ + public token: string; + + /** + * Creates a new Projects instance using the specified properties. + * @param [properties] Properties to set + * @returns Projects instance + */ + public static create(properties?: flyteidl.admin.IProjects): flyteidl.admin.Projects; + + /** + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. + * @param message Projects message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjects, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Projects message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Projects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Projects; + + /** + * Verifies a Projects message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectListRequest. */ + interface IProjectListRequest { + + /** ProjectListRequest limit */ + limit?: (number|null); + + /** ProjectListRequest token */ + token?: (string|null); + + /** ProjectListRequest filters */ + filters?: (string|null); + + /** ProjectListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + + /** ProjectListRequest org */ + org?: (string|null); + } + + /** Represents a ProjectListRequest. */ + class ProjectListRequest implements IProjectListRequest { + + /** + * Constructs a new ProjectListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectListRequest); + + /** ProjectListRequest limit. */ + public limit: number; + + /** ProjectListRequest token. */ + public token: string; + + /** ProjectListRequest filters. */ + public filters: string; + + /** ProjectListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** ProjectListRequest org. */ + public org: string; + + /** + * Creates a new ProjectListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectListRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectListRequest): flyteidl.admin.ProjectListRequest; + + /** + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * @param message ProjectListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectListRequest; + + /** + * Verifies a ProjectListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectRegisterRequest. */ + interface IProjectRegisterRequest { + + /** ProjectRegisterRequest project */ + project?: (flyteidl.admin.IProject|null); + } + + /** Represents a ProjectRegisterRequest. */ + class ProjectRegisterRequest implements IProjectRegisterRequest { + + /** + * Constructs a new ProjectRegisterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectRegisterRequest); + + /** ProjectRegisterRequest project. */ + public project?: (flyteidl.admin.IProject|null); + + /** + * Creates a new ProjectRegisterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectRegisterRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectRegisterRequest): flyteidl.admin.ProjectRegisterRequest; + + /** + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * @param message ProjectRegisterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterRequest; + + /** + * Verifies a ProjectRegisterRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectRegisterResponse. */ + interface IProjectRegisterResponse { + } + + /** Represents a ProjectRegisterResponse. */ + class ProjectRegisterResponse implements IProjectRegisterResponse { + + /** + * Constructs a new ProjectRegisterResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectRegisterResponse); + + /** + * Creates a new ProjectRegisterResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectRegisterResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectRegisterResponse): flyteidl.admin.ProjectRegisterResponse; + + /** + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * @param message ProjectRegisterResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectRegisterResponse; + + /** + * Verifies a ProjectRegisterResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectUpdateResponse. */ + interface IProjectUpdateResponse { + } + + /** Represents a ProjectUpdateResponse. */ + class ProjectUpdateResponse implements IProjectUpdateResponse { + + /** + * Constructs a new ProjectUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectUpdateResponse); + + /** + * Creates a new ProjectUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectUpdateResponse): flyteidl.admin.ProjectUpdateResponse; + + /** + * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. + * @param message ProjectUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectUpdateResponse; + + /** + * Verifies a ProjectUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributes. */ + interface IProjectAttributes { + + /** ProjectAttributes project */ + project?: (string|null); + + /** ProjectAttributes matchingAttributes */ + matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** ProjectAttributes org */ + org?: (string|null); + } + + /** Represents a ProjectAttributes. */ + class ProjectAttributes implements IProjectAttributes { + + /** + * Constructs a new ProjectAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributes); + + /** ProjectAttributes project. */ + public project: string; + + /** ProjectAttributes matchingAttributes. */ + public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** ProjectAttributes org. */ + public org: string; + + /** + * Creates a new ProjectAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributes instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributes): flyteidl.admin.ProjectAttributes; + + /** + * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. + * @param message ProjectAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributes; + + /** + * Verifies a ProjectAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesUpdateRequest. */ + interface IProjectAttributesUpdateRequest { + + /** ProjectAttributesUpdateRequest attributes */ + attributes?: (flyteidl.admin.IProjectAttributes|null); + } + + /** Represents a ProjectAttributesUpdateRequest. */ + class ProjectAttributesUpdateRequest implements IProjectAttributesUpdateRequest { + + /** + * Constructs a new ProjectAttributesUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesUpdateRequest); + + /** ProjectAttributesUpdateRequest attributes. */ + public attributes?: (flyteidl.admin.IProjectAttributes|null); + + /** + * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesUpdateRequest): flyteidl.admin.ProjectAttributesUpdateRequest; + + /** + * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. + * @param message ProjectAttributesUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesUpdateRequest; + + /** + * Verifies a ProjectAttributesUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesUpdateResponse. */ + interface IProjectAttributesUpdateResponse { + } + + /** Represents a ProjectAttributesUpdateResponse. */ + class ProjectAttributesUpdateResponse implements IProjectAttributesUpdateResponse { + + /** + * Constructs a new ProjectAttributesUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesUpdateResponse); + + /** + * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesUpdateResponse): flyteidl.admin.ProjectAttributesUpdateResponse; + + /** + * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. + * @param message ProjectAttributesUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesUpdateResponse; + + /** + * Verifies a ProjectAttributesUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesGetRequest. */ + interface IProjectAttributesGetRequest { + + /** ProjectAttributesGetRequest project */ + project?: (string|null); + + /** ProjectAttributesGetRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** ProjectAttributesGetRequest org */ + org?: (string|null); + } + + /** Represents a ProjectAttributesGetRequest. */ + class ProjectAttributesGetRequest implements IProjectAttributesGetRequest { + + /** + * Constructs a new ProjectAttributesGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesGetRequest); + + /** ProjectAttributesGetRequest project. */ + public project: string; + + /** ProjectAttributesGetRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** ProjectAttributesGetRequest org. */ + public org: string; + + /** + * Creates a new ProjectAttributesGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesGetRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesGetRequest): flyteidl.admin.ProjectAttributesGetRequest; + + /** + * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. + * @param message ProjectAttributesGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesGetRequest; + + /** + * Verifies a ProjectAttributesGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesGetResponse. */ + interface IProjectAttributesGetResponse { + + /** ProjectAttributesGetResponse attributes */ + attributes?: (flyteidl.admin.IProjectAttributes|null); + } + + /** Represents a ProjectAttributesGetResponse. */ + class ProjectAttributesGetResponse implements IProjectAttributesGetResponse { + + /** + * Constructs a new ProjectAttributesGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesGetResponse); + + /** ProjectAttributesGetResponse attributes. */ + public attributes?: (flyteidl.admin.IProjectAttributes|null); + + /** + * Creates a new ProjectAttributesGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesGetResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesGetResponse): flyteidl.admin.ProjectAttributesGetResponse; + + /** + * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. + * @param message ProjectAttributesGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesGetResponse; + + /** + * Verifies a ProjectAttributesGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesDeleteRequest. */ + interface IProjectAttributesDeleteRequest { + + /** ProjectAttributesDeleteRequest project */ + project?: (string|null); + + /** ProjectAttributesDeleteRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** ProjectAttributesDeleteRequest org */ + org?: (string|null); + } + + /** Represents a ProjectAttributesDeleteRequest. */ + class ProjectAttributesDeleteRequest implements IProjectAttributesDeleteRequest { + + /** + * Constructs a new ProjectAttributesDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesDeleteRequest); + + /** ProjectAttributesDeleteRequest project. */ + public project: string; + + /** ProjectAttributesDeleteRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** ProjectAttributesDeleteRequest org. */ + public org: string; + + /** + * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesDeleteRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesDeleteRequest): flyteidl.admin.ProjectAttributesDeleteRequest; + + /** + * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. + * @param message ProjectAttributesDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesDeleteRequest; + + /** + * Verifies a ProjectAttributesDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectAttributesDeleteResponse. */ + interface IProjectAttributesDeleteResponse { + } + + /** Represents a ProjectAttributesDeleteResponse. */ + class ProjectAttributesDeleteResponse implements IProjectAttributesDeleteResponse { + + /** + * Constructs a new ProjectAttributesDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectAttributesDeleteResponse); + + /** + * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectAttributesDeleteResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectAttributesDeleteResponse): flyteidl.admin.ProjectAttributesDeleteResponse; + + /** + * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. + * @param message ProjectAttributesDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectAttributesDeleteResponse; + + /** + * Verifies a ProjectAttributesDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributes. */ + interface IProjectDomainAttributes { + + /** ProjectDomainAttributes project */ + project?: (string|null); + + /** ProjectDomainAttributes domain */ + domain?: (string|null); + + /** ProjectDomainAttributes matchingAttributes */ + matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** ProjectDomainAttributes org */ + org?: (string|null); + } + + /** Represents a ProjectDomainAttributes. */ + class ProjectDomainAttributes implements IProjectDomainAttributes { + + /** + * Constructs a new ProjectDomainAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributes); + + /** ProjectDomainAttributes project. */ + public project: string; + + /** ProjectDomainAttributes domain. */ + public domain: string; + + /** ProjectDomainAttributes matchingAttributes. */ + public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** ProjectDomainAttributes org. */ + public org: string; + + /** + * Creates a new ProjectDomainAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributes instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributes): flyteidl.admin.ProjectDomainAttributes; + + /** + * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. + * @param message ProjectDomainAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributes; + + /** + * Verifies a ProjectDomainAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesUpdateRequest. */ + interface IProjectDomainAttributesUpdateRequest { + + /** ProjectDomainAttributesUpdateRequest attributes */ + attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + } + + /** Represents a ProjectDomainAttributesUpdateRequest. */ + class ProjectDomainAttributesUpdateRequest implements IProjectDomainAttributesUpdateRequest { + + /** + * Constructs a new ProjectDomainAttributesUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest); + + /** ProjectDomainAttributesUpdateRequest attributes. */ + public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + + /** + * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest): flyteidl.admin.ProjectDomainAttributesUpdateRequest; + + /** + * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. + * @param message ProjectDomainAttributesUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesUpdateRequest; + + /** + * Verifies a ProjectDomainAttributesUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesUpdateResponse. */ + interface IProjectDomainAttributesUpdateResponse { + } + + /** Represents a ProjectDomainAttributesUpdateResponse. */ + class ProjectDomainAttributesUpdateResponse implements IProjectDomainAttributesUpdateResponse { + + /** + * Constructs a new ProjectDomainAttributesUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse); + + /** + * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse): flyteidl.admin.ProjectDomainAttributesUpdateResponse; + + /** + * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. + * @param message ProjectDomainAttributesUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesUpdateResponse; + + /** + * Verifies a ProjectDomainAttributesUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesGetRequest. */ + interface IProjectDomainAttributesGetRequest { + + /** ProjectDomainAttributesGetRequest project */ + project?: (string|null); + + /** ProjectDomainAttributesGetRequest domain */ + domain?: (string|null); + + /** ProjectDomainAttributesGetRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** ProjectDomainAttributesGetRequest org */ + org?: (string|null); + } + + /** Represents a ProjectDomainAttributesGetRequest. */ + class ProjectDomainAttributesGetRequest implements IProjectDomainAttributesGetRequest { + + /** + * Constructs a new ProjectDomainAttributesGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest); + + /** ProjectDomainAttributesGetRequest project. */ + public project: string; + + /** ProjectDomainAttributesGetRequest domain. */ + public domain: string; + + /** ProjectDomainAttributesGetRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** ProjectDomainAttributesGetRequest org. */ + public org: string; + + /** + * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesGetRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest): flyteidl.admin.ProjectDomainAttributesGetRequest; + + /** + * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. + * @param message ProjectDomainAttributesGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesGetRequest; + + /** + * Verifies a ProjectDomainAttributesGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesGetResponse. */ + interface IProjectDomainAttributesGetResponse { + + /** ProjectDomainAttributesGetResponse attributes */ + attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + } + + /** Represents a ProjectDomainAttributesGetResponse. */ + class ProjectDomainAttributesGetResponse implements IProjectDomainAttributesGetResponse { + + /** + * Constructs a new ProjectDomainAttributesGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse); + + /** ProjectDomainAttributesGetResponse attributes. */ + public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); + + /** + * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesGetResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse): flyteidl.admin.ProjectDomainAttributesGetResponse; + + /** + * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. + * @param message ProjectDomainAttributesGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesGetResponse; + + /** + * Verifies a ProjectDomainAttributesGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesDeleteRequest. */ + interface IProjectDomainAttributesDeleteRequest { + + /** ProjectDomainAttributesDeleteRequest project */ + project?: (string|null); + + /** ProjectDomainAttributesDeleteRequest domain */ + domain?: (string|null); + + /** ProjectDomainAttributesDeleteRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** ProjectDomainAttributesDeleteRequest org */ + org?: (string|null); + } + + /** Represents a ProjectDomainAttributesDeleteRequest. */ + class ProjectDomainAttributesDeleteRequest implements IProjectDomainAttributesDeleteRequest { + + /** + * Constructs a new ProjectDomainAttributesDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest); + + /** ProjectDomainAttributesDeleteRequest project. */ + public project: string; + + /** ProjectDomainAttributesDeleteRequest domain. */ + public domain: string; + + /** ProjectDomainAttributesDeleteRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** ProjectDomainAttributesDeleteRequest org. */ + public org: string; + + /** + * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesDeleteRequest instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest): flyteidl.admin.ProjectDomainAttributesDeleteRequest; + + /** + * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. + * @param message ProjectDomainAttributesDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesDeleteRequest; + + /** + * Verifies a ProjectDomainAttributesDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ProjectDomainAttributesDeleteResponse. */ + interface IProjectDomainAttributesDeleteResponse { + } + + /** Represents a ProjectDomainAttributesDeleteResponse. */ + class ProjectDomainAttributesDeleteResponse implements IProjectDomainAttributesDeleteResponse { + + /** + * Constructs a new ProjectDomainAttributesDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse); + + /** + * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ProjectDomainAttributesDeleteResponse instance + */ + public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse): flyteidl.admin.ProjectDomainAttributesDeleteResponse; + + /** + * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. + * @param message ProjectDomainAttributesDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ProjectDomainAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.ProjectDomainAttributesDeleteResponse; + + /** + * Verifies a ProjectDomainAttributesDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalGetOrCreateRequest. */ + interface ISignalGetOrCreateRequest { + + /** SignalGetOrCreateRequest id */ + id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalGetOrCreateRequest type */ + type?: (flyteidl.core.ILiteralType|null); + } + + /** Represents a SignalGetOrCreateRequest. */ + class SignalGetOrCreateRequest implements ISignalGetOrCreateRequest { + + /** + * Constructs a new SignalGetOrCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalGetOrCreateRequest); + + /** SignalGetOrCreateRequest id. */ + public id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalGetOrCreateRequest type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** + * Creates a new SignalGetOrCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalGetOrCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ISignalGetOrCreateRequest): flyteidl.admin.SignalGetOrCreateRequest; + + /** + * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. + * @param message SignalGetOrCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalGetOrCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalGetOrCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalGetOrCreateRequest; + + /** + * Verifies a SignalGetOrCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalListRequest. */ + interface ISignalListRequest { + + /** SignalListRequest workflowExecutionId */ + workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** SignalListRequest limit */ + limit?: (number|null); + + /** SignalListRequest token */ + token?: (string|null); + + /** SignalListRequest filters */ + filters?: (string|null); + + /** SignalListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a SignalListRequest. */ + class SignalListRequest implements ISignalListRequest { + + /** + * Constructs a new SignalListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalListRequest); + + /** SignalListRequest workflowExecutionId. */ + public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); + + /** SignalListRequest limit. */ + public limit: number; + + /** SignalListRequest token. */ + public token: string; + + /** SignalListRequest filters. */ + public filters: string; + + /** SignalListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new SignalListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalListRequest instance + */ + public static create(properties?: flyteidl.admin.ISignalListRequest): flyteidl.admin.SignalListRequest; + + /** + * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. + * @param message SignalListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalListRequest; + + /** + * Verifies a SignalListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalList. */ + interface ISignalList { + + /** SignalList signals */ + signals?: (flyteidl.admin.ISignal[]|null); + + /** SignalList token */ + token?: (string|null); + } + + /** Represents a SignalList. */ + class SignalList implements ISignalList { + + /** + * Constructs a new SignalList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalList); + + /** SignalList signals. */ + public signals: flyteidl.admin.ISignal[]; + + /** SignalList token. */ + public token: string; + + /** + * Creates a new SignalList instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalList instance + */ + public static create(properties?: flyteidl.admin.ISignalList): flyteidl.admin.SignalList; + + /** + * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. + * @param message SignalList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalList; + + /** + * Verifies a SignalList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalSetRequest. */ + interface ISignalSetRequest { + + /** SignalSetRequest id */ + id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalSetRequest value */ + value?: (flyteidl.core.ILiteral|null); + } + + /** Represents a SignalSetRequest. */ + class SignalSetRequest implements ISignalSetRequest { + + /** + * Constructs a new SignalSetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalSetRequest); + + /** SignalSetRequest id. */ + public id?: (flyteidl.core.ISignalIdentifier|null); + + /** SignalSetRequest value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** + * Creates a new SignalSetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalSetRequest instance + */ + public static create(properties?: flyteidl.admin.ISignalSetRequest): flyteidl.admin.SignalSetRequest; + + /** + * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. + * @param message SignalSetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalSetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalSetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalSetRequest; + + /** + * Verifies a SignalSetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a SignalSetResponse. */ + interface ISignalSetResponse { + } + + /** Represents a SignalSetResponse. */ + class SignalSetResponse implements ISignalSetResponse { + + /** + * Constructs a new SignalSetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignalSetResponse); + + /** + * Creates a new SignalSetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SignalSetResponse instance + */ + public static create(properties?: flyteidl.admin.ISignalSetResponse): flyteidl.admin.SignalSetResponse; + + /** + * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. + * @param message SignalSetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignalSetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SignalSetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SignalSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.SignalSetResponse; + + /** + * Verifies a SignalSetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Signal. */ + interface ISignal { + + /** Signal id */ + id?: (flyteidl.core.ISignalIdentifier|null); + + /** Signal type */ + type?: (flyteidl.core.ILiteralType|null); + + /** Signal value */ + value?: (flyteidl.core.ILiteral|null); + } + + /** Represents a Signal. */ + class Signal implements ISignal { + + /** + * Constructs a new Signal. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ISignal); + + /** Signal id. */ + public id?: (flyteidl.core.ISignalIdentifier|null); + + /** Signal type. */ + public type?: (flyteidl.core.ILiteralType|null); + + /** Signal value. */ + public value?: (flyteidl.core.ILiteral|null); + + /** + * Creates a new Signal instance using the specified properties. + * @param [properties] Properties to set + * @returns Signal instance + */ + public static create(properties?: flyteidl.admin.ISignal): flyteidl.admin.Signal; + + /** + * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. + * @param message Signal message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ISignal, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Signal message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Signal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Signal; + + /** + * Verifies a Signal message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateRequest. */ + interface ITaskCreateRequest { + + /** TaskCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** TaskCreateRequest spec */ + spec?: (flyteidl.admin.ITaskSpec|null); + } + + /** Represents a TaskCreateRequest. */ + class TaskCreateRequest implements ITaskCreateRequest { + + /** + * Constructs a new TaskCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskCreateRequest); + + /** TaskCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** TaskCreateRequest spec. */ + public spec?: (flyteidl.admin.ITaskSpec|null); + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskCreateRequest): flyteidl.admin.TaskCreateRequest; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * @param message TaskCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateRequest; + + /** + * Verifies a TaskCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { + } + + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { + + /** + * Constructs a new TaskCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskCreateResponse); + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskCreateResponse): flyteidl.admin.TaskCreateResponse; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * @param message TaskCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCreateResponse; + + /** + * Verifies a TaskCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Task. */ + interface ITask { + + /** Task id */ + id?: (flyteidl.core.IIdentifier|null); + + /** Task closure */ + closure?: (flyteidl.admin.ITaskClosure|null); + + /** Task shortDescription */ + shortDescription?: (string|null); + } + + /** Represents a Task. */ + class Task implements ITask { + + /** + * Constructs a new Task. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITask); + + /** Task id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** Task closure. */ + public closure?: (flyteidl.admin.ITaskClosure|null); + + /** Task shortDescription. */ + public shortDescription: string; + + /** + * Creates a new Task instance using the specified properties. + * @param [properties] Properties to set + * @returns Task instance + */ + public static create(properties?: flyteidl.admin.ITask): flyteidl.admin.Task; + + /** + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * @param message Task message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITask, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Task message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Task; + + /** + * Verifies a Task message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskList. */ + interface ITaskList { + + /** TaskList tasks */ + tasks?: (flyteidl.admin.ITask[]|null); + + /** TaskList token */ + token?: (string|null); + } + + /** Represents a TaskList. */ + class TaskList implements ITaskList { + + /** + * Constructs a new TaskList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskList); + + /** TaskList tasks. */ + public tasks: flyteidl.admin.ITask[]; + + /** TaskList token. */ + public token: string; + + /** + * Creates a new TaskList instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskList instance + */ + public static create(properties?: flyteidl.admin.ITaskList): flyteidl.admin.TaskList; + + /** + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * @param message TaskList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskList; + + /** + * Verifies a TaskList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskSpec. */ + interface ITaskSpec { + + /** TaskSpec template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskSpec description */ + description?: (flyteidl.admin.IDescriptionEntity|null); + } + + /** Represents a TaskSpec. */ + class TaskSpec implements ITaskSpec { + + /** + * Constructs a new TaskSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskSpec); + + /** TaskSpec template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskSpec description. */ + public description?: (flyteidl.admin.IDescriptionEntity|null); + + /** + * Creates a new TaskSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskSpec instance + */ + public static create(properties?: flyteidl.admin.ITaskSpec): flyteidl.admin.TaskSpec; + + /** + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * @param message TaskSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskSpec; + + /** + * Verifies a TaskSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskClosure. */ + interface ITaskClosure { + + /** TaskClosure compiledTask */ + compiledTask?: (flyteidl.core.ICompiledTask|null); + + /** TaskClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a TaskClosure. */ + class TaskClosure implements ITaskClosure { + + /** + * Constructs a new TaskClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskClosure); + + /** TaskClosure compiledTask. */ + public compiledTask?: (flyteidl.core.ICompiledTask|null); + + /** TaskClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new TaskClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskClosure instance + */ + public static create(properties?: flyteidl.admin.ITaskClosure): flyteidl.admin.TaskClosure; + + /** + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * @param message TaskClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskClosure; + + /** + * Verifies a TaskClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetRequest. */ + interface ITaskExecutionGetRequest { + + /** TaskExecutionGetRequest id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a TaskExecutionGetRequest. */ + class TaskExecutionGetRequest implements ITaskExecutionGetRequest { + + /** + * Constructs a new TaskExecutionGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetRequest); + + /** TaskExecutionGetRequest id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new TaskExecutionGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetRequest): flyteidl.admin.TaskExecutionGetRequest; + + /** + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * @param message TaskExecutionGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetRequest; + + /** + * Verifies a TaskExecutionGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionListRequest. */ + interface ITaskExecutionListRequest { + + /** TaskExecutionListRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionListRequest limit */ + limit?: (number|null); + + /** TaskExecutionListRequest token */ + token?: (string|null); + + /** TaskExecutionListRequest filters */ + filters?: (string|null); + + /** TaskExecutionListRequest sortBy */ + sortBy?: (flyteidl.admin.ISort|null); + } + + /** Represents a TaskExecutionListRequest. */ + class TaskExecutionListRequest implements ITaskExecutionListRequest { + + /** + * Constructs a new TaskExecutionListRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionListRequest); + + /** TaskExecutionListRequest nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** TaskExecutionListRequest limit. */ + public limit: number; + + /** TaskExecutionListRequest token. */ + public token: string; + + /** TaskExecutionListRequest filters. */ + public filters: string; + + /** TaskExecutionListRequest sortBy. */ + public sortBy?: (flyteidl.admin.ISort|null); + + /** + * Creates a new TaskExecutionListRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionListRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionListRequest): flyteidl.admin.TaskExecutionListRequest; + + /** + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * @param message TaskExecutionListRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionListRequest; + + /** + * Verifies a TaskExecutionListRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecution. */ + interface ITaskExecution { + + /** TaskExecution id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecution inputUri */ + inputUri?: (string|null); + + /** TaskExecution closure */ + closure?: (flyteidl.admin.ITaskExecutionClosure|null); + + /** TaskExecution isParent */ + isParent?: (boolean|null); + } + + /** Represents a TaskExecution. */ + class TaskExecution implements ITaskExecution { + + /** + * Constructs a new TaskExecution. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecution); + + /** TaskExecution id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** TaskExecution inputUri. */ + public inputUri: string; + + /** TaskExecution closure. */ + public closure?: (flyteidl.admin.ITaskExecutionClosure|null); + + /** TaskExecution isParent. */ + public isParent: boolean; + + /** + * Creates a new TaskExecution instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecution instance + */ + public static create(properties?: flyteidl.admin.ITaskExecution): flyteidl.admin.TaskExecution; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * @param message TaskExecution message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecution; + + /** + * Verifies a TaskExecution message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionList. */ + interface ITaskExecutionList { + + /** TaskExecutionList taskExecutions */ + taskExecutions?: (flyteidl.admin.ITaskExecution[]|null); + + /** TaskExecutionList token */ + token?: (string|null); + } + + /** Represents a TaskExecutionList. */ + class TaskExecutionList implements ITaskExecutionList { + + /** + * Constructs a new TaskExecutionList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionList); + + /** TaskExecutionList taskExecutions. */ + public taskExecutions: flyteidl.admin.ITaskExecution[]; + + /** TaskExecutionList token. */ + public token: string; + + /** + * Creates a new TaskExecutionList instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionList instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionList): flyteidl.admin.TaskExecutionList; + + /** + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * @param message TaskExecutionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionList; + + /** + * Verifies a TaskExecutionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionClosure. */ + interface ITaskExecutionClosure { + + /** TaskExecutionClosure outputUri */ + outputUri?: (string|null); + + /** TaskExecutionClosure error */ + error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionClosure outputData */ + outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionClosure phase */ + phase?: (flyteidl.core.TaskExecution.Phase|null); + + /** TaskExecutionClosure logs */ + logs?: (flyteidl.core.ITaskLog[]|null); + + /** TaskExecutionClosure startedAt */ + startedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure duration */ + duration?: (google.protobuf.IDuration|null); + + /** TaskExecutionClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure updatedAt */ + updatedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure customInfo */ + customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionClosure reason */ + reason?: (string|null); + + /** TaskExecutionClosure taskType */ + taskType?: (string|null); + + /** TaskExecutionClosure metadata */ + metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionClosure eventVersion */ + eventVersion?: (number|null); + + /** TaskExecutionClosure reasons */ + reasons?: (flyteidl.admin.IReason[]|null); + } + + /** Represents a TaskExecutionClosure. */ + class TaskExecutionClosure implements ITaskExecutionClosure { + + /** + * Constructs a new TaskExecutionClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionClosure); + + /** TaskExecutionClosure outputUri. */ + public outputUri: string; + + /** TaskExecutionClosure error. */ + public error?: (flyteidl.core.IExecutionError|null); + + /** TaskExecutionClosure outputData. */ + public outputData?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionClosure phase. */ + public phase: flyteidl.core.TaskExecution.Phase; + + /** TaskExecutionClosure logs. */ + public logs: flyteidl.core.ITaskLog[]; + + /** TaskExecutionClosure startedAt. */ + public startedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure duration. */ + public duration?: (google.protobuf.IDuration|null); + + /** TaskExecutionClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure updatedAt. */ + public updatedAt?: (google.protobuf.ITimestamp|null); + + /** TaskExecutionClosure customInfo. */ + public customInfo?: (google.protobuf.IStruct|null); + + /** TaskExecutionClosure reason. */ + public reason: string; + + /** TaskExecutionClosure taskType. */ + public taskType: string; + + /** TaskExecutionClosure metadata. */ + public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); + + /** TaskExecutionClosure eventVersion. */ + public eventVersion: number; + + /** TaskExecutionClosure reasons. */ + public reasons: flyteidl.admin.IReason[]; + + /** TaskExecutionClosure outputResult. */ + public outputResult?: ("outputUri"|"error"|"outputData"); + + /** + * Creates a new TaskExecutionClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionClosure instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionClosure): flyteidl.admin.TaskExecutionClosure; + + /** + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * @param message TaskExecutionClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionClosure; + + /** + * Verifies a TaskExecutionClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Reason. */ + interface IReason { + + /** Reason occurredAt */ + occurredAt?: (google.protobuf.ITimestamp|null); + + /** Reason message */ + message?: (string|null); + } + + /** Represents a Reason. */ + class Reason implements IReason { + + /** + * Constructs a new Reason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IReason); + + /** Reason occurredAt. */ + public occurredAt?: (google.protobuf.ITimestamp|null); + + /** Reason message. */ + public message: string; + + /** + * Creates a new Reason instance using the specified properties. + * @param [properties] Properties to set + * @returns Reason instance + */ + public static create(properties?: flyteidl.admin.IReason): flyteidl.admin.Reason; + + /** + * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. + * @param message Reason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Reason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Reason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Reason; + + /** + * Verifies a Reason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetDataRequest. */ + interface ITaskExecutionGetDataRequest { + + /** TaskExecutionGetDataRequest id */ + id?: (flyteidl.core.ITaskExecutionIdentifier|null); + } + + /** Represents a TaskExecutionGetDataRequest. */ + class TaskExecutionGetDataRequest implements ITaskExecutionGetDataRequest { + + /** + * Constructs a new TaskExecutionGetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetDataRequest); + + /** TaskExecutionGetDataRequest id. */ + public id?: (flyteidl.core.ITaskExecutionIdentifier|null); + + /** + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetDataRequest instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetDataRequest): flyteidl.admin.TaskExecutionGetDataRequest; + + /** + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * @param message TaskExecutionGetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataRequest; + + /** + * Verifies a TaskExecutionGetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskExecutionGetDataResponse. */ + interface ITaskExecutionGetDataResponse { + + /** TaskExecutionGetDataResponse inputs */ + inputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse outputs */ + outputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse fullInputs */ + fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse fullOutputs */ + fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse flyteUrls */ + flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + } + + /** Represents a TaskExecutionGetDataResponse. */ + class TaskExecutionGetDataResponse implements ITaskExecutionGetDataResponse { + + /** + * Constructs a new TaskExecutionGetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ITaskExecutionGetDataResponse); + + /** TaskExecutionGetDataResponse inputs. */ + public inputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse outputs. */ + public outputs?: (flyteidl.admin.IUrlBlob|null); + + /** TaskExecutionGetDataResponse fullInputs. */ + public fullInputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse fullOutputs. */ + public fullOutputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskExecutionGetDataResponse flyteUrls. */ + public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); + + /** + * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskExecutionGetDataResponse instance + */ + public static create(properties?: flyteidl.admin.ITaskExecutionGetDataResponse): flyteidl.admin.TaskExecutionGetDataResponse; + + /** + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * @param message TaskExecutionGetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ITaskExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskExecutionGetDataResponse; + + /** + * Verifies a TaskExecutionGetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetVersionResponse. */ + interface IGetVersionResponse { + + /** GetVersionResponse controlPlaneVersion */ + controlPlaneVersion?: (flyteidl.admin.IVersion|null); + } + + /** Represents a GetVersionResponse. */ + class GetVersionResponse implements IGetVersionResponse { + + /** + * Constructs a new GetVersionResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetVersionResponse); + + /** GetVersionResponse controlPlaneVersion. */ + public controlPlaneVersion?: (flyteidl.admin.IVersion|null); + + /** + * Creates a new GetVersionResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionResponse instance + */ + public static create(properties?: flyteidl.admin.IGetVersionResponse): flyteidl.admin.GetVersionResponse; + + /** + * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. + * @param message GetVersionResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetVersionResponse; + + /** + * Verifies a GetVersionResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Version. */ + interface IVersion { + + /** Version Build */ + Build?: (string|null); + + /** Version Version */ + Version?: (string|null); + + /** Version BuildTime */ + BuildTime?: (string|null); + } + + /** Represents a Version. */ + class Version implements IVersion { + + /** + * Constructs a new Version. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IVersion); + + /** Version Build. */ + public Build: string; + + /** Version Version. */ + public Version: string; + + /** Version BuildTime. */ + public BuildTime: string; + + /** + * Creates a new Version instance using the specified properties. + * @param [properties] Properties to set + * @returns Version instance + */ + public static create(properties?: flyteidl.admin.IVersion): flyteidl.admin.Version; + + /** + * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. + * @param message Version message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Version message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Version; + + /** + * Verifies a Version message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetVersionRequest. */ + interface IGetVersionRequest { + } + + /** Represents a GetVersionRequest. */ + class GetVersionRequest implements IGetVersionRequest { + + /** + * Constructs a new GetVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IGetVersionRequest); + + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetVersionRequest instance + */ + public static create(properties?: flyteidl.admin.IGetVersionRequest): flyteidl.admin.GetVersionRequest; + + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. + * @param message GetVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.GetVersionRequest; + + /** + * Verifies a GetVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowCreateRequest. */ + interface IWorkflowCreateRequest { + + /** WorkflowCreateRequest id */ + id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowCreateRequest spec */ + spec?: (flyteidl.admin.IWorkflowSpec|null); + } + + /** Represents a WorkflowCreateRequest. */ + class WorkflowCreateRequest implements IWorkflowCreateRequest { + + /** + * Constructs a new WorkflowCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowCreateRequest); + + /** WorkflowCreateRequest id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** WorkflowCreateRequest spec. */ + public spec?: (flyteidl.admin.IWorkflowSpec|null); + + /** + * Creates a new WorkflowCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowCreateRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowCreateRequest): flyteidl.admin.WorkflowCreateRequest; + + /** + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * @param message WorkflowCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateRequest; + + /** + * Verifies a WorkflowCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowCreateResponse. */ + interface IWorkflowCreateResponse { + } + + /** Represents a WorkflowCreateResponse. */ + class WorkflowCreateResponse implements IWorkflowCreateResponse { + + /** + * Constructs a new WorkflowCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowCreateResponse); + + /** + * Creates a new WorkflowCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowCreateResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowCreateResponse): flyteidl.admin.WorkflowCreateResponse; + + /** + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. + * @param message WorkflowCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowCreateResponse; + + /** + * Verifies a WorkflowCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Workflow. */ + interface IWorkflow { + + /** Workflow id */ + id?: (flyteidl.core.IIdentifier|null); + + /** Workflow closure */ + closure?: (flyteidl.admin.IWorkflowClosure|null); + + /** Workflow shortDescription */ + shortDescription?: (string|null); + } + + /** Represents a Workflow. */ + class Workflow implements IWorkflow { + + /** + * Constructs a new Workflow. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflow); + + /** Workflow id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** Workflow closure. */ + public closure?: (flyteidl.admin.IWorkflowClosure|null); + + /** Workflow shortDescription. */ + public shortDescription: string; + + /** + * Creates a new Workflow instance using the specified properties. + * @param [properties] Properties to set + * @returns Workflow instance + */ + public static create(properties?: flyteidl.admin.IWorkflow): flyteidl.admin.Workflow; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * @param message Workflow message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.Workflow; + + /** + * Verifies a Workflow message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowList. */ + interface IWorkflowList { + + /** WorkflowList workflows */ + workflows?: (flyteidl.admin.IWorkflow[]|null); + + /** WorkflowList token */ + token?: (string|null); + } + + /** Represents a WorkflowList. */ + class WorkflowList implements IWorkflowList { + + /** + * Constructs a new WorkflowList. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowList); + + /** WorkflowList workflows. */ + public workflows: flyteidl.admin.IWorkflow[]; + + /** WorkflowList token. */ + public token: string; + + /** + * Creates a new WorkflowList instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowList instance + */ + public static create(properties?: flyteidl.admin.IWorkflowList): flyteidl.admin.WorkflowList; + + /** + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * @param message WorkflowList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowList; + + /** + * Verifies a WorkflowList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowSpec. */ + interface IWorkflowSpec { + + /** WorkflowSpec template */ + template?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowSpec subWorkflows */ + subWorkflows?: (flyteidl.core.IWorkflowTemplate[]|null); + + /** WorkflowSpec description */ + description?: (flyteidl.admin.IDescriptionEntity|null); + } + + /** Represents a WorkflowSpec. */ + class WorkflowSpec implements IWorkflowSpec { + + /** + * Constructs a new WorkflowSpec. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowSpec); + + /** WorkflowSpec template. */ + public template?: (flyteidl.core.IWorkflowTemplate|null); + + /** WorkflowSpec subWorkflows. */ + public subWorkflows: flyteidl.core.IWorkflowTemplate[]; + + /** WorkflowSpec description. */ + public description?: (flyteidl.admin.IDescriptionEntity|null); + + /** + * Creates a new WorkflowSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowSpec instance + */ + public static create(properties?: flyteidl.admin.IWorkflowSpec): flyteidl.admin.WorkflowSpec; + + /** + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * @param message WorkflowSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowSpec; + + /** + * Verifies a WorkflowSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowClosure. */ + interface IWorkflowClosure { + + /** WorkflowClosure compiledWorkflow */ + compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** WorkflowClosure createdAt */ + createdAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a WorkflowClosure. */ + class WorkflowClosure implements IWorkflowClosure { + + /** + * Constructs a new WorkflowClosure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowClosure); + + /** WorkflowClosure compiledWorkflow. */ + public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); + + /** WorkflowClosure createdAt. */ + public createdAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowClosure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowClosure): flyteidl.admin.WorkflowClosure; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * @param message WorkflowClosure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowClosure; + + /** + * Verifies a WorkflowClosure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowErrorExistsDifferentStructure. */ + interface IWorkflowErrorExistsDifferentStructure { + + /** WorkflowErrorExistsDifferentStructure id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowErrorExistsDifferentStructure. */ + class WorkflowErrorExistsDifferentStructure implements IWorkflowErrorExistsDifferentStructure { + + /** + * Constructs a new WorkflowErrorExistsDifferentStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure); + + /** WorkflowErrorExistsDifferentStructure id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowErrorExistsDifferentStructure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowErrorExistsDifferentStructure): flyteidl.admin.WorkflowErrorExistsDifferentStructure; + + /** + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * @param message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowErrorExistsDifferentStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowErrorExistsDifferentStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsDifferentStructure; + + /** + * Verifies a WorkflowErrorExistsDifferentStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowErrorExistsIdenticalStructure. */ + interface IWorkflowErrorExistsIdenticalStructure { + + /** WorkflowErrorExistsIdenticalStructure id */ + id?: (flyteidl.core.IIdentifier|null); + } + + /** Represents a WorkflowErrorExistsIdenticalStructure. */ + class WorkflowErrorExistsIdenticalStructure implements IWorkflowErrorExistsIdenticalStructure { + + /** + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure); + + /** WorkflowErrorExistsIdenticalStructure id. */ + public id?: (flyteidl.core.IIdentifier|null); + + /** + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowErrorExistsIdenticalStructure instance + */ + public static create(properties?: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; + + /** + * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * @param message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowErrorExistsIdenticalStructure, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowErrorExistsIdenticalStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowErrorExistsIdenticalStructure; + + /** + * Verifies a WorkflowErrorExistsIdenticalStructure message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateWorkflowFailureReason. */ + interface ICreateWorkflowFailureReason { + + /** CreateWorkflowFailureReason existsDifferentStructure */ + existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); + + /** CreateWorkflowFailureReason existsIdenticalStructure */ + existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); + } + + /** Represents a CreateWorkflowFailureReason. */ + class CreateWorkflowFailureReason implements ICreateWorkflowFailureReason { + + /** + * Constructs a new CreateWorkflowFailureReason. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.ICreateWorkflowFailureReason); + + /** CreateWorkflowFailureReason existsDifferentStructure. */ + public existsDifferentStructure?: (flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null); + + /** CreateWorkflowFailureReason existsIdenticalStructure. */ + public existsIdenticalStructure?: (flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null); + + /** CreateWorkflowFailureReason reason. */ + public reason?: ("existsDifferentStructure"|"existsIdenticalStructure"); + + /** + * Creates a new CreateWorkflowFailureReason instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateWorkflowFailureReason instance + */ + public static create(properties?: flyteidl.admin.ICreateWorkflowFailureReason): flyteidl.admin.CreateWorkflowFailureReason; + + /** + * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. + * @param message CreateWorkflowFailureReason message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.ICreateWorkflowFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateWorkflowFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.CreateWorkflowFailureReason; + + /** + * Verifies a CreateWorkflowFailureReason message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributes. */ + interface IWorkflowAttributes { + + /** WorkflowAttributes project */ + project?: (string|null); + + /** WorkflowAttributes domain */ + domain?: (string|null); + + /** WorkflowAttributes workflow */ + workflow?: (string|null); + + /** WorkflowAttributes matchingAttributes */ + matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** WorkflowAttributes org */ + org?: (string|null); + } + + /** Represents a WorkflowAttributes. */ + class WorkflowAttributes implements IWorkflowAttributes { + + /** + * Constructs a new WorkflowAttributes. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributes); + + /** WorkflowAttributes project. */ + public project: string; + + /** WorkflowAttributes domain. */ + public domain: string; + + /** WorkflowAttributes workflow. */ + public workflow: string; + + /** WorkflowAttributes matchingAttributes. */ + public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); + + /** WorkflowAttributes org. */ + public org: string; + + /** + * Creates a new WorkflowAttributes instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributes instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributes): flyteidl.admin.WorkflowAttributes; + + /** + * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. + * @param message WorkflowAttributes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributes; + + /** + * Verifies a WorkflowAttributes message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesUpdateRequest. */ + interface IWorkflowAttributesUpdateRequest { + + /** WorkflowAttributesUpdateRequest attributes */ + attributes?: (flyteidl.admin.IWorkflowAttributes|null); + } + + /** Represents a WorkflowAttributesUpdateRequest. */ + class WorkflowAttributesUpdateRequest implements IWorkflowAttributesUpdateRequest { + + /** + * Constructs a new WorkflowAttributesUpdateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest); + + /** WorkflowAttributesUpdateRequest attributes. */ + public attributes?: (flyteidl.admin.IWorkflowAttributes|null); + + /** + * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesUpdateRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest): flyteidl.admin.WorkflowAttributesUpdateRequest; + + /** + * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. + * @param message WorkflowAttributesUpdateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesUpdateRequest; + + /** + * Verifies a WorkflowAttributesUpdateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesUpdateResponse. */ + interface IWorkflowAttributesUpdateResponse { + } + + /** Represents a WorkflowAttributesUpdateResponse. */ + class WorkflowAttributesUpdateResponse implements IWorkflowAttributesUpdateResponse { + + /** + * Constructs a new WorkflowAttributesUpdateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse); + + /** + * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesUpdateResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse): flyteidl.admin.WorkflowAttributesUpdateResponse; + + /** + * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. + * @param message WorkflowAttributesUpdateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesUpdateResponse; + + /** + * Verifies a WorkflowAttributesUpdateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesGetRequest. */ + interface IWorkflowAttributesGetRequest { + + /** WorkflowAttributesGetRequest project */ + project?: (string|null); + + /** WorkflowAttributesGetRequest domain */ + domain?: (string|null); + + /** WorkflowAttributesGetRequest workflow */ + workflow?: (string|null); + + /** WorkflowAttributesGetRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** WorkflowAttributesGetRequest org */ + org?: (string|null); + } + + /** Represents a WorkflowAttributesGetRequest. */ + class WorkflowAttributesGetRequest implements IWorkflowAttributesGetRequest { + + /** + * Constructs a new WorkflowAttributesGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesGetRequest); + + /** WorkflowAttributesGetRequest project. */ + public project: string; + + /** WorkflowAttributesGetRequest domain. */ + public domain: string; + + /** WorkflowAttributesGetRequest workflow. */ + public workflow: string; + + /** WorkflowAttributesGetRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** WorkflowAttributesGetRequest org. */ + public org: string; + + /** + * Creates a new WorkflowAttributesGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesGetRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesGetRequest): flyteidl.admin.WorkflowAttributesGetRequest; + + /** + * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. + * @param message WorkflowAttributesGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesGetRequest; + + /** + * Verifies a WorkflowAttributesGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesGetResponse. */ + interface IWorkflowAttributesGetResponse { + + /** WorkflowAttributesGetResponse attributes */ + attributes?: (flyteidl.admin.IWorkflowAttributes|null); + } + + /** Represents a WorkflowAttributesGetResponse. */ + class WorkflowAttributesGetResponse implements IWorkflowAttributesGetResponse { + + /** + * Constructs a new WorkflowAttributesGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesGetResponse); + + /** WorkflowAttributesGetResponse attributes. */ + public attributes?: (flyteidl.admin.IWorkflowAttributes|null); + + /** + * Creates a new WorkflowAttributesGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesGetResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesGetResponse): flyteidl.admin.WorkflowAttributesGetResponse; + + /** + * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. + * @param message WorkflowAttributesGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesGetResponse; + + /** + * Verifies a WorkflowAttributesGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesDeleteRequest. */ + interface IWorkflowAttributesDeleteRequest { + + /** WorkflowAttributesDeleteRequest project */ + project?: (string|null); + + /** WorkflowAttributesDeleteRequest domain */ + domain?: (string|null); + + /** WorkflowAttributesDeleteRequest workflow */ + workflow?: (string|null); + + /** WorkflowAttributesDeleteRequest resourceType */ + resourceType?: (flyteidl.admin.MatchableResource|null); + + /** WorkflowAttributesDeleteRequest org */ + org?: (string|null); + } + + /** Represents a WorkflowAttributesDeleteRequest. */ + class WorkflowAttributesDeleteRequest implements IWorkflowAttributesDeleteRequest { + + /** + * Constructs a new WorkflowAttributesDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest); + + /** WorkflowAttributesDeleteRequest project. */ + public project: string; + + /** WorkflowAttributesDeleteRequest domain. */ + public domain: string; + + /** WorkflowAttributesDeleteRequest workflow. */ + public workflow: string; + + /** WorkflowAttributesDeleteRequest resourceType. */ + public resourceType: flyteidl.admin.MatchableResource; + + /** WorkflowAttributesDeleteRequest org. */ + public org: string; + + /** + * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesDeleteRequest instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest): flyteidl.admin.WorkflowAttributesDeleteRequest; + + /** + * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. + * @param message WorkflowAttributesDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesDeleteRequest; + + /** + * Verifies a WorkflowAttributesDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a WorkflowAttributesDeleteResponse. */ + interface IWorkflowAttributesDeleteResponse { + } + + /** Represents a WorkflowAttributesDeleteResponse. */ + class WorkflowAttributesDeleteResponse implements IWorkflowAttributesDeleteResponse { + + /** + * Constructs a new WorkflowAttributesDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse); + + /** + * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns WorkflowAttributesDeleteResponse instance + */ + public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse): flyteidl.admin.WorkflowAttributesDeleteResponse; + + /** + * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. + * @param message WorkflowAttributesDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns WorkflowAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.WorkflowAttributesDeleteResponse; + + /** + * Verifies a WorkflowAttributesDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Namespace service. */ + namespace service { + + /** Represents an AdminService */ + class AdminService extends $protobuf.rpc.Service { + + /** + * Constructs a new AdminService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AdminService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AdminService; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + */ + public createTask(request: flyteidl.admin.ITaskCreateRequest, callback: flyteidl.service.AdminService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.admin.ITaskCreateRequest): Promise; + + /** + * Calls GetTask. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Task + */ + public getTask(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListTaskIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListTaskIdsCallback): void; + + /** + * Calls ListTaskIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListTasks. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskList + */ + public listTasks(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListTasksCallback): void; + + /** + * Calls ListTasks. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listTasks(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls CreateWorkflow. + * @param request WorkflowCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowCreateResponse + */ + public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest, callback: flyteidl.service.AdminService.CreateWorkflowCallback): void; + + /** + * Calls CreateWorkflow. + * @param request WorkflowCreateRequest message or plain object + * @returns Promise + */ + public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest): Promise; + + /** + * Calls GetWorkflow. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Workflow + */ + public getWorkflow(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetWorkflowCallback): void; + + /** + * Calls GetWorkflow. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getWorkflow(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListWorkflowIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListWorkflowIdsCallback): void; + + /** + * Calls ListWorkflowIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListWorkflows. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowList + */ + public listWorkflows(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListWorkflowsCallback): void; + + /** + * Calls ListWorkflows. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listWorkflows(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls CreateLaunchPlan. + * @param request LaunchPlanCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse + */ + public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest, callback: flyteidl.service.AdminService.CreateLaunchPlanCallback): void; + + /** + * Calls CreateLaunchPlan. + * @param request LaunchPlanCreateRequest message or plain object + * @returns Promise + */ + public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest): Promise; + + /** + * Calls GetLaunchPlan. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlan + */ + public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetLaunchPlanCallback): void; + + /** + * Calls GetLaunchPlan. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls GetActiveLaunchPlan. + * @param request ActiveLaunchPlanRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlan + */ + public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest, callback: flyteidl.service.AdminService.GetActiveLaunchPlanCallback): void; + + /** + * Calls GetActiveLaunchPlan. + * @param request ActiveLaunchPlanRequest message or plain object + * @returns Promise + */ + public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest): Promise; + + /** + * Calls ListActiveLaunchPlans. + * @param request ActiveLaunchPlanListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanList + */ + public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest, callback: flyteidl.service.AdminService.ListActiveLaunchPlansCallback): void; + + /** + * Calls ListActiveLaunchPlans. + * @param request ActiveLaunchPlanListRequest message or plain object + * @returns Promise + */ + public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest): Promise; + + /** + * Calls ListLaunchPlanIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + */ + public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListLaunchPlanIdsCallback): void; + + /** + * Calls ListLaunchPlanIds. + * @param request NamedEntityIdentifierListRequest message or plain object + * @returns Promise + */ + public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; + + /** + * Calls ListLaunchPlans. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanList + */ + public listLaunchPlans(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListLaunchPlansCallback): void; + + /** + * Calls ListLaunchPlans. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listLaunchPlans(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls UpdateLaunchPlan. + * @param request LaunchPlanUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse + */ + public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest, callback: flyteidl.service.AdminService.UpdateLaunchPlanCallback): void; + + /** + * Calls UpdateLaunchPlan. + * @param request LaunchPlanUpdateRequest message or plain object + * @returns Promise + */ + public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest): Promise; + + /** + * Calls CreateExecution. + * @param request ExecutionCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public createExecution(request: flyteidl.admin.IExecutionCreateRequest, callback: flyteidl.service.AdminService.CreateExecutionCallback): void; + + /** + * Calls CreateExecution. + * @param request ExecutionCreateRequest message or plain object + * @returns Promise + */ + public createExecution(request: flyteidl.admin.IExecutionCreateRequest): Promise; + + /** + * Calls RelaunchExecution. + * @param request ExecutionRelaunchRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest, callback: flyteidl.service.AdminService.RelaunchExecutionCallback): void; + + /** + * Calls RelaunchExecution. + * @param request ExecutionRelaunchRequest message or plain object + * @returns Promise + */ + public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest): Promise; + + /** + * Calls RecoverExecution. + * @param request ExecutionRecoverRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse + */ + public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest, callback: flyteidl.service.AdminService.RecoverExecutionCallback): void; + + /** + * Calls RecoverExecution. + * @param request ExecutionRecoverRequest message or plain object + * @returns Promise + */ + public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest): Promise; + + /** + * Calls GetExecution. + * @param request WorkflowExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution + */ + public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest, callback: flyteidl.service.AdminService.GetExecutionCallback): void; + + /** + * Calls GetExecution. + * @param request WorkflowExecutionGetRequest message or plain object + * @returns Promise + */ + public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest): Promise; + + /** + * Calls UpdateExecution. + * @param request ExecutionUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionUpdateResponse + */ + public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest, callback: flyteidl.service.AdminService.UpdateExecutionCallback): void; + + /** + * Calls UpdateExecution. + * @param request ExecutionUpdateRequest message or plain object + * @returns Promise + */ + public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest): Promise; + + /** + * Calls GetExecutionData. + * @param request WorkflowExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse + */ + public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetExecutionDataCallback): void; + + /** + * Calls GetExecutionData. + * @param request WorkflowExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest): Promise; + + /** + * Calls ListExecutions. + * @param request ResourceListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionList + */ + public listExecutions(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListExecutionsCallback): void; + + /** + * Calls ListExecutions. + * @param request ResourceListRequest message or plain object + * @returns Promise + */ + public listExecutions(request: flyteidl.admin.IResourceListRequest): Promise; + + /** + * Calls TerminateExecution. + * @param request ExecutionTerminateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecutionTerminateResponse + */ + public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest, callback: flyteidl.service.AdminService.TerminateExecutionCallback): void; + + /** + * Calls TerminateExecution. + * @param request ExecutionTerminateRequest message or plain object + * @returns Promise + */ + public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest): Promise; + + /** + * Calls GetNodeExecution. + * @param request NodeExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecution + */ + public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest, callback: flyteidl.service.AdminService.GetNodeExecutionCallback): void; + + /** + * Calls GetNodeExecution. + * @param request NodeExecutionGetRequest message or plain object + * @returns Promise + */ + public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest): Promise; + + /** + * Calls GetDynamicNodeWorkflow. + * @param request GetDynamicNodeWorkflowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DynamicNodeWorkflowResponse + */ + public getDynamicNodeWorkflow(request: flyteidl.admin.IGetDynamicNodeWorkflowRequest, callback: flyteidl.service.AdminService.GetDynamicNodeWorkflowCallback): void; + + /** + * Calls GetDynamicNodeWorkflow. + * @param request GetDynamicNodeWorkflowRequest message or plain object + * @returns Promise + */ + public getDynamicNodeWorkflow(request: flyteidl.admin.IGetDynamicNodeWorkflowRequest): Promise; + + /** + * Calls ListNodeExecutions. + * @param request NodeExecutionListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionList + */ + public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsCallback): void; + + /** + * Calls ListNodeExecutions. + * @param request NodeExecutionListRequest message or plain object + * @returns Promise + */ + public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest): Promise; + + /** + * Calls ListNodeExecutionsForTask. + * @param request NodeExecutionForTaskListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionList + */ + public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback): void; + + /** + * Calls ListNodeExecutionsForTask. + * @param request NodeExecutionForTaskListRequest message or plain object + * @returns Promise + */ + public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest): Promise; + + /** + * Calls GetNodeExecutionData. + * @param request NodeExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse + */ + public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetNodeExecutionDataCallback): void; + + /** + * Calls GetNodeExecutionData. + * @param request NodeExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest): Promise; + + /** + * Calls RegisterProject. + * @param request ProjectRegisterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectRegisterResponse + */ + public registerProject(request: flyteidl.admin.IProjectRegisterRequest, callback: flyteidl.service.AdminService.RegisterProjectCallback): void; + + /** + * Calls RegisterProject. + * @param request ProjectRegisterRequest message or plain object + * @returns Promise + */ + public registerProject(request: flyteidl.admin.IProjectRegisterRequest): Promise; + + /** + * Calls UpdateProject. + * @param request Project message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectUpdateResponse + */ + public updateProject(request: flyteidl.admin.IProject, callback: flyteidl.service.AdminService.UpdateProjectCallback): void; + + /** + * Calls UpdateProject. + * @param request Project message or plain object + * @returns Promise + */ + public updateProject(request: flyteidl.admin.IProject): Promise; + + /** + * Calls ListProjects. + * @param request ProjectListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Projects + */ + public listProjects(request: flyteidl.admin.IProjectListRequest, callback: flyteidl.service.AdminService.ListProjectsCallback): void; + + /** + * Calls ListProjects. + * @param request ProjectListRequest message or plain object + * @returns Promise + */ + public listProjects(request: flyteidl.admin.IProjectListRequest): Promise; + + /** + * Calls CreateWorkflowEvent. + * @param request WorkflowExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse + */ + public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest, callback: flyteidl.service.AdminService.CreateWorkflowEventCallback): void; + + /** + * Calls CreateWorkflowEvent. + * @param request WorkflowExecutionEventRequest message or plain object + * @returns Promise + */ + public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest): Promise; + + /** + * Calls CreateNodeEvent. + * @param request NodeExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodeExecutionEventResponse + */ + public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest, callback: flyteidl.service.AdminService.CreateNodeEventCallback): void; + + /** + * Calls CreateNodeEvent. + * @param request NodeExecutionEventRequest message or plain object + * @returns Promise + */ + public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest): Promise; + + /** + * Calls CreateTaskEvent. + * @param request TaskExecutionEventRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionEventResponse + */ + public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest, callback: flyteidl.service.AdminService.CreateTaskEventCallback): void; + + /** + * Calls CreateTaskEvent. + * @param request TaskExecutionEventRequest message or plain object + * @returns Promise + */ + public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest): Promise; + + /** + * Calls GetTaskExecution. + * @param request TaskExecutionGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecution + */ + public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest, callback: flyteidl.service.AdminService.GetTaskExecutionCallback): void; + + /** + * Calls GetTaskExecution. + * @param request TaskExecutionGetRequest message or plain object + * @returns Promise + */ + public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest): Promise; + + /** + * Calls ListTaskExecutions. + * @param request TaskExecutionListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionList + */ + public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest, callback: flyteidl.service.AdminService.ListTaskExecutionsCallback): void; + + /** + * Calls ListTaskExecutions. + * @param request TaskExecutionListRequest message or plain object + * @returns Promise + */ + public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest): Promise; + + /** + * Calls GetTaskExecutionData. + * @param request TaskExecutionGetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse + */ + public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetTaskExecutionDataCallback): void; + + /** + * Calls GetTaskExecutionData. + * @param request TaskExecutionGetDataRequest message or plain object + * @returns Promise + */ + public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest): Promise; + + /** + * Calls UpdateProjectDomainAttributes. + * @param request ProjectDomainAttributesUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse + */ + public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback): void; + + /** + * Calls UpdateProjectDomainAttributes. + * @param request ProjectDomainAttributesUpdateRequest message or plain object + * @returns Promise + */ + public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest): Promise; + + /** + * Calls GetProjectDomainAttributes. + * @param request ProjectDomainAttributesGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse + */ + public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectDomainAttributesCallback): void; + + /** + * Calls GetProjectDomainAttributes. + * @param request ProjectDomainAttributesGetRequest message or plain object + * @returns Promise + */ + public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest): Promise; + + /** + * Calls DeleteProjectDomainAttributes. + * @param request ProjectDomainAttributesDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse + */ + public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback): void; + + /** + * Calls DeleteProjectDomainAttributes. + * @param request ProjectDomainAttributesDeleteRequest message or plain object + * @returns Promise + */ + public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest): Promise; + + /** + * Calls UpdateProjectAttributes. + * @param request ProjectAttributesUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse + */ + public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectAttributesCallback): void; + + /** + * Calls UpdateProjectAttributes. + * @param request ProjectAttributesUpdateRequest message or plain object + * @returns Promise + */ + public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest): Promise; + + /** + * Calls GetProjectAttributes. + * @param request ProjectAttributesGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse + */ + public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectAttributesCallback): void; + + /** + * Calls GetProjectAttributes. + * @param request ProjectAttributesGetRequest message or plain object + * @returns Promise + */ + public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest): Promise; + + /** + * Calls DeleteProjectAttributes. + * @param request ProjectAttributesDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse + */ + public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectAttributesCallback): void; + + /** + * Calls DeleteProjectAttributes. + * @param request ProjectAttributesDeleteRequest message or plain object + * @returns Promise + */ + public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest): Promise; + + /** + * Calls UpdateWorkflowAttributes. + * @param request WorkflowAttributesUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse + */ + public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateWorkflowAttributesCallback): void; + + /** + * Calls UpdateWorkflowAttributes. + * @param request WorkflowAttributesUpdateRequest message or plain object + * @returns Promise + */ + public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest): Promise; + + /** + * Calls GetWorkflowAttributes. + * @param request WorkflowAttributesGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse + */ + public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest, callback: flyteidl.service.AdminService.GetWorkflowAttributesCallback): void; + + /** + * Calls GetWorkflowAttributes. + * @param request WorkflowAttributesGetRequest message or plain object + * @returns Promise + */ + public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest): Promise; + + /** + * Calls DeleteWorkflowAttributes. + * @param request WorkflowAttributesDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse + */ + public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteWorkflowAttributesCallback): void; + + /** + * Calls DeleteWorkflowAttributes. + * @param request WorkflowAttributesDeleteRequest message or plain object + * @returns Promise + */ + public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest): Promise; + + /** + * Calls ListMatchableAttributes. + * @param request ListMatchableAttributesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse + */ + public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest, callback: flyteidl.service.AdminService.ListMatchableAttributesCallback): void; + + /** + * Calls ListMatchableAttributes. + * @param request ListMatchableAttributesRequest message or plain object + * @returns Promise + */ + public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest): Promise; + + /** + * Calls ListNamedEntities. + * @param request NamedEntityListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityList + */ + public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest, callback: flyteidl.service.AdminService.ListNamedEntitiesCallback): void; + + /** + * Calls ListNamedEntities. + * @param request NamedEntityListRequest message or plain object + * @returns Promise + */ + public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest): Promise; + + /** + * Calls GetNamedEntity. + * @param request NamedEntityGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntity + */ + public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest, callback: flyteidl.service.AdminService.GetNamedEntityCallback): void; + + /** + * Calls GetNamedEntity. + * @param request NamedEntityGetRequest message or plain object + * @returns Promise + */ + public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest): Promise; + + /** + * Calls UpdateNamedEntity. + * @param request NamedEntityUpdateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse + */ + public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest, callback: flyteidl.service.AdminService.UpdateNamedEntityCallback): void; + + /** + * Calls UpdateNamedEntity. + * @param request NamedEntityUpdateRequest message or plain object + * @returns Promise + */ + public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest): Promise; + + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetVersionResponse + */ + public getVersion(request: flyteidl.admin.IGetVersionRequest, callback: flyteidl.service.AdminService.GetVersionCallback): void; + + /** + * Calls GetVersion. + * @param request GetVersionRequest message or plain object + * @returns Promise + */ + public getVersion(request: flyteidl.admin.IGetVersionRequest): Promise; + + /** + * Calls GetDescriptionEntity. + * @param request ObjectGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DescriptionEntity + */ + public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetDescriptionEntityCallback): void; + + /** + * Calls GetDescriptionEntity. + * @param request ObjectGetRequest message or plain object + * @returns Promise + */ + public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest): Promise; + + /** + * Calls ListDescriptionEntities. + * @param request DescriptionEntityListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DescriptionEntityList + */ + public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest, callback: flyteidl.service.AdminService.ListDescriptionEntitiesCallback): void; + + /** + * Calls ListDescriptionEntities. + * @param request DescriptionEntityListRequest message or plain object + * @returns Promise + */ + public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest): Promise; + + /** + * Calls GetExecutionMetrics. + * @param request WorkflowExecutionGetMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse + */ + public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, callback: flyteidl.service.AdminService.GetExecutionMetricsCallback): void; + + /** + * Calls GetExecutionMetrics. + * @param request WorkflowExecutionGetMetricsRequest message or plain object + * @returns Promise + */ + public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): Promise; + } + + namespace AdminService { + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTask}. + * @param error Error, if any + * @param [response] TaskCreateResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.TaskCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTask}. + * @param error Error, if any + * @param [response] Task + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.Task) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListTaskIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * @param error Error, if any + * @param [response] TaskList + */ + type ListTasksCallback = (error: (Error|null), response?: flyteidl.admin.TaskList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * @param error Error, if any + * @param [response] WorkflowCreateResponse + */ + type CreateWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * @param error Error, if any + * @param [response] Workflow + */ + type GetWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.Workflow) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListWorkflowIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * @param error Error, if any + * @param [response] WorkflowList + */ + type ListWorkflowsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlanCreateResponse + */ + type CreateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlan + */ + type GetLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlan + */ + type GetActiveLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. + * @param error Error, if any + * @param [response] LaunchPlanList + */ + type ListActiveLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * @param error Error, if any + * @param [response] NamedEntityIdentifierList + */ + type ListLaunchPlanIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * @param error Error, if any + * @param [response] LaunchPlanList + */ + type ListLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * @param error Error, if any + * @param [response] LaunchPlanUpdateResponse + */ + type UpdateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type CreateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type RelaunchExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. + * @param error Error, if any + * @param [response] ExecutionCreateResponse + */ + type RecoverExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * @param error Error, if any + * @param [response] Execution + */ + type GetExecutionCallback = (error: (Error|null), response?: flyteidl.admin.Execution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. + * @param error Error, if any + * @param [response] ExecutionUpdateResponse + */ + type UpdateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * @param error Error, if any + * @param [response] WorkflowExecutionGetDataResponse + */ + type GetExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * @param error Error, if any + * @param [response] ExecutionList + */ + type ListExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * @param error Error, if any + * @param [response] ExecutionTerminateResponse + */ + type TerminateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionTerminateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * @param error Error, if any + * @param [response] NodeExecution + */ + type GetNodeExecutionCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getDynamicNodeWorkflow}. + * @param error Error, if any + * @param [response] DynamicNodeWorkflowResponse + */ + type GetDynamicNodeWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.DynamicNodeWorkflowResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * @param error Error, if any + * @param [response] NodeExecutionList + */ + type ListNodeExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * @param error Error, if any + * @param [response] NodeExecutionList + */ + type ListNodeExecutionsForTaskCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * @param error Error, if any + * @param [response] NodeExecutionGetDataResponse + */ + type GetNodeExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * @param error Error, if any + * @param [response] ProjectRegisterResponse + */ + type RegisterProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectRegisterResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProject}. + * @param error Error, if any + * @param [response] ProjectUpdateResponse + */ + type UpdateProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * @param error Error, if any + * @param [response] Projects + */ + type ListProjectsCallback = (error: (Error|null), response?: flyteidl.admin.Projects) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * @param error Error, if any + * @param [response] WorkflowExecutionEventResponse + */ + type CreateWorkflowEventCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * @param error Error, if any + * @param [response] NodeExecutionEventResponse + */ + type CreateNodeEventCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * @param error Error, if any + * @param [response] TaskExecutionEventResponse + */ + type CreateTaskEventCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionEventResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * @param error Error, if any + * @param [response] TaskExecution + */ + type GetTaskExecutionCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecution) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * @param error Error, if any + * @param [response] TaskExecutionList + */ + type ListTaskExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * @param error Error, if any + * @param [response] TaskExecutionGetDataResponse + */ + type GetTaskExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionGetDataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. + * @param error Error, if any + * @param [response] ProjectDomainAttributesUpdateResponse + */ + type UpdateProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. + * @param error Error, if any + * @param [response] ProjectDomainAttributesGetResponse + */ + type GetProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. + * @param error Error, if any + * @param [response] ProjectDomainAttributesDeleteResponse + */ + type DeleteProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesDeleteResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. + * @param error Error, if any + * @param [response] ProjectAttributesUpdateResponse + */ + type UpdateProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. + * @param error Error, if any + * @param [response] ProjectAttributesGetResponse + */ + type GetProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. + * @param error Error, if any + * @param [response] ProjectAttributesDeleteResponse + */ + type DeleteProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesDeleteResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. + * @param error Error, if any + * @param [response] WorkflowAttributesUpdateResponse + */ + type UpdateWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. + * @param error Error, if any + * @param [response] WorkflowAttributesGetResponse + */ + type GetWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. + * @param error Error, if any + * @param [response] WorkflowAttributesDeleteResponse + */ + type DeleteWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesDeleteResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. + * @param error Error, if any + * @param [response] ListMatchableAttributesResponse + */ + type ListMatchableAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ListMatchableAttributesResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. + * @param error Error, if any + * @param [response] NamedEntityList + */ + type ListNamedEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. + * @param error Error, if any + * @param [response] NamedEntity + */ + type GetNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntity) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. + * @param error Error, if any + * @param [response] NamedEntityUpdateResponse + */ + type UpdateNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityUpdateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getVersion}. + * @param error Error, if any + * @param [response] GetVersionResponse + */ + type GetVersionCallback = (error: (Error|null), response?: flyteidl.admin.GetVersionResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. + * @param error Error, if any + * @param [response] DescriptionEntity + */ + type GetDescriptionEntityCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntity) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. + * @param error Error, if any + * @param [response] DescriptionEntityList + */ + type ListDescriptionEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntityList) => void; + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. + * @param error Error, if any + * @param [response] WorkflowExecutionGetMetricsResponse + */ + type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; + } + + /** Represents a SyncAgentService */ + class SyncAgentService extends $protobuf.rpc.Service { + + /** + * Constructs a new SyncAgentService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SyncAgentService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SyncAgentService; + + /** + * Calls ExecuteTaskSync. + * @param request ExecuteTaskSyncRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse + */ + public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest, callback: flyteidl.service.SyncAgentService.ExecuteTaskSyncCallback): void; + + /** + * Calls ExecuteTaskSync. + * @param request ExecuteTaskSyncRequest message or plain object + * @returns Promise + */ + public executeTaskSync(request: flyteidl.admin.IExecuteTaskSyncRequest): Promise; + } + + namespace SyncAgentService { + + /** + * Callback as used by {@link flyteidl.service.SyncAgentService#executeTaskSync}. + * @param error Error, if any + * @param [response] ExecuteTaskSyncResponse + */ + type ExecuteTaskSyncCallback = (error: (Error|null), response?: flyteidl.admin.ExecuteTaskSyncResponse) => void; + } + + /** Represents an AsyncAgentService */ + class AsyncAgentService extends $protobuf.rpc.Service { + + /** + * Constructs a new AsyncAgentService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AsyncAgentService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; + + /** + * Calls CreateTask. + * @param request CreateTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateTaskResponse + */ + public createTask(request: flyteidl.admin.ICreateTaskRequest, callback: flyteidl.service.AsyncAgentService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request CreateTaskRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.admin.ICreateTaskRequest): Promise; + + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskResponse + */ + public getTask(request: flyteidl.admin.IGetTaskRequest, callback: flyteidl.service.AsyncAgentService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request GetTaskRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.admin.IGetTaskRequest): Promise; + + /** + * Calls DeleteTask. + * @param request DeleteTaskRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DeleteTaskResponse + */ + public deleteTask(request: flyteidl.admin.IDeleteTaskRequest, callback: flyteidl.service.AsyncAgentService.DeleteTaskCallback): void; + + /** + * Calls DeleteTask. + * @param request DeleteTaskRequest message or plain object + * @returns Promise + */ + public deleteTask(request: flyteidl.admin.IDeleteTaskRequest): Promise; + + /** + * Calls GetTaskMetrics. + * @param request GetTaskMetricsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskMetricsResponse + */ + public getTaskMetrics(request: flyteidl.admin.IGetTaskMetricsRequest, callback: flyteidl.service.AsyncAgentService.GetTaskMetricsCallback): void; + + /** + * Calls GetTaskMetrics. + * @param request GetTaskMetricsRequest message or plain object + * @returns Promise + */ + public getTaskMetrics(request: flyteidl.admin.IGetTaskMetricsRequest): Promise; + + /** + * Calls GetTaskLogs. + * @param request GetTaskLogsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetTaskLogsResponse + */ + public getTaskLogs(request: flyteidl.admin.IGetTaskLogsRequest, callback: flyteidl.service.AsyncAgentService.GetTaskLogsCallback): void; + + /** + * Calls GetTaskLogs. + * @param request GetTaskLogsRequest message or plain object + * @returns Promise + */ + public getTaskLogs(request: flyteidl.admin.IGetTaskLogsRequest): Promise; + } + + namespace AsyncAgentService { + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. + * @param error Error, if any + * @param [response] CreateTaskResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.CreateTaskResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. + * @param error Error, if any + * @param [response] GetTaskResponse + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. + * @param error Error, if any + * @param [response] DeleteTaskResponse + */ + type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.admin.DeleteTaskResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskMetrics}. + * @param error Error, if any + * @param [response] GetTaskMetricsResponse + */ + type GetTaskMetricsCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskMetricsResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskLogs}. + * @param error Error, if any + * @param [response] GetTaskLogsResponse + */ + type GetTaskLogsCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskLogsResponse) => void; + } + + /** Represents an AgentMetadataService */ + class AgentMetadataService extends $protobuf.rpc.Service { + + /** + * Constructs a new AgentMetadataService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AgentMetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AgentMetadataService; + + /** + * Calls GetAgent. + * @param request GetAgentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetAgentResponse + */ + public getAgent(request: flyteidl.admin.IGetAgentRequest, callback: flyteidl.service.AgentMetadataService.GetAgentCallback): void; + + /** + * Calls GetAgent. + * @param request GetAgentRequest message or plain object + * @returns Promise + */ + public getAgent(request: flyteidl.admin.IGetAgentRequest): Promise; + + /** + * Calls ListAgents. + * @param request ListAgentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAgentsResponse + */ + public listAgents(request: flyteidl.admin.IListAgentsRequest, callback: flyteidl.service.AgentMetadataService.ListAgentsCallback): void; + + /** + * Calls ListAgents. + * @param request ListAgentsRequest message or plain object + * @returns Promise + */ + public listAgents(request: flyteidl.admin.IListAgentsRequest): Promise; + } + + namespace AgentMetadataService { + + /** + * Callback as used by {@link flyteidl.service.AgentMetadataService#getAgent}. + * @param error Error, if any + * @param [response] GetAgentResponse + */ + type GetAgentCallback = (error: (Error|null), response?: flyteidl.admin.GetAgentResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AgentMetadataService#listAgents}. + * @param error Error, if any + * @param [response] ListAgentsResponse + */ + type ListAgentsCallback = (error: (Error|null), response?: flyteidl.admin.ListAgentsResponse) => void; + } + + /** Properties of a OAuth2MetadataRequest. */ + interface IOAuth2MetadataRequest { + } + + /** Represents a OAuth2MetadataRequest. */ + class OAuth2MetadataRequest implements IOAuth2MetadataRequest { + + /** + * Constructs a new OAuth2MetadataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); + + /** + * Creates a new OAuth2MetadataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2MetadataRequest instance + */ + public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; + + /** + * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. + * @param message OAuth2MetadataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2MetadataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataRequest; + + /** + * Verifies a OAuth2MetadataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a OAuth2MetadataResponse. */ + interface IOAuth2MetadataResponse { + + /** OAuth2MetadataResponse issuer */ + issuer?: (string|null); + + /** OAuth2MetadataResponse authorizationEndpoint */ + authorizationEndpoint?: (string|null); + + /** OAuth2MetadataResponse tokenEndpoint */ + tokenEndpoint?: (string|null); + + /** OAuth2MetadataResponse responseTypesSupported */ + responseTypesSupported?: (string[]|null); + + /** OAuth2MetadataResponse scopesSupported */ + scopesSupported?: (string[]|null); + + /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ + tokenEndpointAuthMethodsSupported?: (string[]|null); + + /** OAuth2MetadataResponse jwksUri */ + jwksUri?: (string|null); + + /** OAuth2MetadataResponse codeChallengeMethodsSupported */ + codeChallengeMethodsSupported?: (string[]|null); + + /** OAuth2MetadataResponse grantTypesSupported */ + grantTypesSupported?: (string[]|null); + + /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ + deviceAuthorizationEndpoint?: (string|null); + } + + /** Represents a OAuth2MetadataResponse. */ + class OAuth2MetadataResponse implements IOAuth2MetadataResponse { + + /** + * Constructs a new OAuth2MetadataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); + + /** OAuth2MetadataResponse issuer. */ + public issuer: string; + + /** OAuth2MetadataResponse authorizationEndpoint. */ + public authorizationEndpoint: string; + + /** OAuth2MetadataResponse tokenEndpoint. */ + public tokenEndpoint: string; + + /** OAuth2MetadataResponse responseTypesSupported. */ + public responseTypesSupported: string[]; + + /** OAuth2MetadataResponse scopesSupported. */ + public scopesSupported: string[]; + + /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. */ + public tokenEndpointAuthMethodsSupported: string[]; + + /** OAuth2MetadataResponse jwksUri. */ + public jwksUri: string; + + /** OAuth2MetadataResponse codeChallengeMethodsSupported. */ + public codeChallengeMethodsSupported: string[]; + + /** OAuth2MetadataResponse grantTypesSupported. */ + public grantTypesSupported: string[]; + + /** OAuth2MetadataResponse deviceAuthorizationEndpoint. */ + public deviceAuthorizationEndpoint: string; + + /** + * Creates a new OAuth2MetadataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns OAuth2MetadataResponse instance + */ + public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; + + /** + * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. + * @param message OAuth2MetadataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OAuth2MetadataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.OAuth2MetadataResponse; + + /** + * Verifies a OAuth2MetadataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PublicClientAuthConfigRequest. */ + interface IPublicClientAuthConfigRequest { + } + + /** Represents a PublicClientAuthConfigRequest. */ + class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { + + /** + * Constructs a new PublicClientAuthConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); + + /** + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicClientAuthConfigRequest instance + */ + public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; + + /** + * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. + * @param message PublicClientAuthConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublicClientAuthConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigRequest; + + /** + * Verifies a PublicClientAuthConfigRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PublicClientAuthConfigResponse. */ + interface IPublicClientAuthConfigResponse { + + /** PublicClientAuthConfigResponse clientId */ + clientId?: (string|null); + + /** PublicClientAuthConfigResponse redirectUri */ + redirectUri?: (string|null); + + /** PublicClientAuthConfigResponse scopes */ + scopes?: (string[]|null); + + /** PublicClientAuthConfigResponse authorizationMetadataKey */ + authorizationMetadataKey?: (string|null); + + /** PublicClientAuthConfigResponse serviceHttpEndpoint */ + serviceHttpEndpoint?: (string|null); + + /** PublicClientAuthConfigResponse audience */ + audience?: (string|null); + } + + /** Represents a PublicClientAuthConfigResponse. */ + class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { + + /** + * Constructs a new PublicClientAuthConfigResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); + + /** PublicClientAuthConfigResponse clientId. */ + public clientId: string; + + /** PublicClientAuthConfigResponse redirectUri. */ + public redirectUri: string; + + /** PublicClientAuthConfigResponse scopes. */ + public scopes: string[]; + + /** PublicClientAuthConfigResponse authorizationMetadataKey. */ + public authorizationMetadataKey: string; + + /** PublicClientAuthConfigResponse serviceHttpEndpoint. */ + public serviceHttpEndpoint: string; + + /** PublicClientAuthConfigResponse audience. */ + public audience: string; + + /** + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PublicClientAuthConfigResponse instance + */ + public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; + + /** + * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. + * @param message PublicClientAuthConfigResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PublicClientAuthConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PublicClientAuthConfigResponse; + + /** + * Verifies a PublicClientAuthConfigResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Represents an AuthMetadataService */ + class AuthMetadataService extends $protobuf.rpc.Service { + + /** + * Constructs a new AuthMetadataService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new AuthMetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthMetadataService; + + /** + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and OAuth2MetadataResponse + */ + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest, callback: flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback): void; + + /** + * Calls GetOAuth2Metadata. + * @param request OAuth2MetadataRequest message or plain object + * @returns Promise + */ + public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; + + /** + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse + */ + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; + + /** + * Calls GetPublicClientConfig. + * @param request PublicClientAuthConfigRequest message or plain object + * @returns Promise + */ + public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; + } + + namespace AuthMetadataService { + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. + * @param error Error, if any + * @param [response] OAuth2MetadataResponse + */ + type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. + * @param error Error, if any + * @param [response] PublicClientAuthConfigResponse + */ + type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; + } + + /** Properties of a CreateUploadLocationResponse. */ + interface ICreateUploadLocationResponse { + + /** CreateUploadLocationResponse signedUrl */ + signedUrl?: (string|null); + + /** CreateUploadLocationResponse nativeUrl */ + nativeUrl?: (string|null); + + /** CreateUploadLocationResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a CreateUploadLocationResponse. */ + class CreateUploadLocationResponse implements ICreateUploadLocationResponse { + + /** + * Constructs a new CreateUploadLocationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); + + /** CreateUploadLocationResponse signedUrl. */ + public signedUrl: string; + + /** CreateUploadLocationResponse nativeUrl. */ + public nativeUrl: string; + + /** CreateUploadLocationResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new CreateUploadLocationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateUploadLocationResponse instance + */ + public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; + + /** + * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. + * @param message CreateUploadLocationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateUploadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationResponse; + + /** + * Verifies a CreateUploadLocationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateUploadLocationRequest. */ + interface ICreateUploadLocationRequest { + + /** CreateUploadLocationRequest project */ + project?: (string|null); + + /** CreateUploadLocationRequest domain */ + domain?: (string|null); + + /** CreateUploadLocationRequest filename */ + filename?: (string|null); + + /** CreateUploadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + + /** CreateUploadLocationRequest contentMd5 */ + contentMd5?: (Uint8Array|null); + + /** CreateUploadLocationRequest filenameRoot */ + filenameRoot?: (string|null); + } + + /** Represents a CreateUploadLocationRequest. */ + class CreateUploadLocationRequest implements ICreateUploadLocationRequest { + + /** + * Constructs a new CreateUploadLocationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); + + /** CreateUploadLocationRequest project. */ + public project: string; + + /** CreateUploadLocationRequest domain. */ + public domain: string; + + /** CreateUploadLocationRequest filename. */ + public filename: string; + + /** CreateUploadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** CreateUploadLocationRequest contentMd5. */ + public contentMd5: Uint8Array; + + /** CreateUploadLocationRequest filenameRoot. */ + public filenameRoot: string; + + /** + * Creates a new CreateUploadLocationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateUploadLocationRequest instance + */ + public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; + + /** + * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. + * @param message CreateUploadLocationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateUploadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateUploadLocationRequest; + + /** + * Verifies a CreateUploadLocationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateDownloadLocationRequest. */ + interface ICreateDownloadLocationRequest { + + /** CreateDownloadLocationRequest nativeUrl */ + nativeUrl?: (string|null); + + /** CreateDownloadLocationRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + } + + /** Represents a CreateDownloadLocationRequest. */ + class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { + + /** + * Constructs a new CreateDownloadLocationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); + + /** CreateDownloadLocationRequest nativeUrl. */ + public nativeUrl: string; + + /** CreateDownloadLocationRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** + * Creates a new CreateDownloadLocationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLocationRequest instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; + + /** + * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. + * @param message CreateDownloadLocationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationRequest; + + /** + * Verifies a CreateDownloadLocationRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateDownloadLocationResponse. */ + interface ICreateDownloadLocationResponse { + + /** CreateDownloadLocationResponse signedUrl */ + signedUrl?: (string|null); + + /** CreateDownloadLocationResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a CreateDownloadLocationResponse. */ + class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { + + /** + * Constructs a new CreateDownloadLocationResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); + + /** CreateDownloadLocationResponse signedUrl. */ + public signedUrl: string; + + /** CreateDownloadLocationResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new CreateDownloadLocationResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLocationResponse instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; + + /** + * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. + * @param message CreateDownloadLocationResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLocationResponse; + + /** + * Verifies a CreateDownloadLocationResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** ArtifactType enum. */ + enum ArtifactType { + ARTIFACT_TYPE_UNDEFINED = 0, + ARTIFACT_TYPE_DECK = 1 + } + + /** Properties of a CreateDownloadLinkRequest. */ + interface ICreateDownloadLinkRequest { + + /** CreateDownloadLinkRequest artifactType */ + artifactType?: (flyteidl.service.ArtifactType|null); + + /** CreateDownloadLinkRequest expiresIn */ + expiresIn?: (google.protobuf.IDuration|null); + + /** CreateDownloadLinkRequest nodeExecutionId */ + nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + } + + /** Represents a CreateDownloadLinkRequest. */ + class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { + + /** + * Constructs a new CreateDownloadLinkRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLinkRequest); + + /** CreateDownloadLinkRequest artifactType. */ + public artifactType: flyteidl.service.ArtifactType; + + /** CreateDownloadLinkRequest expiresIn. */ + public expiresIn?: (google.protobuf.IDuration|null); + + /** CreateDownloadLinkRequest nodeExecutionId. */ + public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); + + /** CreateDownloadLinkRequest source. */ + public source?: "nodeExecutionId"; + + /** + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLinkRequest instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; + + /** + * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. + * @param message CreateDownloadLinkRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkRequest; + + /** + * Verifies a CreateDownloadLinkRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CreateDownloadLinkResponse. */ + interface ICreateDownloadLinkResponse { + + /** CreateDownloadLinkResponse signedUrl */ + signedUrl?: (string[]|null); + + /** CreateDownloadLinkResponse expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + + /** CreateDownloadLinkResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + } + + /** Represents a CreateDownloadLinkResponse. */ + class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { + + /** + * Constructs a new CreateDownloadLinkResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); + + /** CreateDownloadLinkResponse signedUrl. */ + public signedUrl: string[]; + + /** CreateDownloadLinkResponse expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** CreateDownloadLinkResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** + * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateDownloadLinkResponse instance + */ + public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; + + /** + * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. + * @param message CreateDownloadLinkResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateDownloadLinkResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.CreateDownloadLinkResponse; + + /** + * Verifies a CreateDownloadLinkResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a PreSignedURLs. */ + interface IPreSignedURLs { + + /** PreSignedURLs signedUrl */ + signedUrl?: (string[]|null); + + /** PreSignedURLs expiresAt */ + expiresAt?: (google.protobuf.ITimestamp|null); + } + + /** Represents a PreSignedURLs. */ + class PreSignedURLs implements IPreSignedURLs { + + /** + * Constructs a new PreSignedURLs. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IPreSignedURLs); + + /** PreSignedURLs signedUrl. */ + public signedUrl: string[]; + + /** PreSignedURLs expiresAt. */ + public expiresAt?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new PreSignedURLs instance using the specified properties. + * @param [properties] Properties to set + * @returns PreSignedURLs instance + */ + public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; + + /** + * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. + * @param message PreSignedURLs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PreSignedURLs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PreSignedURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.PreSignedURLs; + + /** + * Verifies a PreSignedURLs message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetDataRequest. */ + interface IGetDataRequest { + + /** GetDataRequest flyteUrl */ + flyteUrl?: (string|null); + } + + /** Represents a GetDataRequest. */ + class GetDataRequest implements IGetDataRequest { + + /** + * Constructs a new GetDataRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IGetDataRequest); + + /** GetDataRequest flyteUrl. */ + public flyteUrl: string; + + /** + * Creates a new GetDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataRequest instance + */ + public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; + + /** + * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. + * @param message GetDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataRequest; + + /** + * Verifies a GetDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a GetDataResponse. */ + interface IGetDataResponse { + + /** GetDataResponse literalMap */ + literalMap?: (flyteidl.core.ILiteralMap|null); + + /** GetDataResponse preSignedUrls */ + preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal */ + literal?: (flyteidl.core.ILiteral|null); + } + + /** Represents a GetDataResponse. */ + class GetDataResponse implements IGetDataResponse { + + /** + * Constructs a new GetDataResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IGetDataResponse); + + /** GetDataResponse literalMap. */ + public literalMap?: (flyteidl.core.ILiteralMap|null); + + /** GetDataResponse preSignedUrls. */ + public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); + + /** GetDataResponse literal. */ + public literal?: (flyteidl.core.ILiteral|null); + + /** GetDataResponse data. */ + public data?: ("literalMap"|"preSignedUrls"|"literal"); + + /** + * Creates a new GetDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetDataResponse instance + */ + public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; + + /** + * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. + * @param message GetDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.GetDataResponse; + + /** + * Verifies a GetDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Represents a DataProxyService */ + class DataProxyService extends $protobuf.rpc.Service { + + /** + * Constructs a new DataProxyService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new DataProxyService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxyService; + + /** + * Calls CreateUploadLocation. + * @param request CreateUploadLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse + */ + public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxyService.CreateUploadLocationCallback): void; + + /** + * Calls CreateUploadLocation. + * @param request CreateUploadLocationRequest message or plain object + * @returns Promise + */ + public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; + + /** + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse + */ + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; + + /** + * Calls CreateDownloadLocation. + * @param request CreateDownloadLocationRequest message or plain object + * @returns Promise + */ + public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; + + /** + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse + */ + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; + + /** + * Calls CreateDownloadLink. + * @param request CreateDownloadLinkRequest message or plain object + * @returns Promise + */ + public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; + + /** + * Calls GetData. + * @param request GetDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and GetDataResponse + */ + public getData(request: flyteidl.service.IGetDataRequest, callback: flyteidl.service.DataProxyService.GetDataCallback): void; + + /** + * Calls GetData. + * @param request GetDataRequest message or plain object + * @returns Promise + */ + public getData(request: flyteidl.service.IGetDataRequest): Promise; + } + + namespace DataProxyService { + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. + * @param error Error, if any + * @param [response] CreateUploadLocationResponse + */ + type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. + * @param error Error, if any + * @param [response] CreateDownloadLocationResponse + */ + type CreateDownloadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLocationResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. + * @param error Error, if any + * @param [response] CreateDownloadLinkResponse + */ + type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#getData}. + * @param error Error, if any + * @param [response] GetDataResponse + */ + type GetDataCallback = (error: (Error|null), response?: flyteidl.service.GetDataResponse) => void; + } + + /** Represents an ExternalPluginService */ + class ExternalPluginService extends $protobuf.rpc.Service { + + /** + * Constructs a new ExternalPluginService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ExternalPluginService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ExternalPluginService; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskCreateResponse + */ + public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.ExternalPluginService.CreateTaskCallback): void; + + /** + * Calls CreateTask. + * @param request TaskCreateRequest message or plain object + * @returns Promise + */ + public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; + + /** + * Calls GetTask. + * @param request TaskGetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskGetResponse + */ + public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.ExternalPluginService.GetTaskCallback): void; + + /** + * Calls GetTask. + * @param request TaskGetRequest message or plain object + * @returns Promise + */ + public getTask(request: flyteidl.service.ITaskGetRequest): Promise; + + /** + * Calls DeleteTask. + * @param request TaskDeleteRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TaskDeleteResponse + */ + public deleteTask(request: flyteidl.service.ITaskDeleteRequest, callback: flyteidl.service.ExternalPluginService.DeleteTaskCallback): void; + + /** + * Calls DeleteTask. + * @param request TaskDeleteRequest message or plain object + * @returns Promise + */ + public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; + } + + namespace ExternalPluginService { + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. + * @param error Error, if any + * @param [response] TaskCreateResponse + */ + type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. + * @param error Error, if any + * @param [response] TaskGetResponse + */ + type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. + * @param error Error, if any + * @param [response] TaskDeleteResponse + */ + type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskDeleteResponse) => void; + } + + /** State enum. */ + enum State { + RETRYABLE_FAILURE = 0, + PERMANENT_FAILURE = 1, + PENDING = 2, + RUNNING = 3, + SUCCEEDED = 4 + } + + /** Properties of a TaskCreateRequest. */ + interface ITaskCreateRequest { + + /** TaskCreateRequest inputs */ + inputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskCreateRequest template */ + template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskCreateRequest outputPrefix */ + outputPrefix?: (string|null); + } + + /** Represents a TaskCreateRequest. */ + class TaskCreateRequest implements ITaskCreateRequest { + + /** + * Constructs a new TaskCreateRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskCreateRequest); + + /** TaskCreateRequest inputs. */ + public inputs?: (flyteidl.core.ILiteralMap|null); + + /** TaskCreateRequest template. */ + public template?: (flyteidl.core.ITaskTemplate|null); + + /** TaskCreateRequest outputPrefix. */ + public outputPrefix: string; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateRequest instance + */ + public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. + * @param message TaskCreateRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateRequest; + + /** + * Verifies a TaskCreateRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskCreateResponse. */ + interface ITaskCreateResponse { + + /** TaskCreateResponse jobId */ + jobId?: (string|null); + } + + /** Represents a TaskCreateResponse. */ + class TaskCreateResponse implements ITaskCreateResponse { + + /** + * Constructs a new TaskCreateResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskCreateResponse); + + /** TaskCreateResponse jobId. */ + public jobId: string; + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskCreateResponse instance + */ + public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. + * @param message TaskCreateResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskCreateResponse; + + /** + * Verifies a TaskCreateResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskGetRequest. */ + interface ITaskGetRequest { + + /** TaskGetRequest taskType */ + taskType?: (string|null); + + /** TaskGetRequest jobId */ + jobId?: (string|null); + } + + /** Represents a TaskGetRequest. */ + class TaskGetRequest implements ITaskGetRequest { + + /** + * Constructs a new TaskGetRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskGetRequest); + + /** TaskGetRequest taskType. */ + public taskType: string; + + /** TaskGetRequest jobId. */ + public jobId: string; + + /** + * Creates a new TaskGetRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGetRequest instance + */ + public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; + + /** + * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. + * @param message TaskGetRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskGetRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetRequest; + + /** + * Verifies a TaskGetRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskGetResponse. */ + interface ITaskGetResponse { + + /** TaskGetResponse state */ + state?: (flyteidl.service.State|null); + + /** TaskGetResponse outputs */ + outputs?: (flyteidl.core.ILiteralMap|null); + } + + /** Represents a TaskGetResponse. */ + class TaskGetResponse implements ITaskGetResponse { + + /** + * Constructs a new TaskGetResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskGetResponse); + + /** TaskGetResponse state. */ + public state: flyteidl.service.State; + + /** TaskGetResponse outputs. */ + public outputs?: (flyteidl.core.ILiteralMap|null); + + /** + * Creates a new TaskGetResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskGetResponse instance + */ + public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; + + /** + * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. + * @param message TaskGetResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskGetResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskGetResponse; + + /** + * Verifies a TaskGetResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskDeleteRequest. */ + interface ITaskDeleteRequest { + + /** TaskDeleteRequest taskType */ + taskType?: (string|null); + + /** TaskDeleteRequest jobId */ + jobId?: (string|null); + } + + /** Represents a TaskDeleteRequest. */ + class TaskDeleteRequest implements ITaskDeleteRequest { + + /** + * Constructs a new TaskDeleteRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskDeleteRequest); + + /** TaskDeleteRequest taskType. */ + public taskType: string; + + /** TaskDeleteRequest jobId. */ + public jobId: string; + + /** + * Creates a new TaskDeleteRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskDeleteRequest instance + */ + public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; + + /** + * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * @param message TaskDeleteRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteRequest; + + /** + * Verifies a TaskDeleteRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a TaskDeleteResponse. */ + interface ITaskDeleteResponse { + } + + /** Represents a TaskDeleteResponse. */ + class TaskDeleteResponse implements ITaskDeleteResponse { + + /** + * Constructs a new TaskDeleteResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.ITaskDeleteResponse); + + /** + * Creates a new TaskDeleteResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns TaskDeleteResponse instance + */ + public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; + + /** + * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * @param message TaskDeleteResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TaskDeleteResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TaskDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.TaskDeleteResponse; + + /** + * Verifies a TaskDeleteResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UserInfoRequest. */ + interface IUserInfoRequest { + } + + /** Represents a UserInfoRequest. */ + class UserInfoRequest implements IUserInfoRequest { + + /** + * Constructs a new UserInfoRequest. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IUserInfoRequest); + + /** + * Creates a new UserInfoRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UserInfoRequest instance + */ + public static create(properties?: flyteidl.service.IUserInfoRequest): flyteidl.service.UserInfoRequest; + + /** + * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. + * @param message UserInfoRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IUserInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserInfoRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.UserInfoRequest; + + /** + * Verifies a UserInfoRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UserInfoResponse. */ + interface IUserInfoResponse { + + /** UserInfoResponse subject */ + subject?: (string|null); + + /** UserInfoResponse name */ + name?: (string|null); + + /** UserInfoResponse preferredUsername */ + preferredUsername?: (string|null); + + /** UserInfoResponse givenName */ + givenName?: (string|null); + + /** UserInfoResponse familyName */ + familyName?: (string|null); + + /** UserInfoResponse email */ + email?: (string|null); + + /** UserInfoResponse picture */ + picture?: (string|null); + + /** UserInfoResponse additionalClaims */ + additionalClaims?: (google.protobuf.IStruct|null); + } + + /** Represents a UserInfoResponse. */ + class UserInfoResponse implements IUserInfoResponse { + + /** + * Constructs a new UserInfoResponse. + * @param [properties] Properties to set + */ + constructor(properties?: flyteidl.service.IUserInfoResponse); + + /** UserInfoResponse subject. */ + public subject: string; + + /** UserInfoResponse name. */ + public name: string; + + /** UserInfoResponse preferredUsername. */ + public preferredUsername: string; + + /** UserInfoResponse givenName. */ + public givenName: string; + + /** UserInfoResponse familyName. */ + public familyName: string; + + /** UserInfoResponse email. */ + public email: string; + + /** UserInfoResponse picture. */ + public picture: string; + + /** UserInfoResponse additionalClaims. */ + public additionalClaims?: (google.protobuf.IStruct|null); + + /** + * Creates a new UserInfoResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UserInfoResponse instance + */ + public static create(properties?: flyteidl.service.IUserInfoResponse): flyteidl.service.UserInfoResponse; + + /** + * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. + * @param message UserInfoResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: flyteidl.service.IUserInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UserInfoResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.service.UserInfoResponse; + + /** + * Verifies a UserInfoResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Represents an IdentityService */ + class IdentityService extends $protobuf.rpc.Service { + + /** + * Constructs a new IdentityService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IdentityService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IdentityService; + + /** + * Calls UserInfo. + * @param request UserInfoRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UserInfoResponse + */ + public userInfo(request: flyteidl.service.IUserInfoRequest, callback: flyteidl.service.IdentityService.UserInfoCallback): void; + + /** + * Calls UserInfo. + * @param request UserInfoRequest message or plain object + * @returns Promise + */ + public userInfo(request: flyteidl.service.IUserInfoRequest): Promise; + } + + namespace IdentityService { + + /** + * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. + * @param error Error, if any + * @param [response] UserInfoResponse + */ + type UserInfoCallback = (error: (Error|null), response?: flyteidl.service.UserInfoResponse) => void; + } + + /** Represents a SignalService */ + class SignalService extends $protobuf.rpc.Service { + + /** + * Constructs a new SignalService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SignalService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SignalService; + + /** + * Calls GetOrCreateSignal. + * @param request SignalGetOrCreateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Signal + */ + public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest, callback: flyteidl.service.SignalService.GetOrCreateSignalCallback): void; + + /** + * Calls GetOrCreateSignal. + * @param request SignalGetOrCreateRequest message or plain object + * @returns Promise + */ + public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest): Promise; + + /** + * Calls ListSignals. + * @param request SignalListRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SignalList + */ + public listSignals(request: flyteidl.admin.ISignalListRequest, callback: flyteidl.service.SignalService.ListSignalsCallback): void; + + /** + * Calls ListSignals. + * @param request SignalListRequest message or plain object + * @returns Promise + */ + public listSignals(request: flyteidl.admin.ISignalListRequest): Promise; + + /** + * Calls SetSignal. + * @param request SignalSetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SignalSetResponse + */ + public setSignal(request: flyteidl.admin.ISignalSetRequest, callback: flyteidl.service.SignalService.SetSignalCallback): void; + + /** + * Calls SetSignal. + * @param request SignalSetRequest message or plain object + * @returns Promise + */ + public setSignal(request: flyteidl.admin.ISignalSetRequest): Promise; + } + + namespace SignalService { + + /** + * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. + * @param error Error, if any + * @param [response] Signal + */ + type GetOrCreateSignalCallback = (error: (Error|null), response?: flyteidl.admin.Signal) => void; + + /** + * Callback as used by {@link flyteidl.service.SignalService#listSignals}. + * @param error Error, if any + * @param [response] SignalList + */ + type ListSignalsCallback = (error: (Error|null), response?: flyteidl.admin.SignalList) => void; + + /** + * Callback as used by {@link flyteidl.service.SignalService#setSignal}. + * @param error Error, if any + * @param [response] SignalSetResponse + */ + type SetSignalCallback = (error: (Error|null), response?: flyteidl.admin.SignalSetResponse) => void; + } + } +} + +/** Namespace google. */ +export namespace google { + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (Long|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: Long; + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; + + /** + * Verifies a Timestamp message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Struct. */ + interface IStruct { + + /** Struct fields */ + fields?: ({ [k: string]: google.protobuf.IValue }|null); + } + + /** Represents a Struct. */ + class Struct implements IStruct { + + /** + * Constructs a new Struct. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStruct); + + /** Struct fields. */ + public fields: { [k: string]: google.protobuf.IValue }; + + /** + * Creates a new Struct instance using the specified properties. + * @param [properties] Properties to set + * @returns Struct instance + */ + public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @param message Struct message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Struct; + + /** + * Verifies a Struct message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Value. */ + interface IValue { + + /** Value nullValue */ + nullValue?: (google.protobuf.NullValue|null); + + /** Value numberValue */ + numberValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + + /** Value boolValue */ + boolValue?: (boolean|null); + + /** Value structValue */ + structValue?: (google.protobuf.IStruct|null); + + /** Value listValue */ + listValue?: (google.protobuf.IListValue|null); + } + + /** Represents a Value. */ + class Value implements IValue { + + /** + * Constructs a new Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IValue); + + /** Value nullValue. */ + public nullValue: google.protobuf.NullValue; + + /** Value numberValue. */ + public numberValue: number; + + /** Value stringValue. */ + public stringValue: string; + + /** Value boolValue. */ + public boolValue: boolean; + + /** Value structValue. */ + public structValue?: (google.protobuf.IStruct|null); + + /** Value listValue. */ + public listValue?: (google.protobuf.IListValue|null); + + /** Value kind. */ + public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + + /** + * Creates a new Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Value instance + */ + public static create(properties?: google.protobuf.IValue): google.protobuf.Value; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @param message Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Value; + + /** + * Verifies a Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** NullValue enum. */ + enum NullValue { + NULL_VALUE = 0 + } + + /** Properties of a ListValue. */ + interface IListValue { + + /** ListValue values */ + values?: (google.protobuf.IValue[]|null); + } + + /** Represents a ListValue. */ + class ListValue implements IListValue { + + /** + * Constructs a new ListValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IListValue); + + /** ListValue values. */ + public values: google.protobuf.IValue[]; + + /** + * Creates a new ListValue instance using the specified properties. + * @param [properties] Properties to set + * @returns ListValue instance + */ + public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @param message ListValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ListValue; + + /** + * Verifies a ListValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (Long|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: Long; + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration; + + /** + * Verifies a Duration message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DoubleValue. */ + interface IDoubleValue { + + /** DoubleValue value */ + value?: (number|null); + } + + /** Represents a DoubleValue. */ + class DoubleValue implements IDoubleValue { + + /** + * Constructs a new DoubleValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDoubleValue); + + /** DoubleValue value. */ + public value: number; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @param [properties] Properties to set + * @returns DoubleValue instance + */ + public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue; + + /** + * Verifies a DoubleValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FloatValue. */ + interface IFloatValue { + + /** FloatValue value */ + value?: (number|null); + } + + /** Represents a FloatValue. */ + class FloatValue implements IFloatValue { + + /** + * Constructs a new FloatValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFloatValue); + + /** FloatValue value. */ + public value: number; + + /** + * Creates a new FloatValue instance using the specified properties. + * @param [properties] Properties to set + * @returns FloatValue instance + */ + public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue; + + /** + * Verifies a FloatValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Int64Value. */ + interface IInt64Value { + + /** Int64Value value */ + value?: (Long|null); + } + + /** Represents an Int64Value. */ + class Int64Value implements IInt64Value { + + /** + * Constructs a new Int64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IInt64Value); + + /** Int64Value value. */ + public value: Long; + + /** + * Creates a new Int64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Int64Value instance + */ + public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value; + + /** + * Verifies an Int64Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UInt64Value. */ + interface IUInt64Value { + + /** UInt64Value value */ + value?: (Long|null); + } + + /** Represents a UInt64Value. */ + class UInt64Value implements IUInt64Value { + + /** + * Constructs a new UInt64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt64Value); + + /** UInt64Value value. */ + public value: Long; + + /** + * Creates a new UInt64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt64Value instance + */ + public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt64Value; + + /** + * Verifies a UInt64Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Int32Value. */ + interface IInt32Value { + + /** Int32Value value */ + value?: (number|null); + } + + /** Represents an Int32Value. */ + class Int32Value implements IInt32Value { + + /** + * Constructs a new Int32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IInt32Value); + + /** Int32Value value. */ + public value: number; + + /** + * Creates a new Int32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns Int32Value instance + */ + public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value; + + /** + * Verifies an Int32Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a UInt32Value. */ + interface IUInt32Value { + + /** UInt32Value value */ + value?: (number|null); + } + + /** Represents a UInt32Value. */ + class UInt32Value implements IUInt32Value { + + /** + * Constructs a new UInt32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt32Value); + + /** UInt32Value value. */ + public value: number; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt32Value instance + */ + public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UInt32Value; + + /** + * Verifies a UInt32Value message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BoolValue. */ + interface IBoolValue { + + /** BoolValue value */ + value?: (boolean|null); + } + + /** Represents a BoolValue. */ + class BoolValue implements IBoolValue { + + /** + * Constructs a new BoolValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBoolValue); + + /** BoolValue value. */ + public value: boolean; + + /** + * Creates a new BoolValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BoolValue instance + */ + public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BoolValue; + + /** + * Verifies a BoolValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a StringValue. */ + interface IStringValue { + + /** StringValue value */ + value?: (string|null); + } + + /** Represents a StringValue. */ + class StringValue implements IStringValue { + + /** + * Constructs a new StringValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IStringValue); + + /** StringValue value. */ + public value: string; + + /** + * Creates a new StringValue instance using the specified properties. + * @param [properties] Properties to set + * @returns StringValue instance + */ + public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue; + + /** + * Verifies a StringValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a BytesValue. */ + interface IBytesValue { + + /** BytesValue value */ + value?: (Uint8Array|null); + } + + /** Represents a BytesValue. */ + class BytesValue implements IBytesValue { + + /** + * Constructs a new BytesValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBytesValue); + + /** BytesValue value. */ + public value: Uint8Array; + + /** + * Creates a new BytesValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BytesValue instance + */ + public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.BytesValue; + + /** + * Verifies a BytesValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an Any. */ + interface IAny { + + /** Any type_url */ + type_url?: (string|null); + + /** Any value */ + value?: (Uint8Array|null); + } + + /** Represents an Any. */ + class Any implements IAny { + + /** + * Constructs a new Any. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: Uint8Array; + + /** + * Creates a new Any instance using the specified properties. + * @param [properties] Properties to set + * @returns Any instance + */ + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Any message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; + + /** + * Verifies an Any message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; + + /** + * Verifies a FileOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: Long; + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: Long; + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http; + + /** + * Verifies a Http message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule body. */ + public body: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule; + + /** + * Verifies a HttpRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + } + } +} diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js new file mode 100644 index 0000000000..500047eab0 --- /dev/null +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -0,0 +1,63176 @@ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("protobufjs/minimal")); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots.flyteidl || ($protobuf.roots.flyteidl = {}); + + $root.flyteidl = (function() { + + /** + * Namespace flyteidl. + * @exports flyteidl + * @namespace + */ + var flyteidl = {}; + + flyteidl.core = (function() { + + /** + * Namespace core. + * @memberof flyteidl + * @namespace + */ + var core = {}; + + core.ArtifactKey = (function() { + + /** + * Properties of an ArtifactKey. + * @memberof flyteidl.core + * @interface IArtifactKey + * @property {string|null} [project] ArtifactKey project + * @property {string|null} [domain] ArtifactKey domain + * @property {string|null} [name] ArtifactKey name + * @property {string|null} [org] ArtifactKey org + */ + + /** + * Constructs a new ArtifactKey. + * @memberof flyteidl.core + * @classdesc Represents an ArtifactKey. + * @implements IArtifactKey + * @constructor + * @param {flyteidl.core.IArtifactKey=} [properties] Properties to set + */ + function ArtifactKey(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArtifactKey project. + * @member {string} project + * @memberof flyteidl.core.ArtifactKey + * @instance + */ + ArtifactKey.prototype.project = ""; + + /** + * ArtifactKey domain. + * @member {string} domain + * @memberof flyteidl.core.ArtifactKey + * @instance + */ + ArtifactKey.prototype.domain = ""; + + /** + * ArtifactKey name. + * @member {string} name + * @memberof flyteidl.core.ArtifactKey + * @instance + */ + ArtifactKey.prototype.name = ""; + + /** + * ArtifactKey org. + * @member {string} org + * @memberof flyteidl.core.ArtifactKey + * @instance + */ + ArtifactKey.prototype.org = ""; + + /** + * Creates a new ArtifactKey instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArtifactKey + * @static + * @param {flyteidl.core.IArtifactKey=} [properties] Properties to set + * @returns {flyteidl.core.ArtifactKey} ArtifactKey instance + */ + ArtifactKey.create = function create(properties) { + return new ArtifactKey(properties); + }; + + /** + * Encodes the specified ArtifactKey message. Does not implicitly {@link flyteidl.core.ArtifactKey.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArtifactKey + * @static + * @param {flyteidl.core.IArtifactKey} message ArtifactKey message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactKey.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); + return writer; + }; + + /** + * Decodes an ArtifactKey message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArtifactKey + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArtifactKey} ArtifactKey + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactKey.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactKey(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArtifactKey message. + * @function verify + * @memberof flyteidl.core.ArtifactKey + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactKey.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ArtifactKey; + })(); + + core.ArtifactBindingData = (function() { + + /** + * Properties of an ArtifactBindingData. + * @memberof flyteidl.core + * @interface IArtifactBindingData + * @property {number|null} [index] ArtifactBindingData index + * @property {string|null} [partitionKey] ArtifactBindingData partitionKey + * @property {boolean|null} [bindToTimePartition] ArtifactBindingData bindToTimePartition + * @property {string|null} [transform] ArtifactBindingData transform + */ + + /** + * Constructs a new ArtifactBindingData. + * @memberof flyteidl.core + * @classdesc Represents an ArtifactBindingData. + * @implements IArtifactBindingData + * @constructor + * @param {flyteidl.core.IArtifactBindingData=} [properties] Properties to set + */ + function ArtifactBindingData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArtifactBindingData index. + * @member {number} index + * @memberof flyteidl.core.ArtifactBindingData + * @instance + */ + ArtifactBindingData.prototype.index = 0; + + /** + * ArtifactBindingData partitionKey. + * @member {string} partitionKey + * @memberof flyteidl.core.ArtifactBindingData + * @instance + */ + ArtifactBindingData.prototype.partitionKey = ""; + + /** + * ArtifactBindingData bindToTimePartition. + * @member {boolean} bindToTimePartition + * @memberof flyteidl.core.ArtifactBindingData + * @instance + */ + ArtifactBindingData.prototype.bindToTimePartition = false; + + /** + * ArtifactBindingData transform. + * @member {string} transform + * @memberof flyteidl.core.ArtifactBindingData + * @instance + */ + ArtifactBindingData.prototype.transform = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ArtifactBindingData partitionData. + * @member {"partitionKey"|"bindToTimePartition"|undefined} partitionData + * @memberof flyteidl.core.ArtifactBindingData + * @instance + */ + Object.defineProperty(ArtifactBindingData.prototype, "partitionData", { + get: $util.oneOfGetter($oneOfFields = ["partitionKey", "bindToTimePartition"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ArtifactBindingData instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArtifactBindingData + * @static + * @param {flyteidl.core.IArtifactBindingData=} [properties] Properties to set + * @returns {flyteidl.core.ArtifactBindingData} ArtifactBindingData instance + */ + ArtifactBindingData.create = function create(properties) { + return new ArtifactBindingData(properties); + }; + + /** + * Encodes the specified ArtifactBindingData message. Does not implicitly {@link flyteidl.core.ArtifactBindingData.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArtifactBindingData + * @static + * @param {flyteidl.core.IArtifactBindingData} message ArtifactBindingData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactBindingData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.index != null && message.hasOwnProperty("index")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); + if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); + if (message.bindToTimePartition != null && message.hasOwnProperty("bindToTimePartition")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.bindToTimePartition); + if (message.transform != null && message.hasOwnProperty("transform")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.transform); + return writer; + }; + + /** + * Decodes an ArtifactBindingData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArtifactBindingData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArtifactBindingData} ArtifactBindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactBindingData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactBindingData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.index = reader.uint32(); + break; + case 2: + message.partitionKey = reader.string(); + break; + case 3: + message.bindToTimePartition = reader.bool(); + break; + case 4: + message.transform = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArtifactBindingData message. + * @function verify + * @memberof flyteidl.core.ArtifactBindingData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactBindingData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) { + properties.partitionData = 1; + if (!$util.isString(message.partitionKey)) + return "partitionKey: string expected"; + } + if (message.bindToTimePartition != null && message.hasOwnProperty("bindToTimePartition")) { + if (properties.partitionData === 1) + return "partitionData: multiple values"; + properties.partitionData = 1; + if (typeof message.bindToTimePartition !== "boolean") + return "bindToTimePartition: boolean expected"; + } + if (message.transform != null && message.hasOwnProperty("transform")) + if (!$util.isString(message.transform)) + return "transform: string expected"; + return null; + }; + + return ArtifactBindingData; + })(); + + core.InputBindingData = (function() { + + /** + * Properties of an InputBindingData. + * @memberof flyteidl.core + * @interface IInputBindingData + * @property {string|null} ["var"] InputBindingData var + */ + + /** + * Constructs a new InputBindingData. + * @memberof flyteidl.core + * @classdesc Represents an InputBindingData. + * @implements IInputBindingData + * @constructor + * @param {flyteidl.core.IInputBindingData=} [properties] Properties to set + */ + function InputBindingData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InputBindingData var. + * @member {string} var + * @memberof flyteidl.core.InputBindingData + * @instance + */ + InputBindingData.prototype["var"] = ""; + + /** + * Creates a new InputBindingData instance using the specified properties. + * @function create + * @memberof flyteidl.core.InputBindingData + * @static + * @param {flyteidl.core.IInputBindingData=} [properties] Properties to set + * @returns {flyteidl.core.InputBindingData} InputBindingData instance + */ + InputBindingData.create = function create(properties) { + return new InputBindingData(properties); + }; + + /** + * Encodes the specified InputBindingData message. Does not implicitly {@link flyteidl.core.InputBindingData.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.InputBindingData + * @static + * @param {flyteidl.core.IInputBindingData} message InputBindingData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputBindingData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + return writer; + }; + + /** + * Decodes an InputBindingData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.InputBindingData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.InputBindingData} InputBindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputBindingData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.InputBindingData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an InputBindingData message. + * @function verify + * @memberof flyteidl.core.InputBindingData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InputBindingData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + return null; + }; + + return InputBindingData; + })(); + + core.LabelValue = (function() { + + /** + * Properties of a LabelValue. + * @memberof flyteidl.core + * @interface ILabelValue + * @property {string|null} [staticValue] LabelValue staticValue + * @property {google.protobuf.ITimestamp|null} [timeValue] LabelValue timeValue + * @property {flyteidl.core.IArtifactBindingData|null} [triggeredBinding] LabelValue triggeredBinding + * @property {flyteidl.core.IInputBindingData|null} [inputBinding] LabelValue inputBinding + */ + + /** + * Constructs a new LabelValue. + * @memberof flyteidl.core + * @classdesc Represents a LabelValue. + * @implements ILabelValue + * @constructor + * @param {flyteidl.core.ILabelValue=} [properties] Properties to set + */ + function LabelValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LabelValue staticValue. + * @member {string} staticValue + * @memberof flyteidl.core.LabelValue + * @instance + */ + LabelValue.prototype.staticValue = ""; + + /** + * LabelValue timeValue. + * @member {google.protobuf.ITimestamp|null|undefined} timeValue + * @memberof flyteidl.core.LabelValue + * @instance + */ + LabelValue.prototype.timeValue = null; + + /** + * LabelValue triggeredBinding. + * @member {flyteidl.core.IArtifactBindingData|null|undefined} triggeredBinding + * @memberof flyteidl.core.LabelValue + * @instance + */ + LabelValue.prototype.triggeredBinding = null; + + /** + * LabelValue inputBinding. + * @member {flyteidl.core.IInputBindingData|null|undefined} inputBinding + * @memberof flyteidl.core.LabelValue + * @instance + */ + LabelValue.prototype.inputBinding = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LabelValue value. + * @member {"staticValue"|"timeValue"|"triggeredBinding"|"inputBinding"|undefined} value + * @memberof flyteidl.core.LabelValue + * @instance + */ + Object.defineProperty(LabelValue.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["staticValue", "timeValue", "triggeredBinding", "inputBinding"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LabelValue instance using the specified properties. + * @function create + * @memberof flyteidl.core.LabelValue + * @static + * @param {flyteidl.core.ILabelValue=} [properties] Properties to set + * @returns {flyteidl.core.LabelValue} LabelValue instance + */ + LabelValue.create = function create(properties) { + return new LabelValue(properties); + }; + + /** + * Encodes the specified LabelValue message. Does not implicitly {@link flyteidl.core.LabelValue.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LabelValue + * @static + * @param {flyteidl.core.ILabelValue} message LabelValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LabelValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.staticValue != null && message.hasOwnProperty("staticValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.staticValue); + if (message.timeValue != null && message.hasOwnProperty("timeValue")) + $root.google.protobuf.Timestamp.encode(message.timeValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.triggeredBinding != null && message.hasOwnProperty("triggeredBinding")) + $root.flyteidl.core.ArtifactBindingData.encode(message.triggeredBinding, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.inputBinding != null && message.hasOwnProperty("inputBinding")) + $root.flyteidl.core.InputBindingData.encode(message.inputBinding, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LabelValue message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LabelValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LabelValue} LabelValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LabelValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LabelValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.staticValue = reader.string(); + break; + case 2: + message.timeValue = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.triggeredBinding = $root.flyteidl.core.ArtifactBindingData.decode(reader, reader.uint32()); + break; + case 4: + message.inputBinding = $root.flyteidl.core.InputBindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LabelValue message. + * @function verify + * @memberof flyteidl.core.LabelValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LabelValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.staticValue != null && message.hasOwnProperty("staticValue")) { + properties.value = 1; + if (!$util.isString(message.staticValue)) + return "staticValue: string expected"; + } + if (message.timeValue != null && message.hasOwnProperty("timeValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.timeValue); + if (error) + return "timeValue." + error; + } + } + if (message.triggeredBinding != null && message.hasOwnProperty("triggeredBinding")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.ArtifactBindingData.verify(message.triggeredBinding); + if (error) + return "triggeredBinding." + error; + } + } + if (message.inputBinding != null && message.hasOwnProperty("inputBinding")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.InputBindingData.verify(message.inputBinding); + if (error) + return "inputBinding." + error; + } + } + return null; + }; + + return LabelValue; + })(); + + core.Partitions = (function() { + + /** + * Properties of a Partitions. + * @memberof flyteidl.core + * @interface IPartitions + * @property {Object.|null} [value] Partitions value + */ + + /** + * Constructs a new Partitions. + * @memberof flyteidl.core + * @classdesc Represents a Partitions. + * @implements IPartitions + * @constructor + * @param {flyteidl.core.IPartitions=} [properties] Properties to set + */ + function Partitions(properties) { + this.value = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Partitions value. + * @member {Object.} value + * @memberof flyteidl.core.Partitions + * @instance + */ + Partitions.prototype.value = $util.emptyObject; + + /** + * Creates a new Partitions instance using the specified properties. + * @function create + * @memberof flyteidl.core.Partitions + * @static + * @param {flyteidl.core.IPartitions=} [properties] Properties to set + * @returns {flyteidl.core.Partitions} Partitions instance + */ + Partitions.create = function create(properties) { + return new Partitions(properties); + }; + + /** + * Encodes the specified Partitions message. Does not implicitly {@link flyteidl.core.Partitions.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Partitions + * @static + * @param {flyteidl.core.IPartitions} message Partitions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Partitions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + for (var keys = Object.keys(message.value), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.LabelValue.encode(message.value[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a Partitions message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Partitions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Partitions} Partitions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Partitions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Partitions(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.value === $util.emptyObject) + message.value = {}; + key = reader.string(); + reader.pos++; + message.value[key] = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Partitions message. + * @function verify + * @memberof flyteidl.core.Partitions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Partitions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!$util.isObject(message.value)) + return "value: object expected"; + var key = Object.keys(message.value); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.LabelValue.verify(message.value[key[i]]); + if (error) + return "value." + error; + } + } + return null; + }; + + return Partitions; + })(); + + core.TimePartition = (function() { + + /** + * Properties of a TimePartition. + * @memberof flyteidl.core + * @interface ITimePartition + * @property {flyteidl.core.ILabelValue|null} [value] TimePartition value + */ + + /** + * Constructs a new TimePartition. + * @memberof flyteidl.core + * @classdesc Represents a TimePartition. + * @implements ITimePartition + * @constructor + * @param {flyteidl.core.ITimePartition=} [properties] Properties to set + */ + function TimePartition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TimePartition value. + * @member {flyteidl.core.ILabelValue|null|undefined} value + * @memberof flyteidl.core.TimePartition + * @instance + */ + TimePartition.prototype.value = null; + + /** + * Creates a new TimePartition instance using the specified properties. + * @function create + * @memberof flyteidl.core.TimePartition + * @static + * @param {flyteidl.core.ITimePartition=} [properties] Properties to set + * @returns {flyteidl.core.TimePartition} TimePartition instance + */ + TimePartition.create = function create(properties) { + return new TimePartition(properties); + }; + + /** + * Encodes the specified TimePartition message. Does not implicitly {@link flyteidl.core.TimePartition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TimePartition + * @static + * @param {flyteidl.core.ITimePartition} message TimePartition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TimePartition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.LabelValue.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TimePartition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TimePartition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TimePartition} TimePartition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimePartition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TimePartition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TimePartition message. + * @function verify + * @memberof flyteidl.core.TimePartition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimePartition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.LabelValue.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + return TimePartition; + })(); + + core.ArtifactID = (function() { + + /** + * Properties of an ArtifactID. + * @memberof flyteidl.core + * @interface IArtifactID + * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ArtifactID artifactKey + * @property {string|null} [version] ArtifactID version + * @property {flyteidl.core.IPartitions|null} [partitions] ArtifactID partitions + * @property {flyteidl.core.ITimePartition|null} [timePartition] ArtifactID timePartition + */ + + /** + * Constructs a new ArtifactID. + * @memberof flyteidl.core + * @classdesc Represents an ArtifactID. + * @implements IArtifactID + * @constructor + * @param {flyteidl.core.IArtifactID=} [properties] Properties to set + */ + function ArtifactID(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArtifactID artifactKey. + * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey + * @memberof flyteidl.core.ArtifactID + * @instance + */ + ArtifactID.prototype.artifactKey = null; + + /** + * ArtifactID version. + * @member {string} version + * @memberof flyteidl.core.ArtifactID + * @instance + */ + ArtifactID.prototype.version = ""; + + /** + * ArtifactID partitions. + * @member {flyteidl.core.IPartitions|null|undefined} partitions + * @memberof flyteidl.core.ArtifactID + * @instance + */ + ArtifactID.prototype.partitions = null; + + /** + * ArtifactID timePartition. + * @member {flyteidl.core.ITimePartition|null|undefined} timePartition + * @memberof flyteidl.core.ArtifactID + * @instance + */ + ArtifactID.prototype.timePartition = null; + + /** + * Creates a new ArtifactID instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArtifactID + * @static + * @param {flyteidl.core.IArtifactID=} [properties] Properties to set + * @returns {flyteidl.core.ArtifactID} ArtifactID instance + */ + ArtifactID.create = function create(properties) { + return new ArtifactID(properties); + }; + + /** + * Encodes the specified ArtifactID message. Does not implicitly {@link flyteidl.core.ArtifactID.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArtifactID + * @static + * @param {flyteidl.core.IArtifactID} message ArtifactID message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactID.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) + $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.partitions != null && message.hasOwnProperty("partitions")) + $root.flyteidl.core.Partitions.encode(message.partitions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.timePartition != null && message.hasOwnProperty("timePartition")) + $root.flyteidl.core.TimePartition.encode(message.timePartition, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ArtifactID message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArtifactID + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArtifactID} ArtifactID + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactID.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactID(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.partitions = $root.flyteidl.core.Partitions.decode(reader, reader.uint32()); + break; + case 4: + message.timePartition = $root.flyteidl.core.TimePartition.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArtifactID message. + * @function verify + * @memberof flyteidl.core.ArtifactID + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactID.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { + var error = $root.flyteidl.core.ArtifactKey.verify(message.artifactKey); + if (error) + return "artifactKey." + error; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.partitions != null && message.hasOwnProperty("partitions")) { + var error = $root.flyteidl.core.Partitions.verify(message.partitions); + if (error) + return "partitions." + error; + } + if (message.timePartition != null && message.hasOwnProperty("timePartition")) { + var error = $root.flyteidl.core.TimePartition.verify(message.timePartition); + if (error) + return "timePartition." + error; + } + return null; + }; + + return ArtifactID; + })(); + + core.ArtifactTag = (function() { + + /** + * Properties of an ArtifactTag. + * @memberof flyteidl.core + * @interface IArtifactTag + * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ArtifactTag artifactKey + * @property {flyteidl.core.ILabelValue|null} [value] ArtifactTag value + */ + + /** + * Constructs a new ArtifactTag. + * @memberof flyteidl.core + * @classdesc Represents an ArtifactTag. + * @implements IArtifactTag + * @constructor + * @param {flyteidl.core.IArtifactTag=} [properties] Properties to set + */ + function ArtifactTag(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArtifactTag artifactKey. + * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey + * @memberof flyteidl.core.ArtifactTag + * @instance + */ + ArtifactTag.prototype.artifactKey = null; + + /** + * ArtifactTag value. + * @member {flyteidl.core.ILabelValue|null|undefined} value + * @memberof flyteidl.core.ArtifactTag + * @instance + */ + ArtifactTag.prototype.value = null; + + /** + * Creates a new ArtifactTag instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArtifactTag + * @static + * @param {flyteidl.core.IArtifactTag=} [properties] Properties to set + * @returns {flyteidl.core.ArtifactTag} ArtifactTag instance + */ + ArtifactTag.create = function create(properties) { + return new ArtifactTag(properties); + }; + + /** + * Encodes the specified ArtifactTag message. Does not implicitly {@link flyteidl.core.ArtifactTag.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArtifactTag + * @static + * @param {flyteidl.core.IArtifactTag} message ArtifactTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) + $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.LabelValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ArtifactTag message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArtifactTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArtifactTag} ArtifactTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); + break; + case 2: + message.value = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArtifactTag message. + * @function verify + * @memberof flyteidl.core.ArtifactTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { + var error = $root.flyteidl.core.ArtifactKey.verify(message.artifactKey); + if (error) + return "artifactKey." + error; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.LabelValue.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + return ArtifactTag; + })(); + + core.ArtifactQuery = (function() { + + /** + * Properties of an ArtifactQuery. + * @memberof flyteidl.core + * @interface IArtifactQuery + * @property {flyteidl.core.IArtifactID|null} [artifactId] ArtifactQuery artifactId + * @property {flyteidl.core.IArtifactTag|null} [artifactTag] ArtifactQuery artifactTag + * @property {string|null} [uri] ArtifactQuery uri + * @property {flyteidl.core.IArtifactBindingData|null} [binding] ArtifactQuery binding + */ + + /** + * Constructs a new ArtifactQuery. + * @memberof flyteidl.core + * @classdesc Represents an ArtifactQuery. + * @implements IArtifactQuery + * @constructor + * @param {flyteidl.core.IArtifactQuery=} [properties] Properties to set + */ + function ArtifactQuery(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArtifactQuery artifactId. + * @member {flyteidl.core.IArtifactID|null|undefined} artifactId + * @memberof flyteidl.core.ArtifactQuery + * @instance + */ + ArtifactQuery.prototype.artifactId = null; + + /** + * ArtifactQuery artifactTag. + * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag + * @memberof flyteidl.core.ArtifactQuery + * @instance + */ + ArtifactQuery.prototype.artifactTag = null; + + /** + * ArtifactQuery uri. + * @member {string} uri + * @memberof flyteidl.core.ArtifactQuery + * @instance + */ + ArtifactQuery.prototype.uri = ""; + + /** + * ArtifactQuery binding. + * @member {flyteidl.core.IArtifactBindingData|null|undefined} binding + * @memberof flyteidl.core.ArtifactQuery + * @instance + */ + ArtifactQuery.prototype.binding = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ArtifactQuery identifier. + * @member {"artifactId"|"artifactTag"|"uri"|"binding"|undefined} identifier + * @memberof flyteidl.core.ArtifactQuery + * @instance + */ + Object.defineProperty(ArtifactQuery.prototype, "identifier", { + get: $util.oneOfGetter($oneOfFields = ["artifactId", "artifactTag", "uri", "binding"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ArtifactQuery instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArtifactQuery + * @static + * @param {flyteidl.core.IArtifactQuery=} [properties] Properties to set + * @returns {flyteidl.core.ArtifactQuery} ArtifactQuery instance + */ + ArtifactQuery.create = function create(properties) { + return new ArtifactQuery(properties); + }; + + /** + * Encodes the specified ArtifactQuery message. Does not implicitly {@link flyteidl.core.ArtifactQuery.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArtifactQuery + * @static + * @param {flyteidl.core.IArtifactQuery} message ArtifactQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactQuery.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) + $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); + if (message.binding != null && message.hasOwnProperty("binding")) + $root.flyteidl.core.ArtifactBindingData.encode(message.binding, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ArtifactQuery message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArtifactQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArtifactQuery} ArtifactQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactQuery.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactQuery(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); + break; + case 2: + message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); + break; + case 3: + message.uri = reader.string(); + break; + case 4: + message.binding = $root.flyteidl.core.ArtifactBindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArtifactQuery message. + * @function verify + * @memberof flyteidl.core.ArtifactQuery + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactQuery.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + properties.identifier = 1; + { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); + if (error) + return "artifactId." + error; + } + } + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { + if (properties.identifier === 1) + return "identifier: multiple values"; + properties.identifier = 1; + { + var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); + if (error) + return "artifactTag." + error; + } + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.identifier === 1) + return "identifier: multiple values"; + properties.identifier = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.binding != null && message.hasOwnProperty("binding")) { + if (properties.identifier === 1) + return "identifier: multiple values"; + properties.identifier = 1; + { + var error = $root.flyteidl.core.ArtifactBindingData.verify(message.binding); + if (error) + return "binding." + error; + } + } + return null; + }; + + return ArtifactQuery; + })(); + + /** + * ResourceType enum. + * @name flyteidl.core.ResourceType + * @enum {string} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} TASK=1 TASK value + * @property {number} WORKFLOW=2 WORKFLOW value + * @property {number} LAUNCH_PLAN=3 LAUNCH_PLAN value + * @property {number} DATASET=4 DATASET value + */ + core.ResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "TASK"] = 1; + values[valuesById[2] = "WORKFLOW"] = 2; + values[valuesById[3] = "LAUNCH_PLAN"] = 3; + values[valuesById[4] = "DATASET"] = 4; + return values; + })(); + + core.Identifier = (function() { + + /** + * Properties of an Identifier. + * @memberof flyteidl.core + * @interface IIdentifier + * @property {flyteidl.core.ResourceType|null} [resourceType] Identifier resourceType + * @property {string|null} [project] Identifier project + * @property {string|null} [domain] Identifier domain + * @property {string|null} [name] Identifier name + * @property {string|null} [version] Identifier version + * @property {string|null} [org] Identifier org + */ + + /** + * Constructs a new Identifier. + * @memberof flyteidl.core + * @classdesc Represents an Identifier. + * @implements IIdentifier + * @constructor + * @param {flyteidl.core.IIdentifier=} [properties] Properties to set + */ + function Identifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Identifier resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.resourceType = 0; + + /** + * Identifier project. + * @member {string} project + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.project = ""; + + /** + * Identifier domain. + * @member {string} domain + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.domain = ""; + + /** + * Identifier name. + * @member {string} name + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.name = ""; + + /** + * Identifier version. + * @member {string} version + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.version = ""; + + /** + * Identifier org. + * @member {string} org + * @memberof flyteidl.core.Identifier + * @instance + */ + Identifier.prototype.org = ""; + + /** + * Creates a new Identifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.Identifier + * @static + * @param {flyteidl.core.IIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.Identifier} Identifier instance + */ + Identifier.create = function create(properties) { + return new Identifier(properties); + }; + + /** + * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Identifier + * @static + * @param {flyteidl.core.IIdentifier} message Identifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Identifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); + return writer; + }; + + /** + * Decodes an Identifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Identifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Identifier} Identifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Identifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.domain = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + case 5: + message.version = reader.string(); + break; + case 6: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Identifier message. + * @function verify + * @memberof flyteidl.core.Identifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Identifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return Identifier; + })(); + + core.WorkflowExecutionIdentifier = (function() { + + /** + * Properties of a WorkflowExecutionIdentifier. + * @memberof flyteidl.core + * @interface IWorkflowExecutionIdentifier + * @property {string|null} [project] WorkflowExecutionIdentifier project + * @property {string|null} [domain] WorkflowExecutionIdentifier domain + * @property {string|null} [name] WorkflowExecutionIdentifier name + * @property {string|null} [org] WorkflowExecutionIdentifier org + */ + + /** + * Constructs a new WorkflowExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowExecutionIdentifier. + * @implements IWorkflowExecutionIdentifier + * @constructor + * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set + */ + function WorkflowExecutionIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionIdentifier project. + * @member {string} project + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.project = ""; + + /** + * WorkflowExecutionIdentifier domain. + * @member {string} domain + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.domain = ""; + + /** + * WorkflowExecutionIdentifier name. + * @member {string} name + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.name = ""; + + /** + * WorkflowExecutionIdentifier org. + * @member {string} org + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @instance + */ + WorkflowExecutionIdentifier.prototype.org = ""; + + /** + * Creates a new WorkflowExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier instance + */ + WorkflowExecutionIdentifier.create = function create(properties) { + return new WorkflowExecutionIdentifier(properties); + }; + + /** + * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {flyteidl.core.IWorkflowExecutionIdentifier} message WorkflowExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); + return writer; + }; + + /** + * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecutionIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + case 5: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.WorkflowExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return WorkflowExecutionIdentifier; + })(); + + core.NodeExecutionIdentifier = (function() { + + /** + * Properties of a NodeExecutionIdentifier. + * @memberof flyteidl.core + * @interface INodeExecutionIdentifier + * @property {string|null} [nodeId] NodeExecutionIdentifier nodeId + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] NodeExecutionIdentifier executionId + */ + + /** + * Constructs a new NodeExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a NodeExecutionIdentifier. + * @implements INodeExecutionIdentifier + * @constructor + * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set + */ + function NodeExecutionIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionIdentifier nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.NodeExecutionIdentifier + * @instance + */ + NodeExecutionIdentifier.prototype.nodeId = ""; + + /** + * NodeExecutionIdentifier executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.core.NodeExecutionIdentifier + * @instance + */ + NodeExecutionIdentifier.prototype.executionId = null; + + /** + * Creates a new NodeExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier instance + */ + NodeExecutionIdentifier.create = function create(properties) { + return new NodeExecutionIdentifier(properties); + }; + + /** + * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {flyteidl.core.INodeExecutionIdentifier} message NodeExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecutionIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + case 2: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.NodeExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return NodeExecutionIdentifier; + })(); + + core.TaskExecutionIdentifier = (function() { + + /** + * Properties of a TaskExecutionIdentifier. + * @memberof flyteidl.core + * @interface ITaskExecutionIdentifier + * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionIdentifier taskId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionIdentifier nodeExecutionId + * @property {number|null} [retryAttempt] TaskExecutionIdentifier retryAttempt + */ + + /** + * Constructs a new TaskExecutionIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecutionIdentifier. + * @implements ITaskExecutionIdentifier + * @constructor + * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set + */ + function TaskExecutionIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionIdentifier taskId. + * @member {flyteidl.core.IIdentifier|null|undefined} taskId + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.taskId = null; + + /** + * TaskExecutionIdentifier nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.nodeExecutionId = null; + + /** + * TaskExecutionIdentifier retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.core.TaskExecutionIdentifier + * @instance + */ + TaskExecutionIdentifier.prototype.retryAttempt = 0; + + /** + * Creates a new TaskExecutionIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier instance + */ + TaskExecutionIdentifier.create = function create(properties) { + return new TaskExecutionIdentifier(properties); + }; + + /** + * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {flyteidl.core.ITaskExecutionIdentifier} message TaskExecutionIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + return writer; + }; + + /** + * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecutionIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionIdentifier message. + * @function verify + * @memberof flyteidl.core.TaskExecutionIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskId != null && message.hasOwnProperty("taskId")) { + var error = $root.flyteidl.core.Identifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + return null; + }; + + return TaskExecutionIdentifier; + })(); + + core.SignalIdentifier = (function() { + + /** + * Properties of a SignalIdentifier. + * @memberof flyteidl.core + * @interface ISignalIdentifier + * @property {string|null} [signalId] SignalIdentifier signalId + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] SignalIdentifier executionId + */ + + /** + * Constructs a new SignalIdentifier. + * @memberof flyteidl.core + * @classdesc Represents a SignalIdentifier. + * @implements ISignalIdentifier + * @constructor + * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set + */ + function SignalIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalIdentifier signalId. + * @member {string} signalId + * @memberof flyteidl.core.SignalIdentifier + * @instance + */ + SignalIdentifier.prototype.signalId = ""; + + /** + * SignalIdentifier executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.core.SignalIdentifier + * @instance + */ + SignalIdentifier.prototype.executionId = null; + + /** + * Creates a new SignalIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set + * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier instance + */ + SignalIdentifier.create = function create(properties) { + return new SignalIdentifier(properties); + }; + + /** + * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {flyteidl.core.ISignalIdentifier} message SignalIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + case 2: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalIdentifier message. + * @function verify + * @memberof flyteidl.core.SignalIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return SignalIdentifier; + })(); + + /** + * CatalogCacheStatus enum. + * @name flyteidl.core.CatalogCacheStatus + * @enum {string} + * @property {number} CACHE_DISABLED=0 CACHE_DISABLED value + * @property {number} CACHE_MISS=1 CACHE_MISS value + * @property {number} CACHE_HIT=2 CACHE_HIT value + * @property {number} CACHE_POPULATED=3 CACHE_POPULATED value + * @property {number} CACHE_LOOKUP_FAILURE=4 CACHE_LOOKUP_FAILURE value + * @property {number} CACHE_PUT_FAILURE=5 CACHE_PUT_FAILURE value + * @property {number} CACHE_SKIPPED=6 CACHE_SKIPPED value + * @property {number} CACHE_EVICTED=7 CACHE_EVICTED value + */ + core.CatalogCacheStatus = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CACHE_DISABLED"] = 0; + values[valuesById[1] = "CACHE_MISS"] = 1; + values[valuesById[2] = "CACHE_HIT"] = 2; + values[valuesById[3] = "CACHE_POPULATED"] = 3; + values[valuesById[4] = "CACHE_LOOKUP_FAILURE"] = 4; + values[valuesById[5] = "CACHE_PUT_FAILURE"] = 5; + values[valuesById[6] = "CACHE_SKIPPED"] = 6; + values[valuesById[7] = "CACHE_EVICTED"] = 7; + return values; + })(); + + core.CatalogArtifactTag = (function() { + + /** + * Properties of a CatalogArtifactTag. + * @memberof flyteidl.core + * @interface ICatalogArtifactTag + * @property {string|null} [artifactId] CatalogArtifactTag artifactId + * @property {string|null} [name] CatalogArtifactTag name + */ + + /** + * Constructs a new CatalogArtifactTag. + * @memberof flyteidl.core + * @classdesc Represents a CatalogArtifactTag. + * @implements ICatalogArtifactTag + * @constructor + * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set + */ + function CatalogArtifactTag(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CatalogArtifactTag artifactId. + * @member {string} artifactId + * @memberof flyteidl.core.CatalogArtifactTag + * @instance + */ + CatalogArtifactTag.prototype.artifactId = ""; + + /** + * CatalogArtifactTag name. + * @member {string} name + * @memberof flyteidl.core.CatalogArtifactTag + * @instance + */ + CatalogArtifactTag.prototype.name = ""; + + /** + * Creates a new CatalogArtifactTag instance using the specified properties. + * @function create + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set + * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag instance + */ + CatalogArtifactTag.create = function create(properties) { + return new CatalogArtifactTag(properties); + }; + + /** + * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {flyteidl.core.ICatalogArtifactTag} message CatalogArtifactTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CatalogArtifactTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Decodes a CatalogArtifactTag message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CatalogArtifactTag.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogArtifactTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactId = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CatalogArtifactTag message. + * @function verify + * @memberof flyteidl.core.CatalogArtifactTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CatalogArtifactTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return CatalogArtifactTag; + })(); + + core.CatalogMetadata = (function() { + + /** + * Properties of a CatalogMetadata. + * @memberof flyteidl.core + * @interface ICatalogMetadata + * @property {flyteidl.core.IIdentifier|null} [datasetId] CatalogMetadata datasetId + * @property {flyteidl.core.ICatalogArtifactTag|null} [artifactTag] CatalogMetadata artifactTag + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [sourceTaskExecution] CatalogMetadata sourceTaskExecution + */ + + /** + * Constructs a new CatalogMetadata. + * @memberof flyteidl.core + * @classdesc Represents a CatalogMetadata. + * @implements ICatalogMetadata + * @constructor + * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set + */ + function CatalogMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CatalogMetadata datasetId. + * @member {flyteidl.core.IIdentifier|null|undefined} datasetId + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + CatalogMetadata.prototype.datasetId = null; + + /** + * CatalogMetadata artifactTag. + * @member {flyteidl.core.ICatalogArtifactTag|null|undefined} artifactTag + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + CatalogMetadata.prototype.artifactTag = null; + + /** + * CatalogMetadata sourceTaskExecution. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} sourceTaskExecution + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + CatalogMetadata.prototype.sourceTaskExecution = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CatalogMetadata sourceExecution. + * @member {"sourceTaskExecution"|undefined} sourceExecution + * @memberof flyteidl.core.CatalogMetadata + * @instance + */ + Object.defineProperty(CatalogMetadata.prototype, "sourceExecution", { + get: $util.oneOfGetter($oneOfFields = ["sourceTaskExecution"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CatalogMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set + * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata instance + */ + CatalogMetadata.create = function create(properties) { + return new CatalogMetadata(properties); + }; + + /** + * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {flyteidl.core.ICatalogMetadata} message CatalogMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CatalogMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + $root.flyteidl.core.Identifier.encode(message.datasetId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) + $root.flyteidl.core.CatalogArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.sourceTaskExecution, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CatalogMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CatalogMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.datasetId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.artifactTag = $root.flyteidl.core.CatalogArtifactTag.decode(reader, reader.uint32()); + break; + case 3: + message.sourceTaskExecution = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CatalogMetadata message. + * @function verify + * @memberof flyteidl.core.CatalogMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CatalogMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) { + var error = $root.flyteidl.core.Identifier.verify(message.datasetId); + if (error) + return "datasetId." + error; + } + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { + var error = $root.flyteidl.core.CatalogArtifactTag.verify(message.artifactTag); + if (error) + return "artifactTag." + error; + } + if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) { + properties.sourceExecution = 1; + { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.sourceTaskExecution); + if (error) + return "sourceTaskExecution." + error; + } + } + return null; + }; + + return CatalogMetadata; + })(); + + core.CatalogReservation = (function() { + + /** + * Properties of a CatalogReservation. + * @memberof flyteidl.core + * @interface ICatalogReservation + */ + + /** + * Constructs a new CatalogReservation. + * @memberof flyteidl.core + * @classdesc Represents a CatalogReservation. + * @implements ICatalogReservation + * @constructor + * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set + */ + function CatalogReservation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new CatalogReservation instance using the specified properties. + * @function create + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set + * @returns {flyteidl.core.CatalogReservation} CatalogReservation instance + */ + CatalogReservation.create = function create(properties) { + return new CatalogReservation(properties); + }; + + /** + * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {flyteidl.core.ICatalogReservation} message CatalogReservation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CatalogReservation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a CatalogReservation message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CatalogReservation} CatalogReservation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CatalogReservation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogReservation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CatalogReservation message. + * @function verify + * @memberof flyteidl.core.CatalogReservation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CatalogReservation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Status enum. + * @name flyteidl.core.CatalogReservation.Status + * @enum {string} + * @property {number} RESERVATION_DISABLED=0 RESERVATION_DISABLED value + * @property {number} RESERVATION_ACQUIRED=1 RESERVATION_ACQUIRED value + * @property {number} RESERVATION_EXISTS=2 RESERVATION_EXISTS value + * @property {number} RESERVATION_RELEASED=3 RESERVATION_RELEASED value + * @property {number} RESERVATION_FAILURE=4 RESERVATION_FAILURE value + */ + CatalogReservation.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RESERVATION_DISABLED"] = 0; + values[valuesById[1] = "RESERVATION_ACQUIRED"] = 1; + values[valuesById[2] = "RESERVATION_EXISTS"] = 2; + values[valuesById[3] = "RESERVATION_RELEASED"] = 3; + values[valuesById[4] = "RESERVATION_FAILURE"] = 4; + return values; + })(); + + return CatalogReservation; + })(); + + core.ConnectionSet = (function() { + + /** + * Properties of a ConnectionSet. + * @memberof flyteidl.core + * @interface IConnectionSet + * @property {Object.|null} [downstream] ConnectionSet downstream + * @property {Object.|null} [upstream] ConnectionSet upstream + */ + + /** + * Constructs a new ConnectionSet. + * @memberof flyteidl.core + * @classdesc Represents a ConnectionSet. + * @implements IConnectionSet + * @constructor + * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set + */ + function ConnectionSet(properties) { + this.downstream = {}; + this.upstream = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConnectionSet downstream. + * @member {Object.} downstream + * @memberof flyteidl.core.ConnectionSet + * @instance + */ + ConnectionSet.prototype.downstream = $util.emptyObject; + + /** + * ConnectionSet upstream. + * @member {Object.} upstream + * @memberof flyteidl.core.ConnectionSet + * @instance + */ + ConnectionSet.prototype.upstream = $util.emptyObject; + + /** + * Creates a new ConnectionSet instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set + * @returns {flyteidl.core.ConnectionSet} ConnectionSet instance + */ + ConnectionSet.create = function create(properties) { + return new ConnectionSet(properties); + }; + + /** + * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {flyteidl.core.IConnectionSet} message ConnectionSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConnectionSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.downstream != null && message.hasOwnProperty("downstream")) + for (var keys = Object.keys(message.downstream), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.ConnectionSet.IdList.encode(message.downstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.upstream != null && message.hasOwnProperty("upstream")) + for (var keys = Object.keys(message.upstream), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.ConnectionSet.IdList.encode(message.upstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a ConnectionSet message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConnectionSet} ConnectionSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConnectionSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 7: + reader.skip().pos++; + if (message.downstream === $util.emptyObject) + message.downstream = {}; + key = reader.string(); + reader.pos++; + message.downstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); + break; + case 8: + reader.skip().pos++; + if (message.upstream === $util.emptyObject) + message.upstream = {}; + key = reader.string(); + reader.pos++; + message.upstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ConnectionSet message. + * @function verify + * @memberof flyteidl.core.ConnectionSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConnectionSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.downstream != null && message.hasOwnProperty("downstream")) { + if (!$util.isObject(message.downstream)) + return "downstream: object expected"; + var key = Object.keys(message.downstream); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.downstream[key[i]]); + if (error) + return "downstream." + error; + } + } + if (message.upstream != null && message.hasOwnProperty("upstream")) { + if (!$util.isObject(message.upstream)) + return "upstream: object expected"; + var key = Object.keys(message.upstream); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.upstream[key[i]]); + if (error) + return "upstream." + error; + } + } + return null; + }; + + ConnectionSet.IdList = (function() { + + /** + * Properties of an IdList. + * @memberof flyteidl.core.ConnectionSet + * @interface IIdList + * @property {Array.|null} [ids] IdList ids + */ + + /** + * Constructs a new IdList. + * @memberof flyteidl.core.ConnectionSet + * @classdesc Represents an IdList. + * @implements IIdList + * @constructor + * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set + */ + function IdList(properties) { + this.ids = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IdList ids. + * @member {Array.} ids + * @memberof flyteidl.core.ConnectionSet.IdList + * @instance + */ + IdList.prototype.ids = $util.emptyArray; + + /** + * Creates a new IdList instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set + * @returns {flyteidl.core.ConnectionSet.IdList} IdList instance + */ + IdList.create = function create(properties) { + return new IdList(properties); + }; + + /** + * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {flyteidl.core.ConnectionSet.IIdList} message IdList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IdList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); + return writer; + }; + + /** + * Decodes an IdList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConnectionSet.IdList} IdList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IdList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet.IdList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IdList message. + * @function verify + * @memberof flyteidl.core.ConnectionSet.IdList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IdList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isString(message.ids[i])) + return "ids: string[] expected"; + } + return null; + }; + + return IdList; + })(); + + return ConnectionSet; + })(); + + core.CompiledWorkflow = (function() { + + /** + * Properties of a CompiledWorkflow. + * @memberof flyteidl.core + * @interface ICompiledWorkflow + * @property {flyteidl.core.IWorkflowTemplate|null} [template] CompiledWorkflow template + * @property {flyteidl.core.IConnectionSet|null} [connections] CompiledWorkflow connections + */ + + /** + * Constructs a new CompiledWorkflow. + * @memberof flyteidl.core + * @classdesc Represents a CompiledWorkflow. + * @implements ICompiledWorkflow + * @constructor + * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set + */ + function CompiledWorkflow(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledWorkflow template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledWorkflow + * @instance + */ + CompiledWorkflow.prototype.template = null; + + /** + * CompiledWorkflow connections. + * @member {flyteidl.core.IConnectionSet|null|undefined} connections + * @memberof flyteidl.core.CompiledWorkflow + * @instance + */ + CompiledWorkflow.prototype.connections = null; + + /** + * Creates a new CompiledWorkflow instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set + * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow instance + */ + CompiledWorkflow.create = function create(properties) { + return new CompiledWorkflow(properties); + }; + + /** + * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {flyteidl.core.ICompiledWorkflow} message CompiledWorkflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledWorkflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.connections != null && message.hasOwnProperty("connections")) + $root.flyteidl.core.ConnectionSet.encode(message.connections, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledWorkflow message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledWorkflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.connections = $root.flyteidl.core.ConnectionSet.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledWorkflow message. + * @function verify + * @memberof flyteidl.core.CompiledWorkflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledWorkflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.connections != null && message.hasOwnProperty("connections")) { + var error = $root.flyteidl.core.ConnectionSet.verify(message.connections); + if (error) + return "connections." + error; + } + return null; + }; + + return CompiledWorkflow; + })(); + + core.CompiledLaunchPlan = (function() { + + /** + * Properties of a CompiledLaunchPlan. + * @memberof flyteidl.core + * @interface ICompiledLaunchPlan + * @property {flyteidl.core.ILaunchPlanTemplate|null} [template] CompiledLaunchPlan template + */ + + /** + * Constructs a new CompiledLaunchPlan. + * @memberof flyteidl.core + * @classdesc Represents a CompiledLaunchPlan. + * @implements ICompiledLaunchPlan + * @constructor + * @param {flyteidl.core.ICompiledLaunchPlan=} [properties] Properties to set + */ + function CompiledLaunchPlan(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledLaunchPlan template. + * @member {flyteidl.core.ILaunchPlanTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledLaunchPlan + * @instance + */ + CompiledLaunchPlan.prototype.template = null; + + /** + * Creates a new CompiledLaunchPlan instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {flyteidl.core.ICompiledLaunchPlan=} [properties] Properties to set + * @returns {flyteidl.core.CompiledLaunchPlan} CompiledLaunchPlan instance + */ + CompiledLaunchPlan.create = function create(properties) { + return new CompiledLaunchPlan(properties); + }; + + /** + * Encodes the specified CompiledLaunchPlan message. Does not implicitly {@link flyteidl.core.CompiledLaunchPlan.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {flyteidl.core.ICompiledLaunchPlan} message CompiledLaunchPlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledLaunchPlan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.LaunchPlanTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledLaunchPlan message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledLaunchPlan} CompiledLaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledLaunchPlan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledLaunchPlan(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.LaunchPlanTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledLaunchPlan message. + * @function verify + * @memberof flyteidl.core.CompiledLaunchPlan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledLaunchPlan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.LaunchPlanTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return CompiledLaunchPlan; + })(); + + core.CompiledTask = (function() { + + /** + * Properties of a CompiledTask. + * @memberof flyteidl.core + * @interface ICompiledTask + * @property {flyteidl.core.ITaskTemplate|null} [template] CompiledTask template + */ + + /** + * Constructs a new CompiledTask. + * @memberof flyteidl.core + * @classdesc Represents a CompiledTask. + * @implements ICompiledTask + * @constructor + * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set + */ + function CompiledTask(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledTask template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.core.CompiledTask + * @instance + */ + CompiledTask.prototype.template = null; + + /** + * Creates a new CompiledTask instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledTask + * @static + * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set + * @returns {flyteidl.core.CompiledTask} CompiledTask instance + */ + CompiledTask.create = function create(properties) { + return new CompiledTask(properties); + }; + + /** + * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledTask + * @static + * @param {flyteidl.core.ICompiledTask} message CompiledTask message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledTask.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledTask message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledTask + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledTask} CompiledTask + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledTask.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledTask(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledTask message. + * @function verify + * @memberof flyteidl.core.CompiledTask + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledTask.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + return null; + }; + + return CompiledTask; + })(); + + core.CompiledWorkflowClosure = (function() { + + /** + * Properties of a CompiledWorkflowClosure. + * @memberof flyteidl.core + * @interface ICompiledWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflow|null} [primary] CompiledWorkflowClosure primary + * @property {Array.|null} [subWorkflows] CompiledWorkflowClosure subWorkflows + * @property {Array.|null} [tasks] CompiledWorkflowClosure tasks + * @property {Array.|null} [launchPlans] CompiledWorkflowClosure launchPlans + */ + + /** + * Constructs a new CompiledWorkflowClosure. + * @memberof flyteidl.core + * @classdesc Represents a CompiledWorkflowClosure. + * @implements ICompiledWorkflowClosure + * @constructor + * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set + */ + function CompiledWorkflowClosure(properties) { + this.subWorkflows = []; + this.tasks = []; + this.launchPlans = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CompiledWorkflowClosure primary. + * @member {flyteidl.core.ICompiledWorkflow|null|undefined} primary + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.primary = null; + + /** + * CompiledWorkflowClosure subWorkflows. + * @member {Array.} subWorkflows + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.subWorkflows = $util.emptyArray; + + /** + * CompiledWorkflowClosure tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.tasks = $util.emptyArray; + + /** + * CompiledWorkflowClosure launchPlans. + * @member {Array.} launchPlans + * @memberof flyteidl.core.CompiledWorkflowClosure + * @instance + */ + CompiledWorkflowClosure.prototype.launchPlans = $util.emptyArray; + + /** + * Creates a new CompiledWorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure instance + */ + CompiledWorkflowClosure.create = function create(properties) { + return new CompiledWorkflowClosure(properties); + }; + + /** + * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {flyteidl.core.ICompiledWorkflowClosure} message CompiledWorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompiledWorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primary != null && message.hasOwnProperty("primary")) + $root.flyteidl.core.CompiledWorkflow.encode(message.primary, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflows != null && message.subWorkflows.length) + for (var i = 0; i < message.subWorkflows.length; ++i) + $root.flyteidl.core.CompiledWorkflow.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.CompiledTask.encode(message.tasks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.launchPlans != null && message.launchPlans.length) + for (var i = 0; i < message.launchPlans.length; ++i) + $root.flyteidl.core.CompiledLaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompiledWorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflowClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primary = $root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.subWorkflows && message.subWorkflows.length)) + message.subWorkflows = []; + message.subWorkflows.push($root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.CompiledTask.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.launchPlans && message.launchPlans.length)) + message.launchPlans = []; + message.launchPlans.push($root.flyteidl.core.CompiledLaunchPlan.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CompiledWorkflowClosure message. + * @function verify + * @memberof flyteidl.core.CompiledWorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompiledWorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.primary != null && message.hasOwnProperty("primary")) { + var error = $root.flyteidl.core.CompiledWorkflow.verify(message.primary); + if (error) + return "primary." + error; + } + if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { + if (!Array.isArray(message.subWorkflows)) + return "subWorkflows: array expected"; + for (var i = 0; i < message.subWorkflows.length; ++i) { + var error = $root.flyteidl.core.CompiledWorkflow.verify(message.subWorkflows[i]); + if (error) + return "subWorkflows." + error; + } + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.core.CompiledTask.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { + if (!Array.isArray(message.launchPlans)) + return "launchPlans: array expected"; + for (var i = 0; i < message.launchPlans.length; ++i) { + var error = $root.flyteidl.core.CompiledLaunchPlan.verify(message.launchPlans[i]); + if (error) + return "launchPlans." + error; + } + } + return null; + }; + + return CompiledWorkflowClosure; + })(); + + core.Variable = (function() { + + /** + * Properties of a Variable. + * @memberof flyteidl.core + * @interface IVariable + * @property {flyteidl.core.ILiteralType|null} [type] Variable type + * @property {string|null} [description] Variable description + * @property {flyteidl.core.IArtifactID|null} [artifactPartialId] Variable artifactPartialId + * @property {flyteidl.core.IArtifactTag|null} [artifactTag] Variable artifactTag + */ + + /** + * Constructs a new Variable. + * @memberof flyteidl.core + * @classdesc Represents a Variable. + * @implements IVariable + * @constructor + * @param {flyteidl.core.IVariable=} [properties] Properties to set + */ + function Variable(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Variable type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.type = null; + + /** + * Variable description. + * @member {string} description + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.description = ""; + + /** + * Variable artifactPartialId. + * @member {flyteidl.core.IArtifactID|null|undefined} artifactPartialId + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.artifactPartialId = null; + + /** + * Variable artifactTag. + * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag + * @memberof flyteidl.core.Variable + * @instance + */ + Variable.prototype.artifactTag = null; + + /** + * Creates a new Variable instance using the specified properties. + * @function create + * @memberof flyteidl.core.Variable + * @static + * @param {flyteidl.core.IVariable=} [properties] Properties to set + * @returns {flyteidl.core.Variable} Variable instance + */ + Variable.create = function create(properties) { + return new Variable(properties); + }; + + /** + * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Variable + * @static + * @param {flyteidl.core.IVariable} message Variable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Variable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) + $root.flyteidl.core.ArtifactID.encode(message.artifactPartialId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) + $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Variable message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Variable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Variable} Variable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Variable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.artifactPartialId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); + break; + case 4: + message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Variable message. + * @function verify + * @memberof flyteidl.core.Variable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Variable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactPartialId); + if (error) + return "artifactPartialId." + error; + } + if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { + var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); + if (error) + return "artifactTag." + error; + } + return null; + }; + + return Variable; + })(); + + core.VariableMap = (function() { + + /** + * Properties of a VariableMap. + * @memberof flyteidl.core + * @interface IVariableMap + * @property {Object.|null} [variables] VariableMap variables + */ + + /** + * Constructs a new VariableMap. + * @memberof flyteidl.core + * @classdesc Represents a VariableMap. + * @implements IVariableMap + * @constructor + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + */ + function VariableMap(properties) { + this.variables = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * VariableMap variables. + * @member {Object.} variables + * @memberof flyteidl.core.VariableMap + * @instance + */ + VariableMap.prototype.variables = $util.emptyObject; + + /** + * Creates a new VariableMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.VariableMap + * @static + * @param {flyteidl.core.IVariableMap=} [properties] Properties to set + * @returns {flyteidl.core.VariableMap} VariableMap instance + */ + VariableMap.create = function create(properties) { + return new VariableMap(properties); + }; + + /** + * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.VariableMap + * @static + * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VariableMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variables != null && message.hasOwnProperty("variables")) + for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a VariableMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.VariableMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.VariableMap} VariableMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VariableMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.variables === $util.emptyObject) + message.variables = {}; + key = reader.string(); + reader.pos++; + message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a VariableMap message. + * @function verify + * @memberof flyteidl.core.VariableMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VariableMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variables != null && message.hasOwnProperty("variables")) { + if (!$util.isObject(message.variables)) + return "variables: object expected"; + var key = Object.keys(message.variables); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); + if (error) + return "variables." + error; + } + } + return null; + }; + + return VariableMap; + })(); + + core.TypedInterface = (function() { + + /** + * Properties of a TypedInterface. + * @memberof flyteidl.core + * @interface ITypedInterface + * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs + * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs + */ + + /** + * Constructs a new TypedInterface. + * @memberof flyteidl.core + * @classdesc Represents a TypedInterface. + * @implements ITypedInterface + * @constructor + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + */ + function TypedInterface(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypedInterface inputs. + * @member {flyteidl.core.IVariableMap|null|undefined} inputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.inputs = null; + + /** + * TypedInterface outputs. + * @member {flyteidl.core.IVariableMap|null|undefined} outputs + * @memberof flyteidl.core.TypedInterface + * @instance + */ + TypedInterface.prototype.outputs = null; + + /** + * Creates a new TypedInterface instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypedInterface + * @static + * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set + * @returns {flyteidl.core.TypedInterface} TypedInterface instance + */ + TypedInterface.create = function create(properties) { + return new TypedInterface(properties); + }; + + /** + * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypedInterface + * @static + * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypedInterface.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TypedInterface message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypedInterface + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypedInterface} TypedInterface + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypedInterface.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypedInterface message. + * @function verify + * @memberof flyteidl.core.TypedInterface + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypedInterface.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return TypedInterface; + })(); + + core.Parameter = (function() { + + /** + * Properties of a Parameter. + * @memberof flyteidl.core + * @interface IParameter + * @property {flyteidl.core.IVariable|null} ["var"] Parameter var + * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default + * @property {boolean|null} [required] Parameter required + * @property {flyteidl.core.IArtifactQuery|null} [artifactQuery] Parameter artifactQuery + * @property {flyteidl.core.IArtifactID|null} [artifactId] Parameter artifactId + */ + + /** + * Constructs a new Parameter. + * @memberof flyteidl.core + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {flyteidl.core.IParameter=} [properties] Properties to set + */ + function Parameter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Parameter var. + * @member {flyteidl.core.IVariable|null|undefined} var + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype["var"] = null; + + /** + * Parameter default. + * @member {flyteidl.core.ILiteral|null|undefined} default + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype["default"] = null; + + /** + * Parameter required. + * @member {boolean} required + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.required = false; + + /** + * Parameter artifactQuery. + * @member {flyteidl.core.IArtifactQuery|null|undefined} artifactQuery + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.artifactQuery = null; + + /** + * Parameter artifactId. + * @member {flyteidl.core.IArtifactID|null|undefined} artifactId + * @memberof flyteidl.core.Parameter + * @instance + */ + Parameter.prototype.artifactId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Parameter behavior. + * @member {"default"|"required"|"artifactQuery"|"artifactId"|undefined} behavior + * @memberof flyteidl.core.Parameter + * @instance + */ + Object.defineProperty(Parameter.prototype, "behavior", { + get: $util.oneOfGetter($oneOfFields = ["default", "required", "artifactQuery", "artifactId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof flyteidl.core.Parameter + * @static + * @param {flyteidl.core.IParameter=} [properties] Properties to set + * @returns {flyteidl.core.Parameter} Parameter instance + */ + Parameter.create = function create(properties) { + return new Parameter(properties); + }; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Parameter + * @static + * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Parameter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["default"] != null && message.hasOwnProperty("default")) + $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.required != null && message.hasOwnProperty("required")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); + if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) + $root.flyteidl.core.ArtifactQuery.encode(message.artifactQuery, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Parameter} Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Parameter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); + break; + case 2: + message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + case 3: + message.required = reader.bool(); + break; + case 4: + message.artifactQuery = $root.flyteidl.core.ArtifactQuery.decode(reader, reader.uint32()); + break; + case 5: + message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Parameter message. + * @function verify + * @memberof flyteidl.core.Parameter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Parameter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message["var"] != null && message.hasOwnProperty("var")) { + var error = $root.flyteidl.core.Variable.verify(message["var"]); + if (error) + return "var." + error; + } + if (message["default"] != null && message.hasOwnProperty("default")) { + properties.behavior = 1; + { + var error = $root.flyteidl.core.Literal.verify(message["default"]); + if (error) + return "default." + error; + } + } + if (message.required != null && message.hasOwnProperty("required")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + if (typeof message.required !== "boolean") + return "required: boolean expected"; + } + if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + { + var error = $root.flyteidl.core.ArtifactQuery.verify(message.artifactQuery); + if (error) + return "artifactQuery." + error; + } + } + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + if (properties.behavior === 1) + return "behavior: multiple values"; + properties.behavior = 1; + { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); + if (error) + return "artifactId." + error; + } + } + return null; + }; + + return Parameter; + })(); + + core.ParameterMap = (function() { + + /** + * Properties of a ParameterMap. + * @memberof flyteidl.core + * @interface IParameterMap + * @property {Object.|null} [parameters] ParameterMap parameters + */ + + /** + * Constructs a new ParameterMap. + * @memberof flyteidl.core + * @classdesc Represents a ParameterMap. + * @implements IParameterMap + * @constructor + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + */ + function ParameterMap(properties) { + this.parameters = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParameterMap parameters. + * @member {Object.} parameters + * @memberof flyteidl.core.ParameterMap + * @instance + */ + ParameterMap.prototype.parameters = $util.emptyObject; + + /** + * Creates a new ParameterMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.ParameterMap + * @static + * @param {flyteidl.core.IParameterMap=} [properties] Properties to set + * @returns {flyteidl.core.ParameterMap} ParameterMap instance + */ + ParameterMap.create = function create(properties) { + return new ParameterMap(properties); + }; + + /** + * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ParameterMap + * @static + * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParameterMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && message.hasOwnProperty("parameters")) + for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a ParameterMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ParameterMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ParameterMap} ParameterMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParameterMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.parameters === $util.emptyObject) + message.parameters = {}; + key = reader.string(); + reader.pos++; + message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParameterMap message. + * @function verify + * @memberof flyteidl.core.ParameterMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParameterMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + return null; + }; + + return ParameterMap; + })(); + + /** + * SimpleType enum. + * @name flyteidl.core.SimpleType + * @enum {string} + * @property {number} NONE=0 NONE value + * @property {number} INTEGER=1 INTEGER value + * @property {number} FLOAT=2 FLOAT value + * @property {number} STRING=3 STRING value + * @property {number} BOOLEAN=4 BOOLEAN value + * @property {number} DATETIME=5 DATETIME value + * @property {number} DURATION=6 DURATION value + * @property {number} BINARY=7 BINARY value + * @property {number} ERROR=8 ERROR value + * @property {number} STRUCT=9 STRUCT value + */ + core.SimpleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "INTEGER"] = 1; + values[valuesById[2] = "FLOAT"] = 2; + values[valuesById[3] = "STRING"] = 3; + values[valuesById[4] = "BOOLEAN"] = 4; + values[valuesById[5] = "DATETIME"] = 5; + values[valuesById[6] = "DURATION"] = 6; + values[valuesById[7] = "BINARY"] = 7; + values[valuesById[8] = "ERROR"] = 8; + values[valuesById[9] = "STRUCT"] = 9; + return values; + })(); + + core.SchemaType = (function() { + + /** + * Properties of a SchemaType. + * @memberof flyteidl.core + * @interface ISchemaType + * @property {Array.|null} [columns] SchemaType columns + */ + + /** + * Constructs a new SchemaType. + * @memberof flyteidl.core + * @classdesc Represents a SchemaType. + * @implements ISchemaType + * @constructor + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + */ + function SchemaType(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchemaType columns. + * @member {Array.} columns + * @memberof flyteidl.core.SchemaType + * @instance + */ + SchemaType.prototype.columns = $util.emptyArray; + + /** + * Creates a new SchemaType instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType + * @static + * @param {flyteidl.core.ISchemaType=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType} SchemaType instance + */ + SchemaType.create = function create(properties) { + return new SchemaType(properties); + }; + + /** + * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType + * @static + * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SchemaType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType} SchemaType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaType message. + * @function verify + * @memberof flyteidl.core.SchemaType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + return null; + }; + + SchemaType.SchemaColumn = (function() { + + /** + * Properties of a SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @interface ISchemaColumn + * @property {string|null} [name] SchemaColumn name + * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type + */ + + /** + * Constructs a new SchemaColumn. + * @memberof flyteidl.core.SchemaType + * @classdesc Represents a SchemaColumn. + * @implements ISchemaColumn + * @constructor + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + */ + function SchemaColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SchemaColumn name. + * @member {string} name + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.name = ""; + + /** + * SchemaColumn type. + * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @instance + */ + SchemaColumn.prototype.type = 0; + + /** + * Creates a new SchemaColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance + */ + SchemaColumn.create = function create(properties) { + return new SchemaColumn(properties); + }; + + /** + * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SchemaColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + return writer; + }; + + /** + * Decodes a SchemaColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SchemaColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SchemaColumn message. + * @function verify + * @memberof flyteidl.core.SchemaType.SchemaColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SchemaColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + return null; + }; + + /** + * SchemaColumnType enum. + * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType + * @enum {string} + * @property {number} INTEGER=0 INTEGER value + * @property {number} FLOAT=1 FLOAT value + * @property {number} STRING=2 STRING value + * @property {number} BOOLEAN=3 BOOLEAN value + * @property {number} DATETIME=4 DATETIME value + * @property {number} DURATION=5 DURATION value + */ + SchemaColumn.SchemaColumnType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INTEGER"] = 0; + values[valuesById[1] = "FLOAT"] = 1; + values[valuesById[2] = "STRING"] = 2; + values[valuesById[3] = "BOOLEAN"] = 3; + values[valuesById[4] = "DATETIME"] = 4; + values[valuesById[5] = "DURATION"] = 5; + return values; + })(); + + return SchemaColumn; + })(); + + return SchemaType; + })(); + + core.StructuredDatasetType = (function() { + + /** + * Properties of a StructuredDatasetType. + * @memberof flyteidl.core + * @interface IStructuredDatasetType + * @property {Array.|null} [columns] StructuredDatasetType columns + * @property {string|null} [format] StructuredDatasetType format + * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType + * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes + */ + + /** + * Constructs a new StructuredDatasetType. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDatasetType. + * @implements IStructuredDatasetType + * @constructor + * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + */ + function StructuredDatasetType(properties) { + this.columns = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDatasetType columns. + * @member {Array.} columns + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.columns = $util.emptyArray; + + /** + * StructuredDatasetType format. + * @member {string} format + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.format = ""; + + /** + * StructuredDatasetType externalSchemaType. + * @member {string} externalSchemaType + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.externalSchemaType = ""; + + /** + * StructuredDatasetType externalSchemaBytes. + * @member {Uint8Array} externalSchemaBytes + * @memberof flyteidl.core.StructuredDatasetType + * @instance + */ + StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]); + + /** + * Creates a new StructuredDatasetType instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance + */ + StructuredDatasetType.create = function create(properties) { + return new StructuredDatasetType(properties); + }; + + /** + * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredDatasetType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.columns != null && message.columns.length) + for (var i = 0; i < message.columns.length; ++i) + $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.format); + if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType); + if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) + writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes); + return writer; + }; + + /** + * Decodes a StructuredDatasetType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredDatasetType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.columns && message.columns.length)) + message.columns = []; + message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32())); + break; + case 2: + message.format = reader.string(); + break; + case 3: + message.externalSchemaType = reader.string(); + break; + case 4: + message.externalSchemaBytes = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StructuredDatasetType message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredDatasetType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.columns != null && message.hasOwnProperty("columns")) { + if (!Array.isArray(message.columns)) + return "columns: array expected"; + for (var i = 0; i < message.columns.length; ++i) { + var error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]); + if (error) + return "columns." + error; + } + } + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) + if (!$util.isString(message.externalSchemaType)) + return "externalSchemaType: string expected"; + if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) + if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes))) + return "externalSchemaBytes: buffer expected"; + return null; + }; + + StructuredDatasetType.DatasetColumn = (function() { + + /** + * Properties of a DatasetColumn. + * @memberof flyteidl.core.StructuredDatasetType + * @interface IDatasetColumn + * @property {string|null} [name] DatasetColumn name + * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType + */ + + /** + * Constructs a new DatasetColumn. + * @memberof flyteidl.core.StructuredDatasetType + * @classdesc Represents a DatasetColumn. + * @implements IDatasetColumn + * @constructor + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set + */ + function DatasetColumn(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DatasetColumn name. + * @member {string} name + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @instance + */ + DatasetColumn.prototype.name = ""; + + /** + * DatasetColumn literalType. + * @member {flyteidl.core.ILiteralType|null|undefined} literalType + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @instance + */ + DatasetColumn.prototype.literalType = null; + + /** + * Creates a new DatasetColumn instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance + */ + DatasetColumn.create = function create(properties) { + return new DatasetColumn(properties); + }; + + /** + * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DatasetColumn.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.literalType != null && message.hasOwnProperty("literalType")) + $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DatasetColumn message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DatasetColumn.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DatasetColumn message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DatasetColumn.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.literalType != null && message.hasOwnProperty("literalType")) { + var error = $root.flyteidl.core.LiteralType.verify(message.literalType); + if (error) + return "literalType." + error; + } + return null; + }; + + return DatasetColumn; + })(); + + return StructuredDatasetType; + })(); + + core.BlobType = (function() { + + /** + * Properties of a BlobType. + * @memberof flyteidl.core + * @interface IBlobType + * @property {string|null} [format] BlobType format + * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality + */ + + /** + * Constructs a new BlobType. + * @memberof flyteidl.core + * @classdesc Represents a BlobType. + * @implements IBlobType + * @constructor + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + */ + function BlobType(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BlobType format. + * @member {string} format + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.format = ""; + + /** + * BlobType dimensionality. + * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality + * @memberof flyteidl.core.BlobType + * @instance + */ + BlobType.prototype.dimensionality = 0; + + /** + * Creates a new BlobType instance using the specified properties. + * @function create + * @memberof flyteidl.core.BlobType + * @static + * @param {flyteidl.core.IBlobType=} [properties] Properties to set + * @returns {flyteidl.core.BlobType} BlobType instance + */ + BlobType.create = function create(properties) { + return new BlobType(properties); + }; + + /** + * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BlobType + * @static + * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlobType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); + return writer; + }; + + /** + * Decodes a BlobType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BlobType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BlobType} BlobType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlobType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.format = reader.string(); + break; + case 2: + message.dimensionality = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BlobType message. + * @function verify + * @memberof flyteidl.core.BlobType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlobType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.format != null && message.hasOwnProperty("format")) + if (!$util.isString(message.format)) + return "format: string expected"; + if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) + switch (message.dimensionality) { + default: + return "dimensionality: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * BlobDimensionality enum. + * @name flyteidl.core.BlobType.BlobDimensionality + * @enum {string} + * @property {number} SINGLE=0 SINGLE value + * @property {number} MULTIPART=1 MULTIPART value + */ + BlobType.BlobDimensionality = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SINGLE"] = 0; + values[valuesById[1] = "MULTIPART"] = 1; + return values; + })(); + + return BlobType; + })(); + + core.EnumType = (function() { + + /** + * Properties of an EnumType. + * @memberof flyteidl.core + * @interface IEnumType + * @property {Array.|null} [values] EnumType values + */ + + /** + * Constructs a new EnumType. + * @memberof flyteidl.core + * @classdesc Represents an EnumType. + * @implements IEnumType + * @constructor + * @param {flyteidl.core.IEnumType=} [properties] Properties to set + */ + function EnumType(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumType values. + * @member {Array.} values + * @memberof flyteidl.core.EnumType + * @instance + */ + EnumType.prototype.values = $util.emptyArray; + + /** + * Creates a new EnumType instance using the specified properties. + * @function create + * @memberof flyteidl.core.EnumType + * @static + * @param {flyteidl.core.IEnumType=} [properties] Properties to set + * @returns {flyteidl.core.EnumType} EnumType instance + */ + EnumType.create = function create(properties) { + return new EnumType(properties); + }; + + /** + * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.EnumType + * @static + * @param {flyteidl.core.IEnumType} message EnumType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; + + /** + * Decodes an EnumType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.EnumType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.EnumType} EnumType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.EnumType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumType message. + * @function verify + * @memberof flyteidl.core.EnumType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + return EnumType; + })(); + + core.UnionType = (function() { + + /** + * Properties of an UnionType. + * @memberof flyteidl.core + * @interface IUnionType + * @property {Array.|null} [variants] UnionType variants + */ + + /** + * Constructs a new UnionType. + * @memberof flyteidl.core + * @classdesc Represents an UnionType. + * @implements IUnionType + * @constructor + * @param {flyteidl.core.IUnionType=} [properties] Properties to set + */ + function UnionType(properties) { + this.variants = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UnionType variants. + * @member {Array.} variants + * @memberof flyteidl.core.UnionType + * @instance + */ + UnionType.prototype.variants = $util.emptyArray; + + /** + * Creates a new UnionType instance using the specified properties. + * @function create + * @memberof flyteidl.core.UnionType + * @static + * @param {flyteidl.core.IUnionType=} [properties] Properties to set + * @returns {flyteidl.core.UnionType} UnionType instance + */ + UnionType.create = function create(properties) { + return new UnionType(properties); + }; + + /** + * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.UnionType + * @static + * @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnionType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variants != null && message.variants.length) + for (var i = 0; i < message.variants.length; ++i) + $root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an UnionType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.UnionType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.UnionType} UnionType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnionType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.variants && message.variants.length)) + message.variants = []; + message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UnionType message. + * @function verify + * @memberof flyteidl.core.UnionType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UnionType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variants != null && message.hasOwnProperty("variants")) { + if (!Array.isArray(message.variants)) + return "variants: array expected"; + for (var i = 0; i < message.variants.length; ++i) { + var error = $root.flyteidl.core.LiteralType.verify(message.variants[i]); + if (error) + return "variants." + error; + } + } + return null; + }; + + return UnionType; + })(); + + core.TypeStructure = (function() { + + /** + * Properties of a TypeStructure. + * @memberof flyteidl.core + * @interface ITypeStructure + * @property {string|null} [tag] TypeStructure tag + * @property {Object.|null} [dataclassType] TypeStructure dataclassType + */ + + /** + * Constructs a new TypeStructure. + * @memberof flyteidl.core + * @classdesc Represents a TypeStructure. + * @implements ITypeStructure + * @constructor + * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set + */ + function TypeStructure(properties) { + this.dataclassType = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypeStructure tag. + * @member {string} tag + * @memberof flyteidl.core.TypeStructure + * @instance + */ + TypeStructure.prototype.tag = ""; + + /** + * TypeStructure dataclassType. + * @member {Object.} dataclassType + * @memberof flyteidl.core.TypeStructure + * @instance + */ + TypeStructure.prototype.dataclassType = $util.emptyObject; + + /** + * Creates a new TypeStructure instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypeStructure + * @static + * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set + * @returns {flyteidl.core.TypeStructure} TypeStructure instance + */ + TypeStructure.create = function create(properties) { + return new TypeStructure(properties); + }; + + /** + * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypeStructure + * @static + * @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypeStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); + if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) + for (var keys = Object.keys(message.dataclassType), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.LiteralType.encode(message.dataclassType[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a TypeStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypeStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypeStructure} TypeStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypeStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tag = reader.string(); + break; + case 2: + reader.skip().pos++; + if (message.dataclassType === $util.emptyObject) + message.dataclassType = {}; + key = reader.string(); + reader.pos++; + message.dataclassType[key] = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypeStructure message. + * @function verify + * @memberof flyteidl.core.TypeStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypeStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) { + if (!$util.isObject(message.dataclassType)) + return "dataclassType: object expected"; + var key = Object.keys(message.dataclassType); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.LiteralType.verify(message.dataclassType[key[i]]); + if (error) + return "dataclassType." + error; + } + } + return null; + }; + + return TypeStructure; + })(); + + core.TypeAnnotation = (function() { + + /** + * Properties of a TypeAnnotation. + * @memberof flyteidl.core + * @interface ITypeAnnotation + * @property {google.protobuf.IStruct|null} [annotations] TypeAnnotation annotations + */ + + /** + * Constructs a new TypeAnnotation. + * @memberof flyteidl.core + * @classdesc Represents a TypeAnnotation. + * @implements ITypeAnnotation + * @constructor + * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set + */ + function TypeAnnotation(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TypeAnnotation annotations. + * @member {google.protobuf.IStruct|null|undefined} annotations + * @memberof flyteidl.core.TypeAnnotation + * @instance + */ + TypeAnnotation.prototype.annotations = null; + + /** + * Creates a new TypeAnnotation instance using the specified properties. + * @function create + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set + * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation instance + */ + TypeAnnotation.create = function create(properties) { + return new TypeAnnotation(properties); + }; + + /** + * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {flyteidl.core.ITypeAnnotation} message TypeAnnotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TypeAnnotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.google.protobuf.Struct.encode(message.annotations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TypeAnnotation message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TypeAnnotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeAnnotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.annotations = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TypeAnnotation message. + * @function verify + * @memberof flyteidl.core.TypeAnnotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TypeAnnotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.google.protobuf.Struct.verify(message.annotations); + if (error) + return "annotations." + error; + } + return null; + }; + + return TypeAnnotation; + })(); + + core.LiteralType = (function() { + + /** + * Properties of a LiteralType. + * @memberof flyteidl.core + * @interface ILiteralType + * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple + * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema + * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType + * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType + * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob + * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType + * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType + * @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType + * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata + * @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation + * @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure + */ + + /** + * Constructs a new LiteralType. + * @memberof flyteidl.core + * @classdesc Represents a LiteralType. + * @implements ILiteralType + * @constructor + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + */ + function LiteralType(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralType simple. + * @member {flyteidl.core.SimpleType} simple + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.simple = 0; + + /** + * LiteralType schema. + * @member {flyteidl.core.ISchemaType|null|undefined} schema + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.schema = null; + + /** + * LiteralType collectionType. + * @member {flyteidl.core.ILiteralType|null|undefined} collectionType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.collectionType = null; + + /** + * LiteralType mapValueType. + * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.mapValueType = null; + + /** + * LiteralType blob. + * @member {flyteidl.core.IBlobType|null|undefined} blob + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.blob = null; + + /** + * LiteralType enumType. + * @member {flyteidl.core.IEnumType|null|undefined} enumType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.enumType = null; + + /** + * LiteralType structuredDatasetType. + * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.structuredDatasetType = null; + + /** + * LiteralType unionType. + * @member {flyteidl.core.IUnionType|null|undefined} unionType + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.unionType = null; + + /** + * LiteralType metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.metadata = null; + + /** + * LiteralType annotation. + * @member {flyteidl.core.ITypeAnnotation|null|undefined} annotation + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.annotation = null; + + /** + * LiteralType structure. + * @member {flyteidl.core.ITypeStructure|null|undefined} structure + * @memberof flyteidl.core.LiteralType + * @instance + */ + LiteralType.prototype.structure = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LiteralType type. + * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type + * @memberof flyteidl.core.LiteralType + * @instance + */ + Object.defineProperty(LiteralType.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralType instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType=} [properties] Properties to set + * @returns {flyteidl.core.LiteralType} LiteralType instance + */ + LiteralType.create = function create(properties) { + return new LiteralType(properties); + }; + + /** + * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralType + * @static + * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.simple != null && message.hasOwnProperty("simple")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.collectionType != null && message.hasOwnProperty("collectionType")) + $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) + $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.enumType != null && message.hasOwnProperty("enumType")) + $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) + $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotation != null && message.hasOwnProperty("annotation")) + $root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.unionType != null && message.hasOwnProperty("unionType")) + $root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.structure != null && message.hasOwnProperty("structure")) + $root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralType} LiteralType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.simple = reader.int32(); + break; + case 2: + message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + case 3: + message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 4: + message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 5: + message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + case 7: + message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32()); + break; + case 8: + message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + break; + case 10: + message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32()); + break; + case 6: + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 9: + message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32()); + break; + case 11: + message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralType message. + * @function verify + * @memberof flyteidl.core.LiteralType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.simple != null && message.hasOwnProperty("simple")) { + properties.type = 1; + switch (message.simple) { + default: + return "simple: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.SchemaType.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.collectionType != null && message.hasOwnProperty("collectionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.LiteralType.verify(message.collectionType); + if (error) + return "collectionType." + error; + } + } + if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); + if (error) + return "mapValueType." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.BlobType.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.EnumType.verify(message.enumType); + if (error) + return "enumType." + error; + } + } + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + if (error) + return "structuredDatasetType." + error; + } + } + if (message.unionType != null && message.hasOwnProperty("unionType")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.core.UnionType.verify(message.unionType); + if (error) + return "unionType." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.annotation != null && message.hasOwnProperty("annotation")) { + var error = $root.flyteidl.core.TypeAnnotation.verify(message.annotation); + if (error) + return "annotation." + error; + } + if (message.structure != null && message.hasOwnProperty("structure")) { + var error = $root.flyteidl.core.TypeStructure.verify(message.structure); + if (error) + return "structure." + error; + } + return null; + }; + + return LiteralType; + })(); + + core.OutputReference = (function() { + + /** + * Properties of an OutputReference. + * @memberof flyteidl.core + * @interface IOutputReference + * @property {string|null} [nodeId] OutputReference nodeId + * @property {string|null} ["var"] OutputReference var + * @property {Array.|null} [attrPath] OutputReference attrPath + */ + + /** + * Constructs a new OutputReference. + * @memberof flyteidl.core + * @classdesc Represents an OutputReference. + * @implements IOutputReference + * @constructor + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + */ + function OutputReference(properties) { + this.attrPath = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OutputReference nodeId. + * @member {string} nodeId + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype.nodeId = ""; + + /** + * OutputReference var. + * @member {string} var + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype["var"] = ""; + + /** + * OutputReference attrPath. + * @member {Array.} attrPath + * @memberof flyteidl.core.OutputReference + * @instance + */ + OutputReference.prototype.attrPath = $util.emptyArray; + + /** + * Creates a new OutputReference instance using the specified properties. + * @function create + * @memberof flyteidl.core.OutputReference + * @static + * @param {flyteidl.core.IOutputReference=} [properties] Properties to set + * @returns {flyteidl.core.OutputReference} OutputReference instance + */ + OutputReference.create = function create(properties) { + return new OutputReference(properties); + }; + + /** + * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OutputReference + * @static + * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + if (message.attrPath != null && message.attrPath.length) + for (var i = 0; i < message.attrPath.length; ++i) + $root.flyteidl.core.PromiseAttribute.encode(message.attrPath[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OutputReference message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OutputReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OutputReference} OutputReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputReference.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + case 2: + message["var"] = reader.string(); + break; + case 3: + if (!(message.attrPath && message.attrPath.length)) + message.attrPath = []; + message.attrPath.push($root.flyteidl.core.PromiseAttribute.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OutputReference message. + * @function verify + * @memberof flyteidl.core.OutputReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.attrPath != null && message.hasOwnProperty("attrPath")) { + if (!Array.isArray(message.attrPath)) + return "attrPath: array expected"; + for (var i = 0; i < message.attrPath.length; ++i) { + var error = $root.flyteidl.core.PromiseAttribute.verify(message.attrPath[i]); + if (error) + return "attrPath." + error; + } + } + return null; + }; + + return OutputReference; + })(); + + core.PromiseAttribute = (function() { + + /** + * Properties of a PromiseAttribute. + * @memberof flyteidl.core + * @interface IPromiseAttribute + * @property {string|null} [stringValue] PromiseAttribute stringValue + * @property {number|null} [intValue] PromiseAttribute intValue + */ + + /** + * Constructs a new PromiseAttribute. + * @memberof flyteidl.core + * @classdesc Represents a PromiseAttribute. + * @implements IPromiseAttribute + * @constructor + * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set + */ + function PromiseAttribute(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PromiseAttribute stringValue. + * @member {string} stringValue + * @memberof flyteidl.core.PromiseAttribute + * @instance + */ + PromiseAttribute.prototype.stringValue = ""; + + /** + * PromiseAttribute intValue. + * @member {number} intValue + * @memberof flyteidl.core.PromiseAttribute + * @instance + */ + PromiseAttribute.prototype.intValue = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * PromiseAttribute value. + * @member {"stringValue"|"intValue"|undefined} value + * @memberof flyteidl.core.PromiseAttribute + * @instance + */ + Object.defineProperty(PromiseAttribute.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["stringValue", "intValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PromiseAttribute instance using the specified properties. + * @function create + * @memberof flyteidl.core.PromiseAttribute + * @static + * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set + * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute instance + */ + PromiseAttribute.create = function create(properties) { + return new PromiseAttribute(properties); + }; + + /** + * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.PromiseAttribute + * @static + * @param {flyteidl.core.IPromiseAttribute} message PromiseAttribute message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PromiseAttribute.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); + if (message.intValue != null && message.hasOwnProperty("intValue")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue); + return writer; + }; + + /** + * Decodes a PromiseAttribute message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.PromiseAttribute + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PromiseAttribute.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.PromiseAttribute(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.stringValue = reader.string(); + break; + case 2: + message.intValue = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PromiseAttribute message. + * @function verify + * @memberof flyteidl.core.PromiseAttribute + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PromiseAttribute.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isInteger(message.intValue)) + return "intValue: integer expected"; + } + return null; + }; + + return PromiseAttribute; + })(); + + core.Error = (function() { + + /** + * Properties of an Error. + * @memberof flyteidl.core + * @interface IError + * @property {string|null} [failedNodeId] Error failedNodeId + * @property {string|null} [message] Error message + */ + + /** + * Constructs a new Error. + * @memberof flyteidl.core + * @classdesc Represents an Error. + * @implements IError + * @constructor + * @param {flyteidl.core.IError=} [properties] Properties to set + */ + function Error(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Error failedNodeId. + * @member {string} failedNodeId + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.failedNodeId = ""; + + /** + * Error message. + * @member {string} message + * @memberof flyteidl.core.Error + * @instance + */ + Error.prototype.message = ""; + + /** + * Creates a new Error instance using the specified properties. + * @function create + * @memberof flyteidl.core.Error + * @static + * @param {flyteidl.core.IError=} [properties] Properties to set + * @returns {flyteidl.core.Error} Error instance + */ + Error.create = function create(properties) { + return new Error(properties); + }; + + /** + * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Error + * @static + * @param {flyteidl.core.IError} message Error message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Error.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; + + /** + * Decodes an Error message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Error + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Error} Error + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Error.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.failedNodeId = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Error message. + * @function verify + * @memberof flyteidl.core.Error + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Error.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) + if (!$util.isString(message.failedNodeId)) + return "failedNodeId: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + return null; + }; + + return Error; + })(); + + core.Primitive = (function() { + + /** + * Properties of a Primitive. + * @memberof flyteidl.core + * @interface IPrimitive + * @property {Long|null} [integer] Primitive integer + * @property {number|null} [floatValue] Primitive floatValue + * @property {string|null} [stringValue] Primitive stringValue + * @property {boolean|null} [boolean] Primitive boolean + * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime + * @property {google.protobuf.IDuration|null} [duration] Primitive duration + */ + + /** + * Constructs a new Primitive. + * @memberof flyteidl.core + * @classdesc Represents a Primitive. + * @implements IPrimitive + * @constructor + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + */ + function Primitive(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Primitive integer. + * @member {Long} integer + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Primitive floatValue. + * @member {number} floatValue + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.floatValue = 0; + + /** + * Primitive stringValue. + * @member {string} stringValue + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.stringValue = ""; + + /** + * Primitive boolean. + * @member {boolean} boolean + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.boolean = false; + + /** + * Primitive datetime. + * @member {google.protobuf.ITimestamp|null|undefined} datetime + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.datetime = null; + + /** + * Primitive duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.Primitive + * @instance + */ + Primitive.prototype.duration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Primitive value. + * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value + * @memberof flyteidl.core.Primitive + * @instance + */ + Object.defineProperty(Primitive.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Primitive instance using the specified properties. + * @function create + * @memberof flyteidl.core.Primitive + * @static + * @param {flyteidl.core.IPrimitive=} [properties] Properties to set + * @returns {flyteidl.core.Primitive} Primitive instance + */ + Primitive.create = function create(properties) { + return new Primitive(properties); + }; + + /** + * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Primitive + * @static + * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Primitive.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.integer != null && message.hasOwnProperty("integer")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); + if (message.floatValue != null && message.hasOwnProperty("floatValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolean != null && message.hasOwnProperty("boolean")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); + if (message.datetime != null && message.hasOwnProperty("datetime")) + $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Primitive message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Primitive + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Primitive} Primitive + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Primitive.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.integer = reader.int64(); + break; + case 2: + message.floatValue = reader.double(); + break; + case 3: + message.stringValue = reader.string(); + break; + case 4: + message.boolean = reader.bool(); + break; + case 5: + message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Primitive message. + * @function verify + * @memberof flyteidl.core.Primitive + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Primitive.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.integer != null && message.hasOwnProperty("integer")) { + properties.value = 1; + if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) + return "integer: integer|Long expected"; + } + if (message.floatValue != null && message.hasOwnProperty("floatValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.floatValue !== "number") + return "floatValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolean != null && message.hasOwnProperty("boolean")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.boolean !== "boolean") + return "boolean: boolean expected"; + } + if (message.datetime != null && message.hasOwnProperty("datetime")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.datetime); + if (error) + return "datetime." + error; + } + } + if (message.duration != null && message.hasOwnProperty("duration")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + } + return null; + }; + + return Primitive; + })(); + + core.Void = (function() { + + /** + * Properties of a Void. + * @memberof flyteidl.core + * @interface IVoid + */ + + /** + * Constructs a new Void. + * @memberof flyteidl.core + * @classdesc Represents a Void. + * @implements IVoid + * @constructor + * @param {flyteidl.core.IVoid=} [properties] Properties to set + */ + function Void(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new Void instance using the specified properties. + * @function create + * @memberof flyteidl.core.Void + * @static + * @param {flyteidl.core.IVoid=} [properties] Properties to set + * @returns {flyteidl.core.Void} Void instance + */ + Void.create = function create(properties) { + return new Void(properties); + }; + + /** + * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Void + * @static + * @param {flyteidl.core.IVoid} message Void message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Void.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a Void message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Void + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Void} Void + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Void.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Void message. + * @function verify + * @memberof flyteidl.core.Void + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Void.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return Void; + })(); + + core.Blob = (function() { + + /** + * Properties of a Blob. + * @memberof flyteidl.core + * @interface IBlob + * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata + * @property {string|null} [uri] Blob uri + */ + + /** + * Constructs a new Blob. + * @memberof flyteidl.core + * @classdesc Represents a Blob. + * @implements IBlob + * @constructor + * @param {flyteidl.core.IBlob=} [properties] Properties to set + */ + function Blob(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Blob metadata. + * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata + * @memberof flyteidl.core.Blob + * @instance + */ + Blob.prototype.metadata = null; + + /** + * Blob uri. + * @member {string} uri + * @memberof flyteidl.core.Blob + * @instance + */ + Blob.prototype.uri = ""; + + /** + * Creates a new Blob instance using the specified properties. + * @function create + * @memberof flyteidl.core.Blob + * @static + * @param {flyteidl.core.IBlob=} [properties] Properties to set + * @returns {flyteidl.core.Blob} Blob instance + */ + Blob.create = function create(properties) { + return new Blob(properties); + }; + + /** + * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Blob + * @static + * @param {flyteidl.core.IBlob} message Blob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Blob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); + return writer; + }; + + /** + * Decodes a Blob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Blob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Blob} Blob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Blob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Blob message. + * @function verify + * @memberof flyteidl.core.Blob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Blob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + return null; + }; + + return Blob; + })(); + + core.BlobMetadata = (function() { + + /** + * Properties of a BlobMetadata. + * @memberof flyteidl.core + * @interface IBlobMetadata + * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type + */ + + /** + * Constructs a new BlobMetadata. + * @memberof flyteidl.core + * @classdesc Represents a BlobMetadata. + * @implements IBlobMetadata + * @constructor + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + */ + function BlobMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BlobMetadata type. + * @member {flyteidl.core.IBlobType|null|undefined} type + * @memberof flyteidl.core.BlobMetadata + * @instance + */ + BlobMetadata.prototype.type = null; + + /** + * Creates a new BlobMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set + * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance + */ + BlobMetadata.create = function create(properties) { + return new BlobMetadata(properties); + }; + + /** + * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlobMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BlobMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BlobMetadata} BlobMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlobMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BlobMetadata message. + * @function verify + * @memberof flyteidl.core.BlobMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlobMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.BlobType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return BlobMetadata; + })(); + + core.Binary = (function() { + + /** + * Properties of a Binary. + * @memberof flyteidl.core + * @interface IBinary + * @property {Uint8Array|null} [value] Binary value + * @property {string|null} [tag] Binary tag + */ + + /** + * Constructs a new Binary. + * @memberof flyteidl.core + * @classdesc Represents a Binary. + * @implements IBinary + * @constructor + * @param {flyteidl.core.IBinary=} [properties] Properties to set + */ + function Binary(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Binary value. + * @member {Uint8Array} value + * @memberof flyteidl.core.Binary + * @instance + */ + Binary.prototype.value = $util.newBuffer([]); + + /** + * Binary tag. + * @member {string} tag + * @memberof flyteidl.core.Binary + * @instance + */ + Binary.prototype.tag = ""; + + /** + * Creates a new Binary instance using the specified properties. + * @function create + * @memberof flyteidl.core.Binary + * @static + * @param {flyteidl.core.IBinary=} [properties] Properties to set + * @returns {flyteidl.core.Binary} Binary instance + */ + Binary.create = function create(properties) { + return new Binary(properties); + }; + + /** + * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Binary + * @static + * @param {flyteidl.core.IBinary} message Binary message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binary.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + if (message.tag != null && message.hasOwnProperty("tag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); + return writer; + }; + + /** + * Decodes a Binary message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Binary + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Binary} Binary + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binary.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bytes(); + break; + case 2: + message.tag = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Binary message. + * @function verify + * @memberof flyteidl.core.Binary + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binary.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + return null; + }; + + return Binary; + })(); + + core.Schema = (function() { + + /** + * Properties of a Schema. + * @memberof flyteidl.core + * @interface ISchema + * @property {string|null} [uri] Schema uri + * @property {flyteidl.core.ISchemaType|null} [type] Schema type + */ + + /** + * Constructs a new Schema. + * @memberof flyteidl.core + * @classdesc Represents a Schema. + * @implements ISchema + * @constructor + * @param {flyteidl.core.ISchema=} [properties] Properties to set + */ + function Schema(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Schema uri. + * @member {string} uri + * @memberof flyteidl.core.Schema + * @instance + */ + Schema.prototype.uri = ""; + + /** + * Schema type. + * @member {flyteidl.core.ISchemaType|null|undefined} type + * @memberof flyteidl.core.Schema + * @instance + */ + Schema.prototype.type = null; + + /** + * Creates a new Schema instance using the specified properties. + * @function create + * @memberof flyteidl.core.Schema + * @static + * @param {flyteidl.core.ISchema=} [properties] Properties to set + * @returns {flyteidl.core.Schema} Schema instance + */ + Schema.create = function create(properties) { + return new Schema(properties); + }; + + /** + * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Schema + * @static + * @param {flyteidl.core.ISchema} message Schema message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schema.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Schema message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Schema + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Schema} Schema + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schema.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 3: + message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Schema message. + * @function verify + * @memberof flyteidl.core.Schema + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schema.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.SchemaType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return Schema; + })(); + + core.Union = (function() { + + /** + * Properties of an Union. + * @memberof flyteidl.core + * @interface IUnion + * @property {flyteidl.core.ILiteral|null} [value] Union value + * @property {flyteidl.core.ILiteralType|null} [type] Union type + */ + + /** + * Constructs a new Union. + * @memberof flyteidl.core + * @classdesc Represents an Union. + * @implements IUnion + * @constructor + * @param {flyteidl.core.IUnion=} [properties] Properties to set + */ + function Union(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Union value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.core.Union + * @instance + */ + Union.prototype.value = null; + + /** + * Union type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.Union + * @instance + */ + Union.prototype.type = null; + + /** + * Creates a new Union instance using the specified properties. + * @function create + * @memberof flyteidl.core.Union + * @static + * @param {flyteidl.core.IUnion=} [properties] Properties to set + * @returns {flyteidl.core.Union} Union instance + */ + Union.create = function create(properties) { + return new Union(properties); + }; + + /** + * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Union + * @static + * @param {flyteidl.core.IUnion} message Union message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Union.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Union message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Union + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Union} Union + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Union.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Union message. + * @function verify + * @memberof flyteidl.core.Union + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Union.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; + } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return Union; + })(); + + core.StructuredDatasetMetadata = (function() { + + /** + * Properties of a StructuredDatasetMetadata. + * @memberof flyteidl.core + * @interface IStructuredDatasetMetadata + * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType + */ + + /** + * Constructs a new StructuredDatasetMetadata. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDatasetMetadata. + * @implements IStructuredDatasetMetadata + * @constructor + * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set + */ + function StructuredDatasetMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDatasetMetadata structuredDatasetType. + * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType + * @memberof flyteidl.core.StructuredDatasetMetadata + * @instance + */ + StructuredDatasetMetadata.prototype.structuredDatasetType = null; + + /** + * Creates a new StructuredDatasetMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance + */ + StructuredDatasetMetadata.create = function create(properties) { + return new StructuredDatasetMetadata(properties); + }; + + /** + * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredDatasetMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) + $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredDatasetMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StructuredDatasetMetadata message. + * @function verify + * @memberof flyteidl.core.StructuredDatasetMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredDatasetMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { + var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); + if (error) + return "structuredDatasetType." + error; + } + return null; + }; + + return StructuredDatasetMetadata; + })(); + + core.StructuredDataset = (function() { + + /** + * Properties of a StructuredDataset. + * @memberof flyteidl.core + * @interface IStructuredDataset + * @property {string|null} [uri] StructuredDataset uri + * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata + */ + + /** + * Constructs a new StructuredDataset. + * @memberof flyteidl.core + * @classdesc Represents a StructuredDataset. + * @implements IStructuredDataset + * @constructor + * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set + */ + function StructuredDataset(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StructuredDataset uri. + * @member {string} uri + * @memberof flyteidl.core.StructuredDataset + * @instance + */ + StructuredDataset.prototype.uri = ""; + + /** + * StructuredDataset metadata. + * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata + * @memberof flyteidl.core.StructuredDataset + * @instance + */ + StructuredDataset.prototype.metadata = null; + + /** + * Creates a new StructuredDataset instance using the specified properties. + * @function create + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set + * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance + */ + StructuredDataset.create = function create(properties) { + return new StructuredDataset(properties); + }; + + /** + * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StructuredDataset.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a StructuredDataset message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.StructuredDataset} StructuredDataset + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StructuredDataset.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StructuredDataset message. + * @function verify + * @memberof flyteidl.core.StructuredDataset + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StructuredDataset.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return StructuredDataset; + })(); + + core.Scalar = (function() { + + /** + * Properties of a Scalar. + * @memberof flyteidl.core + * @interface IScalar + * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive + * @property {flyteidl.core.IBlob|null} [blob] Scalar blob + * @property {flyteidl.core.IBinary|null} [binary] Scalar binary + * @property {flyteidl.core.ISchema|null} [schema] Scalar schema + * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType + * @property {flyteidl.core.IError|null} [error] Scalar error + * @property {google.protobuf.IStruct|null} [generic] Scalar generic + * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset + * @property {flyteidl.core.IUnion|null} [union] Scalar union + */ + + /** + * Constructs a new Scalar. + * @memberof flyteidl.core + * @classdesc Represents a Scalar. + * @implements IScalar + * @constructor + * @param {flyteidl.core.IScalar=} [properties] Properties to set + */ + function Scalar(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Scalar primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.primitive = null; + + /** + * Scalar blob. + * @member {flyteidl.core.IBlob|null|undefined} blob + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.blob = null; + + /** + * Scalar binary. + * @member {flyteidl.core.IBinary|null|undefined} binary + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.binary = null; + + /** + * Scalar schema. + * @member {flyteidl.core.ISchema|null|undefined} schema + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.schema = null; + + /** + * Scalar noneType. + * @member {flyteidl.core.IVoid|null|undefined} noneType + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.noneType = null; + + /** + * Scalar error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.error = null; + + /** + * Scalar generic. + * @member {google.protobuf.IStruct|null|undefined} generic + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.generic = null; + + /** + * Scalar structuredDataset. + * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.structuredDataset = null; + + /** + * Scalar union. + * @member {flyteidl.core.IUnion|null|undefined} union + * @memberof flyteidl.core.Scalar + * @instance + */ + Scalar.prototype.union = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Scalar value. + * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value + * @memberof flyteidl.core.Scalar + * @instance + */ + Object.defineProperty(Scalar.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Scalar instance using the specified properties. + * @function create + * @memberof flyteidl.core.Scalar + * @static + * @param {flyteidl.core.IScalar=} [properties] Properties to set + * @returns {flyteidl.core.Scalar} Scalar instance + */ + Scalar.create = function create(properties) { + return new Scalar(properties); + }; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Scalar + * @static + * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scalar.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.blob != null && message.hasOwnProperty("blob")) + $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.binary != null && message.hasOwnProperty("binary")) + $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.schema != null && message.hasOwnProperty("schema")) + $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.noneType != null && message.hasOwnProperty("noneType")) + $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.generic != null && message.hasOwnProperty("generic")) + $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) + $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.union != null && message.hasOwnProperty("union")) + $root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Scalar + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Scalar} Scalar + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scalar.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); + break; + case 3: + message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); + break; + case 4: + message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); + break; + case 5: + message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); + break; + case 6: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + case 7: + message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 8: + message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32()); + break; + case 9: + message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Scalar message. + * @function verify + * @memberof flyteidl.core.Scalar + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Scalar.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message.blob != null && message.hasOwnProperty("blob")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Blob.verify(message.blob); + if (error) + return "blob." + error; + } + } + if (message.binary != null && message.hasOwnProperty("binary")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Binary.verify(message.binary); + if (error) + return "binary." + error; + } + } + if (message.schema != null && message.hasOwnProperty("schema")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Schema.verify(message.schema); + if (error) + return "schema." + error; + } + } + if (message.noneType != null && message.hasOwnProperty("noneType")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Void.verify(message.noneType); + if (error) + return "noneType." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.generic != null && message.hasOwnProperty("generic")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.protobuf.Struct.verify(message.generic); + if (error) + return "generic." + error; + } + } + if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset); + if (error) + return "structuredDataset." + error; + } + } + if (message.union != null && message.hasOwnProperty("union")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.Union.verify(message.union); + if (error) + return "union." + error; + } + } + return null; + }; + + return Scalar; + })(); + + core.Literal = (function() { + + /** + * Properties of a Literal. + * @memberof flyteidl.core + * @interface ILiteral + * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar + * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection + * @property {flyteidl.core.ILiteralMap|null} [map] Literal map + * @property {string|null} [hash] Literal hash + * @property {Object.|null} [metadata] Literal metadata + */ + + /** + * Constructs a new Literal. + * @memberof flyteidl.core + * @classdesc Represents a Literal. + * @implements ILiteral + * @constructor + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + */ + function Literal(properties) { + this.metadata = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Literal scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.scalar = null; + + /** + * Literal collection. + * @member {flyteidl.core.ILiteralCollection|null|undefined} collection + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.collection = null; + + /** + * Literal map. + * @member {flyteidl.core.ILiteralMap|null|undefined} map + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.map = null; + + /** + * Literal hash. + * @member {string} hash + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.hash = ""; + + /** + * Literal metadata. + * @member {Object.} metadata + * @memberof flyteidl.core.Literal + * @instance + */ + Literal.prototype.metadata = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Literal value. + * @member {"scalar"|"collection"|"map"|undefined} value + * @memberof flyteidl.core.Literal + * @instance + */ + Object.defineProperty(Literal.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Literal instance using the specified properties. + * @function create + * @memberof flyteidl.core.Literal + * @static + * @param {flyteidl.core.ILiteral=} [properties] Properties to set + * @returns {flyteidl.core.Literal} Literal instance + */ + Literal.create = function create(properties) { + return new Literal(properties); + }; + + /** + * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Literal + * @static + * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Literal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.hash != null && message.hasOwnProperty("hash")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.hash); + if (message.metadata != null && message.hasOwnProperty("metadata")) + for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a Literal message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Literal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Literal} Literal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Literal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + case 2: + message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); + break; + case 3: + message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.hash = reader.string(); + break; + case 5: + reader.skip().pos++; + if (message.metadata === $util.emptyObject) + message.metadata = {}; + key = reader.string(); + reader.pos++; + message.metadata[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Literal message. + * @function verify + * @memberof flyteidl.core.Literal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Literal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.LiteralCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.map); + if (error) + return "map." + error; + } + } + if (message.hash != null && message.hasOwnProperty("hash")) + if (!$util.isString(message.hash)) + return "hash: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + if (!$util.isObject(message.metadata)) + return "metadata: object expected"; + var key = Object.keys(message.metadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.metadata[key[i]])) + return "metadata: string{k:string} expected"; + } + return null; + }; + + return Literal; + })(); + + core.LiteralCollection = (function() { + + /** + * Properties of a LiteralCollection. + * @memberof flyteidl.core + * @interface ILiteralCollection + * @property {Array.|null} [literals] LiteralCollection literals + */ + + /** + * Constructs a new LiteralCollection. + * @memberof flyteidl.core + * @classdesc Represents a LiteralCollection. + * @implements ILiteralCollection + * @constructor + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + */ + function LiteralCollection(properties) { + this.literals = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralCollection literals. + * @member {Array.} literals + * @memberof flyteidl.core.LiteralCollection + * @instance + */ + LiteralCollection.prototype.literals = $util.emptyArray; + + /** + * Creates a new LiteralCollection instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set + * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance + */ + LiteralCollection.create = function create(properties) { + return new LiteralCollection(properties); + }; + + /** + * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralCollection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literals != null && message.literals.length) + for (var i = 0; i < message.literals.length; ++i) + $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LiteralCollection message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralCollection} LiteralCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralCollection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.literals && message.literals.length)) + message.literals = []; + message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralCollection message. + * @function verify + * @memberof flyteidl.core.LiteralCollection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralCollection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!Array.isArray(message.literals)) + return "literals: array expected"; + for (var i = 0; i < message.literals.length; ++i) { + var error = $root.flyteidl.core.Literal.verify(message.literals[i]); + if (error) + return "literals." + error; + } + } + return null; + }; + + return LiteralCollection; + })(); + + core.LiteralMap = (function() { + + /** + * Properties of a LiteralMap. + * @memberof flyteidl.core + * @interface ILiteralMap + * @property {Object.|null} [literals] LiteralMap literals + */ + + /** + * Constructs a new LiteralMap. + * @memberof flyteidl.core + * @classdesc Represents a LiteralMap. + * @implements ILiteralMap + * @constructor + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + */ + function LiteralMap(properties) { + this.literals = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralMap literals. + * @member {Object.} literals + * @memberof flyteidl.core.LiteralMap + * @instance + */ + LiteralMap.prototype.literals = $util.emptyObject; + + /** + * Creates a new LiteralMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.LiteralMap + * @static + * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set + * @returns {flyteidl.core.LiteralMap} LiteralMap instance + */ + LiteralMap.create = function create(properties) { + return new LiteralMap(properties); + }; + + /** + * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LiteralMap + * @static + * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literals != null && message.hasOwnProperty("literals")) + for (var keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a LiteralMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LiteralMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LiteralMap} LiteralMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.literals === $util.emptyObject) + message.literals = {}; + key = reader.string(); + reader.pos++; + message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralMap message. + * @function verify + * @memberof flyteidl.core.LiteralMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.literals != null && message.hasOwnProperty("literals")) { + if (!$util.isObject(message.literals)) + return "literals: object expected"; + var key = Object.keys(message.literals); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); + if (error) + return "literals." + error; + } + } + return null; + }; + + return LiteralMap; + })(); + + core.BindingDataCollection = (function() { + + /** + * Properties of a BindingDataCollection. + * @memberof flyteidl.core + * @interface IBindingDataCollection + * @property {Array.|null} [bindings] BindingDataCollection bindings + */ + + /** + * Constructs a new BindingDataCollection. + * @memberof flyteidl.core + * @classdesc Represents a BindingDataCollection. + * @implements IBindingDataCollection + * @constructor + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + */ + function BindingDataCollection(properties) { + this.bindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingDataCollection bindings. + * @member {Array.} bindings + * @memberof flyteidl.core.BindingDataCollection + * @instance + */ + BindingDataCollection.prototype.bindings = $util.emptyArray; + + /** + * Creates a new BindingDataCollection instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance + */ + BindingDataCollection.create = function create(properties) { + return new BindingDataCollection(properties); + }; + + /** + * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingDataCollection.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bindings != null && message.bindings.length) + for (var i = 0; i < message.bindings.length; ++i) + $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BindingDataCollection message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingDataCollection.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.bindings && message.bindings.length)) + message.bindings = []; + message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingDataCollection message. + * @function verify + * @memberof flyteidl.core.BindingDataCollection + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingDataCollection.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!Array.isArray(message.bindings)) + return "bindings: array expected"; + for (var i = 0; i < message.bindings.length; ++i) { + var error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); + if (error) + return "bindings." + error; + } + } + return null; + }; + + return BindingDataCollection; + })(); + + core.BindingDataMap = (function() { + + /** + * Properties of a BindingDataMap. + * @memberof flyteidl.core + * @interface IBindingDataMap + * @property {Object.|null} [bindings] BindingDataMap bindings + */ + + /** + * Constructs a new BindingDataMap. + * @memberof flyteidl.core + * @classdesc Represents a BindingDataMap. + * @implements IBindingDataMap + * @constructor + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + */ + function BindingDataMap(properties) { + this.bindings = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingDataMap bindings. + * @member {Object.} bindings + * @memberof flyteidl.core.BindingDataMap + * @instance + */ + BindingDataMap.prototype.bindings = $util.emptyObject; + + /** + * Creates a new BindingDataMap instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set + * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance + */ + BindingDataMap.create = function create(properties) { + return new BindingDataMap(properties); + }; + + /** + * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingDataMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.bindings != null && message.hasOwnProperty("bindings")) + for (var keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a BindingDataMap message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingDataMap} BindingDataMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingDataMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.bindings === $util.emptyObject) + message.bindings = {}; + key = reader.string(); + reader.pos++; + message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingDataMap message. + * @function verify + * @memberof flyteidl.core.BindingDataMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingDataMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bindings != null && message.hasOwnProperty("bindings")) { + if (!$util.isObject(message.bindings)) + return "bindings: object expected"; + var key = Object.keys(message.bindings); + for (var i = 0; i < key.length; ++i) { + var error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); + if (error) + return "bindings." + error; + } + } + return null; + }; + + return BindingDataMap; + })(); + + core.UnionInfo = (function() { + + /** + * Properties of an UnionInfo. + * @memberof flyteidl.core + * @interface IUnionInfo + * @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType + */ + + /** + * Constructs a new UnionInfo. + * @memberof flyteidl.core + * @classdesc Represents an UnionInfo. + * @implements IUnionInfo + * @constructor + * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set + */ + function UnionInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UnionInfo targetType. + * @member {flyteidl.core.ILiteralType|null|undefined} targetType + * @memberof flyteidl.core.UnionInfo + * @instance + */ + UnionInfo.prototype.targetType = null; + + /** + * Creates a new UnionInfo instance using the specified properties. + * @function create + * @memberof flyteidl.core.UnionInfo + * @static + * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set + * @returns {flyteidl.core.UnionInfo} UnionInfo instance + */ + UnionInfo.create = function create(properties) { + return new UnionInfo(properties); + }; + + /** + * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.UnionInfo + * @static + * @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UnionInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.targetType != null && message.hasOwnProperty("targetType")) + $root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an UnionInfo message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.UnionInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.UnionInfo} UnionInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UnionInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UnionInfo message. + * @function verify + * @memberof flyteidl.core.UnionInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UnionInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.targetType != null && message.hasOwnProperty("targetType")) { + var error = $root.flyteidl.core.LiteralType.verify(message.targetType); + if (error) + return "targetType." + error; + } + return null; + }; + + return UnionInfo; + })(); + + core.BindingData = (function() { + + /** + * Properties of a BindingData. + * @memberof flyteidl.core + * @interface IBindingData + * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar + * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection + * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise + * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map + * @property {flyteidl.core.IUnionInfo|null} [union] BindingData union + */ + + /** + * Constructs a new BindingData. + * @memberof flyteidl.core + * @classdesc Represents a BindingData. + * @implements IBindingData + * @constructor + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + */ + function BindingData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BindingData scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.scalar = null; + + /** + * BindingData collection. + * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.collection = null; + + /** + * BindingData promise. + * @member {flyteidl.core.IOutputReference|null|undefined} promise + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.promise = null; + + /** + * BindingData map. + * @member {flyteidl.core.IBindingDataMap|null|undefined} map + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.map = null; + + /** + * BindingData union. + * @member {flyteidl.core.IUnionInfo|null|undefined} union + * @memberof flyteidl.core.BindingData + * @instance + */ + BindingData.prototype.union = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BindingData value. + * @member {"scalar"|"collection"|"promise"|"map"|undefined} value + * @memberof flyteidl.core.BindingData + * @instance + */ + Object.defineProperty(BindingData.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BindingData instance using the specified properties. + * @function create + * @memberof flyteidl.core.BindingData + * @static + * @param {flyteidl.core.IBindingData=} [properties] Properties to set + * @returns {flyteidl.core.BindingData} BindingData instance + */ + BindingData.create = function create(properties) { + return new BindingData(properties); + }; + + /** + * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BindingData + * @static + * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BindingData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.collection != null && message.hasOwnProperty("collection")) + $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.promise != null && message.hasOwnProperty("promise")) + $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.map != null && message.hasOwnProperty("map")) + $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.union != null && message.hasOwnProperty("union")) + $root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BindingData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BindingData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BindingData} BindingData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BindingData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + case 2: + message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); + break; + case 3: + message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); + break; + case 4: + message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); + break; + case 5: + message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BindingData message. + * @function verify + * @memberof flyteidl.core.BindingData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BindingData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.scalar != null && message.hasOwnProperty("scalar")) { + properties.value = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + if (message.collection != null && message.hasOwnProperty("collection")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); + if (error) + return "collection." + error; + } + } + if (message.promise != null && message.hasOwnProperty("promise")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.OutputReference.verify(message.promise); + if (error) + return "promise." + error; + } + } + if (message.map != null && message.hasOwnProperty("map")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.flyteidl.core.BindingDataMap.verify(message.map); + if (error) + return "map." + error; + } + } + if (message.union != null && message.hasOwnProperty("union")) { + var error = $root.flyteidl.core.UnionInfo.verify(message.union); + if (error) + return "union." + error; + } + return null; + }; + + return BindingData; + })(); + + core.Binding = (function() { + + /** + * Properties of a Binding. + * @memberof flyteidl.core + * @interface IBinding + * @property {string|null} ["var"] Binding var + * @property {flyteidl.core.IBindingData|null} [binding] Binding binding + */ + + /** + * Constructs a new Binding. + * @memberof flyteidl.core + * @classdesc Represents a Binding. + * @implements IBinding + * @constructor + * @param {flyteidl.core.IBinding=} [properties] Properties to set + */ + function Binding(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Binding var. + * @member {string} var + * @memberof flyteidl.core.Binding + * @instance + */ + Binding.prototype["var"] = ""; + + /** + * Binding binding. + * @member {flyteidl.core.IBindingData|null|undefined} binding + * @memberof flyteidl.core.Binding + * @instance + */ + Binding.prototype.binding = null; + + /** + * Creates a new Binding instance using the specified properties. + * @function create + * @memberof flyteidl.core.Binding + * @static + * @param {flyteidl.core.IBinding=} [properties] Properties to set + * @returns {flyteidl.core.Binding} Binding instance + */ + Binding.create = function create(properties) { + return new Binding(properties); + }; + + /** + * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Binding + * @static + * @param {flyteidl.core.IBinding} message Binding message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Binding.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.binding != null && message.hasOwnProperty("binding")) + $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Binding message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Binding + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Binding} Binding + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Binding.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + case 2: + message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Binding message. + * @function verify + * @memberof flyteidl.core.Binding + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Binding.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.binding != null && message.hasOwnProperty("binding")) { + var error = $root.flyteidl.core.BindingData.verify(message.binding); + if (error) + return "binding." + error; + } + return null; + }; + + return Binding; + })(); + + core.KeyValuePair = (function() { + + /** + * Properties of a KeyValuePair. + * @memberof flyteidl.core + * @interface IKeyValuePair + * @property {string|null} [key] KeyValuePair key + * @property {string|null} [value] KeyValuePair value + */ + + /** + * Constructs a new KeyValuePair. + * @memberof flyteidl.core + * @classdesc Represents a KeyValuePair. + * @implements IKeyValuePair + * @constructor + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + */ + function KeyValuePair(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * KeyValuePair key. + * @member {string} key + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.key = ""; + + /** + * KeyValuePair value. + * @member {string} value + * @memberof flyteidl.core.KeyValuePair + * @instance + */ + KeyValuePair.prototype.value = ""; + + /** + * Creates a new KeyValuePair instance using the specified properties. + * @function create + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set + * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance + */ + KeyValuePair.create = function create(properties) { + return new KeyValuePair(properties); + }; + + /** + * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + KeyValuePair.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; + + /** + * Decodes a KeyValuePair message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.KeyValuePair} KeyValuePair + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + KeyValuePair.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a KeyValuePair message. + * @function verify + * @memberof flyteidl.core.KeyValuePair + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + KeyValuePair.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return KeyValuePair; + })(); + + core.RetryStrategy = (function() { + + /** + * Properties of a RetryStrategy. + * @memberof flyteidl.core + * @interface IRetryStrategy + * @property {number|null} [retries] RetryStrategy retries + */ + + /** + * Constructs a new RetryStrategy. + * @memberof flyteidl.core + * @classdesc Represents a RetryStrategy. + * @implements IRetryStrategy + * @constructor + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + */ + function RetryStrategy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RetryStrategy retries. + * @member {number} retries + * @memberof flyteidl.core.RetryStrategy + * @instance + */ + RetryStrategy.prototype.retries = 0; + + /** + * Creates a new RetryStrategy instance using the specified properties. + * @function create + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set + * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance + */ + RetryStrategy.create = function create(properties) { + return new RetryStrategy(properties); + }; + + /** + * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RetryStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.retries != null && message.hasOwnProperty("retries")) + writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); + return writer; + }; + + /** + * Decodes a RetryStrategy message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.RetryStrategy} RetryStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RetryStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 5: + message.retries = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RetryStrategy message. + * @function verify + * @memberof flyteidl.core.RetryStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RetryStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.retries != null && message.hasOwnProperty("retries")) + if (!$util.isInteger(message.retries)) + return "retries: integer expected"; + return null; + }; + + return RetryStrategy; + })(); + + core.IfBlock = (function() { + + /** + * Properties of an IfBlock. + * @memberof flyteidl.core + * @interface IIfBlock + * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition + * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode + */ + + /** + * Constructs a new IfBlock. + * @memberof flyteidl.core + * @classdesc Represents an IfBlock. + * @implements IIfBlock + * @constructor + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + */ + function IfBlock(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IfBlock condition. + * @member {flyteidl.core.IBooleanExpression|null|undefined} condition + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.condition = null; + + /** + * IfBlock thenNode. + * @member {flyteidl.core.INode|null|undefined} thenNode + * @memberof flyteidl.core.IfBlock + * @instance + */ + IfBlock.prototype.thenNode = null; + + /** + * Creates a new IfBlock instance using the specified properties. + * @function create + * @memberof flyteidl.core.IfBlock + * @static + * @param {flyteidl.core.IIfBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfBlock} IfBlock instance + */ + IfBlock.create = function create(properties) { + return new IfBlock(properties); + }; + + /** + * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IfBlock + * @static + * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IfBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.condition != null && message.hasOwnProperty("condition")) + $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.thenNode != null && message.hasOwnProperty("thenNode")) + $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an IfBlock message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IfBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IfBlock} IfBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IfBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 2: + message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IfBlock message. + * @function verify + * @memberof flyteidl.core.IfBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IfBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.condition != null && message.hasOwnProperty("condition")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.condition); + if (error) + return "condition." + error; + } + if (message.thenNode != null && message.hasOwnProperty("thenNode")) { + var error = $root.flyteidl.core.Node.verify(message.thenNode); + if (error) + return "thenNode." + error; + } + return null; + }; + + return IfBlock; + })(); + + core.IfElseBlock = (function() { + + /** + * Properties of an IfElseBlock. + * @memberof flyteidl.core + * @interface IIfElseBlock + * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case + * @property {Array.|null} [other] IfElseBlock other + * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode + * @property {flyteidl.core.IError|null} [error] IfElseBlock error + */ + + /** + * Constructs a new IfElseBlock. + * @memberof flyteidl.core + * @classdesc Represents an IfElseBlock. + * @implements IIfElseBlock + * @constructor + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + */ + function IfElseBlock(properties) { + this.other = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IfElseBlock case. + * @member {flyteidl.core.IIfBlock|null|undefined} case + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype["case"] = null; + + /** + * IfElseBlock other. + * @member {Array.} other + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.other = $util.emptyArray; + + /** + * IfElseBlock elseNode. + * @member {flyteidl.core.INode|null|undefined} elseNode + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.elseNode = null; + + /** + * IfElseBlock error. + * @member {flyteidl.core.IError|null|undefined} error + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + IfElseBlock.prototype.error = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * IfElseBlock default. + * @member {"elseNode"|"error"|undefined} default_ + * @memberof flyteidl.core.IfElseBlock + * @instance + */ + Object.defineProperty(IfElseBlock.prototype, "default", { + get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new IfElseBlock instance using the specified properties. + * @function create + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set + * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance + */ + IfElseBlock.create = function create(properties) { + return new IfElseBlock(properties); + }; + + /** + * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IfElseBlock.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["case"] != null && message.hasOwnProperty("case")) + $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.other != null && message.other.length) + for (var i = 0; i < message.other.length; ++i) + $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.elseNode != null && message.hasOwnProperty("elseNode")) + $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an IfElseBlock message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IfElseBlock} IfElseBlock + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IfElseBlock.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.other && message.other.length)) + message.other = []; + message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); + break; + case 3: + message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 4: + message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an IfElseBlock message. + * @function verify + * @memberof flyteidl.core.IfElseBlock + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IfElseBlock.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message["case"] != null && message.hasOwnProperty("case")) { + var error = $root.flyteidl.core.IfBlock.verify(message["case"]); + if (error) + return "case." + error; + } + if (message.other != null && message.hasOwnProperty("other")) { + if (!Array.isArray(message.other)) + return "other: array expected"; + for (var i = 0; i < message.other.length; ++i) { + var error = $root.flyteidl.core.IfBlock.verify(message.other[i]); + if (error) + return "other." + error; + } + } + if (message.elseNode != null && message.hasOwnProperty("elseNode")) { + properties["default"] = 1; + { + var error = $root.flyteidl.core.Node.verify(message.elseNode); + if (error) + return "elseNode." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties["default"] === 1) + return "default: multiple values"; + properties["default"] = 1; + { + var error = $root.flyteidl.core.Error.verify(message.error); + if (error) + return "error." + error; + } + } + return null; + }; + + return IfElseBlock; + })(); + + core.BranchNode = (function() { + + /** + * Properties of a BranchNode. + * @memberof flyteidl.core + * @interface IBranchNode + * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse + */ + + /** + * Constructs a new BranchNode. + * @memberof flyteidl.core + * @classdesc Represents a BranchNode. + * @implements IBranchNode + * @constructor + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + */ + function BranchNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BranchNode ifElse. + * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse + * @memberof flyteidl.core.BranchNode + * @instance + */ + BranchNode.prototype.ifElse = null; + + /** + * Creates a new BranchNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode=} [properties] Properties to set + * @returns {flyteidl.core.BranchNode} BranchNode instance + */ + BranchNode.create = function create(properties) { + return new BranchNode(properties); + }; + + /** + * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BranchNode + * @static + * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BranchNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ifElse != null && message.hasOwnProperty("ifElse")) + $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BranchNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BranchNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BranchNode} BranchNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BranchNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BranchNode message. + * @function verify + * @memberof flyteidl.core.BranchNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BranchNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ifElse != null && message.hasOwnProperty("ifElse")) { + var error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); + if (error) + return "ifElse." + error; + } + return null; + }; + + return BranchNode; + })(); + + core.TaskNode = (function() { + + /** + * Properties of a TaskNode. + * @memberof flyteidl.core + * @interface ITaskNode + * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId + * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskNode overrides + */ + + /** + * Constructs a new TaskNode. + * @memberof flyteidl.core + * @classdesc Represents a TaskNode. + * @implements ITaskNode + * @constructor + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + */ + function TaskNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNode referenceId. + * @member {flyteidl.core.IIdentifier|null|undefined} referenceId + * @memberof flyteidl.core.TaskNode + * @instance + */ + TaskNode.prototype.referenceId = null; + + /** + * TaskNode overrides. + * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides + * @memberof flyteidl.core.TaskNode + * @instance + */ + TaskNode.prototype.overrides = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskNode reference. + * @member {"referenceId"|undefined} reference + * @memberof flyteidl.core.TaskNode + * @instance + */ + Object.defineProperty(TaskNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["referenceId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskNode + * @static + * @param {flyteidl.core.ITaskNode=} [properties] Properties to set + * @returns {flyteidl.core.TaskNode} TaskNode instance + */ + TaskNode.create = function create(properties) { + return new TaskNode(properties); + }; + + /** + * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskNode + * @static + * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.referenceId != null && message.hasOwnProperty("referenceId")) + $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.overrides != null && message.hasOwnProperty("overrides")) + $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskNode} TaskNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNode message. + * @function verify + * @memberof flyteidl.core.TaskNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.referenceId != null && message.hasOwnProperty("referenceId")) { + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.referenceId); + if (error) + return "referenceId." + error; + } + } + if (message.overrides != null && message.hasOwnProperty("overrides")) { + var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); + if (error) + return "overrides." + error; + } + return null; + }; + + return TaskNode; + })(); + + core.WorkflowNode = (function() { + + /** + * Properties of a WorkflowNode. + * @memberof flyteidl.core + * @interface IWorkflowNode + * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef + * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef + */ + + /** + * Constructs a new WorkflowNode. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowNode. + * @implements IWorkflowNode + * @constructor + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + */ + function WorkflowNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNode launchplanRef. + * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + WorkflowNode.prototype.launchplanRef = null; + + /** + * WorkflowNode subWorkflowRef. + * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + WorkflowNode.prototype.subWorkflowRef = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WorkflowNode reference. + * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference + * @memberof flyteidl.core.WorkflowNode + * @instance + */ + Object.defineProperty(WorkflowNode.prototype, "reference", { + get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance + */ + WorkflowNode.create = function create(properties) { + return new WorkflowNode(properties); + }; + + /** + * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) + $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) + $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowNode} WorkflowNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNode message. + * @function verify + * @memberof flyteidl.core.WorkflowNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); + if (error) + return "launchplanRef." + error; + } + } + if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { + if (properties.reference === 1) + return "reference: multiple values"; + properties.reference = 1; + { + var error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); + if (error) + return "subWorkflowRef." + error; + } + } + return null; + }; + + return WorkflowNode; + })(); + + core.ApproveCondition = (function() { + + /** + * Properties of an ApproveCondition. + * @memberof flyteidl.core + * @interface IApproveCondition + * @property {string|null} [signalId] ApproveCondition signalId + */ + + /** + * Constructs a new ApproveCondition. + * @memberof flyteidl.core + * @classdesc Represents an ApproveCondition. + * @implements IApproveCondition + * @constructor + * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set + */ + function ApproveCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ApproveCondition signalId. + * @member {string} signalId + * @memberof flyteidl.core.ApproveCondition + * @instance + */ + ApproveCondition.prototype.signalId = ""; + + /** + * Creates a new ApproveCondition instance using the specified properties. + * @function create + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set + * @returns {flyteidl.core.ApproveCondition} ApproveCondition instance + */ + ApproveCondition.create = function create(properties) { + return new ApproveCondition(properties); + }; + + /** + * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {flyteidl.core.IApproveCondition} message ApproveCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ApproveCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + return writer; + }; + + /** + * Decodes an ApproveCondition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ApproveCondition} ApproveCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ApproveCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ApproveCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ApproveCondition message. + * @function verify + * @memberof flyteidl.core.ApproveCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ApproveCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + return null; + }; + + return ApproveCondition; + })(); + + core.SignalCondition = (function() { + + /** + * Properties of a SignalCondition. + * @memberof flyteidl.core + * @interface ISignalCondition + * @property {string|null} [signalId] SignalCondition signalId + * @property {flyteidl.core.ILiteralType|null} [type] SignalCondition type + * @property {string|null} [outputVariableName] SignalCondition outputVariableName + */ + + /** + * Constructs a new SignalCondition. + * @memberof flyteidl.core + * @classdesc Represents a SignalCondition. + * @implements ISignalCondition + * @constructor + * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set + */ + function SignalCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalCondition signalId. + * @member {string} signalId + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.signalId = ""; + + /** + * SignalCondition type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.type = null; + + /** + * SignalCondition outputVariableName. + * @member {string} outputVariableName + * @memberof flyteidl.core.SignalCondition + * @instance + */ + SignalCondition.prototype.outputVariableName = ""; + + /** + * Creates a new SignalCondition instance using the specified properties. + * @function create + * @memberof flyteidl.core.SignalCondition + * @static + * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set + * @returns {flyteidl.core.SignalCondition} SignalCondition instance + */ + SignalCondition.create = function create(properties) { + return new SignalCondition(properties); + }; + + /** + * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SignalCondition + * @static + * @param {flyteidl.core.ISignalCondition} message SignalCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signalId != null && message.hasOwnProperty("signalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputVariableName); + return writer; + }; + + /** + * Decodes a SignalCondition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SignalCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SignalCondition} SignalCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signalId = reader.string(); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 3: + message.outputVariableName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalCondition message. + * @function verify + * @memberof flyteidl.core.SignalCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signalId != null && message.hasOwnProperty("signalId")) + if (!$util.isString(message.signalId)) + return "signalId: string expected"; + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) + if (!$util.isString(message.outputVariableName)) + return "outputVariableName: string expected"; + return null; + }; + + return SignalCondition; + })(); + + core.SleepCondition = (function() { + + /** + * Properties of a SleepCondition. + * @memberof flyteidl.core + * @interface ISleepCondition + * @property {google.protobuf.IDuration|null} [duration] SleepCondition duration + */ + + /** + * Constructs a new SleepCondition. + * @memberof flyteidl.core + * @classdesc Represents a SleepCondition. + * @implements ISleepCondition + * @constructor + * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set + */ + function SleepCondition(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SleepCondition duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.core.SleepCondition + * @instance + */ + SleepCondition.prototype.duration = null; + + /** + * Creates a new SleepCondition instance using the specified properties. + * @function create + * @memberof flyteidl.core.SleepCondition + * @static + * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set + * @returns {flyteidl.core.SleepCondition} SleepCondition instance + */ + SleepCondition.create = function create(properties) { + return new SleepCondition(properties); + }; + + /** + * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SleepCondition + * @static + * @param {flyteidl.core.ISleepCondition} message SleepCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SleepCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SleepCondition message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SleepCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SleepCondition} SleepCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SleepCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SleepCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SleepCondition message. + * @function verify + * @memberof flyteidl.core.SleepCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SleepCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + return null; + }; + + return SleepCondition; + })(); + + core.GateNode = (function() { + + /** + * Properties of a GateNode. + * @memberof flyteidl.core + * @interface IGateNode + * @property {flyteidl.core.IApproveCondition|null} [approve] GateNode approve + * @property {flyteidl.core.ISignalCondition|null} [signal] GateNode signal + * @property {flyteidl.core.ISleepCondition|null} [sleep] GateNode sleep + */ + + /** + * Constructs a new GateNode. + * @memberof flyteidl.core + * @classdesc Represents a GateNode. + * @implements IGateNode + * @constructor + * @param {flyteidl.core.IGateNode=} [properties] Properties to set + */ + function GateNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GateNode approve. + * @member {flyteidl.core.IApproveCondition|null|undefined} approve + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.approve = null; + + /** + * GateNode signal. + * @member {flyteidl.core.ISignalCondition|null|undefined} signal + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.signal = null; + + /** + * GateNode sleep. + * @member {flyteidl.core.ISleepCondition|null|undefined} sleep + * @memberof flyteidl.core.GateNode + * @instance + */ + GateNode.prototype.sleep = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GateNode condition. + * @member {"approve"|"signal"|"sleep"|undefined} condition + * @memberof flyteidl.core.GateNode + * @instance + */ + Object.defineProperty(GateNode.prototype, "condition", { + get: $util.oneOfGetter($oneOfFields = ["approve", "signal", "sleep"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GateNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.GateNode + * @static + * @param {flyteidl.core.IGateNode=} [properties] Properties to set + * @returns {flyteidl.core.GateNode} GateNode instance + */ + GateNode.create = function create(properties) { + return new GateNode(properties); + }; + + /** + * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.GateNode + * @static + * @param {flyteidl.core.IGateNode} message GateNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GateNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.approve != null && message.hasOwnProperty("approve")) + $root.flyteidl.core.ApproveCondition.encode(message.approve, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.signal != null && message.hasOwnProperty("signal")) + $root.flyteidl.core.SignalCondition.encode(message.signal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sleep != null && message.hasOwnProperty("sleep")) + $root.flyteidl.core.SleepCondition.encode(message.sleep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GateNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.GateNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.GateNode} GateNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GateNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GateNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.approve = $root.flyteidl.core.ApproveCondition.decode(reader, reader.uint32()); + break; + case 2: + message.signal = $root.flyteidl.core.SignalCondition.decode(reader, reader.uint32()); + break; + case 3: + message.sleep = $root.flyteidl.core.SleepCondition.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GateNode message. + * @function verify + * @memberof flyteidl.core.GateNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GateNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.approve != null && message.hasOwnProperty("approve")) { + properties.condition = 1; + { + var error = $root.flyteidl.core.ApproveCondition.verify(message.approve); + if (error) + return "approve." + error; + } + } + if (message.signal != null && message.hasOwnProperty("signal")) { + if (properties.condition === 1) + return "condition: multiple values"; + properties.condition = 1; + { + var error = $root.flyteidl.core.SignalCondition.verify(message.signal); + if (error) + return "signal." + error; + } + } + if (message.sleep != null && message.hasOwnProperty("sleep")) { + if (properties.condition === 1) + return "condition: multiple values"; + properties.condition = 1; + { + var error = $root.flyteidl.core.SleepCondition.verify(message.sleep); + if (error) + return "sleep." + error; + } + } + return null; + }; + + return GateNode; + })(); + + core.ArrayNode = (function() { + + /** + * Properties of an ArrayNode. + * @memberof flyteidl.core + * @interface IArrayNode + * @property {flyteidl.core.INode|null} [node] ArrayNode node + * @property {number|null} [parallelism] ArrayNode parallelism + * @property {number|null} [minSuccesses] ArrayNode minSuccesses + * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio + */ + + /** + * Constructs a new ArrayNode. + * @memberof flyteidl.core + * @classdesc Represents an ArrayNode. + * @implements IArrayNode + * @constructor + * @param {flyteidl.core.IArrayNode=} [properties] Properties to set + */ + function ArrayNode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ArrayNode node. + * @member {flyteidl.core.INode|null|undefined} node + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.node = null; + + /** + * ArrayNode parallelism. + * @member {number} parallelism + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.parallelism = 0; + + /** + * ArrayNode minSuccesses. + * @member {number} minSuccesses + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.minSuccesses = 0; + + /** + * ArrayNode minSuccessRatio. + * @member {number} minSuccessRatio + * @memberof flyteidl.core.ArrayNode + * @instance + */ + ArrayNode.prototype.minSuccessRatio = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ArrayNode successCriteria. + * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria + * @memberof flyteidl.core.ArrayNode + * @instance + */ + Object.defineProperty(ArrayNode.prototype, "successCriteria", { + get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ArrayNode instance using the specified properties. + * @function create + * @memberof flyteidl.core.ArrayNode + * @static + * @param {flyteidl.core.IArrayNode=} [properties] Properties to set + * @returns {flyteidl.core.ArrayNode} ArrayNode instance + */ + ArrayNode.create = function create(properties) { + return new ArrayNode(properties); + }; + + /** + * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ArrayNode + * @static + * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArrayNode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.node != null && message.hasOwnProperty("node")) + $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism); + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses); + if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) + writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio); + return writer; + }; + + /** + * Decodes an ArrayNode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ArrayNode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ArrayNode} ArrayNode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArrayNode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 2: + message.parallelism = reader.uint32(); + break; + case 3: + message.minSuccesses = reader.uint32(); + break; + case 4: + message.minSuccessRatio = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ArrayNode message. + * @function verify + * @memberof flyteidl.core.ArrayNode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArrayNode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.node != null && message.hasOwnProperty("node")) { + var error = $root.flyteidl.core.Node.verify(message.node); + if (error) + return "node." + error; + } + if (message.parallelism != null && message.hasOwnProperty("parallelism")) + if (!$util.isInteger(message.parallelism)) + return "parallelism: integer expected"; + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) { + properties.successCriteria = 1; + if (!$util.isInteger(message.minSuccesses)) + return "minSuccesses: integer expected"; + } + if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) { + if (properties.successCriteria === 1) + return "successCriteria: multiple values"; + properties.successCriteria = 1; + if (typeof message.minSuccessRatio !== "number") + return "minSuccessRatio: number expected"; + } + return null; + }; + + return ArrayNode; + })(); + + core.NodeMetadata = (function() { + + /** + * Properties of a NodeMetadata. + * @memberof flyteidl.core + * @interface INodeMetadata + * @property {string|null} [name] NodeMetadata name + * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries + * @property {boolean|null} [interruptible] NodeMetadata interruptible + * @property {boolean|null} [cacheable] NodeMetadata cacheable + * @property {string|null} [cacheVersion] NodeMetadata cacheVersion + * @property {boolean|null} [cacheSerializable] NodeMetadata cacheSerializable + */ + + /** + * Constructs a new NodeMetadata. + * @memberof flyteidl.core + * @classdesc Represents a NodeMetadata. + * @implements INodeMetadata + * @constructor + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + */ + function NodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeMetadata name. + * @member {string} name + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.name = ""; + + /** + * NodeMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.timeout = null; + + /** + * NodeMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.retries = null; + + /** + * NodeMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.interruptible = false; + + /** + * NodeMetadata cacheable. + * @member {boolean} cacheable + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.cacheable = false; + + /** + * NodeMetadata cacheVersion. + * @member {string} cacheVersion + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.cacheVersion = ""; + + /** + * NodeMetadata cacheSerializable. + * @member {boolean} cacheSerializable + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + NodeMetadata.prototype.cacheSerializable = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeMetadata interruptibleValue. + * @member {"interruptible"|undefined} interruptibleValue + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + Object.defineProperty(NodeMetadata.prototype, "interruptibleValue", { + get: $util.oneOfGetter($oneOfFields = ["interruptible"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeMetadata cacheableValue. + * @member {"cacheable"|undefined} cacheableValue + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + Object.defineProperty(NodeMetadata.prototype, "cacheableValue", { + get: $util.oneOfGetter($oneOfFields = ["cacheable"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeMetadata cacheVersionValue. + * @member {"cacheVersion"|undefined} cacheVersionValue + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + Object.defineProperty(NodeMetadata.prototype, "cacheVersionValue", { + get: $util.oneOfGetter($oneOfFields = ["cacheVersion"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeMetadata cacheSerializableValue. + * @member {"cacheSerializable"|undefined} cacheSerializableValue + * @memberof flyteidl.core.NodeMetadata + * @instance + */ + Object.defineProperty(NodeMetadata.prototype, "cacheSerializableValue", { + get: $util.oneOfGetter($oneOfFields = ["cacheSerializable"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance + */ + NodeMetadata.create = function create(properties) { + return new NodeMetadata(properties); + }; + + /** + * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interruptible); + if (message.cacheable != null && message.hasOwnProperty("cacheable")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.cacheable); + if (message.cacheVersion != null && message.hasOwnProperty("cacheVersion")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.cacheVersion); + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); + return writer; + }; + + /** + * Decodes a NodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeMetadata} NodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + case 6: + message.interruptible = reader.bool(); + break; + case 7: + message.cacheable = reader.bool(); + break; + case 8: + message.cacheVersion = reader.string(); + break; + case 9: + message.cacheSerializable = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeMetadata message. + * @function verify + * @memberof flyteidl.core.NodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + properties.interruptibleValue = 1; + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + } + if (message.cacheable != null && message.hasOwnProperty("cacheable")) { + properties.cacheableValue = 1; + if (typeof message.cacheable !== "boolean") + return "cacheable: boolean expected"; + } + if (message.cacheVersion != null && message.hasOwnProperty("cacheVersion")) { + properties.cacheVersionValue = 1; + if (!$util.isString(message.cacheVersion)) + return "cacheVersion: string expected"; + } + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) { + properties.cacheSerializableValue = 1; + if (typeof message.cacheSerializable !== "boolean") + return "cacheSerializable: boolean expected"; + } + return null; + }; + + return NodeMetadata; + })(); + + core.Alias = (function() { + + /** + * Properties of an Alias. + * @memberof flyteidl.core + * @interface IAlias + * @property {string|null} ["var"] Alias var + * @property {string|null} [alias] Alias alias + */ + + /** + * Constructs a new Alias. + * @memberof flyteidl.core + * @classdesc Represents an Alias. + * @implements IAlias + * @constructor + * @param {flyteidl.core.IAlias=} [properties] Properties to set + */ + function Alias(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Alias var. + * @member {string} var + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype["var"] = ""; + + /** + * Alias alias. + * @member {string} alias + * @memberof flyteidl.core.Alias + * @instance + */ + Alias.prototype.alias = ""; + + /** + * Creates a new Alias instance using the specified properties. + * @function create + * @memberof flyteidl.core.Alias + * @static + * @param {flyteidl.core.IAlias=} [properties] Properties to set + * @returns {flyteidl.core.Alias} Alias instance + */ + Alias.create = function create(properties) { + return new Alias(properties); + }; + + /** + * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Alias + * @static + * @param {flyteidl.core.IAlias} message Alias message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Alias.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); + if (message.alias != null && message.hasOwnProperty("alias")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); + return writer; + }; + + /** + * Decodes an Alias message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Alias + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Alias} Alias + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Alias.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message["var"] = reader.string(); + break; + case 2: + message.alias = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Alias message. + * @function verify + * @memberof flyteidl.core.Alias + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Alias.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message["var"] != null && message.hasOwnProperty("var")) + if (!$util.isString(message["var"])) + return "var: string expected"; + if (message.alias != null && message.hasOwnProperty("alias")) + if (!$util.isString(message.alias)) + return "alias: string expected"; + return null; + }; + + return Alias; + })(); + + core.Node = (function() { + + /** + * Properties of a Node. + * @memberof flyteidl.core + * @interface INode + * @property {string|null} [id] Node id + * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata + * @property {Array.|null} [inputs] Node inputs + * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds + * @property {Array.|null} [outputAliases] Node outputAliases + * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode + * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode + * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode + * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode + * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode + */ + + /** + * Constructs a new Node. + * @memberof flyteidl.core + * @classdesc Represents a Node. + * @implements INode + * @constructor + * @param {flyteidl.core.INode=} [properties] Properties to set + */ + function Node(properties) { + this.inputs = []; + this.upstreamNodeIds = []; + this.outputAliases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Node id. + * @member {string} id + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.id = ""; + + /** + * Node metadata. + * @member {flyteidl.core.INodeMetadata|null|undefined} metadata + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.metadata = null; + + /** + * Node inputs. + * @member {Array.} inputs + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.inputs = $util.emptyArray; + + /** + * Node upstreamNodeIds. + * @member {Array.} upstreamNodeIds + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.upstreamNodeIds = $util.emptyArray; + + /** + * Node outputAliases. + * @member {Array.} outputAliases + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.outputAliases = $util.emptyArray; + + /** + * Node taskNode. + * @member {flyteidl.core.ITaskNode|null|undefined} taskNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.taskNode = null; + + /** + * Node workflowNode. + * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.workflowNode = null; + + /** + * Node branchNode. + * @member {flyteidl.core.IBranchNode|null|undefined} branchNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.branchNode = null; + + /** + * Node gateNode. + * @member {flyteidl.core.IGateNode|null|undefined} gateNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.gateNode = null; + + /** + * Node arrayNode. + * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode + * @memberof flyteidl.core.Node + * @instance + */ + Node.prototype.arrayNode = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Node target. + * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target + * @memberof flyteidl.core.Node + * @instance + */ + Object.defineProperty(Node.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Node instance using the specified properties. + * @function create + * @memberof flyteidl.core.Node + * @static + * @param {flyteidl.core.INode=} [properties] Properties to set + * @returns {flyteidl.core.Node} Node instance + */ + Node.create = function create(properties) { + return new Node(properties); + }; + + /** + * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Node + * @static + * @param {flyteidl.core.INode} message Node message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Node.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inputs != null && message.inputs.length) + for (var i = 0; i < message.inputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) + for (var i = 0; i < message.upstreamNodeIds.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); + if (message.outputAliases != null && message.outputAliases.length) + for (var i = 0; i < message.outputAliases.length; ++i) + $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskNode != null && message.hasOwnProperty("taskNode")) + $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) + $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.branchNode != null && message.hasOwnProperty("branchNode")) + $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.gateNode != null && message.hasOwnProperty("gateNode")) + $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) + $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Node message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Node + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Node} Node + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Node.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.inputs && message.inputs.length)) + message.inputs = []; + message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) + message.upstreamNodeIds = []; + message.upstreamNodeIds.push(reader.string()); + break; + case 5: + if (!(message.outputAliases && message.outputAliases.length)) + message.outputAliases = []; + message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); + break; + case 6: + message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); + break; + case 7: + message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); + break; + case 8: + message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); + break; + case 9: + message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32()); + break; + case 10: + message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Node message. + * @function verify + * @memberof flyteidl.core.Node + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Node.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!Array.isArray(message.inputs)) + return "inputs: array expected"; + for (var i = 0; i < message.inputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.inputs[i]); + if (error) + return "inputs." + error; + } + } + if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { + if (!Array.isArray(message.upstreamNodeIds)) + return "upstreamNodeIds: array expected"; + for (var i = 0; i < message.upstreamNodeIds.length; ++i) + if (!$util.isString(message.upstreamNodeIds[i])) + return "upstreamNodeIds: string[] expected"; + } + if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { + if (!Array.isArray(message.outputAliases)) + return "outputAliases: array expected"; + for (var i = 0; i < message.outputAliases.length; ++i) { + var error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); + if (error) + return "outputAliases." + error; + } + } + if (message.taskNode != null && message.hasOwnProperty("taskNode")) { + properties.target = 1; + { + var error = $root.flyteidl.core.TaskNode.verify(message.taskNode); + if (error) + return "taskNode." + error; + } + } + if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); + if (error) + return "workflowNode." + error; + } + } + if (message.branchNode != null && message.hasOwnProperty("branchNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.BranchNode.verify(message.branchNode); + if (error) + return "branchNode." + error; + } + } + if (message.gateNode != null && message.hasOwnProperty("gateNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.GateNode.verify(message.gateNode); + if (error) + return "gateNode." + error; + } + } + if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode); + if (error) + return "arrayNode." + error; + } + } + return null; + }; + + return Node; + })(); + + core.WorkflowMetadata = (function() { + + /** + * Properties of a WorkflowMetadata. + * @memberof flyteidl.core + * @interface IWorkflowMetadata + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService + * @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure + * @property {Object.|null} [tags] WorkflowMetadata tags + */ + + /** + * Constructs a new WorkflowMetadata. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowMetadata. + * @implements IWorkflowMetadata + * @constructor + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + */ + function WorkflowMetadata(properties) { + this.tags = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowMetadata qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.qualityOfService = null; + + /** + * WorkflowMetadata onFailure. + * @member {flyteidl.core.WorkflowMetadata.OnFailurePolicy} onFailure + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.onFailure = 0; + + /** + * WorkflowMetadata tags. + * @member {Object.} tags + * @memberof flyteidl.core.WorkflowMetadata + * @instance + */ + WorkflowMetadata.prototype.tags = $util.emptyObject; + + /** + * Creates a new WorkflowMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance + */ + WorkflowMetadata.create = function create(properties) { + return new WorkflowMetadata(properties); + }; + + /** + * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.onFailure != null && message.hasOwnProperty("onFailure")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure); + if (message.tags != null && message.hasOwnProperty("tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 2: + message.onFailure = reader.int32(); + break; + case 3: + reader.skip().pos++; + if (message.tags === $util.emptyObject) + message.tags = {}; + key = reader.string(); + reader.pos++; + message.tags[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowMetadata message. + * @function verify + * @memberof flyteidl.core.WorkflowMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + if (message.onFailure != null && message.hasOwnProperty("onFailure")) + switch (message.onFailure) { + default: + return "onFailure: enum value expected"; + case 0: + case 1: + break; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + return null; + }; + + /** + * OnFailurePolicy enum. + * @name flyteidl.core.WorkflowMetadata.OnFailurePolicy + * @enum {string} + * @property {number} FAIL_IMMEDIATELY=0 FAIL_IMMEDIATELY value + * @property {number} FAIL_AFTER_EXECUTABLE_NODES_COMPLETE=1 FAIL_AFTER_EXECUTABLE_NODES_COMPLETE value + */ + WorkflowMetadata.OnFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FAIL_IMMEDIATELY"] = 0; + values[valuesById[1] = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE"] = 1; + return values; + })(); + + return WorkflowMetadata; + })(); + + core.WorkflowMetadataDefaults = (function() { + + /** + * Properties of a WorkflowMetadataDefaults. + * @memberof flyteidl.core + * @interface IWorkflowMetadataDefaults + * @property {boolean|null} [interruptible] WorkflowMetadataDefaults interruptible + */ + + /** + * Constructs a new WorkflowMetadataDefaults. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowMetadataDefaults. + * @implements IWorkflowMetadataDefaults + * @constructor + * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set + */ + function WorkflowMetadataDefaults(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowMetadataDefaults interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @instance + */ + WorkflowMetadataDefaults.prototype.interruptible = false; + + /** + * Creates a new WorkflowMetadataDefaults instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults instance + */ + WorkflowMetadataDefaults.create = function create(properties) { + return new WorkflowMetadataDefaults(properties); + }; + + /** + * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {flyteidl.core.IWorkflowMetadataDefaults} message WorkflowMetadataDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowMetadataDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.interruptible); + return writer; + }; + + /** + * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowMetadataDefaults.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadataDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.interruptible = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowMetadataDefaults message. + * @function verify + * @memberof flyteidl.core.WorkflowMetadataDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowMetadataDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + return null; + }; + + return WorkflowMetadataDefaults; + })(); + + core.WorkflowTemplate = (function() { + + /** + * Properties of a WorkflowTemplate. + * @memberof flyteidl.core + * @interface IWorkflowTemplate + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id + * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface + * @property {Array.|null} [nodes] WorkflowTemplate nodes + * @property {Array.|null} [outputs] WorkflowTemplate outputs + * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode + * @property {flyteidl.core.IWorkflowMetadataDefaults|null} [metadataDefaults] WorkflowTemplate metadataDefaults + */ + + /** + * Constructs a new WorkflowTemplate. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowTemplate. + * @implements IWorkflowTemplate + * @constructor + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + */ + function WorkflowTemplate(properties) { + this.nodes = []; + this.outputs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.id = null; + + /** + * WorkflowTemplate metadata. + * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.metadata = null; + + /** + * WorkflowTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype["interface"] = null; + + /** + * WorkflowTemplate nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.nodes = $util.emptyArray; + + /** + * WorkflowTemplate outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.outputs = $util.emptyArray; + + /** + * WorkflowTemplate failureNode. + * @member {flyteidl.core.INode|null|undefined} failureNode + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.failureNode = null; + + /** + * WorkflowTemplate metadataDefaults. + * @member {flyteidl.core.IWorkflowMetadataDefaults|null|undefined} metadataDefaults + * @memberof flyteidl.core.WorkflowTemplate + * @instance + */ + WorkflowTemplate.prototype.metadataDefaults = null; + + /** + * Creates a new WorkflowTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance + */ + WorkflowTemplate.create = function create(properties) { + return new WorkflowTemplate(properties); + }; + + /** + * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nodes != null && message.nodes.length) + for (var i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.failureNode != null && message.hasOwnProperty("failureNode")) + $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) + $root.flyteidl.core.WorkflowMetadataDefaults.encode(message.metadataDefaults, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); + break; + case 3: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 6: + message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); + break; + case 7: + message.metadataDefaults = $root.flyteidl.core.WorkflowMetadataDefaults.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowTemplate message. + * @function verify + * @memberof flyteidl.core.WorkflowTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (var i = 0; i < message.nodes.length; ++i) { + var error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.failureNode != null && message.hasOwnProperty("failureNode")) { + var error = $root.flyteidl.core.Node.verify(message.failureNode); + if (error) + return "failureNode." + error; + } + if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) { + var error = $root.flyteidl.core.WorkflowMetadataDefaults.verify(message.metadataDefaults); + if (error) + return "metadataDefaults." + error; + } + return null; + }; + + return WorkflowTemplate; + })(); + + core.TaskNodeOverrides = (function() { + + /** + * Properties of a TaskNodeOverrides. + * @memberof flyteidl.core + * @interface ITaskNodeOverrides + * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources + * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources + */ + + /** + * Constructs a new TaskNodeOverrides. + * @memberof flyteidl.core + * @classdesc Represents a TaskNodeOverrides. + * @implements ITaskNodeOverrides + * @constructor + * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set + */ + function TaskNodeOverrides(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNodeOverrides resources. + * @member {flyteidl.core.IResources|null|undefined} resources + * @memberof flyteidl.core.TaskNodeOverrides + * @instance + */ + TaskNodeOverrides.prototype.resources = null; + + /** + * TaskNodeOverrides extendedResources. + * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources + * @memberof flyteidl.core.TaskNodeOverrides + * @instance + */ + TaskNodeOverrides.prototype.extendedResources = null; + + /** + * Creates a new TaskNodeOverrides instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set + * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides instance + */ + TaskNodeOverrides.create = function create(properties) { + return new TaskNodeOverrides(properties); + }; + + /** + * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {flyteidl.core.ITaskNodeOverrides} message TaskNodeOverrides message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNodeOverrides.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resources != null && message.hasOwnProperty("resources")) + $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) + $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNodeOverrides message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNodeOverrides.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNodeOverrides(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); + break; + case 2: + message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNodeOverrides message. + * @function verify + * @memberof flyteidl.core.TaskNodeOverrides + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNodeOverrides.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resources != null && message.hasOwnProperty("resources")) { + var error = $root.flyteidl.core.Resources.verify(message.resources); + if (error) + return "resources." + error; + } + if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { + var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); + if (error) + return "extendedResources." + error; + } + return null; + }; + + return TaskNodeOverrides; + })(); + + core.LaunchPlanTemplate = (function() { + + /** + * Properties of a LaunchPlanTemplate. + * @memberof flyteidl.core + * @interface ILaunchPlanTemplate + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanTemplate id + * @property {flyteidl.core.ITypedInterface|null} ["interface"] LaunchPlanTemplate interface + * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanTemplate fixedInputs + */ + + /** + * Constructs a new LaunchPlanTemplate. + * @memberof flyteidl.core + * @classdesc Represents a LaunchPlanTemplate. + * @implements ILaunchPlanTemplate + * @constructor + * @param {flyteidl.core.ILaunchPlanTemplate=} [properties] Properties to set + */ + function LaunchPlanTemplate(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.LaunchPlanTemplate + * @instance + */ + LaunchPlanTemplate.prototype.id = null; + + /** + * LaunchPlanTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.LaunchPlanTemplate + * @instance + */ + LaunchPlanTemplate.prototype["interface"] = null; + + /** + * LaunchPlanTemplate fixedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs + * @memberof flyteidl.core.LaunchPlanTemplate + * @instance + */ + LaunchPlanTemplate.prototype.fixedInputs = null; + + /** + * Creates a new LaunchPlanTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.LaunchPlanTemplate + * @static + * @param {flyteidl.core.ILaunchPlanTemplate=} [properties] Properties to set + * @returns {flyteidl.core.LaunchPlanTemplate} LaunchPlanTemplate instance + */ + LaunchPlanTemplate.create = function create(properties) { + return new LaunchPlanTemplate(properties); + }; + + /** + * Encodes the specified LaunchPlanTemplate message. Does not implicitly {@link flyteidl.core.LaunchPlanTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.LaunchPlanTemplate + * @static + * @param {flyteidl.core.ILaunchPlanTemplate} message LaunchPlanTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.LaunchPlanTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.LaunchPlanTemplate} LaunchPlanTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LaunchPlanTemplate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 3: + message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanTemplate message. + * @function verify + * @memberof flyteidl.core.LaunchPlanTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); + if (error) + return "fixedInputs." + error; + } + return null; + }; + + return LaunchPlanTemplate; + })(); + + core.ComparisonExpression = (function() { + + /** + * Properties of a ComparisonExpression. + * @memberof flyteidl.core + * @interface IComparisonExpression + * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator + * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue + * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue + */ + + /** + * Constructs a new ComparisonExpression. + * @memberof flyteidl.core + * @classdesc Represents a ComparisonExpression. + * @implements IComparisonExpression + * @constructor + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + */ + function ComparisonExpression(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ComparisonExpression operator. + * @member {flyteidl.core.ComparisonExpression.Operator} operator + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.operator = 0; + + /** + * ComparisonExpression leftValue. + * @member {flyteidl.core.IOperand|null|undefined} leftValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.leftValue = null; + + /** + * ComparisonExpression rightValue. + * @member {flyteidl.core.IOperand|null|undefined} rightValue + * @memberof flyteidl.core.ComparisonExpression + * @instance + */ + ComparisonExpression.prototype.rightValue = null; + + /** + * Creates a new ComparisonExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance + */ + ComparisonExpression.create = function create(properties) { + return new ComparisonExpression(properties); + }; + + /** + * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ComparisonExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftValue != null && message.hasOwnProperty("leftValue")) + $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightValue != null && message.hasOwnProperty("rightValue")) + $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ComparisonExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ComparisonExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + case 3: + message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ComparisonExpression message. + * @function verify + * @memberof flyteidl.core.ComparisonExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ComparisonExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.leftValue != null && message.hasOwnProperty("leftValue")) { + var error = $root.flyteidl.core.Operand.verify(message.leftValue); + if (error) + return "leftValue." + error; + } + if (message.rightValue != null && message.hasOwnProperty("rightValue")) { + var error = $root.flyteidl.core.Operand.verify(message.rightValue); + if (error) + return "rightValue." + error; + } + return null; + }; + + /** + * Operator enum. + * @name flyteidl.core.ComparisonExpression.Operator + * @enum {string} + * @property {number} EQ=0 EQ value + * @property {number} NEQ=1 NEQ value + * @property {number} GT=2 GT value + * @property {number} GTE=3 GTE value + * @property {number} LT=4 LT value + * @property {number} LTE=5 LTE value + */ + ComparisonExpression.Operator = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EQ"] = 0; + values[valuesById[1] = "NEQ"] = 1; + values[valuesById[2] = "GT"] = 2; + values[valuesById[3] = "GTE"] = 3; + values[valuesById[4] = "LT"] = 4; + values[valuesById[5] = "LTE"] = 5; + return values; + })(); + + return ComparisonExpression; + })(); + + core.Operand = (function() { + + /** + * Properties of an Operand. + * @memberof flyteidl.core + * @interface IOperand + * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive + * @property {string|null} ["var"] Operand var + * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar + */ + + /** + * Constructs a new Operand. + * @memberof flyteidl.core + * @classdesc Represents an Operand. + * @implements IOperand + * @constructor + * @param {flyteidl.core.IOperand=} [properties] Properties to set + */ + function Operand(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Operand primitive. + * @member {flyteidl.core.IPrimitive|null|undefined} primitive + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.primitive = null; + + /** + * Operand var. + * @member {string} var + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype["var"] = ""; + + /** + * Operand scalar. + * @member {flyteidl.core.IScalar|null|undefined} scalar + * @memberof flyteidl.core.Operand + * @instance + */ + Operand.prototype.scalar = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Operand val. + * @member {"primitive"|"var"|"scalar"|undefined} val + * @memberof flyteidl.core.Operand + * @instance + */ + Object.defineProperty(Operand.prototype, "val", { + get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Operand instance using the specified properties. + * @function create + * @memberof flyteidl.core.Operand + * @static + * @param {flyteidl.core.IOperand=} [properties] Properties to set + * @returns {flyteidl.core.Operand} Operand instance + */ + Operand.create = function create(properties) { + return new Operand(properties); + }; + + /** + * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Operand + * @static + * @param {flyteidl.core.IOperand} message Operand message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Operand.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.primitive != null && message.hasOwnProperty("primitive")) + $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message["var"] != null && message.hasOwnProperty("var")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); + if (message.scalar != null && message.hasOwnProperty("scalar")) + $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Operand message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Operand + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Operand} Operand + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Operand.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); + break; + case 2: + message["var"] = reader.string(); + break; + case 3: + message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Operand message. + * @function verify + * @memberof flyteidl.core.Operand + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Operand.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.primitive != null && message.hasOwnProperty("primitive")) { + properties.val = 1; + { + var error = $root.flyteidl.core.Primitive.verify(message.primitive); + if (error) + return "primitive." + error; + } + } + if (message["var"] != null && message.hasOwnProperty("var")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + if (!$util.isString(message["var"])) + return "var: string expected"; + } + if (message.scalar != null && message.hasOwnProperty("scalar")) { + if (properties.val === 1) + return "val: multiple values"; + properties.val = 1; + { + var error = $root.flyteidl.core.Scalar.verify(message.scalar); + if (error) + return "scalar." + error; + } + } + return null; + }; + + return Operand; + })(); + + core.BooleanExpression = (function() { + + /** + * Properties of a BooleanExpression. + * @memberof flyteidl.core + * @interface IBooleanExpression + * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction + * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison + */ + + /** + * Constructs a new BooleanExpression. + * @memberof flyteidl.core + * @classdesc Represents a BooleanExpression. + * @implements IBooleanExpression + * @constructor + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + */ + function BooleanExpression(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BooleanExpression conjunction. + * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + BooleanExpression.prototype.conjunction = null; + + /** + * BooleanExpression comparison. + * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + BooleanExpression.prototype.comparison = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BooleanExpression expr. + * @member {"conjunction"|"comparison"|undefined} expr + * @memberof flyteidl.core.BooleanExpression + * @instance + */ + Object.defineProperty(BooleanExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BooleanExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set + * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance + */ + BooleanExpression.create = function create(properties) { + return new BooleanExpression(properties); + }; + + /** + * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BooleanExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.conjunction != null && message.hasOwnProperty("conjunction")) + $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.comparison != null && message.hasOwnProperty("comparison")) + $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a BooleanExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.BooleanExpression} BooleanExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BooleanExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); + break; + case 2: + message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BooleanExpression message. + * @function verify + * @memberof flyteidl.core.BooleanExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BooleanExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.conjunction != null && message.hasOwnProperty("conjunction")) { + properties.expr = 1; + { + var error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); + if (error) + return "conjunction." + error; + } + } + if (message.comparison != null && message.hasOwnProperty("comparison")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); + if (error) + return "comparison." + error; + } + } + return null; + }; + + return BooleanExpression; + })(); + + core.ConjunctionExpression = (function() { + + /** + * Properties of a ConjunctionExpression. + * @memberof flyteidl.core + * @interface IConjunctionExpression + * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator + * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression + * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression + */ + + /** + * Constructs a new ConjunctionExpression. + * @memberof flyteidl.core + * @classdesc Represents a ConjunctionExpression. + * @implements IConjunctionExpression + * @constructor + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + */ + function ConjunctionExpression(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ConjunctionExpression operator. + * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.operator = 0; + + /** + * ConjunctionExpression leftExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.leftExpression = null; + + /** + * ConjunctionExpression rightExpression. + * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression + * @memberof flyteidl.core.ConjunctionExpression + * @instance + */ + ConjunctionExpression.prototype.rightExpression = null; + + /** + * Creates a new ConjunctionExpression instance using the specified properties. + * @function create + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance + */ + ConjunctionExpression.create = function create(properties) { + return new ConjunctionExpression(properties); + }; + + /** + * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConjunctionExpression.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.operator != null && message.hasOwnProperty("operator")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) + $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ConjunctionExpression message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConjunctionExpression.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.operator = reader.int32(); + break; + case 2: + message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + case 3: + message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ConjunctionExpression message. + * @function verify + * @memberof flyteidl.core.ConjunctionExpression + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConjunctionExpression.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.operator != null && message.hasOwnProperty("operator")) + switch (message.operator) { + default: + return "operator: enum value expected"; + case 0: + case 1: + break; + } + if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); + if (error) + return "leftExpression." + error; + } + if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { + var error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); + if (error) + return "rightExpression." + error; + } + return null; + }; + + /** + * LogicalOperator enum. + * @name flyteidl.core.ConjunctionExpression.LogicalOperator + * @enum {string} + * @property {number} AND=0 AND value + * @property {number} OR=1 OR value + */ + ConjunctionExpression.LogicalOperator = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AND"] = 0; + values[valuesById[1] = "OR"] = 1; + return values; + })(); + + return ConjunctionExpression; + })(); + + core.WorkflowExecution = (function() { + + /** + * Properties of a WorkflowExecution. + * @memberof flyteidl.core + * @interface IWorkflowExecution + */ + + /** + * Constructs a new WorkflowExecution. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowExecution. + * @implements IWorkflowExecution + * @constructor + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + */ + function WorkflowExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance + */ + WorkflowExecution.create = function create(properties) { + return new WorkflowExecution(properties); + }; + + /** + * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecution message. + * @function verify + * @memberof flyteidl.core.WorkflowExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.WorkflowExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDING=3 SUCCEEDING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} FAILING=5 FAILING value + * @property {number} FAILED=6 FAILED value + * @property {number} ABORTED=7 ABORTED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + * @property {number} ABORTING=9 ABORTING value + */ + WorkflowExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "FAILING"] = 5; + values[valuesById[6] = "FAILED"] = 6; + values[valuesById[7] = "ABORTED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + values[valuesById[9] = "ABORTING"] = 9; + return values; + })(); + + return WorkflowExecution; + })(); + + core.NodeExecution = (function() { + + /** + * Properties of a NodeExecution. + * @memberof flyteidl.core + * @interface INodeExecution + */ + + /** + * Constructs a new NodeExecution. + * @memberof flyteidl.core + * @classdesc Represents a NodeExecution. + * @implements INodeExecution + * @constructor + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + */ + function NodeExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.NodeExecution + * @static + * @param {flyteidl.core.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.core.NodeExecution} NodeExecution instance + */ + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); + }; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.NodeExecution + * @static + * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.NodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.NodeExecution} NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecution message. + * @function verify + * @memberof flyteidl.core.NodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.NodeExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} FAILING=4 FAILING value + * @property {number} FAILED=5 FAILED value + * @property {number} ABORTED=6 ABORTED value + * @property {number} SKIPPED=7 SKIPPED value + * @property {number} TIMED_OUT=8 TIMED_OUT value + * @property {number} DYNAMIC_RUNNING=9 DYNAMIC_RUNNING value + * @property {number} RECOVERED=10 RECOVERED value + */ + NodeExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "FAILING"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "ABORTED"] = 6; + values[valuesById[7] = "SKIPPED"] = 7; + values[valuesById[8] = "TIMED_OUT"] = 8; + values[valuesById[9] = "DYNAMIC_RUNNING"] = 9; + values[valuesById[10] = "RECOVERED"] = 10; + return values; + })(); + + return NodeExecution; + })(); + + core.TaskExecution = (function() { + + /** + * Properties of a TaskExecution. + * @memberof flyteidl.core + * @interface ITaskExecution + */ + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.core + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + */ + function TaskExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskExecution + * @static + * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.core.TaskExecution} TaskExecution instance + */ + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); + }; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskExecution + * @static + * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecution message. + * @function verify + * @memberof flyteidl.core.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Phase enum. + * @name flyteidl.core.TaskExecution.Phase + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} QUEUED=1 QUEUED value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} ABORTED=4 ABORTED value + * @property {number} FAILED=5 FAILED value + * @property {number} INITIALIZING=6 INITIALIZING value + * @property {number} WAITING_FOR_RESOURCES=7 WAITING_FOR_RESOURCES value + */ + TaskExecution.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "QUEUED"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "ABORTED"] = 4; + values[valuesById[5] = "FAILED"] = 5; + values[valuesById[6] = "INITIALIZING"] = 6; + values[valuesById[7] = "WAITING_FOR_RESOURCES"] = 7; + return values; + })(); + + return TaskExecution; + })(); + + core.ExecutionError = (function() { + + /** + * Properties of an ExecutionError. + * @memberof flyteidl.core + * @interface IExecutionError + * @property {string|null} [code] ExecutionError code + * @property {string|null} [message] ExecutionError message + * @property {string|null} [errorUri] ExecutionError errorUri + * @property {flyteidl.core.ExecutionError.ErrorKind|null} [kind] ExecutionError kind + */ + + /** + * Constructs a new ExecutionError. + * @memberof flyteidl.core + * @classdesc Represents an ExecutionError. + * @implements IExecutionError + * @constructor + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + */ + function ExecutionError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionError code. + * @member {string} code + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.code = ""; + + /** + * ExecutionError message. + * @member {string} message + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.message = ""; + + /** + * ExecutionError errorUri. + * @member {string} errorUri + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.errorUri = ""; + + /** + * ExecutionError kind. + * @member {flyteidl.core.ExecutionError.ErrorKind} kind + * @memberof flyteidl.core.ExecutionError + * @instance + */ + ExecutionError.prototype.kind = 0; + + /** + * Creates a new ExecutionError instance using the specified properties. + * @function create + * @memberof flyteidl.core.ExecutionError + * @static + * @param {flyteidl.core.IExecutionError=} [properties] Properties to set + * @returns {flyteidl.core.ExecutionError} ExecutionError instance + */ + ExecutionError.create = function create(properties) { + return new ExecutionError(properties); + }; + + /** + * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ExecutionError + * @static + * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.kind); + return writer; + }; + + /** + * Decodes an ExecutionError message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ExecutionError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ExecutionError} ExecutionError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.errorUri = reader.string(); + break; + case 4: + message.kind = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionError message. + * @function verify + * @memberof flyteidl.core.ExecutionError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.errorUri != null && message.hasOwnProperty("errorUri")) + if (!$util.isString(message.errorUri)) + return "errorUri: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * ErrorKind enum. + * @name flyteidl.core.ExecutionError.ErrorKind + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} USER=1 USER value + * @property {number} SYSTEM=2 SYSTEM value + */ + ExecutionError.ErrorKind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "USER"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + return values; + })(); + + return ExecutionError; + })(); + + core.TaskLog = (function() { + + /** + * Properties of a TaskLog. + * @memberof flyteidl.core + * @interface ITaskLog + * @property {string|null} [uri] TaskLog uri + * @property {string|null} [name] TaskLog name + * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat + * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl + */ + + /** + * Constructs a new TaskLog. + * @memberof flyteidl.core + * @classdesc Represents a TaskLog. + * @implements ITaskLog + * @constructor + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + */ + function TaskLog(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskLog uri. + * @member {string} uri + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.uri = ""; + + /** + * TaskLog name. + * @member {string} name + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.name = ""; + + /** + * TaskLog messageFormat. + * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.messageFormat = 0; + + /** + * TaskLog ttl. + * @member {google.protobuf.IDuration|null|undefined} ttl + * @memberof flyteidl.core.TaskLog + * @instance + */ + TaskLog.prototype.ttl = null; + + /** + * Creates a new TaskLog instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskLog + * @static + * @param {flyteidl.core.ITaskLog=} [properties] Properties to set + * @returns {flyteidl.core.TaskLog} TaskLog instance + */ + TaskLog.create = function create(properties) { + return new TaskLog(properties); + }; + + /** + * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskLog + * @static + * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskLog.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); + if (message.ttl != null && message.hasOwnProperty("ttl")) + $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskLog message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskLog + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskLog} TaskLog + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskLog.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.uri = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.messageFormat = reader.int32(); + break; + case 4: + message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskLog message. + * @function verify + * @memberof flyteidl.core.TaskLog + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskLog.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uri != null && message.hasOwnProperty("uri")) + if (!$util.isString(message.uri)) + return "uri: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) + switch (message.messageFormat) { + default: + return "messageFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ttl != null && message.hasOwnProperty("ttl")) { + var error = $root.google.protobuf.Duration.verify(message.ttl); + if (error) + return "ttl." + error; + } + return null; + }; + + /** + * MessageFormat enum. + * @name flyteidl.core.TaskLog.MessageFormat + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CSV=1 CSV value + * @property {number} JSON=2 JSON value + */ + TaskLog.MessageFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CSV"] = 1; + values[valuesById[2] = "JSON"] = 2; + return values; + })(); + + return TaskLog; + })(); + + core.QualityOfServiceSpec = (function() { + + /** + * Properties of a QualityOfServiceSpec. + * @memberof flyteidl.core + * @interface IQualityOfServiceSpec + * @property {google.protobuf.IDuration|null} [queueingBudget] QualityOfServiceSpec queueingBudget + */ + + /** + * Constructs a new QualityOfServiceSpec. + * @memberof flyteidl.core + * @classdesc Represents a QualityOfServiceSpec. + * @implements IQualityOfServiceSpec + * @constructor + * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set + */ + function QualityOfServiceSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QualityOfServiceSpec queueingBudget. + * @member {google.protobuf.IDuration|null|undefined} queueingBudget + * @memberof flyteidl.core.QualityOfServiceSpec + * @instance + */ + QualityOfServiceSpec.prototype.queueingBudget = null; + + /** + * Creates a new QualityOfServiceSpec instance using the specified properties. + * @function create + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set + * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec instance + */ + QualityOfServiceSpec.create = function create(properties) { + return new QualityOfServiceSpec(properties); + }; + + /** + * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {flyteidl.core.IQualityOfServiceSpec} message QualityOfServiceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QualityOfServiceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) + $root.google.protobuf.Duration.encode(message.queueingBudget, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a QualityOfServiceSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QualityOfServiceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfServiceSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.queueingBudget = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a QualityOfServiceSpec message. + * @function verify + * @memberof flyteidl.core.QualityOfServiceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QualityOfServiceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) { + var error = $root.google.protobuf.Duration.verify(message.queueingBudget); + if (error) + return "queueingBudget." + error; + } + return null; + }; + + return QualityOfServiceSpec; + })(); + + core.QualityOfService = (function() { + + /** + * Properties of a QualityOfService. + * @memberof flyteidl.core + * @interface IQualityOfService + * @property {flyteidl.core.QualityOfService.Tier|null} [tier] QualityOfService tier + * @property {flyteidl.core.IQualityOfServiceSpec|null} [spec] QualityOfService spec + */ + + /** + * Constructs a new QualityOfService. + * @memberof flyteidl.core + * @classdesc Represents a QualityOfService. + * @implements IQualityOfService + * @constructor + * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set + */ + function QualityOfService(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * QualityOfService tier. + * @member {flyteidl.core.QualityOfService.Tier} tier + * @memberof flyteidl.core.QualityOfService + * @instance + */ + QualityOfService.prototype.tier = 0; + + /** + * QualityOfService spec. + * @member {flyteidl.core.IQualityOfServiceSpec|null|undefined} spec + * @memberof flyteidl.core.QualityOfService + * @instance + */ + QualityOfService.prototype.spec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * QualityOfService designation. + * @member {"tier"|"spec"|undefined} designation + * @memberof flyteidl.core.QualityOfService + * @instance + */ + Object.defineProperty(QualityOfService.prototype, "designation", { + get: $util.oneOfGetter($oneOfFields = ["tier", "spec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new QualityOfService instance using the specified properties. + * @function create + * @memberof flyteidl.core.QualityOfService + * @static + * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set + * @returns {flyteidl.core.QualityOfService} QualityOfService instance + */ + QualityOfService.create = function create(properties) { + return new QualityOfService(properties); + }; + + /** + * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.QualityOfService + * @static + * @param {flyteidl.core.IQualityOfService} message QualityOfService message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + QualityOfService.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tier != null && message.hasOwnProperty("tier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tier); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.core.QualityOfServiceSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a QualityOfService message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.QualityOfService + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.QualityOfService} QualityOfService + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + QualityOfService.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfService(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.tier = reader.int32(); + break; + case 2: + message.spec = $root.flyteidl.core.QualityOfServiceSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a QualityOfService message. + * @function verify + * @memberof flyteidl.core.QualityOfService + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + QualityOfService.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.tier != null && message.hasOwnProperty("tier")) { + properties.designation = 1; + switch (message.tier) { + default: + return "tier: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + if (message.spec != null && message.hasOwnProperty("spec")) { + if (properties.designation === 1) + return "designation: multiple values"; + properties.designation = 1; + { + var error = $root.flyteidl.core.QualityOfServiceSpec.verify(message.spec); + if (error) + return "spec." + error; + } + } + return null; + }; + + /** + * Tier enum. + * @name flyteidl.core.QualityOfService.Tier + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} HIGH=1 HIGH value + * @property {number} MEDIUM=2 MEDIUM value + * @property {number} LOW=3 LOW value + */ + QualityOfService.Tier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "HIGH"] = 1; + values[valuesById[2] = "MEDIUM"] = 2; + values[valuesById[3] = "LOW"] = 3; + return values; + })(); + + return QualityOfService; + })(); + + core.Resources = (function() { + + /** + * Properties of a Resources. + * @memberof flyteidl.core + * @interface IResources + * @property {Array.|null} [requests] Resources requests + * @property {Array.|null} [limits] Resources limits + */ + + /** + * Constructs a new Resources. + * @memberof flyteidl.core + * @classdesc Represents a Resources. + * @implements IResources + * @constructor + * @param {flyteidl.core.IResources=} [properties] Properties to set + */ + function Resources(properties) { + this.requests = []; + this.limits = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Resources requests. + * @member {Array.} requests + * @memberof flyteidl.core.Resources + * @instance + */ + Resources.prototype.requests = $util.emptyArray; + + /** + * Resources limits. + * @member {Array.} limits + * @memberof flyteidl.core.Resources + * @instance + */ + Resources.prototype.limits = $util.emptyArray; + + /** + * Creates a new Resources instance using the specified properties. + * @function create + * @memberof flyteidl.core.Resources + * @static + * @param {flyteidl.core.IResources=} [properties] Properties to set + * @returns {flyteidl.core.Resources} Resources instance + */ + Resources.create = function create(properties) { + return new Resources(properties); + }; + + /** + * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Resources + * @static + * @param {flyteidl.core.IResources} message Resources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Resources.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.flyteidl.core.Resources.ResourceEntry.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limits != null && message.limits.length) + for (var i = 0; i < message.limits.length; ++i) + $root.flyteidl.core.Resources.ResourceEntry.encode(message.limits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Resources message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Resources + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Resources} Resources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Resources.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.limits && message.limits.length)) + message.limits = []; + message.limits.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Resources message. + * @function verify + * @memberof flyteidl.core.Resources + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Resources.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } + if (message.limits != null && message.hasOwnProperty("limits")) { + if (!Array.isArray(message.limits)) + return "limits: array expected"; + for (var i = 0; i < message.limits.length; ++i) { + var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.limits[i]); + if (error) + return "limits." + error; + } + } + return null; + }; + + /** + * ResourceName enum. + * @name flyteidl.core.Resources.ResourceName + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} CPU=1 CPU value + * @property {number} GPU=2 GPU value + * @property {number} MEMORY=3 MEMORY value + * @property {number} STORAGE=4 STORAGE value + * @property {number} EPHEMERAL_STORAGE=5 EPHEMERAL_STORAGE value + */ + Resources.ResourceName = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "CPU"] = 1; + values[valuesById[2] = "GPU"] = 2; + values[valuesById[3] = "MEMORY"] = 3; + values[valuesById[4] = "STORAGE"] = 4; + values[valuesById[5] = "EPHEMERAL_STORAGE"] = 5; + return values; + })(); + + Resources.ResourceEntry = (function() { + + /** + * Properties of a ResourceEntry. + * @memberof flyteidl.core.Resources + * @interface IResourceEntry + * @property {flyteidl.core.Resources.ResourceName|null} [name] ResourceEntry name + * @property {string|null} [value] ResourceEntry value + */ + + /** + * Constructs a new ResourceEntry. + * @memberof flyteidl.core.Resources + * @classdesc Represents a ResourceEntry. + * @implements IResourceEntry + * @constructor + * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set + */ + function ResourceEntry(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceEntry name. + * @member {flyteidl.core.Resources.ResourceName} name + * @memberof flyteidl.core.Resources.ResourceEntry + * @instance + */ + ResourceEntry.prototype.name = 0; + + /** + * ResourceEntry value. + * @member {string} value + * @memberof flyteidl.core.Resources.ResourceEntry + * @instance + */ + ResourceEntry.prototype.value = ""; + + /** + * Creates a new ResourceEntry instance using the specified properties. + * @function create + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set + * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry instance + */ + ResourceEntry.create = function create(properties) { + return new ResourceEntry(properties); + }; + + /** + * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {flyteidl.core.Resources.IResourceEntry} message ResourceEntry message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceEntry.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; + + /** + * Decodes a ResourceEntry message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceEntry.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources.ResourceEntry(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.int32(); + break; + case 2: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourceEntry message. + * @function verify + * @memberof flyteidl.core.Resources.ResourceEntry + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceEntry.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + switch (message.name) { + default: + return "name: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return ResourceEntry; + })(); + + return Resources; + })(); + + core.GPUAccelerator = (function() { + + /** + * Properties of a GPUAccelerator. + * @memberof flyteidl.core + * @interface IGPUAccelerator + * @property {string|null} [device] GPUAccelerator device + * @property {boolean|null} [unpartitioned] GPUAccelerator unpartitioned + * @property {string|null} [partitionSize] GPUAccelerator partitionSize + */ + + /** + * Constructs a new GPUAccelerator. + * @memberof flyteidl.core + * @classdesc Represents a GPUAccelerator. + * @implements IGPUAccelerator + * @constructor + * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set + */ + function GPUAccelerator(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GPUAccelerator device. + * @member {string} device + * @memberof flyteidl.core.GPUAccelerator + * @instance + */ + GPUAccelerator.prototype.device = ""; + + /** + * GPUAccelerator unpartitioned. + * @member {boolean} unpartitioned + * @memberof flyteidl.core.GPUAccelerator + * @instance + */ + GPUAccelerator.prototype.unpartitioned = false; + + /** + * GPUAccelerator partitionSize. + * @member {string} partitionSize + * @memberof flyteidl.core.GPUAccelerator + * @instance + */ + GPUAccelerator.prototype.partitionSize = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GPUAccelerator partitionSizeValue. + * @member {"unpartitioned"|"partitionSize"|undefined} partitionSizeValue + * @memberof flyteidl.core.GPUAccelerator + * @instance + */ + Object.defineProperty(GPUAccelerator.prototype, "partitionSizeValue", { + get: $util.oneOfGetter($oneOfFields = ["unpartitioned", "partitionSize"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GPUAccelerator instance using the specified properties. + * @function create + * @memberof flyteidl.core.GPUAccelerator + * @static + * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set + * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator instance + */ + GPUAccelerator.create = function create(properties) { + return new GPUAccelerator(properties); + }; + + /** + * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.GPUAccelerator + * @static + * @param {flyteidl.core.IGPUAccelerator} message GPUAccelerator message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GPUAccelerator.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.device != null && message.hasOwnProperty("device")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.device); + if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.unpartitioned); + if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.partitionSize); + return writer; + }; + + /** + * Decodes a GPUAccelerator message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.GPUAccelerator + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GPUAccelerator.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GPUAccelerator(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.device = reader.string(); + break; + case 2: + message.unpartitioned = reader.bool(); + break; + case 3: + message.partitionSize = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GPUAccelerator message. + * @function verify + * @memberof flyteidl.core.GPUAccelerator + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GPUAccelerator.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.device != null && message.hasOwnProperty("device")) + if (!$util.isString(message.device)) + return "device: string expected"; + if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) { + properties.partitionSizeValue = 1; + if (typeof message.unpartitioned !== "boolean") + return "unpartitioned: boolean expected"; + } + if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) { + if (properties.partitionSizeValue === 1) + return "partitionSizeValue: multiple values"; + properties.partitionSizeValue = 1; + if (!$util.isString(message.partitionSize)) + return "partitionSize: string expected"; + } + return null; + }; + + return GPUAccelerator; + })(); + + core.ExtendedResources = (function() { + + /** + * Properties of an ExtendedResources. + * @memberof flyteidl.core + * @interface IExtendedResources + * @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ExtendedResources gpuAccelerator + */ + + /** + * Constructs a new ExtendedResources. + * @memberof flyteidl.core + * @classdesc Represents an ExtendedResources. + * @implements IExtendedResources + * @constructor + * @param {flyteidl.core.IExtendedResources=} [properties] Properties to set + */ + function ExtendedResources(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtendedResources gpuAccelerator. + * @member {flyteidl.core.IGPUAccelerator|null|undefined} gpuAccelerator + * @memberof flyteidl.core.ExtendedResources + * @instance + */ + ExtendedResources.prototype.gpuAccelerator = null; + + /** + * Creates a new ExtendedResources instance using the specified properties. + * @function create + * @memberof flyteidl.core.ExtendedResources + * @static + * @param {flyteidl.core.IExtendedResources=} [properties] Properties to set + * @returns {flyteidl.core.ExtendedResources} ExtendedResources instance + */ + ExtendedResources.create = function create(properties) { + return new ExtendedResources(properties); + }; + + /** + * Encodes the specified ExtendedResources message. Does not implicitly {@link flyteidl.core.ExtendedResources.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ExtendedResources + * @static + * @param {flyteidl.core.IExtendedResources} message ExtendedResources message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtendedResources.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) + $root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExtendedResources message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ExtendedResources + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ExtendedResources} ExtendedResources + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtendedResources.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExtendedResources(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExtendedResources message. + * @function verify + * @memberof flyteidl.core.ExtendedResources + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtendedResources.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) { + var error = $root.flyteidl.core.GPUAccelerator.verify(message.gpuAccelerator); + if (error) + return "gpuAccelerator." + error; + } + return null; + }; + + return ExtendedResources; + })(); + + core.RuntimeMetadata = (function() { + + /** + * Properties of a RuntimeMetadata. + * @memberof flyteidl.core + * @interface IRuntimeMetadata + * @property {flyteidl.core.RuntimeMetadata.RuntimeType|null} [type] RuntimeMetadata type + * @property {string|null} [version] RuntimeMetadata version + * @property {string|null} [flavor] RuntimeMetadata flavor + */ + + /** + * Constructs a new RuntimeMetadata. + * @memberof flyteidl.core + * @classdesc Represents a RuntimeMetadata. + * @implements IRuntimeMetadata + * @constructor + * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set + */ + function RuntimeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RuntimeMetadata type. + * @member {flyteidl.core.RuntimeMetadata.RuntimeType} type + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.type = 0; + + /** + * RuntimeMetadata version. + * @member {string} version + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.version = ""; + + /** + * RuntimeMetadata flavor. + * @member {string} flavor + * @memberof flyteidl.core.RuntimeMetadata + * @instance + */ + RuntimeMetadata.prototype.flavor = ""; + + /** + * Creates a new RuntimeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set + * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata instance + */ + RuntimeMetadata.create = function create(properties) { + return new RuntimeMetadata(properties); + }; + + /** + * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {flyteidl.core.IRuntimeMetadata} message RuntimeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + if (message.flavor != null && message.hasOwnProperty("flavor")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.flavor); + return writer; + }; + + /** + * Decodes a RuntimeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RuntimeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.int32(); + break; + case 2: + message.version = reader.string(); + break; + case 3: + message.flavor = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RuntimeMetadata message. + * @function verify + * @memberof flyteidl.core.RuntimeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.flavor != null && message.hasOwnProperty("flavor")) + if (!$util.isString(message.flavor)) + return "flavor: string expected"; + return null; + }; + + /** + * RuntimeType enum. + * @name flyteidl.core.RuntimeMetadata.RuntimeType + * @enum {string} + * @property {number} OTHER=0 OTHER value + * @property {number} FLYTE_SDK=1 FLYTE_SDK value + */ + RuntimeMetadata.RuntimeType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OTHER"] = 0; + values[valuesById[1] = "FLYTE_SDK"] = 1; + return values; + })(); + + return RuntimeMetadata; + })(); + + core.TaskMetadata = (function() { + + /** + * Properties of a TaskMetadata. + * @memberof flyteidl.core + * @interface ITaskMetadata + * @property {boolean|null} [discoverable] TaskMetadata discoverable + * @property {flyteidl.core.IRuntimeMetadata|null} [runtime] TaskMetadata runtime + * @property {google.protobuf.IDuration|null} [timeout] TaskMetadata timeout + * @property {flyteidl.core.IRetryStrategy|null} [retries] TaskMetadata retries + * @property {string|null} [discoveryVersion] TaskMetadata discoveryVersion + * @property {string|null} [deprecatedErrorMessage] TaskMetadata deprecatedErrorMessage + * @property {boolean|null} [interruptible] TaskMetadata interruptible + * @property {boolean|null} [cacheSerializable] TaskMetadata cacheSerializable + * @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck + * @property {Object.|null} [tags] TaskMetadata tags + * @property {string|null} [podTemplateName] TaskMetadata podTemplateName + * @property {Array.|null} [cacheIgnoreInputVars] TaskMetadata cacheIgnoreInputVars + */ + + /** + * Constructs a new TaskMetadata. + * @memberof flyteidl.core + * @classdesc Represents a TaskMetadata. + * @implements ITaskMetadata + * @constructor + * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set + */ + function TaskMetadata(properties) { + this.tags = {}; + this.cacheIgnoreInputVars = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskMetadata discoverable. + * @member {boolean} discoverable + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.discoverable = false; + + /** + * TaskMetadata runtime. + * @member {flyteidl.core.IRuntimeMetadata|null|undefined} runtime + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.runtime = null; + + /** + * TaskMetadata timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.timeout = null; + + /** + * TaskMetadata retries. + * @member {flyteidl.core.IRetryStrategy|null|undefined} retries + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.retries = null; + + /** + * TaskMetadata discoveryVersion. + * @member {string} discoveryVersion + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.discoveryVersion = ""; + + /** + * TaskMetadata deprecatedErrorMessage. + * @member {string} deprecatedErrorMessage + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.deprecatedErrorMessage = ""; + + /** + * TaskMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.interruptible = false; + + /** + * TaskMetadata cacheSerializable. + * @member {boolean} cacheSerializable + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.cacheSerializable = false; + + /** + * TaskMetadata generatesDeck. + * @member {boolean} generatesDeck + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.generatesDeck = false; + + /** + * TaskMetadata tags. + * @member {Object.} tags + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.tags = $util.emptyObject; + + /** + * TaskMetadata podTemplateName. + * @member {string} podTemplateName + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.podTemplateName = ""; + + /** + * TaskMetadata cacheIgnoreInputVars. + * @member {Array.} cacheIgnoreInputVars + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + TaskMetadata.prototype.cacheIgnoreInputVars = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskMetadata interruptibleValue. + * @member {"interruptible"|undefined} interruptibleValue + * @memberof flyteidl.core.TaskMetadata + * @instance + */ + Object.defineProperty(TaskMetadata.prototype, "interruptibleValue", { + get: $util.oneOfGetter($oneOfFields = ["interruptible"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set + * @returns {flyteidl.core.TaskMetadata} TaskMetadata instance + */ + TaskMetadata.create = function create(properties) { + return new TaskMetadata(properties); + }; + + /** + * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {flyteidl.core.ITaskMetadata} message TaskMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.discoverable != null && message.hasOwnProperty("discoverable")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.discoverable); + if (message.runtime != null && message.hasOwnProperty("runtime")) + $root.flyteidl.core.RuntimeMetadata.encode(message.runtime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeout != null && message.hasOwnProperty("timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.retries != null && message.hasOwnProperty("retries")) + $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.discoveryVersion); + if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.deprecatedErrorMessage); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); + if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.generatesDeck); + if (message.tags != null && message.hasOwnProperty("tags")) + for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); + if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.podTemplateName); + if (message.cacheIgnoreInputVars != null && message.cacheIgnoreInputVars.length) + for (var i = 0; i < message.cacheIgnoreInputVars.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.cacheIgnoreInputVars[i]); + return writer; + }; + + /** + * Decodes a TaskMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskMetadata} TaskMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.discoverable = reader.bool(); + break; + case 2: + message.runtime = $root.flyteidl.core.RuntimeMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); + break; + case 6: + message.discoveryVersion = reader.string(); + break; + case 7: + message.deprecatedErrorMessage = reader.string(); + break; + case 8: + message.interruptible = reader.bool(); + break; + case 9: + message.cacheSerializable = reader.bool(); + break; + case 10: + message.generatesDeck = reader.bool(); + break; + case 11: + reader.skip().pos++; + if (message.tags === $util.emptyObject) + message.tags = {}; + key = reader.string(); + reader.pos++; + message.tags[key] = reader.string(); + break; + case 12: + message.podTemplateName = reader.string(); + break; + case 13: + if (!(message.cacheIgnoreInputVars && message.cacheIgnoreInputVars.length)) + message.cacheIgnoreInputVars = []; + message.cacheIgnoreInputVars.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskMetadata message. + * @function verify + * @memberof flyteidl.core.TaskMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.discoverable != null && message.hasOwnProperty("discoverable")) + if (typeof message.discoverable !== "boolean") + return "discoverable: boolean expected"; + if (message.runtime != null && message.hasOwnProperty("runtime")) { + var error = $root.flyteidl.core.RuntimeMetadata.verify(message.runtime); + if (error) + return "runtime." + error; + } + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; + } + if (message.retries != null && message.hasOwnProperty("retries")) { + var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); + if (error) + return "retries." + error; + } + if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) + if (!$util.isString(message.discoveryVersion)) + return "discoveryVersion: string expected"; + if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) + if (!$util.isString(message.deprecatedErrorMessage)) + return "deprecatedErrorMessage: string expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + properties.interruptibleValue = 1; + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + } + if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) + if (typeof message.cacheSerializable !== "boolean") + return "cacheSerializable: boolean expected"; + if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) + if (typeof message.generatesDeck !== "boolean") + return "generatesDeck: boolean expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!$util.isObject(message.tags)) + return "tags: object expected"; + var key = Object.keys(message.tags); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.tags[key[i]])) + return "tags: string{k:string} expected"; + } + if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) + if (!$util.isString(message.podTemplateName)) + return "podTemplateName: string expected"; + if (message.cacheIgnoreInputVars != null && message.hasOwnProperty("cacheIgnoreInputVars")) { + if (!Array.isArray(message.cacheIgnoreInputVars)) + return "cacheIgnoreInputVars: array expected"; + for (var i = 0; i < message.cacheIgnoreInputVars.length; ++i) + if (!$util.isString(message.cacheIgnoreInputVars[i])) + return "cacheIgnoreInputVars: string[] expected"; + } + return null; + }; + + return TaskMetadata; + })(); + + core.TaskTemplate = (function() { + + /** + * Properties of a TaskTemplate. + * @memberof flyteidl.core + * @interface ITaskTemplate + * @property {flyteidl.core.IIdentifier|null} [id] TaskTemplate id + * @property {string|null} [type] TaskTemplate type + * @property {flyteidl.core.ITaskMetadata|null} [metadata] TaskTemplate metadata + * @property {flyteidl.core.ITypedInterface|null} ["interface"] TaskTemplate interface + * @property {google.protobuf.IStruct|null} [custom] TaskTemplate custom + * @property {flyteidl.core.IContainer|null} [container] TaskTemplate container + * @property {flyteidl.core.IK8sPod|null} [k8sPod] TaskTemplate k8sPod + * @property {flyteidl.core.ISql|null} [sql] TaskTemplate sql + * @property {number|null} [taskTypeVersion] TaskTemplate taskTypeVersion + * @property {flyteidl.core.ISecurityContext|null} [securityContext] TaskTemplate securityContext + * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskTemplate extendedResources + * @property {Object.|null} [config] TaskTemplate config + */ + + /** + * Constructs a new TaskTemplate. + * @memberof flyteidl.core + * @classdesc Represents a TaskTemplate. + * @implements ITaskTemplate + * @constructor + * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set + */ + function TaskTemplate(properties) { + this.config = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskTemplate id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.id = null; + + /** + * TaskTemplate type. + * @member {string} type + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.type = ""; + + /** + * TaskTemplate metadata. + * @member {flyteidl.core.ITaskMetadata|null|undefined} metadata + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.metadata = null; + + /** + * TaskTemplate interface. + * @member {flyteidl.core.ITypedInterface|null|undefined} interface + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype["interface"] = null; + + /** + * TaskTemplate custom. + * @member {google.protobuf.IStruct|null|undefined} custom + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.custom = null; + + /** + * TaskTemplate container. + * @member {flyteidl.core.IContainer|null|undefined} container + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.container = null; + + /** + * TaskTemplate k8sPod. + * @member {flyteidl.core.IK8sPod|null|undefined} k8sPod + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.k8sPod = null; + + /** + * TaskTemplate sql. + * @member {flyteidl.core.ISql|null|undefined} sql + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.sql = null; + + /** + * TaskTemplate taskTypeVersion. + * @member {number} taskTypeVersion + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.taskTypeVersion = 0; + + /** + * TaskTemplate securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.securityContext = null; + + /** + * TaskTemplate extendedResources. + * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.extendedResources = null; + + /** + * TaskTemplate config. + * @member {Object.} config + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + TaskTemplate.prototype.config = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskTemplate target. + * @member {"container"|"k8sPod"|"sql"|undefined} target + * @memberof flyteidl.core.TaskTemplate + * @instance + */ + Object.defineProperty(TaskTemplate.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["container", "k8sPod", "sql"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskTemplate instance using the specified properties. + * @function create + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set + * @returns {flyteidl.core.TaskTemplate} TaskTemplate instance + */ + TaskTemplate.create = function create(properties) { + return new TaskTemplate(properties); + }; + + /** + * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {flyteidl.core.ITaskTemplate} message TaskTemplate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskTemplate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.TaskMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message["interface"] != null && message.hasOwnProperty("interface")) + $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.protobuf.Struct.encode(message.custom, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.container != null && message.hasOwnProperty("container")) + $root.flyteidl.core.Container.encode(message.container, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.taskTypeVersion); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) + $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.config != null && message.hasOwnProperty("config")) + for (var keys = Object.keys(message.config), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim(); + if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) + $root.flyteidl.core.K8sPod.encode(message.k8sPod, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.sql != null && message.hasOwnProperty("sql")) + $root.flyteidl.core.Sql.encode(message.sql, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskTemplate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.TaskTemplate} TaskTemplate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskTemplate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskTemplate(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = reader.string(); + break; + case 3: + message.metadata = $root.flyteidl.core.TaskMetadata.decode(reader, reader.uint32()); + break; + case 4: + message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 5: + message.custom = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.container = $root.flyteidl.core.Container.decode(reader, reader.uint32()); + break; + case 17: + message.k8sPod = $root.flyteidl.core.K8sPod.decode(reader, reader.uint32()); + break; + case 18: + message.sql = $root.flyteidl.core.Sql.decode(reader, reader.uint32()); + break; + case 7: + message.taskTypeVersion = reader.int32(); + break; + case 8: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 9: + message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); + break; + case 16: + reader.skip().pos++; + if (message.config === $util.emptyObject) + message.config = {}; + key = reader.string(); + reader.pos++; + message.config[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskTemplate message. + * @function verify + * @memberof flyteidl.core.TaskTemplate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskTemplate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.TaskMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message["interface"] != null && message.hasOwnProperty("interface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); + if (error) + return "interface." + error; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + var error = $root.google.protobuf.Struct.verify(message.custom); + if (error) + return "custom." + error; + } + if (message.container != null && message.hasOwnProperty("container")) { + properties.target = 1; + { + var error = $root.flyteidl.core.Container.verify(message.container); + if (error) + return "container." + error; + } + } + if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.K8sPod.verify(message.k8sPod); + if (error) + return "k8sPod." + error; + } + } + if (message.sql != null && message.hasOwnProperty("sql")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.Sql.verify(message.sql); + if (error) + return "sql." + error; + } + } + if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) + if (!$util.isInteger(message.taskTypeVersion)) + return "taskTypeVersion: integer expected"; + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { + var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); + if (error) + return "extendedResources." + error; + } + if (message.config != null && message.hasOwnProperty("config")) { + if (!$util.isObject(message.config)) + return "config: object expected"; + var key = Object.keys(message.config); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.config[key[i]])) + return "config: string{k:string} expected"; + } + return null; + }; + + return TaskTemplate; + })(); + + core.ContainerPort = (function() { + + /** + * Properties of a ContainerPort. + * @memberof flyteidl.core + * @interface IContainerPort + * @property {number|null} [containerPort] ContainerPort containerPort + */ + + /** + * Constructs a new ContainerPort. + * @memberof flyteidl.core + * @classdesc Represents a ContainerPort. + * @implements IContainerPort + * @constructor + * @param {flyteidl.core.IContainerPort=} [properties] Properties to set + */ + function ContainerPort(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerPort containerPort. + * @member {number} containerPort + * @memberof flyteidl.core.ContainerPort + * @instance + */ + ContainerPort.prototype.containerPort = 0; + + /** + * Creates a new ContainerPort instance using the specified properties. + * @function create + * @memberof flyteidl.core.ContainerPort + * @static + * @param {flyteidl.core.IContainerPort=} [properties] Properties to set + * @returns {flyteidl.core.ContainerPort} ContainerPort instance + */ + ContainerPort.create = function create(properties) { + return new ContainerPort(properties); + }; + + /** + * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ContainerPort + * @static + * @param {flyteidl.core.IContainerPort} message ContainerPort message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerPort.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.containerPort); + return writer; + }; + + /** + * Decodes a ContainerPort message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ContainerPort + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ContainerPort} ContainerPort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerPort.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerPort(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.containerPort = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ContainerPort message. + * @function verify + * @memberof flyteidl.core.ContainerPort + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerPort.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + if (!$util.isInteger(message.containerPort)) + return "containerPort: integer expected"; + return null; + }; + + return ContainerPort; + })(); + + core.Container = (function() { + + /** + * Properties of a Container. + * @memberof flyteidl.core + * @interface IContainer + * @property {string|null} [image] Container image + * @property {Array.|null} [command] Container command + * @property {Array.|null} [args] Container args + * @property {flyteidl.core.IResources|null} [resources] Container resources + * @property {Array.|null} [env] Container env + * @property {Array.|null} [config] Container config + * @property {Array.|null} [ports] Container ports + * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] Container dataConfig + * @property {flyteidl.core.Container.Architecture|null} [architecture] Container architecture + */ + + /** + * Constructs a new Container. + * @memberof flyteidl.core + * @classdesc Represents a Container. + * @implements IContainer + * @constructor + * @param {flyteidl.core.IContainer=} [properties] Properties to set + */ + function Container(properties) { + this.command = []; + this.args = []; + this.env = []; + this.config = []; + this.ports = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Container image. + * @member {string} image + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.image = ""; + + /** + * Container command. + * @member {Array.} command + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.command = $util.emptyArray; + + /** + * Container args. + * @member {Array.} args + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.args = $util.emptyArray; + + /** + * Container resources. + * @member {flyteidl.core.IResources|null|undefined} resources + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.resources = null; + + /** + * Container env. + * @member {Array.} env + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.env = $util.emptyArray; + + /** + * Container config. + * @member {Array.} config + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.config = $util.emptyArray; + + /** + * Container ports. + * @member {Array.} ports + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.ports = $util.emptyArray; + + /** + * Container dataConfig. + * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.dataConfig = null; + + /** + * Container architecture. + * @member {flyteidl.core.Container.Architecture} architecture + * @memberof flyteidl.core.Container + * @instance + */ + Container.prototype.architecture = 0; + + /** + * Creates a new Container instance using the specified properties. + * @function create + * @memberof flyteidl.core.Container + * @static + * @param {flyteidl.core.IContainer=} [properties] Properties to set + * @returns {flyteidl.core.Container} Container instance + */ + Container.create = function create(properties) { + return new Container(properties); + }; + + /** + * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Container + * @static + * @param {flyteidl.core.IContainer} message Container message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Container.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.image != null && message.hasOwnProperty("image")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.image); + if (message.command != null && message.command.length) + for (var i = 0; i < message.command.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); + if (message.resources != null && message.hasOwnProperty("resources")) + $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.env != null && message.env.length) + for (var i = 0; i < message.env.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.env[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.config != null && message.config.length) + for (var i = 0; i < message.config.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.config[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.ports != null && message.ports.length) + for (var i = 0; i < message.ports.length; ++i) + $root.flyteidl.core.ContainerPort.encode(message.ports[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) + $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.architecture != null && message.hasOwnProperty("architecture")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.architecture); + return writer; + }; + + /** + * Decodes a Container message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Container + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Container} Container + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Container.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Container(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.image = reader.string(); + break; + case 2: + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + case 3: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + case 4: + message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.env && message.env.length)) + message.env = []; + message.env.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.config && message.config.length)) + message.config = []; + message.config.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.ports && message.ports.length)) + message.ports = []; + message.ports.push($root.flyteidl.core.ContainerPort.decode(reader, reader.uint32())); + break; + case 9: + message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); + break; + case 10: + message.architecture = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Container message. + * @function verify + * @memberof flyteidl.core.Container + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Container.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.image != null && message.hasOwnProperty("image")) + if (!$util.isString(message.image)) + return "image: string expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (var i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; + } + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.resources != null && message.hasOwnProperty("resources")) { + var error = $root.flyteidl.core.Resources.verify(message.resources); + if (error) + return "resources." + error; + } + if (message.env != null && message.hasOwnProperty("env")) { + if (!Array.isArray(message.env)) + return "env: array expected"; + for (var i = 0; i < message.env.length; ++i) { + var error = $root.flyteidl.core.KeyValuePair.verify(message.env[i]); + if (error) + return "env." + error; + } + } + if (message.config != null && message.hasOwnProperty("config")) { + if (!Array.isArray(message.config)) + return "config: array expected"; + for (var i = 0; i < message.config.length; ++i) { + var error = $root.flyteidl.core.KeyValuePair.verify(message.config[i]); + if (error) + return "config." + error; + } + } + if (message.ports != null && message.hasOwnProperty("ports")) { + if (!Array.isArray(message.ports)) + return "ports: array expected"; + for (var i = 0; i < message.ports.length; ++i) { + var error = $root.flyteidl.core.ContainerPort.verify(message.ports[i]); + if (error) + return "ports." + error; + } + } + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { + var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); + if (error) + return "dataConfig." + error; + } + if (message.architecture != null && message.hasOwnProperty("architecture")) + switch (message.architecture) { + default: + return "architecture: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Architecture enum. + * @name flyteidl.core.Container.Architecture + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} AMD64=1 AMD64 value + * @property {number} ARM64=2 ARM64 value + * @property {number} ARM_V6=3 ARM_V6 value + * @property {number} ARM_V7=4 ARM_V7 value + */ + Container.Architecture = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "AMD64"] = 1; + values[valuesById[2] = "ARM64"] = 2; + values[valuesById[3] = "ARM_V6"] = 3; + values[valuesById[4] = "ARM_V7"] = 4; + return values; + })(); + + return Container; + })(); + + core.IOStrategy = (function() { + + /** + * Properties of a IOStrategy. + * @memberof flyteidl.core + * @interface IIOStrategy + * @property {flyteidl.core.IOStrategy.DownloadMode|null} [downloadMode] IOStrategy downloadMode + * @property {flyteidl.core.IOStrategy.UploadMode|null} [uploadMode] IOStrategy uploadMode + */ + + /** + * Constructs a new IOStrategy. + * @memberof flyteidl.core + * @classdesc Represents a IOStrategy. + * @implements IIOStrategy + * @constructor + * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set + */ + function IOStrategy(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * IOStrategy downloadMode. + * @member {flyteidl.core.IOStrategy.DownloadMode} downloadMode + * @memberof flyteidl.core.IOStrategy + * @instance + */ + IOStrategy.prototype.downloadMode = 0; + + /** + * IOStrategy uploadMode. + * @member {flyteidl.core.IOStrategy.UploadMode} uploadMode + * @memberof flyteidl.core.IOStrategy + * @instance + */ + IOStrategy.prototype.uploadMode = 0; + + /** + * Creates a new IOStrategy instance using the specified properties. + * @function create + * @memberof flyteidl.core.IOStrategy + * @static + * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set + * @returns {flyteidl.core.IOStrategy} IOStrategy instance + */ + IOStrategy.create = function create(properties) { + return new IOStrategy(properties); + }; + + /** + * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.IOStrategy + * @static + * @param {flyteidl.core.IIOStrategy} message IOStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IOStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.downloadMode); + if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.uploadMode); + return writer; + }; + + /** + * Decodes a IOStrategy message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.IOStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.IOStrategy} IOStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IOStrategy.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IOStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.downloadMode = reader.int32(); + break; + case 2: + message.uploadMode = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a IOStrategy message. + * @function verify + * @memberof flyteidl.core.IOStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IOStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) + switch (message.downloadMode) { + default: + return "downloadMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) + switch (message.uploadMode) { + default: + return "uploadMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * DownloadMode enum. + * @name flyteidl.core.IOStrategy.DownloadMode + * @enum {string} + * @property {number} DOWNLOAD_EAGER=0 DOWNLOAD_EAGER value + * @property {number} DOWNLOAD_STREAM=1 DOWNLOAD_STREAM value + * @property {number} DO_NOT_DOWNLOAD=2 DO_NOT_DOWNLOAD value + */ + IOStrategy.DownloadMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DOWNLOAD_EAGER"] = 0; + values[valuesById[1] = "DOWNLOAD_STREAM"] = 1; + values[valuesById[2] = "DO_NOT_DOWNLOAD"] = 2; + return values; + })(); + + /** + * UploadMode enum. + * @name flyteidl.core.IOStrategy.UploadMode + * @enum {string} + * @property {number} UPLOAD_ON_EXIT=0 UPLOAD_ON_EXIT value + * @property {number} UPLOAD_EAGER=1 UPLOAD_EAGER value + * @property {number} DO_NOT_UPLOAD=2 DO_NOT_UPLOAD value + */ + IOStrategy.UploadMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UPLOAD_ON_EXIT"] = 0; + values[valuesById[1] = "UPLOAD_EAGER"] = 1; + values[valuesById[2] = "DO_NOT_UPLOAD"] = 2; + return values; + })(); + + return IOStrategy; + })(); + + core.DataLoadingConfig = (function() { + + /** + * Properties of a DataLoadingConfig. + * @memberof flyteidl.core + * @interface IDataLoadingConfig + * @property {boolean|null} [enabled] DataLoadingConfig enabled + * @property {string|null} [inputPath] DataLoadingConfig inputPath + * @property {string|null} [outputPath] DataLoadingConfig outputPath + * @property {flyteidl.core.DataLoadingConfig.LiteralMapFormat|null} [format] DataLoadingConfig format + * @property {flyteidl.core.IIOStrategy|null} [ioStrategy] DataLoadingConfig ioStrategy + */ + + /** + * Constructs a new DataLoadingConfig. + * @memberof flyteidl.core + * @classdesc Represents a DataLoadingConfig. + * @implements IDataLoadingConfig + * @constructor + * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set + */ + function DataLoadingConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DataLoadingConfig enabled. + * @member {boolean} enabled + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.enabled = false; + + /** + * DataLoadingConfig inputPath. + * @member {string} inputPath + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.inputPath = ""; + + /** + * DataLoadingConfig outputPath. + * @member {string} outputPath + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.outputPath = ""; + + /** + * DataLoadingConfig format. + * @member {flyteidl.core.DataLoadingConfig.LiteralMapFormat} format + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.format = 0; + + /** + * DataLoadingConfig ioStrategy. + * @member {flyteidl.core.IIOStrategy|null|undefined} ioStrategy + * @memberof flyteidl.core.DataLoadingConfig + * @instance + */ + DataLoadingConfig.prototype.ioStrategy = null; + + /** + * Creates a new DataLoadingConfig instance using the specified properties. + * @function create + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set + * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig instance + */ + DataLoadingConfig.create = function create(properties) { + return new DataLoadingConfig(properties); + }; + + /** + * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {flyteidl.core.IDataLoadingConfig} message DataLoadingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DataLoadingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.inputPath != null && message.hasOwnProperty("inputPath")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputPath); + if (message.outputPath != null && message.hasOwnProperty("outputPath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPath); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.format); + if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) + $root.flyteidl.core.IOStrategy.encode(message.ioStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DataLoadingConfig message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DataLoadingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DataLoadingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + case 2: + message.inputPath = reader.string(); + break; + case 3: + message.outputPath = reader.string(); + break; + case 4: + message.format = reader.int32(); + break; + case 5: + message.ioStrategy = $root.flyteidl.core.IOStrategy.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DataLoadingConfig message. + * @function verify + * @memberof flyteidl.core.DataLoadingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DataLoadingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.inputPath != null && message.hasOwnProperty("inputPath")) + if (!$util.isString(message.inputPath)) + return "inputPath: string expected"; + if (message.outputPath != null && message.hasOwnProperty("outputPath")) + if (!$util.isString(message.outputPath)) + return "outputPath: string expected"; + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) { + var error = $root.flyteidl.core.IOStrategy.verify(message.ioStrategy); + if (error) + return "ioStrategy." + error; + } + return null; + }; + + /** + * LiteralMapFormat enum. + * @name flyteidl.core.DataLoadingConfig.LiteralMapFormat + * @enum {string} + * @property {number} JSON=0 JSON value + * @property {number} YAML=1 YAML value + * @property {number} PROTO=2 PROTO value + */ + DataLoadingConfig.LiteralMapFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JSON"] = 0; + values[valuesById[1] = "YAML"] = 1; + values[valuesById[2] = "PROTO"] = 2; + return values; + })(); + + return DataLoadingConfig; + })(); + + core.K8sPod = (function() { + + /** + * Properties of a K8sPod. + * @memberof flyteidl.core + * @interface IK8sPod + * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata + * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec + * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig + */ + + /** + * Constructs a new K8sPod. + * @memberof flyteidl.core + * @classdesc Represents a K8sPod. + * @implements IK8sPod + * @constructor + * @param {flyteidl.core.IK8sPod=} [properties] Properties to set + */ + function K8sPod(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * K8sPod metadata. + * @member {flyteidl.core.IK8sObjectMetadata|null|undefined} metadata + * @memberof flyteidl.core.K8sPod + * @instance + */ + K8sPod.prototype.metadata = null; + + /** + * K8sPod podSpec. + * @member {google.protobuf.IStruct|null|undefined} podSpec + * @memberof flyteidl.core.K8sPod + * @instance + */ + K8sPod.prototype.podSpec = null; + + /** + * K8sPod dataConfig. + * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig + * @memberof flyteidl.core.K8sPod + * @instance + */ + K8sPod.prototype.dataConfig = null; + + /** + * Creates a new K8sPod instance using the specified properties. + * @function create + * @memberof flyteidl.core.K8sPod + * @static + * @param {flyteidl.core.IK8sPod=} [properties] Properties to set + * @returns {flyteidl.core.K8sPod} K8sPod instance + */ + K8sPod.create = function create(properties) { + return new K8sPod(properties); + }; + + /** + * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.K8sPod + * @static + * @param {flyteidl.core.IK8sPod} message K8sPod message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + K8sPod.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.core.K8sObjectMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.podSpec != null && message.hasOwnProperty("podSpec")) + $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) + $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a K8sPod message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.K8sPod + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.K8sPod} K8sPod + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + K8sPod.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sPod(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metadata = $root.flyteidl.core.K8sObjectMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.podSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 3: + message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a K8sPod message. + * @function verify + * @memberof flyteidl.core.K8sPod + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + K8sPod.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.core.K8sObjectMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.podSpec != null && message.hasOwnProperty("podSpec")) { + var error = $root.google.protobuf.Struct.verify(message.podSpec); + if (error) + return "podSpec." + error; + } + if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { + var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); + if (error) + return "dataConfig." + error; + } + return null; + }; + + return K8sPod; + })(); + + core.K8sObjectMetadata = (function() { + + /** + * Properties of a K8sObjectMetadata. + * @memberof flyteidl.core + * @interface IK8sObjectMetadata + * @property {Object.|null} [labels] K8sObjectMetadata labels + * @property {Object.|null} [annotations] K8sObjectMetadata annotations + */ + + /** + * Constructs a new K8sObjectMetadata. + * @memberof flyteidl.core + * @classdesc Represents a K8sObjectMetadata. + * @implements IK8sObjectMetadata + * @constructor + * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set + */ + function K8sObjectMetadata(properties) { + this.labels = {}; + this.annotations = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * K8sObjectMetadata labels. + * @member {Object.} labels + * @memberof flyteidl.core.K8sObjectMetadata + * @instance + */ + K8sObjectMetadata.prototype.labels = $util.emptyObject; + + /** + * K8sObjectMetadata annotations. + * @member {Object.} annotations + * @memberof flyteidl.core.K8sObjectMetadata + * @instance + */ + K8sObjectMetadata.prototype.annotations = $util.emptyObject; + + /** + * Creates a new K8sObjectMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set + * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata instance + */ + K8sObjectMetadata.create = function create(properties) { + return new K8sObjectMetadata(properties); + }; + + /** + * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {flyteidl.core.IK8sObjectMetadata} message K8sObjectMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + K8sObjectMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.labels != null && message.hasOwnProperty("labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a K8sObjectMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + K8sObjectMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sObjectMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.labels === $util.emptyObject) + message.labels = {}; + key = reader.string(); + reader.pos++; + message.labels[key] = reader.string(); + break; + case 2: + reader.skip().pos++; + if (message.annotations === $util.emptyObject) + message.annotations = {}; + key = reader.string(); + reader.pos++; + message.annotations[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a K8sObjectMetadata message. + * @function verify + * @memberof flyteidl.core.K8sObjectMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + K8sObjectMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; + } + return null; + }; + + return K8sObjectMetadata; + })(); + + core.Sql = (function() { + + /** + * Properties of a Sql. + * @memberof flyteidl.core + * @interface ISql + * @property {string|null} [statement] Sql statement + * @property {flyteidl.core.Sql.Dialect|null} [dialect] Sql dialect + */ + + /** + * Constructs a new Sql. + * @memberof flyteidl.core + * @classdesc Represents a Sql. + * @implements ISql + * @constructor + * @param {flyteidl.core.ISql=} [properties] Properties to set + */ + function Sql(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Sql statement. + * @member {string} statement + * @memberof flyteidl.core.Sql + * @instance + */ + Sql.prototype.statement = ""; + + /** + * Sql dialect. + * @member {flyteidl.core.Sql.Dialect} dialect + * @memberof flyteidl.core.Sql + * @instance + */ + Sql.prototype.dialect = 0; + + /** + * Creates a new Sql instance using the specified properties. + * @function create + * @memberof flyteidl.core.Sql + * @static + * @param {flyteidl.core.ISql=} [properties] Properties to set + * @returns {flyteidl.core.Sql} Sql instance + */ + Sql.create = function create(properties) { + return new Sql(properties); + }; + + /** + * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Sql + * @static + * @param {flyteidl.core.ISql} message Sql message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sql.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.statement != null && message.hasOwnProperty("statement")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.statement); + if (message.dialect != null && message.hasOwnProperty("dialect")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dialect); + return writer; + }; + + /** + * Decodes a Sql message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Sql + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Sql} Sql + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sql.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Sql(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.statement = reader.string(); + break; + case 2: + message.dialect = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Sql message. + * @function verify + * @memberof flyteidl.core.Sql + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Sql.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.statement != null && message.hasOwnProperty("statement")) + if (!$util.isString(message.statement)) + return "statement: string expected"; + if (message.dialect != null && message.hasOwnProperty("dialect")) + switch (message.dialect) { + default: + return "dialect: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Dialect enum. + * @name flyteidl.core.Sql.Dialect + * @enum {string} + * @property {number} UNDEFINED=0 UNDEFINED value + * @property {number} ANSI=1 ANSI value + * @property {number} HIVE=2 HIVE value + * @property {number} OTHER=3 OTHER value + */ + Sql.Dialect = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNDEFINED"] = 0; + values[valuesById[1] = "ANSI"] = 1; + values[valuesById[2] = "HIVE"] = 2; + values[valuesById[3] = "OTHER"] = 3; + return values; + })(); + + return Sql; + })(); + + core.Secret = (function() { + + /** + * Properties of a Secret. + * @memberof flyteidl.core + * @interface ISecret + * @property {string|null} [group] Secret group + * @property {string|null} [groupVersion] Secret groupVersion + * @property {string|null} [key] Secret key + * @property {flyteidl.core.Secret.MountType|null} [mountRequirement] Secret mountRequirement + */ + + /** + * Constructs a new Secret. + * @memberof flyteidl.core + * @classdesc Represents a Secret. + * @implements ISecret + * @constructor + * @param {flyteidl.core.ISecret=} [properties] Properties to set + */ + function Secret(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Secret group. + * @member {string} group + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.group = ""; + + /** + * Secret groupVersion. + * @member {string} groupVersion + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.groupVersion = ""; + + /** + * Secret key. + * @member {string} key + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.key = ""; + + /** + * Secret mountRequirement. + * @member {flyteidl.core.Secret.MountType} mountRequirement + * @memberof flyteidl.core.Secret + * @instance + */ + Secret.prototype.mountRequirement = 0; + + /** + * Creates a new Secret instance using the specified properties. + * @function create + * @memberof flyteidl.core.Secret + * @static + * @param {flyteidl.core.ISecret=} [properties] Properties to set + * @returns {flyteidl.core.Secret} Secret instance + */ + Secret.create = function create(properties) { + return new Secret(properties); + }; + + /** + * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Secret + * @static + * @param {flyteidl.core.ISecret} message Secret message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Secret.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.group != null && message.hasOwnProperty("group")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.group); + if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupVersion); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); + if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mountRequirement); + return writer; + }; + + /** + * Decodes a Secret message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Secret + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Secret} Secret + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Secret.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Secret(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.group = reader.string(); + break; + case 2: + message.groupVersion = reader.string(); + break; + case 3: + message.key = reader.string(); + break; + case 4: + message.mountRequirement = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Secret message. + * @function verify + * @memberof flyteidl.core.Secret + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Secret.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.group != null && message.hasOwnProperty("group")) + if (!$util.isString(message.group)) + return "group: string expected"; + if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) + if (!$util.isString(message.groupVersion)) + return "groupVersion: string expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) + switch (message.mountRequirement) { + default: + return "mountRequirement: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * MountType enum. + * @name flyteidl.core.Secret.MountType + * @enum {string} + * @property {number} ANY=0 ANY value + * @property {number} ENV_VAR=1 ENV_VAR value + * @property {number} FILE=2 FILE value + */ + Secret.MountType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ANY"] = 0; + values[valuesById[1] = "ENV_VAR"] = 1; + values[valuesById[2] = "FILE"] = 2; + return values; + })(); + + return Secret; + })(); + + core.OAuth2Client = (function() { + + /** + * Properties of a OAuth2Client. + * @memberof flyteidl.core + * @interface IOAuth2Client + * @property {string|null} [clientId] OAuth2Client clientId + * @property {flyteidl.core.ISecret|null} [clientSecret] OAuth2Client clientSecret + */ + + /** + * Constructs a new OAuth2Client. + * @memberof flyteidl.core + * @classdesc Represents a OAuth2Client. + * @implements IOAuth2Client + * @constructor + * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set + */ + function OAuth2Client(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OAuth2Client clientId. + * @member {string} clientId + * @memberof flyteidl.core.OAuth2Client + * @instance + */ + OAuth2Client.prototype.clientId = ""; + + /** + * OAuth2Client clientSecret. + * @member {flyteidl.core.ISecret|null|undefined} clientSecret + * @memberof flyteidl.core.OAuth2Client + * @instance + */ + OAuth2Client.prototype.clientSecret = null; + + /** + * Creates a new OAuth2Client instance using the specified properties. + * @function create + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set + * @returns {flyteidl.core.OAuth2Client} OAuth2Client instance + */ + OAuth2Client.create = function create(properties) { + return new OAuth2Client(properties); + }; + + /** + * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {flyteidl.core.IOAuth2Client} message OAuth2Client message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2Client.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clientId != null && message.hasOwnProperty("clientId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) + $root.flyteidl.core.Secret.encode(message.clientSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a OAuth2Client message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OAuth2Client} OAuth2Client + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2Client.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2Client(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.clientSecret = $root.flyteidl.core.Secret.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2Client message. + * @function verify + * @memberof flyteidl.core.OAuth2Client + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2Client.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) { + var error = $root.flyteidl.core.Secret.verify(message.clientSecret); + if (error) + return "clientSecret." + error; + } + return null; + }; + + return OAuth2Client; + })(); + + core.Identity = (function() { + + /** + * Properties of an Identity. + * @memberof flyteidl.core + * @interface IIdentity + * @property {string|null} [iamRole] Identity iamRole + * @property {string|null} [k8sServiceAccount] Identity k8sServiceAccount + * @property {flyteidl.core.IOAuth2Client|null} [oauth2Client] Identity oauth2Client + * @property {string|null} [executionIdentity] Identity executionIdentity + */ + + /** + * Constructs a new Identity. + * @memberof flyteidl.core + * @classdesc Represents an Identity. + * @implements IIdentity + * @constructor + * @param {flyteidl.core.IIdentity=} [properties] Properties to set + */ + function Identity(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Identity iamRole. + * @member {string} iamRole + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.iamRole = ""; + + /** + * Identity k8sServiceAccount. + * @member {string} k8sServiceAccount + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.k8sServiceAccount = ""; + + /** + * Identity oauth2Client. + * @member {flyteidl.core.IOAuth2Client|null|undefined} oauth2Client + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.oauth2Client = null; + + /** + * Identity executionIdentity. + * @member {string} executionIdentity + * @memberof flyteidl.core.Identity + * @instance + */ + Identity.prototype.executionIdentity = ""; + + /** + * Creates a new Identity instance using the specified properties. + * @function create + * @memberof flyteidl.core.Identity + * @static + * @param {flyteidl.core.IIdentity=} [properties] Properties to set + * @returns {flyteidl.core.Identity} Identity instance + */ + Identity.create = function create(properties) { + return new Identity(properties); + }; + + /** + * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Identity + * @static + * @param {flyteidl.core.IIdentity} message Identity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Identity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.iamRole != null && message.hasOwnProperty("iamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.iamRole); + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.k8sServiceAccount); + if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) + $root.flyteidl.core.OAuth2Client.encode(message.oauth2Client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.executionIdentity); + return writer; + }; + + /** + * Decodes an Identity message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Identity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Identity} Identity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Identity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.iamRole = reader.string(); + break; + case 2: + message.k8sServiceAccount = reader.string(); + break; + case 3: + message.oauth2Client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); + break; + case 4: + message.executionIdentity = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Identity message. + * @function verify + * @memberof flyteidl.core.Identity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Identity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.iamRole != null && message.hasOwnProperty("iamRole")) + if (!$util.isString(message.iamRole)) + return "iamRole: string expected"; + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + if (!$util.isString(message.k8sServiceAccount)) + return "k8sServiceAccount: string expected"; + if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) { + var error = $root.flyteidl.core.OAuth2Client.verify(message.oauth2Client); + if (error) + return "oauth2Client." + error; + } + if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) + if (!$util.isString(message.executionIdentity)) + return "executionIdentity: string expected"; + return null; + }; + + return Identity; + })(); + + core.OAuth2TokenRequest = (function() { + + /** + * Properties of a OAuth2TokenRequest. + * @memberof flyteidl.core + * @interface IOAuth2TokenRequest + * @property {string|null} [name] OAuth2TokenRequest name + * @property {flyteidl.core.OAuth2TokenRequest.Type|null} [type] OAuth2TokenRequest type + * @property {flyteidl.core.IOAuth2Client|null} [client] OAuth2TokenRequest client + * @property {string|null} [idpDiscoveryEndpoint] OAuth2TokenRequest idpDiscoveryEndpoint + * @property {string|null} [tokenEndpoint] OAuth2TokenRequest tokenEndpoint + */ + + /** + * Constructs a new OAuth2TokenRequest. + * @memberof flyteidl.core + * @classdesc Represents a OAuth2TokenRequest. + * @implements IOAuth2TokenRequest + * @constructor + * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set + */ + function OAuth2TokenRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OAuth2TokenRequest name. + * @member {string} name + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.name = ""; + + /** + * OAuth2TokenRequest type. + * @member {flyteidl.core.OAuth2TokenRequest.Type} type + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.type = 0; + + /** + * OAuth2TokenRequest client. + * @member {flyteidl.core.IOAuth2Client|null|undefined} client + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.client = null; + + /** + * OAuth2TokenRequest idpDiscoveryEndpoint. + * @member {string} idpDiscoveryEndpoint + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.idpDiscoveryEndpoint = ""; + + /** + * OAuth2TokenRequest tokenEndpoint. + * @member {string} tokenEndpoint + * @memberof flyteidl.core.OAuth2TokenRequest + * @instance + */ + OAuth2TokenRequest.prototype.tokenEndpoint = ""; + + /** + * Creates a new OAuth2TokenRequest instance using the specified properties. + * @function create + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set + * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest instance + */ + OAuth2TokenRequest.create = function create(properties) { + return new OAuth2TokenRequest(properties); + }; + + /** + * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {flyteidl.core.IOAuth2TokenRequest} message OAuth2TokenRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2TokenRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.client != null && message.hasOwnProperty("client")) + $root.flyteidl.core.OAuth2Client.encode(message.client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.idpDiscoveryEndpoint); + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tokenEndpoint); + return writer; + }; + + /** + * Decodes a OAuth2TokenRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2TokenRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2TokenRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.type = reader.int32(); + break; + case 3: + message.client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); + break; + case 4: + message.idpDiscoveryEndpoint = reader.string(); + break; + case 5: + message.tokenEndpoint = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2TokenRequest message. + * @function verify + * @memberof flyteidl.core.OAuth2TokenRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2TokenRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + break; + } + if (message.client != null && message.hasOwnProperty("client")) { + var error = $root.flyteidl.core.OAuth2Client.verify(message.client); + if (error) + return "client." + error; + } + if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) + if (!$util.isString(message.idpDiscoveryEndpoint)) + return "idpDiscoveryEndpoint: string expected"; + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + if (!$util.isString(message.tokenEndpoint)) + return "tokenEndpoint: string expected"; + return null; + }; + + /** + * Type enum. + * @name flyteidl.core.OAuth2TokenRequest.Type + * @enum {string} + * @property {number} CLIENT_CREDENTIALS=0 CLIENT_CREDENTIALS value + */ + OAuth2TokenRequest.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CLIENT_CREDENTIALS"] = 0; + return values; + })(); + + return OAuth2TokenRequest; + })(); + + core.SecurityContext = (function() { + + /** + * Properties of a SecurityContext. + * @memberof flyteidl.core + * @interface ISecurityContext + * @property {flyteidl.core.IIdentity|null} [runAs] SecurityContext runAs + * @property {Array.|null} [secrets] SecurityContext secrets + * @property {Array.|null} [tokens] SecurityContext tokens + */ + + /** + * Constructs a new SecurityContext. + * @memberof flyteidl.core + * @classdesc Represents a SecurityContext. + * @implements ISecurityContext + * @constructor + * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set + */ + function SecurityContext(properties) { + this.secrets = []; + this.tokens = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SecurityContext runAs. + * @member {flyteidl.core.IIdentity|null|undefined} runAs + * @memberof flyteidl.core.SecurityContext + * @instance + */ + SecurityContext.prototype.runAs = null; + + /** + * SecurityContext secrets. + * @member {Array.} secrets + * @memberof flyteidl.core.SecurityContext + * @instance + */ + SecurityContext.prototype.secrets = $util.emptyArray; + + /** + * SecurityContext tokens. + * @member {Array.} tokens + * @memberof flyteidl.core.SecurityContext + * @instance + */ + SecurityContext.prototype.tokens = $util.emptyArray; + + /** + * Creates a new SecurityContext instance using the specified properties. + * @function create + * @memberof flyteidl.core.SecurityContext + * @static + * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set + * @returns {flyteidl.core.SecurityContext} SecurityContext instance + */ + SecurityContext.create = function create(properties) { + return new SecurityContext(properties); + }; + + /** + * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.SecurityContext + * @static + * @param {flyteidl.core.ISecurityContext} message SecurityContext message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityContext.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runAs != null && message.hasOwnProperty("runAs")) + $root.flyteidl.core.Identity.encode(message.runAs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.secrets != null && message.secrets.length) + for (var i = 0; i < message.secrets.length; ++i) + $root.flyteidl.core.Secret.encode(message.secrets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.tokens != null && message.tokens.length) + for (var i = 0; i < message.tokens.length; ++i) + $root.flyteidl.core.OAuth2TokenRequest.encode(message.tokens[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SecurityContext message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.SecurityContext + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.SecurityContext} SecurityContext + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityContext.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SecurityContext(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.runAs = $root.flyteidl.core.Identity.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.secrets && message.secrets.length)) + message.secrets = []; + message.secrets.push($root.flyteidl.core.Secret.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.tokens && message.tokens.length)) + message.tokens = []; + message.tokens.push($root.flyteidl.core.OAuth2TokenRequest.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SecurityContext message. + * @function verify + * @memberof flyteidl.core.SecurityContext + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityContext.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.runAs != null && message.hasOwnProperty("runAs")) { + var error = $root.flyteidl.core.Identity.verify(message.runAs); + if (error) + return "runAs." + error; + } + if (message.secrets != null && message.hasOwnProperty("secrets")) { + if (!Array.isArray(message.secrets)) + return "secrets: array expected"; + for (var i = 0; i < message.secrets.length; ++i) { + var error = $root.flyteidl.core.Secret.verify(message.secrets[i]); + if (error) + return "secrets." + error; + } + } + if (message.tokens != null && message.hasOwnProperty("tokens")) { + if (!Array.isArray(message.tokens)) + return "tokens: array expected"; + for (var i = 0; i < message.tokens.length; ++i) { + var error = $root.flyteidl.core.OAuth2TokenRequest.verify(message.tokens[i]); + if (error) + return "tokens." + error; + } + } + return null; + }; + + return SecurityContext; + })(); + + core.DynamicJobSpec = (function() { + + /** + * Properties of a DynamicJobSpec. + * @memberof flyteidl.core + * @interface IDynamicJobSpec + * @property {Array.|null} [nodes] DynamicJobSpec nodes + * @property {Long|null} [minSuccesses] DynamicJobSpec minSuccesses + * @property {Array.|null} [outputs] DynamicJobSpec outputs + * @property {Array.|null} [tasks] DynamicJobSpec tasks + * @property {Array.|null} [subworkflows] DynamicJobSpec subworkflows + */ + + /** + * Constructs a new DynamicJobSpec. + * @memberof flyteidl.core + * @classdesc Represents a DynamicJobSpec. + * @implements IDynamicJobSpec + * @constructor + * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set + */ + function DynamicJobSpec(properties) { + this.nodes = []; + this.outputs = []; + this.tasks = []; + this.subworkflows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicJobSpec nodes. + * @member {Array.} nodes + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.nodes = $util.emptyArray; + + /** + * DynamicJobSpec minSuccesses. + * @member {Long} minSuccesses + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.minSuccesses = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * DynamicJobSpec outputs. + * @member {Array.} outputs + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.outputs = $util.emptyArray; + + /** + * DynamicJobSpec tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.tasks = $util.emptyArray; + + /** + * DynamicJobSpec subworkflows. + * @member {Array.} subworkflows + * @memberof flyteidl.core.DynamicJobSpec + * @instance + */ + DynamicJobSpec.prototype.subworkflows = $util.emptyArray; + + /** + * Creates a new DynamicJobSpec instance using the specified properties. + * @function create + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set + * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec instance + */ + DynamicJobSpec.create = function create(properties) { + return new DynamicJobSpec(properties); + }; + + /** + * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {flyteidl.core.IDynamicJobSpec} message DynamicJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicJobSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodes != null && message.nodes.length) + for (var i = 0; i < message.nodes.length; ++i) + $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minSuccesses); + if (message.outputs != null && message.outputs.length) + for (var i = 0; i < message.outputs.length; ++i) + $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.subworkflows != null && message.subworkflows.length) + for (var i = 0; i < message.subworkflows.length; ++i) + $root.flyteidl.core.WorkflowTemplate.encode(message.subworkflows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DynamicJobSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicJobSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DynamicJobSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodes && message.nodes.length)) + message.nodes = []; + message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); + break; + case 2: + message.minSuccesses = reader.int64(); + break; + case 3: + if (!(message.outputs && message.outputs.length)) + message.outputs = []; + message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.subworkflows && message.subworkflows.length)) + message.subworkflows = []; + message.subworkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicJobSpec message. + * @function verify + * @memberof flyteidl.core.DynamicJobSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicJobSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodes != null && message.hasOwnProperty("nodes")) { + if (!Array.isArray(message.nodes)) + return "nodes: array expected"; + for (var i = 0; i < message.nodes.length; ++i) { + var error = $root.flyteidl.core.Node.verify(message.nodes[i]); + if (error) + return "nodes." + error; + } + } + if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) + if (!$util.isInteger(message.minSuccesses) && !(message.minSuccesses && $util.isInteger(message.minSuccesses.low) && $util.isInteger(message.minSuccesses.high))) + return "minSuccesses: integer|Long expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!Array.isArray(message.outputs)) + return "outputs: array expected"; + for (var i = 0; i < message.outputs.length; ++i) { + var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); + if (error) + return "outputs." + error; + } + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.subworkflows != null && message.hasOwnProperty("subworkflows")) { + if (!Array.isArray(message.subworkflows)) + return "subworkflows: array expected"; + for (var i = 0; i < message.subworkflows.length; ++i) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subworkflows[i]); + if (error) + return "subworkflows." + error; + } + } + return null; + }; + + return DynamicJobSpec; + })(); + + core.ContainerError = (function() { + + /** + * Properties of a ContainerError. + * @memberof flyteidl.core + * @interface IContainerError + * @property {string|null} [code] ContainerError code + * @property {string|null} [message] ContainerError message + * @property {flyteidl.core.ContainerError.Kind|null} [kind] ContainerError kind + * @property {flyteidl.core.ExecutionError.ErrorKind|null} [origin] ContainerError origin + */ + + /** + * Constructs a new ContainerError. + * @memberof flyteidl.core + * @classdesc Represents a ContainerError. + * @implements IContainerError + * @constructor + * @param {flyteidl.core.IContainerError=} [properties] Properties to set + */ + function ContainerError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContainerError code. + * @member {string} code + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.code = ""; + + /** + * ContainerError message. + * @member {string} message + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.message = ""; + + /** + * ContainerError kind. + * @member {flyteidl.core.ContainerError.Kind} kind + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.kind = 0; + + /** + * ContainerError origin. + * @member {flyteidl.core.ExecutionError.ErrorKind} origin + * @memberof flyteidl.core.ContainerError + * @instance + */ + ContainerError.prototype.origin = 0; + + /** + * Creates a new ContainerError instance using the specified properties. + * @function create + * @memberof flyteidl.core.ContainerError + * @static + * @param {flyteidl.core.IContainerError=} [properties] Properties to set + * @returns {flyteidl.core.ContainerError} ContainerError instance + */ + ContainerError.create = function create(properties) { + return new ContainerError(properties); + }; + + /** + * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ContainerError + * @static + * @param {flyteidl.core.IContainerError} message ContainerError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); + if (message.origin != null && message.hasOwnProperty("origin")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.origin); + return writer; + }; + + /** + * Decodes a ContainerError message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ContainerError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ContainerError} ContainerError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.code = reader.string(); + break; + case 2: + message.message = reader.string(); + break; + case 3: + message.kind = reader.int32(); + break; + case 4: + message.origin = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ContainerError message. + * @function verify + * @memberof flyteidl.core.ContainerError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isString(message.code)) + return "code: string expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + switch (message.kind) { + default: + return "kind: enum value expected"; + case 0: + case 1: + break; + } + if (message.origin != null && message.hasOwnProperty("origin")) + switch (message.origin) { + default: + return "origin: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Kind enum. + * @name flyteidl.core.ContainerError.Kind + * @enum {string} + * @property {number} NON_RECOVERABLE=0 NON_RECOVERABLE value + * @property {number} RECOVERABLE=1 RECOVERABLE value + */ + ContainerError.Kind = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NON_RECOVERABLE"] = 0; + values[valuesById[1] = "RECOVERABLE"] = 1; + return values; + })(); + + return ContainerError; + })(); + + core.ErrorDocument = (function() { + + /** + * Properties of an ErrorDocument. + * @memberof flyteidl.core + * @interface IErrorDocument + * @property {flyteidl.core.IContainerError|null} [error] ErrorDocument error + */ + + /** + * Constructs a new ErrorDocument. + * @memberof flyteidl.core + * @classdesc Represents an ErrorDocument. + * @implements IErrorDocument + * @constructor + * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set + */ + function ErrorDocument(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ErrorDocument error. + * @member {flyteidl.core.IContainerError|null|undefined} error + * @memberof flyteidl.core.ErrorDocument + * @instance + */ + ErrorDocument.prototype.error = null; + + /** + * Creates a new ErrorDocument instance using the specified properties. + * @function create + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set + * @returns {flyteidl.core.ErrorDocument} ErrorDocument instance + */ + ErrorDocument.create = function create(properties) { + return new ErrorDocument(properties); + }; + + /** + * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {flyteidl.core.IErrorDocument} message ErrorDocument message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ErrorDocument.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ContainerError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ErrorDocument message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ErrorDocument} ErrorDocument + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ErrorDocument.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ErrorDocument(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.error = $root.flyteidl.core.ContainerError.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ErrorDocument message. + * @function verify + * @memberof flyteidl.core.ErrorDocument + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ErrorDocument.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.flyteidl.core.ContainerError.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + return ErrorDocument; + })(); + + core.Span = (function() { + + /** + * Properties of a Span. + * @memberof flyteidl.core + * @interface ISpan + * @property {google.protobuf.ITimestamp|null} [startTime] Span startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Span endTime + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowId] Span workflowId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeId] Span nodeId + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskId] Span taskId + * @property {string|null} [operationId] Span operationId + * @property {Array.|null} [spans] Span spans + */ + + /** + * Constructs a new Span. + * @memberof flyteidl.core + * @classdesc Represents a Span. + * @implements ISpan + * @constructor + * @param {flyteidl.core.ISpan=} [properties] Properties to set + */ + function Span(properties) { + this.spans = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Span startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.startTime = null; + + /** + * Span endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.endTime = null; + + /** + * Span workflowId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.workflowId = null; + + /** + * Span nodeId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.nodeId = null; + + /** + * Span taskId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.taskId = null; + + /** + * Span operationId. + * @member {string} operationId + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.operationId = ""; + + /** + * Span spans. + * @member {Array.} spans + * @memberof flyteidl.core.Span + * @instance + */ + Span.prototype.spans = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Span id. + * @member {"workflowId"|"nodeId"|"taskId"|"operationId"|undefined} id + * @memberof flyteidl.core.Span + * @instance + */ + Object.defineProperty(Span.prototype, "id", { + get: $util.oneOfGetter($oneOfFields = ["workflowId", "nodeId", "taskId", "operationId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Span instance using the specified properties. + * @function create + * @memberof flyteidl.core.Span + * @static + * @param {flyteidl.core.ISpan=} [properties] Properties to set + * @returns {flyteidl.core.Span} Span instance + */ + Span.create = function create(properties) { + return new Span(properties); + }; + + /** + * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.Span + * @static + * @param {flyteidl.core.ISpan} message Span message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Span.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startTime != null && message.hasOwnProperty("startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && message.hasOwnProperty("endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeId, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.operationId != null && message.hasOwnProperty("operationId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.operationId); + if (message.spans != null && message.spans.length) + for (var i = 0; i < message.spans.length; ++i) + $root.flyteidl.core.Span.encode(message.spans[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Span message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.Span + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.Span} Span + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Span.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Span(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.workflowId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 4: + message.nodeId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 5: + message.taskId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 6: + message.operationId = reader.string(); + break; + case 7: + if (!(message.spans && message.spans.length)) + message.spans = []; + message.spans.push($root.flyteidl.core.Span.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Span message. + * @function verify + * @memberof flyteidl.core.Span + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Span.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + properties.id = 1; + { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + } + if (message.nodeId != null && message.hasOwnProperty("nodeId")) { + if (properties.id === 1) + return "id: multiple values"; + properties.id = 1; + { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeId); + if (error) + return "nodeId." + error; + } + } + if (message.taskId != null && message.hasOwnProperty("taskId")) { + if (properties.id === 1) + return "id: multiple values"; + properties.id = 1; + { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + } + if (message.operationId != null && message.hasOwnProperty("operationId")) { + if (properties.id === 1) + return "id: multiple values"; + properties.id = 1; + if (!$util.isString(message.operationId)) + return "operationId: string expected"; + } + if (message.spans != null && message.hasOwnProperty("spans")) { + if (!Array.isArray(message.spans)) + return "spans: array expected"; + for (var i = 0; i < message.spans.length; ++i) { + var error = $root.flyteidl.core.Span.verify(message.spans[i]); + if (error) + return "spans." + error; + } + } + return null; + }; + + return Span; + })(); + + core.ExecutionMetricResult = (function() { + + /** + * Properties of an ExecutionMetricResult. + * @memberof flyteidl.core + * @interface IExecutionMetricResult + * @property {string|null} [metric] ExecutionMetricResult metric + * @property {google.protobuf.IStruct|null} [data] ExecutionMetricResult data + */ + + /** + * Constructs a new ExecutionMetricResult. + * @memberof flyteidl.core + * @classdesc Represents an ExecutionMetricResult. + * @implements IExecutionMetricResult + * @constructor + * @param {flyteidl.core.IExecutionMetricResult=} [properties] Properties to set + */ + function ExecutionMetricResult(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionMetricResult metric. + * @member {string} metric + * @memberof flyteidl.core.ExecutionMetricResult + * @instance + */ + ExecutionMetricResult.prototype.metric = ""; + + /** + * ExecutionMetricResult data. + * @member {google.protobuf.IStruct|null|undefined} data + * @memberof flyteidl.core.ExecutionMetricResult + * @instance + */ + ExecutionMetricResult.prototype.data = null; + + /** + * Creates a new ExecutionMetricResult instance using the specified properties. + * @function create + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {flyteidl.core.IExecutionMetricResult=} [properties] Properties to set + * @returns {flyteidl.core.ExecutionMetricResult} ExecutionMetricResult instance + */ + ExecutionMetricResult.create = function create(properties) { + return new ExecutionMetricResult(properties); + }; + + /** + * Encodes the specified ExecutionMetricResult message. Does not implicitly {@link flyteidl.core.ExecutionMetricResult.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {flyteidl.core.IExecutionMetricResult} message ExecutionMetricResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionMetricResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metric != null && message.hasOwnProperty("metric")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metric); + if (message.data != null && message.hasOwnProperty("data")) + $root.google.protobuf.Struct.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionMetricResult message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.ExecutionMetricResult} ExecutionMetricResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionMetricResult.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionMetricResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metric = reader.string(); + break; + case 2: + message.data = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionMetricResult message. + * @function verify + * @memberof flyteidl.core.ExecutionMetricResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionMetricResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metric != null && message.hasOwnProperty("metric")) + if (!$util.isString(message.metric)) + return "metric: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + var error = $root.google.protobuf.Struct.verify(message.data); + if (error) + return "data." + error; + } + return null; + }; + + return ExecutionMetricResult; + })(); + + core.WorkflowClosure = (function() { + + /** + * Properties of a WorkflowClosure. + * @memberof flyteidl.core + * @interface IWorkflowClosure + * @property {flyteidl.core.IWorkflowTemplate|null} [workflow] WorkflowClosure workflow + * @property {Array.|null} [tasks] WorkflowClosure tasks + */ + + /** + * Constructs a new WorkflowClosure. + * @memberof flyteidl.core + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure + * @constructor + * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set + */ + function WorkflowClosure(properties) { + this.tasks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowClosure workflow. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} workflow + * @memberof flyteidl.core.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.workflow = null; + + /** + * WorkflowClosure tasks. + * @member {Array.} tasks + * @memberof flyteidl.core.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.tasks = $util.emptyArray; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure instance + */ + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); + }; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {flyteidl.core.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflow != null && message.hasOwnProperty("workflow")) + $root.flyteidl.core.WorkflowTemplate.encode(message.workflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflow = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowClosure message. + * @function verify + * @memberof flyteidl.core.WorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.workflow); + if (error) + return "workflow." + error; + } + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + return null; + }; + + return WorkflowClosure; + })(); + + return core; + })(); + + flyteidl.event = (function() { + + /** + * Namespace event. + * @memberof flyteidl + * @namespace + */ + var event = {}; + + event.CloudEventWorkflowExecution = (function() { + + /** + * Properties of a CloudEventWorkflowExecution. + * @memberof flyteidl.event + * @interface ICloudEventWorkflowExecution + * @property {flyteidl.event.IWorkflowExecutionEvent|null} [rawEvent] CloudEventWorkflowExecution rawEvent + * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventWorkflowExecution outputInterface + * @property {Array.|null} [artifactIds] CloudEventWorkflowExecution artifactIds + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] CloudEventWorkflowExecution referenceExecution + * @property {string|null} [principal] CloudEventWorkflowExecution principal + * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventWorkflowExecution launchPlanId + */ + + /** + * Constructs a new CloudEventWorkflowExecution. + * @memberof flyteidl.event + * @classdesc Represents a CloudEventWorkflowExecution. + * @implements ICloudEventWorkflowExecution + * @constructor + * @param {flyteidl.event.ICloudEventWorkflowExecution=} [properties] Properties to set + */ + function CloudEventWorkflowExecution(properties) { + this.artifactIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CloudEventWorkflowExecution rawEvent. + * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} rawEvent + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @instance + */ + CloudEventWorkflowExecution.prototype.rawEvent = null; + + /** + * CloudEventWorkflowExecution outputInterface. + * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @instance + */ + CloudEventWorkflowExecution.prototype.outputInterface = null; + + /** + * CloudEventWorkflowExecution artifactIds. + * @member {Array.} artifactIds + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @instance + */ + CloudEventWorkflowExecution.prototype.artifactIds = $util.emptyArray; + + /** + * CloudEventWorkflowExecution referenceExecution. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @instance + */ + CloudEventWorkflowExecution.prototype.referenceExecution = null; + + /** + * CloudEventWorkflowExecution principal. + * @member {string} principal + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @instance + */ + CloudEventWorkflowExecution.prototype.principal = ""; + + /** + * CloudEventWorkflowExecution launchPlanId. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @instance + */ + CloudEventWorkflowExecution.prototype.launchPlanId = null; + + /** + * Creates a new CloudEventWorkflowExecution instance using the specified properties. + * @function create + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @static + * @param {flyteidl.event.ICloudEventWorkflowExecution=} [properties] Properties to set + * @returns {flyteidl.event.CloudEventWorkflowExecution} CloudEventWorkflowExecution instance + */ + CloudEventWorkflowExecution.create = function create(properties) { + return new CloudEventWorkflowExecution(properties); + }; + + /** + * Encodes the specified CloudEventWorkflowExecution message. Does not implicitly {@link flyteidl.event.CloudEventWorkflowExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @static + * @param {flyteidl.event.ICloudEventWorkflowExecution} message CloudEventWorkflowExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudEventWorkflowExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) + $root.flyteidl.event.WorkflowExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) + $root.flyteidl.core.TypedInterface.encode(message.outputInterface, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifactIds != null && message.artifactIds.length) + for (var i = 0; i < message.artifactIds.length; ++i) + $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.principal); + if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) + $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CloudEventWorkflowExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.CloudEventWorkflowExecution} CloudEventWorkflowExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudEventWorkflowExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventWorkflowExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rawEvent = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); + break; + case 2: + message.outputInterface = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.artifactIds && message.artifactIds.length)) + message.artifactIds = []; + message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); + break; + case 4: + message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 5: + message.principal = reader.string(); + break; + case 6: + message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CloudEventWorkflowExecution message. + * @function verify + * @memberof flyteidl.event.CloudEventWorkflowExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloudEventWorkflowExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { + var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.rawEvent); + if (error) + return "rawEvent." + error; + } + if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message.outputInterface); + if (error) + return "outputInterface." + error; + } + if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { + if (!Array.isArray(message.artifactIds)) + return "artifactIds: array expected"; + for (var i = 0; i < message.artifactIds.length; ++i) { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); + if (error) + return "artifactIds." + error; + } + } + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); + if (error) + return "referenceExecution." + error; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); + if (error) + return "launchPlanId." + error; + } + return null; + }; + + return CloudEventWorkflowExecution; + })(); + + event.CloudEventNodeExecution = (function() { + + /** + * Properties of a CloudEventNodeExecution. + * @memberof flyteidl.event + * @interface ICloudEventNodeExecution + * @property {flyteidl.event.INodeExecutionEvent|null} [rawEvent] CloudEventNodeExecution rawEvent + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecId] CloudEventNodeExecution taskExecId + * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventNodeExecution outputInterface + * @property {Array.|null} [artifactIds] CloudEventNodeExecution artifactIds + * @property {string|null} [principal] CloudEventNodeExecution principal + * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventNodeExecution launchPlanId + */ + + /** + * Constructs a new CloudEventNodeExecution. + * @memberof flyteidl.event + * @classdesc Represents a CloudEventNodeExecution. + * @implements ICloudEventNodeExecution + * @constructor + * @param {flyteidl.event.ICloudEventNodeExecution=} [properties] Properties to set + */ + function CloudEventNodeExecution(properties) { + this.artifactIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CloudEventNodeExecution rawEvent. + * @member {flyteidl.event.INodeExecutionEvent|null|undefined} rawEvent + * @memberof flyteidl.event.CloudEventNodeExecution + * @instance + */ + CloudEventNodeExecution.prototype.rawEvent = null; + + /** + * CloudEventNodeExecution taskExecId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecId + * @memberof flyteidl.event.CloudEventNodeExecution + * @instance + */ + CloudEventNodeExecution.prototype.taskExecId = null; + + /** + * CloudEventNodeExecution outputInterface. + * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface + * @memberof flyteidl.event.CloudEventNodeExecution + * @instance + */ + CloudEventNodeExecution.prototype.outputInterface = null; + + /** + * CloudEventNodeExecution artifactIds. + * @member {Array.} artifactIds + * @memberof flyteidl.event.CloudEventNodeExecution + * @instance + */ + CloudEventNodeExecution.prototype.artifactIds = $util.emptyArray; + + /** + * CloudEventNodeExecution principal. + * @member {string} principal + * @memberof flyteidl.event.CloudEventNodeExecution + * @instance + */ + CloudEventNodeExecution.prototype.principal = ""; + + /** + * CloudEventNodeExecution launchPlanId. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId + * @memberof flyteidl.event.CloudEventNodeExecution + * @instance + */ + CloudEventNodeExecution.prototype.launchPlanId = null; + + /** + * Creates a new CloudEventNodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.event.CloudEventNodeExecution + * @static + * @param {flyteidl.event.ICloudEventNodeExecution=} [properties] Properties to set + * @returns {flyteidl.event.CloudEventNodeExecution} CloudEventNodeExecution instance + */ + CloudEventNodeExecution.create = function create(properties) { + return new CloudEventNodeExecution(properties); + }; + + /** + * Encodes the specified CloudEventNodeExecution message. Does not implicitly {@link flyteidl.event.CloudEventNodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.CloudEventNodeExecution + * @static + * @param {flyteidl.event.ICloudEventNodeExecution} message CloudEventNodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudEventNodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) + $root.flyteidl.event.NodeExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.taskExecId != null && message.hasOwnProperty("taskExecId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) + $root.flyteidl.core.TypedInterface.encode(message.outputInterface, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.artifactIds != null && message.artifactIds.length) + for (var i = 0; i < message.artifactIds.length; ++i) + $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.principal); + if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) + $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CloudEventNodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.CloudEventNodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.CloudEventNodeExecution} CloudEventNodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudEventNodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventNodeExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rawEvent = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); + break; + case 2: + message.taskExecId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.outputInterface = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.artifactIds && message.artifactIds.length)) + message.artifactIds = []; + message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); + break; + case 5: + message.principal = reader.string(); + break; + case 6: + message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CloudEventNodeExecution message. + * @function verify + * @memberof flyteidl.event.CloudEventNodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloudEventNodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { + var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.rawEvent); + if (error) + return "rawEvent." + error; + } + if (message.taskExecId != null && message.hasOwnProperty("taskExecId")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecId); + if (error) + return "taskExecId." + error; + } + if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) { + var error = $root.flyteidl.core.TypedInterface.verify(message.outputInterface); + if (error) + return "outputInterface." + error; + } + if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { + if (!Array.isArray(message.artifactIds)) + return "artifactIds: array expected"; + for (var i = 0; i < message.artifactIds.length; ++i) { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); + if (error) + return "artifactIds." + error; + } + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); + if (error) + return "launchPlanId." + error; + } + return null; + }; + + return CloudEventNodeExecution; + })(); + + event.CloudEventTaskExecution = (function() { + + /** + * Properties of a CloudEventTaskExecution. + * @memberof flyteidl.event + * @interface ICloudEventTaskExecution + * @property {flyteidl.event.ITaskExecutionEvent|null} [rawEvent] CloudEventTaskExecution rawEvent + */ + + /** + * Constructs a new CloudEventTaskExecution. + * @memberof flyteidl.event + * @classdesc Represents a CloudEventTaskExecution. + * @implements ICloudEventTaskExecution + * @constructor + * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set + */ + function CloudEventTaskExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CloudEventTaskExecution rawEvent. + * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} rawEvent + * @memberof flyteidl.event.CloudEventTaskExecution + * @instance + */ + CloudEventTaskExecution.prototype.rawEvent = null; + + /** + * Creates a new CloudEventTaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.event.CloudEventTaskExecution + * @static + * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set + * @returns {flyteidl.event.CloudEventTaskExecution} CloudEventTaskExecution instance + */ + CloudEventTaskExecution.create = function create(properties) { + return new CloudEventTaskExecution(properties); + }; + + /** + * Encodes the specified CloudEventTaskExecution message. Does not implicitly {@link flyteidl.event.CloudEventTaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.CloudEventTaskExecution + * @static + * @param {flyteidl.event.ICloudEventTaskExecution} message CloudEventTaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudEventTaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) + $root.flyteidl.event.TaskExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CloudEventTaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.CloudEventTaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.CloudEventTaskExecution} CloudEventTaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudEventTaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventTaskExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.rawEvent = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CloudEventTaskExecution message. + * @function verify + * @memberof flyteidl.event.CloudEventTaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloudEventTaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { + var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.rawEvent); + if (error) + return "rawEvent." + error; + } + return null; + }; + + return CloudEventTaskExecution; + })(); + + event.CloudEventExecutionStart = (function() { + + /** + * Properties of a CloudEventExecutionStart. + * @memberof flyteidl.event + * @interface ICloudEventExecutionStart + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] CloudEventExecutionStart executionId + * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventExecutionStart launchPlanId + * @property {flyteidl.core.IIdentifier|null} [workflowId] CloudEventExecutionStart workflowId + * @property {Array.|null} [artifactIds] CloudEventExecutionStart artifactIds + * @property {Array.|null} [artifactTrackers] CloudEventExecutionStart artifactTrackers + * @property {string|null} [principal] CloudEventExecutionStart principal + */ + + /** + * Constructs a new CloudEventExecutionStart. + * @memberof flyteidl.event + * @classdesc Represents a CloudEventExecutionStart. + * @implements ICloudEventExecutionStart + * @constructor + * @param {flyteidl.event.ICloudEventExecutionStart=} [properties] Properties to set + */ + function CloudEventExecutionStart(properties) { + this.artifactIds = []; + this.artifactTrackers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CloudEventExecutionStart executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.CloudEventExecutionStart + * @instance + */ + CloudEventExecutionStart.prototype.executionId = null; + + /** + * CloudEventExecutionStart launchPlanId. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId + * @memberof flyteidl.event.CloudEventExecutionStart + * @instance + */ + CloudEventExecutionStart.prototype.launchPlanId = null; + + /** + * CloudEventExecutionStart workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.event.CloudEventExecutionStart + * @instance + */ + CloudEventExecutionStart.prototype.workflowId = null; + + /** + * CloudEventExecutionStart artifactIds. + * @member {Array.} artifactIds + * @memberof flyteidl.event.CloudEventExecutionStart + * @instance + */ + CloudEventExecutionStart.prototype.artifactIds = $util.emptyArray; + + /** + * CloudEventExecutionStart artifactTrackers. + * @member {Array.} artifactTrackers + * @memberof flyteidl.event.CloudEventExecutionStart + * @instance + */ + CloudEventExecutionStart.prototype.artifactTrackers = $util.emptyArray; + + /** + * CloudEventExecutionStart principal. + * @member {string} principal + * @memberof flyteidl.event.CloudEventExecutionStart + * @instance + */ + CloudEventExecutionStart.prototype.principal = ""; + + /** + * Creates a new CloudEventExecutionStart instance using the specified properties. + * @function create + * @memberof flyteidl.event.CloudEventExecutionStart + * @static + * @param {flyteidl.event.ICloudEventExecutionStart=} [properties] Properties to set + * @returns {flyteidl.event.CloudEventExecutionStart} CloudEventExecutionStart instance + */ + CloudEventExecutionStart.create = function create(properties) { + return new CloudEventExecutionStart(properties); + }; + + /** + * Encodes the specified CloudEventExecutionStart message. Does not implicitly {@link flyteidl.event.CloudEventExecutionStart.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.CloudEventExecutionStart + * @static + * @param {flyteidl.event.ICloudEventExecutionStart} message CloudEventExecutionStart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CloudEventExecutionStart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) + $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.artifactIds != null && message.artifactIds.length) + for (var i = 0; i < message.artifactIds.length; ++i) + $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.artifactTrackers != null && message.artifactTrackers.length) + for (var i = 0; i < message.artifactTrackers.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.artifactTrackers[i]); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.principal); + return writer; + }; + + /** + * Decodes a CloudEventExecutionStart message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.CloudEventExecutionStart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.CloudEventExecutionStart} CloudEventExecutionStart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CloudEventExecutionStart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventExecutionStart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 3: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.artifactIds && message.artifactIds.length)) + message.artifactIds = []; + message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.artifactTrackers && message.artifactTrackers.length)) + message.artifactTrackers = []; + message.artifactTrackers.push(reader.string()); + break; + case 6: + message.principal = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CloudEventExecutionStart message. + * @function verify + * @memberof flyteidl.event.CloudEventExecutionStart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CloudEventExecutionStart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); + if (error) + return "launchPlanId." + error; + } + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + var error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { + if (!Array.isArray(message.artifactIds)) + return "artifactIds: array expected"; + for (var i = 0; i < message.artifactIds.length; ++i) { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); + if (error) + return "artifactIds." + error; + } + } + if (message.artifactTrackers != null && message.hasOwnProperty("artifactTrackers")) { + if (!Array.isArray(message.artifactTrackers)) + return "artifactTrackers: array expected"; + for (var i = 0; i < message.artifactTrackers.length; ++i) + if (!$util.isString(message.artifactTrackers[i])) + return "artifactTrackers: string[] expected"; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + return null; + }; + + return CloudEventExecutionStart; + })(); + + event.WorkflowExecutionEvent = (function() { + + /** + * Properties of a WorkflowExecutionEvent. + * @memberof flyteidl.event + * @interface IWorkflowExecutionEvent + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowExecutionEvent executionId + * @property {string|null} [producerId] WorkflowExecutionEvent producerId + * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] WorkflowExecutionEvent phase + * @property {google.protobuf.ITimestamp|null} [occurredAt] WorkflowExecutionEvent occurredAt + * @property {string|null} [outputUri] WorkflowExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] WorkflowExecutionEvent error + * @property {flyteidl.core.ILiteralMap|null} [outputData] WorkflowExecutionEvent outputData + */ + + /** + * Constructs a new WorkflowExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a WorkflowExecutionEvent. + * @implements IWorkflowExecutionEvent + * @constructor + * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set + */ + function WorkflowExecutionEvent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionEvent executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.executionId = null; + + /** + * WorkflowExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.producerId = ""; + + /** + * WorkflowExecutionEvent phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.phase = 0; + + /** + * WorkflowExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.occurredAt = null; + + /** + * WorkflowExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.outputUri = ""; + + /** + * WorkflowExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.error = null; + + /** + * WorkflowExecutionEvent outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + WorkflowExecutionEvent.prototype.outputData = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WorkflowExecutionEvent outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.event.WorkflowExecutionEvent + * @instance + */ + Object.defineProperty(WorkflowExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new WorkflowExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent instance + */ + WorkflowExecutionEvent.create = function create(properties) { + return new WorkflowExecutionEvent(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {flyteidl.event.IWorkflowExecutionEvent} message WorkflowExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowExecutionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.producerId = reader.string(); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.outputUri = reader.string(); + break; + case 6: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 7: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEvent message. + * @function verify + * @memberof flyteidl.event.WorkflowExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + return null; + }; + + return WorkflowExecutionEvent; + })(); + + event.NodeExecutionEvent = (function() { + + /** + * Properties of a NodeExecutionEvent. + * @memberof flyteidl.event + * @interface INodeExecutionEvent + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionEvent id + * @property {string|null} [producerId] NodeExecutionEvent producerId + * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionEvent phase + * @property {google.protobuf.ITimestamp|null} [occurredAt] NodeExecutionEvent occurredAt + * @property {string|null} [inputUri] NodeExecutionEvent inputUri + * @property {flyteidl.core.ILiteralMap|null} [inputData] NodeExecutionEvent inputData + * @property {string|null} [outputUri] NodeExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionEvent error + * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionEvent outputData + * @property {flyteidl.event.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionEvent workflowNodeMetadata + * @property {flyteidl.event.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionEvent taskNodeMetadata + * @property {flyteidl.event.IParentTaskExecutionMetadata|null} [parentTaskMetadata] NodeExecutionEvent parentTaskMetadata + * @property {flyteidl.event.IParentNodeExecutionMetadata|null} [parentNodeMetadata] NodeExecutionEvent parentNodeMetadata + * @property {string|null} [retryGroup] NodeExecutionEvent retryGroup + * @property {string|null} [specNodeId] NodeExecutionEvent specNodeId + * @property {string|null} [nodeName] NodeExecutionEvent nodeName + * @property {number|null} [eventVersion] NodeExecutionEvent eventVersion + * @property {boolean|null} [isParent] NodeExecutionEvent isParent + * @property {boolean|null} [isDynamic] NodeExecutionEvent isDynamic + * @property {string|null} [deckUri] NodeExecutionEvent deckUri + * @property {google.protobuf.ITimestamp|null} [reportedAt] NodeExecutionEvent reportedAt + * @property {boolean|null} [isArray] NodeExecutionEvent isArray + */ + + /** + * Constructs a new NodeExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a NodeExecutionEvent. + * @implements INodeExecutionEvent + * @constructor + * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set + */ + function NodeExecutionEvent(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionEvent id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.id = null; + + /** + * NodeExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.producerId = ""; + + /** + * NodeExecutionEvent phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.phase = 0; + + /** + * NodeExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.occurredAt = null; + + /** + * NodeExecutionEvent inputUri. + * @member {string} inputUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.inputUri = ""; + + /** + * NodeExecutionEvent inputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputData + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.inputData = null; + + /** + * NodeExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.outputUri = ""; + + /** + * NodeExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.error = null; + + /** + * NodeExecutionEvent outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.outputData = null; + + /** + * NodeExecutionEvent workflowNodeMetadata. + * @member {flyteidl.event.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.workflowNodeMetadata = null; + + /** + * NodeExecutionEvent taskNodeMetadata. + * @member {flyteidl.event.ITaskNodeMetadata|null|undefined} taskNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.taskNodeMetadata = null; + + /** + * NodeExecutionEvent parentTaskMetadata. + * @member {flyteidl.event.IParentTaskExecutionMetadata|null|undefined} parentTaskMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.parentTaskMetadata = null; + + /** + * NodeExecutionEvent parentNodeMetadata. + * @member {flyteidl.event.IParentNodeExecutionMetadata|null|undefined} parentNodeMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.parentNodeMetadata = null; + + /** + * NodeExecutionEvent retryGroup. + * @member {string} retryGroup + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.retryGroup = ""; + + /** + * NodeExecutionEvent specNodeId. + * @member {string} specNodeId + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.specNodeId = ""; + + /** + * NodeExecutionEvent nodeName. + * @member {string} nodeName + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.nodeName = ""; + + /** + * NodeExecutionEvent eventVersion. + * @member {number} eventVersion + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.eventVersion = 0; + + /** + * NodeExecutionEvent isParent. + * @member {boolean} isParent + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.isParent = false; + + /** + * NodeExecutionEvent isDynamic. + * @member {boolean} isDynamic + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.isDynamic = false; + + /** + * NodeExecutionEvent deckUri. + * @member {string} deckUri + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.deckUri = ""; + + /** + * NodeExecutionEvent reportedAt. + * @member {google.protobuf.ITimestamp|null|undefined} reportedAt + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.reportedAt = null; + + /** + * NodeExecutionEvent isArray. + * @member {boolean} isArray + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + NodeExecutionEvent.prototype.isArray = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeExecutionEvent inputValue. + * @member {"inputUri"|"inputData"|undefined} inputValue + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "inputValue", { + get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionEvent outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionEvent targetMetadata. + * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata + * @memberof flyteidl.event.NodeExecutionEvent + * @instance + */ + Object.defineProperty(NodeExecutionEvent.prototype, "targetMetadata", { + get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent instance + */ + NodeExecutionEvent.create = function create(properties) { + return new NodeExecutionEvent(properties); + }; + + /** + * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {flyteidl.event.INodeExecutionEvent} message NodeExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.inputUri); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) + $root.flyteidl.event.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) + $root.flyteidl.event.ParentTaskExecutionMetadata.encode(message.parentTaskMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) + $root.flyteidl.event.ParentNodeExecutionMetadata.encode(message.parentNodeMetadata, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.retryGroup); + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.specNodeId); + if (message.nodeName != null && message.hasOwnProperty("nodeName")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.nodeName); + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) + $root.flyteidl.event.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.eventVersion); + if (message.isParent != null && message.hasOwnProperty("isParent")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.isParent); + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDynamic); + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.deckUri); + if (message.inputData != null && message.hasOwnProperty("inputData")) + $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) + $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.isArray != null && message.hasOwnProperty("isArray")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.isArray); + return writer; + }; + + /** + * Decodes a NodeExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.NodeExecutionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.producerId = reader.string(); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.inputUri = reader.string(); + break; + case 20: + message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 6: + message.outputUri = reader.string(); + break; + case 7: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 15: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 8: + message.workflowNodeMetadata = $root.flyteidl.event.WorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 14: + message.taskNodeMetadata = $root.flyteidl.event.TaskNodeMetadata.decode(reader, reader.uint32()); + break; + case 9: + message.parentTaskMetadata = $root.flyteidl.event.ParentTaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 10: + message.parentNodeMetadata = $root.flyteidl.event.ParentNodeExecutionMetadata.decode(reader, reader.uint32()); + break; + case 11: + message.retryGroup = reader.string(); + break; + case 12: + message.specNodeId = reader.string(); + break; + case 13: + message.nodeName = reader.string(); + break; + case 16: + message.eventVersion = reader.int32(); + break; + case 17: + message.isParent = reader.bool(); + break; + case 18: + message.isDynamic = reader.bool(); + break; + case 19: + message.deckUri = reader.string(); + break; + case 21: + message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 22: + message.isArray = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEvent message. + * @function verify + * @memberof flyteidl.event.NodeExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) { + properties.inputValue = 1; + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + } + if (message.inputData != null && message.hasOwnProperty("inputData")) { + if (properties.inputValue === 1) + return "inputValue: multiple values"; + properties.inputValue = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); + if (error) + return "inputData." + error; + } + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { + properties.targetMetadata = 1; + { + var error = $root.flyteidl.event.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); + if (error) + return "workflowNodeMetadata." + error; + } + } + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { + if (properties.targetMetadata === 1) + return "targetMetadata: multiple values"; + properties.targetMetadata = 1; + { + var error = $root.flyteidl.event.TaskNodeMetadata.verify(message.taskNodeMetadata); + if (error) + return "taskNodeMetadata." + error; + } + } + if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) { + var error = $root.flyteidl.event.ParentTaskExecutionMetadata.verify(message.parentTaskMetadata); + if (error) + return "parentTaskMetadata." + error; + } + if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) { + var error = $root.flyteidl.event.ParentNodeExecutionMetadata.verify(message.parentNodeMetadata); + if (error) + return "parentNodeMetadata." + error; + } + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + if (!$util.isString(message.retryGroup)) + return "retryGroup: string expected"; + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + if (!$util.isString(message.specNodeId)) + return "specNodeId: string expected"; + if (message.nodeName != null && message.hasOwnProperty("nodeName")) + if (!$util.isString(message.nodeName)) + return "nodeName: string expected"; + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + if (!$util.isInteger(message.eventVersion)) + return "eventVersion: integer expected"; + if (message.isParent != null && message.hasOwnProperty("isParent")) + if (typeof message.isParent !== "boolean") + return "isParent: boolean expected"; + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + if (typeof message.isDynamic !== "boolean") + return "isDynamic: boolean expected"; + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + if (!$util.isString(message.deckUri)) + return "deckUri: string expected"; + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); + if (error) + return "reportedAt." + error; + } + if (message.isArray != null && message.hasOwnProperty("isArray")) + if (typeof message.isArray !== "boolean") + return "isArray: boolean expected"; + return null; + }; + + return NodeExecutionEvent; + })(); + + event.WorkflowNodeMetadata = (function() { + + /** + * Properties of a WorkflowNodeMetadata. + * @memberof flyteidl.event + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + */ + + /** + * Constructs a new WorkflowNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata + * @constructor + * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set + */ + function WorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.event.WorkflowNodeMetadata + * @instance + */ + WorkflowNodeMetadata.prototype.executionId = null; + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata instance + */ + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {flyteidl.event.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.event.WorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return WorkflowNodeMetadata; + })(); + + event.TaskNodeMetadata = (function() { + + /** + * Properties of a TaskNodeMetadata. + * @memberof flyteidl.event + * @interface ITaskNodeMetadata + * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus + * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey + * @property {flyteidl.core.CatalogReservation.Status|null} [reservationStatus] TaskNodeMetadata reservationStatus + * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri + * @property {flyteidl.event.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] TaskNodeMetadata dynamicWorkflow + */ + + /** + * Constructs a new TaskNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a TaskNodeMetadata. + * @implements ITaskNodeMetadata + * @constructor + * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set + */ + function TaskNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNodeMetadata cacheStatus. + * @member {flyteidl.core.CatalogCacheStatus} cacheStatus + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.cacheStatus = 0; + + /** + * TaskNodeMetadata catalogKey. + * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.catalogKey = null; + + /** + * TaskNodeMetadata reservationStatus. + * @member {flyteidl.core.CatalogReservation.Status} reservationStatus + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.reservationStatus = 0; + + /** + * TaskNodeMetadata checkpointUri. + * @member {string} checkpointUri + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.checkpointUri = ""; + + /** + * TaskNodeMetadata dynamicWorkflow. + * @member {flyteidl.event.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow + * @memberof flyteidl.event.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.dynamicWorkflow = null; + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata instance + */ + TaskNodeMetadata.create = function create(properties) { + return new TaskNodeMetadata(properties); + }; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {flyteidl.event.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) + $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.reservationStatus); + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) + $root.flyteidl.event.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cacheStatus = reader.int32(); + break; + case 2: + message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.reservationStatus = reader.int32(); + break; + case 4: + message.checkpointUri = reader.string(); + break; + case 16: + message.dynamicWorkflow = $root.flyteidl.event.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNodeMetadata message. + * @function verify + * @memberof flyteidl.event.TaskNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + switch (message.cacheStatus) { + default: + return "cacheStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { + var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); + if (error) + return "catalogKey." + error; + } + if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) + switch (message.reservationStatus) { + default: + return "reservationStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + if (!$util.isString(message.checkpointUri)) + return "checkpointUri: string expected"; + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { + var error = $root.flyteidl.event.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); + if (error) + return "dynamicWorkflow." + error; + } + return null; + }; + + return TaskNodeMetadata; + })(); + + event.DynamicWorkflowNodeMetadata = (function() { + + /** + * Properties of a DynamicWorkflowNodeMetadata. + * @memberof flyteidl.event + * @interface IDynamicWorkflowNodeMetadata + * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow + * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri + */ + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @memberof flyteidl.event + * @classdesc Represents a DynamicWorkflowNodeMetadata. + * @implements IDynamicWorkflowNodeMetadata + * @constructor + * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + */ + function DynamicWorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicWorkflowNodeMetadata id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.id = null; + + /** + * DynamicWorkflowNodeMetadata compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; + + /** + * DynamicWorkflowNodeMetadata dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance + */ + DynamicWorkflowNodeMetadata.create = function create(properties) { + return new DynamicWorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.event.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); + return writer; + }; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.DynamicWorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 3: + message.dynamicJobSpecUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.event.DynamicWorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicWorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + if (!$util.isString(message.dynamicJobSpecUri)) + return "dynamicJobSpecUri: string expected"; + return null; + }; + + return DynamicWorkflowNodeMetadata; + })(); + + event.ParentTaskExecutionMetadata = (function() { + + /** + * Properties of a ParentTaskExecutionMetadata. + * @memberof flyteidl.event + * @interface IParentTaskExecutionMetadata + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] ParentTaskExecutionMetadata id + */ + + /** + * Constructs a new ParentTaskExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a ParentTaskExecutionMetadata. + * @implements IParentTaskExecutionMetadata + * @constructor + * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set + */ + function ParentTaskExecutionMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParentTaskExecutionMetadata id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @instance + */ + ParentTaskExecutionMetadata.prototype.id = null; + + /** + * Creates a new ParentTaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata instance + */ + ParentTaskExecutionMetadata.create = function create(properties) { + return new ParentTaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {flyteidl.event.IParentTaskExecutionMetadata} message ParentTaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParentTaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParentTaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentTaskExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParentTaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.ParentTaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParentTaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ParentTaskExecutionMetadata; + })(); + + event.ParentNodeExecutionMetadata = (function() { + + /** + * Properties of a ParentNodeExecutionMetadata. + * @memberof flyteidl.event + * @interface IParentNodeExecutionMetadata + * @property {string|null} [nodeId] ParentNodeExecutionMetadata nodeId + */ + + /** + * Constructs a new ParentNodeExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a ParentNodeExecutionMetadata. + * @implements IParentNodeExecutionMetadata + * @constructor + * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set + */ + function ParentNodeExecutionMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ParentNodeExecutionMetadata nodeId. + * @member {string} nodeId + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @instance + */ + ParentNodeExecutionMetadata.prototype.nodeId = ""; + + /** + * Creates a new ParentNodeExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata instance + */ + ParentNodeExecutionMetadata.create = function create(properties) { + return new ParentNodeExecutionMetadata(properties); + }; + + /** + * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {flyteidl.event.IParentNodeExecutionMetadata} message ParentNodeExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ParentNodeExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); + return writer; + }; + + /** + * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ParentNodeExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentNodeExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ParentNodeExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.ParentNodeExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ParentNodeExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeId != null && message.hasOwnProperty("nodeId")) + if (!$util.isString(message.nodeId)) + return "nodeId: string expected"; + return null; + }; + + return ParentNodeExecutionMetadata; + })(); + + event.EventReason = (function() { + + /** + * Properties of an EventReason. + * @memberof flyteidl.event + * @interface IEventReason + * @property {string|null} [reason] EventReason reason + * @property {google.protobuf.ITimestamp|null} [occurredAt] EventReason occurredAt + */ + + /** + * Constructs a new EventReason. + * @memberof flyteidl.event + * @classdesc Represents an EventReason. + * @implements IEventReason + * @constructor + * @param {flyteidl.event.IEventReason=} [properties] Properties to set + */ + function EventReason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventReason reason. + * @member {string} reason + * @memberof flyteidl.event.EventReason + * @instance + */ + EventReason.prototype.reason = ""; + + /** + * EventReason occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.EventReason + * @instance + */ + EventReason.prototype.occurredAt = null; + + /** + * Creates a new EventReason instance using the specified properties. + * @function create + * @memberof flyteidl.event.EventReason + * @static + * @param {flyteidl.event.IEventReason=} [properties] Properties to set + * @returns {flyteidl.event.EventReason} EventReason instance + */ + EventReason.create = function create(properties) { + return new EventReason(properties); + }; + + /** + * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.EventReason + * @static + * @param {flyteidl.event.IEventReason} message EventReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.reason != null && message.hasOwnProperty("reason")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EventReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.EventReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.EventReason} EventReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.EventReason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.reason = reader.string(); + break; + case 2: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventReason message. + * @function verify + * @memberof flyteidl.event.EventReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + return null; + }; + + return EventReason; + })(); + + event.TaskExecutionEvent = (function() { + + /** + * Properties of a TaskExecutionEvent. + * @memberof flyteidl.event + * @interface ITaskExecutionEvent + * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionEvent taskId + * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecutionId] TaskExecutionEvent parentNodeExecutionId + * @property {number|null} [retryAttempt] TaskExecutionEvent retryAttempt + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionEvent phase + * @property {string|null} [producerId] TaskExecutionEvent producerId + * @property {Array.|null} [logs] TaskExecutionEvent logs + * @property {google.protobuf.ITimestamp|null} [occurredAt] TaskExecutionEvent occurredAt + * @property {string|null} [inputUri] TaskExecutionEvent inputUri + * @property {flyteidl.core.ILiteralMap|null} [inputData] TaskExecutionEvent inputData + * @property {string|null} [outputUri] TaskExecutionEvent outputUri + * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionEvent error + * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionEvent outputData + * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo + * @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion + * @property {string|null} [reason] TaskExecutionEvent reason + * @property {Array.|null} [reasons] TaskExecutionEvent reasons + * @property {string|null} [taskType] TaskExecutionEvent taskType + * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionEvent metadata + * @property {number|null} [eventVersion] TaskExecutionEvent eventVersion + * @property {google.protobuf.ITimestamp|null} [reportedAt] TaskExecutionEvent reportedAt + */ + + /** + * Constructs a new TaskExecutionEvent. + * @memberof flyteidl.event + * @classdesc Represents a TaskExecutionEvent. + * @implements ITaskExecutionEvent + * @constructor + * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set + */ + function TaskExecutionEvent(properties) { + this.logs = []; + this.reasons = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionEvent taskId. + * @member {flyteidl.core.IIdentifier|null|undefined} taskId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.taskId = null; + + /** + * TaskExecutionEvent parentNodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecutionId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.parentNodeExecutionId = null; + + /** + * TaskExecutionEvent retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.retryAttempt = 0; + + /** + * TaskExecutionEvent phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.phase = 0; + + /** + * TaskExecutionEvent producerId. + * @member {string} producerId + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.producerId = ""; + + /** + * TaskExecutionEvent logs. + * @member {Array.} logs + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.logs = $util.emptyArray; + + /** + * TaskExecutionEvent occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.occurredAt = null; + + /** + * TaskExecutionEvent inputUri. + * @member {string} inputUri + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.inputUri = ""; + + /** + * TaskExecutionEvent inputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputData + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.inputData = null; + + /** + * TaskExecutionEvent outputUri. + * @member {string} outputUri + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.outputUri = ""; + + /** + * TaskExecutionEvent error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.error = null; + + /** + * TaskExecutionEvent outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.outputData = null; + + /** + * TaskExecutionEvent customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.customInfo = null; + + /** + * TaskExecutionEvent phaseVersion. + * @member {number} phaseVersion + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.phaseVersion = 0; + + /** + * TaskExecutionEvent reason. + * @member {string} reason + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.reason = ""; + + /** + * TaskExecutionEvent reasons. + * @member {Array.} reasons + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.reasons = $util.emptyArray; + + /** + * TaskExecutionEvent taskType. + * @member {string} taskType + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.taskType = ""; + + /** + * TaskExecutionEvent metadata. + * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.metadata = null; + + /** + * TaskExecutionEvent eventVersion. + * @member {number} eventVersion + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.eventVersion = 0; + + /** + * TaskExecutionEvent reportedAt. + * @member {google.protobuf.ITimestamp|null|undefined} reportedAt + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + TaskExecutionEvent.prototype.reportedAt = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskExecutionEvent inputValue. + * @member {"inputUri"|"inputData"|undefined} inputValue + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + Object.defineProperty(TaskExecutionEvent.prototype, "inputValue", { + get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * TaskExecutionEvent outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.event.TaskExecutionEvent + * @instance + */ + Object.defineProperty(TaskExecutionEvent.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskExecutionEvent instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set + * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent instance + */ + TaskExecutionEvent.create = function create(properties) { + return new TaskExecutionEvent(properties); + }; + + /** + * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {flyteidl.event.ITaskExecutionEvent} message TaskExecutionEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskId != null && message.hasOwnProperty("taskId")) + $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.producerId != null && message.hasOwnProperty("producerId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.producerId); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.inputUri); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) + writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.phaseVersion); + if (message.reason != null && message.hasOwnProperty("reason")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.reason); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.taskType); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.eventVersion); + if (message.inputData != null && message.hasOwnProperty("inputData")) + $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) + $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.reasons != null && message.reasons.length) + for (var i = 0; i < message.reasons.length; ++i) + $root.flyteidl.event.EventReason.encode(message.reasons[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionEvent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEvent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.parentNodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.producerId = reader.string(); + break; + case 6: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 7: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.inputUri = reader.string(); + break; + case 19: + message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 9: + message.outputUri = reader.string(); + break; + case 10: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 17: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 11: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 12: + message.phaseVersion = reader.uint32(); + break; + case 13: + message.reason = reader.string(); + break; + case 21: + if (!(message.reasons && message.reasons.length)) + message.reasons = []; + message.reasons.push($root.flyteidl.event.EventReason.decode(reader, reader.uint32())); + break; + case 14: + message.taskType = reader.string(); + break; + case 16: + message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 18: + message.eventVersion = reader.int32(); + break; + case 20: + message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEvent message. + * @function verify + * @memberof flyteidl.event.TaskExecutionEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.taskId != null && message.hasOwnProperty("taskId")) { + var error = $root.flyteidl.core.Identifier.verify(message.taskId); + if (error) + return "taskId." + error; + } + if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecutionId); + if (error) + return "parentNodeExecutionId." + error; + } + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.producerId != null && message.hasOwnProperty("producerId")) + if (!$util.isString(message.producerId)) + return "producerId: string expected"; + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) { + properties.inputValue = 1; + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + } + if (message.inputData != null && message.hasOwnProperty("inputData")) { + if (properties.inputValue === 1) + return "inputValue: multiple values"; + properties.inputValue = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); + if (error) + return "inputData." + error; + } + } + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + var error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) + if (!$util.isInteger(message.phaseVersion)) + return "phaseVersion: integer expected"; + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.reasons != null && message.hasOwnProperty("reasons")) { + if (!Array.isArray(message.reasons)) + return "reasons: array expected"; + for (var i = 0; i < message.reasons.length; ++i) { + var error = $root.flyteidl.event.EventReason.verify(message.reasons[i]); + if (error) + return "reasons." + error; + } + } + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + if (!$util.isInteger(message.eventVersion)) + return "eventVersion: integer expected"; + if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); + if (error) + return "reportedAt." + error; + } + return null; + }; + + return TaskExecutionEvent; + })(); + + event.ExternalResourceInfo = (function() { + + /** + * Properties of an ExternalResourceInfo. + * @memberof flyteidl.event + * @interface IExternalResourceInfo + * @property {string|null} [externalId] ExternalResourceInfo externalId + * @property {number|null} [index] ExternalResourceInfo index + * @property {number|null} [retryAttempt] ExternalResourceInfo retryAttempt + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] ExternalResourceInfo phase + * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] ExternalResourceInfo cacheStatus + * @property {Array.|null} [logs] ExternalResourceInfo logs + */ + + /** + * Constructs a new ExternalResourceInfo. + * @memberof flyteidl.event + * @classdesc Represents an ExternalResourceInfo. + * @implements IExternalResourceInfo + * @constructor + * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set + */ + function ExternalResourceInfo(properties) { + this.logs = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExternalResourceInfo externalId. + * @member {string} externalId + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.externalId = ""; + + /** + * ExternalResourceInfo index. + * @member {number} index + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.index = 0; + + /** + * ExternalResourceInfo retryAttempt. + * @member {number} retryAttempt + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.retryAttempt = 0; + + /** + * ExternalResourceInfo phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.phase = 0; + + /** + * ExternalResourceInfo cacheStatus. + * @member {flyteidl.core.CatalogCacheStatus} cacheStatus + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.cacheStatus = 0; + + /** + * ExternalResourceInfo logs. + * @member {Array.} logs + * @memberof flyteidl.event.ExternalResourceInfo + * @instance + */ + ExternalResourceInfo.prototype.logs = $util.emptyArray; + + /** + * Creates a new ExternalResourceInfo instance using the specified properties. + * @function create + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set + * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo instance + */ + ExternalResourceInfo.create = function create(properties) { + return new ExternalResourceInfo(properties); + }; + + /** + * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {flyteidl.event.IExternalResourceInfo} message ExternalResourceInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExternalResourceInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.externalId != null && message.hasOwnProperty("externalId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.externalId); + if (message.index != null && message.hasOwnProperty("index")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.index); + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.cacheStatus); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExternalResourceInfo message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExternalResourceInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ExternalResourceInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.externalId = reader.string(); + break; + case 2: + message.index = reader.uint32(); + break; + case 3: + message.retryAttempt = reader.uint32(); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.cacheStatus = reader.int32(); + break; + case 6: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExternalResourceInfo message. + * @function verify + * @memberof flyteidl.event.ExternalResourceInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExternalResourceInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.externalId != null && message.hasOwnProperty("externalId")) + if (!$util.isString(message.externalId)) + return "externalId: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isInteger(message.index)) + return "index: integer expected"; + if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) + if (!$util.isInteger(message.retryAttempt)) + return "retryAttempt: integer expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + switch (message.cacheStatus) { + default: + return "cacheStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + return null; + }; + + return ExternalResourceInfo; + })(); + + event.ResourcePoolInfo = (function() { + + /** + * Properties of a ResourcePoolInfo. + * @memberof flyteidl.event + * @interface IResourcePoolInfo + * @property {string|null} [allocationToken] ResourcePoolInfo allocationToken + * @property {string|null} [namespace] ResourcePoolInfo namespace + */ + + /** + * Constructs a new ResourcePoolInfo. + * @memberof flyteidl.event + * @classdesc Represents a ResourcePoolInfo. + * @implements IResourcePoolInfo + * @constructor + * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set + */ + function ResourcePoolInfo(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourcePoolInfo allocationToken. + * @member {string} allocationToken + * @memberof flyteidl.event.ResourcePoolInfo + * @instance + */ + ResourcePoolInfo.prototype.allocationToken = ""; + + /** + * ResourcePoolInfo namespace. + * @member {string} namespace + * @memberof flyteidl.event.ResourcePoolInfo + * @instance + */ + ResourcePoolInfo.prototype.namespace = ""; + + /** + * Creates a new ResourcePoolInfo instance using the specified properties. + * @function create + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set + * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo instance + */ + ResourcePoolInfo.create = function create(properties) { + return new ResourcePoolInfo(properties); + }; + + /** + * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {flyteidl.event.IResourcePoolInfo} message ResourcePoolInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourcePoolInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.allocationToken); + if (message.namespace != null && message.hasOwnProperty("namespace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); + return writer; + }; + + /** + * Decodes a ResourcePoolInfo message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourcePoolInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ResourcePoolInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.allocationToken = reader.string(); + break; + case 2: + message.namespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourcePoolInfo message. + * @function verify + * @memberof flyteidl.event.ResourcePoolInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourcePoolInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) + if (!$util.isString(message.allocationToken)) + return "allocationToken: string expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + return null; + }; + + return ResourcePoolInfo; + })(); + + event.TaskExecutionMetadata = (function() { + + /** + * Properties of a TaskExecutionMetadata. + * @memberof flyteidl.event + * @interface ITaskExecutionMetadata + * @property {string|null} [generatedName] TaskExecutionMetadata generatedName + * @property {Array.|null} [externalResources] TaskExecutionMetadata externalResources + * @property {Array.|null} [resourcePoolInfo] TaskExecutionMetadata resourcePoolInfo + * @property {string|null} [pluginIdentifier] TaskExecutionMetadata pluginIdentifier + * @property {flyteidl.event.TaskExecutionMetadata.InstanceClass|null} [instanceClass] TaskExecutionMetadata instanceClass + */ + + /** + * Constructs a new TaskExecutionMetadata. + * @memberof flyteidl.event + * @classdesc Represents a TaskExecutionMetadata. + * @implements ITaskExecutionMetadata + * @constructor + * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set + */ + function TaskExecutionMetadata(properties) { + this.externalResources = []; + this.resourcePoolInfo = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionMetadata generatedName. + * @member {string} generatedName + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.generatedName = ""; + + /** + * TaskExecutionMetadata externalResources. + * @member {Array.} externalResources + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.externalResources = $util.emptyArray; + + /** + * TaskExecutionMetadata resourcePoolInfo. + * @member {Array.} resourcePoolInfo + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.resourcePoolInfo = $util.emptyArray; + + /** + * TaskExecutionMetadata pluginIdentifier. + * @member {string} pluginIdentifier + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.pluginIdentifier = ""; + + /** + * TaskExecutionMetadata instanceClass. + * @member {flyteidl.event.TaskExecutionMetadata.InstanceClass} instanceClass + * @memberof flyteidl.event.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.instanceClass = 0; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata instance + */ + TaskExecutionMetadata.create = function create(properties) { + return new TaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {flyteidl.event.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.generatedName != null && message.hasOwnProperty("generatedName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.generatedName); + if (message.externalResources != null && message.externalResources.length) + for (var i = 0; i < message.externalResources.length; ++i) + $root.flyteidl.event.ExternalResourceInfo.encode(message.externalResources[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resourcePoolInfo != null && message.resourcePoolInfo.length) + for (var i = 0; i < message.resourcePoolInfo.length; ++i) + $root.flyteidl.event.ResourcePoolInfo.encode(message.resourcePoolInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pluginIdentifier); + if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.instanceClass); + return writer; + }; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.generatedName = reader.string(); + break; + case 2: + if (!(message.externalResources && message.externalResources.length)) + message.externalResources = []; + message.externalResources.push($root.flyteidl.event.ExternalResourceInfo.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.resourcePoolInfo && message.resourcePoolInfo.length)) + message.resourcePoolInfo = []; + message.resourcePoolInfo.push($root.flyteidl.event.ResourcePoolInfo.decode(reader, reader.uint32())); + break; + case 4: + message.pluginIdentifier = reader.string(); + break; + case 16: + message.instanceClass = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.event.TaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.generatedName != null && message.hasOwnProperty("generatedName")) + if (!$util.isString(message.generatedName)) + return "generatedName: string expected"; + if (message.externalResources != null && message.hasOwnProperty("externalResources")) { + if (!Array.isArray(message.externalResources)) + return "externalResources: array expected"; + for (var i = 0; i < message.externalResources.length; ++i) { + var error = $root.flyteidl.event.ExternalResourceInfo.verify(message.externalResources[i]); + if (error) + return "externalResources." + error; + } + } + if (message.resourcePoolInfo != null && message.hasOwnProperty("resourcePoolInfo")) { + if (!Array.isArray(message.resourcePoolInfo)) + return "resourcePoolInfo: array expected"; + for (var i = 0; i < message.resourcePoolInfo.length; ++i) { + var error = $root.flyteidl.event.ResourcePoolInfo.verify(message.resourcePoolInfo[i]); + if (error) + return "resourcePoolInfo." + error; + } + } + if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) + if (!$util.isString(message.pluginIdentifier)) + return "pluginIdentifier: string expected"; + if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) + switch (message.instanceClass) { + default: + return "instanceClass: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * InstanceClass enum. + * @name flyteidl.event.TaskExecutionMetadata.InstanceClass + * @enum {string} + * @property {number} DEFAULT=0 DEFAULT value + * @property {number} INTERRUPTIBLE=1 INTERRUPTIBLE value + */ + TaskExecutionMetadata.InstanceClass = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEFAULT"] = 0; + values[valuesById[1] = "INTERRUPTIBLE"] = 1; + return values; + })(); + + return TaskExecutionMetadata; + })(); + + return event; + })(); + + flyteidl.admin = (function() { + + /** + * Namespace admin. + * @memberof flyteidl + * @namespace + */ + var admin = {}; + + /** + * State enum. + * @name flyteidl.admin.State + * @enum {string} + * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value + * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value + * @property {number} PENDING=2 PENDING value + * @property {number} RUNNING=3 RUNNING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + */ + admin.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; + values[valuesById[1] = "PERMANENT_FAILURE"] = 1; + values[valuesById[2] = "PENDING"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + return values; + })(); + + admin.TaskExecutionMetadata = (function() { + + /** + * Properties of a TaskExecutionMetadata. + * @memberof flyteidl.admin + * @interface ITaskExecutionMetadata + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] TaskExecutionMetadata taskExecutionId + * @property {string|null} [namespace] TaskExecutionMetadata namespace + * @property {Object.|null} [labels] TaskExecutionMetadata labels + * @property {Object.|null} [annotations] TaskExecutionMetadata annotations + * @property {string|null} [k8sServiceAccount] TaskExecutionMetadata k8sServiceAccount + * @property {Object.|null} [environmentVariables] TaskExecutionMetadata environmentVariables + * @property {number|null} [maxAttempts] TaskExecutionMetadata maxAttempts + * @property {boolean|null} [interruptible] TaskExecutionMetadata interruptible + * @property {number|null} [interruptibleFailureThreshold] TaskExecutionMetadata interruptibleFailureThreshold + * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskExecutionMetadata overrides + */ + + /** + * Constructs a new TaskExecutionMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionMetadata. + * @implements ITaskExecutionMetadata + * @constructor + * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set + */ + function TaskExecutionMetadata(properties) { + this.labels = {}; + this.annotations = {}; + this.environmentVariables = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionMetadata taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.taskExecutionId = null; + + /** + * TaskExecutionMetadata namespace. + * @member {string} namespace + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.namespace = ""; + + /** + * TaskExecutionMetadata labels. + * @member {Object.} labels + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.labels = $util.emptyObject; + + /** + * TaskExecutionMetadata annotations. + * @member {Object.} annotations + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.annotations = $util.emptyObject; + + /** + * TaskExecutionMetadata k8sServiceAccount. + * @member {string} k8sServiceAccount + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.k8sServiceAccount = ""; + + /** + * TaskExecutionMetadata environmentVariables. + * @member {Object.} environmentVariables + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.environmentVariables = $util.emptyObject; + + /** + * TaskExecutionMetadata maxAttempts. + * @member {number} maxAttempts + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.maxAttempts = 0; + + /** + * TaskExecutionMetadata interruptible. + * @member {boolean} interruptible + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.interruptible = false; + + /** + * TaskExecutionMetadata interruptibleFailureThreshold. + * @member {number} interruptibleFailureThreshold + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.interruptibleFailureThreshold = 0; + + /** + * TaskExecutionMetadata overrides. + * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides + * @memberof flyteidl.admin.TaskExecutionMetadata + * @instance + */ + TaskExecutionMetadata.prototype.overrides = null; + + /** + * Creates a new TaskExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata instance + */ + TaskExecutionMetadata.create = function create(properties) { + return new TaskExecutionMetadata(properties); + }; + + /** + * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {flyteidl.admin.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.namespace != null && message.hasOwnProperty("namespace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); + if (message.labels != null && message.hasOwnProperty("labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.k8sServiceAccount); + if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) + for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim(); + if (message.maxAttempts != null && message.hasOwnProperty("maxAttempts")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxAttempts); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); + if (message.interruptibleFailureThreshold != null && message.hasOwnProperty("interruptibleFailureThreshold")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.interruptibleFailureThreshold); + if (message.overrides != null && message.hasOwnProperty("overrides")) + $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionMetadata(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.namespace = reader.string(); + break; + case 3: + reader.skip().pos++; + if (message.labels === $util.emptyObject) + message.labels = {}; + key = reader.string(); + reader.pos++; + message.labels[key] = reader.string(); + break; + case 4: + reader.skip().pos++; + if (message.annotations === $util.emptyObject) + message.annotations = {}; + key = reader.string(); + reader.pos++; + message.annotations[key] = reader.string(); + break; + case 5: + message.k8sServiceAccount = reader.string(); + break; + case 6: + reader.skip().pos++; + if (message.environmentVariables === $util.emptyObject) + message.environmentVariables = {}; + key = reader.string(); + reader.pos++; + message.environmentVariables[key] = reader.string(); + break; + case 7: + message.maxAttempts = reader.int32(); + break; + case 8: + message.interruptible = reader.bool(); + break; + case 9: + message.interruptibleFailureThreshold = reader.int32(); + break; + case 10: + message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionMetadata message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); + if (error) + return "taskExecutionId." + error; + } + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!$util.isObject(message.annotations)) + return "annotations: object expected"; + var key = Object.keys(message.annotations); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotations[key[i]])) + return "annotations: string{k:string} expected"; + } + if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) + if (!$util.isString(message.k8sServiceAccount)) + return "k8sServiceAccount: string expected"; + if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) { + if (!$util.isObject(message.environmentVariables)) + return "environmentVariables: object expected"; + var key = Object.keys(message.environmentVariables); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.environmentVariables[key[i]])) + return "environmentVariables: string{k:string} expected"; + } + if (message.maxAttempts != null && message.hasOwnProperty("maxAttempts")) + if (!$util.isInteger(message.maxAttempts)) + return "maxAttempts: integer expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + if (typeof message.interruptible !== "boolean") + return "interruptible: boolean expected"; + if (message.interruptibleFailureThreshold != null && message.hasOwnProperty("interruptibleFailureThreshold")) + if (!$util.isInteger(message.interruptibleFailureThreshold)) + return "interruptibleFailureThreshold: integer expected"; + if (message.overrides != null && message.hasOwnProperty("overrides")) { + var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); + if (error) + return "overrides." + error; + } + return null; + }; + + return TaskExecutionMetadata; + })(); + + admin.CreateTaskRequest = (function() { + + /** + * Properties of a CreateTaskRequest. + * @memberof flyteidl.admin + * @interface ICreateTaskRequest + * @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs + * @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template + * @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix + * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateTaskRequest taskExecutionMetadata + */ + + /** + * Constructs a new CreateTaskRequest. + * @memberof flyteidl.admin + * @classdesc Represents a CreateTaskRequest. + * @implements ICreateTaskRequest + * @constructor + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set + */ + function CreateTaskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTaskRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.inputs = null; + + /** + * CreateTaskRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.template = null; + + /** + * CreateTaskRequest outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.outputPrefix = ""; + + /** + * CreateTaskRequest taskExecutionMetadata. + * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata + * @memberof flyteidl.admin.CreateTaskRequest + * @instance + */ + CreateTaskRequest.prototype.taskExecutionMetadata = null; + + /** + * Creates a new CreateTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance + */ + CreateTaskRequest.create = function create(properties) { + return new CreateTaskRequest(properties); + }; + + /** + * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) + $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); + break; + case 4: + message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateTaskRequest message. + * @function verify + * @memberof flyteidl.admin.CreateTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { + var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); + if (error) + return "taskExecutionMetadata." + error; + } + return null; + }; + + return CreateTaskRequest; + })(); + + admin.CreateTaskResponse = (function() { + + /** + * Properties of a CreateTaskResponse. + * @memberof flyteidl.admin + * @interface ICreateTaskResponse + * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta + */ + + /** + * Constructs a new CreateTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a CreateTaskResponse. + * @implements ICreateTaskResponse + * @constructor + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + */ + function CreateTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateTaskResponse resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.CreateTaskResponse + * @instance + */ + CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); + + /** + * Creates a new CreateTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance + */ + CreateTaskResponse.create = function create(properties) { + return new CreateTaskResponse(properties); + }; + + /** + * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); + return writer; + }; + + /** + * Decodes a CreateTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceMeta = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateTaskResponse message. + * @function verify + * @memberof flyteidl.admin.CreateTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + return null; + }; + + return CreateTaskResponse; + })(); + + admin.CreateRequestHeader = (function() { + + /** + * Properties of a CreateRequestHeader. + * @memberof flyteidl.admin + * @interface ICreateRequestHeader + * @property {flyteidl.core.ITaskTemplate|null} [template] CreateRequestHeader template + * @property {string|null} [outputPrefix] CreateRequestHeader outputPrefix + * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateRequestHeader taskExecutionMetadata + * @property {Long|null} [maxDatasetSizeBytes] CreateRequestHeader maxDatasetSizeBytes + */ + + /** + * Constructs a new CreateRequestHeader. + * @memberof flyteidl.admin + * @classdesc Represents a CreateRequestHeader. + * @implements ICreateRequestHeader + * @constructor + * @param {flyteidl.admin.ICreateRequestHeader=} [properties] Properties to set + */ + function CreateRequestHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateRequestHeader template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.template = null; + + /** + * CreateRequestHeader outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.outputPrefix = ""; + + /** + * CreateRequestHeader taskExecutionMetadata. + * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.taskExecutionMetadata = null; + + /** + * CreateRequestHeader maxDatasetSizeBytes. + * @member {Long} maxDatasetSizeBytes + * @memberof flyteidl.admin.CreateRequestHeader + * @instance + */ + CreateRequestHeader.prototype.maxDatasetSizeBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CreateRequestHeader instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {flyteidl.admin.ICreateRequestHeader=} [properties] Properties to set + * @returns {flyteidl.admin.CreateRequestHeader} CreateRequestHeader instance + */ + CreateRequestHeader.create = function create(properties) { + return new CreateRequestHeader(properties); + }; + + /** + * Encodes the specified CreateRequestHeader message. Does not implicitly {@link flyteidl.admin.CreateRequestHeader.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {flyteidl.admin.ICreateRequestHeader} message CreateRequestHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateRequestHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputPrefix); + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) + $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maxDatasetSizeBytes != null && message.hasOwnProperty("maxDatasetSizeBytes")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.maxDatasetSizeBytes); + return writer; + }; + + /** + * Decodes a CreateRequestHeader message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateRequestHeader} CreateRequestHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateRequestHeader.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateRequestHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.outputPrefix = reader.string(); + break; + case 3: + message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.maxDatasetSizeBytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateRequestHeader message. + * @function verify + * @memberof flyteidl.admin.CreateRequestHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateRequestHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { + var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); + if (error) + return "taskExecutionMetadata." + error; + } + if (message.maxDatasetSizeBytes != null && message.hasOwnProperty("maxDatasetSizeBytes")) + if (!$util.isInteger(message.maxDatasetSizeBytes) && !(message.maxDatasetSizeBytes && $util.isInteger(message.maxDatasetSizeBytes.low) && $util.isInteger(message.maxDatasetSizeBytes.high))) + return "maxDatasetSizeBytes: integer|Long expected"; + return null; + }; + + return CreateRequestHeader; + })(); + + admin.ExecuteTaskSyncRequest = (function() { + + /** + * Properties of an ExecuteTaskSyncRequest. + * @memberof flyteidl.admin + * @interface IExecuteTaskSyncRequest + * @property {flyteidl.admin.ICreateRequestHeader|null} [header] ExecuteTaskSyncRequest header + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecuteTaskSyncRequest inputs + */ + + /** + * Constructs a new ExecuteTaskSyncRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecuteTaskSyncRequest. + * @implements IExecuteTaskSyncRequest + * @constructor + * @param {flyteidl.admin.IExecuteTaskSyncRequest=} [properties] Properties to set + */ + function ExecuteTaskSyncRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteTaskSyncRequest header. + * @member {flyteidl.admin.ICreateRequestHeader|null|undefined} header + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @instance + */ + ExecuteTaskSyncRequest.prototype.header = null; + + /** + * ExecuteTaskSyncRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @instance + */ + ExecuteTaskSyncRequest.prototype.inputs = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecuteTaskSyncRequest part. + * @member {"header"|"inputs"|undefined} part + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @instance + */ + Object.defineProperty(ExecuteTaskSyncRequest.prototype, "part", { + get: $util.oneOfGetter($oneOfFields = ["header", "inputs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecuteTaskSyncRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {flyteidl.admin.IExecuteTaskSyncRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecuteTaskSyncRequest} ExecuteTaskSyncRequest instance + */ + ExecuteTaskSyncRequest.create = function create(properties) { + return new ExecuteTaskSyncRequest(properties); + }; + + /** + * Encodes the specified ExecuteTaskSyncRequest message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {flyteidl.admin.IExecuteTaskSyncRequest} message ExecuteTaskSyncRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteTaskSyncRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.header != null && message.hasOwnProperty("header")) + $root.flyteidl.admin.CreateRequestHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecuteTaskSyncRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecuteTaskSyncRequest} ExecuteTaskSyncRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteTaskSyncRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = $root.flyteidl.admin.CreateRequestHeader.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecuteTaskSyncRequest message. + * @function verify + * @memberof flyteidl.admin.ExecuteTaskSyncRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteTaskSyncRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.header != null && message.hasOwnProperty("header")) { + properties.part = 1; + { + var error = $root.flyteidl.admin.CreateRequestHeader.verify(message.header); + if (error) + return "header." + error; + } + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (properties.part === 1) + return "part: multiple values"; + properties.part = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + } + return null; + }; + + return ExecuteTaskSyncRequest; + })(); + + admin.ExecuteTaskSyncResponseHeader = (function() { + + /** + * Properties of an ExecuteTaskSyncResponseHeader. + * @memberof flyteidl.admin + * @interface IExecuteTaskSyncResponseHeader + * @property {flyteidl.admin.IResource|null} [resource] ExecuteTaskSyncResponseHeader resource + */ + + /** + * Constructs a new ExecuteTaskSyncResponseHeader. + * @memberof flyteidl.admin + * @classdesc Represents an ExecuteTaskSyncResponseHeader. + * @implements IExecuteTaskSyncResponseHeader + * @constructor + * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader=} [properties] Properties to set + */ + function ExecuteTaskSyncResponseHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteTaskSyncResponseHeader resource. + * @member {flyteidl.admin.IResource|null|undefined} resource + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader + * @instance + */ + ExecuteTaskSyncResponseHeader.prototype.resource = null; + + /** + * Creates a new ExecuteTaskSyncResponseHeader instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader + * @static + * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader=} [properties] Properties to set + * @returns {flyteidl.admin.ExecuteTaskSyncResponseHeader} ExecuteTaskSyncResponseHeader instance + */ + ExecuteTaskSyncResponseHeader.create = function create(properties) { + return new ExecuteTaskSyncResponseHeader(properties); + }; + + /** + * Encodes the specified ExecuteTaskSyncResponseHeader message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponseHeader.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader + * @static + * @param {flyteidl.admin.IExecuteTaskSyncResponseHeader} message ExecuteTaskSyncResponseHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteTaskSyncResponseHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && message.hasOwnProperty("resource")) + $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecuteTaskSyncResponseHeader message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecuteTaskSyncResponseHeader} ExecuteTaskSyncResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteTaskSyncResponseHeader.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncResponseHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecuteTaskSyncResponseHeader message. + * @function verify + * @memberof flyteidl.admin.ExecuteTaskSyncResponseHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteTaskSyncResponseHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) { + var error = $root.flyteidl.admin.Resource.verify(message.resource); + if (error) + return "resource." + error; + } + return null; + }; + + return ExecuteTaskSyncResponseHeader; + })(); + + admin.ExecuteTaskSyncResponse = (function() { + + /** + * Properties of an ExecuteTaskSyncResponse. + * @memberof flyteidl.admin + * @interface IExecuteTaskSyncResponse + * @property {flyteidl.admin.IExecuteTaskSyncResponseHeader|null} [header] ExecuteTaskSyncResponse header + * @property {flyteidl.core.ILiteralMap|null} [outputs] ExecuteTaskSyncResponse outputs + */ + + /** + * Constructs a new ExecuteTaskSyncResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecuteTaskSyncResponse. + * @implements IExecuteTaskSyncResponse + * @constructor + * @param {flyteidl.admin.IExecuteTaskSyncResponse=} [properties] Properties to set + */ + function ExecuteTaskSyncResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecuteTaskSyncResponse header. + * @member {flyteidl.admin.IExecuteTaskSyncResponseHeader|null|undefined} header + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @instance + */ + ExecuteTaskSyncResponse.prototype.header = null; + + /** + * ExecuteTaskSyncResponse outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @instance + */ + ExecuteTaskSyncResponse.prototype.outputs = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecuteTaskSyncResponse res. + * @member {"header"|"outputs"|undefined} res + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @instance + */ + Object.defineProperty(ExecuteTaskSyncResponse.prototype, "res", { + get: $util.oneOfGetter($oneOfFields = ["header", "outputs"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecuteTaskSyncResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @static + * @param {flyteidl.admin.IExecuteTaskSyncResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecuteTaskSyncResponse} ExecuteTaskSyncResponse instance + */ + ExecuteTaskSyncResponse.create = function create(properties) { + return new ExecuteTaskSyncResponse(properties); + }; + + /** + * Encodes the specified ExecuteTaskSyncResponse message. Does not implicitly {@link flyteidl.admin.ExecuteTaskSyncResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @static + * @param {flyteidl.admin.IExecuteTaskSyncResponse} message ExecuteTaskSyncResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecuteTaskSyncResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.header != null && message.hasOwnProperty("header")) + $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecuteTaskSyncResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecuteTaskSyncResponse} ExecuteTaskSyncResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecuteTaskSyncResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecuteTaskSyncResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecuteTaskSyncResponse message. + * @function verify + * @memberof flyteidl.admin.ExecuteTaskSyncResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecuteTaskSyncResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.header != null && message.hasOwnProperty("header")) { + properties.res = 1; + { + var error = $root.flyteidl.admin.ExecuteTaskSyncResponseHeader.verify(message.header); + if (error) + return "header." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (properties.res === 1) + return "res: multiple values"; + properties.res = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + } + return null; + }; + + return ExecuteTaskSyncResponse; + })(); + + admin.GetTaskRequest = (function() { + + /** + * Properties of a GetTaskRequest. + * @memberof flyteidl.admin + * @interface IGetTaskRequest + * @property {string|null} [deprecatedTaskType] GetTaskRequest deprecatedTaskType + * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskRequest taskType + */ + + /** + * Constructs a new GetTaskRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskRequest. + * @implements IGetTaskRequest + * @constructor + * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set + */ + function GetTaskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskRequest deprecatedTaskType. + * @member {string} deprecatedTaskType + * @memberof flyteidl.admin.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.deprecatedTaskType = ""; + + /** + * GetTaskRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * GetTaskRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.GetTaskRequest + * @instance + */ + GetTaskRequest.prototype.taskType = null; + + /** + * Creates a new GetTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest instance + */ + GetTaskRequest.create = function create(properties) { + return new GetTaskRequest(properties); + }; + + /** + * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {flyteidl.admin.IGetTaskRequest} message GetTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecatedTaskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + case 3: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskRequest message. + * @function verify + * @memberof flyteidl.admin.GetTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } + return null; + }; + + return GetTaskRequest; + })(); + + admin.GetTaskResponse = (function() { + + /** + * Properties of a GetTaskResponse. + * @memberof flyteidl.admin + * @interface IGetTaskResponse + * @property {flyteidl.admin.IResource|null} [resource] GetTaskResponse resource + */ + + /** + * Constructs a new GetTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskResponse. + * @implements IGetTaskResponse + * @constructor + * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set + */ + function GetTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskResponse resource. + * @member {flyteidl.admin.IResource|null|undefined} resource + * @memberof flyteidl.admin.GetTaskResponse + * @instance + */ + GetTaskResponse.prototype.resource = null; + + /** + * Creates a new GetTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse instance + */ + GetTaskResponse.create = function create(properties) { + return new GetTaskResponse(properties); + }; + + /** + * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {flyteidl.admin.IGetTaskResponse} message GetTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resource != null && message.hasOwnProperty("resource")) + $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskResponse message. + * @function verify + * @memberof flyteidl.admin.GetTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resource != null && message.hasOwnProperty("resource")) { + var error = $root.flyteidl.admin.Resource.verify(message.resource); + if (error) + return "resource." + error; + } + return null; + }; + + return GetTaskResponse; + })(); + + admin.Resource = (function() { + + /** + * Properties of a Resource. + * @memberof flyteidl.admin + * @interface IResource + * @property {flyteidl.admin.State|null} [state] Resource state + * @property {flyteidl.core.ILiteralMap|null} [outputs] Resource outputs + * @property {string|null} [message] Resource message + * @property {Array.|null} [logLinks] Resource logLinks + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] Resource phase + * @property {google.protobuf.IStruct|null} [customInfo] Resource customInfo + */ + + /** + * Constructs a new Resource. + * @memberof flyteidl.admin + * @classdesc Represents a Resource. + * @implements IResource + * @constructor + * @param {flyteidl.admin.IResource=} [properties] Properties to set + */ + function Resource(properties) { + this.logLinks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Resource state. + * @member {flyteidl.admin.State} state + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.state = 0; + + /** + * Resource outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.outputs = null; + + /** + * Resource message. + * @member {string} message + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.message = ""; + + /** + * Resource logLinks. + * @member {Array.} logLinks + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.logLinks = $util.emptyArray; + + /** + * Resource phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.phase = 0; + + /** + * Resource customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.admin.Resource + * @instance + */ + Resource.prototype.customInfo = null; + + /** + * Creates a new Resource instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Resource + * @static + * @param {flyteidl.admin.IResource=} [properties] Properties to set + * @returns {flyteidl.admin.Resource} Resource instance + */ + Resource.create = function create(properties) { + return new Resource(properties); + }; + + /** + * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Resource + * @static + * @param {flyteidl.admin.IResource} message Resource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Resource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (message.logLinks != null && message.logLinks.length) + for (var i = 0; i < message.logLinks.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.phase); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Resource message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Resource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Resource} Resource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Resource.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Resource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.message = reader.string(); + break; + case 4: + if (!(message.logLinks && message.logLinks.length)) + message.logLinks = []; + message.logLinks.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 5: + message.phase = reader.int32(); + break; + case 6: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Resource message. + * @function verify + * @memberof flyteidl.admin.Resource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Resource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.logLinks != null && message.hasOwnProperty("logLinks")) { + if (!Array.isArray(message.logLinks)) + return "logLinks: array expected"; + for (var i = 0; i < message.logLinks.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logLinks[i]); + if (error) + return "logLinks." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + var error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + return null; + }; + + return Resource; + })(); + + admin.DeleteTaskRequest = (function() { + + /** + * Properties of a DeleteTaskRequest. + * @memberof flyteidl.admin + * @interface IDeleteTaskRequest + * @property {string|null} [deprecatedTaskType] DeleteTaskRequest deprecatedTaskType + * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta + * @property {flyteidl.admin.ITaskType|null} [taskType] DeleteTaskRequest taskType + */ + + /** + * Constructs a new DeleteTaskRequest. + * @memberof flyteidl.admin + * @classdesc Represents a DeleteTaskRequest. + * @implements IDeleteTaskRequest + * @constructor + * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set + */ + function DeleteTaskRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteTaskRequest deprecatedTaskType. + * @member {string} deprecatedTaskType + * @memberof flyteidl.admin.DeleteTaskRequest + * @instance + */ + DeleteTaskRequest.prototype.deprecatedTaskType = ""; + + /** + * DeleteTaskRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.DeleteTaskRequest + * @instance + */ + DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * DeleteTaskRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.DeleteTaskRequest + * @instance + */ + DeleteTaskRequest.prototype.taskType = null; + + /** + * Creates a new DeleteTaskRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set + * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest instance + */ + DeleteTaskRequest.create = function create(properties) { + return new DeleteTaskRequest(properties); + }; + + /** + * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {flyteidl.admin.IDeleteTaskRequest} message DeleteTaskRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTaskRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DeleteTaskRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteTaskRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecatedTaskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + case 3: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DeleteTaskRequest message. + * @function verify + * @memberof flyteidl.admin.DeleteTaskRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteTaskRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } + return null; + }; + + return DeleteTaskRequest; + })(); + + admin.DeleteTaskResponse = (function() { + + /** + * Properties of a DeleteTaskResponse. + * @memberof flyteidl.admin + * @interface IDeleteTaskResponse + */ + + /** + * Constructs a new DeleteTaskResponse. + * @memberof flyteidl.admin + * @classdesc Represents a DeleteTaskResponse. + * @implements IDeleteTaskResponse + * @constructor + * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set + */ + function DeleteTaskResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new DeleteTaskResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set + * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse instance + */ + DeleteTaskResponse.create = function create(properties) { + return new DeleteTaskResponse(properties); + }; + + /** + * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {flyteidl.admin.IDeleteTaskResponse} message DeleteTaskResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteTaskResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a DeleteTaskResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteTaskResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DeleteTaskResponse message. + * @function verify + * @memberof flyteidl.admin.DeleteTaskResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteTaskResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return DeleteTaskResponse; + })(); + + admin.Agent = (function() { + + /** + * Properties of an Agent. + * @memberof flyteidl.admin + * @interface IAgent + * @property {string|null} [name] Agent name + * @property {Array.|null} [deprecatedSupportedTaskTypes] Agent deprecatedSupportedTaskTypes + * @property {boolean|null} [isSync] Agent isSync + * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes + */ + + /** + * Constructs a new Agent. + * @memberof flyteidl.admin + * @classdesc Represents an Agent. + * @implements IAgent + * @constructor + * @param {flyteidl.admin.IAgent=} [properties] Properties to set + */ + function Agent(properties) { + this.deprecatedSupportedTaskTypes = []; + this.supportedTaskTypes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Agent name. + * @member {string} name + * @memberof flyteidl.admin.Agent + * @instance + */ + Agent.prototype.name = ""; + + /** + * Agent deprecatedSupportedTaskTypes. + * @member {Array.} deprecatedSupportedTaskTypes + * @memberof flyteidl.admin.Agent + * @instance + */ + Agent.prototype.deprecatedSupportedTaskTypes = $util.emptyArray; + + /** + * Agent isSync. + * @member {boolean} isSync + * @memberof flyteidl.admin.Agent + * @instance + */ + Agent.prototype.isSync = false; + + /** + * Agent supportedTaskTypes. + * @member {Array.} supportedTaskTypes + * @memberof flyteidl.admin.Agent + * @instance + */ + Agent.prototype.supportedTaskTypes = $util.emptyArray; + + /** + * Creates a new Agent instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Agent + * @static + * @param {flyteidl.admin.IAgent=} [properties] Properties to set + * @returns {flyteidl.admin.Agent} Agent instance + */ + Agent.create = function create(properties) { + return new Agent(properties); + }; + + /** + * Encodes the specified Agent message. Does not implicitly {@link flyteidl.admin.Agent.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Agent + * @static + * @param {flyteidl.admin.IAgent} message Agent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Agent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.deprecatedSupportedTaskTypes != null && message.deprecatedSupportedTaskTypes.length) + for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deprecatedSupportedTaskTypes[i]); + if (message.isSync != null && message.hasOwnProperty("isSync")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); + if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) + for (var i = 0; i < message.supportedTaskTypes.length; ++i) + $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Agent message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Agent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Agent} Agent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Agent.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Agent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.deprecatedSupportedTaskTypes && message.deprecatedSupportedTaskTypes.length)) + message.deprecatedSupportedTaskTypes = []; + message.deprecatedSupportedTaskTypes.push(reader.string()); + break; + case 3: + message.isSync = reader.bool(); + break; + case 4: + if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) + message.supportedTaskTypes = []; + message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Agent message. + * @function verify + * @memberof flyteidl.admin.Agent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Agent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.deprecatedSupportedTaskTypes != null && message.hasOwnProperty("deprecatedSupportedTaskTypes")) { + if (!Array.isArray(message.deprecatedSupportedTaskTypes)) + return "deprecatedSupportedTaskTypes: array expected"; + for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) + if (!$util.isString(message.deprecatedSupportedTaskTypes[i])) + return "deprecatedSupportedTaskTypes: string[] expected"; + } + if (message.isSync != null && message.hasOwnProperty("isSync")) + if (typeof message.isSync !== "boolean") + return "isSync: boolean expected"; + if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { + if (!Array.isArray(message.supportedTaskTypes)) + return "supportedTaskTypes: array expected"; + for (var i = 0; i < message.supportedTaskTypes.length; ++i) { + var error = $root.flyteidl.admin.TaskType.verify(message.supportedTaskTypes[i]); + if (error) + return "supportedTaskTypes." + error; + } + } + return null; + }; + + return Agent; + })(); + + admin.TaskType = (function() { + + /** + * Properties of a TaskType. + * @memberof flyteidl.admin + * @interface ITaskType + * @property {string|null} [name] TaskType name + * @property {number|null} [version] TaskType version + */ + + /** + * Constructs a new TaskType. + * @memberof flyteidl.admin + * @classdesc Represents a TaskType. + * @implements ITaskType + * @constructor + * @param {flyteidl.admin.ITaskType=} [properties] Properties to set + */ + function TaskType(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskType name. + * @member {string} name + * @memberof flyteidl.admin.TaskType + * @instance + */ + TaskType.prototype.name = ""; + + /** + * TaskType version. + * @member {number} version + * @memberof flyteidl.admin.TaskType + * @instance + */ + TaskType.prototype.version = 0; + + /** + * Creates a new TaskType instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskType + * @static + * @param {flyteidl.admin.ITaskType=} [properties] Properties to set + * @returns {flyteidl.admin.TaskType} TaskType instance + */ + TaskType.create = function create(properties) { + return new TaskType(properties); + }; + + /** + * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskType + * @static + * @param {flyteidl.admin.ITaskType} message TaskType message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskType.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); + return writer; + }; + + /** + * Decodes a TaskType message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskType + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskType} TaskType + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskType.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskType(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.version = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskType message. + * @function verify + * @memberof flyteidl.admin.TaskType + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskType.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isInteger(message.version)) + return "version: integer expected"; + return null; + }; + + return TaskType; + })(); + + admin.GetAgentRequest = (function() { + + /** + * Properties of a GetAgentRequest. + * @memberof flyteidl.admin + * @interface IGetAgentRequest + * @property {string|null} [name] GetAgentRequest name + */ + + /** + * Constructs a new GetAgentRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetAgentRequest. + * @implements IGetAgentRequest + * @constructor + * @param {flyteidl.admin.IGetAgentRequest=} [properties] Properties to set + */ + function GetAgentRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetAgentRequest name. + * @member {string} name + * @memberof flyteidl.admin.GetAgentRequest + * @instance + */ + GetAgentRequest.prototype.name = ""; + + /** + * Creates a new GetAgentRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetAgentRequest + * @static + * @param {flyteidl.admin.IGetAgentRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest instance + */ + GetAgentRequest.create = function create(properties) { + return new GetAgentRequest(properties); + }; + + /** + * Encodes the specified GetAgentRequest message. Does not implicitly {@link flyteidl.admin.GetAgentRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetAgentRequest + * @static + * @param {flyteidl.admin.IGetAgentRequest} message GetAgentRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAgentRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Decodes a GetAgentRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetAgentRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAgentRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetAgentRequest message. + * @function verify + * @memberof flyteidl.admin.GetAgentRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAgentRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return GetAgentRequest; + })(); + + admin.GetAgentResponse = (function() { + + /** + * Properties of a GetAgentResponse. + * @memberof flyteidl.admin + * @interface IGetAgentResponse + * @property {flyteidl.admin.IAgent|null} [agent] GetAgentResponse agent + */ + + /** + * Constructs a new GetAgentResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetAgentResponse. + * @implements IGetAgentResponse + * @constructor + * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set + */ + function GetAgentResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetAgentResponse agent. + * @member {flyteidl.admin.IAgent|null|undefined} agent + * @memberof flyteidl.admin.GetAgentResponse + * @instance + */ + GetAgentResponse.prototype.agent = null; + + /** + * Creates a new GetAgentResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse instance + */ + GetAgentResponse.create = function create(properties) { + return new GetAgentResponse(properties); + }; + + /** + * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {flyteidl.admin.IGetAgentResponse} message GetAgentResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAgentResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.agent != null && message.hasOwnProperty("agent")) + $root.flyteidl.admin.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetAgentResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAgentResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.agent = $root.flyteidl.admin.Agent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetAgentResponse message. + * @function verify + * @memberof flyteidl.admin.GetAgentResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAgentResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.agent != null && message.hasOwnProperty("agent")) { + var error = $root.flyteidl.admin.Agent.verify(message.agent); + if (error) + return "agent." + error; + } + return null; + }; + + return GetAgentResponse; + })(); + + admin.ListAgentsRequest = (function() { + + /** + * Properties of a ListAgentsRequest. + * @memberof flyteidl.admin + * @interface IListAgentsRequest + */ + + /** + * Constructs a new ListAgentsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ListAgentsRequest. + * @implements IListAgentsRequest + * @constructor + * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set + */ + function ListAgentsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ListAgentsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest instance + */ + ListAgentsRequest.create = function create(properties) { + return new ListAgentsRequest(properties); + }; + + /** + * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {flyteidl.admin.IListAgentsRequest} message ListAgentsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAgentsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ListAgentsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAgentsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListAgentsRequest message. + * @function verify + * @memberof flyteidl.admin.ListAgentsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAgentsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ListAgentsRequest; + })(); + + admin.ListAgentsResponse = (function() { + + /** + * Properties of a ListAgentsResponse. + * @memberof flyteidl.admin + * @interface IListAgentsResponse + * @property {Array.|null} [agents] ListAgentsResponse agents + */ + + /** + * Constructs a new ListAgentsResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ListAgentsResponse. + * @implements IListAgentsResponse + * @constructor + * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set + */ + function ListAgentsResponse(properties) { + this.agents = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListAgentsResponse agents. + * @member {Array.} agents + * @memberof flyteidl.admin.ListAgentsResponse + * @instance + */ + ListAgentsResponse.prototype.agents = $util.emptyArray; + + /** + * Creates a new ListAgentsResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse instance + */ + ListAgentsResponse.create = function create(properties) { + return new ListAgentsResponse(properties); + }; + + /** + * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {flyteidl.admin.IListAgentsResponse} message ListAgentsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAgentsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.agents != null && message.agents.length) + for (var i = 0; i < message.agents.length; ++i) + $root.flyteidl.admin.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListAgentsResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAgentsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.agents && message.agents.length)) + message.agents = []; + message.agents.push($root.flyteidl.admin.Agent.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListAgentsResponse message. + * @function verify + * @memberof flyteidl.admin.ListAgentsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAgentsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.agents != null && message.hasOwnProperty("agents")) { + if (!Array.isArray(message.agents)) + return "agents: array expected"; + for (var i = 0; i < message.agents.length; ++i) { + var error = $root.flyteidl.admin.Agent.verify(message.agents[i]); + if (error) + return "agents." + error; + } + } + return null; + }; + + return ListAgentsResponse; + })(); + + admin.GetTaskMetricsRequest = (function() { + + /** + * Properties of a GetTaskMetricsRequest. + * @memberof flyteidl.admin + * @interface IGetTaskMetricsRequest + * @property {string|null} [deprecatedTaskType] GetTaskMetricsRequest deprecatedTaskType + * @property {Uint8Array|null} [resourceMeta] GetTaskMetricsRequest resourceMeta + * @property {Array.|null} [queries] GetTaskMetricsRequest queries + * @property {google.protobuf.ITimestamp|null} [startTime] GetTaskMetricsRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] GetTaskMetricsRequest endTime + * @property {google.protobuf.IDuration|null} [step] GetTaskMetricsRequest step + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskMetricsRequest taskType + */ + + /** + * Constructs a new GetTaskMetricsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskMetricsRequest. + * @implements IGetTaskMetricsRequest + * @constructor + * @param {flyteidl.admin.IGetTaskMetricsRequest=} [properties] Properties to set + */ + function GetTaskMetricsRequest(properties) { + this.queries = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskMetricsRequest deprecatedTaskType. + * @member {string} deprecatedTaskType + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.deprecatedTaskType = ""; + + /** + * GetTaskMetricsRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * GetTaskMetricsRequest queries. + * @member {Array.} queries + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.queries = $util.emptyArray; + + /** + * GetTaskMetricsRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.startTime = null; + + /** + * GetTaskMetricsRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.endTime = null; + + /** + * GetTaskMetricsRequest step. + * @member {google.protobuf.IDuration|null|undefined} step + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.step = null; + + /** + * GetTaskMetricsRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @instance + */ + GetTaskMetricsRequest.prototype.taskType = null; + + /** + * Creates a new GetTaskMetricsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @static + * @param {flyteidl.admin.IGetTaskMetricsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskMetricsRequest} GetTaskMetricsRequest instance + */ + GetTaskMetricsRequest.create = function create(properties) { + return new GetTaskMetricsRequest(properties); + }; + + /** + * Encodes the specified GetTaskMetricsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @static + * @param {flyteidl.admin.IGetTaskMetricsRequest} message GetTaskMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskMetricsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.queries != null && message.queries.length) + for (var i = 0; i < message.queries.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.queries[i]); + if (message.startTime != null && message.hasOwnProperty("startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && message.hasOwnProperty("endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.step != null && message.hasOwnProperty("step")) + $root.google.protobuf.Duration.encode(message.step, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskMetricsRequest} GetTaskMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskMetricsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskMetricsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecatedTaskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + case 3: + if (!(message.queries && message.queries.length)) + message.queries = []; + message.queries.push(reader.string()); + break; + case 4: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.step = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskMetricsRequest message. + * @function verify + * @memberof flyteidl.admin.GetTaskMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskMetricsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + if (message.queries != null && message.hasOwnProperty("queries")) { + if (!Array.isArray(message.queries)) + return "queries: array expected"; + for (var i = 0; i < message.queries.length; ++i) + if (!$util.isString(message.queries[i])) + return "queries: string[] expected"; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.step != null && message.hasOwnProperty("step")) { + var error = $root.google.protobuf.Duration.verify(message.step); + if (error) + return "step." + error; + } + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } + return null; + }; + + return GetTaskMetricsRequest; + })(); + + admin.GetTaskMetricsResponse = (function() { + + /** + * Properties of a GetTaskMetricsResponse. + * @memberof flyteidl.admin + * @interface IGetTaskMetricsResponse + * @property {Array.|null} [results] GetTaskMetricsResponse results + */ + + /** + * Constructs a new GetTaskMetricsResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskMetricsResponse. + * @implements IGetTaskMetricsResponse + * @constructor + * @param {flyteidl.admin.IGetTaskMetricsResponse=} [properties] Properties to set + */ + function GetTaskMetricsResponse(properties) { + this.results = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskMetricsResponse results. + * @member {Array.} results + * @memberof flyteidl.admin.GetTaskMetricsResponse + * @instance + */ + GetTaskMetricsResponse.prototype.results = $util.emptyArray; + + /** + * Creates a new GetTaskMetricsResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskMetricsResponse + * @static + * @param {flyteidl.admin.IGetTaskMetricsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskMetricsResponse} GetTaskMetricsResponse instance + */ + GetTaskMetricsResponse.create = function create(properties) { + return new GetTaskMetricsResponse(properties); + }; + + /** + * Encodes the specified GetTaskMetricsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskMetricsResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskMetricsResponse + * @static + * @param {flyteidl.admin.IGetTaskMetricsResponse} message GetTaskMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + $root.flyteidl.core.ExecutionMetricResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskMetricsResponse} GetTaskMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskMetricsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskMetricsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.results && message.results.length)) + message.results = []; + message.results.push($root.flyteidl.core.ExecutionMetricResult.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskMetricsResponse message. + * @function verify + * @memberof flyteidl.admin.GetTaskMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) { + var error = $root.flyteidl.core.ExecutionMetricResult.verify(message.results[i]); + if (error) + return "results." + error; + } + } + return null; + }; + + return GetTaskMetricsResponse; + })(); + + admin.GetTaskLogsRequest = (function() { + + /** + * Properties of a GetTaskLogsRequest. + * @memberof flyteidl.admin + * @interface IGetTaskLogsRequest + * @property {string|null} [deprecatedTaskType] GetTaskLogsRequest deprecatedTaskType + * @property {Uint8Array|null} [resourceMeta] GetTaskLogsRequest resourceMeta + * @property {Long|null} [lines] GetTaskLogsRequest lines + * @property {string|null} [token] GetTaskLogsRequest token + * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskLogsRequest taskType + */ + + /** + * Constructs a new GetTaskLogsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskLogsRequest. + * @implements IGetTaskLogsRequest + * @constructor + * @param {flyteidl.admin.IGetTaskLogsRequest=} [properties] Properties to set + */ + function GetTaskLogsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskLogsRequest deprecatedTaskType. + * @member {string} deprecatedTaskType + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.deprecatedTaskType = ""; + + /** + * GetTaskLogsRequest resourceMeta. + * @member {Uint8Array} resourceMeta + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.resourceMeta = $util.newBuffer([]); + + /** + * GetTaskLogsRequest lines. + * @member {Long} lines + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.lines = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * GetTaskLogsRequest token. + * @member {string} token + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.token = ""; + + /** + * GetTaskLogsRequest taskType. + * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * @memberof flyteidl.admin.GetTaskLogsRequest + * @instance + */ + GetTaskLogsRequest.prototype.taskType = null; + + /** + * Creates a new GetTaskLogsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskLogsRequest + * @static + * @param {flyteidl.admin.IGetTaskLogsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsRequest} GetTaskLogsRequest instance + */ + GetTaskLogsRequest.create = function create(properties) { + return new GetTaskLogsRequest(properties); + }; + + /** + * Encodes the specified GetTaskLogsRequest message. Does not implicitly {@link flyteidl.admin.GetTaskLogsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskLogsRequest + * @static + * @param {flyteidl.admin.IGetTaskLogsRequest} message GetTaskLogsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskLogsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); + if (message.lines != null && message.hasOwnProperty("lines")) + writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.lines); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.taskType != null && message.hasOwnProperty("taskType")) + $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskLogsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskLogsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskLogsRequest} GetTaskLogsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskLogsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecatedTaskType = reader.string(); + break; + case 2: + message.resourceMeta = reader.bytes(); + break; + case 3: + message.lines = reader.uint64(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskLogsRequest message. + * @function verify + * @memberof flyteidl.admin.GetTaskLogsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskLogsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) + if (!$util.isString(message.deprecatedTaskType)) + return "deprecatedTaskType: string expected"; + if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) + if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) + return "resourceMeta: buffer expected"; + if (message.lines != null && message.hasOwnProperty("lines")) + if (!$util.isInteger(message.lines) && !(message.lines && $util.isInteger(message.lines.low) && $util.isInteger(message.lines.high))) + return "lines: integer|Long expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) { + var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (error) + return "taskType." + error; + } + return null; + }; + + return GetTaskLogsRequest; + })(); + + admin.GetTaskLogsResponseHeader = (function() { + + /** + * Properties of a GetTaskLogsResponseHeader. + * @memberof flyteidl.admin + * @interface IGetTaskLogsResponseHeader + * @property {string|null} [token] GetTaskLogsResponseHeader token + */ + + /** + * Constructs a new GetTaskLogsResponseHeader. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskLogsResponseHeader. + * @implements IGetTaskLogsResponseHeader + * @constructor + * @param {flyteidl.admin.IGetTaskLogsResponseHeader=} [properties] Properties to set + */ + function GetTaskLogsResponseHeader(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskLogsResponseHeader token. + * @member {string} token + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @instance + */ + GetTaskLogsResponseHeader.prototype.token = ""; + + /** + * Creates a new GetTaskLogsResponseHeader instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseHeader=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsResponseHeader} GetTaskLogsResponseHeader instance + */ + GetTaskLogsResponseHeader.create = function create(properties) { + return new GetTaskLogsResponseHeader(properties); + }; + + /** + * Encodes the specified GetTaskLogsResponseHeader message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseHeader.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseHeader} message GetTaskLogsResponseHeader message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskLogsResponseHeader.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.token); + return writer; + }; + + /** + * Decodes a GetTaskLogsResponseHeader message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskLogsResponseHeader} GetTaskLogsResponseHeader + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskLogsResponseHeader.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponseHeader(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskLogsResponseHeader message. + * @function verify + * @memberof flyteidl.admin.GetTaskLogsResponseHeader + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskLogsResponseHeader.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return GetTaskLogsResponseHeader; + })(); + + admin.GetTaskLogsResponseBody = (function() { + + /** + * Properties of a GetTaskLogsResponseBody. + * @memberof flyteidl.admin + * @interface IGetTaskLogsResponseBody + * @property {Array.|null} [results] GetTaskLogsResponseBody results + */ + + /** + * Constructs a new GetTaskLogsResponseBody. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskLogsResponseBody. + * @implements IGetTaskLogsResponseBody + * @constructor + * @param {flyteidl.admin.IGetTaskLogsResponseBody=} [properties] Properties to set + */ + function GetTaskLogsResponseBody(properties) { + this.results = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskLogsResponseBody results. + * @member {Array.} results + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @instance + */ + GetTaskLogsResponseBody.prototype.results = $util.emptyArray; + + /** + * Creates a new GetTaskLogsResponseBody instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseBody=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsResponseBody} GetTaskLogsResponseBody instance + */ + GetTaskLogsResponseBody.create = function create(properties) { + return new GetTaskLogsResponseBody(properties); + }; + + /** + * Encodes the specified GetTaskLogsResponseBody message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponseBody.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {flyteidl.admin.IGetTaskLogsResponseBody} message GetTaskLogsResponseBody message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskLogsResponseBody.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.results != null && message.results.length) + for (var i = 0; i < message.results.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.results[i]); + return writer; + }; + + /** + * Decodes a GetTaskLogsResponseBody message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskLogsResponseBody} GetTaskLogsResponseBody + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskLogsResponseBody.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponseBody(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.results && message.results.length)) + message.results = []; + message.results.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskLogsResponseBody message. + * @function verify + * @memberof flyteidl.admin.GetTaskLogsResponseBody + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskLogsResponseBody.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.results != null && message.hasOwnProperty("results")) { + if (!Array.isArray(message.results)) + return "results: array expected"; + for (var i = 0; i < message.results.length; ++i) + if (!$util.isString(message.results[i])) + return "results: string[] expected"; + } + return null; + }; + + return GetTaskLogsResponseBody; + })(); + + admin.GetTaskLogsResponse = (function() { + + /** + * Properties of a GetTaskLogsResponse. + * @memberof flyteidl.admin + * @interface IGetTaskLogsResponse + * @property {flyteidl.admin.IGetTaskLogsResponseHeader|null} [header] GetTaskLogsResponse header + * @property {flyteidl.admin.IGetTaskLogsResponseBody|null} [body] GetTaskLogsResponse body + */ + + /** + * Constructs a new GetTaskLogsResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetTaskLogsResponse. + * @implements IGetTaskLogsResponse + * @constructor + * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set + */ + function GetTaskLogsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetTaskLogsResponse header. + * @member {flyteidl.admin.IGetTaskLogsResponseHeader|null|undefined} header + * @memberof flyteidl.admin.GetTaskLogsResponse + * @instance + */ + GetTaskLogsResponse.prototype.header = null; + + /** + * GetTaskLogsResponse body. + * @member {flyteidl.admin.IGetTaskLogsResponseBody|null|undefined} body + * @memberof flyteidl.admin.GetTaskLogsResponse + * @instance + */ + GetTaskLogsResponse.prototype.body = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetTaskLogsResponse part. + * @member {"header"|"body"|undefined} part + * @memberof flyteidl.admin.GetTaskLogsResponse + * @instance + */ + Object.defineProperty(GetTaskLogsResponse.prototype, "part", { + get: $util.oneOfGetter($oneOfFields = ["header", "body"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetTaskLogsResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetTaskLogsResponse + * @static + * @param {flyteidl.admin.IGetTaskLogsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetTaskLogsResponse} GetTaskLogsResponse instance + */ + GetTaskLogsResponse.create = function create(properties) { + return new GetTaskLogsResponse(properties); + }; + + /** + * Encodes the specified GetTaskLogsResponse message. Does not implicitly {@link flyteidl.admin.GetTaskLogsResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetTaskLogsResponse + * @static + * @param {flyteidl.admin.IGetTaskLogsResponse} message GetTaskLogsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetTaskLogsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.header != null && message.hasOwnProperty("header")) + $root.flyteidl.admin.GetTaskLogsResponseHeader.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.body != null && message.hasOwnProperty("body")) + $root.flyteidl.admin.GetTaskLogsResponseBody.encode(message.body, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetTaskLogsResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetTaskLogsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetTaskLogsResponse} GetTaskLogsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetTaskLogsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskLogsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.header = $root.flyteidl.admin.GetTaskLogsResponseHeader.decode(reader, reader.uint32()); + break; + case 2: + message.body = $root.flyteidl.admin.GetTaskLogsResponseBody.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetTaskLogsResponse message. + * @function verify + * @memberof flyteidl.admin.GetTaskLogsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetTaskLogsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.header != null && message.hasOwnProperty("header")) { + properties.part = 1; + { + var error = $root.flyteidl.admin.GetTaskLogsResponseHeader.verify(message.header); + if (error) + return "header." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) { + if (properties.part === 1) + return "part: multiple values"; + properties.part = 1; + { + var error = $root.flyteidl.admin.GetTaskLogsResponseBody.verify(message.body); + if (error) + return "body." + error; + } + } + return null; + }; + + return GetTaskLogsResponse; + })(); + + admin.ClusterAssignment = (function() { + + /** + * Properties of a ClusterAssignment. + * @memberof flyteidl.admin + * @interface IClusterAssignment + * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName + */ + + /** + * Constructs a new ClusterAssignment. + * @memberof flyteidl.admin + * @classdesc Represents a ClusterAssignment. + * @implements IClusterAssignment + * @constructor + * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set + */ + function ClusterAssignment(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClusterAssignment clusterPoolName. + * @member {string} clusterPoolName + * @memberof flyteidl.admin.ClusterAssignment + * @instance + */ + ClusterAssignment.prototype.clusterPoolName = ""; + + /** + * Creates a new ClusterAssignment instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set + * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment instance + */ + ClusterAssignment.create = function create(properties) { + return new ClusterAssignment(properties); + }; + + /** + * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {flyteidl.admin.IClusterAssignment} message ClusterAssignment message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClusterAssignment.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterPoolName); + return writer; + }; + + /** + * Decodes a ClusterAssignment message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClusterAssignment.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterAssignment(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: + message.clusterPoolName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ClusterAssignment message. + * @function verify + * @memberof flyteidl.admin.ClusterAssignment + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClusterAssignment.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) + if (!$util.isString(message.clusterPoolName)) + return "clusterPoolName: string expected"; + return null; + }; + + return ClusterAssignment; + })(); + + admin.NamedEntityIdentifier = (function() { + + /** + * Properties of a NamedEntityIdentifier. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifier + * @property {string|null} [project] NamedEntityIdentifier project + * @property {string|null} [domain] NamedEntityIdentifier domain + * @property {string|null} [name] NamedEntityIdentifier name + * @property {string|null} [org] NamedEntityIdentifier org + */ + + /** + * Constructs a new NamedEntityIdentifier. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifier. + * @implements INamedEntityIdentifier + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + */ + function NamedEntityIdentifier(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifier project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.project = ""; + + /** + * NamedEntityIdentifier domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.domain = ""; + + /** + * NamedEntityIdentifier name. + * @member {string} name + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.name = ""; + + /** + * NamedEntityIdentifier org. + * @member {string} org + * @memberof flyteidl.admin.NamedEntityIdentifier + * @instance + */ + NamedEntityIdentifier.prototype.org = ""; + + /** + * Creates a new NamedEntityIdentifier instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance + */ + NamedEntityIdentifier.create = function create(properties) { + return new NamedEntityIdentifier(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifier.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifier message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifier.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifier(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifier message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifier + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifier.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return NamedEntityIdentifier; + })(); + + /** + * NamedEntityState enum. + * @name flyteidl.admin.NamedEntityState + * @enum {string} + * @property {number} NAMED_ENTITY_ACTIVE=0 NAMED_ENTITY_ACTIVE value + * @property {number} NAMED_ENTITY_ARCHIVED=1 NAMED_ENTITY_ARCHIVED value + * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value + */ + admin.NamedEntityState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NAMED_ENTITY_ACTIVE"] = 0; + values[valuesById[1] = "NAMED_ENTITY_ARCHIVED"] = 1; + values[valuesById[2] = "SYSTEM_GENERATED"] = 2; + return values; + })(); + + admin.NamedEntityMetadata = (function() { + + /** + * Properties of a NamedEntityMetadata. + * @memberof flyteidl.admin + * @interface INamedEntityMetadata + * @property {string|null} [description] NamedEntityMetadata description + * @property {flyteidl.admin.NamedEntityState|null} [state] NamedEntityMetadata state + */ + + /** + * Constructs a new NamedEntityMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityMetadata. + * @implements INamedEntityMetadata + * @constructor + * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set + */ + function NamedEntityMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityMetadata description. + * @member {string} description + * @memberof flyteidl.admin.NamedEntityMetadata + * @instance + */ + NamedEntityMetadata.prototype.description = ""; + + /** + * NamedEntityMetadata state. + * @member {flyteidl.admin.NamedEntityState} state + * @memberof flyteidl.admin.NamedEntityMetadata + * @instance + */ + NamedEntityMetadata.prototype.state = 0; + + /** + * Creates a new NamedEntityMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata instance + */ + NamedEntityMetadata.create = function create(properties) { + return new NamedEntityMetadata(properties); + }; + + /** + * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {flyteidl.admin.INamedEntityMetadata} message NamedEntityMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes a NamedEntityMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.description = reader.string(); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityMetadata message. + * @function verify + * @memberof flyteidl.admin.NamedEntityMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + return NamedEntityMetadata; + })(); + + admin.NamedEntity = (function() { + + /** + * Properties of a NamedEntity. + * @memberof flyteidl.admin + * @interface INamedEntity + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntity resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntity id + * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntity metadata + */ + + /** + * Constructs a new NamedEntity. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntity. + * @implements INamedEntity + * @constructor + * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set + */ + function NamedEntity(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntity resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntity + * @instance + */ + NamedEntity.prototype.resourceType = 0; + + /** + * NamedEntity id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntity + * @instance + */ + NamedEntity.prototype.id = null; + + /** + * NamedEntity metadata. + * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata + * @memberof flyteidl.admin.NamedEntity + * @instance + */ + NamedEntity.prototype.metadata = null; + + /** + * Creates a new NamedEntity instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntity} NamedEntity instance + */ + NamedEntity.create = function create(properties) { + return new NamedEntity(properties); + }; + + /** + * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {flyteidl.admin.INamedEntity} message NamedEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntity message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntity} NamedEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntity message. + * @function verify + * @memberof flyteidl.admin.NamedEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return NamedEntity; + })(); + + admin.Sort = (function() { + + /** + * Properties of a Sort. + * @memberof flyteidl.admin + * @interface ISort + * @property {string|null} [key] Sort key + * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction + */ + + /** + * Constructs a new Sort. + * @memberof flyteidl.admin + * @classdesc Represents a Sort. + * @implements ISort + * @constructor + * @param {flyteidl.admin.ISort=} [properties] Properties to set + */ + function Sort(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Sort key. + * @member {string} key + * @memberof flyteidl.admin.Sort + * @instance + */ + Sort.prototype.key = ""; + + /** + * Sort direction. + * @member {flyteidl.admin.Sort.Direction} direction + * @memberof flyteidl.admin.Sort + * @instance + */ + Sort.prototype.direction = 0; + + /** + * Creates a new Sort instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Sort + * @static + * @param {flyteidl.admin.ISort=} [properties] Properties to set + * @returns {flyteidl.admin.Sort} Sort instance + */ + Sort.create = function create(properties) { + return new Sort(properties); + }; + + /** + * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Sort + * @static + * @param {flyteidl.admin.ISort} message Sort message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Sort.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.direction != null && message.hasOwnProperty("direction")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.direction); + return writer; + }; + + /** + * Decodes a Sort message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Sort + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Sort} Sort + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Sort.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Sort(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.key = reader.string(); + break; + case 2: + message.direction = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Sort message. + * @function verify + * @memberof flyteidl.admin.Sort + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Sort.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + if (message.direction != null && message.hasOwnProperty("direction")) + switch (message.direction) { + default: + return "direction: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * Direction enum. + * @name flyteidl.admin.Sort.Direction + * @enum {string} + * @property {number} DESCENDING=0 DESCENDING value + * @property {number} ASCENDING=1 ASCENDING value + */ + Sort.Direction = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESCENDING"] = 0; + values[valuesById[1] = "ASCENDING"] = 1; + return values; + })(); + + return Sort; + })(); + + admin.NamedEntityIdentifierListRequest = (function() { + + /** + * Properties of a NamedEntityIdentifierListRequest. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifierListRequest + * @property {string|null} [project] NamedEntityIdentifierListRequest project + * @property {string|null} [domain] NamedEntityIdentifierListRequest domain + * @property {number|null} [limit] NamedEntityIdentifierListRequest limit + * @property {string|null} [token] NamedEntityIdentifierListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityIdentifierListRequest sortBy + * @property {string|null} [filters] NamedEntityIdentifierListRequest filters + * @property {string|null} [org] NamedEntityIdentifierListRequest org + */ + + /** + * Constructs a new NamedEntityIdentifierListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifierListRequest. + * @implements INamedEntityIdentifierListRequest + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + */ + function NamedEntityIdentifierListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifierListRequest project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.project = ""; + + /** + * NamedEntityIdentifierListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.domain = ""; + + /** + * NamedEntityIdentifierListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.limit = 0; + + /** + * NamedEntityIdentifierListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.token = ""; + + /** + * NamedEntityIdentifierListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.sortBy = null; + + /** + * NamedEntityIdentifierListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.filters = ""; + + /** + * NamedEntityIdentifierListRequest org. + * @member {string} org + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @instance + */ + NamedEntityIdentifierListRequest.prototype.org = ""; + + /** + * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest instance + */ + NamedEntityIdentifierListRequest.create = function create(properties) { + return new NamedEntityIdentifierListRequest(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} message NamedEntityIdentifierListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifierListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.filters); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.org); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifierListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 6: + message.filters = reader.string(); + break; + case 7: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifierListRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifierListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifierListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return NamedEntityIdentifierListRequest; + })(); + + admin.NamedEntityListRequest = (function() { + + /** + * Properties of a NamedEntityListRequest. + * @memberof flyteidl.admin + * @interface INamedEntityListRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityListRequest resourceType + * @property {string|null} [project] NamedEntityListRequest project + * @property {string|null} [domain] NamedEntityListRequest domain + * @property {number|null} [limit] NamedEntityListRequest limit + * @property {string|null} [token] NamedEntityListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityListRequest sortBy + * @property {string|null} [filters] NamedEntityListRequest filters + * @property {string|null} [org] NamedEntityListRequest org + */ + + /** + * Constructs a new NamedEntityListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityListRequest. + * @implements INamedEntityListRequest + * @constructor + * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set + */ + function NamedEntityListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityListRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.resourceType = 0; + + /** + * NamedEntityListRequest project. + * @member {string} project + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.project = ""; + + /** + * NamedEntityListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.domain = ""; + + /** + * NamedEntityListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.limit = 0; + + /** + * NamedEntityListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.token = ""; + + /** + * NamedEntityListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.sortBy = null; + + /** + * NamedEntityListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.filters = ""; + + /** + * NamedEntityListRequest org. + * @member {string} org + * @memberof flyteidl.admin.NamedEntityListRequest + * @instance + */ + NamedEntityListRequest.prototype.org = ""; + + /** + * Creates a new NamedEntityListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest instance + */ + NamedEntityListRequest.create = function create(properties) { + return new NamedEntityListRequest(properties); + }; + + /** + * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {flyteidl.admin.INamedEntityListRequest} message NamedEntityListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.filters); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.org); + return writer; + }; + + /** + * Decodes a NamedEntityListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.project = reader.string(); + break; + case 3: + message.domain = reader.string(); + break; + case 4: + message.limit = reader.uint32(); + break; + case 5: + message.token = reader.string(); + break; + case 6: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 7: + message.filters = reader.string(); + break; + case 8: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityListRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return NamedEntityListRequest; + })(); + + admin.NamedEntityIdentifierList = (function() { + + /** + * Properties of a NamedEntityIdentifierList. + * @memberof flyteidl.admin + * @interface INamedEntityIdentifierList + * @property {Array.|null} [entities] NamedEntityIdentifierList entities + * @property {string|null} [token] NamedEntityIdentifierList token + */ + + /** + * Constructs a new NamedEntityIdentifierList. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityIdentifierList. + * @implements INamedEntityIdentifierList + * @constructor + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + */ + function NamedEntityIdentifierList(properties) { + this.entities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityIdentifierList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @instance + */ + NamedEntityIdentifierList.prototype.entities = $util.emptyArray; + + /** + * NamedEntityIdentifierList token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @instance + */ + NamedEntityIdentifierList.prototype.token = ""; + + /** + * Creates a new NamedEntityIdentifierList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance + */ + NamedEntityIdentifierList.create = function create(properties) { + return new NamedEntityIdentifierList(properties); + }; + + /** + * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityIdentifierList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityIdentifierList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityIdentifierList message. + * @function verify + * @memberof flyteidl.admin.NamedEntityIdentifierList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityIdentifierList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NamedEntityIdentifierList; + })(); + + admin.NamedEntityList = (function() { + + /** + * Properties of a NamedEntityList. + * @memberof flyteidl.admin + * @interface INamedEntityList + * @property {Array.|null} [entities] NamedEntityList entities + * @property {string|null} [token] NamedEntityList token + */ + + /** + * Constructs a new NamedEntityList. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityList. + * @implements INamedEntityList + * @constructor + * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set + */ + function NamedEntityList(properties) { + this.entities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityList entities. + * @member {Array.} entities + * @memberof flyteidl.admin.NamedEntityList + * @instance + */ + NamedEntityList.prototype.entities = $util.emptyArray; + + /** + * NamedEntityList token. + * @member {string} token + * @memberof flyteidl.admin.NamedEntityList + * @instance + */ + NamedEntityList.prototype.token = ""; + + /** + * Creates a new NamedEntityList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityList} NamedEntityList instance + */ + NamedEntityList.create = function create(properties) { + return new NamedEntityList(properties); + }; + + /** + * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {flyteidl.admin.INamedEntityList} message NamedEntityList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entities != null && message.entities.length) + for (var i = 0; i < message.entities.length; ++i) + $root.flyteidl.admin.NamedEntity.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NamedEntityList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityList} NamedEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.entities && message.entities.length)) + message.entities = []; + message.entities.push($root.flyteidl.admin.NamedEntity.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityList message. + * @function verify + * @memberof flyteidl.admin.NamedEntityList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entities != null && message.hasOwnProperty("entities")) { + if (!Array.isArray(message.entities)) + return "entities: array expected"; + for (var i = 0; i < message.entities.length; ++i) { + var error = $root.flyteidl.admin.NamedEntity.verify(message.entities[i]); + if (error) + return "entities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NamedEntityList; + })(); + + admin.NamedEntityGetRequest = (function() { + + /** + * Properties of a NamedEntityGetRequest. + * @memberof flyteidl.admin + * @interface INamedEntityGetRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityGetRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityGetRequest id + */ + + /** + * Constructs a new NamedEntityGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityGetRequest. + * @implements INamedEntityGetRequest + * @constructor + * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set + */ + function NamedEntityGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityGetRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityGetRequest + * @instance + */ + NamedEntityGetRequest.prototype.resourceType = 0; + + /** + * NamedEntityGetRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntityGetRequest + * @instance + */ + NamedEntityGetRequest.prototype.id = null; + + /** + * Creates a new NamedEntityGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest instance + */ + NamedEntityGetRequest.create = function create(properties) { + return new NamedEntityGetRequest(properties); + }; + + /** + * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {flyteidl.admin.INamedEntityGetRequest} message NamedEntityGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntityGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityGetRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NamedEntityGetRequest; + })(); + + admin.NamedEntityUpdateRequest = (function() { + + /** + * Properties of a NamedEntityUpdateRequest. + * @memberof flyteidl.admin + * @interface INamedEntityUpdateRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityUpdateRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityUpdateRequest id + * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntityUpdateRequest metadata + */ + + /** + * Constructs a new NamedEntityUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityUpdateRequest. + * @implements INamedEntityUpdateRequest + * @constructor + * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set + */ + function NamedEntityUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamedEntityUpdateRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @instance + */ + NamedEntityUpdateRequest.prototype.resourceType = 0; + + /** + * NamedEntityUpdateRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @instance + */ + NamedEntityUpdateRequest.prototype.id = null; + + /** + * NamedEntityUpdateRequest metadata. + * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @instance + */ + NamedEntityUpdateRequest.prototype.metadata = null; + + /** + * Creates a new NamedEntityUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest instance + */ + NamedEntityUpdateRequest.create = function create(properties) { + return new NamedEntityUpdateRequest(properties); + }; + + /** + * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {flyteidl.admin.INamedEntityUpdateRequest} message NamedEntityUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.NamedEntityUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return NamedEntityUpdateRequest; + })(); + + admin.NamedEntityUpdateResponse = (function() { + + /** + * Properties of a NamedEntityUpdateResponse. + * @memberof flyteidl.admin + * @interface INamedEntityUpdateResponse + */ + + /** + * Constructs a new NamedEntityUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NamedEntityUpdateResponse. + * @implements INamedEntityUpdateResponse + * @constructor + * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set + */ + function NamedEntityUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NamedEntityUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse instance + */ + NamedEntityUpdateResponse.create = function create(properties) { + return new NamedEntityUpdateResponse(properties); + }; + + /** + * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {flyteidl.admin.INamedEntityUpdateResponse} message NamedEntityUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamedEntityUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamedEntityUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NamedEntityUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.NamedEntityUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamedEntityUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return NamedEntityUpdateResponse; + })(); + + admin.ObjectGetRequest = (function() { + + /** + * Properties of an ObjectGetRequest. + * @memberof flyteidl.admin + * @interface IObjectGetRequest + * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id + */ + + /** + * Constructs a new ObjectGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ObjectGetRequest. + * @implements IObjectGetRequest + * @constructor + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + */ + function ObjectGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ObjectGetRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.ObjectGetRequest + * @instance + */ + ObjectGetRequest.prototype.id = null; + + /** + * Creates a new ObjectGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest instance + */ + ObjectGetRequest.create = function create(properties) { + return new ObjectGetRequest(properties); + }; + + /** + * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {flyteidl.admin.IObjectGetRequest} message ObjectGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ObjectGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ObjectGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ObjectGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ObjectGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ObjectGetRequest message. + * @function verify + * @memberof flyteidl.admin.ObjectGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ObjectGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ObjectGetRequest; + })(); + + admin.ResourceListRequest = (function() { + + /** + * Properties of a ResourceListRequest. + * @memberof flyteidl.admin + * @interface IResourceListRequest + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ResourceListRequest id + * @property {number|null} [limit] ResourceListRequest limit + * @property {string|null} [token] ResourceListRequest token + * @property {string|null} [filters] ResourceListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] ResourceListRequest sortBy + */ + + /** + * Constructs a new ResourceListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ResourceListRequest. + * @implements IResourceListRequest + * @constructor + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + */ + function ResourceListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResourceListRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.id = null; + + /** + * ResourceListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.limit = 0; + + /** + * ResourceListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.token = ""; + + /** + * ResourceListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.filters = ""; + + /** + * ResourceListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ResourceListRequest + * @instance + */ + ResourceListRequest.prototype.sortBy = null; + + /** + * Creates a new ResourceListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance + */ + ResourceListRequest.create = function create(properties) { + return new ResourceListRequest(properties); + }; + + /** + * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ResourceListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ResourceListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ResourceListRequest message. + * @function verify + * @memberof flyteidl.admin.ResourceListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return ResourceListRequest; + })(); + + admin.EmailNotification = (function() { + + /** + * Properties of an EmailNotification. + * @memberof flyteidl.admin + * @interface IEmailNotification + * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail + */ + + /** + * Constructs a new EmailNotification. + * @memberof flyteidl.admin + * @classdesc Represents an EmailNotification. + * @implements IEmailNotification + * @constructor + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + */ + function EmailNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailNotification + * @instance + */ + EmailNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new EmailNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set + * @returns {flyteidl.admin.EmailNotification} EmailNotification instance + */ + EmailNotification.create = function create(properties) { + return new EmailNotification(properties); + }; + + /** + * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes an EmailNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EmailNotification} EmailNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EmailNotification message. + * @function verify + * @memberof flyteidl.admin.EmailNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return EmailNotification; + })(); + + admin.PagerDutyNotification = (function() { + + /** + * Properties of a PagerDutyNotification. + * @memberof flyteidl.admin + * @interface IPagerDutyNotification + * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail + */ + + /** + * Constructs a new PagerDutyNotification. + * @memberof flyteidl.admin + * @classdesc Represents a PagerDutyNotification. + * @implements IPagerDutyNotification + * @constructor + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + */ + function PagerDutyNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PagerDutyNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.PagerDutyNotification + * @instance + */ + PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new PagerDutyNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance + */ + PagerDutyNotification.create = function create(properties) { + return new PagerDutyNotification(properties); + }; + + /** + * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PagerDutyNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes a PagerDutyNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PagerDutyNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PagerDutyNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PagerDutyNotification message. + * @function verify + * @memberof flyteidl.admin.PagerDutyNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PagerDutyNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return PagerDutyNotification; + })(); + + admin.SlackNotification = (function() { + + /** + * Properties of a SlackNotification. + * @memberof flyteidl.admin + * @interface ISlackNotification + * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail + */ + + /** + * Constructs a new SlackNotification. + * @memberof flyteidl.admin + * @classdesc Represents a SlackNotification. + * @implements ISlackNotification + * @constructor + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + */ + function SlackNotification(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SlackNotification recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.SlackNotification + * @instance + */ + SlackNotification.prototype.recipientsEmail = $util.emptyArray; + + /** + * Creates a new SlackNotification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set + * @returns {flyteidl.admin.SlackNotification} SlackNotification instance + */ + SlackNotification.create = function create(properties) { + return new SlackNotification(properties); + }; + + /** + * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SlackNotification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + return writer; + }; + + /** + * Decodes a SlackNotification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SlackNotification} SlackNotification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SlackNotification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SlackNotification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SlackNotification message. + * @function verify + * @memberof flyteidl.admin.SlackNotification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SlackNotification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + return null; + }; + + return SlackNotification; + })(); + + admin.Notification = (function() { + + /** + * Properties of a Notification. + * @memberof flyteidl.admin + * @interface INotification + * @property {Array.|null} [phases] Notification phases + * @property {flyteidl.admin.IEmailNotification|null} [email] Notification email + * @property {flyteidl.admin.IPagerDutyNotification|null} [pagerDuty] Notification pagerDuty + * @property {flyteidl.admin.ISlackNotification|null} [slack] Notification slack + */ + + /** + * Constructs a new Notification. + * @memberof flyteidl.admin + * @classdesc Represents a Notification. + * @implements INotification + * @constructor + * @param {flyteidl.admin.INotification=} [properties] Properties to set + */ + function Notification(properties) { + this.phases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Notification phases. + * @member {Array.} phases + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.phases = $util.emptyArray; + + /** + * Notification email. + * @member {flyteidl.admin.IEmailNotification|null|undefined} email + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.email = null; + + /** + * Notification pagerDuty. + * @member {flyteidl.admin.IPagerDutyNotification|null|undefined} pagerDuty + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.pagerDuty = null; + + /** + * Notification slack. + * @member {flyteidl.admin.ISlackNotification|null|undefined} slack + * @memberof flyteidl.admin.Notification + * @instance + */ + Notification.prototype.slack = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Notification type. + * @member {"email"|"pagerDuty"|"slack"|undefined} type + * @memberof flyteidl.admin.Notification + * @instance + */ + Object.defineProperty(Notification.prototype, "type", { + get: $util.oneOfGetter($oneOfFields = ["email", "pagerDuty", "slack"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Notification instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Notification + * @static + * @param {flyteidl.admin.INotification=} [properties] Properties to set + * @returns {flyteidl.admin.Notification} Notification instance + */ + Notification.create = function create(properties) { + return new Notification(properties); + }; + + /** + * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Notification + * @static + * @param {flyteidl.admin.INotification} message Notification message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Notification.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.phases != null && message.phases.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.phases.length; ++i) + writer.int32(message.phases[i]); + writer.ldelim(); + } + if (message.email != null && message.hasOwnProperty("email")) + $root.flyteidl.admin.EmailNotification.encode(message.email, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) + $root.flyteidl.admin.PagerDutyNotification.encode(message.pagerDuty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.slack != null && message.hasOwnProperty("slack")) + $root.flyteidl.admin.SlackNotification.encode(message.slack, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Notification message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Notification + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Notification} Notification + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Notification.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Notification(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.phases && message.phases.length)) + message.phases = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.phases.push(reader.int32()); + } else + message.phases.push(reader.int32()); + break; + case 2: + message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); + break; + case 3: + message.pagerDuty = $root.flyteidl.admin.PagerDutyNotification.decode(reader, reader.uint32()); + break; + case 4: + message.slack = $root.flyteidl.admin.SlackNotification.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Notification message. + * @function verify + * @memberof flyteidl.admin.Notification + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Notification.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.phases != null && message.hasOwnProperty("phases")) { + if (!Array.isArray(message.phases)) + return "phases: array expected"; + for (var i = 0; i < message.phases.length; ++i) + switch (message.phases[i]) { + default: + return "phases: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + } + if (message.email != null && message.hasOwnProperty("email")) { + properties.type = 1; + { + var error = $root.flyteidl.admin.EmailNotification.verify(message.email); + if (error) + return "email." + error; + } + } + if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.admin.PagerDutyNotification.verify(message.pagerDuty); + if (error) + return "pagerDuty." + error; + } + } + if (message.slack != null && message.hasOwnProperty("slack")) { + if (properties.type === 1) + return "type: multiple values"; + properties.type = 1; + { + var error = $root.flyteidl.admin.SlackNotification.verify(message.slack); + if (error) + return "slack." + error; + } + } + return null; + }; + + return Notification; + })(); + + admin.UrlBlob = (function() { + + /** + * Properties of an UrlBlob. + * @memberof flyteidl.admin + * @interface IUrlBlob + * @property {string|null} [url] UrlBlob url + * @property {Long|null} [bytes] UrlBlob bytes + */ + + /** + * Constructs a new UrlBlob. + * @memberof flyteidl.admin + * @classdesc Represents an UrlBlob. + * @implements IUrlBlob + * @constructor + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + */ + function UrlBlob(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UrlBlob url. + * @member {string} url + * @memberof flyteidl.admin.UrlBlob + * @instance + */ + UrlBlob.prototype.url = ""; + + /** + * UrlBlob bytes. + * @member {Long} bytes + * @memberof flyteidl.admin.UrlBlob + * @instance + */ + UrlBlob.prototype.bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new UrlBlob instance using the specified properties. + * @function create + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set + * @returns {flyteidl.admin.UrlBlob} UrlBlob instance + */ + UrlBlob.create = function create(properties) { + return new UrlBlob(properties); + }; + + /** + * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlBlob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.url != null && message.hasOwnProperty("url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); + if (message.bytes != null && message.hasOwnProperty("bytes")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bytes); + return writer; + }; + + /** + * Decodes an UrlBlob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.UrlBlob} UrlBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlBlob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.UrlBlob(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.url = reader.string(); + break; + case 2: + message.bytes = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UrlBlob message. + * @function verify + * @memberof flyteidl.admin.UrlBlob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlBlob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.url != null && message.hasOwnProperty("url")) + if (!$util.isString(message.url)) + return "url: string expected"; + if (message.bytes != null && message.hasOwnProperty("bytes")) + if (!$util.isInteger(message.bytes) && !(message.bytes && $util.isInteger(message.bytes.low) && $util.isInteger(message.bytes.high))) + return "bytes: integer|Long expected"; + return null; + }; + + return UrlBlob; + })(); + + admin.Labels = (function() { + + /** + * Properties of a Labels. + * @memberof flyteidl.admin + * @interface ILabels + * @property {Object.|null} [values] Labels values + */ + + /** + * Constructs a new Labels. + * @memberof flyteidl.admin + * @classdesc Represents a Labels. + * @implements ILabels + * @constructor + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + */ + function Labels(properties) { + this.values = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Labels values. + * @member {Object.} values + * @memberof flyteidl.admin.Labels + * @instance + */ + Labels.prototype.values = $util.emptyObject; + + /** + * Creates a new Labels instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Labels + * @static + * @param {flyteidl.admin.ILabels=} [properties] Properties to set + * @returns {flyteidl.admin.Labels} Labels instance + */ + Labels.create = function create(properties) { + return new Labels(properties); + }; + + /** + * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Labels + * @static + * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Labels.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a Labels message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Labels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Labels} Labels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Labels.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Labels(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.values === $util.emptyObject) + message.values = {}; + key = reader.string(); + reader.pos++; + message.values[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Labels message. + * @function verify + * @memberof flyteidl.admin.Labels + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Labels.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!$util.isObject(message.values)) + return "values: object expected"; + var key = Object.keys(message.values); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.values[key[i]])) + return "values: string{k:string} expected"; + } + return null; + }; + + return Labels; + })(); + + admin.Annotations = (function() { + + /** + * Properties of an Annotations. + * @memberof flyteidl.admin + * @interface IAnnotations + * @property {Object.|null} [values] Annotations values + */ + + /** + * Constructs a new Annotations. + * @memberof flyteidl.admin + * @classdesc Represents an Annotations. + * @implements IAnnotations + * @constructor + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + */ + function Annotations(properties) { + this.values = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotations values. + * @member {Object.} values + * @memberof flyteidl.admin.Annotations + * @instance + */ + Annotations.prototype.values = $util.emptyObject; + + /** + * Creates a new Annotations instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Annotations + * @static + * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set + * @returns {flyteidl.admin.Annotations} Annotations instance + */ + Annotations.create = function create(properties) { + return new Annotations(properties); + }; + + /** + * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Annotations + * @static + * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotations.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes an Annotations message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Annotations + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Annotations} Annotations + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotations.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Annotations(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.values === $util.emptyObject) + message.values = {}; + key = reader.string(); + reader.pos++; + message.values[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Annotations message. + * @function verify + * @memberof flyteidl.admin.Annotations + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotations.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!$util.isObject(message.values)) + return "values: object expected"; + var key = Object.keys(message.values); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.values[key[i]])) + return "values: string{k:string} expected"; + } + return null; + }; + + return Annotations; + })(); + + admin.Envs = (function() { + + /** + * Properties of an Envs. + * @memberof flyteidl.admin + * @interface IEnvs + * @property {Array.|null} [values] Envs values + */ + + /** + * Constructs a new Envs. + * @memberof flyteidl.admin + * @classdesc Represents an Envs. + * @implements IEnvs + * @constructor + * @param {flyteidl.admin.IEnvs=} [properties] Properties to set + */ + function Envs(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Envs values. + * @member {Array.} values + * @memberof flyteidl.admin.Envs + * @instance + */ + Envs.prototype.values = $util.emptyArray; + + /** + * Creates a new Envs instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Envs + * @static + * @param {flyteidl.admin.IEnvs=} [properties] Properties to set + * @returns {flyteidl.admin.Envs} Envs instance + */ + Envs.create = function create(properties) { + return new Envs(properties); + }; + + /** + * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Envs + * @static + * @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Envs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.flyteidl.core.KeyValuePair.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Envs message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Envs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Envs} Envs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Envs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Envs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Envs message. + * @function verify + * @memberof flyteidl.admin.Envs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Envs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.flyteidl.core.KeyValuePair.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + return Envs; + })(); + + admin.AuthRole = (function() { + + /** + * Properties of an AuthRole. + * @memberof flyteidl.admin + * @interface IAuthRole + * @property {string|null} [assumableIamRole] AuthRole assumableIamRole + * @property {string|null} [kubernetesServiceAccount] AuthRole kubernetesServiceAccount + */ + + /** + * Constructs a new AuthRole. + * @memberof flyteidl.admin + * @classdesc Represents an AuthRole. + * @implements IAuthRole + * @constructor + * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set + */ + function AuthRole(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuthRole assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.AuthRole + * @instance + */ + AuthRole.prototype.assumableIamRole = ""; + + /** + * AuthRole kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.AuthRole + * @instance + */ + AuthRole.prototype.kubernetesServiceAccount = ""; + + /** + * Creates a new AuthRole instance using the specified properties. + * @function create + * @memberof flyteidl.admin.AuthRole + * @static + * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set + * @returns {flyteidl.admin.AuthRole} AuthRole instance + */ + AuthRole.create = function create(properties) { + return new AuthRole(properties); + }; + + /** + * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.AuthRole + * @static + * @param {flyteidl.admin.IAuthRole} message AuthRole message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuthRole.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); + return writer; + }; + + /** + * Decodes an AuthRole message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.AuthRole + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.AuthRole} AuthRole + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuthRole.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AuthRole(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.assumableIamRole = reader.string(); + break; + case 2: + message.kubernetesServiceAccount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an AuthRole message. + * @function verify + * @memberof flyteidl.admin.AuthRole + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuthRole.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + if (!$util.isString(message.assumableIamRole)) + return "assumableIamRole: string expected"; + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + if (!$util.isString(message.kubernetesServiceAccount)) + return "kubernetesServiceAccount: string expected"; + return null; + }; + + return AuthRole; + })(); + + admin.RawOutputDataConfig = (function() { + + /** + * Properties of a RawOutputDataConfig. + * @memberof flyteidl.admin + * @interface IRawOutputDataConfig + * @property {string|null} [outputLocationPrefix] RawOutputDataConfig outputLocationPrefix + */ + + /** + * Constructs a new RawOutputDataConfig. + * @memberof flyteidl.admin + * @classdesc Represents a RawOutputDataConfig. + * @implements IRawOutputDataConfig + * @constructor + * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set + */ + function RawOutputDataConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RawOutputDataConfig outputLocationPrefix. + * @member {string} outputLocationPrefix + * @memberof flyteidl.admin.RawOutputDataConfig + * @instance + */ + RawOutputDataConfig.prototype.outputLocationPrefix = ""; + + /** + * Creates a new RawOutputDataConfig instance using the specified properties. + * @function create + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set + * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig instance + */ + RawOutputDataConfig.create = function create(properties) { + return new RawOutputDataConfig(properties); + }; + + /** + * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {flyteidl.admin.IRawOutputDataConfig} message RawOutputDataConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RawOutputDataConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputLocationPrefix); + return writer; + }; + + /** + * Decodes a RawOutputDataConfig message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RawOutputDataConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.RawOutputDataConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputLocationPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a RawOutputDataConfig message. + * @function verify + * @memberof flyteidl.admin.RawOutputDataConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RawOutputDataConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) + if (!$util.isString(message.outputLocationPrefix)) + return "outputLocationPrefix: string expected"; + return null; + }; + + return RawOutputDataConfig; + })(); + + admin.FlyteURLs = (function() { + + /** + * Properties of a FlyteURLs. + * @memberof flyteidl.admin + * @interface IFlyteURLs + * @property {string|null} [inputs] FlyteURLs inputs + * @property {string|null} [outputs] FlyteURLs outputs + * @property {string|null} [deck] FlyteURLs deck + */ + + /** + * Constructs a new FlyteURLs. + * @memberof flyteidl.admin + * @classdesc Represents a FlyteURLs. + * @implements IFlyteURLs + * @constructor + * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set + */ + function FlyteURLs(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FlyteURLs inputs. + * @member {string} inputs + * @memberof flyteidl.admin.FlyteURLs + * @instance + */ + FlyteURLs.prototype.inputs = ""; + + /** + * FlyteURLs outputs. + * @member {string} outputs + * @memberof flyteidl.admin.FlyteURLs + * @instance + */ + FlyteURLs.prototype.outputs = ""; + + /** + * FlyteURLs deck. + * @member {string} deck + * @memberof flyteidl.admin.FlyteURLs + * @instance + */ + FlyteURLs.prototype.deck = ""; + + /** + * Creates a new FlyteURLs instance using the specified properties. + * @function create + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set + * @returns {flyteidl.admin.FlyteURLs} FlyteURLs instance + */ + FlyteURLs.create = function create(properties) { + return new FlyteURLs(properties); + }; + + /** + * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {flyteidl.admin.IFlyteURLs} message FlyteURLs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FlyteURLs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputs); + if (message.outputs != null && message.hasOwnProperty("outputs")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputs); + if (message.deck != null && message.hasOwnProperty("deck")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deck); + return writer; + }; + + /** + * Decodes a FlyteURLs message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.FlyteURLs} FlyteURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FlyteURLs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FlyteURLs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = reader.string(); + break; + case 2: + message.outputs = reader.string(); + break; + case 3: + message.deck = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FlyteURLs message. + * @function verify + * @memberof flyteidl.admin.FlyteURLs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FlyteURLs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) + if (!$util.isString(message.inputs)) + return "inputs: string expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) + if (!$util.isString(message.outputs)) + return "outputs: string expected"; + if (message.deck != null && message.hasOwnProperty("deck")) + if (!$util.isString(message.deck)) + return "deck: string expected"; + return null; + }; + + return FlyteURLs; + })(); + + admin.DescriptionEntity = (function() { + + /** + * Properties of a DescriptionEntity. + * @memberof flyteidl.admin + * @interface IDescriptionEntity + * @property {flyteidl.core.IIdentifier|null} [id] DescriptionEntity id + * @property {string|null} [shortDescription] DescriptionEntity shortDescription + * @property {flyteidl.admin.IDescription|null} [longDescription] DescriptionEntity longDescription + * @property {flyteidl.admin.ISourceCode|null} [sourceCode] DescriptionEntity sourceCode + * @property {Array.|null} [tags] DescriptionEntity tags + */ + + /** + * Constructs a new DescriptionEntity. + * @memberof flyteidl.admin + * @classdesc Represents a DescriptionEntity. + * @implements IDescriptionEntity + * @constructor + * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set + */ + function DescriptionEntity(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptionEntity id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.id = null; + + /** + * DescriptionEntity shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.shortDescription = ""; + + /** + * DescriptionEntity longDescription. + * @member {flyteidl.admin.IDescription|null|undefined} longDescription + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.longDescription = null; + + /** + * DescriptionEntity sourceCode. + * @member {flyteidl.admin.ISourceCode|null|undefined} sourceCode + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.sourceCode = null; + + /** + * DescriptionEntity tags. + * @member {Array.} tags + * @memberof flyteidl.admin.DescriptionEntity + * @instance + */ + DescriptionEntity.prototype.tags = $util.emptyArray; + + /** + * Creates a new DescriptionEntity instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity instance + */ + DescriptionEntity.create = function create(properties) { + return new DescriptionEntity(properties); + }; + + /** + * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {flyteidl.admin.IDescriptionEntity} message DescriptionEntity message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptionEntity.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.shortDescription); + if (message.longDescription != null && message.hasOwnProperty("longDescription")) + $root.flyteidl.admin.Description.encode(message.longDescription, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) + $root.flyteidl.admin.SourceCode.encode(message.sourceCode, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.tags[i]); + return writer; + }; + + /** + * Decodes a DescriptionEntity message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptionEntity.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntity(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.shortDescription = reader.string(); + break; + case 3: + message.longDescription = $root.flyteidl.admin.Description.decode(reader, reader.uint32()); + break; + case 4: + message.sourceCode = $root.flyteidl.admin.SourceCode.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptionEntity message. + * @function verify + * @memberof flyteidl.admin.DescriptionEntity + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptionEntity.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; + if (message.longDescription != null && message.hasOwnProperty("longDescription")) { + var error = $root.flyteidl.admin.Description.verify(message.longDescription); + if (error) + return "longDescription." + error; + } + if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) { + var error = $root.flyteidl.admin.SourceCode.verify(message.sourceCode); + if (error) + return "sourceCode." + error; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + return DescriptionEntity; + })(); + + /** + * DescriptionFormat enum. + * @name flyteidl.admin.DescriptionFormat + * @enum {string} + * @property {number} DESCRIPTION_FORMAT_UNKNOWN=0 DESCRIPTION_FORMAT_UNKNOWN value + * @property {number} DESCRIPTION_FORMAT_MARKDOWN=1 DESCRIPTION_FORMAT_MARKDOWN value + * @property {number} DESCRIPTION_FORMAT_HTML=2 DESCRIPTION_FORMAT_HTML value + * @property {number} DESCRIPTION_FORMAT_RST=3 DESCRIPTION_FORMAT_RST value + */ + admin.DescriptionFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DESCRIPTION_FORMAT_UNKNOWN"] = 0; + values[valuesById[1] = "DESCRIPTION_FORMAT_MARKDOWN"] = 1; + values[valuesById[2] = "DESCRIPTION_FORMAT_HTML"] = 2; + values[valuesById[3] = "DESCRIPTION_FORMAT_RST"] = 3; + return values; + })(); + + admin.Description = (function() { + + /** + * Properties of a Description. + * @memberof flyteidl.admin + * @interface IDescription + * @property {string|null} [value] Description value + * @property {string|null} [uri] Description uri + * @property {flyteidl.admin.DescriptionFormat|null} [format] Description format + * @property {string|null} [iconLink] Description iconLink + */ + + /** + * Constructs a new Description. + * @memberof flyteidl.admin + * @classdesc Represents a Description. + * @implements IDescription + * @constructor + * @param {flyteidl.admin.IDescription=} [properties] Properties to set + */ + function Description(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Description value. + * @member {string} value + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.value = ""; + + /** + * Description uri. + * @member {string} uri + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.uri = ""; + + /** + * Description format. + * @member {flyteidl.admin.DescriptionFormat} format + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.format = 0; + + /** + * Description iconLink. + * @member {string} iconLink + * @memberof flyteidl.admin.Description + * @instance + */ + Description.prototype.iconLink = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Description content. + * @member {"value"|"uri"|undefined} content + * @memberof flyteidl.admin.Description + * @instance + */ + Object.defineProperty(Description.prototype, "content", { + get: $util.oneOfGetter($oneOfFields = ["value", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Description instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Description + * @static + * @param {flyteidl.admin.IDescription=} [properties] Properties to set + * @returns {flyteidl.admin.Description} Description instance + */ + Description.create = function create(properties) { + return new Description(properties); + }; + + /** + * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Description + * @static + * @param {flyteidl.admin.IDescription} message Description message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Description.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + if (message.format != null && message.hasOwnProperty("format")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.format); + if (message.iconLink != null && message.hasOwnProperty("iconLink")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.iconLink); + return writer; + }; + + /** + * Decodes a Description message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Description + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Description} Description + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Description.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Description(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + case 2: + message.uri = reader.string(); + break; + case 3: + message.format = reader.int32(); + break; + case 4: + message.iconLink = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Description message. + * @function verify + * @memberof flyteidl.admin.Description + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Description.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.content = 1; + if (!$util.isString(message.value)) + return "value: string expected"; + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.content === 1) + return "content: multiple values"; + properties.content = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + if (message.format != null && message.hasOwnProperty("format")) + switch (message.format) { + default: + return "format: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.iconLink != null && message.hasOwnProperty("iconLink")) + if (!$util.isString(message.iconLink)) + return "iconLink: string expected"; + return null; + }; + + return Description; + })(); + + admin.SourceCode = (function() { + + /** + * Properties of a SourceCode. + * @memberof flyteidl.admin + * @interface ISourceCode + * @property {string|null} [link] SourceCode link + */ + + /** + * Constructs a new SourceCode. + * @memberof flyteidl.admin + * @classdesc Represents a SourceCode. + * @implements ISourceCode + * @constructor + * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set + */ + function SourceCode(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCode link. + * @member {string} link + * @memberof flyteidl.admin.SourceCode + * @instance + */ + SourceCode.prototype.link = ""; + + /** + * Creates a new SourceCode instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SourceCode + * @static + * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set + * @returns {flyteidl.admin.SourceCode} SourceCode instance + */ + SourceCode.create = function create(properties) { + return new SourceCode(properties); + }; + + /** + * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SourceCode + * @static + * @param {flyteidl.admin.ISourceCode} message SourceCode message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCode.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.link != null && message.hasOwnProperty("link")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); + return writer; + }; + + /** + * Decodes a SourceCode message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SourceCode + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SourceCode} SourceCode + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCode.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SourceCode(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.link = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SourceCode message. + * @function verify + * @memberof flyteidl.admin.SourceCode + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCode.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.link != null && message.hasOwnProperty("link")) + if (!$util.isString(message.link)) + return "link: string expected"; + return null; + }; + + return SourceCode; + })(); + + admin.DescriptionEntityList = (function() { + + /** + * Properties of a DescriptionEntityList. + * @memberof flyteidl.admin + * @interface IDescriptionEntityList + * @property {Array.|null} [descriptionEntities] DescriptionEntityList descriptionEntities + * @property {string|null} [token] DescriptionEntityList token + */ + + /** + * Constructs a new DescriptionEntityList. + * @memberof flyteidl.admin + * @classdesc Represents a DescriptionEntityList. + * @implements IDescriptionEntityList + * @constructor + * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set + */ + function DescriptionEntityList(properties) { + this.descriptionEntities = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptionEntityList descriptionEntities. + * @member {Array.} descriptionEntities + * @memberof flyteidl.admin.DescriptionEntityList + * @instance + */ + DescriptionEntityList.prototype.descriptionEntities = $util.emptyArray; + + /** + * DescriptionEntityList token. + * @member {string} token + * @memberof flyteidl.admin.DescriptionEntityList + * @instance + */ + DescriptionEntityList.prototype.token = ""; + + /** + * Creates a new DescriptionEntityList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList instance + */ + DescriptionEntityList.create = function create(properties) { + return new DescriptionEntityList(properties); + }; + + /** + * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {flyteidl.admin.IDescriptionEntityList} message DescriptionEntityList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptionEntityList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.descriptionEntities != null && message.descriptionEntities.length) + for (var i = 0; i < message.descriptionEntities.length; ++i) + $root.flyteidl.admin.DescriptionEntity.encode(message.descriptionEntities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a DescriptionEntityList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptionEntityList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.descriptionEntities && message.descriptionEntities.length)) + message.descriptionEntities = []; + message.descriptionEntities.push($root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptionEntityList message. + * @function verify + * @memberof flyteidl.admin.DescriptionEntityList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptionEntityList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.descriptionEntities != null && message.hasOwnProperty("descriptionEntities")) { + if (!Array.isArray(message.descriptionEntities)) + return "descriptionEntities: array expected"; + for (var i = 0; i < message.descriptionEntities.length; ++i) { + var error = $root.flyteidl.admin.DescriptionEntity.verify(message.descriptionEntities[i]); + if (error) + return "descriptionEntities." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return DescriptionEntityList; + })(); + + admin.DescriptionEntityListRequest = (function() { + + /** + * Properties of a DescriptionEntityListRequest. + * @memberof flyteidl.admin + * @interface IDescriptionEntityListRequest + * @property {flyteidl.core.ResourceType|null} [resourceType] DescriptionEntityListRequest resourceType + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] DescriptionEntityListRequest id + * @property {number|null} [limit] DescriptionEntityListRequest limit + * @property {string|null} [token] DescriptionEntityListRequest token + * @property {string|null} [filters] DescriptionEntityListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] DescriptionEntityListRequest sortBy + */ + + /** + * Constructs a new DescriptionEntityListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a DescriptionEntityListRequest. + * @implements IDescriptionEntityListRequest + * @constructor + * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set + */ + function DescriptionEntityListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptionEntityListRequest resourceType. + * @member {flyteidl.core.ResourceType} resourceType + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.resourceType = 0; + + /** + * DescriptionEntityListRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.id = null; + + /** + * DescriptionEntityListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.limit = 0; + + /** + * DescriptionEntityListRequest token. + * @member {string} token + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.token = ""; + + /** + * DescriptionEntityListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.filters = ""; + + /** + * DescriptionEntityListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @instance + */ + DescriptionEntityListRequest.prototype.sortBy = null; + + /** + * Creates a new DescriptionEntityListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest instance + */ + DescriptionEntityListRequest.create = function create(properties) { + return new DescriptionEntityListRequest(properties); + }; + + /** + * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {flyteidl.admin.IDescriptionEntityListRequest} message DescriptionEntityListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptionEntityListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptionEntityListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.filters = reader.string(); + break; + case 6: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptionEntityListRequest message. + * @function verify + * @memberof flyteidl.admin.DescriptionEntityListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptionEntityListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return DescriptionEntityListRequest; + })(); + + admin.EventErrorAlreadyInTerminalState = (function() { + + /** + * Properties of an EventErrorAlreadyInTerminalState. + * @memberof flyteidl.admin + * @interface IEventErrorAlreadyInTerminalState + * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase + */ + + /** + * Constructs a new EventErrorAlreadyInTerminalState. + * @memberof flyteidl.admin + * @classdesc Represents an EventErrorAlreadyInTerminalState. + * @implements IEventErrorAlreadyInTerminalState + * @constructor + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + */ + function EventErrorAlreadyInTerminalState(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventErrorAlreadyInTerminalState currentPhase. + * @member {string} currentPhase + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @instance + */ + EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; + + /** + * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance + */ + EventErrorAlreadyInTerminalState.create = function create(properties) { + return new EventErrorAlreadyInTerminalState(properties); + }; + + /** + * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventErrorAlreadyInTerminalState.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPhase); + return writer; + }; + + /** + * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventErrorAlreadyInTerminalState.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorAlreadyInTerminalState(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.currentPhase = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventErrorAlreadyInTerminalState message. + * @function verify + * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventErrorAlreadyInTerminalState.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) + if (!$util.isString(message.currentPhase)) + return "currentPhase: string expected"; + return null; + }; + + return EventErrorAlreadyInTerminalState; + })(); + + admin.EventErrorIncompatibleCluster = (function() { + + /** + * Properties of an EventErrorIncompatibleCluster. + * @memberof flyteidl.admin + * @interface IEventErrorIncompatibleCluster + * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster + */ + + /** + * Constructs a new EventErrorIncompatibleCluster. + * @memberof flyteidl.admin + * @classdesc Represents an EventErrorIncompatibleCluster. + * @implements IEventErrorIncompatibleCluster + * @constructor + * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set + */ + function EventErrorIncompatibleCluster(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventErrorIncompatibleCluster cluster. + * @member {string} cluster + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @instance + */ + EventErrorIncompatibleCluster.prototype.cluster = ""; + + /** + * Creates a new EventErrorIncompatibleCluster instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set + * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance + */ + EventErrorIncompatibleCluster.create = function create(properties) { + return new EventErrorIncompatibleCluster(properties); + }; + + /** + * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventErrorIncompatibleCluster.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cluster != null && message.hasOwnProperty("cluster")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster); + return writer; + }; + + /** + * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventErrorIncompatibleCluster.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorIncompatibleCluster(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cluster = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventErrorIncompatibleCluster message. + * @function verify + * @memberof flyteidl.admin.EventErrorIncompatibleCluster + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventErrorIncompatibleCluster.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cluster != null && message.hasOwnProperty("cluster")) + if (!$util.isString(message.cluster)) + return "cluster: string expected"; + return null; + }; + + return EventErrorIncompatibleCluster; + })(); + + admin.EventFailureReason = (function() { + + /** + * Properties of an EventFailureReason. + * @memberof flyteidl.admin + * @interface IEventFailureReason + * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState + * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster + */ + + /** + * Constructs a new EventFailureReason. + * @memberof flyteidl.admin + * @classdesc Represents an EventFailureReason. + * @implements IEventFailureReason + * @constructor + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + */ + function EventFailureReason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EventFailureReason alreadyInTerminalState. + * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + EventFailureReason.prototype.alreadyInTerminalState = null; + + /** + * EventFailureReason incompatibleCluster. + * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + EventFailureReason.prototype.incompatibleCluster = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EventFailureReason reason. + * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason + * @memberof flyteidl.admin.EventFailureReason + * @instance + */ + Object.defineProperty(EventFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EventFailureReason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance + */ + EventFailureReason.create = function create(properties) { + return new EventFailureReason(properties); + }; + + /** + * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EventFailureReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) + $root.flyteidl.admin.EventErrorAlreadyInTerminalState.encode(message.alreadyInTerminalState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) + $root.flyteidl.admin.EventErrorIncompatibleCluster.encode(message.incompatibleCluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EventFailureReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EventFailureReason} EventFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EventFailureReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventFailureReason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); + break; + case 2: + message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EventFailureReason message. + * @function verify + * @memberof flyteidl.admin.EventFailureReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EventFailureReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) { + properties.reason = 1; + { + var error = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.verify(message.alreadyInTerminalState); + if (error) + return "alreadyInTerminalState." + error; + } + } + if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) { + if (properties.reason === 1) + return "reason: multiple values"; + properties.reason = 1; + { + var error = $root.flyteidl.admin.EventErrorIncompatibleCluster.verify(message.incompatibleCluster); + if (error) + return "incompatibleCluster." + error; + } + } + return null; + }; + + return EventFailureReason; + })(); + + admin.WorkflowExecutionEventRequest = (function() { + + /** + * Properties of a WorkflowExecutionEventRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionEventRequest + * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId + * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event + */ + + /** + * Constructs a new WorkflowExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionEventRequest. + * @implements IWorkflowExecutionEventRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + */ + function WorkflowExecutionEventRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @instance + */ + WorkflowExecutionEventRequest.prototype.requestId = ""; + + /** + * WorkflowExecutionEventRequest event. + * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @instance + */ + WorkflowExecutionEventRequest.prototype.event = null; + + /** + * Creates a new WorkflowExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest instance + */ + WorkflowExecutionEventRequest.create = function create(properties) { + return new WorkflowExecutionEventRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} message WorkflowExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.WorkflowExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return WorkflowExecutionEventRequest; + })(); + + admin.WorkflowExecutionEventResponse = (function() { + + /** + * Properties of a WorkflowExecutionEventResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionEventResponse + */ + + /** + * Constructs a new WorkflowExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionEventResponse. + * @implements IWorkflowExecutionEventResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + */ + function WorkflowExecutionEventResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance + */ + WorkflowExecutionEventResponse.create = function create(properties) { + return new WorkflowExecutionEventResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowExecutionEventResponse; + })(); + + admin.NodeExecutionEventRequest = (function() { + + /** + * Properties of a NodeExecutionEventRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionEventRequest + * @property {string|null} [requestId] NodeExecutionEventRequest requestId + * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event + */ + + /** + * Constructs a new NodeExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionEventRequest. + * @implements INodeExecutionEventRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + */ + function NodeExecutionEventRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @instance + */ + NodeExecutionEventRequest.prototype.requestId = ""; + + /** + * NodeExecutionEventRequest event. + * @member {flyteidl.event.INodeExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @instance + */ + NodeExecutionEventRequest.prototype.event = null; + + /** + * Creates a new NodeExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance + */ + NodeExecutionEventRequest.create = function create(properties) { + return new NodeExecutionEventRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.NodeExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return NodeExecutionEventRequest; + })(); + + admin.NodeExecutionEventResponse = (function() { + + /** + * Properties of a NodeExecutionEventResponse. + * @memberof flyteidl.admin + * @interface INodeExecutionEventResponse + */ + + /** + * Constructs a new NodeExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionEventResponse. + * @implements INodeExecutionEventResponse + * @constructor + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + */ + function NodeExecutionEventResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new NodeExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance + */ + NodeExecutionEventResponse.create = function create(properties) { + return new NodeExecutionEventResponse(properties); + }; + + /** + * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return NodeExecutionEventResponse; + })(); + + admin.TaskExecutionEventRequest = (function() { + + /** + * Properties of a TaskExecutionEventRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionEventRequest + * @property {string|null} [requestId] TaskExecutionEventRequest requestId + * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event + */ + + /** + * Constructs a new TaskExecutionEventRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionEventRequest. + * @implements ITaskExecutionEventRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + */ + function TaskExecutionEventRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionEventRequest requestId. + * @member {string} requestId + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @instance + */ + TaskExecutionEventRequest.prototype.requestId = ""; + + /** + * TaskExecutionEventRequest event. + * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} event + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @instance + */ + TaskExecutionEventRequest.prototype.event = null; + + /** + * Creates a new TaskExecutionEventRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance + */ + TaskExecutionEventRequest.create = function create(properties) { + return new TaskExecutionEventRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEventRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.requestId != null && message.hasOwnProperty("requestId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); + if (message.event != null && message.hasOwnProperty("event")) + $root.flyteidl.event.TaskExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEventRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.requestId = reader.string(); + break; + case 2: + message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEventRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionEventRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEventRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.requestId != null && message.hasOwnProperty("requestId")) + if (!$util.isString(message.requestId)) + return "requestId: string expected"; + if (message.event != null && message.hasOwnProperty("event")) { + var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.event); + if (error) + return "event." + error; + } + return null; + }; + + return TaskExecutionEventRequest; + })(); + + admin.TaskExecutionEventResponse = (function() { + + /** + * Properties of a TaskExecutionEventResponse. + * @memberof flyteidl.admin + * @interface ITaskExecutionEventResponse + */ + + /** + * Constructs a new TaskExecutionEventResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionEventResponse. + * @implements ITaskExecutionEventResponse + * @constructor + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + */ + function TaskExecutionEventResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskExecutionEventResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance + */ + TaskExecutionEventResponse.create = function create(properties) { + return new TaskExecutionEventResponse(properties); + }; + + /** + * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionEventResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionEventResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionEventResponse message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionEventResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionEventResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskExecutionEventResponse; + })(); + + admin.ExecutionCreateRequest = (function() { + + /** + * Properties of an ExecutionCreateRequest. + * @memberof flyteidl.admin + * @interface IExecutionCreateRequest + * @property {string|null} [project] ExecutionCreateRequest project + * @property {string|null} [domain] ExecutionCreateRequest domain + * @property {string|null} [name] ExecutionCreateRequest name + * @property {flyteidl.admin.IExecutionSpec|null} [spec] ExecutionCreateRequest spec + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionCreateRequest inputs + * @property {string|null} [org] ExecutionCreateRequest org + */ + + /** + * Constructs a new ExecutionCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateRequest. + * @implements IExecutionCreateRequest + * @constructor + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + */ + function ExecutionCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionCreateRequest project. + * @member {string} project + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.project = ""; + + /** + * ExecutionCreateRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.domain = ""; + + /** + * ExecutionCreateRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.name = ""; + + /** + * ExecutionCreateRequest spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.spec = null; + + /** + * ExecutionCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.inputs = null; + + /** + * ExecutionCreateRequest org. + * @member {string} org + * @memberof flyteidl.admin.ExecutionCreateRequest + * @instance + */ + ExecutionCreateRequest.prototype.org = ""; + + /** + * Creates a new ExecutionCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance + */ + ExecutionCreateRequest.create = function create(properties) { + return new ExecutionCreateRequest(properties); + }; + + /** + * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); + return writer; + }; + + /** + * Decodes an ExecutionCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); + break; + case 5: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 6: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionCreateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ExecutionCreateRequest; + })(); + + admin.ExecutionRelaunchRequest = (function() { + + /** + * Properties of an ExecutionRelaunchRequest. + * @memberof flyteidl.admin + * @interface IExecutionRelaunchRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRelaunchRequest id + * @property {string|null} [name] ExecutionRelaunchRequest name + * @property {boolean|null} [overwriteCache] ExecutionRelaunchRequest overwriteCache + */ + + /** + * Constructs a new ExecutionRelaunchRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionRelaunchRequest. + * @implements IExecutionRelaunchRequest + * @constructor + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + */ + function ExecutionRelaunchRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionRelaunchRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.id = null; + + /** + * ExecutionRelaunchRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.name = ""; + + /** + * ExecutionRelaunchRequest overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @instance + */ + ExecutionRelaunchRequest.prototype.overwriteCache = false; + + /** + * Creates a new ExecutionRelaunchRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance + */ + ExecutionRelaunchRequest.create = function create(properties) { + return new ExecutionRelaunchRequest(properties); + }; + + /** + * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionRelaunchRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.overwriteCache); + return writer; + }; + + /** + * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionRelaunchRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRelaunchRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 3: + message.name = reader.string(); + break; + case 4: + message.overwriteCache = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionRelaunchRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionRelaunchRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionRelaunchRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + return null; + }; + + return ExecutionRelaunchRequest; + })(); + + admin.ExecutionRecoverRequest = (function() { + + /** + * Properties of an ExecutionRecoverRequest. + * @memberof flyteidl.admin + * @interface IExecutionRecoverRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRecoverRequest id + * @property {string|null} [name] ExecutionRecoverRequest name + * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionRecoverRequest metadata + */ + + /** + * Constructs a new ExecutionRecoverRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionRecoverRequest. + * @implements IExecutionRecoverRequest + * @constructor + * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set + */ + function ExecutionRecoverRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionRecoverRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @instance + */ + ExecutionRecoverRequest.prototype.id = null; + + /** + * ExecutionRecoverRequest name. + * @member {string} name + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @instance + */ + ExecutionRecoverRequest.prototype.name = ""; + + /** + * ExecutionRecoverRequest metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @instance + */ + ExecutionRecoverRequest.prototype.metadata = null; + + /** + * Creates a new ExecutionRecoverRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest instance + */ + ExecutionRecoverRequest.create = function create(properties) { + return new ExecutionRecoverRequest(properties); + }; + + /** + * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {flyteidl.admin.IExecutionRecoverRequest} message ExecutionRecoverRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionRecoverRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionRecoverRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRecoverRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionRecoverRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionRecoverRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionRecoverRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return ExecutionRecoverRequest; + })(); + + admin.ExecutionCreateResponse = (function() { + + /** + * Properties of an ExecutionCreateResponse. + * @memberof flyteidl.admin + * @interface IExecutionCreateResponse + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id + */ + + /** + * Constructs a new ExecutionCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionCreateResponse. + * @implements IExecutionCreateResponse + * @constructor + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + */ + function ExecutionCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionCreateResponse id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionCreateResponse + * @instance + */ + ExecutionCreateResponse.prototype.id = null; + + /** + * Creates a new ExecutionCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance + */ + ExecutionCreateResponse.create = function create(properties) { + return new ExecutionCreateResponse(properties); + }; + + /** + * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionCreateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ExecutionCreateResponse; + })(); + + admin.WorkflowExecutionGetRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id + */ + + /** + * Constructs a new WorkflowExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetRequest. + * @implements IWorkflowExecutionGetRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @instance + */ + WorkflowExecutionGetRequest.prototype.id = null; + + /** + * Creates a new WorkflowExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance + */ + WorkflowExecutionGetRequest.create = function create(properties) { + return new WorkflowExecutionGetRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowExecutionGetRequest; + })(); + + admin.Execution = (function() { + + /** + * Properties of an Execution. + * @memberof flyteidl.admin + * @interface IExecution + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] Execution id + * @property {flyteidl.admin.IExecutionSpec|null} [spec] Execution spec + * @property {flyteidl.admin.IExecutionClosure|null} [closure] Execution closure + */ + + /** + * Constructs a new Execution. + * @memberof flyteidl.admin + * @classdesc Represents an Execution. + * @implements IExecution + * @constructor + * @param {flyteidl.admin.IExecution=} [properties] Properties to set + */ + function Execution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Execution id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.id = null; + + /** + * Execution spec. + * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.spec = null; + + /** + * Execution closure. + * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.Execution + * @instance + */ + Execution.prototype.closure = null; + + /** + * Creates a new Execution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Execution + * @static + * @param {flyteidl.admin.IExecution=} [properties] Properties to set + * @returns {flyteidl.admin.Execution} Execution instance + */ + Execution.create = function create(properties) { + return new Execution(properties); + }; + + /** + * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Execution + * @static + * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Execution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.ExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an Execution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Execution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Execution} Execution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Execution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Execution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); + break; + case 3: + message.closure = $root.flyteidl.admin.ExecutionClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Execution message. + * @function verify + * @memberof flyteidl.admin.Execution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Execution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.ExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return Execution; + })(); + + admin.ExecutionList = (function() { + + /** + * Properties of an ExecutionList. + * @memberof flyteidl.admin + * @interface IExecutionList + * @property {Array.|null} [executions] ExecutionList executions + * @property {string|null} [token] ExecutionList token + */ + + /** + * Constructs a new ExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionList. + * @implements IExecutionList + * @constructor + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + */ + function ExecutionList(properties) { + this.executions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionList executions. + * @member {Array.} executions + * @memberof flyteidl.admin.ExecutionList + * @instance + */ + ExecutionList.prototype.executions = $util.emptyArray; + + /** + * ExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.ExecutionList + * @instance + */ + ExecutionList.prototype.token = ""; + + /** + * Creates a new ExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionList} ExecutionList instance + */ + ExecutionList.create = function create(properties) { + return new ExecutionList(properties); + }; + + /** + * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.flyteidl.admin.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes an ExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionList} ExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.flyteidl.admin.Execution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionList message. + * @function verify + * @memberof flyteidl.admin.ExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.flyteidl.admin.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return ExecutionList; + })(); + + admin.LiteralMapBlob = (function() { + + /** + * Properties of a LiteralMapBlob. + * @memberof flyteidl.admin + * @interface ILiteralMapBlob + * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values + * @property {string|null} [uri] LiteralMapBlob uri + */ + + /** + * Constructs a new LiteralMapBlob. + * @memberof flyteidl.admin + * @classdesc Represents a LiteralMapBlob. + * @implements ILiteralMapBlob + * @constructor + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + */ + function LiteralMapBlob(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LiteralMapBlob values. + * @member {flyteidl.core.ILiteralMap|null|undefined} values + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + LiteralMapBlob.prototype.values = null; + + /** + * LiteralMapBlob uri. + * @member {string} uri + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + LiteralMapBlob.prototype.uri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * LiteralMapBlob data. + * @member {"values"|"uri"|undefined} data + * @memberof flyteidl.admin.LiteralMapBlob + * @instance + */ + Object.defineProperty(LiteralMapBlob.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new LiteralMapBlob instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance + */ + LiteralMapBlob.create = function create(properties) { + return new LiteralMapBlob(properties); + }; + + /** + * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LiteralMapBlob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.hasOwnProperty("values")) + $root.flyteidl.core.LiteralMap.encode(message.values, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.uri != null && message.hasOwnProperty("uri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); + return writer; + }; + + /** + * Decodes a LiteralMapBlob message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LiteralMapBlob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LiteralMapBlob(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.values = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.uri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LiteralMapBlob message. + * @function verify + * @memberof flyteidl.admin.LiteralMapBlob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LiteralMapBlob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + properties.data = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.values); + if (error) + return "values." + error; + } + } + if (message.uri != null && message.hasOwnProperty("uri")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + if (!$util.isString(message.uri)) + return "uri: string expected"; + } + return null; + }; + + return LiteralMapBlob; + })(); + + admin.AbortMetadata = (function() { + + /** + * Properties of an AbortMetadata. + * @memberof flyteidl.admin + * @interface IAbortMetadata + * @property {string|null} [cause] AbortMetadata cause + * @property {string|null} [principal] AbortMetadata principal + */ + + /** + * Constructs a new AbortMetadata. + * @memberof flyteidl.admin + * @classdesc Represents an AbortMetadata. + * @implements IAbortMetadata + * @constructor + * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set + */ + function AbortMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AbortMetadata cause. + * @member {string} cause + * @memberof flyteidl.admin.AbortMetadata + * @instance + */ + AbortMetadata.prototype.cause = ""; + + /** + * AbortMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.AbortMetadata + * @instance + */ + AbortMetadata.prototype.principal = ""; + + /** + * Creates a new AbortMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.AbortMetadata} AbortMetadata instance + */ + AbortMetadata.create = function create(properties) { + return new AbortMetadata(properties); + }; + + /** + * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {flyteidl.admin.IAbortMetadata} message AbortMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AbortMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cause != null && message.hasOwnProperty("cause")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cause); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); + return writer; + }; + + /** + * Decodes an AbortMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.AbortMetadata} AbortMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AbortMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AbortMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cause = reader.string(); + break; + case 2: + message.principal = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an AbortMetadata message. + * @function verify + * @memberof flyteidl.admin.AbortMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AbortMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cause != null && message.hasOwnProperty("cause")) + if (!$util.isString(message.cause)) + return "cause: string expected"; + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + return null; + }; + + return AbortMetadata; + })(); + + admin.ExecutionClosure = (function() { + + /** + * Properties of an ExecutionClosure. + * @memberof flyteidl.admin + * @interface IExecutionClosure + * @property {flyteidl.admin.ILiteralMapBlob|null} [outputs] ExecutionClosure outputs + * @property {flyteidl.core.IExecutionError|null} [error] ExecutionClosure error + * @property {string|null} [abortCause] ExecutionClosure abortCause + * @property {flyteidl.admin.IAbortMetadata|null} [abortMetadata] ExecutionClosure abortMetadata + * @property {flyteidl.core.ILiteralMap|null} [outputData] ExecutionClosure outputData + * @property {flyteidl.core.ILiteralMap|null} [computedInputs] ExecutionClosure computedInputs + * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] ExecutionClosure phase + * @property {google.protobuf.ITimestamp|null} [startedAt] ExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] ExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] ExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] ExecutionClosure updatedAt + * @property {Array.|null} [notifications] ExecutionClosure notifications + * @property {flyteidl.core.IIdentifier|null} [workflowId] ExecutionClosure workflowId + * @property {flyteidl.admin.IExecutionStateChangeDetails|null} [stateChangeDetails] ExecutionClosure stateChangeDetails + */ + + /** + * Constructs a new ExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionClosure. + * @implements IExecutionClosure + * @constructor + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + */ + function ExecutionClosure(properties) { + this.notifications = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionClosure outputs. + * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.outputs = null; + + /** + * ExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.error = null; + + /** + * ExecutionClosure abortCause. + * @member {string} abortCause + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.abortCause = ""; + + /** + * ExecutionClosure abortMetadata. + * @member {flyteidl.admin.IAbortMetadata|null|undefined} abortMetadata + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.abortMetadata = null; + + /** + * ExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.outputData = null; + + /** + * ExecutionClosure computedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.computedInputs = null; + + /** + * ExecutionClosure phase. + * @member {flyteidl.core.WorkflowExecution.Phase} phase + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.phase = 0; + + /** + * ExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.startedAt = null; + + /** + * ExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.duration = null; + + /** + * ExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.createdAt = null; + + /** + * ExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.updatedAt = null; + + /** + * ExecutionClosure notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.notifications = $util.emptyArray; + + /** + * ExecutionClosure workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.workflowId = null; + + /** + * ExecutionClosure stateChangeDetails. + * @member {flyteidl.admin.IExecutionStateChangeDetails|null|undefined} stateChangeDetails + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + ExecutionClosure.prototype.stateChangeDetails = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecutionClosure outputResult. + * @member {"outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"|undefined} outputResult + * @memberof flyteidl.admin.ExecutionClosure + * @instance + */ + Object.defineProperty(ExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputs", "error", "abortCause", "abortMetadata", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance + */ + ExecutionClosure.create = function create(properties) { + return new ExecutionClosure(properties); + }; + + /** + * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.LiteralMapBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.computedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.abortCause != null && message.hasOwnProperty("abortCause")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.abortCause); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) + $root.flyteidl.admin.AbortMetadata.encode(message.abortMetadata, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) + $root.flyteidl.admin.ExecutionStateChangeDetails.encode(message.stateChangeDetails, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputs = $root.flyteidl.admin.LiteralMapBlob.decode(reader, reader.uint32()); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 10: + message.abortCause = reader.string(); + break; + case 12: + message.abortMetadata = $root.flyteidl.admin.AbortMetadata.decode(reader, reader.uint32()); + break; + case 13: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.computedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.phase = reader.int32(); + break; + case 5: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + case 11: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 14: + message.stateChangeDetails = $root.flyteidl.admin.ExecutionStateChangeDetails.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.ExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + properties.outputResult = 1; + { + var error = $root.flyteidl.admin.LiteralMapBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.abortCause != null && message.hasOwnProperty("abortCause")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + if (!$util.isString(message.abortCause)) + return "abortCause: string expected"; + } + if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.admin.AbortMetadata.verify(message.abortMetadata); + if (error) + return "abortMetadata." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.computedInputs); + if (error) + return "computedInputs." + error; + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + var error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) { + var error = $root.flyteidl.admin.ExecutionStateChangeDetails.verify(message.stateChangeDetails); + if (error) + return "stateChangeDetails." + error; + } + return null; + }; + + return ExecutionClosure; + })(); + + admin.SystemMetadata = (function() { + + /** + * Properties of a SystemMetadata. + * @memberof flyteidl.admin + * @interface ISystemMetadata + * @property {string|null} [executionCluster] SystemMetadata executionCluster + * @property {string|null} [namespace] SystemMetadata namespace + */ + + /** + * Constructs a new SystemMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a SystemMetadata. + * @implements ISystemMetadata + * @constructor + * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set + */ + function SystemMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SystemMetadata executionCluster. + * @member {string} executionCluster + * @memberof flyteidl.admin.SystemMetadata + * @instance + */ + SystemMetadata.prototype.executionCluster = ""; + + /** + * SystemMetadata namespace. + * @member {string} namespace + * @memberof flyteidl.admin.SystemMetadata + * @instance + */ + SystemMetadata.prototype.namespace = ""; + + /** + * Creates a new SystemMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.SystemMetadata} SystemMetadata instance + */ + SystemMetadata.create = function create(properties) { + return new SystemMetadata(properties); + }; + + /** + * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {flyteidl.admin.ISystemMetadata} message SystemMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SystemMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionCluster); + if (message.namespace != null && message.hasOwnProperty("namespace")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); + return writer; + }; + + /** + * Decodes a SystemMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SystemMetadata} SystemMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SystemMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SystemMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionCluster = reader.string(); + break; + case 2: + message.namespace = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SystemMetadata message. + * @function verify + * @memberof flyteidl.admin.SystemMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SystemMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) + if (!$util.isString(message.executionCluster)) + return "executionCluster: string expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + return null; + }; + + return SystemMetadata; + })(); + + admin.ExecutionMetadata = (function() { + + /** + * Properties of an ExecutionMetadata. + * @memberof flyteidl.admin + * @interface IExecutionMetadata + * @property {flyteidl.admin.ExecutionMetadata.ExecutionMode|null} [mode] ExecutionMetadata mode + * @property {string|null} [principal] ExecutionMetadata principal + * @property {number|null} [nesting] ExecutionMetadata nesting + * @property {google.protobuf.ITimestamp|null} [scheduledAt] ExecutionMetadata scheduledAt + * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] ExecutionMetadata parentNodeExecution + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] ExecutionMetadata referenceExecution + * @property {flyteidl.admin.ISystemMetadata|null} [systemMetadata] ExecutionMetadata systemMetadata + * @property {Array.|null} [artifactIds] ExecutionMetadata artifactIds + */ + + /** + * Constructs a new ExecutionMetadata. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionMetadata. + * @implements IExecutionMetadata + * @constructor + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + */ + function ExecutionMetadata(properties) { + this.artifactIds = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionMetadata mode. + * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.mode = 0; + + /** + * ExecutionMetadata principal. + * @member {string} principal + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.principal = ""; + + /** + * ExecutionMetadata nesting. + * @member {number} nesting + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.nesting = 0; + + /** + * ExecutionMetadata scheduledAt. + * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.scheduledAt = null; + + /** + * ExecutionMetadata parentNodeExecution. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.parentNodeExecution = null; + + /** + * ExecutionMetadata referenceExecution. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.referenceExecution = null; + + /** + * ExecutionMetadata systemMetadata. + * @member {flyteidl.admin.ISystemMetadata|null|undefined} systemMetadata + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.systemMetadata = null; + + /** + * ExecutionMetadata artifactIds. + * @member {Array.} artifactIds + * @memberof flyteidl.admin.ExecutionMetadata + * @instance + */ + ExecutionMetadata.prototype.artifactIds = $util.emptyArray; + + /** + * Creates a new ExecutionMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata instance + */ + ExecutionMetadata.create = function create(properties) { + return new ExecutionMetadata(properties); + }; + + /** + * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mode != null && message.hasOwnProperty("mode")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); + if (message.nesting != null && message.hasOwnProperty("nesting")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.nesting); + if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) + $root.google.protobuf.Timestamp.encode(message.scheduledAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) + $root.flyteidl.admin.SystemMetadata.encode(message.systemMetadata, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.artifactIds != null && message.artifactIds.length) + for (var i = 0; i < message.artifactIds.length; ++i) + $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ExecutionMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.mode = reader.int32(); + break; + case 2: + message.principal = reader.string(); + break; + case 3: + message.nesting = reader.uint32(); + break; + case 4: + message.scheduledAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 16: + message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 17: + message.systemMetadata = $root.flyteidl.admin.SystemMetadata.decode(reader, reader.uint32()); + break; + case 18: + if (!(message.artifactIds && message.artifactIds.length)) + message.artifactIds = []; + message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionMetadata message. + * @function verify + * @memberof flyteidl.admin.ExecutionMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mode != null && message.hasOwnProperty("mode")) + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + if (message.nesting != null && message.hasOwnProperty("nesting")) + if (!$util.isInteger(message.nesting)) + return "nesting: integer expected"; + if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); + if (error) + return "scheduledAt." + error; + } + if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecution); + if (error) + return "parentNodeExecution." + error; + } + if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); + if (error) + return "referenceExecution." + error; + } + if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) { + var error = $root.flyteidl.admin.SystemMetadata.verify(message.systemMetadata); + if (error) + return "systemMetadata." + error; + } + if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { + if (!Array.isArray(message.artifactIds)) + return "artifactIds: array expected"; + for (var i = 0; i < message.artifactIds.length; ++i) { + var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); + if (error) + return "artifactIds." + error; + } + } + return null; + }; + + /** + * ExecutionMode enum. + * @name flyteidl.admin.ExecutionMetadata.ExecutionMode + * @enum {string} + * @property {number} MANUAL=0 MANUAL value + * @property {number} SCHEDULED=1 SCHEDULED value + * @property {number} SYSTEM=2 SYSTEM value + * @property {number} RELAUNCH=3 RELAUNCH value + * @property {number} CHILD_WORKFLOW=4 CHILD_WORKFLOW value + * @property {number} RECOVERED=5 RECOVERED value + */ + ExecutionMetadata.ExecutionMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MANUAL"] = 0; + values[valuesById[1] = "SCHEDULED"] = 1; + values[valuesById[2] = "SYSTEM"] = 2; + values[valuesById[3] = "RELAUNCH"] = 3; + values[valuesById[4] = "CHILD_WORKFLOW"] = 4; + values[valuesById[5] = "RECOVERED"] = 5; + return values; + })(); + + return ExecutionMetadata; + })(); + + admin.NotificationList = (function() { + + /** + * Properties of a NotificationList. + * @memberof flyteidl.admin + * @interface INotificationList + * @property {Array.|null} [notifications] NotificationList notifications + */ + + /** + * Constructs a new NotificationList. + * @memberof flyteidl.admin + * @classdesc Represents a NotificationList. + * @implements INotificationList + * @constructor + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + */ + function NotificationList(properties) { + this.notifications = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NotificationList notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.NotificationList + * @instance + */ + NotificationList.prototype.notifications = $util.emptyArray; + + /** + * Creates a new NotificationList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NotificationList + * @static + * @param {flyteidl.admin.INotificationList=} [properties] Properties to set + * @returns {flyteidl.admin.NotificationList} NotificationList instance + */ + NotificationList.create = function create(properties) { + return new NotificationList(properties); + }; + + /** + * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NotificationList + * @static + * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NotificationList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NotificationList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NotificationList} NotificationList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NotificationList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NotificationList message. + * @function verify + * @memberof flyteidl.admin.NotificationList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + return null; + }; + + return NotificationList; + })(); + + admin.ExecutionSpec = (function() { + + /** + * Properties of an ExecutionSpec. + * @memberof flyteidl.admin + * @interface IExecutionSpec + * @property {flyteidl.core.IIdentifier|null} [launchPlan] ExecutionSpec launchPlan + * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionSpec inputs + * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionSpec metadata + * @property {flyteidl.admin.INotificationList|null} [notifications] ExecutionSpec notifications + * @property {boolean|null} [disableAll] ExecutionSpec disableAll + * @property {flyteidl.admin.ILabels|null} [labels] ExecutionSpec labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] ExecutionSpec annotations + * @property {flyteidl.core.ISecurityContext|null} [securityContext] ExecutionSpec securityContext + * @property {flyteidl.admin.IAuthRole|null} [authRole] ExecutionSpec authRole + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] ExecutionSpec qualityOfService + * @property {number|null} [maxParallelism] ExecutionSpec maxParallelism + * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] ExecutionSpec rawOutputDataConfig + * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] ExecutionSpec clusterAssignment + * @property {google.protobuf.IBoolValue|null} [interruptible] ExecutionSpec interruptible + * @property {boolean|null} [overwriteCache] ExecutionSpec overwriteCache + * @property {flyteidl.admin.IEnvs|null} [envs] ExecutionSpec envs + * @property {Array.|null} [tags] ExecutionSpec tags + */ + + /** + * Constructs a new ExecutionSpec. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionSpec. + * @implements IExecutionSpec + * @constructor + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + */ + function ExecutionSpec(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionSpec launchPlan. + * @member {flyteidl.core.IIdentifier|null|undefined} launchPlan + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.launchPlan = null; + + /** + * ExecutionSpec inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.inputs = null; + + /** + * ExecutionSpec metadata. + * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.metadata = null; + + /** + * ExecutionSpec notifications. + * @member {flyteidl.admin.INotificationList|null|undefined} notifications + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.notifications = null; + + /** + * ExecutionSpec disableAll. + * @member {boolean} disableAll + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.disableAll = false; + + /** + * ExecutionSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.labels = null; + + /** + * ExecutionSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.annotations = null; + + /** + * ExecutionSpec securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.securityContext = null; + + /** + * ExecutionSpec authRole. + * @member {flyteidl.admin.IAuthRole|null|undefined} authRole + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.authRole = null; + + /** + * ExecutionSpec qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.qualityOfService = null; + + /** + * ExecutionSpec maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.maxParallelism = 0; + + /** + * ExecutionSpec rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.rawOutputDataConfig = null; + + /** + * ExecutionSpec clusterAssignment. + * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.clusterAssignment = null; + + /** + * ExecutionSpec interruptible. + * @member {google.protobuf.IBoolValue|null|undefined} interruptible + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.interruptible = null; + + /** + * ExecutionSpec overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.overwriteCache = false; + + /** + * ExecutionSpec envs. + * @member {flyteidl.admin.IEnvs|null|undefined} envs + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.envs = null; + + /** + * ExecutionSpec tags. + * @member {Array.} tags + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + ExecutionSpec.prototype.tags = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExecutionSpec notificationOverrides. + * @member {"notifications"|"disableAll"|undefined} notificationOverrides + * @memberof flyteidl.admin.ExecutionSpec + * @instance + */ + Object.defineProperty(ExecutionSpec.prototype, "notificationOverrides", { + get: $util.oneOfGetter($oneOfFields = ["notifications", "disableAll"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExecutionSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance + */ + ExecutionSpec.create = function create(properties) { + return new ExecutionSpec(properties); + }; + + /** + * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + $root.flyteidl.core.Identifier.encode(message.launchPlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.notifications != null && message.hasOwnProperty("notifications")) + $root.flyteidl.admin.NotificationList.encode(message.notifications, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.disableAll != null && message.hasOwnProperty("disableAll")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disableAll); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.authRole != null && message.hasOwnProperty("authRole")) + $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) + $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) + $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.overwriteCache); + if (message.envs != null && message.hasOwnProperty("envs")) + $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 24, wireType 2 =*/194).string(message.tags[i]); + return writer; + }; + + /** + * Decodes an ExecutionSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); + break; + case 5: + message.notifications = $root.flyteidl.admin.NotificationList.decode(reader, reader.uint32()); + break; + case 6: + message.disableAll = reader.bool(); + break; + case 7: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 8: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 10: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 16: + message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); + break; + case 17: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 18: + message.maxParallelism = reader.int32(); + break; + case 19: + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); + break; + case 20: + message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); + break; + case 21: + message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 22: + message.overwriteCache = reader.bool(); + break; + case 23: + message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + break; + case 24: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionSpec message. + * @function verify + * @memberof flyteidl.admin.ExecutionSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) { + var error = $root.flyteidl.core.Identifier.verify(message.launchPlan); + if (error) + return "launchPlan." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + properties.notificationOverrides = 1; + { + var error = $root.flyteidl.admin.NotificationList.verify(message.notifications); + if (error) + return "notifications." + error; + } + } + if (message.disableAll != null && message.hasOwnProperty("disableAll")) { + if (properties.notificationOverrides === 1) + return "notificationOverrides: multiple values"; + properties.notificationOverrides = 1; + if (typeof message.disableAll !== "boolean") + return "disableAll: boolean expected"; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.authRole != null && message.hasOwnProperty("authRole")) { + var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); + if (error) + return "authRole." + error; + } + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + if (!$util.isInteger(message.maxParallelism)) + return "maxParallelism: integer expected"; + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); + if (error) + return "rawOutputDataConfig." + error; + } + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { + var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); + if (error) + return "clusterAssignment." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + var error = $root.google.protobuf.BoolValue.verify(message.interruptible); + if (error) + return "interruptible." + error; + } + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + if (message.envs != null && message.hasOwnProperty("envs")) { + var error = $root.flyteidl.admin.Envs.verify(message.envs); + if (error) + return "envs." + error; + } + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + return ExecutionSpec; + })(); + + admin.ExecutionTerminateRequest = (function() { + + /** + * Properties of an ExecutionTerminateRequest. + * @memberof flyteidl.admin + * @interface IExecutionTerminateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id + * @property {string|null} [cause] ExecutionTerminateRequest cause + */ + + /** + * Constructs a new ExecutionTerminateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionTerminateRequest. + * @implements IExecutionTerminateRequest + * @constructor + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + */ + function ExecutionTerminateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionTerminateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @instance + */ + ExecutionTerminateRequest.prototype.id = null; + + /** + * ExecutionTerminateRequest cause. + * @member {string} cause + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @instance + */ + ExecutionTerminateRequest.prototype.cause = ""; + + /** + * Creates a new ExecutionTerminateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance + */ + ExecutionTerminateRequest.create = function create(properties) { + return new ExecutionTerminateRequest(properties); + }; + + /** + * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionTerminateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cause != null && message.hasOwnProperty("cause")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cause); + return writer; + }; + + /** + * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionTerminateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.cause = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionTerminateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionTerminateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionTerminateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.cause != null && message.hasOwnProperty("cause")) + if (!$util.isString(message.cause)) + return "cause: string expected"; + return null; + }; + + return ExecutionTerminateRequest; + })(); + + admin.ExecutionTerminateResponse = (function() { + + /** + * Properties of an ExecutionTerminateResponse. + * @memberof flyteidl.admin + * @interface IExecutionTerminateResponse + */ + + /** + * Constructs a new ExecutionTerminateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionTerminateResponse. + * @implements IExecutionTerminateResponse + * @constructor + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + */ + function ExecutionTerminateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExecutionTerminateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse instance + */ + ExecutionTerminateResponse.create = function create(properties) { + return new ExecutionTerminateResponse(properties); + }; + + /** + * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {flyteidl.admin.IExecutionTerminateResponse} message ExecutionTerminateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionTerminateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionTerminateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionTerminateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionTerminateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionTerminateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ExecutionTerminateResponse; + })(); + + admin.WorkflowExecutionGetDataRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetDataRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id + */ + + /** + * Constructs a new WorkflowExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetDataRequest. + * @implements IWorkflowExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetDataRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @instance + */ + WorkflowExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance + */ + WorkflowExecutionGetDataRequest.create = function create(properties) { + return new WorkflowExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowExecutionGetDataRequest; + })(); + + admin.WorkflowExecutionGetDataResponse = (function() { + + /** + * Properties of a WorkflowExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [outputs] WorkflowExecutionGetDataResponse outputs + * @property {flyteidl.admin.IUrlBlob|null} [inputs] WorkflowExecutionGetDataResponse inputs + * @property {flyteidl.core.ILiteralMap|null} [fullInputs] WorkflowExecutionGetDataResponse fullInputs + * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] WorkflowExecutionGetDataResponse fullOutputs + */ + + /** + * Constructs a new WorkflowExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetDataResponse. + * @implements IWorkflowExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + */ + function WorkflowExecutionGetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.outputs = null; + + /** + * WorkflowExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.inputs = null; + + /** + * WorkflowExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.fullInputs = null; + + /** + * WorkflowExecutionGetDataResponse fullOutputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @instance + */ + WorkflowExecutionGetDataResponse.prototype.fullOutputs = null; + + /** + * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance + */ + WorkflowExecutionGetDataResponse.create = function create(properties) { + return new WorkflowExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 3: + message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (error) + return "fullInputs." + error; + } + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); + if (error) + return "fullOutputs." + error; + } + return null; + }; + + return WorkflowExecutionGetDataResponse; + })(); + + /** + * ExecutionState enum. + * @name flyteidl.admin.ExecutionState + * @enum {string} + * @property {number} EXECUTION_ACTIVE=0 EXECUTION_ACTIVE value + * @property {number} EXECUTION_ARCHIVED=1 EXECUTION_ARCHIVED value + */ + admin.ExecutionState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EXECUTION_ACTIVE"] = 0; + values[valuesById[1] = "EXECUTION_ARCHIVED"] = 1; + return values; + })(); + + admin.ExecutionUpdateRequest = (function() { + + /** + * Properties of an ExecutionUpdateRequest. + * @memberof flyteidl.admin + * @interface IExecutionUpdateRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionUpdateRequest id + * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionUpdateRequest state + */ + + /** + * Constructs a new ExecutionUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionUpdateRequest. + * @implements IExecutionUpdateRequest + * @constructor + * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set + */ + function ExecutionUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionUpdateRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @instance + */ + ExecutionUpdateRequest.prototype.id = null; + + /** + * ExecutionUpdateRequest state. + * @member {flyteidl.admin.ExecutionState} state + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @instance + */ + ExecutionUpdateRequest.prototype.state = 0; + + /** + * Creates a new ExecutionUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest instance + */ + ExecutionUpdateRequest.create = function create(properties) { + return new ExecutionUpdateRequest(properties); + }; + + /** + * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {flyteidl.admin.IExecutionUpdateRequest} message ExecutionUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.ExecutionUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + return ExecutionUpdateRequest; + })(); + + admin.ExecutionStateChangeDetails = (function() { + + /** + * Properties of an ExecutionStateChangeDetails. + * @memberof flyteidl.admin + * @interface IExecutionStateChangeDetails + * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionStateChangeDetails state + * @property {google.protobuf.ITimestamp|null} [occurredAt] ExecutionStateChangeDetails occurredAt + * @property {string|null} [principal] ExecutionStateChangeDetails principal + */ + + /** + * Constructs a new ExecutionStateChangeDetails. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionStateChangeDetails. + * @implements IExecutionStateChangeDetails + * @constructor + * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set + */ + function ExecutionStateChangeDetails(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionStateChangeDetails state. + * @member {flyteidl.admin.ExecutionState} state + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @instance + */ + ExecutionStateChangeDetails.prototype.state = 0; + + /** + * ExecutionStateChangeDetails occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @instance + */ + ExecutionStateChangeDetails.prototype.occurredAt = null; + + /** + * ExecutionStateChangeDetails principal. + * @member {string} principal + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @instance + */ + ExecutionStateChangeDetails.prototype.principal = ""; + + /** + * Creates a new ExecutionStateChangeDetails instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails instance + */ + ExecutionStateChangeDetails.create = function create(properties) { + return new ExecutionStateChangeDetails(properties); + }; + + /** + * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {flyteidl.admin.IExecutionStateChangeDetails} message ExecutionStateChangeDetails message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionStateChangeDetails.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.principal != null && message.hasOwnProperty("principal")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.principal); + return writer; + }; + + /** + * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionStateChangeDetails.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionStateChangeDetails(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.principal = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionStateChangeDetails message. + * @function verify + * @memberof flyteidl.admin.ExecutionStateChangeDetails + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionStateChangeDetails.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.principal != null && message.hasOwnProperty("principal")) + if (!$util.isString(message.principal)) + return "principal: string expected"; + return null; + }; + + return ExecutionStateChangeDetails; + })(); + + admin.ExecutionUpdateResponse = (function() { + + /** + * Properties of an ExecutionUpdateResponse. + * @memberof flyteidl.admin + * @interface IExecutionUpdateResponse + */ + + /** + * Constructs a new ExecutionUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionUpdateResponse. + * @implements IExecutionUpdateResponse + * @constructor + * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set + */ + function ExecutionUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ExecutionUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse instance + */ + ExecutionUpdateResponse.create = function create(properties) { + return new ExecutionUpdateResponse(properties); + }; + + /** + * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {flyteidl.admin.IExecutionUpdateResponse} message ExecutionUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ExecutionUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ExecutionUpdateResponse; + })(); + + admin.WorkflowExecutionGetMetricsRequest = (function() { + + /** + * Properties of a WorkflowExecutionGetMetricsRequest. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetMetricsRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetMetricsRequest id + * @property {number|null} [depth] WorkflowExecutionGetMetricsRequest depth + */ + + /** + * Constructs a new WorkflowExecutionGetMetricsRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetMetricsRequest. + * @implements IWorkflowExecutionGetMetricsRequest + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set + */ + function WorkflowExecutionGetMetricsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetMetricsRequest id. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @instance + */ + WorkflowExecutionGetMetricsRequest.prototype.id = null; + + /** + * WorkflowExecutionGetMetricsRequest depth. + * @member {number} depth + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @instance + */ + WorkflowExecutionGetMetricsRequest.prototype.depth = 0; + + /** + * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest instance + */ + WorkflowExecutionGetMetricsRequest.create = function create(properties) { + return new WorkflowExecutionGetMetricsRequest(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} message WorkflowExecutionGetMetricsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetMetricsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.depth != null && message.hasOwnProperty("depth")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.depth); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetMetricsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.depth = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetMetricsRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetMetricsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.depth != null && message.hasOwnProperty("depth")) + if (!$util.isInteger(message.depth)) + return "depth: integer expected"; + return null; + }; + + return WorkflowExecutionGetMetricsRequest; + })(); + + admin.WorkflowExecutionGetMetricsResponse = (function() { + + /** + * Properties of a WorkflowExecutionGetMetricsResponse. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionGetMetricsResponse + * @property {flyteidl.core.ISpan|null} [span] WorkflowExecutionGetMetricsResponse span + */ + + /** + * Constructs a new WorkflowExecutionGetMetricsResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionGetMetricsResponse. + * @implements IWorkflowExecutionGetMetricsResponse + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set + */ + function WorkflowExecutionGetMetricsResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionGetMetricsResponse span. + * @member {flyteidl.core.ISpan|null|undefined} span + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @instance + */ + WorkflowExecutionGetMetricsResponse.prototype.span = null; + + /** + * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse instance + */ + WorkflowExecutionGetMetricsResponse.create = function create(properties) { + return new WorkflowExecutionGetMetricsResponse(properties); + }; + + /** + * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse} message WorkflowExecutionGetMetricsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionGetMetricsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.span != null && message.hasOwnProperty("span")) + $root.flyteidl.core.Span.encode(message.span, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionGetMetricsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.span = $root.flyteidl.core.Span.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionGetMetricsResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionGetMetricsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.span != null && message.hasOwnProperty("span")) { + var error = $root.flyteidl.core.Span.verify(message.span); + if (error) + return "span." + error; + } + return null; + }; + + return WorkflowExecutionGetMetricsResponse; + })(); + + admin.LaunchPlanCreateRequest = (function() { + + /** + * Properties of a LaunchPlanCreateRequest. + * @memberof flyteidl.admin + * @interface ILaunchPlanCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec + */ + + /** + * Constructs a new LaunchPlanCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanCreateRequest. + * @implements ILaunchPlanCreateRequest + * @constructor + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + */ + function LaunchPlanCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @instance + */ + LaunchPlanCreateRequest.prototype.id = null; + + /** + * LaunchPlanCreateRequest spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @instance + */ + LaunchPlanCreateRequest.prototype.spec = null; + + /** + * Creates a new LaunchPlanCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance + */ + LaunchPlanCreateRequest.create = function create(properties) { + return new LaunchPlanCreateRequest(properties); + }; + + /** + * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanCreateRequest message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return LaunchPlanCreateRequest; + })(); + + admin.LaunchPlanCreateResponse = (function() { + + /** + * Properties of a LaunchPlanCreateResponse. + * @memberof flyteidl.admin + * @interface ILaunchPlanCreateResponse + */ + + /** + * Constructs a new LaunchPlanCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanCreateResponse. + * @implements ILaunchPlanCreateResponse + * @constructor + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + */ + function LaunchPlanCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new LaunchPlanCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance + */ + LaunchPlanCreateResponse.create = function create(properties) { + return new LaunchPlanCreateResponse(properties); + }; + + /** + * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanCreateResponse message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return LaunchPlanCreateResponse; + })(); + + /** + * LaunchPlanState enum. + * @name flyteidl.admin.LaunchPlanState + * @enum {string} + * @property {number} INACTIVE=0 INACTIVE value + * @property {number} ACTIVE=1 ACTIVE value + */ + admin.LaunchPlanState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INACTIVE"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + return values; + })(); + + admin.LaunchPlan = (function() { + + /** + * Properties of a LaunchPlan. + * @memberof flyteidl.admin + * @interface ILaunchPlan + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlan id + * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlan spec + * @property {flyteidl.admin.ILaunchPlanClosure|null} [closure] LaunchPlan closure + */ + + /** + * Constructs a new LaunchPlan. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlan. + * @implements ILaunchPlan + * @constructor + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + */ + function LaunchPlan(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlan id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.id = null; + + /** + * LaunchPlan spec. + * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.spec = null; + + /** + * LaunchPlan closure. + * @member {flyteidl.admin.ILaunchPlanClosure|null|undefined} closure + * @memberof flyteidl.admin.LaunchPlan + * @instance + */ + LaunchPlan.prototype.closure = null; + + /** + * Creates a new LaunchPlan instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance + */ + LaunchPlan.create = function create(properties) { + return new LaunchPlan(properties); + }; + + /** + * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlan.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.LaunchPlanClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlan message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlan} LaunchPlan + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlan.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlan(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); + break; + case 3: + message.closure = $root.flyteidl.admin.LaunchPlanClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlan message. + * @function verify + * @memberof flyteidl.admin.LaunchPlan + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlan.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); + if (error) + return "spec." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.LaunchPlanClosure.verify(message.closure); + if (error) + return "closure." + error; + } + return null; + }; + + return LaunchPlan; + })(); + + admin.LaunchPlanList = (function() { + + /** + * Properties of a LaunchPlanList. + * @memberof flyteidl.admin + * @interface ILaunchPlanList + * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans + * @property {string|null} [token] LaunchPlanList token + */ + + /** + * Constructs a new LaunchPlanList. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanList. + * @implements ILaunchPlanList + * @constructor + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + */ + function LaunchPlanList(properties) { + this.launchPlans = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanList launchPlans. + * @member {Array.} launchPlans + * @memberof flyteidl.admin.LaunchPlanList + * @instance + */ + LaunchPlanList.prototype.launchPlans = $util.emptyArray; + + /** + * LaunchPlanList token. + * @member {string} token + * @memberof flyteidl.admin.LaunchPlanList + * @instance + */ + LaunchPlanList.prototype.token = ""; + + /** + * Creates a new LaunchPlanList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance + */ + LaunchPlanList.create = function create(properties) { + return new LaunchPlanList(properties); + }; + + /** + * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.launchPlans != null && message.launchPlans.length) + for (var i = 0; i < message.launchPlans.length; ++i) + $root.flyteidl.admin.LaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a LaunchPlanList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.launchPlans && message.launchPlans.length)) + message.launchPlans = []; + message.launchPlans.push($root.flyteidl.admin.LaunchPlan.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanList message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { + if (!Array.isArray(message.launchPlans)) + return "launchPlans: array expected"; + for (var i = 0; i < message.launchPlans.length; ++i) { + var error = $root.flyteidl.admin.LaunchPlan.verify(message.launchPlans[i]); + if (error) + return "launchPlans." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return LaunchPlanList; + })(); + + admin.Auth = (function() { + + /** + * Properties of an Auth. + * @memberof flyteidl.admin + * @interface IAuth + * @property {string|null} [assumableIamRole] Auth assumableIamRole + * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount + */ + + /** + * Constructs a new Auth. + * @memberof flyteidl.admin + * @classdesc Represents an Auth. + * @implements IAuth + * @constructor + * @param {flyteidl.admin.IAuth=} [properties] Properties to set + */ + function Auth(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Auth assumableIamRole. + * @member {string} assumableIamRole + * @memberof flyteidl.admin.Auth + * @instance + */ + Auth.prototype.assumableIamRole = ""; + + /** + * Auth kubernetesServiceAccount. + * @member {string} kubernetesServiceAccount + * @memberof flyteidl.admin.Auth + * @instance + */ + Auth.prototype.kubernetesServiceAccount = ""; + + /** + * Creates a new Auth instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Auth + * @static + * @param {flyteidl.admin.IAuth=} [properties] Properties to set + * @returns {flyteidl.admin.Auth} Auth instance + */ + Auth.create = function create(properties) { + return new Auth(properties); + }; + + /** + * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Auth + * @static + * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Auth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); + return writer; + }; + + /** + * Decodes an Auth message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Auth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Auth} Auth + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Auth.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Auth(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.assumableIamRole = reader.string(); + break; + case 2: + message.kubernetesServiceAccount = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Auth message. + * @function verify + * @memberof flyteidl.admin.Auth + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Auth.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) + if (!$util.isString(message.assumableIamRole)) + return "assumableIamRole: string expected"; + if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) + if (!$util.isString(message.kubernetesServiceAccount)) + return "kubernetesServiceAccount: string expected"; + return null; + }; + + return Auth; + })(); + + admin.LaunchPlanSpec = (function() { + + /** + * Properties of a LaunchPlanSpec. + * @memberof flyteidl.admin + * @interface ILaunchPlanSpec + * @property {flyteidl.core.IIdentifier|null} [workflowId] LaunchPlanSpec workflowId + * @property {flyteidl.admin.ILaunchPlanMetadata|null} [entityMetadata] LaunchPlanSpec entityMetadata + * @property {flyteidl.core.IParameterMap|null} [defaultInputs] LaunchPlanSpec defaultInputs + * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanSpec fixedInputs + * @property {string|null} [role] LaunchPlanSpec role + * @property {flyteidl.admin.ILabels|null} [labels] LaunchPlanSpec labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] LaunchPlanSpec annotations + * @property {flyteidl.admin.IAuth|null} [auth] LaunchPlanSpec auth + * @property {flyteidl.admin.IAuthRole|null} [authRole] LaunchPlanSpec authRole + * @property {flyteidl.core.ISecurityContext|null} [securityContext] LaunchPlanSpec securityContext + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] LaunchPlanSpec qualityOfService + * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] LaunchPlanSpec rawOutputDataConfig + * @property {number|null} [maxParallelism] LaunchPlanSpec maxParallelism + * @property {google.protobuf.IBoolValue|null} [interruptible] LaunchPlanSpec interruptible + * @property {boolean|null} [overwriteCache] LaunchPlanSpec overwriteCache + * @property {flyteidl.admin.IEnvs|null} [envs] LaunchPlanSpec envs + */ + + /** + * Constructs a new LaunchPlanSpec. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanSpec. + * @implements ILaunchPlanSpec + * @constructor + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + */ + function LaunchPlanSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanSpec workflowId. + * @member {flyteidl.core.IIdentifier|null|undefined} workflowId + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.workflowId = null; + + /** + * LaunchPlanSpec entityMetadata. + * @member {flyteidl.admin.ILaunchPlanMetadata|null|undefined} entityMetadata + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.entityMetadata = null; + + /** + * LaunchPlanSpec defaultInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} defaultInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.defaultInputs = null; + + /** + * LaunchPlanSpec fixedInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.fixedInputs = null; + + /** + * LaunchPlanSpec role. + * @member {string} role + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.role = ""; + + /** + * LaunchPlanSpec labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.labels = null; + + /** + * LaunchPlanSpec annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.annotations = null; + + /** + * LaunchPlanSpec auth. + * @member {flyteidl.admin.IAuth|null|undefined} auth + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.auth = null; + + /** + * LaunchPlanSpec authRole. + * @member {flyteidl.admin.IAuthRole|null|undefined} authRole + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.authRole = null; + + /** + * LaunchPlanSpec securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.securityContext = null; + + /** + * LaunchPlanSpec qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.qualityOfService = null; + + /** + * LaunchPlanSpec rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.rawOutputDataConfig = null; + + /** + * LaunchPlanSpec maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.maxParallelism = 0; + + /** + * LaunchPlanSpec interruptible. + * @member {google.protobuf.IBoolValue|null|undefined} interruptible + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.interruptible = null; + + /** + * LaunchPlanSpec overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.overwriteCache = false; + + /** + * LaunchPlanSpec envs. + * @member {flyteidl.admin.IEnvs|null|undefined} envs + * @memberof flyteidl.admin.LaunchPlanSpec + * @instance + */ + LaunchPlanSpec.prototype.envs = null; + + /** + * Creates a new LaunchPlanSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance + */ + LaunchPlanSpec.create = function create(properties) { + return new LaunchPlanSpec(properties); + }; + + /** + * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowId != null && message.hasOwnProperty("workflowId")) + $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) + $root.flyteidl.admin.LaunchPlanMetadata.encode(message.entityMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) + $root.flyteidl.core.ParameterMap.encode(message.defaultInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.role != null && message.hasOwnProperty("role")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.role); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.auth != null && message.hasOwnProperty("auth")) + $root.flyteidl.admin.Auth.encode(message.auth, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.authRole != null && message.hasOwnProperty("authRole")) + $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) + $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.overwriteCache); + if (message.envs != null && message.hasOwnProperty("envs")) + $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.entityMetadata = $root.flyteidl.admin.LaunchPlanMetadata.decode(reader, reader.uint32()); + break; + case 3: + message.defaultInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); + break; + case 4: + message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 5: + message.role = reader.string(); + break; + case 6: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 7: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 8: + message.auth = $root.flyteidl.admin.Auth.decode(reader, reader.uint32()); + break; + case 9: + message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); + break; + case 10: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 16: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 17: + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); + break; + case 18: + message.maxParallelism = reader.int32(); + break; + case 19: + message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 20: + message.overwriteCache = reader.bool(); + break; + case 21: + message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanSpec message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowId != null && message.hasOwnProperty("workflowId")) { + var error = $root.flyteidl.core.Identifier.verify(message.workflowId); + if (error) + return "workflowId." + error; + } + if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) { + var error = $root.flyteidl.admin.LaunchPlanMetadata.verify(message.entityMetadata); + if (error) + return "entityMetadata." + error; + } + if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) { + var error = $root.flyteidl.core.ParameterMap.verify(message.defaultInputs); + if (error) + return "defaultInputs." + error; + } + if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); + if (error) + return "fixedInputs." + error; + } + if (message.role != null && message.hasOwnProperty("role")) + if (!$util.isString(message.role)) + return "role: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.auth != null && message.hasOwnProperty("auth")) { + var error = $root.flyteidl.admin.Auth.verify(message.auth); + if (error) + return "auth." + error; + } + if (message.authRole != null && message.hasOwnProperty("authRole")) { + var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); + if (error) + return "authRole." + error; + } + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); + if (error) + return "rawOutputDataConfig." + error; + } + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + if (!$util.isInteger(message.maxParallelism)) + return "maxParallelism: integer expected"; + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + var error = $root.google.protobuf.BoolValue.verify(message.interruptible); + if (error) + return "interruptible." + error; + } + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + if (message.envs != null && message.hasOwnProperty("envs")) { + var error = $root.flyteidl.admin.Envs.verify(message.envs); + if (error) + return "envs." + error; + } + return null; + }; + + return LaunchPlanSpec; + })(); + + admin.LaunchPlanClosure = (function() { + + /** + * Properties of a LaunchPlanClosure. + * @memberof flyteidl.admin + * @interface ILaunchPlanClosure + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanClosure state + * @property {flyteidl.core.IParameterMap|null} [expectedInputs] LaunchPlanClosure expectedInputs + * @property {flyteidl.core.IVariableMap|null} [expectedOutputs] LaunchPlanClosure expectedOutputs + * @property {google.protobuf.ITimestamp|null} [createdAt] LaunchPlanClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] LaunchPlanClosure updatedAt + */ + + /** + * Constructs a new LaunchPlanClosure. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanClosure. + * @implements ILaunchPlanClosure + * @constructor + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + */ + function LaunchPlanClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanClosure state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.state = 0; + + /** + * LaunchPlanClosure expectedInputs. + * @member {flyteidl.core.IParameterMap|null|undefined} expectedInputs + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.expectedInputs = null; + + /** + * LaunchPlanClosure expectedOutputs. + * @member {flyteidl.core.IVariableMap|null|undefined} expectedOutputs + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.expectedOutputs = null; + + /** + * LaunchPlanClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.createdAt = null; + + /** + * LaunchPlanClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.LaunchPlanClosure + * @instance + */ + LaunchPlanClosure.prototype.updatedAt = null; + + /** + * Creates a new LaunchPlanClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance + */ + LaunchPlanClosure.create = function create(properties) { + return new LaunchPlanClosure(properties); + }; + + /** + * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) + $root.flyteidl.core.ParameterMap.encode(message.expectedInputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) + $root.flyteidl.core.VariableMap.encode(message.expectedOutputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.expectedInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); + break; + case 3: + message.expectedOutputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); + break; + case 4: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanClosure message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) { + var error = $root.flyteidl.core.ParameterMap.verify(message.expectedInputs); + if (error) + return "expectedInputs." + error; + } + if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) { + var error = $root.flyteidl.core.VariableMap.verify(message.expectedOutputs); + if (error) + return "expectedOutputs." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + return null; + }; + + return LaunchPlanClosure; + })(); + + admin.LaunchPlanMetadata = (function() { + + /** + * Properties of a LaunchPlanMetadata. + * @memberof flyteidl.admin + * @interface ILaunchPlanMetadata + * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule + * @property {Array.|null} [notifications] LaunchPlanMetadata notifications + * @property {google.protobuf.IAny|null} [launchConditions] LaunchPlanMetadata launchConditions + */ + + /** + * Constructs a new LaunchPlanMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanMetadata. + * @implements ILaunchPlanMetadata + * @constructor + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + */ + function LaunchPlanMetadata(properties) { + this.notifications = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanMetadata schedule. + * @member {flyteidl.admin.ISchedule|null|undefined} schedule + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.schedule = null; + + /** + * LaunchPlanMetadata notifications. + * @member {Array.} notifications + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.notifications = $util.emptyArray; + + /** + * LaunchPlanMetadata launchConditions. + * @member {google.protobuf.IAny|null|undefined} launchConditions + * @memberof flyteidl.admin.LaunchPlanMetadata + * @instance + */ + LaunchPlanMetadata.prototype.launchConditions = null; + + /** + * Creates a new LaunchPlanMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance + */ + LaunchPlanMetadata.create = function create(properties) { + return new LaunchPlanMetadata(properties); + }; + + /** + * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schedule != null && message.hasOwnProperty("schedule")) + $root.flyteidl.admin.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.notifications != null && message.notifications.length) + for (var i = 0; i < message.notifications.length; ++i) + $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.launchConditions != null && message.hasOwnProperty("launchConditions")) + $root.google.protobuf.Any.encode(message.launchConditions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a LaunchPlanMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.notifications && message.notifications.length)) + message.notifications = []; + message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); + break; + case 3: + message.launchConditions = $root.google.protobuf.Any.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanMetadata message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schedule != null && message.hasOwnProperty("schedule")) { + var error = $root.flyteidl.admin.Schedule.verify(message.schedule); + if (error) + return "schedule." + error; + } + if (message.notifications != null && message.hasOwnProperty("notifications")) { + if (!Array.isArray(message.notifications)) + return "notifications: array expected"; + for (var i = 0; i < message.notifications.length; ++i) { + var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); + if (error) + return "notifications." + error; + } + } + if (message.launchConditions != null && message.hasOwnProperty("launchConditions")) { + var error = $root.google.protobuf.Any.verify(message.launchConditions); + if (error) + return "launchConditions." + error; + } + return null; + }; + + return LaunchPlanMetadata; + })(); + + admin.LaunchPlanUpdateRequest = (function() { + + /** + * Properties of a LaunchPlanUpdateRequest. + * @memberof flyteidl.admin + * @interface ILaunchPlanUpdateRequest + * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id + * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state + */ + + /** + * Constructs a new LaunchPlanUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanUpdateRequest. + * @implements ILaunchPlanUpdateRequest + * @constructor + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + */ + function LaunchPlanUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * LaunchPlanUpdateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @instance + */ + LaunchPlanUpdateRequest.prototype.id = null; + + /** + * LaunchPlanUpdateRequest state. + * @member {flyteidl.admin.LaunchPlanState} state + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @instance + */ + LaunchPlanUpdateRequest.prototype.state = 0; + + /** + * Creates a new LaunchPlanUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance + */ + LaunchPlanUpdateRequest.create = function create(properties) { + return new LaunchPlanUpdateRequest(properties); + }; + + /** + * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + return writer; + }; + + /** + * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.state = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + return LaunchPlanUpdateRequest; + })(); + + admin.LaunchPlanUpdateResponse = (function() { + + /** + * Properties of a LaunchPlanUpdateResponse. + * @memberof flyteidl.admin + * @interface ILaunchPlanUpdateResponse + */ + + /** + * Constructs a new LaunchPlanUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a LaunchPlanUpdateResponse. + * @implements ILaunchPlanUpdateResponse + * @constructor + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + */ + function LaunchPlanUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new LaunchPlanUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance + */ + LaunchPlanUpdateResponse.create = function create(properties) { + return new LaunchPlanUpdateResponse(properties); + }; + + /** + * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LaunchPlanUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LaunchPlanUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a LaunchPlanUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.LaunchPlanUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LaunchPlanUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return LaunchPlanUpdateResponse; + })(); + + admin.ActiveLaunchPlanRequest = (function() { + + /** + * Properties of an ActiveLaunchPlanRequest. + * @memberof flyteidl.admin + * @interface IActiveLaunchPlanRequest + * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ActiveLaunchPlanRequest id + */ + + /** + * Constructs a new ActiveLaunchPlanRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ActiveLaunchPlanRequest. + * @implements IActiveLaunchPlanRequest + * @constructor + * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set + */ + function ActiveLaunchPlanRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ActiveLaunchPlanRequest id. + * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @instance + */ + ActiveLaunchPlanRequest.prototype.id = null; + + /** + * Creates a new ActiveLaunchPlanRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest instance + */ + ActiveLaunchPlanRequest.create = function create(properties) { + return new ActiveLaunchPlanRequest(properties); + }; + + /** + * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanRequest} message ActiveLaunchPlanRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveLaunchPlanRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveLaunchPlanRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ActiveLaunchPlanRequest message. + * @function verify + * @memberof flyteidl.admin.ActiveLaunchPlanRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveLaunchPlanRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return ActiveLaunchPlanRequest; + })(); + + admin.ActiveLaunchPlanListRequest = (function() { + + /** + * Properties of an ActiveLaunchPlanListRequest. + * @memberof flyteidl.admin + * @interface IActiveLaunchPlanListRequest + * @property {string|null} [project] ActiveLaunchPlanListRequest project + * @property {string|null} [domain] ActiveLaunchPlanListRequest domain + * @property {number|null} [limit] ActiveLaunchPlanListRequest limit + * @property {string|null} [token] ActiveLaunchPlanListRequest token + * @property {flyteidl.admin.ISort|null} [sortBy] ActiveLaunchPlanListRequest sortBy + * @property {string|null} [org] ActiveLaunchPlanListRequest org + */ + + /** + * Constructs a new ActiveLaunchPlanListRequest. + * @memberof flyteidl.admin + * @classdesc Represents an ActiveLaunchPlanListRequest. + * @implements IActiveLaunchPlanListRequest + * @constructor + * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set + */ + function ActiveLaunchPlanListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ActiveLaunchPlanListRequest project. + * @member {string} project + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.project = ""; + + /** + * ActiveLaunchPlanListRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.domain = ""; + + /** + * ActiveLaunchPlanListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.limit = 0; + + /** + * ActiveLaunchPlanListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.token = ""; + + /** + * ActiveLaunchPlanListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.sortBy = null; + + /** + * ActiveLaunchPlanListRequest org. + * @member {string} org + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @instance + */ + ActiveLaunchPlanListRequest.prototype.org = ""; + + /** + * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest instance + */ + ActiveLaunchPlanListRequest.create = function create(properties) { + return new ActiveLaunchPlanListRequest(properties); + }; + + /** + * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} message ActiveLaunchPlanListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ActiveLaunchPlanListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); + return writer; + }; + + /** + * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ActiveLaunchPlanListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.limit = reader.uint32(); + break; + case 4: + message.token = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 6: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ActiveLaunchPlanListRequest message. + * @function verify + * @memberof flyteidl.admin.ActiveLaunchPlanListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ActiveLaunchPlanListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ActiveLaunchPlanListRequest; + })(); + + /** + * FixedRateUnit enum. + * @name flyteidl.admin.FixedRateUnit + * @enum {string} + * @property {number} MINUTE=0 MINUTE value + * @property {number} HOUR=1 HOUR value + * @property {number} DAY=2 DAY value + */ + admin.FixedRateUnit = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MINUTE"] = 0; + values[valuesById[1] = "HOUR"] = 1; + values[valuesById[2] = "DAY"] = 2; + return values; + })(); + + admin.FixedRate = (function() { + + /** + * Properties of a FixedRate. + * @memberof flyteidl.admin + * @interface IFixedRate + * @property {number|null} [value] FixedRate value + * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit + */ + + /** + * Constructs a new FixedRate. + * @memberof flyteidl.admin + * @classdesc Represents a FixedRate. + * @implements IFixedRate + * @constructor + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + */ + function FixedRate(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FixedRate value. + * @member {number} value + * @memberof flyteidl.admin.FixedRate + * @instance + */ + FixedRate.prototype.value = 0; + + /** + * FixedRate unit. + * @member {flyteidl.admin.FixedRateUnit} unit + * @memberof flyteidl.admin.FixedRate + * @instance + */ + FixedRate.prototype.unit = 0; + + /** + * Creates a new FixedRate instance using the specified properties. + * @function create + * @memberof flyteidl.admin.FixedRate + * @static + * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set + * @returns {flyteidl.admin.FixedRate} FixedRate instance + */ + FixedRate.create = function create(properties) { + return new FixedRate(properties); + }; + + /** + * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.FixedRate + * @static + * @param {flyteidl.admin.IFixedRate} message FixedRate message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FixedRate.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + if (message.unit != null && message.hasOwnProperty("unit")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unit); + return writer; + }; + + /** + * Decodes a FixedRate message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.FixedRate + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.FixedRate} FixedRate + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FixedRate.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FixedRate(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint32(); + break; + case 2: + message.unit = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FixedRate message. + * @function verify + * @memberof flyteidl.admin.FixedRate + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FixedRate.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + if (message.unit != null && message.hasOwnProperty("unit")) + switch (message.unit) { + default: + return "unit: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + return FixedRate; + })(); + + admin.CronSchedule = (function() { + + /** + * Properties of a CronSchedule. + * @memberof flyteidl.admin + * @interface ICronSchedule + * @property {string|null} [schedule] CronSchedule schedule + * @property {string|null} [offset] CronSchedule offset + */ + + /** + * Constructs a new CronSchedule. + * @memberof flyteidl.admin + * @classdesc Represents a CronSchedule. + * @implements ICronSchedule + * @constructor + * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set + */ + function CronSchedule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CronSchedule schedule. + * @member {string} schedule + * @memberof flyteidl.admin.CronSchedule + * @instance + */ + CronSchedule.prototype.schedule = ""; + + /** + * CronSchedule offset. + * @member {string} offset + * @memberof flyteidl.admin.CronSchedule + * @instance + */ + CronSchedule.prototype.offset = ""; + + /** + * Creates a new CronSchedule instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set + * @returns {flyteidl.admin.CronSchedule} CronSchedule instance + */ + CronSchedule.create = function create(properties) { + return new CronSchedule(properties); + }; + + /** + * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {flyteidl.admin.ICronSchedule} message CronSchedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CronSchedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.schedule != null && message.hasOwnProperty("schedule")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); + if (message.offset != null && message.hasOwnProperty("offset")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.offset); + return writer; + }; + + /** + * Decodes a CronSchedule message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CronSchedule} CronSchedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CronSchedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CronSchedule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.schedule = reader.string(); + break; + case 2: + message.offset = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CronSchedule message. + * @function verify + * @memberof flyteidl.admin.CronSchedule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CronSchedule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.schedule != null && message.hasOwnProperty("schedule")) + if (!$util.isString(message.schedule)) + return "schedule: string expected"; + if (message.offset != null && message.hasOwnProperty("offset")) + if (!$util.isString(message.offset)) + return "offset: string expected"; + return null; + }; + + return CronSchedule; + })(); + + admin.Schedule = (function() { + + /** + * Properties of a Schedule. + * @memberof flyteidl.admin + * @interface ISchedule + * @property {string|null} [cronExpression] Schedule cronExpression + * @property {flyteidl.admin.IFixedRate|null} [rate] Schedule rate + * @property {flyteidl.admin.ICronSchedule|null} [cronSchedule] Schedule cronSchedule + * @property {string|null} [kickoffTimeInputArg] Schedule kickoffTimeInputArg + */ + + /** + * Constructs a new Schedule. + * @memberof flyteidl.admin + * @classdesc Represents a Schedule. + * @implements ISchedule + * @constructor + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + */ + function Schedule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Schedule cronExpression. + * @member {string} cronExpression + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.cronExpression = ""; + + /** + * Schedule rate. + * @member {flyteidl.admin.IFixedRate|null|undefined} rate + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.rate = null; + + /** + * Schedule cronSchedule. + * @member {flyteidl.admin.ICronSchedule|null|undefined} cronSchedule + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.cronSchedule = null; + + /** + * Schedule kickoffTimeInputArg. + * @member {string} kickoffTimeInputArg + * @memberof flyteidl.admin.Schedule + * @instance + */ + Schedule.prototype.kickoffTimeInputArg = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Schedule ScheduleExpression. + * @member {"cronExpression"|"rate"|"cronSchedule"|undefined} ScheduleExpression + * @memberof flyteidl.admin.Schedule + * @instance + */ + Object.defineProperty(Schedule.prototype, "ScheduleExpression", { + get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate", "cronSchedule"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Schedule instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Schedule + * @static + * @param {flyteidl.admin.ISchedule=} [properties] Properties to set + * @returns {flyteidl.admin.Schedule} Schedule instance + */ + Schedule.create = function create(properties) { + return new Schedule(properties); + }; + + /** + * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Schedule + * @static + * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Schedule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cronExpression); + if (message.rate != null && message.hasOwnProperty("rate")) + $root.flyteidl.admin.FixedRate.encode(message.rate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.kickoffTimeInputArg); + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) + $root.flyteidl.admin.CronSchedule.encode(message.cronSchedule, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Schedule message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Schedule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Schedule} Schedule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Schedule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Schedule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cronExpression = reader.string(); + break; + case 2: + message.rate = $root.flyteidl.admin.FixedRate.decode(reader, reader.uint32()); + break; + case 4: + message.cronSchedule = $root.flyteidl.admin.CronSchedule.decode(reader, reader.uint32()); + break; + case 3: + message.kickoffTimeInputArg = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Schedule message. + * @function verify + * @memberof flyteidl.admin.Schedule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Schedule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) { + properties.ScheduleExpression = 1; + if (!$util.isString(message.cronExpression)) + return "cronExpression: string expected"; + } + if (message.rate != null && message.hasOwnProperty("rate")) { + if (properties.ScheduleExpression === 1) + return "ScheduleExpression: multiple values"; + properties.ScheduleExpression = 1; + { + var error = $root.flyteidl.admin.FixedRate.verify(message.rate); + if (error) + return "rate." + error; + } + } + if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) { + if (properties.ScheduleExpression === 1) + return "ScheduleExpression: multiple values"; + properties.ScheduleExpression = 1; + { + var error = $root.flyteidl.admin.CronSchedule.verify(message.cronSchedule); + if (error) + return "cronSchedule." + error; + } + } + if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) + if (!$util.isString(message.kickoffTimeInputArg)) + return "kickoffTimeInputArg: string expected"; + return null; + }; + + return Schedule; + })(); + + /** + * MatchableResource enum. + * @name flyteidl.admin.MatchableResource + * @enum {string} + * @property {number} TASK_RESOURCE=0 TASK_RESOURCE value + * @property {number} CLUSTER_RESOURCE=1 CLUSTER_RESOURCE value + * @property {number} EXECUTION_QUEUE=2 EXECUTION_QUEUE value + * @property {number} EXECUTION_CLUSTER_LABEL=3 EXECUTION_CLUSTER_LABEL value + * @property {number} QUALITY_OF_SERVICE_SPECIFICATION=4 QUALITY_OF_SERVICE_SPECIFICATION value + * @property {number} PLUGIN_OVERRIDE=5 PLUGIN_OVERRIDE value + * @property {number} WORKFLOW_EXECUTION_CONFIG=6 WORKFLOW_EXECUTION_CONFIG value + * @property {number} CLUSTER_ASSIGNMENT=7 CLUSTER_ASSIGNMENT value + */ + admin.MatchableResource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TASK_RESOURCE"] = 0; + values[valuesById[1] = "CLUSTER_RESOURCE"] = 1; + values[valuesById[2] = "EXECUTION_QUEUE"] = 2; + values[valuesById[3] = "EXECUTION_CLUSTER_LABEL"] = 3; + values[valuesById[4] = "QUALITY_OF_SERVICE_SPECIFICATION"] = 4; + values[valuesById[5] = "PLUGIN_OVERRIDE"] = 5; + values[valuesById[6] = "WORKFLOW_EXECUTION_CONFIG"] = 6; + values[valuesById[7] = "CLUSTER_ASSIGNMENT"] = 7; + return values; + })(); + + admin.TaskResourceSpec = (function() { + + /** + * Properties of a TaskResourceSpec. + * @memberof flyteidl.admin + * @interface ITaskResourceSpec + * @property {string|null} [cpu] TaskResourceSpec cpu + * @property {string|null} [gpu] TaskResourceSpec gpu + * @property {string|null} [memory] TaskResourceSpec memory + * @property {string|null} [storage] TaskResourceSpec storage + * @property {string|null} [ephemeralStorage] TaskResourceSpec ephemeralStorage + */ + + /** + * Constructs a new TaskResourceSpec. + * @memberof flyteidl.admin + * @classdesc Represents a TaskResourceSpec. + * @implements ITaskResourceSpec + * @constructor + * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set + */ + function TaskResourceSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskResourceSpec cpu. + * @member {string} cpu + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.cpu = ""; + + /** + * TaskResourceSpec gpu. + * @member {string} gpu + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.gpu = ""; + + /** + * TaskResourceSpec memory. + * @member {string} memory + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.memory = ""; + + /** + * TaskResourceSpec storage. + * @member {string} storage + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.storage = ""; + + /** + * TaskResourceSpec ephemeralStorage. + * @member {string} ephemeralStorage + * @memberof flyteidl.admin.TaskResourceSpec + * @instance + */ + TaskResourceSpec.prototype.ephemeralStorage = ""; + + /** + * Creates a new TaskResourceSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec instance + */ + TaskResourceSpec.create = function create(properties) { + return new TaskResourceSpec(properties); + }; + + /** + * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {flyteidl.admin.ITaskResourceSpec} message TaskResourceSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskResourceSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpu != null && message.hasOwnProperty("cpu")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cpu); + if (message.gpu != null && message.hasOwnProperty("gpu")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gpu); + if (message.memory != null && message.hasOwnProperty("memory")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.memory); + if (message.storage != null && message.hasOwnProperty("storage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.storage); + if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.ephemeralStorage); + return writer; + }; + + /** + * Decodes a TaskResourceSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskResourceSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cpu = reader.string(); + break; + case 2: + message.gpu = reader.string(); + break; + case 3: + message.memory = reader.string(); + break; + case 4: + message.storage = reader.string(); + break; + case 5: + message.ephemeralStorage = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskResourceSpec message. + * @function verify + * @memberof flyteidl.admin.TaskResourceSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskResourceSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpu != null && message.hasOwnProperty("cpu")) + if (!$util.isString(message.cpu)) + return "cpu: string expected"; + if (message.gpu != null && message.hasOwnProperty("gpu")) + if (!$util.isString(message.gpu)) + return "gpu: string expected"; + if (message.memory != null && message.hasOwnProperty("memory")) + if (!$util.isString(message.memory)) + return "memory: string expected"; + if (message.storage != null && message.hasOwnProperty("storage")) + if (!$util.isString(message.storage)) + return "storage: string expected"; + if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) + if (!$util.isString(message.ephemeralStorage)) + return "ephemeralStorage: string expected"; + return null; + }; + + return TaskResourceSpec; + })(); + + admin.TaskResourceAttributes = (function() { + + /** + * Properties of a TaskResourceAttributes. + * @memberof flyteidl.admin + * @interface ITaskResourceAttributes + * @property {flyteidl.admin.ITaskResourceSpec|null} [defaults] TaskResourceAttributes defaults + * @property {flyteidl.admin.ITaskResourceSpec|null} [limits] TaskResourceAttributes limits + */ + + /** + * Constructs a new TaskResourceAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a TaskResourceAttributes. + * @implements ITaskResourceAttributes + * @constructor + * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set + */ + function TaskResourceAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskResourceAttributes defaults. + * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} defaults + * @memberof flyteidl.admin.TaskResourceAttributes + * @instance + */ + TaskResourceAttributes.prototype.defaults = null; + + /** + * TaskResourceAttributes limits. + * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} limits + * @memberof flyteidl.admin.TaskResourceAttributes + * @instance + */ + TaskResourceAttributes.prototype.limits = null; + + /** + * Creates a new TaskResourceAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes instance + */ + TaskResourceAttributes.create = function create(properties) { + return new TaskResourceAttributes(properties); + }; + + /** + * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {flyteidl.admin.ITaskResourceAttributes} message TaskResourceAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskResourceAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaults != null && message.hasOwnProperty("defaults")) + $root.flyteidl.admin.TaskResourceSpec.encode(message.defaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limits != null && message.hasOwnProperty("limits")) + $root.flyteidl.admin.TaskResourceSpec.encode(message.limits, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskResourceAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskResourceAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.defaults = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); + break; + case 2: + message.limits = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskResourceAttributes message. + * @function verify + * @memberof flyteidl.admin.TaskResourceAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskResourceAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaults != null && message.hasOwnProperty("defaults")) { + var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.defaults); + if (error) + return "defaults." + error; + } + if (message.limits != null && message.hasOwnProperty("limits")) { + var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.limits); + if (error) + return "limits." + error; + } + return null; + }; + + return TaskResourceAttributes; + })(); + + admin.ClusterResourceAttributes = (function() { + + /** + * Properties of a ClusterResourceAttributes. + * @memberof flyteidl.admin + * @interface IClusterResourceAttributes + * @property {Object.|null} [attributes] ClusterResourceAttributes attributes + */ + + /** + * Constructs a new ClusterResourceAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a ClusterResourceAttributes. + * @implements IClusterResourceAttributes + * @constructor + * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set + */ + function ClusterResourceAttributes(properties) { + this.attributes = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ClusterResourceAttributes attributes. + * @member {Object.} attributes + * @memberof flyteidl.admin.ClusterResourceAttributes + * @instance + */ + ClusterResourceAttributes.prototype.attributes = $util.emptyObject; + + /** + * Creates a new ClusterResourceAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes instance + */ + ClusterResourceAttributes.create = function create(properties) { + return new ClusterResourceAttributes(properties); + }; + + /** + * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {flyteidl.admin.IClusterResourceAttributes} message ClusterResourceAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ClusterResourceAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim(); + return writer; + }; + + /** + * Decodes a ClusterResourceAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ClusterResourceAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterResourceAttributes(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.attributes === $util.emptyObject) + message.attributes = {}; + key = reader.string(); + reader.pos++; + message.attributes[key] = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ClusterResourceAttributes message. + * @function verify + * @memberof flyteidl.admin.ClusterResourceAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ClusterResourceAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (!$util.isObject(message.attributes)) + return "attributes: object expected"; + var key = Object.keys(message.attributes); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.attributes[key[i]])) + return "attributes: string{k:string} expected"; + } + return null; + }; + + return ClusterResourceAttributes; + })(); + + admin.ExecutionQueueAttributes = (function() { + + /** + * Properties of an ExecutionQueueAttributes. + * @memberof flyteidl.admin + * @interface IExecutionQueueAttributes + * @property {Array.|null} [tags] ExecutionQueueAttributes tags + */ + + /** + * Constructs a new ExecutionQueueAttributes. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionQueueAttributes. + * @implements IExecutionQueueAttributes + * @constructor + * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set + */ + function ExecutionQueueAttributes(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionQueueAttributes tags. + * @member {Array.} tags + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @instance + */ + ExecutionQueueAttributes.prototype.tags = $util.emptyArray; + + /** + * Creates a new ExecutionQueueAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes instance + */ + ExecutionQueueAttributes.create = function create(properties) { + return new ExecutionQueueAttributes(properties); + }; + + /** + * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {flyteidl.admin.IExecutionQueueAttributes} message ExecutionQueueAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionQueueAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]); + return writer; + }; + + /** + * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionQueueAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionQueueAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionQueueAttributes message. + * @function verify + * @memberof flyteidl.admin.ExecutionQueueAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionQueueAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + return ExecutionQueueAttributes; + })(); + + admin.ExecutionClusterLabel = (function() { + + /** + * Properties of an ExecutionClusterLabel. + * @memberof flyteidl.admin + * @interface IExecutionClusterLabel + * @property {string|null} [value] ExecutionClusterLabel value + */ + + /** + * Constructs a new ExecutionClusterLabel. + * @memberof flyteidl.admin + * @classdesc Represents an ExecutionClusterLabel. + * @implements IExecutionClusterLabel + * @constructor + * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set + */ + function ExecutionClusterLabel(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExecutionClusterLabel value. + * @member {string} value + * @memberof flyteidl.admin.ExecutionClusterLabel + * @instance + */ + ExecutionClusterLabel.prototype.value = ""; + + /** + * Creates a new ExecutionClusterLabel instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set + * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel instance + */ + ExecutionClusterLabel.create = function create(properties) { + return new ExecutionClusterLabel(properties); + }; + + /** + * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {flyteidl.admin.IExecutionClusterLabel} message ExecutionClusterLabel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExecutionClusterLabel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Decodes an ExecutionClusterLabel message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExecutionClusterLabel.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClusterLabel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExecutionClusterLabel message. + * @function verify + * @memberof flyteidl.admin.ExecutionClusterLabel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExecutionClusterLabel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return ExecutionClusterLabel; + })(); + + admin.PluginOverride = (function() { + + /** + * Properties of a PluginOverride. + * @memberof flyteidl.admin + * @interface IPluginOverride + * @property {string|null} [taskType] PluginOverride taskType + * @property {Array.|null} [pluginId] PluginOverride pluginId + * @property {flyteidl.admin.PluginOverride.MissingPluginBehavior|null} [missingPluginBehavior] PluginOverride missingPluginBehavior + */ + + /** + * Constructs a new PluginOverride. + * @memberof flyteidl.admin + * @classdesc Represents a PluginOverride. + * @implements IPluginOverride + * @constructor + * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set + */ + function PluginOverride(properties) { + this.pluginId = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PluginOverride taskType. + * @member {string} taskType + * @memberof flyteidl.admin.PluginOverride + * @instance + */ + PluginOverride.prototype.taskType = ""; + + /** + * PluginOverride pluginId. + * @member {Array.} pluginId + * @memberof flyteidl.admin.PluginOverride + * @instance + */ + PluginOverride.prototype.pluginId = $util.emptyArray; + + /** + * PluginOverride missingPluginBehavior. + * @member {flyteidl.admin.PluginOverride.MissingPluginBehavior} missingPluginBehavior + * @memberof flyteidl.admin.PluginOverride + * @instance + */ + PluginOverride.prototype.missingPluginBehavior = 0; + + /** + * Creates a new PluginOverride instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set + * @returns {flyteidl.admin.PluginOverride} PluginOverride instance + */ + PluginOverride.create = function create(properties) { + return new PluginOverride(properties); + }; + + /** + * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {flyteidl.admin.IPluginOverride} message PluginOverride message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PluginOverride.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.pluginId != null && message.pluginId.length) + for (var i = 0; i < message.pluginId.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pluginId[i]); + if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.missingPluginBehavior); + return writer; + }; + + /** + * Decodes a PluginOverride message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PluginOverride} PluginOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PluginOverride.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverride(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + if (!(message.pluginId && message.pluginId.length)) + message.pluginId = []; + message.pluginId.push(reader.string()); + break; + case 4: + message.missingPluginBehavior = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PluginOverride message. + * @function verify + * @memberof flyteidl.admin.PluginOverride + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PluginOverride.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.pluginId != null && message.hasOwnProperty("pluginId")) { + if (!Array.isArray(message.pluginId)) + return "pluginId: array expected"; + for (var i = 0; i < message.pluginId.length; ++i) + if (!$util.isString(message.pluginId[i])) + return "pluginId: string[] expected"; + } + if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) + switch (message.missingPluginBehavior) { + default: + return "missingPluginBehavior: enum value expected"; + case 0: + case 1: + break; + } + return null; + }; + + /** + * MissingPluginBehavior enum. + * @name flyteidl.admin.PluginOverride.MissingPluginBehavior + * @enum {string} + * @property {number} FAIL=0 FAIL value + * @property {number} USE_DEFAULT=1 USE_DEFAULT value + */ + PluginOverride.MissingPluginBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FAIL"] = 0; + values[valuesById[1] = "USE_DEFAULT"] = 1; + return values; + })(); + + return PluginOverride; + })(); + + admin.PluginOverrides = (function() { + + /** + * Properties of a PluginOverrides. + * @memberof flyteidl.admin + * @interface IPluginOverrides + * @property {Array.|null} [overrides] PluginOverrides overrides + */ + + /** + * Constructs a new PluginOverrides. + * @memberof flyteidl.admin + * @classdesc Represents a PluginOverrides. + * @implements IPluginOverrides + * @constructor + * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set + */ + function PluginOverrides(properties) { + this.overrides = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PluginOverrides overrides. + * @member {Array.} overrides + * @memberof flyteidl.admin.PluginOverrides + * @instance + */ + PluginOverrides.prototype.overrides = $util.emptyArray; + + /** + * Creates a new PluginOverrides instance using the specified properties. + * @function create + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set + * @returns {flyteidl.admin.PluginOverrides} PluginOverrides instance + */ + PluginOverrides.create = function create(properties) { + return new PluginOverrides(properties); + }; + + /** + * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {flyteidl.admin.IPluginOverrides} message PluginOverrides message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PluginOverrides.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.overrides != null && message.overrides.length) + for (var i = 0; i < message.overrides.length; ++i) + $root.flyteidl.admin.PluginOverride.encode(message.overrides[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a PluginOverrides message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.PluginOverrides} PluginOverrides + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PluginOverrides.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverrides(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.overrides && message.overrides.length)) + message.overrides = []; + message.overrides.push($root.flyteidl.admin.PluginOverride.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PluginOverrides message. + * @function verify + * @memberof flyteidl.admin.PluginOverrides + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PluginOverrides.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.overrides != null && message.hasOwnProperty("overrides")) { + if (!Array.isArray(message.overrides)) + return "overrides: array expected"; + for (var i = 0; i < message.overrides.length; ++i) { + var error = $root.flyteidl.admin.PluginOverride.verify(message.overrides[i]); + if (error) + return "overrides." + error; + } + } + return null; + }; + + return PluginOverrides; + })(); + + admin.WorkflowExecutionConfig = (function() { + + /** + * Properties of a WorkflowExecutionConfig. + * @memberof flyteidl.admin + * @interface IWorkflowExecutionConfig + * @property {number|null} [maxParallelism] WorkflowExecutionConfig maxParallelism + * @property {flyteidl.core.ISecurityContext|null} [securityContext] WorkflowExecutionConfig securityContext + * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] WorkflowExecutionConfig rawOutputDataConfig + * @property {flyteidl.admin.ILabels|null} [labels] WorkflowExecutionConfig labels + * @property {flyteidl.admin.IAnnotations|null} [annotations] WorkflowExecutionConfig annotations + * @property {google.protobuf.IBoolValue|null} [interruptible] WorkflowExecutionConfig interruptible + * @property {boolean|null} [overwriteCache] WorkflowExecutionConfig overwriteCache + * @property {flyteidl.admin.IEnvs|null} [envs] WorkflowExecutionConfig envs + */ + + /** + * Constructs a new WorkflowExecutionConfig. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowExecutionConfig. + * @implements IWorkflowExecutionConfig + * @constructor + * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set + */ + function WorkflowExecutionConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowExecutionConfig maxParallelism. + * @member {number} maxParallelism + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.maxParallelism = 0; + + /** + * WorkflowExecutionConfig securityContext. + * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.securityContext = null; + + /** + * WorkflowExecutionConfig rawOutputDataConfig. + * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.rawOutputDataConfig = null; + + /** + * WorkflowExecutionConfig labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.labels = null; + + /** + * WorkflowExecutionConfig annotations. + * @member {flyteidl.admin.IAnnotations|null|undefined} annotations + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.annotations = null; + + /** + * WorkflowExecutionConfig interruptible. + * @member {google.protobuf.IBoolValue|null|undefined} interruptible + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.interruptible = null; + + /** + * WorkflowExecutionConfig overwriteCache. + * @member {boolean} overwriteCache + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.overwriteCache = false; + + /** + * WorkflowExecutionConfig envs. + * @member {flyteidl.admin.IEnvs|null|undefined} envs + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @instance + */ + WorkflowExecutionConfig.prototype.envs = null; + + /** + * Creates a new WorkflowExecutionConfig instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig instance + */ + WorkflowExecutionConfig.create = function create(properties) { + return new WorkflowExecutionConfig(properties); + }; + + /** + * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {flyteidl.admin.IWorkflowExecutionConfig} message WorkflowExecutionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowExecutionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxParallelism); + if (message.securityContext != null && message.hasOwnProperty("securityContext")) + $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) + $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.annotations != null && message.hasOwnProperty("annotations")) + $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.interruptible != null && message.hasOwnProperty("interruptible")) + $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.overwriteCache); + if (message.envs != null && message.hasOwnProperty("envs")) + $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowExecutionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxParallelism = reader.int32(); + break; + case 2: + message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); + break; + case 3: + message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); + break; + case 4: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 5: + message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); + break; + case 6: + message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 7: + message.overwriteCache = reader.bool(); + break; + case 8: + message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowExecutionConfig message. + * @function verify + * @memberof flyteidl.admin.WorkflowExecutionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowExecutionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) + if (!$util.isInteger(message.maxParallelism)) + return "maxParallelism: integer expected"; + if (message.securityContext != null && message.hasOwnProperty("securityContext")) { + var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); + if (error) + return "securityContext." + error; + } + if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { + var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); + if (error) + return "rawOutputDataConfig." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.annotations != null && message.hasOwnProperty("annotations")) { + var error = $root.flyteidl.admin.Annotations.verify(message.annotations); + if (error) + return "annotations." + error; + } + if (message.interruptible != null && message.hasOwnProperty("interruptible")) { + var error = $root.google.protobuf.BoolValue.verify(message.interruptible); + if (error) + return "interruptible." + error; + } + if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) + if (typeof message.overwriteCache !== "boolean") + return "overwriteCache: boolean expected"; + if (message.envs != null && message.hasOwnProperty("envs")) { + var error = $root.flyteidl.admin.Envs.verify(message.envs); + if (error) + return "envs." + error; + } + return null; + }; + + return WorkflowExecutionConfig; + })(); + + admin.MatchingAttributes = (function() { + + /** + * Properties of a MatchingAttributes. + * @memberof flyteidl.admin + * @interface IMatchingAttributes + * @property {flyteidl.admin.ITaskResourceAttributes|null} [taskResourceAttributes] MatchingAttributes taskResourceAttributes + * @property {flyteidl.admin.IClusterResourceAttributes|null} [clusterResourceAttributes] MatchingAttributes clusterResourceAttributes + * @property {flyteidl.admin.IExecutionQueueAttributes|null} [executionQueueAttributes] MatchingAttributes executionQueueAttributes + * @property {flyteidl.admin.IExecutionClusterLabel|null} [executionClusterLabel] MatchingAttributes executionClusterLabel + * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] MatchingAttributes qualityOfService + * @property {flyteidl.admin.IPluginOverrides|null} [pluginOverrides] MatchingAttributes pluginOverrides + * @property {flyteidl.admin.IWorkflowExecutionConfig|null} [workflowExecutionConfig] MatchingAttributes workflowExecutionConfig + * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] MatchingAttributes clusterAssignment + */ + + /** + * Constructs a new MatchingAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a MatchingAttributes. + * @implements IMatchingAttributes + * @constructor + * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set + */ + function MatchingAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MatchingAttributes taskResourceAttributes. + * @member {flyteidl.admin.ITaskResourceAttributes|null|undefined} taskResourceAttributes + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.taskResourceAttributes = null; + + /** + * MatchingAttributes clusterResourceAttributes. + * @member {flyteidl.admin.IClusterResourceAttributes|null|undefined} clusterResourceAttributes + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.clusterResourceAttributes = null; + + /** + * MatchingAttributes executionQueueAttributes. + * @member {flyteidl.admin.IExecutionQueueAttributes|null|undefined} executionQueueAttributes + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.executionQueueAttributes = null; + + /** + * MatchingAttributes executionClusterLabel. + * @member {flyteidl.admin.IExecutionClusterLabel|null|undefined} executionClusterLabel + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.executionClusterLabel = null; + + /** + * MatchingAttributes qualityOfService. + * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.qualityOfService = null; + + /** + * MatchingAttributes pluginOverrides. + * @member {flyteidl.admin.IPluginOverrides|null|undefined} pluginOverrides + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.pluginOverrides = null; + + /** + * MatchingAttributes workflowExecutionConfig. + * @member {flyteidl.admin.IWorkflowExecutionConfig|null|undefined} workflowExecutionConfig + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.workflowExecutionConfig = null; + + /** + * MatchingAttributes clusterAssignment. + * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + MatchingAttributes.prototype.clusterAssignment = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MatchingAttributes target. + * @member {"taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"|undefined} target + * @memberof flyteidl.admin.MatchingAttributes + * @instance + */ + Object.defineProperty(MatchingAttributes.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["taskResourceAttributes", "clusterResourceAttributes", "executionQueueAttributes", "executionClusterLabel", "qualityOfService", "pluginOverrides", "workflowExecutionConfig", "clusterAssignment"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MatchingAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes instance + */ + MatchingAttributes.create = function create(properties) { + return new MatchingAttributes(properties); + }; + + /** + * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {flyteidl.admin.IMatchingAttributes} message MatchingAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MatchingAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) + $root.flyteidl.admin.TaskResourceAttributes.encode(message.taskResourceAttributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) + $root.flyteidl.admin.ClusterResourceAttributes.encode(message.clusterResourceAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) + $root.flyteidl.admin.ExecutionQueueAttributes.encode(message.executionQueueAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) + $root.flyteidl.admin.ExecutionClusterLabel.encode(message.executionClusterLabel, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) + $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) + $root.flyteidl.admin.PluginOverrides.encode(message.pluginOverrides, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) + $root.flyteidl.admin.WorkflowExecutionConfig.encode(message.workflowExecutionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) + $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MatchingAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MatchingAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchingAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskResourceAttributes = $root.flyteidl.admin.TaskResourceAttributes.decode(reader, reader.uint32()); + break; + case 2: + message.clusterResourceAttributes = $root.flyteidl.admin.ClusterResourceAttributes.decode(reader, reader.uint32()); + break; + case 3: + message.executionQueueAttributes = $root.flyteidl.admin.ExecutionQueueAttributes.decode(reader, reader.uint32()); + break; + case 4: + message.executionClusterLabel = $root.flyteidl.admin.ExecutionClusterLabel.decode(reader, reader.uint32()); + break; + case 5: + message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); + break; + case 6: + message.pluginOverrides = $root.flyteidl.admin.PluginOverrides.decode(reader, reader.uint32()); + break; + case 7: + message.workflowExecutionConfig = $root.flyteidl.admin.WorkflowExecutionConfig.decode(reader, reader.uint32()); + break; + case 8: + message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MatchingAttributes message. + * @function verify + * @memberof flyteidl.admin.MatchingAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MatchingAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) { + properties.target = 1; + { + var error = $root.flyteidl.admin.TaskResourceAttributes.verify(message.taskResourceAttributes); + if (error) + return "taskResourceAttributes." + error; + } + } + if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ClusterResourceAttributes.verify(message.clusterResourceAttributes); + if (error) + return "clusterResourceAttributes." + error; + } + } + if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ExecutionQueueAttributes.verify(message.executionQueueAttributes); + if (error) + return "executionQueueAttributes." + error; + } + } + if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ExecutionClusterLabel.verify(message.executionClusterLabel); + if (error) + return "executionClusterLabel." + error; + } + } + if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); + if (error) + return "qualityOfService." + error; + } + } + if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.PluginOverrides.verify(message.pluginOverrides); + if (error) + return "pluginOverrides." + error; + } + } + if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.WorkflowExecutionConfig.verify(message.workflowExecutionConfig); + if (error) + return "workflowExecutionConfig." + error; + } + } + if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + { + var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); + if (error) + return "clusterAssignment." + error; + } + } + return null; + }; + + return MatchingAttributes; + })(); + + admin.MatchableAttributesConfiguration = (function() { + + /** + * Properties of a MatchableAttributesConfiguration. + * @memberof flyteidl.admin + * @interface IMatchableAttributesConfiguration + * @property {flyteidl.admin.IMatchingAttributes|null} [attributes] MatchableAttributesConfiguration attributes + * @property {string|null} [domain] MatchableAttributesConfiguration domain + * @property {string|null} [project] MatchableAttributesConfiguration project + * @property {string|null} [workflow] MatchableAttributesConfiguration workflow + * @property {string|null} [launchPlan] MatchableAttributesConfiguration launchPlan + * @property {string|null} [org] MatchableAttributesConfiguration org + */ + + /** + * Constructs a new MatchableAttributesConfiguration. + * @memberof flyteidl.admin + * @classdesc Represents a MatchableAttributesConfiguration. + * @implements IMatchableAttributesConfiguration + * @constructor + * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set + */ + function MatchableAttributesConfiguration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MatchableAttributesConfiguration attributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} attributes + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.attributes = null; + + /** + * MatchableAttributesConfiguration domain. + * @member {string} domain + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.domain = ""; + + /** + * MatchableAttributesConfiguration project. + * @member {string} project + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.project = ""; + + /** + * MatchableAttributesConfiguration workflow. + * @member {string} workflow + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.workflow = ""; + + /** + * MatchableAttributesConfiguration launchPlan. + * @member {string} launchPlan + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.launchPlan = ""; + + /** + * MatchableAttributesConfiguration org. + * @member {string} org + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @instance + */ + MatchableAttributesConfiguration.prototype.org = ""; + + /** + * Creates a new MatchableAttributesConfiguration instance using the specified properties. + * @function create + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set + * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration instance + */ + MatchableAttributesConfiguration.create = function create(properties) { + return new MatchableAttributesConfiguration(properties); + }; + + /** + * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {flyteidl.admin.IMatchableAttributesConfiguration} message MatchableAttributesConfiguration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MatchableAttributesConfiguration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.project); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow); + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.launchPlan); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.org); + return writer; + }; + + /** + * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MatchableAttributesConfiguration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchableAttributesConfiguration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.project = reader.string(); + break; + case 4: + message.workflow = reader.string(); + break; + case 5: + message.launchPlan = reader.string(); + break; + case 6: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MatchableAttributesConfiguration message. + * @function verify + * @memberof flyteidl.admin.MatchableAttributesConfiguration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MatchableAttributesConfiguration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) + if (!$util.isString(message.launchPlan)) + return "launchPlan: string expected"; + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return MatchableAttributesConfiguration; + })(); + + admin.ListMatchableAttributesRequest = (function() { + + /** + * Properties of a ListMatchableAttributesRequest. + * @memberof flyteidl.admin + * @interface IListMatchableAttributesRequest + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ListMatchableAttributesRequest resourceType + * @property {string|null} [org] ListMatchableAttributesRequest org + */ + + /** + * Constructs a new ListMatchableAttributesRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ListMatchableAttributesRequest. + * @implements IListMatchableAttributesRequest + * @constructor + * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set + */ + function ListMatchableAttributesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListMatchableAttributesRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @instance + */ + ListMatchableAttributesRequest.prototype.resourceType = 0; + + /** + * ListMatchableAttributesRequest org. + * @member {string} org + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @instance + */ + ListMatchableAttributesRequest.prototype.org = ""; + + /** + * Creates a new ListMatchableAttributesRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest instance + */ + ListMatchableAttributesRequest.create = function create(properties) { + return new ListMatchableAttributesRequest(properties); + }; + + /** + * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {flyteidl.admin.IListMatchableAttributesRequest} message ListMatchableAttributesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMatchableAttributesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.org); + return writer; + }; + + /** + * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMatchableAttributesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListMatchableAttributesRequest message. + * @function verify + * @memberof flyteidl.admin.ListMatchableAttributesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMatchableAttributesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ListMatchableAttributesRequest; + })(); + + admin.ListMatchableAttributesResponse = (function() { + + /** + * Properties of a ListMatchableAttributesResponse. + * @memberof flyteidl.admin + * @interface IListMatchableAttributesResponse + * @property {Array.|null} [configurations] ListMatchableAttributesResponse configurations + */ + + /** + * Constructs a new ListMatchableAttributesResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ListMatchableAttributesResponse. + * @implements IListMatchableAttributesResponse + * @constructor + * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set + */ + function ListMatchableAttributesResponse(properties) { + this.configurations = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListMatchableAttributesResponse configurations. + * @member {Array.} configurations + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @instance + */ + ListMatchableAttributesResponse.prototype.configurations = $util.emptyArray; + + /** + * Creates a new ListMatchableAttributesResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse instance + */ + ListMatchableAttributesResponse.create = function create(properties) { + return new ListMatchableAttributesResponse(properties); + }; + + /** + * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {flyteidl.admin.IListMatchableAttributesResponse} message ListMatchableAttributesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMatchableAttributesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.configurations != null && message.configurations.length) + for (var i = 0; i < message.configurations.length; ++i) + $root.flyteidl.admin.MatchableAttributesConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMatchableAttributesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.configurations && message.configurations.length)) + message.configurations = []; + message.configurations.push($root.flyteidl.admin.MatchableAttributesConfiguration.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListMatchableAttributesResponse message. + * @function verify + * @memberof flyteidl.admin.ListMatchableAttributesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListMatchableAttributesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.configurations != null && message.hasOwnProperty("configurations")) { + if (!Array.isArray(message.configurations)) + return "configurations: array expected"; + for (var i = 0; i < message.configurations.length; ++i) { + var error = $root.flyteidl.admin.MatchableAttributesConfiguration.verify(message.configurations[i]); + if (error) + return "configurations." + error; + } + } + return null; + }; + + return ListMatchableAttributesResponse; + })(); + + admin.NodeExecutionGetRequest = (function() { + + /** + * Properties of a NodeExecutionGetRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionGetRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id + */ + + /** + * Constructs a new NodeExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetRequest. + * @implements INodeExecutionGetRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + */ + function NodeExecutionGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @instance + */ + NodeExecutionGetRequest.prototype.id = null; + + /** + * Creates a new NodeExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance + */ + NodeExecutionGetRequest.create = function create(properties) { + return new NodeExecutionGetRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NodeExecutionGetRequest; + })(); + + admin.NodeExecutionListRequest = (function() { + + /** + * Properties of a NodeExecutionListRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionListRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] NodeExecutionListRequest workflowExecutionId + * @property {number|null} [limit] NodeExecutionListRequest limit + * @property {string|null} [token] NodeExecutionListRequest token + * @property {string|null} [filters] NodeExecutionListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionListRequest sortBy + * @property {string|null} [uniqueParentId] NodeExecutionListRequest uniqueParentId + */ + + /** + * Constructs a new NodeExecutionListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionListRequest. + * @implements INodeExecutionListRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + */ + function NodeExecutionListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.workflowExecutionId = null; + + /** + * NodeExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.limit = 0; + + /** + * NodeExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.token = ""; + + /** + * NodeExecutionListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.filters = ""; + + /** + * NodeExecutionListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.sortBy = null; + + /** + * NodeExecutionListRequest uniqueParentId. + * @member {string} uniqueParentId + * @memberof flyteidl.admin.NodeExecutionListRequest + * @instance + */ + NodeExecutionListRequest.prototype.uniqueParentId = ""; + + /** + * Creates a new NodeExecutionListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest instance + */ + NodeExecutionListRequest.create = function create(properties) { + return new NodeExecutionListRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.uniqueParentId); + return writer; + }; + + /** + * Decodes a NodeExecutionListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 6: + message.uniqueParentId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionListRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); + if (error) + return "workflowExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) + if (!$util.isString(message.uniqueParentId)) + return "uniqueParentId: string expected"; + return null; + }; + + return NodeExecutionListRequest; + })(); + + admin.NodeExecutionForTaskListRequest = (function() { + + /** + * Properties of a NodeExecutionForTaskListRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionForTaskListRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] NodeExecutionForTaskListRequest taskExecutionId + * @property {number|null} [limit] NodeExecutionForTaskListRequest limit + * @property {string|null} [token] NodeExecutionForTaskListRequest token + * @property {string|null} [filters] NodeExecutionForTaskListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionForTaskListRequest sortBy + */ + + /** + * Constructs a new NodeExecutionForTaskListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionForTaskListRequest. + * @implements INodeExecutionForTaskListRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + */ + function NodeExecutionForTaskListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionForTaskListRequest taskExecutionId. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.taskExecutionId = null; + + /** + * NodeExecutionForTaskListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.limit = 0; + + /** + * NodeExecutionForTaskListRequest token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.token = ""; + + /** + * NodeExecutionForTaskListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.filters = ""; + + /** + * NodeExecutionForTaskListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @instance + */ + NodeExecutionForTaskListRequest.prototype.sortBy = null; + + /** + * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance + */ + NodeExecutionForTaskListRequest.create = function create(properties) { + return new NodeExecutionForTaskListRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionForTaskListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionForTaskListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionForTaskListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionForTaskListRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionForTaskListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionForTaskListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); + if (error) + return "taskExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return NodeExecutionForTaskListRequest; + })(); + + admin.NodeExecution = (function() { + + /** + * Properties of a NodeExecution. + * @memberof flyteidl.admin + * @interface INodeExecution + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecution id + * @property {string|null} [inputUri] NodeExecution inputUri + * @property {flyteidl.admin.INodeExecutionClosure|null} [closure] NodeExecution closure + * @property {flyteidl.admin.INodeExecutionMetaData|null} [metadata] NodeExecution metadata + */ + + /** + * Constructs a new NodeExecution. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecution. + * @implements INodeExecution + * @constructor + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + */ + function NodeExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecution id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.id = null; + + /** + * NodeExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.inputUri = ""; + + /** + * NodeExecution closure. + * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.closure = null; + + /** + * NodeExecution metadata. + * @member {flyteidl.admin.INodeExecutionMetaData|null|undefined} metadata + * @memberof flyteidl.admin.NodeExecution + * @instance + */ + NodeExecution.prototype.metadata = null; + + /** + * Creates a new NodeExecution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecution} NodeExecution instance + */ + NodeExecution.create = function create(properties) { + return new NodeExecution(properties); + }; + + /** + * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.NodeExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.admin.NodeExecutionMetaData.encode(message.metadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecution} NodeExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputUri = reader.string(); + break; + case 3: + message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); + break; + case 4: + message.metadata = $root.flyteidl.admin.NodeExecutionMetaData.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecution message. + * @function verify + * @memberof flyteidl.admin.NodeExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.NodeExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.admin.NodeExecutionMetaData.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + return NodeExecution; + })(); + + admin.NodeExecutionMetaData = (function() { + + /** + * Properties of a NodeExecutionMetaData. + * @memberof flyteidl.admin + * @interface INodeExecutionMetaData + * @property {string|null} [retryGroup] NodeExecutionMetaData retryGroup + * @property {boolean|null} [isParentNode] NodeExecutionMetaData isParentNode + * @property {string|null} [specNodeId] NodeExecutionMetaData specNodeId + * @property {boolean|null} [isDynamic] NodeExecutionMetaData isDynamic + * @property {boolean|null} [isArray] NodeExecutionMetaData isArray + */ + + /** + * Constructs a new NodeExecutionMetaData. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionMetaData. + * @implements INodeExecutionMetaData + * @constructor + * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set + */ + function NodeExecutionMetaData(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionMetaData retryGroup. + * @member {string} retryGroup + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.retryGroup = ""; + + /** + * NodeExecutionMetaData isParentNode. + * @member {boolean} isParentNode + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.isParentNode = false; + + /** + * NodeExecutionMetaData specNodeId. + * @member {string} specNodeId + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.specNodeId = ""; + + /** + * NodeExecutionMetaData isDynamic. + * @member {boolean} isDynamic + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.isDynamic = false; + + /** + * NodeExecutionMetaData isArray. + * @member {boolean} isArray + * @memberof flyteidl.admin.NodeExecutionMetaData + * @instance + */ + NodeExecutionMetaData.prototype.isArray = false; + + /** + * Creates a new NodeExecutionMetaData instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData instance + */ + NodeExecutionMetaData.create = function create(properties) { + return new NodeExecutionMetaData(properties); + }; + + /** + * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {flyteidl.admin.INodeExecutionMetaData} message NodeExecutionMetaData message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionMetaData.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.retryGroup); + if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isParentNode); + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.specNodeId); + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isDynamic); + if (message.isArray != null && message.hasOwnProperty("isArray")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isArray); + return writer; + }; + + /** + * Decodes a NodeExecutionMetaData message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionMetaData.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionMetaData(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.retryGroup = reader.string(); + break; + case 2: + message.isParentNode = reader.bool(); + break; + case 3: + message.specNodeId = reader.string(); + break; + case 4: + message.isDynamic = reader.bool(); + break; + case 5: + message.isArray = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionMetaData message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionMetaData + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionMetaData.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) + if (!$util.isString(message.retryGroup)) + return "retryGroup: string expected"; + if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) + if (typeof message.isParentNode !== "boolean") + return "isParentNode: boolean expected"; + if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) + if (!$util.isString(message.specNodeId)) + return "specNodeId: string expected"; + if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) + if (typeof message.isDynamic !== "boolean") + return "isDynamic: boolean expected"; + if (message.isArray != null && message.hasOwnProperty("isArray")) + if (typeof message.isArray !== "boolean") + return "isArray: boolean expected"; + return null; + }; + + return NodeExecutionMetaData; + })(); + + admin.NodeExecutionList = (function() { + + /** + * Properties of a NodeExecutionList. + * @memberof flyteidl.admin + * @interface INodeExecutionList + * @property {Array.|null} [nodeExecutions] NodeExecutionList nodeExecutions + * @property {string|null} [token] NodeExecutionList token + */ + + /** + * Constructs a new NodeExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionList. + * @implements INodeExecutionList + * @constructor + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + */ + function NodeExecutionList(properties) { + this.nodeExecutions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionList nodeExecutions. + * @member {Array.} nodeExecutions + * @memberof flyteidl.admin.NodeExecutionList + * @instance + */ + NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; + + /** + * NodeExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.NodeExecutionList + * @instance + */ + NodeExecutionList.prototype.token = ""; + + /** + * Creates a new NodeExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance + */ + NodeExecutionList.create = function create(properties) { + return new NodeExecutionList(properties); + }; + + /** + * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeExecutions != null && message.nodeExecutions.length) + for (var i = 0; i < message.nodeExecutions.length; ++i) + $root.flyteidl.admin.NodeExecution.encode(message.nodeExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a NodeExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodeExecutions && message.nodeExecutions.length)) + message.nodeExecutions = []; + message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionList message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeExecutions != null && message.hasOwnProperty("nodeExecutions")) { + if (!Array.isArray(message.nodeExecutions)) + return "nodeExecutions: array expected"; + for (var i = 0; i < message.nodeExecutions.length; ++i) { + var error = $root.flyteidl.admin.NodeExecution.verify(message.nodeExecutions[i]); + if (error) + return "nodeExecutions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return NodeExecutionList; + })(); + + admin.NodeExecutionClosure = (function() { + + /** + * Properties of a NodeExecutionClosure. + * @memberof flyteidl.admin + * @interface INodeExecutionClosure + * @property {string|null} [outputUri] NodeExecutionClosure outputUri + * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionClosure error + * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionClosure outputData + * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionClosure phase + * @property {google.protobuf.ITimestamp|null} [startedAt] NodeExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] NodeExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] NodeExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] NodeExecutionClosure updatedAt + * @property {flyteidl.admin.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionClosure workflowNodeMetadata + * @property {flyteidl.admin.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionClosure taskNodeMetadata + * @property {string|null} [deckUri] NodeExecutionClosure deckUri + * @property {string|null} [dynamicJobSpecUri] NodeExecutionClosure dynamicJobSpecUri + */ + + /** + * Constructs a new NodeExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionClosure. + * @implements INodeExecutionClosure + * @constructor + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + */ + function NodeExecutionClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.outputUri = ""; + + /** + * NodeExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.error = null; + + /** + * NodeExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.outputData = null; + + /** + * NodeExecutionClosure phase. + * @member {flyteidl.core.NodeExecution.Phase} phase + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.phase = 0; + + /** + * NodeExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.startedAt = null; + + /** + * NodeExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.duration = null; + + /** + * NodeExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.createdAt = null; + + /** + * NodeExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.updatedAt = null; + + /** + * NodeExecutionClosure workflowNodeMetadata. + * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.workflowNodeMetadata = null; + + /** + * NodeExecutionClosure taskNodeMetadata. + * @member {flyteidl.admin.ITaskNodeMetadata|null|undefined} taskNodeMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.taskNodeMetadata = null; + + /** + * NodeExecutionClosure deckUri. + * @member {string} deckUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.deckUri = ""; + + /** + * NodeExecutionClosure dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + NodeExecutionClosure.prototype.dynamicJobSpecUri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeExecutionClosure outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + Object.defineProperty(NodeExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * NodeExecutionClosure targetMetadata. + * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata + * @memberof flyteidl.admin.NodeExecutionClosure + * @instance + */ + Object.defineProperty(NodeExecutionClosure.prototype, "targetMetadata", { + get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NodeExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance + */ + NodeExecutionClosure.create = function create(properties) { + return new NodeExecutionClosure(properties); + }; + + /** + * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) + $root.flyteidl.admin.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) + $root.flyteidl.admin.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.deckUri); + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.dynamicJobSpecUri); + return writer; + }; + + /** + * Decodes a NodeExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputUri = reader.string(); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 10: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 6: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.workflowNodeMetadata = $root.flyteidl.admin.WorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 9: + message.taskNodeMetadata = $root.flyteidl.admin.TaskNodeMetadata.decode(reader, reader.uint32()); + break; + case 11: + message.deckUri = reader.string(); + break; + case 12: + message.dynamicJobSpecUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { + properties.targetMetadata = 1; + { + var error = $root.flyteidl.admin.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); + if (error) + return "workflowNodeMetadata." + error; + } + } + if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { + if (properties.targetMetadata === 1) + return "targetMetadata: multiple values"; + properties.targetMetadata = 1; + { + var error = $root.flyteidl.admin.TaskNodeMetadata.verify(message.taskNodeMetadata); + if (error) + return "taskNodeMetadata." + error; + } + } + if (message.deckUri != null && message.hasOwnProperty("deckUri")) + if (!$util.isString(message.deckUri)) + return "deckUri: string expected"; + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + if (!$util.isString(message.dynamicJobSpecUri)) + return "dynamicJobSpecUri: string expected"; + return null; + }; + + return NodeExecutionClosure; + })(); + + admin.WorkflowNodeMetadata = (function() { + + /** + * Properties of a WorkflowNodeMetadata. + * @memberof flyteidl.admin + * @interface IWorkflowNodeMetadata + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId + */ + + /** + * Constructs a new WorkflowNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowNodeMetadata. + * @implements IWorkflowNodeMetadata + * @constructor + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + */ + function WorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowNodeMetadata executionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @instance + */ + WorkflowNodeMetadata.prototype.executionId = null; + + /** + * Creates a new WorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance + */ + WorkflowNodeMetadata.create = function create(properties) { + return new WorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.executionId != null && message.hasOwnProperty("executionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.WorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.executionId != null && message.hasOwnProperty("executionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); + if (error) + return "executionId." + error; + } + return null; + }; + + return WorkflowNodeMetadata; + })(); + + admin.TaskNodeMetadata = (function() { + + /** + * Properties of a TaskNodeMetadata. + * @memberof flyteidl.admin + * @interface ITaskNodeMetadata + * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus + * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey + * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri + */ + + /** + * Constructs a new TaskNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a TaskNodeMetadata. + * @implements ITaskNodeMetadata + * @constructor + * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set + */ + function TaskNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskNodeMetadata cacheStatus. + * @member {flyteidl.core.CatalogCacheStatus} cacheStatus + * @memberof flyteidl.admin.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.cacheStatus = 0; + + /** + * TaskNodeMetadata catalogKey. + * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey + * @memberof flyteidl.admin.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.catalogKey = null; + + /** + * TaskNodeMetadata checkpointUri. + * @member {string} checkpointUri + * @memberof flyteidl.admin.TaskNodeMetadata + * @instance + */ + TaskNodeMetadata.prototype.checkpointUri = ""; + + /** + * Creates a new TaskNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata instance + */ + TaskNodeMetadata.create = function create(properties) { + return new TaskNodeMetadata(properties); + }; + + /** + * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {flyteidl.admin.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) + $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); + return writer; + }; + + /** + * Decodes a TaskNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cacheStatus = reader.int32(); + break; + case 2: + message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); + break; + case 4: + message.checkpointUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.TaskNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + switch (message.cacheStatus) { + default: + return "cacheStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { + var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); + if (error) + return "catalogKey." + error; + } + if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) + if (!$util.isString(message.checkpointUri)) + return "checkpointUri: string expected"; + return null; + }; + + return TaskNodeMetadata; + })(); + + admin.DynamicWorkflowNodeMetadata = (function() { + + /** + * Properties of a DynamicWorkflowNodeMetadata. + * @memberof flyteidl.admin + * @interface IDynamicWorkflowNodeMetadata + * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow + * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri + */ + + /** + * Constructs a new DynamicWorkflowNodeMetadata. + * @memberof flyteidl.admin + * @classdesc Represents a DynamicWorkflowNodeMetadata. + * @implements IDynamicWorkflowNodeMetadata + * @constructor + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + */ + function DynamicWorkflowNodeMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicWorkflowNodeMetadata id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.id = null; + + /** + * DynamicWorkflowNodeMetadata compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; + + /** + * DynamicWorkflowNodeMetadata dynamicJobSpecUri. + * @member {string} dynamicJobSpecUri + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @instance + */ + DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; + + /** + * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set + * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance + */ + DynamicWorkflowNodeMetadata.create = function create(properties) { + return new DynamicWorkflowNodeMetadata(properties); + }; + + /** + * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicWorkflowNodeMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); + return writer; + }; + + /** + * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DynamicWorkflowNodeMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 3: + message.dynamicJobSpecUri = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicWorkflowNodeMetadata message. + * @function verify + * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicWorkflowNodeMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) + if (!$util.isString(message.dynamicJobSpecUri)) + return "dynamicJobSpecUri: string expected"; + return null; + }; + + return DynamicWorkflowNodeMetadata; + })(); + + admin.NodeExecutionGetDataRequest = (function() { + + /** + * Properties of a NodeExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface INodeExecutionGetDataRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id + */ + + /** + * Constructs a new NodeExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetDataRequest. + * @implements INodeExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + */ + function NodeExecutionGetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetDataRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @instance + */ + NodeExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new NodeExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest instance + */ + NodeExecutionGetDataRequest.create = function create(properties) { + return new NodeExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return NodeExecutionGetDataRequest; + })(); + + admin.NodeExecutionGetDataResponse = (function() { + + /** + * Properties of a NodeExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface INodeExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [inputs] NodeExecutionGetDataResponse inputs + * @property {flyteidl.admin.IUrlBlob|null} [outputs] NodeExecutionGetDataResponse outputs + * @property {flyteidl.core.ILiteralMap|null} [fullInputs] NodeExecutionGetDataResponse fullInputs + * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] NodeExecutionGetDataResponse fullOutputs + * @property {flyteidl.admin.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] NodeExecutionGetDataResponse dynamicWorkflow + * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] NodeExecutionGetDataResponse flyteUrls + */ + + /** + * Constructs a new NodeExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a NodeExecutionGetDataResponse. + * @implements INodeExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + */ + function NodeExecutionGetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NodeExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.inputs = null; + + /** + * NodeExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.outputs = null; + + /** + * NodeExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.fullInputs = null; + + /** + * NodeExecutionGetDataResponse fullOutputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.fullOutputs = null; + + /** + * NodeExecutionGetDataResponse dynamicWorkflow. + * @member {flyteidl.admin.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.dynamicWorkflow = null; + + /** + * NodeExecutionGetDataResponse flyteUrls. + * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @instance + */ + NodeExecutionGetDataResponse.prototype.flyteUrls = null; + + /** + * Creates a new NodeExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance + */ + NodeExecutionGetDataResponse.create = function create(properties) { + return new NodeExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) + $root.flyteidl.admin.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) + $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 3: + message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 16: + message.dynamicWorkflow = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); + break; + case 17: + message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a NodeExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.NodeExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (error) + return "fullInputs." + error; + } + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); + if (error) + return "fullOutputs." + error; + } + if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { + var error = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); + if (error) + return "dynamicWorkflow." + error; + } + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { + var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); + if (error) + return "flyteUrls." + error; + } + return null; + }; + + return NodeExecutionGetDataResponse; + })(); + + admin.GetDynamicNodeWorkflowRequest = (function() { + + /** + * Properties of a GetDynamicNodeWorkflowRequest. + * @memberof flyteidl.admin + * @interface IGetDynamicNodeWorkflowRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] GetDynamicNodeWorkflowRequest id + */ + + /** + * Constructs a new GetDynamicNodeWorkflowRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetDynamicNodeWorkflowRequest. + * @implements IGetDynamicNodeWorkflowRequest + * @constructor + * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest=} [properties] Properties to set + */ + function GetDynamicNodeWorkflowRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetDynamicNodeWorkflowRequest id. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest + * @instance + */ + GetDynamicNodeWorkflowRequest.prototype.id = null; + + /** + * Creates a new GetDynamicNodeWorkflowRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest + * @static + * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetDynamicNodeWorkflowRequest} GetDynamicNodeWorkflowRequest instance + */ + GetDynamicNodeWorkflowRequest.create = function create(properties) { + return new GetDynamicNodeWorkflowRequest(properties); + }; + + /** + * Encodes the specified GetDynamicNodeWorkflowRequest message. Does not implicitly {@link flyteidl.admin.GetDynamicNodeWorkflowRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest + * @static + * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest} message GetDynamicNodeWorkflowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDynamicNodeWorkflowRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetDynamicNodeWorkflowRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetDynamicNodeWorkflowRequest} GetDynamicNodeWorkflowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDynamicNodeWorkflowRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetDynamicNodeWorkflowRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetDynamicNodeWorkflowRequest message. + * @function verify + * @memberof flyteidl.admin.GetDynamicNodeWorkflowRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDynamicNodeWorkflowRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return GetDynamicNodeWorkflowRequest; + })(); + + admin.DynamicNodeWorkflowResponse = (function() { + + /** + * Properties of a DynamicNodeWorkflowResponse. + * @memberof flyteidl.admin + * @interface IDynamicNodeWorkflowResponse + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicNodeWorkflowResponse compiledWorkflow + */ + + /** + * Constructs a new DynamicNodeWorkflowResponse. + * @memberof flyteidl.admin + * @classdesc Represents a DynamicNodeWorkflowResponse. + * @implements IDynamicNodeWorkflowResponse + * @constructor + * @param {flyteidl.admin.IDynamicNodeWorkflowResponse=} [properties] Properties to set + */ + function DynamicNodeWorkflowResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DynamicNodeWorkflowResponse compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.DynamicNodeWorkflowResponse + * @instance + */ + DynamicNodeWorkflowResponse.prototype.compiledWorkflow = null; + + /** + * Creates a new DynamicNodeWorkflowResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.DynamicNodeWorkflowResponse + * @static + * @param {flyteidl.admin.IDynamicNodeWorkflowResponse=} [properties] Properties to set + * @returns {flyteidl.admin.DynamicNodeWorkflowResponse} DynamicNodeWorkflowResponse instance + */ + DynamicNodeWorkflowResponse.create = function create(properties) { + return new DynamicNodeWorkflowResponse(properties); + }; + + /** + * Encodes the specified DynamicNodeWorkflowResponse message. Does not implicitly {@link flyteidl.admin.DynamicNodeWorkflowResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.DynamicNodeWorkflowResponse + * @static + * @param {flyteidl.admin.IDynamicNodeWorkflowResponse} message DynamicNodeWorkflowResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DynamicNodeWorkflowResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a DynamicNodeWorkflowResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.DynamicNodeWorkflowResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.DynamicNodeWorkflowResponse} DynamicNodeWorkflowResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DynamicNodeWorkflowResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DynamicNodeWorkflowResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DynamicNodeWorkflowResponse message. + * @function verify + * @memberof flyteidl.admin.DynamicNodeWorkflowResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DynamicNodeWorkflowResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + return null; + }; + + return DynamicNodeWorkflowResponse; + })(); + + admin.EmailMessage = (function() { + + /** + * Properties of an EmailMessage. + * @memberof flyteidl.admin + * @interface IEmailMessage + * @property {Array.|null} [recipientsEmail] EmailMessage recipientsEmail + * @property {string|null} [senderEmail] EmailMessage senderEmail + * @property {string|null} [subjectLine] EmailMessage subjectLine + * @property {string|null} [body] EmailMessage body + */ + + /** + * Constructs a new EmailMessage. + * @memberof flyteidl.admin + * @classdesc Represents an EmailMessage. + * @implements IEmailMessage + * @constructor + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + */ + function EmailMessage(properties) { + this.recipientsEmail = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailMessage recipientsEmail. + * @member {Array.} recipientsEmail + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.recipientsEmail = $util.emptyArray; + + /** + * EmailMessage senderEmail. + * @member {string} senderEmail + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.senderEmail = ""; + + /** + * EmailMessage subjectLine. + * @member {string} subjectLine + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.subjectLine = ""; + + /** + * EmailMessage body. + * @member {string} body + * @memberof flyteidl.admin.EmailMessage + * @instance + */ + EmailMessage.prototype.body = ""; + + /** + * Creates a new EmailMessage instance using the specified properties. + * @function create + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set + * @returns {flyteidl.admin.EmailMessage} EmailMessage instance + */ + EmailMessage.create = function create(properties) { + return new EmailMessage(properties); + }; + + /** + * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailMessage.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.recipientsEmail != null && message.recipientsEmail.length) + for (var i = 0; i < message.recipientsEmail.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); + if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.senderEmail); + if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subjectLine); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.body); + return writer; + }; + + /** + * Decodes an EmailMessage message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.EmailMessage} EmailMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailMessage.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailMessage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.recipientsEmail && message.recipientsEmail.length)) + message.recipientsEmail = []; + message.recipientsEmail.push(reader.string()); + break; + case 2: + message.senderEmail = reader.string(); + break; + case 3: + message.subjectLine = reader.string(); + break; + case 4: + message.body = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EmailMessage message. + * @function verify + * @memberof flyteidl.admin.EmailMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { + if (!Array.isArray(message.recipientsEmail)) + return "recipientsEmail: array expected"; + for (var i = 0; i < message.recipientsEmail.length; ++i) + if (!$util.isString(message.recipientsEmail[i])) + return "recipientsEmail: string[] expected"; + } + if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) + if (!$util.isString(message.senderEmail)) + return "senderEmail: string expected"; + if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) + if (!$util.isString(message.subjectLine)) + return "subjectLine: string expected"; + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + return null; + }; + + return EmailMessage; + })(); + + admin.Domain = (function() { + + /** + * Properties of a Domain. + * @memberof flyteidl.admin + * @interface IDomain + * @property {string|null} [id] Domain id + * @property {string|null} [name] Domain name + */ + + /** + * Constructs a new Domain. + * @memberof flyteidl.admin + * @classdesc Represents a Domain. + * @implements IDomain + * @constructor + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + */ + function Domain(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Domain id. + * @member {string} id + * @memberof flyteidl.admin.Domain + * @instance + */ + Domain.prototype.id = ""; + + /** + * Domain name. + * @member {string} name + * @memberof flyteidl.admin.Domain + * @instance + */ + Domain.prototype.name = ""; + + /** + * Creates a new Domain instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Domain + * @static + * @param {flyteidl.admin.IDomain=} [properties] Properties to set + * @returns {flyteidl.admin.Domain} Domain instance + */ + Domain.create = function create(properties) { + return new Domain(properties); + }; + + /** + * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Domain + * @static + * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Domain.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + return writer; + }; + + /** + * Decodes a Domain message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Domain + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Domain} Domain + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Domain.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Domain(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Domain message. + * @function verify + * @memberof flyteidl.admin.Domain + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Domain.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + return Domain; + })(); + + admin.Project = (function() { + + /** + * Properties of a Project. + * @memberof flyteidl.admin + * @interface IProject + * @property {string|null} [id] Project id + * @property {string|null} [name] Project name + * @property {Array.|null} [domains] Project domains + * @property {string|null} [description] Project description + * @property {flyteidl.admin.ILabels|null} [labels] Project labels + * @property {flyteidl.admin.Project.ProjectState|null} [state] Project state + * @property {string|null} [org] Project org + */ + + /** + * Constructs a new Project. + * @memberof flyteidl.admin + * @classdesc Represents a Project. + * @implements IProject + * @constructor + * @param {flyteidl.admin.IProject=} [properties] Properties to set + */ + function Project(properties) { + this.domains = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Project id. + * @member {string} id + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.id = ""; + + /** + * Project name. + * @member {string} name + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.name = ""; + + /** + * Project domains. + * @member {Array.} domains + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.domains = $util.emptyArray; + + /** + * Project description. + * @member {string} description + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.description = ""; + + /** + * Project labels. + * @member {flyteidl.admin.ILabels|null|undefined} labels + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.labels = null; + + /** + * Project state. + * @member {flyteidl.admin.Project.ProjectState} state + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.state = 0; + + /** + * Project org. + * @member {string} org + * @memberof flyteidl.admin.Project + * @instance + */ + Project.prototype.org = ""; + + /** + * Creates a new Project instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Project + * @static + * @param {flyteidl.admin.IProject=} [properties] Properties to set + * @returns {flyteidl.admin.Project} Project instance + */ + Project.create = function create(properties) { + return new Project(properties); + }; + + /** + * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Project + * @static + * @param {flyteidl.admin.IProject} message Project message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Project.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.domains != null && message.domains.length) + for (var i = 0; i < message.domains.length; ++i) + $root.flyteidl.admin.Domain.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); + if (message.labels != null && message.hasOwnProperty("labels")) + $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.org); + return writer; + }; + + /** + * Decodes a Project message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Project + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Project} Project + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Project.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Project(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + if (!(message.domains && message.domains.length)) + message.domains = []; + message.domains.push($root.flyteidl.admin.Domain.decode(reader, reader.uint32())); + break; + case 4: + message.description = reader.string(); + break; + case 5: + message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); + break; + case 6: + message.state = reader.int32(); + break; + case 7: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Project message. + * @function verify + * @memberof flyteidl.admin.Project + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Project.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.domains != null && message.hasOwnProperty("domains")) { + if (!Array.isArray(message.domains)) + return "domains: array expected"; + for (var i = 0; i < message.domains.length; ++i) { + var error = $root.flyteidl.admin.Domain.verify(message.domains[i]); + if (error) + return "domains." + error; + } + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.flyteidl.admin.Labels.verify(message.labels); + if (error) + return "labels." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + /** + * ProjectState enum. + * @name flyteidl.admin.Project.ProjectState + * @enum {string} + * @property {number} ACTIVE=0 ACTIVE value + * @property {number} ARCHIVED=1 ARCHIVED value + * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value + */ + Project.ProjectState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ACTIVE"] = 0; + values[valuesById[1] = "ARCHIVED"] = 1; + values[valuesById[2] = "SYSTEM_GENERATED"] = 2; + return values; + })(); + + return Project; + })(); + + admin.Projects = (function() { + + /** + * Properties of a Projects. + * @memberof flyteidl.admin + * @interface IProjects + * @property {Array.|null} [projects] Projects projects + * @property {string|null} [token] Projects token + */ + + /** + * Constructs a new Projects. + * @memberof flyteidl.admin + * @classdesc Represents a Projects. + * @implements IProjects + * @constructor + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + */ + function Projects(properties) { + this.projects = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Projects projects. + * @member {Array.} projects + * @memberof flyteidl.admin.Projects + * @instance + */ + Projects.prototype.projects = $util.emptyArray; + + /** + * Projects token. + * @member {string} token + * @memberof flyteidl.admin.Projects + * @instance + */ + Projects.prototype.token = ""; + + /** + * Creates a new Projects instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Projects + * @static + * @param {flyteidl.admin.IProjects=} [properties] Properties to set + * @returns {flyteidl.admin.Projects} Projects instance + */ + Projects.create = function create(properties) { + return new Projects(properties); + }; + + /** + * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Projects + * @static + * @param {flyteidl.admin.IProjects} message Projects message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Projects.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projects != null && message.projects.length) + for (var i = 0; i < message.projects.length; ++i) + $root.flyteidl.admin.Project.encode(message.projects[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a Projects message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Projects + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Projects} Projects + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Projects.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Projects(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.projects && message.projects.length)) + message.projects = []; + message.projects.push($root.flyteidl.admin.Project.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Projects message. + * @function verify + * @memberof flyteidl.admin.Projects + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Projects.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.projects != null && message.hasOwnProperty("projects")) { + if (!Array.isArray(message.projects)) + return "projects: array expected"; + for (var i = 0; i < message.projects.length; ++i) { + var error = $root.flyteidl.admin.Project.verify(message.projects[i]); + if (error) + return "projects." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return Projects; + })(); + + admin.ProjectListRequest = (function() { + + /** + * Properties of a ProjectListRequest. + * @memberof flyteidl.admin + * @interface IProjectListRequest + * @property {number|null} [limit] ProjectListRequest limit + * @property {string|null} [token] ProjectListRequest token + * @property {string|null} [filters] ProjectListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] ProjectListRequest sortBy + * @property {string|null} [org] ProjectListRequest org + */ + + /** + * Constructs a new ProjectListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectListRequest. + * @implements IProjectListRequest + * @constructor + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + */ + function ProjectListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.limit = 0; + + /** + * ProjectListRequest token. + * @member {string} token + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.token = ""; + + /** + * ProjectListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.filters = ""; + + /** + * ProjectListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.sortBy = null; + + /** + * ProjectListRequest org. + * @member {string} org + * @memberof flyteidl.admin.ProjectListRequest + * @instance + */ + ProjectListRequest.prototype.org = ""; + + /** + * Creates a new ProjectListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance + */ + ProjectListRequest.create = function create(properties) { + return new ProjectListRequest(properties); + }; + + /** + * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.limit = reader.uint32(); + break; + case 2: + message.token = reader.string(); + break; + case 3: + message.filters = reader.string(); + break; + case 4: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + case 5: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectListRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectListRequest; + })(); + + admin.ProjectRegisterRequest = (function() { + + /** + * Properties of a ProjectRegisterRequest. + * @memberof flyteidl.admin + * @interface IProjectRegisterRequest + * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project + */ + + /** + * Constructs a new ProjectRegisterRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectRegisterRequest. + * @implements IProjectRegisterRequest + * @constructor + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + */ + function ProjectRegisterRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectRegisterRequest project. + * @member {flyteidl.admin.IProject|null|undefined} project + * @memberof flyteidl.admin.ProjectRegisterRequest + * @instance + */ + ProjectRegisterRequest.prototype.project = null; + + /** + * Creates a new ProjectRegisterRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance + */ + ProjectRegisterRequest.create = function create(properties) { + return new ProjectRegisterRequest(properties); + }; + + /** + * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectRegisterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + $root.flyteidl.admin.Project.encode(message.project, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectRegisterRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectRegisterRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectRegisterRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectRegisterRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectRegisterRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) { + var error = $root.flyteidl.admin.Project.verify(message.project); + if (error) + return "project." + error; + } + return null; + }; + + return ProjectRegisterRequest; + })(); + + admin.ProjectRegisterResponse = (function() { + + /** + * Properties of a ProjectRegisterResponse. + * @memberof flyteidl.admin + * @interface IProjectRegisterResponse + */ + + /** + * Constructs a new ProjectRegisterResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectRegisterResponse. + * @implements IProjectRegisterResponse + * @constructor + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + */ + function ProjectRegisterResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectRegisterResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance + */ + ProjectRegisterResponse.create = function create(properties) { + return new ProjectRegisterResponse(properties); + }; + + /** + * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectRegisterResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectRegisterResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectRegisterResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectRegisterResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectRegisterResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectRegisterResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectRegisterResponse; + })(); + + admin.ProjectUpdateResponse = (function() { + + /** + * Properties of a ProjectUpdateResponse. + * @memberof flyteidl.admin + * @interface IProjectUpdateResponse + */ + + /** + * Constructs a new ProjectUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectUpdateResponse. + * @implements IProjectUpdateResponse + * @constructor + * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set + */ + function ProjectUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse instance + */ + ProjectUpdateResponse.create = function create(properties) { + return new ProjectUpdateResponse(properties); + }; + + /** + * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {flyteidl.admin.IProjectUpdateResponse} message ProjectUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectUpdateResponse; + })(); + + admin.ProjectAttributes = (function() { + + /** + * Properties of a ProjectAttributes. + * @memberof flyteidl.admin + * @interface IProjectAttributes + * @property {string|null} [project] ProjectAttributes project + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectAttributes matchingAttributes + * @property {string|null} [org] ProjectAttributes org + */ + + /** + * Constructs a new ProjectAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributes. + * @implements IProjectAttributes + * @constructor + * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set + */ + function ProjectAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributes project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributes + * @instance + */ + ProjectAttributes.prototype.project = ""; + + /** + * ProjectAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.ProjectAttributes + * @instance + */ + ProjectAttributes.prototype.matchingAttributes = null; + + /** + * ProjectAttributes org. + * @member {string} org + * @memberof flyteidl.admin.ProjectAttributes + * @instance + */ + ProjectAttributes.prototype.org = ""; + + /** + * Creates a new ProjectAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes instance + */ + ProjectAttributes.create = function create(properties) { + return new ProjectAttributes(properties); + }; + + /** + * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {flyteidl.admin.IProjectAttributes} message ProjectAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + case 3: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributes message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectAttributes; + })(); + + admin.ProjectAttributesUpdateRequest = (function() { + + /** + * Properties of a ProjectAttributesUpdateRequest. + * @memberof flyteidl.admin + * @interface IProjectAttributesUpdateRequest + * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesUpdateRequest attributes + */ + + /** + * Constructs a new ProjectAttributesUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesUpdateRequest. + * @implements IProjectAttributesUpdateRequest + * @constructor + * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set + */ + function ProjectAttributesUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @instance + */ + ProjectAttributesUpdateRequest.prototype.attributes = null; + + /** + * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest instance + */ + ProjectAttributesUpdateRequest.create = function create(properties) { + return new ProjectAttributesUpdateRequest(properties); + }; + + /** + * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} message ProjectAttributesUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectAttributesUpdateRequest; + })(); + + admin.ProjectAttributesUpdateResponse = (function() { + + /** + * Properties of a ProjectAttributesUpdateResponse. + * @memberof flyteidl.admin + * @interface IProjectAttributesUpdateResponse + */ + + /** + * Constructs a new ProjectAttributesUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesUpdateResponse. + * @implements IProjectAttributesUpdateResponse + * @constructor + * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set + */ + function ProjectAttributesUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse instance + */ + ProjectAttributesUpdateResponse.create = function create(properties) { + return new ProjectAttributesUpdateResponse(properties); + }; + + /** + * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectAttributesUpdateResponse} message ProjectAttributesUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectAttributesUpdateResponse; + })(); + + admin.ProjectAttributesGetRequest = (function() { + + /** + * Properties of a ProjectAttributesGetRequest. + * @memberof flyteidl.admin + * @interface IProjectAttributesGetRequest + * @property {string|null} [project] ProjectAttributesGetRequest project + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesGetRequest resourceType + * @property {string|null} [org] ProjectAttributesGetRequest org + */ + + /** + * Constructs a new ProjectAttributesGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesGetRequest. + * @implements IProjectAttributesGetRequest + * @constructor + * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set + */ + function ProjectAttributesGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance + */ + ProjectAttributesGetRequest.prototype.project = ""; + + /** + * ProjectAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance + */ + ProjectAttributesGetRequest.prototype.resourceType = 0; + + /** + * ProjectAttributesGetRequest org. + * @member {string} org + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @instance + */ + ProjectAttributesGetRequest.prototype.org = ""; + + /** + * Creates a new ProjectAttributesGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest instance + */ + ProjectAttributesGetRequest.create = function create(properties) { + return new ProjectAttributesGetRequest(properties); + }; + + /** + * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectAttributesGetRequest} message ProjectAttributesGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.resourceType = reader.int32(); + break; + case 3: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesGetRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectAttributesGetRequest; + })(); + + admin.ProjectAttributesGetResponse = (function() { + + /** + * Properties of a ProjectAttributesGetResponse. + * @memberof flyteidl.admin + * @interface IProjectAttributesGetResponse + * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesGetResponse attributes + */ + + /** + * Constructs a new ProjectAttributesGetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesGetResponse. + * @implements IProjectAttributesGetResponse + * @constructor + * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set + */ + function ProjectAttributesGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesGetResponse attributes. + * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @instance + */ + ProjectAttributesGetResponse.prototype.attributes = null; + + /** + * Creates a new ProjectAttributesGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse instance + */ + ProjectAttributesGetResponse.create = function create(properties) { + return new ProjectAttributesGetResponse(properties); + }; + + /** + * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectAttributesGetResponse} message ProjectAttributesGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesGetResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectAttributesGetResponse; + })(); + + admin.ProjectAttributesDeleteRequest = (function() { + + /** + * Properties of a ProjectAttributesDeleteRequest. + * @memberof flyteidl.admin + * @interface IProjectAttributesDeleteRequest + * @property {string|null} [project] ProjectAttributesDeleteRequest project + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesDeleteRequest resourceType + * @property {string|null} [org] ProjectAttributesDeleteRequest org + */ + + /** + * Constructs a new ProjectAttributesDeleteRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesDeleteRequest. + * @implements IProjectAttributesDeleteRequest + * @constructor + * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set + */ + function ProjectAttributesDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @instance + */ + ProjectAttributesDeleteRequest.prototype.project = ""; + + /** + * ProjectAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @instance + */ + ProjectAttributesDeleteRequest.prototype.resourceType = 0; + + /** + * ProjectAttributesDeleteRequest org. + * @member {string} org + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @instance + */ + ProjectAttributesDeleteRequest.prototype.org = ""; + + /** + * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest instance + */ + ProjectAttributesDeleteRequest.create = function create(properties) { + return new ProjectAttributesDeleteRequest(properties); + }; + + /** + * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} message ProjectAttributesDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.resourceType = reader.int32(); + break; + case 3: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesDeleteRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectAttributesDeleteRequest; + })(); + + admin.ProjectAttributesDeleteResponse = (function() { + + /** + * Properties of a ProjectAttributesDeleteResponse. + * @memberof flyteidl.admin + * @interface IProjectAttributesDeleteResponse + */ + + /** + * Constructs a new ProjectAttributesDeleteResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectAttributesDeleteResponse. + * @implements IProjectAttributesDeleteResponse + * @constructor + * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set + */ + function ProjectAttributesDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse instance + */ + ProjectAttributesDeleteResponse.create = function create(properties) { + return new ProjectAttributesDeleteResponse(properties); + }; + + /** + * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectAttributesDeleteResponse} message ProjectAttributesDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectAttributesDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectAttributesDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectAttributesDeleteResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectAttributesDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectAttributesDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectAttributesDeleteResponse; + })(); + + admin.ProjectDomainAttributes = (function() { + + /** + * Properties of a ProjectDomainAttributes. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributes + * @property {string|null} [project] ProjectDomainAttributes project + * @property {string|null} [domain] ProjectDomainAttributes domain + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectDomainAttributes matchingAttributes + * @property {string|null} [org] ProjectDomainAttributes org + */ + + /** + * Constructs a new ProjectDomainAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributes. + * @implements IProjectDomainAttributes + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set + */ + function ProjectDomainAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributes project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.project = ""; + + /** + * ProjectDomainAttributes domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.domain = ""; + + /** + * ProjectDomainAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.matchingAttributes = null; + + /** + * ProjectDomainAttributes org. + * @member {string} org + * @memberof flyteidl.admin.ProjectDomainAttributes + * @instance + */ + ProjectDomainAttributes.prototype.org = ""; + + /** + * Creates a new ProjectDomainAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes instance + */ + ProjectDomainAttributes.create = function create(properties) { + return new ProjectDomainAttributes(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {flyteidl.admin.IProjectDomainAttributes} message ProjectDomainAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + case 4: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributes message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectDomainAttributes; + })(); + + admin.ProjectDomainAttributesUpdateRequest = (function() { + + /** + * Properties of a ProjectDomainAttributesUpdateRequest. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesUpdateRequest + * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesUpdateRequest attributes + */ + + /** + * Constructs a new ProjectDomainAttributesUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesUpdateRequest. + * @implements IProjectDomainAttributesUpdateRequest + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set + */ + function ProjectDomainAttributesUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @instance + */ + ProjectDomainAttributesUpdateRequest.prototype.attributes = null; + + /** + * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest instance + */ + ProjectDomainAttributesUpdateRequest.create = function create(properties) { + return new ProjectDomainAttributesUpdateRequest(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} message ProjectDomainAttributesUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectDomainAttributesUpdateRequest; + })(); + + admin.ProjectDomainAttributesUpdateResponse = (function() { + + /** + * Properties of a ProjectDomainAttributesUpdateResponse. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesUpdateResponse + */ + + /** + * Constructs a new ProjectDomainAttributesUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesUpdateResponse. + * @implements IProjectDomainAttributesUpdateResponse + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set + */ + function ProjectDomainAttributesUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse instance + */ + ProjectDomainAttributesUpdateResponse.create = function create(properties) { + return new ProjectDomainAttributesUpdateResponse(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse} message ProjectDomainAttributesUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectDomainAttributesUpdateResponse; + })(); + + admin.ProjectDomainAttributesGetRequest = (function() { + + /** + * Properties of a ProjectDomainAttributesGetRequest. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesGetRequest + * @property {string|null} [project] ProjectDomainAttributesGetRequest project + * @property {string|null} [domain] ProjectDomainAttributesGetRequest domain + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesGetRequest resourceType + * @property {string|null} [org] ProjectDomainAttributesGetRequest org + */ + + /** + * Constructs a new ProjectDomainAttributesGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesGetRequest. + * @implements IProjectDomainAttributesGetRequest + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set + */ + function ProjectDomainAttributesGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.project = ""; + + /** + * ProjectDomainAttributesGetRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.domain = ""; + + /** + * ProjectDomainAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.resourceType = 0; + + /** + * ProjectDomainAttributesGetRequest org. + * @member {string} org + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @instance + */ + ProjectDomainAttributesGetRequest.prototype.org = ""; + + /** + * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest instance + */ + ProjectDomainAttributesGetRequest.create = function create(properties) { + return new ProjectDomainAttributesGetRequest(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} message ProjectDomainAttributesGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.resourceType = reader.int32(); + break; + case 4: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesGetRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectDomainAttributesGetRequest; + })(); + + admin.ProjectDomainAttributesGetResponse = (function() { + + /** + * Properties of a ProjectDomainAttributesGetResponse. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesGetResponse + * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesGetResponse attributes + */ + + /** + * Constructs a new ProjectDomainAttributesGetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesGetResponse. + * @implements IProjectDomainAttributesGetResponse + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set + */ + function ProjectDomainAttributesGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesGetResponse attributes. + * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @instance + */ + ProjectDomainAttributesGetResponse.prototype.attributes = null; + + /** + * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse instance + */ + ProjectDomainAttributesGetResponse.create = function create(properties) { + return new ProjectDomainAttributesGetResponse(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesGetResponse} message ProjectDomainAttributesGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesGetResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return ProjectDomainAttributesGetResponse; + })(); + + admin.ProjectDomainAttributesDeleteRequest = (function() { + + /** + * Properties of a ProjectDomainAttributesDeleteRequest. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesDeleteRequest + * @property {string|null} [project] ProjectDomainAttributesDeleteRequest project + * @property {string|null} [domain] ProjectDomainAttributesDeleteRequest domain + * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesDeleteRequest resourceType + * @property {string|null} [org] ProjectDomainAttributesDeleteRequest org + */ + + /** + * Constructs a new ProjectDomainAttributesDeleteRequest. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesDeleteRequest. + * @implements IProjectDomainAttributesDeleteRequest + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set + */ + function ProjectDomainAttributesDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ProjectDomainAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.project = ""; + + /** + * ProjectDomainAttributesDeleteRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.domain = ""; + + /** + * ProjectDomainAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.resourceType = 0; + + /** + * ProjectDomainAttributesDeleteRequest org. + * @member {string} org + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @instance + */ + ProjectDomainAttributesDeleteRequest.prototype.org = ""; + + /** + * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest instance + */ + ProjectDomainAttributesDeleteRequest.create = function create(properties) { + return new ProjectDomainAttributesDeleteRequest(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} message ProjectDomainAttributesDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.org); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.resourceType = reader.int32(); + break; + case 4: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesDeleteRequest message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return ProjectDomainAttributesDeleteRequest; + })(); + + admin.ProjectDomainAttributesDeleteResponse = (function() { + + /** + * Properties of a ProjectDomainAttributesDeleteResponse. + * @memberof flyteidl.admin + * @interface IProjectDomainAttributesDeleteResponse + */ + + /** + * Constructs a new ProjectDomainAttributesDeleteResponse. + * @memberof flyteidl.admin + * @classdesc Represents a ProjectDomainAttributesDeleteResponse. + * @implements IProjectDomainAttributesDeleteResponse + * @constructor + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set + */ + function ProjectDomainAttributesDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse instance + */ + ProjectDomainAttributesDeleteResponse.create = function create(properties) { + return new ProjectDomainAttributesDeleteResponse(properties); + }; + + /** + * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse} message ProjectDomainAttributesDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ProjectDomainAttributesDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ProjectDomainAttributesDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ProjectDomainAttributesDeleteResponse message. + * @function verify + * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ProjectDomainAttributesDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return ProjectDomainAttributesDeleteResponse; + })(); + + admin.SignalGetOrCreateRequest = (function() { + + /** + * Properties of a SignalGetOrCreateRequest. + * @memberof flyteidl.admin + * @interface ISignalGetOrCreateRequest + * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalGetOrCreateRequest id + * @property {flyteidl.core.ILiteralType|null} [type] SignalGetOrCreateRequest type + */ + + /** + * Constructs a new SignalGetOrCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a SignalGetOrCreateRequest. + * @implements ISignalGetOrCreateRequest + * @constructor + * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set + */ + function SignalGetOrCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalGetOrCreateRequest id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @instance + */ + SignalGetOrCreateRequest.prototype.id = null; + + /** + * SignalGetOrCreateRequest type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @instance + */ + SignalGetOrCreateRequest.prototype.type = null; + + /** + * Creates a new SignalGetOrCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest instance + */ + SignalGetOrCreateRequest.create = function create(properties) { + return new SignalGetOrCreateRequest(properties); + }; + + /** + * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {flyteidl.admin.ISignalGetOrCreateRequest} message SignalGetOrCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalGetOrCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalGetOrCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalGetOrCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalGetOrCreateRequest message. + * @function verify + * @memberof flyteidl.admin.SignalGetOrCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalGetOrCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + return null; + }; + + return SignalGetOrCreateRequest; + })(); + + admin.SignalListRequest = (function() { + + /** + * Properties of a SignalListRequest. + * @memberof flyteidl.admin + * @interface ISignalListRequest + * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] SignalListRequest workflowExecutionId + * @property {number|null} [limit] SignalListRequest limit + * @property {string|null} [token] SignalListRequest token + * @property {string|null} [filters] SignalListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] SignalListRequest sortBy + */ + + /** + * Constructs a new SignalListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a SignalListRequest. + * @implements ISignalListRequest + * @constructor + * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set + */ + function SignalListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalListRequest workflowExecutionId. + * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.workflowExecutionId = null; + + /** + * SignalListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.limit = 0; + + /** + * SignalListRequest token. + * @member {string} token + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.token = ""; + + /** + * SignalListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.filters = ""; + + /** + * SignalListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.SignalListRequest + * @instance + */ + SignalListRequest.prototype.sortBy = null; + + /** + * Creates a new SignalListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalListRequest} SignalListRequest instance + */ + SignalListRequest.create = function create(properties) { + return new SignalListRequest(properties); + }; + + /** + * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {flyteidl.admin.ISignalListRequest} message SignalListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) + $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalListRequest} SignalListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalListRequest message. + * @function verify + * @memberof flyteidl.admin.SignalListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { + var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); + if (error) + return "workflowExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return SignalListRequest; + })(); + + admin.SignalList = (function() { + + /** + * Properties of a SignalList. + * @memberof flyteidl.admin + * @interface ISignalList + * @property {Array.|null} [signals] SignalList signals + * @property {string|null} [token] SignalList token + */ + + /** + * Constructs a new SignalList. + * @memberof flyteidl.admin + * @classdesc Represents a SignalList. + * @implements ISignalList + * @constructor + * @param {flyteidl.admin.ISignalList=} [properties] Properties to set + */ + function SignalList(properties) { + this.signals = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalList signals. + * @member {Array.} signals + * @memberof flyteidl.admin.SignalList + * @instance + */ + SignalList.prototype.signals = $util.emptyArray; + + /** + * SignalList token. + * @member {string} token + * @memberof flyteidl.admin.SignalList + * @instance + */ + SignalList.prototype.token = ""; + + /** + * Creates a new SignalList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalList + * @static + * @param {flyteidl.admin.ISignalList=} [properties] Properties to set + * @returns {flyteidl.admin.SignalList} SignalList instance + */ + SignalList.create = function create(properties) { + return new SignalList(properties); + }; + + /** + * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalList + * @static + * @param {flyteidl.admin.ISignalList} message SignalList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signals != null && message.signals.length) + for (var i = 0; i < message.signals.length; ++i) + $root.flyteidl.admin.Signal.encode(message.signals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a SignalList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalList} SignalList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.signals && message.signals.length)) + message.signals = []; + message.signals.push($root.flyteidl.admin.Signal.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalList message. + * @function verify + * @memberof flyteidl.admin.SignalList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signals != null && message.hasOwnProperty("signals")) { + if (!Array.isArray(message.signals)) + return "signals: array expected"; + for (var i = 0; i < message.signals.length; ++i) { + var error = $root.flyteidl.admin.Signal.verify(message.signals[i]); + if (error) + return "signals." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return SignalList; + })(); + + admin.SignalSetRequest = (function() { + + /** + * Properties of a SignalSetRequest. + * @memberof flyteidl.admin + * @interface ISignalSetRequest + * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalSetRequest id + * @property {flyteidl.core.ILiteral|null} [value] SignalSetRequest value + */ + + /** + * Constructs a new SignalSetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a SignalSetRequest. + * @implements ISignalSetRequest + * @constructor + * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set + */ + function SignalSetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SignalSetRequest id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.SignalSetRequest + * @instance + */ + SignalSetRequest.prototype.id = null; + + /** + * SignalSetRequest value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.admin.SignalSetRequest + * @instance + */ + SignalSetRequest.prototype.value = null; + + /** + * Creates a new SignalSetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest instance + */ + SignalSetRequest.create = function create(properties) { + return new SignalSetRequest(properties); + }; + + /** + * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {flyteidl.admin.ISignalSetRequest} message SignalSetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalSetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SignalSetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalSetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalSetRequest message. + * @function verify + * @memberof flyteidl.admin.SignalSetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalSetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + return SignalSetRequest; + })(); + + admin.SignalSetResponse = (function() { + + /** + * Properties of a SignalSetResponse. + * @memberof flyteidl.admin + * @interface ISignalSetResponse + */ + + /** + * Constructs a new SignalSetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a SignalSetResponse. + * @implements ISignalSetResponse + * @constructor + * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set + */ + function SignalSetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new SignalSetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse instance + */ + SignalSetResponse.create = function create(properties) { + return new SignalSetResponse(properties); + }; + + /** + * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {flyteidl.admin.ISignalSetResponse} message SignalSetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SignalSetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a SignalSetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SignalSetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SignalSetResponse message. + * @function verify + * @memberof flyteidl.admin.SignalSetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SignalSetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return SignalSetResponse; + })(); + + admin.Signal = (function() { + + /** + * Properties of a Signal. + * @memberof flyteidl.admin + * @interface ISignal + * @property {flyteidl.core.ISignalIdentifier|null} [id] Signal id + * @property {flyteidl.core.ILiteralType|null} [type] Signal type + * @property {flyteidl.core.ILiteral|null} [value] Signal value + */ + + /** + * Constructs a new Signal. + * @memberof flyteidl.admin + * @classdesc Represents a Signal. + * @implements ISignal + * @constructor + * @param {flyteidl.admin.ISignal=} [properties] Properties to set + */ + function Signal(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Signal id. + * @member {flyteidl.core.ISignalIdentifier|null|undefined} id + * @memberof flyteidl.admin.Signal + * @instance + */ + Signal.prototype.id = null; + + /** + * Signal type. + * @member {flyteidl.core.ILiteralType|null|undefined} type + * @memberof flyteidl.admin.Signal + * @instance + */ + Signal.prototype.type = null; + + /** + * Signal value. + * @member {flyteidl.core.ILiteral|null|undefined} value + * @memberof flyteidl.admin.Signal + * @instance + */ + Signal.prototype.value = null; + + /** + * Creates a new Signal instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Signal + * @static + * @param {flyteidl.admin.ISignal=} [properties] Properties to set + * @returns {flyteidl.admin.Signal} Signal instance + */ + Signal.create = function create(properties) { + return new Signal(properties); + }; + + /** + * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Signal + * @static + * @param {flyteidl.admin.ISignal} message Signal message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Signal.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.type != null && message.hasOwnProperty("type")) + $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.value != null && message.hasOwnProperty("value")) + $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Signal message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Signal + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Signal} Signal + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Signal.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Signal(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); + break; + case 3: + message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Signal message. + * @function verify + * @memberof flyteidl.admin.Signal + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Signal.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.type != null && message.hasOwnProperty("type")) { + var error = $root.flyteidl.core.LiteralType.verify(message.type); + if (error) + return "type." + error; + } + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.flyteidl.core.Literal.verify(message.value); + if (error) + return "value." + error; + } + return null; + }; + + return Signal; + })(); + + admin.TaskCreateRequest = (function() { + + /** + * Properties of a TaskCreateRequest. + * @memberof flyteidl.admin + * @interface ITaskCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id + * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec + */ + + /** + * Constructs a new TaskCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest + * @constructor + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + */ + function TaskCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.id = null; + + /** + * TaskCreateRequest spec. + * @member {flyteidl.admin.ITaskSpec|null|undefined} spec + * @memberof flyteidl.admin.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.spec = null; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest instance + */ + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); + }; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {flyteidl.admin.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.TaskSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.TaskSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateRequest message. + * @function verify + * @memberof flyteidl.admin.TaskCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.TaskSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return TaskCreateRequest; + })(); + + admin.TaskCreateResponse = (function() { + + /** + * Properties of a TaskCreateResponse. + * @memberof flyteidl.admin + * @interface ITaskCreateResponse + */ + + /** + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + */ + function TaskCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse instance + */ + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {flyteidl.admin.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateResponse message. + * @function verify + * @memberof flyteidl.admin.TaskCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskCreateResponse; + })(); + + admin.Task = (function() { + + /** + * Properties of a Task. + * @memberof flyteidl.admin + * @interface ITask + * @property {flyteidl.core.IIdentifier|null} [id] Task id + * @property {flyteidl.admin.ITaskClosure|null} [closure] Task closure + * @property {string|null} [shortDescription] Task shortDescription + */ + + /** + * Constructs a new Task. + * @memberof flyteidl.admin + * @classdesc Represents a Task. + * @implements ITask + * @constructor + * @param {flyteidl.admin.ITask=} [properties] Properties to set + */ + function Task(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Task id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.id = null; + + /** + * Task closure. + * @member {flyteidl.admin.ITaskClosure|null|undefined} closure + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.closure = null; + + /** + * Task shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.Task + * @instance + */ + Task.prototype.shortDescription = ""; + + /** + * Creates a new Task instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Task + * @static + * @param {flyteidl.admin.ITask=} [properties] Properties to set + * @returns {flyteidl.admin.Task} Task instance + */ + Task.create = function create(properties) { + return new Task(properties); + }; + + /** + * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Task + * @static + * @param {flyteidl.admin.ITask} message Task message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Task.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.TaskClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); + return writer; + }; + + /** + * Decodes a Task message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Task + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Task} Task + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Task.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Task(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.closure = $root.flyteidl.admin.TaskClosure.decode(reader, reader.uint32()); + break; + case 3: + message.shortDescription = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Task message. + * @function verify + * @memberof flyteidl.admin.Task + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Task.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.TaskClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; + return null; + }; + + return Task; + })(); + + admin.TaskList = (function() { + + /** + * Properties of a TaskList. + * @memberof flyteidl.admin + * @interface ITaskList + * @property {Array.|null} [tasks] TaskList tasks + * @property {string|null} [token] TaskList token + */ + + /** + * Constructs a new TaskList. + * @memberof flyteidl.admin + * @classdesc Represents a TaskList. + * @implements ITaskList + * @constructor + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + */ + function TaskList(properties) { + this.tasks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskList tasks. + * @member {Array.} tasks + * @memberof flyteidl.admin.TaskList + * @instance + */ + TaskList.prototype.tasks = $util.emptyArray; + + /** + * TaskList token. + * @member {string} token + * @memberof flyteidl.admin.TaskList + * @instance + */ + TaskList.prototype.token = ""; + + /** + * Creates a new TaskList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskList + * @static + * @param {flyteidl.admin.ITaskList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskList} TaskList instance + */ + TaskList.create = function create(properties) { + return new TaskList(properties); + }; + + /** + * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskList + * @static + * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tasks != null && message.tasks.length) + for (var i = 0; i < message.tasks.length; ++i) + $root.flyteidl.admin.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a TaskList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskList} TaskList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.tasks && message.tasks.length)) + message.tasks = []; + message.tasks.push($root.flyteidl.admin.Task.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskList message. + * @function verify + * @memberof flyteidl.admin.TaskList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tasks != null && message.hasOwnProperty("tasks")) { + if (!Array.isArray(message.tasks)) + return "tasks: array expected"; + for (var i = 0; i < message.tasks.length; ++i) { + var error = $root.flyteidl.admin.Task.verify(message.tasks[i]); + if (error) + return "tasks." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return TaskList; + })(); + + admin.TaskSpec = (function() { + + /** + * Properties of a TaskSpec. + * @memberof flyteidl.admin + * @interface ITaskSpec + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template + * @property {flyteidl.admin.IDescriptionEntity|null} [description] TaskSpec description + */ + + /** + * Constructs a new TaskSpec. + * @memberof flyteidl.admin + * @classdesc Represents a TaskSpec. + * @implements ITaskSpec + * @constructor + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + */ + function TaskSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskSpec template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.admin.TaskSpec + * @instance + */ + TaskSpec.prototype.template = null; + + /** + * TaskSpec description. + * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description + * @memberof flyteidl.admin.TaskSpec + * @instance + */ + TaskSpec.prototype.description = null; + + /** + * Creates a new TaskSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set + * @returns {flyteidl.admin.TaskSpec} TaskSpec instance + */ + TaskSpec.create = function create(properties) { + return new TaskSpec(properties); + }; + + /** + * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskSpec} TaskSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 2: + message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskSpec message. + * @function verify + * @memberof flyteidl.admin.TaskSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.description != null && message.hasOwnProperty("description")) { + var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); + if (error) + return "description." + error; + } + return null; + }; + + return TaskSpec; + })(); + + admin.TaskClosure = (function() { + + /** + * Properties of a TaskClosure. + * @memberof flyteidl.admin + * @interface ITaskClosure + * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt + */ + + /** + * Constructs a new TaskClosure. + * @memberof flyteidl.admin + * @classdesc Represents a TaskClosure. + * @implements ITaskClosure + * @constructor + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + */ + function TaskClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskClosure compiledTask. + * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask + * @memberof flyteidl.admin.TaskClosure + * @instance + */ + TaskClosure.prototype.compiledTask = null; + + /** + * TaskClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskClosure + * @instance + */ + TaskClosure.prototype.createdAt = null; + + /** + * Creates a new TaskClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskClosure} TaskClosure instance + */ + TaskClosure.create = function create(properties) { + return new TaskClosure(properties); + }; + + /** + * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) + $root.flyteidl.core.CompiledTask.encode(message.compiledTask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskClosure} TaskClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledTask = $root.flyteidl.core.CompiledTask.decode(reader, reader.uint32()); + break; + case 2: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskClosure message. + * @function verify + * @memberof flyteidl.admin.TaskClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) { + var error = $root.flyteidl.core.CompiledTask.verify(message.compiledTask); + if (error) + return "compiledTask." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + return null; + }; + + return TaskClosure; + })(); + + admin.TaskExecutionGetRequest = (function() { + + /** + * Properties of a TaskExecutionGetRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id + */ + + /** + * Constructs a new TaskExecutionGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetRequest. + * @implements ITaskExecutionGetRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + */ + function TaskExecutionGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @instance + */ + TaskExecutionGetRequest.prototype.id = null; + + /** + * Creates a new TaskExecutionGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance + */ + TaskExecutionGetRequest.create = function create(properties) { + return new TaskExecutionGetRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return TaskExecutionGetRequest; + })(); + + admin.TaskExecutionListRequest = (function() { + + /** + * Properties of a TaskExecutionListRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionListRequest + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionListRequest nodeExecutionId + * @property {number|null} [limit] TaskExecutionListRequest limit + * @property {string|null} [token] TaskExecutionListRequest token + * @property {string|null} [filters] TaskExecutionListRequest filters + * @property {flyteidl.admin.ISort|null} [sortBy] TaskExecutionListRequest sortBy + */ + + /** + * Constructs a new TaskExecutionListRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionListRequest. + * @implements ITaskExecutionListRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + */ + function TaskExecutionListRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionListRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.nodeExecutionId = null; + + /** + * TaskExecutionListRequest limit. + * @member {number} limit + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.limit = 0; + + /** + * TaskExecutionListRequest token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.token = ""; + + /** + * TaskExecutionListRequest filters. + * @member {string} filters + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.filters = ""; + + /** + * TaskExecutionListRequest sortBy. + * @member {flyteidl.admin.ISort|null|undefined} sortBy + * @memberof flyteidl.admin.TaskExecutionListRequest + * @instance + */ + TaskExecutionListRequest.prototype.sortBy = null; + + /** + * Creates a new TaskExecutionListRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance + */ + TaskExecutionListRequest.create = function create(properties) { + return new TaskExecutionListRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionListRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.limit != null && message.hasOwnProperty("limit")) + writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); + if (message.filters != null && message.hasOwnProperty("filters")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); + if (message.sortBy != null && message.hasOwnProperty("sortBy")) + $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionListRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionListRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionListRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.limit = reader.uint32(); + break; + case 3: + message.token = reader.string(); + break; + case 4: + message.filters = reader.string(); + break; + case 5: + message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionListRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionListRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionListRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + if (message.limit != null && message.hasOwnProperty("limit")) + if (!$util.isInteger(message.limit)) + return "limit: integer expected"; + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + if (message.filters != null && message.hasOwnProperty("filters")) + if (!$util.isString(message.filters)) + return "filters: string expected"; + if (message.sortBy != null && message.hasOwnProperty("sortBy")) { + var error = $root.flyteidl.admin.Sort.verify(message.sortBy); + if (error) + return "sortBy." + error; + } + return null; + }; + + return TaskExecutionListRequest; + })(); + + admin.TaskExecution = (function() { + + /** + * Properties of a TaskExecution. + * @memberof flyteidl.admin + * @interface ITaskExecution + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecution id + * @property {string|null} [inputUri] TaskExecution inputUri + * @property {flyteidl.admin.ITaskExecutionClosure|null} [closure] TaskExecution closure + * @property {boolean|null} [isParent] TaskExecution isParent + */ + + /** + * Constructs a new TaskExecution. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecution. + * @implements ITaskExecution + * @constructor + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + */ + function TaskExecution(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecution id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.id = null; + + /** + * TaskExecution inputUri. + * @member {string} inputUri + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.inputUri = ""; + + /** + * TaskExecution closure. + * @member {flyteidl.admin.ITaskExecutionClosure|null|undefined} closure + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.closure = null; + + /** + * TaskExecution isParent. + * @member {boolean} isParent + * @memberof flyteidl.admin.TaskExecution + * @instance + */ + TaskExecution.prototype.isParent = false; + + /** + * Creates a new TaskExecution instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecution} TaskExecution instance + */ + TaskExecution.create = function create(properties) { + return new TaskExecution(properties); + }; + + /** + * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecution.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.TaskExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.isParent != null && message.hasOwnProperty("isParent")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isParent); + return writer; + }; + + /** + * Decodes a TaskExecution message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecution} TaskExecution + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecution.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecution(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + case 2: + message.inputUri = reader.string(); + break; + case 3: + message.closure = $root.flyteidl.admin.TaskExecutionClosure.decode(reader, reader.uint32()); + break; + case 4: + message.isParent = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecution message. + * @function verify + * @memberof flyteidl.admin.TaskExecution + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecution.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.inputUri != null && message.hasOwnProperty("inputUri")) + if (!$util.isString(message.inputUri)) + return "inputUri: string expected"; + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.TaskExecutionClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.isParent != null && message.hasOwnProperty("isParent")) + if (typeof message.isParent !== "boolean") + return "isParent: boolean expected"; + return null; + }; + + return TaskExecution; + })(); + + admin.TaskExecutionList = (function() { + + /** + * Properties of a TaskExecutionList. + * @memberof flyteidl.admin + * @interface ITaskExecutionList + * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions + * @property {string|null} [token] TaskExecutionList token + */ + + /** + * Constructs a new TaskExecutionList. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionList. + * @implements ITaskExecutionList + * @constructor + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + */ + function TaskExecutionList(properties) { + this.taskExecutions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionList taskExecutions. + * @member {Array.} taskExecutions + * @memberof flyteidl.admin.TaskExecutionList + * @instance + */ + TaskExecutionList.prototype.taskExecutions = $util.emptyArray; + + /** + * TaskExecutionList token. + * @member {string} token + * @memberof flyteidl.admin.TaskExecutionList + * @instance + */ + TaskExecutionList.prototype.token = ""; + + /** + * Creates a new TaskExecutionList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance + */ + TaskExecutionList.create = function create(properties) { + return new TaskExecutionList(properties); + }; + + /** + * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskExecutions != null && message.taskExecutions.length) + for (var i = 0; i < message.taskExecutions.length; ++i) + $root.flyteidl.admin.TaskExecution.encode(message.taskExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a TaskExecutionList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.taskExecutions && message.taskExecutions.length)) + message.taskExecutions = []; + message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionList message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskExecutions != null && message.hasOwnProperty("taskExecutions")) { + if (!Array.isArray(message.taskExecutions)) + return "taskExecutions: array expected"; + for (var i = 0; i < message.taskExecutions.length; ++i) { + var error = $root.flyteidl.admin.TaskExecution.verify(message.taskExecutions[i]); + if (error) + return "taskExecutions." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return TaskExecutionList; + })(); + + admin.TaskExecutionClosure = (function() { + + /** + * Properties of a TaskExecutionClosure. + * @memberof flyteidl.admin + * @interface ITaskExecutionClosure + * @property {string|null} [outputUri] TaskExecutionClosure outputUri + * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionClosure error + * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionClosure outputData + * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionClosure phase + * @property {Array.|null} [logs] TaskExecutionClosure logs + * @property {google.protobuf.ITimestamp|null} [startedAt] TaskExecutionClosure startedAt + * @property {google.protobuf.IDuration|null} [duration] TaskExecutionClosure duration + * @property {google.protobuf.ITimestamp|null} [createdAt] TaskExecutionClosure createdAt + * @property {google.protobuf.ITimestamp|null} [updatedAt] TaskExecutionClosure updatedAt + * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionClosure customInfo + * @property {string|null} [reason] TaskExecutionClosure reason + * @property {string|null} [taskType] TaskExecutionClosure taskType + * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionClosure metadata + * @property {number|null} [eventVersion] TaskExecutionClosure eventVersion + * @property {Array.|null} [reasons] TaskExecutionClosure reasons + */ + + /** + * Constructs a new TaskExecutionClosure. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionClosure. + * @implements ITaskExecutionClosure + * @constructor + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + */ + function TaskExecutionClosure(properties) { + this.logs = []; + this.reasons = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionClosure outputUri. + * @member {string} outputUri + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.outputUri = ""; + + /** + * TaskExecutionClosure error. + * @member {flyteidl.core.IExecutionError|null|undefined} error + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.error = null; + + /** + * TaskExecutionClosure outputData. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputData + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.outputData = null; + + /** + * TaskExecutionClosure phase. + * @member {flyteidl.core.TaskExecution.Phase} phase + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.phase = 0; + + /** + * TaskExecutionClosure logs. + * @member {Array.} logs + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.logs = $util.emptyArray; + + /** + * TaskExecutionClosure startedAt. + * @member {google.protobuf.ITimestamp|null|undefined} startedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.startedAt = null; + + /** + * TaskExecutionClosure duration. + * @member {google.protobuf.IDuration|null|undefined} duration + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.duration = null; + + /** + * TaskExecutionClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.createdAt = null; + + /** + * TaskExecutionClosure updatedAt. + * @member {google.protobuf.ITimestamp|null|undefined} updatedAt + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.updatedAt = null; + + /** + * TaskExecutionClosure customInfo. + * @member {google.protobuf.IStruct|null|undefined} customInfo + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.customInfo = null; + + /** + * TaskExecutionClosure reason. + * @member {string} reason + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.reason = ""; + + /** + * TaskExecutionClosure taskType. + * @member {string} taskType + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.taskType = ""; + + /** + * TaskExecutionClosure metadata. + * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.metadata = null; + + /** + * TaskExecutionClosure eventVersion. + * @member {number} eventVersion + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.eventVersion = 0; + + /** + * TaskExecutionClosure reasons. + * @member {Array.} reasons + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + TaskExecutionClosure.prototype.reasons = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TaskExecutionClosure outputResult. + * @member {"outputUri"|"error"|"outputData"|undefined} outputResult + * @memberof flyteidl.admin.TaskExecutionClosure + * @instance + */ + Object.defineProperty(TaskExecutionClosure.prototype, "outputResult", { + get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TaskExecutionClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance + */ + TaskExecutionClosure.create = function create(properties) { + return new TaskExecutionClosure(properties); + }; + + /** + * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.outputUri != null && message.hasOwnProperty("outputUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); + if (message.error != null && message.hasOwnProperty("error")) + $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.phase != null && message.hasOwnProperty("phase")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); + if (message.logs != null && message.logs.length) + for (var i = 0; i < message.logs.length; ++i) + $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.startedAt != null && message.hasOwnProperty("startedAt")) + $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.duration != null && message.hasOwnProperty("duration")) + $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) + $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.customInfo != null && message.hasOwnProperty("customInfo")) + $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reason != null && message.hasOwnProperty("reason")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reason); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.taskType); + if (message.outputData != null && message.hasOwnProperty("outputData")) + $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.metadata != null && message.hasOwnProperty("metadata")) + $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.eventVersion); + if (message.reasons != null && message.reasons.length) + for (var i = 0; i < message.reasons.length; ++i) + $root.flyteidl.admin.Reason.encode(message.reasons[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.outputUri = reader.string(); + break; + case 2: + message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); + break; + case 12: + message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 3: + message.phase = reader.int32(); + break; + case 4: + if (!(message.logs && message.logs.length)) + message.logs = []; + message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); + break; + case 5: + message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 7: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 10: + message.reason = reader.string(); + break; + case 11: + message.taskType = reader.string(); + break; + case 16: + message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); + break; + case 17: + message.eventVersion = reader.int32(); + break; + case 18: + if (!(message.reasons && message.reasons.length)) + message.reasons = []; + message.reasons.push($root.flyteidl.admin.Reason.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionClosure message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.outputUri != null && message.hasOwnProperty("outputUri")) { + properties.outputResult = 1; + if (!$util.isString(message.outputUri)) + return "outputUri: string expected"; + } + if (message.error != null && message.hasOwnProperty("error")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.ExecutionError.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.outputData != null && message.hasOwnProperty("outputData")) { + if (properties.outputResult === 1) + return "outputResult: multiple values"; + properties.outputResult = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); + if (error) + return "outputData." + error; + } + } + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.logs != null && message.hasOwnProperty("logs")) { + if (!Array.isArray(message.logs)) + return "logs: array expected"; + for (var i = 0; i < message.logs.length; ++i) { + var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); + if (error) + return "logs." + error; + } + } + if (message.startedAt != null && message.hasOwnProperty("startedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.startedAt); + if (error) + return "startedAt." + error; + } + if (message.duration != null && message.hasOwnProperty("duration")) { + var error = $root.google.protobuf.Duration.verify(message.duration); + if (error) + return "duration." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); + if (error) + return "updatedAt." + error; + } + if (message.customInfo != null && message.hasOwnProperty("customInfo")) { + var error = $root.google.protobuf.Struct.verify(message.customInfo); + if (error) + return "customInfo." + error; + } + if (message.reason != null && message.hasOwnProperty("reason")) + if (!$util.isString(message.reason)) + return "reason: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) + if (!$util.isInteger(message.eventVersion)) + return "eventVersion: integer expected"; + if (message.reasons != null && message.hasOwnProperty("reasons")) { + if (!Array.isArray(message.reasons)) + return "reasons: array expected"; + for (var i = 0; i < message.reasons.length; ++i) { + var error = $root.flyteidl.admin.Reason.verify(message.reasons[i]); + if (error) + return "reasons." + error; + } + } + return null; + }; + + return TaskExecutionClosure; + })(); + + admin.Reason = (function() { + + /** + * Properties of a Reason. + * @memberof flyteidl.admin + * @interface IReason + * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt + * @property {string|null} [message] Reason message + */ + + /** + * Constructs a new Reason. + * @memberof flyteidl.admin + * @classdesc Represents a Reason. + * @implements IReason + * @constructor + * @param {flyteidl.admin.IReason=} [properties] Properties to set + */ + function Reason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Reason occurredAt. + * @member {google.protobuf.ITimestamp|null|undefined} occurredAt + * @memberof flyteidl.admin.Reason + * @instance + */ + Reason.prototype.occurredAt = null; + + /** + * Reason message. + * @member {string} message + * @memberof flyteidl.admin.Reason + * @instance + */ + Reason.prototype.message = ""; + + /** + * Creates a new Reason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Reason + * @static + * @param {flyteidl.admin.IReason=} [properties] Properties to set + * @returns {flyteidl.admin.Reason} Reason instance + */ + Reason.create = function create(properties) { + return new Reason(properties); + }; + + /** + * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Reason + * @static + * @param {flyteidl.admin.IReason} message Reason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Reason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) + $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + return writer; + }; + + /** + * Decodes a Reason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Reason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Reason} Reason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Reason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Reason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.message = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Reason message. + * @function verify + * @memberof flyteidl.admin.Reason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Reason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); + if (error) + return "occurredAt." + error; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + return null; + }; + + return Reason; + })(); + + admin.TaskExecutionGetDataRequest = (function() { + + /** + * Properties of a TaskExecutionGetDataRequest. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetDataRequest + * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id + */ + + /** + * Constructs a new TaskExecutionGetDataRequest. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetDataRequest. + * @implements ITaskExecutionGetDataRequest + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + */ + function TaskExecutionGetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetDataRequest id. + * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @instance + */ + TaskExecutionGetDataRequest.prototype.id = null; + + /** + * Creates a new TaskExecutionGetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance + */ + TaskExecutionGetDataRequest.create = function create(properties) { + return new TaskExecutionGetDataRequest(properties); + }; + + /** + * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetDataRequest message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return TaskExecutionGetDataRequest; + })(); + + admin.TaskExecutionGetDataResponse = (function() { + + /** + * Properties of a TaskExecutionGetDataResponse. + * @memberof flyteidl.admin + * @interface ITaskExecutionGetDataResponse + * @property {flyteidl.admin.IUrlBlob|null} [inputs] TaskExecutionGetDataResponse inputs + * @property {flyteidl.admin.IUrlBlob|null} [outputs] TaskExecutionGetDataResponse outputs + * @property {flyteidl.core.ILiteralMap|null} [fullInputs] TaskExecutionGetDataResponse fullInputs + * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] TaskExecutionGetDataResponse fullOutputs + * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] TaskExecutionGetDataResponse flyteUrls + */ + + /** + * Constructs a new TaskExecutionGetDataResponse. + * @memberof flyteidl.admin + * @classdesc Represents a TaskExecutionGetDataResponse. + * @implements ITaskExecutionGetDataResponse + * @constructor + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + */ + function TaskExecutionGetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskExecutionGetDataResponse inputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.inputs = null; + + /** + * TaskExecutionGetDataResponse outputs. + * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.outputs = null; + + /** + * TaskExecutionGetDataResponse fullInputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.fullInputs = null; + + /** + * TaskExecutionGetDataResponse fullOutputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.fullOutputs = null; + + /** + * TaskExecutionGetDataResponse flyteUrls. + * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @instance + */ + TaskExecutionGetDataResponse.prototype.flyteUrls = null; + + /** + * Creates a new TaskExecutionGetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance + */ + TaskExecutionGetDataResponse.create = function create(properties) { + return new TaskExecutionGetDataResponse(properties); + }; + + /** + * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskExecutionGetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) + $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) + $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskExecutionGetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 2: + message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); + break; + case 3: + message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 4: + message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 5: + message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskExecutionGetDataResponse message. + * @function verify + * @memberof flyteidl.admin.TaskExecutionGetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskExecutionGetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); + if (error) + return "outputs." + error; + } + if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); + if (error) + return "fullInputs." + error; + } + if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); + if (error) + return "fullOutputs." + error; + } + if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { + var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); + if (error) + return "flyteUrls." + error; + } + return null; + }; + + return TaskExecutionGetDataResponse; + })(); + + admin.GetVersionResponse = (function() { + + /** + * Properties of a GetVersionResponse. + * @memberof flyteidl.admin + * @interface IGetVersionResponse + * @property {flyteidl.admin.IVersion|null} [controlPlaneVersion] GetVersionResponse controlPlaneVersion + */ + + /** + * Constructs a new GetVersionResponse. + * @memberof flyteidl.admin + * @classdesc Represents a GetVersionResponse. + * @implements IGetVersionResponse + * @constructor + * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set + */ + function GetVersionResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetVersionResponse controlPlaneVersion. + * @member {flyteidl.admin.IVersion|null|undefined} controlPlaneVersion + * @memberof flyteidl.admin.GetVersionResponse + * @instance + */ + GetVersionResponse.prototype.controlPlaneVersion = null; + + /** + * Creates a new GetVersionResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set + * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse instance + */ + GetVersionResponse.create = function create(properties) { + return new GetVersionResponse(properties); + }; + + /** + * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {flyteidl.admin.IGetVersionResponse} message GetVersionResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) + $root.flyteidl.admin.Version.encode(message.controlPlaneVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetVersionResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.controlPlaneVersion = $root.flyteidl.admin.Version.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetVersionResponse message. + * @function verify + * @memberof flyteidl.admin.GetVersionResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) { + var error = $root.flyteidl.admin.Version.verify(message.controlPlaneVersion); + if (error) + return "controlPlaneVersion." + error; + } + return null; + }; + + return GetVersionResponse; + })(); + + admin.Version = (function() { + + /** + * Properties of a Version. + * @memberof flyteidl.admin + * @interface IVersion + * @property {string|null} [Build] Version Build + * @property {string|null} [Version] Version Version + * @property {string|null} [BuildTime] Version BuildTime + */ + + /** + * Constructs a new Version. + * @memberof flyteidl.admin + * @classdesc Represents a Version. + * @implements IVersion + * @constructor + * @param {flyteidl.admin.IVersion=} [properties] Properties to set + */ + function Version(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Version Build. + * @member {string} Build + * @memberof flyteidl.admin.Version + * @instance + */ + Version.prototype.Build = ""; + + /** + * Version Version. + * @member {string} Version + * @memberof flyteidl.admin.Version + * @instance + */ + Version.prototype.Version = ""; + + /** + * Version BuildTime. + * @member {string} BuildTime + * @memberof flyteidl.admin.Version + * @instance + */ + Version.prototype.BuildTime = ""; + + /** + * Creates a new Version instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Version + * @static + * @param {flyteidl.admin.IVersion=} [properties] Properties to set + * @returns {flyteidl.admin.Version} Version instance + */ + Version.create = function create(properties) { + return new Version(properties); + }; + + /** + * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Version + * @static + * @param {flyteidl.admin.IVersion} message Version message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Version.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.Build != null && message.hasOwnProperty("Build")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.Build); + if (message.Version != null && message.hasOwnProperty("Version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.Version); + if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.BuildTime); + return writer; + }; + + /** + * Decodes a Version message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Version + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Version} Version + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Version.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Version(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.Build = reader.string(); + break; + case 2: + message.Version = reader.string(); + break; + case 3: + message.BuildTime = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Version message. + * @function verify + * @memberof flyteidl.admin.Version + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Version.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.Build != null && message.hasOwnProperty("Build")) + if (!$util.isString(message.Build)) + return "Build: string expected"; + if (message.Version != null && message.hasOwnProperty("Version")) + if (!$util.isString(message.Version)) + return "Version: string expected"; + if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) + if (!$util.isString(message.BuildTime)) + return "BuildTime: string expected"; + return null; + }; + + return Version; + })(); + + admin.GetVersionRequest = (function() { + + /** + * Properties of a GetVersionRequest. + * @memberof flyteidl.admin + * @interface IGetVersionRequest + */ + + /** + * Constructs a new GetVersionRequest. + * @memberof flyteidl.admin + * @classdesc Represents a GetVersionRequest. + * @implements IGetVersionRequest + * @constructor + * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set + */ + function GetVersionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new GetVersionRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set + * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest instance + */ + GetVersionRequest.create = function create(properties) { + return new GetVersionRequest(properties); + }; + + /** + * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {flyteidl.admin.IGetVersionRequest} message GetVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a GetVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetVersionRequest message. + * @function verify + * @memberof flyteidl.admin.GetVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return GetVersionRequest; + })(); + + admin.WorkflowCreateRequest = (function() { + + /** + * Properties of a WorkflowCreateRequest. + * @memberof flyteidl.admin + * @interface IWorkflowCreateRequest + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id + * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec + */ + + /** + * Constructs a new WorkflowCreateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowCreateRequest. + * @implements IWorkflowCreateRequest + * @constructor + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + */ + function WorkflowCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowCreateRequest id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowCreateRequest + * @instance + */ + WorkflowCreateRequest.prototype.id = null; + + /** + * WorkflowCreateRequest spec. + * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec + * @memberof flyteidl.admin.WorkflowCreateRequest + * @instance + */ + WorkflowCreateRequest.prototype.spec = null; + + /** + * Creates a new WorkflowCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance + */ + WorkflowCreateRequest.create = function create(properties) { + return new WorkflowCreateRequest(properties); + }; + + /** + * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.spec != null && message.hasOwnProperty("spec")) + $root.flyteidl.admin.WorkflowSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowCreateRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.spec != null && message.hasOwnProperty("spec")) { + var error = $root.flyteidl.admin.WorkflowSpec.verify(message.spec); + if (error) + return "spec." + error; + } + return null; + }; + + return WorkflowCreateRequest; + })(); + + admin.WorkflowCreateResponse = (function() { + + /** + * Properties of a WorkflowCreateResponse. + * @memberof flyteidl.admin + * @interface IWorkflowCreateResponse + */ + + /** + * Constructs a new WorkflowCreateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowCreateResponse. + * @implements IWorkflowCreateResponse + * @constructor + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + */ + function WorkflowCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse instance + */ + WorkflowCreateResponse.create = function create(properties) { + return new WorkflowCreateResponse(properties); + }; + + /** + * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {flyteidl.admin.IWorkflowCreateResponse} message WorkflowCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowCreateResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowCreateResponse; + })(); + + admin.Workflow = (function() { + + /** + * Properties of a Workflow. + * @memberof flyteidl.admin + * @interface IWorkflow + * @property {flyteidl.core.IIdentifier|null} [id] Workflow id + * @property {flyteidl.admin.IWorkflowClosure|null} [closure] Workflow closure + * @property {string|null} [shortDescription] Workflow shortDescription + */ + + /** + * Constructs a new Workflow. + * @memberof flyteidl.admin + * @classdesc Represents a Workflow. + * @implements IWorkflow + * @constructor + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + */ + function Workflow(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Workflow id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.id = null; + + /** + * Workflow closure. + * @member {flyteidl.admin.IWorkflowClosure|null|undefined} closure + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.closure = null; + + /** + * Workflow shortDescription. + * @member {string} shortDescription + * @memberof flyteidl.admin.Workflow + * @instance + */ + Workflow.prototype.shortDescription = ""; + + /** + * Creates a new Workflow instance using the specified properties. + * @function create + * @memberof flyteidl.admin.Workflow + * @static + * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set + * @returns {flyteidl.admin.Workflow} Workflow instance + */ + Workflow.create = function create(properties) { + return new Workflow(properties); + }; + + /** + * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.Workflow + * @static + * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Workflow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.closure != null && message.hasOwnProperty("closure")) + $root.flyteidl.admin.WorkflowClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); + return writer; + }; + + /** + * Decodes a Workflow message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.Workflow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.Workflow} Workflow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Workflow.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Workflow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + case 2: + message.closure = $root.flyteidl.admin.WorkflowClosure.decode(reader, reader.uint32()); + break; + case 3: + message.shortDescription = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Workflow message. + * @function verify + * @memberof flyteidl.admin.Workflow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Workflow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + if (message.closure != null && message.hasOwnProperty("closure")) { + var error = $root.flyteidl.admin.WorkflowClosure.verify(message.closure); + if (error) + return "closure." + error; + } + if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) + if (!$util.isString(message.shortDescription)) + return "shortDescription: string expected"; + return null; + }; + + return Workflow; + })(); + + admin.WorkflowList = (function() { + + /** + * Properties of a WorkflowList. + * @memberof flyteidl.admin + * @interface IWorkflowList + * @property {Array.|null} [workflows] WorkflowList workflows + * @property {string|null} [token] WorkflowList token + */ + + /** + * Constructs a new WorkflowList. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowList. + * @implements IWorkflowList + * @constructor + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + */ + function WorkflowList(properties) { + this.workflows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowList workflows. + * @member {Array.} workflows + * @memberof flyteidl.admin.WorkflowList + * @instance + */ + WorkflowList.prototype.workflows = $util.emptyArray; + + /** + * WorkflowList token. + * @member {string} token + * @memberof flyteidl.admin.WorkflowList + * @instance + */ + WorkflowList.prototype.token = ""; + + /** + * Creates a new WorkflowList instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowList} WorkflowList instance + */ + WorkflowList.create = function create(properties) { + return new WorkflowList(properties); + }; + + /** + * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.workflows != null && message.workflows.length) + for (var i = 0; i < message.workflows.length; ++i) + $root.flyteidl.admin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.token != null && message.hasOwnProperty("token")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); + return writer; + }; + + /** + * Decodes a WorkflowList message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowList} WorkflowList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.workflows && message.workflows.length)) + message.workflows = []; + message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); + break; + case 2: + message.token = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowList message. + * @function verify + * @memberof flyteidl.admin.WorkflowList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.workflows != null && message.hasOwnProperty("workflows")) { + if (!Array.isArray(message.workflows)) + return "workflows: array expected"; + for (var i = 0; i < message.workflows.length; ++i) { + var error = $root.flyteidl.admin.Workflow.verify(message.workflows[i]); + if (error) + return "workflows." + error; + } + } + if (message.token != null && message.hasOwnProperty("token")) + if (!$util.isString(message.token)) + return "token: string expected"; + return null; + }; + + return WorkflowList; + })(); + + admin.WorkflowSpec = (function() { + + /** + * Properties of a WorkflowSpec. + * @memberof flyteidl.admin + * @interface IWorkflowSpec + * @property {flyteidl.core.IWorkflowTemplate|null} [template] WorkflowSpec template + * @property {Array.|null} [subWorkflows] WorkflowSpec subWorkflows + * @property {flyteidl.admin.IDescriptionEntity|null} [description] WorkflowSpec description + */ + + /** + * Constructs a new WorkflowSpec. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowSpec. + * @implements IWorkflowSpec + * @constructor + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + */ + function WorkflowSpec(properties) { + this.subWorkflows = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowSpec template. + * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.template = null; + + /** + * WorkflowSpec subWorkflows. + * @member {Array.} subWorkflows + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.subWorkflows = $util.emptyArray; + + /** + * WorkflowSpec description. + * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description + * @memberof flyteidl.admin.WorkflowSpec + * @instance + */ + WorkflowSpec.prototype.description = null; + + /** + * Creates a new WorkflowSpec instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance + */ + WorkflowSpec.create = function create(properties) { + return new WorkflowSpec(properties); + }; + + /** + * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.subWorkflows != null && message.subWorkflows.length) + for (var i = 0; i < message.subWorkflows.length; ++i) + $root.flyteidl.core.WorkflowTemplate.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.description != null && message.hasOwnProperty("description")) + $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowSpec message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); + break; + case 2: + if (!(message.subWorkflows && message.subWorkflows.length)) + message.subWorkflows = []; + message.subWorkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); + break; + case 3: + message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowSpec message. + * @function verify + * @memberof flyteidl.admin.WorkflowSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { + if (!Array.isArray(message.subWorkflows)) + return "subWorkflows: array expected"; + for (var i = 0; i < message.subWorkflows.length; ++i) { + var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subWorkflows[i]); + if (error) + return "subWorkflows." + error; + } + } + if (message.description != null && message.hasOwnProperty("description")) { + var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); + if (error) + return "description." + error; + } + return null; + }; + + return WorkflowSpec; + })(); + + admin.WorkflowClosure = (function() { + + /** + * Properties of a WorkflowClosure. + * @memberof flyteidl.admin + * @interface IWorkflowClosure + * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow + * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt + */ + + /** + * Constructs a new WorkflowClosure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowClosure. + * @implements IWorkflowClosure + * @constructor + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + */ + function WorkflowClosure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowClosure compiledWorkflow. + * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow + * @memberof flyteidl.admin.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.compiledWorkflow = null; + + /** + * WorkflowClosure createdAt. + * @member {google.protobuf.ITimestamp|null|undefined} createdAt + * @memberof flyteidl.admin.WorkflowClosure + * @instance + */ + WorkflowClosure.prototype.createdAt = null; + + /** + * Creates a new WorkflowClosure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance + */ + WorkflowClosure.create = function create(properties) { + return new WorkflowClosure(properties); + }; + + /** + * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowClosure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) + $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createdAt != null && message.hasOwnProperty("createdAt")) + $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowClosure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowClosure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowClosure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); + break; + case 2: + message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowClosure message. + * @function verify + * @memberof flyteidl.admin.WorkflowClosure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowClosure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { + var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); + if (error) + return "compiledWorkflow." + error; + } + if (message.createdAt != null && message.hasOwnProperty("createdAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.createdAt); + if (error) + return "createdAt." + error; + } + return null; + }; + + return WorkflowClosure; + })(); + + admin.WorkflowErrorExistsDifferentStructure = (function() { + + /** + * Properties of a WorkflowErrorExistsDifferentStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsDifferentStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsDifferentStructure id + */ + + /** + * Constructs a new WorkflowErrorExistsDifferentStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsDifferentStructure. + * @implements IWorkflowErrorExistsDifferentStructure + * @constructor + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + */ + function WorkflowErrorExistsDifferentStructure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowErrorExistsDifferentStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @instance + */ + WorkflowErrorExistsDifferentStructure.prototype.id = null; + + /** + * Creates a new WorkflowErrorExistsDifferentStructure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure instance + */ + WorkflowErrorExistsDifferentStructure.create = function create(properties) { + return new WorkflowErrorExistsDifferentStructure(properties); + }; + + /** + * Encodes the specified WorkflowErrorExistsDifferentStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsDifferentStructure} message WorkflowErrorExistsDifferentStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowErrorExistsDifferentStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowErrorExistsDifferentStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowErrorExistsDifferentStructure} WorkflowErrorExistsDifferentStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowErrorExistsDifferentStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowErrorExistsDifferentStructure message. + * @function verify + * @memberof flyteidl.admin.WorkflowErrorExistsDifferentStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowErrorExistsDifferentStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowErrorExistsDifferentStructure; + })(); + + admin.WorkflowErrorExistsIdenticalStructure = (function() { + + /** + * Properties of a WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @interface IWorkflowErrorExistsIdenticalStructure + * @property {flyteidl.core.IIdentifier|null} [id] WorkflowErrorExistsIdenticalStructure id + */ + + /** + * Constructs a new WorkflowErrorExistsIdenticalStructure. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowErrorExistsIdenticalStructure. + * @implements IWorkflowErrorExistsIdenticalStructure + * @constructor + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + */ + function WorkflowErrorExistsIdenticalStructure(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowErrorExistsIdenticalStructure id. + * @member {flyteidl.core.IIdentifier|null|undefined} id + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @instance + */ + WorkflowErrorExistsIdenticalStructure.prototype.id = null; + + /** + * Creates a new WorkflowErrorExistsIdenticalStructure instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure instance + */ + WorkflowErrorExistsIdenticalStructure.create = function create(properties) { + return new WorkflowErrorExistsIdenticalStructure(properties); + }; + + /** + * Encodes the specified WorkflowErrorExistsIdenticalStructure message. Does not implicitly {@link flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure} message WorkflowErrorExistsIdenticalStructure message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowErrorExistsIdenticalStructure.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && message.hasOwnProperty("id")) + $root.flyteidl.core.Identifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowErrorExistsIdenticalStructure message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowErrorExistsIdenticalStructure} WorkflowErrorExistsIdenticalStructure + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowErrorExistsIdenticalStructure.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowErrorExistsIdenticalStructure message. + * @function verify + * @memberof flyteidl.admin.WorkflowErrorExistsIdenticalStructure + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowErrorExistsIdenticalStructure.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) { + var error = $root.flyteidl.core.Identifier.verify(message.id); + if (error) + return "id." + error; + } + return null; + }; + + return WorkflowErrorExistsIdenticalStructure; + })(); + + admin.CreateWorkflowFailureReason = (function() { + + /** + * Properties of a CreateWorkflowFailureReason. + * @memberof flyteidl.admin + * @interface ICreateWorkflowFailureReason + * @property {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null} [existsDifferentStructure] CreateWorkflowFailureReason existsDifferentStructure + * @property {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null} [existsIdenticalStructure] CreateWorkflowFailureReason existsIdenticalStructure + */ + + /** + * Constructs a new CreateWorkflowFailureReason. + * @memberof flyteidl.admin + * @classdesc Represents a CreateWorkflowFailureReason. + * @implements ICreateWorkflowFailureReason + * @constructor + * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + */ + function CreateWorkflowFailureReason(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateWorkflowFailureReason existsDifferentStructure. + * @member {flyteidl.admin.IWorkflowErrorExistsDifferentStructure|null|undefined} existsDifferentStructure + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + CreateWorkflowFailureReason.prototype.existsDifferentStructure = null; + + /** + * CreateWorkflowFailureReason existsIdenticalStructure. + * @member {flyteidl.admin.IWorkflowErrorExistsIdenticalStructure|null|undefined} existsIdenticalStructure + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + CreateWorkflowFailureReason.prototype.existsIdenticalStructure = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CreateWorkflowFailureReason reason. + * @member {"existsDifferentStructure"|"existsIdenticalStructure"|undefined} reason + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @instance + */ + Object.defineProperty(CreateWorkflowFailureReason.prototype, "reason", { + get: $util.oneOfGetter($oneOfFields = ["existsDifferentStructure", "existsIdenticalStructure"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CreateWorkflowFailureReason instance using the specified properties. + * @function create + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {flyteidl.admin.ICreateWorkflowFailureReason=} [properties] Properties to set + * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason instance + */ + CreateWorkflowFailureReason.create = function create(properties) { + return new CreateWorkflowFailureReason(properties); + }; + + /** + * Encodes the specified CreateWorkflowFailureReason message. Does not implicitly {@link flyteidl.admin.CreateWorkflowFailureReason.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {flyteidl.admin.ICreateWorkflowFailureReason} message CreateWorkflowFailureReason message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateWorkflowFailureReason.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) + $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.encode(message.existsDifferentStructure, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) + $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.encode(message.existsIdenticalStructure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateWorkflowFailureReason message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.CreateWorkflowFailureReason} CreateWorkflowFailureReason + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateWorkflowFailureReason.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateWorkflowFailureReason(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.existsDifferentStructure = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.decode(reader, reader.uint32()); + break; + case 2: + message.existsIdenticalStructure = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateWorkflowFailureReason message. + * @function verify + * @memberof flyteidl.admin.CreateWorkflowFailureReason + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateWorkflowFailureReason.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) { + properties.reason = 1; + { + var error = $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure.verify(message.existsDifferentStructure); + if (error) + return "existsDifferentStructure." + error; + } + } + if (message.existsIdenticalStructure != null && message.hasOwnProperty("existsIdenticalStructure")) { + if (properties.reason === 1) + return "reason: multiple values"; + properties.reason = 1; + { + var error = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify(message.existsIdenticalStructure); + if (error) + return "existsIdenticalStructure." + error; + } + } + return null; + }; + + return CreateWorkflowFailureReason; + })(); + + admin.WorkflowAttributes = (function() { + + /** + * Properties of a WorkflowAttributes. + * @memberof flyteidl.admin + * @interface IWorkflowAttributes + * @property {string|null} [project] WorkflowAttributes project + * @property {string|null} [domain] WorkflowAttributes domain + * @property {string|null} [workflow] WorkflowAttributes workflow + * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] WorkflowAttributes matchingAttributes + * @property {string|null} [org] WorkflowAttributes org + */ + + /** + * Constructs a new WorkflowAttributes. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributes. + * @implements IWorkflowAttributes + * @constructor + * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set + */ + function WorkflowAttributes(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributes project. + * @member {string} project + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.project = ""; + + /** + * WorkflowAttributes domain. + * @member {string} domain + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.domain = ""; + + /** + * WorkflowAttributes workflow. + * @member {string} workflow + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.workflow = ""; + + /** + * WorkflowAttributes matchingAttributes. + * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.matchingAttributes = null; + + /** + * WorkflowAttributes org. + * @member {string} org + * @memberof flyteidl.admin.WorkflowAttributes + * @instance + */ + WorkflowAttributes.prototype.org = ""; + + /** + * Creates a new WorkflowAttributes instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes instance + */ + WorkflowAttributes.create = function create(properties) { + return new WorkflowAttributes(properties); + }; + + /** + * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {flyteidl.admin.IWorkflowAttributes} message WorkflowAttributes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributes.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) + $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); + return writer; + }; + + /** + * Decodes a WorkflowAttributes message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributes.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributes(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.workflow = reader.string(); + break; + case 4: + message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); + break; + case 5: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributes message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributes.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { + var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); + if (error) + return "matchingAttributes." + error; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return WorkflowAttributes; + })(); + + admin.WorkflowAttributesUpdateRequest = (function() { + + /** + * Properties of a WorkflowAttributesUpdateRequest. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesUpdateRequest + * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesUpdateRequest attributes + */ + + /** + * Constructs a new WorkflowAttributesUpdateRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesUpdateRequest. + * @implements IWorkflowAttributesUpdateRequest + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set + */ + function WorkflowAttributesUpdateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesUpdateRequest attributes. + * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @instance + */ + WorkflowAttributesUpdateRequest.prototype.attributes = null; + + /** + * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest instance + */ + WorkflowAttributesUpdateRequest.create = function create(properties) { + return new WorkflowAttributesUpdateRequest(properties); + }; + + /** + * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} message WorkflowAttributesUpdateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesUpdateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesUpdateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesUpdateRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesUpdateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return WorkflowAttributesUpdateRequest; + })(); + + admin.WorkflowAttributesUpdateResponse = (function() { + + /** + * Properties of a WorkflowAttributesUpdateResponse. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesUpdateResponse + */ + + /** + * Constructs a new WorkflowAttributesUpdateResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesUpdateResponse. + * @implements IWorkflowAttributesUpdateResponse + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set + */ + function WorkflowAttributesUpdateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse instance + */ + WorkflowAttributesUpdateResponse.create = function create(properties) { + return new WorkflowAttributesUpdateResponse(properties); + }; + + /** + * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse} message WorkflowAttributesUpdateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesUpdateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesUpdateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesUpdateResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesUpdateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowAttributesUpdateResponse; + })(); + + admin.WorkflowAttributesGetRequest = (function() { + + /** + * Properties of a WorkflowAttributesGetRequest. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesGetRequest + * @property {string|null} [project] WorkflowAttributesGetRequest project + * @property {string|null} [domain] WorkflowAttributesGetRequest domain + * @property {string|null} [workflow] WorkflowAttributesGetRequest workflow + * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesGetRequest resourceType + * @property {string|null} [org] WorkflowAttributesGetRequest org + */ + + /** + * Constructs a new WorkflowAttributesGetRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesGetRequest. + * @implements IWorkflowAttributesGetRequest + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set + */ + function WorkflowAttributesGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesGetRequest project. + * @member {string} project + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.project = ""; + + /** + * WorkflowAttributesGetRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.domain = ""; + + /** + * WorkflowAttributesGetRequest workflow. + * @member {string} workflow + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.workflow = ""; + + /** + * WorkflowAttributesGetRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.resourceType = 0; + + /** + * WorkflowAttributesGetRequest org. + * @member {string} org + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @instance + */ + WorkflowAttributesGetRequest.prototype.org = ""; + + /** + * Creates a new WorkflowAttributesGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest instance + */ + WorkflowAttributesGetRequest.create = function create(properties) { + return new WorkflowAttributesGetRequest(properties); + }; + + /** + * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} message WorkflowAttributesGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); + return writer; + }; + + /** + * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.workflow = reader.string(); + break; + case 4: + message.resourceType = reader.int32(); + break; + case 5: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesGetRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return WorkflowAttributesGetRequest; + })(); + + admin.WorkflowAttributesGetResponse = (function() { + + /** + * Properties of a WorkflowAttributesGetResponse. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesGetResponse + * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesGetResponse attributes + */ + + /** + * Constructs a new WorkflowAttributesGetResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesGetResponse. + * @implements IWorkflowAttributesGetResponse + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set + */ + function WorkflowAttributesGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesGetResponse attributes. + * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @instance + */ + WorkflowAttributesGetResponse.prototype.attributes = null; + + /** + * Creates a new WorkflowAttributesGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse instance + */ + WorkflowAttributesGetResponse.create = function create(properties) { + return new WorkflowAttributesGetResponse(properties); + }; + + /** + * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesGetResponse} message WorkflowAttributesGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.attributes != null && message.hasOwnProperty("attributes")) + $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesGetResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.attributes != null && message.hasOwnProperty("attributes")) { + var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); + if (error) + return "attributes." + error; + } + return null; + }; + + return WorkflowAttributesGetResponse; + })(); + + admin.WorkflowAttributesDeleteRequest = (function() { + + /** + * Properties of a WorkflowAttributesDeleteRequest. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesDeleteRequest + * @property {string|null} [project] WorkflowAttributesDeleteRequest project + * @property {string|null} [domain] WorkflowAttributesDeleteRequest domain + * @property {string|null} [workflow] WorkflowAttributesDeleteRequest workflow + * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesDeleteRequest resourceType + * @property {string|null} [org] WorkflowAttributesDeleteRequest org + */ + + /** + * Constructs a new WorkflowAttributesDeleteRequest. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesDeleteRequest. + * @implements IWorkflowAttributesDeleteRequest + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set + */ + function WorkflowAttributesDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * WorkflowAttributesDeleteRequest project. + * @member {string} project + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.project = ""; + + /** + * WorkflowAttributesDeleteRequest domain. + * @member {string} domain + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.domain = ""; + + /** + * WorkflowAttributesDeleteRequest workflow. + * @member {string} workflow + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.workflow = ""; + + /** + * WorkflowAttributesDeleteRequest resourceType. + * @member {flyteidl.admin.MatchableResource} resourceType + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.resourceType = 0; + + /** + * WorkflowAttributesDeleteRequest org. + * @member {string} org + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @instance + */ + WorkflowAttributesDeleteRequest.prototype.org = ""; + + /** + * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest instance + */ + WorkflowAttributesDeleteRequest.create = function create(properties) { + return new WorkflowAttributesDeleteRequest(properties); + }; + + /** + * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} message WorkflowAttributesDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.workflow != null && message.hasOwnProperty("workflow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); + if (message.org != null && message.hasOwnProperty("org")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.org); + return writer; + }; + + /** + * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.workflow = reader.string(); + break; + case 4: + message.resourceType = reader.int32(); + break; + case 5: + message.org = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesDeleteRequest message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.workflow != null && message.hasOwnProperty("workflow")) + if (!$util.isString(message.workflow)) + return "workflow: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.org != null && message.hasOwnProperty("org")) + if (!$util.isString(message.org)) + return "org: string expected"; + return null; + }; + + return WorkflowAttributesDeleteRequest; + })(); + + admin.WorkflowAttributesDeleteResponse = (function() { + + /** + * Properties of a WorkflowAttributesDeleteResponse. + * @memberof flyteidl.admin + * @interface IWorkflowAttributesDeleteResponse + */ + + /** + * Constructs a new WorkflowAttributesDeleteResponse. + * @memberof flyteidl.admin + * @classdesc Represents a WorkflowAttributesDeleteResponse. + * @implements IWorkflowAttributesDeleteResponse + * @constructor + * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set + */ + function WorkflowAttributesDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse instance + */ + WorkflowAttributesDeleteResponse.create = function create(properties) { + return new WorkflowAttributesDeleteResponse(properties); + }; + + /** + * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse} message WorkflowAttributesDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + WorkflowAttributesDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + WorkflowAttributesDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a WorkflowAttributesDeleteResponse message. + * @function verify + * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + WorkflowAttributesDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return WorkflowAttributesDeleteResponse; + })(); + + return admin; + })(); + + flyteidl.service = (function() { + + /** + * Namespace service. + * @memberof flyteidl + * @namespace + */ + var service = {}; + + service.AdminService = (function() { + + /** + * Constructs a new AdminService service. + * @memberof flyteidl.service + * @classdesc Represents an AdminService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AdminService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AdminService; + + /** + * Creates new AdminService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AdminService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AdminService} RPC service. Useful where requests and/or responses are streamed. + */ + AdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTask}. + * @memberof flyteidl.service.AdminService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskCreateResponse} [response] TaskCreateResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.admin.TaskCreateRequest, $root.flyteidl.admin.TaskCreateResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTask}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Task} [response] Task + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Task, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListTaskIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListTaskIds. + * @function listTaskIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTaskIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTaskIds = function listTaskIds(request, callback) { + return this.rpcCall(listTaskIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListTaskIds" }); + + /** + * Calls ListTaskIds. + * @function listTaskIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTasks}. + * @memberof flyteidl.service.AdminService + * @typedef ListTasksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskList} [response] TaskList + */ + + /** + * Calls ListTasks. + * @function listTasks + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTasksCallback} callback Node-style callback called with the error, if any, and TaskList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTasks = function listTasks(request, callback) { + return this.rpcCall(listTasks, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.TaskList, request, callback); + }, "name", { value: "ListTasks" }); + + /** + * Calls ListTasks. + * @function listTasks + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef CreateWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowCreateResponse} [response] WorkflowCreateResponse + */ + + /** + * Calls CreateWorkflow. + * @function createWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateWorkflowCallback} callback Node-style callback called with the error, if any, and WorkflowCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createWorkflow = function createWorkflow(request, callback) { + return this.rpcCall(createWorkflow, $root.flyteidl.admin.WorkflowCreateRequest, $root.flyteidl.admin.WorkflowCreateResponse, request, callback); + }, "name", { value: "CreateWorkflow" }); + + /** + * Calls CreateWorkflow. + * @function createWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef GetWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Workflow} [response] Workflow + */ + + /** + * Calls GetWorkflow. + * @function getWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetWorkflowCallback} callback Node-style callback called with the error, if any, and Workflow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getWorkflow = function getWorkflow(request, callback) { + return this.rpcCall(getWorkflow, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Workflow, request, callback); + }, "name", { value: "GetWorkflow" }); + + /** + * Calls GetWorkflow. + * @function getWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListWorkflowIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListWorkflowIds. + * @function listWorkflowIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListWorkflowIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listWorkflowIds = function listWorkflowIds(request, callback) { + return this.rpcCall(listWorkflowIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListWorkflowIds" }); + + /** + * Calls ListWorkflowIds. + * @function listWorkflowIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. + * @memberof flyteidl.service.AdminService + * @typedef ListWorkflowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowList} [response] WorkflowList + */ + + /** + * Calls ListWorkflows. + * @function listWorkflows + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListWorkflowsCallback} callback Node-style callback called with the error, if any, and WorkflowList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listWorkflows = function listWorkflows(request, callback) { + return this.rpcCall(listWorkflows, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.WorkflowList, request, callback); + }, "name", { value: "ListWorkflows" }); + + /** + * Calls ListWorkflows. + * @function listWorkflows + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef CreateLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanCreateResponse} [response] LaunchPlanCreateResponse + */ + + /** + * Calls CreateLaunchPlan. + * @function createLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createLaunchPlan = function createLaunchPlan(request, callback) { + return this.rpcCall(createLaunchPlan, $root.flyteidl.admin.LaunchPlanCreateRequest, $root.flyteidl.admin.LaunchPlanCreateResponse, request, callback); + }, "name", { value: "CreateLaunchPlan" }); + + /** + * Calls CreateLaunchPlan. + * @function createLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef GetLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + */ + + /** + * Calls GetLaunchPlan. + * @function getLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getLaunchPlan = function getLaunchPlan(request, callback) { + return this.rpcCall(getLaunchPlan, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.LaunchPlan, request, callback); + }, "name", { value: "GetLaunchPlan" }); + + /** + * Calls GetLaunchPlan. + * @function getLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef GetActiveLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan + */ + + /** + * Calls GetActiveLaunchPlan. + * @function getActiveLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object + * @param {flyteidl.service.AdminService.GetActiveLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getActiveLaunchPlan = function getActiveLaunchPlan(request, callback) { + return this.rpcCall(getActiveLaunchPlan, $root.flyteidl.admin.ActiveLaunchPlanRequest, $root.flyteidl.admin.LaunchPlan, request, callback); + }, "name", { value: "GetActiveLaunchPlan" }); + + /** + * Calls GetActiveLaunchPlan. + * @function getActiveLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. + * @memberof flyteidl.service.AdminService + * @typedef ListActiveLaunchPlansCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + */ + + /** + * Calls ListActiveLaunchPlans. + * @function listActiveLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object + * @param {flyteidl.service.AdminService.ListActiveLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listActiveLaunchPlans = function listActiveLaunchPlans(request, callback) { + return this.rpcCall(listActiveLaunchPlans, $root.flyteidl.admin.ActiveLaunchPlanListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); + }, "name", { value: "ListActiveLaunchPlans" }); + + /** + * Calls ListActiveLaunchPlans. + * @function listActiveLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. + * @memberof flyteidl.service.AdminService + * @typedef ListLaunchPlanIdsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList + */ + + /** + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @param {flyteidl.service.AdminService.ListLaunchPlanIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listLaunchPlanIds = function listLaunchPlanIds(request, callback) { + return this.rpcCall(listLaunchPlanIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); + }, "name", { value: "ListLaunchPlanIds" }); + + /** + * Calls ListLaunchPlanIds. + * @function listLaunchPlanIds + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. + * @memberof flyteidl.service.AdminService + * @typedef ListLaunchPlansCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList + */ + + /** + * Calls ListLaunchPlans. + * @function listLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listLaunchPlans = function listLaunchPlans(request, callback) { + return this.rpcCall(listLaunchPlans, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); + }, "name", { value: "ListLaunchPlans" }); + + /** + * Calls ListLaunchPlans. + * @function listLaunchPlans + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateLaunchPlanCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse + */ + + /** + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateLaunchPlan = function updateLaunchPlan(request, callback) { + return this.rpcCall(updateLaunchPlan, $root.flyteidl.admin.LaunchPlanUpdateRequest, $root.flyteidl.admin.LaunchPlanUpdateResponse, request, callback); + }, "name", { value: "UpdateLaunchPlan" }); + + /** + * Calls UpdateLaunchPlan. + * @function updateLaunchPlan + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createExecution}. + * @memberof flyteidl.service.AdminService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls CreateExecution. + * @function createExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @param {flyteidl.service.AdminService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.flyteidl.admin.ExecutionCreateRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "CreateExecution" }); + + /** + * Calls CreateExecution. + * @function createExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. + * @memberof flyteidl.service.AdminService + * @typedef RelaunchExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls RelaunchExecution. + * @function relaunchExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @param {flyteidl.service.AdminService.RelaunchExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.relaunchExecution = function relaunchExecution(request, callback) { + return this.rpcCall(relaunchExecution, $root.flyteidl.admin.ExecutionRelaunchRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "RelaunchExecution" }); + + /** + * Calls RelaunchExecution. + * @function relaunchExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. + * @memberof flyteidl.service.AdminService + * @typedef RecoverExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse + */ + + /** + * Calls RecoverExecution. + * @function recoverExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object + * @param {flyteidl.service.AdminService.RecoverExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.recoverExecution = function recoverExecution(request, callback) { + return this.rpcCall(recoverExecution, $root.flyteidl.admin.ExecutionRecoverRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); + }, "name", { value: "RecoverExecution" }); + + /** + * Calls RecoverExecution. + * @function recoverExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Execution} [response] Execution + */ + + /** + * Calls GetExecution. + * @function getExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.flyteidl.admin.WorkflowExecutionGetRequest, $root.flyteidl.admin.Execution, request, callback); + }, "name", { value: "GetExecution" }); + + /** + * Calls GetExecution. + * @function getExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionUpdateResponse} [response] ExecutionUpdateResponse + */ + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateExecution = function updateExecution(request, callback) { + return this.rpcCall(updateExecution, $root.flyteidl.admin.ExecutionUpdateRequest, $root.flyteidl.admin.ExecutionUpdateResponse, request, callback); + }, "name", { value: "UpdateExecution" }); + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse + */ + + /** + * Calls GetExecutionData. + * @function getExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionDataCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecutionData = function getExecutionData(request, callback) { + return this.rpcCall(getExecutionData, $root.flyteidl.admin.WorkflowExecutionGetDataRequest, $root.flyteidl.admin.WorkflowExecutionGetDataResponse, request, callback); + }, "name", { value: "GetExecutionData" }); + + /** + * Calls GetExecutionData. + * @function getExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionList} [response] ExecutionList + */ + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @param {flyteidl.service.AdminService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.ExecutionList, request, callback); + }, "name", { value: "ListExecutions" }); + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. + * @memberof flyteidl.service.AdminService + * @typedef TerminateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse + */ + + /** + * Calls TerminateExecution. + * @function terminateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @param {flyteidl.service.AdminService.TerminateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionTerminateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.terminateExecution = function terminateExecution(request, callback) { + return this.rpcCall(terminateExecution, $root.flyteidl.admin.ExecutionTerminateRequest, $root.flyteidl.admin.ExecutionTerminateResponse, request, callback); + }, "name", { value: "TerminateExecution" }); + + /** + * Calls TerminateExecution. + * @function terminateExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetNodeExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecution} [response] NodeExecution + */ + + /** + * Calls GetNodeExecution. + * @function getNodeExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetNodeExecutionCallback} callback Node-style callback called with the error, if any, and NodeExecution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNodeExecution = function getNodeExecution(request, callback) { + return this.rpcCall(getNodeExecution, $root.flyteidl.admin.NodeExecutionGetRequest, $root.flyteidl.admin.NodeExecution, request, callback); + }, "name", { value: "GetNodeExecution" }); + + /** + * Calls GetNodeExecution. + * @function getNodeExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getDynamicNodeWorkflow}. + * @memberof flyteidl.service.AdminService + * @typedef GetDynamicNodeWorkflowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DynamicNodeWorkflowResponse} [response] DynamicNodeWorkflowResponse + */ + + /** + * Calls GetDynamicNodeWorkflow. + * @function getDynamicNodeWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest} request GetDynamicNodeWorkflowRequest message or plain object + * @param {flyteidl.service.AdminService.GetDynamicNodeWorkflowCallback} callback Node-style callback called with the error, if any, and DynamicNodeWorkflowResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getDynamicNodeWorkflow = function getDynamicNodeWorkflow(request, callback) { + return this.rpcCall(getDynamicNodeWorkflow, $root.flyteidl.admin.GetDynamicNodeWorkflowRequest, $root.flyteidl.admin.DynamicNodeWorkflowResponse, request, callback); + }, "name", { value: "GetDynamicNodeWorkflow" }); + + /** + * Calls GetDynamicNodeWorkflow. + * @function getDynamicNodeWorkflow + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IGetDynamicNodeWorkflowRequest} request GetDynamicNodeWorkflowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListNodeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + */ + + /** + * Calls ListNodeExecutions. + * @function listNodeExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNodeExecutionsCallback} callback Node-style callback called with the error, if any, and NodeExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNodeExecutions = function listNodeExecutions(request, callback) { + return this.rpcCall(listNodeExecutions, $root.flyteidl.admin.NodeExecutionListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); + }, "name", { value: "ListNodeExecutions" }); + + /** + * Calls ListNodeExecutions. + * @function listNodeExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. + * @memberof flyteidl.service.AdminService + * @typedef ListNodeExecutionsForTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList + */ + + /** + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback} callback Node-style callback called with the error, if any, and NodeExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNodeExecutionsForTask = function listNodeExecutionsForTask(request, callback) { + return this.rpcCall(listNodeExecutionsForTask, $root.flyteidl.admin.NodeExecutionForTaskListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); + }, "name", { value: "ListNodeExecutionsForTask" }); + + /** + * Calls ListNodeExecutionsForTask. + * @function listNodeExecutionsForTask + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetNodeExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse + */ + + /** + * Calls GetNodeExecutionData. + * @function getNodeExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetNodeExecutionDataCallback} callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNodeExecutionData = function getNodeExecutionData(request, callback) { + return this.rpcCall(getNodeExecutionData, $root.flyteidl.admin.NodeExecutionGetDataRequest, $root.flyteidl.admin.NodeExecutionGetDataResponse, request, callback); + }, "name", { value: "GetNodeExecutionData" }); + + /** + * Calls GetNodeExecutionData. + * @function getNodeExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#registerProject}. + * @memberof flyteidl.service.AdminService + * @typedef RegisterProjectCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse + */ + + /** + * Calls RegisterProject. + * @function registerProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @param {flyteidl.service.AdminService.RegisterProjectCallback} callback Node-style callback called with the error, if any, and ProjectRegisterResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.registerProject = function registerProject(request, callback) { + return this.rpcCall(registerProject, $root.flyteidl.admin.ProjectRegisterRequest, $root.flyteidl.admin.ProjectRegisterResponse, request, callback); + }, "name", { value: "RegisterProject" }); + + /** + * Calls RegisterProject. + * @function registerProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProject}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateProjectCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectUpdateResponse} [response] ProjectUpdateResponse + */ + + /** + * Calls UpdateProject. + * @function updateProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProject} request Project message or plain object + * @param {flyteidl.service.AdminService.UpdateProjectCallback} callback Node-style callback called with the error, if any, and ProjectUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateProject = function updateProject(request, callback) { + return this.rpcCall(updateProject, $root.flyteidl.admin.Project, $root.flyteidl.admin.ProjectUpdateResponse, request, callback); + }, "name", { value: "UpdateProject" }); + + /** + * Calls UpdateProject. + * @function updateProject + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProject} request Project message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listProjects}. + * @memberof flyteidl.service.AdminService + * @typedef ListProjectsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Projects} [response] Projects + */ + + /** + * Calls ListProjects. + * @function listProjects + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @param {flyteidl.service.AdminService.ListProjectsCallback} callback Node-style callback called with the error, if any, and Projects + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listProjects = function listProjects(request, callback) { + return this.rpcCall(listProjects, $root.flyteidl.admin.ProjectListRequest, $root.flyteidl.admin.Projects, request, callback); + }, "name", { value: "ListProjects" }); + + /** + * Calls ListProjects. + * @function listProjects + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateWorkflowEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse + */ + + /** + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateWorkflowEventCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createWorkflowEvent = function createWorkflowEvent(request, callback) { + return this.rpcCall(createWorkflowEvent, $root.flyteidl.admin.WorkflowExecutionEventRequest, $root.flyteidl.admin.WorkflowExecutionEventResponse, request, callback); + }, "name", { value: "CreateWorkflowEvent" }); + + /** + * Calls CreateWorkflowEvent. + * @function createWorkflowEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateNodeEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse + */ + + /** + * Calls CreateNodeEvent. + * @function createNodeEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateNodeEventCallback} callback Node-style callback called with the error, if any, and NodeExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createNodeEvent = function createNodeEvent(request, callback) { + return this.rpcCall(createNodeEvent, $root.flyteidl.admin.NodeExecutionEventRequest, $root.flyteidl.admin.NodeExecutionEventResponse, request, callback); + }, "name", { value: "CreateNodeEvent" }); + + /** + * Calls CreateNodeEvent. + * @function createNodeEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. + * @memberof flyteidl.service.AdminService + * @typedef CreateTaskEventCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse + */ + + /** + * Calls CreateTaskEvent. + * @function createTaskEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @param {flyteidl.service.AdminService.CreateTaskEventCallback} callback Node-style callback called with the error, if any, and TaskExecutionEventResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.createTaskEvent = function createTaskEvent(request, callback) { + return this.rpcCall(createTaskEvent, $root.flyteidl.admin.TaskExecutionEventRequest, $root.flyteidl.admin.TaskExecutionEventResponse, request, callback); + }, "name", { value: "CreateTaskEvent" }); + + /** + * Calls CreateTaskEvent. + * @function createTaskEvent + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecution} [response] TaskExecution + */ + + /** + * Calls GetTaskExecution. + * @function getTaskExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskExecutionCallback} callback Node-style callback called with the error, if any, and TaskExecution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTaskExecution = function getTaskExecution(request, callback) { + return this.rpcCall(getTaskExecution, $root.flyteidl.admin.TaskExecutionGetRequest, $root.flyteidl.admin.TaskExecution, request, callback); + }, "name", { value: "GetTaskExecution" }); + + /** + * Calls GetTaskExecution. + * @function getTaskExecution + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. + * @memberof flyteidl.service.AdminService + * @typedef ListTaskExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList + */ + + /** + * Calls ListTaskExecutions. + * @function listTaskExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @param {flyteidl.service.AdminService.ListTaskExecutionsCallback} callback Node-style callback called with the error, if any, and TaskExecutionList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listTaskExecutions = function listTaskExecutions(request, callback) { + return this.rpcCall(listTaskExecutions, $root.flyteidl.admin.TaskExecutionListRequest, $root.flyteidl.admin.TaskExecutionList, request, callback); + }, "name", { value: "ListTaskExecutions" }); + + /** + * Calls ListTaskExecutions. + * @function listTaskExecutions + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. + * @memberof flyteidl.service.AdminService + * @typedef GetTaskExecutionDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse + */ + + /** + * Calls GetTaskExecutionData. + * @function getTaskExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @param {flyteidl.service.AdminService.GetTaskExecutionDataCallback} callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getTaskExecutionData = function getTaskExecutionData(request, callback) { + return this.rpcCall(getTaskExecutionData, $root.flyteidl.admin.TaskExecutionGetDataRequest, $root.flyteidl.admin.TaskExecutionGetDataResponse, request, callback); + }, "name", { value: "GetTaskExecutionData" }); + + /** + * Calls GetTaskExecutionData. + * @function getTaskExecutionData + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateProjectDomainAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectDomainAttributesUpdateResponse} [response] ProjectDomainAttributesUpdateResponse + */ + + /** + * Calls UpdateProjectDomainAttributes. + * @function updateProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateProjectDomainAttributes = function updateProjectDomainAttributes(request, callback) { + return this.rpcCall(updateProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest, $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse, request, callback); + }, "name", { value: "UpdateProjectDomainAttributes" }); + + /** + * Calls UpdateProjectDomainAttributes. + * @function updateProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef GetProjectDomainAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectDomainAttributesGetResponse} [response] ProjectDomainAttributesGetResponse + */ + + /** + * Calls GetProjectDomainAttributes. + * @function getProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getProjectDomainAttributes = function getProjectDomainAttributes(request, callback) { + return this.rpcCall(getProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesGetRequest, $root.flyteidl.admin.ProjectDomainAttributesGetResponse, request, callback); + }, "name", { value: "GetProjectDomainAttributes" }); + + /** + * Calls GetProjectDomainAttributes. + * @function getProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef DeleteProjectDomainAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectDomainAttributesDeleteResponse} [response] ProjectDomainAttributesDeleteResponse + */ + + /** + * Calls DeleteProjectDomainAttributes. + * @function deleteProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object + * @param {flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.deleteProjectDomainAttributes = function deleteProjectDomainAttributes(request, callback) { + return this.rpcCall(deleteProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest, $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse, request, callback); + }, "name", { value: "DeleteProjectDomainAttributes" }); + + /** + * Calls DeleteProjectDomainAttributes. + * @function deleteProjectDomainAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateProjectAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectAttributesUpdateResponse} [response] ProjectAttributesUpdateResponse + */ + + /** + * Calls UpdateProjectAttributes. + * @function updateProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateProjectAttributes = function updateProjectAttributes(request, callback) { + return this.rpcCall(updateProjectAttributes, $root.flyteidl.admin.ProjectAttributesUpdateRequest, $root.flyteidl.admin.ProjectAttributesUpdateResponse, request, callback); + }, "name", { value: "UpdateProjectAttributes" }); + + /** + * Calls UpdateProjectAttributes. + * @function updateProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef GetProjectAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectAttributesGetResponse} [response] ProjectAttributesGetResponse + */ + + /** + * Calls GetProjectAttributes. + * @function getProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getProjectAttributes = function getProjectAttributes(request, callback) { + return this.rpcCall(getProjectAttributes, $root.flyteidl.admin.ProjectAttributesGetRequest, $root.flyteidl.admin.ProjectAttributesGetResponse, request, callback); + }, "name", { value: "GetProjectAttributes" }); + + /** + * Calls GetProjectAttributes. + * @function getProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef DeleteProjectAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ProjectAttributesDeleteResponse} [response] ProjectAttributesDeleteResponse + */ + + /** + * Calls DeleteProjectAttributes. + * @function deleteProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object + * @param {flyteidl.service.AdminService.DeleteProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.deleteProjectAttributes = function deleteProjectAttributes(request, callback) { + return this.rpcCall(deleteProjectAttributes, $root.flyteidl.admin.ProjectAttributesDeleteRequest, $root.flyteidl.admin.ProjectAttributesDeleteResponse, request, callback); + }, "name", { value: "DeleteProjectAttributes" }); + + /** + * Calls DeleteProjectAttributes. + * @function deleteProjectAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateWorkflowAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowAttributesUpdateResponse} [response] WorkflowAttributesUpdateResponse + */ + + /** + * Calls UpdateWorkflowAttributes. + * @function updateWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateWorkflowAttributes = function updateWorkflowAttributes(request, callback) { + return this.rpcCall(updateWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesUpdateRequest, $root.flyteidl.admin.WorkflowAttributesUpdateResponse, request, callback); + }, "name", { value: "UpdateWorkflowAttributes" }); + + /** + * Calls UpdateWorkflowAttributes. + * @function updateWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef GetWorkflowAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowAttributesGetResponse} [response] WorkflowAttributesGetResponse + */ + + /** + * Calls GetWorkflowAttributes. + * @function getWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getWorkflowAttributes = function getWorkflowAttributes(request, callback) { + return this.rpcCall(getWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesGetRequest, $root.flyteidl.admin.WorkflowAttributesGetResponse, request, callback); + }, "name", { value: "GetWorkflowAttributes" }); + + /** + * Calls GetWorkflowAttributes. + * @function getWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef DeleteWorkflowAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowAttributesDeleteResponse} [response] WorkflowAttributesDeleteResponse + */ + + /** + * Calls DeleteWorkflowAttributes. + * @function deleteWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object + * @param {flyteidl.service.AdminService.DeleteWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.deleteWorkflowAttributes = function deleteWorkflowAttributes(request, callback) { + return this.rpcCall(deleteWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesDeleteRequest, $root.flyteidl.admin.WorkflowAttributesDeleteResponse, request, callback); + }, "name", { value: "DeleteWorkflowAttributes" }); + + /** + * Calls DeleteWorkflowAttributes. + * @function deleteWorkflowAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. + * @memberof flyteidl.service.AdminService + * @typedef ListMatchableAttributesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ListMatchableAttributesResponse} [response] ListMatchableAttributesResponse + */ + + /** + * Calls ListMatchableAttributes. + * @function listMatchableAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object + * @param {flyteidl.service.AdminService.ListMatchableAttributesCallback} callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listMatchableAttributes = function listMatchableAttributes(request, callback) { + return this.rpcCall(listMatchableAttributes, $root.flyteidl.admin.ListMatchableAttributesRequest, $root.flyteidl.admin.ListMatchableAttributesResponse, request, callback); + }, "name", { value: "ListMatchableAttributes" }); + + /** + * Calls ListMatchableAttributes. + * @function listMatchableAttributes + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. + * @memberof flyteidl.service.AdminService + * @typedef ListNamedEntitiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityList} [response] NamedEntityList + */ + + /** + * Calls ListNamedEntities. + * @function listNamedEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object + * @param {flyteidl.service.AdminService.ListNamedEntitiesCallback} callback Node-style callback called with the error, if any, and NamedEntityList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listNamedEntities = function listNamedEntities(request, callback) { + return this.rpcCall(listNamedEntities, $root.flyteidl.admin.NamedEntityListRequest, $root.flyteidl.admin.NamedEntityList, request, callback); + }, "name", { value: "ListNamedEntities" }); + + /** + * Calls ListNamedEntities. + * @function listNamedEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. + * @memberof flyteidl.service.AdminService + * @typedef GetNamedEntityCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntity} [response] NamedEntity + */ + + /** + * Calls GetNamedEntity. + * @function getNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntity + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getNamedEntity = function getNamedEntity(request, callback) { + return this.rpcCall(getNamedEntity, $root.flyteidl.admin.NamedEntityGetRequest, $root.flyteidl.admin.NamedEntity, request, callback); + }, "name", { value: "GetNamedEntity" }); + + /** + * Calls GetNamedEntity. + * @function getNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. + * @memberof flyteidl.service.AdminService + * @typedef UpdateNamedEntityCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.NamedEntityUpdateResponse} [response] NamedEntityUpdateResponse + */ + + /** + * Calls UpdateNamedEntity. + * @function updateNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object + * @param {flyteidl.service.AdminService.UpdateNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.updateNamedEntity = function updateNamedEntity(request, callback) { + return this.rpcCall(updateNamedEntity, $root.flyteidl.admin.NamedEntityUpdateRequest, $root.flyteidl.admin.NamedEntityUpdateResponse, request, callback); + }, "name", { value: "UpdateNamedEntity" }); + + /** + * Calls UpdateNamedEntity. + * @function updateNamedEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getVersion}. + * @memberof flyteidl.service.AdminService + * @typedef GetVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetVersionResponse} [response] GetVersionResponse + */ + + /** + * Calls GetVersion. + * @function getVersion + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object + * @param {flyteidl.service.AdminService.GetVersionCallback} callback Node-style callback called with the error, if any, and GetVersionResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getVersion = function getVersion(request, callback) { + return this.rpcCall(getVersion, $root.flyteidl.admin.GetVersionRequest, $root.flyteidl.admin.GetVersionResponse, request, callback); + }, "name", { value: "GetVersion" }); + + /** + * Calls GetVersion. + * @function getVersion + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. + * @memberof flyteidl.service.AdminService + * @typedef GetDescriptionEntityCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DescriptionEntity} [response] DescriptionEntity + */ + + /** + * Calls GetDescriptionEntity. + * @function getDescriptionEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @param {flyteidl.service.AdminService.GetDescriptionEntityCallback} callback Node-style callback called with the error, if any, and DescriptionEntity + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getDescriptionEntity = function getDescriptionEntity(request, callback) { + return this.rpcCall(getDescriptionEntity, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.DescriptionEntity, request, callback); + }, "name", { value: "GetDescriptionEntity" }); + + /** + * Calls GetDescriptionEntity. + * @function getDescriptionEntity + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. + * @memberof flyteidl.service.AdminService + * @typedef ListDescriptionEntitiesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DescriptionEntityList} [response] DescriptionEntityList + */ + + /** + * Calls ListDescriptionEntities. + * @function listDescriptionEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object + * @param {flyteidl.service.AdminService.ListDescriptionEntitiesCallback} callback Node-style callback called with the error, if any, and DescriptionEntityList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.listDescriptionEntities = function listDescriptionEntities(request, callback) { + return this.rpcCall(listDescriptionEntities, $root.flyteidl.admin.DescriptionEntityListRequest, $root.flyteidl.admin.DescriptionEntityList, request, callback); + }, "name", { value: "ListDescriptionEntities" }); + + /** + * Calls ListDescriptionEntities. + * @function listDescriptionEntities + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. + * @memberof flyteidl.service.AdminService + * @typedef GetExecutionMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.WorkflowExecutionGetMetricsResponse} [response] WorkflowExecutionGetMetricsResponse + */ + + /** + * Calls GetExecutionMetrics. + * @function getExecutionMetrics + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object + * @param {flyteidl.service.AdminService.GetExecutionMetricsCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AdminService.prototype.getExecutionMetrics = function getExecutionMetrics(request, callback) { + return this.rpcCall(getExecutionMetrics, $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest, $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse, request, callback); + }, "name", { value: "GetExecutionMetrics" }); + + /** + * Calls GetExecutionMetrics. + * @function getExecutionMetrics + * @memberof flyteidl.service.AdminService + * @instance + * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AdminService; + })(); + + service.SyncAgentService = (function() { + + /** + * Constructs a new SyncAgentService service. + * @memberof flyteidl.service + * @classdesc Represents a SyncAgentService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SyncAgentService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (SyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SyncAgentService; + + /** + * Creates new SyncAgentService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.SyncAgentService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SyncAgentService} RPC service. Useful where requests and/or responses are streamed. + */ + SyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.SyncAgentService#executeTaskSync}. + * @memberof flyteidl.service.SyncAgentService + * @typedef ExecuteTaskSyncCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ExecuteTaskSyncResponse} [response] ExecuteTaskSyncResponse + */ + + /** + * Calls ExecuteTaskSync. + * @function executeTaskSync + * @memberof flyteidl.service.SyncAgentService + * @instance + * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object + * @param {flyteidl.service.SyncAgentService.ExecuteTaskSyncCallback} callback Node-style callback called with the error, if any, and ExecuteTaskSyncResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SyncAgentService.prototype.executeTaskSync = function executeTaskSync(request, callback) { + return this.rpcCall(executeTaskSync, $root.flyteidl.admin.ExecuteTaskSyncRequest, $root.flyteidl.admin.ExecuteTaskSyncResponse, request, callback); + }, "name", { value: "ExecuteTaskSync" }); + + /** + * Calls ExecuteTaskSync. + * @function executeTaskSync + * @memberof flyteidl.service.SyncAgentService + * @instance + * @param {flyteidl.admin.IExecuteTaskSyncRequest} request ExecuteTaskSyncRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SyncAgentService; + })(); + + service.AsyncAgentService = (function() { + + /** + * Constructs a new AsyncAgentService service. + * @memberof flyteidl.service + * @classdesc Represents an AsyncAgentService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; + + /** + * Creates new AsyncAgentService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AsyncAgentService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AsyncAgentService} RPC service. Useful where requests and/or responses are streamed. + */ + AsyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.CreateTaskResponse} [response] CreateTaskResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.CreateTaskCallback} callback Node-style callback called with the error, if any, and CreateTaskResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.admin.CreateTaskRequest, $root.flyteidl.admin.CreateTaskResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetTaskResponse} [response] GetTaskResponse + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.GetTaskCallback} callback Node-style callback called with the error, if any, and GetTaskResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.admin.GetTaskRequest, $root.flyteidl.admin.GetTaskResponse, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef DeleteTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.DeleteTaskResponse} [response] DeleteTaskResponse + */ + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and DeleteTaskResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.deleteTask = function deleteTask(request, callback) { + return this.rpcCall(deleteTask, $root.flyteidl.admin.DeleteTaskRequest, $root.flyteidl.admin.DeleteTaskResponse, request, callback); + }, "name", { value: "DeleteTask" }); + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskMetrics}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef GetTaskMetricsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetTaskMetricsResponse} [response] GetTaskMetricsResponse + */ + + /** + * Calls GetTaskMetrics. + * @function getTaskMetrics + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskMetricsRequest} request GetTaskMetricsRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.GetTaskMetricsCallback} callback Node-style callback called with the error, if any, and GetTaskMetricsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.getTaskMetrics = function getTaskMetrics(request, callback) { + return this.rpcCall(getTaskMetrics, $root.flyteidl.admin.GetTaskMetricsRequest, $root.flyteidl.admin.GetTaskMetricsResponse, request, callback); + }, "name", { value: "GetTaskMetrics" }); + + /** + * Calls GetTaskMetrics. + * @function getTaskMetrics + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskMetricsRequest} request GetTaskMetricsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AsyncAgentService#getTaskLogs}. + * @memberof flyteidl.service.AsyncAgentService + * @typedef GetTaskLogsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetTaskLogsResponse} [response] GetTaskLogsResponse + */ + + /** + * Calls GetTaskLogs. + * @function getTaskLogs + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskLogsRequest} request GetTaskLogsRequest message or plain object + * @param {flyteidl.service.AsyncAgentService.GetTaskLogsCallback} callback Node-style callback called with the error, if any, and GetTaskLogsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AsyncAgentService.prototype.getTaskLogs = function getTaskLogs(request, callback) { + return this.rpcCall(getTaskLogs, $root.flyteidl.admin.GetTaskLogsRequest, $root.flyteidl.admin.GetTaskLogsResponse, request, callback); + }, "name", { value: "GetTaskLogs" }); + + /** + * Calls GetTaskLogs. + * @function getTaskLogs + * @memberof flyteidl.service.AsyncAgentService + * @instance + * @param {flyteidl.admin.IGetTaskLogsRequest} request GetTaskLogsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AsyncAgentService; + })(); + + service.AgentMetadataService = (function() { + + /** + * Constructs a new AgentMetadataService service. + * @memberof flyteidl.service + * @classdesc Represents an AgentMetadataService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AgentMetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AgentMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AgentMetadataService; + + /** + * Creates new AgentMetadataService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AgentMetadataService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AgentMetadataService} RPC service. Useful where requests and/or responses are streamed. + */ + AgentMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AgentMetadataService#getAgent}. + * @memberof flyteidl.service.AgentMetadataService + * @typedef GetAgentCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.GetAgentResponse} [response] GetAgentResponse + */ + + /** + * Calls GetAgent. + * @function getAgent + * @memberof flyteidl.service.AgentMetadataService + * @instance + * @param {flyteidl.admin.IGetAgentRequest} request GetAgentRequest message or plain object + * @param {flyteidl.service.AgentMetadataService.GetAgentCallback} callback Node-style callback called with the error, if any, and GetAgentResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AgentMetadataService.prototype.getAgent = function getAgent(request, callback) { + return this.rpcCall(getAgent, $root.flyteidl.admin.GetAgentRequest, $root.flyteidl.admin.GetAgentResponse, request, callback); + }, "name", { value: "GetAgent" }); + + /** + * Calls GetAgent. + * @function getAgent + * @memberof flyteidl.service.AgentMetadataService + * @instance + * @param {flyteidl.admin.IGetAgentRequest} request GetAgentRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AgentMetadataService#listAgents}. + * @memberof flyteidl.service.AgentMetadataService + * @typedef ListAgentsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.ListAgentsResponse} [response] ListAgentsResponse + */ + + /** + * Calls ListAgents. + * @function listAgents + * @memberof flyteidl.service.AgentMetadataService + * @instance + * @param {flyteidl.admin.IListAgentsRequest} request ListAgentsRequest message or plain object + * @param {flyteidl.service.AgentMetadataService.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AgentMetadataService.prototype.listAgents = function listAgents(request, callback) { + return this.rpcCall(listAgents, $root.flyteidl.admin.ListAgentsRequest, $root.flyteidl.admin.ListAgentsResponse, request, callback); + }, "name", { value: "ListAgents" }); + + /** + * Calls ListAgents. + * @function listAgents + * @memberof flyteidl.service.AgentMetadataService + * @instance + * @param {flyteidl.admin.IListAgentsRequest} request ListAgentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AgentMetadataService; + })(); + + service.OAuth2MetadataRequest = (function() { + + /** + * Properties of a OAuth2MetadataRequest. + * @memberof flyteidl.service + * @interface IOAuth2MetadataRequest + */ + + /** + * Constructs a new OAuth2MetadataRequest. + * @memberof flyteidl.service + * @classdesc Represents a OAuth2MetadataRequest. + * @implements IOAuth2MetadataRequest + * @constructor + * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set + */ + function OAuth2MetadataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new OAuth2MetadataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set + * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest instance + */ + OAuth2MetadataRequest.create = function create(properties) { + return new OAuth2MetadataRequest(properties); + }; + + /** + * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2MetadataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2MetadataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2MetadataRequest message. + * @function verify + * @memberof flyteidl.service.OAuth2MetadataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2MetadataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return OAuth2MetadataRequest; + })(); + + service.OAuth2MetadataResponse = (function() { + + /** + * Properties of a OAuth2MetadataResponse. + * @memberof flyteidl.service + * @interface IOAuth2MetadataResponse + * @property {string|null} [issuer] OAuth2MetadataResponse issuer + * @property {string|null} [authorizationEndpoint] OAuth2MetadataResponse authorizationEndpoint + * @property {string|null} [tokenEndpoint] OAuth2MetadataResponse tokenEndpoint + * @property {Array.|null} [responseTypesSupported] OAuth2MetadataResponse responseTypesSupported + * @property {Array.|null} [scopesSupported] OAuth2MetadataResponse scopesSupported + * @property {Array.|null} [tokenEndpointAuthMethodsSupported] OAuth2MetadataResponse tokenEndpointAuthMethodsSupported + * @property {string|null} [jwksUri] OAuth2MetadataResponse jwksUri + * @property {Array.|null} [codeChallengeMethodsSupported] OAuth2MetadataResponse codeChallengeMethodsSupported + * @property {Array.|null} [grantTypesSupported] OAuth2MetadataResponse grantTypesSupported + * @property {string|null} [deviceAuthorizationEndpoint] OAuth2MetadataResponse deviceAuthorizationEndpoint + */ + + /** + * Constructs a new OAuth2MetadataResponse. + * @memberof flyteidl.service + * @classdesc Represents a OAuth2MetadataResponse. + * @implements IOAuth2MetadataResponse + * @constructor + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + */ + function OAuth2MetadataResponse(properties) { + this.responseTypesSupported = []; + this.scopesSupported = []; + this.tokenEndpointAuthMethodsSupported = []; + this.codeChallengeMethodsSupported = []; + this.grantTypesSupported = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OAuth2MetadataResponse issuer. + * @member {string} issuer + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.issuer = ""; + + /** + * OAuth2MetadataResponse authorizationEndpoint. + * @member {string} authorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; + + /** + * OAuth2MetadataResponse tokenEndpoint. + * @member {string} tokenEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.tokenEndpoint = ""; + + /** + * OAuth2MetadataResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse scopesSupported. + * @member {Array.} scopesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. + * @member {Array.} tokenEndpointAuthMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse jwksUri. + * @member {string} jwksUri + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.jwksUri = ""; + + /** + * OAuth2MetadataResponse codeChallengeMethodsSupported. + * @member {Array.} codeChallengeMethodsSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse grantTypesSupported. + * @member {Array.} grantTypesSupported + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; + + /** + * OAuth2MetadataResponse deviceAuthorizationEndpoint. + * @member {string} deviceAuthorizationEndpoint + * @memberof flyteidl.service.OAuth2MetadataResponse + * @instance + */ + OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; + + /** + * Creates a new OAuth2MetadataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set + * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance + */ + OAuth2MetadataResponse.create = function create(properties) { + return new OAuth2MetadataResponse(properties); + }; + + /** + * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OAuth2MetadataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.issuer != null && message.hasOwnProperty("issuer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); + if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.authorizationEndpoint); + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tokenEndpoint); + if (message.responseTypesSupported != null && message.responseTypesSupported.length) + for (var i = 0; i < message.responseTypesSupported.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseTypesSupported[i]); + if (message.scopesSupported != null && message.scopesSupported.length) + for (var i = 0; i < message.scopesSupported.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.scopesSupported[i]); + if (message.tokenEndpointAuthMethodsSupported != null && message.tokenEndpointAuthMethodsSupported.length) + for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.tokenEndpointAuthMethodsSupported[i]); + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.jwksUri); + if (message.codeChallengeMethodsSupported != null && message.codeChallengeMethodsSupported.length) + for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.codeChallengeMethodsSupported[i]); + if (message.grantTypesSupported != null && message.grantTypesSupported.length) + for (var i = 0; i < message.grantTypesSupported.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.grantTypesSupported[i]); + if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.deviceAuthorizationEndpoint); + return writer; + }; + + /** + * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OAuth2MetadataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.authorizationEndpoint = reader.string(); + break; + case 3: + message.tokenEndpoint = reader.string(); + break; + case 4: + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); + break; + case 5: + if (!(message.scopesSupported && message.scopesSupported.length)) + message.scopesSupported = []; + message.scopesSupported.push(reader.string()); + break; + case 6: + if (!(message.tokenEndpointAuthMethodsSupported && message.tokenEndpointAuthMethodsSupported.length)) + message.tokenEndpointAuthMethodsSupported = []; + message.tokenEndpointAuthMethodsSupported.push(reader.string()); + break; + case 7: + message.jwksUri = reader.string(); + break; + case 8: + if (!(message.codeChallengeMethodsSupported && message.codeChallengeMethodsSupported.length)) + message.codeChallengeMethodsSupported = []; + message.codeChallengeMethodsSupported.push(reader.string()); + break; + case 9: + if (!(message.grantTypesSupported && message.grantTypesSupported.length)) + message.grantTypesSupported = []; + message.grantTypesSupported.push(reader.string()); + break; + case 10: + message.deviceAuthorizationEndpoint = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a OAuth2MetadataResponse message. + * @function verify + * @memberof flyteidl.service.OAuth2MetadataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OAuth2MetadataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.issuer != null && message.hasOwnProperty("issuer")) + if (!$util.isString(message.issuer)) + return "issuer: string expected"; + if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) + if (!$util.isString(message.authorizationEndpoint)) + return "authorizationEndpoint: string expected"; + if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) + if (!$util.isString(message.tokenEndpoint)) + return "tokenEndpoint: string expected"; + if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { + if (!Array.isArray(message.responseTypesSupported)) + return "responseTypesSupported: array expected"; + for (var i = 0; i < message.responseTypesSupported.length; ++i) + if (!$util.isString(message.responseTypesSupported[i])) + return "responseTypesSupported: string[] expected"; + } + if (message.scopesSupported != null && message.hasOwnProperty("scopesSupported")) { + if (!Array.isArray(message.scopesSupported)) + return "scopesSupported: array expected"; + for (var i = 0; i < message.scopesSupported.length; ++i) + if (!$util.isString(message.scopesSupported[i])) + return "scopesSupported: string[] expected"; + } + if (message.tokenEndpointAuthMethodsSupported != null && message.hasOwnProperty("tokenEndpointAuthMethodsSupported")) { + if (!Array.isArray(message.tokenEndpointAuthMethodsSupported)) + return "tokenEndpointAuthMethodsSupported: array expected"; + for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) + if (!$util.isString(message.tokenEndpointAuthMethodsSupported[i])) + return "tokenEndpointAuthMethodsSupported: string[] expected"; + } + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + if (!$util.isString(message.jwksUri)) + return "jwksUri: string expected"; + if (message.codeChallengeMethodsSupported != null && message.hasOwnProperty("codeChallengeMethodsSupported")) { + if (!Array.isArray(message.codeChallengeMethodsSupported)) + return "codeChallengeMethodsSupported: array expected"; + for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) + if (!$util.isString(message.codeChallengeMethodsSupported[i])) + return "codeChallengeMethodsSupported: string[] expected"; + } + if (message.grantTypesSupported != null && message.hasOwnProperty("grantTypesSupported")) { + if (!Array.isArray(message.grantTypesSupported)) + return "grantTypesSupported: array expected"; + for (var i = 0; i < message.grantTypesSupported.length; ++i) + if (!$util.isString(message.grantTypesSupported[i])) + return "grantTypesSupported: string[] expected"; + } + if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) + if (!$util.isString(message.deviceAuthorizationEndpoint)) + return "deviceAuthorizationEndpoint: string expected"; + return null; + }; + + return OAuth2MetadataResponse; + })(); + + service.PublicClientAuthConfigRequest = (function() { + + /** + * Properties of a PublicClientAuthConfigRequest. + * @memberof flyteidl.service + * @interface IPublicClientAuthConfigRequest + */ + + /** + * Constructs a new PublicClientAuthConfigRequest. + * @memberof flyteidl.service + * @classdesc Represents a PublicClientAuthConfigRequest. + * @implements IPublicClientAuthConfigRequest + * @constructor + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + */ + function PublicClientAuthConfigRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new PublicClientAuthConfigRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance + */ + PublicClientAuthConfigRequest.create = function create(properties) { + return new PublicClientAuthConfigRequest(properties); + }; + + /** + * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublicClientAuthConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublicClientAuthConfigRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PublicClientAuthConfigRequest message. + * @function verify + * @memberof flyteidl.service.PublicClientAuthConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PublicClientAuthConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return PublicClientAuthConfigRequest; + })(); + + service.PublicClientAuthConfigResponse = (function() { + + /** + * Properties of a PublicClientAuthConfigResponse. + * @memberof flyteidl.service + * @interface IPublicClientAuthConfigResponse + * @property {string|null} [clientId] PublicClientAuthConfigResponse clientId + * @property {string|null} [redirectUri] PublicClientAuthConfigResponse redirectUri + * @property {Array.|null} [scopes] PublicClientAuthConfigResponse scopes + * @property {string|null} [authorizationMetadataKey] PublicClientAuthConfigResponse authorizationMetadataKey + * @property {string|null} [serviceHttpEndpoint] PublicClientAuthConfigResponse serviceHttpEndpoint + * @property {string|null} [audience] PublicClientAuthConfigResponse audience + */ + + /** + * Constructs a new PublicClientAuthConfigResponse. + * @memberof flyteidl.service + * @classdesc Represents a PublicClientAuthConfigResponse. + * @implements IPublicClientAuthConfigResponse + * @constructor + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + */ + function PublicClientAuthConfigResponse(properties) { + this.scopes = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PublicClientAuthConfigResponse clientId. + * @member {string} clientId + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.clientId = ""; + + /** + * PublicClientAuthConfigResponse redirectUri. + * @member {string} redirectUri + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.redirectUri = ""; + + /** + * PublicClientAuthConfigResponse scopes. + * @member {Array.} scopes + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.scopes = $util.emptyArray; + + /** + * PublicClientAuthConfigResponse authorizationMetadataKey. + * @member {string} authorizationMetadataKey + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.authorizationMetadataKey = ""; + + /** + * PublicClientAuthConfigResponse serviceHttpEndpoint. + * @member {string} serviceHttpEndpoint + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; + + /** + * PublicClientAuthConfigResponse audience. + * @member {string} audience + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @instance + */ + PublicClientAuthConfigResponse.prototype.audience = ""; + + /** + * Creates a new PublicClientAuthConfigResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set + * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance + */ + PublicClientAuthConfigResponse.create = function create(properties) { + return new PublicClientAuthConfigResponse(properties); + }; + + /** + * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PublicClientAuthConfigResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clientId != null && message.hasOwnProperty("clientId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); + if (message.scopes != null && message.scopes.length) + for (var i = 0; i < message.scopes.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.scopes[i]); + if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizationMetadataKey); + if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceHttpEndpoint); + if (message.audience != null && message.hasOwnProperty("audience")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.audience); + return writer; + }; + + /** + * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PublicClientAuthConfigResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clientId = reader.string(); + break; + case 2: + message.redirectUri = reader.string(); + break; + case 3: + if (!(message.scopes && message.scopes.length)) + message.scopes = []; + message.scopes.push(reader.string()); + break; + case 4: + message.authorizationMetadataKey = reader.string(); + break; + case 5: + message.serviceHttpEndpoint = reader.string(); + break; + case 6: + message.audience = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PublicClientAuthConfigResponse message. + * @function verify + * @memberof flyteidl.service.PublicClientAuthConfigResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PublicClientAuthConfigResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) + if (!$util.isString(message.redirectUri)) + return "redirectUri: string expected"; + if (message.scopes != null && message.hasOwnProperty("scopes")) { + if (!Array.isArray(message.scopes)) + return "scopes: array expected"; + for (var i = 0; i < message.scopes.length; ++i) + if (!$util.isString(message.scopes[i])) + return "scopes: string[] expected"; + } + if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) + if (!$util.isString(message.authorizationMetadataKey)) + return "authorizationMetadataKey: string expected"; + if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) + if (!$util.isString(message.serviceHttpEndpoint)) + return "serviceHttpEndpoint: string expected"; + if (message.audience != null && message.hasOwnProperty("audience")) + if (!$util.isString(message.audience)) + return "audience: string expected"; + return null; + }; + + return PublicClientAuthConfigResponse; + })(); + + service.AuthMetadataService = (function() { + + /** + * Constructs a new AuthMetadataService service. + * @memberof flyteidl.service + * @classdesc Represents an AuthMetadataService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function AuthMetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (AuthMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AuthMetadataService; + + /** + * Creates new AuthMetadataService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.AuthMetadataService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {AuthMetadataService} RPC service. Useful where requests and/or responses are streamed. + */ + AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. + * @memberof flyteidl.service.AuthMetadataService + * @typedef GetOAuth2MetadataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.OAuth2MetadataResponse} [response] OAuth2MetadataResponse + */ + + /** + * Calls GetOAuth2Metadata. + * @function getOAuth2Metadata + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object + * @param {flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback} callback Node-style callback called with the error, if any, and OAuth2MetadataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AuthMetadataService.prototype.getOAuth2Metadata = function getOAuth2Metadata(request, callback) { + return this.rpcCall(getOAuth2Metadata, $root.flyteidl.service.OAuth2MetadataRequest, $root.flyteidl.service.OAuth2MetadataResponse, request, callback); + }, "name", { value: "GetOAuth2Metadata" }); + + /** + * Calls GetOAuth2Metadata. + * @function getOAuth2Metadata + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. + * @memberof flyteidl.service.AuthMetadataService + * @typedef GetPublicClientConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.PublicClientAuthConfigResponse} [response] PublicClientAuthConfigResponse + */ + + /** + * Calls GetPublicClientConfig. + * @function getPublicClientConfig + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object + * @param {flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback} callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AuthMetadataService.prototype.getPublicClientConfig = function getPublicClientConfig(request, callback) { + return this.rpcCall(getPublicClientConfig, $root.flyteidl.service.PublicClientAuthConfigRequest, $root.flyteidl.service.PublicClientAuthConfigResponse, request, callback); + }, "name", { value: "GetPublicClientConfig" }); + + /** + * Calls GetPublicClientConfig. + * @function getPublicClientConfig + * @memberof flyteidl.service.AuthMetadataService + * @instance + * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return AuthMetadataService; + })(); + + service.CreateUploadLocationResponse = (function() { + + /** + * Properties of a CreateUploadLocationResponse. + * @memberof flyteidl.service + * @interface ICreateUploadLocationResponse + * @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl + * @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt + */ + + /** + * Constructs a new CreateUploadLocationResponse. + * @memberof flyteidl.service + * @classdesc Represents a CreateUploadLocationResponse. + * @implements ICreateUploadLocationResponse + * @constructor + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + */ + function CreateUploadLocationResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateUploadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateUploadLocationResponse + * @instance + */ + CreateUploadLocationResponse.prototype.signedUrl = ""; + + /** + * CreateUploadLocationResponse nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateUploadLocationResponse + * @instance + */ + CreateUploadLocationResponse.prototype.nativeUrl = ""; + + /** + * CreateUploadLocationResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateUploadLocationResponse + * @instance + */ + CreateUploadLocationResponse.prototype.expiresAt = null; + + /** + * Creates a new CreateUploadLocationResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance + */ + CreateUploadLocationResponse.create = function create(properties) { + return new CreateUploadLocationResponse(properties); + }; + + /** + * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateUploadLocationResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateUploadLocationResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedUrl = reader.string(); + break; + case 2: + message.nativeUrl = reader.string(); + break; + case 3: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateUploadLocationResponse message. + * @function verify + * @memberof flyteidl.service.CreateUploadLocationResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateUploadLocationResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + if (!$util.isString(message.signedUrl)) + return "signedUrl: string expected"; + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + if (!$util.isString(message.nativeUrl)) + return "nativeUrl: string expected"; + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + return null; + }; + + return CreateUploadLocationResponse; + })(); + + service.CreateUploadLocationRequest = (function() { + + /** + * Properties of a CreateUploadLocationRequest. + * @memberof flyteidl.service + * @interface ICreateUploadLocationRequest + * @property {string|null} [project] CreateUploadLocationRequest project + * @property {string|null} [domain] CreateUploadLocationRequest domain + * @property {string|null} [filename] CreateUploadLocationRequest filename + * @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn + * @property {Uint8Array|null} [contentMd5] CreateUploadLocationRequest contentMd5 + * @property {string|null} [filenameRoot] CreateUploadLocationRequest filenameRoot + */ + + /** + * Constructs a new CreateUploadLocationRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateUploadLocationRequest. + * @implements ICreateUploadLocationRequest + * @constructor + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + */ + function CreateUploadLocationRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateUploadLocationRequest project. + * @member {string} project + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.project = ""; + + /** + * CreateUploadLocationRequest domain. + * @member {string} domain + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.domain = ""; + + /** + * CreateUploadLocationRequest filename. + * @member {string} filename + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.filename = ""; + + /** + * CreateUploadLocationRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.expiresIn = null; + + /** + * CreateUploadLocationRequest contentMd5. + * @member {Uint8Array} contentMd5 + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]); + + /** + * CreateUploadLocationRequest filenameRoot. + * @member {string} filenameRoot + * @memberof flyteidl.service.CreateUploadLocationRequest + * @instance + */ + CreateUploadLocationRequest.prototype.filenameRoot = ""; + + /** + * Creates a new CreateUploadLocationRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance + */ + CreateUploadLocationRequest.create = function create(properties) { + return new CreateUploadLocationRequest(properties); + }; + + /** + * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateUploadLocationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.project != null && message.hasOwnProperty("project")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); + if (message.domain != null && message.hasOwnProperty("domain")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); + if (message.filename != null && message.hasOwnProperty("filename")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filename); + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) + $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) + writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.contentMd5); + if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.filenameRoot); + return writer; + }; + + /** + * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateUploadLocationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.project = reader.string(); + break; + case 2: + message.domain = reader.string(); + break; + case 3: + message.filename = reader.string(); + break; + case 4: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 5: + message.contentMd5 = reader.bytes(); + break; + case 6: + message.filenameRoot = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateUploadLocationRequest message. + * @function verify + * @memberof flyteidl.service.CreateUploadLocationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateUploadLocationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.project != null && message.hasOwnProperty("project")) + if (!$util.isString(message.project)) + return "project: string expected"; + if (message.domain != null && message.hasOwnProperty("domain")) + if (!$util.isString(message.domain)) + return "domain: string expected"; + if (message.filename != null && message.hasOwnProperty("filename")) + if (!$util.isString(message.filename)) + return "filename: string expected"; + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) + if (!(message.contentMd5 && typeof message.contentMd5.length === "number" || $util.isString(message.contentMd5))) + return "contentMd5: buffer expected"; + if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) + if (!$util.isString(message.filenameRoot)) + return "filenameRoot: string expected"; + return null; + }; + + return CreateUploadLocationRequest; + })(); + + service.CreateDownloadLocationRequest = (function() { + + /** + * Properties of a CreateDownloadLocationRequest. + * @memberof flyteidl.service + * @interface ICreateDownloadLocationRequest + * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl + * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn + */ + + /** + * Constructs a new CreateDownloadLocationRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLocationRequest. + * @implements ICreateDownloadLocationRequest + * @constructor + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + */ + function CreateDownloadLocationRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLocationRequest nativeUrl. + * @member {string} nativeUrl + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @instance + */ + CreateDownloadLocationRequest.prototype.nativeUrl = ""; + + /** + * CreateDownloadLocationRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @instance + */ + CreateDownloadLocationRequest.prototype.expiresIn = null; + + /** + * Creates a new CreateDownloadLocationRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance + */ + CreateDownloadLocationRequest.create = function create(properties) { + return new CreateDownloadLocationRequest(properties); + }; + + /** + * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {flyteidl.service.ICreateDownloadLocationRequest} message CreateDownloadLocationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLocationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.nativeUrl); + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) + $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLocationRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nativeUrl = reader.string(); + break; + case 2: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLocationRequest message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLocationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLocationRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) + if (!$util.isString(message.nativeUrl)) + return "nativeUrl: string expected"; + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + return null; + }; + + return CreateDownloadLocationRequest; + })(); + + service.CreateDownloadLocationResponse = (function() { + + /** + * Properties of a CreateDownloadLocationResponse. + * @memberof flyteidl.service + * @interface ICreateDownloadLocationResponse + * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt + */ + + /** + * Constructs a new CreateDownloadLocationResponse. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLocationResponse. + * @implements ICreateDownloadLocationResponse + * @constructor + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + */ + function CreateDownloadLocationResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLocationResponse signedUrl. + * @member {string} signedUrl + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @instance + */ + CreateDownloadLocationResponse.prototype.signedUrl = ""; + + /** + * CreateDownloadLocationResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @instance + */ + CreateDownloadLocationResponse.prototype.expiresAt = null; + + /** + * Creates a new CreateDownloadLocationResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance + */ + CreateDownloadLocationResponse.create = function create(properties) { + return new CreateDownloadLocationResponse(properties); + }; + + /** + * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLocationResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLocationResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.signedUrl = reader.string(); + break; + case 2: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLocationResponse message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLocationResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLocationResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) + if (!$util.isString(message.signedUrl)) + return "signedUrl: string expected"; + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + return null; + }; + + return CreateDownloadLocationResponse; + })(); + + /** + * ArtifactType enum. + * @name flyteidl.service.ArtifactType + * @enum {string} + * @property {number} ARTIFACT_TYPE_UNDEFINED=0 ARTIFACT_TYPE_UNDEFINED value + * @property {number} ARTIFACT_TYPE_DECK=1 ARTIFACT_TYPE_DECK value + */ + service.ArtifactType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ARTIFACT_TYPE_UNDEFINED"] = 0; + values[valuesById[1] = "ARTIFACT_TYPE_DECK"] = 1; + return values; + })(); + + service.CreateDownloadLinkRequest = (function() { + + /** + * Properties of a CreateDownloadLinkRequest. + * @memberof flyteidl.service + * @interface ICreateDownloadLinkRequest + * @property {flyteidl.service.ArtifactType|null} [artifactType] CreateDownloadLinkRequest artifactType + * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLinkRequest expiresIn + * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] CreateDownloadLinkRequest nodeExecutionId + */ + + /** + * Constructs a new CreateDownloadLinkRequest. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLinkRequest. + * @implements ICreateDownloadLinkRequest + * @constructor + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + */ + function CreateDownloadLinkRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLinkRequest artifactType. + * @member {flyteidl.service.ArtifactType} artifactType + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + CreateDownloadLinkRequest.prototype.artifactType = 0; + + /** + * CreateDownloadLinkRequest expiresIn. + * @member {google.protobuf.IDuration|null|undefined} expiresIn + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + CreateDownloadLinkRequest.prototype.expiresIn = null; + + /** + * CreateDownloadLinkRequest nodeExecutionId. + * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + CreateDownloadLinkRequest.prototype.nodeExecutionId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CreateDownloadLinkRequest source. + * @member {"nodeExecutionId"|undefined} source + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @instance + */ + Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CreateDownloadLinkRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance + */ + CreateDownloadLinkRequest.create = function create(properties) { + return new CreateDownloadLinkRequest(properties); + }; + + /** + * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLinkRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactType != null && message.hasOwnProperty("artifactType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.artifactType); + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) + $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) + $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLinkRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.artifactType = reader.int32(); + break; + case 2: + message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLinkRequest message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLinkRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLinkRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactType != null && message.hasOwnProperty("artifactType")) + switch (message.artifactType) { + default: + return "artifactType: enum value expected"; + case 0: + case 1: + break; + } + if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { + var error = $root.google.protobuf.Duration.verify(message.expiresIn); + if (error) + return "expiresIn." + error; + } + if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { + properties.source = 1; + { + var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); + if (error) + return "nodeExecutionId." + error; + } + } + return null; + }; + + return CreateDownloadLinkRequest; + })(); + + service.CreateDownloadLinkResponse = (function() { + + /** + * Properties of a CreateDownloadLinkResponse. + * @memberof flyteidl.service + * @interface ICreateDownloadLinkResponse + * @property {Array.|null} [signedUrl] CreateDownloadLinkResponse signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLinkResponse expiresAt + * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] CreateDownloadLinkResponse preSignedUrls + */ + + /** + * Constructs a new CreateDownloadLinkResponse. + * @memberof flyteidl.service + * @classdesc Represents a CreateDownloadLinkResponse. + * @implements ICreateDownloadLinkResponse + * @constructor + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + */ + function CreateDownloadLinkResponse(properties) { + this.signedUrl = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateDownloadLinkResponse signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @instance + */ + CreateDownloadLinkResponse.prototype.signedUrl = $util.emptyArray; + + /** + * CreateDownloadLinkResponse expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @instance + */ + CreateDownloadLinkResponse.prototype.expiresAt = null; + + /** + * CreateDownloadLinkResponse preSignedUrls. + * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @instance + */ + CreateDownloadLinkResponse.prototype.preSignedUrls = null; + + /** + * Creates a new CreateDownloadLinkResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set + * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance + */ + CreateDownloadLinkResponse.create = function create(properties) { + return new CreateDownloadLinkResponse(properties); + }; + + /** + * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateDownloadLinkResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.signedUrl.length) + for (var i = 0; i < message.signedUrl.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) + $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateDownloadLinkResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(reader.string()); + break; + case 2: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CreateDownloadLinkResponse message. + * @function verify + * @memberof flyteidl.service.CreateDownloadLinkResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateDownloadLinkResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { + if (!Array.isArray(message.signedUrl)) + return "signedUrl: array expected"; + for (var i = 0; i < message.signedUrl.length; ++i) + if (!$util.isString(message.signedUrl[i])) + return "signedUrl: string[] expected"; + } + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { + var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); + if (error) + return "preSignedUrls." + error; + } + return null; + }; + + return CreateDownloadLinkResponse; + })(); + + service.PreSignedURLs = (function() { + + /** + * Properties of a PreSignedURLs. + * @memberof flyteidl.service + * @interface IPreSignedURLs + * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl + * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt + */ + + /** + * Constructs a new PreSignedURLs. + * @memberof flyteidl.service + * @classdesc Represents a PreSignedURLs. + * @implements IPreSignedURLs + * @constructor + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + */ + function PreSignedURLs(properties) { + this.signedUrl = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PreSignedURLs signedUrl. + * @member {Array.} signedUrl + * @memberof flyteidl.service.PreSignedURLs + * @instance + */ + PreSignedURLs.prototype.signedUrl = $util.emptyArray; + + /** + * PreSignedURLs expiresAt. + * @member {google.protobuf.ITimestamp|null|undefined} expiresAt + * @memberof flyteidl.service.PreSignedURLs + * @instance + */ + PreSignedURLs.prototype.expiresAt = null; + + /** + * Creates a new PreSignedURLs instance using the specified properties. + * @function create + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set + * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance + */ + PreSignedURLs.create = function create(properties) { + return new PreSignedURLs(properties); + }; + + /** + * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PreSignedURLs.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.signedUrl != null && message.signedUrl.length) + for (var i = 0; i < message.signedUrl.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) + $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a PreSignedURLs message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PreSignedURLs.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PreSignedURLs(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.signedUrl && message.signedUrl.length)) + message.signedUrl = []; + message.signedUrl.push(reader.string()); + break; + case 2: + message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a PreSignedURLs message. + * @function verify + * @memberof flyteidl.service.PreSignedURLs + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PreSignedURLs.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { + if (!Array.isArray(message.signedUrl)) + return "signedUrl: array expected"; + for (var i = 0; i < message.signedUrl.length; ++i) + if (!$util.isString(message.signedUrl[i])) + return "signedUrl: string[] expected"; + } + if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { + var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); + if (error) + return "expiresAt." + error; + } + return null; + }; + + return PreSignedURLs; + })(); + + service.GetDataRequest = (function() { + + /** + * Properties of a GetDataRequest. + * @memberof flyteidl.service + * @interface IGetDataRequest + * @property {string|null} [flyteUrl] GetDataRequest flyteUrl + */ + + /** + * Constructs a new GetDataRequest. + * @memberof flyteidl.service + * @classdesc Represents a GetDataRequest. + * @implements IGetDataRequest + * @constructor + * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + */ + function GetDataRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetDataRequest flyteUrl. + * @member {string} flyteUrl + * @memberof flyteidl.service.GetDataRequest + * @instance + */ + GetDataRequest.prototype.flyteUrl = ""; + + /** + * Creates a new GetDataRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set + * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance + */ + GetDataRequest.create = function create(properties) { + return new GetDataRequest(properties); + }; + + /** + * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {flyteidl.service.IGetDataRequest} message GetDataRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flyteUrl); + return writer; + }; + + /** + * Decodes a GetDataRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.GetDataRequest} GetDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.flyteUrl = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetDataRequest message. + * @function verify + * @memberof flyteidl.service.GetDataRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) + if (!$util.isString(message.flyteUrl)) + return "flyteUrl: string expected"; + return null; + }; + + return GetDataRequest; + })(); + + service.GetDataResponse = (function() { + + /** + * Properties of a GetDataResponse. + * @memberof flyteidl.service + * @interface IGetDataResponse + * @property {flyteidl.core.ILiteralMap|null} [literalMap] GetDataResponse literalMap + * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] GetDataResponse preSignedUrls + * @property {flyteidl.core.ILiteral|null} [literal] GetDataResponse literal + */ + + /** + * Constructs a new GetDataResponse. + * @memberof flyteidl.service + * @classdesc Represents a GetDataResponse. + * @implements IGetDataResponse + * @constructor + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + */ + function GetDataResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetDataResponse literalMap. + * @member {flyteidl.core.ILiteralMap|null|undefined} literalMap + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.literalMap = null; + + /** + * GetDataResponse preSignedUrls. + * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.preSignedUrls = null; + + /** + * GetDataResponse literal. + * @member {flyteidl.core.ILiteral|null|undefined} literal + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + GetDataResponse.prototype.literal = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GetDataResponse data. + * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data + * @memberof flyteidl.service.GetDataResponse + * @instance + */ + Object.defineProperty(GetDataResponse.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GetDataResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set + * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance + */ + GetDataResponse.create = function create(properties) { + return new GetDataResponse(properties); + }; + + /** + * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {flyteidl.service.IGetDataResponse} message GetDataResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetDataResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.literalMap != null && message.hasOwnProperty("literalMap")) + $root.flyteidl.core.LiteralMap.encode(message.literalMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) + $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.literal != null && message.hasOwnProperty("literal")) + $root.flyteidl.core.Literal.encode(message.literal, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GetDataResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.GetDataResponse} GetDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetDataResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); + break; + case 3: + message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GetDataResponse message. + * @function verify + * @memberof flyteidl.service.GetDataResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetDataResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.literalMap != null && message.hasOwnProperty("literalMap")) { + properties.data = 1; + { + var error = $root.flyteidl.core.LiteralMap.verify(message.literalMap); + if (error) + return "literalMap." + error; + } + } + if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); + if (error) + return "preSignedUrls." + error; + } + } + if (message.literal != null && message.hasOwnProperty("literal")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.flyteidl.core.Literal.verify(message.literal); + if (error) + return "literal." + error; + } + } + return null; + }; + + return GetDataResponse; + })(); + + service.DataProxyService = (function() { + + /** + * Constructs a new DataProxyService service. + * @memberof flyteidl.service + * @classdesc Represents a DataProxyService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function DataProxyService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (DataProxyService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxyService; + + /** + * Creates new DataProxyService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.DataProxyService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {DataProxyService} RPC service. Useful where requests and/or responses are streamed. + */ + DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateUploadLocationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse + */ + + /** + * Calls CreateUploadLocation. + * @function createUploadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createUploadLocation = function createUploadLocation(request, callback) { + return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback); + }, "name", { value: "CreateUploadLocation" }); + + /** + * Calls CreateUploadLocation. + * @function createUploadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateDownloadLocationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateDownloadLocationResponse} [response] CreateDownloadLocationResponse + */ + + /** + * Calls CreateDownloadLocation. + * @function createDownloadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateDownloadLocationCallback} callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createDownloadLocation = function createDownloadLocation(request, callback) { + return this.rpcCall(createDownloadLocation, $root.flyteidl.service.CreateDownloadLocationRequest, $root.flyteidl.service.CreateDownloadLocationResponse, request, callback); + }, "name", { value: "CreateDownloadLocation" }); + + /** + * Calls CreateDownloadLocation. + * @function createDownloadLocation + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. + * @memberof flyteidl.service.DataProxyService + * @typedef CreateDownloadLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.CreateDownloadLinkResponse} [response] CreateDownloadLinkResponse + */ + + /** + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @param {flyteidl.service.DataProxyService.CreateDownloadLinkCallback} callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.createDownloadLink = function createDownloadLink(request, callback) { + return this.rpcCall(createDownloadLink, $root.flyteidl.service.CreateDownloadLinkRequest, $root.flyteidl.service.CreateDownloadLinkResponse, request, callback); + }, "name", { value: "CreateDownloadLink" }); + + /** + * Calls CreateDownloadLink. + * @function createDownloadLink + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.DataProxyService#getData}. + * @memberof flyteidl.service.DataProxyService + * @typedef GetDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.GetDataResponse} [response] GetDataResponse + */ + + /** + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @param {flyteidl.service.DataProxyService.GetDataCallback} callback Node-style callback called with the error, if any, and GetDataResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DataProxyService.prototype.getData = function getData(request, callback) { + return this.rpcCall(getData, $root.flyteidl.service.GetDataRequest, $root.flyteidl.service.GetDataResponse, request, callback); + }, "name", { value: "GetData" }); + + /** + * Calls GetData. + * @function getData + * @memberof flyteidl.service.DataProxyService + * @instance + * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return DataProxyService; + })(); + + service.ExternalPluginService = (function() { + + /** + * Constructs a new ExternalPluginService service. + * @memberof flyteidl.service + * @classdesc Represents an ExternalPluginService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function ExternalPluginService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ExternalPluginService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ExternalPluginService; + + /** + * Creates new ExternalPluginService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.ExternalPluginService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ExternalPluginService} RPC service. Useful where requests and/or responses are streamed. + */ + ExternalPluginService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. + * @memberof flyteidl.service.ExternalPluginService + * @typedef CreateTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.TaskCreateResponse} [response] TaskCreateResponse + */ + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @param {flyteidl.service.ExternalPluginService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ExternalPluginService.prototype.createTask = function createTask(request, callback) { + return this.rpcCall(createTask, $root.flyteidl.service.TaskCreateRequest, $root.flyteidl.service.TaskCreateResponse, request, callback); + }, "name", { value: "CreateTask" }); + + /** + * Calls CreateTask. + * @function createTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. + * @memberof flyteidl.service.ExternalPluginService + * @typedef GetTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.TaskGetResponse} [response] TaskGetResponse + */ + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object + * @param {flyteidl.service.ExternalPluginService.GetTaskCallback} callback Node-style callback called with the error, if any, and TaskGetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ExternalPluginService.prototype.getTask = function getTask(request, callback) { + return this.rpcCall(getTask, $root.flyteidl.service.TaskGetRequest, $root.flyteidl.service.TaskGetResponse, request, callback); + }, "name", { value: "GetTask" }); + + /** + * Calls GetTask. + * @function getTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. + * @memberof flyteidl.service.ExternalPluginService + * @typedef DeleteTaskCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.TaskDeleteResponse} [response] TaskDeleteResponse + */ + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object + * @param {flyteidl.service.ExternalPluginService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and TaskDeleteResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ExternalPluginService.prototype.deleteTask = function deleteTask(request, callback) { + return this.rpcCall(deleteTask, $root.flyteidl.service.TaskDeleteRequest, $root.flyteidl.service.TaskDeleteResponse, request, callback); + }, "name", { value: "DeleteTask" }); + + /** + * Calls DeleteTask. + * @function deleteTask + * @memberof flyteidl.service.ExternalPluginService + * @instance + * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ExternalPluginService; + })(); + + /** + * State enum. + * @name flyteidl.service.State + * @enum {string} + * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value + * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value + * @property {number} PENDING=2 PENDING value + * @property {number} RUNNING=3 RUNNING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + */ + service.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; + values[valuesById[1] = "PERMANENT_FAILURE"] = 1; + values[valuesById[2] = "PENDING"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + return values; + })(); + + service.TaskCreateRequest = (function() { + + /** + * Properties of a TaskCreateRequest. + * @memberof flyteidl.service + * @interface ITaskCreateRequest + * @property {flyteidl.core.ILiteralMap|null} [inputs] TaskCreateRequest inputs + * @property {flyteidl.core.ITaskTemplate|null} [template] TaskCreateRequest template + * @property {string|null} [outputPrefix] TaskCreateRequest outputPrefix + */ + + /** + * Constructs a new TaskCreateRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskCreateRequest. + * @implements ITaskCreateRequest + * @constructor + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + */ + function TaskCreateRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateRequest inputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} inputs + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.inputs = null; + + /** + * TaskCreateRequest template. + * @member {flyteidl.core.ITaskTemplate|null|undefined} template + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.template = null; + + /** + * TaskCreateRequest outputPrefix. + * @member {string} outputPrefix + * @memberof flyteidl.service.TaskCreateRequest + * @instance + */ + TaskCreateRequest.prototype.outputPrefix = ""; + + /** + * Creates a new TaskCreateRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance + */ + TaskCreateRequest.create = function create(properties) { + return new TaskCreateRequest(properties); + }; + + /** + * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.inputs != null && message.hasOwnProperty("inputs")) + $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.template != null && message.hasOwnProperty("template")) + $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); + return writer; + }; + + /** + * Decodes a TaskCreateRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + case 2: + message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); + break; + case 3: + message.outputPrefix = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateRequest message. + * @function verify + * @memberof flyteidl.service.TaskCreateRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); + if (error) + return "inputs." + error; + } + if (message.template != null && message.hasOwnProperty("template")) { + var error = $root.flyteidl.core.TaskTemplate.verify(message.template); + if (error) + return "template." + error; + } + if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) + if (!$util.isString(message.outputPrefix)) + return "outputPrefix: string expected"; + return null; + }; + + return TaskCreateRequest; + })(); + + service.TaskCreateResponse = (function() { + + /** + * Properties of a TaskCreateResponse. + * @memberof flyteidl.service + * @interface ITaskCreateResponse + * @property {string|null} [jobId] TaskCreateResponse jobId + */ + + /** + * Constructs a new TaskCreateResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskCreateResponse. + * @implements ITaskCreateResponse + * @constructor + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + */ + function TaskCreateResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskCreateResponse jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskCreateResponse + * @instance + */ + TaskCreateResponse.prototype.jobId = ""; + + /** + * Creates a new TaskCreateResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance + */ + TaskCreateResponse.create = function create(properties) { + return new TaskCreateResponse(properties); + }; + + /** + * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskCreateResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobId); + return writer; + }; + + /** + * Decodes a TaskCreateResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskCreateResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskCreateResponse message. + * @function verify + * @memberof flyteidl.service.TaskCreateResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskCreateResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; + + return TaskCreateResponse; + })(); + + service.TaskGetRequest = (function() { + + /** + * Properties of a TaskGetRequest. + * @memberof flyteidl.service + * @interface ITaskGetRequest + * @property {string|null} [taskType] TaskGetRequest taskType + * @property {string|null} [jobId] TaskGetRequest jobId + */ + + /** + * Constructs a new TaskGetRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskGetRequest. + * @implements ITaskGetRequest + * @constructor + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + */ + function TaskGetRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskGetRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskGetRequest + * @instance + */ + TaskGetRequest.prototype.taskType = ""; + + /** + * TaskGetRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskGetRequest + * @instance + */ + TaskGetRequest.prototype.jobId = ""; + + /** + * Creates a new TaskGetRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance + */ + TaskGetRequest.create = function create(properties) { + return new TaskGetRequest(properties); + }; + + /** + * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {flyteidl.service.ITaskGetRequest} message TaskGetRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGetRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); + return writer; + }; + + /** + * Decodes a TaskGetRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGetRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskGetRequest message. + * @function verify + * @memberof flyteidl.service.TaskGetRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskGetRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; + + return TaskGetRequest; + })(); + + service.TaskGetResponse = (function() { + + /** + * Properties of a TaskGetResponse. + * @memberof flyteidl.service + * @interface ITaskGetResponse + * @property {flyteidl.service.State|null} [state] TaskGetResponse state + * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs + */ + + /** + * Constructs a new TaskGetResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskGetResponse. + * @implements ITaskGetResponse + * @constructor + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + */ + function TaskGetResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskGetResponse state. + * @member {flyteidl.service.State} state + * @memberof flyteidl.service.TaskGetResponse + * @instance + */ + TaskGetResponse.prototype.state = 0; + + /** + * TaskGetResponse outputs. + * @member {flyteidl.core.ILiteralMap|null|undefined} outputs + * @memberof flyteidl.service.TaskGetResponse + * @instance + */ + TaskGetResponse.prototype.outputs = null; + + /** + * Creates a new TaskGetResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance + */ + TaskGetResponse.create = function create(properties) { + return new TaskGetResponse(properties); + }; + + /** + * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskGetResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.outputs != null && message.hasOwnProperty("outputs")) + $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a TaskGetResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskGetResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskGetResponse message. + * @function verify + * @memberof flyteidl.service.TaskGetResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskGetResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); + if (error) + return "outputs." + error; + } + return null; + }; + + return TaskGetResponse; + })(); + + service.TaskDeleteRequest = (function() { + + /** + * Properties of a TaskDeleteRequest. + * @memberof flyteidl.service + * @interface ITaskDeleteRequest + * @property {string|null} [taskType] TaskDeleteRequest taskType + * @property {string|null} [jobId] TaskDeleteRequest jobId + */ + + /** + * Constructs a new TaskDeleteRequest. + * @memberof flyteidl.service + * @classdesc Represents a TaskDeleteRequest. + * @implements ITaskDeleteRequest + * @constructor + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + */ + function TaskDeleteRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * TaskDeleteRequest taskType. + * @member {string} taskType + * @memberof flyteidl.service.TaskDeleteRequest + * @instance + */ + TaskDeleteRequest.prototype.taskType = ""; + + /** + * TaskDeleteRequest jobId. + * @member {string} jobId + * @memberof flyteidl.service.TaskDeleteRequest + * @instance + */ + TaskDeleteRequest.prototype.jobId = ""; + + /** + * Creates a new TaskDeleteRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance + */ + TaskDeleteRequest.create = function create(properties) { + return new TaskDeleteRequest(properties); + }; + + /** + * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskDeleteRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); + if (message.jobId != null && message.hasOwnProperty("jobId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); + return writer; + }; + + /** + * Decodes a TaskDeleteRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskDeleteRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.taskType = reader.string(); + break; + case 2: + message.jobId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskDeleteRequest message. + * @function verify + * @memberof flyteidl.service.TaskDeleteRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskDeleteRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; + if (message.jobId != null && message.hasOwnProperty("jobId")) + if (!$util.isString(message.jobId)) + return "jobId: string expected"; + return null; + }; + + return TaskDeleteRequest; + })(); + + service.TaskDeleteResponse = (function() { + + /** + * Properties of a TaskDeleteResponse. + * @memberof flyteidl.service + * @interface ITaskDeleteResponse + */ + + /** + * Constructs a new TaskDeleteResponse. + * @memberof flyteidl.service + * @classdesc Represents a TaskDeleteResponse. + * @implements ITaskDeleteResponse + * @constructor + * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + */ + function TaskDeleteResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new TaskDeleteResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance + */ + TaskDeleteResponse.create = function create(properties) { + return new TaskDeleteResponse(properties); + }; + + /** + * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TaskDeleteResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a TaskDeleteResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TaskDeleteResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a TaskDeleteResponse message. + * @function verify + * @memberof flyteidl.service.TaskDeleteResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TaskDeleteResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return TaskDeleteResponse; + })(); + + service.UserInfoRequest = (function() { + + /** + * Properties of a UserInfoRequest. + * @memberof flyteidl.service + * @interface IUserInfoRequest + */ + + /** + * Constructs a new UserInfoRequest. + * @memberof flyteidl.service + * @classdesc Represents a UserInfoRequest. + * @implements IUserInfoRequest + * @constructor + * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set + */ + function UserInfoRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Creates a new UserInfoRequest instance using the specified properties. + * @function create + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set + * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest instance + */ + UserInfoRequest.create = function create(properties) { + return new UserInfoRequest(properties); + }; + + /** + * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {flyteidl.service.IUserInfoRequest} message UserInfoRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInfoRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Decodes a UserInfoRequest message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInfoRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UserInfoRequest message. + * @function verify + * @memberof flyteidl.service.UserInfoRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserInfoRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + return UserInfoRequest; + })(); + + service.UserInfoResponse = (function() { + + /** + * Properties of a UserInfoResponse. + * @memberof flyteidl.service + * @interface IUserInfoResponse + * @property {string|null} [subject] UserInfoResponse subject + * @property {string|null} [name] UserInfoResponse name + * @property {string|null} [preferredUsername] UserInfoResponse preferredUsername + * @property {string|null} [givenName] UserInfoResponse givenName + * @property {string|null} [familyName] UserInfoResponse familyName + * @property {string|null} [email] UserInfoResponse email + * @property {string|null} [picture] UserInfoResponse picture + * @property {google.protobuf.IStruct|null} [additionalClaims] UserInfoResponse additionalClaims + */ + + /** + * Constructs a new UserInfoResponse. + * @memberof flyteidl.service + * @classdesc Represents a UserInfoResponse. + * @implements IUserInfoResponse + * @constructor + * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set + */ + function UserInfoResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UserInfoResponse subject. + * @member {string} subject + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.subject = ""; + + /** + * UserInfoResponse name. + * @member {string} name + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.name = ""; + + /** + * UserInfoResponse preferredUsername. + * @member {string} preferredUsername + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.preferredUsername = ""; + + /** + * UserInfoResponse givenName. + * @member {string} givenName + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.givenName = ""; + + /** + * UserInfoResponse familyName. + * @member {string} familyName + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.familyName = ""; + + /** + * UserInfoResponse email. + * @member {string} email + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.email = ""; + + /** + * UserInfoResponse picture. + * @member {string} picture + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.picture = ""; + + /** + * UserInfoResponse additionalClaims. + * @member {google.protobuf.IStruct|null|undefined} additionalClaims + * @memberof flyteidl.service.UserInfoResponse + * @instance + */ + UserInfoResponse.prototype.additionalClaims = null; + + /** + * Creates a new UserInfoResponse instance using the specified properties. + * @function create + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set + * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse instance + */ + UserInfoResponse.create = function create(properties) { + return new UserInfoResponse(properties); + }; + + /** + * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. + * @function encode + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {flyteidl.service.IUserInfoResponse} message UserInfoResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UserInfoResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.subject != null && message.hasOwnProperty("subject")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.preferredUsername); + if (message.givenName != null && message.hasOwnProperty("givenName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.givenName); + if (message.familyName != null && message.hasOwnProperty("familyName")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.familyName); + if (message.email != null && message.hasOwnProperty("email")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.email); + if (message.picture != null && message.hasOwnProperty("picture")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.picture); + if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) + $root.google.protobuf.Struct.encode(message.additionalClaims, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a UserInfoResponse message from the specified reader or buffer. + * @function decode + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UserInfoResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.subject = reader.string(); + break; + case 2: + message.name = reader.string(); + break; + case 3: + message.preferredUsername = reader.string(); + break; + case 4: + message.givenName = reader.string(); + break; + case 5: + message.familyName = reader.string(); + break; + case 6: + message.email = reader.string(); + break; + case 7: + message.picture = reader.string(); + break; + case 8: + message.additionalClaims = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UserInfoResponse message. + * @function verify + * @memberof flyteidl.service.UserInfoResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UserInfoResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.subject != null && message.hasOwnProperty("subject")) + if (!$util.isString(message.subject)) + return "subject: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) + if (!$util.isString(message.preferredUsername)) + return "preferredUsername: string expected"; + if (message.givenName != null && message.hasOwnProperty("givenName")) + if (!$util.isString(message.givenName)) + return "givenName: string expected"; + if (message.familyName != null && message.hasOwnProperty("familyName")) + if (!$util.isString(message.familyName)) + return "familyName: string expected"; + if (message.email != null && message.hasOwnProperty("email")) + if (!$util.isString(message.email)) + return "email: string expected"; + if (message.picture != null && message.hasOwnProperty("picture")) + if (!$util.isString(message.picture)) + return "picture: string expected"; + if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) { + var error = $root.google.protobuf.Struct.verify(message.additionalClaims); + if (error) + return "additionalClaims." + error; + } + return null; + }; + + return UserInfoResponse; + })(); + + service.IdentityService = (function() { + + /** + * Constructs a new IdentityService service. + * @memberof flyteidl.service + * @classdesc Represents an IdentityService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IdentityService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IdentityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IdentityService; + + /** + * Creates new IdentityService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.IdentityService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IdentityService} RPC service. Useful where requests and/or responses are streamed. + */ + IdentityService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. + * @memberof flyteidl.service.IdentityService + * @typedef UserInfoCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.service.UserInfoResponse} [response] UserInfoResponse + */ + + /** + * Calls UserInfo. + * @function userInfo + * @memberof flyteidl.service.IdentityService + * @instance + * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object + * @param {flyteidl.service.IdentityService.UserInfoCallback} callback Node-style callback called with the error, if any, and UserInfoResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IdentityService.prototype.userInfo = function userInfo(request, callback) { + return this.rpcCall(userInfo, $root.flyteidl.service.UserInfoRequest, $root.flyteidl.service.UserInfoResponse, request, callback); + }, "name", { value: "UserInfo" }); + + /** + * Calls UserInfo. + * @function userInfo + * @memberof flyteidl.service.IdentityService + * @instance + * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IdentityService; + })(); + + service.SignalService = (function() { + + /** + * Constructs a new SignalService service. + * @memberof flyteidl.service + * @classdesc Represents a SignalService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function SignalService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (SignalService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SignalService; + + /** + * Creates new SignalService service using the specified rpc implementation. + * @function create + * @memberof flyteidl.service.SignalService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {SignalService} RPC service. Useful where requests and/or responses are streamed. + */ + SignalService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. + * @memberof flyteidl.service.SignalService + * @typedef GetOrCreateSignalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.Signal} [response] Signal + */ + + /** + * Calls GetOrCreateSignal. + * @function getOrCreateSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object + * @param {flyteidl.service.SignalService.GetOrCreateSignalCallback} callback Node-style callback called with the error, if any, and Signal + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SignalService.prototype.getOrCreateSignal = function getOrCreateSignal(request, callback) { + return this.rpcCall(getOrCreateSignal, $root.flyteidl.admin.SignalGetOrCreateRequest, $root.flyteidl.admin.Signal, request, callback); + }, "name", { value: "GetOrCreateSignal" }); + + /** + * Calls GetOrCreateSignal. + * @function getOrCreateSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.SignalService#listSignals}. + * @memberof flyteidl.service.SignalService + * @typedef ListSignalsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.SignalList} [response] SignalList + */ + + /** + * Calls ListSignals. + * @function listSignals + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object + * @param {flyteidl.service.SignalService.ListSignalsCallback} callback Node-style callback called with the error, if any, and SignalList + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SignalService.prototype.listSignals = function listSignals(request, callback) { + return this.rpcCall(listSignals, $root.flyteidl.admin.SignalListRequest, $root.flyteidl.admin.SignalList, request, callback); + }, "name", { value: "ListSignals" }); + + /** + * Calls ListSignals. + * @function listSignals + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link flyteidl.service.SignalService#setSignal}. + * @memberof flyteidl.service.SignalService + * @typedef SetSignalCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {flyteidl.admin.SignalSetResponse} [response] SignalSetResponse + */ + + /** + * Calls SetSignal. + * @function setSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object + * @param {flyteidl.service.SignalService.SetSignalCallback} callback Node-style callback called with the error, if any, and SignalSetResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(SignalService.prototype.setSignal = function setSignal(request, callback) { + return this.rpcCall(setSignal, $root.flyteidl.admin.SignalSetRequest, $root.flyteidl.admin.SignalSetResponse, request, callback); + }, "name", { value: "SetSignal" }); + + /** + * Calls SetSignal. + * @function setSignal + * @memberof flyteidl.service.SignalService + * @instance + * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return SignalService; + })(); + + return service; + })(); + + return flyteidl; + })(); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Timestamp seconds. + * @member {Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Timestamp; + })(); + + protobuf.Struct = (function() { + + /** + * Properties of a Struct. + * @memberof google.protobuf + * @interface IStruct + * @property {Object.|null} [fields] Struct fields + */ + + /** + * Constructs a new Struct. + * @memberof google.protobuf + * @classdesc Represents a Struct. + * @implements IStruct + * @constructor + * @param {google.protobuf.IStruct=} [properties] Properties to set + */ + function Struct(properties) { + this.fields = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Struct fields. + * @member {Object.} fields + * @memberof google.protobuf.Struct + * @instance + */ + Struct.prototype.fields = $util.emptyObject; + + /** + * Creates a new Struct instance using the specified properties. + * @function create + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct=} [properties] Properties to set + * @returns {google.protobuf.Struct} Struct instance + */ + Struct.create = function create(properties) { + return new Struct(properties); + }; + + /** + * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Struct + * @static + * @param {google.protobuf.IStruct} message Struct message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Struct.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fields != null && message.hasOwnProperty("fields")) + for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Decodes a Struct message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Struct + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Struct} Struct + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Struct.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + reader.skip().pos++; + if (message.fields === $util.emptyObject) + message.fields = {}; + key = reader.string(); + reader.pos++; + message.fields[key] = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Struct message. + * @function verify + * @memberof google.protobuf.Struct + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Struct.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fields != null && message.hasOwnProperty("fields")) { + if (!$util.isObject(message.fields)) + return "fields: object expected"; + var key = Object.keys(message.fields); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); + if (error) + return "fields." + error; + } + } + return null; + }; + + return Struct; + })(); + + protobuf.Value = (function() { + + /** + * Properties of a Value. + * @memberof google.protobuf + * @interface IValue + * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue + * @property {number|null} [numberValue] Value numberValue + * @property {string|null} [stringValue] Value stringValue + * @property {boolean|null} [boolValue] Value boolValue + * @property {google.protobuf.IStruct|null} [structValue] Value structValue + * @property {google.protobuf.IListValue|null} [listValue] Value listValue + */ + + /** + * Constructs a new Value. + * @memberof google.protobuf + * @classdesc Represents a Value. + * @implements IValue + * @constructor + * @param {google.protobuf.IValue=} [properties] Properties to set + */ + function Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Value nullValue. + * @member {google.protobuf.NullValue} nullValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.nullValue = 0; + + /** + * Value numberValue. + * @member {number} numberValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.numberValue = 0; + + /** + * Value stringValue. + * @member {string} stringValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.stringValue = ""; + + /** + * Value boolValue. + * @member {boolean} boolValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.boolValue = false; + + /** + * Value structValue. + * @member {google.protobuf.IStruct|null|undefined} structValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.structValue = null; + + /** + * Value listValue. + * @member {google.protobuf.IListValue|null|undefined} listValue + * @memberof google.protobuf.Value + * @instance + */ + Value.prototype.listValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value kind. + * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind + * @memberof google.protobuf.Value + * @instance + */ + Object.defineProperty(Value.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue=} [properties] Properties to set + * @returns {google.protobuf.Value} Value instance + */ + Value.create = function create(properties) { + return new Value(properties); + }; + + /** + * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Value + * @static + * @param {google.protobuf.IValue} message Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nullValue != null && message.hasOwnProperty("nullValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); + if (message.numberValue != null && message.hasOwnProperty("numberValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.boolValue != null && message.hasOwnProperty("boolValue")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); + if (message.structValue != null && message.hasOwnProperty("structValue")) + $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.listValue != null && message.hasOwnProperty("listValue")) + $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Value} Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nullValue = reader.int32(); + break; + case 2: + message.numberValue = reader.double(); + break; + case 3: + message.stringValue = reader.string(); + break; + case 4: + message.boolValue = reader.bool(); + break; + case 5: + message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 6: + message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Value message. + * @function verify + * @memberof google.protobuf.Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + properties.kind = 1; + switch (message.nullValue) { + default: + return "nullValue: enum value expected"; + case 0: + break; + } + } + if (message.numberValue != null && message.hasOwnProperty("numberValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.numberValue !== "number") + return "numberValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; + } + if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.Struct.verify(message.structValue); + if (error) + return "structValue." + error; + } + } + if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (properties.kind === 1) + return "kind: multiple values"; + properties.kind = 1; + { + var error = $root.google.protobuf.ListValue.verify(message.listValue); + if (error) + return "listValue." + error; + } + } + return null; + }; + + return Value; + })(); + + /** + * NullValue enum. + * @name google.protobuf.NullValue + * @enum {string} + * @property {number} NULL_VALUE=0 NULL_VALUE value + */ + protobuf.NullValue = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NULL_VALUE"] = 0; + return values; + })(); + + protobuf.ListValue = (function() { + + /** + * Properties of a ListValue. + * @memberof google.protobuf + * @interface IListValue + * @property {Array.|null} [values] ListValue values + */ + + /** + * Constructs a new ListValue. + * @memberof google.protobuf + * @classdesc Represents a ListValue. + * @implements IListValue + * @constructor + * @param {google.protobuf.IListValue=} [properties] Properties to set + */ + function ListValue(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListValue values. + * @member {Array.} values + * @memberof google.protobuf.ListValue + * @instance + */ + ListValue.prototype.values = $util.emptyArray; + + /** + * Creates a new ListValue instance using the specified properties. + * @function create + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue=} [properties] Properties to set + * @returns {google.protobuf.ListValue} ListValue instance + */ + ListValue.create = function create(properties) { + return new ListValue(properties); + }; + + /** + * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ListValue + * @static + * @param {google.protobuf.IListValue} message ListValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ListValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ListValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ListValue} ListValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ListValue message. + * @function verify + * @memberof google.protobuf.ListValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.values[i]); + if (error) + return "values." + error; + } + } + return null; + }; + + return ListValue; + })(); + + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Duration seconds. + * @member {Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + return Duration; + })(); + + protobuf.DoubleValue = (function() { + + /** + * Properties of a DoubleValue. + * @memberof google.protobuf + * @interface IDoubleValue + * @property {number|null} [value] DoubleValue value + */ + + /** + * Constructs a new DoubleValue. + * @memberof google.protobuf + * @classdesc Represents a DoubleValue. + * @implements IDoubleValue + * @constructor + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + */ + function DoubleValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DoubleValue value. + * @member {number} value + * @memberof google.protobuf.DoubleValue + * @instance + */ + DoubleValue.prototype.value = 0; + + /** + * Creates a new DoubleValue instance using the specified properties. + * @function create + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + * @returns {google.protobuf.DoubleValue} DoubleValue instance + */ + DoubleValue.create = function create(properties) { + return new DoubleValue(properties); + }; + + /** + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DoubleValue + * @static + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; + + /** + * Decodes a DoubleValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DoubleValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DoubleValue} DoubleValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DoubleValue message. + * @function verify + * @memberof google.protobuf.DoubleValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DoubleValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + return DoubleValue; + })(); + + protobuf.FloatValue = (function() { + + /** + * Properties of a FloatValue. + * @memberof google.protobuf + * @interface IFloatValue + * @property {number|null} [value] FloatValue value + */ + + /** + * Constructs a new FloatValue. + * @memberof google.protobuf + * @classdesc Represents a FloatValue. + * @implements IFloatValue + * @constructor + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + */ + function FloatValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FloatValue value. + * @member {number} value + * @memberof google.protobuf.FloatValue + * @instance + */ + FloatValue.prototype.value = 0; + + /** + * Creates a new FloatValue instance using the specified properties. + * @function create + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + * @returns {google.protobuf.FloatValue} FloatValue instance + */ + FloatValue.create = function create(properties) { + return new FloatValue(properties); + }; + + /** + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FloatValue + * @static + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FloatValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); + return writer; + }; + + /** + * Decodes a FloatValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FloatValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FloatValue} FloatValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FloatValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.float(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FloatValue message. + * @function verify + * @memberof google.protobuf.FloatValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FloatValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + return FloatValue; + })(); + + protobuf.Int64Value = (function() { + + /** + * Properties of an Int64Value. + * @memberof google.protobuf + * @interface IInt64Value + * @property {Long|null} [value] Int64Value value + */ + + /** + * Constructs a new Int64Value. + * @memberof google.protobuf + * @classdesc Represents an Int64Value. + * @implements IInt64Value + * @constructor + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + */ + function Int64Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Int64Value value. + * @member {Long} value + * @memberof google.protobuf.Int64Value + * @instance + */ + Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new Int64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + * @returns {google.protobuf.Int64Value} Int64Value instance + */ + Int64Value.create = function create(properties) { + return new Int64Value(properties); + }; + + /** + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int64Value + * @static + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); + return writer; + }; + + /** + * Decodes an Int64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int64Value} Int64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Int64Value message. + * @function verify + * @memberof google.protobuf.Int64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + return Int64Value; + })(); + + protobuf.UInt64Value = (function() { + + /** + * Properties of a UInt64Value. + * @memberof google.protobuf + * @interface IUInt64Value + * @property {Long|null} [value] UInt64Value value + */ + + /** + * Constructs a new UInt64Value. + * @memberof google.protobuf + * @classdesc Represents a UInt64Value. + * @implements IUInt64Value + * @constructor + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + */ + function UInt64Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UInt64Value value. + * @member {Long} value + * @memberof google.protobuf.UInt64Value + * @instance + */ + UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * Creates a new UInt64Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + * @returns {google.protobuf.UInt64Value} UInt64Value instance + */ + UInt64Value.create = function create(properties) { + return new UInt64Value(properties); + }; + + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt64Value + * @static + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt64Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); + return writer; + }; + + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt64Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt64Value} UInt64Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt64Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UInt64Value message. + * @function verify + * @memberof google.protobuf.UInt64Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt64Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; + return null; + }; + + return UInt64Value; + })(); + + protobuf.Int32Value = (function() { + + /** + * Properties of an Int32Value. + * @memberof google.protobuf + * @interface IInt32Value + * @property {number|null} [value] Int32Value value + */ + + /** + * Constructs a new Int32Value. + * @memberof google.protobuf + * @classdesc Represents an Int32Value. + * @implements IInt32Value + * @constructor + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + */ + function Int32Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Int32Value value. + * @member {number} value + * @memberof google.protobuf.Int32Value + * @instance + */ + Int32Value.prototype.value = 0; + + /** + * Creates a new Int32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + * @returns {google.protobuf.Int32Value} Int32Value instance + */ + Int32Value.create = function create(properties) { + return new Int32Value(properties); + }; + + /** + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); + return writer; + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Int32Value message. + * @function verify + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + return Int32Value; + })(); + + protobuf.UInt32Value = (function() { + + /** + * Properties of a UInt32Value. + * @memberof google.protobuf + * @interface IUInt32Value + * @property {number|null} [value] UInt32Value value + */ + + /** + * Constructs a new UInt32Value. + * @memberof google.protobuf + * @classdesc Represents a UInt32Value. + * @implements IUInt32Value + * @constructor + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + */ + function UInt32Value(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UInt32Value value. + * @member {number} value + * @memberof google.protobuf.UInt32Value + * @instance + */ + UInt32Value.prototype.value = 0; + + /** + * Creates a new UInt32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + * @returns {google.protobuf.UInt32Value} UInt32Value instance + */ + UInt32Value.create = function create(properties) { + return new UInt32Value(properties); + }; + + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UInt32Value + * @static + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UInt32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); + return writer; + }; + + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UInt32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UInt32Value} UInt32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UInt32Value.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.uint32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a UInt32Value message. + * @function verify + * @memberof google.protobuf.UInt32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UInt32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + return UInt32Value; + })(); + + protobuf.BoolValue = (function() { + + /** + * Properties of a BoolValue. + * @memberof google.protobuf + * @interface IBoolValue + * @property {boolean|null} [value] BoolValue value + */ + + /** + * Constructs a new BoolValue. + * @memberof google.protobuf + * @classdesc Represents a BoolValue. + * @implements IBoolValue + * @constructor + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + */ + function BoolValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BoolValue value. + * @member {boolean} value + * @memberof google.protobuf.BoolValue + * @instance + */ + BoolValue.prototype.value = false; + + /** + * Creates a new BoolValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + * @returns {google.protobuf.BoolValue} BoolValue instance + */ + BoolValue.create = function create(properties) { + return new BoolValue(properties); + }; + + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); + return writer; + }; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BoolValue message. + * @function verify + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BoolValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "boolean") + return "value: boolean expected"; + return null; + }; + + return BoolValue; + })(); + + protobuf.StringValue = (function() { + + /** + * Properties of a StringValue. + * @memberof google.protobuf + * @interface IStringValue + * @property {string|null} [value] StringValue value + */ + + /** + * Constructs a new StringValue. + * @memberof google.protobuf + * @classdesc Represents a StringValue. + * @implements IStringValue + * @constructor + * @param {google.protobuf.IStringValue=} [properties] Properties to set + */ + function StringValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StringValue value. + * @member {string} value + * @memberof google.protobuf.StringValue + * @instance + */ + StringValue.prototype.value = ""; + + /** + * Creates a new StringValue instance using the specified properties. + * @function create + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue=} [properties] Properties to set + * @returns {google.protobuf.StringValue} StringValue instance + */ + StringValue.create = function create(properties) { + return new StringValue(properties); + }; + + /** + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.StringValue + * @static + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); + return writer; + }; + + /** + * Decodes a StringValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.StringValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.StringValue} StringValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a StringValue message. + * @function verify + * @memberof google.protobuf.StringValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + return StringValue; + })(); + + protobuf.BytesValue = (function() { + + /** + * Properties of a BytesValue. + * @memberof google.protobuf + * @interface IBytesValue + * @property {Uint8Array|null} [value] BytesValue value + */ + + /** + * Constructs a new BytesValue. + * @memberof google.protobuf + * @classdesc Represents a BytesValue. + * @implements IBytesValue + * @constructor + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + */ + function BytesValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BytesValue value. + * @member {Uint8Array} value + * @memberof google.protobuf.BytesValue + * @instance + */ + BytesValue.prototype.value = $util.newBuffer([]); + + /** + * Creates a new BytesValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + * @returns {google.protobuf.BytesValue} BytesValue instance + */ + BytesValue.create = function create(properties) { + return new BytesValue(properties); + }; + + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BytesValue + * @static + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BytesValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); + return writer; + }; + + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BytesValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BytesValue} BytesValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BytesValue.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a BytesValue message. + * @function verify + * @memberof google.protobuf.BytesValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BytesValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + return BytesValue; + })(); + + protobuf.Any = (function() { + + /** + * Properties of an Any. + * @memberof google.protobuf + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value + */ + + /** + * Constructs a new Any. + * @memberof google.protobuf + * @classdesc Represents an Any. + * @implements IAny + * @constructor + * @param {google.protobuf.IAny=} [properties] Properties to set + */ + function Any(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.type_url = ""; + + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Any instance using the specified properties. + * @function create + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance + */ + Any.create = function create(properties) { + return new Any(properties); + }; + + /** + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Any + * @static + * @param {google.protobuf.IAny} message Any message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Any.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type_url != null && message.hasOwnProperty("type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); + return writer; + }; + + /** + * Decodes an Any message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Any + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Any} Any + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Any.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type_url = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Any message. + * @function verify + * @memberof google.protobuf.Any + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Any.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; + return null; + }; + + return Any; + })(); + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && message.hasOwnProperty("package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && message.hasOwnProperty("syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && message.hasOwnProperty("extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && message.hasOwnProperty("label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && message.hasOwnProperty("typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + return writer; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {string} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {string} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && message.hasOwnProperty("inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && message.hasOwnProperty("outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = false; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {string} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && message.hasOwnProperty("ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && message.hasOwnProperty("packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && message.hasOwnProperty("lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && message.hasOwnProperty("jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && message.hasOwnProperty("weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {string} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {string} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + return null; + }; + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && message.hasOwnProperty("begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + return protobuf; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + return null; + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [body] HttpRule body + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * HttpRule get. + * @member {string} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = ""; + + /** + * HttpRule put. + * @member {string} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = ""; + + /** + * HttpRule post. + * @member {string} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = ""; + + /** + * HttpRule delete. + * @member {string} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = ""; + + /** + * HttpRule patch. + * @member {string} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = ""; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && message.hasOwnProperty("selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && message.hasOwnProperty("get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && message.hasOwnProperty("put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && message.hasOwnProperty("post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && message.hasOwnProperty("delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && message.hasOwnProperty("patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + return writer; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 1: + message.selector = reader.string(); + break; + case 7: + message.body = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && message.hasOwnProperty("path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + return CustomHttpPattern; + })(); + + return api; + })(); + + return google; + })(); + + return $root; +}); diff --git a/flyteidl/gen/pb_python/__init__.py b/flyteidl/gen/pb_python/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/__init__.py b/flyteidl/gen/pb_python/flyteidl/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/__init__.py b/flyteidl/gen/pb_python/flyteidl/admin/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py new file mode 100644 index 0000000000..25c7daf68b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/agent.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\xa2\x01\n\x0eGetTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xb3\x02\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x38\n\x0b\x63ustom_info\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\"\xa5\x01\n\x11\x44\x65leteTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"\x14\n\x12\x44\x65leteTaskResponse\"\xcb\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12I\n\x1f\x64\x65precated_supported_task_types\x18\x02 \x03(\tB\x02\x18\x01R\x1c\x64\x65precatedSupportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12J\n\x14supported_task_types\x18\x04 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xe4\x02\n\x15GetTaskMetricsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x35\n\ttask_type\x18\x07 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xd2\x01\n\x12GetTaskLogsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x35\n\ttask_type\x18\x05 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.agent_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nAgentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _STATE._options = None + _STATE._serialized_options = b'\030\001' + _TASKEXECUTIONMETADATA_LABELSENTRY._options = None + _TASKEXECUTIONMETADATA_LABELSENTRY._serialized_options = b'8\001' + _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._options = None + _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' + _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None + _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' + _GETTASKREQUEST.fields_by_name['deprecated_task_type']._options = None + _GETTASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _RESOURCE.fields_by_name['state']._options = None + _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' + _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._options = None + _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _AGENT.fields_by_name['deprecated_supported_task_types']._options = None + _AGENT.fields_by_name['deprecated_supported_task_types']._serialized_options = b'\030\001' + _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._options = None + _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._options = None + _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _globals['_STATE']._serialized_start=4310 + _globals['_STATE']._serialized_end=4408 + _globals['_TASKEXECUTIONMETADATA']._serialized_start=321 + _globals['_TASKEXECUTIONMETADATA']._serialized_end=1194 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=1000 + _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=1057 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=1059 + _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=1121 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=1123 + _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=1194 + _globals['_CREATETASKREQUEST']._serialized_start=1197 + _globals['_CREATETASKREQUEST']._serialized_end=1456 + _globals['_CREATETASKRESPONSE']._serialized_start=1458 + _globals['_CREATETASKRESPONSE']._serialized_end=1515 + _globals['_CREATEREQUESTHEADER']._serialized_start=1518 + _globals['_CREATEREQUESTHEADER']._serialized_end=1781 + _globals['_EXECUTETASKSYNCREQUEST']._serialized_start=1784 + _globals['_EXECUTETASKSYNCREQUEST']._serialized_end=1932 + _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_start=1934 + _globals['_EXECUTETASKSYNCRESPONSEHEADER']._serialized_end=2019 + _globals['_EXECUTETASKSYNCRESPONSE']._serialized_start=2022 + _globals['_EXECUTETASKSYNCRESPONSE']._serialized_end=2182 + _globals['_GETTASKREQUEST']._serialized_start=2185 + _globals['_GETTASKREQUEST']._serialized_end=2347 + _globals['_GETTASKRESPONSE']._serialized_start=2349 + _globals['_GETTASKRESPONSE']._serialized_end=2420 + _globals['_RESOURCE']._serialized_start=2423 + _globals['_RESOURCE']._serialized_end=2730 + _globals['_DELETETASKREQUEST']._serialized_start=2733 + _globals['_DELETETASKREQUEST']._serialized_end=2898 + _globals['_DELETETASKRESPONSE']._serialized_start=2900 + _globals['_DELETETASKRESPONSE']._serialized_end=2920 + _globals['_AGENT']._serialized_start=2923 + _globals['_AGENT']._serialized_end=3126 + _globals['_TASKTYPE']._serialized_start=3128 + _globals['_TASKTYPE']._serialized_end=3184 + _globals['_GETAGENTREQUEST']._serialized_start=3186 + _globals['_GETAGENTREQUEST']._serialized_end=3223 + _globals['_GETAGENTRESPONSE']._serialized_start=3225 + _globals['_GETAGENTRESPONSE']._serialized_end=3288 + _globals['_LISTAGENTSREQUEST']._serialized_start=3290 + _globals['_LISTAGENTSREQUEST']._serialized_end=3309 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3311 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3378 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3381 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3737 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3739 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3827 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3830 + _globals['_GETTASKLOGSREQUEST']._serialized_end=4040 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=4042 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4091 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4093 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4144 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=4147 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=4308 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi new file mode 100644 index 0000000000..15c4cabd8d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -0,0 +1,272 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import metrics_pb2 as _metrics_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RETRYABLE_FAILURE: _ClassVar[State] + PERMANENT_FAILURE: _ClassVar[State] + PENDING: _ClassVar[State] + RUNNING: _ClassVar[State] + SUCCEEDED: _ClassVar[State] +RETRYABLE_FAILURE: State +PERMANENT_FAILURE: State +PENDING: State +RUNNING: State +SUCCEEDED: State + +class TaskExecutionMetadata(_message.Message): + __slots__ = ["task_execution_id", "namespace", "labels", "annotations", "k8s_service_account", "environment_variables", "max_attempts", "interruptible", "interruptible_failure_threshold", "overrides"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class AnnotationsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class EnvironmentVariablesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + ENVIRONMENT_VARIABLES_FIELD_NUMBER: _ClassVar[int] + MAX_ATTEMPTS_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FAILURE_THRESHOLD_FIELD_NUMBER: _ClassVar[int] + OVERRIDES_FIELD_NUMBER: _ClassVar[int] + task_execution_id: _identifier_pb2.TaskExecutionIdentifier + namespace: str + labels: _containers.ScalarMap[str, str] + annotations: _containers.ScalarMap[str, str] + k8s_service_account: str + environment_variables: _containers.ScalarMap[str, str] + max_attempts: int + interruptible: bool + interruptible_failure_threshold: int + overrides: _workflow_pb2.TaskNodeOverrides + def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., namespace: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ..., k8s_service_account: _Optional[str] = ..., environment_variables: _Optional[_Mapping[str, str]] = ..., max_attempts: _Optional[int] = ..., interruptible: bool = ..., interruptible_failure_threshold: _Optional[int] = ..., overrides: _Optional[_Union[_workflow_pb2.TaskNodeOverrides, _Mapping]] = ...) -> None: ... + +class CreateTaskRequest(_message.Message): + __slots__ = ["inputs", "template", "output_prefix", "task_execution_metadata"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] + TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] + inputs: _literals_pb2.LiteralMap + template: _tasks_pb2.TaskTemplate + output_prefix: str + task_execution_metadata: TaskExecutionMetadata + def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ...) -> None: ... + +class CreateTaskResponse(_message.Message): + __slots__ = ["resource_meta"] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + resource_meta: bytes + def __init__(self, resource_meta: _Optional[bytes] = ...) -> None: ... + +class CreateRequestHeader(_message.Message): + __slots__ = ["template", "output_prefix", "task_execution_metadata", "max_dataset_size_bytes"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] + TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] + MAX_DATASET_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int] + template: _tasks_pb2.TaskTemplate + output_prefix: str + task_execution_metadata: TaskExecutionMetadata + max_dataset_size_bytes: int + def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., max_dataset_size_bytes: _Optional[int] = ...) -> None: ... + +class ExecuteTaskSyncRequest(_message.Message): + __slots__ = ["header", "inputs"] + HEADER_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + header: CreateRequestHeader + inputs: _literals_pb2.LiteralMap + def __init__(self, header: _Optional[_Union[CreateRequestHeader, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class ExecuteTaskSyncResponseHeader(_message.Message): + __slots__ = ["resource"] + RESOURCE_FIELD_NUMBER: _ClassVar[int] + resource: Resource + def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class ExecuteTaskSyncResponse(_message.Message): + __slots__ = ["header", "outputs"] + HEADER_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + header: ExecuteTaskSyncResponseHeader + outputs: _literals_pb2.LiteralMap + def __init__(self, header: _Optional[_Union[ExecuteTaskSyncResponseHeader, _Mapping]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class GetTaskRequest(_message.Message): + __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str + resource_meta: bytes + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + +class GetTaskResponse(_message.Message): + __slots__ = ["resource"] + RESOURCE_FIELD_NUMBER: _ClassVar[int] + resource: Resource + def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... + +class Resource(_message.Message): + __slots__ = ["state", "outputs", "message", "log_links", "phase", "custom_info"] + STATE_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + LOG_LINKS_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] + state: State + outputs: _literals_pb2.LiteralMap + message: str + log_links: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + phase: _execution_pb2.TaskExecution.Phase + custom_info: _struct_pb2.Struct + def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., message: _Optional[str] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... + +class DeleteTaskRequest(_message.Message): + __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str + resource_meta: bytes + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + +class DeleteTaskResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Agent(_message.Message): + __slots__ = ["name", "deprecated_supported_task_types", "is_sync", "supported_task_types"] + NAME_FIELD_NUMBER: _ClassVar[int] + DEPRECATED_SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] + IS_SYNC_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] + name: str + deprecated_supported_task_types: _containers.RepeatedScalarFieldContainer[str] + is_sync: bool + supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] + def __init__(self, name: _Optional[str] = ..., deprecated_supported_task_types: _Optional[_Iterable[str]] = ..., is_sync: bool = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... + +class TaskType(_message.Message): + __slots__ = ["name", "version"] + NAME_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + name: str + version: int + def __init__(self, name: _Optional[str] = ..., version: _Optional[int] = ...) -> None: ... + +class GetAgentRequest(_message.Message): + __slots__ = ["name"] + NAME_FIELD_NUMBER: _ClassVar[int] + name: str + def __init__(self, name: _Optional[str] = ...) -> None: ... + +class GetAgentResponse(_message.Message): + __slots__ = ["agent"] + AGENT_FIELD_NUMBER: _ClassVar[int] + agent: Agent + def __init__(self, agent: _Optional[_Union[Agent, _Mapping]] = ...) -> None: ... + +class ListAgentsRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ListAgentsResponse(_message.Message): + __slots__ = ["agents"] + AGENTS_FIELD_NUMBER: _ClassVar[int] + agents: _containers.RepeatedCompositeFieldContainer[Agent] + def __init__(self, agents: _Optional[_Iterable[_Union[Agent, _Mapping]]] = ...) -> None: ... + +class GetTaskMetricsRequest(_message.Message): + __slots__ = ["deprecated_task_type", "resource_meta", "queries", "start_time", "end_time", "step", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + QUERIES_FIELD_NUMBER: _ClassVar[int] + START_TIME_FIELD_NUMBER: _ClassVar[int] + END_TIME_FIELD_NUMBER: _ClassVar[int] + STEP_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str + resource_meta: bytes + queries: _containers.RepeatedScalarFieldContainer[str] + start_time: _timestamp_pb2.Timestamp + end_time: _timestamp_pb2.Timestamp + step: _duration_pb2.Duration + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + +class GetTaskMetricsResponse(_message.Message): + __slots__ = ["results"] + RESULTS_FIELD_NUMBER: _ClassVar[int] + results: _containers.RepeatedCompositeFieldContainer[_metrics_pb2.ExecutionMetricResult] + def __init__(self, results: _Optional[_Iterable[_Union[_metrics_pb2.ExecutionMetricResult, _Mapping]]] = ...) -> None: ... + +class GetTaskLogsRequest(_message.Message): + __slots__ = ["deprecated_task_type", "resource_meta", "lines", "token", "task_type"] + DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + LINES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + deprecated_task_type: str + resource_meta: bytes + lines: int + token: str + task_type: TaskType + def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + +class GetTaskLogsResponseHeader(_message.Message): + __slots__ = ["token"] + TOKEN_FIELD_NUMBER: _ClassVar[int] + token: str + def __init__(self, token: _Optional[str] = ...) -> None: ... + +class GetTaskLogsResponseBody(_message.Message): + __slots__ = ["results"] + RESULTS_FIELD_NUMBER: _ClassVar[int] + results: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, results: _Optional[_Iterable[str]] = ...) -> None: ... + +class GetTaskLogsResponse(_message.Message): + __slots__ = ["header", "body"] + HEADER_FIELD_NUMBER: _ClassVar[int] + BODY_FIELD_NUMBER: _ClassVar[int] + header: GetTaskLogsResponseHeader + body: GetTaskLogsResponseBody + def __init__(self, header: _Optional[_Union[GetTaskLogsResponseHeader, _Mapping]] = ..., body: _Optional[_Union[GetTaskLogsResponseBody, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py new file mode 100644 index 0000000000..ab2330e69e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/cluster_assignment.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/cluster_assignment.proto\x12\x0e\x66lyteidl.admin\"K\n\x11\x43lusterAssignment\x12*\n\x11\x63luster_pool_name\x18\x03 \x01(\tR\x0f\x63lusterPoolNameJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16\x43lusterAssignmentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.cluster_assignment_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ClusterAssignmentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_CLUSTERASSIGNMENT']._serialized_start=59 + _globals['_CLUSTERASSIGNMENT']._serialized_end=134 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi new file mode 100644 index 0000000000..d18fe1bf3d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi @@ -0,0 +1,11 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class ClusterAssignment(_message.Message): + __slots__ = ["cluster_pool_name"] + CLUSTER_POOL_NAME_FIELD_NUMBER: _ClassVar[int] + cluster_pool_name: str + def __init__(self, cluster_pool_name: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py new file mode 100644 index 0000000000..c12fa17b0f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/common.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"o\n\x15NamedEntityIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"o\n\x13NamedEntityMetadata\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32 .flyteidl.admin.NamedEntityStateR\x05state\"\xc7\x01\n\x0bNamedEntity\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x82\x01\n\x04Sort\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\tdirection\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.Sort.DirectionR\tdirection\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\xdb\x01\n NamedEntityIdentifierListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x06 \x01(\tR\x07\x66ilters\x12\x10\n\x03org\x18\x07 \x01(\tR\x03org\"\x93\x02\n\x16NamedEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x04 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x07 \x01(\tR\x07\x66ilters\x12\x10\n\x03org\x18\x08 \x01(\tR\x03org\"t\n\x19NamedEntityIdentifierList\x12\x41\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"`\n\x0fNamedEntityList\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1b.flyteidl.admin.NamedEntityR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x90\x01\n\x15NamedEntityGetRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xd4\x01\n\x18NamedEntityUpdateRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x1b\n\x19NamedEntityUpdateResponse\"=\n\x10ObjectGetRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\xc1\x01\n\x13ResourceListRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\">\n\x11\x45mailNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"B\n\x15PagerDutyNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\">\n\x11SlackNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"\x94\x02\n\x0cNotification\x12>\n\x06phases\x18\x01 \x03(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x06phases\x12\x39\n\x05\x65mail\x18\x02 \x01(\x0b\x32!.flyteidl.admin.EmailNotificationH\x00R\x05\x65mail\x12\x46\n\npager_duty\x18\x03 \x01(\x0b\x32%.flyteidl.admin.PagerDutyNotificationH\x00R\tpagerDuty\x12\x39\n\x05slack\x18\x04 \x01(\x0b\x32!.flyteidl.admin.SlackNotificationH\x00R\x05slackB\x06\n\x04type\"5\n\x07UrlBlob\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\x12\x14\n\x05\x62ytes\x18\x02 \x01(\x03R\x05\x62ytes:\x02\x18\x01\"\x7f\n\x06Labels\x12:\n\x06values\x18\x01 \x03(\x0b\x32\".flyteidl.admin.Labels.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x89\x01\n\x0b\x41nnotations\x12?\n\x06values\x18\x01 \x03(\x0b\x32\'.flyteidl.admin.Annotations.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\";\n\x04\x45nvs\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x06values\"z\n\x08\x41uthRole\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"K\n\x13RawOutputDataConfig\x12\x34\n\x16output_location_prefix\x18\x01 \x01(\tR\x14outputLocationPrefix\"Q\n\tFlyteURLs\x12\x16\n\x06inputs\x18\x01 \x01(\tR\x06inputs\x12\x18\n\x07outputs\x18\x02 \x01(\tR\x07outputs\x12\x12\n\x04\x64\x65\x63k\x18\x03 \x01(\tR\x04\x64\x65\x63k*\\\n\x10NamedEntityState\x12\x17\n\x13NAMED_ENTITY_ACTIVE\x10\x00\x12\x19\n\x15NAMED_ENTITY_ARCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\x42\xb7\x01\n\x12\x63om.flyteidl.adminB\x0b\x43ommonProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.common_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013CommonProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _URLBLOB._options = None + _URLBLOB._serialized_options = b'\030\001' + _LABELS_VALUESENTRY._options = None + _LABELS_VALUESENTRY._serialized_options = b'8\001' + _ANNOTATIONS_VALUESENTRY._options = None + _ANNOTATIONS_VALUESENTRY._serialized_options = b'8\001' + _AUTHROLE._options = None + _AUTHROLE._serialized_options = b'\030\001' + _globals['_NAMEDENTITYSTATE']._serialized_start=3244 + _globals['_NAMEDENTITYSTATE']._serialized_end=3336 + _globals['_NAMEDENTITYIDENTIFIER']._serialized_start=173 + _globals['_NAMEDENTITYIDENTIFIER']._serialized_end=284 + _globals['_NAMEDENTITYMETADATA']._serialized_start=286 + _globals['_NAMEDENTITYMETADATA']._serialized_end=397 + _globals['_NAMEDENTITY']._serialized_start=400 + _globals['_NAMEDENTITY']._serialized_end=599 + _globals['_SORT']._serialized_start=602 + _globals['_SORT']._serialized_end=732 + _globals['_SORT_DIRECTION']._serialized_start=690 + _globals['_SORT_DIRECTION']._serialized_end=732 + _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_start=735 + _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_end=954 + _globals['_NAMEDENTITYLISTREQUEST']._serialized_start=957 + _globals['_NAMEDENTITYLISTREQUEST']._serialized_end=1232 + _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_start=1234 + _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_end=1350 + _globals['_NAMEDENTITYLIST']._serialized_start=1352 + _globals['_NAMEDENTITYLIST']._serialized_end=1448 + _globals['_NAMEDENTITYGETREQUEST']._serialized_start=1451 + _globals['_NAMEDENTITYGETREQUEST']._serialized_end=1595 + _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_start=1598 + _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_end=1810 + _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_start=1812 + _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_end=1839 + _globals['_OBJECTGETREQUEST']._serialized_start=1841 + _globals['_OBJECTGETREQUEST']._serialized_end=1902 + _globals['_RESOURCELISTREQUEST']._serialized_start=1905 + _globals['_RESOURCELISTREQUEST']._serialized_end=2098 + _globals['_EMAILNOTIFICATION']._serialized_start=2100 + _globals['_EMAILNOTIFICATION']._serialized_end=2162 + _globals['_PAGERDUTYNOTIFICATION']._serialized_start=2164 + _globals['_PAGERDUTYNOTIFICATION']._serialized_end=2230 + _globals['_SLACKNOTIFICATION']._serialized_start=2232 + _globals['_SLACKNOTIFICATION']._serialized_end=2294 + _globals['_NOTIFICATION']._serialized_start=2297 + _globals['_NOTIFICATION']._serialized_end=2573 + _globals['_URLBLOB']._serialized_start=2575 + _globals['_URLBLOB']._serialized_end=2628 + _globals['_LABELS']._serialized_start=2630 + _globals['_LABELS']._serialized_end=2757 + _globals['_LABELS_VALUESENTRY']._serialized_start=2700 + _globals['_LABELS_VALUESENTRY']._serialized_end=2757 + _globals['_ANNOTATIONS']._serialized_start=2760 + _globals['_ANNOTATIONS']._serialized_end=2897 + _globals['_ANNOTATIONS_VALUESENTRY']._serialized_start=2700 + _globals['_ANNOTATIONS_VALUESENTRY']._serialized_end=2757 + _globals['_ENVS']._serialized_start=2899 + _globals['_ENVS']._serialized_end=2958 + _globals['_AUTHROLE']._serialized_start=2960 + _globals['_AUTHROLE']._serialized_end=3082 + _globals['_RAWOUTPUTDATACONFIG']._serialized_start=3084 + _globals['_RAWOUTPUTDATACONFIG']._serialized_end=3159 + _globals['_FLYTEURLS']._serialized_start=3161 + _globals['_FLYTEURLS']._serialized_end=3242 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi new file mode 100644 index 0000000000..420818fb95 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi @@ -0,0 +1,254 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class NamedEntityState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NAMED_ENTITY_ACTIVE: _ClassVar[NamedEntityState] + NAMED_ENTITY_ARCHIVED: _ClassVar[NamedEntityState] + SYSTEM_GENERATED: _ClassVar[NamedEntityState] +NAMED_ENTITY_ACTIVE: NamedEntityState +NAMED_ENTITY_ARCHIVED: NamedEntityState +SYSTEM_GENERATED: NamedEntityState + +class NamedEntityIdentifier(_message.Message): + __slots__ = ["project", "domain", "name", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class NamedEntityMetadata(_message.Message): + __slots__ = ["description", "state"] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + description: str + state: NamedEntityState + def __init__(self, description: _Optional[str] = ..., state: _Optional[_Union[NamedEntityState, str]] = ...) -> None: ... + +class NamedEntity(_message.Message): + __slots__ = ["resource_type", "id", "metadata"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: NamedEntityIdentifier + metadata: NamedEntityMetadata + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... + +class Sort(_message.Message): + __slots__ = ["key", "direction"] + class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DESCENDING: _ClassVar[Sort.Direction] + ASCENDING: _ClassVar[Sort.Direction] + DESCENDING: Sort.Direction + ASCENDING: Sort.Direction + KEY_FIELD_NUMBER: _ClassVar[int] + DIRECTION_FIELD_NUMBER: _ClassVar[int] + key: str + direction: Sort.Direction + def __init__(self, key: _Optional[str] = ..., direction: _Optional[_Union[Sort.Direction, str]] = ...) -> None: ... + +class NamedEntityIdentifierListRequest(_message.Message): + __slots__ = ["project", "domain", "limit", "token", "sort_by", "filters", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + limit: int + token: str + sort_by: Sort + filters: str + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class NamedEntityListRequest(_message.Message): + __slots__ = ["resource_type", "project", "domain", "limit", "token", "sort_by", "filters", "org"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + project: str + domain: str + limit: int + token: str + sort_by: Sort + filters: str + org: str + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class NamedEntityIdentifierList(_message.Message): + __slots__ = ["entities", "token"] + ENTITIES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + entities: _containers.RepeatedCompositeFieldContainer[NamedEntityIdentifier] + token: str + def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntityIdentifier, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class NamedEntityList(_message.Message): + __slots__ = ["entities", "token"] + ENTITIES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + entities: _containers.RepeatedCompositeFieldContainer[NamedEntity] + token: str + def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class NamedEntityGetRequest(_message.Message): + __slots__ = ["resource_type", "id"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: NamedEntityIdentifier + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ...) -> None: ... + +class NamedEntityUpdateRequest(_message.Message): + __slots__ = ["resource_type", "id", "metadata"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: NamedEntityIdentifier + metadata: NamedEntityMetadata + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... + +class NamedEntityUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ObjectGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class ResourceListRequest(_message.Message): + __slots__ = ["id", "limit", "token", "filters", "sort_by"] + ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + id: NamedEntityIdentifier + limit: int + token: str + filters: str + sort_by: Sort + def __init__(self, id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ...) -> None: ... + +class EmailNotification(_message.Message): + __slots__ = ["recipients_email"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... + +class PagerDutyNotification(_message.Message): + __slots__ = ["recipients_email"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... + +class SlackNotification(_message.Message): + __slots__ = ["recipients_email"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... + +class Notification(_message.Message): + __slots__ = ["phases", "email", "pager_duty", "slack"] + PHASES_FIELD_NUMBER: _ClassVar[int] + EMAIL_FIELD_NUMBER: _ClassVar[int] + PAGER_DUTY_FIELD_NUMBER: _ClassVar[int] + SLACK_FIELD_NUMBER: _ClassVar[int] + phases: _containers.RepeatedScalarFieldContainer[_execution_pb2.WorkflowExecution.Phase] + email: EmailNotification + pager_duty: PagerDutyNotification + slack: SlackNotification + def __init__(self, phases: _Optional[_Iterable[_Union[_execution_pb2.WorkflowExecution.Phase, str]]] = ..., email: _Optional[_Union[EmailNotification, _Mapping]] = ..., pager_duty: _Optional[_Union[PagerDutyNotification, _Mapping]] = ..., slack: _Optional[_Union[SlackNotification, _Mapping]] = ...) -> None: ... + +class UrlBlob(_message.Message): + __slots__ = ["url", "bytes"] + URL_FIELD_NUMBER: _ClassVar[int] + BYTES_FIELD_NUMBER: _ClassVar[int] + url: str + bytes: int + def __init__(self, url: _Optional[str] = ..., bytes: _Optional[int] = ...) -> None: ... + +class Labels(_message.Message): + __slots__ = ["values"] + class ValuesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.ScalarMap[str, str] + def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Annotations(_message.Message): + __slots__ = ["values"] + class ValuesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.ScalarMap[str, str] + def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Envs(_message.Message): + __slots__ = ["values"] + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] + def __init__(self, values: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ...) -> None: ... + +class AuthRole(_message.Message): + __slots__ = ["assumable_iam_role", "kubernetes_service_account"] + ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + assumable_iam_role: str + kubernetes_service_account: str + def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... + +class RawOutputDataConfig(_message.Message): + __slots__ = ["output_location_prefix"] + OUTPUT_LOCATION_PREFIX_FIELD_NUMBER: _ClassVar[int] + output_location_prefix: str + def __init__(self, output_location_prefix: _Optional[str] = ...) -> None: ... + +class FlyteURLs(_message.Message): + __slots__ = ["inputs", "outputs", "deck"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + DECK_FIELD_NUMBER: _ClassVar[int] + inputs: str + outputs: str + deck: str + def __init__(self, inputs: _Optional[str] = ..., outputs: _Optional[str] = ..., deck: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py new file mode 100644 index 0000000000..af96988c48 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/description_entity.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/description_entity.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/admin/common.proto\"\x84\x02\n\x11\x44\x65scriptionEntity\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12+\n\x11short_description\x18\x02 \x01(\tR\x10shortDescription\x12\x46\n\x10long_description\x18\x03 \x01(\x0b\x32\x1b.flyteidl.admin.DescriptionR\x0flongDescription\x12;\n\x0bsource_code\x18\x04 \x01(\x0b\x32\x1a.flyteidl.admin.SourceCodeR\nsourceCode\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\"\x9c\x01\n\x0b\x44\x65scription\x12\x16\n\x05value\x18\x01 \x01(\tH\x00R\x05value\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uri\x12\x39\n\x06\x66ormat\x18\x03 \x01(\x0e\x32!.flyteidl.admin.DescriptionFormatR\x06\x66ormat\x12\x1b\n\ticon_link\x18\x04 \x01(\tR\x08iconLinkB\t\n\x07\x63ontent\" \n\nSourceCode\x12\x12\n\x04link\x18\x01 \x01(\tR\x04link\"\x82\x01\n\x15\x44\x65scriptionEntityList\x12S\n\x13\x64\x65scriptionEntities\x18\x01 \x03(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x13\x64\x65scriptionEntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x8c\x02\n\x1c\x44\x65scriptionEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x05 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy*\x8d\x01\n\x11\x44\x65scriptionFormat\x12\x1e\n\x1a\x44\x45SCRIPTION_FORMAT_UNKNOWN\x10\x00\x12\x1f\n\x1b\x44\x45SCRIPTION_FORMAT_MARKDOWN\x10\x01\x12\x1b\n\x17\x44\x45SCRIPTION_FORMAT_HTML\x10\x02\x12\x1a\n\x16\x44\x45SCRIPTION_FORMAT_RST\x10\x03\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16\x44\x65scriptionEntityProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.description_entity_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026DescriptionEntityProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_DESCRIPTIONFORMAT']._serialized_start=981 + _globals['_DESCRIPTIONFORMAT']._serialized_end=1122 + _globals['_DESCRIPTIONENTITY']._serialized_start=121 + _globals['_DESCRIPTIONENTITY']._serialized_end=381 + _globals['_DESCRIPTION']._serialized_start=384 + _globals['_DESCRIPTION']._serialized_end=540 + _globals['_SOURCECODE']._serialized_start=542 + _globals['_SOURCECODE']._serialized_end=574 + _globals['_DESCRIPTIONENTITYLIST']._serialized_start=577 + _globals['_DESCRIPTIONENTITYLIST']._serialized_end=707 + _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_start=710 + _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_end=978 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi new file mode 100644 index 0000000000..200778457d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi @@ -0,0 +1,76 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DescriptionFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DESCRIPTION_FORMAT_UNKNOWN: _ClassVar[DescriptionFormat] + DESCRIPTION_FORMAT_MARKDOWN: _ClassVar[DescriptionFormat] + DESCRIPTION_FORMAT_HTML: _ClassVar[DescriptionFormat] + DESCRIPTION_FORMAT_RST: _ClassVar[DescriptionFormat] +DESCRIPTION_FORMAT_UNKNOWN: DescriptionFormat +DESCRIPTION_FORMAT_MARKDOWN: DescriptionFormat +DESCRIPTION_FORMAT_HTML: DescriptionFormat +DESCRIPTION_FORMAT_RST: DescriptionFormat + +class DescriptionEntity(_message.Message): + __slots__ = ["id", "short_description", "long_description", "source_code", "tags"] + ID_FIELD_NUMBER: _ClassVar[int] + SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + LONG_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + SOURCE_CODE_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + short_description: str + long_description: Description + source_code: SourceCode + tags: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., short_description: _Optional[str] = ..., long_description: _Optional[_Union[Description, _Mapping]] = ..., source_code: _Optional[_Union[SourceCode, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... + +class Description(_message.Message): + __slots__ = ["value", "uri", "format", "icon_link"] + VALUE_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + ICON_LINK_FIELD_NUMBER: _ClassVar[int] + value: str + uri: str + format: DescriptionFormat + icon_link: str + def __init__(self, value: _Optional[str] = ..., uri: _Optional[str] = ..., format: _Optional[_Union[DescriptionFormat, str]] = ..., icon_link: _Optional[str] = ...) -> None: ... + +class SourceCode(_message.Message): + __slots__ = ["link"] + LINK_FIELD_NUMBER: _ClassVar[int] + link: str + def __init__(self, link: _Optional[str] = ...) -> None: ... + +class DescriptionEntityList(_message.Message): + __slots__ = ["descriptionEntities", "token"] + DESCRIPTIONENTITIES_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + descriptionEntities: _containers.RepeatedCompositeFieldContainer[DescriptionEntity] + token: str + def __init__(self, descriptionEntities: _Optional[_Iterable[_Union[DescriptionEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class DescriptionEntityListRequest(_message.Message): + __slots__ = ["resource_type", "id", "limit", "token", "filters", "sort_by"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + resource_type: _identifier_pb2.ResourceType + id: _common_pb2.NamedEntityIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py new file mode 100644 index 0000000000..7f2ba1e6ba --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/event.proto\x12\x0e\x66lyteidl.admin\x1a\x1a\x66lyteidl/event/event.proto\"G\n EventErrorAlreadyInTerminalState\x12#\n\rcurrent_phase\x18\x01 \x01(\tR\x0c\x63urrentPhase\"9\n\x1d\x45ventErrorIncompatibleCluster\x12\x18\n\x07\x63luster\x18\x01 \x01(\tR\x07\x63luster\"\xf1\x01\n\x12\x45ventFailureReason\x12m\n\x19\x61lready_in_terminal_state\x18\x01 \x01(\x0b\x32\x30.flyteidl.admin.EventErrorAlreadyInTerminalStateH\x00R\x16\x61lreadyInTerminalState\x12\x62\n\x14incompatible_cluster\x18\x02 \x01(\x0b\x32-.flyteidl.admin.EventErrorIncompatibleClusterH\x00R\x13incompatibleClusterB\x08\n\x06reason\"|\n\x1dWorkflowExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12<\n\x05\x65vent\x18\x02 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x05\x65vent\" \n\x1eWorkflowExecutionEventResponse\"t\n\x19NodeExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x05\x65vent\"\x1c\n\x1aNodeExecutionEventResponse\"t\n\x19TaskExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x05\x65vent\"\x1c\n\x1aTaskExecutionEventResponseB\xb6\x01\n\x12\x63om.flyteidl.adminB\nEventProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.event_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nEventProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_start=74 + _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_end=145 + _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_start=147 + _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_end=204 + _globals['_EVENTFAILUREREASON']._serialized_start=207 + _globals['_EVENTFAILUREREASON']._serialized_end=448 + _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_start=450 + _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_end=574 + _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_start=576 + _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_end=608 + _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_start=610 + _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_end=726 + _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_start=728 + _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_end=756 + _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_start=758 + _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_end=874 + _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_start=876 + _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_end=904 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi new file mode 100644 index 0000000000..47eac9aa7f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi @@ -0,0 +1,62 @@ +from flyteidl.event import event_pb2 as _event_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class EventErrorAlreadyInTerminalState(_message.Message): + __slots__ = ["current_phase"] + CURRENT_PHASE_FIELD_NUMBER: _ClassVar[int] + current_phase: str + def __init__(self, current_phase: _Optional[str] = ...) -> None: ... + +class EventErrorIncompatibleCluster(_message.Message): + __slots__ = ["cluster"] + CLUSTER_FIELD_NUMBER: _ClassVar[int] + cluster: str + def __init__(self, cluster: _Optional[str] = ...) -> None: ... + +class EventFailureReason(_message.Message): + __slots__ = ["already_in_terminal_state", "incompatible_cluster"] + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER: _ClassVar[int] + INCOMPATIBLE_CLUSTER_FIELD_NUMBER: _ClassVar[int] + already_in_terminal_state: EventErrorAlreadyInTerminalState + incompatible_cluster: EventErrorIncompatibleCluster + def __init__(self, already_in_terminal_state: _Optional[_Union[EventErrorAlreadyInTerminalState, _Mapping]] = ..., incompatible_cluster: _Optional[_Union[EventErrorIncompatibleCluster, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionEventRequest(_message.Message): + __slots__ = ["request_id", "event"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + request_id: str + event: _event_pb2.WorkflowExecutionEvent + def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionEventResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class NodeExecutionEventRequest(_message.Message): + __slots__ = ["request_id", "event"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + request_id: str + event: _event_pb2.NodeExecutionEvent + def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ...) -> None: ... + +class NodeExecutionEventResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class TaskExecutionEventRequest(_message.Message): + __slots__ = ["request_id", "event"] + REQUEST_ID_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + request_id: str + event: _event_pb2.TaskExecutionEvent + def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... + +class TaskExecutionEventResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py new file mode 100644 index 0000000000..918db78e56 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/admin/execution.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xd6\x01\n\x16\x45xecutionCreateRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x31\n\x04spec\x18\x04 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12\x31\n\x06inputs\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"\x99\x01\n\x18\x45xecutionRelaunchRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\'\n\x0foverwrite_cache\x18\x04 \x01(\x08R\x0eoverwriteCacheJ\x04\x08\x02\x10\x03\"\xa8\x01\n\x17\x45xecutionRecoverRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\"U\n\x17\x45xecutionCreateResponse\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"Y\n\x1bWorkflowExecutionGetRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\xb6\x01\n\tExecution\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x31\n\x04spec\x18\x02 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12:\n\x07\x63losure\x18\x03 \x01(\x0b\x32 .flyteidl.admin.ExecutionClosureR\x07\x63losure\"`\n\rExecutionList\x12\x39\n\nexecutions\x18\x01 \x03(\x0b\x32\x19.flyteidl.admin.ExecutionR\nexecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"e\n\x0eLiteralMapBlob\x12\x37\n\x06values\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\x06values\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uriB\x06\n\x04\x64\x61ta\"C\n\rAbortMetadata\x12\x14\n\x05\x63\x61use\x18\x01 \x01(\tR\x05\x63\x61use\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\"\x98\x07\n\x10\x45xecutionClosure\x12>\n\x07outputs\x18\x01 \x01(\x0b\x32\x1e.flyteidl.admin.LiteralMapBlobB\x02\x18\x01H\x00R\x07outputs\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12%\n\x0b\x61\x62ort_cause\x18\n \x01(\tB\x02\x18\x01H\x00R\nabortCause\x12\x46\n\x0e\x61\x62ort_metadata\x18\x0c \x01(\x0b\x32\x1d.flyteidl.admin.AbortMetadataH\x00R\rabortMetadata\x12@\n\x0boutput_data\x18\r \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x46\n\x0f\x63omputed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x0e\x63omputedInputs\x12<\n\x05phase\x18\x04 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x42\n\rnotifications\x18\t \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12:\n\x0bworkflow_id\x18\x0b \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12]\n\x14state_change_details\x18\x0e \x01(\x0b\x32+.flyteidl.admin.ExecutionStateChangeDetailsR\x12stateChangeDetailsB\x0f\n\routput_result\"[\n\x0eSystemMetadata\x12+\n\x11\x65xecution_cluster\x18\x01 \x01(\tR\x10\x65xecutionCluster\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\xf8\x04\n\x11\x45xecutionMetadata\x12\x43\n\x04mode\x18\x01 \x01(\x0e\x32/.flyteidl.admin.ExecutionMetadata.ExecutionModeR\x04mode\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\x12\x18\n\x07nesting\x18\x03 \x01(\rR\x07nesting\x12=\n\x0cscheduled_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12Z\n\x15parent_node_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x13parentNodeExecution\x12[\n\x13reference_execution\x18\x10 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12G\n\x0fsystem_metadata\x18\x11 \x01(\x0b\x32\x1e.flyteidl.admin.SystemMetadataR\x0esystemMetadata\x12<\n\x0c\x61rtifact_ids\x18\x12 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\"g\n\rExecutionMode\x12\n\n\x06MANUAL\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0c\n\x08RELAUNCH\x10\x03\x12\x12\n\x0e\x43HILD_WORKFLOW\x10\x04\x12\r\n\tRECOVERED\x10\x05\"V\n\x10NotificationList\x12\x42\n\rnotifications\x18\x01 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\"\x90\x08\n\rExecutionSpec\x12:\n\x0blaunch_plan\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nlaunchPlan\x12\x35\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x06inputs\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\x12H\n\rnotifications\x18\x05 \x01(\x0b\x32 .flyteidl.admin.NotificationListH\x00R\rnotifications\x12!\n\x0b\x64isable_all\x18\x06 \x01(\x08H\x00R\ndisableAll\x12.\n\x06labels\x18\x07 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x08 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12\x39\n\tauth_role\x18\x10 \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12M\n\x12quality_of_service\x18\x11 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12X\n\x16raw_output_data_config\x18\x13 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12P\n\x12\x63luster_assignment\x18\x14 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentR\x11\x63lusterAssignment\x12@\n\rinterruptible\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x16 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x17 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\x12\x12\n\x04tags\x18\x18 \x03(\tR\x04tagsB\x18\n\x16notification_overridesJ\x04\x08\x04\x10\x05\"m\n\x19\x45xecutionTerminateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x63\x61use\x18\x02 \x01(\tR\x05\x63\x61use\"\x1c\n\x1a\x45xecutionTerminateResponse\"]\n\x1fWorkflowExecutionGetDataRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\x88\x02\n WorkflowExecutionGetDataResponse\x12\x35\n\x07outputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\"\x8a\x01\n\x16\x45xecutionUpdateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\"\xae\x01\n\x1b\x45xecutionStateChangeDetails\x12\x34\n\x05state\x18\x01 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\"\x19\n\x17\x45xecutionUpdateResponse\"v\n\"WorkflowExecutionGetMetricsRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x05R\x05\x64\x65pth\"N\n#WorkflowExecutionGetMetricsResponse\x12\'\n\x04span\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.SpanR\x04span*>\n\x0e\x45xecutionState\x12\x14\n\x10\x45XECUTION_ACTIVE\x10\x00\x12\x16\n\x12\x45XECUTION_ARCHIVED\x10\x01\x42\xba\x01\n\x12\x63om.flyteidl.adminB\x0e\x45xecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\016ExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _LITERALMAPBLOB.fields_by_name['values']._options = None + _LITERALMAPBLOB.fields_by_name['values']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['outputs']._options = None + _EXECUTIONCLOSURE.fields_by_name['outputs']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['abort_cause']._options = None + _EXECUTIONCLOSURE.fields_by_name['abort_cause']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['output_data']._options = None + _EXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' + _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._options = None + _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._serialized_options = b'\030\001' + _EXECUTIONSPEC.fields_by_name['inputs']._options = None + _EXECUTIONSPEC.fields_by_name['inputs']._serialized_options = b'\030\001' + _EXECUTIONSPEC.fields_by_name['auth_role']._options = None + _EXECUTIONSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None + _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' + _globals['_EXECUTIONSTATE']._serialized_start=5409 + _globals['_EXECUTIONSTATE']._serialized_end=5471 + _globals['_EXECUTIONCREATEREQUEST']._serialized_start=403 + _globals['_EXECUTIONCREATEREQUEST']._serialized_end=617 + _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_start=620 + _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_end=773 + _globals['_EXECUTIONRECOVERREQUEST']._serialized_start=776 + _globals['_EXECUTIONRECOVERREQUEST']._serialized_end=944 + _globals['_EXECUTIONCREATERESPONSE']._serialized_start=946 + _globals['_EXECUTIONCREATERESPONSE']._serialized_end=1031 + _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_start=1033 + _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_end=1122 + _globals['_EXECUTION']._serialized_start=1125 + _globals['_EXECUTION']._serialized_end=1307 + _globals['_EXECUTIONLIST']._serialized_start=1309 + _globals['_EXECUTIONLIST']._serialized_end=1405 + _globals['_LITERALMAPBLOB']._serialized_start=1407 + _globals['_LITERALMAPBLOB']._serialized_end=1508 + _globals['_ABORTMETADATA']._serialized_start=1510 + _globals['_ABORTMETADATA']._serialized_end=1577 + _globals['_EXECUTIONCLOSURE']._serialized_start=1580 + _globals['_EXECUTIONCLOSURE']._serialized_end=2500 + _globals['_SYSTEMMETADATA']._serialized_start=2502 + _globals['_SYSTEMMETADATA']._serialized_end=2593 + _globals['_EXECUTIONMETADATA']._serialized_start=2596 + _globals['_EXECUTIONMETADATA']._serialized_end=3228 + _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_start=3125 + _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_end=3228 + _globals['_NOTIFICATIONLIST']._serialized_start=3230 + _globals['_NOTIFICATIONLIST']._serialized_end=3316 + _globals['_EXECUTIONSPEC']._serialized_start=3319 + _globals['_EXECUTIONSPEC']._serialized_end=4359 + _globals['_EXECUTIONTERMINATEREQUEST']._serialized_start=4361 + _globals['_EXECUTIONTERMINATEREQUEST']._serialized_end=4470 + _globals['_EXECUTIONTERMINATERESPONSE']._serialized_start=4472 + _globals['_EXECUTIONTERMINATERESPONSE']._serialized_end=4500 + _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_start=4502 + _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_end=4595 + _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_start=4598 + _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_end=4862 + _globals['_EXECUTIONUPDATEREQUEST']._serialized_start=4865 + _globals['_EXECUTIONUPDATEREQUEST']._serialized_end=5003 + _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_start=5006 + _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_end=5180 + _globals['_EXECUTIONUPDATERESPONSE']._serialized_start=5182 + _globals['_EXECUTIONUPDATERESPONSE']._serialized_end=5207 + _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_start=5209 + _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_end=5327 + _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_start=5329 + _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_end=5407 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi new file mode 100644 index 0000000000..bee241d74d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi @@ -0,0 +1,291 @@ +from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import metrics_pb2 as _metrics_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ExecutionState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + EXECUTION_ACTIVE: _ClassVar[ExecutionState] + EXECUTION_ARCHIVED: _ClassVar[ExecutionState] +EXECUTION_ACTIVE: ExecutionState +EXECUTION_ARCHIVED: ExecutionState + +class ExecutionCreateRequest(_message.Message): + __slots__ = ["project", "domain", "name", "spec", "inputs", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + spec: ExecutionSpec + inputs: _literals_pb2.LiteralMap + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... + +class ExecutionRelaunchRequest(_message.Message): + __slots__ = ["id", "name", "overwrite_cache"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + name: str + overwrite_cache: bool + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., overwrite_cache: bool = ...) -> None: ... + +class ExecutionRecoverRequest(_message.Message): + __slots__ = ["id", "name", "metadata"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + name: str + metadata: ExecutionMetadata + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ...) -> None: ... + +class ExecutionCreateResponse(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class Execution(_message.Message): + __slots__ = ["id", "spec", "closure"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + spec: ExecutionSpec + closure: ExecutionClosure + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., closure: _Optional[_Union[ExecutionClosure, _Mapping]] = ...) -> None: ... + +class ExecutionList(_message.Message): + __slots__ = ["executions", "token"] + EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + executions: _containers.RepeatedCompositeFieldContainer[Execution] + token: str + def __init__(self, executions: _Optional[_Iterable[_Union[Execution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class LiteralMapBlob(_message.Message): + __slots__ = ["values", "uri"] + VALUES_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + values: _literals_pb2.LiteralMap + uri: str + def __init__(self, values: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... + +class AbortMetadata(_message.Message): + __slots__ = ["cause", "principal"] + CAUSE_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + cause: str + principal: str + def __init__(self, cause: _Optional[str] = ..., principal: _Optional[str] = ...) -> None: ... + +class ExecutionClosure(_message.Message): + __slots__ = ["outputs", "error", "abort_cause", "abort_metadata", "output_data", "computed_inputs", "phase", "started_at", "duration", "created_at", "updated_at", "notifications", "workflow_id", "state_change_details"] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + ABORT_CAUSE_FIELD_NUMBER: _ClassVar[int] + ABORT_METADATA_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + COMPUTED_INPUTS_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + STATE_CHANGE_DETAILS_FIELD_NUMBER: _ClassVar[int] + outputs: LiteralMapBlob + error: _execution_pb2.ExecutionError + abort_cause: str + abort_metadata: AbortMetadata + output_data: _literals_pb2.LiteralMap + computed_inputs: _literals_pb2.LiteralMap + phase: _execution_pb2.WorkflowExecution.Phase + started_at: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] + workflow_id: _identifier_pb2.Identifier + state_change_details: ExecutionStateChangeDetails + def __init__(self, outputs: _Optional[_Union[LiteralMapBlob, _Mapping]] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., abort_cause: _Optional[str] = ..., abort_metadata: _Optional[_Union[AbortMetadata, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., computed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state_change_details: _Optional[_Union[ExecutionStateChangeDetails, _Mapping]] = ...) -> None: ... + +class SystemMetadata(_message.Message): + __slots__ = ["execution_cluster", "namespace"] + EXECUTION_CLUSTER_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + execution_cluster: str + namespace: str + def __init__(self, execution_cluster: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... + +class ExecutionMetadata(_message.Message): + __slots__ = ["mode", "principal", "nesting", "scheduled_at", "parent_node_execution", "reference_execution", "system_metadata", "artifact_ids"] + class ExecutionMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MANUAL: _ClassVar[ExecutionMetadata.ExecutionMode] + SCHEDULED: _ClassVar[ExecutionMetadata.ExecutionMode] + SYSTEM: _ClassVar[ExecutionMetadata.ExecutionMode] + RELAUNCH: _ClassVar[ExecutionMetadata.ExecutionMode] + CHILD_WORKFLOW: _ClassVar[ExecutionMetadata.ExecutionMode] + RECOVERED: _ClassVar[ExecutionMetadata.ExecutionMode] + MANUAL: ExecutionMetadata.ExecutionMode + SCHEDULED: ExecutionMetadata.ExecutionMode + SYSTEM: ExecutionMetadata.ExecutionMode + RELAUNCH: ExecutionMetadata.ExecutionMode + CHILD_WORKFLOW: ExecutionMetadata.ExecutionMode + RECOVERED: ExecutionMetadata.ExecutionMode + MODE_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + NESTING_FIELD_NUMBER: _ClassVar[int] + SCHEDULED_AT_FIELD_NUMBER: _ClassVar[int] + PARENT_NODE_EXECUTION_FIELD_NUMBER: _ClassVar[int] + REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] + SYSTEM_METADATA_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] + mode: ExecutionMetadata.ExecutionMode + principal: str + nesting: int + scheduled_at: _timestamp_pb2.Timestamp + parent_node_execution: _identifier_pb2.NodeExecutionIdentifier + reference_execution: _identifier_pb2.WorkflowExecutionIdentifier + system_metadata: SystemMetadata + artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] + def __init__(self, mode: _Optional[_Union[ExecutionMetadata.ExecutionMode, str]] = ..., principal: _Optional[str] = ..., nesting: _Optional[int] = ..., scheduled_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., parent_node_execution: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., system_metadata: _Optional[_Union[SystemMetadata, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ...) -> None: ... + +class NotificationList(_message.Message): + __slots__ = ["notifications"] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] + def __init__(self, notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ...) -> None: ... + +class ExecutionSpec(_message.Message): + __slots__ = ["launch_plan", "inputs", "metadata", "notifications", "disable_all", "labels", "annotations", "security_context", "auth_role", "quality_of_service", "max_parallelism", "raw_output_data_config", "cluster_assignment", "interruptible", "overwrite_cache", "envs", "tags"] + LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + DISABLE_ALL_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + ENVS_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + launch_plan: _identifier_pb2.Identifier + inputs: _literals_pb2.LiteralMap + metadata: ExecutionMetadata + notifications: NotificationList + disable_all: bool + labels: _common_pb2.Labels + annotations: _common_pb2.Annotations + security_context: _security_pb2.SecurityContext + auth_role: _common_pb2.AuthRole + quality_of_service: _execution_pb2.QualityOfService + max_parallelism: int + raw_output_data_config: _common_pb2.RawOutputDataConfig + cluster_assignment: _cluster_assignment_pb2.ClusterAssignment + interruptible: _wrappers_pb2.BoolValue + overwrite_cache: bool + envs: _common_pb2.Envs + tags: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, launch_plan: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ..., notifications: _Optional[_Union[NotificationList, _Mapping]] = ..., disable_all: bool = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... + +class ExecutionTerminateRequest(_message.Message): + __slots__ = ["id", "cause"] + ID_FIELD_NUMBER: _ClassVar[int] + CAUSE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + cause: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., cause: _Optional[str] = ...) -> None: ... + +class ExecutionTerminateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class WorkflowExecutionGetDataRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class WorkflowExecutionGetDataResponse(_message.Message): + __slots__ = ["outputs", "inputs", "full_inputs", "full_outputs"] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + outputs: _common_pb2.UrlBlob + inputs: _common_pb2.UrlBlob + full_inputs: _literals_pb2.LiteralMap + full_outputs: _literals_pb2.LiteralMap + def __init__(self, outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class ExecutionUpdateRequest(_message.Message): + __slots__ = ["id", "state"] + ID_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + state: ExecutionState + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., state: _Optional[_Union[ExecutionState, str]] = ...) -> None: ... + +class ExecutionStateChangeDetails(_message.Message): + __slots__ = ["state", "occurred_at", "principal"] + STATE_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + state: ExecutionState + occurred_at: _timestamp_pb2.Timestamp + principal: str + def __init__(self, state: _Optional[_Union[ExecutionState, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., principal: _Optional[str] = ...) -> None: ... + +class ExecutionUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class WorkflowExecutionGetMetricsRequest(_message.Message): + __slots__ = ["id", "depth"] + ID_FIELD_NUMBER: _ClassVar[int] + DEPTH_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.WorkflowExecutionIdentifier + depth: int + def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., depth: _Optional[int] = ...) -> None: ... + +class WorkflowExecutionGetMetricsResponse(_message.Message): + __slots__ = ["span"] + SPAN_FIELD_NUMBER: _ClassVar[int] + span: _metrics_pb2.Span + def __init__(self, span: _Optional[_Union[_metrics_pb2.Span, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py new file mode 100644 index 0000000000..68d9cdbd65 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/launch_plan.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from flyteidl.admin import schedule_pb2 as flyteidl_dot_admin_dot_schedule__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/admin/launch_plan.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1d\x66lyteidl/admin/schedule.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"x\n\x17LaunchPlanCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\"\x1a\n\x18LaunchPlanCreateResponse\"\xa8\x01\n\nLaunchPlan\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\x12;\n\x07\x63losure\x18\x03 \x01(\x0b\x32!.flyteidl.admin.LaunchPlanClosureR\x07\x63losure\"e\n\x0eLaunchPlanList\x12=\n\x0claunch_plans\x18\x01 \x03(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x0blaunchPlans\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"v\n\x04\x41uth\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"\xbd\x07\n\x0eLaunchPlanSpec\x12:\n\x0bworkflow_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12K\n\x0f\x65ntity_metadata\x18\x02 \x01(\x0b\x32\".flyteidl.admin.LaunchPlanMetadataR\x0e\x65ntityMetadata\x12\x42\n\x0e\x64\x65\x66\x61ult_inputs\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\rdefaultInputs\x12<\n\x0c\x66ixed_inputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ixedInputs\x12\x16\n\x04role\x18\x05 \x01(\tB\x02\x18\x01R\x04role\x12.\n\x06labels\x18\x06 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x07 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12,\n\x04\x61uth\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.AuthB\x02\x18\x01R\x04\x61uth\x12\x39\n\tauth_role\x18\t \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12M\n\x12quality_of_service\x18\x10 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12X\n\x16raw_output_data_config\x18\x11 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12@\n\rinterruptible\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x14 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x15 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\xcd\x02\n\x11LaunchPlanClosure\x12\x35\n\x05state\x18\x01 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\x12\x44\n\x0f\x65xpected_inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x0e\x65xpectedInputs\x12\x45\n\x10\x65xpected_outputs\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x0f\x65xpectedOutputs\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"\xd1\x01\n\x12LaunchPlanMetadata\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ScheduleR\x08schedule\x12\x42\n\rnotifications\x18\x02 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12\x41\n\x11launch_conditions\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyR\x10launchConditions\"{\n\x17LaunchPlanUpdateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x05state\x18\x02 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\"\x1a\n\x18LaunchPlanUpdateResponse\"P\n\x17\x41\x63tiveLaunchPlanRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xbc\x01\n\x1b\x41\x63tiveLaunchPlanListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org*+\n\x0fLaunchPlanState\x12\x0c\n\x08INACTIVE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x42\xbb\x01\n\x12\x63om.flyteidl.adminB\x0fLaunchPlanProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.launch_plan_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\017LaunchPlanProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _AUTH._options = None + _AUTH._serialized_options = b'\030\001' + _LAUNCHPLANSPEC.fields_by_name['role']._options = None + _LAUNCHPLANSPEC.fields_by_name['role']._serialized_options = b'\030\001' + _LAUNCHPLANSPEC.fields_by_name['auth']._options = None + _LAUNCHPLANSPEC.fields_by_name['auth']._serialized_options = b'\030\001' + _LAUNCHPLANSPEC.fields_by_name['auth_role']._options = None + _LAUNCHPLANSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' + _globals['_LAUNCHPLANSTATE']._serialized_start=2836 + _globals['_LAUNCHPLANSTATE']._serialized_end=2879 + _globals['_LAUNCHPLANCREATEREQUEST']._serialized_start=358 + _globals['_LAUNCHPLANCREATEREQUEST']._serialized_end=478 + _globals['_LAUNCHPLANCREATERESPONSE']._serialized_start=480 + _globals['_LAUNCHPLANCREATERESPONSE']._serialized_end=506 + _globals['_LAUNCHPLAN']._serialized_start=509 + _globals['_LAUNCHPLAN']._serialized_end=677 + _globals['_LAUNCHPLANLIST']._serialized_start=679 + _globals['_LAUNCHPLANLIST']._serialized_end=780 + _globals['_AUTH']._serialized_start=782 + _globals['_AUTH']._serialized_end=900 + _globals['_LAUNCHPLANSPEC']._serialized_start=903 + _globals['_LAUNCHPLANSPEC']._serialized_end=1860 + _globals['_LAUNCHPLANCLOSURE']._serialized_start=1863 + _globals['_LAUNCHPLANCLOSURE']._serialized_end=2196 + _globals['_LAUNCHPLANMETADATA']._serialized_start=2199 + _globals['_LAUNCHPLANMETADATA']._serialized_end=2408 + _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_start=2410 + _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_end=2533 + _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_start=2535 + _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_end=2561 + _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_start=2563 + _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_end=2643 + _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_start=2646 + _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_end=2834 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi new file mode 100644 index 0000000000..a047c8d473 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi @@ -0,0 +1,156 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from flyteidl.admin import schedule_pb2 as _schedule_pb2 +from flyteidl.admin import common_pb2 as _common_pb2 +from google.protobuf import any_pb2 as _any_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class LaunchPlanState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + INACTIVE: _ClassVar[LaunchPlanState] + ACTIVE: _ClassVar[LaunchPlanState] +INACTIVE: LaunchPlanState +ACTIVE: LaunchPlanState + +class LaunchPlanCreateRequest(_message.Message): + __slots__ = ["id", "spec"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: LaunchPlanSpec + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ...) -> None: ... + +class LaunchPlanCreateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class LaunchPlan(_message.Message): + __slots__ = ["id", "spec", "closure"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: LaunchPlanSpec + closure: LaunchPlanClosure + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ..., closure: _Optional[_Union[LaunchPlanClosure, _Mapping]] = ...) -> None: ... + +class LaunchPlanList(_message.Message): + __slots__ = ["launch_plans", "token"] + LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + launch_plans: _containers.RepeatedCompositeFieldContainer[LaunchPlan] + token: str + def __init__(self, launch_plans: _Optional[_Iterable[_Union[LaunchPlan, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class Auth(_message.Message): + __slots__ = ["assumable_iam_role", "kubernetes_service_account"] + ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + assumable_iam_role: str + kubernetes_service_account: str + def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... + +class LaunchPlanSpec(_message.Message): + __slots__ = ["workflow_id", "entity_metadata", "default_inputs", "fixed_inputs", "role", "labels", "annotations", "auth", "auth_role", "security_context", "quality_of_service", "raw_output_data_config", "max_parallelism", "interruptible", "overwrite_cache", "envs"] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + ENTITY_METADATA_FIELD_NUMBER: _ClassVar[int] + DEFAULT_INPUTS_FIELD_NUMBER: _ClassVar[int] + FIXED_INPUTS_FIELD_NUMBER: _ClassVar[int] + ROLE_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + AUTH_FIELD_NUMBER: _ClassVar[int] + AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + ENVS_FIELD_NUMBER: _ClassVar[int] + workflow_id: _identifier_pb2.Identifier + entity_metadata: LaunchPlanMetadata + default_inputs: _interface_pb2.ParameterMap + fixed_inputs: _literals_pb2.LiteralMap + role: str + labels: _common_pb2.Labels + annotations: _common_pb2.Annotations + auth: Auth + auth_role: _common_pb2.AuthRole + security_context: _security_pb2.SecurityContext + quality_of_service: _execution_pb2.QualityOfService + raw_output_data_config: _common_pb2.RawOutputDataConfig + max_parallelism: int + interruptible: _wrappers_pb2.BoolValue + overwrite_cache: bool + envs: _common_pb2.Envs + def __init__(self, workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., entity_metadata: _Optional[_Union[LaunchPlanMetadata, _Mapping]] = ..., default_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., fixed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., role: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., auth: _Optional[_Union[Auth, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... + +class LaunchPlanClosure(_message.Message): + __slots__ = ["state", "expected_inputs", "expected_outputs", "created_at", "updated_at"] + STATE_FIELD_NUMBER: _ClassVar[int] + EXPECTED_INPUTS_FIELD_NUMBER: _ClassVar[int] + EXPECTED_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + state: LaunchPlanState + expected_inputs: _interface_pb2.ParameterMap + expected_outputs: _interface_pb2.VariableMap + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + def __init__(self, state: _Optional[_Union[LaunchPlanState, str]] = ..., expected_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., expected_outputs: _Optional[_Union[_interface_pb2.VariableMap, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class LaunchPlanMetadata(_message.Message): + __slots__ = ["schedule", "notifications", "launch_conditions"] + SCHEDULE_FIELD_NUMBER: _ClassVar[int] + NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] + LAUNCH_CONDITIONS_FIELD_NUMBER: _ClassVar[int] + schedule: _schedule_pb2.Schedule + notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] + launch_conditions: _any_pb2.Any + def __init__(self, schedule: _Optional[_Union[_schedule_pb2.Schedule, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., launch_conditions: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... + +class LaunchPlanUpdateRequest(_message.Message): + __slots__ = ["id", "state"] + ID_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + state: LaunchPlanState + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state: _Optional[_Union[LaunchPlanState, str]] = ...) -> None: ... + +class LaunchPlanUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ActiveLaunchPlanRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _common_pb2.NamedEntityIdentifier + def __init__(self, id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ...) -> None: ... + +class ActiveLaunchPlanListRequest(_message.Message): + __slots__ = ["project", "domain", "limit", "token", "sort_by", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + limit: int + token: str + sort_by: _common_pb2.Sort + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py new file mode 100644 index 0000000000..94748a4932 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/matchable_resource.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/matchable_resource.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x95\x01\n\x10TaskResourceSpec\x12\x10\n\x03\x63pu\x18\x01 \x01(\tR\x03\x63pu\x12\x10\n\x03gpu\x18\x02 \x01(\tR\x03gpu\x12\x16\n\x06memory\x18\x03 \x01(\tR\x06memory\x12\x18\n\x07storage\x18\x04 \x01(\tR\x07storage\x12+\n\x11\x65phemeral_storage\x18\x05 \x01(\tR\x10\x65phemeralStorage\"\x90\x01\n\x16TaskResourceAttributes\x12<\n\x08\x64\x65\x66\x61ults\x18\x01 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x08\x64\x65\x66\x61ults\x12\x38\n\x06limits\x18\x02 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x06limits\"\xb5\x01\n\x19\x43lusterResourceAttributes\x12Y\n\nattributes\x18\x01 \x03(\x0b\x32\x39.flyteidl.admin.ClusterResourceAttributes.AttributesEntryR\nattributes\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\".\n\x18\x45xecutionQueueAttributes\x12\x12\n\x04tags\x18\x01 \x03(\tR\x04tags\"-\n\x15\x45xecutionClusterLabel\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"\xec\x01\n\x0ePluginOverride\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x1b\n\tplugin_id\x18\x02 \x03(\tR\x08pluginId\x12l\n\x17missing_plugin_behavior\x18\x04 \x01(\x0e\x32\x34.flyteidl.admin.PluginOverride.MissingPluginBehaviorR\x15missingPluginBehavior\"2\n\x15MissingPluginBehavior\x12\x08\n\x04\x46\x41IL\x10\x00\x12\x0f\n\x0bUSE_DEFAULT\x10\x01\"O\n\x0fPluginOverrides\x12<\n\toverrides\x18\x01 \x03(\x0b\x32\x1e.flyteidl.admin.PluginOverrideR\toverrides\"\xeb\x03\n\x17WorkflowExecutionConfig\x12\'\n\x0fmax_parallelism\x18\x01 \x01(\x05R\x0emaxParallelism\x12I\n\x10security_context\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12X\n\x16raw_output_data_config\x18\x03 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12.\n\x06labels\x18\x04 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x05 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12@\n\rinterruptible\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x07 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\x94\x06\n\x12MatchingAttributes\x12\x62\n\x18task_resource_attributes\x18\x01 \x01(\x0b\x32&.flyteidl.admin.TaskResourceAttributesH\x00R\x16taskResourceAttributes\x12k\n\x1b\x63luster_resource_attributes\x18\x02 \x01(\x0b\x32).flyteidl.admin.ClusterResourceAttributesH\x00R\x19\x63lusterResourceAttributes\x12h\n\x1a\x65xecution_queue_attributes\x18\x03 \x01(\x0b\x32(.flyteidl.admin.ExecutionQueueAttributesH\x00R\x18\x65xecutionQueueAttributes\x12_\n\x17\x65xecution_cluster_label\x18\x04 \x01(\x0b\x32%.flyteidl.admin.ExecutionClusterLabelH\x00R\x15\x65xecutionClusterLabel\x12O\n\x12quality_of_service\x18\x05 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceH\x00R\x10qualityOfService\x12L\n\x10plugin_overrides\x18\x06 \x01(\x0b\x32\x1f.flyteidl.admin.PluginOverridesH\x00R\x0fpluginOverrides\x12\x65\n\x19workflow_execution_config\x18\x07 \x01(\x0b\x32\'.flyteidl.admin.WorkflowExecutionConfigH\x00R\x17workflowExecutionConfig\x12R\n\x12\x63luster_assignment\x18\x08 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentH\x00R\x11\x63lusterAssignmentB\x08\n\x06target\"\xe7\x01\n MatchableAttributesConfiguration\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\nattributes\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x18\n\x07project\x18\x03 \x01(\tR\x07project\x12\x1a\n\x08workflow\x18\x04 \x01(\tR\x08workflow\x12\x1f\n\x0blaunch_plan\x18\x05 \x01(\tR\nlaunchPlan\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"z\n\x1eListMatchableAttributesRequest\x12\x46\n\rresource_type\x18\x01 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x02 \x01(\tR\x03org\"{\n\x1fListMatchableAttributesResponse\x12X\n\x0e\x63onfigurations\x18\x01 \x03(\x0b\x32\x30.flyteidl.admin.MatchableAttributesConfigurationR\x0e\x63onfigurations*\xe0\x01\n\x11MatchableResource\x12\x11\n\rTASK_RESOURCE\x10\x00\x12\x14\n\x10\x43LUSTER_RESOURCE\x10\x01\x12\x13\n\x0f\x45XECUTION_QUEUE\x10\x02\x12\x1b\n\x17\x45XECUTION_CLUSTER_LABEL\x10\x03\x12$\n QUALITY_OF_SERVICE_SPECIFICATION\x10\x04\x12\x13\n\x0fPLUGIN_OVERRIDE\x10\x05\x12\x1d\n\x19WORKFLOW_EXECUTION_CONFIG\x10\x06\x12\x16\n\x12\x43LUSTER_ASSIGNMENT\x10\x07\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16MatchableResourceProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.matchable_resource_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026MatchableResourceProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._options = None + _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._serialized_options = b'8\001' + _globals['_MATCHABLERESOURCE']._serialized_start=2889 + _globals['_MATCHABLERESOURCE']._serialized_end=3113 + _globals['_TASKRESOURCESPEC']._serialized_start=223 + _globals['_TASKRESOURCESPEC']._serialized_end=372 + _globals['_TASKRESOURCEATTRIBUTES']._serialized_start=375 + _globals['_TASKRESOURCEATTRIBUTES']._serialized_end=519 + _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_start=522 + _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_end=703 + _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_start=642 + _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_end=703 + _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_start=705 + _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_end=751 + _globals['_EXECUTIONCLUSTERLABEL']._serialized_start=753 + _globals['_EXECUTIONCLUSTERLABEL']._serialized_end=798 + _globals['_PLUGINOVERRIDE']._serialized_start=801 + _globals['_PLUGINOVERRIDE']._serialized_end=1037 + _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_start=987 + _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_end=1037 + _globals['_PLUGINOVERRIDES']._serialized_start=1039 + _globals['_PLUGINOVERRIDES']._serialized_end=1118 + _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_start=1121 + _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_end=1612 + _globals['_MATCHINGATTRIBUTES']._serialized_start=1615 + _globals['_MATCHINGATTRIBUTES']._serialized_end=2403 + _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_start=2406 + _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_end=2637 + _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_start=2639 + _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_end=2761 + _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_start=2763 + _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_end=2886 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi new file mode 100644 index 0000000000..cc19f2d146 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi @@ -0,0 +1,170 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import wrappers_pb2 as _wrappers_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class MatchableResource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + TASK_RESOURCE: _ClassVar[MatchableResource] + CLUSTER_RESOURCE: _ClassVar[MatchableResource] + EXECUTION_QUEUE: _ClassVar[MatchableResource] + EXECUTION_CLUSTER_LABEL: _ClassVar[MatchableResource] + QUALITY_OF_SERVICE_SPECIFICATION: _ClassVar[MatchableResource] + PLUGIN_OVERRIDE: _ClassVar[MatchableResource] + WORKFLOW_EXECUTION_CONFIG: _ClassVar[MatchableResource] + CLUSTER_ASSIGNMENT: _ClassVar[MatchableResource] +TASK_RESOURCE: MatchableResource +CLUSTER_RESOURCE: MatchableResource +EXECUTION_QUEUE: MatchableResource +EXECUTION_CLUSTER_LABEL: MatchableResource +QUALITY_OF_SERVICE_SPECIFICATION: MatchableResource +PLUGIN_OVERRIDE: MatchableResource +WORKFLOW_EXECUTION_CONFIG: MatchableResource +CLUSTER_ASSIGNMENT: MatchableResource + +class TaskResourceSpec(_message.Message): + __slots__ = ["cpu", "gpu", "memory", "storage", "ephemeral_storage"] + CPU_FIELD_NUMBER: _ClassVar[int] + GPU_FIELD_NUMBER: _ClassVar[int] + MEMORY_FIELD_NUMBER: _ClassVar[int] + STORAGE_FIELD_NUMBER: _ClassVar[int] + EPHEMERAL_STORAGE_FIELD_NUMBER: _ClassVar[int] + cpu: str + gpu: str + memory: str + storage: str + ephemeral_storage: str + def __init__(self, cpu: _Optional[str] = ..., gpu: _Optional[str] = ..., memory: _Optional[str] = ..., storage: _Optional[str] = ..., ephemeral_storage: _Optional[str] = ...) -> None: ... + +class TaskResourceAttributes(_message.Message): + __slots__ = ["defaults", "limits"] + DEFAULTS_FIELD_NUMBER: _ClassVar[int] + LIMITS_FIELD_NUMBER: _ClassVar[int] + defaults: TaskResourceSpec + limits: TaskResourceSpec + def __init__(self, defaults: _Optional[_Union[TaskResourceSpec, _Mapping]] = ..., limits: _Optional[_Union[TaskResourceSpec, _Mapping]] = ...) -> None: ... + +class ClusterResourceAttributes(_message.Message): + __slots__ = ["attributes"] + class AttributesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: _containers.ScalarMap[str, str] + def __init__(self, attributes: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class ExecutionQueueAttributes(_message.Message): + __slots__ = ["tags"] + TAGS_FIELD_NUMBER: _ClassVar[int] + tags: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, tags: _Optional[_Iterable[str]] = ...) -> None: ... + +class ExecutionClusterLabel(_message.Message): + __slots__ = ["value"] + VALUE_FIELD_NUMBER: _ClassVar[int] + value: str + def __init__(self, value: _Optional[str] = ...) -> None: ... + +class PluginOverride(_message.Message): + __slots__ = ["task_type", "plugin_id", "missing_plugin_behavior"] + class MissingPluginBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FAIL: _ClassVar[PluginOverride.MissingPluginBehavior] + USE_DEFAULT: _ClassVar[PluginOverride.MissingPluginBehavior] + FAIL: PluginOverride.MissingPluginBehavior + USE_DEFAULT: PluginOverride.MissingPluginBehavior + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + PLUGIN_ID_FIELD_NUMBER: _ClassVar[int] + MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER: _ClassVar[int] + task_type: str + plugin_id: _containers.RepeatedScalarFieldContainer[str] + missing_plugin_behavior: PluginOverride.MissingPluginBehavior + def __init__(self, task_type: _Optional[str] = ..., plugin_id: _Optional[_Iterable[str]] = ..., missing_plugin_behavior: _Optional[_Union[PluginOverride.MissingPluginBehavior, str]] = ...) -> None: ... + +class PluginOverrides(_message.Message): + __slots__ = ["overrides"] + OVERRIDES_FIELD_NUMBER: _ClassVar[int] + overrides: _containers.RepeatedCompositeFieldContainer[PluginOverride] + def __init__(self, overrides: _Optional[_Iterable[_Union[PluginOverride, _Mapping]]] = ...) -> None: ... + +class WorkflowExecutionConfig(_message.Message): + __slots__ = ["max_parallelism", "security_context", "raw_output_data_config", "labels", "annotations", "interruptible", "overwrite_cache", "envs"] + MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] + ENVS_FIELD_NUMBER: _ClassVar[int] + max_parallelism: int + security_context: _security_pb2.SecurityContext + raw_output_data_config: _common_pb2.RawOutputDataConfig + labels: _common_pb2.Labels + annotations: _common_pb2.Annotations + interruptible: _wrappers_pb2.BoolValue + overwrite_cache: bool + envs: _common_pb2.Envs + def __init__(self, max_parallelism: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... + +class MatchingAttributes(_message.Message): + __slots__ = ["task_resource_attributes", "cluster_resource_attributes", "execution_queue_attributes", "execution_cluster_label", "quality_of_service", "plugin_overrides", "workflow_execution_config", "cluster_assignment"] + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + PLUGIN_OVERRIDES_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER: _ClassVar[int] + CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] + task_resource_attributes: TaskResourceAttributes + cluster_resource_attributes: ClusterResourceAttributes + execution_queue_attributes: ExecutionQueueAttributes + execution_cluster_label: ExecutionClusterLabel + quality_of_service: _execution_pb2.QualityOfService + plugin_overrides: PluginOverrides + workflow_execution_config: WorkflowExecutionConfig + cluster_assignment: _cluster_assignment_pb2.ClusterAssignment + def __init__(self, task_resource_attributes: _Optional[_Union[TaskResourceAttributes, _Mapping]] = ..., cluster_resource_attributes: _Optional[_Union[ClusterResourceAttributes, _Mapping]] = ..., execution_queue_attributes: _Optional[_Union[ExecutionQueueAttributes, _Mapping]] = ..., execution_cluster_label: _Optional[_Union[ExecutionClusterLabel, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., plugin_overrides: _Optional[_Union[PluginOverrides, _Mapping]] = ..., workflow_execution_config: _Optional[_Union[WorkflowExecutionConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ...) -> None: ... + +class MatchableAttributesConfiguration(_message.Message): + __slots__ = ["attributes", "domain", "project", "workflow", "launch_plan", "org"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + attributes: MatchingAttributes + domain: str + project: str + workflow: str + launch_plan: str + org: str + def __init__(self, attributes: _Optional[_Union[MatchingAttributes, _Mapping]] = ..., domain: _Optional[str] = ..., project: _Optional[str] = ..., workflow: _Optional[str] = ..., launch_plan: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class ListMatchableAttributesRequest(_message.Message): + __slots__ = ["resource_type", "org"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + resource_type: MatchableResource + org: str + def __init__(self, resource_type: _Optional[_Union[MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class ListMatchableAttributesResponse(_message.Message): + __slots__ = ["configurations"] + CONFIGURATIONS_FIELD_NUMBER: _ClassVar[int] + configurations: _containers.RepeatedCompositeFieldContainer[MatchableAttributesConfiguration] + def __init__(self, configurations: _Optional[_Iterable[_Union[MatchableAttributesConfiguration, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py new file mode 100644 index 0000000000..93a29df4d6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/node_execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/node_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"Q\n\x17NodeExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x99\x02\n\x18NodeExecutionListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12(\n\x10unique_parent_id\x18\x06 \x01(\tR\x0euniqueParentId\"\xea\x01\n\x1fNodeExecutionForTaskListRequest\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xe7\x01\n\rNodeExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.NodeExecutionClosureR\x07\x63losure\x12\x41\n\x08metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.NodeExecutionMetaDataR\x08metadata\"\xba\x01\n\x15NodeExecutionMetaData\x12\x1f\n\x0bretry_group\x18\x01 \x01(\tR\nretryGroup\x12$\n\x0eis_parent_node\x18\x02 \x01(\x08R\x0cisParentNode\x12 \n\x0cspec_node_id\x18\x03 \x01(\tR\nspecNodeId\x12\x1d\n\nis_dynamic\x18\x04 \x01(\x08R\tisDynamic\x12\x19\n\x08is_array\x18\x05 \x01(\x08R\x07isArray\"q\n\x11NodeExecutionList\x12\x46\n\x0fnode_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.NodeExecutionR\x0enodeExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xf6\x05\n\x14NodeExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\n \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.admin.WorkflowNodeMetadataH\x01R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\t \x01(\x0b\x32 .flyteidl.admin.TaskNodeMetadataH\x01R\x10taskNodeMetadata\x12\x19\n\x08\x64\x65\x63k_uri\x18\x0b \x01(\tR\x07\x64\x65\x63kUri\x12/\n\x14\x64ynamic_job_spec_uri\x18\x0c \x01(\tR\x11\x64ynamicJobSpecUriB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"d\n\x14WorkflowNodeMetadata\x12L\n\x0b\x65xecutionId\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc0\x01\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bNodeExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x96\x03\n\x1cNodeExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.admin.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\x12\x38\n\nflyte_urls\x18\x11 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrls\"W\n\x1dGetDynamicNodeWorkflowRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"r\n\x1b\x44ynamicNodeWorkflowResponse\x12S\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflowB\xbe\x01\n\x12\x63om.flyteidl.adminB\x12NodeExecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.node_execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022NodeExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None + _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' + _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._options = None + _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None + _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' + _globals['_NODEEXECUTIONGETREQUEST']._serialized_start=301 + _globals['_NODEEXECUTIONGETREQUEST']._serialized_end=382 + _globals['_NODEEXECUTIONLISTREQUEST']._serialized_start=385 + _globals['_NODEEXECUTIONLISTREQUEST']._serialized_end=666 + _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_start=669 + _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_end=903 + _globals['_NODEEXECUTION']._serialized_start=906 + _globals['_NODEEXECUTION']._serialized_end=1137 + _globals['_NODEEXECUTIONMETADATA']._serialized_start=1140 + _globals['_NODEEXECUTIONMETADATA']._serialized_end=1326 + _globals['_NODEEXECUTIONLIST']._serialized_start=1328 + _globals['_NODEEXECUTIONLIST']._serialized_end=1441 + _globals['_NODEEXECUTIONCLOSURE']._serialized_start=1444 + _globals['_NODEEXECUTIONCLOSURE']._serialized_end=2202 + _globals['_WORKFLOWNODEMETADATA']._serialized_start=2204 + _globals['_WORKFLOWNODEMETADATA']._serialized_end=2304 + _globals['_TASKNODEMETADATA']._serialized_start=2307 + _globals['_TASKNODEMETADATA']._serialized_end=2499 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2502 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2708 + _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_start=2710 + _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_end=2795 + _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_start=2798 + _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_end=3204 + _globals['_GETDYNAMICNODEWORKFLOWREQUEST']._serialized_start=3206 + _globals['_GETDYNAMICNODEWORKFLOWREQUEST']._serialized_end=3293 + _globals['_DYNAMICNODEWORKFLOWRESPONSE']._serialized_start=3295 + _globals['_DYNAMICNODEWORKFLOWRESPONSE']._serialized_end=3409 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi new file mode 100644 index 0000000000..9bf601847d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi @@ -0,0 +1,172 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import catalog_pb2 as _catalog_pb2 +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class NodeExecutionGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class NodeExecutionListRequest(_message.Message): + __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by", "unique_parent_id"] + WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + UNIQUE_PARENT_ID_FIELD_NUMBER: _ClassVar[int] + workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + unique_parent_id: str + def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., unique_parent_id: _Optional[str] = ...) -> None: ... + +class NodeExecutionForTaskListRequest(_message.Message): + __slots__ = ["task_execution_id", "limit", "token", "filters", "sort_by"] + TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + task_execution_id: _identifier_pb2.TaskExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class NodeExecution(_message.Message): + __slots__ = ["id", "input_uri", "closure", "metadata"] + ID_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + input_uri: str + closure: NodeExecutionClosure + metadata: NodeExecutionMetaData + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[NodeExecutionClosure, _Mapping]] = ..., metadata: _Optional[_Union[NodeExecutionMetaData, _Mapping]] = ...) -> None: ... + +class NodeExecutionMetaData(_message.Message): + __slots__ = ["retry_group", "is_parent_node", "spec_node_id", "is_dynamic", "is_array"] + RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] + IS_PARENT_NODE_FIELD_NUMBER: _ClassVar[int] + SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] + IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] + IS_ARRAY_FIELD_NUMBER: _ClassVar[int] + retry_group: str + is_parent_node: bool + spec_node_id: str + is_dynamic: bool + is_array: bool + def __init__(self, retry_group: _Optional[str] = ..., is_parent_node: bool = ..., spec_node_id: _Optional[str] = ..., is_dynamic: bool = ..., is_array: bool = ...) -> None: ... + +class NodeExecutionList(_message.Message): + __slots__ = ["node_executions", "token"] + NODE_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + node_executions: _containers.RepeatedCompositeFieldContainer[NodeExecution] + token: str + def __init__(self, node_executions: _Optional[_Iterable[_Union[NodeExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class NodeExecutionClosure(_message.Message): + __slots__ = ["output_uri", "error", "output_data", "phase", "started_at", "duration", "created_at", "updated_at", "workflow_node_metadata", "task_node_metadata", "deck_uri", "dynamic_job_spec_uri"] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + DECK_URI_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + phase: _execution_pb2.NodeExecution.Phase + started_at: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + workflow_node_metadata: WorkflowNodeMetadata + task_node_metadata: TaskNodeMetadata + deck_uri: str + dynamic_job_spec_uri: str + def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., deck_uri: _Optional[str] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... + +class WorkflowNodeMetadata(_message.Message): + __slots__ = ["executionId"] + EXECUTIONID_FIELD_NUMBER: _ClassVar[int] + executionId: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, executionId: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskNodeMetadata(_message.Message): + __slots__ = ["cache_status", "catalog_key", "checkpoint_uri"] + CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] + CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] + CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] + cache_status: _catalog_pb2.CatalogCacheStatus + catalog_key: _catalog_pb2.CatalogMetadata + checkpoint_uri: str + def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., checkpoint_uri: _Optional[str] = ...) -> None: ... + +class DynamicWorkflowNodeMetadata(_message.Message): + __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] + ID_FIELD_NUMBER: _ClassVar[int] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + dynamic_job_spec_uri: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... + +class NodeExecutionGetDataRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class NodeExecutionGetDataResponse(_message.Message): + __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "dynamic_workflow", "flyte_urls"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] + inputs: _common_pb2.UrlBlob + outputs: _common_pb2.UrlBlob + full_inputs: _literals_pb2.LiteralMap + full_outputs: _literals_pb2.LiteralMap + dynamic_workflow: DynamicWorkflowNodeMetadata + flyte_urls: _common_pb2.FlyteURLs + def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... + +class GetDynamicNodeWorkflowRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class DynamicNodeWorkflowResponse(_message.Message): + __slots__ = ["compiled_workflow"] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + def __init__(self, compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py new file mode 100644 index 0000000000..5f247002e5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/notification.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/admin/notification.proto\x12\x0e\x66lyteidl.admin\"\x93\x01\n\x0c\x45mailMessage\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\x12!\n\x0csender_email\x18\x02 \x01(\tR\x0bsenderEmail\x12!\n\x0csubject_line\x18\x03 \x01(\tR\x0bsubjectLine\x12\x12\n\x04\x62ody\x18\x04 \x01(\tR\x04\x62odyB\xbd\x01\n\x12\x63om.flyteidl.adminB\x11NotificationProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.notification_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\021NotificationProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_EMAILMESSAGE']._serialized_start=54 + _globals['_EMAILMESSAGE']._serialized_end=201 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi new file mode 100644 index 0000000000..5a06a72f34 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi @@ -0,0 +1,18 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class EmailMessage(_message.Message): + __slots__ = ["recipients_email", "sender_email", "subject_line", "body"] + RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] + SENDER_EMAIL_FIELD_NUMBER: _ClassVar[int] + SUBJECT_LINE_FIELD_NUMBER: _ClassVar[int] + BODY_FIELD_NUMBER: _ClassVar[int] + recipients_email: _containers.RepeatedScalarFieldContainer[str] + sender_email: str + subject_line: str + body: str + def __init__(self, recipients_email: _Optional[_Iterable[str]] = ..., sender_email: _Optional[str] = ..., subject_line: _Optional[str] = ..., body: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py new file mode 100644 index 0000000000..46808ec536 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project_attributes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/project_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\x94\x01\n\x11ProjectAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12S\n\x13matching_attributes\x18\x02 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\x12\x10\n\x03org\x18\x03 \x01(\tR\x03org\"c\n\x1eProjectAttributesUpdateRequest\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"!\n\x1fProjectAttributesUpdateResponse\"\x91\x01\n\x1bProjectAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x03 \x01(\tR\x03org\"a\n\x1cProjectAttributesGetResponse\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"\x94\x01\n\x1eProjectAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x03 \x01(\tR\x03org\"!\n\x1fProjectAttributesDeleteResponseB\xc2\x01\n\x12\x63om.flyteidl.adminB\x16ProjectAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_attributes_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ProjectAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_PROJECTATTRIBUTES']._serialized_start=101 + _globals['_PROJECTATTRIBUTES']._serialized_end=249 + _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_start=251 + _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_end=350 + _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_start=352 + _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_end=385 + _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_start=388 + _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_end=533 + _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_start=535 + _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_end=632 + _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_start=635 + _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_end=783 + _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_start=785 + _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_end=818 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi new file mode 100644 index 0000000000..6581a30a15 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi @@ -0,0 +1,56 @@ +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ProjectAttributes(_message.Message): + __slots__ = ["project", "matching_attributes", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + matching_attributes: _matchable_resource_pb2.MatchingAttributes + org: str + def __init__(self, project: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectAttributesUpdateRequest(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectAttributes + def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... + +class ProjectAttributesUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ProjectAttributesGetRequest(_message.Message): + __slots__ = ["project", "resource_type", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + resource_type: _matchable_resource_pb2.MatchableResource + org: str + def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectAttributesGetResponse(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectAttributes + def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... + +class ProjectAttributesDeleteRequest(_message.Message): + __slots__ = ["project", "resource_type", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + resource_type: _matchable_resource_pb2.MatchableResource + org: str + def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectAttributesDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py new file mode 100644 index 0000000000..3d80159af4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project_domain_attributes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/admin/project_domain_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xb2\x01\n\x17ProjectDomainAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12S\n\x13matching_attributes\x18\x03 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"o\n$ProjectDomainAttributesUpdateRequest\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\'\n%ProjectDomainAttributesUpdateResponse\"\xaf\x01\n!ProjectDomainAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"m\n\"ProjectDomainAttributesGetResponse\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\xb2\x01\n$ProjectDomainAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"\'\n%ProjectDomainAttributesDeleteResponseB\xc8\x01\n\x12\x63om.flyteidl.adminB\x1cProjectDomainAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_domain_attributes_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\034ProjectDomainAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_PROJECTDOMAINATTRIBUTES']._serialized_start=108 + _globals['_PROJECTDOMAINATTRIBUTES']._serialized_end=286 + _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_start=288 + _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_end=399 + _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_start=401 + _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_end=440 + _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_start=443 + _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_end=618 + _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_start=620 + _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_end=729 + _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_start=732 + _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_end=910 + _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_start=912 + _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_end=951 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi new file mode 100644 index 0000000000..40a7a38bc7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi @@ -0,0 +1,62 @@ +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ProjectDomainAttributes(_message.Message): + __slots__ = ["project", "domain", "matching_attributes", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + matching_attributes: _matchable_resource_pb2.MatchingAttributes + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectDomainAttributesUpdateRequest(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectDomainAttributes + def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... + +class ProjectDomainAttributesUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ProjectDomainAttributesGetRequest(_message.Message): + __slots__ = ["project", "domain", "resource_type", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + resource_type: _matchable_resource_pb2.MatchableResource + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectDomainAttributesGetResponse(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: ProjectDomainAttributes + def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... + +class ProjectDomainAttributesDeleteRequest(_message.Message): + __slots__ = ["project", "domain", "resource_type", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + resource_type: _matchable_resource_pb2.MatchableResource + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectDomainAttributesDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py new file mode 100644 index 0000000000..d0b442e3a5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/project.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/project.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\",\n\x06\x44omain\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\xbf\x02\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x30\n\x07\x64omains\x18\x03 \x03(\x0b\x32\x16.flyteidl.admin.DomainR\x07\x64omains\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12.\n\x06labels\x18\x05 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12:\n\x05state\x18\x06 \x01(\x0e\x32$.flyteidl.admin.Project.ProjectStateR\x05state\x12\x10\n\x03org\x18\x07 \x01(\tR\x03org\">\n\x0cProjectState\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x41RCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\"U\n\x08Projects\x12\x33\n\x08projects\x18\x01 \x03(\x0b\x32\x17.flyteidl.admin.ProjectR\x08projects\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x9b\x01\n\x12ProjectListRequest\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x03 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x04 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"K\n\x16ProjectRegisterRequest\x12\x31\n\x07project\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.ProjectR\x07project\"\x19\n\x17ProjectRegisterResponse\"\x17\n\x15ProjectUpdateResponseB\xb8\x01\n\x12\x63om.flyteidl.adminB\x0cProjectProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014ProjectProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_DOMAIN']._serialized_start=77 + _globals['_DOMAIN']._serialized_end=121 + _globals['_PROJECT']._serialized_start=124 + _globals['_PROJECT']._serialized_end=443 + _globals['_PROJECT_PROJECTSTATE']._serialized_start=381 + _globals['_PROJECT_PROJECTSTATE']._serialized_end=443 + _globals['_PROJECTS']._serialized_start=445 + _globals['_PROJECTS']._serialized_end=530 + _globals['_PROJECTLISTREQUEST']._serialized_start=533 + _globals['_PROJECTLISTREQUEST']._serialized_end=688 + _globals['_PROJECTREGISTERREQUEST']._serialized_start=690 + _globals['_PROJECTREGISTERREQUEST']._serialized_end=765 + _globals['_PROJECTREGISTERRESPONSE']._serialized_start=767 + _globals['_PROJECTREGISTERRESPONSE']._serialized_end=792 + _globals['_PROJECTUPDATERESPONSE']._serialized_start=794 + _globals['_PROJECTUPDATERESPONSE']._serialized_end=817 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi new file mode 100644 index 0000000000..1379fa3c0c --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi @@ -0,0 +1,78 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Domain(_message.Message): + __slots__ = ["id", "name"] + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + id: str + name: str + def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... + +class Project(_message.Message): + __slots__ = ["id", "name", "domains", "description", "labels", "state", "org"] + class ProjectState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ACTIVE: _ClassVar[Project.ProjectState] + ARCHIVED: _ClassVar[Project.ProjectState] + SYSTEM_GENERATED: _ClassVar[Project.ProjectState] + ACTIVE: Project.ProjectState + ARCHIVED: Project.ProjectState + SYSTEM_GENERATED: Project.ProjectState + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DOMAINS_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + LABELS_FIELD_NUMBER: _ClassVar[int] + STATE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + id: str + name: str + domains: _containers.RepeatedCompositeFieldContainer[Domain] + description: str + labels: _common_pb2.Labels + state: Project.ProjectState + org: str + def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., domains: _Optional[_Iterable[_Union[Domain, _Mapping]]] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., state: _Optional[_Union[Project.ProjectState, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class Projects(_message.Message): + __slots__ = ["projects", "token"] + PROJECTS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + projects: _containers.RepeatedCompositeFieldContainer[Project] + token: str + def __init__(self, projects: _Optional[_Iterable[_Union[Project, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class ProjectListRequest(_message.Message): + __slots__ = ["limit", "token", "filters", "sort_by", "org"] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + org: str + def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... + +class ProjectRegisterRequest(_message.Message): + __slots__ = ["project"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + project: Project + def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ...) -> None: ... + +class ProjectRegisterResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ProjectUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py new file mode 100644 index 0000000000..42af3da7a2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/schedule.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/schedule.proto\x12\x0e\x66lyteidl.admin\"T\n\tFixedRate\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\x12\x31\n\x04unit\x18\x02 \x01(\x0e\x32\x1d.flyteidl.admin.FixedRateUnitR\x04unit\"B\n\x0c\x43ronSchedule\x12\x1a\n\x08schedule\x18\x01 \x01(\tR\x08schedule\x12\x16\n\x06offset\x18\x02 \x01(\tR\x06offset\"\xfa\x01\n\x08Schedule\x12-\n\x0f\x63ron_expression\x18\x01 \x01(\tB\x02\x18\x01H\x00R\x0e\x63ronExpression\x12/\n\x04rate\x18\x02 \x01(\x0b\x32\x19.flyteidl.admin.FixedRateH\x00R\x04rate\x12\x43\n\rcron_schedule\x18\x04 \x01(\x0b\x32\x1c.flyteidl.admin.CronScheduleH\x00R\x0c\x63ronSchedule\x12\x33\n\x16kickoff_time_input_arg\x18\x03 \x01(\tR\x13kickoffTimeInputArgB\x14\n\x12ScheduleExpression*.\n\rFixedRateUnit\x12\n\n\x06MINUTE\x10\x00\x12\x08\n\x04HOUR\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x42\xb9\x01\n\x12\x63om.flyteidl.adminB\rScheduleProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.schedule_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rScheduleProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _SCHEDULE.fields_by_name['cron_expression']._options = None + _SCHEDULE.fields_by_name['cron_expression']._serialized_options = b'\030\001' + _globals['_FIXEDRATEUNIT']._serialized_start=456 + _globals['_FIXEDRATEUNIT']._serialized_end=502 + _globals['_FIXEDRATE']._serialized_start=49 + _globals['_FIXEDRATE']._serialized_end=133 + _globals['_CRONSCHEDULE']._serialized_start=135 + _globals['_CRONSCHEDULE']._serialized_end=201 + _globals['_SCHEDULE']._serialized_start=204 + _globals['_SCHEDULE']._serialized_end=454 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi new file mode 100644 index 0000000000..a9f1a2d133 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi @@ -0,0 +1,43 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class FixedRateUnit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + MINUTE: _ClassVar[FixedRateUnit] + HOUR: _ClassVar[FixedRateUnit] + DAY: _ClassVar[FixedRateUnit] +MINUTE: FixedRateUnit +HOUR: FixedRateUnit +DAY: FixedRateUnit + +class FixedRate(_message.Message): + __slots__ = ["value", "unit"] + VALUE_FIELD_NUMBER: _ClassVar[int] + UNIT_FIELD_NUMBER: _ClassVar[int] + value: int + unit: FixedRateUnit + def __init__(self, value: _Optional[int] = ..., unit: _Optional[_Union[FixedRateUnit, str]] = ...) -> None: ... + +class CronSchedule(_message.Message): + __slots__ = ["schedule", "offset"] + SCHEDULE_FIELD_NUMBER: _ClassVar[int] + OFFSET_FIELD_NUMBER: _ClassVar[int] + schedule: str + offset: str + def __init__(self, schedule: _Optional[str] = ..., offset: _Optional[str] = ...) -> None: ... + +class Schedule(_message.Message): + __slots__ = ["cron_expression", "rate", "cron_schedule", "kickoff_time_input_arg"] + CRON_EXPRESSION_FIELD_NUMBER: _ClassVar[int] + RATE_FIELD_NUMBER: _ClassVar[int] + CRON_SCHEDULE_FIELD_NUMBER: _ClassVar[int] + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER: _ClassVar[int] + cron_expression: str + rate: FixedRate + cron_schedule: CronSchedule + kickoff_time_input_arg: str + def __init__(self, cron_expression: _Optional[str] = ..., rate: _Optional[_Union[FixedRate, _Mapping]] = ..., cron_schedule: _Optional[_Union[CronSchedule, _Mapping]] = ..., kickoff_time_input_arg: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py new file mode 100644 index 0000000000..be296a4ae8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/signal.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/signal.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\"{\n\x18SignalGetOrCreateRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"\xe8\x01\n\x11SignalListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"T\n\nSignalList\x12\x30\n\x07signals\x18\x01 \x03(\x0b\x32\x16.flyteidl.admin.SignalR\x07signals\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"q\n\x10SignalSetRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"\x13\n\x11SignalSetResponse\"\x97\x01\n\x06Signal\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12,\n\x05value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05valueB\xb7\x01\n\x12\x63om.flyteidl.adminB\x0bSignalProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.signal_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013SignalProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_SIGNALGETORCREATEREQUEST']._serialized_start=165 + _globals['_SIGNALGETORCREATEREQUEST']._serialized_end=288 + _globals['_SIGNALLISTREQUEST']._serialized_start=291 + _globals['_SIGNALLISTREQUEST']._serialized_end=523 + _globals['_SIGNALLIST']._serialized_start=525 + _globals['_SIGNALLIST']._serialized_end=609 + _globals['_SIGNALSETREQUEST']._serialized_start=611 + _globals['_SIGNALSETREQUEST']._serialized_end=724 + _globals['_SIGNALSETRESPONSE']._serialized_start=726 + _globals['_SIGNALSETRESPONSE']._serialized_end=745 + _globals['_SIGNAL']._serialized_start=748 + _globals['_SIGNAL']._serialized_end=899 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi new file mode 100644 index 0000000000..8dfac31435 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi @@ -0,0 +1,62 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import types_pb2 as _types_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class SignalGetOrCreateRequest(_message.Message): + __slots__ = ["id", "type"] + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.SignalIdentifier + type: _types_pb2.LiteralType + def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... + +class SignalListRequest(_message.Message): + __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by"] + WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class SignalList(_message.Message): + __slots__ = ["signals", "token"] + SIGNALS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + signals: _containers.RepeatedCompositeFieldContainer[Signal] + token: str + def __init__(self, signals: _Optional[_Iterable[_Union[Signal, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class SignalSetRequest(_message.Message): + __slots__ = ["id", "value"] + ID_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.SignalIdentifier + value: _literals_pb2.Literal + def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... + +class SignalSetResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Signal(_message.Message): + __slots__ = ["id", "type", "value"] + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.SignalIdentifier + type: _types_pb2.LiteralType + value: _literals_pb2.Literal + def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py new file mode 100644 index 0000000000..226866f72d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/task_execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/task_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"Q\n\x17TaskExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xe3\x01\n\x18TaskExecutionListRequest\x12R\n\x11node_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xc1\x01\n\rTaskExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.TaskExecutionClosureR\x07\x63losure\x12\x1b\n\tis_parent\x18\x04 \x01(\x08R\x08isParent\"q\n\x11TaskExecutionList\x12\x46\n\x0ftask_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.TaskExecutionR\x0etaskExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x9c\x06\n\x14TaskExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\x0c \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12*\n\x04logs\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x38\n\x0b\x63ustom_info\x18\t \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12\x16\n\x06reason\x18\n \x01(\tR\x06reason\x12\x1b\n\ttask_type\x18\x0b \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x11 \x01(\x05R\x0c\x65ventVersion\x12\x30\n\x07reasons\x18\x12 \x03(\x0b\x32\x16.flyteidl.admin.ReasonR\x07reasonsB\x0f\n\routput_result\"_\n\x06Reason\x12;\n\x0boccurred_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"U\n\x1bTaskExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xbe\x02\n\x1cTaskExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12\x38\n\nflyte_urls\x18\x05 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrlsB\xbe\x01\n\x12\x63om.flyteidl.adminB\x12TaskExecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022TaskExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None + _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' + _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._options = None + _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None + _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' + _globals['_TASKEXECUTIONGETREQUEST']._serialized_start=300 + _globals['_TASKEXECUTIONGETREQUEST']._serialized_end=381 + _globals['_TASKEXECUTIONLISTREQUEST']._serialized_start=384 + _globals['_TASKEXECUTIONLISTREQUEST']._serialized_end=611 + _globals['_TASKEXECUTION']._serialized_start=614 + _globals['_TASKEXECUTION']._serialized_end=807 + _globals['_TASKEXECUTIONLIST']._serialized_start=809 + _globals['_TASKEXECUTIONLIST']._serialized_end=922 + _globals['_TASKEXECUTIONCLOSURE']._serialized_start=925 + _globals['_TASKEXECUTIONCLOSURE']._serialized_end=1721 + _globals['_REASON']._serialized_start=1723 + _globals['_REASON']._serialized_end=1818 + _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_start=1820 + _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_end=1905 + _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_start=1908 + _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_end=2226 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi new file mode 100644 index 0000000000..7f675cc7db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi @@ -0,0 +1,116 @@ +from flyteidl.admin import common_pb2 as _common_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.event import event_pb2 as _event_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class TaskExecutionGetRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskExecutionListRequest(_message.Message): + __slots__ = ["node_execution_id", "limit", "token", "filters", "sort_by"] + NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + FILTERS_FIELD_NUMBER: _ClassVar[int] + SORT_BY_FIELD_NUMBER: _ClassVar[int] + node_execution_id: _identifier_pb2.NodeExecutionIdentifier + limit: int + token: str + filters: str + sort_by: _common_pb2.Sort + def __init__(self, node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... + +class TaskExecution(_message.Message): + __slots__ = ["id", "input_uri", "closure", "is_parent"] + ID_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + IS_PARENT_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + input_uri: str + closure: TaskExecutionClosure + is_parent: bool + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[TaskExecutionClosure, _Mapping]] = ..., is_parent: bool = ...) -> None: ... + +class TaskExecutionList(_message.Message): + __slots__ = ["task_executions", "token"] + TASK_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + task_executions: _containers.RepeatedCompositeFieldContainer[TaskExecution] + token: str + def __init__(self, task_executions: _Optional[_Iterable[_Union[TaskExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class TaskExecutionClosure(_message.Message): + __slots__ = ["output_uri", "error", "output_data", "phase", "logs", "started_at", "duration", "created_at", "updated_at", "custom_info", "reason", "task_type", "metadata", "event_version", "reasons"] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + LOGS_FIELD_NUMBER: _ClassVar[int] + STARTED_AT_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + UPDATED_AT_FIELD_NUMBER: _ClassVar[int] + CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] + REASON_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] + REASONS_FIELD_NUMBER: _ClassVar[int] + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + phase: _execution_pb2.TaskExecution.Phase + logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + started_at: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + created_at: _timestamp_pb2.Timestamp + updated_at: _timestamp_pb2.Timestamp + custom_info: _struct_pb2.Struct + reason: str + task_type: str + metadata: _event_pb2.TaskExecutionMetadata + event_version: int + reasons: _containers.RepeatedCompositeFieldContainer[Reason] + def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., reason: _Optional[str] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[_event_pb2.TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reasons: _Optional[_Iterable[_Union[Reason, _Mapping]]] = ...) -> None: ... + +class Reason(_message.Message): + __slots__ = ["occurred_at", "message"] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + occurred_at: _timestamp_pb2.Timestamp + message: str + def __init__(self, occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ...) -> None: ... + +class TaskExecutionGetDataRequest(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskExecutionGetDataResponse(_message.Message): + __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "flyte_urls"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] + FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] + inputs: _common_pb2.UrlBlob + outputs: _common_pb2.UrlBlob + full_inputs: _literals_pb2.LiteralMap + full_outputs: _literals_pb2.LiteralMap + flyte_urls: _common_pb2.FlyteURLs + def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py new file mode 100644 index 0000000000..97dc00dfef --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/task.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/admin/task.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\x11TaskCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12,\n\x04spec\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.TaskSpecR\x04spec\"\x14\n\x12TaskCreateResponse\"\x95\x01\n\x04Task\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1b.flyteidl.admin.TaskClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"L\n\x08TaskList\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x14.flyteidl.admin.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x88\x01\n\x08TaskSpec\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12\x43\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\x8a\x01\n\x0bTaskClosure\x12@\n\rcompiled_task\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x0c\x63ompiledTask\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAtB\xb5\x01\n\x12\x63om.flyteidl.adminB\tTaskProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\tTaskProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_TASKCREATEREQUEST']._serialized_start=208 + _globals['_TASKCREATEREQUEST']._serialized_end=316 + _globals['_TASKCREATERESPONSE']._serialized_start=318 + _globals['_TASKCREATERESPONSE']._serialized_end=338 + _globals['_TASK']._serialized_start=341 + _globals['_TASK']._serialized_end=490 + _globals['_TASKLIST']._serialized_start=492 + _globals['_TASKLIST']._serialized_end=568 + _globals['_TASKSPEC']._serialized_start=571 + _globals['_TASKSPEC']._serialized_end=707 + _globals['_TASKCLOSURE']._serialized_start=710 + _globals['_TASKCLOSURE']._serialized_end=848 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi new file mode 100644 index 0000000000..2e6370fba5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi @@ -0,0 +1,57 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class TaskCreateRequest(_message.Message): + __slots__ = ["id", "spec"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: TaskSpec + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[TaskSpec, _Mapping]] = ...) -> None: ... + +class TaskCreateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Task(_message.Message): + __slots__ = ["id", "closure", "short_description"] + ID_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + closure: TaskClosure + short_description: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[TaskClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... + +class TaskList(_message.Message): + __slots__ = ["tasks", "token"] + TASKS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + tasks: _containers.RepeatedCompositeFieldContainer[Task] + token: str + def __init__(self, tasks: _Optional[_Iterable[_Union[Task, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class TaskSpec(_message.Message): + __slots__ = ["template", "description"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + template: _tasks_pb2.TaskTemplate + description: _description_entity_pb2.DescriptionEntity + def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... + +class TaskClosure(_message.Message): + __slots__ = ["compiled_task", "created_at"] + COMPILED_TASK_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + compiled_task: _compiler_pb2.CompiledTask + created_at: _timestamp_pb2.Timestamp + def __init__(self, compiled_task: _Optional[_Union[_compiler_pb2.CompiledTask, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py new file mode 100644 index 0000000000..bcdc4a9ea0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/version.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/version.proto\x12\x0e\x66lyteidl.admin\"a\n\x12GetVersionResponse\x12K\n\x15\x63ontrol_plane_version\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.VersionR\x13\x63ontrolPlaneVersion\"W\n\x07Version\x12\x14\n\x05\x42uild\x18\x01 \x01(\tR\x05\x42uild\x12\x18\n\x07Version\x18\x02 \x01(\tR\x07Version\x12\x1c\n\tBuildTime\x18\x03 \x01(\tR\tBuildTime\"\x13\n\x11GetVersionRequestB\xb8\x01\n\x12\x63om.flyteidl.adminB\x0cVersionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.version_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014VersionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_GETVERSIONRESPONSE']._serialized_start=48 + _globals['_GETVERSIONRESPONSE']._serialized_end=145 + _globals['_VERSION']._serialized_start=147 + _globals['_VERSION']._serialized_end=234 + _globals['_GETVERSIONREQUEST']._serialized_start=236 + _globals['_GETVERSIONREQUEST']._serialized_end=255 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi new file mode 100644 index 0000000000..a83d0baa8f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi @@ -0,0 +1,25 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class GetVersionResponse(_message.Message): + __slots__ = ["control_plane_version"] + CONTROL_PLANE_VERSION_FIELD_NUMBER: _ClassVar[int] + control_plane_version: Version + def __init__(self, control_plane_version: _Optional[_Union[Version, _Mapping]] = ...) -> None: ... + +class Version(_message.Message): + __slots__ = ["Build", "Version", "BuildTime"] + BUILD_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + BUILDTIME_FIELD_NUMBER: _ClassVar[int] + Build: str + Version: str + BuildTime: str + def __init__(self, Build: _Optional[str] = ..., Version: _Optional[str] = ..., BuildTime: _Optional[str] = ...) -> None: ... + +class GetVersionRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py new file mode 100644 index 0000000000..1a8ee5c48e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/workflow_attributes.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(flyteidl/admin/workflow_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xc9\x01\n\x12WorkflowAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12S\n\x13matching_attributes\x18\x04 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"e\n\x1fWorkflowAttributesUpdateRequest\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\"\n WorkflowAttributesUpdateResponse\"\xc6\x01\n\x1cWorkflowAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"c\n\x1dWorkflowAttributesGetResponse\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\xc9\x01\n\x1fWorkflowAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"\"\n WorkflowAttributesDeleteResponseB\xc3\x01\n\x12\x63om.flyteidl.adminB\x17WorkflowAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_attributes_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\027WorkflowAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_WORKFLOWATTRIBUTES']._serialized_start=102 + _globals['_WORKFLOWATTRIBUTES']._serialized_end=303 + _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_start=305 + _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_end=406 + _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_start=408 + _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_end=442 + _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_start=445 + _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_end=643 + _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_start=645 + _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_end=744 + _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_start=747 + _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_end=948 + _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_start=950 + _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_end=984 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi new file mode 100644 index 0000000000..57c7d80c80 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi @@ -0,0 +1,68 @@ +from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowAttributes(_message.Message): + __slots__ = ["project", "domain", "workflow", "matching_attributes", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + workflow: str + matching_attributes: _matchable_resource_pb2.MatchingAttributes + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ..., org: _Optional[str] = ...) -> None: ... + +class WorkflowAttributesUpdateRequest(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: WorkflowAttributes + def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... + +class WorkflowAttributesUpdateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class WorkflowAttributesGetRequest(_message.Message): + __slots__ = ["project", "domain", "workflow", "resource_type", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + workflow: str + resource_type: _matchable_resource_pb2.MatchableResource + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class WorkflowAttributesGetResponse(_message.Message): + __slots__ = ["attributes"] + ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] + attributes: WorkflowAttributes + def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... + +class WorkflowAttributesDeleteRequest(_message.Message): + __slots__ = ["project", "domain", "workflow", "resource_type", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + workflow: str + resource_type: _matchable_resource_pb2.MatchableResource + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ..., org: _Optional[str] = ...) -> None: ... + +class WorkflowAttributesDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py new file mode 100644 index 0000000000..360e634029 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/admin/workflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/workflow.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x15WorkflowCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x30\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpecR\x04spec\"\x18\n\x16WorkflowCreateResponse\"\x9d\x01\n\x08Workflow\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x39\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"\\\n\x0cWorkflowList\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.WorkflowR\tworkflows\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xd6\x01\n\x0cWorkflowSpec\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubWorkflows\x12\x43\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\xa1\x01\n\x0fWorkflowClosure\x12S\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"R\n%WorkflowErrorExistsDifferentStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"R\n%WorkflowErrorExistsIdenticalStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\x95\x02\n\x1b\x43reateWorkflowFailureReason\x12u\n\x1a\x65xists_different_structure\x18\x01 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsDifferentStructureH\x00R\x18\x65xistsDifferentStructure\x12u\n\x1a\x65xists_identical_structure\x18\x02 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsIdenticalStructureH\x00R\x18\x65xistsIdenticalStructureB\x08\n\x06reasonB\xb9\x01\n\x12\x63om.flyteidl.adminB\rWorkflowProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rWorkflowProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' + _globals['_WORKFLOWCREATEREQUEST']._serialized_start=215 + _globals['_WORKFLOWCREATEREQUEST']._serialized_end=331 + _globals['_WORKFLOWCREATERESPONSE']._serialized_start=333 + _globals['_WORKFLOWCREATERESPONSE']._serialized_end=357 + _globals['_WORKFLOW']._serialized_start=360 + _globals['_WORKFLOW']._serialized_end=517 + _globals['_WORKFLOWLIST']._serialized_start=519 + _globals['_WORKFLOWLIST']._serialized_end=611 + _globals['_WORKFLOWSPEC']._serialized_start=614 + _globals['_WORKFLOWSPEC']._serialized_end=828 + _globals['_WORKFLOWCLOSURE']._serialized_start=831 + _globals['_WORKFLOWCLOSURE']._serialized_end=992 + _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_start=994 + _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_end=1076 + _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_start=1078 + _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_end=1160 + _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_start=1163 + _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_end=1440 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi new file mode 100644 index 0000000000..294d595855 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi @@ -0,0 +1,79 @@ +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowCreateRequest(_message.Message): + __slots__ = ["id", "spec"] + ID_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + spec: WorkflowSpec + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[WorkflowSpec, _Mapping]] = ...) -> None: ... + +class WorkflowCreateResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Workflow(_message.Message): + __slots__ = ["id", "closure", "short_description"] + ID_FIELD_NUMBER: _ClassVar[int] + CLOSURE_FIELD_NUMBER: _ClassVar[int] + SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + closure: WorkflowClosure + short_description: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[WorkflowClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... + +class WorkflowList(_message.Message): + __slots__ = ["workflows", "token"] + WORKFLOWS_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + workflows: _containers.RepeatedCompositeFieldContainer[Workflow] + token: str + def __init__(self, workflows: _Optional[_Iterable[_Union[Workflow, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... + +class WorkflowSpec(_message.Message): + __slots__ = ["template", "sub_workflows", "description"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + template: _workflow_pb2.WorkflowTemplate + sub_workflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] + description: _description_entity_pb2.DescriptionEntity + def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... + +class WorkflowClosure(_message.Message): + __slots__ = ["compiled_workflow", "created_at"] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + created_at: _timestamp_pb2.Timestamp + def __init__(self, compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class WorkflowErrorExistsDifferentStructure(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class WorkflowErrorExistsIdenticalStructure(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class CreateWorkflowFailureReason(_message.Message): + __slots__ = ["exists_different_structure", "exists_identical_structure"] + EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER: _ClassVar[int] + EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER: _ClassVar[int] + exists_different_structure: WorkflowErrorExistsDifferentStructure + exists_identical_structure: WorkflowErrorExistsIdenticalStructure + def __init__(self, exists_different_structure: _Optional[_Union[WorkflowErrorExistsDifferentStructure, _Mapping]] = ..., exists_identical_structure: _Optional[_Union[WorkflowErrorExistsIdenticalStructure, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/__init__.py b/flyteidl/gen/pb_python/flyteidl/core/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py new file mode 100644 index 0000000000..06e8ff7f81 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/artifact_id.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/artifact_id.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"e\n\x0b\x41rtifactKey\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x10\n\x03org\x18\x04 \x01(\tR\x03org\"\xb9\x01\n\x13\x41rtifactBindingData\x12\x14\n\x05index\x18\x01 \x01(\rR\x05index\x12%\n\rpartition_key\x18\x02 \x01(\tH\x00R\x0cpartitionKey\x12\x35\n\x16\x62ind_to_time_partition\x18\x03 \x01(\x08H\x00R\x13\x62indToTimePartition\x12\x1c\n\ttransform\x18\x04 \x01(\tR\ttransformB\x10\n\x0epartition_data\"$\n\x10InputBindingData\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\"\x92\x02\n\nLabelValue\x12#\n\x0cstatic_value\x18\x01 \x01(\tH\x00R\x0bstaticValue\x12;\n\ntime_value\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\ttimeValue\x12Q\n\x11triggered_binding\x18\x03 \x01(\x0b\x32\".flyteidl.core.ArtifactBindingDataH\x00R\x10triggeredBinding\x12\x46\n\rinput_binding\x18\x04 \x01(\x0b\x32\x1f.flyteidl.core.InputBindingDataH\x00R\x0cinputBindingB\x07\n\x05value\"\x9d\x01\n\nPartitions\x12:\n\x05value\x18\x01 \x03(\x0b\x32$.flyteidl.core.Partitions.ValueEntryR\x05value\x1aS\n\nValueEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value:\x02\x38\x01\"@\n\rTimePartition\x12/\n\x05value\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value\"\xe5\x01\n\nArtifactID\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x39\n\npartitions\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.PartitionsR\npartitions\x12\x43\n\x0etime_partition\x18\x04 \x01(\x0b\x32\x1c.flyteidl.core.TimePartitionR\rtimePartition\"}\n\x0b\x41rtifactTag\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value\"\xf0\x01\n\rArtifactQuery\x12<\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDH\x00R\nartifactId\x12?\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactTagH\x00R\x0b\x61rtifactTag\x12\x12\n\x03uri\x18\x03 \x01(\tH\x00R\x03uri\x12>\n\x07\x62inding\x18\x04 \x01(\x0b\x32\".flyteidl.core.ArtifactBindingDataH\x00R\x07\x62indingB\x0c\n\nidentifierB\xb5\x01\n\x11\x63om.flyteidl.coreB\x0f\x41rtifactIdProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.artifact_id_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017ArtifactIdProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _PARTITIONS_VALUEENTRY._options = None + _PARTITIONS_VALUEENTRY._serialized_options = b'8\001' + _globals['_ARTIFACTKEY']._serialized_start=115 + _globals['_ARTIFACTKEY']._serialized_end=216 + _globals['_ARTIFACTBINDINGDATA']._serialized_start=219 + _globals['_ARTIFACTBINDINGDATA']._serialized_end=404 + _globals['_INPUTBINDINGDATA']._serialized_start=406 + _globals['_INPUTBINDINGDATA']._serialized_end=442 + _globals['_LABELVALUE']._serialized_start=445 + _globals['_LABELVALUE']._serialized_end=719 + _globals['_PARTITIONS']._serialized_start=722 + _globals['_PARTITIONS']._serialized_end=879 + _globals['_PARTITIONS_VALUEENTRY']._serialized_start=796 + _globals['_PARTITIONS_VALUEENTRY']._serialized_end=879 + _globals['_TIMEPARTITION']._serialized_start=881 + _globals['_TIMEPARTITION']._serialized_end=945 + _globals['_ARTIFACTID']._serialized_start=948 + _globals['_ARTIFACTID']._serialized_end=1177 + _globals['_ARTIFACTTAG']._serialized_start=1179 + _globals['_ARTIFACTTAG']._serialized_end=1304 + _globals['_ARTIFACTQUERY']._serialized_start=1307 + _globals['_ARTIFACTQUERY']._serialized_end=1547 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi new file mode 100644 index 0000000000..5eacdbb52f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi @@ -0,0 +1,101 @@ +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ArtifactKey(_message.Message): + __slots__ = ["project", "domain", "name", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class ArtifactBindingData(_message.Message): + __slots__ = ["index", "partition_key", "bind_to_time_partition", "transform"] + INDEX_FIELD_NUMBER: _ClassVar[int] + PARTITION_KEY_FIELD_NUMBER: _ClassVar[int] + BIND_TO_TIME_PARTITION_FIELD_NUMBER: _ClassVar[int] + TRANSFORM_FIELD_NUMBER: _ClassVar[int] + index: int + partition_key: str + bind_to_time_partition: bool + transform: str + def __init__(self, index: _Optional[int] = ..., partition_key: _Optional[str] = ..., bind_to_time_partition: bool = ..., transform: _Optional[str] = ...) -> None: ... + +class InputBindingData(_message.Message): + __slots__ = ["var"] + VAR_FIELD_NUMBER: _ClassVar[int] + var: str + def __init__(self, var: _Optional[str] = ...) -> None: ... + +class LabelValue(_message.Message): + __slots__ = ["static_value", "time_value", "triggered_binding", "input_binding"] + STATIC_VALUE_FIELD_NUMBER: _ClassVar[int] + TIME_VALUE_FIELD_NUMBER: _ClassVar[int] + TRIGGERED_BINDING_FIELD_NUMBER: _ClassVar[int] + INPUT_BINDING_FIELD_NUMBER: _ClassVar[int] + static_value: str + time_value: _timestamp_pb2.Timestamp + triggered_binding: ArtifactBindingData + input_binding: InputBindingData + def __init__(self, static_value: _Optional[str] = ..., time_value: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., triggered_binding: _Optional[_Union[ArtifactBindingData, _Mapping]] = ..., input_binding: _Optional[_Union[InputBindingData, _Mapping]] = ...) -> None: ... + +class Partitions(_message.Message): + __slots__ = ["value"] + class ValueEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: LabelValue + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... + VALUE_FIELD_NUMBER: _ClassVar[int] + value: _containers.MessageMap[str, LabelValue] + def __init__(self, value: _Optional[_Mapping[str, LabelValue]] = ...) -> None: ... + +class TimePartition(_message.Message): + __slots__ = ["value"] + VALUE_FIELD_NUMBER: _ClassVar[int] + value: LabelValue + def __init__(self, value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... + +class ArtifactID(_message.Message): + __slots__ = ["artifact_key", "version", "partitions", "time_partition"] + ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + TIME_PARTITION_FIELD_NUMBER: _ClassVar[int] + artifact_key: ArtifactKey + version: str + partitions: Partitions + time_partition: TimePartition + def __init__(self, artifact_key: _Optional[_Union[ArtifactKey, _Mapping]] = ..., version: _Optional[str] = ..., partitions: _Optional[_Union[Partitions, _Mapping]] = ..., time_partition: _Optional[_Union[TimePartition, _Mapping]] = ...) -> None: ... + +class ArtifactTag(_message.Message): + __slots__ = ["artifact_key", "value"] + ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + artifact_key: ArtifactKey + value: LabelValue + def __init__(self, artifact_key: _Optional[_Union[ArtifactKey, _Mapping]] = ..., value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... + +class ArtifactQuery(_message.Message): + __slots__ = ["artifact_id", "artifact_tag", "uri", "binding"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + BINDING_FIELD_NUMBER: _ClassVar[int] + artifact_id: ArtifactID + artifact_tag: ArtifactTag + uri: str + binding: ArtifactBindingData + def __init__(self, artifact_id: _Optional[_Union[ArtifactID, _Mapping]] = ..., artifact_tag: _Optional[_Union[ArtifactTag, _Mapping]] = ..., uri: _Optional[str] = ..., binding: _Optional[_Union[ArtifactBindingData, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py new file mode 100644 index 0000000000..2635c044db --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/catalog.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/catalog.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\"I\n\x12\x43\x61talogArtifactTag\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\x83\x02\n\x0f\x43\x61talogMetadata\x12\x38\n\ndataset_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\tdatasetId\x12\x44\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32!.flyteidl.core.CatalogArtifactTagR\x0b\x61rtifactTag\x12\\\n\x15source_task_execution\x18\x03 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x13sourceTaskExecutionB\x12\n\x10source_execution\"\x9e\x01\n\x12\x43\x61talogReservation\"\x87\x01\n\x06Status\x12\x18\n\x14RESERVATION_DISABLED\x10\x00\x12\x18\n\x14RESERVATION_ACQUIRED\x10\x01\x12\x16\n\x12RESERVATION_EXISTS\x10\x02\x12\x18\n\x14RESERVATION_RELEASED\x10\x03\x12\x17\n\x13RESERVATION_FAILURE\x10\x04*\xb3\x01\n\x12\x43\x61talogCacheStatus\x12\x12\n\x0e\x43\x41\x43HE_DISABLED\x10\x00\x12\x0e\n\nCACHE_MISS\x10\x01\x12\r\n\tCACHE_HIT\x10\x02\x12\x13\n\x0f\x43\x41\x43HE_POPULATED\x10\x03\x12\x18\n\x14\x43\x41\x43HE_LOOKUP_FAILURE\x10\x04\x12\x15\n\x11\x43\x41\x43HE_PUT_FAILURE\x10\x05\x12\x11\n\rCACHE_SKIPPED\x10\x06\x12\x11\n\rCACHE_EVICTED\x10\x07\x42\xb2\x01\n\x11\x63om.flyteidl.coreB\x0c\x43\x61talogProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.catalog_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014CatalogProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_CATALOGCACHESTATUS']._serialized_start=577 + _globals['_CATALOGCACHESTATUS']._serialized_end=756 + _globals['_CATALOGARTIFACTTAG']._serialized_start=78 + _globals['_CATALOGARTIFACTTAG']._serialized_end=151 + _globals['_CATALOGMETADATA']._serialized_start=154 + _globals['_CATALOGMETADATA']._serialized_end=413 + _globals['_CATALOGRESERVATION']._serialized_start=416 + _globals['_CATALOGRESERVATION']._serialized_end=574 + _globals['_CATALOGRESERVATION_STATUS']._serialized_start=439 + _globals['_CATALOGRESERVATION_STATUS']._serialized_end=574 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi new file mode 100644 index 0000000000..f28fadcccd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi @@ -0,0 +1,60 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CatalogCacheStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CACHE_DISABLED: _ClassVar[CatalogCacheStatus] + CACHE_MISS: _ClassVar[CatalogCacheStatus] + CACHE_HIT: _ClassVar[CatalogCacheStatus] + CACHE_POPULATED: _ClassVar[CatalogCacheStatus] + CACHE_LOOKUP_FAILURE: _ClassVar[CatalogCacheStatus] + CACHE_PUT_FAILURE: _ClassVar[CatalogCacheStatus] + CACHE_SKIPPED: _ClassVar[CatalogCacheStatus] + CACHE_EVICTED: _ClassVar[CatalogCacheStatus] +CACHE_DISABLED: CatalogCacheStatus +CACHE_MISS: CatalogCacheStatus +CACHE_HIT: CatalogCacheStatus +CACHE_POPULATED: CatalogCacheStatus +CACHE_LOOKUP_FAILURE: CatalogCacheStatus +CACHE_PUT_FAILURE: CatalogCacheStatus +CACHE_SKIPPED: CatalogCacheStatus +CACHE_EVICTED: CatalogCacheStatus + +class CatalogArtifactTag(_message.Message): + __slots__ = ["artifact_id", "name"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + artifact_id: str + name: str + def __init__(self, artifact_id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... + +class CatalogMetadata(_message.Message): + __slots__ = ["dataset_id", "artifact_tag", "source_task_execution"] + DATASET_ID_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] + SOURCE_TASK_EXECUTION_FIELD_NUMBER: _ClassVar[int] + dataset_id: _identifier_pb2.Identifier + artifact_tag: CatalogArtifactTag + source_task_execution: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, dataset_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_tag: _Optional[_Union[CatalogArtifactTag, _Mapping]] = ..., source_task_execution: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class CatalogReservation(_message.Message): + __slots__ = [] + class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RESERVATION_DISABLED: _ClassVar[CatalogReservation.Status] + RESERVATION_ACQUIRED: _ClassVar[CatalogReservation.Status] + RESERVATION_EXISTS: _ClassVar[CatalogReservation.Status] + RESERVATION_RELEASED: _ClassVar[CatalogReservation.Status] + RESERVATION_FAILURE: _ClassVar[CatalogReservation.Status] + RESERVATION_DISABLED: CatalogReservation.Status + RESERVATION_ACQUIRED: CatalogReservation.Status + RESERVATION_EXISTS: CatalogReservation.Status + RESERVATION_RELEASED: CatalogReservation.Status + RESERVATION_FAILURE: CatalogReservation.Status + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py new file mode 100644 index 0000000000..6ecd85a11d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/compiler.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x87\x03\n\rConnectionSet\x12L\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntryR\ndownstream\x12\x46\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntryR\x08upstream\x1a\x1a\n\x06IdList\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x62\n\x0f\x44ownstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\x1a`\n\rUpstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\"\x8f\x01\n\x10\x43ompiledWorkflow\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12>\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSetR\x0b\x63onnections\"S\n\x12\x43ompiledLaunchPlan\x12=\n\x08template\x18\x01 \x01(\x0b\x32!.flyteidl.core.LaunchPlanTemplateR\x08template\"G\n\x0c\x43ompiledTask\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\"\x93\x02\n\x17\x43ompiledWorkflowClosure\x12\x39\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x07primary\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x0csubWorkflows\x12\x31\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x05tasks\x12\x44\n\x0claunch_plans\x18\x04 \x03(\x0b\x32!.flyteidl.core.CompiledLaunchPlanR\x0blaunchPlansB\xb3\x01\n\x11\x63om.flyteidl.coreB\rCompilerProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.compiler_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rCompilerProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _CONNECTIONSET_DOWNSTREAMENTRY._options = None + _CONNECTIONSET_DOWNSTREAMENTRY._serialized_options = b'8\001' + _CONNECTIONSET_UPSTREAMENTRY._options = None + _CONNECTIONSET_UPSTREAMENTRY._serialized_options = b'8\001' + _globals['_CONNECTIONSET']._serialized_start=168 + _globals['_CONNECTIONSET']._serialized_end=559 + _globals['_CONNECTIONSET_IDLIST']._serialized_start=335 + _globals['_CONNECTIONSET_IDLIST']._serialized_end=361 + _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_start=363 + _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_end=461 + _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_start=463 + _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_end=559 + _globals['_COMPILEDWORKFLOW']._serialized_start=562 + _globals['_COMPILEDWORKFLOW']._serialized_end=705 + _globals['_COMPILEDLAUNCHPLAN']._serialized_start=707 + _globals['_COMPILEDLAUNCHPLAN']._serialized_end=790 + _globals['_COMPILEDTASK']._serialized_start=792 + _globals['_COMPILEDTASK']._serialized_end=863 + _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_start=866 + _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_end=1141 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi new file mode 100644 index 0000000000..26b6caa4aa --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi @@ -0,0 +1,69 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ConnectionSet(_message.Message): + __slots__ = ["downstream", "upstream"] + class IdList(_message.Message): + __slots__ = ["ids"] + IDS_FIELD_NUMBER: _ClassVar[int] + ids: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ... + class DownstreamEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: ConnectionSet.IdList + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... + class UpstreamEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: ConnectionSet.IdList + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... + DOWNSTREAM_FIELD_NUMBER: _ClassVar[int] + UPSTREAM_FIELD_NUMBER: _ClassVar[int] + downstream: _containers.MessageMap[str, ConnectionSet.IdList] + upstream: _containers.MessageMap[str, ConnectionSet.IdList] + def __init__(self, downstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ..., upstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ...) -> None: ... + +class CompiledWorkflow(_message.Message): + __slots__ = ["template", "connections"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + CONNECTIONS_FIELD_NUMBER: _ClassVar[int] + template: _workflow_pb2.WorkflowTemplate + connections: ConnectionSet + def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., connections: _Optional[_Union[ConnectionSet, _Mapping]] = ...) -> None: ... + +class CompiledLaunchPlan(_message.Message): + __slots__ = ["template"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + template: _workflow_pb2.LaunchPlanTemplate + def __init__(self, template: _Optional[_Union[_workflow_pb2.LaunchPlanTemplate, _Mapping]] = ...) -> None: ... + +class CompiledTask(_message.Message): + __slots__ = ["template"] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + template: _tasks_pb2.TaskTemplate + def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ...) -> None: ... + +class CompiledWorkflowClosure(_message.Message): + __slots__ = ["primary", "sub_workflows", "tasks", "launch_plans"] + PRIMARY_FIELD_NUMBER: _ClassVar[int] + SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] + TASKS_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] + primary: CompiledWorkflow + sub_workflows: _containers.RepeatedCompositeFieldContainer[CompiledWorkflow] + tasks: _containers.RepeatedCompositeFieldContainer[CompiledTask] + launch_plans: _containers.RepeatedCompositeFieldContainer[CompiledLaunchPlan] + def __init__(self, primary: _Optional[_Union[CompiledWorkflow, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[CompiledWorkflow, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[CompiledTask, _Mapping]]] = ..., launch_plans: _Optional[_Iterable[_Union[CompiledLaunchPlan, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py new file mode 100644 index 0000000000..ffa115e024 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/condition.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/condition.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/literals.proto\"\x8f\x02\n\x14\x43omparisonExpression\x12H\n\x08operator\x18\x01 \x01(\x0e\x32,.flyteidl.core.ComparisonExpression.OperatorR\x08operator\x12\x35\n\nleft_value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.OperandR\tleftValue\x12\x37\n\x0bright_value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.OperandR\nrightValue\"=\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03NEQ\x10\x01\x12\x06\n\x02GT\x10\x02\x12\x07\n\x03GTE\x10\x03\x12\x06\n\x02LT\x10\x04\x12\x07\n\x03LTE\x10\x05\"\x93\x01\n\x07Operand\x12<\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveB\x02\x18\x01H\x00R\tprimitive\x12\x12\n\x03var\x18\x02 \x01(\tH\x00R\x03var\x12/\n\x06scalar\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalarB\x05\n\x03val\"\xac\x01\n\x11\x42ooleanExpression\x12H\n\x0b\x63onjunction\x18\x01 \x01(\x0b\x32$.flyteidl.core.ConjunctionExpressionH\x00R\x0b\x63onjunction\x12\x45\n\ncomparison\x18\x02 \x01(\x0b\x32#.flyteidl.core.ComparisonExpressionH\x00R\ncomparisonB\x06\n\x04\x65xpr\"\xa5\x02\n\x15\x43onjunctionExpression\x12P\n\x08operator\x18\x01 \x01(\x0e\x32\x34.flyteidl.core.ConjunctionExpression.LogicalOperatorR\x08operator\x12I\n\x0fleft_expression\x18\x02 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0eleftExpression\x12K\n\x10right_expression\x18\x03 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0frightExpression\"\"\n\x0fLogicalOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x42\xb4\x01\n\x11\x63om.flyteidl.coreB\x0e\x43onditionProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.condition_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ConditionProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _OPERAND.fields_by_name['primitive']._options = None + _OPERAND.fields_by_name['primitive']._serialized_options = b'\030\001' + _globals['_COMPARISONEXPRESSION']._serialized_start=79 + _globals['_COMPARISONEXPRESSION']._serialized_end=350 + _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_start=289 + _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_end=350 + _globals['_OPERAND']._serialized_start=353 + _globals['_OPERAND']._serialized_end=500 + _globals['_BOOLEANEXPRESSION']._serialized_start=503 + _globals['_BOOLEANEXPRESSION']._serialized_end=675 + _globals['_CONJUNCTIONEXPRESSION']._serialized_start=678 + _globals['_CONJUNCTIONEXPRESSION']._serialized_end=971 + _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_start=937 + _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_end=971 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi new file mode 100644 index 0000000000..4f4de63ad7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi @@ -0,0 +1,65 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ComparisonExpression(_message.Message): + __slots__ = ["operator", "left_value", "right_value"] + class Operator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + EQ: _ClassVar[ComparisonExpression.Operator] + NEQ: _ClassVar[ComparisonExpression.Operator] + GT: _ClassVar[ComparisonExpression.Operator] + GTE: _ClassVar[ComparisonExpression.Operator] + LT: _ClassVar[ComparisonExpression.Operator] + LTE: _ClassVar[ComparisonExpression.Operator] + EQ: ComparisonExpression.Operator + NEQ: ComparisonExpression.Operator + GT: ComparisonExpression.Operator + GTE: ComparisonExpression.Operator + LT: ComparisonExpression.Operator + LTE: ComparisonExpression.Operator + OPERATOR_FIELD_NUMBER: _ClassVar[int] + LEFT_VALUE_FIELD_NUMBER: _ClassVar[int] + RIGHT_VALUE_FIELD_NUMBER: _ClassVar[int] + operator: ComparisonExpression.Operator + left_value: Operand + right_value: Operand + def __init__(self, operator: _Optional[_Union[ComparisonExpression.Operator, str]] = ..., left_value: _Optional[_Union[Operand, _Mapping]] = ..., right_value: _Optional[_Union[Operand, _Mapping]] = ...) -> None: ... + +class Operand(_message.Message): + __slots__ = ["primitive", "var", "scalar"] + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + VAR_FIELD_NUMBER: _ClassVar[int] + SCALAR_FIELD_NUMBER: _ClassVar[int] + primitive: _literals_pb2.Primitive + var: str + scalar: _literals_pb2.Scalar + def __init__(self, primitive: _Optional[_Union[_literals_pb2.Primitive, _Mapping]] = ..., var: _Optional[str] = ..., scalar: _Optional[_Union[_literals_pb2.Scalar, _Mapping]] = ...) -> None: ... + +class BooleanExpression(_message.Message): + __slots__ = ["conjunction", "comparison"] + CONJUNCTION_FIELD_NUMBER: _ClassVar[int] + COMPARISON_FIELD_NUMBER: _ClassVar[int] + conjunction: ConjunctionExpression + comparison: ComparisonExpression + def __init__(self, conjunction: _Optional[_Union[ConjunctionExpression, _Mapping]] = ..., comparison: _Optional[_Union[ComparisonExpression, _Mapping]] = ...) -> None: ... + +class ConjunctionExpression(_message.Message): + __slots__ = ["operator", "left_expression", "right_expression"] + class LogicalOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + AND: _ClassVar[ConjunctionExpression.LogicalOperator] + OR: _ClassVar[ConjunctionExpression.LogicalOperator] + AND: ConjunctionExpression.LogicalOperator + OR: ConjunctionExpression.LogicalOperator + OPERATOR_FIELD_NUMBER: _ClassVar[int] + LEFT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] + RIGHT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] + operator: ConjunctionExpression.LogicalOperator + left_expression: BooleanExpression + right_expression: BooleanExpression + def __init__(self, operator: _Optional[_Union[ConjunctionExpression.LogicalOperator, str]] = ..., left_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ..., right_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py new file mode 100644 index 0000000000..583a11294e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/dynamic_job.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/dynamic_job.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x8a\x02\n\x0e\x44ynamicJobSpec\x12)\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12#\n\rmin_successes\x18\x02 \x01(\x03R\x0cminSuccesses\x12\x30\n\x07outputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x31\n\x05tasks\x18\x04 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasks\x12\x43\n\x0csubworkflows\x18\x05 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubworkflowsB\xb5\x01\n\x11\x63om.flyteidl.coreB\x0f\x44ynamicJobProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.dynamic_job_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017DynamicJobProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_DYNAMICJOBSPEC']._serialized_start=138 + _globals['_DYNAMICJOBSPEC']._serialized_end=404 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi new file mode 100644 index 0000000000..20ca83f300 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi @@ -0,0 +1,23 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DynamicJobSpec(_message.Message): + __slots__ = ["nodes", "min_successes", "outputs", "tasks", "subworkflows"] + NODES_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + TASKS_FIELD_NUMBER: _ClassVar[int] + SUBWORKFLOWS_FIELD_NUMBER: _ClassVar[int] + nodes: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.Node] + min_successes: int + outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] + tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] + subworkflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] + def __init__(self, nodes: _Optional[_Iterable[_Union[_workflow_pb2.Node, _Mapping]]] = ..., min_successes: _Optional[int] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ..., subworkflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py new file mode 100644 index 0000000000..68182fd259 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/errors.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/execution.proto\"\xe5\x01\n\x0e\x43ontainerError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.KindR\x04kind\x12?\n\x06origin\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x06origin\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"D\n\rErrorDocument\x12\x33\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorR\x05\x65rrorB\xb1\x01\n\x11\x63om.flyteidl.coreB\x0b\x45rrorsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.errors_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\013ErrorsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_CONTAINERERROR']._serialized_start=77 + _globals['_CONTAINERERROR']._serialized_end=306 + _globals['_CONTAINERERROR_KIND']._serialized_start=262 + _globals['_CONTAINERERROR_KIND']._serialized_end=306 + _globals['_ERRORDOCUMENT']._serialized_start=308 + _globals['_ERRORDOCUMENT']._serialized_end=376 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi new file mode 100644 index 0000000000..b13aa40915 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi @@ -0,0 +1,31 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ContainerError(_message.Message): + __slots__ = ["code", "message", "kind", "origin"] + class Kind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NON_RECOVERABLE: _ClassVar[ContainerError.Kind] + RECOVERABLE: _ClassVar[ContainerError.Kind] + NON_RECOVERABLE: ContainerError.Kind + RECOVERABLE: ContainerError.Kind + CODE_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + KIND_FIELD_NUMBER: _ClassVar[int] + ORIGIN_FIELD_NUMBER: _ClassVar[int] + code: str + message: str + kind: ContainerError.Kind + origin: _execution_pb2.ExecutionError.ErrorKind + def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., kind: _Optional[_Union[ContainerError.Kind, str]] = ..., origin: _Optional[_Union[_execution_pb2.ExecutionError.ErrorKind, str]] = ...) -> None: ... + +class ErrorDocument(_message.Message): + __slots__ = ["error"] + ERROR_FIELD_NUMBER: _ClassVar[int] + error: ContainerError + def __init__(self, error: _Optional[_Union[ContainerError, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py new file mode 100644 index 0000000000..c2c9810083 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/execution.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/execution.proto\x12\rflyteidl.core\x1a\x1egoogle/protobuf/duration.proto\"\xa7\x01\n\x11WorkflowExecution\"\x91\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nSUCCEEDING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0b\n\x07\x46\x41ILING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x41\x42ORTED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x0c\n\x08\x41\x42ORTING\x10\t\"\xb6\x01\n\rNodeExecution\"\xa4\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x46\x41ILING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x13\n\x0f\x44YNAMIC_RUNNING\x10\t\x12\r\n\tRECOVERED\x10\n\"\x96\x01\n\rTaskExecution\"\x84\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x41\x42ORTED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x10\n\x0cINITIALIZING\x10\x06\x12\x19\n\x15WAITING_FOR_RESOURCES\x10\x07\"\xc8\x01\n\x0e\x45xecutionError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1b\n\terror_uri\x18\x03 \x01(\tR\x08\x65rrorUri\x12;\n\x04kind\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x04kind\".\n\tErrorKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\"\xda\x01\n\x07TaskLog\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12K\n\x0emessage_format\x18\x03 \x01(\x0e\x32$.flyteidl.core.TaskLog.MessageFormatR\rmessageFormat\x12+\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x03ttl\"/\n\rMessageFormat\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43SV\x10\x01\x12\x08\n\x04JSON\x10\x02\"Z\n\x14QualityOfServiceSpec\x12\x42\n\x0fqueueing_budget\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0equeueingBudget\"\xce\x01\n\x10QualityOfService\x12:\n\x04tier\x18\x01 \x01(\x0e\x32$.flyteidl.core.QualityOfService.TierH\x00R\x04tier\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32#.flyteidl.core.QualityOfServiceSpecH\x00R\x04spec\"4\n\x04Tier\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x42\r\n\x0b\x64\x65signationB\xb4\x01\n\x11\x63om.flyteidl.coreB\x0e\x45xecutionProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.execution_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ExecutionProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_WORKFLOWEXECUTION']._serialized_start=81 + _globals['_WORKFLOWEXECUTION']._serialized_end=248 + _globals['_WORKFLOWEXECUTION_PHASE']._serialized_start=103 + _globals['_WORKFLOWEXECUTION_PHASE']._serialized_end=248 + _globals['_NODEEXECUTION']._serialized_start=251 + _globals['_NODEEXECUTION']._serialized_end=433 + _globals['_NODEEXECUTION_PHASE']._serialized_start=269 + _globals['_NODEEXECUTION_PHASE']._serialized_end=433 + _globals['_TASKEXECUTION']._serialized_start=436 + _globals['_TASKEXECUTION']._serialized_end=586 + _globals['_TASKEXECUTION_PHASE']._serialized_start=454 + _globals['_TASKEXECUTION_PHASE']._serialized_end=586 + _globals['_EXECUTIONERROR']._serialized_start=589 + _globals['_EXECUTIONERROR']._serialized_end=789 + _globals['_EXECUTIONERROR_ERRORKIND']._serialized_start=743 + _globals['_EXECUTIONERROR_ERRORKIND']._serialized_end=789 + _globals['_TASKLOG']._serialized_start=792 + _globals['_TASKLOG']._serialized_end=1010 + _globals['_TASKLOG_MESSAGEFORMAT']._serialized_start=963 + _globals['_TASKLOG_MESSAGEFORMAT']._serialized_end=1010 + _globals['_QUALITYOFSERVICESPEC']._serialized_start=1012 + _globals['_QUALITYOFSERVICESPEC']._serialized_end=1102 + _globals['_QUALITYOFSERVICE']._serialized_start=1105 + _globals['_QUALITYOFSERVICE']._serialized_end=1311 + _globals['_QUALITYOFSERVICE_TIER']._serialized_start=1244 + _globals['_QUALITYOFSERVICE_TIER']._serialized_end=1296 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi new file mode 100644 index 0000000000..2508c1b4ac --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi @@ -0,0 +1,147 @@ +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowExecution(_message.Message): + __slots__ = [] + class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[WorkflowExecution.Phase] + QUEUED: _ClassVar[WorkflowExecution.Phase] + RUNNING: _ClassVar[WorkflowExecution.Phase] + SUCCEEDING: _ClassVar[WorkflowExecution.Phase] + SUCCEEDED: _ClassVar[WorkflowExecution.Phase] + FAILING: _ClassVar[WorkflowExecution.Phase] + FAILED: _ClassVar[WorkflowExecution.Phase] + ABORTED: _ClassVar[WorkflowExecution.Phase] + TIMED_OUT: _ClassVar[WorkflowExecution.Phase] + ABORTING: _ClassVar[WorkflowExecution.Phase] + UNDEFINED: WorkflowExecution.Phase + QUEUED: WorkflowExecution.Phase + RUNNING: WorkflowExecution.Phase + SUCCEEDING: WorkflowExecution.Phase + SUCCEEDED: WorkflowExecution.Phase + FAILING: WorkflowExecution.Phase + FAILED: WorkflowExecution.Phase + ABORTED: WorkflowExecution.Phase + TIMED_OUT: WorkflowExecution.Phase + ABORTING: WorkflowExecution.Phase + def __init__(self) -> None: ... + +class NodeExecution(_message.Message): + __slots__ = [] + class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[NodeExecution.Phase] + QUEUED: _ClassVar[NodeExecution.Phase] + RUNNING: _ClassVar[NodeExecution.Phase] + SUCCEEDED: _ClassVar[NodeExecution.Phase] + FAILING: _ClassVar[NodeExecution.Phase] + FAILED: _ClassVar[NodeExecution.Phase] + ABORTED: _ClassVar[NodeExecution.Phase] + SKIPPED: _ClassVar[NodeExecution.Phase] + TIMED_OUT: _ClassVar[NodeExecution.Phase] + DYNAMIC_RUNNING: _ClassVar[NodeExecution.Phase] + RECOVERED: _ClassVar[NodeExecution.Phase] + UNDEFINED: NodeExecution.Phase + QUEUED: NodeExecution.Phase + RUNNING: NodeExecution.Phase + SUCCEEDED: NodeExecution.Phase + FAILING: NodeExecution.Phase + FAILED: NodeExecution.Phase + ABORTED: NodeExecution.Phase + SKIPPED: NodeExecution.Phase + TIMED_OUT: NodeExecution.Phase + DYNAMIC_RUNNING: NodeExecution.Phase + RECOVERED: NodeExecution.Phase + def __init__(self) -> None: ... + +class TaskExecution(_message.Message): + __slots__ = [] + class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[TaskExecution.Phase] + QUEUED: _ClassVar[TaskExecution.Phase] + RUNNING: _ClassVar[TaskExecution.Phase] + SUCCEEDED: _ClassVar[TaskExecution.Phase] + ABORTED: _ClassVar[TaskExecution.Phase] + FAILED: _ClassVar[TaskExecution.Phase] + INITIALIZING: _ClassVar[TaskExecution.Phase] + WAITING_FOR_RESOURCES: _ClassVar[TaskExecution.Phase] + UNDEFINED: TaskExecution.Phase + QUEUED: TaskExecution.Phase + RUNNING: TaskExecution.Phase + SUCCEEDED: TaskExecution.Phase + ABORTED: TaskExecution.Phase + FAILED: TaskExecution.Phase + INITIALIZING: TaskExecution.Phase + WAITING_FOR_RESOURCES: TaskExecution.Phase + def __init__(self) -> None: ... + +class ExecutionError(_message.Message): + __slots__ = ["code", "message", "error_uri", "kind"] + class ErrorKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[ExecutionError.ErrorKind] + USER: _ClassVar[ExecutionError.ErrorKind] + SYSTEM: _ClassVar[ExecutionError.ErrorKind] + UNKNOWN: ExecutionError.ErrorKind + USER: ExecutionError.ErrorKind + SYSTEM: ExecutionError.ErrorKind + CODE_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + ERROR_URI_FIELD_NUMBER: _ClassVar[int] + KIND_FIELD_NUMBER: _ClassVar[int] + code: str + message: str + error_uri: str + kind: ExecutionError.ErrorKind + def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., error_uri: _Optional[str] = ..., kind: _Optional[_Union[ExecutionError.ErrorKind, str]] = ...) -> None: ... + +class TaskLog(_message.Message): + __slots__ = ["uri", "name", "message_format", "ttl"] + class MessageFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[TaskLog.MessageFormat] + CSV: _ClassVar[TaskLog.MessageFormat] + JSON: _ClassVar[TaskLog.MessageFormat] + UNKNOWN: TaskLog.MessageFormat + CSV: TaskLog.MessageFormat + JSON: TaskLog.MessageFormat + URI_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FORMAT_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + uri: str + name: str + message_format: TaskLog.MessageFormat + ttl: _duration_pb2.Duration + def __init__(self, uri: _Optional[str] = ..., name: _Optional[str] = ..., message_format: _Optional[_Union[TaskLog.MessageFormat, str]] = ..., ttl: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class QualityOfServiceSpec(_message.Message): + __slots__ = ["queueing_budget"] + QUEUEING_BUDGET_FIELD_NUMBER: _ClassVar[int] + queueing_budget: _duration_pb2.Duration + def __init__(self, queueing_budget: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class QualityOfService(_message.Message): + __slots__ = ["tier", "spec"] + class Tier(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[QualityOfService.Tier] + HIGH: _ClassVar[QualityOfService.Tier] + MEDIUM: _ClassVar[QualityOfService.Tier] + LOW: _ClassVar[QualityOfService.Tier] + UNDEFINED: QualityOfService.Tier + HIGH: QualityOfService.Tier + MEDIUM: QualityOfService.Tier + LOW: QualityOfService.Tier + TIER_FIELD_NUMBER: _ClassVar[int] + SPEC_FIELD_NUMBER: _ClassVar[int] + tier: QualityOfService.Tier + spec: QualityOfServiceSpec + def __init__(self, tier: _Optional[_Union[QualityOfService.Tier, str]] = ..., spec: _Optional[_Union[QualityOfServiceSpec, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py new file mode 100644 index 0000000000..5068f3edb4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/identifier.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/core/identifier.proto\x12\rflyteidl.core\"\xc0\x01\n\nIdentifier\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n\x07version\x18\x05 \x01(\tR\x07version\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"u\n\x1bWorkflowExecutionIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x10\n\x03org\x18\x05 \x01(\tR\x03org\"\x81\x01\n\x17NodeExecutionIdentifier\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc6\x01\n\x17TaskExecutionIdentifier\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12R\n\x11node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\"~\n\x10SignalIdentifier\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId*U\n\x0cResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04TASK\x10\x01\x12\x0c\n\x08WORKFLOW\x10\x02\x12\x0f\n\x0bLAUNCH_PLAN\x10\x03\x12\x0b\n\x07\x44\x41TASET\x10\x04\x42\xb5\x01\n\x11\x63om.flyteidl.coreB\x0fIdentifierProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.identifier_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017IdentifierProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_RESOURCETYPE']._serialized_start=824 + _globals['_RESOURCETYPE']._serialized_end=909 + _globals['_IDENTIFIER']._serialized_start=50 + _globals['_IDENTIFIER']._serialized_end=242 + _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_start=244 + _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_end=361 + _globals['_NODEEXECUTIONIDENTIFIER']._serialized_start=364 + _globals['_NODEEXECUTIONIDENTIFIER']._serialized_end=493 + _globals['_TASKEXECUTIONIDENTIFIER']._serialized_start=496 + _globals['_TASKEXECUTIONIDENTIFIER']._serialized_end=694 + _globals['_SIGNALIDENTIFIER']._serialized_start=696 + _globals['_SIGNALIDENTIFIER']._serialized_end=822 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi new file mode 100644 index 0000000000..5d3857195e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi @@ -0,0 +1,73 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ResourceType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNSPECIFIED: _ClassVar[ResourceType] + TASK: _ClassVar[ResourceType] + WORKFLOW: _ClassVar[ResourceType] + LAUNCH_PLAN: _ClassVar[ResourceType] + DATASET: _ClassVar[ResourceType] +UNSPECIFIED: ResourceType +TASK: ResourceType +WORKFLOW: ResourceType +LAUNCH_PLAN: ResourceType +DATASET: ResourceType + +class Identifier(_message.Message): + __slots__ = ["resource_type", "project", "domain", "name", "version", "org"] + RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + resource_type: ResourceType + project: str + domain: str + name: str + version: str + org: str + def __init__(self, resource_type: _Optional[_Union[ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., version: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class WorkflowExecutionIdentifier(_message.Message): + __slots__ = ["project", "domain", "name", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + name: str + org: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class NodeExecutionIdentifier(_message.Message): + __slots__ = ["node_id", "execution_id"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + node_id: str + execution_id: WorkflowExecutionIdentifier + def __init__(self, node_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskExecutionIdentifier(_message.Message): + __slots__ = ["task_id", "node_execution_id", "retry_attempt"] + TASK_ID_FIELD_NUMBER: _ClassVar[int] + NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] + task_id: Identifier + node_execution_id: NodeExecutionIdentifier + retry_attempt: int + def __init__(self, task_id: _Optional[_Union[Identifier, _Mapping]] = ..., node_execution_id: _Optional[_Union[NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ...) -> None: ... + +class SignalIdentifier(_message.Message): + __slots__ = ["signal_id", "execution_id"] + SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + signal_id: str + execution_id: WorkflowExecutionIdentifier + def __init__(self, signal_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py new file mode 100644 index 0000000000..5a35294103 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/interface.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/interface.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\"\xe6\x01\n\x08Variable\x12.\n\x04type\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12I\n\x13\x61rtifact_partial_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x11\x61rtifactPartialId\x12=\n\x0c\x61rtifact_tag\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactTagR\x0b\x61rtifactTag\"\xad\x01\n\x0bVariableMap\x12G\n\tvariables\x18\x01 \x03(\x0b\x32).flyteidl.core.VariableMap.VariablesEntryR\tvariables\x1aU\n\x0eVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x05value:\x02\x38\x01\"z\n\x0eTypedInterface\x12\x32\n\x06inputs\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\x99\x02\n\tParameter\x12)\n\x03var\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x03var\x12\x32\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07\x64\x65\x66\x61ult\x12\x1c\n\x08required\x18\x03 \x01(\x08H\x00R\x08required\x12\x45\n\x0e\x61rtifact_query\x18\x04 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryH\x00R\rartifactQuery\x12<\n\x0b\x61rtifact_id\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDH\x00R\nartifactIdB\n\n\x08\x62\x65havior\"\xb4\x01\n\x0cParameterMap\x12K\n\nparameters\x18\x01 \x03(\x0b\x32+.flyteidl.core.ParameterMap.ParametersEntryR\nparameters\x1aW\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ParameterR\x05value:\x02\x38\x01\x42\xb4\x01\n\x11\x63om.flyteidl.coreB\x0eInterfaceProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.interface_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016InterfaceProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _VARIABLEMAP_VARIABLESENTRY._options = None + _VARIABLEMAP_VARIABLESENTRY._serialized_options = b'8\001' + _PARAMETERMAP_PARAMETERSENTRY._options = None + _PARAMETERMAP_PARAMETERSENTRY._serialized_options = b'8\001' + _globals['_VARIABLE']._serialized_start=139 + _globals['_VARIABLE']._serialized_end=369 + _globals['_VARIABLEMAP']._serialized_start=372 + _globals['_VARIABLEMAP']._serialized_end=545 + _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_start=460 + _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_end=545 + _globals['_TYPEDINTERFACE']._serialized_start=547 + _globals['_TYPEDINTERFACE']._serialized_end=669 + _globals['_PARAMETER']._serialized_start=672 + _globals['_PARAMETER']._serialized_end=953 + _globals['_PARAMETERMAP']._serialized_start=956 + _globals['_PARAMETERMAP']._serialized_end=1136 + _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_start=1049 + _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_end=1136 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi new file mode 100644 index 0000000000..ee3ac9c2b5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi @@ -0,0 +1,69 @@ +from flyteidl.core import types_pb2 as _types_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Variable(_message.Message): + __slots__ = ["type", "description", "artifact_partial_id", "artifact_tag"] + TYPE_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_PARTIAL_ID_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] + type: _types_pb2.LiteralType + description: str + artifact_partial_id: _artifact_id_pb2.ArtifactID + artifact_tag: _artifact_id_pb2.ArtifactTag + def __init__(self, type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., description: _Optional[str] = ..., artifact_partial_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., artifact_tag: _Optional[_Union[_artifact_id_pb2.ArtifactTag, _Mapping]] = ...) -> None: ... + +class VariableMap(_message.Message): + __slots__ = ["variables"] + class VariablesEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Variable + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Variable, _Mapping]] = ...) -> None: ... + VARIABLES_FIELD_NUMBER: _ClassVar[int] + variables: _containers.MessageMap[str, Variable] + def __init__(self, variables: _Optional[_Mapping[str, Variable]] = ...) -> None: ... + +class TypedInterface(_message.Message): + __slots__ = ["inputs", "outputs"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + inputs: VariableMap + outputs: VariableMap + def __init__(self, inputs: _Optional[_Union[VariableMap, _Mapping]] = ..., outputs: _Optional[_Union[VariableMap, _Mapping]] = ...) -> None: ... + +class Parameter(_message.Message): + __slots__ = ["var", "default", "required", "artifact_query", "artifact_id"] + VAR_FIELD_NUMBER: _ClassVar[int] + DEFAULT_FIELD_NUMBER: _ClassVar[int] + REQUIRED_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_QUERY_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + var: Variable + default: _literals_pb2.Literal + required: bool + artifact_query: _artifact_id_pb2.ArtifactQuery + artifact_id: _artifact_id_pb2.ArtifactID + def __init__(self, var: _Optional[_Union[Variable, _Mapping]] = ..., default: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., required: bool = ..., artifact_query: _Optional[_Union[_artifact_id_pb2.ArtifactQuery, _Mapping]] = ..., artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ...) -> None: ... + +class ParameterMap(_message.Message): + __slots__ = ["parameters"] + class ParametersEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Parameter + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Parameter, _Mapping]] = ...) -> None: ... + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + parameters: _containers.MessageMap[str, Parameter] + def __init__(self, parameters: _Optional[_Mapping[str, Parameter]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py new file mode 100644 index 0000000000..77bc3ea3f0 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py @@ -0,0 +1,81 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/literals.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/literals.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x19\x66lyteidl/core/types.proto\"\x87\x02\n\tPrimitive\x12\x1a\n\x07integer\x18\x01 \x01(\x03H\x00R\x07integer\x12!\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00R\nfloatValue\x12#\n\x0cstring_value\x18\x03 \x01(\tH\x00R\x0bstringValue\x12\x1a\n\x07\x62oolean\x18\x04 \x01(\x08H\x00R\x07\x62oolean\x12\x38\n\x08\x64\x61tetime\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x08\x64\x61tetime\x12\x37\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00R\x08\x64urationB\x07\n\x05value\"\x06\n\x04Void\"Q\n\x04\x42lob\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.BlobMetadataR\x08metadata\x12\x10\n\x03uri\x18\x03 \x01(\tR\x03uri\";\n\x0c\x42lobMetadata\x12+\n\x04type\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeR\x04type\"0\n\x06\x42inary\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\x12\x10\n\x03tag\x18\x02 \x01(\tR\x03tag\"I\n\x06Schema\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12-\n\x04type\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeR\x04type\"e\n\x05Union\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"y\n\x19StructuredDatasetMetadata\x12\\\n\x17structured_dataset_type\x18\x01 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeR\x15structuredDatasetType\"k\n\x11StructuredDataset\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x44\n\x08metadata\x18\x02 \x01(\x0b\x32(.flyteidl.core.StructuredDatasetMetadataR\x08metadata\"\xf0\x03\n\x06Scalar\x12\x38\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveH\x00R\tprimitive\x12)\n\x04\x62lob\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.BlobH\x00R\x04\x62lob\x12/\n\x06\x62inary\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.BinaryH\x00R\x06\x62inary\x12/\n\x06schema\x18\x04 \x01(\x0b\x32\x15.flyteidl.core.SchemaH\x00R\x06schema\x12\x32\n\tnone_type\x18\x05 \x01(\x0b\x32\x13.flyteidl.core.VoidH\x00R\x08noneType\x12,\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rror\x12\x33\n\x07generic\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x07generic\x12Q\n\x12structured_dataset\x18\x08 \x01(\x0b\x32 .flyteidl.core.StructuredDatasetH\x00R\x11structuredDataset\x12,\n\x05union\x18\t \x01(\x0b\x32\x14.flyteidl.core.UnionH\x00R\x05unionB\x07\n\x05value\"\xc9\x02\n\x07Literal\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x42\n\ncollection\x18\x02 \x01(\x0b\x32 .flyteidl.core.LiteralCollectionH\x00R\ncollection\x12-\n\x03map\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x03map\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12@\n\x08metadata\x18\x05 \x03(\x0b\x32$.flyteidl.core.Literal.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05value\"G\n\x11LiteralCollection\x12\x32\n\x08literals\x18\x01 \x03(\x0b\x32\x16.flyteidl.core.LiteralR\x08literals\"\xa6\x01\n\nLiteralMap\x12\x43\n\x08literals\x18\x01 \x03(\x0b\x32\'.flyteidl.core.LiteralMap.LiteralsEntryR\x08literals\x1aS\n\rLiteralsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value:\x02\x38\x01\"O\n\x15\x42indingDataCollection\x12\x36\n\x08\x62indings\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.BindingDataR\x08\x62indings\"\xb2\x01\n\x0e\x42indingDataMap\x12G\n\x08\x62indings\x18\x01 \x03(\x0b\x32+.flyteidl.core.BindingDataMap.BindingsEntryR\x08\x62indings\x1aW\n\rBindingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x05value:\x02\x38\x01\"G\n\tUnionInfo\x12:\n\ntargetType\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\ntargetType\"\xae\x02\n\x0b\x42indingData\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x46\n\ncollection\x18\x02 \x01(\x0b\x32$.flyteidl.core.BindingDataCollectionH\x00R\ncollection\x12:\n\x07promise\x18\x03 \x01(\x0b\x32\x1e.flyteidl.core.OutputReferenceH\x00R\x07promise\x12\x31\n\x03map\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.BindingDataMapH\x00R\x03map\x12.\n\x05union\x18\x05 \x01(\x0b\x32\x18.flyteidl.core.UnionInfoR\x05unionB\x07\n\x05value\"Q\n\x07\x42inding\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x34\n\x07\x62inding\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x07\x62inding\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\")\n\rRetryStrategy\x12\x18\n\x07retries\x18\x05 \x01(\rR\x07retriesB\xb3\x01\n\x11\x63om.flyteidl.coreB\rLiteralsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.literals_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rLiteralsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _LITERAL_METADATAENTRY._options = None + _LITERAL_METADATAENTRY._serialized_options = b'8\001' + _LITERALMAP_LITERALSENTRY._options = None + _LITERALMAP_LITERALSENTRY._serialized_options = b'8\001' + _BINDINGDATAMAP_BINDINGSENTRY._options = None + _BINDINGDATAMAP_BINDINGSENTRY._serialized_options = b'8\001' + _globals['_PRIMITIVE']._serialized_start=170 + _globals['_PRIMITIVE']._serialized_end=433 + _globals['_VOID']._serialized_start=435 + _globals['_VOID']._serialized_end=441 + _globals['_BLOB']._serialized_start=443 + _globals['_BLOB']._serialized_end=524 + _globals['_BLOBMETADATA']._serialized_start=526 + _globals['_BLOBMETADATA']._serialized_end=585 + _globals['_BINARY']._serialized_start=587 + _globals['_BINARY']._serialized_end=635 + _globals['_SCHEMA']._serialized_start=637 + _globals['_SCHEMA']._serialized_end=710 + _globals['_UNION']._serialized_start=712 + _globals['_UNION']._serialized_end=813 + _globals['_STRUCTUREDDATASETMETADATA']._serialized_start=815 + _globals['_STRUCTUREDDATASETMETADATA']._serialized_end=936 + _globals['_STRUCTUREDDATASET']._serialized_start=938 + _globals['_STRUCTUREDDATASET']._serialized_end=1045 + _globals['_SCALAR']._serialized_start=1048 + _globals['_SCALAR']._serialized_end=1544 + _globals['_LITERAL']._serialized_start=1547 + _globals['_LITERAL']._serialized_end=1876 + _globals['_LITERAL_METADATAENTRY']._serialized_start=1808 + _globals['_LITERAL_METADATAENTRY']._serialized_end=1867 + _globals['_LITERALCOLLECTION']._serialized_start=1878 + _globals['_LITERALCOLLECTION']._serialized_end=1949 + _globals['_LITERALMAP']._serialized_start=1952 + _globals['_LITERALMAP']._serialized_end=2118 + _globals['_LITERALMAP_LITERALSENTRY']._serialized_start=2035 + _globals['_LITERALMAP_LITERALSENTRY']._serialized_end=2118 + _globals['_BINDINGDATACOLLECTION']._serialized_start=2120 + _globals['_BINDINGDATACOLLECTION']._serialized_end=2199 + _globals['_BINDINGDATAMAP']._serialized_start=2202 + _globals['_BINDINGDATAMAP']._serialized_end=2380 + _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_start=2293 + _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_end=2380 + _globals['_UNIONINFO']._serialized_start=2382 + _globals['_UNIONINFO']._serialized_end=2453 + _globals['_BINDINGDATA']._serialized_start=2456 + _globals['_BINDINGDATA']._serialized_end=2758 + _globals['_BINDING']._serialized_start=2760 + _globals['_BINDING']._serialized_end=2841 + _globals['_KEYVALUEPAIR']._serialized_start=2843 + _globals['_KEYVALUEPAIR']._serialized_end=2897 + _globals['_RETRYSTRATEGY']._serialized_start=2899 + _globals['_RETRYSTRATEGY']._serialized_end=2940 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi new file mode 100644 index 0000000000..62622203bd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi @@ -0,0 +1,205 @@ +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from flyteidl.core import types_pb2 as _types_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Primitive(_message.Message): + __slots__ = ["integer", "float_value", "string_value", "boolean", "datetime", "duration"] + INTEGER_FIELD_NUMBER: _ClassVar[int] + FLOAT_VALUE_FIELD_NUMBER: _ClassVar[int] + STRING_VALUE_FIELD_NUMBER: _ClassVar[int] + BOOLEAN_FIELD_NUMBER: _ClassVar[int] + DATETIME_FIELD_NUMBER: _ClassVar[int] + DURATION_FIELD_NUMBER: _ClassVar[int] + integer: int + float_value: float + string_value: str + boolean: bool + datetime: _timestamp_pb2.Timestamp + duration: _duration_pb2.Duration + def __init__(self, integer: _Optional[int] = ..., float_value: _Optional[float] = ..., string_value: _Optional[str] = ..., boolean: bool = ..., datetime: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class Void(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Blob(_message.Message): + __slots__ = ["metadata", "uri"] + METADATA_FIELD_NUMBER: _ClassVar[int] + URI_FIELD_NUMBER: _ClassVar[int] + metadata: BlobMetadata + uri: str + def __init__(self, metadata: _Optional[_Union[BlobMetadata, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... + +class BlobMetadata(_message.Message): + __slots__ = ["type"] + TYPE_FIELD_NUMBER: _ClassVar[int] + type: _types_pb2.BlobType + def __init__(self, type: _Optional[_Union[_types_pb2.BlobType, _Mapping]] = ...) -> None: ... + +class Binary(_message.Message): + __slots__ = ["value", "tag"] + VALUE_FIELD_NUMBER: _ClassVar[int] + TAG_FIELD_NUMBER: _ClassVar[int] + value: bytes + tag: str + def __init__(self, value: _Optional[bytes] = ..., tag: _Optional[str] = ...) -> None: ... + +class Schema(_message.Message): + __slots__ = ["uri", "type"] + URI_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + uri: str + type: _types_pb2.SchemaType + def __init__(self, uri: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.SchemaType, _Mapping]] = ...) -> None: ... + +class Union(_message.Message): + __slots__ = ["value", "type"] + VALUE_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + value: Literal + type: _types_pb2.LiteralType + def __init__(self, value: _Optional[_Union[Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... + +class StructuredDatasetMetadata(_message.Message): + __slots__ = ["structured_dataset_type"] + STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] + structured_dataset_type: _types_pb2.StructuredDatasetType + def __init__(self, structured_dataset_type: _Optional[_Union[_types_pb2.StructuredDatasetType, _Mapping]] = ...) -> None: ... + +class StructuredDataset(_message.Message): + __slots__ = ["uri", "metadata"] + URI_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + uri: str + metadata: StructuredDatasetMetadata + def __init__(self, uri: _Optional[str] = ..., metadata: _Optional[_Union[StructuredDatasetMetadata, _Mapping]] = ...) -> None: ... + +class Scalar(_message.Message): + __slots__ = ["primitive", "blob", "binary", "schema", "none_type", "error", "generic", "structured_dataset", "union"] + PRIMITIVE_FIELD_NUMBER: _ClassVar[int] + BLOB_FIELD_NUMBER: _ClassVar[int] + BINARY_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + NONE_TYPE_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + GENERIC_FIELD_NUMBER: _ClassVar[int] + STRUCTURED_DATASET_FIELD_NUMBER: _ClassVar[int] + UNION_FIELD_NUMBER: _ClassVar[int] + primitive: Primitive + blob: Blob + binary: Binary + schema: Schema + none_type: Void + error: _types_pb2.Error + generic: _struct_pb2.Struct + structured_dataset: StructuredDataset + union: Union + def __init__(self, primitive: _Optional[_Union[Primitive, _Mapping]] = ..., blob: _Optional[_Union[Blob, _Mapping]] = ..., binary: _Optional[_Union[Binary, _Mapping]] = ..., schema: _Optional[_Union[Schema, _Mapping]] = ..., none_type: _Optional[_Union[Void, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ..., generic: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., structured_dataset: _Optional[_Union[StructuredDataset, _Mapping]] = ..., union: _Optional[_Union[Union, _Mapping]] = ...) -> None: ... + +class Literal(_message.Message): + __slots__ = ["scalar", "collection", "map", "hash", "metadata"] + class MetadataEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + SCALAR_FIELD_NUMBER: _ClassVar[int] + COLLECTION_FIELD_NUMBER: _ClassVar[int] + MAP_FIELD_NUMBER: _ClassVar[int] + HASH_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + scalar: Scalar + collection: LiteralCollection + map: LiteralMap + hash: str + metadata: _containers.ScalarMap[str, str] + def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[LiteralCollection, _Mapping]] = ..., map: _Optional[_Union[LiteralMap, _Mapping]] = ..., hash: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class LiteralCollection(_message.Message): + __slots__ = ["literals"] + LITERALS_FIELD_NUMBER: _ClassVar[int] + literals: _containers.RepeatedCompositeFieldContainer[Literal] + def __init__(self, literals: _Optional[_Iterable[_Union[Literal, _Mapping]]] = ...) -> None: ... + +class LiteralMap(_message.Message): + __slots__ = ["literals"] + class LiteralsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Literal + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Literal, _Mapping]] = ...) -> None: ... + LITERALS_FIELD_NUMBER: _ClassVar[int] + literals: _containers.MessageMap[str, Literal] + def __init__(self, literals: _Optional[_Mapping[str, Literal]] = ...) -> None: ... + +class BindingDataCollection(_message.Message): + __slots__ = ["bindings"] + BINDINGS_FIELD_NUMBER: _ClassVar[int] + bindings: _containers.RepeatedCompositeFieldContainer[BindingData] + def __init__(self, bindings: _Optional[_Iterable[_Union[BindingData, _Mapping]]] = ...) -> None: ... + +class BindingDataMap(_message.Message): + __slots__ = ["bindings"] + class BindingsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: BindingData + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... + BINDINGS_FIELD_NUMBER: _ClassVar[int] + bindings: _containers.MessageMap[str, BindingData] + def __init__(self, bindings: _Optional[_Mapping[str, BindingData]] = ...) -> None: ... + +class UnionInfo(_message.Message): + __slots__ = ["targetType"] + TARGETTYPE_FIELD_NUMBER: _ClassVar[int] + targetType: _types_pb2.LiteralType + def __init__(self, targetType: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... + +class BindingData(_message.Message): + __slots__ = ["scalar", "collection", "promise", "map", "union"] + SCALAR_FIELD_NUMBER: _ClassVar[int] + COLLECTION_FIELD_NUMBER: _ClassVar[int] + PROMISE_FIELD_NUMBER: _ClassVar[int] + MAP_FIELD_NUMBER: _ClassVar[int] + UNION_FIELD_NUMBER: _ClassVar[int] + scalar: Scalar + collection: BindingDataCollection + promise: _types_pb2.OutputReference + map: BindingDataMap + union: UnionInfo + def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[BindingDataCollection, _Mapping]] = ..., promise: _Optional[_Union[_types_pb2.OutputReference, _Mapping]] = ..., map: _Optional[_Union[BindingDataMap, _Mapping]] = ..., union: _Optional[_Union[UnionInfo, _Mapping]] = ...) -> None: ... + +class Binding(_message.Message): + __slots__ = ["var", "binding"] + VAR_FIELD_NUMBER: _ClassVar[int] + BINDING_FIELD_NUMBER: _ClassVar[int] + var: str + binding: BindingData + def __init__(self, var: _Optional[str] = ..., binding: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... + +class KeyValuePair(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class RetryStrategy(_message.Message): + __slots__ = ["retries"] + RETRIES_FIELD_NUMBER: _ClassVar[int] + retries: int + def __init__(self, retries: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py new file mode 100644 index 0000000000..4624badde3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/metrics.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/metrics.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa3\x03\n\x04Span\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12M\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\nworkflowId\x12\x41\n\x07node_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x06nodeId\x12\x41\n\x07task_id\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x06taskId\x12#\n\x0coperation_id\x18\x06 \x01(\tH\x00R\x0boperationId\x12)\n\x05spans\x18\x07 \x03(\x0b\x32\x13.flyteidl.core.SpanR\x05spansB\x04\n\x02id\"\\\n\x15\x45xecutionMetricResult\x12\x16\n\x06metric\x18\x01 \x01(\tR\x06metric\x12+\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x04\x64\x61taB\xb2\x01\n\x11\x63om.flyteidl.coreB\x0cMetricsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.metrics_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014MetricsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_SPAN']._serialized_start=142 + _globals['_SPAN']._serialized_end=561 + _globals['_EXECUTIONMETRICRESULT']._serialized_start=563 + _globals['_EXECUTIONMETRICRESULT']._serialized_end=655 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi new file mode 100644 index 0000000000..5e3c7d871e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi @@ -0,0 +1,35 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Span(_message.Message): + __slots__ = ["start_time", "end_time", "workflow_id", "node_id", "task_id", "operation_id", "spans"] + START_TIME_FIELD_NUMBER: _ClassVar[int] + END_TIME_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + TASK_ID_FIELD_NUMBER: _ClassVar[int] + OPERATION_ID_FIELD_NUMBER: _ClassVar[int] + SPANS_FIELD_NUMBER: _ClassVar[int] + start_time: _timestamp_pb2.Timestamp + end_time: _timestamp_pb2.Timestamp + workflow_id: _identifier_pb2.WorkflowExecutionIdentifier + node_id: _identifier_pb2.NodeExecutionIdentifier + task_id: _identifier_pb2.TaskExecutionIdentifier + operation_id: str + spans: _containers.RepeatedCompositeFieldContainer[Span] + def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., operation_id: _Optional[str] = ..., spans: _Optional[_Iterable[_Union[Span, _Mapping]]] = ...) -> None: ... + +class ExecutionMetricResult(_message.Message): + __slots__ = ["metric", "data"] + METRIC_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + metric: str + data: _struct_pb2.Struct + def __init__(self, metric: _Optional[str] = ..., data: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py new file mode 100644 index 0000000000..023c8e4aa3 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/security.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/security.proto\x12\rflyteidl.core\"\xd0\x01\n\x06Secret\x12\x14\n\x05group\x18\x01 \x01(\tR\x05group\x12#\n\rgroup_version\x18\x02 \x01(\tR\x0cgroupVersion\x12\x10\n\x03key\x18\x03 \x01(\tR\x03key\x12L\n\x11mount_requirement\x18\x04 \x01(\x0e\x32\x1f.flyteidl.core.Secret.MountTypeR\x10mountRequirement\"+\n\tMountType\x12\x07\n\x03\x41NY\x10\x00\x12\x0b\n\x07\x45NV_VAR\x10\x01\x12\x08\n\x04\x46ILE\x10\x02\"g\n\x0cOAuth2Client\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12:\n\rclient_secret\x18\x02 \x01(\x0b\x32\x15.flyteidl.core.SecretR\x0c\x63lientSecret\"\xc6\x01\n\x08Identity\x12\x19\n\x08iam_role\x18\x01 \x01(\tR\x07iamRole\x12.\n\x13k8s_service_account\x18\x02 \x01(\tR\x11k8sServiceAccount\x12@\n\roauth2_client\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x0coauth2Client\x12-\n\x12\x65xecution_identity\x18\x04 \x01(\tR\x11\x65xecutionIdentity\"\x96\x02\n\x12OAuth2TokenRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12:\n\x04type\x18\x02 \x01(\x0e\x32&.flyteidl.core.OAuth2TokenRequest.TypeR\x04type\x12\x33\n\x06\x63lient\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x06\x63lient\x12\x34\n\x16idp_discovery_endpoint\x18\x04 \x01(\tR\x14idpDiscoveryEndpoint\x12%\n\x0etoken_endpoint\x18\x05 \x01(\tR\rtokenEndpoint\"\x1e\n\x04Type\x12\x16\n\x12\x43LIENT_CREDENTIALS\x10\x00\"\xad\x01\n\x0fSecurityContext\x12.\n\x06run_as\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.IdentityR\x05runAs\x12/\n\x07secrets\x18\x02 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x07secrets\x12\x39\n\x06tokens\x18\x03 \x03(\x0b\x32!.flyteidl.core.OAuth2TokenRequestR\x06tokensB\xb3\x01\n\x11\x63om.flyteidl.coreB\rSecurityProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.security_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rSecurityProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_SECRET']._serialized_start=48 + _globals['_SECRET']._serialized_end=256 + _globals['_SECRET_MOUNTTYPE']._serialized_start=213 + _globals['_SECRET_MOUNTTYPE']._serialized_end=256 + _globals['_OAUTH2CLIENT']._serialized_start=258 + _globals['_OAUTH2CLIENT']._serialized_end=361 + _globals['_IDENTITY']._serialized_start=364 + _globals['_IDENTITY']._serialized_end=562 + _globals['_OAUTH2TOKENREQUEST']._serialized_start=565 + _globals['_OAUTH2TOKENREQUEST']._serialized_end=843 + _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_start=813 + _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_end=843 + _globals['_SECURITYCONTEXT']._serialized_start=846 + _globals['_SECURITYCONTEXT']._serialized_end=1019 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi new file mode 100644 index 0000000000..028f85204a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi @@ -0,0 +1,75 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Secret(_message.Message): + __slots__ = ["group", "group_version", "key", "mount_requirement"] + class MountType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ANY: _ClassVar[Secret.MountType] + ENV_VAR: _ClassVar[Secret.MountType] + FILE: _ClassVar[Secret.MountType] + ANY: Secret.MountType + ENV_VAR: Secret.MountType + FILE: Secret.MountType + GROUP_FIELD_NUMBER: _ClassVar[int] + GROUP_VERSION_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + MOUNT_REQUIREMENT_FIELD_NUMBER: _ClassVar[int] + group: str + group_version: str + key: str + mount_requirement: Secret.MountType + def __init__(self, group: _Optional[str] = ..., group_version: _Optional[str] = ..., key: _Optional[str] = ..., mount_requirement: _Optional[_Union[Secret.MountType, str]] = ...) -> None: ... + +class OAuth2Client(_message.Message): + __slots__ = ["client_id", "client_secret"] + CLIENT_ID_FIELD_NUMBER: _ClassVar[int] + CLIENT_SECRET_FIELD_NUMBER: _ClassVar[int] + client_id: str + client_secret: Secret + def __init__(self, client_id: _Optional[str] = ..., client_secret: _Optional[_Union[Secret, _Mapping]] = ...) -> None: ... + +class Identity(_message.Message): + __slots__ = ["iam_role", "k8s_service_account", "oauth2_client", "execution_identity"] + IAM_ROLE_FIELD_NUMBER: _ClassVar[int] + K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] + OAUTH2_CLIENT_FIELD_NUMBER: _ClassVar[int] + EXECUTION_IDENTITY_FIELD_NUMBER: _ClassVar[int] + iam_role: str + k8s_service_account: str + oauth2_client: OAuth2Client + execution_identity: str + def __init__(self, iam_role: _Optional[str] = ..., k8s_service_account: _Optional[str] = ..., oauth2_client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., execution_identity: _Optional[str] = ...) -> None: ... + +class OAuth2TokenRequest(_message.Message): + __slots__ = ["name", "type", "client", "idp_discovery_endpoint", "token_endpoint"] + class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CLIENT_CREDENTIALS: _ClassVar[OAuth2TokenRequest.Type] + CLIENT_CREDENTIALS: OAuth2TokenRequest.Type + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + CLIENT_FIELD_NUMBER: _ClassVar[int] + IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + name: str + type: OAuth2TokenRequest.Type + client: OAuth2Client + idp_discovery_endpoint: str + token_endpoint: str + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[OAuth2TokenRequest.Type, str]] = ..., client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., idp_discovery_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ...) -> None: ... + +class SecurityContext(_message.Message): + __slots__ = ["run_as", "secrets", "tokens"] + RUN_AS_FIELD_NUMBER: _ClassVar[int] + SECRETS_FIELD_NUMBER: _ClassVar[int] + TOKENS_FIELD_NUMBER: _ClassVar[int] + run_as: Identity + secrets: _containers.RepeatedCompositeFieldContainer[Secret] + tokens: _containers.RepeatedCompositeFieldContainer[OAuth2TokenRequest] + def __init__(self, run_as: _Optional[_Union[Identity, _Mapping]] = ..., secrets: _Optional[_Iterable[_Union[Secret, _Mapping]]] = ..., tokens: _Optional[_Iterable[_Union[OAuth2TokenRequest, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py new file mode 100644 index 0000000000..6add4552b9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/tasks.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/tasks.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd0\x02\n\tResources\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x08requests\x12>\n\x06limits\x18\x02 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x06limits\x1a`\n\rResourceEntry\x12\x39\n\x04name\x18\x01 \x01(\x0e\x32%.flyteidl.core.Resources.ResourceNameR\x04name\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"]\n\x0cResourceName\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x07\n\x03GPU\x10\x02\x12\n\n\x06MEMORY\x10\x03\x12\x0b\n\x07STORAGE\x10\x04\x12\x15\n\x11\x45PHEMERAL_STORAGE\x10\x05\"\x91\x01\n\x0eGPUAccelerator\x12\x16\n\x06\x64\x65vice\x18\x01 \x01(\tR\x06\x64\x65vice\x12&\n\runpartitioned\x18\x02 \x01(\x08H\x00R\runpartitioned\x12\'\n\x0epartition_size\x18\x03 \x01(\tH\x00R\rpartitionSizeB\x16\n\x14partition_size_value\"[\n\x11\x45xtendedResources\x12\x46\n\x0fgpu_accelerator\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.GPUAcceleratorR\x0egpuAccelerator\"\xac\x01\n\x0fRuntimeMetadata\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.flyteidl.core.RuntimeMetadata.RuntimeTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x16\n\x06\x66lavor\x18\x03 \x01(\tR\x06\x66lavor\"\'\n\x0bRuntimeType\x12\t\n\x05OTHER\x10\x00\x12\r\n\tFLYTE_SDK\x10\x01\"\xac\x05\n\x0cTaskMetadata\x12\"\n\x0c\x64iscoverable\x18\x01 \x01(\x08R\x0c\x64iscoverable\x12\x38\n\x07runtime\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.RuntimeMetadataR\x07runtime\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12+\n\x11\x64iscovery_version\x18\x06 \x01(\tR\x10\x64iscoveryVersion\x12\x38\n\x18\x64\x65precated_error_message\x18\x07 \x01(\tR\x16\x64\x65precatedErrorMessage\x12&\n\rinterruptible\x18\x08 \x01(\x08H\x00R\rinterruptible\x12-\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08R\x11\x63\x61\x63heSerializable\x12%\n\x0egenerates_deck\x18\n \x01(\x08R\rgeneratesDeck\x12\x39\n\x04tags\x18\x0b \x03(\x0b\x32%.flyteidl.core.TaskMetadata.TagsEntryR\x04tags\x12*\n\x11pod_template_name\x18\x0c \x01(\tR\x0fpodTemplateName\x12\x35\n\x17\x63\x61\x63he_ignore_input_vars\x18\r \x03(\tR\x14\x63\x61\x63heIgnoreInputVars\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x15\n\x13interruptible_value\"\xd6\x05\n\x0cTaskTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x37\n\x08metadata\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.TaskMetadataR\x08metadata\x12;\n\tinterface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12/\n\x06\x63ustom\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructR\x06\x63ustom\x12\x38\n\tcontainer\x18\x06 \x01(\x0b\x32\x18.flyteidl.core.ContainerH\x00R\tcontainer\x12\x30\n\x07k8s_pod\x18\x11 \x01(\x0b\x32\x15.flyteidl.core.K8sPodH\x00R\x06k8sPod\x12&\n\x03sql\x18\x12 \x01(\x0b\x32\x12.flyteidl.core.SqlH\x00R\x03sql\x12*\n\x11task_type_version\x18\x07 \x01(\x05R\x0ftaskTypeVersion\x12I\n\x10security_context\x18\x08 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12O\n\x12\x65xtended_resources\x18\t \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResources\x12?\n\x06\x63onfig\x18\x10 \x03(\x0b\x32\'.flyteidl.core.TaskTemplate.ConfigEntryR\x06\x63onfig\x1a\x39\n\x0b\x43onfigEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06target\"6\n\rContainerPort\x12%\n\x0e\x63ontainer_port\x18\x01 \x01(\rR\rcontainerPort\"\xfc\x03\n\tContainer\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x18\n\x07\x63ommand\x18\x02 \x03(\tR\x07\x63ommand\x12\x12\n\x04\x61rgs\x18\x03 \x03(\tR\x04\x61rgs\x12\x36\n\tresources\x18\x04 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12-\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x03\x65nv\x12\x37\n\x06\x63onfig\x18\x06 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairB\x02\x18\x01R\x06\x63onfig\x12\x32\n\x05ports\x18\x07 \x03(\x0b\x32\x1c.flyteidl.core.ContainerPortR\x05ports\x12\x41\n\x0b\x64\x61ta_config\x18\t \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\x12I\n\x0c\x61rchitecture\x18\n \x01(\x0e\x32%.flyteidl.core.Container.ArchitectureR\x0c\x61rchitecture\"I\n\x0c\x41rchitecture\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41MD64\x10\x01\x12\t\n\x05\x41RM64\x10\x02\x12\n\n\x06\x41RM_V6\x10\x03\x12\n\n\x06\x41RM_V7\x10\x04\"\xb5\x02\n\nIOStrategy\x12K\n\rdownload_mode\x18\x01 \x01(\x0e\x32&.flyteidl.core.IOStrategy.DownloadModeR\x0c\x64ownloadMode\x12\x45\n\x0bupload_mode\x18\x02 \x01(\x0e\x32$.flyteidl.core.IOStrategy.UploadModeR\nuploadMode\"L\n\x0c\x44ownloadMode\x12\x12\n\x0e\x44OWNLOAD_EAGER\x10\x00\x12\x13\n\x0f\x44OWNLOAD_STREAM\x10\x01\x12\x13\n\x0f\x44O_NOT_DOWNLOAD\x10\x02\"E\n\nUploadMode\x12\x12\n\x0eUPLOAD_ON_EXIT\x10\x00\x12\x10\n\x0cUPLOAD_EAGER\x10\x01\x12\x11\n\rDO_NOT_UPLOAD\x10\x02\"\xa7\x02\n\x11\x44\x61taLoadingConfig\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x1d\n\ninput_path\x18\x02 \x01(\tR\tinputPath\x12\x1f\n\x0boutput_path\x18\x03 \x01(\tR\noutputPath\x12I\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\x31.flyteidl.core.DataLoadingConfig.LiteralMapFormatR\x06\x66ormat\x12:\n\x0bio_strategy\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.IOStrategyR\nioStrategy\"1\n\x10LiteralMapFormat\x12\x08\n\x04JSON\x10\x00\x12\x08\n\x04YAML\x10\x01\x12\t\n\x05PROTO\x10\x02\"\xbd\x01\n\x06K8sPod\x12<\n\x08metadata\x18\x01 \x01(\x0b\x32 .flyteidl.core.K8sObjectMetadataR\x08metadata\x12\x32\n\x08pod_spec\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x07podSpec\x12\x41\n\x0b\x64\x61ta_config\x18\x03 \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\"\xa9\x02\n\x11K8sObjectMetadata\x12\x44\n\x06labels\x18\x01 \x03(\x0b\x32,.flyteidl.core.K8sObjectMetadata.LabelsEntryR\x06labels\x12S\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32\x31.flyteidl.core.K8sObjectMetadata.AnnotationsEntryR\x0b\x61nnotations\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x92\x01\n\x03Sql\x12\x1c\n\tstatement\x18\x01 \x01(\tR\tstatement\x12\x34\n\x07\x64ialect\x18\x02 \x01(\x0e\x32\x1a.flyteidl.core.Sql.DialectR\x07\x64ialect\"7\n\x07\x44ialect\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04\x41NSI\x10\x01\x12\x08\n\x04HIVE\x10\x02\x12\t\n\x05OTHER\x10\x03\x42\xb0\x01\n\x11\x63om.flyteidl.coreB\nTasksProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.tasks_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTasksProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _TASKMETADATA_TAGSENTRY._options = None + _TASKMETADATA_TAGSENTRY._serialized_options = b'8\001' + _TASKTEMPLATE_CONFIGENTRY._options = None + _TASKTEMPLATE_CONFIGENTRY._serialized_options = b'8\001' + _CONTAINER.fields_by_name['config']._options = None + _CONTAINER.fields_by_name['config']._serialized_options = b'\030\001' + _K8SOBJECTMETADATA_LABELSENTRY._options = None + _K8SOBJECTMETADATA_LABELSENTRY._serialized_options = b'8\001' + _K8SOBJECTMETADATA_ANNOTATIONSENTRY._options = None + _K8SOBJECTMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' + _globals['_RESOURCES']._serialized_start=230 + _globals['_RESOURCES']._serialized_end=566 + _globals['_RESOURCES_RESOURCEENTRY']._serialized_start=375 + _globals['_RESOURCES_RESOURCEENTRY']._serialized_end=471 + _globals['_RESOURCES_RESOURCENAME']._serialized_start=473 + _globals['_RESOURCES_RESOURCENAME']._serialized_end=566 + _globals['_GPUACCELERATOR']._serialized_start=569 + _globals['_GPUACCELERATOR']._serialized_end=714 + _globals['_EXTENDEDRESOURCES']._serialized_start=716 + _globals['_EXTENDEDRESOURCES']._serialized_end=807 + _globals['_RUNTIMEMETADATA']._serialized_start=810 + _globals['_RUNTIMEMETADATA']._serialized_end=982 + _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_start=943 + _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_end=982 + _globals['_TASKMETADATA']._serialized_start=985 + _globals['_TASKMETADATA']._serialized_end=1669 + _globals['_TASKMETADATA_TAGSENTRY']._serialized_start=1591 + _globals['_TASKMETADATA_TAGSENTRY']._serialized_end=1646 + _globals['_TASKTEMPLATE']._serialized_start=1672 + _globals['_TASKTEMPLATE']._serialized_end=2398 + _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_start=2331 + _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_end=2388 + _globals['_CONTAINERPORT']._serialized_start=2400 + _globals['_CONTAINERPORT']._serialized_end=2454 + _globals['_CONTAINER']._serialized_start=2457 + _globals['_CONTAINER']._serialized_end=2965 + _globals['_CONTAINER_ARCHITECTURE']._serialized_start=2892 + _globals['_CONTAINER_ARCHITECTURE']._serialized_end=2965 + _globals['_IOSTRATEGY']._serialized_start=2968 + _globals['_IOSTRATEGY']._serialized_end=3277 + _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_start=3130 + _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_end=3206 + _globals['_IOSTRATEGY_UPLOADMODE']._serialized_start=3208 + _globals['_IOSTRATEGY_UPLOADMODE']._serialized_end=3277 + _globals['_DATALOADINGCONFIG']._serialized_start=3280 + _globals['_DATALOADINGCONFIG']._serialized_end=3575 + _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_start=3526 + _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_end=3575 + _globals['_K8SPOD']._serialized_start=3578 + _globals['_K8SPOD']._serialized_end=3767 + _globals['_K8SOBJECTMETADATA']._serialized_start=3770 + _globals['_K8SOBJECTMETADATA']._serialized_end=4067 + _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_start=3946 + _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_end=4003 + _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_start=4005 + _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_end=4067 + _globals['_SQL']._serialized_start=4070 + _globals['_SQL']._serialized_end=4216 + _globals['_SQL_DIALECT']._serialized_start=4161 + _globals['_SQL_DIALECT']._serialized_end=4216 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi new file mode 100644 index 0000000000..98d1792aee --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi @@ -0,0 +1,280 @@ +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Resources(_message.Message): + __slots__ = ["requests", "limits"] + class ResourceName(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[Resources.ResourceName] + CPU: _ClassVar[Resources.ResourceName] + GPU: _ClassVar[Resources.ResourceName] + MEMORY: _ClassVar[Resources.ResourceName] + STORAGE: _ClassVar[Resources.ResourceName] + EPHEMERAL_STORAGE: _ClassVar[Resources.ResourceName] + UNKNOWN: Resources.ResourceName + CPU: Resources.ResourceName + GPU: Resources.ResourceName + MEMORY: Resources.ResourceName + STORAGE: Resources.ResourceName + EPHEMERAL_STORAGE: Resources.ResourceName + class ResourceEntry(_message.Message): + __slots__ = ["name", "value"] + NAME_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + name: Resources.ResourceName + value: str + def __init__(self, name: _Optional[_Union[Resources.ResourceName, str]] = ..., value: _Optional[str] = ...) -> None: ... + REQUESTS_FIELD_NUMBER: _ClassVar[int] + LIMITS_FIELD_NUMBER: _ClassVar[int] + requests: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] + limits: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] + def __init__(self, requests: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ..., limits: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ...) -> None: ... + +class GPUAccelerator(_message.Message): + __slots__ = ["device", "unpartitioned", "partition_size"] + DEVICE_FIELD_NUMBER: _ClassVar[int] + UNPARTITIONED_FIELD_NUMBER: _ClassVar[int] + PARTITION_SIZE_FIELD_NUMBER: _ClassVar[int] + device: str + unpartitioned: bool + partition_size: str + def __init__(self, device: _Optional[str] = ..., unpartitioned: bool = ..., partition_size: _Optional[str] = ...) -> None: ... + +class ExtendedResources(_message.Message): + __slots__ = ["gpu_accelerator"] + GPU_ACCELERATOR_FIELD_NUMBER: _ClassVar[int] + gpu_accelerator: GPUAccelerator + def __init__(self, gpu_accelerator: _Optional[_Union[GPUAccelerator, _Mapping]] = ...) -> None: ... + +class RuntimeMetadata(_message.Message): + __slots__ = ["type", "version", "flavor"] + class RuntimeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + OTHER: _ClassVar[RuntimeMetadata.RuntimeType] + FLYTE_SDK: _ClassVar[RuntimeMetadata.RuntimeType] + OTHER: RuntimeMetadata.RuntimeType + FLYTE_SDK: RuntimeMetadata.RuntimeType + TYPE_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + FLAVOR_FIELD_NUMBER: _ClassVar[int] + type: RuntimeMetadata.RuntimeType + version: str + flavor: str + def __init__(self, type: _Optional[_Union[RuntimeMetadata.RuntimeType, str]] = ..., version: _Optional[str] = ..., flavor: _Optional[str] = ...) -> None: ... + +class TaskMetadata(_message.Message): + __slots__ = ["discoverable", "runtime", "timeout", "retries", "discovery_version", "deprecated_error_message", "interruptible", "cache_serializable", "generates_deck", "tags", "pod_template_name", "cache_ignore_input_vars"] + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + DISCOVERABLE_FIELD_NUMBER: _ClassVar[int] + RUNTIME_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_FIELD_NUMBER: _ClassVar[int] + RETRIES_FIELD_NUMBER: _ClassVar[int] + DISCOVERY_VERSION_FIELD_NUMBER: _ClassVar[int] + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] + GENERATES_DECK_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + POD_TEMPLATE_NAME_FIELD_NUMBER: _ClassVar[int] + CACHE_IGNORE_INPUT_VARS_FIELD_NUMBER: _ClassVar[int] + discoverable: bool + runtime: RuntimeMetadata + timeout: _duration_pb2.Duration + retries: _literals_pb2.RetryStrategy + discovery_version: str + deprecated_error_message: str + interruptible: bool + cache_serializable: bool + generates_deck: bool + tags: _containers.ScalarMap[str, str] + pod_template_name: str + cache_ignore_input_vars: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, discoverable: bool = ..., runtime: _Optional[_Union[RuntimeMetadata, _Mapping]] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., discovery_version: _Optional[str] = ..., deprecated_error_message: _Optional[str] = ..., interruptible: bool = ..., cache_serializable: bool = ..., generates_deck: bool = ..., tags: _Optional[_Mapping[str, str]] = ..., pod_template_name: _Optional[str] = ..., cache_ignore_input_vars: _Optional[_Iterable[str]] = ...) -> None: ... + +class TaskTemplate(_message.Message): + __slots__ = ["id", "type", "metadata", "interface", "custom", "container", "k8s_pod", "sql", "task_type_version", "security_context", "extended_resources", "config"] + class ConfigEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + INTERFACE_FIELD_NUMBER: _ClassVar[int] + CUSTOM_FIELD_NUMBER: _ClassVar[int] + CONTAINER_FIELD_NUMBER: _ClassVar[int] + K8S_POD_FIELD_NUMBER: _ClassVar[int] + SQL_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_VERSION_FIELD_NUMBER: _ClassVar[int] + SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] + EXTENDED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + type: str + metadata: TaskMetadata + interface: _interface_pb2.TypedInterface + custom: _struct_pb2.Struct + container: Container + k8s_pod: K8sPod + sql: Sql + task_type_version: int + security_context: _security_pb2.SecurityContext + extended_resources: ExtendedResources + config: _containers.ScalarMap[str, str] + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., type: _Optional[str] = ..., metadata: _Optional[_Union[TaskMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., custom: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., container: _Optional[_Union[Container, _Mapping]] = ..., k8s_pod: _Optional[_Union[K8sPod, _Mapping]] = ..., sql: _Optional[_Union[Sql, _Mapping]] = ..., task_type_version: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., extended_resources: _Optional[_Union[ExtendedResources, _Mapping]] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class ContainerPort(_message.Message): + __slots__ = ["container_port"] + CONTAINER_PORT_FIELD_NUMBER: _ClassVar[int] + container_port: int + def __init__(self, container_port: _Optional[int] = ...) -> None: ... + +class Container(_message.Message): + __slots__ = ["image", "command", "args", "resources", "env", "config", "ports", "data_config", "architecture"] + class Architecture(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNKNOWN: _ClassVar[Container.Architecture] + AMD64: _ClassVar[Container.Architecture] + ARM64: _ClassVar[Container.Architecture] + ARM_V6: _ClassVar[Container.Architecture] + ARM_V7: _ClassVar[Container.Architecture] + UNKNOWN: Container.Architecture + AMD64: Container.Architecture + ARM64: Container.Architecture + ARM_V6: Container.Architecture + ARM_V7: Container.Architecture + IMAGE_FIELD_NUMBER: _ClassVar[int] + COMMAND_FIELD_NUMBER: _ClassVar[int] + ARGS_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + ENV_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + PORTS_FIELD_NUMBER: _ClassVar[int] + DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + ARCHITECTURE_FIELD_NUMBER: _ClassVar[int] + image: str + command: _containers.RepeatedScalarFieldContainer[str] + args: _containers.RepeatedScalarFieldContainer[str] + resources: Resources + env: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] + config: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] + ports: _containers.RepeatedCompositeFieldContainer[ContainerPort] + data_config: DataLoadingConfig + architecture: Container.Architecture + def __init__(self, image: _Optional[str] = ..., command: _Optional[_Iterable[str]] = ..., args: _Optional[_Iterable[str]] = ..., resources: _Optional[_Union[Resources, _Mapping]] = ..., env: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., config: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., ports: _Optional[_Iterable[_Union[ContainerPort, _Mapping]]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ..., architecture: _Optional[_Union[Container.Architecture, str]] = ...) -> None: ... + +class IOStrategy(_message.Message): + __slots__ = ["download_mode", "upload_mode"] + class DownloadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DOWNLOAD_EAGER: _ClassVar[IOStrategy.DownloadMode] + DOWNLOAD_STREAM: _ClassVar[IOStrategy.DownloadMode] + DO_NOT_DOWNLOAD: _ClassVar[IOStrategy.DownloadMode] + DOWNLOAD_EAGER: IOStrategy.DownloadMode + DOWNLOAD_STREAM: IOStrategy.DownloadMode + DO_NOT_DOWNLOAD: IOStrategy.DownloadMode + class UploadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UPLOAD_ON_EXIT: _ClassVar[IOStrategy.UploadMode] + UPLOAD_EAGER: _ClassVar[IOStrategy.UploadMode] + DO_NOT_UPLOAD: _ClassVar[IOStrategy.UploadMode] + UPLOAD_ON_EXIT: IOStrategy.UploadMode + UPLOAD_EAGER: IOStrategy.UploadMode + DO_NOT_UPLOAD: IOStrategy.UploadMode + DOWNLOAD_MODE_FIELD_NUMBER: _ClassVar[int] + UPLOAD_MODE_FIELD_NUMBER: _ClassVar[int] + download_mode: IOStrategy.DownloadMode + upload_mode: IOStrategy.UploadMode + def __init__(self, download_mode: _Optional[_Union[IOStrategy.DownloadMode, str]] = ..., upload_mode: _Optional[_Union[IOStrategy.UploadMode, str]] = ...) -> None: ... + +class DataLoadingConfig(_message.Message): + __slots__ = ["enabled", "input_path", "output_path", "format", "io_strategy"] + class LiteralMapFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + JSON: _ClassVar[DataLoadingConfig.LiteralMapFormat] + YAML: _ClassVar[DataLoadingConfig.LiteralMapFormat] + PROTO: _ClassVar[DataLoadingConfig.LiteralMapFormat] + JSON: DataLoadingConfig.LiteralMapFormat + YAML: DataLoadingConfig.LiteralMapFormat + PROTO: DataLoadingConfig.LiteralMapFormat + ENABLED_FIELD_NUMBER: _ClassVar[int] + INPUT_PATH_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + IO_STRATEGY_FIELD_NUMBER: _ClassVar[int] + enabled: bool + input_path: str + output_path: str + format: DataLoadingConfig.LiteralMapFormat + io_strategy: IOStrategy + def __init__(self, enabled: bool = ..., input_path: _Optional[str] = ..., output_path: _Optional[str] = ..., format: _Optional[_Union[DataLoadingConfig.LiteralMapFormat, str]] = ..., io_strategy: _Optional[_Union[IOStrategy, _Mapping]] = ...) -> None: ... + +class K8sPod(_message.Message): + __slots__ = ["metadata", "pod_spec", "data_config"] + METADATA_FIELD_NUMBER: _ClassVar[int] + POD_SPEC_FIELD_NUMBER: _ClassVar[int] + DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] + metadata: K8sObjectMetadata + pod_spec: _struct_pb2.Struct + data_config: DataLoadingConfig + def __init__(self, metadata: _Optional[_Union[K8sObjectMetadata, _Mapping]] = ..., pod_spec: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ...) -> None: ... + +class K8sObjectMetadata(_message.Message): + __slots__ = ["labels", "annotations"] + class LabelsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class AnnotationsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + LABELS_FIELD_NUMBER: _ClassVar[int] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + labels: _containers.ScalarMap[str, str] + annotations: _containers.ScalarMap[str, str] + def __init__(self, labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class Sql(_message.Message): + __slots__ = ["statement", "dialect"] + class Dialect(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + UNDEFINED: _ClassVar[Sql.Dialect] + ANSI: _ClassVar[Sql.Dialect] + HIVE: _ClassVar[Sql.Dialect] + OTHER: _ClassVar[Sql.Dialect] + UNDEFINED: Sql.Dialect + ANSI: Sql.Dialect + HIVE: Sql.Dialect + OTHER: Sql.Dialect + STATEMENT_FIELD_NUMBER: _ClassVar[int] + DIALECT_FIELD_NUMBER: _ClassVar[int] + statement: str + dialect: Sql.Dialect + def __init__(self, statement: _Optional[str] = ..., dialect: _Optional[_Union[Sql.Dialect, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py new file mode 100644 index 0000000000..3043a0cf6b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/types.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/types.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\xa1\x02\n\nSchemaType\x12@\n\x07\x63olumns\x18\x03 \x03(\x0b\x32&.flyteidl.core.SchemaType.SchemaColumnR\x07\x63olumns\x1a\xd0\x01\n\x0cSchemaColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12K\n\x04type\x18\x02 \x01(\x0e\x32\x37.flyteidl.core.SchemaType.SchemaColumn.SchemaColumnTypeR\x04type\"_\n\x10SchemaColumnType\x12\x0b\n\x07INTEGER\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0b\n\x07\x42OOLEAN\x10\x03\x12\x0c\n\x08\x44\x41TETIME\x10\x04\x12\x0c\n\x08\x44URATION\x10\x05\"\xc7\x02\n\x15StructuredDatasetType\x12L\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x32.flyteidl.core.StructuredDatasetType.DatasetColumnR\x07\x63olumns\x12\x16\n\x06\x66ormat\x18\x02 \x01(\tR\x06\x66ormat\x12\x30\n\x14\x65xternal_schema_type\x18\x03 \x01(\tR\x12\x65xternalSchemaType\x12\x32\n\x15\x65xternal_schema_bytes\x18\x04 \x01(\x0cR\x13\x65xternalSchemaBytes\x1a\x62\n\rDatasetColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12=\n\x0cliteral_type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x0bliteralType\"\xa7\x01\n\x08\x42lobType\x12\x16\n\x06\x66ormat\x18\x01 \x01(\tR\x06\x66ormat\x12R\n\x0e\x64imensionality\x18\x02 \x01(\x0e\x32*.flyteidl.core.BlobType.BlobDimensionalityR\x0e\x64imensionality\"/\n\x12\x42lobDimensionality\x12\n\n\x06SINGLE\x10\x00\x12\r\n\tMULTIPART\x10\x01\"\"\n\x08\x45numType\x12\x16\n\x06values\x18\x01 \x03(\tR\x06values\"C\n\tUnionType\x12\x36\n\x08variants\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x08variants\"\xd7\x01\n\rTypeStructure\x12\x10\n\x03tag\x18\x01 \x01(\tR\x03tag\x12V\n\x0e\x64\x61taclass_type\x18\x02 \x03(\x0b\x32/.flyteidl.core.TypeStructure.DataclassTypeEntryR\rdataclassType\x1a\\\n\x12\x44\x61taclassTypeEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x05value:\x02\x38\x01\"K\n\x0eTypeAnnotation\x12\x39\n\x0b\x61nnotations\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x0b\x61nnotations\"\xbc\x05\n\x0bLiteralType\x12\x33\n\x06simple\x18\x01 \x01(\x0e\x32\x19.flyteidl.core.SimpleTypeH\x00R\x06simple\x12\x33\n\x06schema\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeH\x00R\x06schema\x12\x45\n\x0f\x63ollection_type\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0e\x63ollectionType\x12\x42\n\x0emap_value_type\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0cmapValueType\x12-\n\x04\x62lob\x18\x05 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeH\x00R\x04\x62lob\x12\x36\n\tenum_type\x18\x07 \x01(\x0b\x32\x17.flyteidl.core.EnumTypeH\x00R\x08\x65numType\x12^\n\x17structured_dataset_type\x18\x08 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeH\x00R\x15structuredDatasetType\x12\x39\n\nunion_type\x18\n \x01(\x0b\x32\x18.flyteidl.core.UnionTypeH\x00R\tunionType\x12\x33\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\x08metadata\x12=\n\nannotation\x18\t \x01(\x0b\x32\x1d.flyteidl.core.TypeAnnotationR\nannotation\x12:\n\tstructure\x18\x0b \x01(\x0b\x32\x1c.flyteidl.core.TypeStructureR\tstructureB\x06\n\x04type\"z\n\x0fOutputReference\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x10\n\x03var\x18\x02 \x01(\tR\x03var\x12<\n\tattr_path\x18\x03 \x03(\x0b\x32\x1f.flyteidl.core.PromiseAttributeR\x08\x61ttrPath\"_\n\x10PromiseAttribute\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x05H\x00R\x08intValueB\x07\n\x05value\"G\n\x05\x45rror\x12$\n\x0e\x66\x61iled_node_id\x18\x01 \x01(\tR\x0c\x66\x61iledNodeId\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message*\x86\x01\n\nSimpleType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07INTEGER\x10\x01\x12\t\n\x05\x46LOAT\x10\x02\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0c\n\x08\x44\x41TETIME\x10\x05\x12\x0c\n\x08\x44URATION\x10\x06\x12\n\n\x06\x42INARY\x10\x07\x12\t\n\x05\x45RROR\x10\x08\x12\n\n\x06STRUCT\x10\tB\xb0\x01\n\x11\x63om.flyteidl.coreB\nTypesProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.types_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTypesProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _TYPESTRUCTURE_DATACLASSTYPEENTRY._options = None + _TYPESTRUCTURE_DATACLASSTYPEENTRY._serialized_options = b'8\001' + _globals['_SIMPLETYPE']._serialized_start=2264 + _globals['_SIMPLETYPE']._serialized_end=2398 + _globals['_SCHEMATYPE']._serialized_start=75 + _globals['_SCHEMATYPE']._serialized_end=364 + _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_start=156 + _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_end=364 + _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_start=269 + _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_end=364 + _globals['_STRUCTUREDDATASETTYPE']._serialized_start=367 + _globals['_STRUCTUREDDATASETTYPE']._serialized_end=694 + _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_start=596 + _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_end=694 + _globals['_BLOBTYPE']._serialized_start=697 + _globals['_BLOBTYPE']._serialized_end=864 + _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_start=817 + _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_end=864 + _globals['_ENUMTYPE']._serialized_start=866 + _globals['_ENUMTYPE']._serialized_end=900 + _globals['_UNIONTYPE']._serialized_start=902 + _globals['_UNIONTYPE']._serialized_end=969 + _globals['_TYPESTRUCTURE']._serialized_start=972 + _globals['_TYPESTRUCTURE']._serialized_end=1187 + _globals['_TYPESTRUCTURE_DATACLASSTYPEENTRY']._serialized_start=1095 + _globals['_TYPESTRUCTURE_DATACLASSTYPEENTRY']._serialized_end=1187 + _globals['_TYPEANNOTATION']._serialized_start=1189 + _globals['_TYPEANNOTATION']._serialized_end=1264 + _globals['_LITERALTYPE']._serialized_start=1267 + _globals['_LITERALTYPE']._serialized_end=1967 + _globals['_OUTPUTREFERENCE']._serialized_start=1969 + _globals['_OUTPUTREFERENCE']._serialized_end=2091 + _globals['_PROMISEATTRIBUTE']._serialized_start=2093 + _globals['_PROMISEATTRIBUTE']._serialized_end=2188 + _globals['_ERROR']._serialized_start=2190 + _globals['_ERROR']._serialized_end=2261 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi new file mode 100644 index 0000000000..9028afabd5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi @@ -0,0 +1,176 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class SimpleType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + NONE: _ClassVar[SimpleType] + INTEGER: _ClassVar[SimpleType] + FLOAT: _ClassVar[SimpleType] + STRING: _ClassVar[SimpleType] + BOOLEAN: _ClassVar[SimpleType] + DATETIME: _ClassVar[SimpleType] + DURATION: _ClassVar[SimpleType] + BINARY: _ClassVar[SimpleType] + ERROR: _ClassVar[SimpleType] + STRUCT: _ClassVar[SimpleType] +NONE: SimpleType +INTEGER: SimpleType +FLOAT: SimpleType +STRING: SimpleType +BOOLEAN: SimpleType +DATETIME: SimpleType +DURATION: SimpleType +BINARY: SimpleType +ERROR: SimpleType +STRUCT: SimpleType + +class SchemaType(_message.Message): + __slots__ = ["columns"] + class SchemaColumn(_message.Message): + __slots__ = ["name", "type"] + class SchemaColumnType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + INTEGER: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + FLOAT: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + STRING: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + BOOLEAN: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + DATETIME: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + DURATION: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] + INTEGER: SchemaType.SchemaColumn.SchemaColumnType + FLOAT: SchemaType.SchemaColumn.SchemaColumnType + STRING: SchemaType.SchemaColumn.SchemaColumnType + BOOLEAN: SchemaType.SchemaColumn.SchemaColumnType + DATETIME: SchemaType.SchemaColumn.SchemaColumnType + DURATION: SchemaType.SchemaColumn.SchemaColumnType + NAME_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + name: str + type: SchemaType.SchemaColumn.SchemaColumnType + def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[SchemaType.SchemaColumn.SchemaColumnType, str]] = ...) -> None: ... + COLUMNS_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[SchemaType.SchemaColumn] + def __init__(self, columns: _Optional[_Iterable[_Union[SchemaType.SchemaColumn, _Mapping]]] = ...) -> None: ... + +class StructuredDatasetType(_message.Message): + __slots__ = ["columns", "format", "external_schema_type", "external_schema_bytes"] + class DatasetColumn(_message.Message): + __slots__ = ["name", "literal_type"] + NAME_FIELD_NUMBER: _ClassVar[int] + LITERAL_TYPE_FIELD_NUMBER: _ClassVar[int] + name: str + literal_type: LiteralType + def __init__(self, name: _Optional[str] = ..., literal_type: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... + COLUMNS_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[StructuredDatasetType.DatasetColumn] + format: str + external_schema_type: str + external_schema_bytes: bytes + def __init__(self, columns: _Optional[_Iterable[_Union[StructuredDatasetType.DatasetColumn, _Mapping]]] = ..., format: _Optional[str] = ..., external_schema_type: _Optional[str] = ..., external_schema_bytes: _Optional[bytes] = ...) -> None: ... + +class BlobType(_message.Message): + __slots__ = ["format", "dimensionality"] + class BlobDimensionality(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + SINGLE: _ClassVar[BlobType.BlobDimensionality] + MULTIPART: _ClassVar[BlobType.BlobDimensionality] + SINGLE: BlobType.BlobDimensionality + MULTIPART: BlobType.BlobDimensionality + FORMAT_FIELD_NUMBER: _ClassVar[int] + DIMENSIONALITY_FIELD_NUMBER: _ClassVar[int] + format: str + dimensionality: BlobType.BlobDimensionality + def __init__(self, format: _Optional[str] = ..., dimensionality: _Optional[_Union[BlobType.BlobDimensionality, str]] = ...) -> None: ... + +class EnumType(_message.Message): + __slots__ = ["values"] + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ... + +class UnionType(_message.Message): + __slots__ = ["variants"] + VARIANTS_FIELD_NUMBER: _ClassVar[int] + variants: _containers.RepeatedCompositeFieldContainer[LiteralType] + def __init__(self, variants: _Optional[_Iterable[_Union[LiteralType, _Mapping]]] = ...) -> None: ... + +class TypeStructure(_message.Message): + __slots__ = ["tag", "dataclass_type"] + class DataclassTypeEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: LiteralType + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... + TAG_FIELD_NUMBER: _ClassVar[int] + DATACLASS_TYPE_FIELD_NUMBER: _ClassVar[int] + tag: str + dataclass_type: _containers.MessageMap[str, LiteralType] + def __init__(self, tag: _Optional[str] = ..., dataclass_type: _Optional[_Mapping[str, LiteralType]] = ...) -> None: ... + +class TypeAnnotation(_message.Message): + __slots__ = ["annotations"] + ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] + annotations: _struct_pb2.Struct + def __init__(self, annotations: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... + +class LiteralType(_message.Message): + __slots__ = ["simple", "schema", "collection_type", "map_value_type", "blob", "enum_type", "structured_dataset_type", "union_type", "metadata", "annotation", "structure"] + SIMPLE_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + COLLECTION_TYPE_FIELD_NUMBER: _ClassVar[int] + MAP_VALUE_TYPE_FIELD_NUMBER: _ClassVar[int] + BLOB_FIELD_NUMBER: _ClassVar[int] + ENUM_TYPE_FIELD_NUMBER: _ClassVar[int] + STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] + UNION_TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + ANNOTATION_FIELD_NUMBER: _ClassVar[int] + STRUCTURE_FIELD_NUMBER: _ClassVar[int] + simple: SimpleType + schema: SchemaType + collection_type: LiteralType + map_value_type: LiteralType + blob: BlobType + enum_type: EnumType + structured_dataset_type: StructuredDatasetType + union_type: UnionType + metadata: _struct_pb2.Struct + annotation: TypeAnnotation + structure: TypeStructure + def __init__(self, simple: _Optional[_Union[SimpleType, str]] = ..., schema: _Optional[_Union[SchemaType, _Mapping]] = ..., collection_type: _Optional[_Union[LiteralType, _Mapping]] = ..., map_value_type: _Optional[_Union[LiteralType, _Mapping]] = ..., blob: _Optional[_Union[BlobType, _Mapping]] = ..., enum_type: _Optional[_Union[EnumType, _Mapping]] = ..., structured_dataset_type: _Optional[_Union[StructuredDatasetType, _Mapping]] = ..., union_type: _Optional[_Union[UnionType, _Mapping]] = ..., metadata: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., annotation: _Optional[_Union[TypeAnnotation, _Mapping]] = ..., structure: _Optional[_Union[TypeStructure, _Mapping]] = ...) -> None: ... + +class OutputReference(_message.Message): + __slots__ = ["node_id", "var", "attr_path"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + VAR_FIELD_NUMBER: _ClassVar[int] + ATTR_PATH_FIELD_NUMBER: _ClassVar[int] + node_id: str + var: str + attr_path: _containers.RepeatedCompositeFieldContainer[PromiseAttribute] + def __init__(self, node_id: _Optional[str] = ..., var: _Optional[str] = ..., attr_path: _Optional[_Iterable[_Union[PromiseAttribute, _Mapping]]] = ...) -> None: ... + +class PromiseAttribute(_message.Message): + __slots__ = ["string_value", "int_value"] + STRING_VALUE_FIELD_NUMBER: _ClassVar[int] + INT_VALUE_FIELD_NUMBER: _ClassVar[int] + string_value: str + int_value: int + def __init__(self, string_value: _Optional[str] = ..., int_value: _Optional[int] = ...) -> None: ... + +class Error(_message.Message): + __slots__ = ["failed_node_id", "message"] + FAILED_NODE_ID_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + failed_node_id: str + message: str + def __init__(self, failed_node_id: _Optional[str] = ..., message: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py new file mode 100644 index 0000000000..e7a1b9ee93 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/workflow_closure.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$flyteidl/core/workflow_closure.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x81\x01\n\x0fWorkflowClosure\x12;\n\x08workflow\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08workflow\x12\x31\n\x05tasks\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasksB\xba\x01\n\x11\x63om.flyteidl.coreB\x14WorkflowClosureProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_closure_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\024WorkflowClosureProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _globals['_WORKFLOWCLOSURE']._serialized_start=113 + _globals['_WORKFLOWCLOSURE']._serialized_end=242 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi new file mode 100644 index 0000000000..ae93cec11f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi @@ -0,0 +1,16 @@ +from flyteidl.core import workflow_pb2 as _workflow_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowClosure(_message.Message): + __slots__ = ["workflow", "tasks"] + WORKFLOW_FIELD_NUMBER: _ClassVar[int] + TASKS_FIELD_NUMBER: _ClassVar[int] + workflow: _workflow_pb2.WorkflowTemplate + tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] + def __init__(self, workflow: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py new file mode 100644 index 0000000000..ab629c2b9f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/core/workflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import condition_pb2 as flyteidl_dot_core_dot_condition__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 +from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\"{\n\x07IfBlock\x12>\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\tcondition\x12\x30\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x08thenNode\"\xd4\x01\n\x0bIfElseBlock\x12*\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlockR\x04\x63\x61se\x12,\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlockR\x05other\x12\x32\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00R\x08\x65lseNode\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rrorB\t\n\x07\x64\x65\x66\x61ult\"A\n\nBranchNode\x12\x33\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlockR\x06ifElse\"\x97\x01\n\x08TaskNode\x12>\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0breferenceId\x12>\n\toverrides\x18\x02 \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverridesB\x0b\n\treference\"\xa6\x01\n\x0cWorkflowNode\x12\x42\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\rlaunchplanRef\x12\x45\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0esubWorkflowRefB\x0b\n\treference\"/\n\x10\x41pproveCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\"\x90\x01\n\x0fSignalCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x30\n\x14output_variable_name\x18\x03 \x01(\tR\x12outputVariableName\"G\n\x0eSleepCondition\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\"\xc5\x01\n\x08GateNode\x12;\n\x07\x61pprove\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.ApproveConditionH\x00R\x07\x61pprove\x12\x38\n\x06signal\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SignalConditionH\x00R\x06signal\x12\x35\n\x05sleep\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.SleepConditionH\x00R\x05sleepB\x0b\n\tcondition\"\xbf\x01\n\tArrayNode\x12\'\n\x04node\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x04node\x12 \n\x0bparallelism\x18\x02 \x01(\rR\x0bparallelism\x12%\n\rmin_successes\x18\x03 \x01(\rH\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteria\"\x8c\x03\n\x0cNodeMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12&\n\rinterruptible\x18\x06 \x01(\x08H\x00R\rinterruptible\x12\x1e\n\tcacheable\x18\x07 \x01(\x08H\x01R\tcacheable\x12%\n\rcache_version\x18\x08 \x01(\tH\x02R\x0c\x63\x61\x63heVersion\x12/\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08H\x03R\x11\x63\x61\x63heSerializableB\x15\n\x13interruptible_valueB\x11\n\x0f\x63\x61\x63heable_valueB\x15\n\x13\x63\x61\x63he_version_valueB\x1a\n\x18\x63\x61\x63he_serializable_value\"/\n\x05\x41lias\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x14\n\x05\x61lias\x18\x02 \x01(\tR\x05\x61lias\"\x9f\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadataR\x08metadata\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x06inputs\x12*\n\x11upstream_node_ids\x18\x04 \x03(\tR\x0fupstreamNodeIds\x12;\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.AliasR\routputAliases\x12\x36\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00R\x08taskNode\x12\x42\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00R\x0cworkflowNode\x12<\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00R\nbranchNode\x12\x36\n\tgate_node\x18\t \x01(\x0b\x32\x17.flyteidl.core.GateNodeH\x00R\x08gateNode\x12\x39\n\narray_node\x18\n \x01(\x0b\x32\x18.flyteidl.core.ArrayNodeH\x00R\tarrayNodeB\x08\n\x06target\"\xfc\x02\n\x10WorkflowMetadata\x12M\n\x12quality_of_service\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12N\n\non_failure\x18\x02 \x01(\x0e\x32/.flyteidl.core.WorkflowMetadata.OnFailurePolicyR\tonFailure\x12=\n\x04tags\x18\x03 \x03(\x0b\x32).flyteidl.core.WorkflowMetadata.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"Q\n\x0fOnFailurePolicy\x12\x14\n\x10\x46\x41IL_IMMEDIATELY\x10\x00\x12(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\x10\x01\"@\n\x18WorkflowMetadataDefaults\x12$\n\rinterruptible\x18\x01 \x01(\x08R\rinterruptible\"\xa2\x03\n\x10WorkflowTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadataR\x08metadata\x12;\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12)\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12\x30\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x36\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x0b\x66\x61ilureNode\x12T\n\x11metadata_defaults\x18\x07 \x01(\x0b\x32\'.flyteidl.core.WorkflowMetadataDefaultsR\x10metadataDefaults\"\x9c\x01\n\x11TaskNodeOverrides\x12\x36\n\tresources\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x12\x65xtended_resources\x18\x02 \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResources\"\xba\x01\n\x12LaunchPlanTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\tinterface\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12<\n\x0c\x66ixed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ixedInputsB\xb3\x01\n\x11\x63om.flyteidl.coreB\rWorkflowProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rWorkflowProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' + _WORKFLOWMETADATA_TAGSENTRY._options = None + _WORKFLOWMETADATA_TAGSENTRY._serialized_options = b'8\001' + _globals['_IFBLOCK']._serialized_start=318 + _globals['_IFBLOCK']._serialized_end=441 + _globals['_IFELSEBLOCK']._serialized_start=444 + _globals['_IFELSEBLOCK']._serialized_end=656 + _globals['_BRANCHNODE']._serialized_start=658 + _globals['_BRANCHNODE']._serialized_end=723 + _globals['_TASKNODE']._serialized_start=726 + _globals['_TASKNODE']._serialized_end=877 + _globals['_WORKFLOWNODE']._serialized_start=880 + _globals['_WORKFLOWNODE']._serialized_end=1046 + _globals['_APPROVECONDITION']._serialized_start=1048 + _globals['_APPROVECONDITION']._serialized_end=1095 + _globals['_SIGNALCONDITION']._serialized_start=1098 + _globals['_SIGNALCONDITION']._serialized_end=1242 + _globals['_SLEEPCONDITION']._serialized_start=1244 + _globals['_SLEEPCONDITION']._serialized_end=1315 + _globals['_GATENODE']._serialized_start=1318 + _globals['_GATENODE']._serialized_end=1515 + _globals['_ARRAYNODE']._serialized_start=1518 + _globals['_ARRAYNODE']._serialized_end=1709 + _globals['_NODEMETADATA']._serialized_start=1712 + _globals['_NODEMETADATA']._serialized_end=2108 + _globals['_ALIAS']._serialized_start=2110 + _globals['_ALIAS']._serialized_end=2157 + _globals['_NODE']._serialized_start=2160 + _globals['_NODE']._serialized_end=2703 + _globals['_WORKFLOWMETADATA']._serialized_start=2706 + _globals['_WORKFLOWMETADATA']._serialized_end=3086 + _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_start=2948 + _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_end=3003 + _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_start=3005 + _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_end=3086 + _globals['_WORKFLOWMETADATADEFAULTS']._serialized_start=3088 + _globals['_WORKFLOWMETADATADEFAULTS']._serialized_end=3152 + _globals['_WORKFLOWTEMPLATE']._serialized_start=3155 + _globals['_WORKFLOWTEMPLATE']._serialized_end=3573 + _globals['_TASKNODEOVERRIDES']._serialized_start=3576 + _globals['_TASKNODEOVERRIDES']._serialized_end=3732 + _globals['_LAUNCHPLANTEMPLATE']._serialized_start=3735 + _globals['_LAUNCHPLANTEMPLATE']._serialized_end=3921 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi new file mode 100644 index 0000000000..efee1e9ec2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi @@ -0,0 +1,217 @@ +from flyteidl.core import condition_pb2 as _condition_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.core import types_pb2 as _types_pb2 +from flyteidl.core import security_pb2 as _security_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class IfBlock(_message.Message): + __slots__ = ["condition", "then_node"] + CONDITION_FIELD_NUMBER: _ClassVar[int] + THEN_NODE_FIELD_NUMBER: _ClassVar[int] + condition: _condition_pb2.BooleanExpression + then_node: Node + def __init__(self, condition: _Optional[_Union[_condition_pb2.BooleanExpression, _Mapping]] = ..., then_node: _Optional[_Union[Node, _Mapping]] = ...) -> None: ... + +class IfElseBlock(_message.Message): + __slots__ = ["case", "other", "else_node", "error"] + CASE_FIELD_NUMBER: _ClassVar[int] + OTHER_FIELD_NUMBER: _ClassVar[int] + ELSE_NODE_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + case: IfBlock + other: _containers.RepeatedCompositeFieldContainer[IfBlock] + else_node: Node + error: _types_pb2.Error + def __init__(self, case: _Optional[_Union[IfBlock, _Mapping]] = ..., other: _Optional[_Iterable[_Union[IfBlock, _Mapping]]] = ..., else_node: _Optional[_Union[Node, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ...) -> None: ... + +class BranchNode(_message.Message): + __slots__ = ["if_else"] + IF_ELSE_FIELD_NUMBER: _ClassVar[int] + if_else: IfElseBlock + def __init__(self, if_else: _Optional[_Union[IfElseBlock, _Mapping]] = ...) -> None: ... + +class TaskNode(_message.Message): + __slots__ = ["reference_id", "overrides"] + REFERENCE_ID_FIELD_NUMBER: _ClassVar[int] + OVERRIDES_FIELD_NUMBER: _ClassVar[int] + reference_id: _identifier_pb2.Identifier + overrides: TaskNodeOverrides + def __init__(self, reference_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., overrides: _Optional[_Union[TaskNodeOverrides, _Mapping]] = ...) -> None: ... + +class WorkflowNode(_message.Message): + __slots__ = ["launchplan_ref", "sub_workflow_ref"] + LAUNCHPLAN_REF_FIELD_NUMBER: _ClassVar[int] + SUB_WORKFLOW_REF_FIELD_NUMBER: _ClassVar[int] + launchplan_ref: _identifier_pb2.Identifier + sub_workflow_ref: _identifier_pb2.Identifier + def __init__(self, launchplan_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., sub_workflow_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class ApproveCondition(_message.Message): + __slots__ = ["signal_id"] + SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] + signal_id: str + def __init__(self, signal_id: _Optional[str] = ...) -> None: ... + +class SignalCondition(_message.Message): + __slots__ = ["signal_id", "type", "output_variable_name"] + SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_VARIABLE_NAME_FIELD_NUMBER: _ClassVar[int] + signal_id: str + type: _types_pb2.LiteralType + output_variable_name: str + def __init__(self, signal_id: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., output_variable_name: _Optional[str] = ...) -> None: ... + +class SleepCondition(_message.Message): + __slots__ = ["duration"] + DURATION_FIELD_NUMBER: _ClassVar[int] + duration: _duration_pb2.Duration + def __init__(self, duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class GateNode(_message.Message): + __slots__ = ["approve", "signal", "sleep"] + APPROVE_FIELD_NUMBER: _ClassVar[int] + SIGNAL_FIELD_NUMBER: _ClassVar[int] + SLEEP_FIELD_NUMBER: _ClassVar[int] + approve: ApproveCondition + signal: SignalCondition + sleep: SleepCondition + def __init__(self, approve: _Optional[_Union[ApproveCondition, _Mapping]] = ..., signal: _Optional[_Union[SignalCondition, _Mapping]] = ..., sleep: _Optional[_Union[SleepCondition, _Mapping]] = ...) -> None: ... + +class ArrayNode(_message.Message): + __slots__ = ["node", "parallelism", "min_successes", "min_success_ratio"] + NODE_FIELD_NUMBER: _ClassVar[int] + PARALLELISM_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] + node: Node + parallelism: int + min_successes: int + min_success_ratio: float + def __init__(self, node: _Optional[_Union[Node, _Mapping]] = ..., parallelism: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... + +class NodeMetadata(_message.Message): + __slots__ = ["name", "timeout", "retries", "interruptible", "cacheable", "cache_version", "cache_serializable"] + NAME_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_FIELD_NUMBER: _ClassVar[int] + RETRIES_FIELD_NUMBER: _ClassVar[int] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + CACHEABLE_FIELD_NUMBER: _ClassVar[int] + CACHE_VERSION_FIELD_NUMBER: _ClassVar[int] + CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] + name: str + timeout: _duration_pb2.Duration + retries: _literals_pb2.RetryStrategy + interruptible: bool + cacheable: bool + cache_version: str + cache_serializable: bool + def __init__(self, name: _Optional[str] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., interruptible: bool = ..., cacheable: bool = ..., cache_version: _Optional[str] = ..., cache_serializable: bool = ...) -> None: ... + +class Alias(_message.Message): + __slots__ = ["var", "alias"] + VAR_FIELD_NUMBER: _ClassVar[int] + ALIAS_FIELD_NUMBER: _ClassVar[int] + var: str + alias: str + def __init__(self, var: _Optional[str] = ..., alias: _Optional[str] = ...) -> None: ... + +class Node(_message.Message): + __slots__ = ["id", "metadata", "inputs", "upstream_node_ids", "output_aliases", "task_node", "workflow_node", "branch_node", "gate_node", "array_node"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + INPUTS_FIELD_NUMBER: _ClassVar[int] + UPSTREAM_NODE_IDS_FIELD_NUMBER: _ClassVar[int] + OUTPUT_ALIASES_FIELD_NUMBER: _ClassVar[int] + TASK_NODE_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_NODE_FIELD_NUMBER: _ClassVar[int] + BRANCH_NODE_FIELD_NUMBER: _ClassVar[int] + GATE_NODE_FIELD_NUMBER: _ClassVar[int] + ARRAY_NODE_FIELD_NUMBER: _ClassVar[int] + id: str + metadata: NodeMetadata + inputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] + upstream_node_ids: _containers.RepeatedScalarFieldContainer[str] + output_aliases: _containers.RepeatedCompositeFieldContainer[Alias] + task_node: TaskNode + workflow_node: WorkflowNode + branch_node: BranchNode + gate_node: GateNode + array_node: ArrayNode + def __init__(self, id: _Optional[str] = ..., metadata: _Optional[_Union[NodeMetadata, _Mapping]] = ..., inputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., upstream_node_ids: _Optional[_Iterable[str]] = ..., output_aliases: _Optional[_Iterable[_Union[Alias, _Mapping]]] = ..., task_node: _Optional[_Union[TaskNode, _Mapping]] = ..., workflow_node: _Optional[_Union[WorkflowNode, _Mapping]] = ..., branch_node: _Optional[_Union[BranchNode, _Mapping]] = ..., gate_node: _Optional[_Union[GateNode, _Mapping]] = ..., array_node: _Optional[_Union[ArrayNode, _Mapping]] = ...) -> None: ... + +class WorkflowMetadata(_message.Message): + __slots__ = ["quality_of_service", "on_failure", "tags"] + class OnFailurePolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + FAIL_IMMEDIATELY: _ClassVar[WorkflowMetadata.OnFailurePolicy] + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: _ClassVar[WorkflowMetadata.OnFailurePolicy] + FAIL_IMMEDIATELY: WorkflowMetadata.OnFailurePolicy + FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: WorkflowMetadata.OnFailurePolicy + class TagsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] + ON_FAILURE_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + quality_of_service: _execution_pb2.QualityOfService + on_failure: WorkflowMetadata.OnFailurePolicy + tags: _containers.ScalarMap[str, str] + def __init__(self, quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., on_failure: _Optional[_Union[WorkflowMetadata.OnFailurePolicy, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class WorkflowMetadataDefaults(_message.Message): + __slots__ = ["interruptible"] + INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] + interruptible: bool + def __init__(self, interruptible: bool = ...) -> None: ... + +class WorkflowTemplate(_message.Message): + __slots__ = ["id", "metadata", "interface", "nodes", "outputs", "failure_node", "metadata_defaults"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + INTERFACE_FIELD_NUMBER: _ClassVar[int] + NODES_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + FAILURE_NODE_FIELD_NUMBER: _ClassVar[int] + METADATA_DEFAULTS_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + metadata: WorkflowMetadata + interface: _interface_pb2.TypedInterface + nodes: _containers.RepeatedCompositeFieldContainer[Node] + outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] + failure_node: Node + metadata_defaults: WorkflowMetadataDefaults + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., metadata: _Optional[_Union[WorkflowMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., nodes: _Optional[_Iterable[_Union[Node, _Mapping]]] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., failure_node: _Optional[_Union[Node, _Mapping]] = ..., metadata_defaults: _Optional[_Union[WorkflowMetadataDefaults, _Mapping]] = ...) -> None: ... + +class TaskNodeOverrides(_message.Message): + __slots__ = ["resources", "extended_resources"] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + EXTENDED_RESOURCES_FIELD_NUMBER: _ClassVar[int] + resources: _tasks_pb2.Resources + extended_resources: _tasks_pb2.ExtendedResources + def __init__(self, resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., extended_resources: _Optional[_Union[_tasks_pb2.ExtendedResources, _Mapping]] = ...) -> None: ... + +class LaunchPlanTemplate(_message.Message): + __slots__ = ["id", "interface", "fixed_inputs"] + ID_FIELD_NUMBER: _ClassVar[int] + INTERFACE_FIELD_NUMBER: _ClassVar[int] + FIXED_INPUTS_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + interface: _interface_pb2.TypedInterface + fixed_inputs: _literals_pb2.LiteralMap + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., fixed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py new file mode 100644 index 0000000000..c5699b3c85 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/datacatalog/datacatalog.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"F\n\x14\x43reateDatasetRequest\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x17\n\x15\x43reateDatasetResponse\"E\n\x11GetDatasetRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"D\n\x12GetDatasetResponse\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x96\x01\n\x12GetArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"H\n\x13GetArtifactResponse\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"J\n\x15\x43reateArtifactRequest\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"\x18\n\x16\x43reateArtifactResponse\"3\n\rAddTagRequest\x12\"\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.TagR\x03tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xbf\x01\n\x14ListArtifactsRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12\x35\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"k\n\x15ListArtifactsResponse\x12\x33\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.ArtifactR\tartifacts\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\x8c\x01\n\x13ListDatasetsRequest\x12\x35\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"g\n\x14ListDatasetsResponse\x12\x30\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.DatasetR\x08\x64\x61tasets\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\xfb\x01\n\x15UpdateArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagName\x12-\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x05 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadataB\x0e\n\x0cquery_handle\"9\n\x16UpdateArtifactResponse\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\"a\n\rReservationID\x12\x35\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\tdatasetId\x12\x19\n\x08tag_name\x18\x02 \x01(\tR\x07tagName\"\xc7\x01\n\x1dGetOrExtendReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\"\xa3\x02\n\x0bReservation\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\x12\x39\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x31\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\"\\\n\x1eGetOrExtendReservationResponse\x12:\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.ReservationR\x0breservation\"y\n\x19ReleaseReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\"\x1c\n\x1aReleaseReservationResponse\"\x8a\x01\n\x07\x44\x61taset\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x02id\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12$\n\rpartitionKeys\x18\x03 \x03(\tR\rpartitionKeys\"3\n\tPartition\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x91\x01\n\tDatasetID\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12\x12\n\x04UUID\x18\x05 \x01(\tR\x04UUID\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"\xc7\x02\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x30\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12-\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12\x36\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.PartitionR\npartitions\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.TagR\x04tags\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"P\n\x0c\x41rtifactData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"l\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x0b\x61rtifact_id\x18\x02 \x01(\tR\nartifactId\x12\x30\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"\x81\x01\n\x08Metadata\x12:\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntryR\x06keyMap\x1a\x39\n\x0bKeyMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"O\n\x10\x46ilterExpression\x12;\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilterR\x07\x66ilters\"\xce\x03\n\x14SinglePropertyFilter\x12?\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00R\ttagFilter\x12Q\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00R\x0fpartitionFilter\x12N\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00R\x0e\x61rtifactFilter\x12K\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00R\rdatasetFilter\x12P\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperatorR\x08operator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\"G\n\x16\x41rtifactPropertyFilter\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00R\nartifactIdB\n\n\x08property\"<\n\x11TagPropertyFilter\x12\x1b\n\x08tag_name\x18\x01 \x01(\tH\x00R\x07tagNameB\n\n\x08property\"[\n\x17PartitionPropertyFilter\x12\x34\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00R\x06keyValB\n\n\x08property\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x9f\x01\n\x15\x44\x61tasetPropertyFilter\x12\x1a\n\x07project\x18\x01 \x01(\tH\x00R\x07project\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x12\x18\n\x06\x64omain\x18\x03 \x01(\tH\x00R\x06\x64omain\x12\x1a\n\x07version\x18\x04 \x01(\tH\x00R\x07version\x12\x12\n\x03org\x18\x05 \x01(\tH\x00R\x03orgB\n\n\x08property\"\x93\x02\n\x11PaginationOptions\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12@\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKeyR\x07sortKey\x12\x46\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrderR\tsortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\x86\x07\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB\xb2\x01\n\x0f\x63om.datacatalogB\x10\x44\x61tacatalogProtoP\x01ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\xa2\x02\x03\x44XX\xaa\x02\x0b\x44\x61tacatalog\xca\x02\x0b\x44\x61tacatalog\xe2\x02\x17\x44\x61tacatalog\\GPBMetadata\xea\x02\x0b\x44\x61tacatalogb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.datacatalog.datacatalog_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\017com.datacatalogB\020DatacatalogProtoP\001ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\242\002\003DXX\252\002\013Datacatalog\312\002\013Datacatalog\342\002\027Datacatalog\\GPBMetadata\352\002\013Datacatalog' + _METADATA_KEYMAPENTRY._options = None + _METADATA_KEYMAPENTRY._serialized_options = b'8\001' + _globals['_CREATEDATASETREQUEST']._serialized_start=150 + _globals['_CREATEDATASETREQUEST']._serialized_end=220 + _globals['_CREATEDATASETRESPONSE']._serialized_start=222 + _globals['_CREATEDATASETRESPONSE']._serialized_end=245 + _globals['_GETDATASETREQUEST']._serialized_start=247 + _globals['_GETDATASETREQUEST']._serialized_end=316 + _globals['_GETDATASETRESPONSE']._serialized_start=318 + _globals['_GETDATASETRESPONSE']._serialized_end=386 + _globals['_GETARTIFACTREQUEST']._serialized_start=389 + _globals['_GETARTIFACTREQUEST']._serialized_end=539 + _globals['_GETARTIFACTRESPONSE']._serialized_start=541 + _globals['_GETARTIFACTRESPONSE']._serialized_end=613 + _globals['_CREATEARTIFACTREQUEST']._serialized_start=615 + _globals['_CREATEARTIFACTREQUEST']._serialized_end=689 + _globals['_CREATEARTIFACTRESPONSE']._serialized_start=691 + _globals['_CREATEARTIFACTRESPONSE']._serialized_end=715 + _globals['_ADDTAGREQUEST']._serialized_start=717 + _globals['_ADDTAGREQUEST']._serialized_end=768 + _globals['_ADDTAGRESPONSE']._serialized_start=770 + _globals['_ADDTAGRESPONSE']._serialized_end=786 + _globals['_LISTARTIFACTSREQUEST']._serialized_start=789 + _globals['_LISTARTIFACTSREQUEST']._serialized_end=980 + _globals['_LISTARTIFACTSRESPONSE']._serialized_start=982 + _globals['_LISTARTIFACTSRESPONSE']._serialized_end=1089 + _globals['_LISTDATASETSREQUEST']._serialized_start=1092 + _globals['_LISTDATASETSREQUEST']._serialized_end=1232 + _globals['_LISTDATASETSRESPONSE']._serialized_start=1234 + _globals['_LISTDATASETSRESPONSE']._serialized_end=1337 + _globals['_UPDATEARTIFACTREQUEST']._serialized_start=1340 + _globals['_UPDATEARTIFACTREQUEST']._serialized_end=1591 + _globals['_UPDATEARTIFACTRESPONSE']._serialized_start=1593 + _globals['_UPDATEARTIFACTRESPONSE']._serialized_end=1650 + _globals['_RESERVATIONID']._serialized_start=1652 + _globals['_RESERVATIONID']._serialized_end=1749 + _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_start=1752 + _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_end=1951 + _globals['_RESERVATION']._serialized_start=1954 + _globals['_RESERVATION']._serialized_end=2245 + _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_start=2247 + _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_end=2339 + _globals['_RELEASERESERVATIONREQUEST']._serialized_start=2341 + _globals['_RELEASERESERVATIONREQUEST']._serialized_end=2462 + _globals['_RELEASERESERVATIONRESPONSE']._serialized_start=2464 + _globals['_RELEASERESERVATIONRESPONSE']._serialized_end=2492 + _globals['_DATASET']._serialized_start=2495 + _globals['_DATASET']._serialized_end=2633 + _globals['_PARTITION']._serialized_start=2635 + _globals['_PARTITION']._serialized_end=2686 + _globals['_DATASETID']._serialized_start=2689 + _globals['_DATASETID']._serialized_end=2834 + _globals['_ARTIFACT']._serialized_start=2837 + _globals['_ARTIFACT']._serialized_end=3164 + _globals['_ARTIFACTDATA']._serialized_start=3166 + _globals['_ARTIFACTDATA']._serialized_end=3246 + _globals['_TAG']._serialized_start=3248 + _globals['_TAG']._serialized_end=3356 + _globals['_METADATA']._serialized_start=3359 + _globals['_METADATA']._serialized_end=3488 + _globals['_METADATA_KEYMAPENTRY']._serialized_start=3431 + _globals['_METADATA_KEYMAPENTRY']._serialized_end=3488 + _globals['_FILTEREXPRESSION']._serialized_start=3490 + _globals['_FILTEREXPRESSION']._serialized_end=3569 + _globals['_SINGLEPROPERTYFILTER']._serialized_start=3572 + _globals['_SINGLEPROPERTYFILTER']._serialized_end=4034 + _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_start=3983 + _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_end=4015 + _globals['_ARTIFACTPROPERTYFILTER']._serialized_start=4036 + _globals['_ARTIFACTPROPERTYFILTER']._serialized_end=4107 + _globals['_TAGPROPERTYFILTER']._serialized_start=4109 + _globals['_TAGPROPERTYFILTER']._serialized_end=4169 + _globals['_PARTITIONPROPERTYFILTER']._serialized_start=4171 + _globals['_PARTITIONPROPERTYFILTER']._serialized_end=4262 + _globals['_KEYVALUEPAIR']._serialized_start=4264 + _globals['_KEYVALUEPAIR']._serialized_end=4318 + _globals['_DATASETPROPERTYFILTER']._serialized_start=4321 + _globals['_DATASETPROPERTYFILTER']._serialized_end=4480 + _globals['_PAGINATIONOPTIONS']._serialized_start=4483 + _globals['_PAGINATIONOPTIONS']._serialized_end=4758 + _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_start=4686 + _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_end=4728 + _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_start=4730 + _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_end=4758 + _globals['_DATACATALOG']._serialized_start=4761 + _globals['_DATACATALOG']._serialized_end=5663 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi new file mode 100644 index 0000000000..22dd8edbfe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi @@ -0,0 +1,341 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CreateDatasetRequest(_message.Message): + __slots__ = ["dataset"] + DATASET_FIELD_NUMBER: _ClassVar[int] + dataset: Dataset + def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... + +class CreateDatasetResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class GetDatasetRequest(_message.Message): + __slots__ = ["dataset"] + DATASET_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... + +class GetDatasetResponse(_message.Message): + __slots__ = ["dataset"] + DATASET_FIELD_NUMBER: _ClassVar[int] + dataset: Dataset + def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... + +class GetArtifactRequest(_message.Message): + __slots__ = ["dataset", "artifact_id", "tag_name"] + DATASET_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + artifact_id: str + tag_name: str + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ...) -> None: ... + +class GetArtifactResponse(_message.Message): + __slots__ = ["artifact"] + ARTIFACT_FIELD_NUMBER: _ClassVar[int] + artifact: Artifact + def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... + +class CreateArtifactRequest(_message.Message): + __slots__ = ["artifact"] + ARTIFACT_FIELD_NUMBER: _ClassVar[int] + artifact: Artifact + def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... + +class CreateArtifactResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class AddTagRequest(_message.Message): + __slots__ = ["tag"] + TAG_FIELD_NUMBER: _ClassVar[int] + tag: Tag + def __init__(self, tag: _Optional[_Union[Tag, _Mapping]] = ...) -> None: ... + +class AddTagResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class ListArtifactsRequest(_message.Message): + __slots__ = ["dataset", "filter", "pagination"] + DATASET_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + PAGINATION_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + filter: FilterExpression + pagination: PaginationOptions + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... + +class ListArtifactsResponse(_message.Message): + __slots__ = ["artifacts", "next_token"] + ARTIFACTS_FIELD_NUMBER: _ClassVar[int] + NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] + artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] + next_token: str + def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... + +class ListDatasetsRequest(_message.Message): + __slots__ = ["filter", "pagination"] + FILTER_FIELD_NUMBER: _ClassVar[int] + PAGINATION_FIELD_NUMBER: _ClassVar[int] + filter: FilterExpression + pagination: PaginationOptions + def __init__(self, filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... + +class ListDatasetsResponse(_message.Message): + __slots__ = ["datasets", "next_token"] + DATASETS_FIELD_NUMBER: _ClassVar[int] + NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] + datasets: _containers.RepeatedCompositeFieldContainer[Dataset] + next_token: str + def __init__(self, datasets: _Optional[_Iterable[_Union[Dataset, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... + +class UpdateArtifactRequest(_message.Message): + __slots__ = ["dataset", "artifact_id", "tag_name", "data", "metadata"] + DATASET_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + dataset: DatasetID + artifact_id: str + tag_name: str + data: _containers.RepeatedCompositeFieldContainer[ArtifactData] + metadata: Metadata + def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... + +class UpdateArtifactResponse(_message.Message): + __slots__ = ["artifact_id"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + artifact_id: str + def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... + +class ReservationID(_message.Message): + __slots__ = ["dataset_id", "tag_name"] + DATASET_ID_FIELD_NUMBER: _ClassVar[int] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + dataset_id: DatasetID + tag_name: str + def __init__(self, dataset_id: _Optional[_Union[DatasetID, _Mapping]] = ..., tag_name: _Optional[str] = ...) -> None: ... + +class GetOrExtendReservationRequest(_message.Message): + __slots__ = ["reservation_id", "owner_id", "heartbeat_interval"] + RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] + reservation_id: ReservationID + owner_id: str + heartbeat_interval: _duration_pb2.Duration + def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class Reservation(_message.Message): + __slots__ = ["reservation_id", "owner_id", "heartbeat_interval", "expires_at", "metadata"] + RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + reservation_id: ReservationID + owner_id: str + heartbeat_interval: _duration_pb2.Duration + expires_at: _timestamp_pb2.Timestamp + metadata: Metadata + def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... + +class GetOrExtendReservationResponse(_message.Message): + __slots__ = ["reservation"] + RESERVATION_FIELD_NUMBER: _ClassVar[int] + reservation: Reservation + def __init__(self, reservation: _Optional[_Union[Reservation, _Mapping]] = ...) -> None: ... + +class ReleaseReservationRequest(_message.Message): + __slots__ = ["reservation_id", "owner_id"] + RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] + OWNER_ID_FIELD_NUMBER: _ClassVar[int] + reservation_id: ReservationID + owner_id: str + def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ...) -> None: ... + +class ReleaseReservationResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class Dataset(_message.Message): + __slots__ = ["id", "metadata", "partitionKeys"] + ID_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + PARTITIONKEYS_FIELD_NUMBER: _ClassVar[int] + id: DatasetID + metadata: Metadata + partitionKeys: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, id: _Optional[_Union[DatasetID, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitionKeys: _Optional[_Iterable[str]] = ...) -> None: ... + +class Partition(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class DatasetID(_message.Message): + __slots__ = ["project", "name", "domain", "version", "UUID", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + UUID_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + name: str + domain: str + version: str + UUID: str + org: str + def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ..., UUID: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class Artifact(_message.Message): + __slots__ = ["id", "dataset", "data", "metadata", "partitions", "tags", "created_at"] + ID_FIELD_NUMBER: _ClassVar[int] + DATASET_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + PARTITIONS_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + CREATED_AT_FIELD_NUMBER: _ClassVar[int] + id: str + dataset: DatasetID + data: _containers.RepeatedCompositeFieldContainer[ArtifactData] + metadata: Metadata + partitions: _containers.RepeatedCompositeFieldContainer[Partition] + tags: _containers.RepeatedCompositeFieldContainer[Tag] + created_at: _timestamp_pb2.Timestamp + def __init__(self, id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitions: _Optional[_Iterable[_Union[Partition, _Mapping]]] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ArtifactData(_message.Message): + __slots__ = ["name", "value"] + NAME_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + name: str + value: _literals_pb2.Literal + def __init__(self, name: _Optional[str] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... + +class Tag(_message.Message): + __slots__ = ["name", "artifact_id", "dataset"] + NAME_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + DATASET_FIELD_NUMBER: _ClassVar[int] + name: str + artifact_id: str + dataset: DatasetID + def __init__(self, name: _Optional[str] = ..., artifact_id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... + +class Metadata(_message.Message): + __slots__ = ["key_map"] + class KeyMapEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + KEY_MAP_FIELD_NUMBER: _ClassVar[int] + key_map: _containers.ScalarMap[str, str] + def __init__(self, key_map: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class FilterExpression(_message.Message): + __slots__ = ["filters"] + FILTERS_FIELD_NUMBER: _ClassVar[int] + filters: _containers.RepeatedCompositeFieldContainer[SinglePropertyFilter] + def __init__(self, filters: _Optional[_Iterable[_Union[SinglePropertyFilter, _Mapping]]] = ...) -> None: ... + +class SinglePropertyFilter(_message.Message): + __slots__ = ["tag_filter", "partition_filter", "artifact_filter", "dataset_filter", "operator"] + class ComparisonOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + EQUALS: _ClassVar[SinglePropertyFilter.ComparisonOperator] + EQUALS: SinglePropertyFilter.ComparisonOperator + TAG_FILTER_FIELD_NUMBER: _ClassVar[int] + PARTITION_FILTER_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_FILTER_FIELD_NUMBER: _ClassVar[int] + DATASET_FILTER_FIELD_NUMBER: _ClassVar[int] + OPERATOR_FIELD_NUMBER: _ClassVar[int] + tag_filter: TagPropertyFilter + partition_filter: PartitionPropertyFilter + artifact_filter: ArtifactPropertyFilter + dataset_filter: DatasetPropertyFilter + operator: SinglePropertyFilter.ComparisonOperator + def __init__(self, tag_filter: _Optional[_Union[TagPropertyFilter, _Mapping]] = ..., partition_filter: _Optional[_Union[PartitionPropertyFilter, _Mapping]] = ..., artifact_filter: _Optional[_Union[ArtifactPropertyFilter, _Mapping]] = ..., dataset_filter: _Optional[_Union[DatasetPropertyFilter, _Mapping]] = ..., operator: _Optional[_Union[SinglePropertyFilter.ComparisonOperator, str]] = ...) -> None: ... + +class ArtifactPropertyFilter(_message.Message): + __slots__ = ["artifact_id"] + ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] + artifact_id: str + def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... + +class TagPropertyFilter(_message.Message): + __slots__ = ["tag_name"] + TAG_NAME_FIELD_NUMBER: _ClassVar[int] + tag_name: str + def __init__(self, tag_name: _Optional[str] = ...) -> None: ... + +class PartitionPropertyFilter(_message.Message): + __slots__ = ["key_val"] + KEY_VAL_FIELD_NUMBER: _ClassVar[int] + key_val: KeyValuePair + def __init__(self, key_val: _Optional[_Union[KeyValuePair, _Mapping]] = ...) -> None: ... + +class KeyValuePair(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + +class DatasetPropertyFilter(_message.Message): + __slots__ = ["project", "name", "domain", "version", "org"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] + ORG_FIELD_NUMBER: _ClassVar[int] + project: str + name: str + domain: str + version: str + org: str + def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ..., org: _Optional[str] = ...) -> None: ... + +class PaginationOptions(_message.Message): + __slots__ = ["limit", "token", "sortKey", "sortOrder"] + class SortOrder(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DESCENDING: _ClassVar[PaginationOptions.SortOrder] + ASCENDING: _ClassVar[PaginationOptions.SortOrder] + DESCENDING: PaginationOptions.SortOrder + ASCENDING: PaginationOptions.SortOrder + class SortKey(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CREATION_TIME: _ClassVar[PaginationOptions.SortKey] + CREATION_TIME: PaginationOptions.SortKey + LIMIT_FIELD_NUMBER: _ClassVar[int] + TOKEN_FIELD_NUMBER: _ClassVar[int] + SORTKEY_FIELD_NUMBER: _ClassVar[int] + SORTORDER_FIELD_NUMBER: _ClassVar[int] + limit: int + token: str + sortKey: PaginationOptions.SortKey + sortOrder: PaginationOptions.SortOrder + def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., sortKey: _Optional[_Union[PaginationOptions.SortKey, str]] = ..., sortOrder: _Optional[_Union[PaginationOptions.SortOrder, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py new file mode 100644 index 0000000000..b78b2fa78b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -0,0 +1,398 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2 + + +class DataCatalogStub(object): + """ + Data Catalog service definition + Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + Artifacts are associated with a Dataset, and can be tagged for retrieval. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateDataset = channel.unary_unary( + '/datacatalog.DataCatalog/CreateDataset', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, + ) + self.GetDataset = channel.unary_unary( + '/datacatalog.DataCatalog/GetDataset', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, + ) + self.CreateArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/CreateArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, + ) + self.GetArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/GetArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, + ) + self.AddTag = channel.unary_unary( + '/datacatalog.DataCatalog/AddTag', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, + ) + self.ListArtifacts = channel.unary_unary( + '/datacatalog.DataCatalog/ListArtifacts', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, + ) + self.ListDatasets = channel.unary_unary( + '/datacatalog.DataCatalog/ListDatasets', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, + ) + self.UpdateArtifact = channel.unary_unary( + '/datacatalog.DataCatalog/UpdateArtifact', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, + ) + self.GetOrExtendReservation = channel.unary_unary( + '/datacatalog.DataCatalog/GetOrExtendReservation', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, + ) + self.ReleaseReservation = channel.unary_unary( + '/datacatalog.DataCatalog/ReleaseReservation', + request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, + response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, + ) + + +class DataCatalogServicer(object): + """ + Data Catalog service definition + Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + Artifacts are associated with a Dataset, and can be tagged for retrieval. + """ + + def CreateDataset(self, request, context): + """Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. + Each dataset can have one or more artifacts + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetDataset(self, request, context): + """Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateArtifact(self, request, context): + """Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary + files or data values + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetArtifact(self, request, context): + """Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def AddTag(self, request, context): + """Associate a tag with an artifact. Tags are unique within a Dataset. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListArtifacts(self, request, context): + """Return a paginated list of artifacts + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListDatasets(self, request, context): + """Return a paginated list of datasets + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def UpdateArtifact(self, request, context): + """Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetOrExtendReservation(self, request, context): + """Attempts to get or extend a reservation for the corresponding artifact. If one already exists + (ie. another entity owns the reservation) then that reservation is retrieved. + Once you acquire a reservation, you need to periodically extend the reservation with an + identical call. If the reservation is not extended before the defined expiration, it may be + acquired by another task. + Note: We may have multiple concurrent tasks with the same signature and the same input that + try to populate the same artifact at the same time. Thus with reservation, only one task can + run at a time, until the reservation expires. + Note: If task A does not extend the reservation in time and the reservation expires, another + task B may take over the reservation, resulting in two tasks A and B running in parallel. So + a third task C may get the Artifact from A or B, whichever writes last. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ReleaseReservation(self, request, context): + """Release the reservation when the task holding the spot fails so that the other tasks + can grab the spot. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DataCatalogServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateDataset': grpc.unary_unary_rpc_method_handler( + servicer.CreateDataset, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.SerializeToString, + ), + 'GetDataset': grpc.unary_unary_rpc_method_handler( + servicer.GetDataset, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.SerializeToString, + ), + 'CreateArtifact': grpc.unary_unary_rpc_method_handler( + servicer.CreateArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.SerializeToString, + ), + 'GetArtifact': grpc.unary_unary_rpc_method_handler( + servicer.GetArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.SerializeToString, + ), + 'AddTag': grpc.unary_unary_rpc_method_handler( + servicer.AddTag, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.SerializeToString, + ), + 'ListArtifacts': grpc.unary_unary_rpc_method_handler( + servicer.ListArtifacts, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.SerializeToString, + ), + 'ListDatasets': grpc.unary_unary_rpc_method_handler( + servicer.ListDatasets, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.SerializeToString, + ), + 'UpdateArtifact': grpc.unary_unary_rpc_method_handler( + servicer.UpdateArtifact, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.SerializeToString, + ), + 'GetOrExtendReservation': grpc.unary_unary_rpc_method_handler( + servicer.GetOrExtendReservation, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.SerializeToString, + ), + 'ReleaseReservation': grpc.unary_unary_rpc_method_handler( + servicer.ReleaseReservation, + request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.FromString, + response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'datacatalog.DataCatalog', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataCatalog(object): + """ + Data Catalog service definition + Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. + Artifacts are associated with a Dataset, and can be tagged for retrieval. + """ + + @staticmethod + def CreateDataset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateDataset', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetDataset(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetDataset', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateArtifact(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateArtifact', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetArtifact(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetArtifact', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def AddTag(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/AddTag', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListArtifacts(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListArtifacts', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListDatasets(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListDatasets', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def UpdateArtifact(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/UpdateArtifact', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetOrExtendReservation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetOrExtendReservation', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ReleaseReservation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ReleaseReservation', + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, + flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/event/__init__.py b/flyteidl/gen/pb_python/flyteidl/event/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py new file mode 100644 index 0000000000..7addfe281f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/event/cloudevents.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 +from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/event/cloudevents.proto\x12\x0e\x66lyteidl.event\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x03\n\x1b\x43loudEventWorkflowExecution\x12\x43\n\traw_event\x18\x01 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x08rawEvent\x12H\n\x10output_interface\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12<\n\x0c\x61rtifact_ids\x18\x03 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12[\n\x13reference_execution\x18\x04 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x06 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\x8b\x03\n\x17\x43loudEventNodeExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x08rawEvent\x12H\n\x0ctask_exec_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\ntaskExecId\x12H\n\x10output_interface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x06 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"Z\n\x17\x43loudEventTaskExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x08rawEvent\"\xef\x02\n\x18\x43loudEventExecutionStart\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12?\n\x0elaunch_plan_id\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\x12:\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12+\n\x11\x61rtifact_trackers\x18\x05 \x03(\tR\x10\x61rtifactTrackers\x12\x1c\n\tprincipal\x18\x06 \x01(\tR\tprincipalB\xbc\x01\n\x12\x63om.flyteidl.eventB\x10\x43loudeventsProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.cloudevents_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\020CloudeventsProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' + _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_start=240 + _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_end=662 + _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=665 + _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=1060 + _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1062 + _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1152 + _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1155 + _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1522 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi new file mode 100644 index 0000000000..b79750c9ca --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi @@ -0,0 +1,66 @@ +from flyteidl.event import event_pb2 as _event_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import interface_pb2 as _interface_pb2 +from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class CloudEventWorkflowExecution(_message.Message): + __slots__ = ["raw_event", "output_interface", "artifact_ids", "reference_execution", "principal", "launch_plan_id"] + RAW_EVENT_FIELD_NUMBER: _ClassVar[int] + OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] + REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] + raw_event: _event_pb2.WorkflowExecutionEvent + output_interface: _interface_pb2.TypedInterface + artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] + reference_execution: _identifier_pb2.WorkflowExecutionIdentifier + principal: str + launch_plan_id: _identifier_pb2.Identifier + def __init__(self, raw_event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class CloudEventNodeExecution(_message.Message): + __slots__ = ["raw_event", "task_exec_id", "output_interface", "artifact_ids", "principal", "launch_plan_id"] + RAW_EVENT_FIELD_NUMBER: _ClassVar[int] + TASK_EXEC_ID_FIELD_NUMBER: _ClassVar[int] + OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] + raw_event: _event_pb2.NodeExecutionEvent + task_exec_id: _identifier_pb2.TaskExecutionIdentifier + output_interface: _interface_pb2.TypedInterface + artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] + principal: str + launch_plan_id: _identifier_pb2.Identifier + def __init__(self, raw_event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ..., task_exec_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... + +class CloudEventTaskExecution(_message.Message): + __slots__ = ["raw_event"] + RAW_EVENT_FIELD_NUMBER: _ClassVar[int] + raw_event: _event_pb2.TaskExecutionEvent + def __init__(self, raw_event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... + +class CloudEventExecutionStart(_message.Message): + __slots__ = ["execution_id", "launch_plan_id", "workflow_id", "artifact_ids", "artifact_trackers", "principal"] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] + ARTIFACT_TRACKERS_FIELD_NUMBER: _ClassVar[int] + PRINCIPAL_FIELD_NUMBER: _ClassVar[int] + execution_id: _identifier_pb2.WorkflowExecutionIdentifier + launch_plan_id: _identifier_pb2.Identifier + workflow_id: _identifier_pb2.Identifier + artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] + artifact_trackers: _containers.RepeatedScalarFieldContainer[str] + principal: str + def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., artifact_trackers: _Optional[_Iterable[str]] = ..., principal: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py new file mode 100644 index 0000000000..f1740e326a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/event/event.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/event/event.proto\x12\x0e\x66lyteidl.event\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xaa\x03\n\x16WorkflowExecutionEvent\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12<\n\x05phase\x18\x03 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1f\n\noutput_uri\x18\x05 \x01(\tH\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12<\n\x0boutput_data\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\noutputDataB\x0f\n\routput_result\"\xaa\t\n\x12NodeExecutionEvent\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x05 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x14 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\x06 \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x0f \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.event.WorkflowNodeMetadataH\x02R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\x0e \x01(\x0b\x32 .flyteidl.event.TaskNodeMetadataH\x02R\x10taskNodeMetadata\x12]\n\x14parent_task_metadata\x18\t \x01(\x0b\x32+.flyteidl.event.ParentTaskExecutionMetadataR\x12parentTaskMetadata\x12]\n\x14parent_node_metadata\x18\n \x01(\x0b\x32+.flyteidl.event.ParentNodeExecutionMetadataR\x12parentNodeMetadata\x12\x1f\n\x0bretry_group\x18\x0b \x01(\tR\nretryGroup\x12 \n\x0cspec_node_id\x18\x0c \x01(\tR\nspecNodeId\x12\x1b\n\tnode_name\x18\r \x01(\tR\x08nodeName\x12#\n\revent_version\x18\x10 \x01(\x05R\x0c\x65ventVersion\x12\x1b\n\tis_parent\x18\x11 \x01(\x08R\x08isParent\x12\x1d\n\nis_dynamic\x18\x12 \x01(\x08R\tisDynamic\x12\x19\n\x08\x64\x65\x63k_uri\x18\x13 \x01(\tR\x07\x64\x65\x63kUri\x12;\n\x0breported_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAt\x12\x19\n\x08is_array\x18\x16 \x01(\x08R\x07isArrayB\r\n\x0binput_valueB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"e\n\x14WorkflowNodeMetadata\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xf1\x02\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12W\n\x12reservation_status\x18\x03 \x01(\x0e\x32(.flyteidl.core.CatalogReservation.StatusR\x11reservationStatus\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.event.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bParentTaskExecutionMetadata\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"6\n\x1bParentNodeExecutionMetadata\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\"b\n\x0b\x45ventReason\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\"\x97\x08\n\x12TaskExecutionEvent\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12_\n\x18parent_node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x15parentNodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x1f\n\x0bproducer_id\x18\x05 \x01(\tR\nproducerId\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12;\n\x0boccurred_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x08 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x13 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\t \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\n \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x11 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\x38\n\x0b\x63ustom_info\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12#\n\rphase_version\x18\x0c \x01(\rR\x0cphaseVersion\x12\x1a\n\x06reason\x18\r \x01(\tB\x02\x18\x01R\x06reason\x12\x35\n\x07reasons\x18\x15 \x03(\x0b\x32\x1b.flyteidl.event.EventReasonR\x07reasons\x12\x1b\n\ttask_type\x18\x0e \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x12 \x01(\x05R\x0c\x65ventVersion\x12;\n\x0breported_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAtB\r\n\x0binput_valueB\x0f\n\routput_result\"\x9e\x02\n\x14\x45xternalResourceInfo\x12\x1f\n\x0b\x65xternal_id\x18\x01 \x01(\tR\nexternalId\x12\x14\n\x05index\x18\x02 \x01(\rR\x05index\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x44\n\x0c\x63\x61\x63he_status\x18\x05 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\"[\n\x10ResourcePoolInfo\x12)\n\x10\x61llocation_token\x18\x01 \x01(\tR\x0f\x61llocationToken\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x9d\x03\n\x15TaskExecutionMetadata\x12%\n\x0egenerated_name\x18\x01 \x01(\tR\rgeneratedName\x12S\n\x12\x65xternal_resources\x18\x02 \x03(\x0b\x32$.flyteidl.event.ExternalResourceInfoR\x11\x65xternalResources\x12N\n\x12resource_pool_info\x18\x03 \x03(\x0b\x32 .flyteidl.event.ResourcePoolInfoR\x10resourcePoolInfo\x12+\n\x11plugin_identifier\x18\x04 \x01(\tR\x10pluginIdentifier\x12Z\n\x0einstance_class\x18\x10 \x01(\x0e\x32\x33.flyteidl.event.TaskExecutionMetadata.InstanceClassR\rinstanceClass\"/\n\rInstanceClass\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x11\n\rINTERRUPTIBLE\x10\x01\x42\xb6\x01\n\x12\x63om.flyteidl.eventB\nEventProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.event_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\nEventProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' + _TASKEXECUTIONEVENT.fields_by_name['reason']._options = None + _TASKEXECUTIONEVENT.fields_by_name['reason']._serialized_options = b'\030\001' + _globals['_WORKFLOWEXECUTIONEVENT']._serialized_start=262 + _globals['_WORKFLOWEXECUTIONEVENT']._serialized_end=688 + _globals['_NODEEXECUTIONEVENT']._serialized_start=691 + _globals['_NODEEXECUTIONEVENT']._serialized_end=1885 + _globals['_WORKFLOWNODEMETADATA']._serialized_start=1887 + _globals['_WORKFLOWNODEMETADATA']._serialized_end=1988 + _globals['_TASKNODEMETADATA']._serialized_start=1991 + _globals['_TASKNODEMETADATA']._serialized_end=2360 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2363 + _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2569 + _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_start=2571 + _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_end=2656 + _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_start=2658 + _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_end=2712 + _globals['_EVENTREASON']._serialized_start=2714 + _globals['_EVENTREASON']._serialized_end=2812 + _globals['_TASKEXECUTIONEVENT']._serialized_start=2815 + _globals['_TASKEXECUTIONEVENT']._serialized_end=3862 + _globals['_EXTERNALRESOURCEINFO']._serialized_start=3865 + _globals['_EXTERNALRESOURCEINFO']._serialized_end=4151 + _globals['_RESOURCEPOOLINFO']._serialized_start=4153 + _globals['_RESOURCEPOOLINFO']._serialized_end=4244 + _globals['_TASKEXECUTIONMETADATA']._serialized_start=4247 + _globals['_TASKEXECUTIONMETADATA']._serialized_end=4660 + _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_start=4613 + _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_end=4660 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi new file mode 100644 index 0000000000..3297975f5d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi @@ -0,0 +1,218 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import compiler_pb2 as _compiler_pb2 +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import catalog_pb2 as _catalog_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class WorkflowExecutionEvent(_message.Message): + __slots__ = ["execution_id", "producer_id", "phase", "occurred_at", "output_uri", "error", "output_data"] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + execution_id: _identifier_pb2.WorkflowExecutionIdentifier + producer_id: str + phase: _execution_pb2.WorkflowExecution.Phase + occurred_at: _timestamp_pb2.Timestamp + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class NodeExecutionEvent(_message.Message): + __slots__ = ["id", "producer_id", "phase", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "workflow_node_metadata", "task_node_metadata", "parent_task_metadata", "parent_node_metadata", "retry_group", "spec_node_id", "node_name", "event_version", "is_parent", "is_dynamic", "deck_uri", "reported_at", "is_array"] + ID_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + INPUT_DATA_FIELD_NUMBER: _ClassVar[int] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + PARENT_TASK_METADATA_FIELD_NUMBER: _ClassVar[int] + PARENT_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] + RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] + SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] + NODE_NAME_FIELD_NUMBER: _ClassVar[int] + EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] + IS_PARENT_FIELD_NUMBER: _ClassVar[int] + IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] + DECK_URI_FIELD_NUMBER: _ClassVar[int] + REPORTED_AT_FIELD_NUMBER: _ClassVar[int] + IS_ARRAY_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.NodeExecutionIdentifier + producer_id: str + phase: _execution_pb2.NodeExecution.Phase + occurred_at: _timestamp_pb2.Timestamp + input_uri: str + input_data: _literals_pb2.LiteralMap + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + workflow_node_metadata: WorkflowNodeMetadata + task_node_metadata: TaskNodeMetadata + parent_task_metadata: ParentTaskExecutionMetadata + parent_node_metadata: ParentNodeExecutionMetadata + retry_group: str + spec_node_id: str + node_name: str + event_version: int + is_parent: bool + is_dynamic: bool + deck_uri: str + reported_at: _timestamp_pb2.Timestamp + is_array: bool + def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., parent_task_metadata: _Optional[_Union[ParentTaskExecutionMetadata, _Mapping]] = ..., parent_node_metadata: _Optional[_Union[ParentNodeExecutionMetadata, _Mapping]] = ..., retry_group: _Optional[str] = ..., spec_node_id: _Optional[str] = ..., node_name: _Optional[str] = ..., event_version: _Optional[int] = ..., is_parent: bool = ..., is_dynamic: bool = ..., deck_uri: _Optional[str] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., is_array: bool = ...) -> None: ... + +class WorkflowNodeMetadata(_message.Message): + __slots__ = ["execution_id"] + EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + execution_id: _identifier_pb2.WorkflowExecutionIdentifier + def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class TaskNodeMetadata(_message.Message): + __slots__ = ["cache_status", "catalog_key", "reservation_status", "checkpoint_uri", "dynamic_workflow"] + CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] + CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] + RESERVATION_STATUS_FIELD_NUMBER: _ClassVar[int] + CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + cache_status: _catalog_pb2.CatalogCacheStatus + catalog_key: _catalog_pb2.CatalogMetadata + reservation_status: _catalog_pb2.CatalogReservation.Status + checkpoint_uri: str + dynamic_workflow: DynamicWorkflowNodeMetadata + def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., reservation_status: _Optional[_Union[_catalog_pb2.CatalogReservation.Status, str]] = ..., checkpoint_uri: _Optional[str] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ...) -> None: ... + +class DynamicWorkflowNodeMetadata(_message.Message): + __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] + ID_FIELD_NUMBER: _ClassVar[int] + COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.Identifier + compiled_workflow: _compiler_pb2.CompiledWorkflowClosure + dynamic_job_spec_uri: str + def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... + +class ParentTaskExecutionMetadata(_message.Message): + __slots__ = ["id"] + ID_FIELD_NUMBER: _ClassVar[int] + id: _identifier_pb2.TaskExecutionIdentifier + def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class ParentNodeExecutionMetadata(_message.Message): + __slots__ = ["node_id"] + NODE_ID_FIELD_NUMBER: _ClassVar[int] + node_id: str + def __init__(self, node_id: _Optional[str] = ...) -> None: ... + +class EventReason(_message.Message): + __slots__ = ["reason", "occurred_at"] + REASON_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + reason: str + occurred_at: _timestamp_pb2.Timestamp + def __init__(self, reason: _Optional[str] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class TaskExecutionEvent(_message.Message): + __slots__ = ["task_id", "parent_node_execution_id", "retry_attempt", "phase", "producer_id", "logs", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "custom_info", "phase_version", "reason", "reasons", "task_type", "metadata", "event_version", "reported_at"] + TASK_ID_FIELD_NUMBER: _ClassVar[int] + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] + LOGS_FIELD_NUMBER: _ClassVar[int] + OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] + INPUT_URI_FIELD_NUMBER: _ClassVar[int] + INPUT_DATA_FIELD_NUMBER: _ClassVar[int] + OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] + CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] + PHASE_VERSION_FIELD_NUMBER: _ClassVar[int] + REASON_FIELD_NUMBER: _ClassVar[int] + REASONS_FIELD_NUMBER: _ClassVar[int] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + METADATA_FIELD_NUMBER: _ClassVar[int] + EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] + REPORTED_AT_FIELD_NUMBER: _ClassVar[int] + task_id: _identifier_pb2.Identifier + parent_node_execution_id: _identifier_pb2.NodeExecutionIdentifier + retry_attempt: int + phase: _execution_pb2.TaskExecution.Phase + producer_id: str + logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + occurred_at: _timestamp_pb2.Timestamp + input_uri: str + input_data: _literals_pb2.LiteralMap + output_uri: str + error: _execution_pb2.ExecutionError + output_data: _literals_pb2.LiteralMap + custom_info: _struct_pb2.Struct + phase_version: int + reason: str + reasons: _containers.RepeatedCompositeFieldContainer[EventReason] + task_type: str + metadata: TaskExecutionMetadata + event_version: int + reported_at: _timestamp_pb2.Timestamp + def __init__(self, task_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., parent_node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., producer_id: _Optional[str] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., phase_version: _Optional[int] = ..., reason: _Optional[str] = ..., reasons: _Optional[_Iterable[_Union[EventReason, _Mapping]]] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class ExternalResourceInfo(_message.Message): + __slots__ = ["external_id", "index", "retry_attempt", "phase", "cache_status", "logs"] + EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int] + INDEX_FIELD_NUMBER: _ClassVar[int] + RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] + LOGS_FIELD_NUMBER: _ClassVar[int] + external_id: str + index: int + retry_attempt: int + phase: _execution_pb2.TaskExecution.Phase + cache_status: _catalog_pb2.CatalogCacheStatus + logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] + def __init__(self, external_id: _Optional[str] = ..., index: _Optional[int] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... + +class ResourcePoolInfo(_message.Message): + __slots__ = ["allocation_token", "namespace"] + ALLOCATION_TOKEN_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + allocation_token: str + namespace: str + def __init__(self, allocation_token: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... + +class TaskExecutionMetadata(_message.Message): + __slots__ = ["generated_name", "external_resources", "resource_pool_info", "plugin_identifier", "instance_class"] + class InstanceClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + DEFAULT: _ClassVar[TaskExecutionMetadata.InstanceClass] + INTERRUPTIBLE: _ClassVar[TaskExecutionMetadata.InstanceClass] + DEFAULT: TaskExecutionMetadata.InstanceClass + INTERRUPTIBLE: TaskExecutionMetadata.InstanceClass + GENERATED_NAME_FIELD_NUMBER: _ClassVar[int] + EXTERNAL_RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESOURCE_POOL_INFO_FIELD_NUMBER: _ClassVar[int] + PLUGIN_IDENTIFIER_FIELD_NUMBER: _ClassVar[int] + INSTANCE_CLASS_FIELD_NUMBER: _ClassVar[int] + generated_name: str + external_resources: _containers.RepeatedCompositeFieldContainer[ExternalResourceInfo] + resource_pool_info: _containers.RepeatedCompositeFieldContainer[ResourcePoolInfo] + plugin_identifier: str + instance_class: TaskExecutionMetadata.InstanceClass + def __init__(self, generated_name: _Optional[str] = ..., external_resources: _Optional[_Iterable[_Union[ExternalResourceInfo, _Mapping]]] = ..., resource_pool_info: _Optional[_Iterable[_Union[ResourcePoolInfo, _Mapping]]] = ..., plugin_identifier: _Optional[str] = ..., instance_class: _Optional[_Union[TaskExecutionMetadata.InstanceClass, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py new file mode 100644 index 0000000000..7334e20277 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/array_job.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/plugins/array_job.proto\x12\x10\x66lyteidl.plugins\"\xa9\x01\n\x08\x41rrayJob\x12 \n\x0bparallelism\x18\x01 \x01(\x03R\x0bparallelism\x12\x12\n\x04size\x18\x02 \x01(\x03R\x04size\x12%\n\rmin_successes\x18\x03 \x01(\x03H\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteriaB\xc5\x01\n\x14\x63om.flyteidl.pluginsB\rArrayJobProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.array_job_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rArrayJobProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_ARRAYJOB']._serialized_start=55 + _globals['_ARRAYJOB']._serialized_end=224 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi new file mode 100644 index 0000000000..160cb5f007 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi @@ -0,0 +1,17 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class ArrayJob(_message.Message): + __slots__ = ["parallelism", "size", "min_successes", "min_success_ratio"] + PARALLELISM_FIELD_NUMBER: _ClassVar[int] + SIZE_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] + MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] + parallelism: int + size: int + min_successes: int + min_success_ratio: float + def __init__(self, parallelism: _Optional[int] = ..., size: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py new file mode 100644 index 0000000000..931fd999ed --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/dask.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/plugins/dask.proto\x12\x10\x66lyteidl.plugins\x1a\x19\x66lyteidl/core/tasks.proto\"\x85\x01\n\x07\x44\x61skJob\x12=\n\tscheduler\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.DaskSchedulerR\tscheduler\x12;\n\x07workers\x18\x02 \x01(\x0b\x32!.flyteidl.plugins.DaskWorkerGroupR\x07workers\"]\n\rDaskScheduler\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\"\x8b\x01\n\x0f\x44\x61skWorkerGroup\x12*\n\x11number_of_workers\x18\x01 \x01(\rR\x0fnumberOfWorkers\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresourcesB\xc1\x01\n\x14\x63om.flyteidl.pluginsB\tDaskProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.dask_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\tDaskProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_DASKJOB']._serialized_start=77 + _globals['_DASKJOB']._serialized_end=210 + _globals['_DASKSCHEDULER']._serialized_start=212 + _globals['_DASKSCHEDULER']._serialized_end=305 + _globals['_DASKWORKERGROUP']._serialized_start=308 + _globals['_DASKWORKERGROUP']._serialized_end=447 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi new file mode 100644 index 0000000000..df94d33778 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi @@ -0,0 +1,32 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DaskJob(_message.Message): + __slots__ = ["scheduler", "workers"] + SCHEDULER_FIELD_NUMBER: _ClassVar[int] + WORKERS_FIELD_NUMBER: _ClassVar[int] + scheduler: DaskScheduler + workers: DaskWorkerGroup + def __init__(self, scheduler: _Optional[_Union[DaskScheduler, _Mapping]] = ..., workers: _Optional[_Union[DaskWorkerGroup, _Mapping]] = ...) -> None: ... + +class DaskScheduler(_message.Message): + __slots__ = ["image", "resources"] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + image: str + resources: _tasks_pb2.Resources + def __init__(self, image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... + +class DaskWorkerGroup(_message.Message): + __slots__ = ["number_of_workers", "image", "resources"] + NUMBER_OF_WORKERS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + number_of_workers: int + image: str + resources: _tasks_pb2.Resources + def __init__(self, number_of_workers: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py new file mode 100644 index 0000000000..d09a4aba41 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/common.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/plugins/kubeflow/common.proto\x12\x19\x66lyteidl.plugins.kubeflow\"\xfa\x01\n\tRunPolicy\x12S\n\x10\x63lean_pod_policy\x18\x01 \x01(\x0e\x32).flyteidl.plugins.kubeflow.CleanPodPolicyR\x0e\x63leanPodPolicy\x12;\n\x1attl_seconds_after_finished\x18\x02 \x01(\x05R\x17ttlSecondsAfterFinished\x12\x36\n\x17\x61\x63tive_deadline_seconds\x18\x03 \x01(\x05R\x15\x61\x63tiveDeadlineSeconds\x12#\n\rbackoff_limit\x18\x04 \x01(\x05R\x0c\x62\x61\x63koffLimit*c\n\rRestartPolicy\x12\x18\n\x14RESTART_POLICY_NEVER\x10\x00\x12\x1d\n\x19RESTART_POLICY_ON_FAILURE\x10\x01\x12\x19\n\x15RESTART_POLICY_ALWAYS\x10\x02*`\n\x0e\x43leanPodPolicy\x12\x18\n\x14\x43LEANPOD_POLICY_NONE\x10\x00\x12\x1b\n\x17\x43LEANPOD_POLICY_RUNNING\x10\x01\x12\x17\n\x13\x43LEANPOD_POLICY_ALL\x10\x02\x42\xf1\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0b\x43ommonProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.common_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\013CommonProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_RESTARTPOLICY']._serialized_start=322 + _globals['_RESTARTPOLICY']._serialized_end=421 + _globals['_CLEANPODPOLICY']._serialized_start=423 + _globals['_CLEANPODPOLICY']._serialized_end=519 + _globals['_RUNPOLICY']._serialized_start=70 + _globals['_RUNPOLICY']._serialized_end=320 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi new file mode 100644 index 0000000000..916c3344b2 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi @@ -0,0 +1,36 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class RestartPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RESTART_POLICY_NEVER: _ClassVar[RestartPolicy] + RESTART_POLICY_ON_FAILURE: _ClassVar[RestartPolicy] + RESTART_POLICY_ALWAYS: _ClassVar[RestartPolicy] + +class CleanPodPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + CLEANPOD_POLICY_NONE: _ClassVar[CleanPodPolicy] + CLEANPOD_POLICY_RUNNING: _ClassVar[CleanPodPolicy] + CLEANPOD_POLICY_ALL: _ClassVar[CleanPodPolicy] +RESTART_POLICY_NEVER: RestartPolicy +RESTART_POLICY_ON_FAILURE: RestartPolicy +RESTART_POLICY_ALWAYS: RestartPolicy +CLEANPOD_POLICY_NONE: CleanPodPolicy +CLEANPOD_POLICY_RUNNING: CleanPodPolicy +CLEANPOD_POLICY_ALL: CleanPodPolicy + +class RunPolicy(_message.Message): + __slots__ = ["clean_pod_policy", "ttl_seconds_after_finished", "active_deadline_seconds", "backoff_limit"] + CLEAN_POD_POLICY_FIELD_NUMBER: _ClassVar[int] + TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] + ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER: _ClassVar[int] + BACKOFF_LIMIT_FIELD_NUMBER: _ClassVar[int] + clean_pod_policy: CleanPodPolicy + ttl_seconds_after_finished: int + active_deadline_seconds: int + backoff_limit: int + def __init__(self, clean_pod_policy: _Optional[_Union[CleanPodPolicy, str]] = ..., ttl_seconds_after_finished: _Optional[int] = ..., active_deadline_seconds: _Optional[int] = ..., backoff_limit: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py new file mode 100644 index 0000000000..4ed3f22be7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/mpi.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/plugins/kubeflow/mpi.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc9\x02\n\x1a\x44istributedMPITrainingTask\x12\x65\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x11launcher_replicas\x18\x02 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x10launcherReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12\x14\n\x05slots\x18\x04 \x01(\x05R\x05slots\"\xf8\x01\n!DistributedMPITrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicy\x12\x18\n\x07\x63ommand\x18\x05 \x03(\tR\x07\x63ommandB\xee\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x08MpiProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.mpi_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\010MpiProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=134 + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=463 + _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_start=466 + _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_end=714 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi new file mode 100644 index 0000000000..6258542993 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi @@ -0,0 +1,34 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedMPITrainingTask(_message.Message): + __slots__ = ["worker_replicas", "launcher_replicas", "run_policy", "slots"] + WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RUN_POLICY_FIELD_NUMBER: _ClassVar[int] + SLOTS_FIELD_NUMBER: _ClassVar[int] + worker_replicas: DistributedMPITrainingReplicaSpec + launcher_replicas: DistributedMPITrainingReplicaSpec + run_policy: _common_pb2.RunPolicy + slots: int + def __init__(self, worker_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., launcher_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., slots: _Optional[int] = ...) -> None: ... + +class DistributedMPITrainingReplicaSpec(_message.Message): + __slots__ = ["replicas", "image", "resources", "restart_policy", "command"] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] + COMMAND_FIELD_NUMBER: _ClassVar[int] + replicas: int + image: str + resources: _tasks_pb2.Resources + restart_policy: _common_pb2.RestartPolicy + command: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ..., command: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py new file mode 100644 index 0000000000..46f574228a --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/pytorch.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/plugins/kubeflow/pytorch.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x8c\x03\n\x1e\x44istributedPyTorchTrainingTask\x12i\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x0fmaster_replicas\x18\x02 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0emasterReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12O\n\x0e\x65lastic_config\x18\x04 \x01(\x0b\x32(.flyteidl.plugins.kubeflow.ElasticConfigR\relasticConfig\"\xe2\x01\n%DistributedPyTorchTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xf2\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0cPytorchProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.pytorch_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\014PytorchProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_ELASTICCONFIG']._serialized_start=138 + _globals['_ELASTICCONFIG']._serialized_end=331 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=334 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=730 + _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_start=733 + _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_end=959 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi new file mode 100644 index 0000000000..ee6599ad82 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi @@ -0,0 +1,45 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ElasticConfig(_message.Message): + __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] + RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] + MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] + NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] + MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] + rdzv_backend: str + min_replicas: int + max_replicas: int + nproc_per_node: int + max_restarts: int + def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... + +class DistributedPyTorchTrainingTask(_message.Message): + __slots__ = ["worker_replicas", "master_replicas", "run_policy", "elastic_config"] + WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MASTER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RUN_POLICY_FIELD_NUMBER: _ClassVar[int] + ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] + worker_replicas: DistributedPyTorchTrainingReplicaSpec + master_replicas: DistributedPyTorchTrainingReplicaSpec + run_policy: _common_pb2.RunPolicy + elastic_config: ElasticConfig + def __init__(self, worker_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., master_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... + +class DistributedPyTorchTrainingReplicaSpec(_message.Message): + __slots__ = ["replicas", "image", "resources", "restart_policy"] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] + replicas: int + image: str + resources: _tasks_pb2.Resources + restart_policy: _common_pb2.RestartPolicy + def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py new file mode 100644 index 0000000000..f0c086f9e7 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/kubeflow/tensorflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 +from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*flyteidl/plugins/kubeflow/tensorflow.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\x9c\x04\n!DistributedTensorflowTrainingTask\x12l\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x0eworkerReplicas\x12\x64\n\x0bps_replicas\x18\x02 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\npsReplicas\x12j\n\x0e\x63hief_replicas\x18\x03 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\rchiefReplicas\x12\x43\n\nrun_policy\x18\x04 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12r\n\x12\x65valuator_replicas\x18\x05 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x11\x65valuatorReplicas\"\xe5\x01\n(DistributedTensorflowTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xf5\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0fTensorflowProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.tensorflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\017TensorflowProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=141 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=681 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_start=684 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_end=913 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi new file mode 100644 index 0000000000..4a999f70e8 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi @@ -0,0 +1,33 @@ +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedTensorflowTrainingTask(_message.Message): + __slots__ = ["worker_replicas", "ps_replicas", "chief_replicas", "run_policy", "evaluator_replicas"] + WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] + CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RUN_POLICY_FIELD_NUMBER: _ClassVar[int] + EVALUATOR_REPLICAS_FIELD_NUMBER: _ClassVar[int] + worker_replicas: DistributedTensorflowTrainingReplicaSpec + ps_replicas: DistributedTensorflowTrainingReplicaSpec + chief_replicas: DistributedTensorflowTrainingReplicaSpec + run_policy: _common_pb2.RunPolicy + evaluator_replicas: DistributedTensorflowTrainingReplicaSpec + def __init__(self, worker_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., ps_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., chief_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., evaluator_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ...) -> None: ... + +class DistributedTensorflowTrainingReplicaSpec(_message.Message): + __slots__ = ["replicas", "image", "resources", "restart_policy"] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + IMAGE_FIELD_NUMBER: _ClassVar[int] + RESOURCES_FIELD_NUMBER: _ClassVar[int] + RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] + replicas: int + image: str + resources: _tasks_pb2.Resources + restart_policy: _common_pb2.RestartPolicy + def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py new file mode 100644 index 0000000000..7552fe1010 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/mpi.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/mpi.proto\x12\x10\x66lyteidl.plugins\"\x87\x01\n\x1a\x44istributedMPITrainingTask\x12\x1f\n\x0bnum_workers\x18\x01 \x01(\x05R\nnumWorkers\x12\x32\n\x15num_launcher_replicas\x18\x02 \x01(\x05R\x13numLauncherReplicas\x12\x14\n\x05slots\x18\x03 \x01(\x05R\x05slotsB\xc0\x01\n\x14\x63om.flyteidl.pluginsB\x08MpiProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.mpi_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010MpiProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=49 + _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=184 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi new file mode 100644 index 0000000000..b907bede41 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi @@ -0,0 +1,15 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedMPITrainingTask(_message.Message): + __slots__ = ["num_workers", "num_launcher_replicas", "slots"] + NUM_WORKERS_FIELD_NUMBER: _ClassVar[int] + NUM_LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] + SLOTS_FIELD_NUMBER: _ClassVar[int] + num_workers: int + num_launcher_replicas: int + slots: int + def __init__(self, num_workers: _Optional[int] = ..., num_launcher_replicas: _Optional[int] = ..., slots: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py new file mode 100644 index 0000000000..b70acbd2a5 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/presto.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/presto.proto\x12\x10\x66lyteidl.plugins\"\x82\x01\n\x0bPrestoQuery\x12#\n\rrouting_group\x18\x01 \x01(\tR\x0croutingGroup\x12\x18\n\x07\x63\x61talog\x18\x02 \x01(\tR\x07\x63\x61talog\x12\x16\n\x06schema\x18\x03 \x01(\tR\x06schema\x12\x1c\n\tstatement\x18\x04 \x01(\tR\tstatementB\xc3\x01\n\x14\x63om.flyteidl.pluginsB\x0bPrestoProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.presto_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013PrestoProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_PRESTOQUERY']._serialized_start=52 + _globals['_PRESTOQUERY']._serialized_end=182 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi new file mode 100644 index 0000000000..6f185403e4 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi @@ -0,0 +1,17 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class PrestoQuery(_message.Message): + __slots__ = ["routing_group", "catalog", "schema", "statement"] + ROUTING_GROUP_FIELD_NUMBER: _ClassVar[int] + CATALOG_FIELD_NUMBER: _ClassVar[int] + SCHEMA_FIELD_NUMBER: _ClassVar[int] + STATEMENT_FIELD_NUMBER: _ClassVar[int] + routing_group: str + catalog: str + schema: str + statement: str + def __init__(self, routing_group: _Optional[str] = ..., catalog: _Optional[str] = ..., schema: _Optional[str] = ..., statement: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py new file mode 100644 index 0000000000..03333857ab --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/pytorch.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/plugins/pytorch.proto\x12\x10\x66lyteidl.plugins\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x82\x01\n\x1e\x44istributedPyTorchTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x46\n\x0e\x65lastic_config\x18\x02 \x01(\x0b\x32\x1f.flyteidl.plugins.ElasticConfigR\relasticConfigB\xc4\x01\n\x14\x63om.flyteidl.pluginsB\x0cPytorchProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.pytorch_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\014PytorchProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_ELASTICCONFIG']._serialized_start=53 + _globals['_ELASTICCONFIG']._serialized_end=246 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=249 + _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=379 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi new file mode 100644 index 0000000000..882c38d2de --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi @@ -0,0 +1,27 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ElasticConfig(_message.Message): + __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] + RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] + MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] + NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] + MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] + rdzv_backend: str + min_replicas: int + max_replicas: int + nproc_per_node: int + max_restarts: int + def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... + +class DistributedPyTorchTrainingTask(_message.Message): + __slots__ = ["workers", "elastic_config"] + WORKERS_FIELD_NUMBER: _ClassVar[int] + ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] + workers: int + elastic_config: ElasticConfig + def __init__(self, workers: _Optional[int] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py new file mode 100644 index 0000000000..d3f6cc135d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/qubole.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/qubole.proto\x12\x10\x66lyteidl.plugins\"b\n\tHiveQuery\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x1f\n\x0btimeout_sec\x18\x02 \x01(\rR\ntimeoutSec\x12\x1e\n\nretryCount\x18\x03 \x01(\rR\nretryCount\"L\n\x13HiveQueryCollection\x12\x35\n\x07queries\x18\x02 \x03(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x07queries\"\xd1\x01\n\rQuboleHiveJob\x12#\n\rcluster_label\x18\x01 \x01(\tR\x0c\x63lusterLabel\x12T\n\x10query_collection\x18\x02 \x01(\x0b\x32%.flyteidl.plugins.HiveQueryCollectionB\x02\x18\x01R\x0fqueryCollection\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x31\n\x05query\x18\x04 \x01(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x05queryB\xc3\x01\n\x14\x63om.flyteidl.pluginsB\x0bQuboleProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.qubole_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013QuboleProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _QUBOLEHIVEJOB.fields_by_name['query_collection']._options = None + _QUBOLEHIVEJOB.fields_by_name['query_collection']._serialized_options = b'\030\001' + _globals['_HIVEQUERY']._serialized_start=51 + _globals['_HIVEQUERY']._serialized_end=149 + _globals['_HIVEQUERYCOLLECTION']._serialized_start=151 + _globals['_HIVEQUERYCOLLECTION']._serialized_end=227 + _globals['_QUBOLEHIVEJOB']._serialized_start=230 + _globals['_QUBOLEHIVEJOB']._serialized_end=439 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi new file mode 100644 index 0000000000..71e6bd6698 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi @@ -0,0 +1,34 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class HiveQuery(_message.Message): + __slots__ = ["query", "timeout_sec", "retryCount"] + QUERY_FIELD_NUMBER: _ClassVar[int] + TIMEOUT_SEC_FIELD_NUMBER: _ClassVar[int] + RETRYCOUNT_FIELD_NUMBER: _ClassVar[int] + query: str + timeout_sec: int + retryCount: int + def __init__(self, query: _Optional[str] = ..., timeout_sec: _Optional[int] = ..., retryCount: _Optional[int] = ...) -> None: ... + +class HiveQueryCollection(_message.Message): + __slots__ = ["queries"] + QUERIES_FIELD_NUMBER: _ClassVar[int] + queries: _containers.RepeatedCompositeFieldContainer[HiveQuery] + def __init__(self, queries: _Optional[_Iterable[_Union[HiveQuery, _Mapping]]] = ...) -> None: ... + +class QuboleHiveJob(_message.Message): + __slots__ = ["cluster_label", "query_collection", "tags", "query"] + CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] + QUERY_COLLECTION_FIELD_NUMBER: _ClassVar[int] + TAGS_FIELD_NUMBER: _ClassVar[int] + QUERY_FIELD_NUMBER: _ClassVar[int] + cluster_label: str + query_collection: HiveQueryCollection + tags: _containers.RepeatedScalarFieldContainer[str] + query: HiveQuery + def __init__(self, cluster_label: _Optional[str] = ..., query_collection: _Optional[_Union[HiveQueryCollection, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ..., query: _Optional[_Union[HiveQuery, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py new file mode 100644 index 0000000000..1c5de3b666 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/ray.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/ray.proto\x12\x10\x66lyteidl.plugins\"\xe4\x01\n\x06RayJob\x12=\n\x0bray_cluster\x18\x01 \x01(\x0b\x32\x1c.flyteidl.plugins.RayClusterR\nrayCluster\x12\x1f\n\x0bruntime_env\x18\x02 \x01(\tR\nruntimeEnv\x12=\n\x1bshutdown_after_job_finishes\x18\x03 \x01(\x08R\x18shutdownAfterJobFinishes\x12;\n\x1attl_seconds_after_finished\x18\x04 \x01(\x05R\x17ttlSecondsAfterFinished\"\xd3\x01\n\nRayCluster\x12G\n\x0fhead_group_spec\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.HeadGroupSpecR\rheadGroupSpec\x12M\n\x11worker_group_spec\x18\x02 \x03(\x0b\x32!.flyteidl.plugins.WorkerGroupSpecR\x0fworkerGroupSpec\x12-\n\x12\x65nable_autoscaling\x18\x03 \x01(\x08R\x11\x65nableAutoscaling\"\xb1\x01\n\rHeadGroupSpec\x12]\n\x10ray_start_params\x18\x01 \x03(\x0b\x32\x33.flyteidl.plugins.HeadGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb6\x02\n\x0fWorkerGroupSpec\x12\x1d\n\ngroup_name\x18\x01 \x01(\tR\tgroupName\x12\x1a\n\x08replicas\x18\x02 \x01(\x05R\x08replicas\x12!\n\x0cmin_replicas\x18\x03 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x04 \x01(\x05R\x0bmaxReplicas\x12_\n\x10ray_start_params\x18\x05 \x03(\x0b\x32\x35.flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xc0\x01\n\x14\x63om.flyteidl.pluginsB\x08RayProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.ray_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010RayProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._options = None + _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' + _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._options = None + _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' + _globals['_RAYJOB']._serialized_start=49 + _globals['_RAYJOB']._serialized_end=277 + _globals['_RAYCLUSTER']._serialized_start=280 + _globals['_RAYCLUSTER']._serialized_end=491 + _globals['_HEADGROUPSPEC']._serialized_start=494 + _globals['_HEADGROUPSPEC']._serialized_end=671 + _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=606 + _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=671 + _globals['_WORKERGROUPSPEC']._serialized_start=674 + _globals['_WORKERGROUPSPEC']._serialized_end=984 + _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=606 + _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=671 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi new file mode 100644 index 0000000000..15c78912bd --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi @@ -0,0 +1,62 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class RayJob(_message.Message): + __slots__ = ["ray_cluster", "runtime_env", "shutdown_after_job_finishes", "ttl_seconds_after_finished"] + RAY_CLUSTER_FIELD_NUMBER: _ClassVar[int] + RUNTIME_ENV_FIELD_NUMBER: _ClassVar[int] + SHUTDOWN_AFTER_JOB_FINISHES_FIELD_NUMBER: _ClassVar[int] + TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] + ray_cluster: RayCluster + runtime_env: str + shutdown_after_job_finishes: bool + ttl_seconds_after_finished: int + def __init__(self, ray_cluster: _Optional[_Union[RayCluster, _Mapping]] = ..., runtime_env: _Optional[str] = ..., shutdown_after_job_finishes: bool = ..., ttl_seconds_after_finished: _Optional[int] = ...) -> None: ... + +class RayCluster(_message.Message): + __slots__ = ["head_group_spec", "worker_group_spec", "enable_autoscaling"] + HEAD_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] + WORKER_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] + ENABLE_AUTOSCALING_FIELD_NUMBER: _ClassVar[int] + head_group_spec: HeadGroupSpec + worker_group_spec: _containers.RepeatedCompositeFieldContainer[WorkerGroupSpec] + enable_autoscaling: bool + def __init__(self, head_group_spec: _Optional[_Union[HeadGroupSpec, _Mapping]] = ..., worker_group_spec: _Optional[_Iterable[_Union[WorkerGroupSpec, _Mapping]]] = ..., enable_autoscaling: bool = ...) -> None: ... + +class HeadGroupSpec(_message.Message): + __slots__ = ["ray_start_params"] + class RayStartParamsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] + ray_start_params: _containers.ScalarMap[str, str] + def __init__(self, ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... + +class WorkerGroupSpec(_message.Message): + __slots__ = ["group_name", "replicas", "min_replicas", "max_replicas", "ray_start_params"] + class RayStartParamsEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + GROUP_NAME_FIELD_NUMBER: _ClassVar[int] + REPLICAS_FIELD_NUMBER: _ClassVar[int] + MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] + MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] + RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] + group_name: str + replicas: int + min_replicas: int + max_replicas: int + ray_start_params: _containers.ScalarMap[str, str] + def __init__(self, group_name: _Optional[str] = ..., replicas: _Optional[int] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py new file mode 100644 index 0000000000..8ee1759390 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/spark.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/plugins/spark.proto\x12\x10\x66lyteidl.plugins\x1a\x1cgoogle/protobuf/struct.proto\"B\n\x10SparkApplication\".\n\x04Type\x12\n\n\x06PYTHON\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\t\n\x05SCALA\x10\x02\x12\x05\n\x01R\x10\x03\"\xfe\x04\n\x08SparkJob\x12Q\n\x0f\x61pplicationType\x18\x01 \x01(\x0e\x32\'.flyteidl.plugins.SparkApplication.TypeR\x0f\x61pplicationType\x12\x30\n\x13mainApplicationFile\x18\x02 \x01(\tR\x13mainApplicationFile\x12\x1c\n\tmainClass\x18\x03 \x01(\tR\tmainClass\x12G\n\tsparkConf\x18\x04 \x03(\x0b\x32).flyteidl.plugins.SparkJob.SparkConfEntryR\tsparkConf\x12J\n\nhadoopConf\x18\x05 \x03(\x0b\x32*.flyteidl.plugins.SparkJob.HadoopConfEntryR\nhadoopConf\x12\"\n\x0c\x65xecutorPath\x18\x06 \x01(\tR\x0c\x65xecutorPath\x12?\n\x0e\x64\x61tabricksConf\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x0e\x64\x61tabricksConf\x12(\n\x0f\x64\x61tabricksToken\x18\x08 \x01(\tR\x0f\x64\x61tabricksToken\x12.\n\x12\x64\x61tabricksInstance\x18\t \x01(\tR\x12\x64\x61tabricksInstance\x1a<\n\x0eSparkConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a=\n\x0fHadoopConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xc2\x01\n\x14\x63om.flyteidl.pluginsB\nSparkProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.spark_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\nSparkProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _SPARKJOB_SPARKCONFENTRY._options = None + _SPARKJOB_SPARKCONFENTRY._serialized_options = b'8\001' + _SPARKJOB_HADOOPCONFENTRY._options = None + _SPARKJOB_HADOOPCONFENTRY._serialized_options = b'8\001' + _globals['_SPARKAPPLICATION']._serialized_start=80 + _globals['_SPARKAPPLICATION']._serialized_end=146 + _globals['_SPARKAPPLICATION_TYPE']._serialized_start=100 + _globals['_SPARKAPPLICATION_TYPE']._serialized_end=146 + _globals['_SPARKJOB']._serialized_start=149 + _globals['_SPARKJOB']._serialized_end=787 + _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_start=664 + _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_end=724 + _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_start=726 + _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_end=787 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi new file mode 100644 index 0000000000..e6b9e4eb68 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi @@ -0,0 +1,58 @@ +from google.protobuf import struct_pb2 as _struct_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class SparkApplication(_message.Message): + __slots__ = [] + class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + PYTHON: _ClassVar[SparkApplication.Type] + JAVA: _ClassVar[SparkApplication.Type] + SCALA: _ClassVar[SparkApplication.Type] + R: _ClassVar[SparkApplication.Type] + PYTHON: SparkApplication.Type + JAVA: SparkApplication.Type + SCALA: SparkApplication.Type + R: SparkApplication.Type + def __init__(self) -> None: ... + +class SparkJob(_message.Message): + __slots__ = ["applicationType", "mainApplicationFile", "mainClass", "sparkConf", "hadoopConf", "executorPath", "databricksConf", "databricksToken", "databricksInstance"] + class SparkConfEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class HadoopConfEntry(_message.Message): + __slots__ = ["key", "value"] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + APPLICATIONTYPE_FIELD_NUMBER: _ClassVar[int] + MAINAPPLICATIONFILE_FIELD_NUMBER: _ClassVar[int] + MAINCLASS_FIELD_NUMBER: _ClassVar[int] + SPARKCONF_FIELD_NUMBER: _ClassVar[int] + HADOOPCONF_FIELD_NUMBER: _ClassVar[int] + EXECUTORPATH_FIELD_NUMBER: _ClassVar[int] + DATABRICKSCONF_FIELD_NUMBER: _ClassVar[int] + DATABRICKSTOKEN_FIELD_NUMBER: _ClassVar[int] + DATABRICKSINSTANCE_FIELD_NUMBER: _ClassVar[int] + applicationType: SparkApplication.Type + mainApplicationFile: str + mainClass: str + sparkConf: _containers.ScalarMap[str, str] + hadoopConf: _containers.ScalarMap[str, str] + executorPath: str + databricksConf: _struct_pb2.Struct + databricksToken: str + databricksInstance: str + def __init__(self, applicationType: _Optional[_Union[SparkApplication.Type, str]] = ..., mainApplicationFile: _Optional[str] = ..., mainClass: _Optional[str] = ..., sparkConf: _Optional[_Mapping[str, str]] = ..., hadoopConf: _Optional[_Mapping[str, str]] = ..., executorPath: _Optional[str] = ..., databricksConf: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., databricksToken: _Optional[str] = ..., databricksInstance: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py new file mode 100644 index 0000000000..ceed4231bb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/tensorflow.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/plugins/tensorflow.proto\x12\x10\x66lyteidl.plugins\"\xb4\x01\n!DistributedTensorflowTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x1f\n\x0bps_replicas\x18\x02 \x01(\x05R\npsReplicas\x12%\n\x0e\x63hief_replicas\x18\x03 \x01(\x05R\rchiefReplicas\x12-\n\x12\x65valuator_replicas\x18\x04 \x01(\x05R\x11\x65valuatorReplicasB\xc7\x01\n\x14\x63om.flyteidl.pluginsB\x0fTensorflowProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.tensorflow_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\017TensorflowProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=56 + _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=236 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi new file mode 100644 index 0000000000..81e2bc30b9 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi @@ -0,0 +1,17 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class DistributedTensorflowTrainingTask(_message.Message): + __slots__ = ["workers", "ps_replicas", "chief_replicas", "evaluator_replicas"] + WORKERS_FIELD_NUMBER: _ClassVar[int] + PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] + CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] + EVALUATOR_REPLICAS_FIELD_NUMBER: _ClassVar[int] + workers: int + ps_replicas: int + chief_replicas: int + evaluator_replicas: int + def __init__(self, workers: _Optional[int] = ..., ps_replicas: _Optional[int] = ..., chief_replicas: _Optional[int] = ..., evaluator_replicas: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py new file mode 100644 index 0000000000..fac91e450d --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/plugins/waitable.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/plugins/waitable.proto\x12\x10\x66lyteidl.plugins\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xb3\x01\n\x08Waitable\x12H\n\nwf_exec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x08wfExecId\x12<\n\x05phase\x18\x02 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x1f\n\x0bworkflow_id\x18\x03 \x01(\tR\nworkflowIdB\xc5\x01\n\x14\x63om.flyteidl.pluginsB\rWaitableProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.waitable_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rWaitableProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' + _globals['_WAITABLE']._serialized_start=117 + _globals['_WAITABLE']._serialized_end=296 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi new file mode 100644 index 0000000000..25db3d143b --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi @@ -0,0 +1,17 @@ +from flyteidl.core import execution_pb2 as _execution_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Waitable(_message.Message): + __slots__ = ["wf_exec_id", "phase", "workflow_id"] + WF_EXEC_ID_FIELD_NUMBER: _ClassVar[int] + PHASE_FIELD_NUMBER: _ClassVar[int] + WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] + wf_exec_id: _identifier_pb2.WorkflowExecutionIdentifier + phase: _execution_pb2.WorkflowExecution.Phase + workflow_id: str + def __init__(self, wf_exec_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., workflow_id: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py new file mode 100644 index 0000000000..2daafffebf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py @@ -0,0 +1,4 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + diff --git a/flyteidl/gen/pb_python/flyteidl/service/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py new file mode 100644 index 0000000000..f2b5a55db6 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py @@ -0,0 +1,152 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/admin.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 +from flyteidl.admin import project_domain_attributes_pb2 as flyteidl_dot_admin_dot_project__domain__attributes__pb2 +from flyteidl.admin import project_attributes_pb2 as flyteidl_dot_admin_dot_project__attributes__pb2 +from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 +from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 +from flyteidl.admin import workflow_attributes_pb2 as flyteidl_dot_admin_dot_workflow__attributes__pb2 +from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 +from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 +from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 +from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 +from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 +from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 +from flyteidl.admin import version_pb2 as flyteidl_dot_admin_dot_version__pb2 +from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 +from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/admin.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x66lyteidl/admin/project.proto\x1a.flyteidl/admin/project_domain_attributes.proto\x1a\'flyteidl/admin/project_attributes.proto\x1a\x19\x66lyteidl/admin/task.proto\x1a\x1d\x66lyteidl/admin/workflow.proto\x1a(flyteidl/admin/workflow_attributes.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1a\x66lyteidl/admin/event.proto\x1a\x1e\x66lyteidl/admin/execution.proto\x1a\'flyteidl/admin/matchable_resource.proto\x1a#flyteidl/admin/node_execution.proto\x1a#flyteidl/admin/task_execution.proto\x1a\x1c\x66lyteidl/admin/version.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/description_entity.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\x89r\n\x0c\x41\x64minService\x12\xc5\x02\n\nCreateTask\x12!.flyteidl.admin.TaskCreateRequest\x1a\".flyteidl.admin.TaskCreateResponse\"\xef\x01\x92\x41\xd3\x01\x1a&Create and register a task definition.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/v1/tasks\x12\xb2\x01\n\x07GetTask\x12 .flyteidl.admin.ObjectGetRequest\x1a\x14.flyteidl.admin.Task\"o\x92\x41\'\x1a%Retrieve an existing task definition.\x82\xd3\xe4\x93\x02?\x12=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xde\x01\n\x0bListTaskIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"r\x92\x41\x44\x1a\x42\x46\x65tch existing task definition identifiers matching input filters.\x82\xd3\xe4\x93\x02%\x12#/api/v1/task_ids/{project}/{domain}\x12\xeb\x01\n\tListTasks\x12#.flyteidl.admin.ResourceListRequest\x1a\x18.flyteidl.admin.TaskList\"\x9e\x01\x92\x41\x39\x1a\x37\x46\x65tch existing task definitions matching input filters.\x82\xd3\xe4\x93\x02\\Z(\x12&/api/v1/tasks/{id.project}/{id.domain}\x12\x30/api/v1/tasks/{id.project}/{id.domain}/{id.name}\x12\xd9\x02\n\x0e\x43reateWorkflow\x12%.flyteidl.admin.WorkflowCreateRequest\x1a&.flyteidl.admin.WorkflowCreateResponse\"\xf7\x01\x92\x41\xd7\x01\x1a*Create and register a workflow definition.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/api/v1/workflows\x12\xc2\x01\n\x0bGetWorkflow\x12 .flyteidl.admin.ObjectGetRequest\x1a\x18.flyteidl.admin.Workflow\"w\x92\x41+\x1a)Retrieve an existing workflow definition.\x82\xd3\xe4\x93\x02\x43\x12\x41/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x9f\x01\n\x0fListWorkflowIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"/\x82\xd3\xe4\x93\x02)\x12\'/api/v1/workflow_ids/{project}/{domain}\x12\xff\x01\n\rListWorkflows\x12#.flyteidl.admin.ResourceListRequest\x1a\x1c.flyteidl.admin.WorkflowList\"\xaa\x01\x92\x41=\x1a;Fetch existing workflow definitions matching input filters.\x82\xd3\xe4\x93\x02\x64Z,\x12*/api/v1/workflows/{id.project}/{id.domain}\x12\x34/api/v1/workflows/{id.project}/{id.domain}/{id.name}\x12\xe5\x02\n\x10\x43reateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanCreateRequest\x1a(.flyteidl.admin.LaunchPlanCreateResponse\"\xfd\x01\x92\x41\xda\x01\x1a-Create and register a launch plan definition.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/launch_plans\x12\xcc\x01\n\rGetLaunchPlan\x12 .flyteidl.admin.ObjectGetRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"}\x92\x41.\x1a,Retrieve an existing launch plan definition.\x82\xd3\xe4\x93\x02\x46\x12\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xf3\x01\n\x13GetActiveLaunchPlan\x12\'.flyteidl.admin.ActiveLaunchPlanRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"\x96\x01\x92\x41M\x1aKRetrieve the active launch plan version specified by input request filters.\x82\xd3\xe4\x93\x02@\x12>/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}\x12\xeb\x01\n\x15ListActiveLaunchPlans\x12+.flyteidl.admin.ActiveLaunchPlanListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"\x84\x01\x92\x41K\x1aIFetch the active launch plan versions specified by input request filters.\x82\xd3\xe4\x93\x02\x30\x12./api/v1/active_launch_plans/{project}/{domain}\x12\xf3\x01\n\x11ListLaunchPlanIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"\x80\x01\x92\x41K\x1aIFetch existing launch plan definition identifiers matching input filters.\x82\xd3\xe4\x93\x02,\x12*/api/v1/launch_plan_ids/{project}/{domain}\x12\x8c\x02\n\x0fListLaunchPlans\x12#.flyteidl.admin.ResourceListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"\xb3\x01\x92\x41@\x1a>Fetch existing launch plan definitions matching input filters.\x82\xd3\xe4\x93\x02jZ/\x12-/api/v1/launch_plans/{id.project}/{id.domain}\x12\x37/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}\x12\xc0\x06\n\x10UpdateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanUpdateRequest\x1a(.flyteidl.admin.LaunchPlanUpdateResponse\"\xd8\x05\x92\x41\x85\x05\x1a\x82\x05Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.\x82\xd3\xe4\x93\x02I:\x01*\x1a\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xa2\x01\n\x0f\x43reateExecution\x12&.flyteidl.admin.ExecutionCreateRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\">\x92\x41\x1e\x1a\x1c\x43reate a workflow execution.\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/executions\x12\xb1\x01\n\x11RelaunchExecution\x12(.flyteidl.admin.ExecutionRelaunchRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"I\x92\x41 \x1a\x1eRelaunch a workflow execution.\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v1/executions/relaunch\x12\x9d\x05\n\x10RecoverExecution\x12\'.flyteidl.admin.ExecutionRecoverRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"\xb6\x04\x92\x41\x8d\x04\x1a\x8a\x04Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v1/executions/recover\x12\xc2\x01\n\x0cGetExecution\x12+.flyteidl.admin.WorkflowExecutionGetRequest\x1a\x19.flyteidl.admin.Execution\"j\x92\x41*\x1a(Retrieve an existing workflow execution.\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xa4\x01\n\x0fUpdateExecution\x12&.flyteidl.admin.ExecutionUpdateRequest\x1a\'.flyteidl.admin.ExecutionUpdateResponse\"@\x82\xd3\xe4\x93\x02::\x01*\x1a\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xb9\x01\n\x10GetExecutionData\x12/.flyteidl.admin.WorkflowExecutionGetDataRequest\x1a\x30.flyteidl.admin.WorkflowExecutionGetDataResponse\"B\x82\xd3\xe4\x93\x02<\x12:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}\x12\x89\x01\n\x0eListExecutions\x12#.flyteidl.admin.ResourceListRequest\x1a\x1d.flyteidl.admin.ExecutionList\"3\x82\xd3\xe4\x93\x02-\x12+/api/v1/executions/{id.project}/{id.domain}\x12\xad\x01\n\x12TerminateExecution\x12).flyteidl.admin.ExecutionTerminateRequest\x1a*.flyteidl.admin.ExecutionTerminateResponse\"@\x82\xd3\xe4\x93\x02::\x01**5/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xd2\x01\n\x10GetNodeExecution\x12\'.flyteidl.admin.NodeExecutionGetRequest\x1a\x1d.flyteidl.admin.NodeExecution\"v\x82\xd3\xe4\x93\x02p\x12n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\xff\x01\n\x16GetDynamicNodeWorkflow\x12-.flyteidl.admin.GetDynamicNodeWorkflowRequest\x1a+.flyteidl.admin.DynamicNodeWorkflowResponse\"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01\x12\x7f/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow\x12\xde\x01\n\x12ListNodeExecutions\x12(.flyteidl.admin.NodeExecutionListRequest\x1a!.flyteidl.admin.NodeExecutionList\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xa5\x04\n\x19ListNodeExecutionsForTask\x12/.flyteidl.admin.NodeExecutionForTaskListRequest\x1a!.flyteidl.admin.NodeExecutionList\"\xb3\x03\x82\xd3\xe4\x93\x02\xac\x03\x12\xa9\x03/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}\x12\xee\x01\n\x14GetNodeExecutionData\x12+.flyteidl.admin.NodeExecutionGetDataRequest\x1a,.flyteidl.admin.NodeExecutionGetDataResponse\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\x7f\n\x0fRegisterProject\x12&.flyteidl.admin.ProjectRegisterRequest\x1a\'.flyteidl.admin.ProjectRegisterResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/v1/projects\x12\x87\x01\n\rUpdateProject\x12\x17.flyteidl.admin.Project\x1a%.flyteidl.admin.ProjectUpdateResponse\"6\x92\x41\x13\x1a\x11Update a project.\x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/v1/projects/{id}\x12\x85\x01\n\x0cListProjects\x12\".flyteidl.admin.ProjectListRequest\x1a\x18.flyteidl.admin.Projects\"7\x92\x41\x1c\x1a\x1a\x46\x65tch registered projects.\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/projects\x12\xdd\x01\n\x13\x43reateWorkflowEvent\x12-.flyteidl.admin.WorkflowExecutionEventRequest\x1a..flyteidl.admin.WorkflowExecutionEventResponse\"g\x92\x41\x41\x1a?Create a workflow execution event recording a phase transition.\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/events/workflows\x12\xc9\x01\n\x0f\x43reateNodeEvent\x12).flyteidl.admin.NodeExecutionEventRequest\x1a*.flyteidl.admin.NodeExecutionEventResponse\"_\x92\x41=\x1a;Create a node execution event recording a phase transition.\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/nodes\x12\xc9\x01\n\x0f\x43reateTaskEvent\x12).flyteidl.admin.TaskExecutionEventRequest\x1a*.flyteidl.admin.TaskExecutionEventResponse\"_\x92\x41=\x1a;Create a task execution event recording a phase transition.\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/tasks\x12\xa9\x03\n\x10GetTaskExecution\x12\'.flyteidl.admin.TaskExecutionGetRequest\x1a\x1d.flyteidl.admin.TaskExecution\"\xcc\x02\x92\x41&\x1a$Retrieve an existing task execution.\x82\xd3\xe4\x93\x02\x9c\x02\x12\x99\x02/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\xd3\x02\n\x12ListTaskExecutions\x12(.flyteidl.admin.TaskExecutionListRequest\x1a!.flyteidl.admin.TaskExecutionList\"\xef\x01\x92\x41\x38\x1a\x36\x46\x65tch existing task executions matching input filters.\x82\xd3\xe4\x93\x02\xad\x01\x12\xaa\x01/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}\x12\xe0\x03\n\x14GetTaskExecutionData\x12+.flyteidl.admin.TaskExecutionGetDataRequest\x1a,.flyteidl.admin.TaskExecutionGetDataResponse\"\xec\x02\x92\x41\x41\x1a?Retrieve input and output data from an existing task execution.\x82\xd3\xe4\x93\x02\xa1\x02\x12\x9e\x02/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\xbf\x02\n\x1dUpdateProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesUpdateRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesUpdateResponse\"\xb0\x01\x92\x41X\x1aVUpdate the customized resource attributes associated with a project-domain combination\x82\xd3\xe4\x93\x02O:\x01*\x1aJ/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}\x12\x9f\x02\n\x1aGetProjectDomainAttributes\x12\x31.flyteidl.admin.ProjectDomainAttributesGetRequest\x1a\x32.flyteidl.admin.ProjectDomainAttributesGetResponse\"\x99\x01\x92\x41Z\x1aXRetrieve the customized resource attributes associated with a project-domain combination\x82\xd3\xe4\x93\x02\x36\x12\x34/api/v1/project_domain_attributes/{project}/{domain}\x12\xa9\x02\n\x1d\x44\x65leteProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesDeleteRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesDeleteResponse\"\x9a\x01\x92\x41X\x1aVDelete the customized resource attributes associated with a project-domain combination\x82\xd3\xe4\x93\x02\x39:\x01**4/api/v1/project_domain_attributes/{project}/{domain}\x12\xff\x01\n\x17UpdateProjectAttributes\x12..flyteidl.admin.ProjectAttributesUpdateRequest\x1a/.flyteidl.admin.ProjectAttributesUpdateResponse\"\x82\x01\x92\x41\x45\x1a\x43Update the customized resource attributes associated with a project\x82\xd3\xe4\x93\x02\x34:\x01*\x1a//api/v1/project_attributes/{attributes.project}\x12\xe9\x01\n\x14GetProjectAttributes\x12+.flyteidl.admin.ProjectAttributesGetRequest\x1a,.flyteidl.admin.ProjectAttributesGetResponse\"v\x92\x41G\x1a\x45Retrieve the customized resource attributes associated with a project\x82\xd3\xe4\x93\x02&\x12$/api/v1/project_attributes/{project}\x12\xf3\x01\n\x17\x44\x65leteProjectAttributes\x12..flyteidl.admin.ProjectAttributesDeleteRequest\x1a/.flyteidl.admin.ProjectAttributesDeleteResponse\"w\x92\x41\x45\x1a\x43\x44\x65lete the customized resource attributes associated with a project\x82\xd3\xe4\x93\x02):\x01**$/api/v1/project_attributes/{project}\x12\xce\x02\n\x18UpdateWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesUpdateRequest\x1a\x30.flyteidl.admin.WorkflowAttributesUpdateResponse\"\xce\x01\x92\x41\x66\x1a\x64Update the customized resource attributes associated with a project, domain and workflow combination\x82\xd3\xe4\x93\x02_:\x01*\x1aZ/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}\x12\xa3\x02\n\x15GetWorkflowAttributes\x12,.flyteidl.admin.WorkflowAttributesGetRequest\x1a-.flyteidl.admin.WorkflowAttributesGetResponse\"\xac\x01\x92\x41h\x1a\x66Retrieve the customized resource attributes associated with a project, domain and workflow combination\x82\xd3\xe4\x93\x02;\x12\x39/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xad\x02\n\x18\x44\x65leteWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesDeleteRequest\x1a\x30.flyteidl.admin.WorkflowAttributesDeleteResponse\"\xad\x01\x92\x41\x66\x1a\x64\x44\x65lete the customized resource attributes associated with a project, domain and workflow combination\x82\xd3\xe4\x93\x02>:\x01**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xe1\x01\n\x17ListMatchableAttributes\x12..flyteidl.admin.ListMatchableAttributesRequest\x1a/.flyteidl.admin.ListMatchableAttributesResponse\"e\x92\x41>\x1a/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._options = None + _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._serialized_options = b'\222AK\032IFetch the active launch plan versions specified by input request filters.\202\323\344\223\0020\022./api/v1/active_launch_plans/{project}/{domain}' + _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._options = None + _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._serialized_options = b'\222AK\032IFetch existing launch plan definition identifiers matching input filters.\202\323\344\223\002,\022*/api/v1/launch_plan_ids/{project}/{domain}' + _ADMINSERVICE.methods_by_name['ListLaunchPlans']._options = None + _ADMINSERVICE.methods_by_name['ListLaunchPlans']._serialized_options = b'\222A@\032>Fetch existing launch plan definitions matching input filters.\202\323\344\223\002jZ/\022-/api/v1/launch_plans/{id.project}/{id.domain}\0227/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._options = None + _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._serialized_options = b'\222A\205\005\032\202\005Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.\202\323\344\223\002I:\001*\032D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}' + _ADMINSERVICE.methods_by_name['CreateExecution']._options = None + _ADMINSERVICE.methods_by_name['CreateExecution']._serialized_options = b'\222A\036\032\034Create a workflow execution.\202\323\344\223\002\027:\001*\"\022/api/v1/executions' + _ADMINSERVICE.methods_by_name['RelaunchExecution']._options = None + _ADMINSERVICE.methods_by_name['RelaunchExecution']._serialized_options = b'\222A \032\036Relaunch a workflow execution.\202\323\344\223\002 :\001*\"\033/api/v1/executions/relaunch' + _ADMINSERVICE.methods_by_name['RecoverExecution']._options = None + _ADMINSERVICE.methods_by_name['RecoverExecution']._serialized_options = b'\222A\215\004\032\212\004Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\202\323\344\223\002\037:\001*\"\032/api/v1/executions/recover' + _ADMINSERVICE.methods_by_name['GetExecution']._options = None + _ADMINSERVICE.methods_by_name['GetExecution']._serialized_options = b'\222A*\032(Retrieve an existing workflow execution.\202\323\344\223\0027\0225/api/v1/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['UpdateExecution']._options = None + _ADMINSERVICE.methods_by_name['UpdateExecution']._serialized_options = b'\202\323\344\223\002::\001*\0325/api/v1/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['GetExecutionData']._options = None + _ADMINSERVICE.methods_by_name['GetExecutionData']._serialized_options = b'\202\323\344\223\002<\022:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['ListExecutions']._options = None + _ADMINSERVICE.methods_by_name['ListExecutions']._serialized_options = b'\202\323\344\223\002-\022+/api/v1/executions/{id.project}/{id.domain}' + _ADMINSERVICE.methods_by_name['TerminateExecution']._options = None + _ADMINSERVICE.methods_by_name['TerminateExecution']._serialized_options = b'\202\323\344\223\002::\001**5/api/v1/executions/{id.project}/{id.domain}/{id.name}' + _ADMINSERVICE.methods_by_name['GetNodeExecution']._options = None + _ADMINSERVICE.methods_by_name['GetNodeExecution']._serialized_options = b'\202\323\344\223\002p\022n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' + _ADMINSERVICE.methods_by_name['GetDynamicNodeWorkflow']._options = None + _ADMINSERVICE.methods_by_name['GetDynamicNodeWorkflow']._serialized_options = b'\202\323\344\223\002\201\001\022\177/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow' + _ADMINSERVICE.methods_by_name['ListNodeExecutions']._options = None + _ADMINSERVICE.methods_by_name['ListNodeExecutions']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' + _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._options = None + _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._serialized_options = b'\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}' + _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._options = None + _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' + _ADMINSERVICE.methods_by_name['RegisterProject']._options = None + _ADMINSERVICE.methods_by_name['RegisterProject']._serialized_options = b'\202\323\344\223\002\025:\001*\"\020/api/v1/projects' + _ADMINSERVICE.methods_by_name['UpdateProject']._options = None + _ADMINSERVICE.methods_by_name['UpdateProject']._serialized_options = b'\222A\023\032\021Update a project.\202\323\344\223\002\032:\001*\032\025/api/v1/projects/{id}' + _ADMINSERVICE.methods_by_name['ListProjects']._options = None + _ADMINSERVICE.methods_by_name['ListProjects']._serialized_options = b'\222A\034\032\032Fetch registered projects.\202\323\344\223\002\022\022\020/api/v1/projects' + _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._options = None + _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._serialized_options = b'\222AA\032?Create a workflow execution event recording a phase transition.\202\323\344\223\002\035:\001*\"\030/api/v1/events/workflows' + _ADMINSERVICE.methods_by_name['CreateNodeEvent']._options = None + _ADMINSERVICE.methods_by_name['CreateNodeEvent']._serialized_options = b'\222A=\032;Create a node execution event recording a phase transition.\202\323\344\223\002\031:\001*\"\024/api/v1/events/nodes' + _ADMINSERVICE.methods_by_name['CreateTaskEvent']._options = None + _ADMINSERVICE.methods_by_name['CreateTaskEvent']._serialized_options = b'\222A=\032;Create a task execution event recording a phase transition.\202\323\344\223\002\031:\001*\"\024/api/v1/events/tasks' + _ADMINSERVICE.methods_by_name['GetTaskExecution']._options = None + _ADMINSERVICE.methods_by_name['GetTaskExecution']._serialized_options = b'\222A&\032$Retrieve an existing task execution.\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' + _ADMINSERVICE.methods_by_name['ListTaskExecutions']._options = None + _ADMINSERVICE.methods_by_name['ListTaskExecutions']._serialized_options = b'\222A8\0326Fetch existing task executions matching input filters.\202\323\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}' + _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._options = None + _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._serialized_options = b'\222AA\032?Retrieve input and output data from an existing task execution.\202\323\344\223\002\241\002\022\236\002/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' + _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._options = None + _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._serialized_options = b'\222AX\032VUpdate the customized resource attributes associated with a project-domain combination\202\323\344\223\002O:\001*\032J/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}' + _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._options = None + _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._serialized_options = b'\222AZ\032XRetrieve the customized resource attributes associated with a project-domain combination\202\323\344\223\0026\0224/api/v1/project_domain_attributes/{project}/{domain}' + _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._options = None + _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._serialized_options = b'\222AX\032VDelete the customized resource attributes associated with a project-domain combination\202\323\344\223\0029:\001**4/api/v1/project_domain_attributes/{project}/{domain}' + _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._options = None + _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._serialized_options = b'\222AE\032CUpdate the customized resource attributes associated with a project\202\323\344\223\0024:\001*\032//api/v1/project_attributes/{attributes.project}' + _ADMINSERVICE.methods_by_name['GetProjectAttributes']._options = None + _ADMINSERVICE.methods_by_name['GetProjectAttributes']._serialized_options = b'\222AG\032ERetrieve the customized resource attributes associated with a project\202\323\344\223\002&\022$/api/v1/project_attributes/{project}' + _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._options = None + _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._serialized_options = b'\222AE\032CDelete the customized resource attributes associated with a project\202\323\344\223\002):\001**$/api/v1/project_attributes/{project}' + _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._options = None + _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._serialized_options = b'\222Af\032dUpdate the customized resource attributes associated with a project, domain and workflow combination\202\323\344\223\002_:\001*\032Z/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}' + _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._options = None + _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._serialized_options = b'\222Ah\032fRetrieve the customized resource attributes associated with a project, domain and workflow combination\202\323\344\223\002;\0229/api/v1/workflow_attributes/{project}/{domain}/{workflow}' + _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._options = None + _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._serialized_options = b'\222Af\032dDelete the customized resource attributes associated with a project, domain and workflow combination\202\323\344\223\002>:\001**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}' + _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._options = None + _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._serialized_options = b'\222A>\032 None: ... + +class OAuth2MetadataResponse(_message.Message): + __slots__ = ["issuer", "authorization_endpoint", "token_endpoint", "response_types_supported", "scopes_supported", "token_endpoint_auth_methods_supported", "jwks_uri", "code_challenge_methods_supported", "grant_types_supported", "device_authorization_endpoint"] + ISSUER_FIELD_NUMBER: _ClassVar[int] + AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + SCOPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + JWKS_URI_FIELD_NUMBER: _ClassVar[int] + CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + GRANT_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] + DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + issuer: str + authorization_endpoint: str + token_endpoint: str + response_types_supported: _containers.RepeatedScalarFieldContainer[str] + scopes_supported: _containers.RepeatedScalarFieldContainer[str] + token_endpoint_auth_methods_supported: _containers.RepeatedScalarFieldContainer[str] + jwks_uri: str + code_challenge_methods_supported: _containers.RepeatedScalarFieldContainer[str] + grant_types_supported: _containers.RepeatedScalarFieldContainer[str] + device_authorization_endpoint: str + def __init__(self, issuer: _Optional[str] = ..., authorization_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ..., response_types_supported: _Optional[_Iterable[str]] = ..., scopes_supported: _Optional[_Iterable[str]] = ..., token_endpoint_auth_methods_supported: _Optional[_Iterable[str]] = ..., jwks_uri: _Optional[str] = ..., code_challenge_methods_supported: _Optional[_Iterable[str]] = ..., grant_types_supported: _Optional[_Iterable[str]] = ..., device_authorization_endpoint: _Optional[str] = ...) -> None: ... + +class PublicClientAuthConfigRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class PublicClientAuthConfigResponse(_message.Message): + __slots__ = ["client_id", "redirect_uri", "scopes", "authorization_metadata_key", "service_http_endpoint", "audience"] + CLIENT_ID_FIELD_NUMBER: _ClassVar[int] + REDIRECT_URI_FIELD_NUMBER: _ClassVar[int] + SCOPES_FIELD_NUMBER: _ClassVar[int] + AUTHORIZATION_METADATA_KEY_FIELD_NUMBER: _ClassVar[int] + SERVICE_HTTP_ENDPOINT_FIELD_NUMBER: _ClassVar[int] + AUDIENCE_FIELD_NUMBER: _ClassVar[int] + client_id: str + redirect_uri: str + scopes: _containers.RepeatedScalarFieldContainer[str] + authorization_metadata_key: str + service_http_endpoint: str + audience: str + def __init__(self, client_id: _Optional[str] = ..., redirect_uri: _Optional[str] = ..., scopes: _Optional[_Iterable[str]] = ..., authorization_metadata_key: _Optional[str] = ..., service_http_endpoint: _Optional[str] = ..., audience: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py new file mode 100644 index 0000000000..155b8ca575 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py @@ -0,0 +1,111 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import auth_pb2 as flyteidl_dot_service_dot_auth__pb2 + + +class AuthMetadataServiceStub(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + RPCs defined in this service must be anonymously accessible. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetOAuth2Metadata = channel.unary_unary( + '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', + request_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, + ) + self.GetPublicClientConfig = channel.unary_unary( + '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', + request_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, + ) + + +class AuthMetadataServiceServicer(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + RPCs defined in this service must be anonymously accessible. + """ + + def GetOAuth2Metadata(self, request, context): + """Anonymously accessible. Retrieves local or external oauth authorization server metadata. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetPublicClientConfig(self, request, context): + """Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization + requests. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_AuthMetadataServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetOAuth2Metadata': grpc.unary_unary_rpc_method_handler( + servicer.GetOAuth2Metadata, + request_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.FromString, + response_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.SerializeToString, + ), + 'GetPublicClientConfig': grpc.unary_unary_rpc_method_handler( + servicer.GetPublicClientConfig, + request_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.FromString, + response_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.AuthMetadataService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class AuthMetadataService(object): + """The following defines an RPC service that is also served over HTTP via grpc-gateway. + Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go + RPCs defined in this service must be anonymously accessible. + """ + + @staticmethod + def GetOAuth2Metadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', + flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, + flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetPublicClientConfig(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', + flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, + flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py new file mode 100644 index 0000000000..feced8c21e --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/dataproxy.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 +from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/service/dataproxy.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x97\x01\n\x1c\x43reateUploadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x1d\n\nnative_url\x18\x02 \x01(\tR\tnativeUrl\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"\xeb\x01\n\x1b\x43reateUploadLocationRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08\x66ilename\x18\x03 \x01(\tR\x08\x66ilename\x12\x38\n\nexpires_in\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12\x1f\n\x0b\x63ontent_md5\x18\x05 \x01(\x0cR\ncontentMd5\x12#\n\rfilename_root\x18\x06 \x01(\tR\x0c\x66ilenameRoot\"|\n\x1d\x43reateDownloadLocationRequest\x12\x1d\n\nnative_url\x18\x01 \x01(\tR\tnativeUrl\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn:\x02\x18\x01\"~\n\x1e\x43reateDownloadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt:\x02\x18\x01\"\xfa\x01\n\x19\x43reateDownloadLinkRequest\x12\x43\n\rartifact_type\x18\x01 \x01(\x0e\x32\x1e.flyteidl.service.ArtifactTypeR\x0c\x61rtifactType\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12T\n\x11node_execution_id\x18\x03 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x0fnodeExecutionIdB\x08\n\x06source\"\xc7\x01\n\x1a\x43reateDownloadLinkResponse\x12!\n\nsigned_url\x18\x01 \x03(\tB\x02\x18\x01R\tsignedUrl\x12=\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01R\texpiresAt\x12G\n\x0fpre_signed_urls\x18\x03 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsR\rpreSignedUrls\"i\n\rPreSignedURLs\x12\x1d\n\nsigned_url\x18\x01 \x03(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"-\n\x0eGetDataRequest\x12\x1b\n\tflyte_url\x18\x01 \x01(\tR\x08\x66lyteUrl\"\xd6\x01\n\x0fGetDataResponse\x12<\n\x0bliteral_map\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\nliteralMap\x12I\n\x0fpre_signed_urls\x18\x02 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsH\x00R\rpreSignedUrls\x12\x32\n\x07literal\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07literalB\x06\n\x04\x64\x61ta*C\n\x0c\x41rtifactType\x12\x1b\n\x17\x41RTIFACT_TYPE_UNDEFINED\x10\x00\x12\x16\n\x12\x41RTIFACT_TYPE_DECK\x10\x01\x32\x84\x07\n\x10\x44\x61taProxyService\x12\xf0\x01\n\x14\x43reateUploadLocation\x12-.flyteidl.service.CreateUploadLocationRequest\x1a..flyteidl.service.CreateUploadLocationResponse\"y\x92\x41M\x1aKCreates a write-only http location that is accessible for tasks at runtime.\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/v1/dataproxy/artifact_urn\x12\xa9\x02\n\x16\x43reateDownloadLocation\x12/.flyteidl.service.CreateDownloadLocationRequest\x1a\x30.flyteidl.service.CreateDownloadLocationResponse\"\xab\x01\x88\x02\x01\x92\x41\x7f\x1a}Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime.\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/dataproxy/artifact_urn\x12\xea\x01\n\x12\x43reateDownloadLink\x12+.flyteidl.service.CreateDownloadLinkRequest\x1a,.flyteidl.service.CreateDownloadLinkResponse\"y\x92\x41L\x1aJCreates a read-only http location that is accessible for tasks at runtime.\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v1/dataproxy/artifact_link\x12\x64\n\x07GetData\x12 .flyteidl.service.GetDataRequest\x1a!.flyteidl.service.GetDataResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v1/dataB\xc6\x01\n\x14\x63om.flyteidl.serviceB\x0e\x44\x61taproxyProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.dataproxy_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\016DataproxyProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _CREATEDOWNLOADLOCATIONREQUEST._options = None + _CREATEDOWNLOADLOCATIONREQUEST._serialized_options = b'\030\001' + _CREATEDOWNLOADLOCATIONRESPONSE._options = None + _CREATEDOWNLOADLOCATIONRESPONSE._serialized_options = b'\030\001' + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._options = None + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._serialized_options = b'\030\001' + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._options = None + _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._serialized_options = b'\030\001' + _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._options = None + _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._serialized_options = b'\222AM\032KCreates a write-only http location that is accessible for tasks at runtime.\202\323\344\223\002#:\001*\"\036/api/v1/dataproxy/artifact_urn' + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._options = None + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._serialized_options = b'\210\002\001\222A\177\032}Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime.\202\323\344\223\002 \022\036/api/v1/dataproxy/artifact_urn' + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._options = None + _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._serialized_options = b'\222AL\032JCreates a read-only http location that is accessible for tasks at runtime.\202\323\344\223\002$:\001*\"\037/api/v1/dataproxy/artifact_link' + _DATAPROXYSERVICE.methods_by_name['GetData']._options = None + _DATAPROXYSERVICE.methods_by_name['GetData']._serialized_options = b'\202\323\344\223\002\016\022\014/api/v1/data' + _globals['_ARTIFACTTYPE']._serialized_start=1731 + _globals['_ARTIFACTTYPE']._serialized_end=1798 + _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_start=260 + _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_end=411 + _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_start=414 + _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_end=649 + _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_start=651 + _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_end=775 + _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_start=777 + _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_end=903 + _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_start=906 + _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_end=1156 + _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_start=1159 + _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_end=1358 + _globals['_PRESIGNEDURLS']._serialized_start=1360 + _globals['_PRESIGNEDURLS']._serialized_end=1465 + _globals['_GETDATAREQUEST']._serialized_start=1467 + _globals['_GETDATAREQUEST']._serialized_end=1512 + _globals['_GETDATARESPONSE']._serialized_start=1515 + _globals['_GETDATARESPONSE']._serialized_end=1729 + _globals['_DATAPROXYSERVICE']._serialized_start=1801 + _globals['_DATAPROXYSERVICE']._serialized_end=2701 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi new file mode 100644 index 0000000000..40245087ab --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi @@ -0,0 +1,106 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 +from google.protobuf import duration_pb2 as _duration_pb2 +from google.protobuf import timestamp_pb2 as _timestamp_pb2 +from flyteidl.core import identifier_pb2 as _identifier_pb2 +from flyteidl.core import literals_pb2 as _literals_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class ArtifactType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + ARTIFACT_TYPE_UNDEFINED: _ClassVar[ArtifactType] + ARTIFACT_TYPE_DECK: _ClassVar[ArtifactType] +ARTIFACT_TYPE_UNDEFINED: ArtifactType +ARTIFACT_TYPE_DECK: ArtifactType + +class CreateUploadLocationResponse(_message.Message): + __slots__ = ["signed_url", "native_url", "expires_at"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + NATIVE_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + signed_url: str + native_url: str + expires_at: _timestamp_pb2.Timestamp + def __init__(self, signed_url: _Optional[str] = ..., native_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class CreateUploadLocationRequest(_message.Message): + __slots__ = ["project", "domain", "filename", "expires_in", "content_md5", "filename_root"] + PROJECT_FIELD_NUMBER: _ClassVar[int] + DOMAIN_FIELD_NUMBER: _ClassVar[int] + FILENAME_FIELD_NUMBER: _ClassVar[int] + EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] + CONTENT_MD5_FIELD_NUMBER: _ClassVar[int] + FILENAME_ROOT_FIELD_NUMBER: _ClassVar[int] + project: str + domain: str + filename: str + expires_in: _duration_pb2.Duration + content_md5: bytes + filename_root: str + def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., filename: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., content_md5: _Optional[bytes] = ..., filename_root: _Optional[str] = ...) -> None: ... + +class CreateDownloadLocationRequest(_message.Message): + __slots__ = ["native_url", "expires_in"] + NATIVE_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] + native_url: str + expires_in: _duration_pb2.Duration + def __init__(self, native_url: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... + +class CreateDownloadLocationResponse(_message.Message): + __slots__ = ["signed_url", "expires_at"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + signed_url: str + expires_at: _timestamp_pb2.Timestamp + def __init__(self, signed_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class CreateDownloadLinkRequest(_message.Message): + __slots__ = ["artifact_type", "expires_in", "node_execution_id"] + ARTIFACT_TYPE_FIELD_NUMBER: _ClassVar[int] + EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] + NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] + artifact_type: ArtifactType + expires_in: _duration_pb2.Duration + node_execution_id: _identifier_pb2.NodeExecutionIdentifier + def __init__(self, artifact_type: _Optional[_Union[ArtifactType, str]] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... + +class CreateDownloadLinkResponse(_message.Message): + __slots__ = ["signed_url", "expires_at", "pre_signed_urls"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] + signed_url: _containers.RepeatedScalarFieldContainer[str] + expires_at: _timestamp_pb2.Timestamp + pre_signed_urls: PreSignedURLs + def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ...) -> None: ... + +class PreSignedURLs(_message.Message): + __slots__ = ["signed_url", "expires_at"] + SIGNED_URL_FIELD_NUMBER: _ClassVar[int] + EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] + signed_url: _containers.RepeatedScalarFieldContainer[str] + expires_at: _timestamp_pb2.Timestamp + def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... + +class GetDataRequest(_message.Message): + __slots__ = ["flyte_url"] + FLYTE_URL_FIELD_NUMBER: _ClassVar[int] + flyte_url: str + def __init__(self, flyte_url: _Optional[str] = ...) -> None: ... + +class GetDataResponse(_message.Message): + __slots__ = ["literal_map", "pre_signed_urls", "literal"] + LITERAL_MAP_FIELD_NUMBER: _ClassVar[int] + PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] + LITERAL_FIELD_NUMBER: _ClassVar[int] + literal_map: _literals_pb2.LiteralMap + pre_signed_urls: PreSignedURLs + literal: _literals_pb2.Literal + def __init__(self, literal_map: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ..., literal: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py new file mode 100644 index 0000000000..601d1cbf56 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py @@ -0,0 +1,171 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import dataproxy_pb2 as flyteidl_dot_service_dot_dataproxy__pb2 + + +class DataProxyServiceStub(object): + """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateUploadLocation = channel.unary_unary( + '/flyteidl.service.DataProxyService/CreateUploadLocation', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, + ) + self.CreateDownloadLocation = channel.unary_unary( + '/flyteidl.service.DataProxyService/CreateDownloadLocation', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, + ) + self.CreateDownloadLink = channel.unary_unary( + '/flyteidl.service.DataProxyService/CreateDownloadLink', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, + ) + self.GetData = channel.unary_unary( + '/flyteidl.service.DataProxyService/GetData', + request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, + ) + + +class DataProxyServiceServicer(object): + """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + """ + + def CreateUploadLocation(self, request, context): + """CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDownloadLocation(self, request, context): + """CreateDownloadLocation creates a signed url to download artifacts. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def CreateDownloadLink(self, request, context): + """CreateDownloadLocation creates a signed url to download artifacts. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetData(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_DataProxyServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateUploadLocation': grpc.unary_unary_rpc_method_handler( + servicer.CreateUploadLocation, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.SerializeToString, + ), + 'CreateDownloadLocation': grpc.unary_unary_rpc_method_handler( + servicer.CreateDownloadLocation, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.SerializeToString, + ), + 'CreateDownloadLink': grpc.unary_unary_rpc_method_handler( + servicer.CreateDownloadLink, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.SerializeToString, + ), + 'GetData': grpc.unary_unary_rpc_method_handler( + servicer.GetData, + request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.FromString, + response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.DataProxyService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataProxyService(object): + """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. + """ + + @staticmethod + def CreateUploadLocation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateUploadLocation', + flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDownloadLocation(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLocation', + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def CreateDownloadLink(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLink', + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetData(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/GetData', + flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, + flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py new file mode 100644 index 0000000000..db56c22adf --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/external_plugin_service.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 +from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/service/external_plugin_service.proto\x12\x10\x66lyteidl.service\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\xa8\x01\n\x11TaskCreateRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix:\x02\x18\x01\"/\n\x12TaskCreateResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId:\x02\x18\x01\"H\n\x0eTaskGetRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"y\n\x0fTaskGetResponse\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x17.flyteidl.service.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs:\x02\x18\x01\"K\n\x11TaskDeleteRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"\x18\n\x12TaskDeleteResponse:\x02\x18\x01*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x32\xa8\x02\n\x15\x45xternalPluginService\x12\\\n\nCreateTask\x12#.flyteidl.service.TaskCreateRequest\x1a$.flyteidl.service.TaskCreateResponse\"\x03\x88\x02\x01\x12S\n\x07GetTask\x12 .flyteidl.service.TaskGetRequest\x1a!.flyteidl.service.TaskGetResponse\"\x03\x88\x02\x01\x12\\\n\nDeleteTask\x12#.flyteidl.service.TaskDeleteRequest\x1a$.flyteidl.service.TaskDeleteResponse\"\x03\x88\x02\x01\x42\xd2\x01\n\x14\x63om.flyteidl.serviceB\x1a\x45xternalPluginServiceProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.external_plugin_service_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\032ExternalPluginServiceProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _STATE._options = None + _STATE._serialized_options = b'\030\001' + _TASKCREATEREQUEST._options = None + _TASKCREATEREQUEST._serialized_options = b'\030\001' + _TASKCREATERESPONSE._options = None + _TASKCREATERESPONSE._serialized_options = b'\030\001' + _TASKGETREQUEST._options = None + _TASKGETREQUEST._serialized_options = b'\030\001' + _TASKGETRESPONSE._options = None + _TASKGETRESPONSE._serialized_options = b'\030\001' + _TASKDELETEREQUEST._options = None + _TASKDELETEREQUEST._serialized_options = b'\030\001' + _TASKDELETERESPONSE._options = None + _TASKDELETERESPONSE._serialized_options = b'\030\001' + _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._options = None + _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._serialized_options = b'\210\002\001' + _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._options = None + _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._serialized_options = b'\210\002\001' + _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._options = None + _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\210\002\001' + _globals['_STATE']._serialized_start=645 + _globals['_STATE']._serialized_end=743 + _globals['_TASKCREATEREQUEST']._serialized_start=126 + _globals['_TASKCREATEREQUEST']._serialized_end=294 + _globals['_TASKCREATERESPONSE']._serialized_start=296 + _globals['_TASKCREATERESPONSE']._serialized_end=343 + _globals['_TASKGETREQUEST']._serialized_start=345 + _globals['_TASKGETREQUEST']._serialized_end=417 + _globals['_TASKGETRESPONSE']._serialized_start=419 + _globals['_TASKGETRESPONSE']._serialized_end=540 + _globals['_TASKDELETEREQUEST']._serialized_start=542 + _globals['_TASKDELETEREQUEST']._serialized_end=617 + _globals['_TASKDELETERESPONSE']._serialized_start=619 + _globals['_TASKDELETERESPONSE']._serialized_end=643 + _globals['_EXTERNALPLUGINSERVICE']._serialized_start=746 + _globals['_EXTERNALPLUGINSERVICE']._serialized_end=1042 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi new file mode 100644 index 0000000000..c09566929f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi @@ -0,0 +1,65 @@ +from flyteidl.core import literals_pb2 as _literals_pb2 +from flyteidl.core import tasks_pb2 as _tasks_pb2 +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = [] + RETRYABLE_FAILURE: _ClassVar[State] + PERMANENT_FAILURE: _ClassVar[State] + PENDING: _ClassVar[State] + RUNNING: _ClassVar[State] + SUCCEEDED: _ClassVar[State] +RETRYABLE_FAILURE: State +PERMANENT_FAILURE: State +PENDING: State +RUNNING: State +SUCCEEDED: State + +class TaskCreateRequest(_message.Message): + __slots__ = ["inputs", "template", "output_prefix"] + INPUTS_FIELD_NUMBER: _ClassVar[int] + TEMPLATE_FIELD_NUMBER: _ClassVar[int] + OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] + inputs: _literals_pb2.LiteralMap + template: _tasks_pb2.TaskTemplate + output_prefix: str + def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ...) -> None: ... + +class TaskCreateResponse(_message.Message): + __slots__ = ["job_id"] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + job_id: str + def __init__(self, job_id: _Optional[str] = ...) -> None: ... + +class TaskGetRequest(_message.Message): + __slots__ = ["task_type", "job_id"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + task_type: str + job_id: str + def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... + +class TaskGetResponse(_message.Message): + __slots__ = ["state", "outputs"] + STATE_FIELD_NUMBER: _ClassVar[int] + OUTPUTS_FIELD_NUMBER: _ClassVar[int] + state: State + outputs: _literals_pb2.LiteralMap + def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... + +class TaskDeleteRequest(_message.Message): + __slots__ = ["task_type", "job_id"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + JOB_ID_FIELD_NUMBER: _ClassVar[int] + task_type: str + job_id: str + def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... + +class TaskDeleteResponse(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py new file mode 100644 index 0000000000..6607d36710 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import external_plugin_service_pb2 as flyteidl_dot_service_dot_external__plugin__service__pb2 + + +class ExternalPluginServiceStub(object): + """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.CreateTask = channel.unary_unary( + '/flyteidl.service.ExternalPluginService/CreateTask', + request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, + ) + self.GetTask = channel.unary_unary( + '/flyteidl.service.ExternalPluginService/GetTask', + request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, + ) + self.DeleteTask = channel.unary_unary( + '/flyteidl.service.ExternalPluginService/DeleteTask', + request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, + ) + + +class ExternalPluginServiceServicer(object): + """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + """ + + def CreateTask(self, request, context): + """Send a task create request to the backend plugin server. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def GetTask(self, request, context): + """Get job status. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def DeleteTask(self, request, context): + """Delete the task resource. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ExternalPluginServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'CreateTask': grpc.unary_unary_rpc_method_handler( + servicer.CreateTask, + request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.FromString, + response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.SerializeToString, + ), + 'GetTask': grpc.unary_unary_rpc_method_handler( + servicer.GetTask, + request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.FromString, + response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.SerializeToString, + ), + 'DeleteTask': grpc.unary_unary_rpc_method_handler( + servicer.DeleteTask, + request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.FromString, + response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.ExternalPluginService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ExternalPluginService(object): + """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. + """ + + @staticmethod + def CreateTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/CreateTask', + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def GetTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/GetTask', + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteTask(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/DeleteTask', + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, + flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py new file mode 100644 index 0000000000..c4406115bb --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/identity.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/service/identity.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x11\n\x0fUserInfoRequest\"\xa5\x02\n\x10UserInfoResponse\x12\x18\n\x07subject\x18\x01 \x01(\tR\x07subject\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12-\n\x12preferred_username\x18\x03 \x01(\tR\x11preferredUsername\x12\x1d\n\ngiven_name\x18\x04 \x01(\tR\tgivenName\x12\x1f\n\x0b\x66\x61mily_name\x18\x05 \x01(\tR\nfamilyName\x12\x14\n\x05\x65mail\x18\x06 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x07 \x01(\tR\x07picture\x12\x44\n\x11\x61\x64\x64itional_claims\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructR\x10\x61\x64\x64itionalClaims2\x9d\x01\n\x0fIdentityService\x12\x89\x01\n\x08UserInfo\x12!.flyteidl.service.UserInfoRequest\x1a\".flyteidl.service.UserInfoResponse\"6\x92\x41(\x1a&Retrieves authenticated identity info.\x82\xd3\xe4\x93\x02\x05\x12\x03/meB\xc5\x01\n\x14\x63om.flyteidl.serviceB\rIdentityProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.identity_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\rIdentityProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _IDENTITYSERVICE.methods_by_name['UserInfo']._options = None + _IDENTITYSERVICE.methods_by_name['UserInfo']._serialized_options = b'\222A(\032&Retrieves authenticated identity info.\202\323\344\223\002\005\022\003/me' + _globals['_USERINFOREQUEST']._serialized_start=161 + _globals['_USERINFOREQUEST']._serialized_end=178 + _globals['_USERINFORESPONSE']._serialized_start=181 + _globals['_USERINFORESPONSE']._serialized_end=474 + _globals['_IDENTITYSERVICE']._serialized_start=477 + _globals['_IDENTITYSERVICE']._serialized_end=634 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi new file mode 100644 index 0000000000..ea342b8c60 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi @@ -0,0 +1,32 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from google.protobuf import struct_pb2 as _struct_pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class UserInfoRequest(_message.Message): + __slots__ = [] + def __init__(self) -> None: ... + +class UserInfoResponse(_message.Message): + __slots__ = ["subject", "name", "preferred_username", "given_name", "family_name", "email", "picture", "additional_claims"] + SUBJECT_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + PREFERRED_USERNAME_FIELD_NUMBER: _ClassVar[int] + GIVEN_NAME_FIELD_NUMBER: _ClassVar[int] + FAMILY_NAME_FIELD_NUMBER: _ClassVar[int] + EMAIL_FIELD_NUMBER: _ClassVar[int] + PICTURE_FIELD_NUMBER: _ClassVar[int] + ADDITIONAL_CLAIMS_FIELD_NUMBER: _ClassVar[int] + subject: str + name: str + preferred_username: str + given_name: str + family_name: str + email: str + picture: str + additional_claims: _struct_pb2.Struct + def __init__(self, subject: _Optional[str] = ..., name: _Optional[str] = ..., preferred_username: _Optional[str] = ..., given_name: _Optional[str] = ..., family_name: _Optional[str] = ..., email: _Optional[str] = ..., picture: _Optional[str] = ..., additional_claims: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py new file mode 100644 index 0000000000..0754d44ffe --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py @@ -0,0 +1,70 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.service import identity_pb2 as flyteidl_dot_service_dot_identity__pb2 + + +class IdentityServiceStub(object): + """IdentityService defines an RPC Service that interacts with user/app identities. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UserInfo = channel.unary_unary( + '/flyteidl.service.IdentityService/UserInfo', + request_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, + response_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, + ) + + +class IdentityServiceServicer(object): + """IdentityService defines an RPC Service that interacts with user/app identities. + """ + + def UserInfo(self, request, context): + """Retrieves user information about the currently logged in user. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_IdentityServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UserInfo': grpc.unary_unary_rpc_method_handler( + servicer.UserInfo, + request_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.FromString, + response_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.IdentityService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class IdentityService(object): + """IdentityService defines an RPC Service that interacts with user/app identities. + """ + + @staticmethod + def UserInfo(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.IdentityService/UserInfo', + flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, + flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py new file mode 100644 index 0000000000..ff5eab1c2f --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: flyteidl/service/signal.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import builder as _builder +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as protoc__gen__openapiv2_dot_options_dot_annotations__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/service/signal.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1b\x66lyteidl/admin/signal.proto\x1a.protoc-gen-openapiv2/options/annotations.proto2\xe7\x05\n\rSignalService\x12\x90\x01\n\x11GetOrCreateSignal\x12(.flyteidl.admin.SignalGetOrCreateRequest\x1a\x16.flyteidl.admin.Signal\"9\x92\x41\x36\x1a\x34Retrieve a signal, creating it if it does not exist.\x12\x8e\x02\n\x0bListSignals\x12!.flyteidl.admin.SignalListRequest\x1a\x1a.flyteidl.admin.SignalList\"\xbf\x01\x92\x41I\x1aGFetch existing signal definitions matching the input signal id filters.\x82\xd3\xe4\x93\x02m\x12k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xb1\x02\n\tSetSignal\x12 .flyteidl.admin.SignalSetRequest\x1a!.flyteidl.admin.SignalSetResponse\"\xde\x01\x92\x41\xc0\x01\x1a\x13Set a signal value.JB\n\x03\x34\x30\x30\x12;\n9Returned for bad request that may have failed validation.Je\n\x03\x34\x30\x39\x12^\n\\Returned for a request that references an identical entity that has already been registered.\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/api/v1/signalsB\xc3\x01\n\x14\x63om.flyteidl.serviceB\x0bSignalProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.signal_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\013SignalProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' + _SIGNALSERVICE.methods_by_name['GetOrCreateSignal']._options = None + _SIGNALSERVICE.methods_by_name['GetOrCreateSignal']._serialized_options = b'\222A6\0324Retrieve a signal, creating it if it does not exist.' + _SIGNALSERVICE.methods_by_name['ListSignals']._options = None + _SIGNALSERVICE.methods_by_name['ListSignals']._serialized_options = b'\222AI\032GFetch existing signal definitions matching the input signal id filters.\202\323\344\223\002m\022k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' + _SIGNALSERVICE.methods_by_name['SetSignal']._options = None + _SIGNALSERVICE.methods_by_name['SetSignal']._serialized_options = b'\222A\300\001\032\023Set a signal value.JB\n\003400\022;\n9Returned for bad request that may have failed validation.Je\n\003409\022^\n\\Returned for a request that references an identical entity that has already been registered.\202\323\344\223\002\024:\001*\"\017/api/v1/signals' + _globals['_SIGNALSERVICE']._serialized_start=159 + _globals['_SIGNALSERVICE']._serialized_end=902 +# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi new file mode 100644 index 0000000000..30389f9908 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi @@ -0,0 +1,7 @@ +from google.api import annotations_pb2 as _annotations_pb2 +from flyteidl.admin import signal_pb2 as _signal_pb2 +from protoc_gen_openapiv2.options import annotations_pb2 as _annotations_pb2_1 +from google.protobuf import descriptor as _descriptor +from typing import ClassVar as _ClassVar + +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py new file mode 100644 index 0000000000..78a8e4cb99 --- /dev/null +++ b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py @@ -0,0 +1,138 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 + + +class SignalServiceStub(object): + """SignalService defines an RPC Service that may create, update, and retrieve signal(s). + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.GetOrCreateSignal = channel.unary_unary( + '/flyteidl.service.SignalService/GetOrCreateSignal', + request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, + ) + self.ListSignals = channel.unary_unary( + '/flyteidl.service.SignalService/ListSignals', + request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, + ) + self.SetSignal = channel.unary_unary( + '/flyteidl.service.SignalService/SetSignal', + request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, + response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, + ) + + +class SignalServiceServicer(object): + """SignalService defines an RPC Service that may create, update, and retrieve signal(s). + """ + + def GetOrCreateSignal(self, request, context): + """Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def ListSignals(self, request, context): + """Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def SetSignal(self, request, context): + """Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_SignalServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'GetOrCreateSignal': grpc.unary_unary_rpc_method_handler( + servicer.GetOrCreateSignal, + request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_signal__pb2.Signal.SerializeToString, + ), + 'ListSignals': grpc.unary_unary_rpc_method_handler( + servicer.ListSignals, + request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.SerializeToString, + ), + 'SetSignal': grpc.unary_unary_rpc_method_handler( + servicer.SetSignal, + request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.FromString, + response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'flyteidl.service.SignalService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class SignalService(object): + """SignalService defines an RPC Service that may create, update, and retrieve signal(s). + """ + + @staticmethod + def GetOrCreateSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/GetOrCreateSignal', + flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, + flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def ListSignals(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/ListSignals', + flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, + flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def SetSignal(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/SetSignal', + flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, + flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_rust/datacatalog.rs b/flyteidl/gen/pb_rust/datacatalog.rs new file mode 100644 index 0000000000..ac2c695cab --- /dev/null +++ b/flyteidl/gen/pb_rust/datacatalog.rs @@ -0,0 +1,565 @@ +// @generated +/// +/// Request message for creating a Dataset. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDatasetRequest { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, +} +/// +/// Response message for creating a Dataset +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDatasetResponse { +} +/// +/// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier +/// which is a combination of several fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDatasetRequest { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, +} +/// +/// Response message for retrieving a Dataset. The response will include the metadata for the +/// Dataset. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDatasetResponse { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, +} +/// +/// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that +/// can be one of artifact_id or tag. The result returned will include the artifact data and metadata +/// associated with the artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetArtifactRequest { + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, + #[prost(oneof="get_artifact_request::QueryHandle", tags="2, 3")] + pub query_handle: ::core::option::Option, +} +/// Nested message and enum types in `GetArtifactRequest`. +pub mod get_artifact_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum QueryHandle { + #[prost(string, tag="2")] + ArtifactId(::prost::alloc::string::String), + #[prost(string, tag="3")] + TagName(::prost::alloc::string::String), + } +} +/// +/// Response message for retrieving an Artifact. The result returned will include the artifact data +/// and metadata associated with the artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetArtifactResponse { + #[prost(message, optional, tag="1")] + pub artifact: ::core::option::Option, +} +/// +/// Request message for creating an Artifact and its associated artifact Data. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateArtifactRequest { + #[prost(message, optional, tag="1")] + pub artifact: ::core::option::Option, +} +/// +/// Response message for creating an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateArtifactResponse { +} +/// +/// Request message for tagging an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AddTagRequest { + #[prost(message, optional, tag="1")] + pub tag: ::core::option::Option, +} +/// +/// Response message for tagging an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AddTagResponse { +} +/// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListArtifactsRequest { + /// Use a datasetID for which you want to retrieve the artifacts + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, + /// Apply the filter expression to this query + #[prost(message, optional, tag="2")] + pub filter: ::core::option::Option, + /// Pagination options to get a page of artifacts + #[prost(message, optional, tag="3")] + pub pagination: ::core::option::Option, +} +/// Response to list artifacts +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListArtifactsResponse { + /// The list of artifacts + #[prost(message, repeated, tag="1")] + pub artifacts: ::prost::alloc::vec::Vec, + /// Token to use to request the next page, pass this into the next requests PaginationOptions + #[prost(string, tag="2")] + pub next_token: ::prost::alloc::string::String, +} +/// List the datasets for the given query +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListDatasetsRequest { + /// Apply the filter expression to this query + #[prost(message, optional, tag="1")] + pub filter: ::core::option::Option, + /// Pagination options to get a page of datasets + #[prost(message, optional, tag="2")] + pub pagination: ::core::option::Option, +} +/// List the datasets response with token for next pagination +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListDatasetsResponse { + /// The list of datasets + #[prost(message, repeated, tag="1")] + pub datasets: ::prost::alloc::vec::Vec, + /// Token to use to request the next page, pass this into the next requests PaginationOptions + #[prost(string, tag="2")] + pub next_token: ::prost::alloc::string::String, +} +/// +/// Request message for updating an Artifact and overwriting its associated ArtifactData. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateArtifactRequest { + /// ID of dataset the artifact is associated with + #[prost(message, optional, tag="1")] + pub dataset: ::core::option::Option, + /// List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing + /// ArtifactData entries will be removed from the underlying blob storage and database. + #[prost(message, repeated, tag="4")] + pub data: ::prost::alloc::vec::Vec, + /// Update execution metadata(including execution domain, name, node, project data) when overwriting cache + #[prost(message, optional, tag="5")] + pub metadata: ::core::option::Option, + /// Either ID of artifact or name of tag to retrieve existing artifact from + #[prost(oneof="update_artifact_request::QueryHandle", tags="2, 3")] + pub query_handle: ::core::option::Option, +} +/// Nested message and enum types in `UpdateArtifactRequest`. +pub mod update_artifact_request { + /// Either ID of artifact or name of tag to retrieve existing artifact from + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum QueryHandle { + #[prost(string, tag="2")] + ArtifactId(::prost::alloc::string::String), + #[prost(string, tag="3")] + TagName(::prost::alloc::string::String), + } +} +/// +/// Response message for updating an Artifact. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UpdateArtifactResponse { + /// The unique ID of the artifact updated + #[prost(string, tag="1")] + pub artifact_id: ::prost::alloc::string::String, +} +/// +/// ReservationID message that is composed of several string fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReservationId { + /// The unique ID for the reserved dataset + #[prost(message, optional, tag="1")] + pub dataset_id: ::core::option::Option, + /// The specific artifact tag for the reservation + #[prost(string, tag="2")] + pub tag_name: ::prost::alloc::string::String, +} +/// Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetOrExtendReservationRequest { + /// The unique ID for the reservation + #[prost(message, optional, tag="1")] + pub reservation_id: ::core::option::Option, + /// The unique ID of the owner for the reservation + #[prost(string, tag="2")] + pub owner_id: ::prost::alloc::string::String, + /// Requested reservation extension heartbeat interval + #[prost(message, optional, tag="3")] + pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, +} +/// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Reservation { + /// The unique ID for the reservation + #[prost(message, optional, tag="1")] + pub reservation_id: ::core::option::Option, + /// The unique ID of the owner for the reservation + #[prost(string, tag="2")] + pub owner_id: ::prost::alloc::string::String, + /// Recommended heartbeat interval to extend reservation + #[prost(message, optional, tag="3")] + pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, + /// Expiration timestamp of this reservation + #[prost(message, optional, tag="4")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, + /// Free-form metadata associated with the artifact + #[prost(message, optional, tag="6")] + pub metadata: ::core::option::Option, +} +/// Response including either a newly minted reservation or the existing reservation +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetOrExtendReservationResponse { + /// The reservation to be acquired or extended + #[prost(message, optional, tag="1")] + pub reservation: ::core::option::Option, +} +/// Request to release reservation +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReleaseReservationRequest { + /// The unique ID for the reservation + #[prost(message, optional, tag="1")] + pub reservation_id: ::core::option::Option, + /// The unique ID of the owner for the reservation + #[prost(string, tag="2")] + pub owner_id: ::prost::alloc::string::String, +} +/// Response to release reservation +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ReleaseReservationResponse { +} +/// +/// Dataset message. It is uniquely identified by DatasetID. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Dataset { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, + #[prost(string, repeated, tag="3")] + pub partition_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// +/// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Partition { + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, +} +/// +/// DatasetID message that is composed of several string fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DatasetId { + /// The name of the project + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// The name of the dataset + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + /// The domain (eg. environment) + #[prost(string, tag="3")] + pub domain: ::prost::alloc::string::String, + /// Version of the data schema + #[prost(string, tag="4")] + pub version: ::prost::alloc::string::String, + /// UUID for the dataset (if set the above fields are optional) + #[prost(string, tag="5")] + pub uuid: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="6")] + pub org: ::prost::alloc::string::String, +} +/// +/// Artifact message. It is composed of several string fields. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Artifact { + /// The unique ID of the artifact + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// The Dataset that the artifact belongs to + #[prost(message, optional, tag="2")] + pub dataset: ::core::option::Option, + /// A list of data that is associated with the artifact + #[prost(message, repeated, tag="3")] + pub data: ::prost::alloc::vec::Vec, + /// Free-form metadata associated with the artifact + #[prost(message, optional, tag="4")] + pub metadata: ::core::option::Option, + #[prost(message, repeated, tag="5")] + pub partitions: ::prost::alloc::vec::Vec, + #[prost(message, repeated, tag="6")] + pub tags: ::prost::alloc::vec::Vec, + /// creation timestamp of artifact, autogenerated by service + #[prost(message, optional, tag="7")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// +/// ArtifactData that belongs to an artifact +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactData { + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub value: ::core::option::Option, +} +/// +/// Tag message that is unique to a Dataset. It is associated to a single artifact and +/// can be retrieved by name later. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Tag { + /// Name of tag + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The tagged artifact + #[prost(string, tag="2")] + pub artifact_id: ::prost::alloc::string::String, + /// The Dataset that this tag belongs to + #[prost(message, optional, tag="3")] + pub dataset: ::core::option::Option, +} +/// +/// Metadata representation for artifacts and datasets +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Metadata { + /// key map is a dictionary of key/val strings that represent metadata + #[prost(map="string, string", tag="1")] + pub key_map: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Filter expression that is composed of a combination of single filters +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FilterExpression { + #[prost(message, repeated, tag="1")] + pub filters: ::prost::alloc::vec::Vec, +} +/// A single property to filter on. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SinglePropertyFilter { + /// field 10 in case we add more entities to query + #[prost(enumeration="single_property_filter::ComparisonOperator", tag="10")] + pub operator: i32, + #[prost(oneof="single_property_filter::PropertyFilter", tags="1, 2, 3, 4")] + pub property_filter: ::core::option::Option, +} +/// Nested message and enum types in `SinglePropertyFilter`. +pub mod single_property_filter { + /// as use-cases come up we can add more operators, ex: gte, like, not eq etc. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ComparisonOperator { + Equals = 0, + } + impl ComparisonOperator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ComparisonOperator::Equals => "EQUALS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EQUALS" => Some(Self::Equals), + _ => None, + } + } + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum PropertyFilter { + #[prost(message, tag="1")] + TagFilter(super::TagPropertyFilter), + #[prost(message, tag="2")] + PartitionFilter(super::PartitionPropertyFilter), + #[prost(message, tag="3")] + ArtifactFilter(super::ArtifactPropertyFilter), + #[prost(message, tag="4")] + DatasetFilter(super::DatasetPropertyFilter), + } +} +/// Artifact properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactPropertyFilter { + /// oneof because we can add more properties in the future + #[prost(oneof="artifact_property_filter::Property", tags="1")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `ArtifactPropertyFilter`. +pub mod artifact_property_filter { + /// oneof because we can add more properties in the future + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(string, tag="1")] + ArtifactId(::prost::alloc::string::String), + } +} +/// Tag properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TagPropertyFilter { + #[prost(oneof="tag_property_filter::Property", tags="1")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `TagPropertyFilter`. +pub mod tag_property_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(string, tag="1")] + TagName(::prost::alloc::string::String), + } +} +/// Partition properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PartitionPropertyFilter { + #[prost(oneof="partition_property_filter::Property", tags="1")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `PartitionPropertyFilter`. +pub mod partition_property_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(message, tag="1")] + KeyVal(super::KeyValuePair), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct KeyValuePair { + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, +} +/// Dataset properties we can filter by +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DatasetPropertyFilter { + #[prost(oneof="dataset_property_filter::Property", tags="1, 2, 3, 4, 5")] + pub property: ::core::option::Option, +} +/// Nested message and enum types in `DatasetPropertyFilter`. +pub mod dataset_property_filter { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Property { + #[prost(string, tag="1")] + Project(::prost::alloc::string::String), + #[prost(string, tag="2")] + Name(::prost::alloc::string::String), + #[prost(string, tag="3")] + Domain(::prost::alloc::string::String), + #[prost(string, tag="4")] + Version(::prost::alloc::string::String), + /// Optional, org key applied to the dataset. + #[prost(string, tag="5")] + Org(::prost::alloc::string::String), + } +} +/// Pagination options for making list requests +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PaginationOptions { + /// the max number of results to return + #[prost(uint32, tag="1")] + pub limit: u32, + /// the token to pass to fetch the next page + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, + /// the property that we want to sort the results by + #[prost(enumeration="pagination_options::SortKey", tag="3")] + pub sort_key: i32, + /// the sort order of the results + #[prost(enumeration="pagination_options::SortOrder", tag="4")] + pub sort_order: i32, +} +/// Nested message and enum types in `PaginationOptions`. +pub mod pagination_options { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SortOrder { + Descending = 0, + Ascending = 1, + } + impl SortOrder { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SortOrder::Descending => "DESCENDING", + SortOrder::Ascending => "ASCENDING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DESCENDING" => Some(Self::Descending), + "ASCENDING" => Some(Self::Ascending), + _ => None, + } + } + } + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SortKey { + CreationTime = 0, + } + impl SortKey { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SortKey::CreationTime => "CREATION_TIME", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CREATION_TIME" => Some(Self::CreationTime), + _ => None, + } + } + } +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs new file mode 100644 index 0000000000..7a0476815e --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -0,0 +1,3294 @@ +// @generated +/// Represents a subset of runtime task execution metadata that are relevant to external plugins. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionMetadata { + /// ID of the task execution + #[prost(message, optional, tag="1")] + pub task_execution_id: ::core::option::Option, + /// k8s namespace where the task is executed in + #[prost(string, tag="2")] + pub namespace: ::prost::alloc::string::String, + /// Labels attached to the task execution + #[prost(map="string, string", tag="3")] + pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Annotations attached to the task execution + #[prost(map="string, string", tag="4")] + pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// k8s service account associated with the task execution + #[prost(string, tag="5")] + pub k8s_service_account: ::prost::alloc::string::String, + /// Environment variables attached to the task execution + #[prost(map="string, string", tag="6")] + pub environment_variables: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(int32, tag="7")] + pub max_attempts: i32, + #[prost(bool, tag="8")] + pub interruptible: bool, + #[prost(int32, tag="9")] + pub interruptible_failure_threshold: i32, + #[prost(message, optional, tag="10")] + pub overrides: ::core::option::Option, +} +/// Represents a request structure to create task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateTaskRequest { + /// The inputs required to start the execution. All required inputs must be + /// included in this map. If not required and not provided, defaults apply. + /// +optional + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="2")] + pub template: ::core::option::Option, + /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + #[prost(string, tag="3")] + pub output_prefix: ::prost::alloc::string::String, + /// subset of runtime task execution metadata. + #[prost(message, optional, tag="4")] + pub task_execution_metadata: ::core::option::Option, +} +/// Represents a create response structure. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateTaskResponse { + /// ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="1")] + pub resource_meta: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateRequestHeader { + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + #[prost(string, tag="2")] + pub output_prefix: ::prost::alloc::string::String, + /// subset of runtime task execution metadata. + #[prost(message, optional, tag="3")] + pub task_execution_metadata: ::core::option::Option, + /// MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task. + #[prost(int64, tag="4")] + pub max_dataset_size_bytes: i64, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecuteTaskSyncRequest { + #[prost(oneof="execute_task_sync_request::Part", tags="1, 2")] + pub part: ::core::option::Option, +} +/// Nested message and enum types in `ExecuteTaskSyncRequest`. +pub mod execute_task_sync_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Part { + #[prost(message, tag="1")] + Header(super::CreateRequestHeader), + #[prost(message, tag="2")] + Inputs(super::super::core::LiteralMap), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecuteTaskSyncResponseHeader { + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecuteTaskSyncResponse { + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + /// Resource is for synchronous task execution. + #[prost(oneof="execute_task_sync_response::Res", tags="1, 2")] + pub res: ::core::option::Option, +} +/// Nested message and enum types in `ExecuteTaskSyncResponse`. +pub mod execute_task_sync_response { + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + /// Resource is for synchronous task execution. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Res { + #[prost(message, tag="1")] + Header(super::ExecuteTaskSyncResponseHeader), + #[prost(message, tag="2")] + Outputs(super::super::core::LiteralMap), + } +} +/// A message used to fetch a job resource from flyte agent server. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskRequest { + /// A predefined yet extensible Task type identifier. + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, + /// Metadata about the resource to be pass to the agent. + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="3")] + pub task_type: ::core::option::Option, +} +/// Response to get an individual task resource. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskResponse { + #[prost(message, optional, tag="1")] + pub resource: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Resource { + /// DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI. + #[deprecated] + #[prost(enumeration="State", tag="1")] + pub state: i32, + /// The outputs of the execution. It's typically used by sql task. Agent service will create a + /// Structured dataset pointing to the query result table. + /// +optional + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, + /// A descriptive message for the current state. e.g. waiting for cluster. + #[prost(string, tag="3")] + pub message: ::prost::alloc::string::String, + /// log information for the task execution. + #[prost(message, repeated, tag="4")] + pub log_links: ::prost::alloc::vec::Vec, + /// The phase of the execution is used to determine the phase of the plugin's execution. + #[prost(enumeration="super::core::task_execution::Phase", tag="5")] + pub phase: i32, + /// Custom data specific to the agent. + #[prost(message, optional, tag="6")] + pub custom_info: ::core::option::Option<::prost_types::Struct>, +} +/// A message used to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteTaskRequest { + /// A predefined yet extensible Task type identifier. + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, + /// Metadata about the resource to be pass to the agent. + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="3")] + pub task_type: ::core::option::Option, +} +/// Response to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DeleteTaskResponse { +} +/// A message containing the agent metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Agent { + /// Name is the developer-assigned name of the agent. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// SupportedTaskTypes are the types of the tasks that the agent can handle. + #[deprecated] + #[prost(string, repeated, tag="2")] + pub deprecated_supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their + /// results synchronously when called by propeller. Given that sync agents can affect the performance + /// of the system, it's important to enforce strict timeout policies. + /// An Async agent, on the other hand, is required to be able to identify jobs by an + /// identifier and query for job statuses as jobs progress. + #[prost(bool, tag="3")] + pub is_sync: bool, + /// SupportedTaskTypes are the types of the tasks that the agent can handle. + #[prost(message, repeated, tag="4")] + pub supported_task_types: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskType { + /// The name of the task type. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The version of the task type. + #[prost(int32, tag="2")] + pub version: i32, +} +/// A request to get an agent. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetAgentRequest { + /// The name of the agent. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, +} +/// A response containing an agent. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetAgentResponse { + #[prost(message, optional, tag="1")] + pub agent: ::core::option::Option, +} +/// A request to list all agents. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListAgentsRequest { +} +/// A response containing a list of agents. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListAgentsResponse { + #[prost(message, repeated, tag="1")] + pub agents: ::prost::alloc::vec::Vec, +} +/// A request to get the metrics from a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskMetricsRequest { + /// A predefined yet extensible Task type identifier. + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, + /// The metrics to query. If empty, will return a default set of metrics. + /// e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG + #[prost(string, repeated, tag="3")] + pub queries: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Start timestamp, inclusive. + #[prost(message, optional, tag="4")] + pub start_time: ::core::option::Option<::prost_types::Timestamp>, + /// End timestamp, inclusive.. + #[prost(message, optional, tag="5")] + pub end_time: ::core::option::Option<::prost_types::Timestamp>, + /// Query resolution step width in duration format or float number of seconds. + #[prost(message, optional, tag="6")] + pub step: ::core::option::Option<::prost_types::Duration>, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="7")] + pub task_type: ::core::option::Option, +} +/// A response containing a list of metrics for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskMetricsResponse { + /// The execution metric results. + #[prost(message, repeated, tag="1")] + pub results: ::prost::alloc::vec::Vec, +} +/// A request to get the log from a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsRequest { + /// A predefined yet extensible Task type identifier. + #[deprecated] + #[prost(string, tag="1")] + pub deprecated_task_type: ::prost::alloc::string::String, + /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + #[prost(bytes="vec", tag="2")] + pub resource_meta: ::prost::alloc::vec::Vec, + /// Number of lines to return. + #[prost(uint64, tag="3")] + pub lines: u64, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// A predefined yet extensible Task type identifier. + #[prost(message, optional, tag="5")] + pub task_type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsResponseHeader { + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="1")] + pub token: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsResponseBody { + /// The execution log results. + #[prost(string, repeated, tag="1")] + pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// A response containing the logs for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetTaskLogsResponse { + #[prost(oneof="get_task_logs_response::Part", tags="1, 2")] + pub part: ::core::option::Option, +} +/// Nested message and enum types in `GetTaskLogsResponse`. +pub mod get_task_logs_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Part { + #[prost(message, tag="1")] + Header(super::GetTaskLogsResponseHeader), + #[prost(message, tag="2")] + Body(super::GetTaskLogsResponseBody), + } +} +/// The state of the execution is used to control its visibility in the UI/CLI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum State { + RetryableFailure = 0, + PermanentFailure = 1, + Pending = 2, + Running = 3, + Succeeded = 4, +} +impl State { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + State::RetryableFailure => "RETRYABLE_FAILURE", + State::PermanentFailure => "PERMANENT_FAILURE", + State::Pending => "PENDING", + State::Running => "RUNNING", + State::Succeeded => "SUCCEEDED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), + "PERMANENT_FAILURE" => Some(Self::PermanentFailure), + "PENDING" => Some(Self::Pending), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + _ => None, + } + } +} +/// Encapsulates specifications for routing an execution onto a specific cluster. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ClusterAssignment { + #[prost(string, tag="3")] + pub cluster_pool_name: ::prost::alloc::string::String, +} +/// Encapsulation of fields that identifies a Flyte resource. +/// A Flyte resource can be a task, workflow or launch plan. +/// A resource can internally have multiple versions and is uniquely identified +/// by project, domain, and name. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityIdentifier { + /// Name of the project the resource belongs to. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the resource belongs to. + /// A domain can be considered as a subset within a specific project. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// User provided value for the resource. + /// The combination of project + domain + name uniquely identifies the resource. + /// +optional - in certain contexts - like 'List API', 'Launch plans' + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="4")] + pub org: ::prost::alloc::string::String, +} +/// Additional metadata around a named entity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityMetadata { + /// Common description across all versions of the entity + /// +optional + #[prost(string, tag="1")] + pub description: ::prost::alloc::string::String, + /// Shared state across all version of the entity + /// At this point in time, only workflow entities can have their state archived. + #[prost(enumeration="NamedEntityState", tag="2")] + pub state: i32, +} +/// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, +/// workflow or launch plan. A NamedEntity is exclusively identified by its resource type +/// and identifier. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntity { + /// Resource type of the named entity. One of Task, Workflow or LaunchPlan. + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, + /// Additional metadata around a named entity. + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, +} +/// Specifies sort ordering in a list request. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Sort { + /// Indicates an attribute to sort the response values. + /// +required + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + /// Indicates the direction to apply sort key for response values. + /// +optional + #[prost(enumeration="sort::Direction", tag="2")] + pub direction: i32, +} +/// Nested message and enum types in `Sort`. +pub mod sort { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Direction { + /// By default, fields are sorted in descending order. + Descending = 0, + Ascending = 1, + } + impl Direction { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Direction::Descending => "DESCENDING", + Direction::Ascending => "ASCENDING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DESCENDING" => Some(Self::Descending), + "ASCENDING" => Some(Self::Ascending), + _ => None, + } + } + } +} +/// Represents a request structure to list NamedEntityIdentifiers. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityIdentifierListRequest { + /// Name of the project that contains the identifiers. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the identifiers belongs to within the project. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="3")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// Specifies how listed entities should be sorted in the response. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, + /// Indicates a list of filters passed as string. + /// +optional + #[prost(string, tag="6")] + pub filters: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="7")] + pub org: ::prost::alloc::string::String, +} +/// Represents a request structure to list NamedEntity objects +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityListRequest { + /// Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. + /// +required + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// Name of the project that contains the identifiers. + /// +required + #[prost(string, tag="2")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the identifiers belongs to within the project. + #[prost(string, tag="3")] + pub domain: ::prost::alloc::string::String, + /// Indicates the number of resources to be returned. + #[prost(uint32, tag="4")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="5")] + pub token: ::prost::alloc::string::String, + /// Specifies how listed entities should be sorted in the response. + /// +optional + #[prost(message, optional, tag="6")] + pub sort_by: ::core::option::Option, + /// Indicates a list of filters passed as string. + /// +optional + #[prost(string, tag="7")] + pub filters: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="8")] + pub org: ::prost::alloc::string::String, +} +/// Represents a list of NamedEntityIdentifiers. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityIdentifierList { + /// A list of identifiers. + #[prost(message, repeated, tag="1")] + pub entities: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a list of NamedEntityIdentifiers. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityList { + /// A list of NamedEntity objects + #[prost(message, repeated, tag="1")] + pub entities: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// A request to retrieve the metadata associated with a NamedEntityIdentifier +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityGetRequest { + /// Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. + /// +required + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// The identifier for the named entity for which to fetch metadata. + /// +required + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, +} +/// Request to set the referenced named entity state to the configured value. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityUpdateRequest { + /// Resource type of the metadata to update + /// +required + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// Identifier of the metadata to update + /// +required + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, + /// Metadata object to set as the new value + /// +required + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NamedEntityUpdateResponse { +} +/// Shared request structure to fetch a single resource. +/// Resources include: Task, Workflow, LaunchPlan +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ObjectGetRequest { + /// Indicates a unique version of resource. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Shared request structure to retrieve a list of resources. +/// Resources include: Task, Workflow, LaunchPlan +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourceListRequest { + /// id represents the unique identifier of the resource. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// Defines an email notification specification. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EmailNotification { + /// The list of email addresses recipients for this notification. + /// +required + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Defines a pager duty notification specification. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PagerDutyNotification { + /// Currently, PagerDuty notifications leverage email to trigger a notification. + /// +required + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Defines a slack notification specification. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SlackNotification { + /// Currently, Slack notifications leverage email to trigger a notification. + /// +required + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Represents a structure for notifications based on execution status. +/// The notification content is configured within flyte admin but can be templatized. +/// Future iterations could expose configuring notifications with custom content. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Notification { + /// A list of phases to which users can associate the notifications to. + /// +required + #[prost(enumeration="super::core::workflow_execution::Phase", repeated, tag="1")] + pub phases: ::prost::alloc::vec::Vec, + /// The type of notification to trigger. + /// +required + #[prost(oneof="notification::Type", tags="2, 3, 4")] + pub r#type: ::core::option::Option, +} +/// Nested message and enum types in `Notification`. +pub mod notification { + /// The type of notification to trigger. + /// +required + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Type { + #[prost(message, tag="2")] + Email(super::EmailNotification), + #[prost(message, tag="3")] + PagerDuty(super::PagerDutyNotification), + #[prost(message, tag="4")] + Slack(super::SlackNotification), + } +} +/// Represents a string url and associated metadata used throughout the platform. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UrlBlob { + /// Actual url value. + #[prost(string, tag="1")] + pub url: ::prost::alloc::string::String, + /// Represents the size of the file accessible at the above url. + #[prost(int64, tag="2")] + pub bytes: i64, +} +/// Label values to be applied to an execution resource. +/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +/// to specify how to merge labels defined at registration and execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Labels { + /// Map of custom labels to be applied to the execution resource. + #[prost(map="string, string", tag="1")] + pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Annotation values to be applied to an execution resource. +/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +/// to specify how to merge annotations defined at registration and execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Annotations { + /// Map of custom annotations to be applied to the execution resource. + #[prost(map="string, string", tag="1")] + pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Environment variable values to be applied to an execution resource. +/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined +/// to specify how to merge environment variables defined at registration and execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Envs { + /// Map of custom environment variables to be applied to the execution resource. + #[prost(message, repeated, tag="1")] + pub values: ::prost::alloc::vec::Vec, +} +/// Defines permissions associated with executions created by this launch plan spec. +/// Use either of these roles when they have permissions required by your workflow execution. +/// Deprecated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AuthRole { + /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="1")] + pub assumable_iam_role: ::prost::alloc::string::String, + /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="2")] + pub kubernetes_service_account: ::prost::alloc::string::String, +} +/// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). +/// See for more background information. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RawOutputDataConfig { + /// Prefix for where offloaded data from user workflows will be written + /// e.g. s3://bucket/key or s3://bucket/ + #[prost(string, tag="1")] + pub output_location_prefix: ::prost::alloc::string::String, +} +/// These URLs are returned as part of node and task execution data requests. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FlyteUrLs { + #[prost(string, tag="1")] + pub inputs: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub outputs: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub deck: ::prost::alloc::string::String, +} +/// The status of the named entity is used to control its visibility in the UI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum NamedEntityState { + /// By default, all named entities are considered active and under development. + NamedEntityActive = 0, + /// Archived named entities are no longer visible in the UI. + NamedEntityArchived = 1, + /// System generated entities that aren't explicitly created or managed by a user. + SystemGenerated = 2, +} +impl NamedEntityState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + NamedEntityState::NamedEntityActive => "NAMED_ENTITY_ACTIVE", + NamedEntityState::NamedEntityArchived => "NAMED_ENTITY_ARCHIVED", + NamedEntityState::SystemGenerated => "SYSTEM_GENERATED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NAMED_ENTITY_ACTIVE" => Some(Self::NamedEntityActive), + "NAMED_ENTITY_ARCHIVED" => Some(Self::NamedEntityArchived), + "SYSTEM_GENERATED" => Some(Self::SystemGenerated), + _ => None, + } + } +} +/// DescriptionEntity contains detailed description for the task/workflow. +/// Documentation could provide insight into the algorithms, business use case, etc. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DescriptionEntity { + /// id represents the unique identifier of the description entity. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// One-liner overview of the entity. + #[prost(string, tag="2")] + pub short_description: ::prost::alloc::string::String, + /// Full user description with formatting preserved. + #[prost(message, optional, tag="3")] + pub long_description: ::core::option::Option, + /// Optional link to source code used to define this entity. + #[prost(message, optional, tag="4")] + pub source_code: ::core::option::Option, + /// User-specified tags. These are arbitrary and can be used for searching + /// filtering and discovering tasks. + #[prost(string, repeated, tag="5")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Full user description with formatting preserved. This can be rendered +/// by clients, such as the console or command line tools with in-tact +/// formatting. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Description { + /// Format of the long description + #[prost(enumeration="DescriptionFormat", tag="3")] + pub format: i32, + /// Optional link to an icon for the entity + #[prost(string, tag="4")] + pub icon_link: ::prost::alloc::string::String, + #[prost(oneof="description::Content", tags="1, 2")] + pub content: ::core::option::Option, +} +/// Nested message and enum types in `Description`. +pub mod description { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Content { + /// long description - no more than 4KB + #[prost(string, tag="1")] + Value(::prost::alloc::string::String), + /// if the description sizes exceed some threshold we can offload the entire + /// description proto altogether to an external data store, like S3 rather than store inline in the db + #[prost(string, tag="2")] + Uri(::prost::alloc::string::String), + } +} +/// Link to source code used to define this entity +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SourceCode { + #[prost(string, tag="1")] + pub link: ::prost::alloc::string::String, +} +/// Represents a list of DescriptionEntities returned from the admin. +/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DescriptionEntityList { + /// A list of DescriptionEntities returned based on the request. + #[prost(message, repeated, tag="1")] + pub description_entities: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a request structure to retrieve a list of DescriptionEntities. +/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DescriptionEntityListRequest { + /// Identifies the specific type of resource that this identifier corresponds to. + #[prost(enumeration="super::core::ResourceType", tag="1")] + pub resource_type: i32, + /// The identifier for the description entity. + /// +required + #[prost(message, optional, tag="2")] + pub id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="3")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="5")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering for returned list. + /// +optional + #[prost(message, optional, tag="6")] + pub sort_by: ::core::option::Option, +} +/// The format of the long description +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum DescriptionFormat { + Unknown = 0, + Markdown = 1, + Html = 2, + /// python default documentation - comments is rst + Rst = 3, +} +impl DescriptionFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + DescriptionFormat::Unknown => "DESCRIPTION_FORMAT_UNKNOWN", + DescriptionFormat::Markdown => "DESCRIPTION_FORMAT_MARKDOWN", + DescriptionFormat::Html => "DESCRIPTION_FORMAT_HTML", + DescriptionFormat::Rst => "DESCRIPTION_FORMAT_RST", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DESCRIPTION_FORMAT_UNKNOWN" => Some(Self::Unknown), + "DESCRIPTION_FORMAT_MARKDOWN" => Some(Self::Markdown), + "DESCRIPTION_FORMAT_HTML" => Some(Self::Html), + "DESCRIPTION_FORMAT_RST" => Some(Self::Rst), + _ => None, + } + } +} +/// Indicates that a sent event was not used to update execution state due to +/// the referenced execution already being terminated (and therefore ineligible +/// for further state transitions). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventErrorAlreadyInTerminalState { + /// +required + #[prost(string, tag="1")] + pub current_phase: ::prost::alloc::string::String, +} +/// Indicates an event was rejected because it came from a different cluster than +/// is on record as running the execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventErrorIncompatibleCluster { + /// The cluster which has been recorded as processing the execution. + /// +required + #[prost(string, tag="1")] + pub cluster: ::prost::alloc::string::String, +} +/// Indicates why a sent event was not used to update execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventFailureReason { + /// +required + #[prost(oneof="event_failure_reason::Reason", tags="1, 2")] + pub reason: ::core::option::Option, +} +/// Nested message and enum types in `EventFailureReason`. +pub mod event_failure_reason { + /// +required + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reason { + #[prost(message, tag="1")] + AlreadyInTerminalState(super::EventErrorAlreadyInTerminalState), + #[prost(message, tag="2")] + IncompatibleCluster(super::EventErrorIncompatibleCluster), + } +} +/// Request to send a notification that a workflow execution event has occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionEventRequest { + /// Unique ID for this request that can be traced between services + #[prost(string, tag="1")] + pub request_id: ::prost::alloc::string::String, + /// Details about the event that occurred. + #[prost(message, optional, tag="2")] + pub event: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionEventResponse { +} +/// Request to send a notification that a node execution event has occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionEventRequest { + /// Unique ID for this request that can be traced between services + #[prost(string, tag="1")] + pub request_id: ::prost::alloc::string::String, + /// Details about the event that occurred. + #[prost(message, optional, tag="2")] + pub event: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionEventResponse { +} +/// Request to send a notification that a task execution event has occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionEventRequest { + /// Unique ID for this request that can be traced between services + #[prost(string, tag="1")] + pub request_id: ::prost::alloc::string::String, + /// Details about the event that occurred. + #[prost(message, optional, tag="2")] + pub event: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionEventResponse { +} +/// Request to launch an execution with the given project, domain and optionally-assigned name. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionCreateRequest { + /// Name of the project the execution belongs to. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the execution belongs to. + /// A domain can be considered as a subset within a specific project. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// User provided value for the resource. + /// If none is provided the system will generate a unique string. + /// +optional + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + /// Additional fields necessary to launch the execution. + /// +optional + #[prost(message, optional, tag="4")] + pub spec: ::core::option::Option, + /// The inputs required to start the execution. All required inputs must be + /// included in this map. If not required and not provided, defaults apply. + /// +optional + #[prost(message, optional, tag="5")] + pub inputs: ::core::option::Option, + /// Optional, org key applied to the resource. + #[prost(string, tag="6")] + pub org: ::prost::alloc::string::String, +} +/// Request to relaunch the referenced execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionRelaunchRequest { + /// Identifier of the workflow execution to relaunch. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User provided value for the relaunched execution. + /// If none is provided the system will generate a unique string. + /// +optional + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="4")] + pub overwrite_cache: bool, +} +/// Request to recover the referenced execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionRecoverRequest { + /// Identifier of the workflow execution to recover. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User provided value for the recovered execution. + /// If none is provided the system will generate a unique string. + /// +optional + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + /// Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, +} +/// The unique identifier for a successfully created execution. +/// If the name was *not* specified in the create request, this identifier will include a generated name. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionCreateResponse { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// A message used to fetch a single workflow execution entity. +/// See :ref:`ref_flyteidl.admin.Execution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetRequest { + /// Uniquely identifies an individual workflow execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// A workflow execution represents an instantiated workflow, including all inputs and additional +/// metadata as well as computed results included state, outputs, and duration-based attributes. +/// Used as a response object used in Get and List execution requests. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Execution { + /// Unique identifier of the workflow execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User-provided configuration and inputs for launching the execution. + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, + /// Execution results. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, +} +/// Used as a response for request to list executions. +/// See :ref:`ref_flyteidl.admin.Execution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionList { + #[prost(message, repeated, tag="1")] + pub executions: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Input/output data can represented by actual values or a link to where values are stored +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralMapBlob { + #[prost(oneof="literal_map_blob::Data", tags="1, 2")] + pub data: ::core::option::Option, +} +/// Nested message and enum types in `LiteralMapBlob`. +pub mod literal_map_blob { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Data { + /// Data in LiteralMap format + #[prost(message, tag="1")] + Values(super::super::core::LiteralMap), + /// In the event that the map is too large, we return a uri to the data + #[prost(string, tag="2")] + Uri(::prost::alloc::string::String), + } +} +/// Specifies metadata around an aborted workflow execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct AbortMetadata { + /// In the case of a user-specified abort, this will pass along the user-supplied cause. + #[prost(string, tag="1")] + pub cause: ::prost::alloc::string::String, + /// Identifies the entity (if any) responsible for terminating the execution + #[prost(string, tag="2")] + pub principal: ::prost::alloc::string::String, +} +/// Encapsulates the results of the Execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionClosure { + /// Inputs computed and passed for execution. + /// computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan + #[deprecated] + #[prost(message, optional, tag="3")] + pub computed_inputs: ::core::option::Option, + /// Most recent recorded phase for the execution. + #[prost(enumeration="super::core::workflow_execution::Phase", tag="4")] + pub phase: i32, + /// Reported time at which the execution began running. + #[prost(message, optional, tag="5")] + pub started_at: ::core::option::Option<::prost_types::Timestamp>, + /// The amount of time the execution spent running. + #[prost(message, optional, tag="6")] + pub duration: ::core::option::Option<::prost_types::Duration>, + /// Reported time at which the execution was created. + #[prost(message, optional, tag="7")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Reported time at which the execution was last updated. + #[prost(message, optional, tag="8")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, + /// The notification settings to use after merging the CreateExecutionRequest and the launch plan + /// notification settings. An execution launched with notifications will always prefer that definition + /// to notifications defined statically in a launch plan. + #[prost(message, repeated, tag="9")] + pub notifications: ::prost::alloc::vec::Vec, + /// Identifies the workflow definition for this execution. + #[prost(message, optional, tag="11")] + pub workflow_id: ::core::option::Option, + /// Provides the details of the last stage change + #[prost(message, optional, tag="14")] + pub state_change_details: ::core::option::Option, + /// A result produced by a terminated execution. + /// A pending (non-terminal) execution will not have any output result. + #[prost(oneof="execution_closure::OutputResult", tags="1, 2, 10, 12, 13")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `ExecutionClosure`. +pub mod execution_closure { + /// A result produced by a terminated execution. + /// A pending (non-terminal) execution will not have any output result. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// Output URI in the case of a successful execution. + /// DEPRECATED. Use GetExecutionData to fetch output data instead. + #[prost(message, tag="1")] + Outputs(super::LiteralMapBlob), + /// Error information in the case of a failed execution. + #[prost(message, tag="2")] + Error(super::super::core::ExecutionError), + /// In the case of a user-specified abort, this will pass along the user-supplied cause. + #[prost(string, tag="10")] + AbortCause(::prost::alloc::string::String), + /// In the case of a user-specified abort, this will pass along the user and their supplied cause. + #[prost(message, tag="12")] + AbortMetadata(super::AbortMetadata), + /// Raw output data produced by this execution. + /// DEPRECATED. Use GetExecutionData to fetch output data instead. + #[prost(message, tag="13")] + OutputData(super::super::core::LiteralMap), + } +} +/// Represents system, rather than user-facing, metadata about an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SystemMetadata { + /// Which execution cluster this execution ran on. + #[prost(string, tag="1")] + pub execution_cluster: ::prost::alloc::string::String, + /// Which kubernetes namespace the execution ran under. + #[prost(string, tag="2")] + pub namespace: ::prost::alloc::string::String, +} +/// Represents attributes about an execution which are not required to launch the execution but are useful to record. +/// These attributes are assigned at launch time and do not change. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionMetadata { + #[prost(enumeration="execution_metadata::ExecutionMode", tag="1")] + pub mode: i32, + /// Identifier of the entity that triggered this execution. + /// For systems using back-end authentication any value set here will be discarded in favor of the + /// authenticated user context. + #[prost(string, tag="2")] + pub principal: ::prost::alloc::string::String, + /// Indicates the nestedness of this execution. + /// If a user launches a workflow execution, the default nesting is 0. + /// If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 + /// Generally, if workflow at nesting level k launches a workflow then the child workflow will have + /// nesting = k + 1. + #[prost(uint32, tag="3")] + pub nesting: u32, + /// For scheduled executions, the requested time for execution for this specific schedule invocation. + #[prost(message, optional, tag="4")] + pub scheduled_at: ::core::option::Option<::prost_types::Timestamp>, + /// Which subworkflow node (if any) launched this execution + #[prost(message, optional, tag="5")] + pub parent_node_execution: ::core::option::Option, + /// Optional, a reference workflow execution related to this execution. + /// In the case of a relaunch, this references the original workflow execution. + #[prost(message, optional, tag="16")] + pub reference_execution: ::core::option::Option, + /// Optional, platform-specific metadata about the execution. + /// In this the future this may be gated behind an ACL or some sort of authorization. + #[prost(message, optional, tag="17")] + pub system_metadata: ::core::option::Option, + /// Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping + /// since we don't have a structure to handle nested ones anyways. + #[prost(message, repeated, tag="18")] + pub artifact_ids: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `ExecutionMetadata`. +pub mod execution_metadata { + /// The method by which this execution was launched. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ExecutionMode { + /// The default execution mode, MANUAL implies that an execution was launched by an individual. + Manual = 0, + /// A schedule triggered this execution launch. + Scheduled = 1, + /// A system process was responsible for launching this execution rather an individual. + System = 2, + /// This execution was launched with identical inputs as a previous execution. + Relaunch = 3, + /// This execution was triggered by another execution. + ChildWorkflow = 4, + /// This execution was recovered from another execution. + Recovered = 5, + } + impl ExecutionMode { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ExecutionMode::Manual => "MANUAL", + ExecutionMode::Scheduled => "SCHEDULED", + ExecutionMode::System => "SYSTEM", + ExecutionMode::Relaunch => "RELAUNCH", + ExecutionMode::ChildWorkflow => "CHILD_WORKFLOW", + ExecutionMode::Recovered => "RECOVERED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "MANUAL" => Some(Self::Manual), + "SCHEDULED" => Some(Self::Scheduled), + "SYSTEM" => Some(Self::System), + "RELAUNCH" => Some(Self::Relaunch), + "CHILD_WORKFLOW" => Some(Self::ChildWorkflow), + "RECOVERED" => Some(Self::Recovered), + _ => None, + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NotificationList { + #[prost(message, repeated, tag="1")] + pub notifications: ::prost::alloc::vec::Vec, +} +/// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime +/// of an execution as it progresses across phase changes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionSpec { + /// Launch plan to be executed + #[prost(message, optional, tag="1")] + pub launch_plan: ::core::option::Option, + /// Input values to be passed for the execution + #[deprecated] + #[prost(message, optional, tag="2")] + pub inputs: ::core::option::Option, + /// Metadata for the execution + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, + /// Labels to apply to the execution resource. + #[prost(message, optional, tag="7")] + pub labels: ::core::option::Option, + /// Annotations to apply to the execution resource. + #[prost(message, optional, tag="8")] + pub annotations: ::core::option::Option, + /// Optional: security context override to apply this execution. + #[prost(message, optional, tag="10")] + pub security_context: ::core::option::Option, + /// Optional: auth override to apply this execution. + #[deprecated] + #[prost(message, optional, tag="16")] + pub auth_role: ::core::option::Option, + /// Indicates the runtime priority of the execution. + #[prost(message, optional, tag="17")] + pub quality_of_service: ::core::option::Option, + /// Controls the maximum number of task nodes that can be run in parallel for the entire workflow. + /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + /// and parallelism/concurrency of MapTasks is independent from this. + #[prost(int32, tag="18")] + pub max_parallelism: i32, + /// User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). + /// This should be a prefix like s3://my-bucket/my-data + #[prost(message, optional, tag="19")] + pub raw_output_data_config: ::core::option::Option, + /// Controls how to select an available cluster on which this execution should run. + #[prost(message, optional, tag="20")] + pub cluster_assignment: ::core::option::Option, + /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. + /// Omitting this field uses the workflow's value as a default. + /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + /// around the bool field. + #[prost(message, optional, tag="21")] + pub interruptible: ::core::option::Option, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="22")] + pub overwrite_cache: bool, + /// Environment variables to be set for the execution. + #[prost(message, optional, tag="23")] + pub envs: ::core::option::Option, + /// Tags to be set for the execution. + #[prost(string, repeated, tag="24")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(oneof="execution_spec::NotificationOverrides", tags="5, 6")] + pub notification_overrides: ::core::option::Option, +} +/// Nested message and enum types in `ExecutionSpec`. +pub mod execution_spec { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum NotificationOverrides { + /// List of notifications based on Execution status transitions + /// When this list is not empty it is used rather than any notifications defined in the referenced launch plan. + /// When this list is empty, the notifications defined for the launch plan will be applied. + #[prost(message, tag="5")] + Notifications(super::NotificationList), + /// This should be set to true if all notifications are intended to be disabled for this execution. + #[prost(bool, tag="6")] + DisableAll(bool), + } +} +/// Request to terminate an in-progress execution. This action is irreversible. +/// If an execution is already terminated, this request will simply be a no-op. +/// This request will fail if it references a non-existent execution. +/// If the request succeeds the phase "ABORTED" will be recorded for the termination +/// with the optional cause added to the output_result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionTerminateRequest { + /// Uniquely identifies the individual workflow execution to be terminated. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Optional reason for aborting. + #[prost(string, tag="2")] + pub cause: ::prost::alloc::string::String, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionTerminateResponse { +} +/// Request structure to fetch inputs, output and other data produced by an execution. +/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetDataRequest { + /// The identifier of the execution for which to fetch inputs and outputs. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetDataResponse { + /// Signed url to fetch a core.LiteralMap of execution outputs. + /// Deprecated: Please use full_outputs instead. + #[deprecated] + #[prost(message, optional, tag="1")] + pub outputs: ::core::option::Option, + /// Signed url to fetch a core.LiteralMap of execution inputs. + /// Deprecated: Please use full_inputs instead. + #[deprecated] + #[prost(message, optional, tag="2")] + pub inputs: ::core::option::Option, + /// Full_inputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="3")] + pub full_inputs: ::core::option::Option, + /// Full_outputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="4")] + pub full_outputs: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionUpdateRequest { + /// Identifier of the execution to update + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// State to set as the new value active/archive + #[prost(enumeration="ExecutionState", tag="2")] + pub state: i32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionStateChangeDetails { + /// The state of the execution is used to control its visibility in the UI/CLI. + #[prost(enumeration="ExecutionState", tag="1")] + pub state: i32, + /// This timestamp represents when the state changed. + #[prost(message, optional, tag="2")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// Identifies the entity (if any) responsible for causing the state change of the execution + #[prost(string, tag="3")] + pub principal: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionUpdateResponse { +} +/// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetMetricsRequest { + /// id defines the workflow execution to query for. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// depth defines the number of Flyte entity levels to traverse when breaking down execution details. + #[prost(int32, tag="2")] + pub depth: i32, +} +/// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionGetMetricsResponse { + /// Span defines the top-level breakdown of the workflows execution. More precise information is nested in a + /// hierarchical structure using Flyte entity references. + #[prost(message, optional, tag="1")] + pub span: ::core::option::Option, +} +/// The state of the execution is used to control its visibility in the UI/CLI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ExecutionState { + /// By default, all executions are considered active. + ExecutionActive = 0, + /// Archived executions are no longer visible in the UI. + ExecutionArchived = 1, +} +impl ExecutionState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ExecutionState::ExecutionActive => "EXECUTION_ACTIVE", + ExecutionState::ExecutionArchived => "EXECUTION_ARCHIVED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EXECUTION_ACTIVE" => Some(Self::ExecutionActive), + "EXECUTION_ARCHIVED" => Some(Self::ExecutionArchived), + _ => None, + } + } +} +/// Option for schedules run at a certain frequency e.g. every 2 minutes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct FixedRate { + #[prost(uint32, tag="1")] + pub value: u32, + #[prost(enumeration="FixedRateUnit", tag="2")] + pub unit: i32, +} +/// Options for schedules to run according to a cron expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CronSchedule { + /// Standard/default cron implementation as described by + /// Also supports nonstandard predefined scheduling definitions + /// as described by + /// except @reboot + #[prost(string, tag="1")] + pub schedule: ::prost::alloc::string::String, + /// ISO 8601 duration as described by + #[prost(string, tag="2")] + pub offset: ::prost::alloc::string::String, +} +/// Defines complete set of information required to trigger an execution on a schedule. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Schedule { + /// Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. + #[prost(string, tag="3")] + pub kickoff_time_input_arg: ::prost::alloc::string::String, + #[prost(oneof="schedule::ScheduleExpression", tags="1, 2, 4")] + pub schedule_expression: ::core::option::Option, +} +/// Nested message and enum types in `Schedule`. +pub mod schedule { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum ScheduleExpression { + /// Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year + /// e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * + #[prost(string, tag="1")] + CronExpression(::prost::alloc::string::String), + #[prost(message, tag="2")] + Rate(super::FixedRate), + #[prost(message, tag="4")] + CronSchedule(super::CronSchedule), + } +} +/// Represents a frequency at which to run a schedule. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum FixedRateUnit { + Minute = 0, + Hour = 1, + Day = 2, +} +impl FixedRateUnit { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + FixedRateUnit::Minute => "MINUTE", + FixedRateUnit::Hour => "HOUR", + FixedRateUnit::Day => "DAY", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "MINUTE" => Some(Self::Minute), + "HOUR" => Some(Self::Hour), + "DAY" => Some(Self::Day), + _ => None, + } + } +} +/// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required +/// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to +/// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanCreateRequest { + /// Uniquely identifies a launch plan entity. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User-provided launch plan details, including reference workflow, inputs and other metadata. + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanCreateResponse { +} +/// A LaunchPlan provides the capability to templatize workflow executions. +/// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. +/// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow +/// definition doesn't necessarily have a default value for said input. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlan { + /// Uniquely identifies a launch plan entity. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// User-provided launch plan details, including reference workflow, inputs and other metadata. + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, + /// Values computed by the flyte platform after launch plan registration. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, +} +/// Response object for list launch plan requests. +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanList { + #[prost(message, repeated, tag="1")] + pub launch_plans: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Defines permissions associated with executions created by this launch plan spec. +/// Use either of these roles when they have permissions required by your workflow execution. +/// Deprecated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Auth { + /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="1")] + pub assumable_iam_role: ::prost::alloc::string::String, + /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. + #[prost(string, tag="2")] + pub kubernetes_service_account: ::prost::alloc::string::String, +} +/// User-provided launch plan definition and configuration values. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanSpec { + /// Reference to the Workflow template that the launch plan references + #[prost(message, optional, tag="1")] + pub workflow_id: ::core::option::Option, + /// Metadata for the Launch Plan + #[prost(message, optional, tag="2")] + pub entity_metadata: ::core::option::Option, + /// Input values to be passed for the execution. + /// These can be overridden when an execution is created with this launch plan. + #[prost(message, optional, tag="3")] + pub default_inputs: ::core::option::Option, + /// Fixed, non-overridable inputs for the Launch Plan. + /// These can not be overridden when an execution is created with this launch plan. + #[prost(message, optional, tag="4")] + pub fixed_inputs: ::core::option::Option, + /// String to indicate the role to use to execute the workflow underneath + #[deprecated] + #[prost(string, tag="5")] + pub role: ::prost::alloc::string::String, + /// Custom labels to be applied to the execution resource. + #[prost(message, optional, tag="6")] + pub labels: ::core::option::Option, + /// Custom annotations to be applied to the execution resource. + #[prost(message, optional, tag="7")] + pub annotations: ::core::option::Option, + /// Indicates the permission associated with workflow executions triggered with this launch plan. + #[deprecated] + #[prost(message, optional, tag="8")] + pub auth: ::core::option::Option, + #[deprecated] + #[prost(message, optional, tag="9")] + pub auth_role: ::core::option::Option, + /// Indicates security context for permissions triggered with this launch plan + #[prost(message, optional, tag="10")] + pub security_context: ::core::option::Option, + /// Indicates the runtime priority of the execution. + #[prost(message, optional, tag="16")] + pub quality_of_service: ::core::option::Option, + /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + #[prost(message, optional, tag="17")] + pub raw_output_data_config: ::core::option::Option, + /// Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. + /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, + /// and parallelism/concurrency of MapTasks is independent from this. + #[prost(int32, tag="18")] + pub max_parallelism: i32, + /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. + /// Omitting this field uses the workflow's value as a default. + /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + /// around the bool field. + #[prost(message, optional, tag="19")] + pub interruptible: ::core::option::Option, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="20")] + pub overwrite_cache: bool, + /// Environment variables to be set for the execution. + #[prost(message, optional, tag="21")] + pub envs: ::core::option::Option, +} +/// Values computed by the flyte platform after launch plan registration. +/// These include expected_inputs required to be present in a CreateExecutionRequest +/// to launch the reference workflow as well timestamp values associated with the launch plan. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanClosure { + /// Indicate the Launch plan state. + #[prost(enumeration="LaunchPlanState", tag="1")] + pub state: i32, + /// Indicates the set of inputs expected when creating an execution with the Launch plan + #[prost(message, optional, tag="2")] + pub expected_inputs: ::core::option::Option, + /// Indicates the set of outputs expected to be produced by creating an execution with the Launch plan + #[prost(message, optional, tag="3")] + pub expected_outputs: ::core::option::Option, + /// Time at which the launch plan was created. + #[prost(message, optional, tag="4")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Time at which the launch plan was last updated. + #[prost(message, optional, tag="5")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch +/// the reference workflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanMetadata { + /// Schedule to execute the Launch Plan + #[prost(message, optional, tag="1")] + pub schedule: ::core::option::Option, + /// List of notifications based on Execution status transitions + #[prost(message, repeated, tag="2")] + pub notifications: ::prost::alloc::vec::Vec, + /// Additional metadata for how to launch the launch plan + #[prost(message, optional, tag="3")] + pub launch_conditions: ::core::option::Option<::prost_types::Any>, +} +/// Request to set the referenced launch plan state to the configured value. +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanUpdateRequest { + /// Identifier of launch plan for which to change state. + /// +required. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Desired state to apply to the launch plan. + /// +required. + #[prost(enumeration="LaunchPlanState", tag="2")] + pub state: i32, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanUpdateResponse { +} +/// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ActiveLaunchPlanRequest { + /// +required. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Represents a request structure to list active launch plans within a project/domain and optional org. +/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ActiveLaunchPlanListRequest { + /// Name of the project that contains the identifiers. + /// +required. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the identifiers belongs to within the project. + /// +required. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Indicates the number of resources to be returned. + /// +required. + #[prost(uint32, tag="3")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="4")] + pub token: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, + /// Optional, org key applied to the resource. + #[prost(string, tag="6")] + pub org: ::prost::alloc::string::String, +} +/// By default any launch plan regardless of state can be used to launch a workflow execution. +/// However, at most one version of a launch plan +/// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be +/// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier +/// group will be observed and trigger executions at a defined cadence. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum LaunchPlanState { + Inactive = 0, + Active = 1, +} +impl LaunchPlanState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LaunchPlanState::Inactive => "INACTIVE", + LaunchPlanState::Active => "ACTIVE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "INACTIVE" => Some(Self::Inactive), + "ACTIVE" => Some(Self::Active), + _ => None, + } + } +} +/// Defines a set of overridable task resource attributes set during task registration. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskResourceSpec { + #[prost(string, tag="1")] + pub cpu: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub gpu: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub memory: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub storage: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub ephemeral_storage: ::prost::alloc::string::String, +} +/// Defines task resource defaults and limits that will be applied at task registration. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskResourceAttributes { + #[prost(message, optional, tag="1")] + pub defaults: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub limits: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ClusterResourceAttributes { + /// Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). + /// Map keys are the *case-sensitive* names of variables in templatized resource files. + /// Map values should be the custom values which get substituted during resource creation. + #[prost(map="string, string", tag="1")] + pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionQueueAttributes { + /// Tags used for assigning execution queues for tasks defined within this project. + #[prost(string, repeated, tag="1")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionClusterLabel { + /// Label value to determine where the execution will be run + #[prost(string, tag="1")] + pub value: ::prost::alloc::string::String, +} +/// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. +/// In addition to an override implementation a selection of fallbacks can be provided or other modes +/// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PluginOverride { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. + #[prost(string, repeated, tag="2")] + pub plugin_id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Defines the behavior when no plugin from the plugin_id list is not found. + #[prost(enumeration="plugin_override::MissingPluginBehavior", tag="4")] + pub missing_plugin_behavior: i32, +} +/// Nested message and enum types in `PluginOverride`. +pub mod plugin_override { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum MissingPluginBehavior { + /// By default, if this plugin is not enabled for a Flyte deployment then execution will fail. + Fail = 0, + /// Uses the system-configured default implementation. + UseDefault = 1, + } + impl MissingPluginBehavior { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MissingPluginBehavior::Fail => "FAIL", + MissingPluginBehavior::UseDefault => "USE_DEFAULT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "FAIL" => Some(Self::Fail), + "USE_DEFAULT" => Some(Self::UseDefault), + _ => None, + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PluginOverrides { + #[prost(message, repeated, tag="1")] + pub overrides: ::prost::alloc::vec::Vec, +} +/// Adds defaults for customizable workflow-execution specifications and overrides. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionConfig { + /// Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. + #[prost(int32, tag="1")] + pub max_parallelism: i32, + /// Indicates security context permissions for executions triggered with this matchable attribute. + #[prost(message, optional, tag="2")] + pub security_context: ::core::option::Option, + /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). + #[prost(message, optional, tag="3")] + pub raw_output_data_config: ::core::option::Option, + /// Custom labels to be applied to a triggered execution resource. + #[prost(message, optional, tag="4")] + pub labels: ::core::option::Option, + /// Custom annotations to be applied to a triggered execution resource. + #[prost(message, optional, tag="5")] + pub annotations: ::core::option::Option, + /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. + /// Omitting this field uses the workflow's value as a default. + /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper + /// around the bool field. + #[prost(message, optional, tag="6")] + pub interruptible: ::core::option::Option, + /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. + /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored + /// data once execution finishes successfully. + #[prost(bool, tag="7")] + pub overwrite_cache: bool, + /// Environment variables to be set for the execution. + #[prost(message, optional, tag="8")] + pub envs: ::core::option::Option, +} +/// Generic container for encapsulating all types of the above attributes messages. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MatchingAttributes { + #[prost(oneof="matching_attributes::Target", tags="1, 2, 3, 4, 5, 6, 7, 8")] + pub target: ::core::option::Option, +} +/// Nested message and enum types in `MatchingAttributes`. +pub mod matching_attributes { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Target { + #[prost(message, tag="1")] + TaskResourceAttributes(super::TaskResourceAttributes), + #[prost(message, tag="2")] + ClusterResourceAttributes(super::ClusterResourceAttributes), + #[prost(message, tag="3")] + ExecutionQueueAttributes(super::ExecutionQueueAttributes), + #[prost(message, tag="4")] + ExecutionClusterLabel(super::ExecutionClusterLabel), + #[prost(message, tag="5")] + QualityOfService(super::super::core::QualityOfService), + #[prost(message, tag="6")] + PluginOverrides(super::PluginOverrides), + #[prost(message, tag="7")] + WorkflowExecutionConfig(super::WorkflowExecutionConfig), + #[prost(message, tag="8")] + ClusterAssignment(super::ClusterAssignment), + } +} +/// Represents a custom set of attributes applied for either a domain (and optional org); a domain and project (and optional org); +/// or domain, project and workflow name (and optional org). +/// These are used to override system level defaults for kubernetes cluster resource management, +/// default execution values, and more all across different levels of specificity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct MatchableAttributesConfiguration { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub project: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub workflow: ::prost::alloc::string::String, + #[prost(string, tag="5")] + pub launch_plan: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="6")] + pub org: ::prost::alloc::string::String, +} +/// Request all matching resource attributes for a resource type. +/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMatchableAttributesRequest { + /// +required + #[prost(enumeration="MatchableResource", tag="1")] + pub resource_type: i32, + /// Optional, org filter applied to list project requests. + #[prost(string, tag="2")] + pub org: ::prost::alloc::string::String, +} +/// Response for a request for all matching resource attributes for a resource type. +/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ListMatchableAttributesResponse { + #[prost(message, repeated, tag="1")] + pub configurations: ::prost::alloc::vec::Vec, +} +/// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes +/// based on matching tags. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum MatchableResource { + /// Applies to customizable task resource requests and limits. + TaskResource = 0, + /// Applies to configuring templated kubernetes cluster resources. + ClusterResource = 1, + /// Configures task and dynamic task execution queue assignment. + ExecutionQueue = 2, + /// Configures the K8s cluster label to be used for execution to be run + ExecutionClusterLabel = 3, + /// Configures default quality of service when undefined in an execution spec. + QualityOfServiceSpecification = 4, + /// Selects configurable plugin implementation behavior for a given task type. + PluginOverride = 5, + /// Adds defaults for customizable workflow-execution specifications and overrides. + WorkflowExecutionConfig = 6, + /// Controls how to select an available cluster on which this execution should run. + ClusterAssignment = 7, +} +impl MatchableResource { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MatchableResource::TaskResource => "TASK_RESOURCE", + MatchableResource::ClusterResource => "CLUSTER_RESOURCE", + MatchableResource::ExecutionQueue => "EXECUTION_QUEUE", + MatchableResource::ExecutionClusterLabel => "EXECUTION_CLUSTER_LABEL", + MatchableResource::QualityOfServiceSpecification => "QUALITY_OF_SERVICE_SPECIFICATION", + MatchableResource::PluginOverride => "PLUGIN_OVERRIDE", + MatchableResource::WorkflowExecutionConfig => "WORKFLOW_EXECUTION_CONFIG", + MatchableResource::ClusterAssignment => "CLUSTER_ASSIGNMENT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "TASK_RESOURCE" => Some(Self::TaskResource), + "CLUSTER_RESOURCE" => Some(Self::ClusterResource), + "EXECUTION_QUEUE" => Some(Self::ExecutionQueue), + "EXECUTION_CLUSTER_LABEL" => Some(Self::ExecutionClusterLabel), + "QUALITY_OF_SERVICE_SPECIFICATION" => Some(Self::QualityOfServiceSpecification), + "PLUGIN_OVERRIDE" => Some(Self::PluginOverride), + "WORKFLOW_EXECUTION_CONFIG" => Some(Self::WorkflowExecutionConfig), + "CLUSTER_ASSIGNMENT" => Some(Self::ClusterAssignment), + _ => None, + } + } +} +/// A message used to fetch a single node execution entity. +/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionGetRequest { + /// Uniquely identifies an individual node execution. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Represents a request structure to retrieve a list of node execution entities. +/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionListRequest { + /// Indicates the workflow execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub workflow_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + // in a query. + // +optional + + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, + /// Unique identifier of the parent node in the execution + /// +optional + #[prost(string, tag="6")] + pub unique_parent_id: ::prost::alloc::string::String, +} +/// Represents a request structure to retrieve a list of node execution entities launched by a specific task. +/// This can arise when a task yields a subworkflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionForTaskListRequest { + /// Indicates the node execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub task_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// Encapsulates all details for a single node execution entity. +/// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested +/// sub-workflow, or even a separate child-workflow execution. +/// The same task can be called repeatedly in a single workflow but each node is unique. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecution { + /// Uniquely identifies an individual node execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Path to remote data store where input blob is stored. + #[prost(string, tag="2")] + pub input_uri: ::prost::alloc::string::String, + /// Computed results associated with this node execution. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, + /// Metadata for Node Execution + #[prost(message, optional, tag="4")] + pub metadata: ::core::option::Option, +} +/// Represents additional attributes related to a Node Execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionMetaData { + /// Node executions are grouped depending on retries of the parent + /// Retry group is unique within the context of a parent node. + #[prost(string, tag="1")] + pub retry_group: ::prost::alloc::string::String, + /// Boolean flag indicating if the node has child nodes under it + /// This can be true when a node contains a dynamic workflow which then produces + /// child nodes. + #[prost(bool, tag="2")] + pub is_parent_node: bool, + /// Node id of the node in the original workflow + /// This maps to value of WorkflowTemplate.nodes\[X\].id + #[prost(string, tag="3")] + pub spec_node_id: ::prost::alloc::string::String, + /// Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. + /// This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. + #[prost(bool, tag="4")] + pub is_dynamic: bool, + /// Boolean flag indicating if the node is an array node. This is intended to uniquely identify + /// array nodes from other nodes which can have is_parent_node as true. + #[prost(bool, tag="5")] + pub is_array: bool, +} +/// Request structure to retrieve a list of node execution entities. +/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionList { + #[prost(message, repeated, tag="1")] + pub node_executions: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Container for node execution details and results. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionClosure { + /// The last recorded phase for this node execution. + #[prost(enumeration="super::core::node_execution::Phase", tag="3")] + pub phase: i32, + /// Time at which the node execution began running. + #[prost(message, optional, tag="4")] + pub started_at: ::core::option::Option<::prost_types::Timestamp>, + /// The amount of time the node execution spent running. + #[prost(message, optional, tag="5")] + pub duration: ::core::option::Option<::prost_types::Duration>, + /// Time at which the node execution was created. + #[prost(message, optional, tag="6")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Time at which the node execution was last updated. + #[prost(message, optional, tag="7")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, + /// String location uniquely identifying where the deck HTML file is. + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="11")] + pub deck_uri: ::prost::alloc::string::String, + /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required + /// to correctly recover partially completed executions where the subworkflow has already been compiled. + #[prost(string, tag="12")] + pub dynamic_job_spec_uri: ::prost::alloc::string::String, + /// Only a node in a terminal state will have a non-empty output_result. + #[prost(oneof="node_execution_closure::OutputResult", tags="1, 2, 10")] + pub output_result: ::core::option::Option, + /// Store metadata for what the node launched. + /// for ex: if this is a workflow node, we store information for the launched workflow. + #[prost(oneof="node_execution_closure::TargetMetadata", tags="8, 9")] + pub target_metadata: ::core::option::Option, +} +/// Nested message and enum types in `NodeExecutionClosure`. +pub mod node_execution_closure { + /// Only a node in a terminal state will have a non-empty output_result. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// Links to a remotely stored, serialized core.LiteralMap of node execution outputs. + /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + #[prost(string, tag="1")] + OutputUri(::prost::alloc::string::String), + /// Error information for the Node + #[prost(message, tag="2")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this node execution. + /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. + #[prost(message, tag="10")] + OutputData(super::super::core::LiteralMap), + } + /// Store metadata for what the node launched. + /// for ex: if this is a workflow node, we store information for the launched workflow. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum TargetMetadata { + #[prost(message, tag="8")] + WorkflowNodeMetadata(super::WorkflowNodeMetadata), + #[prost(message, tag="9")] + TaskNodeMetadata(super::TaskNodeMetadata), + } +} +/// Metadata for a WorkflowNode +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowNodeMetadata { + /// The identifier for a workflow execution launched by a node. + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, +} +/// Metadata for the case in which the node is a TaskNode +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNodeMetadata { + /// Captures the status of caching for this execution. + #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] + pub cache_status: i32, + /// This structure carries the catalog artifact information + #[prost(message, optional, tag="2")] + pub catalog_key: ::core::option::Option, + /// The latest checkpoint location + #[prost(string, tag="4")] + pub checkpoint_uri: ::prost::alloc::string::String, +} +/// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicWorkflowNodeMetadata { + /// id represents the unique identifier of the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the compiled representation of the embedded dynamic workflow. + #[prost(message, optional, tag="2")] + pub compiled_workflow: ::core::option::Option, + /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + /// required to correctly recover partially completed executions where the subworkflow has already been compiled. + #[prost(string, tag="3")] + pub dynamic_job_spec_uri: ::prost::alloc::string::String, +} +/// Request structure to fetch inputs and output for a node execution. +/// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionGetDataRequest { + /// The identifier of the node execution for which to fetch inputs and outputs. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionGetDataResponse { + /// Signed url to fetch a core.LiteralMap of node execution inputs. + /// Deprecated: Please use full_inputs instead. + #[deprecated] + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Signed url to fetch a core.LiteralMap of node execution outputs. + /// Deprecated: Please use full_outputs instead. + #[deprecated] + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, + /// Full_inputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="3")] + pub full_inputs: ::core::option::Option, + /// Full_outputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="4")] + pub full_outputs: ::core::option::Option, + /// Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. + #[prost(message, optional, tag="16")] + pub dynamic_workflow: ::core::option::Option, + #[prost(message, optional, tag="17")] + pub flyte_urls: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDynamicNodeWorkflowRequest { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicNodeWorkflowResponse { + #[prost(message, optional, tag="1")] + pub compiled_workflow: ::core::option::Option, +} +/// Represents the Email object that is sent to a publisher/subscriber +/// to forward the notification. +/// Note: This is internal to Admin and doesn't need to be exposed to other components. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EmailMessage { + /// The list of email addresses to receive an email with the content populated in the other fields. + /// Currently, each email recipient will receive its own email. + /// This populates the TO field. + #[prost(string, repeated, tag="1")] + pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// The email of the sender. + /// This populates the FROM field. + #[prost(string, tag="2")] + pub sender_email: ::prost::alloc::string::String, + /// The content of the subject line. + /// This populates the SUBJECT field. + #[prost(string, tag="3")] + pub subject_line: ::prost::alloc::string::String, + /// The content of the email body. + /// This populates the BODY field. + #[prost(string, tag="4")] + pub body: ::prost::alloc::string::String, +} +/// Namespace within a project commonly used to differentiate between different service instances. +/// e.g. "production", "development", etc. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Domain { + /// Globally unique domain name. + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// Display name. + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, +} +/// Top-level namespace used to classify different entities like workflows and executions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Project { + /// Globally unique project name. + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// Display name. + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub domains: ::prost::alloc::vec::Vec, + #[prost(string, tag="4")] + pub description: ::prost::alloc::string::String, + /// Leverage Labels from flyteidl.admin.common.proto to + /// tag projects with ownership information. + #[prost(message, optional, tag="5")] + pub labels: ::core::option::Option, + #[prost(enumeration="project::ProjectState", tag="6")] + pub state: i32, + /// Optional, org key applied to the resource. + #[prost(string, tag="7")] + pub org: ::prost::alloc::string::String, +} +/// Nested message and enum types in `Project`. +pub mod project { + /// The state of the project is used to control its visibility in the UI and validity. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ProjectState { + /// By default, all projects are considered active. + Active = 0, + /// Archived projects are no longer visible in the UI and no longer valid. + Archived = 1, + /// System generated projects that aren't explicitly created or managed by a user. + SystemGenerated = 2, + } + impl ProjectState { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ProjectState::Active => "ACTIVE", + ProjectState::Archived => "ARCHIVED", + ProjectState::SystemGenerated => "SYSTEM_GENERATED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ACTIVE" => Some(Self::Active), + "ARCHIVED" => Some(Self::Archived), + "SYSTEM_GENERATED" => Some(Self::SystemGenerated), + _ => None, + } + } + } +} +/// Represents a list of projects. +/// See :ref:`ref_flyteidl.admin.Project` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Projects { + #[prost(message, repeated, tag="1")] + pub projects: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Request to retrieve a list of projects matching specified filters. +/// See :ref:`ref_flyteidl.admin.Project` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectListRequest { + /// Indicates the number of projects to be returned. + /// +required + #[prost(uint32, tag="1")] + pub limit: u32, + /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="3")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="4")] + pub sort_by: ::core::option::Option, + /// Optional, org filter applied to list project requests. + #[prost(string, tag="5")] + pub org: ::prost::alloc::string::String, +} +/// Adds a new user-project within the Flyte deployment. +/// See :ref:`ref_flyteidl.admin.Project` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectRegisterRequest { + /// +required + #[prost(message, optional, tag="1")] + pub project: ::core::option::Option, +} +/// Purposefully empty, may be updated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectRegisterResponse { +} +/// Purposefully empty, may be updated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectUpdateResponse { +} +/// Defines a set of custom matching attributes at the project level. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributes { + /// Unique project id for which this set of attributes will be applied. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub matching_attributes: ::core::option::Option, + /// Optional, org key applied to the project. + #[prost(string, tag="3")] + pub org: ::prost::alloc::string::String, +} +/// Sets custom attributes for a project +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesUpdateRequest { + /// +required + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesUpdateResponse { +} +/// Request to get an individual project level attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesGetRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Which type of matchable attributes to return. + /// +required + #[prost(enumeration="MatchableResource", tag="2")] + pub resource_type: i32, + /// Optional, org key applied to the project. + #[prost(string, tag="3")] + pub org: ::prost::alloc::string::String, +} +/// Response to get an individual project level attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesGetResponse { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Request to delete a set matchable project level attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesDeleteRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Which type of matchable attributes to delete. + /// +required + #[prost(enumeration="MatchableResource", tag="2")] + pub resource_type: i32, + /// Optional, org key applied to the project. + #[prost(string, tag="3")] + pub org: ::prost::alloc::string::String, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectAttributesDeleteResponse { +} +/// Defines a set of custom matching attributes which defines resource defaults for a project and domain. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributes { + /// Unique project id for which this set of attributes will be applied. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id for which this set of attributes will be applied. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub matching_attributes: ::core::option::Option, + /// Optional, org key applied to the attributes. + #[prost(string, tag="4")] + pub org: ::prost::alloc::string::String, +} +/// Sets custom attributes for a project-domain combination. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesUpdateRequest { + /// +required + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesUpdateResponse { +} +/// Request to get an individual project domain attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesGetRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Which type of matchable attributes to return. + /// +required + #[prost(enumeration="MatchableResource", tag="3")] + pub resource_type: i32, + /// Optional, org key applied to the attributes. + #[prost(string, tag="4")] + pub org: ::prost::alloc::string::String, +} +/// Response to get an individual project domain attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesGetResponse { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Request to delete a set matchable project domain attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesDeleteRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Which type of matchable attributes to delete. + /// +required + #[prost(enumeration="MatchableResource", tag="3")] + pub resource_type: i32, + /// Optional, org key applied to the attributes. + #[prost(string, tag="4")] + pub org: ::prost::alloc::string::String, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ProjectDomainAttributesDeleteResponse { +} +/// SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalGetOrCreateRequest { + /// A unique identifier for the requested signal. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// A type denoting the required value type for this signal. + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, +} +/// SignalListRequest represents a request structure to retrieve a collection of signals. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalListRequest { + /// Indicates the workflow execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub workflow_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// SignalList represents collection of signals along with the token of the last result. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalList { + /// A list of signals matching the input filters. + #[prost(message, repeated, tag="1")] + pub signals: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal +/// effetively satisfies the signal condition within a Flyte workflow. +/// See :ref:`ref_flyteidl.admin.Signal` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalSetRequest { + /// A unique identifier for the requested signal. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// The value of this signal, must match the defining signal type. + #[prost(message, optional, tag="2")] + pub value: ::core::option::Option, +} +/// SignalSetResponse represents a response structure if signal setting succeeds. +/// +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalSetResponse { +} +/// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte +/// signal. Signals may exist either without a set value (representing a signal request) or with a +/// populated value (indicating the signal has been given). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Signal { + /// A unique identifier for the requested signal. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// A type denoting the required value type for this signal. + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, + /// The value of the signal. This is only available if the signal has been "set" and must match + /// the defined the type. + #[prost(message, optional, tag="3")] + pub value: ::core::option::Option, +} +/// Represents a request structure to create a revision of a task. +/// See :ref:`ref_flyteidl.admin.Task` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateRequest { + /// id represents the unique identifier of the task. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the specification for task. + /// +required + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, +} +/// Represents a response structure if task creation succeeds. +/// +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateResponse { +} +/// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks +/// arranged to process workflow inputs and produce a deterministic set of outputs. +/// Tasks can come in many varieties tuned for specialized behavior. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Task { + /// id represents the unique identifier of the task. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// closure encapsulates all the fields that maps to a compiled version of the task. + #[prost(message, optional, tag="2")] + pub closure: ::core::option::Option, + /// One-liner overview of the entity. + #[prost(string, tag="3")] + pub short_description: ::prost::alloc::string::String, +} +/// Represents a list of tasks returned from the admin. +/// See :ref:`ref_flyteidl.admin.Task` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskList { + /// A list of tasks returned based on the request. + #[prost(message, repeated, tag="1")] + pub tasks: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a structure that encapsulates the user-configured specification of the task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskSpec { + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// Represents the specification for description entity. + #[prost(message, optional, tag="2")] + pub description: ::core::option::Option, +} +/// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data +/// and task metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskClosure { + /// Represents the compiled representation of the task from the specification provided. + #[prost(message, optional, tag="1")] + pub compiled_task: ::core::option::Option, + /// Time at which the task was created. + #[prost(message, optional, tag="2")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// A message used to fetch a single task execution entity. +/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionGetRequest { + /// Unique identifier for the task execution. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. +/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionListRequest { + /// Indicates the node execution to filter by. + /// +required + #[prost(message, optional, tag="1")] + pub node_execution_id: ::core::option::Option, + /// Indicates the number of resources to be returned. + /// +required + #[prost(uint32, tag="2")] + pub limit: u32, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. + /// +optional + #[prost(string, tag="3")] + pub token: ::prost::alloc::string::String, + /// Indicates a list of filters passed as string. + /// More info on constructing filters : + /// +optional + #[prost(string, tag="4")] + pub filters: ::prost::alloc::string::String, + /// Sort ordering for returned list. + /// +optional + #[prost(message, optional, tag="5")] + pub sort_by: ::core::option::Option, +} +/// Encapsulates all details for a single task execution entity. +/// A task execution represents an instantiated task, including all inputs and additional +/// metadata as well as computed results included state, outputs, and duration-based attributes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecution { + /// Unique identifier for the task execution. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Path to remote data store where input blob is stored. + #[prost(string, tag="2")] + pub input_uri: ::prost::alloc::string::String, + /// Task execution details and results. + #[prost(message, optional, tag="3")] + pub closure: ::core::option::Option, + /// Whether this task spawned nodes. + #[prost(bool, tag="4")] + pub is_parent: bool, +} +/// Response structure for a query to list of task execution entities. +/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionList { + #[prost(message, repeated, tag="1")] + pub task_executions: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Container for task execution details and results. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionClosure { + /// The last recorded phase for this task execution. + #[prost(enumeration="super::core::task_execution::Phase", tag="3")] + pub phase: i32, + /// Detailed log information output by the task execution. + #[prost(message, repeated, tag="4")] + pub logs: ::prost::alloc::vec::Vec, + /// Time at which the task execution began running. + #[prost(message, optional, tag="5")] + pub started_at: ::core::option::Option<::prost_types::Timestamp>, + /// The amount of time the task execution spent running. + #[prost(message, optional, tag="6")] + pub duration: ::core::option::Option<::prost_types::Duration>, + /// Time at which the task execution was created. + #[prost(message, optional, tag="7")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, + /// Time at which the task execution was last updated. + #[prost(message, optional, tag="8")] + pub updated_at: ::core::option::Option<::prost_types::Timestamp>, + /// Custom data specific to the task plugin. + #[prost(message, optional, tag="9")] + pub custom_info: ::core::option::Option<::prost_types::Struct>, + /// If there is an explanation for the most recent phase transition, the reason will capture it. + #[prost(string, tag="10")] + pub reason: ::prost::alloc::string::String, + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="11")] + pub task_type: ::prost::alloc::string::String, + /// Metadata around how a task was executed. + #[prost(message, optional, tag="16")] + pub metadata: ::core::option::Option, + /// The event version is used to indicate versioned changes in how data is maintained using this + /// proto message. For example, event_verison > 0 means that maps tasks logs use the + /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + /// in this message. + #[prost(int32, tag="17")] + pub event_version: i32, + /// A time-series of the phase transition or update explanations. This, when compared to storing a singular reason + /// as previously done, is much more valuable in visualizing and understanding historical evaluations. + #[prost(message, repeated, tag="18")] + pub reasons: ::prost::alloc::vec::Vec, + #[prost(oneof="task_execution_closure::OutputResult", tags="1, 2, 12")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `TaskExecutionClosure`. +pub mod task_execution_closure { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). + /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + #[prost(string, tag="1")] + OutputUri(::prost::alloc::string::String), + /// Error information for the task execution. Populated if the execution failed. + #[prost(message, tag="2")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this task execution. + /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. + #[prost(message, tag="12")] + OutputData(super::super::core::LiteralMap), + } +} +/// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Reason { + /// occurred_at is the timestamp indicating the instant that this reason happened. + #[prost(message, optional, tag="1")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// message is the explanation for the most recent phase transition or status update. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, +} +/// Request structure to fetch inputs and output for a task execution. +/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionGetDataRequest { + /// The identifier of the task execution for which to fetch inputs and outputs. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionGetDataResponse { + /// Signed url to fetch a core.LiteralMap of task execution inputs. + /// Deprecated: Please use full_inputs instead. + #[deprecated] + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Signed url to fetch a core.LiteralMap of task execution outputs. + /// Deprecated: Please use full_outputs instead. + #[deprecated] + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, + /// Full_inputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="3")] + pub full_inputs: ::core::option::Option, + /// Full_outputs will only be populated if they are under a configured size threshold. + #[prost(message, optional, tag="4")] + pub full_outputs: ::core::option::Option, + /// flyte tiny url to fetch a core.LiteralMap of task execution's IO + /// Deck will be empty for task + #[prost(message, optional, tag="5")] + pub flyte_urls: ::core::option::Option, +} +/// Response for the GetVersion API +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetVersionResponse { + /// The control plane version information. FlyteAdmin and related components + /// form the control plane of Flyte + #[prost(message, optional, tag="1")] + pub control_plane_version: ::core::option::Option, +} +/// Provides Version information for a component +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Version { + /// Specifies the GIT sha of the build + #[prost(string, tag="1")] + pub build: ::prost::alloc::string::String, + /// Version for the build, should follow a semver + #[prost(string, tag="2")] + pub version: ::prost::alloc::string::String, + /// Build timestamp + #[prost(string, tag="3")] + pub build_time: ::prost::alloc::string::String, +} +/// Empty request for GetVersion +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetVersionRequest { +} +/// Represents a request structure to create a revision of a workflow. +/// See :ref:`ref_flyteidl.admin.Workflow` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowCreateRequest { + /// id represents the unique identifier of the workflow. + /// +required + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the specification for workflow. + /// +required + #[prost(message, optional, tag="2")] + pub spec: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowCreateResponse { +} +/// Represents the workflow structure stored in the Admin +/// A workflow is created by ordering tasks and associating outputs to inputs +/// in order to produce a directed-acyclic execution graph. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Workflow { + /// id represents the unique identifier of the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// closure encapsulates all the fields that maps to a compiled version of the workflow. + #[prost(message, optional, tag="2")] + pub closure: ::core::option::Option, + /// One-liner overview of the entity. + #[prost(string, tag="3")] + pub short_description: ::prost::alloc::string::String, +} +/// Represents a list of workflows returned from the admin. +/// See :ref:`ref_flyteidl.admin.Workflow` for more details +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowList { + /// A list of workflows returned based on the request. + #[prost(message, repeated, tag="1")] + pub workflows: ::prost::alloc::vec::Vec, + /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page + /// in a query. If there are no more results, this value will be empty. + #[prost(string, tag="2")] + pub token: ::prost::alloc::string::String, +} +/// Represents a structure that encapsulates the specification of the workflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowSpec { + /// Template of the task that encapsulates all the metadata of the workflow. + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the + /// propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out + /// to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. + #[prost(message, repeated, tag="2")] + pub sub_workflows: ::prost::alloc::vec::Vec, + /// Represents the specification for description entity. + #[prost(message, optional, tag="3")] + pub description: ::core::option::Option, +} +/// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowClosure { + /// Represents the compiled representation of the workflow from the specification provided. + #[prost(message, optional, tag="1")] + pub compiled_workflow: ::core::option::Option, + /// Time at which the workflow was created. + #[prost(message, optional, tag="2")] + pub created_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// The workflow id is already used and the structure is different +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowErrorExistsDifferentStructure { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// The workflow id is already used with an identical sctructure +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowErrorExistsIdenticalStructure { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +/// When a CreateWorkflowRequest fails due to matching id +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateWorkflowFailureReason { + #[prost(oneof="create_workflow_failure_reason::Reason", tags="1, 2")] + pub reason: ::core::option::Option, +} +/// Nested message and enum types in `CreateWorkflowFailureReason`. +pub mod create_workflow_failure_reason { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reason { + #[prost(message, tag="1")] + ExistsDifferentStructure(super::WorkflowErrorExistsDifferentStructure), + #[prost(message, tag="2")] + ExistsIdenticalStructure(super::WorkflowErrorExistsIdenticalStructure), + } +} +/// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributes { + /// Unique project id for which this set of attributes will be applied. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id for which this set of attributes will be applied. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Workflow name for which this set of attributes will be applied. + #[prost(string, tag="3")] + pub workflow: ::prost::alloc::string::String, + #[prost(message, optional, tag="4")] + pub matching_attributes: ::core::option::Option, + /// Optional, org key applied to the attributes. + #[prost(string, tag="5")] + pub org: ::prost::alloc::string::String, +} +/// Sets custom attributes for a project, domain and workflow combination. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesUpdateRequest { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesUpdateResponse { +} +/// Request to get an individual workflow attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesGetRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Workflow name which this set of attributes references. + /// +required + #[prost(string, tag="3")] + pub workflow: ::prost::alloc::string::String, + /// Which type of matchable attributes to return. + /// +required + #[prost(enumeration="MatchableResource", tag="4")] + pub resource_type: i32, + /// Optional, org key applied to the attributes. + #[prost(string, tag="5")] + pub org: ::prost::alloc::string::String, +} +/// Response to get an individual workflow attribute override. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesGetResponse { + #[prost(message, optional, tag="1")] + pub attributes: ::core::option::Option, +} +/// Request to delete a set matchable workflow attribute override. +/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesDeleteRequest { + /// Unique project id which this set of attributes references. + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Unique domain id which this set of attributes references. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Workflow name which this set of attributes references. + /// +required + #[prost(string, tag="3")] + pub workflow: ::prost::alloc::string::String, + /// Which type of matchable attributes to delete. + /// +required + #[prost(enumeration="MatchableResource", tag="4")] + pub resource_type: i32, + /// Optional, org key applied to the attributes. + #[prost(string, tag="5")] + pub org: ::prost::alloc::string::String, +} +/// Purposefully empty, may be populated in the future. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowAttributesDeleteResponse { +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs new file mode 100644 index 0000000000..abd88f4233 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.core.rs @@ -0,0 +1,2955 @@ +// @generated +/// Defines schema columns and types to strongly type-validate schemas interoperability. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SchemaType { + /// A list of ordered columns this schema comprises of. + #[prost(message, repeated, tag="3")] + pub columns: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `SchemaType`. +pub mod schema_type { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct SchemaColumn { + /// A unique name -within the schema type- for the column + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The column type. This allows a limited set of types currently. + #[prost(enumeration="schema_column::SchemaColumnType", tag="2")] + pub r#type: i32, + } + /// Nested message and enum types in `SchemaColumn`. + pub mod schema_column { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum SchemaColumnType { + Integer = 0, + Float = 1, + String = 2, + Boolean = 3, + Datetime = 4, + Duration = 5, + } + impl SchemaColumnType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SchemaColumnType::Integer => "INTEGER", + SchemaColumnType::Float => "FLOAT", + SchemaColumnType::String => "STRING", + SchemaColumnType::Boolean => "BOOLEAN", + SchemaColumnType::Datetime => "DATETIME", + SchemaColumnType::Duration => "DURATION", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "INTEGER" => Some(Self::Integer), + "FLOAT" => Some(Self::Float), + "STRING" => Some(Self::String), + "BOOLEAN" => Some(Self::Boolean), + "DATETIME" => Some(Self::Datetime), + "DURATION" => Some(Self::Duration), + _ => None, + } + } + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StructuredDatasetType { + /// A list of ordered columns this schema comprises of. + #[prost(message, repeated, tag="1")] + pub columns: ::prost::alloc::vec::Vec, + /// This is the storage format, the format of the bits at rest + /// parquet, feather, csv, etc. + /// For two types to be compatible, the format will need to be an exact match. + #[prost(string, tag="2")] + pub format: ::prost::alloc::string::String, + /// This is a string representing the type that the bytes in external_schema_bytes are formatted in. + /// This is an optional field that will not be used for type checking. + #[prost(string, tag="3")] + pub external_schema_type: ::prost::alloc::string::String, + /// The serialized bytes of a third-party schema library like Arrow. + /// This is an optional field that will not be used for type checking. + #[prost(bytes="vec", tag="4")] + pub external_schema_bytes: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `StructuredDatasetType`. +pub mod structured_dataset_type { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct DatasetColumn { + /// A unique name within the schema type for the column. + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The column type. + #[prost(message, optional, tag="2")] + pub literal_type: ::core::option::Option, + } +} +/// Defines type behavior for blob objects +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BlobType { + /// Format can be a free form string understood by SDK/UI etc like + /// csv, parquet etc + #[prost(string, tag="1")] + pub format: ::prost::alloc::string::String, + #[prost(enumeration="blob_type::BlobDimensionality", tag="2")] + pub dimensionality: i32, +} +/// Nested message and enum types in `BlobType`. +pub mod blob_type { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum BlobDimensionality { + Single = 0, + Multipart = 1, + } + impl BlobDimensionality { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + BlobDimensionality::Single => "SINGLE", + BlobDimensionality::Multipart => "MULTIPART", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "SINGLE" => Some(Self::Single), + "MULTIPART" => Some(Self::Multipart), + _ => None, + } + } + } +} +/// Enables declaring enum types, with predefined string values +/// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish +/// To provide no defaults, make the first value as undefined. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EnumType { + /// Predefined set of enum values. + #[prost(string, repeated, tag="1")] + pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Defines a tagged union type, also known as a variant (and formally as the sum type). +/// +/// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag +/// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by +/// storing the varaint's tag with the literal value and can be examined in runtime. +/// +/// Type S is typically written as +/// S := Apple A | Banana B | Cantaloupe C | ... +/// +/// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: +/// Optional X := X | Null +/// +/// See also: +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnionType { + /// Predefined set of variants in union. + #[prost(message, repeated, tag="1")] + pub variants: ::prost::alloc::vec::Vec, +} +/// Hints to improve type matching +/// e.g. allows distinguishing output from custom type transformers +/// even if the underlying IDL serialization matches. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TypeStructure { + /// Must exactly match for types to be castable + #[prost(string, tag="1")] + pub tag: ::prost::alloc::string::String, + /// dataclass_type only exists for dataclasses. + /// This is used to resolve the type of the fields of dataclass + /// The key is the field name, and the value is the literal type of the field + /// e.g. For dataclass Foo, with fields a, and a is a string + /// Foo.a will be resolved as a literal type of string from dataclass_type + #[prost(map="string, message", tag="2")] + pub dataclass_type: ::std::collections::HashMap<::prost::alloc::string::String, LiteralType>, +} +/// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TypeAnnotation { + /// A arbitrary JSON payload to describe a type. + #[prost(message, optional, tag="1")] + pub annotations: ::core::option::Option<::prost_types::Struct>, +} +/// Defines a strong type to allow type checking between interfaces. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralType { + /// This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by + /// consumers to identify special behavior or display extended information for the type. + #[prost(message, optional, tag="6")] + pub metadata: ::core::option::Option<::prost_types::Struct>, + /// This field contains arbitrary data that might have special semantic + /// meaning for the client but does not effect internal flyte behavior. + #[prost(message, optional, tag="9")] + pub annotation: ::core::option::Option, + /// Hints to improve type matching. + #[prost(message, optional, tag="11")] + pub structure: ::core::option::Option, + #[prost(oneof="literal_type::Type", tags="1, 2, 3, 4, 5, 7, 8, 10")] + pub r#type: ::core::option::Option, +} +/// Nested message and enum types in `LiteralType`. +pub mod literal_type { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Type { + /// A simple type that can be compared one-to-one with another. + #[prost(enumeration="super::SimpleType", tag="1")] + Simple(i32), + /// A complex type that requires matching of inner fields. + #[prost(message, tag="2")] + Schema(super::SchemaType), + /// Defines the type of the value of a collection. Only homogeneous collections are allowed. + #[prost(message, tag="3")] + CollectionType(::prost::alloc::boxed::Box), + /// Defines the type of the value of a map type. The type of the key is always a string. + #[prost(message, tag="4")] + MapValueType(::prost::alloc::boxed::Box), + /// A blob might have specialized implementation details depending on associated metadata. + #[prost(message, tag="5")] + Blob(super::BlobType), + /// Defines an enum with pre-defined string values. + #[prost(message, tag="7")] + EnumType(super::EnumType), + /// Generalized schema support + #[prost(message, tag="8")] + StructuredDatasetType(super::StructuredDatasetType), + /// Defines an union type with pre-defined LiteralTypes. + #[prost(message, tag="10")] + UnionType(super::UnionType), + } +} +/// A reference to an output produced by a node. The type can be retrieved -and validated- from +/// the underlying interface of the node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OutputReference { + /// Node id must exist at the graph layer. + #[prost(string, tag="1")] + pub node_id: ::prost::alloc::string::String, + /// Variable name must refer to an output variable for the node. + #[prost(string, tag="2")] + pub var: ::prost::alloc::string::String, + #[prost(message, repeated, tag="3")] + pub attr_path: ::prost::alloc::vec::Vec, +} +// PromiseAttribute stores the attribute path of a promise, which will be resolved at runtime. +// The attribute path is a list of strings and integers. +// In the following example, +// ``` +// @workflow +// def wf(): +// o = t1() +// t2(o.a["b"][0]) +// ``` +// the output reference t2 binds to has a list of PromiseAttribute \["a", "b", 0\] + +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PromiseAttribute { + #[prost(oneof="promise_attribute::Value", tags="1, 2")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `PromiseAttribute`. +pub mod promise_attribute { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(string, tag="1")] + StringValue(::prost::alloc::string::String), + #[prost(int32, tag="2")] + IntValue(i32), + } +} +/// Represents an error thrown from a node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Error { + /// The node id that threw the error. + #[prost(string, tag="1")] + pub failed_node_id: ::prost::alloc::string::String, + /// Error message thrown. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, +} +/// Define a set of simple types. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum SimpleType { + None = 0, + Integer = 1, + Float = 2, + String = 3, + Boolean = 4, + Datetime = 5, + Duration = 6, + Binary = 7, + Error = 8, + Struct = 9, +} +impl SimpleType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + SimpleType::None => "NONE", + SimpleType::Integer => "INTEGER", + SimpleType::Float => "FLOAT", + SimpleType::String => "STRING", + SimpleType::Boolean => "BOOLEAN", + SimpleType::Datetime => "DATETIME", + SimpleType::Duration => "DURATION", + SimpleType::Binary => "BINARY", + SimpleType::Error => "ERROR", + SimpleType::Struct => "STRUCT", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NONE" => Some(Self::None), + "INTEGER" => Some(Self::Integer), + "FLOAT" => Some(Self::Float), + "STRING" => Some(Self::String), + "BOOLEAN" => Some(Self::Boolean), + "DATETIME" => Some(Self::Datetime), + "DURATION" => Some(Self::Duration), + "BINARY" => Some(Self::Binary), + "ERROR" => Some(Self::Error), + "STRUCT" => Some(Self::Struct), + _ => None, + } + } +} +/// Primitive Types +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Primitive { + /// Defines one of simple primitive types. These types will get translated into different programming languages as + /// described in + #[prost(oneof="primitive::Value", tags="1, 2, 3, 4, 5, 6")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `Primitive`. +pub mod primitive { + /// Defines one of simple primitive types. These types will get translated into different programming languages as + /// described in + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(int64, tag="1")] + Integer(i64), + #[prost(double, tag="2")] + FloatValue(f64), + #[prost(string, tag="3")] + StringValue(::prost::alloc::string::String), + #[prost(bool, tag="4")] + Boolean(bool), + #[prost(message, tag="5")] + Datetime(::prost_types::Timestamp), + #[prost(message, tag="6")] + Duration(::prost_types::Duration), + } +} +/// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally +/// undefined since it can be assigned to a scalar of any LiteralType. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Void { +} +/// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. +/// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Blob { + #[prost(message, optional, tag="1")] + pub metadata: ::core::option::Option, + #[prost(string, tag="3")] + pub uri: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BlobMetadata { + #[prost(message, optional, tag="1")] + pub r#type: ::core::option::Option, +} +/// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. +/// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Binary { + #[prost(bytes="vec", tag="1")] + pub value: ::prost::alloc::vec::Vec, + #[prost(string, tag="2")] + pub tag: ::prost::alloc::string::String, +} +/// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Schema { + #[prost(string, tag="1")] + pub uri: ::prost::alloc::string::String, + #[prost(message, optional, tag="3")] + pub r#type: ::core::option::Option, +} +/// The runtime representation of a tagged union value. See `UnionType` for more details. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Union { + #[prost(message, optional, boxed, tag="1")] + pub value: ::core::option::Option<::prost::alloc::boxed::Box>, + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StructuredDatasetMetadata { + /// Bundle the type information along with the literal. + /// This is here because StructuredDatasets can often be more defined at run time than at compile time. + /// That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, + /// without any column information, but at run time, you might have that column information. + /// flytekit python will copy this type information into the literal, from the type information, if not provided by + /// the various plugins (encoders). + /// Since this field is run time generated, it's not used for any type checking. + #[prost(message, optional, tag="1")] + pub structured_dataset_type: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct StructuredDataset { + /// String location uniquely identifying where the data is. + /// Should start with the storage location (e.g. s3://, gs://, bq://, etc.) + #[prost(string, tag="1")] + pub uri: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Scalar { + #[prost(oneof="scalar::Value", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `Scalar`. +pub mod scalar { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + #[prost(message, tag="1")] + Primitive(super::Primitive), + #[prost(message, tag="2")] + Blob(super::Blob), + #[prost(message, tag="3")] + Binary(super::Binary), + #[prost(message, tag="4")] + Schema(super::Schema), + #[prost(message, tag="5")] + NoneType(super::Void), + #[prost(message, tag="6")] + Error(super::Error), + #[prost(message, tag="7")] + Generic(::prost_types::Struct), + #[prost(message, tag="8")] + StructuredDataset(super::StructuredDataset), + #[prost(message, tag="9")] + Union(::prost::alloc::boxed::Box), + } +} +/// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Literal { + /// A hash representing this literal. + /// This is used for caching purposes. For more details refer to RFC 1893 + /// () + #[prost(string, tag="4")] + pub hash: ::prost::alloc::string::String, + /// Additional metadata for literals. + #[prost(map="string, string", tag="5")] + pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(oneof="literal::Value", tags="1, 2, 3")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `Literal`. +pub mod literal { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + /// A simple value. + #[prost(message, tag="1")] + Scalar(::prost::alloc::boxed::Box), + /// A collection of literals to allow nesting. + #[prost(message, tag="2")] + Collection(super::LiteralCollection), + /// A map of strings to literals. + #[prost(message, tag="3")] + Map(super::LiteralMap), + } +} +/// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralCollection { + #[prost(message, repeated, tag="1")] + pub literals: ::prost::alloc::vec::Vec, +} +/// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LiteralMap { + #[prost(map="string, message", tag="1")] + pub literals: ::std::collections::HashMap<::prost::alloc::string::String, Literal>, +} +/// A collection of BindingData items. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BindingDataCollection { + #[prost(message, repeated, tag="1")] + pub bindings: ::prost::alloc::vec::Vec, +} +/// A map of BindingData items. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BindingDataMap { + #[prost(map="string, message", tag="1")] + pub bindings: ::std::collections::HashMap<::prost::alloc::string::String, BindingData>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UnionInfo { + #[prost(message, optional, tag="1")] + pub target_type: ::core::option::Option, +} +/// Specifies either a simple value or a reference to another output. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BindingData { + #[prost(message, optional, tag="5")] + pub union: ::core::option::Option, + #[prost(oneof="binding_data::Value", tags="1, 2, 3, 4")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `BindingData`. +pub mod binding_data { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + /// A simple scalar value. + #[prost(message, tag="1")] + Scalar(super::Scalar), + /// A collection of binding data. This allows nesting of binding data to any number + /// of levels. + #[prost(message, tag="2")] + Collection(super::BindingDataCollection), + /// References an output promised by another node. + #[prost(message, tag="3")] + Promise(super::OutputReference), + /// A map of bindings. The key is always a string. + #[prost(message, tag="4")] + Map(super::BindingDataMap), + } +} +/// An input/output binding of a variable to either static value or a node output. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Binding { + /// Variable name must match an input/output variable of the node. + #[prost(string, tag="1")] + pub var: ::prost::alloc::string::String, + /// Data to use to bind this variable. + #[prost(message, optional, tag="2")] + pub binding: ::core::option::Option, +} +/// A generic key value pair. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct KeyValuePair { + /// required. + #[prost(string, tag="1")] + pub key: ::prost::alloc::string::String, + /// +optional. + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, +} +/// Retry strategy associated with an executable unit. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RetryStrategy { + /// Number of retries. Retries will be consumed when the job fails with a recoverable error. + /// The number of retries must be less than or equals to 10. + #[prost(uint32, tag="5")] + pub retries: u32, +} +/// Encapsulation of fields that uniquely identifies a Flyte resource. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Identifier { + /// Identifies the specific type of resource that this identifier corresponds to. + #[prost(enumeration="ResourceType", tag="1")] + pub resource_type: i32, + /// Name of the project the resource belongs to. + #[prost(string, tag="2")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the resource belongs to. + /// A domain can be considered as a subset within a specific project. + #[prost(string, tag="3")] + pub domain: ::prost::alloc::string::String, + /// User provided value for the resource. + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, + /// Specific version of the resource. + #[prost(string, tag="5")] + pub version: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="6")] + pub org: ::prost::alloc::string::String, +} +/// Encapsulation of fields that uniquely identifies a Flyte workflow execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionIdentifier { + /// Name of the project the resource belongs to. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Name of the domain the resource belongs to. + /// A domain can be considered as a subset within a specific project. + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// User or system provided value for the resource. + #[prost(string, tag="4")] + pub name: ::prost::alloc::string::String, + /// Optional, org key applied to the resource. + #[prost(string, tag="5")] + pub org: ::prost::alloc::string::String, +} +/// Encapsulation of fields that identify a Flyte node execution entity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionIdentifier { + #[prost(string, tag="1")] + pub node_id: ::prost::alloc::string::String, + #[prost(message, optional, tag="2")] + pub execution_id: ::core::option::Option, +} +/// Encapsulation of fields that identify a Flyte task execution entity. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionIdentifier { + #[prost(message, optional, tag="1")] + pub task_id: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub node_execution_id: ::core::option::Option, + #[prost(uint32, tag="3")] + pub retry_attempt: u32, +} +/// Encapsulation of fields the uniquely identify a signal. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalIdentifier { + /// Unique identifier for a signal. + #[prost(string, tag="1")] + pub signal_id: ::prost::alloc::string::String, + /// Identifies the Flyte workflow execution this signal belongs to. + #[prost(message, optional, tag="2")] + pub execution_id: ::core::option::Option, +} +/// Indicates a resource type within Flyte. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ResourceType { + Unspecified = 0, + Task = 1, + Workflow = 2, + LaunchPlan = 3, + /// A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. + /// Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects + /// in a similar manner to other Flyte objects + Dataset = 4, +} +impl ResourceType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ResourceType::Unspecified => "UNSPECIFIED", + ResourceType::Task => "TASK", + ResourceType::Workflow => "WORKFLOW", + ResourceType::LaunchPlan => "LAUNCH_PLAN", + ResourceType::Dataset => "DATASET", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNSPECIFIED" => Some(Self::Unspecified), + "TASK" => Some(Self::Task), + "WORKFLOW" => Some(Self::Workflow), + "LAUNCH_PLAN" => Some(Self::LaunchPlan), + "DATASET" => Some(Self::Dataset), + _ => None, + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactKey { + /// Project and domain and suffix needs to be unique across a given artifact store. + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub org: ::prost::alloc::string::String, +} +/// Only valid for triggers +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactBindingData { + #[prost(uint32, tag="1")] + pub index: u32, + /// This is only relevant in the time partition case + #[prost(string, tag="4")] + pub transform: ::prost::alloc::string::String, + /// These two fields are only relevant in the partition value case + #[prost(oneof="artifact_binding_data::PartitionData", tags="2, 3")] + pub partition_data: ::core::option::Option, +} +/// Nested message and enum types in `ArtifactBindingData`. +pub mod artifact_binding_data { + /// These two fields are only relevant in the partition value case + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum PartitionData { + #[prost(string, tag="2")] + PartitionKey(::prost::alloc::string::String), + #[prost(bool, tag="3")] + BindToTimePartition(bool), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct InputBindingData { + #[prost(string, tag="1")] + pub var: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LabelValue { + #[prost(oneof="label_value::Value", tags="1, 2, 3, 4")] + pub value: ::core::option::Option, +} +/// Nested message and enum types in `LabelValue`. +pub mod label_value { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Value { + /// The string static value is for use in the Partitions object + #[prost(string, tag="1")] + StaticValue(::prost::alloc::string::String), + /// The time value is for use in the TimePartition case + #[prost(message, tag="2")] + TimeValue(::prost_types::Timestamp), + #[prost(message, tag="3")] + TriggeredBinding(super::ArtifactBindingData), + #[prost(message, tag="4")] + InputBinding(super::InputBindingData), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Partitions { + #[prost(map="string, message", tag="1")] + pub value: ::std::collections::HashMap<::prost::alloc::string::String, LabelValue>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TimePartition { + #[prost(message, optional, tag="1")] + pub value: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactId { + #[prost(message, optional, tag="1")] + pub artifact_key: ::core::option::Option, + #[prost(string, tag="2")] + pub version: ::prost::alloc::string::String, + /// Think of a partition as a tag on an Artifact, except it's a key-value pair. + /// Different partitions naturally have different versions (execution ids). + #[prost(message, optional, tag="3")] + pub partitions: ::core::option::Option, + /// There is no such thing as an empty time partition - if it's not set, then there is no time partition. + #[prost(message, optional, tag="4")] + pub time_partition: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactTag { + #[prost(message, optional, tag="1")] + pub artifact_key: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub value: ::core::option::Option, +} +/// Uniqueness constraints for Artifacts +/// - project, domain, name, version, partitions +/// Option 2 (tags are standalone, point to an individual artifact id): +/// - project, domain, name, alias (points to one partition if partitioned) +/// - project, domain, name, partition key, partition value +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArtifactQuery { + #[prost(oneof="artifact_query::Identifier", tags="1, 2, 3, 4")] + pub identifier: ::core::option::Option, +} +/// Nested message and enum types in `ArtifactQuery`. +pub mod artifact_query { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Identifier { + #[prost(message, tag="1")] + ArtifactId(super::ArtifactId), + #[prost(message, tag="2")] + ArtifactTag(super::ArtifactTag), + #[prost(string, tag="3")] + Uri(::prost::alloc::string::String), + /// This is used in the trigger case, where a user specifies a value for an input that is one of the triggering + /// artifacts, or a partition value derived from a triggering artifact. + #[prost(message, tag="4")] + Binding(super::ArtifactBindingData), + } +} +/// Defines a strongly typed variable. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Variable { + /// Variable literal type. + #[prost(message, optional, tag="1")] + pub r#type: ::core::option::Option, + /// +optional string describing input variable + #[prost(string, tag="2")] + pub description: ::prost::alloc::string::String, + /// +optional This object allows the user to specify how Artifacts are created. + /// name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. + #[prost(message, optional, tag="3")] + pub artifact_partial_id: ::core::option::Option, + #[prost(message, optional, tag="4")] + pub artifact_tag: ::core::option::Option, +} +/// A map of Variables +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct VariableMap { + /// Defines a map of variable names to variables. + #[prost(map="string, message", tag="1")] + pub variables: ::std::collections::HashMap<::prost::alloc::string::String, Variable>, +} +/// Defines strongly typed inputs and outputs. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TypedInterface { + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, +} +/// A parameter is used as input to a launch plan and has +/// the special ability to have a default value or mark itself as required. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Parameter { + /// +required Variable. Defines the type of the variable backing this parameter. + #[prost(message, optional, tag="1")] + pub var: ::core::option::Option, + /// +optional + #[prost(oneof="parameter::Behavior", tags="2, 3, 4, 5")] + pub behavior: ::core::option::Option, +} +/// Nested message and enum types in `Parameter`. +pub mod parameter { + /// +optional + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Behavior { + /// Defines a default value that has to match the variable type defined. + #[prost(message, tag="2")] + Default(super::Literal), + /// +optional, is this value required to be filled. + #[prost(bool, tag="3")] + Required(bool), + /// This is an execution time search basically that should result in exactly one Artifact with a Type that + /// matches the type of the variable. + #[prost(message, tag="4")] + ArtifactQuery(super::ArtifactQuery), + #[prost(message, tag="5")] + ArtifactId(super::ArtifactId), + } +} +/// A map of Parameters. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParameterMap { + /// Defines a map of parameter names to parameters. + #[prost(map="string, message", tag="1")] + pub parameters: ::std::collections::HashMap<::prost::alloc::string::String, Parameter>, +} +/// Secret encapsulates information about the secret a task needs to proceed. An environment variable +/// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +/// secrets are passed through environment variables. +/// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets +/// are passed through file mounts. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Secret { + /// The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of + /// the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. + /// For AWS Secret Manager, this should be the name of the secret. + /// +required + #[prost(string, tag="1")] + pub group: ::prost::alloc::string::String, + /// The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones + /// that do not support it. + /// +optional + #[prost(string, tag="2")] + pub group_version: ::prost::alloc::string::String, + /// The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation + /// of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should + /// match one of the keys inside the secret. For AWS Secret Manager, it's ignored. + /// +optional + #[prost(string, tag="3")] + pub key: ::prost::alloc::string::String, + /// mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail + /// if the underlying key management system cannot satisfy that requirement. If not provided, the default location + /// will depend on the key management system. + /// +optional + #[prost(enumeration="secret::MountType", tag="4")] + pub mount_requirement: i32, +} +/// Nested message and enum types in `Secret`. +pub mod secret { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum MountType { + /// Default case, indicates the client can tolerate either mounting options. + Any = 0, + /// ENV_VAR indicates the secret needs to be mounted as an environment variable. + EnvVar = 1, + /// FILE indicates the secret needs to be mounted as a file. + File = 2, + } + impl MountType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MountType::Any => "ANY", + MountType::EnvVar => "ENV_VAR", + MountType::File => "FILE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ANY" => Some(Self::Any), + "ENV_VAR" => Some(Self::EnvVar), + "FILE" => Some(Self::File), + _ => None, + } + } + } +} +/// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2Client { + /// client_id is the public id for the client to use. The system will not perform any pre-auth validation that the + /// secret requested matches the client_id indicated here. + /// +required + #[prost(string, tag="1")] + pub client_id: ::prost::alloc::string::String, + /// client_secret is a reference to the secret used to authenticate the OAuth2 client. + /// +required + #[prost(message, optional, tag="2")] + pub client_secret: ::core::option::Option, +} +/// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the +/// right identity for the execution environment. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Identity { + /// iam_role references the fully qualified name of Identity & Access Management role to impersonate. + #[prost(string, tag="1")] + pub iam_role: ::prost::alloc::string::String, + /// k8s_service_account references a kubernetes service account to impersonate. + #[prost(string, tag="2")] + pub k8s_service_account: ::prost::alloc::string::String, + /// oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when + /// making external calls. + #[prost(message, optional, tag="3")] + pub oauth2_client: ::core::option::Option, + /// execution_identity references the subject who makes the execution + #[prost(string, tag="4")] + pub execution_identity: ::prost::alloc::string::String, +} +/// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. +/// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if +/// tokens are passed through environment variables. +/// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens +/// are passed through file mounts. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2TokenRequest { + /// name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for + /// environment variables and as a filename for mounting tokens as files. + /// +required + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. + /// +required + #[prost(enumeration="o_auth2_token_request::Type", tag="2")] + pub r#type: i32, + /// client references the client_id/secret to use to request the OAuth2 token. + /// +required + #[prost(message, optional, tag="3")] + pub client: ::core::option::Option, + /// idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related + /// information. + /// +optional + #[prost(string, tag="4")] + pub idp_discovery_endpoint: ::prost::alloc::string::String, + /// token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is + /// mandatory. + /// +optional + #[prost(string, tag="5")] + pub token_endpoint: ::prost::alloc::string::String, +} +/// Nested message and enum types in `OAuth2TokenRequest`. +pub mod o_auth2_token_request { + /// Type of the token requested. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Type { + /// CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. + ClientCredentials = 0, + } + impl Type { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Type::ClientCredentials => "CLIENT_CREDENTIALS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CLIENT_CREDENTIALS" => Some(Self::ClientCredentials), + _ => None, + } + } + } +} +/// SecurityContext holds security attributes that apply to tasks. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SecurityContext { + /// run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the + /// backend plugin to choose the appropriate identity for the execution engine the task will run on. + #[prost(message, optional, tag="1")] + pub run_as: ::core::option::Option, + /// secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the + /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + /// to the secret) and to pass it to the remote execution engine. + #[prost(message, repeated, tag="2")] + pub secrets: ::prost::alloc::vec::Vec, + /// tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the + /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS + /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access + /// to the secret) and to pass it to the remote execution engine. + #[prost(message, repeated, tag="3")] + pub tokens: ::prost::alloc::vec::Vec, +} +/// A customizable interface to convey resources requested for a container. This can be interpreted differently for different +/// container engines. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Resources { + /// The desired set of resources requested. ResourceNames must be unique within the list. + #[prost(message, repeated, tag="1")] + pub requests: ::prost::alloc::vec::Vec, + /// Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique + /// within the list. + #[prost(message, repeated, tag="2")] + pub limits: ::prost::alloc::vec::Vec, +} +/// Nested message and enum types in `Resources`. +pub mod resources { + /// Encapsulates a resource name and value. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct ResourceEntry { + /// Resource name. + #[prost(enumeration="ResourceName", tag="1")] + pub name: i32, + /// Value must be a valid k8s quantity. See + /// + #[prost(string, tag="2")] + pub value: ::prost::alloc::string::String, + } + /// Known resource names. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ResourceName { + Unknown = 0, + Cpu = 1, + Gpu = 2, + Memory = 3, + Storage = 4, + /// For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. + EphemeralStorage = 5, + } + impl ResourceName { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ResourceName::Unknown => "UNKNOWN", + ResourceName::Cpu => "CPU", + ResourceName::Gpu => "GPU", + ResourceName::Memory => "MEMORY", + ResourceName::Storage => "STORAGE", + ResourceName::EphemeralStorage => "EPHEMERAL_STORAGE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "CPU" => Some(Self::Cpu), + "GPU" => Some(Self::Gpu), + "MEMORY" => Some(Self::Memory), + "STORAGE" => Some(Self::Storage), + "EPHEMERAL_STORAGE" => Some(Self::EphemeralStorage), + _ => None, + } + } + } +} +/// Metadata associated with the GPU accelerator to allocate to a task. Contains +/// information about device type, and for multi-instance GPUs, the partition size to +/// use. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GpuAccelerator { + /// This can be any arbitrary string, and should be informed by the labels or taints + /// associated with the nodes in question. Default cloud provider labels typically + /// use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. + #[prost(string, tag="1")] + pub device: ::prost::alloc::string::String, + #[prost(oneof="gpu_accelerator::PartitionSizeValue", tags="2, 3")] + pub partition_size_value: ::core::option::Option, +} +/// Nested message and enum types in `GPUAccelerator`. +pub mod gpu_accelerator { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum PartitionSizeValue { + #[prost(bool, tag="2")] + Unpartitioned(bool), + /// Like `device`, this can be any arbitrary string, and should be informed by + /// the labels or taints associated with the nodes in question. Default cloud + /// provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. + #[prost(string, tag="3")] + PartitionSize(::prost::alloc::string::String), + } +} +/// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to +/// allocate to a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExtendedResources { + /// GPU accelerator to select for task. Contains information about device type, and + /// for multi-instance GPUs, the partition size to use. + #[prost(message, optional, tag="1")] + pub gpu_accelerator: ::core::option::Option, +} +/// Runtime information. This is loosely defined to allow for extensibility. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RuntimeMetadata { + /// Type of runtime. + #[prost(enumeration="runtime_metadata::RuntimeType", tag="1")] + pub r#type: i32, + /// Version of the runtime. All versions should be backward compatible. However, certain cases call for version + /// checks to ensure tighter validation or setting expectations. + #[prost(string, tag="2")] + pub version: ::prost::alloc::string::String, + /// +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). + #[prost(string, tag="3")] + pub flavor: ::prost::alloc::string::String, +} +/// Nested message and enum types in `RuntimeMetadata`. +pub mod runtime_metadata { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum RuntimeType { + Other = 0, + FlyteSdk = 1, + } + impl RuntimeType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + RuntimeType::Other => "OTHER", + RuntimeType::FlyteSdk => "FLYTE_SDK", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "OTHER" => Some(Self::Other), + "FLYTE_SDK" => Some(Self::FlyteSdk), + _ => None, + } + } + } +} +/// Task Metadata +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskMetadata { + /// Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. + #[prost(bool, tag="1")] + pub discoverable: bool, + /// Runtime information about the task. + #[prost(message, optional, tag="2")] + pub runtime: ::core::option::Option, + /// The overall timeout of a task including user-triggered retries. + #[prost(message, optional, tag="4")] + pub timeout: ::core::option::Option<::prost_types::Duration>, + /// Number of retries per task. + #[prost(message, optional, tag="5")] + pub retries: ::core::option::Option, + /// Indicates a logical version to apply to this task for the purpose of discovery. + #[prost(string, tag="6")] + pub discovery_version: ::prost::alloc::string::String, + /// If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers + /// of the ending of support for a given task. + #[prost(string, tag="7")] + pub deprecated_error_message: ::prost::alloc::string::String, + /// Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work + #[prost(bool, tag="9")] + pub cache_serializable: bool, + /// Indicates whether the task will generate a Deck URI when it finishes executing. + #[prost(bool, tag="10")] + pub generates_deck: bool, + /// Arbitrary tags that allow users and the platform to store small but arbitrary labels + #[prost(map="string, string", tag="11")] + pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this + /// task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied + /// identically as, the default PodTemplate configured in FlytePropeller. + #[prost(string, tag="12")] + pub pod_template_name: ::prost::alloc::string::String, + /// cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. + #[prost(string, repeated, tag="13")] + pub cache_ignore_input_vars: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + // For interruptible we will populate it at the node level but require it be part of TaskMetadata + // for a user to set the value. + // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being + // set by the user or defaulting to false. + // The logic of handling precedence will be done as part of flytepropeller. + + /// Identify whether task is interruptible + #[prost(oneof="task_metadata::InterruptibleValue", tags="8")] + pub interruptible_value: ::core::option::Option, +} +/// Nested message and enum types in `TaskMetadata`. +pub mod task_metadata { + // For interruptible we will populate it at the node level but require it be part of TaskMetadata + // for a user to set the value. + // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being + // set by the user or defaulting to false. + // The logic of handling precedence will be done as part of flytepropeller. + + /// Identify whether task is interruptible + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InterruptibleValue { + #[prost(bool, tag="8")] + Interruptible(bool), + } +} +/// A Task structure that uniquely identifies a task in the system +/// Tasks are registered as a first step in the system. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskTemplate { + /// Auto generated taskId by the system. Task Id uniquely identifies this task globally. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no + /// extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the + /// implementation registered for the TaskCategory. + #[prost(string, tag="2")] + pub r#type: ::prost::alloc::string::String, + /// Extra metadata about the task. + #[prost(message, optional, tag="3")] + pub metadata: ::core::option::Option, + /// A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees + /// compile-time validation of the workflow to avoid costly runtime failures. + #[prost(message, optional, tag="4")] + pub interface: ::core::option::Option, + /// Custom data about the task. This is extensible to allow various plugins in the system. + #[prost(message, optional, tag="5")] + pub custom: ::core::option::Option<::prost_types::Struct>, + /// This can be used to customize task handling at execution time for the same task type. + #[prost(int32, tag="7")] + pub task_type_version: i32, + /// security_context encapsulates security attributes requested to run this task. + #[prost(message, optional, tag="8")] + pub security_context: ::core::option::Option, + /// Encapsulates all non-standard resources, not captured by + /// v1.ResourceRequirements, to allocate to a task. + #[prost(message, optional, tag="9")] + pub extended_resources: ::core::option::Option, + /// Metadata about the custom defined for this task. This is extensible to allow various plugins in the system + /// to use as required. + /// reserve the field numbers 1 through 15 for very frequently occurring message elements + #[prost(map="string, string", tag="16")] + pub config: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + /// handlers. + #[prost(oneof="task_template::Target", tags="6, 17, 18")] + pub target: ::core::option::Option, +} +/// Nested message and enum types in `TaskTemplate`. +pub mod task_template { + /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. + /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in + /// handlers. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Target { + #[prost(message, tag="6")] + Container(super::Container), + #[prost(message, tag="17")] + K8sPod(super::K8sPod), + #[prost(message, tag="18")] + Sql(super::Sql), + } +} +// ----------------- First class Plugins + +/// Defines port properties for a container. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ContainerPort { + /// Number of port to expose on the pod's IP address. + /// This must be a valid port number, 0 < x < 65536. + #[prost(uint32, tag="1")] + pub container_port: u32, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Container { + /// Container image url. Eg: docker/redis:latest + #[prost(string, tag="1")] + pub image: ::prost::alloc::string::String, + /// Command to be executed, if not provided, the default entrypoint in the container image will be used. + #[prost(string, repeated, tag="2")] + pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// These will default to Flyte given paths. If provided, the system will not append known paths. If the task still + /// needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the + /// system will populate these before executing the container. + #[prost(string, repeated, tag="3")] + pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Container resources requirement as specified by the container engine. + #[prost(message, optional, tag="4")] + pub resources: ::core::option::Option, + /// Environment variables will be set as the container is starting up. + #[prost(message, repeated, tag="5")] + pub env: ::prost::alloc::vec::Vec, + /// Allows extra configs to be available for the container. + /// TODO: elaborate on how configs will become available. + /// Deprecated, please use TaskTemplate.config instead. + #[deprecated] + #[prost(message, repeated, tag="6")] + pub config: ::prost::alloc::vec::Vec, + /// Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but + /// not supported on AWS Batch) + /// Only K8s + #[prost(message, repeated, tag="7")] + pub ports: ::prost::alloc::vec::Vec, + /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. + /// This makes it possible to to run a completely portable container, that uses inputs and outputs + /// only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. + /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + /// to understand the default paths. + /// Only K8s + #[prost(message, optional, tag="9")] + pub data_config: ::core::option::Option, + #[prost(enumeration="container::Architecture", tag="10")] + pub architecture: i32, +} +/// Nested message and enum types in `Container`. +pub mod container { + /// Architecture-type the container image supports. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Architecture { + Unknown = 0, + Amd64 = 1, + Arm64 = 2, + ArmV6 = 3, + ArmV7 = 4, + } + impl Architecture { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Architecture::Unknown => "UNKNOWN", + Architecture::Amd64 => "AMD64", + Architecture::Arm64 => "ARM64", + Architecture::ArmV6 => "ARM_V6", + Architecture::ArmV7 => "ARM_V7", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "AMD64" => Some(Self::Amd64), + "ARM64" => Some(Self::Arm64), + "ARM_V6" => Some(Self::ArmV6), + "ARM_V7" => Some(Self::ArmV7), + _ => None, + } + } + } +} +/// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IoStrategy { + /// Mode to use to manage downloads + #[prost(enumeration="io_strategy::DownloadMode", tag="1")] + pub download_mode: i32, + /// Mode to use to manage uploads + #[prost(enumeration="io_strategy::UploadMode", tag="2")] + pub upload_mode: i32, +} +/// Nested message and enum types in `IOStrategy`. +pub mod io_strategy { + /// Mode to use for downloading + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum DownloadMode { + /// All data will be downloaded before the main container is executed + DownloadEager = 0, + /// Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details + DownloadStream = 1, + /// Large objects (offloaded) will not be downloaded + DoNotDownload = 2, + } + impl DownloadMode { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + DownloadMode::DownloadEager => "DOWNLOAD_EAGER", + DownloadMode::DownloadStream => "DOWNLOAD_STREAM", + DownloadMode::DoNotDownload => "DO_NOT_DOWNLOAD", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DOWNLOAD_EAGER" => Some(Self::DownloadEager), + "DOWNLOAD_STREAM" => Some(Self::DownloadStream), + "DO_NOT_DOWNLOAD" => Some(Self::DoNotDownload), + _ => None, + } + } + } + /// Mode to use for uploading + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum UploadMode { + /// All data will be uploaded after the main container exits + UploadOnExit = 0, + /// Data will be uploaded as it appears. Refer to protocol specification for details + UploadEager = 1, + /// Data will not be uploaded, only references will be written + DoNotUpload = 2, + } + impl UploadMode { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + UploadMode::UploadOnExit => "UPLOAD_ON_EXIT", + UploadMode::UploadEager => "UPLOAD_EAGER", + UploadMode::DoNotUpload => "DO_NOT_UPLOAD", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UPLOAD_ON_EXIT" => Some(Self::UploadOnExit), + "UPLOAD_EAGER" => Some(Self::UploadEager), + "DO_NOT_UPLOAD" => Some(Self::DoNotUpload), + _ => None, + } + } + } +} +/// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. +/// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path +/// Any outputs generated by the user container - within output_path are automatically uploaded. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DataLoadingConfig { + /// Flag enables DataLoading Config. If this is not set, data loading will not be used! + #[prost(bool, tag="1")] + pub enabled: bool, + /// File system path (start at root). This folder will contain all the inputs exploded to a separate file. + /// Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like + /// /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations + /// /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format + /// /var/flyte/inputs/y -> Y is a file in Binary format + /// /var/flyte/inputs/z/... -> Note Z itself is a directory + /// More information about the protocol - refer to docs #TODO reference docs here + #[prost(string, tag="2")] + pub input_path: ::prost::alloc::string::String, + /// File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file + #[prost(string, tag="3")] + pub output_path: ::prost::alloc::string::String, + /// In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. + /// This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding + #[prost(enumeration="data_loading_config::LiteralMapFormat", tag="4")] + pub format: i32, + #[prost(message, optional, tag="5")] + pub io_strategy: ::core::option::Option, +} +/// Nested message and enum types in `DataLoadingConfig`. +pub mod data_loading_config { + /// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. + /// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. + /// JSON and YAML do not need any protobuf definitions to read it + /// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum LiteralMapFormat { + /// JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - + Json = 0, + Yaml = 1, + /// Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core + Proto = 2, + } + impl LiteralMapFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LiteralMapFormat::Json => "JSON", + LiteralMapFormat::Yaml => "YAML", + LiteralMapFormat::Proto => "PROTO", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "JSON" => Some(Self::Json), + "YAML" => Some(Self::Yaml), + "PROTO" => Some(Self::Proto), + _ => None, + } + } + } +} +/// Defines a pod spec and additional pod metadata that is created when a task is executed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct K8sPod { + /// Contains additional metadata for building a kubernetes pod. + #[prost(message, optional, tag="1")] + pub metadata: ::core::option::Option, + /// Defines the primary pod spec created when a task is executed. + /// This should be a JSON-marshalled pod spec, which can be defined in + /// - go, using: + /// - python: using + #[prost(message, optional, tag="2")] + pub pod_spec: ::core::option::Option<::prost_types::Struct>, + /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. + /// This makes it possible to to run a completely portable container, that uses inputs and outputs + /// only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. + /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories + /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation + /// to understand the default paths. + /// Only K8s + #[prost(message, optional, tag="3")] + pub data_config: ::core::option::Option, +} +/// Metadata for building a kubernetes object when a task is executed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct K8sObjectMetadata { + /// Optional labels to add to the pod definition. + #[prost(map="string, string", tag="1")] + pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Optional annotations to add to the pod definition. + #[prost(map="string, string", tag="2")] + pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Sql represents a generic sql workload with a statement and dialect. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Sql { + /// The actual query to run, the query can have templated parameters. + /// We use Flyte's Golang templating format for Query templating. + /// Refer to the templating documentation. + /// + /// For example, + /// insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet + /// select * + /// from my_table + /// where ds = '{{ .Inputs.ds }}' + #[prost(string, tag="1")] + pub statement: ::prost::alloc::string::String, + #[prost(enumeration="sql::Dialect", tag="2")] + pub dialect: i32, +} +/// Nested message and enum types in `Sql`. +pub mod sql { + /// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid + /// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. + /// We support the following dialect: ansi, hive. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Dialect { + Undefined = 0, + Ansi = 1, + Hive = 2, + Other = 3, + } + impl Dialect { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Dialect::Undefined => "UNDEFINED", + Dialect::Ansi => "ANSI", + Dialect::Hive => "HIVE", + Dialect::Other => "OTHER", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "ANSI" => Some(Self::Ansi), + "HIVE" => Some(Self::Hive), + "OTHER" => Some(Self::Other), + _ => None, + } + } + } +} +/// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. +/// Each expression results in a boolean result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ComparisonExpression { + #[prost(enumeration="comparison_expression::Operator", tag="1")] + pub operator: i32, + #[prost(message, optional, tag="2")] + pub left_value: ::core::option::Option, + #[prost(message, optional, tag="3")] + pub right_value: ::core::option::Option, +} +/// Nested message and enum types in `ComparisonExpression`. +pub mod comparison_expression { + /// Binary Operator for each expression + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Operator { + Eq = 0, + Neq = 1, + /// Greater Than + Gt = 2, + Gte = 3, + /// Less Than + Lt = 4, + Lte = 5, + } + impl Operator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Operator::Eq => "EQ", + Operator::Neq => "NEQ", + Operator::Gt => "GT", + Operator::Gte => "GTE", + Operator::Lt => "LT", + Operator::Lte => "LTE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "EQ" => Some(Self::Eq), + "NEQ" => Some(Self::Neq), + "GT" => Some(Self::Gt), + "GTE" => Some(Self::Gte), + "LT" => Some(Self::Lt), + "LTE" => Some(Self::Lte), + _ => None, + } + } + } +} +/// Defines an operand to a comparison expression. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Operand { + #[prost(oneof="operand::Val", tags="1, 2, 3")] + pub val: ::core::option::Option, +} +/// Nested message and enum types in `Operand`. +pub mod operand { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Val { + /// Can be a constant + #[prost(message, tag="1")] + Primitive(super::Primitive), + /// Or one of this node's input variables + #[prost(string, tag="2")] + Var(::prost::alloc::string::String), + /// Replace the primitive field + #[prost(message, tag="3")] + Scalar(super::Scalar), + } +} +/// Defines a boolean expression tree. It can be a simple or a conjunction expression. +/// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BooleanExpression { + #[prost(oneof="boolean_expression::Expr", tags="1, 2")] + pub expr: ::core::option::Option, +} +/// Nested message and enum types in `BooleanExpression`. +pub mod boolean_expression { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Expr { + #[prost(message, tag="1")] + Conjunction(::prost::alloc::boxed::Box), + #[prost(message, tag="2")] + Comparison(super::ComparisonExpression), + } +} +/// Defines a conjunction expression of two boolean expressions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ConjunctionExpression { + #[prost(enumeration="conjunction_expression::LogicalOperator", tag="1")] + pub operator: i32, + #[prost(message, optional, boxed, tag="2")] + pub left_expression: ::core::option::Option<::prost::alloc::boxed::Box>, + #[prost(message, optional, boxed, tag="3")] + pub right_expression: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Nested message and enum types in `ConjunctionExpression`. +pub mod conjunction_expression { + /// Nested conditions. They can be conjoined using AND / OR + /// Order of evaluation is not important as the operators are Commutative + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum LogicalOperator { + /// Conjunction + And = 0, + Or = 1, + } + impl LogicalOperator { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + LogicalOperator::And => "AND", + LogicalOperator::Or => "OR", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "AND" => Some(Self::And), + "OR" => Some(Self::Or), + _ => None, + } + } + } +} +/// Indicates various phases of Workflow Execution +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecution { +} +/// Nested message and enum types in `WorkflowExecution`. +pub mod workflow_execution { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeding = 3, + Succeeded = 4, + Failing = 5, + Failed = 6, + Aborted = 7, + TimedOut = 8, + Aborting = 9, + } + impl Phase { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Phase::Undefined => "UNDEFINED", + Phase::Queued => "QUEUED", + Phase::Running => "RUNNING", + Phase::Succeeding => "SUCCEEDING", + Phase::Succeeded => "SUCCEEDED", + Phase::Failing => "FAILING", + Phase::Failed => "FAILED", + Phase::Aborted => "ABORTED", + Phase::TimedOut => "TIMED_OUT", + Phase::Aborting => "ABORTING", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "QUEUED" => Some(Self::Queued), + "RUNNING" => Some(Self::Running), + "SUCCEEDING" => Some(Self::Succeeding), + "SUCCEEDED" => Some(Self::Succeeded), + "FAILING" => Some(Self::Failing), + "FAILED" => Some(Self::Failed), + "ABORTED" => Some(Self::Aborted), + "TIMED_OUT" => Some(Self::TimedOut), + "ABORTING" => Some(Self::Aborting), + _ => None, + } + } + } +} +/// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecution { +} +/// Nested message and enum types in `NodeExecution`. +pub mod node_execution { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeded = 3, + Failing = 4, + Failed = 5, + Aborted = 6, + Skipped = 7, + TimedOut = 8, + DynamicRunning = 9, + Recovered = 10, + } + impl Phase { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Phase::Undefined => "UNDEFINED", + Phase::Queued => "QUEUED", + Phase::Running => "RUNNING", + Phase::Succeeded => "SUCCEEDED", + Phase::Failing => "FAILING", + Phase::Failed => "FAILED", + Phase::Aborted => "ABORTED", + Phase::Skipped => "SKIPPED", + Phase::TimedOut => "TIMED_OUT", + Phase::DynamicRunning => "DYNAMIC_RUNNING", + Phase::Recovered => "RECOVERED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "QUEUED" => Some(Self::Queued), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + "FAILING" => Some(Self::Failing), + "FAILED" => Some(Self::Failed), + "ABORTED" => Some(Self::Aborted), + "SKIPPED" => Some(Self::Skipped), + "TIMED_OUT" => Some(Self::TimedOut), + "DYNAMIC_RUNNING" => Some(Self::DynamicRunning), + "RECOVERED" => Some(Self::Recovered), + _ => None, + } + } + } +} +/// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, +/// but this is the cumulative list that customers may want to know about for their task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecution { +} +/// Nested message and enum types in `TaskExecution`. +pub mod task_execution { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Phase { + Undefined = 0, + Queued = 1, + Running = 2, + Succeeded = 3, + Aborted = 4, + Failed = 5, + /// To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing + Initializing = 6, + /// To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded + WaitingForResources = 7, + } + impl Phase { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Phase::Undefined => "UNDEFINED", + Phase::Queued => "QUEUED", + Phase::Running => "RUNNING", + Phase::Succeeded => "SUCCEEDED", + Phase::Aborted => "ABORTED", + Phase::Failed => "FAILED", + Phase::Initializing => "INITIALIZING", + Phase::WaitingForResources => "WAITING_FOR_RESOURCES", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "QUEUED" => Some(Self::Queued), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + "ABORTED" => Some(Self::Aborted), + "FAILED" => Some(Self::Failed), + "INITIALIZING" => Some(Self::Initializing), + "WAITING_FOR_RESOURCES" => Some(Self::WaitingForResources), + _ => None, + } + } + } +} +/// Represents the error message from the execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionError { + /// Error code indicates a grouping of a type of error. + /// More Info: + #[prost(string, tag="1")] + pub code: ::prost::alloc::string::String, + /// Detailed description of the error - including stack trace. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, + /// Full error contents accessible via a URI + #[prost(string, tag="3")] + pub error_uri: ::prost::alloc::string::String, + #[prost(enumeration="execution_error::ErrorKind", tag="4")] + pub kind: i32, +} +/// Nested message and enum types in `ExecutionError`. +pub mod execution_error { + /// Error type: System or User + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum ErrorKind { + Unknown = 0, + User = 1, + System = 2, + } + impl ErrorKind { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ErrorKind::Unknown => "UNKNOWN", + ErrorKind::User => "USER", + ErrorKind::System => "SYSTEM", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "USER" => Some(Self::User), + "SYSTEM" => Some(Self::System), + _ => None, + } + } + } +} +/// Log information for the task that is specific to a log sink +/// When our log story is flushed out, we may have more metadata here like log link expiry +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskLog { + #[prost(string, tag="1")] + pub uri: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + #[prost(enumeration="task_log::MessageFormat", tag="3")] + pub message_format: i32, + #[prost(message, optional, tag="4")] + pub ttl: ::core::option::Option<::prost_types::Duration>, +} +/// Nested message and enum types in `TaskLog`. +pub mod task_log { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum MessageFormat { + Unknown = 0, + Csv = 1, + Json = 2, + } + impl MessageFormat { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + MessageFormat::Unknown => "UNKNOWN", + MessageFormat::Csv => "CSV", + MessageFormat::Json => "JSON", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNKNOWN" => Some(Self::Unknown), + "CSV" => Some(Self::Csv), + "JSON" => Some(Self::Json), + _ => None, + } + } + } +} +/// Represents customized execution run-time attributes. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QualityOfServiceSpec { + /// Indicates how much queueing delay an execution can tolerate. + #[prost(message, optional, tag="1")] + pub queueing_budget: ::core::option::Option<::prost_types::Duration>, +} +/// Indicates the priority of an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QualityOfService { + #[prost(oneof="quality_of_service::Designation", tags="1, 2")] + pub designation: ::core::option::Option, +} +/// Nested message and enum types in `QualityOfService`. +pub mod quality_of_service { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Tier { + /// Default: no quality of service specified. + Undefined = 0, + High = 1, + Medium = 2, + Low = 3, + } + impl Tier { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Tier::Undefined => "UNDEFINED", + Tier::High => "HIGH", + Tier::Medium => "MEDIUM", + Tier::Low => "LOW", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "UNDEFINED" => Some(Self::Undefined), + "HIGH" => Some(Self::High), + "MEDIUM" => Some(Self::Medium), + "LOW" => Some(Self::Low), + _ => None, + } + } + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Designation { + #[prost(enumeration="Tier", tag="1")] + Tier(i32), + #[prost(message, tag="2")] + Spec(super::QualityOfServiceSpec), + } +} +/// Defines a condition and the execution unit that should be executed if the condition is satisfied. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IfBlock { + #[prost(message, optional, tag="1")] + pub condition: ::core::option::Option, + #[prost(message, optional, boxed, tag="2")] + pub then_node: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. +/// If no conditions were satisfied, the else_node or the error will execute. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct IfElseBlock { + /// +required. First condition to evaluate. + #[prost(message, optional, boxed, tag="1")] + pub case: ::core::option::Option<::prost::alloc::boxed::Box>, + /// +optional. Additional branches to evaluate. + #[prost(message, repeated, tag="2")] + pub other: ::prost::alloc::vec::Vec, + /// +required. + #[prost(oneof="if_else_block::Default", tags="3, 4")] + pub default: ::core::option::Option, +} +/// Nested message and enum types in `IfElseBlock`. +pub mod if_else_block { + /// +required. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Default { + /// The node to execute in case none of the branches were taken. + #[prost(message, tag="3")] + ElseNode(::prost::alloc::boxed::Box), + /// An error to throw in case none of the branches were taken. + #[prost(message, tag="4")] + Error(super::Error), + } +} +/// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at +/// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct BranchNode { + /// +required + #[prost(message, optional, boxed, tag="1")] + pub if_else: ::core::option::Option<::prost::alloc::boxed::Box>, +} +/// Refers to the task that the Node is to execute. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNode { + /// Optional overrides applied at task execution time. + #[prost(message, optional, tag="2")] + pub overrides: ::core::option::Option, + #[prost(oneof="task_node::Reference", tags="1")] + pub reference: ::core::option::Option, +} +/// Nested message and enum types in `TaskNode`. +pub mod task_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reference { + /// A globally unique identifier for the task. + #[prost(message, tag="1")] + ReferenceId(super::Identifier), + } +} +/// Refers to a the workflow the node is to execute. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowNode { + #[prost(oneof="workflow_node::Reference", tags="1, 2")] + pub reference: ::core::option::Option, +} +/// Nested message and enum types in `WorkflowNode`. +pub mod workflow_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Reference { + /// A globally unique identifier for the launch plan. + #[prost(message, tag="1")] + LaunchplanRef(super::Identifier), + /// Reference to a subworkflow, that should be defined with the compiler context + #[prost(message, tag="2")] + SubWorkflowRef(super::Identifier), + } +} +/// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean +/// signal with the provided signal_id. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ApproveCondition { + /// A unique identifier for the requested boolean signal. + #[prost(string, tag="1")] + pub signal_id: ::prost::alloc::string::String, +} +/// SignalCondition represents a dependency on an signal. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SignalCondition { + /// A unique identifier for the requested signal. + #[prost(string, tag="1")] + pub signal_id: ::prost::alloc::string::String, + /// A type denoting the required value type for this signal. + #[prost(message, optional, tag="2")] + pub r#type: ::core::option::Option, + /// The variable name for the signal value in this nodes outputs. + #[prost(string, tag="3")] + pub output_variable_name: ::prost::alloc::string::String, +} +/// SleepCondition represents a dependency on waiting for the specified duration. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SleepCondition { + /// The overall duration for this sleep. + #[prost(message, optional, tag="1")] + pub duration: ::core::option::Option<::prost_types::Duration>, +} +/// GateNode refers to the condition that is required for the gate to successfully complete. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GateNode { + #[prost(oneof="gate_node::Condition", tags="1, 2, 3")] + pub condition: ::core::option::Option, +} +/// Nested message and enum types in `GateNode`. +pub mod gate_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Condition { + /// ApproveCondition represents a dependency on an external approval provided by a boolean signal. + #[prost(message, tag="1")] + Approve(super::ApproveCondition), + /// SignalCondition represents a dependency on an signal. + #[prost(message, tag="2")] + Signal(super::SignalCondition), + /// SleepCondition represents a dependency on waiting for the specified duration. + #[prost(message, tag="3")] + Sleep(super::SleepCondition), + } +} +/// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input +/// values. An ArrayNode can be executed with configurable parallelism (separate from the parent +/// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArrayNode { + /// node is the sub-node that will be executed for each element in the array. + #[prost(message, optional, boxed, tag="1")] + pub node: ::core::option::Option<::prost::alloc::boxed::Box>, + /// parallelism defines the minimum number of instances to bring up concurrently at any given + /// point. Note that this is an optimistic restriction and that, due to network partitioning or + /// other failures, the actual number of currently running instances might be more. This has to + /// be a positive number if assigned. Default value is size. + #[prost(uint32, tag="2")] + pub parallelism: u32, + #[prost(oneof="array_node::SuccessCriteria", tags="3, 4")] + pub success_criteria: ::core::option::Option, +} +/// Nested message and enum types in `ArrayNode`. +pub mod array_node { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum SuccessCriteria { + /// min_successes is an absolute number of the minimum number of successful completions of + /// sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful + /// and outputs will be computed. This has to be a non-negative number if assigned. Default + /// value is size (if specified). + #[prost(uint32, tag="3")] + MinSuccesses(u32), + /// If the array job size is not known beforehand, the min_success_ratio can instead be used + /// to determine when an ArrayNode can be marked successful. + #[prost(float, tag="4")] + MinSuccessRatio(f32), + } +} +/// Defines extra information about the Node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeMetadata { + /// A friendly name for the Node + #[prost(string, tag="1")] + pub name: ::prost::alloc::string::String, + /// The overall timeout of a task. + #[prost(message, optional, tag="4")] + pub timeout: ::core::option::Option<::prost_types::Duration>, + /// Number of retries per task. + #[prost(message, optional, tag="5")] + pub retries: ::core::option::Option, + /// Identify whether node is interruptible + #[prost(oneof="node_metadata::InterruptibleValue", tags="6")] + pub interruptible_value: ::core::option::Option, + /// Identify whether a node should have it's outputs cached. + #[prost(oneof="node_metadata::CacheableValue", tags="7")] + pub cacheable_value: ::core::option::Option, + /// The version of the cache to use. + #[prost(oneof="node_metadata::CacheVersionValue", tags="8")] + pub cache_version_value: ::core::option::Option, + /// Identify whether caching operations involving this node should be serialized. + #[prost(oneof="node_metadata::CacheSerializableValue", tags="9")] + pub cache_serializable_value: ::core::option::Option, +} +/// Nested message and enum types in `NodeMetadata`. +pub mod node_metadata { + /// Identify whether node is interruptible + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InterruptibleValue { + #[prost(bool, tag="6")] + Interruptible(bool), + } + /// Identify whether a node should have it's outputs cached. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CacheableValue { + #[prost(bool, tag="7")] + Cacheable(bool), + } + /// The version of the cache to use. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CacheVersionValue { + #[prost(string, tag="8")] + CacheVersion(::prost::alloc::string::String), + } + /// Identify whether caching operations involving this node should be serialized. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum CacheSerializableValue { + #[prost(bool, tag="9")] + CacheSerializable(bool), + } +} +/// Links a variable to an alias. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Alias { + /// Must match one of the output variable names on a node. + #[prost(string, tag="1")] + pub var: ::prost::alloc::string::String, + /// A workflow-level unique alias that downstream nodes can refer to in their input. + #[prost(string, tag="2")] + pub alias: ::prost::alloc::string::String, +} +/// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch +/// node. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Node { + /// A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved + /// node ids that cannot be used by other nodes. + #[prost(string, tag="1")] + pub id: ::prost::alloc::string::String, + /// Extra metadata about the node. + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, + /// Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface + /// must be fulfilled. + #[prost(message, repeated, tag="3")] + pub inputs: ::prost::alloc::vec::Vec, + /// +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its + /// upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs + /// field. + #[prost(string, repeated, tag="4")] + pub upstream_node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes + /// need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this + /// nodes outputs using the alias if one's specified. + #[prost(message, repeated, tag="5")] + pub output_aliases: ::prost::alloc::vec::Vec, + /// Information about the target to execute in this node. + #[prost(oneof="node::Target", tags="6, 7, 8, 9, 10")] + pub target: ::core::option::Option, +} +/// Nested message and enum types in `Node`. +pub mod node { + /// Information about the target to execute in this node. + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Target { + /// Information about the Task to execute in this node. + #[prost(message, tag="6")] + TaskNode(super::TaskNode), + /// Information about the Workflow to execute in this mode. + #[prost(message, tag="7")] + WorkflowNode(super::WorkflowNode), + /// Information about the branch node to evaluate in this node. + #[prost(message, tag="8")] + BranchNode(::prost::alloc::boxed::Box), + /// Information about the condition to evaluate in this node. + #[prost(message, tag="9")] + GateNode(super::GateNode), + /// Information about the sub-node executions for each value in the list of this nodes + /// inputs values. + #[prost(message, tag="10")] + ArrayNode(::prost::alloc::boxed::Box), + } +} +/// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not +/// percolate down to child entities (like tasks) launched by the workflow. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowMetadata { + /// Indicates the runtime priority of workflow executions. + #[prost(message, optional, tag="1")] + pub quality_of_service: ::core::option::Option, + /// Defines how the system should behave when a failure is detected in the workflow execution. + #[prost(enumeration="workflow_metadata::OnFailurePolicy", tag="2")] + pub on_failure: i32, + /// Arbitrary tags that allow users and the platform to store small but arbitrary labels + #[prost(map="string, string", tag="3")] + pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// Nested message and enum types in `WorkflowMetadata`. +pub mod workflow_metadata { + /// Failure Handling Strategy + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum OnFailurePolicy { + /// FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically + /// abort all currently running nodes and clean up resources before finally marking the workflow executions as + /// failed. + FailImmediately = 0, + /// FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will + /// not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. + /// Other nodes that will be executed to completion before cleaning up resources and marking the workflow + /// execution as failed. + FailAfterExecutableNodesComplete = 1, + } + impl OnFailurePolicy { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + OnFailurePolicy::FailImmediately => "FAIL_IMMEDIATELY", + OnFailurePolicy::FailAfterExecutableNodesComplete => "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "FAIL_IMMEDIATELY" => Some(Self::FailImmediately), + "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" => Some(Self::FailAfterExecutableNodesComplete), + _ => None, + } + } + } +} +/// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to +/// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it +/// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes +/// unless explicitly overridden at the node layer. +/// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be +/// added to both this object and the WorkflowMetadata object above. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowMetadataDefaults { + /// Whether child nodes of the workflow are interruptible. + #[prost(bool, tag="1")] + pub interruptible: bool, +} +/// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, +/// directed acyclic graph. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowTemplate { + /// A globally unique identifier for the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Extra metadata about the workflow. + #[prost(message, optional, tag="2")] + pub metadata: ::core::option::Option, + /// Defines a strongly typed interface for the Workflow. This can include some optional parameters. + #[prost(message, optional, tag="3")] + pub interface: ::core::option::Option, + /// A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. + #[prost(message, repeated, tag="4")] + pub nodes: ::prost::alloc::vec::Vec, + /// A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or + /// specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow + /// to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to + /// bind final outputs. + /// Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can + /// just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling + /// outputs from the output of a task. + #[prost(message, repeated, tag="5")] + pub outputs: ::prost::alloc::vec::Vec, + /// +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. + /// The interface of this node must match the Workflow interface with an additional input named 'error' of type + /// pb.lyft.flyte.core.Error. + #[prost(message, optional, tag="6")] + pub failure_node: ::core::option::Option, + /// workflow defaults + #[prost(message, optional, tag="7")] + pub metadata_defaults: ::core::option::Option, +} +/// Optional task node overrides that will be applied at task execution time. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNodeOverrides { + /// A customizable interface to convey resources requested for a task container. + #[prost(message, optional, tag="1")] + pub resources: ::core::option::Option, + /// Overrides for all non-standard resources, not captured by + /// v1.ResourceRequirements, to allocate to a task. + #[prost(message, optional, tag="2")] + pub extended_resources: ::core::option::Option, +} +/// A structure that uniquely identifies a launch plan in the system. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LaunchPlanTemplate { + /// A globally unique identifier for the launch plan. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// The input and output interface for the launch plan + #[prost(message, optional, tag="2")] + pub interface: ::core::option::Option, + /// A collection of input literals that are fixed for the launch plan + #[prost(message, optional, tag="3")] + pub fixed_inputs: ::core::option::Option, +} +/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation +/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more +/// precise definitions. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Span { + /// start_time defines the instance this span began. + #[prost(message, optional, tag="1")] + pub start_time: ::core::option::Option<::prost_types::Timestamp>, + /// end_time defines the instance this span completed. + #[prost(message, optional, tag="2")] + pub end_time: ::core::option::Option<::prost_types::Timestamp>, + /// spans defines a collection of Spans that breakdown this execution. + #[prost(message, repeated, tag="7")] + pub spans: ::prost::alloc::vec::Vec, + #[prost(oneof="span::Id", tags="3, 4, 5, 6")] + pub id: ::core::option::Option, +} +/// Nested message and enum types in `Span`. +pub mod span { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Id { + /// workflow_id is the id of the workflow execution this Span represents. + #[prost(message, tag="3")] + WorkflowId(super::WorkflowExecutionIdentifier), + /// node_id is the id of the node execution this Span represents. + #[prost(message, tag="4")] + NodeId(super::NodeExecutionIdentifier), + /// task_id is the id of the task execution this Span represents. + #[prost(message, tag="5")] + TaskId(super::TaskExecutionIdentifier), + /// operation_id is the id of a unique operation that this Span represents. + #[prost(string, tag="6")] + OperationId(::prost::alloc::string::String), + } +} +/// ExecutionMetrics is a collection of metrics that are collected during the execution of a Flyte task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExecutionMetricResult { + /// The metric this data represents. e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG. + #[prost(string, tag="1")] + pub metric: ::prost::alloc::string::String, + /// The result data in prometheus range query result format + /// + /// This may include multiple time series, differentiated by their metric labels. + /// Start time is greater of (execution attempt start, 48h ago) + /// End time is lesser of (execution attempt end, now) + #[prost(message, optional, tag="2")] + pub data: ::core::option::Option<::prost_types::Struct>, +} +/// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation +/// step uses this created ConnectionSet +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ConnectionSet { + /// A list of all the node ids that are downstream from a given node id + #[prost(map="string, message", tag="7")] + pub downstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, + /// A list of all the node ids, that are upstream of this node id + #[prost(map="string, message", tag="8")] + pub upstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, +} +/// Nested message and enum types in `ConnectionSet`. +pub mod connection_set { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] + pub struct IdList { + #[prost(string, repeated, tag="1")] + pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + } +} +/// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledWorkflow { + /// Completely contained Workflow Template + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, + /// For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. + #[prost(message, optional, tag="2")] + pub connections: ::core::option::Option, +} +/// Output of the compilation step. This object represents one LaunchPlan. We store more metadata at this layer +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledLaunchPlan { + /// Completely contained LaunchPlan Template + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, +} +/// Output of the Compilation step. This object represent one Task. We store more metadata at this layer +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledTask { + /// Completely contained TaskTemplate + #[prost(message, optional, tag="1")] + pub template: ::core::option::Option, +} +/// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow +/// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that +/// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of +/// compiled subworkflows. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CompiledWorkflowClosure { + /// +required + #[prost(message, optional, tag="1")] + pub primary: ::core::option::Option, + /// Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a + /// unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow + /// as an inlined workflow + /// +optional + #[prost(message, repeated, tag="2")] + pub sub_workflows: ::prost::alloc::vec::Vec, + /// Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id + /// +required (at least 1) + #[prost(message, repeated, tag="3")] + pub tasks: ::prost::alloc::vec::Vec, + /// A collection of launch plans that are compiled. Guaranteed that there will only exist one and only one launch plan + /// with a given id, i.e., every launch plan has a unique id. + #[prost(message, repeated, tag="4")] + pub launch_plans: ::prost::alloc::vec::Vec, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CatalogArtifactTag { + /// Artifact ID is generated name + #[prost(string, tag="1")] + pub artifact_id: ::prost::alloc::string::String, + /// Flyte computes the tag automatically, as the hash of the values + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, +} +/// Catalog artifact information with specific metadata +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CatalogMetadata { + /// Dataset ID in the catalog + #[prost(message, optional, tag="1")] + pub dataset_id: ::core::option::Option, + /// Artifact tag in the catalog + #[prost(message, optional, tag="2")] + pub artifact_tag: ::core::option::Option, + /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + #[prost(oneof="catalog_metadata::SourceExecution", tags="3")] + pub source_execution: ::core::option::Option, +} +/// Nested message and enum types in `CatalogMetadata`. +pub mod catalog_metadata { + /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum SourceExecution { + /// Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions + #[prost(message, tag="3")] + SourceTaskExecution(super::TaskExecutionIdentifier), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CatalogReservation { +} +/// Nested message and enum types in `CatalogReservation`. +pub mod catalog_reservation { + /// Indicates the status of a catalog reservation operation. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Status { + /// Used to indicate that reservations are disabled + ReservationDisabled = 0, + /// Used to indicate that a reservation was successfully acquired or extended + ReservationAcquired = 1, + /// Used to indicate that an active reservation currently exists + ReservationExists = 2, + /// Used to indicate that the reservation has been successfully released + ReservationReleased = 3, + /// Used to indicate that a reservation operation resulted in failure + ReservationFailure = 4, + } + impl Status { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Status::ReservationDisabled => "RESERVATION_DISABLED", + Status::ReservationAcquired => "RESERVATION_ACQUIRED", + Status::ReservationExists => "RESERVATION_EXISTS", + Status::ReservationReleased => "RESERVATION_RELEASED", + Status::ReservationFailure => "RESERVATION_FAILURE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESERVATION_DISABLED" => Some(Self::ReservationDisabled), + "RESERVATION_ACQUIRED" => Some(Self::ReservationAcquired), + "RESERVATION_EXISTS" => Some(Self::ReservationExists), + "RESERVATION_RELEASED" => Some(Self::ReservationReleased), + "RESERVATION_FAILURE" => Some(Self::ReservationFailure), + _ => None, + } + } + } +} +/// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum CatalogCacheStatus { + /// Used to indicate that caching was disabled + CacheDisabled = 0, + /// Used to indicate that the cache lookup resulted in no matches + CacheMiss = 1, + /// used to indicate that the associated artifact was a result of a previous execution + CacheHit = 2, + /// used to indicate that the resultant artifact was added to the cache + CachePopulated = 3, + /// Used to indicate that cache lookup failed because of an error + CacheLookupFailure = 4, + /// Used to indicate that cache lookup failed because of an error + CachePutFailure = 5, + /// Used to indicate the cache lookup was skipped + CacheSkipped = 6, + /// Used to indicate that the cache was evicted + CacheEvicted = 7, +} +impl CatalogCacheStatus { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + CatalogCacheStatus::CacheDisabled => "CACHE_DISABLED", + CatalogCacheStatus::CacheMiss => "CACHE_MISS", + CatalogCacheStatus::CacheHit => "CACHE_HIT", + CatalogCacheStatus::CachePopulated => "CACHE_POPULATED", + CatalogCacheStatus::CacheLookupFailure => "CACHE_LOOKUP_FAILURE", + CatalogCacheStatus::CachePutFailure => "CACHE_PUT_FAILURE", + CatalogCacheStatus::CacheSkipped => "CACHE_SKIPPED", + CatalogCacheStatus::CacheEvicted => "CACHE_EVICTED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CACHE_DISABLED" => Some(Self::CacheDisabled), + "CACHE_MISS" => Some(Self::CacheMiss), + "CACHE_HIT" => Some(Self::CacheHit), + "CACHE_POPULATED" => Some(Self::CachePopulated), + "CACHE_LOOKUP_FAILURE" => Some(Self::CacheLookupFailure), + "CACHE_PUT_FAILURE" => Some(Self::CachePutFailure), + "CACHE_SKIPPED" => Some(Self::CacheSkipped), + "CACHE_EVICTED" => Some(Self::CacheEvicted), + _ => None, + } + } +} +/// Describes a set of tasks to execute and how the final outputs are produced. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicJobSpec { + /// A collection of nodes to execute. + #[prost(message, repeated, tag="1")] + pub nodes: ::prost::alloc::vec::Vec, + /// An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this + /// criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number + /// becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < + /// min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not + /// specified, is the count of nodes repeated field. + #[prost(int64, tag="2")] + pub min_successes: i64, + /// Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids + /// in bindings should have the generated id for the subtask. + #[prost(message, repeated, tag="3")] + pub outputs: ::prost::alloc::vec::Vec, + /// \[Optional\] A complete list of task specs referenced in nodes. + #[prost(message, repeated, tag="4")] + pub tasks: ::prost::alloc::vec::Vec, + /// \[Optional\] A complete list of task specs referenced in nodes. + #[prost(message, repeated, tag="5")] + pub subworkflows: ::prost::alloc::vec::Vec, +} +/// Error message to propagate detailed errors from container executions to the execution +/// engine. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ContainerError { + /// A simplified code for errors, so that we can provide a glossary of all possible errors. + #[prost(string, tag="1")] + pub code: ::prost::alloc::string::String, + /// A detailed error message. + #[prost(string, tag="2")] + pub message: ::prost::alloc::string::String, + /// An abstract error kind for this error. Defaults to Non_Recoverable if not specified. + #[prost(enumeration="container_error::Kind", tag="3")] + pub kind: i32, + /// Defines the origin of the error (system, user, unknown). + #[prost(enumeration="execution_error::ErrorKind", tag="4")] + pub origin: i32, +} +/// Nested message and enum types in `ContainerError`. +pub mod container_error { + /// Defines a generic error type that dictates the behavior of the retry strategy. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Kind { + NonRecoverable = 0, + Recoverable = 1, + } + impl Kind { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Kind::NonRecoverable => "NON_RECOVERABLE", + Kind::Recoverable => "RECOVERABLE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "NON_RECOVERABLE" => Some(Self::NonRecoverable), + "RECOVERABLE" => Some(Self::Recoverable), + _ => None, + } + } + } +} +/// Defines the errors.pb file format the container can produce to communicate +/// failure reasons to the execution engine. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ErrorDocument { + /// The error raised during execution. + #[prost(message, optional, tag="1")] + pub error: ::core::option::Option, +} +/// Defines an enclosed package of workflow and tasks it references. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowClosure { + /// required. Workflow template. + #[prost(message, optional, tag="1")] + pub workflow: ::core::option::Option, + /// optional. A collection of tasks referenced by the workflow. Only needed if the workflow + /// references tasks. + #[prost(message, repeated, tag="2")] + pub tasks: ::prost::alloc::vec::Vec, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs new file mode 100644 index 0000000000..a9f4b224ae --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.event.rs @@ -0,0 +1,461 @@ +// @generated +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowExecutionEvent { + /// Workflow execution id + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, + /// the id of the originator (Propeller) of the event + #[prost(string, tag="2")] + pub producer_id: ::prost::alloc::string::String, + #[prost(enumeration="super::core::workflow_execution::Phase", tag="3")] + pub phase: i32, + /// This timestamp represents when the original event occurred, it is generated + /// by the executor of the workflow. + #[prost(message, optional, tag="4")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + #[prost(oneof="workflow_execution_event::OutputResult", tags="5, 6, 7")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `WorkflowExecutionEvent`. +pub mod workflow_execution_event { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// URL to the output of the execution, it encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="5")] + OutputUri(::prost::alloc::string::String), + /// Error information for the execution + #[prost(message, tag="6")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this workflow execution. + #[prost(message, tag="7")] + OutputData(super::super::core::LiteralMap), + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct NodeExecutionEvent { + /// Unique identifier for this node execution + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// the id of the originator (Propeller) of the event + #[prost(string, tag="2")] + pub producer_id: ::prost::alloc::string::String, + #[prost(enumeration="super::core::node_execution::Phase", tag="3")] + pub phase: i32, + /// This timestamp represents when the original event occurred, it is generated + /// by the executor of the node. + #[prost(message, optional, tag="4")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// \[To be deprecated\] Specifies which task (if any) launched this node. + #[prost(message, optional, tag="9")] + pub parent_task_metadata: ::core::option::Option, + /// Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. + #[prost(message, optional, tag="10")] + pub parent_node_metadata: ::core::option::Option, + /// Retry group to indicate grouping of nodes by retries + #[prost(string, tag="11")] + pub retry_group: ::prost::alloc::string::String, + /// Identifier of the node in the original workflow/graph + /// This maps to value of WorkflowTemplate.nodes\[X\].id + #[prost(string, tag="12")] + pub spec_node_id: ::prost::alloc::string::String, + /// Friendly readable name for the node + #[prost(string, tag="13")] + pub node_name: ::prost::alloc::string::String, + #[prost(int32, tag="16")] + pub event_version: i32, + /// Whether this node launched a subworkflow. + #[prost(bool, tag="17")] + pub is_parent: bool, + /// Whether this node yielded a dynamic workflow. + #[prost(bool, tag="18")] + pub is_dynamic: bool, + /// String location uniquely identifying where the deck HTML file is + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="19")] + pub deck_uri: ::prost::alloc::string::String, + /// This timestamp represents the instant when the event was reported by the executing framework. For example, + /// when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when + /// literal inputs are initially copied. The event however will not be sent until after the copy completes. + /// Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. + #[prost(message, optional, tag="21")] + pub reported_at: ::core::option::Option<::prost_types::Timestamp>, + /// Indicates if this node is an ArrayNode. + #[prost(bool, tag="22")] + pub is_array: bool, + #[prost(oneof="node_execution_event::InputValue", tags="5, 20")] + pub input_value: ::core::option::Option, + #[prost(oneof="node_execution_event::OutputResult", tags="6, 7, 15")] + pub output_result: ::core::option::Option, + /// Additional metadata to do with this event's node target based + /// on the node type + #[prost(oneof="node_execution_event::TargetMetadata", tags="8, 14")] + pub target_metadata: ::core::option::Option, +} +/// Nested message and enum types in `NodeExecutionEvent`. +pub mod node_execution_event { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InputValue { + #[prost(string, tag="5")] + InputUri(::prost::alloc::string::String), + /// Raw input data consumed by this node execution. + #[prost(message, tag="20")] + InputData(super::super::core::LiteralMap), + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// URL to the output of the execution, it encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="6")] + OutputUri(::prost::alloc::string::String), + /// Error information for the execution + #[prost(message, tag="7")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this node execution. + #[prost(message, tag="15")] + OutputData(super::super::core::LiteralMap), + } + /// Additional metadata to do with this event's node target based + /// on the node type + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum TargetMetadata { + #[prost(message, tag="8")] + WorkflowNodeMetadata(super::WorkflowNodeMetadata), + #[prost(message, tag="14")] + TaskNodeMetadata(super::TaskNodeMetadata), + } +} +/// For Workflow Nodes we need to send information about the workflow that's launched +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkflowNodeMetadata { + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskNodeMetadata { + /// Captures the status of caching for this execution. + #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] + pub cache_status: i32, + /// This structure carries the catalog artifact information + #[prost(message, optional, tag="2")] + pub catalog_key: ::core::option::Option, + /// Captures the status of cache reservations for this execution. + #[prost(enumeration="super::core::catalog_reservation::Status", tag="3")] + pub reservation_status: i32, + /// The latest checkpoint location + #[prost(string, tag="4")] + pub checkpoint_uri: ::prost::alloc::string::String, + /// In the case this task launched a dynamic workflow we capture its structure here. + #[prost(message, optional, tag="16")] + pub dynamic_workflow: ::core::option::Option, +} +/// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DynamicWorkflowNodeMetadata { + /// id represents the unique identifier of the workflow. + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, + /// Represents the compiled representation of the embedded dynamic workflow. + #[prost(message, optional, tag="2")] + pub compiled_workflow: ::core::option::Option, + /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is + /// required to correctly recover partially completed executions where the workflow has already been compiled. + #[prost(string, tag="3")] + pub dynamic_job_spec_uri: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParentTaskExecutionMetadata { + #[prost(message, optional, tag="1")] + pub id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ParentNodeExecutionMetadata { + /// Unique identifier of the parent node id within the execution + /// This is value of core.NodeExecutionIdentifier.node_id of the parent node + #[prost(string, tag="1")] + pub node_id: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct EventReason { + /// An explanation for this event + #[prost(string, tag="1")] + pub reason: ::prost::alloc::string::String, + /// The time this reason occurred + #[prost(message, optional, tag="2")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionEvent { + /// ID of the task. In combination with the retryAttempt this will indicate + /// the task execution uniquely for a given parent node execution. + #[prost(message, optional, tag="1")] + pub task_id: ::core::option::Option, + /// A task execution is always kicked off by a node execution, the event consumer + /// will use the parent_id to relate the task to it's parent node execution + #[prost(message, optional, tag="2")] + pub parent_node_execution_id: ::core::option::Option, + /// retry attempt number for this task, ie., 2 for the second attempt + #[prost(uint32, tag="3")] + pub retry_attempt: u32, + /// Phase associated with the event + #[prost(enumeration="super::core::task_execution::Phase", tag="4")] + pub phase: i32, + /// id of the process that sent this event, mainly for trace debugging + #[prost(string, tag="5")] + pub producer_id: ::prost::alloc::string::String, + /// log information for the task execution + #[prost(message, repeated, tag="6")] + pub logs: ::prost::alloc::vec::Vec, + /// This timestamp represents when the original event occurred, it is generated + /// by the executor of the task. + #[prost(message, optional, tag="7")] + pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, + /// Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. + #[prost(message, optional, tag="11")] + pub custom_info: ::core::option::Option<::prost_types::Struct>, + /// Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) + /// that should be recorded regardless of the lack of phase change. + /// The version field should be incremented when metadata changes across the duration of an individual phase. + #[prost(uint32, tag="12")] + pub phase_version: u32, + /// An optional explanation for the phase transition. + /// Deprecated: Use reasons instead. + #[deprecated] + #[prost(string, tag="13")] + pub reason: ::prost::alloc::string::String, + /// An optional list of explanations for the phase transition. + #[prost(message, repeated, tag="21")] + pub reasons: ::prost::alloc::vec::Vec, + /// A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin + /// this type will be identical, but not all task executions necessarily use pre-registered definitions and this + /// type is useful to render the task in the UI, filter task executions, etc. + #[prost(string, tag="14")] + pub task_type: ::prost::alloc::string::String, + /// Metadata around how a task was executed. + #[prost(message, optional, tag="16")] + pub metadata: ::core::option::Option, + /// The event version is used to indicate versioned changes in how data is reported using this + /// proto message. For example, event_verison > 0 means that maps tasks report logs using the + /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog + /// in this message. + #[prost(int32, tag="18")] + pub event_version: i32, + /// This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s + /// pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, + /// but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps + /// facilitates a more accurate portrayal of the evaluation time-series. + #[prost(message, optional, tag="20")] + pub reported_at: ::core::option::Option<::prost_types::Timestamp>, + #[prost(oneof="task_execution_event::InputValue", tags="8, 19")] + pub input_value: ::core::option::Option, + #[prost(oneof="task_execution_event::OutputResult", tags="9, 10, 17")] + pub output_result: ::core::option::Option, +} +/// Nested message and enum types in `TaskExecutionEvent`. +pub mod task_execution_event { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum InputValue { + /// URI of the input file, it encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="8")] + InputUri(::prost::alloc::string::String), + /// Raw input data consumed by this task execution. + #[prost(message, tag="19")] + InputData(super::super::core::LiteralMap), + } + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum OutputResult { + /// URI to the output of the execution, it will be in a format that encodes all the information + /// including Cloud source provider. ie., s3://... + #[prost(string, tag="9")] + OutputUri(::prost::alloc::string::String), + /// Error information for the execution + #[prost(message, tag="10")] + Error(super::super::core::ExecutionError), + /// Raw output data produced by this task execution. + #[prost(message, tag="17")] + OutputData(super::super::core::LiteralMap), + } +} +/// This message contains metadata about external resources produced or used by a specific task execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ExternalResourceInfo { + /// Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. + #[prost(string, tag="1")] + pub external_id: ::prost::alloc::string::String, + /// A unique index for the external resource with respect to all external resources for this task. Although the + /// identifier may change between task reporting events or retries, this will remain the same to enable aggregating + /// information from multiple reports. + #[prost(uint32, tag="2")] + pub index: u32, + /// Retry attempt number for this external resource, ie., 2 for the second attempt + #[prost(uint32, tag="3")] + pub retry_attempt: u32, + /// Phase associated with the external resource + #[prost(enumeration="super::core::task_execution::Phase", tag="4")] + pub phase: i32, + /// Captures the status of caching for this external resource execution. + #[prost(enumeration="super::core::CatalogCacheStatus", tag="5")] + pub cache_status: i32, + /// log information for the external resource execution + #[prost(message, repeated, tag="6")] + pub logs: ::prost::alloc::vec::Vec, +} +/// This message holds task execution metadata specific to resource allocation used to manage concurrent +/// executions for a project namespace. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ResourcePoolInfo { + /// Unique resource ID used to identify this execution when allocating a token. + #[prost(string, tag="1")] + pub allocation_token: ::prost::alloc::string::String, + /// Namespace under which this task execution requested an allocation token. + #[prost(string, tag="2")] + pub namespace: ::prost::alloc::string::String, +} +/// Holds metadata around how a task was executed. +/// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, +/// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. +/// Metadata is a container for these attributes across the task execution lifecycle. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskExecutionMetadata { + /// Unique, generated name for this task execution used by the backend. + #[prost(string, tag="1")] + pub generated_name: ::prost::alloc::string::String, + /// Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. + #[prost(message, repeated, tag="2")] + pub external_resources: ::prost::alloc::vec::Vec, + /// Includes additional data on concurrent resource management used during execution.. + /// This is a repeated field because a plugin can request multiple resource allocations during execution. + #[prost(message, repeated, tag="3")] + pub resource_pool_info: ::prost::alloc::vec::Vec, + /// The identifier of the plugin used to execute this task. + #[prost(string, tag="4")] + pub plugin_identifier: ::prost::alloc::string::String, + #[prost(enumeration="task_execution_metadata::InstanceClass", tag="16")] + pub instance_class: i32, +} +/// Nested message and enum types in `TaskExecutionMetadata`. +pub mod task_execution_metadata { + /// Includes the broad category of machine used for this specific task execution. + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum InstanceClass { + /// The default instance class configured for the flyte application platform. + Default = 0, + /// The instance class configured for interruptible tasks. + Interruptible = 1, + } + impl InstanceClass { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + InstanceClass::Default => "DEFAULT", + InstanceClass::Interruptible => "INTERRUPTIBLE", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "DEFAULT" => Some(Self::Default), + "INTERRUPTIBLE" => Some(Self::Interruptible), + _ => None, + } + } + } +} +/// This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional +/// information that downstream consumers may find useful. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CloudEventWorkflowExecution { + #[prost(message, optional, tag="1")] + pub raw_event: ::core::option::Option, + #[prost(message, optional, tag="2")] + pub output_interface: ::core::option::Option, + /// The following are ExecutionMetadata fields + /// We can't have the ExecutionMetadata object directly because of import cycle + #[prost(message, repeated, tag="3")] + pub artifact_ids: ::prost::alloc::vec::Vec, + #[prost(message, optional, tag="4")] + pub reference_execution: ::core::option::Option, + #[prost(string, tag="5")] + pub principal: ::prost::alloc::string::String, + /// The ID of the LP that generated the execution that generated the Artifact. + /// Here for provenance information. + /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now. + #[prost(message, optional, tag="6")] + pub launch_plan_id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CloudEventNodeExecution { + #[prost(message, optional, tag="1")] + pub raw_event: ::core::option::Option, + /// The relevant task execution if applicable + #[prost(message, optional, tag="2")] + pub task_exec_id: ::core::option::Option, + /// The typed interface for the task that produced the event. + #[prost(message, optional, tag="3")] + pub output_interface: ::core::option::Option, + /// The following are ExecutionMetadata fields + /// We can't have the ExecutionMetadata object directly because of import cycle + #[prost(message, repeated, tag="4")] + pub artifact_ids: ::prost::alloc::vec::Vec, + #[prost(string, tag="5")] + pub principal: ::prost::alloc::string::String, + /// The ID of the LP that generated the execution that generated the Artifact. + /// Here for provenance information. + /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now. + #[prost(message, optional, tag="6")] + pub launch_plan_id: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CloudEventTaskExecution { + #[prost(message, optional, tag="1")] + pub raw_event: ::core::option::Option, +} +/// This event is to be sent by Admin after it creates an execution. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CloudEventExecutionStart { + /// The execution created. + #[prost(message, optional, tag="1")] + pub execution_id: ::core::option::Option, + /// The launch plan used. + #[prost(message, optional, tag="2")] + pub launch_plan_id: ::core::option::Option, + #[prost(message, optional, tag="3")] + pub workflow_id: ::core::option::Option, + /// Artifact inputs to the workflow execution for which we have the full Artifact ID. These are likely the result of artifact queries that are run. + #[prost(message, repeated, tag="4")] + pub artifact_ids: ::prost::alloc::vec::Vec, + /// Artifact inputs to the workflow execution for which we only have the tracking bit that's installed into the Literal's metadata by the Artifact service. + #[prost(string, repeated, tag="5")] + pub artifact_trackers: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(string, tag="6")] + pub principal: ::prost::alloc::string::String, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs new file mode 100644 index 0000000000..96d46653da --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs @@ -0,0 +1,205 @@ +// @generated +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RunPolicy { + /// Defines the policy to kill pods after the job completes. Default to None. + #[prost(enumeration="CleanPodPolicy", tag="1")] + pub clean_pod_policy: i32, + /// TTL to clean up jobs. Default to infinite. + #[prost(int32, tag="2")] + pub ttl_seconds_after_finished: i32, + /// Specifies the duration in seconds relative to the startTime that the job may be active + /// before the system tries to terminate it; value must be positive integer. + #[prost(int32, tag="3")] + pub active_deadline_seconds: i32, + /// Number of retries before marking this job failed. + #[prost(int32, tag="4")] + pub backoff_limit: i32, +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum RestartPolicy { + Never = 0, + OnFailure = 1, + Always = 2, +} +impl RestartPolicy { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + RestartPolicy::Never => "RESTART_POLICY_NEVER", + RestartPolicy::OnFailure => "RESTART_POLICY_ON_FAILURE", + RestartPolicy::Always => "RESTART_POLICY_ALWAYS", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RESTART_POLICY_NEVER" => Some(Self::Never), + "RESTART_POLICY_ON_FAILURE" => Some(Self::OnFailure), + "RESTART_POLICY_ALWAYS" => Some(Self::Always), + _ => None, + } + } +} +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum CleanPodPolicy { + CleanpodPolicyNone = 0, + CleanpodPolicyRunning = 1, + CleanpodPolicyAll = 2, +} +impl CleanPodPolicy { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + CleanPodPolicy::CleanpodPolicyNone => "CLEANPOD_POLICY_NONE", + CleanPodPolicy::CleanpodPolicyRunning => "CLEANPOD_POLICY_RUNNING", + CleanPodPolicy::CleanpodPolicyAll => "CLEANPOD_POLICY_ALL", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "CLEANPOD_POLICY_NONE" => Some(Self::CleanpodPolicyNone), + "CLEANPOD_POLICY_RUNNING" => Some(Self::CleanpodPolicyRunning), + "CLEANPOD_POLICY_ALL" => Some(Self::CleanpodPolicyAll), + _ => None, + } + } +} +/// Proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedMpiTrainingTask { + /// Worker replicas spec + #[prost(message, optional, tag="1")] + pub worker_replicas: ::core::option::Option, + /// Master replicas spec + #[prost(message, optional, tag="2")] + pub launcher_replicas: ::core::option::Option, + /// RunPolicy encapsulates various runtime policies of the distributed training + /// job, for example how to clean up resources and how long the job can stay + /// active. + #[prost(message, optional, tag="3")] + pub run_policy: ::core::option::Option, + /// Number of slots per worker + #[prost(int32, tag="4")] + pub slots: i32, +} +/// Replica specification for distributed MPI training +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedMpiTrainingReplicaSpec { + /// Number of replicas + #[prost(int32, tag="1")] + pub replicas: i32, + /// Image used for the replica group + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources required for the replica group + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, + /// Restart policy determines whether pods will be restarted when they exit + #[prost(enumeration="RestartPolicy", tag="4")] + pub restart_policy: i32, + /// MPI sometimes requires different command set for different replica groups + #[prost(string, repeated, tag="5")] + pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +/// Custom proto for torch elastic config for distributed training using +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ElasticConfig { + #[prost(string, tag="1")] + pub rdzv_backend: ::prost::alloc::string::String, + #[prost(int32, tag="2")] + pub min_replicas: i32, + #[prost(int32, tag="3")] + pub max_replicas: i32, + #[prost(int32, tag="4")] + pub nproc_per_node: i32, + #[prost(int32, tag="5")] + pub max_restarts: i32, +} +/// Proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedPyTorchTrainingTask { + /// Worker replicas spec + #[prost(message, optional, tag="1")] + pub worker_replicas: ::core::option::Option, + /// Master replicas spec, master replicas can only have 1 replica + #[prost(message, optional, tag="2")] + pub master_replicas: ::core::option::Option, + /// RunPolicy encapsulates various runtime policies of the distributed training + /// job, for example how to clean up resources and how long the job can stay + /// active. + #[prost(message, optional, tag="3")] + pub run_policy: ::core::option::Option, + /// config for an elastic pytorch job + #[prost(message, optional, tag="4")] + pub elastic_config: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedPyTorchTrainingReplicaSpec { + /// Number of replicas + #[prost(int32, tag="1")] + pub replicas: i32, + /// Image used for the replica group + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources required for the replica group + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, + /// RestartPolicy determines whether pods will be restarted when they exit + #[prost(enumeration="RestartPolicy", tag="4")] + pub restart_policy: i32, +} +/// Proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedTensorflowTrainingTask { + /// Worker replicas spec + #[prost(message, optional, tag="1")] + pub worker_replicas: ::core::option::Option, + /// Parameter server replicas spec + #[prost(message, optional, tag="2")] + pub ps_replicas: ::core::option::Option, + /// Chief replicas spec + #[prost(message, optional, tag="3")] + pub chief_replicas: ::core::option::Option, + /// RunPolicy encapsulates various runtime policies of the distributed training + /// job, for example how to clean up resources and how long the job can stay + /// active. + #[prost(message, optional, tag="4")] + pub run_policy: ::core::option::Option, + /// Evaluator replicas spec + #[prost(message, optional, tag="5")] + pub evaluator_replicas: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedTensorflowTrainingReplicaSpec { + /// Number of replicas + #[prost(int32, tag="1")] + pub replicas: i32, + /// Image used for the replica group + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources required for the replica group + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, + /// RestartPolicy Determines whether pods will be restarted when they exit + #[prost(enumeration="RestartPolicy", tag="4")] + pub restart_policy: i32, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.rs new file mode 100644 index 0000000000..bfed40f1a8 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.plugins.rs @@ -0,0 +1,327 @@ +// @generated +/// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component +/// will be executed concurrently. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ArrayJob { + /// Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an + /// optimistic restriction and that, due to network partitioning or other failures, the actual number of currently + /// running instances might be more. This has to be a positive number if assigned. Default value is size. + #[prost(int64, tag="1")] + pub parallelism: i64, + /// Defines the number of instances to launch at most. This number should match the size of the input if the job + /// requires processing of all input data. This has to be a positive number. + /// In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. + #[prost(int64, tag="2")] + pub size: i64, + #[prost(oneof="array_job::SuccessCriteria", tags="3, 4")] + pub success_criteria: ::core::option::Option, +} +/// Nested message and enum types in `ArrayJob`. +pub mod array_job { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum SuccessCriteria { + /// An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, + /// the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if + /// assigned. Default value is size (if specified). + #[prost(int64, tag="3")] + MinSuccesses(i64), + /// If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array + /// job can be marked successful. + #[prost(float, tag="4")] + MinSuccessRatio(f32), + } +} +/// Custom Proto for Dask Plugin. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DaskJob { + /// Spec for the scheduler pod. + #[prost(message, optional, tag="1")] + pub scheduler: ::core::option::Option, + /// Spec of the default worker group. + #[prost(message, optional, tag="2")] + pub workers: ::core::option::Option, +} +/// Specification for the scheduler pod. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DaskScheduler { + /// Optional image to use. If unset, will use the default image. + #[prost(string, tag="1")] + pub image: ::prost::alloc::string::String, + /// Resources assigned to the scheduler pod. + #[prost(message, optional, tag="2")] + pub resources: ::core::option::Option, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DaskWorkerGroup { + /// Number of workers in the group. + #[prost(uint32, tag="1")] + pub number_of_workers: u32, + /// Optional image to use for the pods of the worker group. If unset, will use the default image. + #[prost(string, tag="2")] + pub image: ::prost::alloc::string::String, + /// Resources assigned to the all pods of the worker group. + /// As per + /// it is advised to only set limits. If requests are not explicitly set, the plugin will make + /// sure to set requests==limits. + /// The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. + #[prost(message, optional, tag="3")] + pub resources: ::core::option::Option, +} +/// MPI operator proposal +/// Custom proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedMpiTrainingTask { + /// number of worker spawned in the cluster for this job + #[prost(int32, tag="1")] + pub num_workers: i32, + /// number of launcher replicas spawned in the cluster for this job + /// The launcher pod invokes mpirun and communicates with worker pods through MPI. + #[prost(int32, tag="2")] + pub num_launcher_replicas: i32, + /// number of slots per worker used in hostfile. + /// The available slots (GPUs) in each pod. + #[prost(int32, tag="3")] + pub slots: i32, +} +/// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field +/// of a Presto task's TaskTemplate +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PrestoQuery { + #[prost(string, tag="1")] + pub routing_group: ::prost::alloc::string::String, + #[prost(string, tag="2")] + pub catalog: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub schema: ::prost::alloc::string::String, + #[prost(string, tag="4")] + pub statement: ::prost::alloc::string::String, +} +/// Custom proto for torch elastic config for distributed training using +/// +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct ElasticConfig { + #[prost(string, tag="1")] + pub rdzv_backend: ::prost::alloc::string::String, + #[prost(int32, tag="2")] + pub min_replicas: i32, + #[prost(int32, tag="3")] + pub max_replicas: i32, + #[prost(int32, tag="4")] + pub nproc_per_node: i32, + #[prost(int32, tag="5")] + pub max_restarts: i32, +} +/// Custom proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedPyTorchTrainingTask { + /// number of worker replicas spawned in the cluster for this job + #[prost(int32, tag="1")] + pub workers: i32, + /// config for an elastic pytorch job + /// + #[prost(message, optional, tag="2")] + pub elastic_config: ::core::option::Option, +} +/// Defines a query to execute on a hive cluster. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HiveQuery { + #[prost(string, tag="1")] + pub query: ::prost::alloc::string::String, + #[prost(uint32, tag="2")] + pub timeout_sec: u32, + #[prost(uint32, tag="3")] + pub retry_count: u32, +} +/// Defines a collection of hive queries. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HiveQueryCollection { + #[prost(message, repeated, tag="2")] + pub queries: ::prost::alloc::vec::Vec, +} +/// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field +/// of a hive task's TaskTemplate +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct QuboleHiveJob { + #[prost(string, tag="1")] + pub cluster_label: ::prost::alloc::string::String, + #[deprecated] + #[prost(message, optional, tag="2")] + pub query_collection: ::core::option::Option, + #[prost(string, repeated, tag="3")] + pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(message, optional, tag="4")] + pub query: ::core::option::Option, +} +/// RayJobSpec defines the desired state of RayJob +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RayJob { + /// RayClusterSpec is the cluster template to run the job + #[prost(message, optional, tag="1")] + pub ray_cluster: ::core::option::Option, + /// runtime_env is base64 encoded. + /// Ray runtime environments: + #[prost(string, tag="2")] + pub runtime_env: ::prost::alloc::string::String, + /// shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. + #[prost(bool, tag="3")] + pub shutdown_after_job_finishes: bool, + /// ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. + #[prost(int32, tag="4")] + pub ttl_seconds_after_finished: i32, +} +/// Define Ray cluster defines the desired state of RayCluster +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct RayCluster { + /// HeadGroupSpecs are the spec for the head pod + #[prost(message, optional, tag="1")] + pub head_group_spec: ::core::option::Option, + /// WorkerGroupSpecs are the specs for the worker pods + #[prost(message, repeated, tag="2")] + pub worker_group_spec: ::prost::alloc::vec::Vec, + /// Whether to enable autoscaling. + #[prost(bool, tag="3")] + pub enable_autoscaling: bool, +} +/// HeadGroupSpec are the spec for the head pod +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct HeadGroupSpec { + /// Optional. RayStartParams are the params of the start command: address, object-store-memory. + /// Refer to + #[prost(map="string, string", tag="1")] + pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +/// WorkerGroupSpec are the specs for the worker pods +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct WorkerGroupSpec { + /// Required. RayCluster can have multiple worker groups, and it distinguishes them by name + #[prost(string, tag="1")] + pub group_name: ::prost::alloc::string::String, + /// Required. Desired replicas of the worker group. Defaults to 1. + #[prost(int32, tag="2")] + pub replicas: i32, + /// Optional. Min replicas of the worker group. MinReplicas defaults to 1. + #[prost(int32, tag="3")] + pub min_replicas: i32, + /// Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 + #[prost(int32, tag="4")] + pub max_replicas: i32, + /// Optional. RayStartParams are the params of the start command: address, object-store-memory. + /// Refer to + #[prost(map="string, string", tag="5")] + pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SparkApplication { +} +/// Nested message and enum types in `SparkApplication`. +pub mod spark_application { + #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] + #[repr(i32)] + pub enum Type { + Python = 0, + Java = 1, + Scala = 2, + R = 3, + } + impl Type { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + Type::Python => "PYTHON", + Type::Java => "JAVA", + Type::Scala => "SCALA", + Type::R => "R", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "PYTHON" => Some(Self::Python), + "JAVA" => Some(Self::Java), + "SCALA" => Some(Self::Scala), + "R" => Some(Self::R), + _ => None, + } + } + } +} +/// Custom Proto for Spark Plugin. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SparkJob { + #[prost(enumeration="spark_application::Type", tag="1")] + pub application_type: i32, + #[prost(string, tag="2")] + pub main_application_file: ::prost::alloc::string::String, + #[prost(string, tag="3")] + pub main_class: ::prost::alloc::string::String, + #[prost(map="string, string", tag="4")] + pub spark_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(map="string, string", tag="5")] + pub hadoop_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Executor path for Python jobs. + #[prost(string, tag="6")] + pub executor_path: ::prost::alloc::string::String, + /// Databricks job configuration. + /// Config structure can be found here. + #[prost(message, optional, tag="7")] + pub databricks_conf: ::core::option::Option<::prost_types::Struct>, + /// Databricks access token. + /// This token can be set in either flytepropeller or flytekit. + #[prost(string, tag="8")] + pub databricks_token: ::prost::alloc::string::String, + /// Domain name of your deployment. Use the form .cloud.databricks.com. + /// This instance name can be set in either flytepropeller or flytekit. + #[prost(string, tag="9")] + pub databricks_instance: ::prost::alloc::string::String, +} +/// Custom proto for plugin that enables distributed training using +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct DistributedTensorflowTrainingTask { + /// number of worker replicas spawned in the cluster for this job + #[prost(int32, tag="1")] + pub workers: i32, + /// PS -> Parameter server + /// number of ps replicas spawned in the cluster for this job + #[prost(int32, tag="2")] + pub ps_replicas: i32, + /// number of chief replicas spawned in the cluster for this job + #[prost(int32, tag="3")] + pub chief_replicas: i32, + /// number of evaluator replicas spawned in the cluster for this job + #[prost(int32, tag="4")] + pub evaluator_replicas: i32, +} +/// Represents an Execution that was launched and could be waited on. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct Waitable { + #[prost(message, optional, tag="1")] + pub wf_exec_id: ::core::option::Option, + #[prost(enumeration="super::core::workflow_execution::Phase", tag="2")] + pub phase: i32, + #[prost(string, tag="3")] + pub workflow_id: ::prost::alloc::string::String, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.service.rs b/flyteidl/gen/pb_rust/flyteidl.service.rs new file mode 100644 index 0000000000..c427170333 --- /dev/null +++ b/flyteidl/gen/pb_rust/flyteidl.service.rs @@ -0,0 +1,400 @@ +// @generated +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2MetadataRequest { +} +/// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata +/// as defined in +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct OAuth2MetadataResponse { + /// Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external + /// issuer. + #[prost(string, tag="1")] + pub issuer: ::prost::alloc::string::String, + /// URL of the authorization server's authorization endpoint \[RFC6749\]. This is REQUIRED unless no grant types are + /// supported that use the authorization endpoint. + #[prost(string, tag="2")] + pub authorization_endpoint: ::prost::alloc::string::String, + /// URL of the authorization server's token endpoint \[RFC6749\]. + #[prost(string, tag="3")] + pub token_endpoint: ::prost::alloc::string::String, + /// Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. + #[prost(string, repeated, tag="4")] + pub response_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// JSON array containing a list of the OAuth 2.0 \[RFC6749\] scope values that this authorization server supports. + #[prost(string, repeated, tag="5")] + pub scopes_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// JSON array containing a list of client authentication methods supported by this token endpoint. + #[prost(string, repeated, tag="6")] + pub token_endpoint_auth_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// URL of the authorization server's JWK Set \[JWK\] document. The referenced document contains the signing key(s) the + /// client uses to validate signatures from the authorization server. + #[prost(string, tag="7")] + pub jwks_uri: ::prost::alloc::string::String, + /// JSON array containing a list of Proof Key for Code Exchange (PKCE) \[RFC7636\] code challenge methods supported by + /// this authorization server. + #[prost(string, repeated, tag="8")] + pub code_challenge_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. + #[prost(string, repeated, tag="9")] + pub grant_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of \[RFC8628\] + #[prost(string, tag="10")] + pub device_authorization_endpoint: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PublicClientAuthConfigRequest { +} +/// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PublicClientAuthConfigResponse { + /// client_id to use when initiating OAuth2 authorization requests. + #[prost(string, tag="1")] + pub client_id: ::prost::alloc::string::String, + /// redirect uri to use when initiating OAuth2 authorization requests. + #[prost(string, tag="2")] + pub redirect_uri: ::prost::alloc::string::String, + /// scopes to request when initiating OAuth2 authorization requests. + #[prost(string, repeated, tag="3")] + pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the + /// default http `Authorization` header. + #[prost(string, tag="4")] + pub authorization_metadata_key: ::prost::alloc::string::String, + /// ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used + /// to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between + /// SSL or no SSL connections. + #[prost(string, tag="5")] + pub service_http_endpoint: ::prost::alloc::string::String, + /// audience to use when initiating OAuth2 authorization requests. + #[prost(string, tag="6")] + pub audience: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUploadLocationResponse { + /// SignedUrl specifies the url to use to upload content to (e.g. ) + #[prost(string, tag="1")] + pub signed_url: ::prost::alloc::string::String, + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="2")] + pub native_url: ::prost::alloc::string::String, + /// ExpiresAt defines when will the signed URL expires. + #[prost(message, optional, tag="3")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// CreateUploadLocationRequest specified request for the CreateUploadLocation API. +/// The implementation in data proxy service will create the s3 location with some server side configured prefixes, +/// and then: +/// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR +/// - project/domain/filename_root (if present)/filename (if present). +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateUploadLocationRequest { + /// Project to create the upload location for + /// +required + #[prost(string, tag="1")] + pub project: ::prost::alloc::string::String, + /// Domain to create the upload location for. + /// +required + #[prost(string, tag="2")] + pub domain: ::prost::alloc::string::String, + /// Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. + /// +optional. By default, the service will generate a consistent name based on the provided parameters. + #[prost(string, tag="3")] + pub filename: ::prost::alloc::string::String, + /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + /// exceeds the platform allowed max. + /// +optional. The default value comes from a global config. + #[prost(message, optional, tag="4")] + pub expires_in: ::core::option::Option<::prost_types::Duration>, + /// ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the + /// generated path. + /// +required + #[prost(bytes="vec", tag="5")] + pub content_md5: ::prost::alloc::vec::Vec, + /// If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included + /// this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix + /// in data proxy config. This option is useful when uploading multiple files. + /// +optional + #[prost(string, tag="6")] + pub filename_root: ::prost::alloc::string::String, +} +/// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLocationRequest { + /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) + #[prost(string, tag="1")] + pub native_url: ::prost::alloc::string::String, + /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + /// exceeds the platform allowed max. + /// +optional. The default value comes from a global config. + #[prost(message, optional, tag="2")] + pub expires_in: ::core::option::Option<::prost_types::Duration>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLocationResponse { + /// SignedUrl specifies the url to use to download content from (e.g. ) + #[prost(string, tag="1")] + pub signed_url: ::prost::alloc::string::String, + /// ExpiresAt defines when will the signed URL expires. + #[prost(message, optional, tag="2")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLinkRequest { + /// ArtifactType of the artifact requested. + #[prost(enumeration="ArtifactType", tag="1")] + pub artifact_type: i32, + /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this + /// exceeds the platform allowed max. + /// +optional. The default value comes from a global config. + #[prost(message, optional, tag="2")] + pub expires_in: ::core::option::Option<::prost_types::Duration>, + #[prost(oneof="create_download_link_request::Source", tags="3")] + pub source: ::core::option::Option, +} +/// Nested message and enum types in `CreateDownloadLinkRequest`. +pub mod create_download_link_request { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Source { + /// NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the + /// most recent attempt of the task. + #[prost(message, tag="3")] + NodeExecutionId(super::super::core::NodeExecutionIdentifier), + } +} +/// CreateDownloadLinkResponse defines the response for the generated links +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct CreateDownloadLinkResponse { + /// SignedUrl specifies the url to use to download content from (e.g. ) + #[deprecated] + #[prost(string, repeated, tag="1")] + pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// ExpiresAt defines when will the signed URL expire. + #[deprecated] + #[prost(message, optional, tag="2")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, + /// New wrapper object containing the signed urls and expiration time + #[prost(message, optional, tag="3")] + pub pre_signed_urls: ::core::option::Option, +} +/// Wrapper object since the message is shared across this and the GetDataResponse +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct PreSignedUrLs { + /// SignedUrl specifies the url to use to download content from (e.g. ) + #[prost(string, repeated, tag="1")] + pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + /// ExpiresAt defines when will the signed URL expire. + #[prost(message, optional, tag="2")] + pub expires_at: ::core::option::Option<::prost_types::Timestamp>, +} +/// General request artifact to retrieve data from a Flyte artifact url. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDataRequest { + /// A unique identifier in the form of flyte:// that uniquely, for a given Flyte + /// backend, identifies a Flyte artifact (\[i\]nput, \[o\]output, flyte \[d\]eck, etc.). + /// e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) + /// flyte://v1/proj/development/execid/n2/i (for node execution input) + /// flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) + #[prost(string, tag="1")] + pub flyte_url: ::prost::alloc::string::String, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetDataResponse { + #[prost(oneof="get_data_response::Data", tags="1, 2, 3")] + pub data: ::core::option::Option, +} +/// Nested message and enum types in `GetDataResponse`. +pub mod get_data_response { + #[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Oneof)] + pub enum Data { + /// literal map data will be returned + #[prost(message, tag="1")] + LiteralMap(super::super::core::LiteralMap), + /// Flyte deck html will be returned as a signed url users can download + #[prost(message, tag="2")] + PreSignedUrls(super::PreSignedUrLs), + /// Single literal will be returned. This is returned when the user/url requests a specific output or input + /// by name. See the o3 example above. + #[prost(message, tag="3")] + Literal(super::super::core::Literal), + } +} +/// ArtifactType +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum ArtifactType { + /// ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. + Undefined = 0, + /// ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan + /// finishes executing. + Deck = 1, +} +impl ArtifactType { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + ArtifactType::Undefined => "ARTIFACT_TYPE_UNDEFINED", + ArtifactType::Deck => "ARTIFACT_TYPE_DECK", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "ARTIFACT_TYPE_UNDEFINED" => Some(Self::Undefined), + "ARTIFACT_TYPE_DECK" => Some(Self::Deck), + _ => None, + } + } +} +/// Represents a request structure to create task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateRequest { + /// The inputs required to start the execution. All required inputs must be + /// included in this map. If not required and not provided, defaults apply. + /// +optional + #[prost(message, optional, tag="1")] + pub inputs: ::core::option::Option, + /// Template of the task that encapsulates all the metadata of the task. + #[prost(message, optional, tag="2")] + pub template: ::core::option::Option, + /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) + #[prost(string, tag="3")] + pub output_prefix: ::prost::alloc::string::String, +} +/// Represents a create response structure. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskCreateResponse { + #[prost(string, tag="1")] + pub job_id: ::prost::alloc::string::String, +} +/// A message used to fetch a job state from backend plugin server. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskGetRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// The unique id identifying the job. + #[prost(string, tag="2")] + pub job_id: ::prost::alloc::string::String, +} +/// Response to get an individual task state. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskGetResponse { + /// The state of the execution is used to control its visibility in the UI/CLI. + #[prost(enumeration="State", tag="1")] + pub state: i32, + /// The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a + /// Structured dataset pointing to the query result table. + /// +optional + #[prost(message, optional, tag="2")] + pub outputs: ::core::option::Option, +} +/// A message used to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskDeleteRequest { + /// A predefined yet extensible Task type identifier. + #[prost(string, tag="1")] + pub task_type: ::prost::alloc::string::String, + /// The unique id identifying the job. + #[prost(string, tag="2")] + pub job_id: ::prost::alloc::string::String, +} +/// Response to delete a task. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct TaskDeleteResponse { +} +/// The state of the execution is used to control its visibility in the UI/CLI. +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] +#[repr(i32)] +pub enum State { + RetryableFailure = 0, + PermanentFailure = 1, + Pending = 2, + Running = 3, + Succeeded = 4, +} +impl State { + /// String value of the enum field names used in the ProtoBuf definition. + /// + /// The values are not transformed in any way and thus are considered stable + /// (if the ProtoBuf definition does not change) and safe for programmatic use. + pub fn as_str_name(&self) -> &'static str { + match self { + State::RetryableFailure => "RETRYABLE_FAILURE", + State::PermanentFailure => "PERMANENT_FAILURE", + State::Pending => "PENDING", + State::Running => "RUNNING", + State::Succeeded => "SUCCEEDED", + } + } + /// Creates an enum from field names used in the ProtoBuf definition. + pub fn from_str_name(value: &str) -> ::core::option::Option { + match value { + "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), + "PERMANENT_FAILURE" => Some(Self::PermanentFailure), + "PENDING" => Some(Self::Pending), + "RUNNING" => Some(Self::Running), + "SUCCEEDED" => Some(Self::Succeeded), + _ => None, + } + } +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UserInfoRequest { +} +/// See the OpenID Connect spec at for more information. +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct UserInfoResponse { + /// Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed + /// by the Client. + #[prost(string, tag="1")] + pub subject: ::prost::alloc::string::String, + /// Full name + #[prost(string, tag="2")] + pub name: ::prost::alloc::string::String, + /// Shorthand name by which the End-User wishes to be referred to + #[prost(string, tag="3")] + pub preferred_username: ::prost::alloc::string::String, + /// Given name(s) or first name(s) + #[prost(string, tag="4")] + pub given_name: ::prost::alloc::string::String, + /// Surname(s) or last name(s) + #[prost(string, tag="5")] + pub family_name: ::prost::alloc::string::String, + /// Preferred e-mail address + #[prost(string, tag="6")] + pub email: ::prost::alloc::string::String, + /// Profile picture URL + #[prost(string, tag="7")] + pub picture: ::prost::alloc::string::String, + /// Additional claims + #[prost(message, optional, tag="8")] + pub additional_claims: ::core::option::Option<::prost_types::Struct>, +} +// @@protoc_insertion_point(module) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 3b6e0ad841..70c2b35a7e 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -11,6 +11,7 @@ import "flyteidl/core/execution.proto"; import "flyteidl/core/metrics.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/struct.proto"; // The state of the execution is used to control its visibility in the UI/CLI. enum State { From 4ab968432c266ab233eec336e1488e4681c9213b Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 13:19:02 -0800 Subject: [PATCH 28/35] lint Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 9b444bbb90..cb6f9c9997 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -23,7 +23,7 @@ import ( "github.com/flyteorg/flyte/flytestdlib/promutils" ) -type Registry map[string]map[int32]*Agent // map[taskTypeName][taskTypeVersion] => AgentDeployment +type Registry map[string]map[int32]*Agent // map[taskTypeName][taskTypeVersion] => Agent type Plugin struct { metricScope promutils.Scope @@ -151,7 +151,7 @@ func (p Plugin) ExecuteTaskSync( } err = stream.Send(inputsProto) if err != nil { - return nil, nil, err + return nil, nil, fmt.Errorf("failed to send inputsProto with error: %w", err) } } From b5c1d99c7f85764775c9924d5b98948e4d8478d0 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 16:05:49 -0800 Subject: [PATCH 29/35] task category Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 86 ++-- flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 396 +++++++++--------- .../gen/pb-go/flyteidl/service/agent.pb.go | 66 +-- .../gateway/flyteidl/service/agent.pb.gw.go | 142 +++---- .../flyteidl/service/agent.swagger.json | 42 +- flyteidl/gen/pb-js/flyteidl.d.ts | 120 +++--- flyteidl/gen/pb-js/flyteidl.js | 296 ++++++------- .../gen/pb_python/flyteidl/admin/agent_pb2.py | 92 ++-- .../pb_python/flyteidl/admin/agent_pb2.pyi | 62 +-- .../pb_python/flyteidl/service/agent_pb2.py | 16 +- flyteidl/gen/pb_rust/flyteidl.admin.rs | 24 +- flyteidl/protos/flyteidl/admin/agent.proto | 24 +- flyteidl/protos/flyteidl/service/agent.proto | 8 +- .../go/tasks/plugins/webapi/agent/client.go | 10 +- .../plugins/webapi/agent/integration_test.go | 2 +- .../go/tasks/plugins/webapi/agent/plugin.go | 28 +- .../tasks/plugins/webapi/agent/plugin_test.go | 18 +- 17 files changed, 716 insertions(+), 716 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 8452f11f31..6746b375a5 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -478,10 +478,10 @@ export class GetTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @generated from field: string task_type = 1 [deprecated = true]; * @deprecated */ - deprecatedTaskType = ""; + taskType = ""; /** * Metadata about the resource to be pass to the agent. @@ -493,9 +493,9 @@ export class GetTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 3; + * @generated from field: flyteidl.admin.TaskCategory task_category = 3; */ - taskType?: TaskType; + taskCategory?: TaskCategory; constructor(data?: PartialMessage) { super(); @@ -505,9 +505,9 @@ export class GetTaskRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "task_type", kind: "message", T: TaskType }, + { no: 3, name: "task_category", kind: "message", T: TaskCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskRequest { @@ -657,10 +657,10 @@ export class DeleteTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @generated from field: string task_type = 1 [deprecated = true]; * @deprecated */ - deprecatedTaskType = ""; + taskType = ""; /** * Metadata about the resource to be pass to the agent. @@ -672,9 +672,9 @@ export class DeleteTaskRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 3; + * @generated from field: flyteidl.admin.TaskCategory task_category = 3; */ - taskType?: TaskType; + taskCategory?: TaskCategory; constructor(data?: PartialMessage) { super(); @@ -684,9 +684,9 @@ export class DeleteTaskRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.DeleteTaskRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - { no: 3, name: "task_type", kind: "message", T: TaskType }, + { no: 3, name: "task_category", kind: "message", T: TaskCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DeleteTaskRequest { @@ -755,10 +755,10 @@ export class Agent extends Message { /** * SupportedTaskTypes are the types of the tasks that the agent can handle. * - * @generated from field: repeated string deprecated_supported_task_types = 2 [deprecated = true]; + * @generated from field: repeated string supported_task_types = 2 [deprecated = true]; * @deprecated */ - deprecatedSupportedTaskTypes: string[] = []; + supportedTaskTypes: string[] = []; /** * IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their @@ -772,11 +772,11 @@ export class Agent extends Message { isSync = false; /** - * SupportedTaskTypes are the types of the tasks that the agent can handle. + * Supported_task_categories are the categories of the tasks that the agent can handle. * - * @generated from field: repeated flyteidl.admin.TaskType supported_task_types = 4; + * @generated from field: repeated flyteidl.admin.TaskCategory supported_task_categories = 4; */ - supportedTaskTypes: TaskType[] = []; + supportedTaskCategories: TaskCategory[] = []; constructor(data?: PartialMessage) { super(); @@ -787,9 +787,9 @@ export class Agent extends Message { static readonly typeName = "flyteidl.admin.Agent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "deprecated_supported_task_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "supported_task_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "is_sync", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, - { no: 4, name: "supported_task_types", kind: "message", T: TaskType, repeated: true }, + { no: 4, name: "supported_task_categories", kind: "message", T: TaskCategory, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Agent { @@ -810,9 +810,9 @@ export class Agent extends Message { } /** - * @generated from message flyteidl.admin.TaskType + * @generated from message flyteidl.admin.TaskCategory */ -export class TaskType extends Message { +export class TaskCategory extends Message { /** * The name of the task type. * @@ -827,32 +827,32 @@ export class TaskType extends Message { */ version = 0; - constructor(data?: PartialMessage) { + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "flyteidl.admin.TaskType"; + static readonly typeName = "flyteidl.admin.TaskCategory"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "version", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); - static fromBinary(bytes: Uint8Array, options?: Partial): TaskType { - return new TaskType().fromBinary(bytes, options); + static fromBinary(bytes: Uint8Array, options?: Partial): TaskCategory { + return new TaskCategory().fromBinary(bytes, options); } - static fromJson(jsonValue: JsonValue, options?: Partial): TaskType { - return new TaskType().fromJson(jsonValue, options); + static fromJson(jsonValue: JsonValue, options?: Partial): TaskCategory { + return new TaskCategory().fromJson(jsonValue, options); } - static fromJsonString(jsonString: string, options?: Partial): TaskType { - return new TaskType().fromJsonString(jsonString, options); + static fromJsonString(jsonString: string, options?: Partial): TaskCategory { + return new TaskCategory().fromJsonString(jsonString, options); } - static equals(a: TaskType | PlainMessage | undefined, b: TaskType | PlainMessage | undefined): boolean { - return proto3.util.equals(TaskType, a, b); + static equals(a: TaskCategory | PlainMessage | undefined, b: TaskCategory | PlainMessage | undefined): boolean { + return proto3.util.equals(TaskCategory, a, b); } } @@ -1017,10 +1017,10 @@ export class GetTaskMetricsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @generated from field: string task_type = 1 [deprecated = true]; * @deprecated */ - deprecatedTaskType = ""; + taskType = ""; /** * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). @@ -1061,9 +1061,9 @@ export class GetTaskMetricsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 7; + * @generated from field: flyteidl.admin.TaskCategory task_category = 7; */ - taskType?: TaskType; + taskCategory?: TaskCategory; constructor(data?: PartialMessage) { super(); @@ -1073,13 +1073,13 @@ export class GetTaskMetricsRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskMetricsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "queries", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "start_time", kind: "message", T: Timestamp }, { no: 5, name: "end_time", kind: "message", T: Timestamp }, { no: 6, name: "step", kind: "message", T: Duration }, - { no: 7, name: "task_type", kind: "message", T: TaskType }, + { no: 7, name: "task_category", kind: "message", T: TaskCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskMetricsRequest { @@ -1149,10 +1149,10 @@ export class GetTaskLogsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: string deprecated_task_type = 1 [deprecated = true]; + * @generated from field: string task_type = 1 [deprecated = true]; * @deprecated */ - deprecatedTaskType = ""; + taskType = ""; /** * Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). @@ -1179,9 +1179,9 @@ export class GetTaskLogsRequest extends Message { /** * A predefined yet extensible Task type identifier. * - * @generated from field: flyteidl.admin.TaskType task_type = 5; + * @generated from field: flyteidl.admin.TaskCategory task_category = 5; */ - taskType?: TaskType; + taskCategory?: TaskCategory; constructor(data?: PartialMessage) { super(); @@ -1191,11 +1191,11 @@ export class GetTaskLogsRequest extends Message { static readonly runtime: typeof proto3 = proto3; static readonly typeName = "flyteidl.admin.GetTaskLogsRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "deprecated_task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 1, name: "task_type", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "resource_meta", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "lines", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 5, name: "task_type", kind: "message", T: TaskType }, + { no: 5, name: "task_category", kind: "message", T: TaskCategory }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetTaskLogsRequest { diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index b87ef50172..005319bd62 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -631,11 +631,11 @@ type GetTaskRequest struct { // A predefined yet extensible Task type identifier. // // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata about the resource to be pass to the agent. ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskCategory *TaskCategory `protobuf:"bytes,3,opt,name=task_category,json=taskCategory,proto3" json:"task_category,omitempty"` } func (x *GetTaskRequest) Reset() { @@ -671,9 +671,9 @@ func (*GetTaskRequest) Descriptor() ([]byte, []int) { } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *GetTaskRequest) GetDeprecatedTaskType() string { +func (x *GetTaskRequest) GetTaskType() string { if x != nil { - return x.DeprecatedTaskType + return x.TaskType } return "" } @@ -685,9 +685,9 @@ func (x *GetTaskRequest) GetResourceMeta() []byte { return nil } -func (x *GetTaskRequest) GetTaskType() *TaskType { +func (x *GetTaskRequest) GetTaskCategory() *TaskCategory { if x != nil { - return x.TaskType + return x.TaskCategory } return nil } @@ -847,11 +847,11 @@ type DeleteTaskRequest struct { // A predefined yet extensible Task type identifier. // // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata about the resource to be pass to the agent. ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,3,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskCategory *TaskCategory `protobuf:"bytes,3,opt,name=task_category,json=taskCategory,proto3" json:"task_category,omitempty"` } func (x *DeleteTaskRequest) Reset() { @@ -887,9 +887,9 @@ func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *DeleteTaskRequest) GetDeprecatedTaskType() string { +func (x *DeleteTaskRequest) GetTaskType() string { if x != nil { - return x.DeprecatedTaskType + return x.TaskType } return "" } @@ -901,9 +901,9 @@ func (x *DeleteTaskRequest) GetResourceMeta() []byte { return nil } -func (x *DeleteTaskRequest) GetTaskType() *TaskType { +func (x *DeleteTaskRequest) GetTaskCategory() *TaskCategory { if x != nil { - return x.TaskType + return x.TaskCategory } return nil } @@ -958,15 +958,15 @@ type Agent struct { // SupportedTaskTypes are the types of the tasks that the agent can handle. // // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedSupportedTaskTypes []string `protobuf:"bytes,2,rep,name=deprecated_supported_task_types,json=deprecatedSupportedTaskTypes,proto3" json:"deprecated_supported_task_types,omitempty"` + SupportedTaskTypes []string `protobuf:"bytes,2,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their // results synchronously when called by propeller. Given that sync agents can affect the performance // of the system, it's important to enforce strict timeout policies. // An Async agent, on the other hand, is required to be able to identify jobs by an // identifier and query for job statuses as jobs progress. IsSync bool `protobuf:"varint,3,opt,name=is_sync,json=isSync,proto3" json:"is_sync,omitempty"` - // SupportedTaskTypes are the types of the tasks that the agent can handle. - SupportedTaskTypes []*TaskType `protobuf:"bytes,4,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` + // Supported_task_categories are the categories of the tasks that the agent can handle. + SupportedTaskCategories []*TaskCategory `protobuf:"bytes,4,rep,name=supported_task_categories,json=supportedTaskCategories,proto3" json:"supported_task_categories,omitempty"` } func (x *Agent) Reset() { @@ -1009,9 +1009,9 @@ func (x *Agent) GetName() string { } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *Agent) GetDeprecatedSupportedTaskTypes() []string { +func (x *Agent) GetSupportedTaskTypes() []string { if x != nil { - return x.DeprecatedSupportedTaskTypes + return x.SupportedTaskTypes } return nil } @@ -1023,14 +1023,14 @@ func (x *Agent) GetIsSync() bool { return false } -func (x *Agent) GetSupportedTaskTypes() []*TaskType { +func (x *Agent) GetSupportedTaskCategories() []*TaskCategory { if x != nil { - return x.SupportedTaskTypes + return x.SupportedTaskCategories } return nil } -type TaskType struct { +type TaskCategory struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1041,8 +1041,8 @@ type TaskType struct { Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` } -func (x *TaskType) Reset() { - *x = TaskType{} +func (x *TaskCategory) Reset() { + *x = TaskCategory{} if protoimpl.UnsafeEnabled { mi := &file_flyteidl_admin_agent_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1050,13 +1050,13 @@ func (x *TaskType) Reset() { } } -func (x *TaskType) String() string { +func (x *TaskCategory) String() string { return protoimpl.X.MessageStringOf(x) } -func (*TaskType) ProtoMessage() {} +func (*TaskCategory) ProtoMessage() {} -func (x *TaskType) ProtoReflect() protoreflect.Message { +func (x *TaskCategory) ProtoReflect() protoreflect.Message { mi := &file_flyteidl_admin_agent_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1068,19 +1068,19 @@ func (x *TaskType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TaskType.ProtoReflect.Descriptor instead. -func (*TaskType) Descriptor() ([]byte, []int) { +// Deprecated: Use TaskCategory.ProtoReflect.Descriptor instead. +func (*TaskCategory) Descriptor() ([]byte, []int) { return file_flyteidl_admin_agent_proto_rawDescGZIP(), []int{13} } -func (x *TaskType) GetName() string { +func (x *TaskCategory) GetName() string { if x != nil { return x.Name } return "" } -func (x *TaskType) GetVersion() int32 { +func (x *TaskCategory) GetVersion() int32 { if x != nil { return x.Version } @@ -1280,7 +1280,7 @@ type GetTaskMetricsRequest struct { // A predefined yet extensible Task type identifier. // // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // The metrics to query. If empty, will return a default set of metrics. @@ -1293,7 +1293,7 @@ type GetTaskMetricsRequest struct { // Query resolution step width in duration format or float number of seconds. Step *durationpb.Duration `protobuf:"bytes,6,opt,name=step,proto3" json:"step,omitempty"` // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,7,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskCategory *TaskCategory `protobuf:"bytes,7,opt,name=task_category,json=taskCategory,proto3" json:"task_category,omitempty"` } func (x *GetTaskMetricsRequest) Reset() { @@ -1329,9 +1329,9 @@ func (*GetTaskMetricsRequest) Descriptor() ([]byte, []int) { } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *GetTaskMetricsRequest) GetDeprecatedTaskType() string { +func (x *GetTaskMetricsRequest) GetTaskType() string { if x != nil { - return x.DeprecatedTaskType + return x.TaskType } return "" } @@ -1371,9 +1371,9 @@ func (x *GetTaskMetricsRequest) GetStep() *durationpb.Duration { return nil } -func (x *GetTaskMetricsRequest) GetTaskType() *TaskType { +func (x *GetTaskMetricsRequest) GetTaskCategory() *TaskCategory { if x != nil { - return x.TaskType + return x.TaskCategory } return nil } @@ -1436,7 +1436,7 @@ type GetTaskLogsRequest struct { // A predefined yet extensible Task type identifier. // // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. - DeprecatedTaskType string `protobuf:"bytes,1,opt,name=deprecated_task_type,json=deprecatedTaskType,proto3" json:"deprecated_task_type,omitempty"` + TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` // Number of lines to return. @@ -1445,7 +1445,7 @@ type GetTaskLogsRequest struct { // in a query. If there are no more results, this value will be empty. Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // A predefined yet extensible Task type identifier. - TaskType *TaskType `protobuf:"bytes,5,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` + TaskCategory *TaskCategory `protobuf:"bytes,5,opt,name=task_category,json=taskCategory,proto3" json:"task_category,omitempty"` } func (x *GetTaskLogsRequest) Reset() { @@ -1481,9 +1481,9 @@ func (*GetTaskLogsRequest) Descriptor() ([]byte, []int) { } // Deprecated: Marked as deprecated in flyteidl/admin/agent.proto. -func (x *GetTaskLogsRequest) GetDeprecatedTaskType() string { +func (x *GetTaskLogsRequest) GetTaskType() string { if x != nil { - return x.DeprecatedTaskType + return x.TaskType } return "" } @@ -1509,9 +1509,9 @@ func (x *GetTaskLogsRequest) GetToken() string { return "" } -func (x *GetTaskLogsRequest) GetTaskType() *TaskType { +func (x *GetTaskLogsRequest) GetTaskCategory() *TaskCategory { if x != nil { - return x.TaskType + return x.TaskCategory } return nil } @@ -1834,158 +1834,156 @@ var file_flyteidl_admin_agent_proto_rawDesc = []byte{ 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x42, - 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0xa2, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, - 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, - 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x4d, 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x47, 0x0a, 0x0f, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, - 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, - 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, - 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x11, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, - 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, - 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x09, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x05, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, + 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x09, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, + 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, + 0x41, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x79, 0x22, 0x47, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xb3, 0x02, 0x0a, 0x08, + 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x02, + 0x18, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x6f, 0x75, 0x74, + 0x70, 0x75, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x4c, 0x69, 0x74, 0x65, 0x72, + 0x61, 0x6c, 0x4d, 0x61, 0x70, 0x52, 0x07, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x73, 0x12, 0x18, + 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x5f, + 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, 0x6b, + 0x4c, 0x6f, 0x67, 0x52, 0x08, 0x6c, 0x6f, 0x67, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x38, 0x0a, + 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x66, + 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x73, + 0x6b, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, + 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x49, 0x6e, 0x66, + 0x6f, 0x22, 0x9c, 0x01, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, + 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x41, 0x0a, + 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x79, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x14, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, + 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, + 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, + 0x79, 0x6e, 0x63, 0x12, 0x58, 0x0a, 0x19, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, + 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x52, 0x17, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, + 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x3c, 0x0a, + 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x25, 0x0a, 0x0f, 0x47, + 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, + 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x05, 0x41, 0x67, 0x65, - 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x1f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x1c, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x53, - 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x73, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x75, - 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x12, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, - 0x6b, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x22, 0x25, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, - 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, - 0x74, 0x52, 0x05, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, - 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x73, 0x22, 0xe4, 0x02, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, - 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, - 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, - 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, - 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, - 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, - 0x65, 0x70, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x58, 0x0a, 0x16, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, - 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x22, 0xd2, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, - 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x14, 0x64, 0x65, - 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x12, 0x64, 0x65, - 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, - 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, - 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, - 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, - 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, - 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, - 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, - 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, - 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, - 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, - 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, - 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, - 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, - 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, - 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, - 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, - 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, - 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, - 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, - 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, - 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, - 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, - 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, - 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xdb, 0x02, + 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, + 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x18, 0x0a, + 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, + 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x04, 0x73, 0x74, 0x65, + 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x12, 0x41, 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74, + 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0x58, 0x0a, 0x16, 0x47, + 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, + 0x6c, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, + 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x09, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x02, 0x18, 0x01, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, + 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x65, + 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x41, + 0x0a, 0x0d, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, + 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x52, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x22, 0x31, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x33, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, + 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x47, 0x65, + 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x29, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, + 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x48, 0x00, 0x52, 0x06, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3d, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x6f, 0x64, 0x79, 0x48, 0x00, 0x52, + 0x04, 0x62, 0x6f, 0x64, 0x79, 0x42, 0x06, 0x0a, 0x04, 0x70, 0x61, 0x72, 0x74, 0x2a, 0x62, 0x0a, + 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x54, 0x52, 0x59, 0x41, + 0x42, 0x4c, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x00, 0x12, 0x15, 0x0a, + 0x11, 0x50, 0x45, 0x52, 0x4d, 0x41, 0x4e, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, + 0x52, 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, + 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x0d, + 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x04, 0x1a, 0x02, 0x18, + 0x01, 0x42, 0xb6, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, + 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x6f, 0x72, 0x67, 0x2f, 0x66, 0x6c, 0x79, 0x74, + 0x65, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x62, 0x2d, 0x67, 0x6f, 0x2f, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2f, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0xa2, 0x02, 0x03, 0x46, 0x41, 0x58, 0xaa, 0x02, 0x0e, 0x46, 0x6c, 0x79, 0x74, + 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xca, 0x02, 0x0e, 0x46, 0x6c, 0x79, + 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0xe2, 0x02, 0x1a, 0x46, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x5c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x46, 0x6c, 0x79, 0x74, 0x65, + 0x69, 0x64, 0x6c, 0x3a, 0x3a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -2017,7 +2015,7 @@ var file_flyteidl_admin_agent_proto_goTypes = []interface{}{ (*DeleteTaskRequest)(nil), // 11: flyteidl.admin.DeleteTaskRequest (*DeleteTaskResponse)(nil), // 12: flyteidl.admin.DeleteTaskResponse (*Agent)(nil), // 13: flyteidl.admin.Agent - (*TaskType)(nil), // 14: flyteidl.admin.TaskType + (*TaskCategory)(nil), // 14: flyteidl.admin.TaskCategory (*GetAgentRequest)(nil), // 15: flyteidl.admin.GetAgentRequest (*GetAgentResponse)(nil), // 16: flyteidl.admin.GetAgentResponse (*ListAgentsRequest)(nil), // 17: flyteidl.admin.ListAgentsRequest @@ -2058,23 +2056,23 @@ var file_flyteidl_admin_agent_proto_depIdxs = []int32{ 10, // 12: flyteidl.admin.ExecuteTaskSyncResponseHeader.resource:type_name -> flyteidl.admin.Resource 6, // 13: flyteidl.admin.ExecuteTaskSyncResponse.header:type_name -> flyteidl.admin.ExecuteTaskSyncResponseHeader 30, // 14: flyteidl.admin.ExecuteTaskSyncResponse.outputs:type_name -> flyteidl.core.LiteralMap - 14, // 15: flyteidl.admin.GetTaskRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 15: flyteidl.admin.GetTaskRequest.task_category:type_name -> flyteidl.admin.TaskCategory 10, // 16: flyteidl.admin.GetTaskResponse.resource:type_name -> flyteidl.admin.Resource 0, // 17: flyteidl.admin.Resource.state:type_name -> flyteidl.admin.State 30, // 18: flyteidl.admin.Resource.outputs:type_name -> flyteidl.core.LiteralMap 32, // 19: flyteidl.admin.Resource.log_links:type_name -> flyteidl.core.TaskLog 33, // 20: flyteidl.admin.Resource.phase:type_name -> flyteidl.core.TaskExecution.Phase 34, // 21: flyteidl.admin.Resource.custom_info:type_name -> google.protobuf.Struct - 14, // 22: flyteidl.admin.DeleteTaskRequest.task_type:type_name -> flyteidl.admin.TaskType - 14, // 23: flyteidl.admin.Agent.supported_task_types:type_name -> flyteidl.admin.TaskType + 14, // 22: flyteidl.admin.DeleteTaskRequest.task_category:type_name -> flyteidl.admin.TaskCategory + 14, // 23: flyteidl.admin.Agent.supported_task_categories:type_name -> flyteidl.admin.TaskCategory 13, // 24: flyteidl.admin.GetAgentResponse.agent:type_name -> flyteidl.admin.Agent 13, // 25: flyteidl.admin.ListAgentsResponse.agents:type_name -> flyteidl.admin.Agent 35, // 26: flyteidl.admin.GetTaskMetricsRequest.start_time:type_name -> google.protobuf.Timestamp 35, // 27: flyteidl.admin.GetTaskMetricsRequest.end_time:type_name -> google.protobuf.Timestamp 36, // 28: flyteidl.admin.GetTaskMetricsRequest.step:type_name -> google.protobuf.Duration - 14, // 29: flyteidl.admin.GetTaskMetricsRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 29: flyteidl.admin.GetTaskMetricsRequest.task_category:type_name -> flyteidl.admin.TaskCategory 37, // 30: flyteidl.admin.GetTaskMetricsResponse.results:type_name -> flyteidl.core.ExecutionMetricResult - 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_type:type_name -> flyteidl.admin.TaskType + 14, // 31: flyteidl.admin.GetTaskLogsRequest.task_category:type_name -> flyteidl.admin.TaskCategory 22, // 32: flyteidl.admin.GetTaskLogsResponse.header:type_name -> flyteidl.admin.GetTaskLogsResponseHeader 23, // 33: flyteidl.admin.GetTaskLogsResponse.body:type_name -> flyteidl.admin.GetTaskLogsResponseBody 34, // [34:34] is the sub-list for method output_type @@ -2247,7 +2245,7 @@ func file_flyteidl_admin_agent_proto_init() { } } file_flyteidl_admin_agent_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TaskType); i { + switch v := v.(*TaskCategory); i { case 0: return &v.state case 1: diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go index a95e0f58e1..078dc9dd8a 100644 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go @@ -40,7 +40,7 @@ var file_flyteidl_service_agent_proto_rawDesc = []byte{ 0x63, 0x75, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, - 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x32, 0xc3, + 0x61, 0x73, 0x6b, 0x2f, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x28, 0x01, 0x30, 0x01, 0x32, 0xe3, 0x06, 0x0a, 0x11, 0x41, 0x73, 0x79, 0x6e, 0x63, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, @@ -49,49 +49,51 @@ var file_flyteidl_service_agent_proto_rawDesc = []byte{ 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x01, 0x2a, 0x22, 0x12, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x9b, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, + 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x12, 0xa3, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1e, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, - 0x6b, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, - 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5a, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x54, 0x2a, 0x52, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, + 0x6b, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, + 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xb7, + 0x01, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x21, 0x2e, + 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x62, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x2a, 0x5a, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, + 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, + 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xb8, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, + 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xc0, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x25, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x72, 0x69, - 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x51, 0x12, 0x4f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5f, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x59, 0x12, 0x57, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x2f, 0x7b, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, - 0x74, 0x61, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, - 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, - 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, - 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4e, 0x12, 0x4c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, - 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, - 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x6e, 0x61, + 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x79, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x12, 0xb6, 0x01, 0x0a, 0x0b, + 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x22, 0x2e, 0x66, 0x6c, + 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, + 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x23, 0x2e, 0x66, 0x6c, 0x79, 0x74, 0x65, 0x69, 0x64, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, + 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x54, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2f, 0x74, 0x61, 0x73, 0x6b, + 0x2f, 0x6c, 0x6f, 0x67, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x7d, 0x30, 0x01, 0x32, 0xf0, 0x01, 0x0a, 0x14, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go index 2256d6f411..06ae8800ab 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.pb.gw.go @@ -111,7 +111,7 @@ func local_request_AsyncAgentService_CreateTask_0(ctx context.Context, marshaler } var ( - filter_AsyncAgentService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} + filter_AsyncAgentService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_category": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} ) func request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -125,24 +125,24 @@ func request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler runtime. _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -178,24 +178,24 @@ func local_request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler ru _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -221,7 +221,7 @@ func local_request_AsyncAgentService_GetTask_0(ctx context.Context, marshaler ru } var ( - filter_AsyncAgentService_DeleteTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} + filter_AsyncAgentService_DeleteTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_category": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} ) func request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -235,24 +235,24 @@ func request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler runti _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -288,24 +288,24 @@ func local_request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -331,7 +331,7 @@ func local_request_AsyncAgentService_DeleteTask_0(ctx context.Context, marshaler } var ( - filter_AsyncAgentService_GetTaskMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} + filter_AsyncAgentService_GetTaskMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_category": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} ) func request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { @@ -345,24 +345,24 @@ func request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marshaler r _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -398,24 +398,24 @@ func local_request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marsh _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -441,7 +441,7 @@ func local_request_AsyncAgentService_GetTaskMetrics_0(ctx context.Context, marsh } var ( - filter_AsyncAgentService_GetTaskLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_type": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} + filter_AsyncAgentService_GetTaskLogs_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_category": 0, "name": 1, "version": 2, "resource_meta": 3, "resourceMeta": 4}, Base: []int{1, 6, 5, 6, 7, 8, 2, 0, 4, 0, 0, 0, 0, 0}, Check: []int{0, 1, 1, 1, 1, 1, 2, 7, 2, 9, 3, 4, 5, 6}} ) func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runtime.Marshaler, client extService.AsyncAgentServiceClient, req *http.Request, pathParams map[string]string) (extService.AsyncAgentService_GetTaskLogsClient, runtime.ServerMetadata, error) { @@ -455,24 +455,24 @@ func request_AsyncAgentService_GetTaskLogs_0(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["task_type.name"] + val, ok = pathParams["task_category.name"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.name") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.name") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.name", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.name", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.name", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.name", err) } - val, ok = pathParams["task_type.version"] + val, ok = pathParams["task_category.version"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_type.version") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_category.version") } - err = runtime.PopulateFieldFromPath(&protoReq, "task_type.version", val) + err = runtime.PopulateFieldFromPath(&protoReq, "task_category.version", val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_type.version", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_category.version", err) } val, ok = pathParams["resource_meta"] @@ -630,7 +630,7 @@ func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -655,7 +655,7 @@ func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -680,7 +680,7 @@ func RegisterAsyncAgentServiceHandlerServer(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -903,7 +903,7 @@ func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTask", runtime.WithHTTPPathPattern("/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -925,7 +925,7 @@ func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/DeleteTask", runtime.WithHTTPPathPattern("/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -947,7 +947,7 @@ func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskMetrics", runtime.WithHTTPPathPattern("/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -969,7 +969,7 @@ func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.Se inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) var err error var annotatedContext context.Context - annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskLogs", runtime.WithHTTPPathPattern("/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}")) + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/flyteidl.service.AsyncAgentService/GetTaskLogs", runtime.WithHTTPPathPattern("/api/v1/agent/task/logs/{task_category.name}/{task_category.version}/{resource_meta}")) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return @@ -991,13 +991,13 @@ func RegisterAsyncAgentServiceHandlerClient(ctx context.Context, mux *runtime.Se var ( pattern_AsyncAgentService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "agent", "task"}, "")) - pattern_AsyncAgentService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task", "task_type.name", "task_type.version", "resource_meta"}, "")) + pattern_AsyncAgentService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task", "task_category.name", "task_category.version", "resource_meta"}, "")) - pattern_AsyncAgentService_DeleteTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task_executions", "task_type.name", "task_type.version", "resource_meta"}, "")) + pattern_AsyncAgentService_DeleteTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "agent", "task_executions", "task_category.name", "task_category.version", "resource_meta"}, "")) - pattern_AsyncAgentService_GetTaskMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "metrics", "task_type.name", "task_type.version", "resource_meta"}, "")) + pattern_AsyncAgentService_GetTaskMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "metrics", "task_category.name", "task_category.version", "resource_meta"}, "")) - pattern_AsyncAgentService_GetTaskLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "logs", "task_type.name", "task_type.version", "resource_meta"}, "")) + pattern_AsyncAgentService_GetTaskLogs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "agent", "task", "logs", "task_category.name", "task_category.version", "resource_meta"}, "")) ) var ( diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 7c410a2292..9bd18e5ddb 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -56,7 +56,7 @@ ] } }, - "/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}": { + "/api/v1/agent/task/logs/{task_category.name}/{task_category.version}/{resource_meta}": { "get": { "summary": "GetTaskLogs returns task execution logs, if available.", "operationId": "AsyncAgentService_GetTaskLogs", @@ -85,14 +85,14 @@ }, "parameters": [ { - "name": "task_type.name", + "name": "task_category.name", "description": "The name of the task type.", "in": "path", "required": true, "type": "string" }, { - "name": "task_type.version", + "name": "task_category.version", "description": "The version of the task type.", "in": "path", "required": true, @@ -108,7 +108,7 @@ "format": "byte" }, { - "name": "deprecated_task_type", + "name": "task_type", "description": "A predefined yet extensible Task type identifier.", "in": "query", "required": false, @@ -135,7 +135,7 @@ ] } }, - "/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}": { + "/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}": { "get": { "summary": "GetTaskMetrics returns one or more task execution metrics, if available.", "description": "Errors include\n * OutOfRange if metrics are not available for the specified task time range\n * various other errors", @@ -156,14 +156,14 @@ }, "parameters": [ { - "name": "task_type.name", + "name": "task_category.name", "description": "The name of the task type.", "in": "path", "required": true, "type": "string" }, { - "name": "task_type.version", + "name": "task_category.version", "description": "The version of the task type.", "in": "path", "required": true, @@ -179,7 +179,7 @@ "format": "byte" }, { - "name": "deprecated_task_type", + "name": "task_type", "description": "A predefined yet extensible Task type identifier.", "in": "query", "required": false, @@ -268,7 +268,7 @@ ] } }, - "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}": { + "/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}": { "get": { "summary": "Get job status.", "operationId": "AsyncAgentService_GetTask", @@ -288,14 +288,14 @@ }, "parameters": [ { - "name": "task_type.name", + "name": "task_category.name", "description": "The name of the task type.", "in": "path", "required": true, "type": "string" }, { - "name": "task_type.version", + "name": "task_category.version", "description": "The version of the task type.", "in": "path", "required": true, @@ -311,7 +311,7 @@ "format": "byte" }, { - "name": "deprecated_task_type", + "name": "task_type", "description": "A predefined yet extensible Task type identifier.", "in": "query", "required": false, @@ -323,7 +323,7 @@ ] } }, - "/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}": { + "/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}": { "delete": { "summary": "Delete the task resource.", "operationId": "AsyncAgentService_DeleteTask", @@ -343,14 +343,14 @@ }, "parameters": [ { - "name": "task_type.name", + "name": "task_category.name", "description": "The name of the task type.", "in": "path", "required": true, "type": "string" }, { - "name": "task_type.version", + "name": "task_category.version", "description": "The version of the task type.", "in": "path", "required": true, @@ -366,7 +366,7 @@ "format": "byte" }, { - "name": "deprecated_task_type", + "name": "task_type", "description": "A predefined yet extensible Task type identifier.", "in": "query", "required": false, @@ -598,7 +598,7 @@ "type": "string", "description": "Name is the developer-assigned name of the agent." }, - "deprecated_supported_task_types": { + "supported_task_types": { "type": "array", "items": { "type": "string" @@ -609,13 +609,13 @@ "type": "boolean", "description": "IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their\nresults synchronously when called by propeller. Given that sync agents can affect the performance\nof the system, it's important to enforce strict timeout policies.\nAn Async agent, on the other hand, is required to be able to identify jobs by an\nidentifier and query for job statuses as jobs progress." }, - "supported_task_types": { + "supported_task_categories": { "type": "array", "items": { "type": "object", - "$ref": "#/definitions/adminTaskType" + "$ref": "#/definitions/adminTaskCategory" }, - "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." + "description": "Supported_task_categories are the categories of the tasks that the agent can handle." } }, "description": "A message containing the agent metadata." @@ -820,7 +820,7 @@ } } }, - "adminTaskType": { + "adminTaskCategory": { "type": "object", "properties": { "name": { diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts index 581a1caa6e..e2159bc24b 100644 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ b/flyteidl/gen/pb-js/flyteidl.d.ts @@ -9467,14 +9467,14 @@ export namespace flyteidl { /** Properties of a GetTaskRequest. */ interface IGetTaskRequest { - /** GetTaskRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); + /** GetTaskRequest taskType */ + taskType?: (string|null); /** GetTaskRequest resourceMeta */ resourceMeta?: (Uint8Array|null); - /** GetTaskRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskRequest taskCategory */ + taskCategory?: (flyteidl.admin.ITaskCategory|null); } /** Represents a GetTaskRequest. */ @@ -9486,14 +9486,14 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskRequest); - /** GetTaskRequest deprecatedTaskType. */ - public deprecatedTaskType: string; + /** GetTaskRequest taskType. */ + public taskType: string; /** GetTaskRequest resourceMeta. */ public resourceMeta: Uint8Array; - /** GetTaskRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskRequest taskCategory. */ + public taskCategory?: (flyteidl.admin.ITaskCategory|null); /** * Creates a new GetTaskRequest instance using the specified properties. @@ -9665,14 +9665,14 @@ export namespace flyteidl { /** Properties of a DeleteTaskRequest. */ interface IDeleteTaskRequest { - /** DeleteTaskRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); + /** DeleteTaskRequest taskType */ + taskType?: (string|null); /** DeleteTaskRequest resourceMeta */ resourceMeta?: (Uint8Array|null); - /** DeleteTaskRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** DeleteTaskRequest taskCategory */ + taskCategory?: (flyteidl.admin.ITaskCategory|null); } /** Represents a DeleteTaskRequest. */ @@ -9684,14 +9684,14 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IDeleteTaskRequest); - /** DeleteTaskRequest deprecatedTaskType. */ - public deprecatedTaskType: string; + /** DeleteTaskRequest taskType. */ + public taskType: string; /** DeleteTaskRequest resourceMeta. */ public resourceMeta: Uint8Array; - /** DeleteTaskRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** DeleteTaskRequest taskCategory. */ + public taskCategory?: (flyteidl.admin.ITaskCategory|null); /** * Creates a new DeleteTaskRequest instance using the specified properties. @@ -9778,14 +9778,14 @@ export namespace flyteidl { /** Agent name */ name?: (string|null); - /** Agent deprecatedSupportedTaskTypes */ - deprecatedSupportedTaskTypes?: (string[]|null); + /** Agent supportedTaskTypes */ + supportedTaskTypes?: (string[]|null); /** Agent isSync */ isSync?: (boolean|null); - /** Agent supportedTaskTypes */ - supportedTaskTypes?: (flyteidl.admin.ITaskType[]|null); + /** Agent supportedTaskCategories */ + supportedTaskCategories?: (flyteidl.admin.ITaskCategory[]|null); } /** Represents an Agent. */ @@ -9800,14 +9800,14 @@ export namespace flyteidl { /** Agent name. */ public name: string; - /** Agent deprecatedSupportedTaskTypes. */ - public deprecatedSupportedTaskTypes: string[]; + /** Agent supportedTaskTypes. */ + public supportedTaskTypes: string[]; /** Agent isSync. */ public isSync: boolean; - /** Agent supportedTaskTypes. */ - public supportedTaskTypes: flyteidl.admin.ITaskType[]; + /** Agent supportedTaskCategories. */ + public supportedTaskCategories: flyteidl.admin.ITaskCategory[]; /** * Creates a new Agent instance using the specified properties. @@ -9842,58 +9842,58 @@ export namespace flyteidl { public static verify(message: { [k: string]: any }): (string|null); } - /** Properties of a TaskType. */ - interface ITaskType { + /** Properties of a TaskCategory. */ + interface ITaskCategory { - /** TaskType name */ + /** TaskCategory name */ name?: (string|null); - /** TaskType version */ + /** TaskCategory version */ version?: (number|null); } - /** Represents a TaskType. */ - class TaskType implements ITaskType { + /** Represents a TaskCategory. */ + class TaskCategory implements ITaskCategory { /** - * Constructs a new TaskType. + * Constructs a new TaskCategory. * @param [properties] Properties to set */ - constructor(properties?: flyteidl.admin.ITaskType); + constructor(properties?: flyteidl.admin.ITaskCategory); - /** TaskType name. */ + /** TaskCategory name. */ public name: string; - /** TaskType version. */ + /** TaskCategory version. */ public version: number; /** - * Creates a new TaskType instance using the specified properties. + * Creates a new TaskCategory instance using the specified properties. * @param [properties] Properties to set - * @returns TaskType instance + * @returns TaskCategory instance */ - public static create(properties?: flyteidl.admin.ITaskType): flyteidl.admin.TaskType; + public static create(properties?: flyteidl.admin.ITaskCategory): flyteidl.admin.TaskCategory; /** - * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. - * @param message TaskType message or plain object to encode + * Encodes the specified TaskCategory message. Does not implicitly {@link flyteidl.admin.TaskCategory.verify|verify} messages. + * @param message TaskCategory message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: flyteidl.admin.ITaskType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: flyteidl.admin.ITaskCategory, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TaskType message from the specified reader or buffer. + * Decodes a TaskCategory message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TaskType + * @returns TaskCategory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): flyteidl.admin.TaskCategory; /** - * Verifies a TaskType message. + * Verifies a TaskCategory message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ @@ -10105,8 +10105,8 @@ export namespace flyteidl { /** Properties of a GetTaskMetricsRequest. */ interface IGetTaskMetricsRequest { - /** GetTaskMetricsRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); + /** GetTaskMetricsRequest taskType */ + taskType?: (string|null); /** GetTaskMetricsRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -10123,8 +10123,8 @@ export namespace flyteidl { /** GetTaskMetricsRequest step */ step?: (google.protobuf.IDuration|null); - /** GetTaskMetricsRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskMetricsRequest taskCategory */ + taskCategory?: (flyteidl.admin.ITaskCategory|null); } /** Represents a GetTaskMetricsRequest. */ @@ -10136,8 +10136,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskMetricsRequest); - /** GetTaskMetricsRequest deprecatedTaskType. */ - public deprecatedTaskType: string; + /** GetTaskMetricsRequest taskType. */ + public taskType: string; /** GetTaskMetricsRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -10154,8 +10154,8 @@ export namespace flyteidl { /** GetTaskMetricsRequest step. */ public step?: (google.protobuf.IDuration|null); - /** GetTaskMetricsRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskMetricsRequest taskCategory. */ + public taskCategory?: (flyteidl.admin.ITaskCategory|null); /** * Creates a new GetTaskMetricsRequest instance using the specified properties. @@ -10245,8 +10245,8 @@ export namespace flyteidl { /** Properties of a GetTaskLogsRequest. */ interface IGetTaskLogsRequest { - /** GetTaskLogsRequest deprecatedTaskType */ - deprecatedTaskType?: (string|null); + /** GetTaskLogsRequest taskType */ + taskType?: (string|null); /** GetTaskLogsRequest resourceMeta */ resourceMeta?: (Uint8Array|null); @@ -10257,8 +10257,8 @@ export namespace flyteidl { /** GetTaskLogsRequest token */ token?: (string|null); - /** GetTaskLogsRequest taskType */ - taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskLogsRequest taskCategory */ + taskCategory?: (flyteidl.admin.ITaskCategory|null); } /** Represents a GetTaskLogsRequest. */ @@ -10270,8 +10270,8 @@ export namespace flyteidl { */ constructor(properties?: flyteidl.admin.IGetTaskLogsRequest); - /** GetTaskLogsRequest deprecatedTaskType. */ - public deprecatedTaskType: string; + /** GetTaskLogsRequest taskType. */ + public taskType: string; /** GetTaskLogsRequest resourceMeta. */ public resourceMeta: Uint8Array; @@ -10282,8 +10282,8 @@ export namespace flyteidl { /** GetTaskLogsRequest token. */ public token: string; - /** GetTaskLogsRequest taskType. */ - public taskType?: (flyteidl.admin.ITaskType|null); + /** GetTaskLogsRequest taskCategory. */ + public taskCategory?: (flyteidl.admin.ITaskCategory|null); /** * Creates a new GetTaskLogsRequest instance using the specified properties. diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js index 500047eab0..52e4f581d2 100644 --- a/flyteidl/gen/pb-js/flyteidl.js +++ b/flyteidl/gen/pb-js/flyteidl.js @@ -23232,9 +23232,9 @@ * Properties of a GetTaskRequest. * @memberof flyteidl.admin * @interface IGetTaskRequest - * @property {string|null} [deprecatedTaskType] GetTaskRequest deprecatedTaskType + * @property {string|null} [taskType] GetTaskRequest taskType * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskRequest taskType + * @property {flyteidl.admin.ITaskCategory|null} [taskCategory] GetTaskRequest taskCategory */ /** @@ -23253,12 +23253,12 @@ } /** - * GetTaskRequest deprecatedTaskType. - * @member {string} deprecatedTaskType + * GetTaskRequest taskType. + * @member {string} taskType * @memberof flyteidl.admin.GetTaskRequest * @instance */ - GetTaskRequest.prototype.deprecatedTaskType = ""; + GetTaskRequest.prototype.taskType = ""; /** * GetTaskRequest resourceMeta. @@ -23269,12 +23269,12 @@ GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); /** - * GetTaskRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetTaskRequest taskCategory. + * @member {flyteidl.admin.ITaskCategory|null|undefined} taskCategory * @memberof flyteidl.admin.GetTaskRequest * @instance */ - GetTaskRequest.prototype.taskType = null; + GetTaskRequest.prototype.taskCategory = null; /** * Creates a new GetTaskRequest instance using the specified properties. @@ -23300,12 +23300,12 @@ GetTaskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) + $root.flyteidl.admin.TaskCategory.encode(message.taskCategory, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23328,13 +23328,13 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deprecatedTaskType = reader.string(); + message.taskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); break; case 3: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.taskCategory = $root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23355,16 +23355,16 @@ GetTaskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) { + var error = $root.flyteidl.admin.TaskCategory.verify(message.taskCategory); if (error) - return "taskType." + error; + return "taskCategory." + error; } return null; }; @@ -23718,9 +23718,9 @@ * Properties of a DeleteTaskRequest. * @memberof flyteidl.admin * @interface IDeleteTaskRequest - * @property {string|null} [deprecatedTaskType] DeleteTaskRequest deprecatedTaskType + * @property {string|null} [taskType] DeleteTaskRequest taskType * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta - * @property {flyteidl.admin.ITaskType|null} [taskType] DeleteTaskRequest taskType + * @property {flyteidl.admin.ITaskCategory|null} [taskCategory] DeleteTaskRequest taskCategory */ /** @@ -23739,12 +23739,12 @@ } /** - * DeleteTaskRequest deprecatedTaskType. - * @member {string} deprecatedTaskType + * DeleteTaskRequest taskType. + * @member {string} taskType * @memberof flyteidl.admin.DeleteTaskRequest * @instance */ - DeleteTaskRequest.prototype.deprecatedTaskType = ""; + DeleteTaskRequest.prototype.taskType = ""; /** * DeleteTaskRequest resourceMeta. @@ -23755,12 +23755,12 @@ DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); /** - * DeleteTaskRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * DeleteTaskRequest taskCategory. + * @member {flyteidl.admin.ITaskCategory|null|undefined} taskCategory * @memberof flyteidl.admin.DeleteTaskRequest * @instance */ - DeleteTaskRequest.prototype.taskType = null; + DeleteTaskRequest.prototype.taskCategory = null; /** * Creates a new DeleteTaskRequest instance using the specified properties. @@ -23786,12 +23786,12 @@ DeleteTaskRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) + $root.flyteidl.admin.TaskCategory.encode(message.taskCategory, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23814,13 +23814,13 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deprecatedTaskType = reader.string(); + message.taskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); break; case 3: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.taskCategory = $root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -23841,16 +23841,16 @@ DeleteTaskRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) { + var error = $root.flyteidl.admin.TaskCategory.verify(message.taskCategory); if (error) - return "taskType." + error; + return "taskCategory." + error; } return null; }; @@ -23958,9 +23958,9 @@ * @memberof flyteidl.admin * @interface IAgent * @property {string|null} [name] Agent name - * @property {Array.|null} [deprecatedSupportedTaskTypes] Agent deprecatedSupportedTaskTypes + * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes * @property {boolean|null} [isSync] Agent isSync - * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes + * @property {Array.|null} [supportedTaskCategories] Agent supportedTaskCategories */ /** @@ -23972,8 +23972,8 @@ * @param {flyteidl.admin.IAgent=} [properties] Properties to set */ function Agent(properties) { - this.deprecatedSupportedTaskTypes = []; this.supportedTaskTypes = []; + this.supportedTaskCategories = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23989,12 +23989,12 @@ Agent.prototype.name = ""; /** - * Agent deprecatedSupportedTaskTypes. - * @member {Array.} deprecatedSupportedTaskTypes + * Agent supportedTaskTypes. + * @member {Array.} supportedTaskTypes * @memberof flyteidl.admin.Agent * @instance */ - Agent.prototype.deprecatedSupportedTaskTypes = $util.emptyArray; + Agent.prototype.supportedTaskTypes = $util.emptyArray; /** * Agent isSync. @@ -24005,12 +24005,12 @@ Agent.prototype.isSync = false; /** - * Agent supportedTaskTypes. - * @member {Array.} supportedTaskTypes + * Agent supportedTaskCategories. + * @member {Array.} supportedTaskCategories * @memberof flyteidl.admin.Agent * @instance */ - Agent.prototype.supportedTaskTypes = $util.emptyArray; + Agent.prototype.supportedTaskCategories = $util.emptyArray; /** * Creates a new Agent instance using the specified properties. @@ -24038,14 +24038,14 @@ writer = $Writer.create(); if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.deprecatedSupportedTaskTypes != null && message.deprecatedSupportedTaskTypes.length) - for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deprecatedSupportedTaskTypes[i]); - if (message.isSync != null && message.hasOwnProperty("isSync")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) for (var i = 0; i < message.supportedTaskTypes.length; ++i) - $root.flyteidl.admin.TaskType.encode(message.supportedTaskTypes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.supportedTaskTypes[i]); + if (message.isSync != null && message.hasOwnProperty("isSync")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSync); + if (message.supportedTaskCategories != null && message.supportedTaskCategories.length) + for (var i = 0; i < message.supportedTaskCategories.length; ++i) + $root.flyteidl.admin.TaskCategory.encode(message.supportedTaskCategories[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -24071,17 +24071,17 @@ message.name = reader.string(); break; case 2: - if (!(message.deprecatedSupportedTaskTypes && message.deprecatedSupportedTaskTypes.length)) - message.deprecatedSupportedTaskTypes = []; - message.deprecatedSupportedTaskTypes.push(reader.string()); + if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) + message.supportedTaskTypes = []; + message.supportedTaskTypes.push(reader.string()); break; case 3: message.isSync = reader.bool(); break; case 4: - if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) - message.supportedTaskTypes = []; - message.supportedTaskTypes.push($root.flyteidl.admin.TaskType.decode(reader, reader.uint32())); + if (!(message.supportedTaskCategories && message.supportedTaskCategories.length)) + message.supportedTaskCategories = []; + message.supportedTaskCategories.push($root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -24105,23 +24105,23 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; - if (message.deprecatedSupportedTaskTypes != null && message.hasOwnProperty("deprecatedSupportedTaskTypes")) { - if (!Array.isArray(message.deprecatedSupportedTaskTypes)) - return "deprecatedSupportedTaskTypes: array expected"; - for (var i = 0; i < message.deprecatedSupportedTaskTypes.length; ++i) - if (!$util.isString(message.deprecatedSupportedTaskTypes[i])) - return "deprecatedSupportedTaskTypes: string[] expected"; + if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { + if (!Array.isArray(message.supportedTaskTypes)) + return "supportedTaskTypes: array expected"; + for (var i = 0; i < message.supportedTaskTypes.length; ++i) + if (!$util.isString(message.supportedTaskTypes[i])) + return "supportedTaskTypes: string[] expected"; } if (message.isSync != null && message.hasOwnProperty("isSync")) if (typeof message.isSync !== "boolean") return "isSync: boolean expected"; - if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { - if (!Array.isArray(message.supportedTaskTypes)) - return "supportedTaskTypes: array expected"; - for (var i = 0; i < message.supportedTaskTypes.length; ++i) { - var error = $root.flyteidl.admin.TaskType.verify(message.supportedTaskTypes[i]); + if (message.supportedTaskCategories != null && message.hasOwnProperty("supportedTaskCategories")) { + if (!Array.isArray(message.supportedTaskCategories)) + return "supportedTaskCategories: array expected"; + for (var i = 0; i < message.supportedTaskCategories.length; ++i) { + var error = $root.flyteidl.admin.TaskCategory.verify(message.supportedTaskCategories[i]); if (error) - return "supportedTaskTypes." + error; + return "supportedTaskCategories." + error; } } return null; @@ -24130,25 +24130,25 @@ return Agent; })(); - admin.TaskType = (function() { + admin.TaskCategory = (function() { /** - * Properties of a TaskType. + * Properties of a TaskCategory. * @memberof flyteidl.admin - * @interface ITaskType - * @property {string|null} [name] TaskType name - * @property {number|null} [version] TaskType version + * @interface ITaskCategory + * @property {string|null} [name] TaskCategory name + * @property {number|null} [version] TaskCategory version */ /** - * Constructs a new TaskType. + * Constructs a new TaskCategory. * @memberof flyteidl.admin - * @classdesc Represents a TaskType. - * @implements ITaskType + * @classdesc Represents a TaskCategory. + * @implements ITaskCategory * @constructor - * @param {flyteidl.admin.ITaskType=} [properties] Properties to set + * @param {flyteidl.admin.ITaskCategory=} [properties] Properties to set */ - function TaskType(properties) { + function TaskCategory(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24156,43 +24156,43 @@ } /** - * TaskType name. + * TaskCategory name. * @member {string} name - * @memberof flyteidl.admin.TaskType + * @memberof flyteidl.admin.TaskCategory * @instance */ - TaskType.prototype.name = ""; + TaskCategory.prototype.name = ""; /** - * TaskType version. + * TaskCategory version. * @member {number} version - * @memberof flyteidl.admin.TaskType + * @memberof flyteidl.admin.TaskCategory * @instance */ - TaskType.prototype.version = 0; + TaskCategory.prototype.version = 0; /** - * Creates a new TaskType instance using the specified properties. + * Creates a new TaskCategory instance using the specified properties. * @function create - * @memberof flyteidl.admin.TaskType + * @memberof flyteidl.admin.TaskCategory * @static - * @param {flyteidl.admin.ITaskType=} [properties] Properties to set - * @returns {flyteidl.admin.TaskType} TaskType instance + * @param {flyteidl.admin.ITaskCategory=} [properties] Properties to set + * @returns {flyteidl.admin.TaskCategory} TaskCategory instance */ - TaskType.create = function create(properties) { - return new TaskType(properties); + TaskCategory.create = function create(properties) { + return new TaskCategory(properties); }; /** - * Encodes the specified TaskType message. Does not implicitly {@link flyteidl.admin.TaskType.verify|verify} messages. + * Encodes the specified TaskCategory message. Does not implicitly {@link flyteidl.admin.TaskCategory.verify|verify} messages. * @function encode - * @memberof flyteidl.admin.TaskType + * @memberof flyteidl.admin.TaskCategory * @static - * @param {flyteidl.admin.ITaskType} message TaskType message or plain object to encode + * @param {flyteidl.admin.ITaskCategory} message TaskCategory message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TaskType.encode = function encode(message, writer) { + TaskCategory.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && message.hasOwnProperty("name")) @@ -24203,20 +24203,20 @@ }; /** - * Decodes a TaskType message from the specified reader or buffer. + * Decodes a TaskCategory message from the specified reader or buffer. * @function decode - * @memberof flyteidl.admin.TaskType + * @memberof flyteidl.admin.TaskCategory * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskType} TaskType + * @returns {flyteidl.admin.TaskCategory} TaskCategory * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TaskType.decode = function decode(reader, length) { + TaskCategory.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskType(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCategory(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24235,14 +24235,14 @@ }; /** - * Verifies a TaskType message. + * Verifies a TaskCategory message. * @function verify - * @memberof flyteidl.admin.TaskType + * @memberof flyteidl.admin.TaskCategory * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TaskType.verify = function verify(message) { + TaskCategory.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -24254,7 +24254,7 @@ return null; }; - return TaskType; + return TaskCategory; })(); admin.GetAgentRequest = (function() { @@ -24698,13 +24698,13 @@ * Properties of a GetTaskMetricsRequest. * @memberof flyteidl.admin * @interface IGetTaskMetricsRequest - * @property {string|null} [deprecatedTaskType] GetTaskMetricsRequest deprecatedTaskType + * @property {string|null} [taskType] GetTaskMetricsRequest taskType * @property {Uint8Array|null} [resourceMeta] GetTaskMetricsRequest resourceMeta * @property {Array.|null} [queries] GetTaskMetricsRequest queries * @property {google.protobuf.ITimestamp|null} [startTime] GetTaskMetricsRequest startTime * @property {google.protobuf.ITimestamp|null} [endTime] GetTaskMetricsRequest endTime * @property {google.protobuf.IDuration|null} [step] GetTaskMetricsRequest step - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskMetricsRequest taskType + * @property {flyteidl.admin.ITaskCategory|null} [taskCategory] GetTaskMetricsRequest taskCategory */ /** @@ -24724,12 +24724,12 @@ } /** - * GetTaskMetricsRequest deprecatedTaskType. - * @member {string} deprecatedTaskType + * GetTaskMetricsRequest taskType. + * @member {string} taskType * @memberof flyteidl.admin.GetTaskMetricsRequest * @instance */ - GetTaskMetricsRequest.prototype.deprecatedTaskType = ""; + GetTaskMetricsRequest.prototype.taskType = ""; /** * GetTaskMetricsRequest resourceMeta. @@ -24772,12 +24772,12 @@ GetTaskMetricsRequest.prototype.step = null; /** - * GetTaskMetricsRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetTaskMetricsRequest taskCategory. + * @member {flyteidl.admin.ITaskCategory|null|undefined} taskCategory * @memberof flyteidl.admin.GetTaskMetricsRequest * @instance */ - GetTaskMetricsRequest.prototype.taskType = null; + GetTaskMetricsRequest.prototype.taskCategory = null; /** * Creates a new GetTaskMetricsRequest instance using the specified properties. @@ -24803,8 +24803,8 @@ GetTaskMetricsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); if (message.queries != null && message.queries.length) @@ -24816,8 +24816,8 @@ $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.step != null && message.hasOwnProperty("step")) $root.google.protobuf.Duration.encode(message.step, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) + $root.flyteidl.admin.TaskCategory.encode(message.taskCategory, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -24840,7 +24840,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deprecatedTaskType = reader.string(); + message.taskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); @@ -24860,7 +24860,7 @@ message.step = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; case 7: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.taskCategory = $root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -24881,9 +24881,9 @@ GetTaskMetricsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -24909,10 +24909,10 @@ if (error) return "step." + error; } - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) { + var error = $root.flyteidl.admin.TaskCategory.verify(message.taskCategory); if (error) - return "taskType." + error; + return "taskCategory." + error; } return null; }; @@ -25046,11 +25046,11 @@ * Properties of a GetTaskLogsRequest. * @memberof flyteidl.admin * @interface IGetTaskLogsRequest - * @property {string|null} [deprecatedTaskType] GetTaskLogsRequest deprecatedTaskType + * @property {string|null} [taskType] GetTaskLogsRequest taskType * @property {Uint8Array|null} [resourceMeta] GetTaskLogsRequest resourceMeta * @property {Long|null} [lines] GetTaskLogsRequest lines * @property {string|null} [token] GetTaskLogsRequest token - * @property {flyteidl.admin.ITaskType|null} [taskType] GetTaskLogsRequest taskType + * @property {flyteidl.admin.ITaskCategory|null} [taskCategory] GetTaskLogsRequest taskCategory */ /** @@ -25069,12 +25069,12 @@ } /** - * GetTaskLogsRequest deprecatedTaskType. - * @member {string} deprecatedTaskType + * GetTaskLogsRequest taskType. + * @member {string} taskType * @memberof flyteidl.admin.GetTaskLogsRequest * @instance */ - GetTaskLogsRequest.prototype.deprecatedTaskType = ""; + GetTaskLogsRequest.prototype.taskType = ""; /** * GetTaskLogsRequest resourceMeta. @@ -25101,12 +25101,12 @@ GetTaskLogsRequest.prototype.token = ""; /** - * GetTaskLogsRequest taskType. - * @member {flyteidl.admin.ITaskType|null|undefined} taskType + * GetTaskLogsRequest taskCategory. + * @member {flyteidl.admin.ITaskCategory|null|undefined} taskCategory * @memberof flyteidl.admin.GetTaskLogsRequest * @instance */ - GetTaskLogsRequest.prototype.taskType = null; + GetTaskLogsRequest.prototype.taskCategory = null; /** * Creates a new GetTaskLogsRequest instance using the specified properties. @@ -25132,16 +25132,16 @@ GetTaskLogsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deprecatedTaskType); + if (message.taskType != null && message.hasOwnProperty("taskType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); if (message.lines != null && message.hasOwnProperty("lines")) writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.lines); if (message.token != null && message.hasOwnProperty("token")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.taskType != null && message.hasOwnProperty("taskType")) - $root.flyteidl.admin.TaskType.encode(message.taskType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) + $root.flyteidl.admin.TaskCategory.encode(message.taskCategory, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -25164,7 +25164,7 @@ var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deprecatedTaskType = reader.string(); + message.taskType = reader.string(); break; case 2: message.resourceMeta = reader.bytes(); @@ -25176,7 +25176,7 @@ message.token = reader.string(); break; case 5: - message.taskType = $root.flyteidl.admin.TaskType.decode(reader, reader.uint32()); + message.taskCategory = $root.flyteidl.admin.TaskCategory.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -25197,9 +25197,9 @@ GetTaskLogsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecatedTaskType != null && message.hasOwnProperty("deprecatedTaskType")) - if (!$util.isString(message.deprecatedTaskType)) - return "deprecatedTaskType: string expected"; + if (message.taskType != null && message.hasOwnProperty("taskType")) + if (!$util.isString(message.taskType)) + return "taskType: string expected"; if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) return "resourceMeta: buffer expected"; @@ -25209,10 +25209,10 @@ if (message.token != null && message.hasOwnProperty("token")) if (!$util.isString(message.token)) return "token: string expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) { - var error = $root.flyteidl.admin.TaskType.verify(message.taskType); + if (message.taskCategory != null && message.hasOwnProperty("taskCategory")) { + var error = $root.flyteidl.admin.TaskCategory.verify(message.taskCategory); if (error) - return "taskType." + error; + return "taskCategory." + error; } return null; }; diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py index 25c7daf68b..950a916662 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py @@ -22,7 +22,7 @@ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\xa2\x01\n\x0eGetTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xb3\x02\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x38\n\x0b\x63ustom_info\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\"\xa5\x01\n\x11\x44\x65leteTaskRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x35\n\ttask_type\x18\x03 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"\x14\n\x12\x44\x65leteTaskResponse\"\xcb\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12I\n\x1f\x64\x65precated_supported_task_types\x18\x02 \x03(\tB\x02\x18\x01R\x1c\x64\x65precatedSupportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12J\n\x14supported_task_types\x18\x04 \x03(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x12supportedTaskTypes\"8\n\x08TaskType\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xe4\x02\n\x15GetTaskMetricsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x35\n\ttask_type\x18\x07 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xd2\x01\n\x12GetTaskLogsRequest\x12\x34\n\x14\x64\x65precated_task_type\x18\x01 \x01(\tB\x02\x18\x01R\x12\x64\x65precatedTaskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x35\n\ttask_type\x18\x05 \x01(\x0b\x32\x18.flyteidl.admin.TaskTypeR\x08taskType\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xe9\x06\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x12!\n\x0cmax_attempts\x18\x07 \x01(\x05R\x0bmaxAttempts\x12$\n\rinterruptible\x18\x08 \x01(\x08R\rinterruptible\x12\x46\n\x1finterruptible_failure_threshold\x18\t \x01(\x05R\x1dinterruptibleFailureThreshold\x12>\n\toverrides\x18\n \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverrides\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"9\n\x12\x43reateTaskResponse\x12#\n\rresource_meta\x18\x01 \x01(\x0cR\x0cresourceMeta\"\x87\x02\n\x13\x43reateRequestHeader\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x02 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x03 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\x12\x33\n\x16max_dataset_size_bytes\x18\x04 \x01(\x03R\x13maxDatasetSizeBytes\"\x94\x01\n\x16\x45xecuteTaskSyncRequest\x12=\n\x06header\x18\x01 \x01(\x0b\x32#.flyteidl.admin.CreateRequestHeaderH\x00R\x06header\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x06inputsB\x06\n\x04part\"U\n\x1d\x45xecuteTaskSyncResponseHeader\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xa0\x01\n\x17\x45xecuteTaskSyncResponse\x12G\n\x06header\x18\x01 \x01(\x0b\x32-.flyteidl.admin.ExecuteTaskSyncResponseHeaderH\x00R\x06header\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x07outputsB\x05\n\x03res\"\x99\x01\n\x0eGetTaskRequest\x12\x1f\n\ttask_type\x18\x01 \x01(\tB\x02\x18\x01R\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x41\n\rtask_category\x18\x03 \x01(\x0b\x32\x1c.flyteidl.admin.TaskCategoryR\x0ctaskCategory\"G\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\"\xb3\x02\n\x08Resource\x12/\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateB\x02\x18\x01R\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\x12\x38\n\x05phase\x18\x05 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x38\n\x0b\x63ustom_info\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\"\x9c\x01\n\x11\x44\x65leteTaskRequest\x12\x1f\n\ttask_type\x18\x01 \x01(\tB\x02\x18\x01R\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x41\n\rtask_category\x18\x03 \x01(\x0b\x32\x1c.flyteidl.admin.TaskCategoryR\x0ctaskCategory\"\x14\n\x12\x44\x65leteTaskResponse\"\xc4\x01\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x14supported_task_types\x18\x02 \x03(\tB\x02\x18\x01R\x12supportedTaskTypes\x12\x17\n\x07is_sync\x18\x03 \x01(\x08R\x06isSync\x12X\n\x19supported_task_categories\x18\x04 \x03(\x0b\x32\x1c.flyteidl.admin.TaskCategoryR\x17supportedTaskCategories\"<\n\x0cTaskCategory\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07version\x18\x02 \x01(\x05R\x07version\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents\"\xdb\x02\n\x15GetTaskMetricsRequest\x12\x1f\n\ttask_type\x18\x01 \x01(\tB\x02\x18\x01R\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x18\n\x07queries\x18\x03 \x03(\tR\x07queries\x12\x39\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12-\n\x04step\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x04step\x12\x41\n\rtask_category\x18\x07 \x01(\x0b\x32\x1c.flyteidl.admin.TaskCategoryR\x0ctaskCategory\"X\n\x16GetTaskMetricsResponse\x12>\n\x07results\x18\x01 \x03(\x0b\x32$.flyteidl.core.ExecutionMetricResultR\x07results\"\xc9\x01\n\x12GetTaskLogsRequest\x12\x1f\n\ttask_type\x18\x01 \x01(\tB\x02\x18\x01R\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\x12\x14\n\x05lines\x18\x03 \x01(\x04R\x05lines\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x41\n\rtask_category\x18\x05 \x01(\x0b\x32\x1c.flyteidl.admin.TaskCategoryR\x0ctaskCategory\"1\n\x19GetTaskLogsResponseHeader\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\"3\n\x17GetTaskLogsResponseBody\x12\x18\n\x07results\x18\x01 \x03(\tR\x07results\"\xa1\x01\n\x13GetTaskLogsResponse\x12\x43\n\x06header\x18\x01 \x01(\x0b\x32).flyteidl.admin.GetTaskLogsResponseHeaderH\x00R\x06header\x12=\n\x04\x62ody\x18\x02 \x01(\x0b\x32\'.flyteidl.admin.GetTaskLogsResponseBodyH\x00R\x04\x62odyB\x06\n\x04part*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -39,20 +39,20 @@ _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' - _GETTASKREQUEST.fields_by_name['deprecated_task_type']._options = None - _GETTASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' + _GETTASKREQUEST.fields_by_name['task_type']._options = None + _GETTASKREQUEST.fields_by_name['task_type']._serialized_options = b'\030\001' _RESOURCE.fields_by_name['state']._options = None _RESOURCE.fields_by_name['state']._serialized_options = b'\030\001' - _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._options = None - _DELETETASKREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _AGENT.fields_by_name['deprecated_supported_task_types']._options = None - _AGENT.fields_by_name['deprecated_supported_task_types']._serialized_options = b'\030\001' - _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._options = None - _GETTASKMETRICSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._options = None - _GETTASKLOGSREQUEST.fields_by_name['deprecated_task_type']._serialized_options = b'\030\001' - _globals['_STATE']._serialized_start=4310 - _globals['_STATE']._serialized_end=4408 + _DELETETASKREQUEST.fields_by_name['task_type']._options = None + _DELETETASKREQUEST.fields_by_name['task_type']._serialized_options = b'\030\001' + _AGENT.fields_by_name['supported_task_types']._options = None + _AGENT.fields_by_name['supported_task_types']._serialized_options = b'\030\001' + _GETTASKMETRICSREQUEST.fields_by_name['task_type']._options = None + _GETTASKMETRICSREQUEST.fields_by_name['task_type']._serialized_options = b'\030\001' + _GETTASKLOGSREQUEST.fields_by_name['task_type']._options = None + _GETTASKLOGSREQUEST.fields_by_name['task_type']._serialized_options = b'\030\001' + _globals['_STATE']._serialized_start=4271 + _globals['_STATE']._serialized_end=4369 _globals['_TASKEXECUTIONMETADATA']._serialized_start=321 _globals['_TASKEXECUTIONMETADATA']._serialized_end=1194 _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=1000 @@ -74,37 +74,37 @@ _globals['_EXECUTETASKSYNCRESPONSE']._serialized_start=2022 _globals['_EXECUTETASKSYNCRESPONSE']._serialized_end=2182 _globals['_GETTASKREQUEST']._serialized_start=2185 - _globals['_GETTASKREQUEST']._serialized_end=2347 - _globals['_GETTASKRESPONSE']._serialized_start=2349 - _globals['_GETTASKRESPONSE']._serialized_end=2420 - _globals['_RESOURCE']._serialized_start=2423 - _globals['_RESOURCE']._serialized_end=2730 - _globals['_DELETETASKREQUEST']._serialized_start=2733 - _globals['_DELETETASKREQUEST']._serialized_end=2898 - _globals['_DELETETASKRESPONSE']._serialized_start=2900 - _globals['_DELETETASKRESPONSE']._serialized_end=2920 - _globals['_AGENT']._serialized_start=2923 - _globals['_AGENT']._serialized_end=3126 - _globals['_TASKTYPE']._serialized_start=3128 - _globals['_TASKTYPE']._serialized_end=3184 - _globals['_GETAGENTREQUEST']._serialized_start=3186 - _globals['_GETAGENTREQUEST']._serialized_end=3223 - _globals['_GETAGENTRESPONSE']._serialized_start=3225 - _globals['_GETAGENTRESPONSE']._serialized_end=3288 - _globals['_LISTAGENTSREQUEST']._serialized_start=3290 - _globals['_LISTAGENTSREQUEST']._serialized_end=3309 - _globals['_LISTAGENTSRESPONSE']._serialized_start=3311 - _globals['_LISTAGENTSRESPONSE']._serialized_end=3378 - _globals['_GETTASKMETRICSREQUEST']._serialized_start=3381 - _globals['_GETTASKMETRICSREQUEST']._serialized_end=3737 - _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3739 - _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3827 - _globals['_GETTASKLOGSREQUEST']._serialized_start=3830 - _globals['_GETTASKLOGSREQUEST']._serialized_end=4040 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=4042 - _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4091 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4093 - _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4144 - _globals['_GETTASKLOGSRESPONSE']._serialized_start=4147 - _globals['_GETTASKLOGSRESPONSE']._serialized_end=4308 + _globals['_GETTASKREQUEST']._serialized_end=2338 + _globals['_GETTASKRESPONSE']._serialized_start=2340 + _globals['_GETTASKRESPONSE']._serialized_end=2411 + _globals['_RESOURCE']._serialized_start=2414 + _globals['_RESOURCE']._serialized_end=2721 + _globals['_DELETETASKREQUEST']._serialized_start=2724 + _globals['_DELETETASKREQUEST']._serialized_end=2880 + _globals['_DELETETASKRESPONSE']._serialized_start=2882 + _globals['_DELETETASKRESPONSE']._serialized_end=2902 + _globals['_AGENT']._serialized_start=2905 + _globals['_AGENT']._serialized_end=3101 + _globals['_TASKCATEGORY']._serialized_start=3103 + _globals['_TASKCATEGORY']._serialized_end=3163 + _globals['_GETAGENTREQUEST']._serialized_start=3165 + _globals['_GETAGENTREQUEST']._serialized_end=3202 + _globals['_GETAGENTRESPONSE']._serialized_start=3204 + _globals['_GETAGENTRESPONSE']._serialized_end=3267 + _globals['_LISTAGENTSREQUEST']._serialized_start=3269 + _globals['_LISTAGENTSREQUEST']._serialized_end=3288 + _globals['_LISTAGENTSRESPONSE']._serialized_start=3290 + _globals['_LISTAGENTSRESPONSE']._serialized_end=3357 + _globals['_GETTASKMETRICSREQUEST']._serialized_start=3360 + _globals['_GETTASKMETRICSREQUEST']._serialized_end=3707 + _globals['_GETTASKMETRICSRESPONSE']._serialized_start=3709 + _globals['_GETTASKMETRICSRESPONSE']._serialized_end=3797 + _globals['_GETTASKLOGSREQUEST']._serialized_start=3800 + _globals['_GETTASKLOGSREQUEST']._serialized_end=4001 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_start=4003 + _globals['_GETTASKLOGSRESPONSEHEADER']._serialized_end=4052 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_start=4054 + _globals['_GETTASKLOGSRESPONSEBODY']._serialized_end=4105 + _globals['_GETTASKLOGSRESPONSE']._serialized_start=4108 + _globals['_GETTASKLOGSRESPONSE']._serialized_end=4269 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi index 15c4cabd8d..988985e5ae 100644 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi @@ -126,14 +126,14 @@ class ExecuteTaskSyncResponse(_message.Message): def __init__(self, header: _Optional[_Union[ExecuteTaskSyncResponseHeader, _Mapping]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... class GetTaskRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["task_type", "resource_meta", "task_category"] TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + TASK_CATEGORY_FIELD_NUMBER: _ClassVar[int] + task_type: str resource_meta: bytes - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + task_category: TaskCategory + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_category: _Optional[_Union[TaskCategory, _Mapping]] = ...) -> None: ... class GetTaskResponse(_message.Message): __slots__ = ["resource"] @@ -158,32 +158,32 @@ class Resource(_message.Message): def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., message: _Optional[str] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... class DeleteTaskRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["task_type", "resource_meta", "task_category"] TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str + RESOURCE_META_FIELD_NUMBER: _ClassVar[int] + TASK_CATEGORY_FIELD_NUMBER: _ClassVar[int] + task_type: str resource_meta: bytes - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + task_category: TaskCategory + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., task_category: _Optional[_Union[TaskCategory, _Mapping]] = ...) -> None: ... class DeleteTaskResponse(_message.Message): __slots__ = [] def __init__(self) -> None: ... class Agent(_message.Message): - __slots__ = ["name", "deprecated_supported_task_types", "is_sync", "supported_task_types"] + __slots__ = ["name", "supported_task_types", "is_sync", "supported_task_categories"] NAME_FIELD_NUMBER: _ClassVar[int] - DEPRECATED_SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] - IS_SYNC_FIELD_NUMBER: _ClassVar[int] SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] + IS_SYNC_FIELD_NUMBER: _ClassVar[int] + SUPPORTED_TASK_CATEGORIES_FIELD_NUMBER: _ClassVar[int] name: str - deprecated_supported_task_types: _containers.RepeatedScalarFieldContainer[str] + supported_task_types: _containers.RepeatedScalarFieldContainer[str] is_sync: bool - supported_task_types: _containers.RepeatedCompositeFieldContainer[TaskType] - def __init__(self, name: _Optional[str] = ..., deprecated_supported_task_types: _Optional[_Iterable[str]] = ..., is_sync: bool = ..., supported_task_types: _Optional[_Iterable[_Union[TaskType, _Mapping]]] = ...) -> None: ... + supported_task_categories: _containers.RepeatedCompositeFieldContainer[TaskCategory] + def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[str]] = ..., is_sync: bool = ..., supported_task_categories: _Optional[_Iterable[_Union[TaskCategory, _Mapping]]] = ...) -> None: ... -class TaskType(_message.Message): +class TaskCategory(_message.Message): __slots__ = ["name", "version"] NAME_FIELD_NUMBER: _ClassVar[int] VERSION_FIELD_NUMBER: _ClassVar[int] @@ -214,22 +214,22 @@ class ListAgentsResponse(_message.Message): def __init__(self, agents: _Optional[_Iterable[_Union[Agent, _Mapping]]] = ...) -> None: ... class GetTaskMetricsRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "queries", "start_time", "end_time", "step", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["task_type", "resource_meta", "queries", "start_time", "end_time", "step", "task_category"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] QUERIES_FIELD_NUMBER: _ClassVar[int] START_TIME_FIELD_NUMBER: _ClassVar[int] END_TIME_FIELD_NUMBER: _ClassVar[int] STEP_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str + TASK_CATEGORY_FIELD_NUMBER: _ClassVar[int] + task_type: str resource_meta: bytes queries: _containers.RepeatedScalarFieldContainer[str] start_time: _timestamp_pb2.Timestamp end_time: _timestamp_pb2.Timestamp step: _duration_pb2.Duration - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + task_category: TaskCategory + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., queries: _Optional[_Iterable[str]] = ..., start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., step: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., task_category: _Optional[_Union[TaskCategory, _Mapping]] = ...) -> None: ... class GetTaskMetricsResponse(_message.Message): __slots__ = ["results"] @@ -238,18 +238,18 @@ class GetTaskMetricsResponse(_message.Message): def __init__(self, results: _Optional[_Iterable[_Union[_metrics_pb2.ExecutionMetricResult, _Mapping]]] = ...) -> None: ... class GetTaskLogsRequest(_message.Message): - __slots__ = ["deprecated_task_type", "resource_meta", "lines", "token", "task_type"] - DEPRECATED_TASK_TYPE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ["task_type", "resource_meta", "lines", "token", "task_category"] + TASK_TYPE_FIELD_NUMBER: _ClassVar[int] RESOURCE_META_FIELD_NUMBER: _ClassVar[int] LINES_FIELD_NUMBER: _ClassVar[int] TOKEN_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - deprecated_task_type: str + TASK_CATEGORY_FIELD_NUMBER: _ClassVar[int] + task_type: str resource_meta: bytes lines: int token: str - task_type: TaskType - def __init__(self, deprecated_task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ..., task_type: _Optional[_Union[TaskType, _Mapping]] = ...) -> None: ... + task_category: TaskCategory + def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ..., lines: _Optional[int] = ..., token: _Optional[str] = ..., task_category: _Optional[_Union[TaskCategory, _Mapping]] = ...) -> None: ... class GetTaskLogsResponseHeader(_message.Message): __slots__ = ["token"] diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py index eca6cb8da8..2c4f728fba 100644 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py @@ -15,7 +15,7 @@ from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xc3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\x9b\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"O\x82\xd3\xe4\x93\x02I\x12G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}\x12\xaf\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"Z\x82\xd3\xe4\x93\x02T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}\x12\xb8\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}\x12\xae\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"T\x82\xd3\xe4\x93\x02N\x12L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\xa1\x01\n\x10SyncAgentService\x12\x8c\x01\n\x0f\x45xecuteTaskSync\x12&.flyteidl.admin.ExecuteTaskSyncRequest\x1a\'.flyteidl.admin.ExecuteTaskSyncResponse\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v1/agent/task/stream(\x01\x30\x01\x32\xe3\x06\n\x11\x41syncAgentService\x12r\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/agent/task\x12\xa3\x01\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"W\x82\xd3\xe4\x93\x02Q\x12O/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}\x12\xb7\x01\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"b\x82\xd3\xe4\x93\x02\\*Z/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}\x12\xc0\x01\n\x0eGetTaskMetrics\x12%.flyteidl.admin.GetTaskMetricsRequest\x1a&.flyteidl.admin.GetTaskMetricsResponse\"_\x82\xd3\xe4\x93\x02Y\x12W/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}\x12\xb6\x01\n\x0bGetTaskLogs\x12\".flyteidl.admin.GetTaskLogsRequest\x1a#.flyteidl.admin.GetTaskLogsResponse\"\\\x82\xd3\xe4\x93\x02V\x12T/api/v1/agent/task/logs/{task_category.name}/{task_category.version}/{resource_meta}0\x01\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -29,13 +29,13 @@ _ASYNCAGENTSERVICE.methods_by_name['CreateTask']._options = None _ASYNCAGENTSERVICE.methods_by_name['CreateTask']._serialized_options = b'\202\323\344\223\002\027:\001*\"\022/api/v1/agent/task' _ASYNCAGENTSERVICE.methods_by_name['GetTask']._options = None - _ASYNCAGENTSERVICE.methods_by_name['GetTask']._serialized_options = b'\202\323\344\223\002I\022G/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['GetTask']._serialized_options = b'\202\323\344\223\002Q\022O/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}' _ASYNCAGENTSERVICE.methods_by_name['DeleteTask']._options = None - _ASYNCAGENTSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\202\323\344\223\002T*R/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\202\323\344\223\002\\*Z/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}' _ASYNCAGENTSERVICE.methods_by_name['GetTaskMetrics']._options = None - _ASYNCAGENTSERVICE.methods_by_name['GetTaskMetrics']._serialized_options = b'\202\323\344\223\002Q\022O/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['GetTaskMetrics']._serialized_options = b'\202\323\344\223\002Y\022W/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}' _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._options = None - _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._serialized_options = b'\202\323\344\223\002N\022L/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}' + _ASYNCAGENTSERVICE.methods_by_name['GetTaskLogs']._serialized_options = b'\202\323\344\223\002V\022T/api/v1/agent/task/logs/{task_category.name}/{task_category.version}/{resource_meta}' _AGENTMETADATASERVICE.methods_by_name['GetAgent']._options = None _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\002\026\022\024/api/v1/agent/{name}' _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None @@ -43,7 +43,7 @@ _globals['_SYNCAGENTSERVICE']._serialized_start=109 _globals['_SYNCAGENTSERVICE']._serialized_end=270 _globals['_ASYNCAGENTSERVICE']._serialized_start=273 - _globals['_ASYNCAGENTSERVICE']._serialized_end=1108 - _globals['_AGENTMETADATASERVICE']._serialized_start=1111 - _globals['_AGENTMETADATASERVICE']._serialized_end=1351 + _globals['_ASYNCAGENTSERVICE']._serialized_end=1140 + _globals['_AGENTMETADATASERVICE']._serialized_start=1143 + _globals['_AGENTMETADATASERVICE']._serialized_end=1383 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 7a0476815e..8572a3fd32 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -124,13 +124,13 @@ pub struct GetTaskRequest { /// A predefined yet extensible Task type identifier. #[deprecated] #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, + pub task_type: ::prost::alloc::string::String, /// Metadata about the resource to be pass to the agent. #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, /// A predefined yet extensible Task type identifier. #[prost(message, optional, tag="3")] - pub task_type: ::core::option::Option, + pub task_category: ::core::option::Option, } /// Response to get an individual task resource. #[allow(clippy::derive_partial_eq_without_eq)] @@ -171,13 +171,13 @@ pub struct DeleteTaskRequest { /// A predefined yet extensible Task type identifier. #[deprecated] #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, + pub task_type: ::prost::alloc::string::String, /// Metadata about the resource to be pass to the agent. #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, /// A predefined yet extensible Task type identifier. #[prost(message, optional, tag="3")] - pub task_type: ::core::option::Option, + pub task_category: ::core::option::Option, } /// Response to delete a task. #[allow(clippy::derive_partial_eq_without_eq)] @@ -194,7 +194,7 @@ pub struct Agent { /// SupportedTaskTypes are the types of the tasks that the agent can handle. #[deprecated] #[prost(string, repeated, tag="2")] - pub deprecated_supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + pub supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their /// results synchronously when called by propeller. Given that sync agents can affect the performance /// of the system, it's important to enforce strict timeout policies. @@ -202,13 +202,13 @@ pub struct Agent { /// identifier and query for job statuses as jobs progress. #[prost(bool, tag="3")] pub is_sync: bool, - /// SupportedTaskTypes are the types of the tasks that the agent can handle. + /// Supported_task_categories are the categories of the tasks that the agent can handle. #[prost(message, repeated, tag="4")] - pub supported_task_types: ::prost::alloc::vec::Vec, + pub supported_task_categories: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskType { +pub struct TaskCategory { /// The name of the task type. #[prost(string, tag="1")] pub name: ::prost::alloc::string::String, @@ -250,7 +250,7 @@ pub struct GetTaskMetricsRequest { /// A predefined yet extensible Task type identifier. #[deprecated] #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, + pub task_type: ::prost::alloc::string::String, /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -269,7 +269,7 @@ pub struct GetTaskMetricsRequest { pub step: ::core::option::Option<::prost_types::Duration>, /// A predefined yet extensible Task type identifier. #[prost(message, optional, tag="7")] - pub task_type: ::core::option::Option, + pub task_category: ::core::option::Option, } /// A response containing a list of metrics for a task execution. #[allow(clippy::derive_partial_eq_without_eq)] @@ -286,7 +286,7 @@ pub struct GetTaskLogsRequest { /// A predefined yet extensible Task type identifier. #[deprecated] #[prost(string, tag="1")] - pub deprecated_task_type: ::prost::alloc::string::String, + pub task_type: ::prost::alloc::string::String, /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). #[prost(bytes="vec", tag="2")] pub resource_meta: ::prost::alloc::vec::Vec, @@ -299,7 +299,7 @@ pub struct GetTaskLogsRequest { pub token: ::prost::alloc::string::String, /// A predefined yet extensible Task type identifier. #[prost(message, optional, tag="5")] - pub task_type: ::core::option::Option, + pub task_category: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 70c2b35a7e..45dc7f0d22 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -98,11 +98,11 @@ message ExecuteTaskSyncResponse { // A message used to fetch a job resource from flyte agent server. message GetTaskRequest { // A predefined yet extensible Task type identifier. - string deprecated_task_type = 1 [deprecated = true]; + string task_type = 1 [deprecated = true]; // Metadata about the resource to be pass to the agent. bytes resource_meta = 2; // A predefined yet extensible Task type identifier. - TaskType task_type = 3; + TaskCategory task_category = 3; } // Response to get an individual task resource. @@ -130,11 +130,11 @@ message Resource { // A message used to delete a task. message DeleteTaskRequest { // A predefined yet extensible Task type identifier. - string deprecated_task_type = 1 [deprecated = true]; + string task_type = 1 [deprecated = true]; // Metadata about the resource to be pass to the agent. bytes resource_meta = 2; // A predefined yet extensible Task type identifier. - TaskType task_type = 3; + TaskCategory task_category = 3; } // Response to delete a task. @@ -146,7 +146,7 @@ message Agent { string name = 1; // SupportedTaskTypes are the types of the tasks that the agent can handle. - repeated string deprecated_supported_task_types = 2 [deprecated = true]; + repeated string supported_task_types = 2 [deprecated = true]; // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their // results synchronously when called by propeller. Given that sync agents can affect the performance @@ -155,11 +155,11 @@ message Agent { // identifier and query for job statuses as jobs progress. bool is_sync = 3; - // SupportedTaskTypes are the types of the tasks that the agent can handle. - repeated TaskType supported_task_types = 4; + // Supported_task_categories are the categories of the tasks that the agent can handle. + repeated TaskCategory supported_task_categories = 4; } -message TaskType { +message TaskCategory { // The name of the task type. string name = 1; // The version of the task type. @@ -188,7 +188,7 @@ message ListAgentsResponse { // A request to get the metrics from a task execution. message GetTaskMetricsRequest { // A predefined yet extensible Task type identifier. - string deprecated_task_type = 1 [deprecated = true]; + string task_type = 1 [deprecated = true]; // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). bytes resource_meta = 2; // The metrics to query. If empty, will return a default set of metrics. @@ -201,7 +201,7 @@ message GetTaskMetricsRequest { // Query resolution step width in duration format or float number of seconds. google.protobuf.Duration step = 6; // A predefined yet extensible Task type identifier. - TaskType task_type = 7; + TaskCategory task_category = 7; } // A response containing a list of metrics for a task execution. @@ -213,7 +213,7 @@ message GetTaskMetricsResponse { // A request to get the log from a task execution. message GetTaskLogsRequest { // A predefined yet extensible Task type identifier. - string deprecated_task_type = 1 [deprecated = true]; + string task_type = 1 [deprecated = true]; // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). bytes resource_meta = 2; // Number of lines to return. @@ -222,7 +222,7 @@ message GetTaskLogsRequest { // in a query. If there are no more results, this value will be empty. string token = 4; // A predefined yet extensible Task type identifier. - TaskType task_type = 5; + TaskCategory task_category = 5; } message GetTaskLogsResponseHeader { diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index 91d0ab17e1..cd6b93a972 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -30,14 +30,14 @@ service AsyncAgentService { // Get job status. rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){ option (google.api.http) = { - get: "/api/v1/agent/task/{task_type.name}/{task_type.version}/{resource_meta}" + get: "/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}" }; }; // Delete the task resource. rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){ option (google.api.http) = { - delete: "/api/v1/agent/task_executions/{task_type.name}/{task_type.version}/{resource_meta}" + delete: "/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}" }; }; @@ -48,14 +48,14 @@ service AsyncAgentService { // * various other errors rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse){ option (google.api.http) = { - get: "/api/v1/agent/task/metrics/{task_type.name}/{task_type.version}/{resource_meta}" + get: "/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}" }; }; // GetTaskLogs returns task execution logs, if available. rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (stream flyteidl.admin.GetTaskLogsResponse){ option (google.api.http) = { - get: "/api/v1/agent/task/logs/{task_type.name}/{task_type.version}/{resource_meta}" + get: "/api/v1/agent/task/logs/{task_category.name}/{task_category.version}/{resource_meta}" }; }; } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 8568a48f90..31aa3fb156 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -136,19 +136,19 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) { } for _, agent := range res.GetAgents() { - deprecatedSupportedTaskTypes := agent.DeprecatedSupportedTaskTypes + deprecatedSupportedTaskTypes := agent.SupportedTaskTypes for _, supportedTaskType := range deprecatedSupportedTaskTypes { agent := &Agent{AgentDeployment: agentDeployment, IsSync: agent.IsSync} agentRegistry[supportedTaskType] = map[int32]*Agent{defaultTaskTypeVersion: agent} } - supportedTaskTypes := agent.SupportedTaskTypes - for _, supportedTaskType := range supportedTaskTypes { + supportedTaskCategories := agent.SupportedTaskCategories + for _, supportedCategory := range supportedTaskCategories { agent := &Agent{AgentDeployment: agentDeployment, IsSync: agent.IsSync} - agentRegistry[supportedTaskType.GetName()] = map[int32]*Agent{supportedTaskType.GetVersion(): agent} + agentRegistry[supportedCategory.GetName()] = map[int32]*Agent{supportedCategory.GetVersion(): agent} } logger.Infof(context.Background(), "[%v] is a sync agent: [%v]", agent.Name, agent.IsSync) - logger.Infof(context.Background(), "[%v] supports task types: [%v]", agent.Name, supportedTaskTypes) + logger.Infof(context.Background(), "[%v] supports task types: [%v]", agent.Name, supportedTaskCategories) } } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go index 8f0c839ff8..a4ddc5e303 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/integration_test.go @@ -260,7 +260,7 @@ func newMockAsyncAgentPlugin() webapi.PluginEntry { ResourceMeta: []byte{1, 2, 3, 4}}, nil) mockGetRequestMatcher := mock.MatchedBy(func(request *admin.GetTaskRequest) bool { - return request.GetTaskType().GetName() == "spark" + return request.GetTaskCategory().GetName() == "spark" }) asyncAgentClient.On("GetTask", mock.Anything, mockGetRequestMatcher).Return( &admin.GetTaskResponse{Resource: &admin.Resource{Phase: flyteIdlCore.TaskExecution_SUCCEEDED}}, nil) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index cb6f9c9997..107e64b23f 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -44,7 +44,7 @@ type ResourceWrapper struct { type ResourceMetaWrapper struct { OutputPrefix string AgentResourceMeta []byte - TaskType admin.TaskType + TaskCategory admin.TaskCategory } func (p Plugin) GetConfig() webapi.PluginConfig { @@ -90,8 +90,8 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR } outputPrefix := taskCtx.OutputWriter().GetOutputPrefixPath().String() - taskType := admin.TaskType{Name: taskTemplate.Type, Version: taskTemplate.TaskTypeVersion} - agent, isSync := getFinalAgent(&taskType, p.cfg, p.agentRegistry) + taskCategory := admin.TaskCategory{Name: taskTemplate.Type, Version: taskTemplate.TaskTypeVersion} + agent, isSync := getFinalAgent(&taskCategory, p.cfg, p.agentRegistry) finalCtx, cancel := getFinalContext(ctx, "CreateTask", agent) defer cancel() @@ -121,7 +121,7 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR return ResourceMetaWrapper{ OutputPrefix: outputPrefix, AgentResourceMeta: res.GetResourceMeta(), - TaskType: taskType, + TaskCategory: taskCategory, }, nil, nil } @@ -182,7 +182,7 @@ func (p Plugin) ExecuteTaskSync( func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest webapi.Resource, err error) { metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) - agent, _ := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) + agent, _ := getFinalAgent(&metadata.TaskCategory, p.cfg, p.agentRegistry) client, err := p.getAsyncAgentClient(ctx, agent) if err != nil { @@ -192,9 +192,9 @@ func (p Plugin) Get(ctx context.Context, taskCtx webapi.GetContext) (latest weba defer cancel() request := &admin.GetTaskRequest{ - DeprecatedTaskType: metadata.TaskType.Name, - TaskType: &metadata.TaskType, - ResourceMeta: metadata.AgentResourceMeta, + TaskType: metadata.TaskCategory.Name, + TaskCategory: &metadata.TaskCategory, + ResourceMeta: metadata.AgentResourceMeta, } res, err := client.GetTask(finalCtx, request) if err != nil { @@ -215,7 +215,7 @@ func (p Plugin) Delete(ctx context.Context, taskCtx webapi.DeleteContext) error return nil } metadata := taskCtx.ResourceMeta().(ResourceMetaWrapper) - agent, _ := getFinalAgent(&metadata.TaskType, p.cfg, p.agentRegistry) + agent, _ := getFinalAgent(&metadata.TaskCategory, p.cfg, p.agentRegistry) client, err := p.getAsyncAgentClient(ctx, agent) if err != nil { @@ -225,9 +225,9 @@ func (p Plugin) Delete(ctx context.Context, taskCtx webapi.DeleteContext) error defer cancel() request := &admin.DeleteTaskRequest{ - DeprecatedTaskType: metadata.TaskType.Name, - TaskType: &metadata.TaskType, - ResourceMeta: metadata.AgentResourceMeta, + TaskType: metadata.TaskCategory.Name, + TaskCategory: &metadata.TaskCategory, + ResourceMeta: metadata.AgentResourceMeta, } _, err = client.DeleteTask(finalCtx, request) return err @@ -333,8 +333,8 @@ func writeOutput(ctx context.Context, taskCtx webapi.StatusContext, outputs *fly return taskCtx.OutputWriter().Put(ctx, opReader) } -func getFinalAgent(taskType *admin.TaskType, cfg *Config, agentRegistry Registry) (*Deployment, bool) { - if agent, exists := agentRegistry[taskType.Name][taskType.Version]; exists { +func getFinalAgent(taskCategory *admin.TaskCategory, cfg *Config, agentRegistry Registry) (*Deployment, bool) { + if agent, exists := agentRegistry[taskCategory.Name][taskCategory.Version]; exists { return agent.AgentDeployment, agent.IsSync } diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go index 30d786d45b..e02766e2ef 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go @@ -61,9 +61,9 @@ func TestPlugin(t *testing.T) { t.Run("test getFinalAgent", func(t *testing.T) { agent := &Agent{AgentDeployment: &Deployment{Endpoint: "localhost:80"}} agentRegistry := Registry{"spark": {defaultTaskTypeVersion: agent}} - spark := &admin.TaskType{Name: "spark", Version: defaultTaskTypeVersion} - foo := &admin.TaskType{Name: "foo", Version: defaultTaskTypeVersion} - bar := &admin.TaskType{Name: "bar", Version: defaultTaskTypeVersion} + spark := &admin.TaskCategory{Name: "spark", Version: defaultTaskTypeVersion} + foo := &admin.TaskCategory{Name: "foo", Version: defaultTaskTypeVersion} + bar := &admin.TaskCategory{Name: "bar", Version: defaultTaskTypeVersion} agentDeployment, _ := getFinalAgent(spark, &cfg, agentRegistry) assert.Equal(t, agentDeployment.Endpoint, "localhost:80") agentDeployment, _ = getFinalAgent(foo, &cfg, agentRegistry) @@ -274,15 +274,15 @@ func TestPlugin(t *testing.T) { func getMockMetadataServiceClient() *agentMocks.AgentMetadataServiceClient { mockMetadataServiceClient := new(agentMocks.AgentMetadataServiceClient) mockRequest := &admin.ListAgentsRequest{} - suppoertedTaskTypes := make([]*admin.TaskType, 3) - suppoertedTaskTypes[0] = &admin.TaskType{Name: "task1", Version: defaultTaskTypeVersion} - suppoertedTaskTypes[1] = &admin.TaskType{Name: "task2", Version: defaultTaskTypeVersion} - suppoertedTaskTypes[2] = &admin.TaskType{Name: "task3", Version: defaultTaskTypeVersion} + suppoertedTaskTypes := make([]*admin.TaskCategory, 3) + suppoertedTaskTypes[0] = &admin.TaskCategory{Name: "task1", Version: defaultTaskTypeVersion} + suppoertedTaskTypes[1] = &admin.TaskCategory{Name: "task2", Version: defaultTaskTypeVersion} + suppoertedTaskTypes[2] = &admin.TaskCategory{Name: "task3", Version: defaultTaskTypeVersion} mockResponse := &admin.ListAgentsResponse{ Agents: []*admin.Agent{ { - Name: "test-agent", - SupportedTaskTypes: suppoertedTaskTypes, + Name: "test-agent", + SupportedTaskCategories: suppoertedTaskTypes, }, }, } From 79534d163929734a6b8113c93bb0291ee84b9f4b Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Tue, 20 Feb 2024 17:20:15 -0800 Subject: [PATCH 30/35] nit Signed-off-by: Kevin Su --- .../go/tasks/plugins/webapi/agent/plugin.go | 22 ++++++++++--------- .../tasks/plugins/webapi/agent/plugin_test.go | 10 ++++----- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index 107e64b23f..f30f5b203f 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -143,16 +143,18 @@ func (p Plugin) ExecuteTaskSync( } err = stream.Send(headerProto) - if err == nil { - inputsProto := &admin.ExecuteTaskSyncRequest{ - Part: &admin.ExecuteTaskSyncRequest_Inputs{ - Inputs: inputs, - }, - } - err = stream.Send(inputsProto) - if err != nil { - return nil, nil, fmt.Errorf("failed to send inputsProto with error: %w", err) - } + if err != nil { + return nil, nil, fmt.Errorf("failed to send headerProto with error: %w", err) + } + inputsProto := &admin.ExecuteTaskSyncRequest{ + Part: &admin.ExecuteTaskSyncRequest_Inputs{ + Inputs: inputs, + }, + } + err = stream.Send(inputsProto) + + if err != nil { + return nil, nil, fmt.Errorf("failed to send inputsProto with error: %w", err) } in, err := stream.Recv() diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go index e02766e2ef..9fa36c5c42 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin_test.go @@ -274,15 +274,15 @@ func TestPlugin(t *testing.T) { func getMockMetadataServiceClient() *agentMocks.AgentMetadataServiceClient { mockMetadataServiceClient := new(agentMocks.AgentMetadataServiceClient) mockRequest := &admin.ListAgentsRequest{} - suppoertedTaskTypes := make([]*admin.TaskCategory, 3) - suppoertedTaskTypes[0] = &admin.TaskCategory{Name: "task1", Version: defaultTaskTypeVersion} - suppoertedTaskTypes[1] = &admin.TaskCategory{Name: "task2", Version: defaultTaskTypeVersion} - suppoertedTaskTypes[2] = &admin.TaskCategory{Name: "task3", Version: defaultTaskTypeVersion} + supportedTaskCategories := make([]*admin.TaskCategory, 3) + supportedTaskCategories[0] = &admin.TaskCategory{Name: "task1", Version: defaultTaskTypeVersion} + supportedTaskCategories[1] = &admin.TaskCategory{Name: "task2", Version: defaultTaskTypeVersion} + supportedTaskCategories[2] = &admin.TaskCategory{Name: "task3", Version: defaultTaskTypeVersion} mockResponse := &admin.ListAgentsResponse{ Agents: []*admin.Agent{ { Name: "test-agent", - SupportedTaskCategories: suppoertedTaskTypes, + SupportedTaskCategories: supportedTaskCategories, }, }, } From e3fe96273adb61bf0a775f8d6b03b1e2e2d19f66 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 21 Feb 2024 01:51:22 -0800 Subject: [PATCH 31/35] nit Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/plugin.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go index f30f5b203f..ea96980b78 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/plugin.go @@ -5,7 +5,6 @@ import ( "encoding/gob" "fmt" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - "io" "time" "golang.org/x/exp/maps" @@ -158,9 +157,12 @@ func (p Plugin) ExecuteTaskSync( } in, err := stream.Recv() - if err != nil && err != io.EOF { + if err != nil { return nil, nil, err } + if in.GetHeader() == nil { + return nil, nil, fmt.Errorf("expected header in the response, but got none") + } // TODO: Read the streaming output from the agent, and merge it into the final output. // For now, Propeller assumes that the output is always in the header. resource := in.GetHeader().GetResource() From a2d2ef3ef31c0c82cf4f875737571729389c8dff Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 21 Feb 2024 09:24:20 -0800 Subject: [PATCH 32/35] Add comment Signed-off-by: Kevin Su --- flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts | 13 +++++++++++++ flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go | 19 ++++++++++++++----- .../flyteidl/service/agent.swagger.json | 12 ++++++++---- flyteidl/gen/pb_rust/flyteidl.admin.rs | 9 +++++++++ flyteidl/protos/flyteidl/admin/agent.proto | 9 +++++++++ 5 files changed, 53 insertions(+), 9 deletions(-) diff --git a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts index 6746b375a5..deb3601202 100644 --- a/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts +++ b/flyteidl/gen/pb-es/flyteidl/admin/agent_pb.ts @@ -102,21 +102,34 @@ export class TaskExecutionMetadata extends Message { environmentVariables: { [key: string]: string } = {}; /** + * Represents the maximum number of attempts allowed for a task. + * If a task fails, it can be retried up to this maximum number of attempts. + * * @generated from field: int32 max_attempts = 7; */ maxAttempts = 0; /** + * Indicates whether the task execution can be interrupted. + * If set to true, the task can be stopped before completion. + * * @generated from field: bool interruptible = 8; */ interruptible = false; /** + * Specifies the threshold for failure count at which the interruptible property + * will take effect. If the number of consecutive task failures exceeds this threshold, + * interruptible behavior will be activated. + * * @generated from field: int32 interruptible_failure_threshold = 9; */ interruptibleFailureThreshold = 0; /** + * Overrides for specific properties of the task node. + * These overrides can be used to customize the behavior of the task node. + * * @generated from field: flyteidl.core.TaskNodeOverrides overrides = 10; */ overrides?: TaskNodeOverrides; diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go index 005319bd62..01aee40e95 100644 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go @@ -99,11 +99,20 @@ type TaskExecutionMetadata struct { // k8s service account associated with the task execution K8SServiceAccount string `protobuf:"bytes,5,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` // Environment variables attached to the task execution - EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - MaxAttempts int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - InterruptibleFailureThreshold int32 `protobuf:"varint,9,opt,name=interruptible_failure_threshold,json=interruptibleFailureThreshold,proto3" json:"interruptible_failure_threshold,omitempty"` - Overrides *core.TaskNodeOverrides `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"` + EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // Represents the maximum number of attempts allowed for a task. + // If a task fails, it can be retried up to this maximum number of attempts. + MaxAttempts int32 `protobuf:"varint,7,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` + // Indicates whether the task execution can be interrupted. + // If set to true, the task can be stopped before completion. + Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3" json:"interruptible,omitempty"` + // Specifies the threshold for failure count at which the interruptible property + // will take effect. If the number of consecutive task failures exceeds this threshold, + // interruptible behavior will be activated. + InterruptibleFailureThreshold int32 `protobuf:"varint,9,opt,name=interruptible_failure_threshold,json=interruptibleFailureThreshold,proto3" json:"interruptible_failure_threshold,omitempty"` + // Overrides for specific properties of the task node. + // These overrides can be used to customize the behavior of the task node. + Overrides *core.TaskNodeOverrides `protobuf:"bytes,10,opt,name=overrides,proto3" json:"overrides,omitempty"` } func (x *TaskExecutionMetadata) Reset() { diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index 9bd18e5ddb..f49218517e 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -2025,17 +2025,21 @@ }, "max_attempts": { "type": "integer", - "format": "int32" + "format": "int32", + "description": "Represents the maximum number of attempts allowed for a task.\nIf a task fails, it can be retried up to this maximum number of attempts." }, "interruptible": { - "type": "boolean" + "type": "boolean", + "description": "Indicates whether the task execution can be interrupted.\nIf set to true, the task can be stopped before completion." }, "interruptible_failure_threshold": { "type": "integer", - "format": "int32" + "format": "int32", + "description": "Specifies the threshold for failure count at which the interruptible property\nwill take effect. If the number of consecutive task failures exceeds this threshold,\ninterruptible behavior will be activated." }, "overrides": { - "$ref": "#/definitions/coreTaskNodeOverrides" + "$ref": "#/definitions/coreTaskNodeOverrides", + "description": "Overrides for specific properties of the task node.\nThese overrides can be used to customize the behavior of the task node." } }, "description": "Represents a subset of runtime task execution metadata that are relevant to external plugins." diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs index 8572a3fd32..c8caad6d24 100644 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ b/flyteidl/gen/pb_rust/flyteidl.admin.rs @@ -21,12 +21,21 @@ pub struct TaskExecutionMetadata { /// Environment variables attached to the task execution #[prost(map="string, string", tag="6")] pub environment_variables: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + /// Represents the maximum number of attempts allowed for a task. + /// If a task fails, it can be retried up to this maximum number of attempts. #[prost(int32, tag="7")] pub max_attempts: i32, + /// Indicates whether the task execution can be interrupted. + /// If set to true, the task can be stopped before completion. #[prost(bool, tag="8")] pub interruptible: bool, + /// Specifies the threshold for failure count at which the interruptible property + /// will take effect. If the number of consecutive task failures exceeds this threshold, + /// interruptible behavior will be activated. #[prost(int32, tag="9")] pub interruptible_failure_threshold: i32, + /// Overrides for specific properties of the task node. + /// These overrides can be used to customize the behavior of the task node. #[prost(message, optional, tag="10")] pub overrides: ::core::option::Option, } diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 45dc7f0d22..0256483d8f 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -37,9 +37,18 @@ message TaskExecutionMetadata { string k8s_service_account = 5; // Environment variables attached to the task execution map environment_variables = 6; + // Represents the maximum number of attempts allowed for a task. + // If a task fails, it can be retried up to this maximum number of attempts. int32 max_attempts = 7; + // Indicates whether the task execution can be interrupted. + // If set to true, the task can be stopped before completion. bool interruptible = 8; + // Specifies the threshold for failure count at which the interruptible property + // will take effect. If the number of consecutive task failures exceeds this threshold, + // interruptible behavior will be activated. int32 interruptible_failure_threshold = 9; + // Overrides for specific properties of the task node. + // These overrides can be used to customize the behavior of the task node. core.TaskNodeOverrides overrides = 10; } From 940ff13a4b3718414deaafaa5c415c49d112e1f2 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 21 Feb 2024 11:30:33 -0800 Subject: [PATCH 33/35] revert helper Signed-off-by: Kevin Su --- charts/flyte-core/templates/_helpers.tpl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/charts/flyte-core/templates/_helpers.tpl b/charts/flyte-core/templates/_helpers.tpl index 9fb1b3da80..2c3b059841 100755 --- a/charts/flyte-core/templates/_helpers.tpl +++ b/charts/flyte-core/templates/_helpers.tpl @@ -102,6 +102,28 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{- end }} {{- end -}} +{{- define "flyteagent.name" -}} +flyteagent +{{- end -}} + +{{- define "flyteagent.selectorLabels" -}} +app.kubernetes.io/name: {{ template "flyteagent.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end -}} + +{{- define "flyteagent.labels" -}} +{{ include "flyteagent.selectorLabels" . }} +helm.sh/chart: {{ include "flyte.chart" . }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end -}} + +{{- define "flyteagent.podLabels" -}} +{{ include "flyteagent.labels" . }} +{{- with .Values.flyteagent.podLabels }} +{{ toYaml . }} +{{- end }} +{{- end -}} + {{- define "flytepropeller.name" -}} flytepropeller {{- end -}} From 8ca1a2b57399c7e87d848b1b05c0010b91d43b32 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 21 Feb 2024 13:16:41 -0800 Subject: [PATCH 34/35] lint Signed-off-by: Kevin Su --- .../gen/pb-go/gateway/flyteidl/service/agent.swagger.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json index f49218517e..985b8acb99 100644 --- a/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json +++ b/flyteidl/gen/pb-go/gateway/flyteidl/service/agent.swagger.json @@ -1783,6 +1783,10 @@ "extended_resources": { "$ref": "#/definitions/coreExtendedResources", "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." + }, + "container_image": { + "type": "string", + "description": "Override for the image used by task pods." } }, "description": "Optional task node overrides that will be applied at task execution time." From 672bc3ed9362b484a5037ea77c5c9898f7903267 Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Wed, 21 Feb 2024 17:19:03 -0800 Subject: [PATCH 35/35] nit Signed-off-by: Kevin Su --- flyteplugins/go/tasks/plugins/webapi/agent/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyteplugins/go/tasks/plugins/webapi/agent/client.go b/flyteplugins/go/tasks/plugins/webapi/agent/client.go index 31aa3fb156..b525acc5c3 100644 --- a/flyteplugins/go/tasks/plugins/webapi/agent/client.go +++ b/flyteplugins/go/tasks/plugins/webapi/agent/client.go @@ -148,7 +148,7 @@ func initializeAgentRegistry(cs *ClientSet) (Registry, error) { agentRegistry[supportedCategory.GetName()] = map[int32]*Agent{supportedCategory.GetVersion(): agent} } logger.Infof(context.Background(), "[%v] is a sync agent: [%v]", agent.Name, agent.IsSync) - logger.Infof(context.Background(), "[%v] supports task types: [%v]", agent.Name, supportedTaskCategories) + logger.Infof(context.Background(), "[%v] supports task category: [%v]", agent.Name, supportedTaskCategories) } }